|
|
@@ -257,7 +257,7 @@ Page({
|
|
|
console.log('untel',res.data.user.tel)
|
|
|
|
|
|
|
|
|
- if(res.data.user.tel == '' && that.data.bindTelfirst == 0){
|
|
|
+ if(that.data.userInfo != 'nologin' && res.data.user.tel == '' && that.data.bindTelfirst == 0){
|
|
|
that.setData({
|
|
|
bindTelfirst:1
|
|
|
})
|
|
|
@@ -370,9 +370,40 @@ Page({
|
|
|
_request.$get(url, params, success)
|
|
|
},
|
|
|
toInviteList () {
|
|
|
- wx.navigateTo({
|
|
|
- url: '/packageUser/pages/user/invite/invite'
|
|
|
- })
|
|
|
+ var that = this;
|
|
|
+ if(that.data.info.user.tel == ''){
|
|
|
+ wx.navigateTo({
|
|
|
+ url: '/packageUser/pages/user/bind/bind'
|
|
|
+ })
|
|
|
+
|
|
|
+ wx.showToast({
|
|
|
+ title: '请先绑定手机号~',
|
|
|
+ icon: 'none',
|
|
|
+ duration: 2000
|
|
|
+ })
|
|
|
+ }else{
|
|
|
+ wx.navigateTo({
|
|
|
+ url: '/packageUser/pages/user/invite/invite'
|
|
|
+ })
|
|
|
+ }
|
|
|
+
|
|
|
+ },
|
|
|
+ checkbindtel(){
|
|
|
+ var that = this;
|
|
|
+ if(that.data.info.user.tel == ''){
|
|
|
+ setTimeout(function(){
|
|
|
+ wx.navigateTo({
|
|
|
+ url: '/packageUser/pages/user/bind/bind'
|
|
|
+ })
|
|
|
+
|
|
|
+ wx.showToast({
|
|
|
+ title: '请先绑定手机号~',
|
|
|
+ icon: 'none',
|
|
|
+ duration: 2000
|
|
|
+ })
|
|
|
+ },500)
|
|
|
+
|
|
|
+ }
|
|
|
},
|
|
|
toCashList () {
|
|
|
if(this.data.info.user.tel == ''){//未绑定手机号
|