Commit a721f584 by 高淑倩

711_watch

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