Browse Source

Merge pull request 'master' (#3) from master into dev

Reviewed-on: litiange/jundaosuzhou_wechatxcx#3
master
chenkainan 3 months ago
parent
commit
f622842d67
  1. 2
      app.js
  2. 28
      pages/user/logout/index.js
  3. 2
      pages/user/user.js
  4. 9
      subPackages/goods/oneCardTour/info/index.js
  5. 3
      utils/util.js

2
app.js

@ -39,7 +39,7 @@ App({
// 获取前端配置文件 // 获取前端配置文件
commonApi._post("pbservice/Other/getClientConfig", {unique_key: "wechatxcx"}).then(res => { commonApi._post("pbservice/Other/getClientConfig", {unique_key: "wechatxcx"}).then(res => {
let data = JSON.parse(res.data); let data = JSON.parse(res.data);
data.isTest = data.isTest159? true : false; data.isTest = data.isTest160? true : false;
data.indexSeason = null data.indexSeason = null
this.globalData.configJson = data this.globalData.configJson = data
}).then(() => { }).then(() => {

28
pages/user/logout/index.js

@ -43,17 +43,23 @@ Page({
if (res.confirm) { if (res.confirm) {
common.user_post('uservice/user/user_logout', { protocol: that.data.protocol ? 1 : 0 }).then(res => { common.user_post('uservice/user/user_logout', { protocol: that.data.protocol ? 1 : 0 }).then(res => {
if (res) { if (res) {
wx.showToast({ if (res.code === 1) {
title: res.msg, wx.showModal({
icon: 'none' title: '提示',
}) content: res.msg,
if (res.code === 1) { showCancel: false,
setTimeout(() => { complete: () => {
wx.switchTab({ wx.switchTab({
url: '/pages/user/user', url: '/pages/user/user',
}) })
}, 400) }
} })
} else {
wx.showModal({
title: res.msg,
icon: 'none'
})
}
} }
}) })

2
pages/user/user.js

@ -83,6 +83,8 @@ Page({
this.setData({ this.setData({
info: res.data info: res.data
}) })
} else{
this.setData({info: null})
} }
}) })
util.pagePoint({ util.pagePoint({

9
subPackages/goods/oneCardTour/info/index.js

@ -60,6 +60,15 @@ Page({
util.back() util.back()
return; 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) { if (options.retailId) {
this.setData({ this.setData({
retailId: options.retailId retailId: options.retailId

3
utils/util.js

@ -784,8 +784,11 @@ const goProdInOtherPlatform = function (item) {
// return webUrl; // return webUrl;
} }
// 详情跳转域名
const detailDomain = "https://m.cloud.sz-trip.com"
module.exports = { module.exports = {
detailDomain: detailDomain,
formatTime: formatTime, formatTime: formatTime,
formatNumber: formatNumber, formatNumber: formatNumber,
isTel: isTel, isTel: isTel,

Loading…
Cancel
Save