From 2ff5ebfd71042121cad90bd9b88c9372dbf8871d Mon Sep 17 00:00:00 2001 From: GaoHao <1210693421@qq.com> Date: Mon, 23 Dec 2024 16:54:38 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=86=E9=A2=91=E7=9B=B8=E5=85=B3=E4=BF=AE?= =?UTF-8?q?=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 ++++++ me/detail/detail.vue | 6 ++++++ pages/task/index.vue | 10 +++++----- 4 files changed, 23 insertions(+), 11 deletions(-) diff --git a/common/config.js b/common/config.js index f8c138b..ff61669 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"; //后台服务域名 // const ROOTPATH1 = "http://192.168.1.5:8100/sqx_fast/"; // // const ROOTPATH = "http://192.168.1.5:8100/sqx_fast/"; //后台服务域名 diff --git a/me/detail/detail.nvue b/me/detail/detail.nvue index f864460..2f79759 100644 --- a/me/detail/detail.nvue +++ b/me/detail/detail.nvue @@ -1056,6 +1056,12 @@ // this.payOrder(res.data.orders.ordersId, res.data.orders.payMoney) } else { + if ( res.status && res.status == 1) { + this.showPay = false //关闭购买选择弹窗 + this.getDataList(this.courseId, this.videoList[this.current].courseDetailsId, + true); + return; + } uni.showToast({ title: res.msg, icon: 'none' diff --git a/me/detail/detail.vue b/me/detail/detail.vue index a671191..d90f1aa 100644 --- a/me/detail/detail.vue +++ b/me/detail/detail.vue @@ -1322,6 +1322,12 @@ } } else { + if ( res.status && res.status == 1) { + this.showPay = false //关闭购买选择弹窗 + this.getDataList(this.courseId, this.videoList[this.current].courseDetailsId, + true); + return; + } uni.showToast({ title: res.msg, icon: 'none' diff --git a/pages/task/index.vue b/pages/task/index.vue index 4199ed4..b06c054 100644 --- a/pages/task/index.vue +++ b/pages/task/index.vue @@ -23,7 +23,7 @@ 打卡提醒 --> - +