Răsfoiți Sursa

提交代码

wangxiaogang 3 ani în urmă
părinte
comite
8d9556059e

+ 5 - 1
src/web/staticres/common-module/messageCenter/js/detail.js

@@ -21,10 +21,14 @@ var vm = new Vue({
     }
   },
   created() {
-    checkMsgCount(true)
+    let wxType = getType()
+    if (!wxType) {
+      checkMsgCount(true)
+    }
     let indx = getQueryString('type')
     this.tit = this.imgSrcs[indx - 1].title
     document.title = this.imgSrcs[indx - 1].title
+    console.info(document.title,this.tit)
     this.msgData()
   },
   methods: {

+ 2 - 2
src/web/staticres/js/message.js

@@ -91,7 +91,7 @@ function Message() {
             $('#public-nav .iner .jynav li').find('.m-ul').append(temp)
         } else {
             $('#public-nav .iner .jynav li').find('.m-ul').append(tempNo)
-        } 
+        }
     }
     // 消息事件绑定
     this.bindEvents = function () {
@@ -139,4 +139,4 @@ function Message() {
     }
 
     this.init()
-}
+}

+ 3 - 2
src/web/templates/common/pchead.html

@@ -929,14 +929,15 @@
     window.addEventListener('scroll', docScroll, true)
     // 消息悬浮窗列表跳转详情页
     function linked(url) {
+        console.info(url)
         if (url) {
-            window.location.href = url
+            location.href = url
         } else {
             return
         }
     }
 $(function(){
-
+    
     // 搜索框显示、隐藏
     $("#public-nav .iner .fl .jy_nav_searchBtn").on("click",function(){
         $(this).hide()

+ 1 - 1
src/web/templates/frontRouter/wx/messageCenter/sess/detail.html

@@ -25,7 +25,7 @@
 </head>
 <body>
   <div class="j-container">
-    {{include "/big-member/header.html"}}
+    <!-- {{include "/big-member/header.html"}} -->
     <div class="j-main detailed" id="detailed" v-cloak>
       <div class="j-container">
         <div class="j-main descri">