|
@@ -113,25 +113,29 @@
|
|
|
this.getActivityInfo()
|
|
|
},
|
|
|
methods: {
|
|
|
+ //P599需求该引导广告,每个用户每月只会展示一次,服务端会标记次数,超过1次会返回空,注意多次调用pc-guide引发的问题
|
|
|
getActivityInfo: function (list) {
|
|
|
- this.imageList = list
|
|
|
- // var _this = this
|
|
|
- // var codes = [this.ad]
|
|
|
- // var params = {
|
|
|
- // codes: codes
|
|
|
- // }
|
|
|
- // $.ajax({
|
|
|
- // type: 'post',
|
|
|
- // url: '/publicapply/free/getJyAdList',
|
|
|
- // contentType: 'application/json',
|
|
|
- // data: JSON.stringify(params),
|
|
|
- // success: function (r) {
|
|
|
- // if (r.error_code === 0 && r.data && $.isArray(r.data[_this.ad]) && r.data[_this.ad] && r.data[_this.ad].length > 0) {
|
|
|
- // var adList = r.data[_this.ad]
|
|
|
- // _this.imageList = adList
|
|
|
- // }
|
|
|
- // }
|
|
|
- // })
|
|
|
+ if(list) {
|
|
|
+ this.imageList = list
|
|
|
+ return
|
|
|
+ }
|
|
|
+ var _this = this
|
|
|
+ var codes = [this.ad]
|
|
|
+ var params = {
|
|
|
+ codes: codes
|
|
|
+ }
|
|
|
+ $.ajax({
|
|
|
+ type: 'post',
|
|
|
+ url: '/publicapply/free/getJyAdList',
|
|
|
+ contentType: 'application/json',
|
|
|
+ data: JSON.stringify(params),
|
|
|
+ success: function (r) {
|
|
|
+ if (r.error_code === 0 && r.data && $.isArray(r.data[_this.ad]) && r.data[_this.ad] && r.data[_this.ad].length > 0) {
|
|
|
+ var adList = r.data[_this.ad]
|
|
|
+ _this.imageList = adList
|
|
|
+ }
|
|
|
+ }
|
|
|
+ })
|
|
|
}
|
|
|
}
|
|
|
})
|