|
@@ -40,18 +40,18 @@ var vm = new Vue({
|
|
|
msgType: type
|
|
|
},
|
|
|
success:function () {
|
|
|
- try {
|
|
|
+ // try {
|
|
|
// JyObj.refreshAppointTab('search', 0)
|
|
|
- JyObj.refreshAppointTab('message', 1)
|
|
|
- JyObj.checkLab()
|
|
|
- } catch (e) {
|
|
|
- console.log(e)
|
|
|
- }
|
|
|
- if (url) {
|
|
|
- location.href = url
|
|
|
- } else {
|
|
|
- _this.getList()
|
|
|
- }
|
|
|
+ // JyObj.refreshAppointTab('message', 1)
|
|
|
+ // JyObj.checkLab()
|
|
|
+ // } catch (e) {
|
|
|
+ // console.log(e)
|
|
|
+ // }
|
|
|
+ // if (url) {
|
|
|
+ window.location.href = '/jyapp/frontPage/messageCenter/sess/detail?type=' + _this.msgType1(type) + '&num=1'
|
|
|
+ // } else {
|
|
|
+ // _this.getList()
|
|
|
+ // }
|
|
|
}
|
|
|
})
|
|
|
},
|
|
@@ -69,27 +69,17 @@ var vm = new Vue({
|
|
|
}
|
|
|
}
|
|
|
} else {
|
|
|
- if (appType == 'android') {
|
|
|
+ // if (appType == 'android') {
|
|
|
if (item.isRead == 0) {
|
|
|
this.topRead(item.id, urls.androidUrl, item.msg_type)
|
|
|
} else {
|
|
|
- if (urls.androidUrl) {
|
|
|
- location.href = urls.androidUrl
|
|
|
- } else {
|
|
|
- return
|
|
|
- }
|
|
|
- }
|
|
|
- } else {
|
|
|
- if (item.isRead == 0) {
|
|
|
- this.topRead(item.id, urls.iosUrl, item.msg_type)
|
|
|
- } else {
|
|
|
- if (urls.iosUrl) {
|
|
|
- location.href = urls.iosUrl
|
|
|
- } else {
|
|
|
- return
|
|
|
- }
|
|
|
+ // if (urls.androidUrl) {
|
|
|
+ window.location.href = '/jyapp/frontPage/messageCenter/sess/detail?type=' + this.msgType1(item.msg_type) + '&num=1'
|
|
|
+ // } else {
|
|
|
+ // return
|
|
|
+ // }
|
|
|
}
|
|
|
- }
|
|
|
+ // }
|
|
|
}
|
|
|
},
|
|
|
gotoUrl() {
|
|
@@ -111,6 +101,18 @@ var vm = new Vue({
|
|
|
'7': '系统通知',
|
|
|
}
|
|
|
return obj[val]
|
|
|
+ },
|
|
|
+ msgType1(val) {
|
|
|
+ const obj = {
|
|
|
+ '活动优惠': '1',
|
|
|
+ '服务通知': '2',
|
|
|
+ '订阅消息': '3',
|
|
|
+ '项目动态': '4',
|
|
|
+ '企业动态': '5',
|
|
|
+ '分析报告': '6',
|
|
|
+ '系统通知': '7',
|
|
|
+ }
|
|
|
+ return obj[val]
|
|
|
}
|
|
|
}
|
|
|
})
|