Browse Source

Merge branch 'fox' of http://175.178.51.79:3000/Augcl/massage-front into fox

pull/1/head
fox 2 months ago
parent
commit
c33e59f630
2 changed files with 5 additions and 21 deletions
  1. +0
    -20
      pages_order/auth/wxUserInfo.vue
  2. +5
    -1
      store/store.js

+ 0
- 20
pages_order/auth/wxUserInfo.vue View File

@ -81,13 +81,11 @@
userInfoForm: {
headImage: '',
nickName: '',
phone : '',
}
};
},
onShow() {},
onLoad() {
this.userInfoForm.phone = this.userInfo.phone || ''
this.userInfoForm.nickName = this.userInfo.nickName || ''
this.userInfoForm.headImage = this.userInfo.headImage || ''
},
@ -99,23 +97,6 @@
this.userInfoForm.headImage = url
})
},
getPhone(e){
this.$api('bindPhone', {
phoneCode : e.detail.code
}, res => {
if(res.code == 200){
let phoneObj = JSON.parse(res.result)
if(phoneObj.errmsg == 'ok'){
this.userInfoForm.phone = phoneObj.phone_info.phoneNumber
}else{
uni.showModal({
title: phoneObj.errmsg
})
}
console.log(phoneObj);
}
})
},
submit() {
let self = this
@ -139,7 +120,6 @@
self.$api('updateInfo', {
avatarUrl : self.userInfoForm.headImage,
nickName : self.userInfoForm.nickName,
phone : self.userInfoForm.phone,
}, res => {
if (res.code == 200) {
uni.reLaunch({


+ 5
- 1
store/store.js View File

@ -69,7 +69,11 @@ const store = new Vuex.Store({
uni.hideLoading()
if (res.code != 200) {
return
// 接口一直返回找不到openid,临时放行
res.result = {
userInfo: {},
}
// return
}
state.userInfo = res.result.userInfo


Loading…
Cancel
Save