Commit 3835e746 by 高淑倩

集点详情

parent 585b4af6
......@@ -117,9 +117,9 @@ App({
imageUrl: envInfo.imgCtx, //图片地址
isFullSucreen: false, // 当前设备是否为 FullSucreen
commonFunc: commonFunc,
// brandId: 2711,
brandId: 2711,
// brandId: 2005,
// brandId: 1001,
brandId: 1002,
// brandId: 1002,
}
})
......@@ -67,6 +67,12 @@ Component({
wx.setStorageSync('token', '')
}
wx.setStorageSync('_baseUserInfo', data)
const baseUserInfo = wx.getStorageSync('_baseUserInfo')
// 获取当前会员是否是体验者
const { member } = baseUserInfo
const curMemberTrial = member && member.trial || false
console.log('获取当前会员是否是体验者', curMemberTrial)
wx.setStorageSync('isExperiencer', curMemberTrial)
// 存储用户开卡状态
// wx.setStorageSync('memberActivateStatus', data.memberActivateStatus)
this.setUserInfo()
......
const PROJECT_ENV = 'test' // 生产 prod, 开发1 dev,开发2 dev2, 测试 test, 预生产 pre
const PROJECT_ENV = 'prod' // 生产 prod, 开发1 dev,开发2 dev2, 测试 test, 预生产 pre
const needMock = '' //
// appid_dev_wx wxc3b64b09b1d3dfc2
......
......@@ -47,9 +47,7 @@ wxService.page({
},
watch: {
experAccessible(newVal, oldVal) {
console.log('newVal, oldVal', newVal, oldVal)
if(newVal) {
// 登录接口返回err
// 登录接口返回err
const reLoginErrFlag = wx.getStorageSync('reLoginErr')
const baseUserInfo = wx.getStorageSync('_baseUserInfo')
let id
......@@ -71,7 +69,13 @@ wxService.page({
this.setData({
id
}, () => {
this.getPointDetail(id)
if(newVal) {
this.getPointDetail(id)
} else {
// 去别的页面
wxService.router(`/subPackage/page/pages/goToHome/goToHome`).replace()
}
// this.getPointDetail(id)
})
}
// 隐藏 dialog
......@@ -88,10 +92,6 @@ wxService.page({
isAuthorization: true
})
}
} else {
// 去别的页面
wxService.router(`/subPackage/page/pages/goToHome/goToHome`).replace()
}
}
},
// 集点详情
......
......@@ -13,7 +13,7 @@
},
"compileType": "miniprogram",
"libVersion": "2.8.2",
"appid": "wxac09792264c49b5c",
"appid": "wx700028bf32a3be66",
"projectname": "7-Eleven",
"debugOptions": {
"hidedInDevtools": []
......@@ -39,7 +39,7 @@
"list": []
},
"miniprogram": {
"current": 13,
"current": 15,
"list": [
{
"id": -1,
......@@ -138,7 +138,7 @@
"id": 15,
"name": "pages/pointDetail/pointDetail",
"pathName": "pages/pointDetail/pointDetail",
"query": "id=611943773647278080",
"query": "id= 623814145518743552",
"scene": null
},
{
......
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