Authored by 沈志敏

fix bug

... ... @@ -50,13 +50,17 @@
}
},
created() {
const skns = {};
const limit = 50;
let page = 0;
this.floor.forEach(item => {
this.productSkn.push(item.id);
// 去除重复 skn
if (!skns[item.id]) {
skns[item.id] = 1;
}
});
this.productSkn = Object.keys(skns);
this.getProducts(this.productSkn.slice(page, limit));
bus.$on('list.paging', () => {
... ...
... ... @@ -102,6 +102,9 @@
this.shopInfo = result;
this.shopInfo.showBrandInfo = true;
// 处理富文本
this.shopInfo.shopIntro && (this.shopInfo.shopIntro = this.shopInfo.shopIntro.replace(/<\/?[^>]*>/g, ''));
let shareUrl = locationQuery.id ?
location.origin + '/product/shop/favorite/share?id=' + locationQuery.id :
location.origin + '/product/shop/' + $shop.data('domain') + '/share';
... ...