|
|
@@ -124,6 +124,13 @@ export default {
|
|
|
this.$refs.form1.setRules(this.rules)
|
|
|
},
|
|
|
methods: {
|
|
|
+
|
|
|
+ getUserInfo(){
|
|
|
+ this.$api.getUserInfo().then(res=>{
|
|
|
+ uni.setStorageSync('userInfo',res.data.data)
|
|
|
+ })
|
|
|
+
|
|
|
+ },
|
|
|
// 验证电话号码是否存在
|
|
|
saveSetPhoneData(){
|
|
|
let that = this;
|
|
|
@@ -132,6 +139,7 @@ export default {
|
|
|
uni.showToast({
|
|
|
title: '绑定成功'
|
|
|
})
|
|
|
+ this.getUserInfo()
|
|
|
setTimeout(function() {
|
|
|
// 绑定成功,返回我的页面
|
|
|
uni.switchTab({
|