Quellcode durchsuchen

三级页采购单位显示

tsz vor 3 Jahren
Ursprung
Commit
61f749c3d7

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

@@ -958,6 +958,9 @@ console.log('Hello world');
             $(".listcontent").scrollTop(scrollTop);
             removeSessionStorage();
         } else {
+            if(historyVt == 's') {
+                $(".set_keyword").hide();
+            } 
             userId = sessionStorage.userId;
             $.ajax({
                 type: 'post',
@@ -1744,6 +1747,9 @@ function hasNoData() {
   var ajaxFlag = true;
 
   function ajaxFun(time, area, city, subscopeclass, buyerclass, key, subtype) {
+    if(historyVt == 's') {
+      $(".set_keyword").hide();
+    } 
       if (!ajaxFlag) {
           return
       }

+ 7 - 3
src/jfw/modules/app/src/web/templates/weixin/wxinfocontent.html

@@ -1092,7 +1092,6 @@
                 window.fileNum = res.data.fileNum // 超级订阅用户可下载附件次数
                 bigstatus = res.data.memberStatus
                 hasServiceArr = res.data.power ? res.data.power : []
-                $('.commonUser').show()
                 isFollow()
                 if (window.isFree){
                   checkShowDialog()
@@ -1157,19 +1156,23 @@
                   $('.icon-help').css('display', 'inline-block')
                   $('.file-count').html(res.data.fileNum)
                 }
+                getNewEntRoot()
             },
             error:function(err) {
                 console.log(err)
             }
         })
-        $.ajax({
+    }
+
+    function getNewEntRoot () {
+      $.ajax({
           type: "post",
           url: '/entnicheNew/buy/whetherbuy',
           success: function(res) {
             console.log(res)
             if(res.error_code == 0) {
               newEntNiche = res.data.isNew
-              if(res.data.isNew) {
+              if(!res.data.isNew) {
                 $('.commonUser').hide()
                 $('.entnicheUser').show()
                 getActionState ({{.T.obj.buyer}}, 'g')
@@ -1182,6 +1185,7 @@
           }
         })
     }
+    getNewEntRoot()
     //isOpening()
     // 大会员引流文案
     function getDrainInfo () {