Browse Source

ui(首页): 更新首页文案(过审测试)

await 7 months ago
parent
commit
a123d85cc7
1 changed files with 12 additions and 11 deletions
  1. 12 11
      src/pages/home/index.tsx

+ 12 - 11
src/pages/home/index.tsx

@@ -32,24 +32,25 @@ const Home = () => {
   
   const channelResult = useRequest(() => {
     return UserApi.homeFetchChannel({
-      data: { channelCode: 'statistic', refer: '' },
+      data: { channelCode: 'txxcx04', refer: '' },
     }).toData().then(res => {
       setBottomRemark(res.bottom_remark)
     })
   });
 
   const postJumpUrlResult = () => {
-    const params = parseQueryParams(indexInfoResult.data.link)
-    return UserApi.getJumpUrlPost({
-      loading: true,
-      data: { appId: APPConfig.APPID, channelCode: params.channelCode, productId: params.productId }
-    }).toData().then(res => {
-      console.log("获取跳转链接结果", res)
-      RouteUtil.toWebViewPage({ url: res?.adJumpLink })
-    })
+          const params = parseQueryParams(indexInfoResult.data.link)
+          return UserApi.getJumpUrlPost({
+            loading: true,
+            data: { appId: APPConfig.APPID, channelCode: params.channelCode, productId: params.productId }
+          }).toData().then(res => {
+            console.log("获取跳转链接结果", res)
+            RouteUtil.toWebViewPage({ url: res?.adJumpLink })
+          })
   }
 
   const loginFlowHandler = () => {
+    UserHelper.UpdateOpenId()
     if (isOuterLink(indexInfoResult.data.link)) {
       postJumpUrlResult()
     } else {
@@ -108,7 +109,7 @@ const Home = () => {
               },
             });
           }}
-          >立即申请额度</Button>) : (<Button openType='getPhoneNumber' 
+          >立即申请</Button>) : (<Button openType='getPhoneNumber' 
             onGetPhoneNumber={async (e) => {
           if (e.detail.code && await UserHelper.userWxLogin(e.detail.code) === true) {
             // indexInfoResult.data &&
@@ -189,7 +190,7 @@ const Home = () => {
               </Flex>
               <View className='index-back-btn-container'>
                 <View className='index-back-btn-tip'>
-                  现在申请,额度激活
+                  现在申请,快速评估需求
                 </View>
                 <ApplyButton isLogin={isUserLogin}></ApplyButton>
                 {/* <Button