diff --git a/src/App.vue b/src/App.vue index f35da2f..73a0642 100644 --- a/src/App.vue +++ b/src/App.vue @@ -40,4 +40,4 @@ body { //background-color: #f8f8f8; -webkit-font-smoothing: antialiased; } - \ No newline at end of file + diff --git a/src/views/index/serveList/index.vue b/src/views/index/serveList/index.vue index fdd6586..6693037 100644 --- a/src/views/index/serveList/index.vue +++ b/src/views/index/serveList/index.vue @@ -65,6 +65,7 @@ :placeholder="$t('app.pleaseWithdrawalAmount')" /> { } const saveUserInfoBtn = () => { - - if (withdrawCode.value) { + if (!withdrawCode.value && openWithdrawCode.value) { + showToast(t('app.enter') + t('app.withdrawCode')) + } else { getBorrowWithdraw({ withdrawAmount: withdrawAmount.value, withdrawCode: withdrawCode.value, @@ -180,8 +184,6 @@ const saveUserInfoBtn = () => { path: '/serveList' }) }) - } else { - showToast(t('app.enter') + t('app.withdrawCode')) } // showConfirmDialog({ // title: '提示', @@ -195,10 +197,17 @@ const saveUserInfoBtn = () => { // }); } +const _getSetting = () => { + getSetting().then(res => { + openWithdrawCode.value = res.openWithdrawCode + }) +} + onMounted(() => { _getCustomerInfo() _getStepBorrow() + _getSetting() })