mirror of
https://gitee.com/java110/PropertyApp.git
synced 2026-02-24 05:46:09 +08:00
优化代码
This commit is contained in:
parent
cd812db94f
commit
2190db0540
@ -132,24 +132,13 @@
|
|||||||
let _objData = {
|
let _objData = {
|
||||||
page: 1,
|
page: 1,
|
||||||
row: 5,
|
row: 5,
|
||||||
communityId: this.currentCommunityId
|
locationTypeCd: '4000'
|
||||||
};
|
};
|
||||||
loadAdvert(this, _objData)
|
loadAdvert(this, _objData)
|
||||||
.then(function(res) {
|
.then(function(res) {
|
||||||
if (res.statusCode == 200) {
|
if (res.statusCode == 200) {
|
||||||
let _advertPhotos = res.data;
|
let _advertPhotos = res.data;
|
||||||
let _aPhotos = [];
|
_that.swiperList = _advertPhotos;
|
||||||
let _urlPath = '';
|
|
||||||
// #ifdef MP-WEIXIN
|
|
||||||
_urlPath = _that.java110Constant.url.hcBaseUrl
|
|
||||||
// #endif
|
|
||||||
_advertPhotos.forEach(function(_item) {
|
|
||||||
_item.type = "image";
|
|
||||||
_item.url = _urlPath + _item.url + "&time=" + new Date();
|
|
||||||
_aPhotos.push(_item);
|
|
||||||
});
|
|
||||||
|
|
||||||
_that.swiperList = _aPhotos;
|
|
||||||
_that._loadActivitys();
|
_that._loadActivitys();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user