ソースを参照

分享页面修复2

packages
HolyKnightIX 2年前
コミット
0e06250ff1
4個のファイルの変更40行の追加21行の削除
  1. +22
    -7
      components/navbar/navbar.js
  2. +14
    -11
      ext.json
  3. +3
    -2
      project.config.json
  4. +1
    -1
      project.private.config.json

+ 22
- 7
components/navbar/navbar.js ファイルの表示

@@ -27,7 +27,7 @@ Component({
type: Boolean,
value: false
},
},

data: {
@@ -37,7 +37,7 @@ Component({
navigationBarHeight: (app.statusBarHeight + 44) + 'px',
},
methods: {
backHome: function () {
let url = app.globalData.goHomeUrl
wx.switchTab({
@@ -51,13 +51,28 @@ Component({
})
},
back: function () {
wx.navigateBack({
delta: 1
})
// wx.navigateBack({
// delta: 1
// })
const pages = getCurrentPages();
console.log(`页面栈:${JSON.stringify(pages)}`, pages.length);
if (pages.length === 2) {
wx.navigateBack({
delta: 1
});
} else if (pages.length === 1) {
wx.reLaunch({
url: '/pages/theme/index1/index',
})
} else {
wx.navigateBack({
delta: 1
});
}
}
},
attached: function(){
attached: function () {
let pages = getCurrentPages();
if (pages.length <= 1) {
this.setData({


+ 14
- 11
ext.json ファイルの表示

@@ -1,7 +1,14 @@
{
"ext": {
"attr": {
"mchId": "1602801645",
"car": {
"etcp": {
"etcpAppId": "wx192b7d2e8dcbefd0",
"etcpVersion": "release",
"etcpCallbackUrl": "https://admintest.malls.iformall.com/api/carCallback/etcpPaidCallback"
}
},
"mchId": "1604439800",
"imgProxy": [
{
"newUrl": "https://ctest.malls.iformall.com/img",
@@ -17,16 +24,12 @@
}
],
"configUrl": "https://ctest.malls.iformall.com/C/api",
"etcpAppId": "wx219a81b9c87aa4f7",
"etcpVersion": "release",
"businessSwitch": "0",
"businessVersion": "1",
"etcpCallbackUrl": "https://admintest.malls.iformall.com/api/carCallback/etcpPaidCallback",
"businessSwitch": "1",
"ifHaveWebSocket": "0",
"ifHaveCarModular": "1"
},
"name": "富茂光谷测试版",
"weappId": "wx219a81b9c87aa4f7",
"name": "金泸商务",
"weappId": "wx649b3be73c1afe47",
"appVersion": "C.test.5.2.0"
},
"debug": false,
@@ -74,15 +77,15 @@
},
"plugins": {
"auto-points-plugin": {
"version": "2.4.0",
"version": "1.3.0",
"provider": "wxfab2bf944bfc4da6"
},
"live-player-plugin": {
"version": "1.2.5",
"version": "1.3.4",
"provider": "wx2b03c6e691cd7370"
}
},
"extAppid": "wx219a81b9c87aa4f7",
"extAppid": "wx649b3be73c1afe47",
"extEnable": true,
"permission": {
"scope.userLocation": {


+ 3
- 2
project.config.json ファイルの表示

@@ -16,7 +16,7 @@
"autoAudits": false,
"showShadowRootInWxmlPanel": true,
"scopeDataCheck": false,
"uglifyFileName": false,
"uglifyFileName": true,
"checkInvalidKey": true,
"checkSiteMap": true,
"uploadWithSourceMap": true,
@@ -29,7 +29,8 @@
"useMultiFrameRuntime": true,
"useApiHook": true,
"useApiHostProcess": true,
"useIsolateContext": true
"useIsolateContext": true,
"ignoreUploadUnusedFiles": true
},
"compileType": "miniprogram",
"libVersion": "2.11.2",


+ 1
- 1
project.private.config.json ファイルの表示

@@ -4,5 +4,5 @@
"setting": {
"compileHotReLoad": true
},
"libVersion": "2.26.2"
"libVersion": "2.27.0"
}

読み込み中…
キャンセル
保存