Commit a12146df authored by hewenhao's avatar hewenhao

feat: 提现传账户i

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