浏览代码

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

tags/福建版C.9.1.06
meo 5 年前
父节点
当前提交
ac8e3ca6c6
共有 3 个文件被更改,包括 31 次插入4 次删除
  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 查看文件

@@ -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: { methods: {
switchTab(e) { 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({ this.setData({
selected: data.index selected: data.index
}) })


+ 1
- 1
ext.json 查看文件

@@ -17,7 +17,7 @@
], ],
"configUrl": "https://c.malls.iformall.com/C/api", "configUrl": "https://c.malls.iformall.com/C/api",
"etcpAppId": "wxc07f9d67923d676d", "etcpAppId": "wxc07f9d67923d676d",
"ifStoreApp": "0",
"ifStoreApp": "2",
"etcpVersion": "release", "etcpVersion": "release",
"etcpCallbackUrl": "https://admin.malls.iformall.com/api/carCallback/etcpPaidCallback", "etcpCallbackUrl": "https://admin.malls.iformall.com/api/carCallback/etcpPaidCallback",
"ifHaveWebSocket": "0", "ifHaveWebSocket": "0",


+ 4
- 0
index/user.js 查看文件

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


正在加载...
取消
保存