diff --git a/components/LotteryFormModal.vue b/components/LotteryFormModal.vue new file mode 100644 index 0000000..ba343ab --- /dev/null +++ b/components/LotteryFormModal.vue @@ -0,0 +1,292 @@ + + + + + diff --git a/components/QianmenScene.vue b/components/QianmenScene.vue index dd60aaf..2c7e879 100644 --- a/components/QianmenScene.vue +++ b/components/QianmenScene.vue @@ -175,7 +175,7 @@ onUnmounted(() => {
音乐控制 { showLotteryForm.value = true } +// 关闭抽奖留资弹窗 +const closeLotteryForm = () => { + showLotteryForm.value = false +} + // 提交抽奖表单 -const submitLotteryForm = () => { - // 验证表单 - if (!lotteryForm.value.name || !lotteryForm.value.phone || !lotteryForm.value.address) { - uni.showToast({ - title: '请填写完整信息', - icon: 'none', - duration: 2000 - }) - return - } - - // 验证手机号 - const phoneRegex = /^1[3-9]\d{9}$/ - if (!phoneRegex.test(lotteryForm.value.phone)) { - uni.showToast({ - title: '请输入正确的手机号', - icon: 'none', - duration: 2000 - }) - return - } - +const submitLotteryForm = (formData) => { // 模拟提交 uni.showLoading({ title: '提交中...', @@ -380,12 +360,6 @@ const submitLotteryForm = () => { duration: 2000 }) showLotteryForm.value = false - // 重置表单 - lotteryForm.value = { - name: '', - phone: '', - address: '' - } }, 1500) } @@ -580,33 +554,11 @@ onUnmounted(() => {
--> -
- - -
+
diff --git a/static/images/icon_music.png b/static/images/icon_music1.png similarity index 100% rename from static/images/icon_music.png rename to static/images/icon_music1.png diff --git a/static/images/icon_music2.png b/static/images/icon_music2.png new file mode 100644 index 0000000..d3acc3b Binary files /dev/null and b/static/images/icon_music2.png differ diff --git a/static/info/info_bg.jpg b/static/info/info_bg.jpg new file mode 100644 index 0000000..c8a24ac Binary files /dev/null and b/static/info/info_bg.jpg differ diff --git a/static/info/info_tips.png b/static/info/info_tips.png new file mode 100644 index 0000000..c8b19c4 Binary files /dev/null and b/static/info/info_tips.png differ diff --git a/static/info/info_title.png b/static/info/info_title.png new file mode 100644 index 0000000..5adf75e Binary files /dev/null and b/static/info/info_title.png differ