duanshenglang vor 3 Tagen
Ursprung
Commit
2d36c7bee8
3 geänderte Dateien mit 17 neuen und 7 gelöschten Zeilen
  1. 1 1
      lottery/bigJxs.html
  2. 4 4
      lottery/index.html
  3. 12 2
      lottery/qwMaterial.html

+ 1 - 1
lottery/bigJxs.html

@@ -2993,7 +2993,7 @@
           if (code === 1) {
             this.saleIndicators = data || []
             if (data && data.length) {
-              data[0].dayList.forEach(item => {
+              data[this.clientIndex].dayList.forEach(item => {
                 this.clientStepDate.push(item.time)
                 this.clientStepNum.push(item.clientNum)
               })

+ 4 - 4
lottery/index.html

@@ -105,10 +105,10 @@
 						var currentQueryParams = window.location.search;
 						window.location.replace('qwMaterial.html' + currentQueryParams)
 					} else if (this.h5Type == 19 || this.h5Type == 30) {
-						// 抽奖
-						var currentQueryParams = window.location.search;
-						window.location.replace('lottery.html' + currentQueryParams)
-					} else if (this.h5Type == 20) {
+						 // 抽奖
+						 var currentQueryParams = window.location.search;
+						 window.location.replace('lottery.html' + currentQueryParams)
+					 } else if (this.h5Type == 20) {
 						// 宝骏云海送祝福
 						var currentQueryParams = window.location.search;
 						window.location.replace('h5Type-20.html' + currentQueryParams)

+ 12 - 2
lottery/qwMaterial.html

@@ -468,6 +468,7 @@
         httpUrl: '',
         bId: null,
         env: '',
+        albumData: null,
         memberId: null,
         tenancyId: null,
         keyword: '',
@@ -526,7 +527,12 @@
     created() {
       this.bId = this.getQueryParam('bId')
       this.env = this.getQueryParam('env')
-
+      if (this.getQueryParam('contentType')) {
+        this.contentType = Number(this.getQueryParam('contentType'))
+        this.albumData = {
+          id: this.getQueryParam('groupId')
+        }
+      }
       if (!this.env || this.env === 'prod') {
         this.httpUrl = 'https://wlapi.wefanbot.com'
       } else {
@@ -656,8 +662,12 @@
         }).then(result => {
           let { data, code, msg } = result
           if (code === 1) {
-            this.treeData = data || []
             this.allTreeData = this.flattenTreeData(data, true)
+            if (this.getQueryParam('contentType')) {
+              this.getMaterData(this.albumData)
+            } else {
+              this.treeData = data || []
+            }
           } else {
             vant.Toast.fail(msg)
           }