Browse Source

渠道参数修正

bobo 3 years ago
parent
commit
960955474a
2 changed files with 4 additions and 9 deletions
  1. 2 2
      components/statistics/index.js
  2. 2 7
      pages/welfareMall/activityInfo/activityInfo.js

+ 2 - 2
components/statistics/index.js

@@ -14,14 +14,14 @@ class Statistics extends request {
 
         let postParam = {
             source: 'WX_MINI_APP',
-            channel: params.channel || channel || '',
+            channel: params.channel || channel,
             module: params.module,
             action: params.action,
             appid: accountInfo.miniProgram.appId,
             path,
             scene: options.scene,
             fromAppid: referrerInfo.appId || '',
-            department,
+            department: params.department || department,
             mobile: getMobileCache(),
             businessId: params.businessId || '',
         }

+ 2 - 7
pages/welfareMall/activityInfo/activityInfo.js

@@ -44,14 +44,9 @@ Page({
       module: 'activity:detail',
       action: 'visit',
       businessId: options.activityId,
+      channel: options.channel,
+      department: options.department
     })
-    
-    if (options.channel) {
-      this.refStatisticsPostParam.channel = options.channel
-    }
-    if (options.department) {
-      this.refStatisticsPostParam.department = options.department
-    }
   },
 
   /**