From 73ac6d02a2223f19201426f3c366661d4a8e41bf Mon Sep 17 00:00:00 2001
From: wupengfei <834520024@qq.com>
Date: 星期二, 25 二月 2025 17:14:37 +0800
Subject: [PATCH] Merge branch 'master' of http://120.26.58.240:8888/r/LifePaymentFront

---
 apps/taro/src/stores/modules/user.ts |   15 +++++++++++++++
 1 files changed, 15 insertions(+), 0 deletions(-)

diff --git a/apps/taro/src/stores/modules/user.ts b/apps/taro/src/stores/modules/user.ts
index cab0747..f6d8ac5 100644
--- a/apps/taro/src/stores/modules/user.ts
+++ b/apps/taro/src/stores/modules/user.ts
@@ -36,6 +36,9 @@
 
   virtualUserId?: string;
   virtualPhoneNumber?: string;
+
+  wxCode?: string;
+  wxOpenId?: string;
 }
 
 const goAuthorization = debounce(
@@ -73,6 +76,9 @@
 
       virtualUserId: storageVirtualUser?.virtualUserId ?? '',
       virtualPhoneNumber: storageVirtualUser?.virtualPhoneNumber ?? '',
+
+      wxCode: '',
+      wxOpenId: '',
     };
   },
   getters: {
@@ -235,6 +241,13 @@
       setUserDetail(detail);
     },
 
+    setWxCode(code: string) {
+      this.wxCode = code;
+    },
+    setWxOpenId(openId: string) {
+      this.wxOpenId = openId;
+    },
+
     resetState() {
       this.userInfo = null;
       this.token = '';
@@ -242,6 +255,8 @@
       this.userDetail = null;
       this.virtualUserId = '';
       this.virtualPhoneNumber = '';
+      this.wxCode = '';
+      this.wxOpenId = '';
       removeUserInfo();
       removeUserDetail();
       removeStorageVirtualUserId();

--
Gitblit v1.9.1