选择属性添加库存

This commit is contained in:
sugar1569 2019-02-14 10:30:41 +08:00
parent 51b75e6cf1
commit b47fa1f0b4
2 changed files with 8 additions and 2 deletions

View File

@ -4,7 +4,10 @@
<image src='{{url}}{{productSelect.image}}'></image>
<view class='txt-info'>
<view class='title'>{{productSelect.store_name}}</view>
<view class='price'>¥{{productSelect.price}}</view>
<view class='num flex'>
<view class='price'>¥{{productSelect.price}}</view>
<view class='stock'>库存:{{productSelect.stock}}{{storeInfo.unit_name}}</view>
</view>
</view>
</view>
<view class='bd-wrapper'>

View File

@ -3,8 +3,11 @@
.model-proinfo .hd-wrapper{position: relative; padding-left: 244rpx;}
.model-proinfo .hd-wrapper image{width: 214rpx; height: 214rpx; border:10rpx solid #fff; box-sizing: border-box; position: absolute; left: 0; top: -30rpx; box-shadow: 1px 1px 2px 1px #e4e4e4; border-radius: 5px;}
.model-proinfo .hd-wrapper .txt-info{ width: 445rpx; height: 180rpx; padding-top: 36rpx; box-sizing: border-box;}
.model-proinfo .hd-wrapper .txt-info .num{margin-top:25rpx;justify-content: space-between;align-items:flex-end;}
.model-proinfo .hd-wrapper .txt-info .title{display: -webkit-box; display:-moz-box; display:box;-webkit-box-orient: vertical; -moz-box-orient: vertical; -webkit-line-clamp: 2;-moz-line-clamp: 2;overflow: hidden;}
.model-proinfo .hd-wrapper .txt-info .price{margin-top: 25rpx; font-size: 32rpx; color: #ff3d3d;}
.model-proinfo .hd-wrapper .txt-info .num .price{ font-size: 32rpx; color: #ff3d3d;}
.model-proinfo .hd-wrapper .txt-info .num .stock{font-size:24rpx;color:#666666;
}
.model-proinfo .bd-wrapper .parameter-item{padding: 30rpx 0; border-bottom: 1px solid #eaeaea;}
.model-proinfo .bd-wrapper .item-wrapper{display: flex; flex-wrap: wrap;}
.model-proinfo .bd-wrapper .item-wrapper .item{height: 58rpx; text-align: center; line-height: 58rpx; background-color: #eeeeee; font-size: 24rpx; border-radius: 3px; margin: 28rpx 35rpx 0 0;padding:0rpx 20rpx;}