Browse Source

fix:微信端订阅免费用户显示查看更多

tsz 3 years ago
parent
commit
17362c05a9
1 changed files with 5 additions and 0 deletions
  1. 5 0
      src/web/templates/weixin/historypush.html

+ 5 - 0
src/web/templates/weixin/historypush.html

@@ -1038,6 +1038,7 @@
         $.ajax({
             url: '/bigmember/use/isAdd',
             type: 'POST',
+            async: false,
             success: function (res) {
                 if (res && res.data) {
                   window.isFree = res.data.isFree
@@ -1058,6 +1059,9 @@
     getUserMsg()
     function checkFreeList (data) {
       if(window.isFree){
+        if(!data.data) {
+          data.data = data
+        }
         if (data.data.length > 10) {
           // sessionStorage.setItem('isNeedSalesStatus', isNeedSalesStatus)
           isNeedSales(function (res) {
@@ -1221,6 +1225,7 @@
               } else {
                   structureHtml(dataCache, true);
               }
+              checkFreeList(dataCache)
               $(window).scrollTop(scrollTop);
               if (sessionStorage.getItem('hasFreeMore') === 'true') {
                 isNeedSales(function (res) {