You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
|
const app = getApp()
|
|
|
|
|
|
|
|
|
|
Component({
|
|
|
|
|
properties: {
|
|
|
|
|
active: {
|
|
|
|
|
type: Number,
|
|
|
|
|
value: 0,
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
data: {
|
|
|
|
|
imageUrl: app.globalData.imageUrl,
|
|
|
|
|
isChild: 0,
|
|
|
|
|
active: 0,
|
|
|
|
|
list: [
|
|
|
|
|
{
|
|
|
|
|
pagePath: '/doctor/pages/home/index',
|
|
|
|
|
text: '首页',
|
|
|
|
|
icon: 'tab4',
|
|
|
|
|
iconActive: 'tab4-active',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
pagePath: '/doctor/pages/patientList/index',
|
|
|
|
|
text: '患者列表',
|
|
|
|
|
icon: 'tab5',
|
|
|
|
|
iconActive: 'tab5-active',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
pagePath: '/doctor/pages/articleList/index',
|
|
|
|
|
text: '教育',
|
|
|
|
|
icon: 'tab7',
|
|
|
|
|
iconActive: 'tab7-active',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
pagePath: '/doctor/pages/my/index',
|
|
|
|
|
text: '我的',
|
|
|
|
|
icon: 'tab6',
|
|
|
|
|
iconActive: 'tab6-active',
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
},
|
|
|
|
|
observers: {},
|
|
|
|
|
methods: {
|
|
|
|
|
onChange() {},
|
|
|
|
|
handleNav(e) {
|
|
|
|
|
const { index } = e.currentTarget.dataset
|
|
|
|
|
const { list } = this.data
|
|
|
|
|
const { pagePath } = list[index]
|
|
|
|
|
wx.reLaunch({
|
|
|
|
|
url: pagePath,
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
})
|