|
@@ -113,24 +113,25 @@
|
|
|
this.getActivityInfo()
|
|
|
},
|
|
|
methods: {
|
|
|
- getActivityInfo: function () {
|
|
|
- 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
|
|
|
- }
|
|
|
- }
|
|
|
- })
|
|
|
+ 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
|
|
|
+ // }
|
|
|
+ // }
|
|
|
+ // })
|
|
|
}
|
|
|
}
|
|
|
})
|