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]