Commit ef156d82 by 张立顺

修复bug

1 parent 2e627bbc
import WxValidate from '../../utils/WxValidate' import WxValidate from '../../utils/wxValidate'
Page({ Page({
/** /**
* 页面的初始数据 * 页面的初始数据
......
...@@ -61,10 +61,13 @@ Page({ ...@@ -61,10 +61,13 @@ Page({
// let { detail } = e || null // let { detail } = e || null
// console.log(detail) // console.log(detail)
if (e) { if (e) {
let clientModule = this.selectAllComponents('client') this.init()
let merchantModule = this.selectAllComponents('merchant') let clientModule = this.selectComponent('#client')
clientModule.getClientApi() let merchantModule = this.selectComponent('#merchant')
merchantModule.init() // console.log('clientModule', clientModule)
// console.log()
clientModule.getClientApi && clientModule.getClientApi()
merchantModule.init && merchantModule.init()
} }
let { isSuper, userInfo } = this.data let { isSuper, userInfo } = this.data
// 判断是超管才需要切换账号 // 判断是超管才需要切换账号
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!