|
@@ -39,8 +39,21 @@ create({
|
39
|
39
|
}]
|
40
|
40
|
},
|
41
|
41
|
methods: {
|
|
42
|
+ checkUserLogin() {
|
|
43
|
+ if (!this.data.userInfo.hasReg) {
|
|
44
|
+ wx.showToast({
|
|
45
|
+ title: '请先登陆再进行操作',
|
|
46
|
+ icon: 'none',
|
|
47
|
+ })
|
|
48
|
+ return false
|
|
49
|
+ }
|
|
50
|
+ return true
|
|
51
|
+ },
|
42
|
52
|
ListTap(e) { // 用户选项点击事件
|
43
|
53
|
if (e.target.dataset.type === 0) { // 个人资料
|
|
54
|
+ if(!this.checkUserLogin()){
|
|
55
|
+ return
|
|
56
|
+ }
|
44
|
57
|
wx.navigateTo({
|
45
|
58
|
url: '/pages/UserCenter/UserInfo/index'
|
46
|
59
|
})
|
|
@@ -49,10 +62,16 @@ create({
|
49
|
62
|
index: 2
|
50
|
63
|
})
|
51
|
64
|
} else if (e.target.dataset.type === 2) { // 预约记录
|
|
65
|
+ if (!this.checkUserLogin()) {
|
|
66
|
+ return
|
|
67
|
+ }
|
52
|
68
|
wx.navigateTo({
|
53
|
69
|
url: '/pages/AppointmentHistory/index'
|
54
|
70
|
})
|
55
|
71
|
} else if (e.target.dataset.type === 3) { // 收藏的楼盘
|
|
72
|
+ if (!this.checkUserLogin()) {
|
|
73
|
+ return
|
|
74
|
+ }
|
56
|
75
|
wx.navigateTo({
|
57
|
76
|
url: '/pages/MyCollectEstateList/index'
|
58
|
77
|
})
|