122 lines
2.8 KiB
Vue
122 lines
2.8 KiB
Vue
<template>
|
|
<view class="content">
|
|
<view class="head"></view>
|
|
<!-- <view class="time">
|
|
距离活动结束仅剩
|
|
<u-count-down separator="zh" :timestamp="getCancelTime(cancelTime)"
|
|
:separator-size="26" :font-size="26"
|
|
bg-color="transparent" @end="refresh"></u-count-down>
|
|
</view> -->
|
|
<view class="list">
|
|
<view class="item flex" v-for="(item, index) in 100">
|
|
<u-image class="img" src="https://dlh.hainings.com/uploads/images/2024092116413178de43713.jpg" width="200rpx" height="200rpx" border-radius="10rpx"></u-image>
|
|
<view class="info m-l-20">
|
|
<view class="line-2 xl bold">芒果奶糕108g*2/箱</view>
|
|
<view class="panic-btn m-t-20">
|
|
<view class="left sm text-center bold">¥299</view>
|
|
<view class="right">
|
|
<view class="xl m-t-10 bold">¥69</view>
|
|
<view class="sm">抢购价</view>
|
|
<u-image class="flash" src="https://zjeloong.oss-cn-hangzhou.aliyuncs.com/activity/panic_buying/flash.png" width="60rpx" height="60rpx"></u-image>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
|
|
</template>
|
|
|
|
<script>
|
|
export default {
|
|
data() {
|
|
return {
|
|
upOption: {
|
|
empty: {
|
|
icon: 'https://zjeloong.oss-cn-hangzhou.aliyuncs.com/uniapp/order_null.png',
|
|
tip: '暂无记录', // 提示
|
|
}
|
|
},
|
|
storeState: 1,
|
|
list: [],
|
|
cancelTime: 1727169974
|
|
}
|
|
},
|
|
methods: {
|
|
getCancelTime(time) {
|
|
// return time - Date.now() / 1000
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style lang="scss">
|
|
page {
|
|
background: #c22921;
|
|
}
|
|
|
|
.head {
|
|
background-image: url(https://zjeloong.oss-cn-hangzhou.aliyuncs.com/activity/panic_buying/panic_bg.jpg);
|
|
background-size: cover;
|
|
background-repeat: no-repeat;
|
|
min-height: 800rpx;
|
|
max-height: 800rpx;
|
|
}
|
|
|
|
.time {
|
|
text-align: center;
|
|
background-image: linear-gradient(45deg, #FF60A8 0%, #FF3C6A 99%, #FF0001 100%);
|
|
}
|
|
|
|
.list {
|
|
margin: 0 20rpx;
|
|
background-color: #fff;
|
|
border-radius: 10rpx;
|
|
padding: 20rpx;
|
|
|
|
.item {
|
|
width: 100%;
|
|
margin-bottom: 20rpx;
|
|
|
|
.info {
|
|
width: calc(100% - 200rpx);
|
|
|
|
.panic-btn {
|
|
display: flex;
|
|
align-items: center;
|
|
|
|
.left {
|
|
width: 30%;
|
|
background-color: #feece3; background-image: linear-gradient(90deg, #feece3 0%, #ffeede 100%);
|
|
height: 100rpx;
|
|
line-height: 100rpx;
|
|
color: #A77227;
|
|
text-decoration: line-through;
|
|
}
|
|
|
|
.right {
|
|
color: #fff;
|
|
width: 70%;
|
|
background-color: #e04670; background-image: linear-gradient(106deg, #e04670 18%, #fd0a1c 100%);
|
|
border-top-right-radius: 40rpx;
|
|
border-bottom-right-radius: 40rpx;
|
|
height: 100rpx;
|
|
text-align: center;
|
|
position: relative;
|
|
|
|
view {
|
|
margin-left: -20rpx;
|
|
}
|
|
|
|
.flash {
|
|
position: absolute;
|
|
top: 50%;
|
|
transform: translateY(-50%);
|
|
right: 20rpx;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
</style> |