|
@@ -185,6 +185,13 @@ Page({
|
|
jump(e) {
|
|
jump(e) {
|
|
const { page } = e.currentTarget.dataset
|
|
const { page } = e.currentTarget.dataset
|
|
|
|
|
|
|
|
+ if (!this.data.sessionId) {
|
|
|
|
+ wx.navigateTo({
|
|
|
|
+ url: `/pages/login/login`
|
|
|
|
+ })
|
|
|
|
+ return
|
|
|
|
+ }
|
|
|
|
+
|
|
wx.navigateTo({
|
|
wx.navigateTo({
|
|
url: `/pages/${page}/${page}`
|
|
url: `/pages/${page}/${page}`
|
|
})
|
|
})
|
|
@@ -234,6 +241,13 @@ Page({
|
|
const { page } = e.currentTarget.dataset
|
|
const { page } = e.currentTarget.dataset
|
|
const that = this
|
|
const that = this
|
|
|
|
|
|
|
|
+ if (!this.data.sessionId) {
|
|
|
|
+ wx.navigateTo({
|
|
|
|
+ url: `/pages/login/login`
|
|
|
|
+ })
|
|
|
|
+ return
|
|
|
|
+ }
|
|
|
|
+
|
|
try {
|
|
try {
|
|
const { errMsg, subscriptionsSetting } = await wx.getSetting({ withSubscriptions: true })
|
|
const { errMsg, subscriptionsSetting } = await wx.getSetting({ withSubscriptions: true })
|
|
if (errMsg === 'getSetting:ok') {
|
|
if (errMsg === 'getSetting:ok') {
|
|
@@ -294,5 +308,13 @@ Page({
|
|
}
|
|
}
|
|
}
|
|
}
|
|
})
|
|
})
|
|
|
|
+ },
|
|
|
|
+ handleFormItemClick(e) {
|
|
|
|
+ const { formkey } = e.currentTarget.dataset
|
|
|
|
+ if ((formkey === 'user_head_img_url' || formkey === 'user_nickname') && !this.data.sessionId) {
|
|
|
|
+ wx.navigateTo({
|
|
|
|
+ url: `/pages/login/login`
|
|
|
|
+ })
|
|
|
|
+ }
|
|
}
|
|
}
|
|
})
|
|
})
|