Browse Source

perf: 优化产品型号展示

lizhaocai 1 month ago
parent
commit
98c577f7db

+ 1 - 15
pages/comm/comm.vue

@@ -101,7 +101,7 @@
 								<view style="padding: 12px 0 8px 5px;color:#005DA6;"  :style="{fontSize:(wxFontSize-3)+'px'}">
 									 {{sitem.prodName}}
 								</view>
-								<view style="padding: 8px 8px 0 5px;color:#333;display: flex;"  :style="{fontSize:(wxFontSize-3)+'px'}">
+								<view style="padding: 0px 8px 0 5px;color:#333;display: flex;"  :style="{fontSize:(wxFontSize-3)+'px'}">
 									 <text style="color: #777;white-space: nowrap;">产品型号:</text>{{sitem.prodSpec}}
 								</view>
 								<view v-if="sitem.prodDesc" style="padding: 8px 8px 0 5px;color:#333;display: flex;"  :style="{fontSize:(wxFontSize-3)+'px'}">
@@ -249,20 +249,6 @@
 				},
 				currentTab: 0,
 				showEmpty: false,
-				columns: [{
-					fieldName: 'prodName',
-					fieldDesc: '产品名称',
-
-				}, {
-					fieldName: 'prodSpec',
-					fieldDesc: '产品型号',
-
-				}, {
-					fieldName: 'prodDesc',
-					fieldDesc: '产品介绍',
-					fieldType:'slot'
-
-				}],
 				showSheet: false,
 				curItem: {},
 				collId: '',

+ 9 - 16
pages/index/detail/detail.vue

@@ -64,7 +64,7 @@
 											<view style="padding: 12px 0 8px 5px;color:#005DA6;"  :style="{fontSize:(wxFontSize-3)+'px'}">
 												 {{sitem.prodName}}
 											</view>
-											<view style="padding: 8px 8px 0 5px;color:#333;display: flex;"  :style="{fontSize:(wxFontSize-3)+'px'}">
+											<view style="padding: 0px 8px 0 5px;color:#333;display: flex;"  :style="{fontSize:(wxFontSize-3)+'px'}">
 												 <text style="color: #777;white-space: nowrap;">产品型号:</text>{{sitem.prodSpec}}
 											</view>
 											<view v-if="sitem.prodDesc" style="padding: 8px 8px 0 5px;color:#333;display: flex;"  :style="{fontSize:(wxFontSize-3)+'px'}">
@@ -193,19 +193,6 @@
 				curItem:{},
 				showSheet:false,
 				collStatus:false,
-				columns: [{
-					fieldName: 'prodName',
-					fieldDesc: '产品名称',
-				
-				}, {
-					fieldName: 'prodSpec',
-					fieldDesc: '产品型号',
-				
-				}, {
-					fieldName: 'prodDesc',
-					fieldDesc: '产品介绍',
-				
-				}],
 				curContact:{},
 				showContact: false,
 				wxFontSize:17
@@ -322,8 +309,14 @@
 			},
 			showActionSheet(item) {
 				let that = this;
-				console.warn(item);
-				this.curItem = item;
+				if(!this.curItem.id){
+					this.curItem = item;
+				}else{
+					this.curItem = {}
+					this.showSheet = false;
+					return false;
+				}
+				// this.curItem = item;
 				this.curItem.isNeed = 1;
 				this.collStatus = false;
 				this.showSheet = true;

+ 1 - 14
pages/mine/coll.vue

@@ -65,7 +65,7 @@
 							<view style="padding: 12px 0 8px 5px;color:#005DA6;"  :style="{fontSize:(wxFontSize-3)+'px'}">
 								 {{sitem.prodName}}
 							</view>
-							<view style="padding: 8px 8px 0 5px;color:#333;display: flex;"  :style="{fontSize:(wxFontSize-3)+'px'}">
+							<view style="padding: 0px 8px 0 5px;color:#333;display: flex;"  :style="{fontSize:(wxFontSize-3)+'px'}">
 								 <text style="color: #777;white-space: nowrap;">产品型号:</text>{{sitem.prodSpec}}
 							</view>
 							<view v-if="sitem.prodDesc" style="padding: 8px 8px 0 5px;color:#333;display: flex;"  :style="{fontSize:(wxFontSize-3)+'px'}">
@@ -192,19 +192,6 @@ import {
 				showSheet:false,
 				showContact:false,
 				curContact:{},
-				columns: [{
-					fieldName: 'prodName',
-					fieldDesc: '产品名称',
-				
-				}, {
-					fieldName: 'prodSpec',
-					fieldDesc: '产品型号',
-				
-				}, {
-					fieldName: 'prodDesc',
-					fieldDesc: '产品介绍',
-				
-				}],
 				wxFontSize:17,
 				shareData:{}
 			}

+ 1 - 14
pages/mine/share.vue

@@ -126,7 +126,7 @@
 					 		<view style="padding: 12px 0 8px 5px;color:#005DA6;"  :style="{fontSize:(wxFontSize-3)+'px'}">
 					 			 {{sitem.prodName}}
 					 		</view>
-					 		<view style="padding: 8px 8px 0 5px;color:#333;display: flex;"  :style="{fontSize:(wxFontSize-3)+'px'}">
+					 		<view style="padding: 0px 8px 0 5px;color:#333;display: flex;"  :style="{fontSize:(wxFontSize-3)+'px'}">
 					 			 <text style="color: #777;white-space: nowrap;">产品型号:</text>{{sitem.prodSpec}}
 					 		</view>
 					 		<view v-if="sitem.prodDesc" style="padding: 8px 8px 0 5px;color:#333;display: flex;"  :style="{fontSize:(wxFontSize-3)+'px'}">
@@ -254,19 +254,6 @@
 				showEmpty: false,
 				content:[],
 				curItem:{},
-				columns: [{
-					fieldName: 'prodName',
-					fieldDesc: '产品名称',
-				
-				}, {
-					fieldName: 'prodSpec',
-					fieldDesc: '产品型号',
-				
-				}, {
-					fieldName: 'prodDesc',
-					fieldDesc: '产品介绍',
-				
-				}],
 				wxFontSize:17
 			}
 		},

File diff suppressed because it is too large
+ 1 - 1
unpackage/dist/dev/.sourcemap/mp-weixin/pages/comm/comm.js.map


File diff suppressed because it is too large
+ 1 - 1
unpackage/dist/dev/.sourcemap/mp-weixin/pages/index/index.js.map


File diff suppressed because it is too large
+ 1 - 1
unpackage/dist/dev/.sourcemap/mp-weixin/pages/mine/coll.js.map


File diff suppressed because it is too large
+ 1 - 1
unpackage/dist/dev/.sourcemap/mp-weixin/pages/mine/share.js.map


File diff suppressed because it is too large
+ 1 - 1
unpackage/dist/dev/mp-weixin/pages/comm/comm.js


File diff suppressed because it is too large
+ 1 - 1
unpackage/dist/dev/mp-weixin/pages/comm/comm.wxml


File diff suppressed because it is too large
+ 1 - 1
unpackage/dist/dev/mp-weixin/pages/index/index.js


File diff suppressed because it is too large
+ 1 - 1
unpackage/dist/dev/mp-weixin/pages/mine/coll.js


File diff suppressed because it is too large
+ 1 - 1
unpackage/dist/dev/mp-weixin/pages/mine/coll.wxml


File diff suppressed because it is too large
+ 1 - 1
unpackage/dist/dev/mp-weixin/pages/mine/share.js


File diff suppressed because it is too large
+ 1 - 1
unpackage/dist/dev/mp-weixin/pages/mine/share.wxml