| | |
| | | <view class="title">当日均价</view>
|
| | | <view class="price">{{categoryInfo.avePrice||'暂无'}}</view>
|
| | | <view class="flex desc">
|
| | | <view class="m-l-a m-r-5">{{categoryInfo.avePriceDifference&&categoryInfo.avePriceDifference>=0?'+':''}}{{categoryInfo.avePriceDifference||0}}</view>
|
| | | <view class="m-r-a m-l-5">{{categoryInfo.avePriceDifferenceRate&&categoryInfo.avePriceDifferenceRate>=0?'+':''}}{{categoryInfo.avePriceDifferenceRate||0}}%</view>
|
| | | <view class="m-l-a m-r-5">
|
| | | {{categoryInfo.avePriceDifference&&categoryInfo.avePriceDifference>=0?'+':''}}{{categoryInfo.avePriceDifference||0}}
|
| | | </view>
|
| | | <view class="m-r-a m-l-5">
|
| | | {{categoryInfo.avePriceDifferenceRate&&categoryInfo.avePriceDifferenceRate>=0?'+':''}}{{categoryInfo.avePriceDifferenceRate||0}}%
|
| | | </view>
|
| | | </view>
|
| | | </view>
|
| | | </view>
|
| | |
| | |
|
| | | <view class="component-shop-item flex" v-for="(item,index) of list" :key="index">
|
| | | <view class="img" @click.stop="toDetail(item)">
|
| | | <image class="img img100"
|
| | | :src="item.cover">
|
| | | <image class="img img100" :src="item.cover">
|
| | | </image>
|
| | | <view class="level">
|
| | | {{item.levelStr||''}}
|
| | |
| | | </view>
|
| | | <view class="button-space"></view>
|
| | | <view>
|
| | | <view class="button-green" style="background-color: #fff;border: 2rpx solid #666; color: #666;width: 200rpx;left: 40rpx;right: unset;"
|
| | | <view class="button-green"
|
| | | style="background-color: #fff;border: 2rpx solid #666; color: #666;width: 200rpx;left: 40rpx;right: unset;"
|
| | | @click="closeParamPopAndQuery">
|
| | | 查询
|
| | | </view>
|
| | |
|
| | | <view class="button-green" style="width: 200rpx;right: 40rpx;left: unset;" @click="closeParamPop">关闭</view>
|
| | | <view class="button-green" style="width: 200rpx;right: 40rpx;left: unset;" @click="closeParamPop">关闭
|
| | | </view>
|
| | | </view>
|
| | | </view>
|
| | | </uni-popup>
|
| | |
| | | })
|
| | | return
|
| | | }
|
| | | if (!item.stock) {
|
| | | item.stock = 0
|
| | | } |
| | | if (!item.shopnum) {
|
| | | item.shopnum = 0
|
| | | }
|
| | | if (item.shopnum + addnum > item.stock) {
|
| | | this.$message.showToast('库存不足,无法添加')
|
| | | return
|
| | | }
|
| | | |
| | | if (item.shopnum + addnum >= 0) {
|
| | |
|
| | | } else {
|