wangxiaogang %!s(int64=3) %!d(string=hai) anos
pai
achega
9a11a35011

+ 0 - 2
src/web/staticres/common-module/messageCenter/js/detail.js

@@ -30,8 +30,6 @@ var vm = new Vue({
       let wxType = getType()
       if (!wxType) {
         checkMsgCount(true, 0)
-      } else {
-        backRefresh()
       }
     }, 300)
     this.tit = this.imgSrcs[indx - 1].title

+ 1 - 14
src/web/templates/weixin/tabbar.html

@@ -33,18 +33,6 @@
 <script src=//cdn-common.jianyu360.com/cdn/lib/zepto/1.2.0/zepto.min.js></script>
 <script src='{{Msg "seo" "cdn"}}/common-module/messageCenter/js/func.js?v={{Msg "seo" "version"}}'></script>
 <script>
-  function backRefresh () {
-    var isPageHide = false;
-    window.addEventListener('pageshow', function () {
-        if (isPageHide) {
-          location.reload();
-        }
-    });
-    window.addEventListener('pagehide', function () {
-        isPageHide = true;
-        vm.tabsCount()
-    });
-  }
 	var vm = new Vue({
   el: '#tabMesg',
   delimiters: ['{', '}'],
@@ -88,7 +76,7 @@
 		}
 	},
 
-	created() {
+	mounted() {
     var uMsg = Number(getQueryString('msg') || this.getURLIndex())
     this.tabActive = uMsg
 		this.tabsCount()
@@ -133,7 +121,6 @@
       $.ajax({
         type:'GET',
         url:'/jymessageCenter/getCount?t=' + Date.now(),
-        data: {},
         success:function (res) {
           if (res && res.status == 1 && res.data && res.data.count) {
             _this.counts = res.data.count