palc-newyear2024/src/components/Rule.vue
2025-05-22 15:51:10 +08:00

169 lines
7.5 KiB
Vue
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<script setup>
import { debounceTap } from "@/plugins";
import gsap from "gsap";
import BScroll from '@better-scroll/core'
// 页面配置初始化
const emit = defineEmits(["RulePage"]);
const hide = (event) => {
debounceTap(event.target, () => {
scroll.value.destroy()
emit("RulePage", { action: "hide" });
});
};
let scroll = ref()
onMounted(() => {
let wrapper = document.querySelector('.wrapper')
scroll.value = new BScroll(wrapper)
gsap.from(".RulePage", { duration: 0.2, autoAlpha: 0 });
gsap.from(".rule-container", { duration: 0.5, autoAlpha: 0, scale: 0.7 });
gsap.to(".rule-arrow", { duration: 2.5, y: 10, repeat: -1, yoyo: true });
});
</script>
<template>
<div class="RulePage" @touchmove.prevent>
<div class="rule-container">
<div class="content">
<div class="rule-content">
<div class="rule-text-area wrapper">
<div>
<div class="part">
<div>活动时间2025年5月29日5月31日</div>
<div>活动奖励微信红包</div>
</div>
<div class="part">
<div>活动攻略</div>
<div>
1龙舟争渡 稳健为先端午赛龙舟中的投资哲学活动共设计4道题目首页进入后点击进行答题全部答对即可获取专属赛龙舟海报并参与抽奖答错时刷新即可重新回答本题
</div>
<div>2活动期间不限制参与答题次数每人每日有1次抽奖机会</div>
</div>
<div class="part">
<div>领奖说明</div>
<div>
1中奖后在中奖页面复制兑换码前往<span
class="blod">[平安理财服务号]</span>消息框输入端午安康获取兑换链接进入链接输入兑换码兑换奖品如关闭了中奖界面可在首页-[我的奖品]
内查看兑换码
</div>
<div>2成功领奖后奖品将会在24小时内自动到账请耐心等候</div>
<div>3中奖人请在活动结束前进行兑换逾期视为弃权</div>
</div>
<div class="part">
<div>其他</div>
活动期间如遇到任何问题请在<span class="blod">[平安理财服务号]</span>后台咨询我们会在一个工作日内回复
<div>说明平安理财有权对活动规则进行解释</div>
</div>
<div class="part">
<div>活动说明</div>
<div>
1本活动由平安理财有限责任公司主办为保证活动的公平公正活动结束后主办方将对中奖用户信息进行核对用户若有下列任何一种行为或情况的主办方有权不经另行通知取消其参与活动以及获奖资格收回奖品权益并保留追究其法律责任的权利
</div>
<div>
(2)以任何机器人软件蜘蛛软件爬虫软件刷奖软件或其它任何自动方式不正当手段等参与本活动;同一用户(包含相同手机号相同收货信息相同移动设备号相同IP地址等单日内恶意切换微信账号参加活动扰乱正常抽奖秩序影响活动公平性的
</div>
<div>
(3)有任何违反法律法规诚实信用公序良俗公平公正平安理财平台规则等行为
</div>
<div>
(4)平安理财保留调整暂停和终止本活动的权利并经公告后生效
</div>
<div>
(5)用户参与本活动即视为理解并同意本活动细则在法律法规及监管规定的范围内平安理财有权对活动规则进行解释并根据活动实际情况对本活动的规则进行变动或调整相关变动或调整将公布在规则页面并于公布时即时生效
</div>
</div>
<div class="margin-bottom-area"></div>
</div>
</div>
</div>
<div class="rule-bottom-bg"></div>
<div class="rule-arrow"></div>
<div class="rule-icon"></div>
</div>
</div>
<div class="rule-cls-btn" @click="hide($event)"></div>
</div>
</template>
<style lang="scss" scoped>
.RulePage {
@include fixed();
@include flexCen();
background-color: rgba($color: #000000, $alpha: 0.3);
.rule-container {
position: relative;
@include box(708px, 880px);
overflow: hidden;
.content {
.rule-content {
@include box(708px, 880px);
@include bg_pos("rule/rule-box.png");
position: relative;
overflow: hidden;
.rule-text-area {
@include pos(635px, 709px, 25px, 83px);
overflow: hidden;
// overflow-y: scroll;
padding: 0px 20px;
.part {
color: #a74f00;
font-size: 20px;
line-height: 35px;
margin-top: 30px;
text-align: justify;
padding: 0 10px;
font-family: 'HarmonyOS_Sans_SC_Regular';
}
.blod {
font-weight: 700;
color: #a74f00;
}
.margin-bottom-area {
// margin-bottom: 100px;
height: 100px;
}
}
}
.rule-arrow {
@include pos(161px, 102px, 262px, 682px);
@include bg_pos("rule/arrow.png");
pointer-events: none;
}
.rule-bottom-bg {
// @include pos(685px, 102px, 0px, 712px);
// border-radius: 10px;
// pointer-events: none;
// background-image: -webkit-linear-gradient(90deg, rgba(255, 238, 186, 0.7), rgba(255, 255, 255, 0.1) 100%);
}
.rule-icon {
@include pos(121px, 104px, 501px, 25px);
@include bg_pos("rule/icon.png");
pointer-events: none;
}
}
}
.rule-cls-btn {
@include box(49px, 49px);
@include bg_pos("rule/cls-btn.png");
margin-top: 0px;
}
}
</style>