Browse Source

市场活动

xiaohaizhao 2 years ago
parent
commit
bb8440e924

+ 1 - 1
packageA/activity/detail.js

@@ -11,7 +11,7 @@ Page({
         }, {
             label: "活动线索",
             icon: "icon-tabxiansuo",
-            model: "#clue"
+            model: "#Clue"
         }, {
             label: "操作",
             icon: "icon-tabcaozuojilu1",

+ 1 - 1
packageA/activity/detail.wxml

@@ -9,7 +9,7 @@
 <view style="height: 20rpx;" />
 <Yl_FunTabs list='{{tabsList}}' active='{{tabsActive}}' bind:onChenge="tabsChange">
     <Preview slot='详细信息' list1='{{list1}}' list2='{{list2}}' />
-    <Clue slot='活动线索' id='clue' detail="{{detail}}" disabled="{{per.query(options,'offer')||isAdmin||isLeader}}" />
+    <Clue slot='活动线索' id='Clue' detail="{{detail}}" disabled="{{per.query(options,'offer')||isAdmin||isLeader}}" />
     <Work slot='任务' id='Work' ownertable='sat_campaign' ownerid='{{detail.sat_campaignid}}' disabled="{{isAdmin||isLeader}}" />
     <Record slot='操作' id="Record" ownertable='sat_campaign' ownerid='{{detail.sat_campaignid}}' />
     <Trace slot='跟进动态' id='Trace' ownertable='sat_campaign' ownerid='{{detail.sat_campaignid}}' />

+ 3 - 4
packageA/activity/modules/clue/clue.js

@@ -67,11 +67,10 @@ Component({
         /* 获取产品列表 */
         getList(id, init = false, data) {
             let content = this.data.content;
+            if (id == 0) return;
             content.sat_campaignid = id;
-            if (init) content.pageNumber = 1
-            if (data) {
-                content.where.cluetype = data.typeActive
-            }
+            if (init) content.pageNumber = 1;
+            if (data) content.where.cluetype = data.typeActive;
             _Http.basic({
                 "id": "20221102102602",
                 content