|
@@ -10,13 +10,7 @@ var vm = new Vue({
|
|
kfCount: 0,
|
|
kfCount: 0,
|
|
shuntData: {},
|
|
shuntData: {},
|
|
shunted: true,
|
|
shunted: true,
|
|
- imgSrcs: [
|
|
|
|
- { type: '-1', title: '全部', url: '/images/pc/quanbu@2x.png' }, { type: '1', title: '活动通知', url: '/images/pc/huodong@2x.png' },
|
|
|
|
- { type: '2', title: '服务通知', url: '/images/pc/fuwu@2x.png' }, { type: '3', title: '订阅消息', url: '/images/pc/dingyue@2x.png' },
|
|
|
|
- { type: '4', title: '项目动态', url: '/images/pc/xiangmu@2x.png' }, { type: '5', title: '企业动态', url: '/images/pc/qiye@2x.png' },
|
|
|
|
- { type: '6', title: '分析报告', url: '/images/pc/fenxi@2x.png' }, { type: '7', title: '系统通知', url: '/images/pc/xitong@2x.png' },
|
|
|
|
- { type: '8', title: '剑鱼学堂', url: '/images/pc/xuetang@2x.png' }, { type: '9', title: '私信', url: '/images/pc/sixin@2x.png' }
|
|
|
|
- ],
|
|
|
|
|
|
+ imgSrcObj: {},
|
|
tabsList: {
|
|
tabsList: {
|
|
lasts: [],
|
|
lasts: [],
|
|
lists: [],
|
|
lists: [],
|
|
@@ -29,6 +23,7 @@ var vm = new Vue({
|
|
}
|
|
}
|
|
},
|
|
},
|
|
created() {
|
|
created() {
|
|
|
|
+ this.activeName = '-1'
|
|
this.getList()
|
|
this.getList()
|
|
// this.kfContacts()
|
|
// this.kfContacts()
|
|
// this.kfData()
|
|
// this.kfData()
|
|
@@ -39,7 +34,7 @@ var vm = new Vue({
|
|
var _this = this
|
|
var _this = this
|
|
var type = msgType !== null && msgType !== undefined ? Number(msgType) : -1
|
|
var type = msgType !== null && msgType !== undefined ? Number(msgType) : -1
|
|
var params = {
|
|
var params = {
|
|
- isColumn: type === -1,
|
|
|
|
|
|
+ isColumn: true,
|
|
isColumnNewMsg: false,
|
|
isColumnNewMsg: false,
|
|
isMsgList: true,
|
|
isMsgList: true,
|
|
msgType: type,
|
|
msgType: type,
|
|
@@ -59,8 +54,9 @@ var vm = new Vue({
|
|
_this.loading = false
|
|
_this.loading = false
|
|
}, 300)
|
|
}, 300)
|
|
if(res.code === 0) {
|
|
if(res.code === 0) {
|
|
- if(_this.counts.length ===0 && res.column.length > 0){
|
|
|
|
- _this.counts = res.column || []
|
|
|
|
|
|
+ _this.counts = res.column || []
|
|
|
|
+ for(var item of _this.counts) {
|
|
|
|
+ _this.$set(_this.imgSrcObj, item.msg_type, item)
|
|
}
|
|
}
|
|
_this.tabsList.lists = []
|
|
_this.tabsList.lists = []
|
|
_this.tabsList.lasts = $.isEmptyObject(res.last) ? false : res.last
|
|
_this.tabsList.lasts = $.isEmptyObject(res.last) ? false : res.last
|
|
@@ -174,7 +170,8 @@ var vm = new Vue({
|
|
$.ajax({
|
|
$.ajax({
|
|
url: '/jyapi/messageCenter/ClearUnreadMsg',
|
|
url: '/jyapi/messageCenter/ClearUnreadMsg',
|
|
type: 'POST',
|
|
type: 'POST',
|
|
- success:function (res) {
|
|
|
|
|
|
+ success:function () {
|
|
|
|
+ this.activeName = '-1'
|
|
_this.getList()
|
|
_this.getList()
|
|
if(message){
|
|
if(message){
|
|
message.getMessageList()
|
|
message.getMessageList()
|
|
@@ -184,7 +181,7 @@ var vm = new Vue({
|
|
})
|
|
})
|
|
},
|
|
},
|
|
jumpPushPage () {
|
|
jumpPushPage () {
|
|
- location.href = '/big/push_setting'
|
|
|
|
|
|
+ location.href = '/page_workDesktop/work-bench/app/big/push_setting'
|
|
}
|
|
}
|
|
}
|
|
}
|
|
})
|
|
})
|