Browse Source

perf(小程序) 二维码替换,手机号登录时,弹框标题修改,【我的】页面跳转文章调整

qq12rrr 2 months ago
parent
commit
27b8056454

BIN
src/assets/official-account/qrCode.png


+ 22 - 2
src/pages/user/components/LoginBox.tsx

@@ -5,6 +5,7 @@ import APPConfig from "@/config";
 import UserHelper from "@/helper/userHelper";
 import RouteUtil from "@/utils/routeUtil";
 import StorageUtil, { EStorage } from "@/utils/storageUtil";
+import Taro from "@tarojs/taro";
 import { Image, View, Text, Input } from "@tarojs/components";
 import { useRequest } from "ahooks";
 import {
@@ -19,7 +20,7 @@ import ctyptoUtil from "@/utils/crypto";
 
 // @ts-ignore
 const LoginBox = forwardRef((props, ref) => {
-  const channelCode = StorageUtil.get(EStorage.channelCode) || "";
+  const channelCode: any = StorageUtil.get(EStorage.channelCode) || "";
 
   useImperativeHandle(ref, () => ({
     handleOpen() {
@@ -85,6 +86,7 @@ const LoginBox = forwardRef((props, ref) => {
     setChecked(false);
   };
   const [showNum, setShowNum] = useState(0);
+  let appName: any = useState("惠融钱包");
   const showNumChange = (val) => {
     if (!checked) {
       showToast({
@@ -94,6 +96,24 @@ const LoginBox = forwardRef((props, ref) => {
       });
       return;
     }
+
+    const appInfo: any = Taro.getAccountInfoSync();
+
+    const appId = appInfo.appId;
+
+    switch (appId) {
+      case "wxc7ed88182aa77a68":
+        appName = "惠融钱包";
+        break;
+      case "wxf7762282683395d1":
+        appName = "诚易融";
+        break;
+      default:
+        // 默认惠融钱包
+        appName = "惠融钱包";
+        break;
+    }
+
     setShowNum(val);
   };
   const [checked, setChecked] = useState(false);
@@ -388,7 +408,7 @@ const LoginBox = forwardRef((props, ref) => {
       ) : (
         <View className="login-introduce phone-login">
           <View className="title">
-            <Text className="text-title">登录诚易融</Text>
+            <Text className="text-title">登录{appName}</Text>
             <View onClick={handleClose} className="float">
               <Image
                 src={require("@/assets/close.png")}

+ 1 - 1
src/pages/user/mine/index.tsx

@@ -271,7 +271,7 @@ const Mine = (props: PropsWithChildren<IMineProps>) => {
           onClick={() => {
             // https://huirong.bicredit.xin/
             RouteUtil.toWebViewPage({
-              url: "https://mp.weixin.qq.com/s/4umQqPbPGfCgXqCizeXqKA",
+              url: "https://mp.weixin.qq.com/s/mN4BDqA5iyUDyJse1u_BEA",
             });
           }}
           src={require("@/assets/new-edition/wechat-official.png")}