From 2e15506325e4636ef6cec0cce8e67924a2177059 Mon Sep 17 00:00:00 2001 From: dzc <2388224167@qq.com> Date: Mon, 20 Jan 2025 14:07:39 +0800 Subject: [PATCH] =?UTF-8?q?feat:=E6=94=AF=E4=BB=98=E6=96=B9=E5=BC=8F?= =?UTF-8?q?=E5=88=A4=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env | 4 ++-- src/pages/wallet/recharge.vue | 6 +++++- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/.env b/.env index 531e670..8625bde 100644 --- a/.env +++ b/.env @@ -23,9 +23,9 @@ VITE_OAUTH2_APP_CLIENT='mini:mini' VITE_IMAGE_BASE_PATH = http://59.202.170.152:81/api # 信创线上 # ******************** start 开发环境 start ******************** -VITE_APP_DEV_SERVICE = http://59.202.170.152:81/api # 信创线上 +# VITE_APP_DEV_SERVICE = http://59.202.170.152:81/api # 信创线上 # VITE_APP_DEV_SERVICE = https://stgl.pj.gov.cn/app-api -# VITE_APP_DEV_SERVICE = http://192.168.101.29:9999 # 邓-本地 +VITE_APP_DEV_SERVICE = http://192.168.101.29:9999 # 邓-本地 # VITE_APP_DEV_SERVICE = http://127.0.0.1:9999 # VITE_APP_DEV_SERVICE = http://123.156.230.15:8089/api # VITE_APP_DEV_SERVICE = http://localhost:9999 diff --git a/src/pages/wallet/recharge.vue b/src/pages/wallet/recharge.vue index 36b6627..a0ac185 100644 --- a/src/pages/wallet/recharge.vue +++ b/src/pages/wallet/recharge.vue @@ -16,7 +16,7 @@ const data = { const state = reactive({ walletId: null, - currentPayType: "0", + currentPayType: null, currentRecharge: 0, userInfo: {}, detail: {}, @@ -56,6 +56,10 @@ const doPay = async () => { uni.showToast({ title: "请选择充值金额", icon: "none" }) return } + if (state.currentPayType == undefined) { + uni.showToast({ title: "请选择支付方式", icon: "none" }) + return + } try { uni.showLoading({ title: "充值中...", mask: true }) const targetRecharge = state.rechargeList[state.currentRecharge]