Przeglądaj źródła

修改显示bug

chenrui 2 lat temu
rodzic
commit
d6a5a33ea4
2 zmienionych plików z 7 dodań i 6 usunięć
  1. 3 3
      pages/vinAnalyse/search.vue
  2. 4 3
      pages/vinAnalyse/shelfAnalyse.vue

+ 3 - 3
pages/vinAnalyse/search.vue

@@ -8,7 +8,7 @@
 				</u-form-item>
 				<u-form-item label="VIN"><u-input v-model.trim="form.vinCode" placeholder="请输入VIN"/></u-form-item>
 				<u-form-item label="车辆品牌"><u-input v-model.trim="form.brandName" placeholder="请输入车辆品牌"/></u-form-item>
-				<u-form-item label="车型"><u-input v-model.trim="form.modelName" placeholder="请输入车型"/></u-form-item>
+				<u-form-item label="车型"><u-input v-model.trim="form.modelInfo" placeholder="请输入车型"/></u-form-item>
 				<u-form-item label="空调滤清器" label-position="top">
 					<u-radio-group v-model="form.airConditionerFilterFlag" :size="28">
 						<u-radio 
@@ -70,7 +70,7 @@
 					engineOilFilterFlag:null,
 					vinCode: undefined, 
 					brandName: undefined,//车辆品牌
-					modelName: undefined//车型
+					modelInfo: undefined//车型
 				},
 				customBtnStyle: {  //  自定义按钮样式
 					borderColor: this.$config('primaryColor'),
@@ -124,7 +124,7 @@
 					engineOilFilterFlag:null,
 					vinCode: undefined, 
 					brandName: undefined,//车辆品牌
-					modelName: undefined//车型
+					modelInfo: undefined//车型
 				}
 				setTimeout(()=>{
 					this.handleSearch()

+ 4 - 3
pages/vinAnalyse/shelfAnalyse.vue

@@ -89,7 +89,7 @@
 							>
 							<view class="nav-right-item flex">
 								<view class="uni-col-2">
-									<u-image :src="item.productImageUrl?'http:'+item.productImageUrl:`../../static/${theme}/def_img@2x.png`" width="100" height="100" border-radius="30"></u-image>
+									<u-image :src="item.productImageUrl?item.productImageUrl:`../../static/${theme}/def_img@2x.png`" width="100" height="100" border-radius="30"></u-image>
 								</view>
 								<view class="item-info uni-col-10">
 									<view class="item-name u-line-2">
@@ -103,7 +103,7 @@
 											<!-- 判断是否铺货 -->
 											<view class="flex justify_end" v-if="item.isShelfProduct != '否'">
 												<text class="item-detail-text">
-													库存:{{item.currQty?item.currQty:0}}
+													库存:{{item.qty?item.qty:0}}
 												</text>
 											</view>
 											<view class="flex justify_end isShelf" v-else>
@@ -184,6 +184,7 @@
 			}
 		},
 		onLoad(option) {
+			this.theme = getApp().globalData.theme;
 			this.shelfSn = option.shelfSn
 			this.shelfName = option.shelfName
 			let ajaxData={
@@ -192,7 +193,7 @@
 				pageSize: this.pageSize 
 			}
 			this.getList(ajaxData);
-			this.theme = getApp().globalData.theme;
+			
 		},
 		onReady() {
 			uni.setNavigationBarTitle({