Commit 585b4af6 by 高淑倩

console

parent 609a261b
......@@ -115,6 +115,7 @@ Component({
if (item.route) {
try {
const options = item.options
console.log("集点弹框跳转", item.route)
wxService.router(`/${item.route}`).search(options).replace()
} catch (e) {
wx.showToast({
......
......@@ -69,6 +69,7 @@ Component({
// 获取当前会员是否是体验者
const { member } = baseUserInfo
const curMemberTrial = member && member.trial || false
console.log('获取当前会员是否是体验者', curMemberTrial)
wx.setStorageSync('isExperiencer', curMemberTrial)
// 存储用户开卡状态
......
......@@ -47,6 +47,7 @@ wxService.page({
},
watch: {
experAccessible(newVal, oldVal) {
console.log('newVal, oldVal', newVal, oldVal)
if(newVal) {
// 登录接口返回err
const reLoginErrFlag = wx.getStorageSync('reLoginErr')
......
......@@ -39,7 +39,7 @@
"list": []
},
"miniprogram": {
"current": 19,
"current": 13,
"list": [
{
"id": -1,
......@@ -124,7 +124,8 @@
"id": 13,
"name": "subPage",
"pathName": "subPackage/page/pages/subPage/subPage",
"query": "pageId=4"
"query": "pageId=40",
"scene": null
},
{
"id": 14,
......@@ -164,7 +165,8 @@
{
"id": -1,
"name": "敬请期待",
"pathName": "subPackage/page/pages/goToHome/goToHome"
"pathName": "subPackage/page/pages/goToHome/goToHome",
"query": ""
}
]
}
......
......@@ -436,16 +436,17 @@ class WXService extends Http {
// const curMemberTrial = member && member.trial || false
// console.log('d', curMemberTrial)
// wx.setStorageSync('isExperiencer', curMemberTrial)
const isExperiencer = wx.getStorageSync('isExperiencer') || false
console.log('获取当前会员是否是体验者', isExperiencer)
const isExperiencer = wx.getStorageSync('isExperiencer')
const page = this
_self.currentPage = page
config.onShow && config.onShow.apply(page, args)
// 获取当前页
let router = getCurrentRouter()
const baseUserInfo = _self.getBaseUserInfo()
if (baseUserInfo) {
// if (baseUserInfo) {
_self.trialList().then(res => {
if (!res) return false
const { currentPaths } = res
......@@ -459,7 +460,11 @@ class WXService extends Http {
})
}
})
}
console.log('000',this.data.experAccessible);
// }
},
onReady: function (...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