Commit 4609c279 authored by 18868195926's avatar 18868195926

feat: 底部导航栏添加

parent 4d9f1c46
...@@ -15,26 +15,6 @@ import './app.scss' ...@@ -15,26 +15,6 @@ import './app.scss'
const store = configStore() const store = configStore()
class App extends Component { class App extends Component {
config = {
pages: [
'pages/index/index',
'pages/citySelect/index'
],
permission: {
"scope.userLocation": {
"desc": "你的位置信息将用于小程序位置接口的效果展示"
}
},
window: {
backgroundTextStyle: 'light',
navigationBarBackgroundColor: '#fff',
navigationBarTitleText: 'WeChat',
navigationBarTextStyle: 'black',
navigationStyle: 'custom',
}
}
componentDidMount () { componentDidMount () {
Taro.login({ Taro.login({
success: function (res) { success: function (res) {
...@@ -59,6 +39,42 @@ class App extends Component { ...@@ -59,6 +39,42 @@ class App extends Component {
} }
}) })
} }
config = {
pages: [
'pages/index/index',
'pages/citySelect/index',
'pages/storeDetail/index',
'pages/mine/index'
],
permission: {
"scope.userLocation": {
"desc": "你的位置信息将用于小程序位置接口的效果展示"
}
},
window: {
backgroundTextStyle: 'light',
navigationBarBackgroundColor: '#fff',
navigationBarTitleText: 'WeChat',
navigationBarTextStyle: 'black',
navigationStyle: 'custom',
},
tabBar: {
"color": "#a9b7b7",
"selectedColor": "#11cd6e",
"borderStyle": "black" ,
"list": [
{
"pagePath": "pages/index/index",
"text": "首页"
},
{
"pagePath": "pages/mine/index",
"text": "我的"
}
]
}
}
componentDidShow () {} componentDidShow () {}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment