Authored by htoooth

fix sale order

... ... @@ -173,24 +173,14 @@ const navigationBar = (data, shopId) => {
* @param type $data
* @return type []
*/
const largeSlideImg = (data, shopId) => {
const largeSlideImg = (data) => {
let dest = [];
_.forEach(data, (value) => {
let url;
value = _.get(value, 'data[0]', {});
url = value.url;
//
//if (+value.categoryId > 0) {
// if (!url) {
// url = `${shopListUrl}?shopId=${shopId}`;
// }
// url += `&productPool=${value.categoryId}`;
//}
dest.push({
img: value.src,
url: url
url: value.url
});
});
... ... @@ -202,24 +192,14 @@ const largeSlideImg = (data, shopId) => {
* @param data 装修数据
* @returns {{}}
*/
const oneRowTwoColImages = (data, shopId) => {
const oneRowTwoColImages = (data) => {
let dest = [];
_.forEach(data, (value) => {
let url;
value = _.get(value, 'data[0]', {});
url = value.url;
//if (+value.categoryId > 0) {
// if (!url) {
// url = `${shopListUrl}?shopId=${shopId}`;
// }
// url += `&productPool=${value.categoryId}`;
//}
dest.push({
img: value.src,
url: url
url: value.url
});
});
return {oneRowTwoColImages: dest};
... ...