ypzycp/components/otherBar/otherBar.js

70 lines
1.6 KiB
JavaScript
Raw Normal View History

2022-01-17 10:27:44 +00:00
Component({
mixins: [],
data: {},
props: {},
didMount() {},
didUpdate() {},
didUnmount() {},
methods: {},
});
Page({
data: {
currentTab: 0,
items: [
{
// "iconPath": "/image/icon_component.png",
// "selectedIconPath": "/image/icon_component.png",
2022-01-24 09:53:50 +00:00
"text": "个人中心"
2022-01-17 10:27:44 +00:00
},
2022-01-21 10:30:06 +00:00
// {
// // "iconPath": "/image/yingyong.png",
// // "selectedIconPath": "/image/yingyong.png",
// "text": "公益问答",
// "news": "6"
// },
2022-01-17 10:27:44 +00:00
{
// "iconPath": "/image/icon_biz.png",
// "selectedIconPath": "/image/icon_biz.png",
"text": "收费咨询"
},
{
// "iconPath": "/image/icon_biz.png",
// "selectedIconPath": "/image/icon_biz.png",
"text": "账号密码"
}
]
},
onLoad() {
dd.setNavigationBar({
title: '阿里云・有谱志愿咨询师端',
backgroundColor: '#FFFFFF',
});
},
swichNav: function (e) {
let that = this;
if (this.data.currentTab === e.target.dataset.current) {
return false;
} else {
that.setData({
currentTab: e.target.dataset.current
})
}
if (this.data.currentTab === 0){
dd.setNavigationBar({
title: '阿里云・有谱志愿咨询师端',
backgroundColor: '#FFFFFF',
});
}else if(this.data.currentTab === 1){
dd.setNavigationBar({
title: '公益问答',
backgroundColor: '#FFFFFF',
});
2022-01-21 10:30:06 +00:00
}else if(this.data.currentTab === 2){
2022-01-17 10:27:44 +00:00
dd.setNavigationBar({
title: '登录密码',
backgroundColor: '#FFFFFF',
});
}
}
})