From 915424730f27445da2e8de13b62e77179cc1a15a Mon Sep 17 00:00:00 2001
From: zhengyiming <540361168@qq.com>
Date: 星期一, 18 八月 2025 17:07:39 +0800
Subject: [PATCH] fix: 关闭移动充值渠道,打开电信充值渠道
---
apps/taro/src/stores/modules/user.ts | 14 +++++++++-----
1 files changed, 9 insertions(+), 5 deletions(-)
diff --git a/apps/taro/src/stores/modules/user.ts b/apps/taro/src/stores/modules/user.ts
index 7b10216..65c9724 100644
--- a/apps/taro/src/stores/modules/user.ts
+++ b/apps/taro/src/stores/modules/user.ts
@@ -21,6 +21,8 @@
import { getAccountInfoFromAccessToken, AccountInfo, setOSSLink } from '@life-payment/utils';
import DefaultAvatar from '@/assets/components/icon-default-avatar.png';
import { myClient } from '@/constants/query';
+import { blLifeRecharge } from '@/utils/blLifeRecharge';
+import { LifePayPhoneMesssageCodeLoginOutput } from '@life-payment/core-vue';
interface UserState {
userInfo?: Nullable<API.IdentityModelTokenCacheItem>;
@@ -38,6 +40,8 @@
wxCode?: string;
wxOpenId?: string;
+
+ virtualUserInfo?: LifePayPhoneMesssageCodeLoginOutput;
}
const goAuthorization = debounce(
@@ -140,7 +144,7 @@
if (res) {
this.loginVirtualSuccess({
- virtualUserId: res,
+ virtualUserId: res.userId,
virtualPhoneNumber: data.phoneNumber,
});
}
@@ -174,6 +178,7 @@
async loginVirtualSuccess(virtualUserRes: LoginVirtualRes) {
try {
this.setVirtualUserId(virtualUserRes);
+ this.getCurrentUserInfo();
} catch (error) {}
},
@@ -218,11 +223,10 @@
async getCurrentUserInfo() {
try {
- // let res = await userServices.getUserInfo({ showLoading: false });
+ // let res = await blLifeRecharge.accountModel.getUserInfo(this.virtualUserId);
// if (res) {
- // res.originalAvatarUrl = res.avatarUrl;
- // res.avatarUrl = res.avatarUrl ? setOSSLink(res.avatarUrl) : DefaultAvatar;
- // this.setUserDetail(res);
+ // // this.setUserDetail(res);
+ // this.virtualUserInfo = res;
// this.firstGetUserDetail = false;
// }
} catch (error) {}
--
Gitblit v1.9.1