Selaa lähdekoodia

feat:询价/核价历史优化 v1.4.3

zhangxin 5 päivää sitten
vanhempi
commit
c4ad1d7fba

+ 5 - 0
components/add-inquiry-dialog/index.scss

@@ -49,6 +49,11 @@
49 49
 	.img_wrap{
50 50
 		display: flex;
51 51
 	}
52
+	.price_wrap{
53
+		display: grid;
54
+		grid-template-columns: 0.5fr 1fr;
55
+		gap: 10rpx;
56
+	}
52 57
 	.history_wrap{
53 58
 		max-height: 300rpx;
54 59
 		overflow: auto;

+ 9 - 6
components/add-inquiry-dialog/index.vue

@@ -23,17 +23,20 @@
23 23
                     :previewEnabled="true" :imageWidth="150" :imageHeight="150"></imgs-row-scroll>
24 24
                 <u-upload @afterRead="afterRead" name="3" multiple :maxCount="10"></u-upload>
25 25
             </view>
26
-            <u--input v-if="editOrAdd === 'edit'" type="number" class="price" placeholder="价格" border="bottom" v-model="info.price"
27
-                clearable></u--input>
28
-            <u--input v-if="editOrAdd === 'edit'" placeholder="备注" border="bottom" v-model="info.remark"
29
-                clearable></u--input>
26
+            <view class="price_wrap">
27
+                <u--input v-if="editOrAdd === 'edit'" type="number" class="price" placeholder="价格" border="bottom" v-model="info.price"
28
+                    clearable></u--input>
29
+                <u--input v-if="editOrAdd === 'edit'" placeholder="备注" border="bottom" v-model="info.remark"
30
+                    clearable></u--input>
31
+            </view>
30 32
             <qiun-data-charts v-if="isShowChart" type="column" :chartData="chartData" canvasId="priceChart" :opts="opts" :ontouch="true"
31 33
                 width="700rpx" height="600rpx" backgroundColor="#fff" />
32 34
             <view v-if="isShowHistory" class="history_wrap">
33 35
                 <view class="title">
34
-                    询价历史
36
+                    {{ type === 1 ? '询价历史' : '核价历史' }}
35 37
                 </view>
36 38
                 <u-cell v-for="(item, index) in historyList" :key="index" :title="(index+1)+'. ¥'+item.price" :value="'备注:'+ (item.remark || '无') "></u-cell>
39
+                <u-empty v-if="historyList.length === 0"></u-empty>
37 40
             </view>
38 41
         </u-modal>
39 42
         <brandList ref="brandListRef" @selectedBrand="handleSelectedBrand"></brandList>
@@ -179,7 +182,7 @@ export default {
179 182
                     };
180 183
                 }
181 184
                 if(this.isShowHistory){
182
-                    this.historyList = JSON.parse(this.info.myPriceHistory)
185
+                    this.historyList = JSON.parse(this.info.myPriceHistory) || []
183 186
                 }
184 187
                 this.showModal = true;
185 188
             })

+ 2 - 2
manifest.json

@@ -2,8 +2,8 @@
2 2
     "name" : "小葫芦",
3 3
     "appid" : "__UNI__DDAE2E0",
4 4
     "description" : "",
5
-    "versionName" : "1.4.2",
6
-    "versionCode" : 142,
5
+    "versionName" : "1.4.3",
6
+    "versionCode" : 143,
7 7
     "transformPx" : false,
8 8
     "app-plus" : {
9 9
         "webView" : {