mirror of
https://gitee.com/elegant_wings/dbd-meeting-wx-small.git
synced 2025-06-21 23:39:36 +08:00
1
This commit is contained in:
parent
3a9b85e707
commit
eee3ea82de
@ -21,6 +21,34 @@ Page({
|
||||
* 页面的初始数据
|
||||
*/
|
||||
data: {
|
||||
// tabBar param
|
||||
tabBarParam: {
|
||||
selected: 0,
|
||||
color: "#515151",
|
||||
selectedColor: "#217CFF",
|
||||
backgroundColor: "#ffffff",
|
||||
},
|
||||
// tabBar menu
|
||||
tabBarList: [{
|
||||
"pagePath": "/pages/index/index",
|
||||
"iconPath": "/images/tabbar/home.png",
|
||||
"selectedIconPath": "/images/tabbar/home-select.png",
|
||||
"text": "首页"
|
||||
},
|
||||
{
|
||||
"pagePath": "/pages/reportRepair/report/report",
|
||||
"iconPath": "/images/tabbar/center.png",
|
||||
"selectedIconPath": "/images/tabbar/center.png",
|
||||
"text": "报修",
|
||||
"bulge": true,
|
||||
},
|
||||
{
|
||||
"pagePath": "/pages/my/my",
|
||||
"iconPath": "/images/tabbar/my.png",
|
||||
"selectedIconPath": "/images/tabbar/my-select.png",
|
||||
"text": "我的"
|
||||
},
|
||||
],
|
||||
IMG_NAME: app.IMG_NAME,
|
||||
userData: null,
|
||||
dataChange: false,
|
||||
|
@ -120,6 +120,15 @@
|
||||
</van-tab>
|
||||
</van-tabs>
|
||||
|
||||
<!-- tabBar -->
|
||||
<view class="tab-bar">
|
||||
<view wx:for="{{tabBarList}}" wx:key="index" class="tab-bar-item {{item.bulge?'bulge':''}}" data-path="{{item.pagePath}}" data-index="{{index}}" bindtap="switchTab">
|
||||
<view wx:if="item.bulge" class="tab-bar-bulge"></view>
|
||||
<image class="image" src="{{tabBarParam.selected === index ? item.selectedIconPath : item.iconPath}}"></image>
|
||||
<view class="tab-bar-view" style="color: {{tabBarParam.selected === index ? tabBarParam.selectedColor : tabBarParam.color}}">{{item.text}}</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<!-- 提示框 -->
|
||||
<van-dialog id="van-dialog" />
|
||||
<!-- 提示框 -->
|
||||
|
@ -1,6 +1,9 @@
|
||||
@import "../../../../tabBar.wxss";
|
||||
|
||||
.containerView.public {
|
||||
background: none;
|
||||
height: auto;
|
||||
padding-bottom: 300rpx;
|
||||
}
|
||||
|
||||
.itemView {
|
||||
|
@ -14,6 +14,34 @@ Page({
|
||||
* 页面的初始数据
|
||||
*/
|
||||
data: {
|
||||
// tabBar param
|
||||
tabBarParam: {
|
||||
selected: 0,
|
||||
color: "#515151",
|
||||
selectedColor: "#217CFF",
|
||||
backgroundColor: "#ffffff",
|
||||
},
|
||||
// tabBar menu
|
||||
tabBarList: [{
|
||||
"pagePath": "/pages/index/index",
|
||||
"iconPath": "/images/tabbar/home.png",
|
||||
"selectedIconPath": "/images/tabbar/home-select.png",
|
||||
"text": "首页"
|
||||
},
|
||||
{
|
||||
"pagePath": "/pages/reportRepair/report/report",
|
||||
"iconPath": "/images/tabbar/center.png",
|
||||
"selectedIconPath": "/images/tabbar/center.png",
|
||||
"text": "报修",
|
||||
"bulge": true,
|
||||
},
|
||||
{
|
||||
"pagePath": "/pages/my/my",
|
||||
"iconPath": "/images/tabbar/my.png",
|
||||
"selectedIconPath": "/images/tabbar/my-select.png",
|
||||
"text": "我的"
|
||||
},
|
||||
],
|
||||
IMG_NAME: app.IMG_NAME,
|
||||
userData: null,
|
||||
dataChange: false,
|
||||
|
@ -104,6 +104,16 @@
|
||||
</van-tab>
|
||||
</van-tabs>
|
||||
|
||||
|
||||
<!-- tabBar -->
|
||||
<view class="tab-bar">
|
||||
<view wx:for="{{tabBarList}}" wx:key="index" class="tab-bar-item {{item.bulge?'bulge':''}}" data-path="{{item.pagePath}}" data-index="{{index}}" bindtap="switchTab">
|
||||
<view wx:if="item.bulge" class="tab-bar-bulge"></view>
|
||||
<image class="image" src="{{tabBarParam.selected === index ? item.selectedIconPath : item.iconPath}}"></image>
|
||||
<view class="tab-bar-view" style="color: {{tabBarParam.selected === index ? tabBarParam.selectedColor : tabBarParam.color}}">{{item.text}}</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<!-- 提示框 -->
|
||||
<van-dialog id="van-dialog" />
|
||||
<!-- 提示框 -->
|
||||
|
@ -1,6 +1,9 @@
|
||||
@import "../../../../tabBar.wxss";
|
||||
|
||||
.containerView.public {
|
||||
background: none;
|
||||
height: auto;
|
||||
padding-bottom: 300rpx;
|
||||
}
|
||||
|
||||
.itemView {
|
||||
|
@ -18,6 +18,34 @@ Page({
|
||||
* 页面的初始数据
|
||||
*/
|
||||
data: {
|
||||
// tabBar param
|
||||
tabBarParam: {
|
||||
selected: 0,
|
||||
color: "#515151",
|
||||
selectedColor: "#217CFF",
|
||||
backgroundColor: "#ffffff",
|
||||
},
|
||||
// tabBar menu
|
||||
tabBarList: [{
|
||||
"pagePath": "/pages/index/index",
|
||||
"iconPath": "/images/tabbar/home.png",
|
||||
"selectedIconPath": "/images/tabbar/home-select.png",
|
||||
"text": "首页"
|
||||
},
|
||||
{
|
||||
"pagePath": "/pages/reportRepair/report/report",
|
||||
"iconPath": "/images/tabbar/center.png",
|
||||
"selectedIconPath": "/images/tabbar/center.png",
|
||||
"text": "报修",
|
||||
"bulge": true,
|
||||
},
|
||||
{
|
||||
"pagePath": "/pages/my/my",
|
||||
"iconPath": "/images/tabbar/my.png",
|
||||
"selectedIconPath": "/images/tabbar/my-select.png",
|
||||
"text": "我的"
|
||||
},
|
||||
],
|
||||
IMG_NAME: app.IMG_NAME,
|
||||
workerNumber: {},
|
||||
tabTitle: 'wait', // tab 标题
|
||||
|
@ -72,4 +72,13 @@
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<!-- tabBar -->
|
||||
<view class="tab-bar">
|
||||
<view wx:for="{{tabBarList}}" wx:key="index" class="tab-bar-item {{item.bulge?'bulge':''}}" data-path="{{item.pagePath}}" data-index="{{index}}" bindtap="switchTab">
|
||||
<view wx:if="item.bulge" class="tab-bar-bulge"></view>
|
||||
<image class="image" src="{{tabBarParam.selected === index ? item.selectedIconPath : item.iconPath}}"></image>
|
||||
<view class="tab-bar-view" style="color: {{tabBarParam.selected === index ? tabBarParam.selectedColor : tabBarParam.color}}">{{item.text}}</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
</view>
|
@ -1,6 +1,9 @@
|
||||
@import "../../../../tabBar.wxss";
|
||||
|
||||
.containerView.public {
|
||||
background: none;
|
||||
height: auto;
|
||||
padding-bottom: 300rpx;
|
||||
}
|
||||
|
||||
.elHidden {
|
||||
|
Loading…
x
Reference in New Issue
Block a user