mirror of
https://gitee.com/elegant_wings/dbd-meeting-wx-small.git
synced 2025-06-22 01:59:36 +08:00
1
This commit is contained in:
parent
3a9b85e707
commit
eee3ea82de
@ -21,6 +21,34 @@ Page({
|
|||||||
* 页面的初始数据
|
* 页面的初始数据
|
||||||
*/
|
*/
|
||||||
data: {
|
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,
|
IMG_NAME: app.IMG_NAME,
|
||||||
userData: null,
|
userData: null,
|
||||||
dataChange: false,
|
dataChange: false,
|
||||||
|
@ -120,6 +120,15 @@
|
|||||||
</van-tab>
|
</van-tab>
|
||||||
</van-tabs>
|
</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" />
|
<van-dialog id="van-dialog" />
|
||||||
<!-- 提示框 -->
|
<!-- 提示框 -->
|
||||||
|
@ -1,6 +1,9 @@
|
|||||||
|
@import "../../../../tabBar.wxss";
|
||||||
|
|
||||||
.containerView.public {
|
.containerView.public {
|
||||||
background: none;
|
background: none;
|
||||||
height: auto;
|
height: auto;
|
||||||
|
padding-bottom: 300rpx;
|
||||||
}
|
}
|
||||||
|
|
||||||
.itemView {
|
.itemView {
|
||||||
|
@ -14,6 +14,34 @@ Page({
|
|||||||
* 页面的初始数据
|
* 页面的初始数据
|
||||||
*/
|
*/
|
||||||
data: {
|
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,
|
IMG_NAME: app.IMG_NAME,
|
||||||
userData: null,
|
userData: null,
|
||||||
dataChange: false,
|
dataChange: false,
|
||||||
|
@ -104,6 +104,16 @@
|
|||||||
</van-tab>
|
</van-tab>
|
||||||
</van-tabs>
|
</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" />
|
<van-dialog id="van-dialog" />
|
||||||
<!-- 提示框 -->
|
<!-- 提示框 -->
|
||||||
|
@ -1,6 +1,9 @@
|
|||||||
|
@import "../../../../tabBar.wxss";
|
||||||
|
|
||||||
.containerView.public {
|
.containerView.public {
|
||||||
background: none;
|
background: none;
|
||||||
height: auto;
|
height: auto;
|
||||||
|
padding-bottom: 300rpx;
|
||||||
}
|
}
|
||||||
|
|
||||||
.itemView {
|
.itemView {
|
||||||
|
@ -18,6 +18,34 @@ Page({
|
|||||||
* 页面的初始数据
|
* 页面的初始数据
|
||||||
*/
|
*/
|
||||||
data: {
|
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,
|
IMG_NAME: app.IMG_NAME,
|
||||||
workerNumber: {},
|
workerNumber: {},
|
||||||
tabTitle: 'wait', // tab 标题
|
tabTitle: 'wait', // tab 标题
|
||||||
|
@ -72,4 +72,13 @@
|
|||||||
</view>
|
</view>
|
||||||
</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>
|
</view>
|
@ -1,6 +1,9 @@
|
|||||||
|
@import "../../../../tabBar.wxss";
|
||||||
|
|
||||||
.containerView.public {
|
.containerView.public {
|
||||||
background: none;
|
background: none;
|
||||||
height: auto;
|
height: auto;
|
||||||
|
padding-bottom: 300rpx;
|
||||||
}
|
}
|
||||||
|
|
||||||
.elHidden {
|
.elHidden {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user