Преглед на файлове

fix(跳转页面): 修复接口调用顺序

qq12rrr преди 2 седмици
родител
ревизия
8f3e794747

BIN
.swc/plugins/v7_windows_x86_64_0.104.8/3bc91270c341e7148ae6dcf882777fb3028cb2baa6f210123a2146464ec3a8de


+ 1 - 1
config/prod.js

@@ -7,7 +7,7 @@ module.exports = {
     // HOST: '"https://api.bicredit.xin"',
     HOST: '"https://api.hryk.net"',
     // "HOST": '"http://192.168.0.168:810"',
-    APPID: '"422"',
+    APPID: '"458"',
   },
   mini: {},
   h5: {

BIN
src/assets/logo.png


+ 4 - 4
src/pages/home/index.tsx

@@ -53,12 +53,12 @@ const Home = () => {
           })
   }
 
-  const loginFlowHandler = () => {
-    UserHelper.UpdateOpenId()
+  const loginFlowHandler = async () => {
+    await UserHelper.UpdateOpenId()
     if (isOuterLink(indexInfoResult.data.link)) {
-      postJumpUrlResult()
+      await postJumpUrlResult()
     } else {
-      RouteUtil.toWebViewPage({ url: indexInfoResult.data.link })
+      await RouteUtil.toWebViewPage({ url: indexInfoResult.data.link })
     }
   }
 

+ 4 - 4
src/pages/user/components/LoginBox.tsx

@@ -41,12 +41,12 @@ const LoginBox = forwardRef((props,ref) => {
     })
 }
 
-  const loginFlowHandler = () => {
-    UserHelper.UpdateOpenId()
+  const loginFlowHandler = async () => {
+    await UserHelper.UpdateOpenId()
     if (isOuterLink(indexInfoResult?.data.link)) {
-      postJumpUrlResult()
+      await postJumpUrlResult()
     } else {
-      RouteUtil.toWebViewPage({ url: indexInfoResult?.data.link })
+      await RouteUtil.toWebViewPage({ url: indexInfoResult?.data.link })
     }
   }
 

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

@@ -91,7 +91,7 @@ const Mine = (props: PropsWithChildren<IMineProps>) => {
           </Padding>
           <View className="mine-box">
             <Text className='mine-login'>{userName}</Text>
-            <Text className='mine-text'>欢迎来到诚融~</Text>
+            <Text className='mine-text'>欢迎来到诚融~</Text>
           </View>
         </View> :
           <View
@@ -106,7 +106,7 @@ const Mine = (props: PropsWithChildren<IMineProps>) => {
           </Padding>
           <View className="mine-box">
             <Text className='mine-login'>登录/注册</Text>
-            <Text className='mine-text'>欢迎来到诚融~</Text>
+            <Text className='mine-text'>欢迎来到诚融~</Text>
           </View>
         </View>
       }