|
|
@@ -30,9 +30,6 @@ Page({
|
|
|
}, {
|
|
|
icon: "icon-dibu-chengjiao",
|
|
|
label: "发布"
|
|
|
- }, {
|
|
|
- icon: "icon-zhuanyi",
|
|
|
- label: "更换负责人"
|
|
|
}, {
|
|
|
icon: "icon-dibu-jieshu",
|
|
|
label: "结束"
|
|
|
@@ -43,9 +40,6 @@ Page({
|
|
|
}, {
|
|
|
icon: "icon-dibu-chengjiao",
|
|
|
label: "发布"
|
|
|
- }, {
|
|
|
- icon: "icon-zhuanyi",
|
|
|
- label: "更换负责人"
|
|
|
}, {
|
|
|
icon: "icon-dibu-jieshu",
|
|
|
label: "结束"
|
|
|
@@ -135,16 +129,16 @@ Page({
|
|
|
label: "结束人",
|
|
|
value: res.data.followdate
|
|
|
}],
|
|
|
- tabsList: this.data.tabsList,
|
|
|
- 'tabbarList[1].label': res.data.status == '新建' ? '发布' : '取消发布'
|
|
|
+ tabsList: this.data.tabsList
|
|
|
});
|
|
|
let arr = this.data.oldtabbarList;
|
|
|
-
|
|
|
-
|
|
|
- if (res.data.status == '结束') {
|
|
|
+ if (res.data.status == '发布') {
|
|
|
+ arr = arr.filter(item => item.label == '发布' || item.label == '结束')
|
|
|
+ arr[0].label = '取消发布'
|
|
|
+ } else if (res.data.status == '结束') {
|
|
|
arr = []
|
|
|
- } else if (res.data.status == '发布') {
|
|
|
- arr = this.data.tabbarList.filter(item => item.label != '编辑' && item.label != '更换负责人')
|
|
|
+ } else {
|
|
|
+ arr[1].label = '发布'
|
|
|
}
|
|
|
this.setData({
|
|
|
tabbarList: arr,
|