Bläddra i källkod

feat:订阅推送页面

tsz 3 år sedan
förälder
incheckning
0da9b3c263
1 ändrade filer med 19 tillägg och 0 borttagningar
  1. 19 0
      src/jfw/modules/app/src/web/templates/weixin/historypush.html

+ 19 - 0
src/jfw/modules/app/src/web/templates/weixin/historypush.html

@@ -964,6 +964,10 @@
                 async: false,
                 dataType: 'json',
                 success: function (data) {
+                  data.data = null
+                  if(!data.data) {
+                    data.data = []
+                  }
                     checkmerge(data.industry)
                     if (data.otherFlag){
                         localStorage.setItem({{.T.userId}}+"_otherFlag",data.otherFlag)
@@ -986,6 +990,17 @@
 
                     // 非vip的新用户
                     if (myInfo.userType !== 'vip') {
+                      if(myInfo.userType == 'entniche') {
+                        if(data.data) {
+                          if (data.data.length === 0) {
+                            $('.findnull_').show().siblings('.empty').hide()
+                          }
+                        } else {
+                          $('.findnull_').show().siblings('.empty').hide()
+                        }
+
+                        $('.header_header').hide()
+                      } else {
                         // 如果是新用户(没有推送历史数据,没有关键词),直接就显示空页面
                         if (data.data.length === 0 && myInfo.haskey === false && !firstTime) {
                             if(vm.rootInfo.memberStatus > 0) {
@@ -1003,6 +1018,7 @@
                                 $('.header_header').show()
                             }
                         }
+                      }
                     } else {
                         if (data.data.length === 0) {
                             $('.findnull_').show().siblings('.empty').hide()
@@ -2137,6 +2153,9 @@ function hasNoData() {
     }
     function checkindustry(industry){
         var isinclude = false
+        if(!industry) {
+          return isinclude
+        }
         industry.forEach(function (item,index) {
             if (merge_industry.indexOf(item)>-1){
                 isinclude =  true