文字修改

This commit is contained in:
1154079537 2024-05-18 19:41:57 +08:00
parent 688aee582d
commit 86df2a2950
3 changed files with 7 additions and 2 deletions

View File

@ -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>

View File

@ -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) {

View File

@ -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;
},