Commit a721f584 by 高淑倩

711_watch

parent 28048b64
......@@ -115,9 +115,9 @@ App({
imageUrl: envInfo.imgCtx, //图片地址
isFullSucreen: false, // 当前设备是否为 FullSucreen
commonFunc: commonFunc,
// brandId: 2711,
brandId: 2711,
// brandId: 2005,
brandId: 1001,
// brandId: 1001,
// brandId: 1002,
}
})
const PROJECT_ENV = 'dev2' // 生产 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,7 +47,6 @@ wxService.page({
},
watch: {
experAccessible(newVal, oldVal) {
console.log('集点详情', newVal,oldVal)
if(newVal) {
// 登录接口返回err
const reLoginErrFlag = wx.getStorageSync('reLoginErr')
......
......@@ -22,7 +22,6 @@ wxService.page({
},
watch: {
experAccessible(newVal, oldVal) {
console.log('集点列表', newVal,oldVal)
if(newVal) {
this.getPointList()
} else {
......@@ -40,8 +39,8 @@ wxService.page({
* 生命周期函数--监听页面显示
*/
onShow() {
const { experAccessible } = this.data
console.log('experAccessible', experAccessible)
// const { experAccessible } = this.data
// console.log('experAccessible', experAccessible)
// wxService.nextTick(() => {
// const { experAccessible } = this.data
// console.log('experAccessible', experAccessible)
......
......@@ -13,7 +13,7 @@
},
"compileType": "miniprogram",
"libVersion": "2.8.2",
"appid": "wxc3b64b09b1d3dfc2",
"appid": "wx700028bf32a3be66",
"projectname": "7-Eleven",
"debugOptions": {
"hidedInDevtools": []
......
......@@ -411,7 +411,7 @@ class WXService extends Http {
page (config) {
const _self = this
const { sr } = this.getApp()
config.data.experAccessible = false;
config.data.experAccessible;
const CONFIG_PAPGE = {
onLoad: function (...args) {
......@@ -431,16 +431,16 @@ class WXService extends Http {
_self.trialList().then(res=>{
if(!res) return false
const { currentPaths } = res
console.log('22222', currentPaths, currentPaths.indexOf( router.route), isExperiencer)
if (currentPaths.indexOf( router.route) > -1 && isExperiencer) {
this.setData({
experAccessible: true
},()=> {
console.log('experAccessible', this.data.experAccessible)
})
} else {
this.setData({
experAccessible: false
})
}
})
},
onReady: function (...args) {
config.onReady && config.onReady.apply(this, args)
......
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