Commit e0dc0867 authored by 黄媛媛's avatar 黄媛媛

详情会员跳转

parent b7031508
......@@ -15,7 +15,7 @@
<view class="is_share" v-if="g.share > 0" style="top:240px;">
<image
src="@/static/images/icon/WechatIMG424.png"
style="width: 20px; margin-left: 12px; opacity: 1;"
style="width: 20px; margin-left: 12px; opacity: 1;height: auto;"
mode="widthFix"
/>
<view
......@@ -100,7 +100,7 @@
g.goods_marketing_award.integral.title
}}</text>
</view>
<view style="display: flex;flex-direction: row;align-items: center" v-if="g.goods_marketing_award.PresentFXGradeMsg != ''">
<view style="display: flex;flex-direction: row;align-items: center" v-if="g.goods_marketing_award.PresentFXGradeMsg != ''" @click="goVIP">
<u-tag text="送会员" type="error" />
<text style="margin-left: 5px; font-size: 12px;">{{
g.goods_marketing_award.PresentFXGradeMsg
......@@ -329,6 +329,7 @@ export default {
showAuth: false,
isAllowShare:1,
u: {},
vipState:{},
};
},
components: {
......@@ -369,6 +370,7 @@ export default {
// }
this.init();
this.initPage();
this.getVipId()
this.mc = this.$uiConfig.mainColor;
this.secondary = this.$uiConfig.secondary;
......@@ -466,6 +468,27 @@ export default {
url: "/pages/goods/comment-list?id=" + this.id,
});
},
getVipId(){//获取会员ID
this.request2(
{
url: "/api/AppletGoods/GetAppletVipGradeInfo",
data: {},
},
(res) => {
if(res.data){
this.vipState = res.data.VIPModel
}
// this.initRecommend();
},
);
},
goVIP(){//跳转到购买的页面查看
let GradeId = this.vipState.Id
uni.navigateTo({
url: "/pages/share/buyInterest/index?showLook=1&GradeId="+GradeId,
});
},
init() {
this.loading = true;
this.request2(
......
......@@ -64,9 +64,11 @@
{{dataList.Description}}
</view>
</view>
<view class="vip_lastdiv">
<view class="vip_lastdiv" >
<img src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/vip_btm.png" alt="">
<button class="my_VipLastBtn" @click="openImediate">立即购买</button>
<button class="my_VipLastBtn" @click="openImediate" v-if="showLook==0">立即购买</button>
<button class="my_VipLastBtn" @click="goback" v-if="showLook==1">返回</button>
</view>
</view>
</view>
......@@ -86,7 +88,8 @@ export default {
pageSize: 10
},
GradeId:0,
Money:0
Money:0,
showLook:0
};
},
created() {
......@@ -111,6 +114,9 @@ export default {
if(option){
this.GradeId = option.GradeId;
this.Money = option.Money;
if(option.showLook){ //从详情跳转过来查看内容的 不能购买
this.showLook = option.showLook
}
}
this.init();
},
......@@ -166,6 +172,9 @@ export default {
}
}
);
},
goback(){
uni.navigateBack()
}
}
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment