|
@@ -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
|