Răsfoiți Sursa

权益单品增加点击查看详情

@dongkboy 1 lună în urmă
părinte
comite
4fdb083057

+ 1 - 6
pages/reward/benefitPackage.vue

@@ -102,7 +102,7 @@
 					v-if="item.vehicleTaxIsExpanded && item.rightsDetailsList && item.rightsDetailsList.length > 0">
 					<view class="view">
 						<view class="dis view-header" v-for="(DetailsItem, DetailsIndex) in item.rightsDetailsList"
-							:key="DetailsIndex" @click="details(DetailsItem)">
+							:key="DetailsIndex">
 							<image class="image" :src="DetailsItem.rightsPicture" mode=""
 								style="height: 116rpx;width: 116rpx;">
 							</image>
@@ -308,11 +308,6 @@
 
 		},
 		methods: {
-			details(item) {
-				// uni.navigateTo({
-				// 	url: '/pages/reward/locationFilter?id=' + item.id,
-				// })
-			},
 			// 权益数量变化监听
 			onRightsCountChange(e, index, name, field) {
 				// 获取当前项

+ 6 - 1
pages/reward/benefitSingleItem.vue

@@ -355,7 +355,12 @@
 				await this.$http.post('/rightsGrant/get/product', {
 					rightsId: item.id
 				}).then(res => {
-					if (res.code == 200) {}
+					if (res.code == 200) {
+						uni.navigateTo({
+							url: '/pages/reward/locationFilter?productId=' + res.data[0]
+								.productId,
+						})
+					}
 				});
 			},
 			// 获取权益分类

+ 2 - 2
pages/reward/locationFilter.vue

@@ -1,7 +1,7 @@
 <template>
 	<view class="page">
 		<web-view
-			src="https://life.baoxianzhanggui.com/custh5/#/packageF/pages/home/details-food-channel?productId=2069610944385826817"></web-view>
+			:src="`https://life.baoxianzhanggui.com/custh5/#/packageF/pages/home/details-channel?productId=${categoryId}`"></web-view>
 	</view>
 </template>
 
@@ -16,7 +16,7 @@
 
 		},
 		onLoad(options) {
-			this.categoryId = options.id;
+			this.categoryId = options.productId;
 		},
 		methods: {