This commit is contained in:
Gdpao
2020-08-07 19:56:47 +08:00
parent 71e984b2ed
commit 502e020000
17 changed files with 238 additions and 136 deletions

View File

@@ -9,7 +9,7 @@
<text class="num">00</text>
<text class="mah">:</text>
<text class="num">00</text>
<text>-</text>
<text class="heng">-</text>
<text class="num">{{ time.bigHour }}</text>
<text class="mah">:</text>
<text class="num">00</text>
@@ -47,10 +47,10 @@ export default {
<style lang="scss" scoped>
.seckill{
background-color: #fff;
padding: 30rpx;
padding: 0 30rpx 30rpx;
margin-bottom: 20rpx;
.top{
height: 60rpx;
height: 90rpx;
display: flex;
align-items: center;
justify-content: space-between;
@@ -66,13 +66,23 @@ export default {
display: flex;
align-items: center;
font-size: 20rpx;
.heng {
margin: 0 6rpx;
}
.num{
box-sizing: content-box;
width: 25rpx;
height: 25rpx;
background-color: #bfbfbf;
margin: 0 10rpx;
padding: 2rpx;
padding: 2rpx 4rpx;
margin: 0 6rpx;
color: #fff;
text-align: center;
line-height: 25rpx;
border-radius: 4rpx;
box-sizing: content-box;
background-color: #000;
}
.mah {
vertical-align: text-top;
}
}
}
@@ -85,7 +95,7 @@ export default {
}
.list{
display: flex;
justify-content: space-between;
// justify-content: space-between;
}
}
</style>

View File

@@ -1,12 +1,12 @@
<template>
<view class="item" @click="spikeGoods">
<image class="head" :src="item.groupbuy_image1"></image>
<image class="head" :src="item.groupbuy_image1" mode="aspectFill"></image>
<text class="title u-line-2">{{ item.goods_name }}</text>
<view class="price">
<text>{{ item.groupbuy_price }}</text>
<text class="origin">{{ item.goods_price }}</text>
</view>
<view class="info">
<view class="info" v-if="0">
<text>剩余{{ item.inventory | formatValue }}</text>
<text>立即购买</text>
</view>
@@ -55,23 +55,28 @@ export default {
</script>
<style lang="scss" scoped>
.item{
width: 220rpx;
width: 30%;
margin-right: 50rpx;
.head{
width: 210rpx;
height: 131rpx;
width: 100%;
height: 210rpx;
border-radius: 6rpx;
background-color: antiquewhite;
}
.title{
width: 200rpx;
height: 30rpx;
margin-top: 6rpx;
font-size: 26rpx;
line-height: 30rpx;
color: #333;
margin-top: 16rpx;
-webkit-line-clamp: 1 !important;
}
.price{
display: flex;
align-items: center;
justify-content: space-between;
margin-top: 19rpx;
margin-top: 10rpx;
>text:first-child{
font-size: 26rpx;
color: #FF3131;
@@ -88,7 +93,7 @@ export default {
align-items: center;
justify-content: space-between;
font-size: 20rpx;
margin-top: 19rpx;
margin-top: 10rpx;
>text:first-child{
color: #666;
}