Browse Source

feat: 主页底部文案新增换行

await 10 months ago
parent
commit
607e8f763e
1 changed files with 4 additions and 2 deletions
  1. 4 2
      src/pages/home/index.tsx

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

@@ -30,7 +30,7 @@ const Home = () => {
   
   const channelResult = useRequest(() => {
     return UserApi.homeFetchChannel({
-      data: { channelCode: 'txxcx01', refer: '' },
+      data: { channelCode: 'txxcx07', refer: '' },
     }).toData().then(res => {
       setBottomRemark(res.bottom_remark)
     })
@@ -69,6 +69,7 @@ const Home = () => {
     );
   };
 
+  const BottomRemark = () => bottomRemark.split(';').map(text => <View style={{ margin: '4px 0' }}>{text}</View>)
 
   const ApplyButton = ({ isLogin }) => {
     console.log("isLogin", isLogin)
@@ -246,7 +247,8 @@ const Home = () => {
           className='index-bottom-tip'
         >
           <View>
-            { bottomRemark }
+            <BottomRemark />
+            {/* { bottomRemark } */}
             {/* 郑重声明:平台只提供贷款咨询和推荐服务,放款由银行或金融机构进行,贷款额度、放款时间以资金分审批结果为准,所有贷款申请在未成功贷款前绝不收取任何费用,为了保证您的资金安全,请不要相信任何要求您支付费用的信息、邮件、电话等不实信息。 */}
           </View>
           <View>如遇问题请向{ channelResult.data?.customerServiceInfo || '400-003-9350'}举报投诉,平台将及时为您解决!</View>