|
@@ -111,7 +111,7 @@ export default {
|
|
|
authorize.getSetting().then(res => {
|
|
|
//0:为取消授权 1:为已授权 2:为未操作
|
|
|
if (res == 1) {
|
|
|
- this.getWxAuthorize()
|
|
|
+ this.GetWxAuthorize()
|
|
|
}
|
|
|
})
|
|
|
},
|
|
@@ -121,14 +121,14 @@ export default {
|
|
|
methods: {
|
|
|
...mapMutations(['login', 'logout']),
|
|
|
// 获取用户信息
|
|
|
- async getWxAuthorize() {
|
|
|
+ async GetWxAuthorize() {
|
|
|
// const wechatCode = await
|
|
|
const wechatCode = await authorize.getCode('weixin')
|
|
|
// 初始化用户状态
|
|
|
this.UserService.userInfoLogin({code:wechatCode}).then(response=>{
|
|
|
this.login(response.data);
|
|
|
this.$store.commit('updateStatus',response.data)
|
|
|
- this.getUserInfoPersonal(response.data.organizeId)
|
|
|
+ this.GetUserInfoPersonal(response.data.organizeId)
|
|
|
}).catch(error =>{
|
|
|
uni.setStorage({//缓存游客用户openid
|
|
|
key: 'openid',
|
|
@@ -137,7 +137,7 @@ export default {
|
|
|
this.logout()
|
|
|
})
|
|
|
},
|
|
|
- getUserInfoPersonal(organizeId){//初始化个人中心数据
|
|
|
+ GetUserInfoPersonal(organizeId){//初始化个人中心数据
|
|
|
this.UserService.userInfoPersonal({organizeId:organizeId}).then(response=>{
|
|
|
this.organizeName = response.data.organizeName
|
|
|
this.paymentCount = this.showBadge(response.data.paymentCount) //待付款
|
|
@@ -193,7 +193,7 @@ export default {
|
|
|
onPullDownRefresh() {
|
|
|
//下拉刷新
|
|
|
if (this.hasLogin) {
|
|
|
- this.getWxAuthorize()
|
|
|
+ this.GetWxAuthorize()
|
|
|
uni.stopPullDownRefresh()
|
|
|
} else {
|
|
|
uni.stopPullDownRefresh()
|