Kaynağa Gözat

供应商站内消息显示文案修复

zhengjinyi 2 yıl önce
ebeveyn
işleme
41b951fcb7

+ 4 - 3
src/main/resources/static/js/supplier-center/message.js

@@ -6,9 +6,9 @@
         isRequset:false,
         mssageTabBarIndex:0,
         mssageTabBar: [
-            {state: 0,text: '全部消息',bages:0},
-            {state: 1,text: '账户通知',bages:0},
-            {state: 2,text: '服务通知',bages:0},
+            {messageType: 0,text: '全部消息',bages:0},
+            {messageType: 2,text: '账户通知',bages:0},
+            {messageType: 3,text: '服务通知',bages:0},
         ],
         allCount:0,
         listQuery: {
@@ -77,6 +77,7 @@
             this.mssageTabBarIndex = index;
             this.listQuery.messageType = messageType;
             this.listQuery.pageNum = 1;
+            this.messagesList =[];
             this. getAuthShopMessageList();
         },
         getAuthShopMessageCount:function(){//查询tabs数量

+ 3 - 2
src/main/resources/static/js/supplier-center/mixins/noticeMixin.js

@@ -9,12 +9,13 @@ var noticeMixin = function () {// 通知消息
         },
         mounted() {
             var _this = this;
+            window.handleUsersClick  = this.handleUsersClick;
         },
         methods: {
             hanldeNoticeText(cell){ // 根据tab计算返回显示文案
                 const $EventFunction = {
-                    1:this.noticeUsersText(cell),
-                    2:this.noticeServeText(cell),
+                    2:this.noticeUsersText(cell),
+                    3:this.noticeServeText(cell),
                 }
                 return $EventFunction[cell.messageType]
             },