mirror of
https://gitee.com/java110/WechatOwnerService.git
synced 2026-02-23 21:36:38 +08:00
优化代码
This commit is contained in:
parent
cd38c5aabf
commit
bf286cc639
@ -164,16 +164,7 @@ export function loadAdverts(dataObj) {
|
||||
success: function(res) {
|
||||
if (res.statusCode == 200) {
|
||||
let _advertPhotos = res.data;
|
||||
let _aPhotos = [];
|
||||
let _urlPath = '';
|
||||
// #ifdef MP-WEIXIN
|
||||
_urlPath = url.baseUrl
|
||||
// #endif
|
||||
_advertPhotos.forEach(function(_item) {
|
||||
_item.url = _urlPath + _item.url + "&time=" + new Date();
|
||||
_aPhotos.push(_item);
|
||||
});
|
||||
resolve(_aPhotos);
|
||||
resolve(_advertPhotos);
|
||||
return;
|
||||
}
|
||||
reject();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user