瀏覽代碼

Merge remote-tracking branch 'origin/bobo/fix/welfgo-220216'

xing.li 3 年之前
父節點
當前提交
437c46d32f
共有 2 個文件被更改,包括 4 次插入9 次删除
  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

@@ -45,14 +45,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
-    }
   },
 
   /**