Browse Source

fix:缺陷处理,ui样式优化

zhangsiya 2 years ago
parent
commit
e06b994185

+ 9 - 10
src/web/staticres/frontRouter/pc/mesgCenter/js/index-pc.js

@@ -104,12 +104,7 @@ var vm = new Vue({
     },
     tabClick(val) {
       this.tabsList.offset = 1
-      if(val.name !== '999'){
-        this.getList(val.name)
-      } else {
-        this.kfHref()
-      }
-
+      this.getList(val.name)
     },
     onPageChange(page) {
       this.tabsList.offset = page
@@ -129,10 +124,9 @@ var vm = new Vue({
           if(message){
             message.getMessageList()
           }
+          _this.getList(_this.activeName)
           if (url) {
             location.href = url
-          } else {
-            _this.getList(_this.activeName)
           }
         }
       })
@@ -160,8 +154,6 @@ var vm = new Vue({
         this.readed(item.id, item.link)
       } else {
         window.__canNextReadMessageStatus = false
-        console.dir(777777)
-        console.dir(item.link)
         if (item.link) {
           location.href = item.link
         }
@@ -186,6 +178,13 @@ var vm = new Vue({
         error:function () {}
       })
     },
+
+    beforeLeave (val) {
+      if(val === '999') {
+        this.kfHref()
+        return false
+      }
+    },
     jumpPushPage () {
       location.href = '/page_workDesktop/work-bench/app/big/push_setting'
     }

+ 4 - 1
src/web/staticres/frontRouter/pc/user/js/set_favorite.js

@@ -60,9 +60,12 @@ var favorite = new Vue({
         }
     },
     created: function () {
+        var _this = this
         if(this.timer) clearInterval(this.timer)
         this.getUserBindInfo()
-        this.getNewUerSales()
+        setTimeout(() => {
+          _this.getNewUerSales()
+        }, 1600)
     },
     methods: {
        // 获取当前用户是否绑定微信、以及微信二维码

+ 1 - 8
src/web/templates/frontRouter/pc/messageCenter/sess/index.html

@@ -51,7 +51,7 @@
             </div>
           </div>
           <div class="tabs-mesg" :class="{'is-tabs':tabsList.totals < 20}">
-            <el-tabs v-model="activeName" @tab-click="tabClick">
+            <el-tabs v-model="activeName" @tab-click="tabClick" :before-leave="beforeLeave">
               <el-tab-pane v-for="(item, index) in counts" :key="index" :name="'' + item.msg_type">
                 <div class="msg-label" slot="label">
                   <img :src='item.img'>
@@ -92,13 +92,6 @@
                   ></el-pagination>
                 </div>
               </el-tab-pane>
-<!--              <el-tab-pane v-if="shunted">-->
-<!--                <div class="msg-label" slot="label" @click="kfHref">-->
-<!--                  <img src='{{Msg "seo" "cdn"}}/frontRouter/pc/mesgCenter/image/sixin@2x.png?v={{Msg "seo" "version"}}'>-->
-<!--                  <i class="b-item" v-show="kfCount">{kfCount > 99 ? '99+' : kfCount}</i>-->
-<!--                  <p class="words">私信</p>-->
-<!--                </div>-->
-<!--              </el-tab-pane>-->
             </el-tabs>
           </div>
         </div>