|
@@ -29,9 +29,8 @@
|
|
|
</van-field>
|
|
|
<div class="button">
|
|
|
|
|
|
- <van-button @click="() => {
|
|
|
- cashToCardShow = true
|
|
|
- }" class="cash-button" color="#498EF5" round icon="credit-pay" type="primary">提现到银行卡
|
|
|
+ <van-button @click="checkCashCardAmount" class="cash-button" color="#498EF5" round icon="credit-pay"
|
|
|
+ type="primary">提现到银行卡
|
|
|
</van-button>
|
|
|
<van-button @click="() => {
|
|
|
cashToWxShow = true
|
|
@@ -113,6 +112,23 @@ export default defineComponent({
|
|
|
const encTrueName = ref('')
|
|
|
const wxBankListFieldnames = { text: 'bankName', values: 'values', children: 'children' }
|
|
|
const wxBankList = reactive(WXBANKLIST);
|
|
|
+ const checkCashCardAmount = () => {
|
|
|
+ if (Number(amount.value) >= 1000 && Number(amount.value) <= 5000) {
|
|
|
+ cashToCardShow.value = true
|
|
|
+ }
|
|
|
+ else if(Number(amount.value)<1000){
|
|
|
+ cashToCardShow.value = false
|
|
|
+ Toast.fail('银行卡提现不能小于1000')
|
|
|
+
|
|
|
+ }
|
|
|
+ else{
|
|
|
+ cashToCardShow.value = false
|
|
|
+ Toast.fail('银行卡提现不能大于5000')
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+ }
|
|
|
const getBankCode = (val: {
|
|
|
bankCode: number,
|
|
|
bankName: string
|
|
@@ -256,6 +272,7 @@ export default defineComponent({
|
|
|
cashToCardShow,
|
|
|
bgImgIcon,
|
|
|
amount,
|
|
|
+ checkCashCardAmount,
|
|
|
cashToWx,
|
|
|
cashToCard,
|
|
|
getBankCode
|