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.

249 lines
5.9 KiB

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

<template>
<view>
<view class="bkg">
<u-image width="100%" height="100vh" :src="require('@/static/home-bkg.jpg')"></u-image>
</view>
<view class="content">
<view class="title">
<u-image style="display: flex;justify-content: center;" mode="heightFix" width="auto" height="220rpx" :src="require('@/static/title.png')"></u-image>
</view>
<view class="notice">
恭喜192****1774获得1.99元红包
</view>
<view class="raffle">
<view class="raffle-bkg">
<u-image style="display: flex;justify-content: center;" mode="scaleToFill" width="680rpx" height="924rpx" :src="require('@/static/raffle-phone.png')"></u-image>
</view>
<view class="raffle-box">
<view class="raffle-box__hello">
尊敬的192用户您好
</view>
<view class="raffle-box__times">
剩余抽奖次数<span>{{ '1次' }}</span>
</view>
<view class="raffle-box__turntable">
<view v-for="(item,index) in 9" class="raffle-box__turntable--item" :style="{ 'grid-area': index === 4 ? 'center' : 'shop'+(index+1) }">
<view v-if="index === 4" class="center-btn">
<view></view>
</view>
<view class="item-shop" v-else>
<view class="item-shop__box">
<view class="item-shop__box--img">
<u-image mode="heightFix" height="84rpx" :src="require('@/static/laugh.png')"></u-image>
</view>
<view class="item-shop__box--text">谢谢参与</view>
</view>
</view>
</view>
</view>
<view class="raffle-box__tip">
仅限中国广电(苏州地区用户)手机号参与活动
</view>
</view>
</view>
<view class="bottom">
<u-image mode="widthFix" width="114rpx" :src="require('@/static/activity-rule.png')" @click="$refs['popover'].show()"></u-image>
<u-image style="margin-left: 66rpx;" mode="widthFix" width="114rpx" :src="require('@/static/me-center.png')" @click="toMe"></u-image>
</view>
</view>
</view>
</template>
<script>
export default {
data() {
return {
}
},
onLoad() {
},
methods: {
},
computed: {
}
}
</script>
<style lang="scss">
.bkg {
z-index: -1;
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
}
.content {
min-height: 100vh;
position: relative;
& .title {
margin-top: 10vh;
}
& .notice {
background: rgba(254, 210, 141, 0.6);
box-shadow: 0rpx 4rpx 10rpx 0rpx rgba(3,46,63,0.45);
border-radius: 28rpx;
color: #fff;
text-align: center;
margin: .2vh 140rpx 0 140rpx;
}
.raffle {
width: 680rpx;
height: 924rpx;
position: relative;
margin: 2.9vh auto 0 auto;
&-bkg {
z-index: 1;
position: absolute;
}
&-box {
width: 100%;
height: 100%;
z-index: 2;
position: relative;
top: 0;
&__hello {
text-align: center;
font-size: 38rpx;
font-weight: normal;
color: #FFFFFF;
padding-top: 100rpx;
}
&__times {
text-align: center;
font-size: 46rpx;
font-weight: normal;
color: #FFFFFF;
padding-top: 16rpx;
& > span {
color: #FCE534;
}
}
&__turntable {
height: 560rpx;
display: grid;
grid-template-columns: 1fr 1fr 1fr;
grid-template-rows: 1fr 1fr 1fr;
grid-gap: 12rpx;
grid-template-areas:
"shop1 shop2 shop3"
"shop4 center shop6"
"shop7 shop8 shop9";
margin-top: 40rpx;
padding: 0 70rpx;
&--item {
display: flex;
align-items: center;
justify-content: center;
}
.item-shop {
width: 100%;
height: 100%;
background: linear-gradient(to bottom, #fff 88%, #FECDC0);
border-radius: 22rpx;
&__box {
width: calc(100% - 12rpx);
height: calc(100% - 12rpx);
border: 1rpx dashed #C5352B;
border-radius: 22rpx;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
margin: 6rpx;
&--text {
font-size: 24rpx;
font-weight: normal;
color: #E3473C;
line-height: 4rpx;
padding-top: 16rpx;
}
}
}
& .center-btn {
display: flex;
justify-content: center;
align-items: center;
width: 166rpx;
height: 166rpx;
background: linear-gradient(180deg, #FCE2C9, #FED491);
box-shadow: 0px 8rpx 18px 0px rgba(155,22,40,0.35);
border-radius: 50%;
& > view {
width: 142rpx;
height: 142rpx;
background: linear-gradient(180deg, #FCE2C9, #FED491);
box-shadow: 0px 4px 9px 0px rgba(155,22,40,0.35);
border-radius: 50%;
position: relative;
&::after {
width: 80rpx;
content: "开始抽奖";
font-size: 40rpx;
font-weight: normal;
color: #D8372C;
text-shadow: 0 2rpx 0 #FCF4CA;
transform: translate(-50%, -50%);
position: absolute;
top: 50%;
left: 50%;
}
}
}
}
&__tip {
zoom: .9;
font-size: 22rpx;
text-align: center;
color: #F9DAC1;
position: absolute;
left: 0;
right: 0;
bottom: 46rpx;
}
}
}
.bottom {
display: flex;
align-items: center;
justify-content: center;
margin-top: 1.85vh;
}
}
</style>