2 Commits

Author SHA1 Message Date
Administrator 55d387f4a1 12次就不能再次转动 4 weeks ago
Administrator e3d11cfae1 改变图片大小 4 weeks ago
  1. BIN
      public/bg.png
  2. BIN
      public/bg2.jpg
  3. BIN
      public/bg2.png
  4. BIN
      public/tanchuang.png
  5. 14
      src/views/DZP1.vue
  6. 2
      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

14
src/views/DZP1.vue

@ -7,6 +7,9 @@ const showPopup = ref(false);
const popupMessage = ref('');
const totalScore = ref(4000) //
const myLucky = ref()
//
const spinCount = ref(0)
const isSpinning = ref(false)
//
//const baseScore = 4000
const wheelConfig = ref({
@ -40,6 +43,14 @@ const customOrder = ref([0, 4, 3, 1, 2, 4, 5, 7, 3, 4, 0])
let orderIndex = 0;
function startCallback() {
//
if (spinCount.value >= 11) { // 01112
alert('已达最大转动次数!')
return
}
isSpinning.value = true
spinCount.value++
//
//totalScore.value = baseScore
// play
@ -66,7 +77,10 @@ function endCallback(prize) {
const result = Number(prize.fonts[0].text)
console.log(prize.fonts[0].text)
//
setTimeout(()=>{
totalScore.value = totalScore.value + result
},1000);
//
animateScoreChange()
//

2
src/views/DZP2.vue

@ -143,7 +143,7 @@ function endCallback(prize) {
}
.full-background {
background-image: url('/public/bg2.jpg');
background-image: url('/public/bg2.png');
background-size: cover;
background-repeat: no-repeat;
background-position: center;

Loading…
Cancel
Save