From d39fcab0d5ca39e5f0739c77178e68413454ea5c Mon Sep 17 00:00:00 2001 From: yanzai Date: Sat, 27 Sep 2025 22:44:27 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8A=A5=E5=91=8A=E5=A2=9E=E5=8A=A0=20?= =?UTF-8?q?=E5=85=A8=E5=B1=80=20=E5=BC=B9=E5=87=BA=E6=8F=90=E9=86=92?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 北京国康报告对比/api/api.js | 2 +- 北京国康报告对比/api/index.js | 17 +++++++++++++++++ 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/北京国康报告对比/api/api.js b/北京国康报告对比/api/api.js index 504f98b..061229d 100644 --- a/北京国康报告对比/api/api.js +++ b/北京国康报告对比/api/api.js @@ -1,5 +1,5 @@ let url_ = "https://bjgk-api.sixinyun.com"; -const dev =1 +const dev =0 if (dev === 1) { url_ = "http://beijingguokang" } diff --git a/北京国康报告对比/api/index.js b/北京国康报告对比/api/index.js index 9194f05..c67d2b9 100644 --- a/北京国康报告对比/api/index.js +++ b/北京国康报告对比/api/index.js @@ -53,6 +53,23 @@ export const $image = (path) => { export const $response = (response, then, error = () => {}) => { if (response) { if (response.code != 200) { + + + let showModals = [200099] + if (!!showModals.includes(response.code)) { + uni.hideLoading() + uni.showModal({ + title: '提示', + content: response.message, + showCancel: false, + success: function(res) { + + } + }); + } else { + uni.$lu.toast(response.message); + } + uni.$lu.toast(response.message); error() return