From c118865ba59776cdb72f3ecf842e01f7cdc9170d Mon Sep 17 00:00:00 2001 From: huliyong <2783385703@qq.com> Date: Fri, 13 Jun 2025 16:42:46 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=B0=86=E7=8E=AF=E5=A2=83=E9=85=8D?= =?UTF-8?q?=E7=BD=AE=E6=9B=B4=E6=94=B9=E4=B8=BA=E7=94=9F=E4=BA=A7=E7=8E=AF?= =?UTF-8?q?=E5=A2=83=E5=B9=B6=E4=BF=AE=E5=A4=8D=E6=8F=90=E7=8E=B0=E9=94=99?= =?UTF-8?q?=E8=AF=AF=E6=8F=90=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修改config.js中的环境变量从'dev'到'prod'以切换到生产环境 在withdraw.vue中更新提现失败时的错误提示,使用后端返回的message --- config.js | 2 +- pages_order/mine/withdraw.vue | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/config.js b/config.js index 2169d93..d828d63 100644 --- a/config.js +++ b/config.js @@ -7,7 +7,7 @@ import uvUI from '@/uni_modules/uv-ui-tools' Vue.use(uvUI); // 当前环境 -const type = 'dev' +const type = 'prod' // 环境配置 diff --git a/pages_order/mine/withdraw.vue b/pages_order/mine/withdraw.vue index 03061d5..152917d 100644 --- a/pages_order/mine/withdraw.vue +++ b/pages_order/mine/withdraw.vue @@ -203,12 +203,12 @@ this.form.money = '' this.form.name = '' } - }else { - uni.showToast({ - title: '提现只能是整数必须大于1!', - icon: 'none' - }) - } + }else{ + uni.showToast({ + title: res.message, + icon: 'none' + }) + } }) },