zhaoruhui 4 weeks ago
parent
commit
c0d98905c1
  1. 0
      public/bg2.jpg
  2. BIN
      public/tanchuang.png
  3. 0
      public/wheel-base2.png
  4. BIN
      src/assets/img/jiantou.png
  5. 8
      src/router/index.js
  6. 10
      src/views/DZP2.vue

0
public/bg.jpg → public/bg2.jpg

Before

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

After

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

BIN
public/tanchuang.png

Before

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

0
public/wheel-base.png → public/wheel-base2.png

Before

Width: 520  |  Height: 600  |  Size: 224 KiB

After

Width: 520  |  Height: 600  |  Size: 224 KiB

BIN
src/assets/img/jiantou.png

Before

Width: 142  |  Height: 177  |  Size: 27 KiB

8
src/router/index.js

@ -2,12 +2,12 @@ import { createRouter, createWebHistory } from 'vue-router'
const routes = [ const routes = [
{ {
path: '/', path: '/',
redirect: '/DZP'
redirect: '/DZP2'
}, },
{ {
path: '/DZP',
name: 'DZP',
component: () => import('../views/DZP.vue')
path: '/DZP2',
name: 'DZP2',
component: () => import('../views/DZP2.vue')
}, },
] ]
// 创建路由实例 // 创建路由实例

10
src/views/DZP.vue → src/views/DZP2.vue

@ -1,7 +1,7 @@
<script setup> <script setup>
import { ref, onBeforeMount,onMounted } from 'vue' import { ref, onBeforeMount,onMounted } from 'vue'
import jiantou from '../assets/img/jiantou.png'
import j from '../assets/img/j.png'
const showPopup = ref(false); const showPopup = ref(false);
const popupMessage = ref(''); const popupMessage = ref('');
@ -64,7 +64,7 @@ function endCallback(prize) {
:prizes="prizes" :blocks="blocks" :buttons="buttons" @start="startCallback" @end="endCallback" /> :prizes="prizes" :blocks="blocks" :buttons="buttons" @start="startCallback" @end="endCallback" />
</div> </div>
<div class="wheel-base" >
<div class="wheel-base2" >
</div> </div>
</div> </div>
@ -143,7 +143,7 @@ function endCallback(prize) {
} }
.full-background { .full-background {
background-image: url('bg.jpg');
background-image: url('bg2.jpg');
background-size: cover; background-size: cover;
background-repeat: no-repeat; background-repeat: no-repeat;
background-position: center; background-position: center;
@ -173,8 +173,8 @@ function endCallback(prize) {
} }
/* 转盘底的样式 */ /* 转盘底的样式 */
.wheel-base {
background-image: url('wheel-base.png');
.wheel-base2 {
background-image: url('wheel-base2.png');
position: fixed; position: fixed;
left: 750px; left: 750px;
top: 395px; top: 395px;
Loading…
Cancel
Save