|
@@ -7,15 +7,13 @@
|
|
:prizes="prizes"
|
|
:prizes="prizes"
|
|
:blocks="blocks"
|
|
:blocks="blocks"
|
|
:buttons="buttons"
|
|
:buttons="buttons"
|
|
- :activeStyle="activeStyle"
|
|
|
|
- :defaultStyle="defaultStyle"
|
|
|
|
|
|
+ :default-config="defaultConfig"
|
|
:disabled="true"
|
|
:disabled="true"
|
|
class="prizeDraw"
|
|
class="prizeDraw"
|
|
@start="startCallback"
|
|
@start="startCallback"
|
|
@end="endCallback"
|
|
@end="endCallback"
|
|
/>
|
|
/>
|
|
- <!-- <v-btn @click="startCallback" class="mt-3" color="primary">开始抽奖</v-btn> -->
|
|
|
|
- <div class="numberBox mt-5">你还剩余<span class="colorBase">{{ number }}</span>次抽奖机会</div>
|
|
|
|
|
|
+ <div class="numberBox mt-5">您还剩余<span class="colorBase">{{ number }}</span>次抽奖机会</div>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
@@ -34,8 +32,8 @@ import { ref } from 'vue'
|
|
|
|
|
|
const myLucky = ref()
|
|
const myLucky = ref()
|
|
const blocks = [
|
|
const blocks = [
|
|
- { padding: '10px', background: '#fff', imgs:[] },
|
|
|
|
- { padding: '10px', background: '#e9e8fe' },
|
|
|
|
|
|
+ // { padding: '10px', background: '#fff', imgs:[] },
|
|
|
|
+ { padding: '10px', background: '#00897B', borderRadius: 6 },
|
|
]
|
|
]
|
|
const prizeImg = {
|
|
const prizeImg = {
|
|
src: 'https://img1.baidu.com/it/u=681765036,1809656907&fm=253&fmt=auto&app=138&f=JPEG?w=400&h=400',
|
|
src: 'https://img1.baidu.com/it/u=681765036,1809656907&fm=253&fmt=auto&app=138&f=JPEG?w=400&h=400',
|
|
@@ -43,11 +41,6 @@ const prizeImg = {
|
|
width: '100%',
|
|
width: '100%',
|
|
top: '0%'
|
|
top: '0%'
|
|
}
|
|
}
|
|
-// const cellImg = {
|
|
|
|
-// src: '/static/imgs/cell-80.png',
|
|
|
|
-// width: '100%',
|
|
|
|
-// height: '100%'
|
|
|
|
-// }
|
|
|
|
const prizes = [
|
|
const prizes = [
|
|
{ x: 0, y: 0, imgs: [prizeImg] },
|
|
{ x: 0, y: 0, imgs: [prizeImg] },
|
|
{ x: 1, y: 0, imgs: [prizeImg] },
|
|
{ x: 1, y: 0, imgs: [prizeImg] },
|
|
@@ -62,8 +55,7 @@ const buttons = [
|
|
{
|
|
{
|
|
x: 1, y: 1,
|
|
x: 1, y: 1,
|
|
background: '#fe920200',
|
|
background: '#fe920200',
|
|
- borderRaduis: '10px',
|
|
|
|
- // fonts: [{ text: '开始抽奖', fontColor: '#fff', margin: '10px', top: 30}],
|
|
|
|
|
|
+ borderRadius: '10px',
|
|
imgs: [{
|
|
imgs: [{
|
|
src: 'https://img1.baidu.com/it/u=3949019928,2138080900&fm=253&fmt=auto&app=138&f=PNG?w=300&h=300',
|
|
src: 'https://img1.baidu.com/it/u=3949019928,2138080900&fm=253&fmt=auto&app=138&f=PNG?w=300&h=300',
|
|
width: '100%',
|
|
width: '100%',
|
|
@@ -71,12 +63,9 @@ const buttons = [
|
|
}],
|
|
}],
|
|
}
|
|
}
|
|
]
|
|
]
|
|
-const defaultStyle = {
|
|
|
|
- background: '#b8c5f2'
|
|
|
|
-}
|
|
|
|
-const activeStyle = {
|
|
|
|
- fontColor: 'red',
|
|
|
|
- background: '#869cfa'
|
|
|
|
|
|
+const defaultConfig = {
|
|
|
|
+ gutter: 10, // 格子之间的间隙
|
|
|
|
+ speed: 10 // 旋转速度的峰值
|
|
}
|
|
}
|
|
|
|
|
|
const startCallback = () => {
|
|
const startCallback = () => {
|
|
@@ -126,7 +115,7 @@ getData()
|
|
font-size: 20px;
|
|
font-size: 20px;
|
|
font-weight: bold;
|
|
font-weight: bold;
|
|
padding: 2px 38px;
|
|
padding: 2px 38px;
|
|
- border-bottom: 3px solid #b6b5c5;
|
|
|
|
|
|
+ border-bottom: 3px solid #00897B;
|
|
}
|
|
}
|
|
.colorBase {
|
|
.colorBase {
|
|
color: var(--v-primary-base);
|
|
color: var(--v-primary-base);
|