Commit a12146df authored by hewenhao's avatar hewenhao

feat: 提现传账户i

parent dab3ad0c
......@@ -49,6 +49,7 @@ export interface BonusAccountResponse {
addTotal: number;
withdrawedTotal: number;
withdrawAccount: string;
withdrawAccountId: string;
withdrawableTotal: number;
errCode: string;
}
......
......@@ -46,9 +46,9 @@
<label>-¥{{ item.amountChange }}</label>
</li>
<li v-if="item.bizType === BizType.ORDER">
<span v-for="(className, index) in item.className" :key="className + index">{{
className
}}</span>
<div v-for="(className, index) in item.className" :key="className + index">
{{ className }}
</div>
</li>
<li
v-if="item.bizType === BizType.ORDER"
......
......@@ -73,7 +73,7 @@
</van-cell>
<div class="bouns-record">
<van-row>
<van-col span="12" class="tip">&emsp;奖励金提现金额</van-col>
<van-col span="12" class="tip">&emsp;奖励金提现记录</van-col>
<van-col span="12" class="tip-money" style="text-align: right; font-weight: 550"
>总计:{{ bonusAccount?.withdrawedTotal.toFixed(2) || 0.0 }}元&nbsp;</van-col
>
......@@ -304,7 +304,8 @@ const Bonus = defineComponent({
name: "withdraw",
params: {
withdrawableTotal: state.bonusAccount?.withdrawableTotal || 0,
withdrawAccount: state.bonusAccount?.withdrawAccount || ""
withdrawAccount: state.bonusAccount?.withdrawAccount || "",
withdrawAccountId: state.bonusAccount?.withdrawAccountId || ""
}
});
} else if (state.bonusAccount?.errCode === ErrCode.NOT_BIND) {
......@@ -461,10 +462,8 @@ export default Bonus;
.van-row {
padding: 0 20px;
margin-bottom: 24px;
color: #141414;
.tip {
position: relative;
color: #141414;
font-weight: 550;
font-size: 30px;
&::after {
......
......@@ -148,6 +148,7 @@ interface TencentCaptchaResponse {
interface State {
WithdrawResponse?: WithdrawResponse | object;
timeoutParams?: { timeCounter: number | undefined };
withdrawAccountId: string;
// eslint-disable-next-line @typescript-eslint/no-explicit-any
[key: string]: number | string | boolean | any;
}
......@@ -175,15 +176,17 @@ const Withdraw = defineComponent({
showWithdrawSuccess: false,
mobileTip: "",
withdrawAccount: "",
withdrawAccountId: "",
withdrawResponse: {},
studentDailyWithdrawLimit: 0, // 学生单日提现上限
withdrawing: false,
tencentCaptchPass: false, // 图形验证码是否通过
smsVerifyPass: false
});
const { withdrawableTotal, withdrawAccount } = route.params;
const { withdrawableTotal, withdrawAccount, withdrawAccountId } = route.params;
state.withdrawableTotal = Number(withdrawableTotal);
state.withdrawAccount = withdrawAccount as string;
state.withdrawAccountId = withdrawAccountId as string;
const formatter = value => {
if (value <= 0) return "";
if (value > state.withdrawableTotal) {
......@@ -263,7 +266,8 @@ const Withdraw = defineComponent({
const params = {
studentId: bonusStoreState.value.studentId,
smsVerifyCode: state.smsVerifyCode,
withdrawAmount: state.withdrawAmount
withdrawAmount: state.withdrawAmount,
withdrawAccountId: state.withdrawAccountId
};
const { data } = await withdraw(params);
state.withdrawResponse = data;
......
......@@ -19,7 +19,7 @@ module.exports = {
changOrigin: true //允许跨域
},
"/service": {
target: "http://172.10.62.92",
target: "http://192.168.32.31",
ws: true,
changOrigin: true //允许跨域
},
......
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