Переглянути джерело

【Mod】修改分享标题,修改SKU选择高度

liuxiangxin 7 місяців тому
батько
коміт
6cbef5d3e1

+ 1 - 1
pages/car/index.vue

@@ -73,7 +73,7 @@
 		},
 		onShareAppMessage(obj) {
 			return {
-			  title: '为您提供优秀的数据营销服务和解决方案',
+			  title: '双十一 药优惠 得积分 兑豪礼',
 			  path: '/pages/index/index'
 			}
 		},

+ 1 - 1
pages/index/index.vue

@@ -76,7 +76,7 @@
 		},
 		onShareAppMessage(obj) {
 			return {
-			  title: '为您提供优秀的数据营销服务和解决方案',
+			  title: '双十一 药优惠 得积分 兑豪礼',
 			  path: '/pages/index/index'
 			}
 		},

+ 25 - 25
pages/product/index.vue

@@ -74,22 +74,24 @@
 								<button class="product_quantity_add" @click="changeQuantity(+1)" data-eventsync="true">
 									<image class="add_icon" src="../../static/icon/add_icon.png" mode=""></image>
 								</button>
-							</view>
+							</view>	
 						</view>
 						<view class="product_stock">剩{{productInfo.stock}}个</view>
 					</view>
 				</view>
-				<view class="select_sku" >
-					<scroll-view scroll-y="true" class="scroll_y" >
-						<view class="product_attr" v-for="(spec,spec_index) in productInfo.product_attr" :key="spec_index">
-							<view class="spec_name">{{ spec.spec_name }}</view>
-							<view class="arrt_list">
-									<view class="arrt_option" :class="option.active?'active':''" v-for="(option,attr_index) in spec.attr_list" :key="attr_index" @click="attrChange(spec_index,attr_index)">
-										{{option.name}}
+				<view class="select_sku" v-if="productInfo.product_attr.length" >
+						<scroll-view scroll-y="true" class="scroll_max" >
+							<view class="product_attr" v-for="(spec,spec_index) in productInfo.product_attr" :key="spec_index">
+								<scroll-view scroll-y="true" class="scroll_y" >
+									<view class="spec_name">{{ spec.spec_name }}</view>
+									<view class="arrt_list">
+										<view class="arrt_option" :class="option.active?'active':''" v-for="(option,attr_index) in spec.attr_list" :key="attr_index" @click="attrChange(spec_index,attr_index)">
+											{{option.name}}
+										</view>
 									</view>
+								</scroll-view>
 							</view>
-						</view>
-					</scroll-view>
+						</scroll-view>
 				</view>
 				<!-- 选择优惠券 -->
 				<view class="to_select_coupon" v-if="specBtnType==1" @click="openCoupon()">
@@ -257,7 +259,7 @@
 		},
 		onShareAppMessage(obj) {
 			return {
-			  title: '为您提供优秀的数据营销服务和解决方案',
+			  title: '双十一 药优惠 得积分 兑豪礼',
 			  path: '/pages/index/index'
 			}
 		},
@@ -679,7 +681,7 @@
 						// 产品价格修改
 						this.productInfo.price = this.productInfo.product_sku[k].price;
 						// 产品规格修改
-						this.productInfo.spec = this.productInfo.product_sku[k].attr_names;
+						// this.productInfo.spec = this.productInfo.product_sku[k].attr_names;
 						// 产品库存
 						this.productInfo.stock = this.productInfo.product_sku[k].stock;
 						// 产品SKU
@@ -1061,9 +1063,6 @@
 					padding: 10rpx 5rpx;
 				}
 			}
-			.min600{
-				min-height: 600rpx;
-			}
 			.car_item{
 				height: 200rpx;
 				display: block;
@@ -1183,32 +1182,33 @@
 			}
 			.select_sku{
 				font-size: 28rpx;
-				padding: 30rpx 35rpx;
+				padding: 20rpx 35rpx;
 				margin-bottom: 20rpx;
-				.scroll_y{
-					height: 240rpx;
+				.scroll_max{
+					height: 440rpx;
 					.product_attr{
 						display: block;
 						overflow: hidden;
 						margin-bottom: 20rpx;
 						.spec_name{
 							display: block;
+							height: 40rpx;
 							font-size: 28rpx;
 							line-height: 40rpx;
-							margin-bottom: 20rpx;
 						}
 						.arrt_list{
 							display: block;
 							overflow: hidden;
+							background-color: #F5F5F5;
 							.arrt_option{
 								float: left;
-								height: 40rpx;
 								font-size: 28rpx;
 								line-height: 40rpx;
 								text-align: center;
 								border-radius: 6rpx;
-								padding: 10rpx 30rpx;
-								margin: 20rpx;
+								padding: 10rpx 20rpx;
+								margin: 10rpx 0rpx;
+								margin-right: 20rpx;
 								background-color: #EEEEEE;
 							}
 							.arrt_option.active {
@@ -1221,7 +1221,7 @@
 			}
 			.to_select_coupon{
 				font-size: 28rpx;
-				padding: 30rpx 35rpx;
+				padding: 10rpx 35rpx;
 				margin-bottom: 20rpx;
 				.coupon_deduction{
 					color: red;
@@ -1232,7 +1232,7 @@
 				font-size: 28rpx;
 				text-align: right;
 				margin: 0rpx 35rpx;
-				padding: 20rpx 0rpx;
+				padding: 10rpx 0rpx;
 				border-top: 2rpx solid #DDDDDD;
 				.coupon_deduction{
 					color: red;
@@ -1244,7 +1244,7 @@
 				height: 100rpx;
 				display: block;
 				margin: 0 auto;
-				margin-top: 70rpx;
+				margin-top: 60rpx;
 				line-height: 80rpx;
 				text-align: center;
 				font-size: 30rpx;

+ 1 - 1
pages/score/clockin.vue

@@ -83,7 +83,7 @@
 		},
 		onShareAppMessage(obj) {
 			return {
-			  title: '为您提供优秀的数据营销服务和解决方案',
+			  title: '双十一 药优惠 得积分 兑豪礼',
 			  path: '/pages/index/index'
 			}
 		},

+ 1 - 1
pages/score/index.vue

@@ -53,7 +53,7 @@
 		},
 		onShareAppMessage(obj) {
 			return {
-			  title: '为您提供优秀的数据营销服务和解决方案',
+			  title: '双十一 药优惠 得积分 兑豪礼',
 			  path: '/pages/index/index'
 			}
 		},

+ 1 - 1
pages/score/product.vue

@@ -147,7 +147,7 @@
 		},
 		onShareAppMessage(obj) {
 			return {
-			  title: '为您提供优秀的数据营销服务和解决方案',
+			  title: '双十一 药优惠 得积分 兑豪礼',
 			  path: '/pages/index/index'
 			}
 		},

+ 1 - 1
pages/user/index.vue

@@ -59,7 +59,7 @@
 		},
 		onShareAppMessage(obj) {
 			return {
-			  title: '为您提供优秀的数据营销服务和解决方案',
+			  title: '双十一 药优惠 得积分 兑豪礼',
 			  path: '/pages/index/index'
 			}
 		},