|
@@ -416,7 +416,8 @@
|
|
if (data.goods.brief) data.goods.brief = data.goods.brief.replace(/\<img/gi,
|
|
if (data.goods.brief) data.goods.brief = data.goods.brief.replace(/\<img/gi,
|
|
'<img class="rich-img"');
|
|
'<img class="rich-img"');
|
|
// 特价
|
|
// 特价
|
|
- let act = data.act.find(i => i.type == '3')
|
|
|
|
|
|
+ let act;
|
|
|
|
+ act = data.act.find(i => i.type == '3')
|
|
if (act) {
|
|
if (act) {
|
|
for (let val of act.list) {
|
|
for (let val of act.list) {
|
|
for (let [index, arr] of data.specs.entries()) {
|
|
for (let [index, arr] of data.specs.entries()) {
|
|
@@ -435,11 +436,10 @@
|
|
})
|
|
})
|
|
that.$set(that, `info`, data);
|
|
that.$set(that, `info`, data);
|
|
// 优惠
|
|
// 优惠
|
|
- let discount;
|
|
|
|
- discount = data.act.find(i => i.type == '5')
|
|
|
|
- if (discount) that.$set(that.discount, `full_decrement`, discount.text);
|
|
|
|
- discount = data.act.find(i => i.type == '6')
|
|
|
|
- if (discount) that.$set(that.discount, `full_fold`, discount.text);
|
|
|
|
|
|
+ act = data.act.find(i => i.type == '5')
|
|
|
|
+ if (act) that.$set(that.discount, `full_decrement`, act.text);
|
|
|
|
+ act = data.act.find(i => i.type == '6')
|
|
|
|
+ if (act) that.$set(that.discount, `full_fold`, act.text);
|
|
// 查询规格
|
|
// 查询规格
|
|
that.searchSpecs(data.specs);
|
|
that.searchSpecs(data.specs);
|
|
// 查询评价数
|
|
// 查询评价数
|