Browse Source

genggai

hxl
Administrator 4 weeks ago
parent
commit
ce9defb9c5
  1. 8
      src/views/DZP1.vue
  2. 10
      src/views/DZP2.vue
  3. 3
      vite.config.js

8
src/views/DZP1.vue

@ -25,7 +25,7 @@ const blocks = ref([{ padding: '13px', background: ' #FF2A00' }])
const buttons = ref([{ const buttons = ref([{
radius: '35%', radius: '35%',
imgs: [{ imgs: [{
src: 'src/assets/img/jiantou.png',
src: jiantou,
width: '100%', width: '100%',
top: '-130%' top: '-130%'
}], }],
@ -95,7 +95,7 @@ const animateScoreChange = () => {
<template> <template>
<div class="full-background"> <div class="full-background">
<img :src="jiantou" alt="111">
<!-- <img :src="jiantou" alt="111"> -->
<div class="art-text" :class="{ 'score-change': scoreAnimation }"> <div class="art-text" :class="{ 'score-change': scoreAnimation }">
{{ totalScore }}金币 {{ totalScore }}金币
</div> </div>
@ -161,7 +161,7 @@ const animateScoreChange = () => {
/* 背景图配置 */ /* 背景图配置 */
background: background:
url('tanchuang.png') center/contain no-repeat;
url('/public/tanchuang.png') center/contain no-repeat;
padding: 120px 80px; padding: 120px 80px;
/* 根据图片留出边距 */ /* 根据图片留出边距 */
@ -224,7 +224,7 @@ const animateScoreChange = () => {
} }
.full-background { .full-background {
background-image: url('bg.png');
background-image: url('/public/bg.png');
background-size: cover; background-size: cover;
background-repeat: no-repeat; background-repeat: no-repeat;
background-position: center; background-position: center;

10
src/views/DZP2.vue

@ -24,7 +24,7 @@ const blocks = ref([{ padding: '13px', background: ' #FF2A00' }])
const buttons = ref([{ const buttons = ref([{
radius: '35%', radius: '35%',
imgs: [{ imgs: [{
src: 'src/assets/img/j.png',
src: j,
width: '100%', width: '100%',
top: '-130%' top: '-130%'
}], }],
@ -84,7 +84,7 @@ function endCallback(prize) {
/* 背景图配置 */ /* 背景图配置 */
background: background:
url('tanchaung.png') center/contain no-repeat;
('/public/tanchaung.png') center/contain no-repeat;
padding: 240px 160px; padding: 240px 160px;
/* 根据图片留出边距 */ /* 根据图片留出边距 */
@ -143,7 +143,7 @@ function endCallback(prize) {
} }
.full-background { .full-background {
background-image: url('bg2.jpg');
background-image: url('/public/bg2.jpg');
background-size: cover; background-size: cover;
background-repeat: no-repeat; background-repeat: no-repeat;
background-position: center; background-position: center;
@ -174,7 +174,7 @@ function endCallback(prize) {
/* 转盘底的样式 */ /* 转盘底的样式 */
.wheel-base2 { .wheel-base2 {
background-image: url('wheel-base2.png');
background-image: url('/public/wheel-base2.png');
position: fixed; position: fixed;
left: 750px; left: 750px;
top: 395px; top: 395px;
@ -184,7 +184,7 @@ function endCallback(prize) {
} }
.pan { .pan {
background-image: url('pan.png');
background-image: url('/public/pan.png');
position: fixed; position: fixed;
left: 822px; left: 822px;
top: 460px; top: 460px;

3
vite.config.js

@ -21,5 +21,6 @@ export default defineConfig({
"/@": resolve(__dirname, "src"), // "/@": resolve(__dirname, "src"), //
} }
}, },
base: process.env.NODE_ENV === "production" ? "./" : "/",
base: process.env.NODE_ENV === "production" ? "/dazhuanpan" : "/",
}) })
Loading…
Cancel
Save