Explorar o código

Merge branch 'dev/v4.8.49_zsy' of qmx/jy into feature/v4.8.49

zhangsiya hai 1 ano
pai
achega
9cbeaed55e

+ 22 - 22
src/web/staticres/common-module/ad/js/msgbuoy.js

@@ -21,11 +21,11 @@ var getMsgBuoyActive = {
     // 限制初始化页面
     if (this.platform === 'app' || this.platform === 'wx') {
       if (this.checkNowInMobileHomePage()) {
-        this.getBuoyMsgAjax()
+        // this.getBuoyMsgAjax()
       }
     } else {
       this.listenNotification()
-      this.getBuoyMsgAjax()
+      // this.getBuoyMsgAjax()
     }
   },
   /**
@@ -90,26 +90,26 @@ var getMsgBuoyActive = {
     // 初始化样式表style
     this.scroll()
   },
-  getBuoyMsgAjax: function () {
-    var _this = this
-    $.ajax({
-      url: '/jyapi/messageCenter/GetBuoyMsg',
-      type: 'POST',
-    }).done(function (res) {
-      if (res && res.error_code === 0 && res.data) {
-          try {
-              _this.messageList = res.data
-              if (res.data && res.data.length) {
-                _this.messageInfo = _this.messageList[0]
-                _this.initDOMNode()
-              }
-
-          } catch (error) {
-            console.warn(error)
-          }
-      }
-    })
-  },
+  // getBuoyMsgAjax: function () {
+  //   var _this = this
+  //   $.ajax({
+  //     url: '/jyapi/messageCenter/GetBuoyMsg',
+  //     type: 'POST',
+  //   }).done(function (res) {
+  //     if (res && res.error_code === 0 && res.data) {
+  //         try {
+  //             _this.messageList = res.data
+  //             if (res.data && res.data.length) {
+  //               _this.messageInfo = _this.messageList[0]
+  //               _this.initDOMNode()
+  //             }
+  //
+  //         } catch (error) {
+  //           console.warn(error)
+  //         }
+  //     }
+  //   })
+  // },
   istoReaded: function (ids, url) {
     // 消息盒子 消失
     // 效果彩蛋 ~~ 1200ms逐渐消失

+ 22 - 22
src/web/staticres/common-module/message-tip/js/msgbuoy.js

@@ -21,11 +21,11 @@ var getMsgBuoyActive = {
     // 限制初始化页面
     if (this.platform === 'app' || this.platform === 'wx') {
       if (this.checkNowInMobileHomePage()) {
-        this.getBuoyMsgAjax()
+        // this.getBuoyMsgAjax()
       }
     } else {
       this.listenNotification()
-      this.getBuoyMsgAjax()
+      // this.getBuoyMsgAjax()
     }
   },
   /**
@@ -90,26 +90,26 @@ var getMsgBuoyActive = {
     // 初始化样式表style
     this.scroll()
   },
-  getBuoyMsgAjax: function () {
-    var _this = this
-    $.ajax({
-      url: '/jyapi/messageCenter/GetBuoyMsg',
-      type: 'POST',
-    }).done(function (res) {
-      if (res && res.error_code === 0 && res.data) {
-          try {
-              _this.messageList = res.data
-              if (res.data && res.data.length) {
-                _this.messageInfo = _this.messageList[0]
-                _this.initDOMNode()
-              }
-
-          } catch (error) {
-            console.warn(error)
-          }
-      }
-    })
-  },
+  // getBuoyMsgAjax: function () {
+  //   var _this = this
+  //   $.ajax({
+  //     url: '/jyapi/messageCenter/GetBuoyMsg',
+  //     type: 'POST',
+  //   }).done(function (res) {
+  //     if (res && res.error_code === 0 && res.data) {
+  //         try {
+  //             _this.messageList = res.data
+  //             if (res.data && res.data.length) {
+  //               _this.messageInfo = _this.messageList[0]
+  //               _this.initDOMNode()
+  //             }
+  //
+  //         } catch (error) {
+  //           console.warn(error)
+  //         }
+  //     }
+  //   })
+  // },
   istoReaded: function (ids, url) {
     // 消息盒子 消失
     // 效果彩蛋 ~~ 1200ms逐渐消失

+ 1 - 1
src/web/templates/common/pchead.html

@@ -204,7 +204,7 @@
 <!-- 浮漂消息公共js方法 -->
 <!-- defer表示最后执行 -->
 <!--不展示强推消息-->
-<!--<script defer src='{{Msg "seo" "cdn"}}/common-module/ad/js/msgbuoy.js?v={{Msg "seo" "version"}}'></script>-->
+<script defer src='{{Msg "seo" "cdn"}}/common-module/ad/js/msgbuoy.js?v={{Msg "seo" "version"}}'></script>
 <!--<script defer src='{{Msg "seo" "cdn"}}/common-module/message-tip/js/msgbuoy.js?v={{Msg "seo" "version"}}'></script>-->
 <script>
   var Activedatastring = 'register'