Commit 8db91880 by 李伟康

提交

1 parent 9ef9235f
......@@ -24,22 +24,24 @@ class NetWork {
const thisPage = wx.$router.getPageInstance(),
options = Object.keys(thisPage.options)
this[ISCOMMECTED] = false
if (thisPage.noPageAuth) {
wx.showLoading()
this.refreshPage()
} else {
let url = `/${thisPage.route}`
if (options.length) {
let query = []
options.map(key => {
query.push(`${key}=${thisPage.options[key]}`)
})
url += `?${query.join('&')}`
}
wx.$router.redirectTo('login.loading', {
url
})
}
wx.showLoading()
wx.hideLoading()
// if (thisPage.noPageAuth) {
// wx.showLoading()
// this.refreshPage()
// } else {
// let url = `/${thisPage.route}`
// if (options.length) {
// let query = []
// options.map(key => {
// query.push(`${key}=${thisPage.options[key]}`)
// })
// url += `?${query.join('&')}`
// }
// wx.$router.redirectTo('login.loading', {
// url
// })
// }
}
}
})
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!