|
@@ -21,11 +21,11 @@ var getMsgBuoyActive = {
|
|
|
// 限制初始化页面
|
|
|
if (this.platform === 'app' || this.platform === 'wx') {
|
|
|
if (this.checkNowInMobileHomePage()) {
|
|
|
- this.getBuoyMsgAjax()
|
|
|
+ // this.getBuoyMsgAjax()
|
|
|
}
|
|
|
} else {
|
|
|
this.listenNotification()
|
|
|
- this.getBuoyMsgAjax()
|
|
|
+ // this.getBuoyMsgAjax()
|
|
|
}
|
|
|
},
|
|
|
/**
|
|
@@ -90,26 +90,26 @@ var getMsgBuoyActive = {
|
|
|
// 初始化样式表style
|
|
|
this.scroll()
|
|
|
},
|
|
|
- getBuoyMsgAjax: function () {
|
|
|
- var _this = this
|
|
|
- $.ajax({
|
|
|
- url: '/jyapi/messageCenter/GetBuoyMsg',
|
|
|
- type: 'POST',
|
|
|
- }).done(function (res) {
|
|
|
- if (res && res.error_code === 0 && res.data) {
|
|
|
- try {
|
|
|
- _this.messageList = res.data
|
|
|
- if (res.data && res.data.length) {
|
|
|
- _this.messageInfo = _this.messageList[0]
|
|
|
- _this.initDOMNode()
|
|
|
- }
|
|
|
-
|
|
|
- } catch (error) {
|
|
|
- console.warn(error)
|
|
|
- }
|
|
|
- }
|
|
|
- })
|
|
|
- },
|
|
|
+ // getBuoyMsgAjax: function () {
|
|
|
+ // var _this = this
|
|
|
+ // $.ajax({
|
|
|
+ // url: '/jyapi/messageCenter/GetBuoyMsg',
|
|
|
+ // type: 'POST',
|
|
|
+ // }).done(function (res) {
|
|
|
+ // if (res && res.error_code === 0 && res.data) {
|
|
|
+ // try {
|
|
|
+ // _this.messageList = res.data
|
|
|
+ // if (res.data && res.data.length) {
|
|
|
+ // _this.messageInfo = _this.messageList[0]
|
|
|
+ // _this.initDOMNode()
|
|
|
+ // }
|
|
|
+ //
|
|
|
+ // } catch (error) {
|
|
|
+ // console.warn(error)
|
|
|
+ // }
|
|
|
+ // }
|
|
|
+ // })
|
|
|
+ // },
|
|
|
istoReaded: function (ids, url) {
|
|
|
// 消息盒子 消失
|
|
|
// 效果彩蛋 ~~ 1200ms逐渐消失
|