Browse Source

[海悦城需求][修改]:[小程序页面调整需求 海悦城停车页面不需要,也不需要按钮]

tags/C.10.02
meo 5 years ago
parent
commit
e6c1b71651
3 changed files with 31 additions and 4 deletions
  1. +26
    -3
      custom-tab-bar/index.js
  2. +1
    -1
      ext.json
  3. +4
    -0
      index/user.js

+ 26
- 3
custom-tab-bar/index.js View File

@@ -50,13 +50,36 @@ Component({
}
]
})
} else if (ifStoreApp == 2) {
this.setData({
list: [
{
"pagePath": "/index/index",
"iconPath": "../assets/images/home.png",
"selectedIconPath": "../assets/images/home-a.png",
"text": "首页"
},
{
"pagePath": "/index/searchbar",
"iconPath": "../assets/images/mendian.png",
"selectedIconPath": "../assets/images/mendian-a.png",
"text": "门店"
},
{
"pagePath": "/index/user",
"iconPath": "../assets/images/user.png",
"selectedIconPath": "../assets/images/user-a.png",
"text": "我的"
}
]
})
}
},
methods: {
switchTab(e) {
const data = e.currentTarget.dataset
const url = data.path
wx.switchTab({url})
const data = e.currentTarget.dataset;
const url = data.path;
wx.switchTab({url});
this.setData({
selected: data.index
})


+ 1
- 1
ext.json View File

@@ -21,7 +21,7 @@
"etcpVersion": "release",
"etcpCallbackUrl": "https://ciformall.youlane.cn/api/carCallback/etcpPaidCallback",
"ifHaveWebSocket": "0",
"ifStoreApp": "0",
"ifStoreApp": "2",
"ifHaveCarModular": "1"
},
"name": "富茂客官开发",


+ 4
- 0
index/user.js View File

@@ -134,6 +134,10 @@ Page({
that.getTabBar().setData({
selected: 1
})
} else if(ifStoreApp == 2){
that.getTabBar().setData({
selected: 2
})
}else{
that.getTabBar().setData({
selected: 3


Loading…
Cancel
Save