|
|
@@ -22,10 +22,7 @@ Page({
|
|
|
label: "任务",
|
|
|
num: 132
|
|
|
}],
|
|
|
- tabbarList: [{
|
|
|
- icon: "icon-genjin",
|
|
|
- label: "跟进"
|
|
|
- }],
|
|
|
+ tabbarList: [],
|
|
|
},
|
|
|
onLoad(options) {
|
|
|
this.setData({
|
|
|
@@ -50,8 +47,11 @@ Page({
|
|
|
});
|
|
|
|
|
|
let isLeader = res.data.leader.some(some => some.userid == wx.getStorageSync('userMsg').userid),
|
|
|
- tabbarList = this.data.tabbarList;
|
|
|
- if (this.data.isAdmin || isLeader) tabbarList = [{
|
|
|
+ tabbarList =[{
|
|
|
+ icon: "icon-genjin",
|
|
|
+ label: "跟进"
|
|
|
+ }];
|
|
|
+ if (this.data.isAdmin || isLeader) tabbarList = tabbarList.concat([{
|
|
|
icon: "icon-bianji",
|
|
|
label: "编辑"
|
|
|
}, {
|
|
|
@@ -63,7 +63,7 @@ Page({
|
|
|
}, {
|
|
|
icon: "icon-dibu-jieshu",
|
|
|
label: "作废"
|
|
|
- }].concat(tabbarList);
|
|
|
+ }]);
|
|
|
if (isLeader) tabbarList = tabbarList.concat([{
|
|
|
icon: "icon-dibu-tuihui",
|
|
|
label: "退回"
|
|
|
@@ -103,10 +103,6 @@ Page({
|
|
|
label: '跟进次数',
|
|
|
value: res.data.followcount || '0'
|
|
|
},
|
|
|
- {
|
|
|
- label: '转化次数',
|
|
|
- value: res.data.changecount
|
|
|
- }
|
|
|
],
|
|
|
list1: [{
|
|
|
label: "联系人",
|
|
|
@@ -133,10 +129,6 @@ Page({
|
|
|
label: '跟进次数',
|
|
|
value: res.data.followcount || '0'
|
|
|
},
|
|
|
- {
|
|
|
- label: '转化次数',
|
|
|
- value: res.data.changecount
|
|
|
- }
|
|
|
],
|
|
|
list2: [{
|
|
|
label: "创建人",
|
|
|
@@ -150,12 +142,12 @@ Page({
|
|
|
}, {
|
|
|
label: "最近跟进人",
|
|
|
value: res.data.followBy
|
|
|
- }, {
|
|
|
- label: "转移人",
|
|
|
- value: res.data.changeBy
|
|
|
}, {
|
|
|
label: "最近编辑人",
|
|
|
value: res.data.editBy
|
|
|
+ }, {
|
|
|
+ label: "转手次数",
|
|
|
+ value: res.data.changecount
|
|
|
}, {
|
|
|
label: "创建时间",
|
|
|
value: res.data.createDate
|
|
|
@@ -165,9 +157,6 @@ Page({
|
|
|
}, {
|
|
|
label: "最近跟进时间",
|
|
|
value: res.data.followDate
|
|
|
- }, {
|
|
|
- label: "最近转移时间",
|
|
|
- value: res.data.changeDate
|
|
|
}, {
|
|
|
label: "最近编辑时间",
|
|
|
value: res.data.editDate
|