Commit 62e4aa15 by howie

feat:会员卡定制化判断权限

parent bce0d24e
......@@ -363,6 +363,7 @@ export function themeMemberCardClick(item) {
};
shop.getV3CardList(query).then(res => {
console.log(res, "--------------------282");
// item是当前点击的链接中会员卡详情,res.data是所有的会员卡列表,其中包含该用户是否开启了这个卡
if (res.data.code == 200) {
let cardData = "";
res.data.data.forEach(innerItem => {
......@@ -374,6 +375,19 @@ export function themeMemberCardClick(item) {
let userInfo = wx.getStorageSync("userInfo")
? JSON.parse(wx.getStorageSync("userInfo"))
: "";
// ---------------LLGW客户定制化开始,用户没有会员卡权限,不让其进入会员卡详情 ---------------
let appData = getApp();
console.log("app.globalData.shopInfo.shopCode",appData.globalData.shopInfo.shopCode);
// this.$store.state.mixid
if(appData.globalData.shopInfo.shopCode == 'LLGW') {
// console.log("当前的店铺",$nuxt.$route.query.mixid);
if(cardData.receiveStatus != 1) {
wx.showToast({ title: '非该会员无法查看', icon: "none" });
return
}
}
// ---------------LLGW 客户定制化结束---------------
if (cardData.receiveWay == 0) {
// 无门槛
shop.drawV3Card(cardId).then(res => {
......
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