You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
yanzong_qianduan/pages/activity/presale.vue

195 lines
4.1 KiB

10 months ago
<template>
<view class="presale">
<view class="presale-hd">
<view class="rule" @click="openPage()"></view>
</view>
<view class="presale-bd">
<view class="tab">
<u-tabs :list="list" :is-scroll="true" :show-bar="false" active-color="#FFFFFF" bg-color="rgba(255,255,255,0)" inactive-color="rgba(255,255,255,0.62)" v-model="current"></u-tabs>
</view>
<view class="title">
10 months ago
<image src="/static/news/newPresale-1.png"></image>
10 months ago
正在进行中
10 months ago
<image src="/static/news/newPresale-1.png"></image>
10 months ago
</view>
<view class="list">
<view class="item" v-for="i in 10" :key="i">
10 months ago
<image class="pic" src="/static/home/phone.jpg"></image>
10 months ago
<view class="info">
<view class="t">一加Ace 2pro超值砍价手机全网通双卡双待</view>
<view class="d"><u-count-down :timestamp="timestamp" format="HH:mm:ss"></u-count-down><text></text></view>
<view class="p">
10 months ago
<image src="/static/news/newPresale-2.png"></image>
10 months ago
<view class="s">预约价¥4189</view>
10 months ago
<view class="n" @click="goPre(i)">去预约</view>
10 months ago
</view>
</view>
</view>
</view>
</view>
</view>
</template>
<script>
import img from "@/static/news/newPeople-bg.png"
export default {
data() {
return {
timestamp: 24*3600*1000,
current: 0,
list: [{
name: '精选好物'
}, {
name: '吹风机'
}, {
name: '空调'
}, {
name: '手机'
}, {
name: '洗衣机'
}, {
name: '冰箱'
}, {
name: '彩电'
}],
}
},
methods: {
openPage() {
uni.navigateTo({
url: "/pages/activity/presaleRule"
})
10 months ago
},
goPre(i){
uni.navigateTo({
url: "/pages/goods/detail?isPre=true"
})
10 months ago
},
}
}
</script>
<style lang="scss" scoped>
.presale{
background: #ff7b79 url(@/static/news/newPresale-bg.jpg) center top no-repeat;
background-size: 100% auto;
overflow: hidden;
min-height: 100vh;
&-hd{
position: relative;
height: 380rpx;
.rule{
width: 100rpx;
height: 60rpx;
position: absolute;
right: 0;
top: 74rpx;
z-index: 2;
}
}
&-bd{
width: 678rpx;
margin: 0 auto;
padding-bottom: 30rpx;
margin-top: 20rpx;
.title{
width: 100%;
border-radius: 12rpx 12rpx 0 0;
height: 78rpx;
font-size: 28rpx;
font-weight: 500;
color: #FFFFFF;
border: 2px solid #fff;
display: flex;
align-items: center;
justify-content: center;
image{
width: 32rpx;
height: 13rpx;
margin: 0 20rpx;
}
}
.list{
background-color: #fff;
border-radius: 0 0 12rpx 12rpx;
overflow: hidden;
.item{
padding: 45rpx 45rpx;
overflow: hidden;
border-top: 1px solid #F1F1F1;
&:first-child{
border-top-color: #fff;
}
display: flex;
image{
width: 220rpx;
height: 220rpx;
margin-right: 10rpx;
}
.info{
flex: 1;
max-width: 400rpx;
.t{
height: 80rpx;
line-height: 40rpx;
font-size: 32rpx;
font-weight: 500;
color: #626262;
word-break: break-all;
text-overflow: ellipsis;
overflow: hidden;
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 2;
}
.d{
display: flex;
align-items: center;
height: 60rpx;
font-size: 32rpx;
font-weight: 500;
color: #F94021;
text{
color: #9E9E9E;
margin-left: 10rpx;
}
}
.p{
width: 396rpx;
height: 88rpx;
position: relative;
image{
width: 396rpx;
height: 88rpx;
}
.s{
width: 240rpx;
line-height: 88rpx;
position: absolute;
text-align: center;
left: 0;
top: 0;
z-index: 2;
font-size: 32rpx;
font-weight: 500;
color: #FF584D;
}
.n{
width: 150rpx;
line-height: 88rpx;
text-align: center;
position: absolute;
right: 0;
top: 0;
z-index: 2;
font-size: 32rpx;
font-weight: 500;
color: #FFFFFF;
}
}
}
}
}
}
}
</style>