补充提交内容

master
学习很差啦 2022-11-09 17:05:54 +08:00
parent 0aa9831a62
commit f7c3c56b53
1 changed files with 3 additions and 3 deletions

View File

@ -46,7 +46,7 @@
<view v-if="prom.split('-')[0] == 'POINTS_GOODS'">
<div class="res_prom_item">
<u-tag text="积分活动" type="error"></u-tag>
<span class="pro-text">当前商品参与积分活动<span @click="handClickToJoinPromotion(prom,prom.split('-')[0])" class="href">点击此处参与活动</span></span>
<span class="pro-text">当前商品参与积分活动<span @click="handClickToJoinPromotion(prom)" class="href">点击此处参与活动</span></span>
</div>
</view>
</view>
@ -86,14 +86,14 @@ export default {
mounted() {},
methods: {
//
handClickToJoinPromotion(val,type){
handClickToJoinPromotion(val){
const promotion = {
"POINTS_GOODS": `/pages/promotion/point/detail?id=${this.res[val].id}`
}
uni.navigateTo({
url:promotion[type]
url:promotion[val.split('-')[0]]
})
}