Browse Source

市场活动

codeMan 3 years ago
parent
commit
954f5f81d5
3 changed files with 15 additions and 30 deletions
  1. 7 16
      packageA/activity/addActivity.js
  2. 7 13
      packageA/activity/detail.js
  3. 1 1
      packageA/activity/detail.wxml

+ 7 - 16
packageA/activity/addActivity.js

@@ -30,24 +30,12 @@ Page({
             label: "负责人",
             error: false,
             errMsg: "",
-            type: "route",
-            url: "/packageA/select/contacts/select",
-            model: "#Form",
+            type: "label",
+            model: "",
             value: "",
             radio: true,
-            params: {
-                "id": "20221022165503",
-                "version": 1,
-                "content": {
-                    "sys_enterpriseid": 2,
-                    "where": {
-                        "condition": "",
-                        "workaddress": 0
-                    }
-                }
-            },
-            placeholder: "选择客户联系人",
-            valueName: "contactsid",
+            placeholder: "请填写联系人",
+            valueName: "director",
             checking: "base",
             required: false
         }, {
@@ -89,6 +77,8 @@ Page({
             "director": "",
             "address": "",
             "type": "",
+            "enddate":'',
+            "begdate":""
         },
         disabled: true
     },
@@ -117,6 +107,7 @@ Page({
             ...this.data.content,
             ...this.selectComponent("#Form").submit()
         };
+        if(content.enddate === undefined) content.enddate = ''
         _Http.basic({
             "classname": "webmanage.saletool.orderclue.ordercluecampaign",
             "method": "insertormodify_campaign",

+ 7 - 13
packageA/activity/detail.js

@@ -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,

+ 1 - 1
packageA/activity/detail.wxml

@@ -17,6 +17,6 @@
 </Yl_FunTabs>
 
 <!-- 底部 -->
-<Yl_Tabbar wx:if="{{isLeader || isAdmin && tabbarList.length != 0 }}" list='{{tabbarList}}' bind:callback="tabbarOnClick" />
+<Yl_Tabbar wx:if="{{(isLeader || isAdmin) && tabbarList.length != 0 }}" list='{{tabbarList}}' bind:callback="tabbarOnClick" />
 
 <wxs src='../../utils/wxmlQueryPer.wxs' module="per" />