Commit 8db91880 by 李伟康

提交

1 parent 9ef9235f
...@@ -24,22 +24,24 @@ class NetWork { ...@@ -24,22 +24,24 @@ class NetWork {
const thisPage = wx.$router.getPageInstance(), const thisPage = wx.$router.getPageInstance(),
options = Object.keys(thisPage.options) options = Object.keys(thisPage.options)
this[ISCOMMECTED] = false this[ISCOMMECTED] = false
if (thisPage.noPageAuth) { wx.showLoading()
wx.showLoading() wx.hideLoading()
this.refreshPage() // if (thisPage.noPageAuth) {
} else { // wx.showLoading()
let url = `/${thisPage.route}` // this.refreshPage()
if (options.length) { // } else {
let query = [] // let url = `/${thisPage.route}`
options.map(key => { // if (options.length) {
query.push(`${key}=${thisPage.options[key]}`) // let query = []
}) // options.map(key => {
url += `?${query.join('&')}` // query.push(`${key}=${thisPage.options[key]}`)
} // })
wx.$router.redirectTo('login.loading', { // url += `?${query.join('&')}`
url // }
}) // 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!