文字修改
This commit is contained in:
parent
688aee582d
commit
86df2a2950
@ -91,7 +91,7 @@
|
||||
<view class="line1" style="max-width: 260rpx;">
|
||||
<text class="money-price">¥{{goods.productAttr.price}}</text>
|
||||
<text
|
||||
class="money-unit">/{{goods.productAttr.sku || goods.product.unit_name}}</text>
|
||||
class="money-unit">/{{goods.product.unit_name || goods.product.unit_name}}</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
@ -516,6 +516,8 @@
|
||||
},
|
||||
watch: {
|
||||
tabActive: function(value, old) {
|
||||
if (!value || !old) return;
|
||||
|
||||
switch (value) {
|
||||
case 1:
|
||||
if (this.goods.length == 0 && this.isCoupon == 0) {
|
||||
|
@ -865,7 +865,10 @@ export default {
|
||||
if (typeof list != 'object') return [];
|
||||
if (sp === undefined) sp = [];
|
||||
for (var i = 0; i < list.length; i++) {
|
||||
sp.push(list[i]);
|
||||
let product = sp.find(item => item.product_id == list[i].product_id);
|
||||
console.log(product);
|
||||
if (!product)
|
||||
sp.push(list[i]);
|
||||
}
|
||||
return sp;
|
||||
},
|
||||
|
Loading…
x
Reference in New Issue
Block a user