...
|
...
|
@@ -175,8 +175,12 @@ |
|
|
// (that.Daili_status == '') && (that.Daili_status_all = false)
|
|
|
let parameters = {
|
|
|
code,
|
|
|
platform: 'wechat'
|
|
|
platform: 'wechat',
|
|
|
|
|
|
};
|
|
|
if( uni.getStorageSync('fenxiaoshanginfo') ){
|
|
|
parameters.pagent_id = JSON.parse(uni.getStorageSync('fenxiaoshanginfo').uid)
|
|
|
}
|
|
|
console.log(parameters);
|
|
|
that.$rqs('/api/common/third', parameters, "GET").then(res => {
|
|
|
if (res.data.code == 1) {
|
...
|
...
|
@@ -191,6 +195,7 @@ |
|
|
uni.setStorageSync("avatar", res.data.data.userinfo.avatar); // 头像
|
|
|
uni.setStorageSync("is_focus", res.data.data.userinfo.is_focus); // 是否关注
|
|
|
uni.setStorageSync("is_members", res.data.data.userinfo.is_members); //是否入会
|
|
|
uni.setStorageSync("udddddd", res.data.data.userinfo.user_id); //是否入会
|
|
|
// 支付
|
|
|
uni.setStorageSync("openid", res.data.data.thirdinfo.openid); //openid
|
|
|
uni.setStorageSync("access_token", res.data.data.thirdinfo.access_token); //access_token
|
...
|
...
|
@@ -207,6 +212,7 @@ |
|
|
}
|
|
|
})
|
|
|
this.getQianbao(); //钱包详情的接口文档,需要登录后调用,渲染用户的钱包
|
|
|
//登录成功,
|
|
|
} else {
|
|
|
uni.showToast({
|
|
|
title: res.data.msg,
|
...
|
...
|
|