This commit is contained in:
2021-11-22 17:28:41 +08:00
8 changed files with 134 additions and 414 deletions

View File

@@ -24,7 +24,16 @@
</view>
<view class="lists">
<goods-list :list="goods" priceType="CNY" @on-goods="onGoods" />
<goods-list :list="goods" priceType="CNY" @on-goods="onGoods">
<template #statistics="good">
<view class="goods-pv">
<block v-if="good.value.price.pv > 0">
+ {{good.value.price.pv}}
<image class="goods-pv-icon" src="/static/icons/crystal-icon.png" mode="widthFix" />
</block>
</view>
</template>
</goods-list>
</view>
</view>
</template>
@@ -208,4 +217,14 @@
.lists {
padding-top: 70rpx;
}
// 加水晶
.goods-pv{
.goods-pv-icon{
width: 28rpx;
vertical-align: middle;
margin-left: 5rpx;
margin-bottom: 5rpx;
}
}
</style>

View File

@@ -11,7 +11,7 @@
<goodsList :list="goods" priceType="CNY" :status='status' toast="暂无产品权证" notag='has'>
<template v-slot:statistics="goods">
<view>库存{{goods.value.stock}}</view>
</template>
</template> -->
<template v-slot:footer="goods">
<view class="footer-btns">
<block v-if="status == '0'">
@@ -108,6 +108,9 @@
status: this.status,
page:this.page
}).then(res => {
console.log(res)
let countArr = new Array
for(let key in res.count){
countArr.push(key)