Commit 3835e746 by 高淑倩

集点详情

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