This commit is contained in:
梁泽军 2025-04-17 18:08:42 +08:00
parent 83a60df68d
commit db67a265d8
25 changed files with 4582 additions and 388 deletions

3837
package-lock.json generated Normal file

File diff suppressed because it is too large Load Diff

BIN
palc-newyear2024.7z Normal file

Binary file not shown.

BIN
src.7z Normal file

Binary file not shown.

BIN
src.zip Normal file

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 90 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 149 KiB

After

Width:  |  Height:  |  Size: 98 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 149 KiB

After

Width:  |  Height:  |  Size: 112 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 92 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 128 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 258 KiB

After

Width:  |  Height:  |  Size: 255 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 254 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 243 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 257 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 251 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 431 KiB

After

Width:  |  Height:  |  Size: 425 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 445 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 449 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 425 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 448 KiB

View File

@ -14,10 +14,10 @@ const { toClipboard } = useClipboard()
const money = ref("1.88"); const money = ref("1.88");
const code = ref("sss"); const code = ref("PAKJ2025");
const showResult = ref(false); const showResult = ref(true);
const hasPrize = ref(false); const hasPrize = ref(true);
const drawFn = (event) => { const drawFn = (event) => {
let e = event.target.parentElement; let e = event.target.parentElement;
@ -100,7 +100,7 @@ const hide = (event) => {
duration: 0.3, duration: 0.3,
autoAlpha: 0, autoAlpha: 0,
onComplete: () => { onComplete: () => {
emit("DrawPage", {action:"hide"}); emit("DrawPage", { action: "hide" });
}, },
}); });
}); });
@ -108,7 +108,7 @@ const hide = (event) => {
const copyFn = (event) => { const copyFn = (event) => {
let e = event.target; let e = event.target;
toClipboard(code.value) toClipboard(code.value)
debounceTap(e, async() => { debounceTap(e, async () => {
Toast(`复制成功:${code.value}`); Toast(`复制成功:${code.value}`);
}); });
}; };
@ -148,11 +148,16 @@ onMounted(() => {
<div v-show="showResult" class="result-container"> <div v-show="showResult" class="result-container">
<!-- 有奖品 --> <!-- 有奖品 -->
<div class="draw-has" v-show="hasPrize"> <div class="draw-has" v-show="hasPrize">
<div class="draw-has-title">恭喜您抽中</div>
<div class="money">¥{{ money }}</div> <div class="money">¥{{ money }}</div>
<div class="draw-has-text">奖励抽到手快乐马上有</div>
<div class="code-box"> <div class="code-box">
<div class="code">{{ code }}</div> <span>兑奖码</span>
<div class="copy-btn" @click="copyFn($event)"></div> <span class="code">{{ code }}</span>
<span class="copy-btn" @click="copyFn($event)"></span>
</div> </div>
<div class="exchange-tips">兑换流程前往微信搜索平安理财服务号公众号发送五一快乐获取兑奖链接输入兑换码兑换奖品</div>
<div class="exchnage-tips2">兑换码可在主页面我的奖品 再次查看并复制</div>
<div class="cls-btn" @click="hide($event)"></div> <div class="cls-btn" @click="hide($event)"></div>
</div> </div>
<!-- 没有奖品 --> <!-- 没有奖品 -->
@ -214,30 +219,57 @@ onMounted(() => {
.draw-has { .draw-has {
position: relative; position: relative;
@include box(665px, 731px); @include box(665px, 731px);
@include bg_pos("prize/myPrize-box.png"); @include bg_pos("prize/myPrize-box2.png");
.draw-has-title {
@include pos(390px, 100px, 110px, 140px);
font-size: 40px;
color: #e95b46;
font-weight: 700;
letter-spacing: 3px;
// background-color: aqua;
@include flexCen();
}
.draw-has-text {
@include pos(390px, 100px, 110px, 300px);
font-size: 30px;
color: #e95b46;
font-weight: 700;
letter-spacing: 0;
// background-color: aqua;
@include flexCen();
}
.money { .money {
@include pos(370px, 81px, 139px, 239px); @include pos(390px, 130px, 110px, 200px);
display: flex; @include flexCen();
justify-content: center;
align-items: center;
color: #e95b46; color: #e95b46;
font-weight: 700; font-weight: 700;
font-size: 58px; font-size: 58px;
letter-spacing: 4px; letter-spacing: 4px;
// background-color: rgb(217, 0, 255);
} }
.code-box { .code-box {
@include pos(312px, 52px, 197px, 508px); @include pos(390px, 52px, 110px, 508px);
display: flex; display: flex;
flex-direction: row; flex-direction: row;
align-items: center; align-items: center;
justify-content: flex-start;
font-size: 25px;
font-weight: 700;
color: #fff6cc;
.code { span{
font-size: 25px; height: 77px;
font-weight: 700; line-height: 65px;
}
.code{
margin-right: 10px; margin-right: 10px;
color: #fff6cc;
} }
.copy-btn { .copy-btn {

View File

@ -5,7 +5,7 @@
<div class="ql-logo"></div> <div class="ql-logo"></div>
<div class="ql-swiper-box"> <div class="ql-swiper-box">
<swiper class="card-swiper" :slides-per-view="1" :space-between="30" navigation :loop="true"> <swiper class="card-swiper" :slides-per-view="1" :space-between="30" navigation :loop="true">
<swiper-slide v-for="item in 3" <swiper-slide v-for="item in 5"
:style="{ width: '100%', display: 'flex', justifyContent: 'center', }"> :style="{ width: '100%', display: 'flex', justifyContent: 'center', }">
<div class="card-slide" :class="'card-slide-' + item"> <div class="card-slide" :class="'card-slide-' + item">
<img class="card-img" :class="'card-img-' + item" :src="getCardImg(item)" alt="" srcset=""> <img class="card-img" :class="'card-img-' + item" :src="getCardImg(item)" alt="" srcset="">

View File

@ -17,9 +17,10 @@ console.log('海报id', posterId.value);
const posterImgList = reactive([ const posterImgList = reactive([
new URL(`../assets/images/result/poster-1.jpg`, import.meta.url).href, new URL(`../assets/images/result/poster-1.jpg`, import.meta.url).href,
new URL(`../assets/images/result/poster-1.jpg`, import.meta.url).href, new URL(`../assets/images/result/poster-2.jpg`, import.meta.url).href,
new URL(`../assets/images/result/poster-1.jpg`, import.meta.url).href, new URL(`../assets/images/result/poster-3.jpg`, import.meta.url).href,
new URL(`../assets/images/result/poster-1.jpg`, import.meta.url).href, new URL(`../assets/images/result/poster-4.jpg`, import.meta.url).href,
new URL(`../assets/images/result/poster-5.jpg`, import.meta.url).href,
]) ])
@ -53,7 +54,7 @@ const executeTasks = async () => {
{ width: 750, height: 2106 }, { width: 750, height: 2106 },
[ [
{ name: "bg", src: posterImgList[posterId.value - 1], pos: { w: 750, h: 2106, x: 0, y: 0 } }, { name: "bg", src: posterImgList[posterId.value - 1], pos: { w: 750, h: 2106, x: 0, y: 0 } },
{ name: "eqcode", src: eqcodePic.value, pos: { w: 178, h: 178, x: 532, y: 1887 } }, { name: "eqcode", src: eqcodePic.value, pos: { w: 178, h: 178, x: 532, y: 1892 } },
] ]
); );
} else { } else {
@ -265,11 +266,11 @@ const posterCreate = (option, imageArr) => {
display: flex; display: flex;
justify-content: flex-end; justify-content: flex-end;
.cls-btn { // .cls-btn {
@include box(49px, 49px); // @include box(49px, 49px);
@include bg_pos("question-list/cls-btn.png"); // @include bg_pos("question-list/cls-btn.png");
margin-right: -20px; // margin-right: -20px;
} // }
} }
.save-tips { .save-tips {
@ -303,14 +304,23 @@ const posterCreate = (option, imageArr) => {
.poster-1 { .poster-1 {
@include bg_pos("result/card-1.png"); @include bg_pos("result/card-1.png");
} }
.poster-2 { .poster-2 {
@include bg_pos("result/card-1.png"); @include bg_pos("result/card-2.png");
} }
.poster-3 { .poster-3 {
@include bg_pos("result/card-1.png"); @include bg_pos("result/card-3.png");
}
.poster-4 {
@include bg_pos("result/card-4.png");
}
.poster-5 {
@include bg_pos("result/card-5.png");
} }
} }

View File

@ -40,18 +40,28 @@ const page = [
"qa/incorrect.png", "qa/incorrect.png",
"question-list/megaphone.png", "question-list/megaphone.png",
"question-list/card-3.png",
"question-list/btn.png", "question-list/btn.png",
"question-list/card-1.png", "question-list/card-1.png",
"question-list/card-2.png", "question-list/card-2.png",
"question-list/card-3.png",
"question-list/card-4.png",
"question-list/card-5.png",
"question-list/arrow-l.png", "question-list/arrow-l.png",
"result/share-tips.svg", "result/share-tips.svg",
"result/go-share-btn.png", "result/go-share-btn.png",
"result/poster-1.jpg", "result/poster-1.jpg",
"result/poster-2.jpg",
"result/poster-3.jpg",
"result/poster-4.jpg",
"result/poster-5.jpg",
"result/go-draw-btn.png", "result/go-draw-btn.png",
"result/cls-btn.png", "result/cls-btn.png",
"result/card-1.png", "result/card-1.png",
"result/card-2.png",
"result/card-3.png",
"result/card-4.png",
"result/card-5.png",
"rule/rule-box.png", "rule/rule-box.png",
"rule/icon.png", "rule/icon.png",

View File

@ -102,7 +102,7 @@ const onShowResult = (item) => {
} }
const showDraw = ref(false); const showDraw = ref(true);
const drawFn = (item) => { const drawFn = (item) => {
if (item.action == "hide") { if (item.action == "hide") {
showDraw.value = false; showDraw.value = false;
@ -133,7 +133,6 @@ const ruleFn = (item) => {
onMounted(() => { onMounted(() => {
fontAdpat(); // fontAdpat(); //
screenOrientation(); // screenOrientation(); //
iosMusic() //
let code = getQueryString("code"); let code = getQueryString("code");
let url = import.meta.env.VITE_URL; let url = import.meta.env.VITE_URL;
@ -147,6 +146,8 @@ onMounted(() => {
userStore.updateToken(res.data); userStore.updateToken(res.data);
// //
showLoad.value = true; showLoad.value = true;
iosMusic() //
gsap.set('.music_icon', { autoAlpha: 1 })
return; return;
} else { } else {
authorize({ scopeType: 1, redirectUri: url }).then((res) => { authorize({ scopeType: 1, redirectUri: url }).then((res) => {
@ -222,7 +223,8 @@ onMounted(() => {
} }
} else { } else {
showLoad.value = true; showLoad.value = true;
// createBGM(); iosMusic() //
gsap.set('.music_icon', { autoAlpha: 1 })
} }
}); });
@ -302,6 +304,7 @@ const firstClick = () => {
@include pos(60px, 60px, 50px, 245px); @include pos(60px, 60px, 50px, 245px);
@include bg_pos("music-on.png"); @include bg_pos("music-on.png");
z-index: 99; z-index: 99;
visibility: hidden;
} }
.home { .home {

1010
yarn.lock

File diff suppressed because it is too large Load Diff