优化代码

This commit is contained in:
java110 2020-08-02 18:34:11 +08:00
parent 38a3c4bc6e
commit f1415ce03f
8 changed files with 14 additions and 4 deletions

View File

@ -318,9 +318,13 @@
if (res.statusCode == 200) {
let _advertPhotos = res.data;
let _aPhotos = [];
let _urlPath = '';
// #ifdef MP-WEIXIN
_urlPath = constant.url.baseUrl
// #endif
_advertPhotos.forEach(function(_item) {
_item.url = _item.url + "&time=" + new Date();
_item.url = _urlPath + _item.url + "&time=" + new Date();
_aPhotos.push(_item);
});

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1 @@
/* pages/complaintDetail/complaintDetail.wxss */

View File

@ -0,0 +1 @@
/* pages/complaintHandle/complaintHandle.wxss */

View File

@ -454,9 +454,13 @@ var uniNoticeBar = function uniNoticeBar() {__webpack_require__.e(/*! require.en
if (res.statusCode == 200) {
var _advertPhotos = res.data;
var _aPhotos = [];
var _urlPath = '';
_urlPath = constant.url.baseUrl;
_advertPhotos.forEach(function (_item) {
_item.url = _item.url + "&time=" + new Date();
_item.url = _urlPath + _item.url + "&time=" + new Date();
_aPhotos.push(_item);
});