|
@@ -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")}
|