This commit is contained in:
2022-07-08 17:29:23 +08:00
parent f164377cc1
commit f03e2c78c4
4 changed files with 165 additions and 136 deletions

View File

@@ -10,6 +10,9 @@
<view class="item--content"> <view class="item--content">
<view class="title">{{goodsInfo.goods_name}}</view> <view class="title">{{goodsInfo.goods_name}}</view>
<view class="sub_title" v-if="goodsInfo.shop">{{goodsInfo.shop.name}}</view> <view class="sub_title" v-if="goodsInfo.shop">{{goodsInfo.shop.name}}</view>
<view class="unit" v-if="goodsInfo.unit">
{{goodsInfo.unit}}
</view>
<view class="price">{{goodsInfo.price || '0'}} <view class="price">{{goodsInfo.price || '0'}}
<view class="price-type"> <view class="price-type">
<text> DT积分</text> <text> DT积分</text>
@@ -179,6 +182,7 @@
} }
} }
} }
.goods-item { .goods-item {
background-color: #Fff; background-color: #Fff;
width: 100%; width: 100%;
@@ -219,6 +223,12 @@
// @extend .ellipsis-1; // @extend .ellipsis-1;
} }
&>.unit {
color: #999;
font-size: 26rpx;
padding-top: 10rpx;
}
&>.price { &>.price {
padding-top: 10rpx; padding-top: 10rpx;
display: flex; display: flex;

View File

@@ -33,8 +33,13 @@
<image class="shop-logo" :src="goods.shop.cover" mode="aspectFill" /> <image class="shop-logo" :src="goods.shop.cover" mode="aspectFill" />
<view class="shop-title"> <view class="shop-title">
<view class="shop-titl">{{goods.shop.name}}</view> <view class="shop-titl">{{goods.shop.name}}</view>
<view> 店铺评分:<span class='no'>5.0</span> <text style="padding-left: 20rpx;">服务态度:<span <view> 店铺评分:
class='no'>5.0</span></text> </view> <span class='no'>5.0</span>
<text style="padding-left: 20rpx;">
服务态度:
<span class='no'>5.0</span>
</text>
</view>
</view> </view>
</view> </view>
<view class="shopInfo-title-right">全部商品 {{goods.shop.goods_count || 0}} <view class="shopInfo-title-right">全部商品 {{goods.shop.goods_count || 0}}
@@ -82,9 +87,10 @@
</view> </view>
</view> </view>
<view class="buy-number" v-if="selectSkusValues.stock>0"> <view class="buy-number">
<view class="buy-title">数量</view> <view class="buy-title">数量</view>
<uni-number-box :min="0" :max="selectSkusValues.stock" @change="qty = $event" /> <uni-number-box :min="1" :max="selectSkusValues.stock" :disabled="selectSkusValues.stock == 0"
@change="qty = $event" />
</view> </view>
<button class="now-buy" type="default" hover-class="none" @click="buy2(selectSkusValues)">立即购买</button> <button class="now-buy" type="default" hover-class="none" @click="buy2(selectSkusValues)">立即购买</button>
@@ -347,7 +353,7 @@
.unit { .unit {
padding: 30rpx; padding: 30rpx;
font-size: $title-size-m; font-size: $title-size;
color: #333; color: #333;
border-top: solid 20rpx #f9f9f9; border-top: solid 20rpx #f9f9f9;
} }
@@ -578,7 +584,9 @@
margin-top: 20rpx; margin-top: 20rpx;
border-radius: 40rpx; border-radius: 40rpx;
background-color: #f9f9f9; background-color: #f9f9f9;
font-size: 26rpx; font-size: 30rpx;
min-width: 70rpx;
text-align: center;
} }
.sku-active { .sku-active {

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long