deming/components/shop/seckill/index.vue

101 lines
2.6 KiB
Vue
Raw Normal View History

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