|
@@ -30,6 +30,8 @@ import React, { useContext, useMemo, useState, useRef } from "react";
|
|
|
import LoginBox from "../user/components/LoginBox";
|
|
|
import BottomBarContext from "@/context/bottomBarContext";
|
|
|
|
|
|
+import Taro from "@tarojs/taro";
|
|
|
+
|
|
|
const Home = () => {
|
|
|
const channelCode: any = StorageUtil.get(EStorage.channelCode) || "";
|
|
|
|
|
@@ -59,6 +61,7 @@ const Home = () => {
|
|
|
.toData()
|
|
|
.then((res) => {
|
|
|
setBottomRemark(res.bottom_remark);
|
|
|
+ return res;
|
|
|
});
|
|
|
});
|
|
|
|
|
@@ -119,6 +122,14 @@ const Home = () => {
|
|
|
});
|
|
|
};
|
|
|
|
|
|
+ const toPhone = () => {
|
|
|
+ const phone = channelResult.data?.customerServiceInfo || "400-003-9350";
|
|
|
+
|
|
|
+ Taro.makePhoneCall({
|
|
|
+ phoneNumber: phone,
|
|
|
+ });
|
|
|
+ };
|
|
|
+
|
|
|
const imgBackStyle = useMemo(() => {
|
|
|
return {
|
|
|
...ImageUtil.calculationHeight(332 / 170, (screenWidth - 64 + 16) / 2),
|
|
@@ -395,6 +406,20 @@ const Home = () => {
|
|
|
/>
|
|
|
</Padding>
|
|
|
|
|
|
+ <Flex
|
|
|
+ justifyContent="center"
|
|
|
+ alignItem="center"
|
|
|
+ rowGap={24}
|
|
|
+ className="customer-service-conenter"
|
|
|
+ >
|
|
|
+ <View className="customer-service-box" onClick={toPhone}>
|
|
|
+ <Image className="img" src={require(`../../assets/customer.svg`)} />
|
|
|
+ <Text className="span">
|
|
|
+ 客服:{channelResult.data?.customerServiceInfo || "400-003-9350"}
|
|
|
+ </Text>
|
|
|
+ </View>
|
|
|
+ </Flex>
|
|
|
+
|
|
|
<Flex
|
|
|
justifyContent="center"
|
|
|
alignItem="center"
|
|
@@ -406,11 +431,6 @@ const Home = () => {
|
|
|
{/* { bottomRemark } */}
|
|
|
{/* 郑重声明:平台只提供贷款咨询和推荐服务,放款由银行或金融机构进行,贷款额度、放款时间以资金分审批结果为准,所有贷款申请在未成功贷款前绝不收取任何费用,为了保证您的资金安全,请不要相信任何要求您支付费用的信息、邮件、电话等不实信息。 */}
|
|
|
</View>
|
|
|
- <View>
|
|
|
- 如遇问题请向
|
|
|
- {channelResult.data?.customerServiceInfo || "400-003-9350"}
|
|
|
- 举报投诉,平台将及时为您解决!
|
|
|
- </View>
|
|
|
</Flex>
|
|
|
</ScrollView>
|
|
|
|