优化商品默认颜色尺码配置显示问题
This commit is contained in:
parent
f547216c2b
commit
cb40ce643f
@ -19,7 +19,7 @@
|
|||||||
:class='{"sku-item-active":currentColorIndex==index}'
|
:class='{"sku-item-active":currentColorIndex==index}'
|
||||||
v-for='(item, index) in skuColorList' :key='index'
|
v-for='(item, index) in skuColorList' :key='index'
|
||||||
@click='colorChange(index)'>
|
@click='colorChange(index)'>
|
||||||
<text>{{ item }}</text>
|
<text>{{ item||'均色' }}</text>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
@ -30,7 +30,7 @@
|
|||||||
:class='{"sku-item-active":currentSizeIndex==index,"sku-item-disabled":item.existingNumber<=0}'
|
:class='{"sku-item-active":currentSizeIndex==index,"sku-item-disabled":item.existingNumber<=0}'
|
||||||
v-for='(item, index) in skuSizeList' :key='index'
|
v-for='(item, index) in skuSizeList' :key='index'
|
||||||
@click='sizeChange(index)'>
|
@click='sizeChange(index)'>
|
||||||
<text>{{ item.sizeName }}</text>
|
<text>{{ item.sizeName||'均码' }}</text>
|
||||||
</view>
|
</view>
|
||||||
<text v-else style='color: #999999;font-size: 30rpx'>暂无库存</text>
|
<text v-else style='color: #999999;font-size: 30rpx'>暂无库存</text>
|
||||||
</view>
|
</view>
|
||||||
|
@ -49,7 +49,7 @@
|
|||||||
</text>
|
</text>
|
||||||
<view class='bottom-sku-view c-flex-row'>
|
<view class='bottom-sku-view c-flex-row'>
|
||||||
<text>
|
<text>
|
||||||
{{ item.checkedStock.colorName }},{{ item.checkedStock.sizeName }} x{{ item.checkedStock.count }}
|
{{ item.checkedStock.colorName||'均色' }},{{ item.checkedStock.sizeName||'均码' }} x{{ item.checkedStock.count }}
|
||||||
</text>
|
</text>
|
||||||
<text>¥{{ item.price }}</text>
|
<text>¥{{ item.price }}</text>
|
||||||
</view>
|
</view>
|
||||||
@ -161,7 +161,7 @@ const buildSqbParams = computed(() => {
|
|||||||
return_url: '/pages/common/payresult/index',
|
return_url: '/pages/common/payresult/index',
|
||||||
total_amount: Number(((totalPrice.value || 0) * 100).toFixed(2)),
|
total_amount: Number(((totalPrice.value || 0) * 100).toFixed(2)),
|
||||||
terminal_sn: terminalInfo.value.terminalSn,
|
terminal_sn: terminalInfo.value.terminalSn,
|
||||||
subject: orderBean?.value?.orderGoods[0].name,
|
subject: orderBean?.value?.orderGoods[0].name||'未知',
|
||||||
subject_img: orderBean?.value?.orderGoods[0].images || '',
|
subject_img: orderBean?.value?.orderGoods[0].images || '',
|
||||||
merchant_name: terminalInfo.value.companyName,
|
merchant_name: terminalInfo.value.companyName,
|
||||||
notify_url: 'https://www.baidu.com'
|
notify_url: 'https://www.baidu.com'
|
||||||
|
@ -18,7 +18,7 @@
|
|||||||
<text>{{ item.name }}</text>
|
<text>{{ item.name }}</text>
|
||||||
<view class='c-flex-row'>
|
<view class='c-flex-row'>
|
||||||
<view class='sku-view' @click.stop='showSkuDialog(index)'>
|
<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 }}
|
x{{ item?.checkedStock?.count }}
|
||||||
</text>
|
</text>
|
||||||
<image :src='assetsUrl("ic_arrow_down_gray.png")' />
|
<image :src='assetsUrl("ic_arrow_down_gray.png")' />
|
||||||
|
@ -13,7 +13,7 @@
|
|||||||
</view>
|
</view>
|
||||||
<view class='bottom-view c-flex-row'>
|
<view class='bottom-view c-flex-row'>
|
||||||
<text>
|
<text>
|
||||||
{{ item?.orderGoods[0].stockStock.colorName }},{{ item?.orderGoods[0].stockStock.sizeName }}
|
{{ item?.orderGoods[0].stockStock.colorName||'均色' }},{{ item?.orderGoods[0].stockStock.sizeName||'均码' }}
|
||||||
</text>
|
</text>
|
||||||
<text>
|
<text>
|
||||||
共{{ item?.itemNum }}件
|
共{{ item?.itemNum }}件
|
||||||
|
@ -48,7 +48,7 @@
|
|||||||
</text>
|
</text>
|
||||||
<view class='bottom-view c-flex-row'>
|
<view class='bottom-view c-flex-row'>
|
||||||
<text>
|
<text>
|
||||||
{{ item.stockStock.colorName }},{{ item.stockStock.sizeName }} x{{ item.goodsNum }}
|
{{ item.stockStock.colorName||'均色' }},{{ item.stockStock.sizeName||'均码' }} x{{ item.goodsNum }}
|
||||||
</text>
|
</text>
|
||||||
<text>{{ item.consumePrice }}</text>
|
<text>{{ item.consumePrice }}</text>
|
||||||
</view>
|
</view>
|
||||||
|
Loading…
Reference in New Issue
Block a user