优化商品默认颜色尺码配置显示问题

This commit is contained in:
Waiting 2024-05-16 16:25:24 +08:00
parent f547216c2b
commit cb40ce643f
5 changed files with 7 additions and 7 deletions

View File

@ -19,7 +19,7 @@
:class='{"sku-item-active":currentColorIndex==index}'
v-for='(item, index) in skuColorList' :key='index'
@click='colorChange(index)'>
<text>{{ item }}</text>
<text>{{ item||'均色' }}</text>
</view>
</view>
@ -30,7 +30,7 @@
:class='{"sku-item-active":currentSizeIndex==index,"sku-item-disabled":item.existingNumber<=0}'
v-for='(item, index) in skuSizeList' :key='index'
@click='sizeChange(index)'>
<text>{{ item.sizeName }}</text>
<text>{{ item.sizeName||'均码' }}</text>
</view>
<text v-else style='color: #999999;font-size: 30rpx'>暂无库存</text>
</view>

View File

@ -49,7 +49,7 @@
</text>
<view class='bottom-sku-view c-flex-row'>
<text>
{{ item.checkedStock.colorName }}{{ item.checkedStock.sizeName }} x{{ item.checkedStock.count }}
{{ item.checkedStock.colorName||'均色' }}{{ item.checkedStock.sizeName||'均码' }} x{{ item.checkedStock.count }}
</text>
<text>¥{{ item.price }}</text>
</view>
@ -161,7 +161,7 @@ const buildSqbParams = computed(() => {
return_url: '/pages/common/payresult/index',
total_amount: Number(((totalPrice.value || 0) * 100).toFixed(2)),
terminal_sn: terminalInfo.value.terminalSn,
subject: orderBean?.value?.orderGoods[0].name,
subject: orderBean?.value?.orderGoods[0].name||'未知',
subject_img: orderBean?.value?.orderGoods[0].images || '',
merchant_name: terminalInfo.value.companyName,
notify_url: 'https://www.baidu.com'

View File

@ -18,7 +18,7 @@
<text>{{ item.name }}</text>
<view class='c-flex-row'>
<view class='sku-view' @click.stop='showSkuDialog(index)'>
<text>{{ item?.checkedStock?.colorName }}{{ item?.checkedStock?.sizeName }}
<text>{{ item?.checkedStock?.colorName||'均色' }}{{ item?.checkedStock?.sizeName||'均码' }}
x{{ item?.checkedStock?.count }}
</text>
<image :src='assetsUrl("ic_arrow_down_gray.png")' />

View File

@ -13,7 +13,7 @@
</view>
<view class='bottom-view c-flex-row'>
<text>
{{ item?.orderGoods[0].stockStock.colorName }}{{ item?.orderGoods[0].stockStock.sizeName }}
{{ item?.orderGoods[0].stockStock.colorName||'均色' }}{{ item?.orderGoods[0].stockStock.sizeName||'均码' }}
</text>
<text>
{{ item?.itemNum }}

View File

@ -48,7 +48,7 @@
</text>
<view class='bottom-view c-flex-row'>
<text>
{{ item.stockStock.colorName }}{{ item.stockStock.sizeName }} x{{ item.goodsNum }}
{{ item.stockStock.colorName||'均色' }}{{ item.stockStock.sizeName||'均码' }} x{{ item.goodsNum }}
</text>
<text>{{ item.consumePrice }}</text>
</view>