feat:更新

This commit is contained in:
dengtongyu committed 2021-09-01 13:38:21 +08:00
1 parent a7ec91cb3b
commit f078ecf551
7 files changed
+58 -7

No files matched your search

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.0 KiB

After

Width:  |  Height:  |  Size: 6.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.0 KiB

After

Width:  |  Height:  |  Size: 6.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.0 KiB

+2 -2
View File
@@ -3,8 +3,8 @@
<swiper :options="swiperOption" class="notice-swiper"> <swiper :options="swiperOption" class="notice-swiper">
<swiper-slide <swiper-slide
class="notice-swiper-slide" class="notice-swiper-slide"
v-for="item in recordList" v-for="(item, index) in recordList"
:key="item.id" :key="`notice-swiper-slide-${item.id}-${index}`"
> >
<div class="notice-swiper-slide-content"> <div class="notice-swiper-slide-content">
<label>{{ item.nick }}</label> <label>{{ item.nick }}</label>
+16 -1
View File
@@ -1,5 +1,5 @@
<template> <template>
<div class="btn-view" :class="modeClass"> <div class="btn-view" :class="modeClass" @touchend="clickEntryBtn">
<div class="btn-view-touch">{{ text }}</div> <div class="btn-view-touch">{{ text }}</div>
</div> </div>
</template> </template>
@@ -22,6 +22,9 @@ export default {
if (this.mode === "blue") return "btn-view-xy"; if (this.mode === "blue") return "btn-view-xy";
return "btn-view-hh"; return "btn-view-hh";
} }
},
methods: {
clickEntryBtn() {}
} }
}; };
</script> </script>
@@ -33,6 +36,7 @@ export default {
background-repeat: no-repeat; background-repeat: no-repeat;
background-size: cover; background-size: cover;
padding-top: 8px; padding-top: 8px;
cursor: pointer;
&-touch { &-touch {
width: 100%; width: 100%;
height: 100%; height: 100%;
@@ -43,11 +47,22 @@ export default {
font-size: 28px; font-size: 28px;
font-weight: 600; font-weight: 600;
} }
&:active {
.btn-view-touch {
opacity: 0.65;
}
}
} }
.btn-view-xy { .btn-view-xy {
background-image: url(../../assets/images/enter_btn_bg.png); background-image: url(../../assets/images/enter_btn_bg.png);
&:active {
background-image: url(../../assets/images/enter_btn_bg_a.png);
}
} }
.btn-view-hh { .btn-view-hh {
background-image: url(../../assets/images/enter_btn_bg_g.png); background-image: url(../../assets/images/enter_btn_bg_g.png);
&:active {
background-image: url(../../assets/images/enter_btn_bg_g_a.png);
}
} }
</style> </style>
+40 -4
View File
@@ -57,9 +57,11 @@ export default {
// { padding: "4px", background: "#ff4a4c", borderRadius: 23 }, // { padding: "4px", background: "#ff4a4c", borderRadius: 23 },
// { padding: "4px", background: "#ff625b", borderRadius: 20 } // { padding: "4px", background: "#ff625b", borderRadius: 20 }
], ],
defaultConfig: { // defaultConfig: {
gutter: 5 // gutter: 5,
}, // accelerationTime: 1000,
// decelerationTime: 1000
// },
defaultStyle: {}, defaultStyle: {},
activeStyle: { activeStyle: {
background: "none", background: "none",
@@ -137,6 +139,38 @@ export default {
}, },
maxVauePrizeIndex() { maxVauePrizeIndex() {
return this.getPrizeIndex(this.maxVauePrizeId); return this.getPrizeIndex(this.maxVauePrizeId);
},
runTime() {
if (this.ruleType === "one") return 1000;
if (this.ruleType === "ten") return 2000;
if (this.ruleType === "hundred") return 3000;
return 1000;
},
defaultConfig() {
const gutter = 5;
if (this.ruleType === "one")
return {
gutter,
accelerationTime: 1000,
decelerationTime: 1000
};
if (this.ruleType === "ten")
return {
gutter,
accelerationTime: 1500,
decelerationTime: 1500
};
if (this.ruleType === "hundred")
return {
gutter,
accelerationTime: 2000,
decelerationTime: 2000
};
return {
gutter,
accelerationTime: 1000,
decelerationTime: 1000
};
} }
}, },
watch: { watch: {
@@ -208,11 +242,13 @@ export default {
} }
}); });
console.log("runTime", this.runTime);
setTimeout(() => { setTimeout(() => {
this.timeout = true; this.timeout = true;
if (this.timeout && this.request) if (this.timeout && this.request)
this.stopLuckDraw(this.maxVauePrizeIndex); this.stopLuckDraw(this.maxVauePrizeIndex);
}, 2000); }, this.runTime);
}, },
postSaveLog() { postSaveLog() {
saveLog({ saveLog({