zhengjinyi il y a 4 ans
Parent
commit
17d16ea52f
2 fichiers modifiés avec 26 ajouts et 4 suppressions
  1. 3 2
      h5/pages/activity/activity_mid.vue
  2. 23 2
      pages/goods/product.vue

+ 3 - 2
h5/pages/activity/activity_mid.vue

@@ -101,8 +101,8 @@
 			this.$api.getComStorage('userInfo').then((resolve) =>{
 				this.clubStatus = resolve.clubStatus
 				this.userIdentity = resolve.userIdentity
-				this.initData()
 			})
+			this.initData()
 			uni.setNavigationBarTitle({title:'年中大促'});
 		},
 		computed: {
@@ -158,7 +158,7 @@
 				}).exec()
 			},
 			detailPage(id) {//跳转商品详情页
-				this.$api.navigateTo(`/pages/goods/product?id=${id}`)
+				this.$api.navigateTo(`/pages/goods/product?id=${id}&path=activity`)
 			},
 			navigator(){
 				authorize.getSetting().then(wxResponse =>{// console.log('是否已授权',res);//0:为取消授权 1:为已授权 2:为未操作
@@ -414,6 +414,7 @@
 									font-weight: bold;
 									margin-left: 5rpx;
 									text{
+										letter-spacing: 4rpx;
 										font-size: $font-size-32;
 									}
 								}

+ 23 - 2
pages/goods/product.vue

@@ -38,7 +38,10 @@
 						<view class="wrap-top-price" v-if="!goodsData.isNoneDisabled">
 							<view v-if="!hasLogin" class="p-login grade  tui-skeleton-fillet">
 								<text class="p-no">价格:</text>
-								<uni-stars :stars="parseInt(product.price1Grade)" :font-size='36' :width-info="180"></uni-stars>
+								<view class="price-left" v-if="linkPath === 'activity'">
+									<text class="none">¥<text>???</text></text>
+								</view>
+								<uni-stars v-else  :stars="parseInt(product.price1Grade)" :font-size='36' :width-info="180"></uni-stars>
 								<view class="p-login tui-skeleton-fillet">
 									<text class="p-login-btn" @click.stop="navToLogin">登录查看价格<text class="iconfont icon-xiayibu" style="font-size: 22rpx;margin: 0 6rpx;"></text></text>
 								</view>
@@ -263,12 +266,14 @@
 				nvabarData: {							 //顶部自定义导航
 					showCapsule: 1, // 是否显示左上角图标   1表示显示    0表示不显示
 					title: ''		// 导航栏 中间的标题
-				}
+				},
+				linkPath:''
 			}
 		},
 		onLoad(option) {
 			this.productID = option.id;//获取商品ID
 			this.isShareType = option.type
+			this.linkPath = option.path
 			this.isHeaderPoduct = true
 			if(option.page == 2){
 				this.backPage = option.page
@@ -751,6 +756,22 @@
 				font-size: $font-size-24;
 				&.grade{
 					margin-bottom: 20rpx;
+					.price-left{
+						float: left;
+						.none{
+							display: block;
+							font-size: $font-size-20;
+							line-height: 48rpx;
+							color: #4A4B54;
+							float: left;
+							font-weight: bold;
+							margin-left: 5rpx;
+							text{
+								letter-spacing: 4rpx;
+								font-size: $font-size-32;
+							}
+						}
+					}
 				}
 				.p-no{
 					float: left;