zhaoxiaohai hace 3 años
padre
commit
fd529e39eb
Se han modificado 2 ficheros con 6 adiciones y 13 borrados
  1. 1 1
      packageA/salesForecasting/modules/project/index.wxml
  2. 5 12
      packageA/work/detail.js

+ 1 - 1
packageA/salesForecasting/modules/project/index.wxml

@@ -4,7 +4,7 @@
 <view class="head">
     <view class="count"><text style="margin-right: 15rpx; font-size: 30rpx;font-weight: 600; color: #333;">{{list[viewIndex].projectname}}</text>预测金额:<text style="color: #FF3B30;">¥{{productList[0]?productList[0].sumamount:0}}</text></view>
     <view class="expand">
-        <navigator wx:if="{{disabled}}" url="#" class="but" bindtap="addProduct">
+        <navigator wx:if="{{disabled && list.length!=0}}" url="#" class="but" bindtap="addProduct">
             <van-icon name="plus" />
         </navigator>
     </view>

+ 5 - 12
packageA/work/detail.js

@@ -75,19 +75,14 @@ Page({
                 tabbarList = [{
                     icon: "icon-genjin",
                     label: "跟进"
+                }, {
+                    icon: "icon-dibu-chengjiao",
+                    label: "完成"
                 }];
-
-            if (isLeader) tabbarList = tabbarList.concat({
-                icon: "icon-guanlian-bianji",
-                label: "编辑"
-            }, {
-                icon: "icon-dibu-chengjiao",
-                label: "完成"
-            });
-            if (tabbarList.length == 1 && isCreateby) tabbarList.push({
+            if (isCreateby) tabbarList.splice(1, 0, {
                 icon: "icon-guanlian-bianji",
                 label: "编辑"
-            });
+            })
 
             this.setData({
                 tabbarList,
@@ -147,8 +142,6 @@ Page({
                 }]
             });
 
-
-
             /* 更新列表中状态 */
             let page = getCurrentPages().find(v => v.__route__ == 'packageA/saleClue/index');
             if (page) {