|
|
@@ -251,6 +251,24 @@
|
|
|
<image class="w48 h48" src="/static/images/more_arrow.png"></image>
|
|
|
</view>
|
|
|
</view>
|
|
|
+ <view class="life-list">
|
|
|
+ <view class="item">
|
|
|
+ <image class="play" src="/static/image/video_icon.png"></image>
|
|
|
+ <image src="/static/images/img.png"></image>
|
|
|
+ </view>
|
|
|
+ <view class="item">
|
|
|
+ <image class="play" src="/static/image/video_icon.png"></image>
|
|
|
+ <image src="/static/images/img.png"></image>
|
|
|
+ </view>
|
|
|
+ <view class="item">
|
|
|
+ <image class="play" src="/static/image/video_icon.png"></image>
|
|
|
+ <image src="/static/images/img.png"></image>
|
|
|
+ </view>
|
|
|
+ <view class="item">
|
|
|
+ <image class="play" src="/static/image/video_icon.png"></image>
|
|
|
+ <image src="/static/images/img.png"></image>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
</view>
|
|
|
|
|
|
<!-- 功效 -->
|
|
|
@@ -304,13 +322,16 @@
|
|
|
mode="aspectFill"></image>
|
|
|
</view>
|
|
|
<view class="info-text">
|
|
|
+ <view class="product-name">云南白药气雾剂</view>
|
|
|
<view class="price">
|
|
|
- <text class="unit">¥</text>
|
|
|
- <text class="num">{{ productValueSelect.price.toFixed(2) }}</text>
|
|
|
+ <text class="title">会员价</text>
|
|
|
+ <text class="unit">¥</text><text
|
|
|
+ class="bold">{{splitPrice(item.price).integer}}</text>.{{splitPrice(item.price).decimal}}
|
|
|
</view>
|
|
|
<view class="desc-box">
|
|
|
- <text class="text">已选:{{ productValueSelect.sku }}</text>
|
|
|
- <text class="text">库存{{ productValueSelect.stock?'充足':'售罄' }}</text>
|
|
|
+ <text class="text">月售2456件</text>
|
|
|
+ <!-- <text class="text">已选:{{ productValueSelect.sku }}</text>
|
|
|
+ <text class="text">库存{{ productValueSelect.stock?'充足':'售罄' }}</text> -->
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
@@ -341,7 +362,7 @@
|
|
|
</view>
|
|
|
</view>
|
|
|
<button :class="isSubmitting?'btnsel sub-btn':'sub-btn'" :disabled="isSubmitting"
|
|
|
- @click="submit">{{ isSubmitting ? '订单生成中...' : '立即购买' }}</button>
|
|
|
+ @click="submit">{{ isSubmitting ? '订单生成中...' : '确定' }}</button>
|
|
|
</view>
|
|
|
</popupBottom>
|
|
|
<view class="loadding" v-if="loadding==true">
|
|
|
@@ -447,6 +468,13 @@
|
|
|
|
|
|
},
|
|
|
methods: {
|
|
|
+ splitPrice(price) {
|
|
|
+ const priceStr = parseFloat(price).toFixed(2).toString();
|
|
|
+ return {
|
|
|
+ integer: priceStr.split('.')[0],
|
|
|
+ decimal: priceStr.split('.')[1]
|
|
|
+ };
|
|
|
+ },
|
|
|
getDicts: function() {
|
|
|
getDicts().then(
|
|
|
res => {
|
|
|
@@ -1381,6 +1409,27 @@
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ .life-box {
|
|
|
+ margin: 0 24rpx;
|
|
|
+ padding: 0 24rpx 24rpx;
|
|
|
+ background: #ffffff;
|
|
|
+ border-radius: 16rpx 16rpx 16rpx 16rpx;
|
|
|
+
|
|
|
+ .life-list {
|
|
|
+ .item {
|
|
|
+ position: relative;
|
|
|
+
|
|
|
+ .play {
|
|
|
+ position: absolute;
|
|
|
+ top: 20rpx;
|
|
|
+ right: 20rpx;
|
|
|
+ width: 40rpx;
|
|
|
+ height: 40rpx;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
.effect {
|
|
|
box-sizing: border-box;
|
|
|
padding: 20rpx 30rpx;
|
|
|
@@ -1538,35 +1587,38 @@
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ .product-name {
|
|
|
+ font-weight: 600;
|
|
|
+ font-size: 32rpx;
|
|
|
+ color: #333333;
|
|
|
+ }
|
|
|
+
|
|
|
.info-text {
|
|
|
height: 200rpx;
|
|
|
display: flex;
|
|
|
flex-direction: column;
|
|
|
- justify-content: space-between;
|
|
|
|
|
|
.price {
|
|
|
- display: flex;
|
|
|
- align-items: flex-end;
|
|
|
+ margin-top: 16rpx;
|
|
|
+ font-weight: 600;
|
|
|
+ font-size: 26rpx;
|
|
|
+ color: #FA341E;
|
|
|
+ font-size: 26rpx;
|
|
|
|
|
|
- .unit {
|
|
|
- font-size: 32rpx;
|
|
|
- font-family: PingFang SC;
|
|
|
- font-weight: bold;
|
|
|
- color: #FF6633;
|
|
|
- line-height: 1.2;
|
|
|
- margin-right: 10rpx;
|
|
|
+ .title {
|
|
|
+ font-weight: 500;
|
|
|
+ font-size: 24rpx;
|
|
|
+ color: #FF5030;
|
|
|
+ margin-right: 8rpx;
|
|
|
}
|
|
|
|
|
|
- .num {
|
|
|
- font-size: 50rpx;
|
|
|
- font-family: PingFang SC;
|
|
|
- font-weight: bold;
|
|
|
- color: #FF6633;
|
|
|
- line-height: 1;
|
|
|
+ .bold {
|
|
|
+ font-size: 48upx;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
.desc-box {
|
|
|
+ margin-top: 16rpx;
|
|
|
display: flex;
|
|
|
flex-direction: column;
|
|
|
padding-bottom: 9rpx;
|
|
|
@@ -1605,23 +1657,19 @@
|
|
|
|
|
|
.item {
|
|
|
box-sizing: border-box;
|
|
|
- height: 64rpx;
|
|
|
- padding: 0 30rpx;
|
|
|
- line-height: 64rpx;
|
|
|
+ padding: 12rpx 24rpx;
|
|
|
font-size: 28rpx;
|
|
|
- font-family: PingFang SC;
|
|
|
- font-weight: 500;
|
|
|
- color: #111111;
|
|
|
- background: #F7F7F7;
|
|
|
- border: 1px solid #F7F7F7;
|
|
|
- border-radius: 32rpx;
|
|
|
- margin-right: 20rpx;
|
|
|
+ color: #333333;
|
|
|
+ background: #F5F7FA;
|
|
|
+ border-radius: 28rpx 28rpx 28rpx 28rpx;
|
|
|
+ margin-right: 24rpx;
|
|
|
margin-bottom: 30rpx;
|
|
|
|
|
|
&.active {
|
|
|
- background: #F1FFFE;
|
|
|
- border: 1px solid #8AD5CE;
|
|
|
- color: #2BC7B9;
|
|
|
+ font-size: 24rpx;
|
|
|
+ color: #02B176;
|
|
|
+ background: #EBFAF6;
|
|
|
+ border: 2rpx solid #02B176;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
@@ -1647,8 +1695,7 @@
|
|
|
.img-box {
|
|
|
width: 60rpx;
|
|
|
height: 60rpx;
|
|
|
- // border-radius: 4rpx;
|
|
|
- border: 1px solid #dddddd;
|
|
|
+
|
|
|
display: flex;
|
|
|
align-items: center;
|
|
|
justify-content: center;
|
|
|
@@ -1667,11 +1714,8 @@
|
|
|
font-family: PingFang SC;
|
|
|
font-weight: 500;
|
|
|
color: #111111;
|
|
|
- // border-radius: 4rpx;
|
|
|
- border-top: 1px solid #dddddd;
|
|
|
- border-bottom: 1px solid #dddddd;
|
|
|
+ background: #F5F7FA;
|
|
|
text-align: center;
|
|
|
- // margin: 0 16rpx;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
@@ -1685,10 +1729,9 @@
|
|
|
font-family: PingFang SC;
|
|
|
font-weight: bold;
|
|
|
color: #FFFFFF;
|
|
|
- background: #2BC7B9;
|
|
|
border-radius: 44rpx;
|
|
|
margin-top: 30rpx;
|
|
|
- // margin-bottom: 30rpx;
|
|
|
+ background: linear-gradient(136deg, #38D97D 0%, #02B176 100%);
|
|
|
|
|
|
}
|
|
|
}
|