瀏覽代碼

参数调整

kk.shi 3 年之前
父節點
當前提交
8f41c972af
共有 2 個文件被更改,包括 8 次插入10 次删除
  1. 4 4
      pages/signIn/activity/activity.js
  2. 4 6
      pages/welfareMall/activityInfo/activityInfo.js

+ 4 - 4
pages/signIn/activity/activity.js

@@ -24,7 +24,7 @@ Page({
         todayIsSigned: false,
         todayIsSigned: false,
         notUseNum: 0,
         notUseNum: 0,
         signInId: '',
         signInId: '',
-        channelId: '',
+        department: '',
     },
     },
 
 
     /**
     /**
@@ -35,7 +35,7 @@ Page({
       if(options && options.signId) {
       if(options && options.signId) {
         this.setData({
         this.setData({
           signInId: options.signId,
           signInId: options.signId,
-          channelId: options.channelId,
+          department: options.department,
         })
         })
         console.log(options.signId) //abcd
         console.log(options.signId) //abcd
       }
       }
@@ -68,7 +68,7 @@ Page({
                     module: 'signin',
                     module: 'signin',
                     action: 'visit',
                     action: 'visit',
                     businessId: res.data.id,
                     businessId: res.data.id,
-                    department: this.data.channelId,
+                    department: this.data.department,
                 })
                 })
 
 
             }
             }
@@ -212,7 +212,7 @@ Page({
             module: 'signin',
             module: 'signin',
             action: 'click',
             action: 'click',
             businessId: this.data.activity.id,
             businessId: this.data.activity.id,
-            department: this.data.channelId,
+            department: this.data.department,
         })
         })
     },
     },
 
 

+ 4 - 6
pages/welfareMall/activityInfo/activityInfo.js

@@ -21,7 +21,7 @@ Page({
      preventDup:true,
      preventDup:true,
      config: {},
      config: {},
      orderSn:"",
      orderSn:"",
-     channelId: '',
+     department: '',
   },
   },
 
 
   /**
   /**
@@ -43,7 +43,7 @@ Page({
     if(options.activityId){
     if(options.activityId){
       this.setData({
       this.setData({
         activityId: options.activityId,
         activityId: options.activityId,
-        channelId: options.channelId,
+        department: options.department,
       })
       })
     this.getActivityDetail(options.activityId)
     this.getActivityDetail(options.activityId)
     }
     }
@@ -53,8 +53,7 @@ Page({
       action: 'visit',
       action: 'visit',
       businessId: options.activityId,
       businessId: options.activityId,
       channel: options.channel,
       channel: options.channel,
-      // department: options.department
-      department: options.channelId
+      department: options.department
     })
     })
   },
   },
 
 
@@ -219,8 +218,7 @@ Page({
       module: 'activity:detail',
       module: 'activity:detail',
       action: 'click',
       action: 'click',
       businessId: this.data.activityId,
       businessId: this.data.activityId,
-      // department: options.department
-      department: this.data.channelId
+      department: this.data.department
     })
     })
 
 
   },
   },