|
|
@@ -19,7 +19,8 @@ Page({
|
|
|
info: {},
|
|
|
show: 0,
|
|
|
checkhead:true,
|
|
|
- wxlogincode:''
|
|
|
+ wxlogincode:'',
|
|
|
+ bindTelfirst:0
|
|
|
},
|
|
|
onLoad: function () {
|
|
|
//// console.log(options)
|
|
|
@@ -203,6 +204,8 @@ Page({
|
|
|
// wx.navigateTo({
|
|
|
// url: '/packageUser/pages/user/bind/bind'
|
|
|
// })
|
|
|
+
|
|
|
+
|
|
|
}
|
|
|
},
|
|
|
getUserProfile:function(){
|
|
|
@@ -240,6 +243,7 @@ Page({
|
|
|
this.check()
|
|
|
},
|
|
|
info(){
|
|
|
+ console.log('oninfo');
|
|
|
var that = this
|
|
|
var url = 'v1/user/info'
|
|
|
var params = {}
|
|
|
@@ -248,8 +252,27 @@ Page({
|
|
|
that.setData({
|
|
|
info: res.data,
|
|
|
show: res.data.wx_user?res.data.wx_user.show_invite_mode:'',
|
|
|
- bindTel: res.data.tel ? true : false
|
|
|
+ bindTel: res.data.user.tel ? true : false
|
|
|
})
|
|
|
+ console.log('untel',res.data.user.tel)
|
|
|
+
|
|
|
+
|
|
|
+ if(res.data.user.tel == '' && that.data.bindTelfirst == 0){
|
|
|
+ that.setData({
|
|
|
+ bindTelfirst:1
|
|
|
+ })
|
|
|
+ wx.navigateTo({
|
|
|
+ url: '/packageUser/pages/user/bind/bind'
|
|
|
+ })
|
|
|
+
|
|
|
+ wx.showToast({
|
|
|
+ title: '请先绑定手机号~',
|
|
|
+ icon: 'none',
|
|
|
+ duration: 2000
|
|
|
+ })
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
}
|
|
|
_request.$get(url, params, success)
|
|
|
},
|