5 Commits

Author SHA1 Message Date
Administrator 55d387f4a1 12次就不能再次转动 4 weeks ago
Administrator e3d11cfae1 改变图片大小 4 weeks ago
Administrator 4f826508ec 位置更改 4 weeks ago
Administrator d9a2b1c5d9 Merge branch 'master' into lys 4 weeks ago
Administrator b13bcbb24c 底座 4 weeks ago
  1. BIN
      public/bg.png
  2. BIN
      public/bg2.jpg
  3. BIN
      public/bg2.png
  4. BIN
      public/tanchuang.png
  5. 22
      src/views/DZP1.vue
  6. 9
      src/views/DZP2.vue

BIN
public/bg.png

Before

Width: 1920  |  Height: 1080  |  Size: 1.6 MiB

After

Width: 1920  |  Height: 1080  |  Size: 462 KiB

BIN
public/bg2.jpg

Before

Width: 1920  |  Height: 1080  |  Size: 1.7 MiB

BIN
public/bg2.png

After

Width: 1920  |  Height: 1080  |  Size: 474 KiB

BIN
public/tanchuang.png

Before

Width: 750  |  Height: 750  |  Size: 2.5 MiB

After

Width: 300  |  Height: 300  |  Size: 278 KiB

22
src/views/DZP1.vue

@ -7,6 +7,9 @@ const showPopup = ref(false);
const popupMessage = ref(''); const popupMessage = ref('');
const totalScore = ref(4000) // const totalScore = ref(4000) //
const myLucky = ref() const myLucky = ref()
//
const spinCount = ref(0)
const isSpinning = ref(false)
// //
//const baseScore = 4000 //const baseScore = 4000
const wheelConfig = ref({ const wheelConfig = ref({
@ -40,6 +43,14 @@ const customOrder = ref([0, 4, 3, 1, 2, 4, 5, 7, 3, 4, 0])
let orderIndex = 0; let orderIndex = 0;
function startCallback() { function startCallback() {
//
if (spinCount.value >= 11) { // 01112
alert('已达最大转动次数!')
return
}
isSpinning.value = true
spinCount.value++
// //
//totalScore.value = baseScore //totalScore.value = baseScore
// play // play
@ -66,7 +77,10 @@ function endCallback(prize) {
const result = Number(prize.fonts[0].text) const result = Number(prize.fonts[0].text)
console.log(prize.fonts[0].text) console.log(prize.fonts[0].text)
// //
totalScore.value = totalScore.value + result
setTimeout(()=>{
totalScore.value = totalScore.value + result
},1000);
// //
animateScoreChange() animateScoreChange()
// //
@ -201,8 +215,8 @@ onMounted(() => {
/* 添加艺术字样式 */ /* 添加艺术字样式 */
.art-text { .art-text {
position: fixed; position: fixed;
left: 450px;
bottom: 200px;
left: 30%;
bottom: 20%;
transform: translateX(-50%); transform: translateX(-50%);
font-family: 'Arial Black', sans-serif; font-family: 'Arial Black', sans-serif;
font-size: 150px; font-size: 150px;
@ -260,7 +274,7 @@ onMounted(() => {
/* 转盘底的样式 */ /* 转盘底的样式 */
.wheel-base { .wheel-base {
background-image: url('wheel-base.png');
background-image: url('/public/wheel-base.png');
position: fixed; position: fixed;
left: 1065px; left: 1065px;
top: 350px; top: 350px;

9
src/views/DZP2.vue

@ -143,7 +143,7 @@ function endCallback(prize) {
} }
.full-background { .full-background {
background-image: url('/public/bg2.jpg');
background-image: url('/public/bg2.png');
background-size: cover; background-size: cover;
background-repeat: no-repeat; background-repeat: no-repeat;
background-position: center; background-position: center;
@ -165,9 +165,10 @@ function endCallback(prize) {
} }
.luckyWheel { .luckyWheel {
position: fixed; position: fixed;
z-index: 2000; z-index: 2000;
left: 826px;
left: 43%;
top: 487px; top: 487px;
pointer-events: auto; pointer-events: auto;
} }
@ -176,7 +177,7 @@ function endCallback(prize) {
.wheel-base2 { .wheel-base2 {
background-image: url('/public/wheel-base2.png'); background-image: url('/public/wheel-base2.png');
position: fixed; position: fixed;
left: 750px;
left: 39%;
top: 395px; top: 395px;
width: 520px; width: 520px;
height: 600px; height: 600px;
@ -186,7 +187,7 @@ function endCallback(prize) {
.pan { .pan {
background-image: url('/public/pan.png'); background-image: url('/public/pan.png');
position: fixed; position: fixed;
left: 822px;
left: 50px;
top: 460px; top: 460px;
width: 360px; width: 360px;
height: 360px; height: 360px;

Loading…
Cancel
Save