mirror of
https://gitee.com/java110/PropertyApp.git
synced 2026-02-23 21:36:39 +08:00
优化代码
This commit is contained in:
parent
cd812db94f
commit
2190db0540
@ -132,24 +132,13 @@
|
||||
let _objData = {
|
||||
page: 1,
|
||||
row: 5,
|
||||
communityId: this.currentCommunityId
|
||||
locationTypeCd: '4000'
|
||||
};
|
||||
loadAdvert(this, _objData)
|
||||
.then(function(res) {
|
||||
if (res.statusCode == 200) {
|
||||
let _advertPhotos = res.data;
|
||||
let _aPhotos = [];
|
||||
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.swiperList = _advertPhotos;
|
||||
_that._loadActivitys();
|
||||
return;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user