Commit d9d91576 authored by 前端-钟卫鹏's avatar 前端-钟卫鹏

fix: 订单通联支付添加发送尾号文字提示

parent 77e2e162
......@@ -15,6 +15,7 @@ import { getSettleAccountsCommonCorporateAccountDetail } from '@/services/Settle
import { getPayAssetAccountBalance, getPayCreditGetCredit, getPayEAccountAllInPayGetUserBalance, getPayEAccountAllInPayReSendPayCode } from '@/services/PayV2Api'
import useCountDown from '@/utils/hooks'
import { postPayEAccountAllInPayConfirmPay } from '@/services/PayV2Api/id13209'
import { getPayEAccountAllInPayGetAccountDetail } from '@/services/PayV2Api/id13209'
const intl = getIntl();
export interface OrderPayModalProps {
currentRef: any,
......@@ -61,6 +62,7 @@ const OrderPayModal: React.FC<OrderPayModalProps> = (props) => {
const [fileLists, setFileLists] = useState<any>([])
const [tradeCode, setTradeCode] = useState<string>('') // 交易号
const [payResultVisible, setPayResultVisible] = useState<boolean>(false)
const [phoneEndNumber, setPhoneEndNumber] = useState('')
useEffect(() => {
if (currentRef) {
......@@ -272,6 +274,12 @@ const OrderPayModal: React.FC<OrderPayModalProps> = (props) => {
setIsSpin(false)
})
}
// 查询e账户手机尾号
getPayEAccountAllInPayGetAccountDetail().then(res => {
if(res.code === 1000) {
setPhoneEndNumber(res.data.phone)
}
})
setCurrent(99)
setPayStep(1)
} else if(checked.id === 14) {
......@@ -800,6 +808,16 @@ const OrderPayModal: React.FC<OrderPayModalProps> = (props) => {
{checked?.channel}
</span>
</p>
{
checked.id === 15 && <p>
<span className={style.title}>
{intl.formatMessage({id: 'transaction_components.zhanghukeyongyueyuan'})}
</span>
<span className={style.amount}>
{balanceInfo?.toFixed(2)}
</span>
</p>
}
<p>
<span className={style.title}>
{intl.formatMessage({id: 'transaction_components.zhifujineyuan'})}
......@@ -825,7 +843,7 @@ const OrderPayModal: React.FC<OrderPayModalProps> = (props) => {
>
<Form.Item
label="验证码"
// extra={extra}
extra={phoneEndNumber ? `已将验证码发送至您尾号为${phoneEndNumber.substr(7, 4)}的手机号` : ''}
style={{textAlign: "left"}}
>
<Row gutter={8}>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment