|
@@ -185,6 +185,13 @@ Page({
|
|
|
jump(e) {
|
|
|
const { page } = e.currentTarget.dataset
|
|
|
|
|
|
+ if (!this.data.sessionId) {
|
|
|
+ wx.navigateTo({
|
|
|
+ url: `/pages/login/login`
|
|
|
+ })
|
|
|
+ return
|
|
|
+ }
|
|
|
+
|
|
|
wx.navigateTo({
|
|
|
url: `/pages/${page}/${page}`
|
|
|
})
|
|
@@ -234,6 +241,13 @@ Page({
|
|
|
const { page } = e.currentTarget.dataset
|
|
|
const that = this
|
|
|
|
|
|
+ if (!this.data.sessionId) {
|
|
|
+ wx.navigateTo({
|
|
|
+ url: `/pages/login/login`
|
|
|
+ })
|
|
|
+ return
|
|
|
+ }
|
|
|
+
|
|
|
try {
|
|
|
const { errMsg, subscriptionsSetting } = await wx.getSetting({ withSubscriptions: true })
|
|
|
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`
|
|
|
+ })
|
|
|
+ }
|
|
|
}
|
|
|
})
|