Commit fca2c231 by chenwq

正式会员判断

1 parent afb844db
......@@ -132,11 +132,7 @@ Page({
// 获取会员卡信息
wx.p.api.equityApi.checkOpenMember({ isTrialCardFlag: 1 }).then(res => {
if (res.code == 0 && res.data) {
if (!res.data.equityFreeCardId) {
this.jumpMine()
} else {
this.receiveRed(res.data.equityFreeCardId)
}
this.receiveRed(res.data.equityFreeCardId)
}
})
}
......@@ -183,6 +179,10 @@ Page({
let flag = false
if (res.code == 0 && res.data) {
flag = true
if (!res.data.equityFreeCardId) {
this.jumpMine()
return true
}
this.receiveRed(res.data.equityFreeCardId)
}
this.setData({
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!