瀏覽代碼

时间筛选逻辑修改、关键词组件修改

TANGSHIZHE 4 年之前
父節點
當前提交
3aa3e75d76

+ 2 - 5
src/jfw/modules/app/src/web/staticres/jyapp/js/historypush.js

@@ -245,11 +245,6 @@ var vm = new Vue({
             break
           }
         }
-        this.setToggle()
-        setTimeout(() => {
-          FTAGData(this.time, this.area, this.subscopeclass, this.buyerclass, this.key, this.subtype)
-        }, 500)
-        return
       } else if(data.name === 'areaItem'){
         $('.areaText').html(data.t)
         this.tagText.areaText = data.t
@@ -272,6 +267,8 @@ var vm = new Vue({
         this.subtype = data.data.join(',')
       } else if(data.name === 'rootItem'){
         topay()
+      } else {
+        return console.log('暂无数据')
       }
       this.setToggle()
       setTimeout(()=>{

+ 1 - 7
src/web/staticres/common-module/collection/js/keyword-mobile.js

@@ -154,13 +154,11 @@ var keywordComponent = {
               ]
               let data = initArr
 
-              console.log(data)
               let maxarr = []
               data.forEach(function(item,index) {
                 let minarr = []
                 let keyname = item.s_item
                 let eachArr = item.a_key
-                console.log(eachArr)
                 eachArr.forEach(function(data, i){
                   data = {
                     name: data.key[0],
@@ -168,7 +166,6 @@ var keywordComponent = {
                   }
                   minarr.push(data)
                 })
-                console.log(minarr)
                 let obj = {
                   [keyname]: minarr,
                   type: false
@@ -196,7 +193,7 @@ var keywordComponent = {
       this.tablist.forEach(function(item) {
         item[Object.keys(item)[0]].forEach(function(data) {
           keyArr.forEach(function(sum) {
-            if(data.name = sum) {
+            if(data.name == sum) {
               data.type = true
               bool = false
             }
@@ -228,10 +225,8 @@ var keywordComponent = {
     },
     // 模块全选
     checkAll: function(data){
-      console.log(data)
       let selectBool = data[Object.keys(data)[1]]
       let dataArr = data[Object.keys(data)[0]]
-      console.log(selectBool, dataArr)
       if(selectBool) {
         data[Object.keys(data)[1]] = false
         dataArr.forEach(function(item, index){
@@ -288,7 +283,6 @@ var keywordComponent = {
         itemall[Object.keys(itemall)[0]].forEach(function(data) {
           let bool = true
           if(data.type) {
-            console.log(data)
             bool = false+''
           }
           boolArr.push(bool)

+ 2 - 5
src/web/staticres/vipsubscribe/js/historypush.js

@@ -231,11 +231,6 @@ var vm = new Vue({
             break
           }
         }
-        this.setToggle()
-        setTimeout(() => {
-          FTAGData(this.time)
-        }, 500)
-        return
       } else if(data.name === 'areaItem'){
         $('.areaText').html(data.t)
         this.tagText.areaText = data.t
@@ -258,6 +253,8 @@ var vm = new Vue({
         this.subtype = data.data.join(',')
       } else if(data.name === 'rootItem'){
         topay()
+      } else {
+        return console.log('暂无数据')
       }
       this.setToggle()
       setTimeout(()=>{