Authored by 郭成尧

'modifyAppUrl-to-model'

... ... @@ -45,7 +45,8 @@ const _formShopData = (data, shopId, isApp) => {
_.forEach(resData, (item) => {
if (item.data) {
spring.push({
url: isApp ? listModel.modifyAppUrl(item.data[0], shopId) : listModel.modifyWapUrl(item.data[0], shopId),
url: isApp ? listModel.modifyAppUrl(item.data[0], shopId) :
listModel.modifyWapUrl(item.data[0], shopId),
springType: helpers.image(item.data[0].src)
});
}
... ... @@ -100,7 +101,8 @@ const _formShopData = (data, shopId, isApp) => {
_.forEach(resData, (item) => {
if (item.data[0]) {
bannerTop.data.push({
url: isApp ? listModel.modifyAppUrl(item.data[0], shopId) : listModel.modifyWapUrl(item.data[0], shopId),
url: isApp ? listModel.modifyAppUrl(item.data[0], shopId) :
listModel.modifyWapUrl(item.data[0], shopId),
src: item.data[0].src
});
}
... ...