客户问题修改
This commit is contained in:
parent
202b06f516
commit
f40cb2db27
|
|
@ -154,7 +154,7 @@ export default {
|
|||
uni.navigateTo({
|
||||
url: '/pages/login'
|
||||
})
|
||||
},500)
|
||||
},1000)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
|
|
|||
|
|
@ -127,7 +127,7 @@ export default {
|
|||
this.tabList=[]
|
||||
//处理数据
|
||||
this.menuData.forEach(item=>{//渲染类型
|
||||
this.tabList.push(item.mealtimeName)
|
||||
this.tabList.push(this.handleRecipeType(item.mealtimeType))
|
||||
})
|
||||
this.$refs.Tabs.handleTab(0)
|
||||
// this.changeTab(0)
|
||||
|
|
@ -147,6 +147,21 @@ export default {
|
|||
this.tIndex=0
|
||||
}
|
||||
},
|
||||
// 处理recipeType
|
||||
handleRecipeType(type) {
|
||||
if (type === 1) {
|
||||
return '早餐'
|
||||
} else if (type === 2) {
|
||||
return '午餐'
|
||||
} else if (type === 3) {
|
||||
return '外卖'
|
||||
// return '下午茶'
|
||||
} else if (type === 4) {
|
||||
return '晚餐'
|
||||
}else if (type === 5) {
|
||||
return '夜宵'
|
||||
}
|
||||
},
|
||||
//改变时间
|
||||
changeDay(index){
|
||||
this.hIndex=index;
|
||||
|
|
|
|||
Loading…
Reference in New Issue