From 9f4e438a31ce851ccb12830c8fbd72e23aab32c5 Mon Sep 17 00:00:00 2001 From: GaoHao <1210693421@qq.com> Date: Wed, 11 Dec 2024 18:08:56 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=AF=E4=BB=98webview=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- common/config.js | 12 ++++++------ me/detail/detail.nvue | 6 +++++- 2 files changed, 11 insertions(+), 7 deletions(-) diff --git a/common/config.js b/common/config.js index 4c7923a..ef54693 100644 --- a/common/config.js +++ b/common/config.js @@ -1,10 +1,10 @@ -// const ROOTPATH1 = "https://dj-api.hnsiyao.cn/sqx_fast/"; // -// const ROOTPATH = "https://dj-api.hnsiyao.cn/sqx_fast/"; //后台服务域名 -// const ROOTPATH2 = "https://dj-h5.hnsiyao.cn"; //后台服务域名 +const ROOTPATH1 = "https://dj-api.hnsiyao.cn/sqx_fast/"; // +const ROOTPATH = "https://dj-api.hnsiyao.cn/sqx_fast/"; //后台服务域名 +const ROOTPATH2 = "https://dj-h5.hnsiyao.cn"; //后台服务域名 -const ROOTPATH1 = "https://video.hnsiyao.cn/sqx_fast/"; // -const ROOTPATH = "https://video.hnsiyao.cn/sqx_fast/"; //后台服务域名 -const ROOTPATH2 = "https://video-h5.hnsiyao.cn"; //后台服务域名 +// const ROOTPATH1 = "https://video.hnsiyao.cn/sqx_fast/"; // +// const ROOTPATH = "https://video.hnsiyao.cn/sqx_fast/"; //后台服务域名 +// const ROOTPATH2 = "https://video-h5.hnsiyao.cn"; //后台服务域名 module.exports = { APIHOST: ROOTPATH, diff --git a/me/detail/detail.nvue b/me/detail/detail.nvue index ba0bae2..66884df 100644 --- a/me/detail/detail.nvue +++ b/me/detail/detail.nvue @@ -749,7 +749,11 @@ } else if (this.openWay == 1) { // APP支付宝支付 httpsRequest.getT("/app/wuyou/payOrder/"+this.ordersId, {}).then(ret => { - plus.runtime.openURL(ret.data.h5Url) + // plus.runtime.openURL(ret.data.h5Url) + + uni.navigateTo({ + url: '/pages/index/webView?url=' + ret.data.h5Url + }); // this.isCheckPay(ret.code, 'wxpay', JSON.stringify(ret.data)); }); } else if (this.openWay == 3) {