From 3881a23aabcdfe66df8890d4308d17313ff31644 Mon Sep 17 00:00:00 2001 From: jiazhipeng Date: Tue, 6 Jan 2026 19:01:22 +0800 Subject: [PATCH 1/2] 1 --- app.js | 2 +- pages/user/logout/index.js | 28 +++++++++++++++++----------- pages/user/user.js | 2 ++ 3 files changed, 20 insertions(+), 12 deletions(-) diff --git a/app.js b/app.js index 6dce1b2..b2f96c6 100644 --- a/app.js +++ b/app.js @@ -39,7 +39,7 @@ App({ // 获取前端配置文件 commonApi._post("pbservice/Other/getClientConfig", {unique_key: "wechatxcx"}).then(res => { let data = JSON.parse(res.data); - data.isTest = data.isTest159? true : false; + data.isTest = data.isTest160? true : false; data.indexSeason = null this.globalData.configJson = data }).then(() => { diff --git a/pages/user/logout/index.js b/pages/user/logout/index.js index 7b275a2..9154de4 100644 --- a/pages/user/logout/index.js +++ b/pages/user/logout/index.js @@ -43,17 +43,23 @@ Page({ if (res.confirm) { common.user_post('uservice/user/user_logout', { protocol: that.data.protocol ? 1 : 0 }).then(res => { if (res) { - wx.showToast({ - title: res.msg, - icon: 'none' - }) - if (res.code === 1) { - setTimeout(() => { - wx.switchTab({ - url: '/pages/user/user', - }) - }, 400) - } + if (res.code === 1) { + wx.showModal({ + title: '提示', + content: res.msg, + showCancel: false, + complete: () => { + wx.switchTab({ + url: '/pages/user/user', + }) + } + }) + } else { + wx.showModal({ + title: res.msg, + icon: 'none' + }) + } } }) diff --git a/pages/user/user.js b/pages/user/user.js index 1bbe1d2..48a5a40 100644 --- a/pages/user/user.js +++ b/pages/user/user.js @@ -83,6 +83,8 @@ Page({ this.setData({ info: res.data }) + } else{ + this.setData({info: null}) } }) util.pagePoint({ From 524f35e48eff5f2e91a233a1284f954fa036ed6a Mon Sep 17 00:00:00 2001 From: jiazhipeng Date: Tue, 6 Jan 2026 19:09:54 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E4=B8=80=E5=8D=A1=E6=B8=B8=E8=B7=B3H5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- subPackages/goods/oneCardTour/info/index.js | 9 +++++++++ utils/util.js | 3 +++ 2 files changed, 12 insertions(+) diff --git a/subPackages/goods/oneCardTour/info/index.js b/subPackages/goods/oneCardTour/info/index.js index ea8eb10..f33cf94 100644 --- a/subPackages/goods/oneCardTour/info/index.js +++ b/subPackages/goods/oneCardTour/info/index.js @@ -60,6 +60,15 @@ Page({ util.back() return; } + + // 2026-1-6 详情跳H5 + if (options.id) { + wx.redirectTo({ + url: '/pages/pbService/web/index?weburl='+encodeURIComponent(util.detailDomain+"/OneCardTourDetail?id="+options.id), + }) + return + } + if (options.retailId) { this.setData({ retailId: options.retailId diff --git a/utils/util.js b/utils/util.js index 4f1ac45..8620a24 100644 --- a/utils/util.js +++ b/utils/util.js @@ -784,8 +784,11 @@ const goProdInOtherPlatform = function (item) { // return webUrl; } +// 详情跳转域名 +const detailDomain = "https://m.cloud.sz-trip.com" module.exports = { + detailDomain: detailDomain, formatTime: formatTime, formatNumber: formatNumber, isTel: isTel,