2020-06-11 09:34:23 +08:00
|
|
|
<template>
|
|
|
|
<view class="seckill">
|
|
|
|
<view class="top">
|
|
|
|
<view class="title">
|
|
|
|
<view class="name">全部秒杀</view>
|
|
|
|
<view class="time">
|
2020-07-16 17:39:06 +08:00
|
|
|
<text class="num">{{ time.littleHour }}</text>
|
2020-06-11 09:34:23 +08:00
|
|
|
<text class="mah">:</text>
|
2020-07-16 17:39:06 +08:00
|
|
|
<text class="num">00</text>
|
2020-06-11 09:34:23 +08:00
|
|
|
<text class="mah">:</text>
|
2020-07-16 17:39:06 +08:00
|
|
|
<text class="num">00</text>
|
2020-08-07 19:56:47 +08:00
|
|
|
<text class="heng">-</text>
|
2020-07-16 17:39:06 +08:00
|
|
|
<text class="num">{{ time.bigHour }}</text>
|
|
|
|
<text class="mah">:</text>
|
|
|
|
<text class="num">00</text>
|
|
|
|
<text class="mah">:</text>
|
|
|
|
<text class="num">00</text>
|
2020-06-11 09:34:23 +08:00
|
|
|
</view>
|
|
|
|
</view>
|
2020-08-06 10:48:21 +08:00
|
|
|
<view class="next" @click="viewMore">
|
|
|
|
<text>查看更多</text>
|
|
|
|
<u-icon name="arrow-right" color="#999" size="18"></u-icon>
|
|
|
|
</view>
|
2020-06-11 09:34:23 +08:00
|
|
|
</view>
|
|
|
|
<view class="list">
|
2020-07-16 17:39:06 +08:00
|
|
|
<sitem v-for="(item, index) in list.slice(0, 3)" :key="index" :item="item"></sitem>
|
2020-06-11 09:34:23 +08:00
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
</template>
|
|
|
|
<script>
|
|
|
|
import sitem from "./item"
|
|
|
|
export default {
|
|
|
|
name:"seckill",
|
|
|
|
components:{
|
|
|
|
sitem
|
2020-07-16 17:39:06 +08:00
|
|
|
},
|
|
|
|
props: ['list', 'time'],
|
|
|
|
methods: {
|
|
|
|
viewMore() {
|
|
|
|
this.$u.route({
|
|
|
|
url: '/pageC/spike/index',
|
|
|
|
})
|
2020-07-21 21:02:28 +08:00
|
|
|
},
|
2020-07-16 17:39:06 +08:00
|
|
|
}
|
2020-06-11 09:34:23 +08:00
|
|
|
}
|
|
|
|
</script>
|
|
|
|
<style lang="scss" scoped>
|
|
|
|
.seckill{
|
2020-07-24 19:48:57 +08:00
|
|
|
background-color: #fff;
|
2020-08-07 19:56:47 +08:00
|
|
|
padding: 0 30rpx 30rpx;
|
2020-07-24 19:48:57 +08:00
|
|
|
margin-bottom: 20rpx;
|
2020-06-11 09:34:23 +08:00
|
|
|
.top{
|
2020-08-07 19:56:47 +08:00
|
|
|
height: 90rpx;
|
2020-06-11 09:34:23 +08:00
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: space-between;
|
|
|
|
.title{
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
.name{
|
|
|
|
font-size: 30rpx;
|
|
|
|
color: #333;
|
|
|
|
}
|
|
|
|
.time{
|
2020-07-16 17:39:06 +08:00
|
|
|
margin-left: 20rpx;
|
2020-06-11 09:34:23 +08:00
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
font-size: 20rpx;
|
2020-08-07 19:56:47 +08:00
|
|
|
.heng {
|
|
|
|
margin: 0 6rpx;
|
|
|
|
}
|
2020-06-11 09:34:23 +08:00
|
|
|
.num{
|
|
|
|
width: 25rpx;
|
|
|
|
height: 25rpx;
|
2020-08-07 19:56:47 +08:00
|
|
|
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;
|
2020-06-11 09:34:23 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.next{
|
2020-08-06 20:42:03 +08:00
|
|
|
font-size: 20rpx;
|
2020-08-06 10:48:21 +08:00
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
color: #999;
|
2020-06-11 09:34:23 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
.list{
|
|
|
|
display: flex;
|
2020-08-07 19:56:47 +08:00
|
|
|
// justify-content: space-between;
|
2020-06-11 09:34:23 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
</style>
|