5 Commits

Author SHA1 Message Date
Administrator 55d387f4a1 12次就不能再次转动 10 months ago
Administrator e3d11cfae1 改变图片大小 10 months ago
Administrator 4f826508ec 位置更改 10 months ago
Administrator d9a2b1c5d9 Merge branch 'master' into lys 10 months ago
Administrator b13bcbb24c 底座 10 months ago
  1. BIN
      public/bg.png
  2. BIN
      public/bg2.jpg
  3. BIN
      public/bg2.png
  4. BIN
      public/tanchuang.png
  5. 20
      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

20
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()
//
@ -201,8 +215,8 @@ onMounted(() => {
/* 添加艺术字样式 */
.art-text {
position: fixed;
left: 450px;
bottom: 200px;
left: 30%;
bottom: 20%;
transform: translateX(-50%);
font-family: 'Arial Black', sans-serif;
font-size: 150px;
@ -260,7 +274,7 @@ onMounted(() => {
/* 转盘底的样式 */
.wheel-base {
background-image: url('wheel-base.png');
background-image: url('/public/wheel-base.png');
position: fixed;
left: 1065px;
top: 350px;

9
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;
@ -165,9 +165,10 @@ function endCallback(prize) {
}
.luckyWheel {
position: fixed;
z-index: 2000;
left: 826px;
left: 43%;
top: 487px;
pointer-events: auto;
}
@ -176,7 +177,7 @@ function endCallback(prize) {
.wheel-base2 {
background-image: url('/public/wheel-base2.png');
position: fixed;
left: 750px;
left: 39%;
top: 395px;
width: 520px;
height: 600px;
@ -186,7 +187,7 @@ function endCallback(prize) {
.pan {
background-image: url('/public/pan.png');
position: fixed;
left: 822px;
left: 50px;
top: 460px;
width: 360px;
height: 360px;

Loading…
Cancel
Save