|
@ -231,36 +231,8 @@ |
|
|
this.$store.commit('getUserInfo') |
|
|
this.$store.commit('getUserInfo') |
|
|
//判断如果是登录状态则获取信息 |
|
|
//判断如果是登录状态则获取信息 |
|
|
this.getUserCenterData(); |
|
|
this.getUserCenterData(); |
|
|
|
|
|
|
|
|
}, |
|
|
}, |
|
|
methods: { |
|
|
methods: { |
|
|
|
|
|
|
|
|
headBtn() { |
|
|
|
|
|
let self = this |
|
|
|
|
|
uni.showModal({ |
|
|
|
|
|
title: '演示切换角色之后的效果', |
|
|
|
|
|
success(res) { |
|
|
|
|
|
if (res.confirm) { |
|
|
|
|
|
self.$store.state.shop = !self.$store.state.shop |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
}) |
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 联系客服按钮回调 |
|
|
|
|
|
contactUs() { |
|
|
|
|
|
this.show = true |
|
|
|
|
|
}, |
|
|
|
|
|
confirm() { |
|
|
|
|
|
this.show = false |
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
cancle() { |
|
|
|
|
|
this.show = false |
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
//获取个人中心基础信息的接口 |
|
|
//获取个人中心基础信息的接口 |
|
|
getUserCenterData(){ |
|
|
getUserCenterData(){ |
|
|
this.$api('getUserCenterData',{}, res =>{ |
|
|
this.$api('getUserCenterData',{}, res =>{ |
|
|