From a069a0bb27ba0e47d55f5ea991b0deeb18cac29a Mon Sep 17 00:00:00 2001
From: Dragon <13925835632@139.com>
Date: Tue, 19 Dec 2023 11:39:30 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=A0=B7=E5=BC=8F=E4=B8=8B?=
=?UTF-8?q?=E4=B8=80=E6=AD=A5=E5=BC=82=E5=B8=B8=E9=97=AE=E9=A2=98?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
view/yinmeng/activity/2023-christmas/index.html | 2 +-
view/yinmeng/activity/2023-christmas/js/index.js | 7 +++++--
2 files changed, 6 insertions(+), 3 deletions(-)
diff --git a/view/yinmeng/activity/2023-christmas/index.html b/view/yinmeng/activity/2023-christmas/index.html
index 814db49..2c0091e 100644
--- a/view/yinmeng/activity/2023-christmas/index.html
+++ b/view/yinmeng/activity/2023-christmas/index.html
@@ -61,7 +61,7 @@
-
+
diff --git a/view/yinmeng/activity/2023-christmas/js/index.js b/view/yinmeng/activity/2023-christmas/js/index.js
index f71be1d..1f52cb8 100644
--- a/view/yinmeng/activity/2023-christmas/js/index.js
+++ b/view/yinmeng/activity/2023-christmas/js/index.js
@@ -322,11 +322,14 @@ $('.page1 .content .styleBox .style1 .felxBox .box').click(function () {
num = Number($(this).children('.but').children('b').text());
letterType = i;
$(this).addClass('act').siblings().removeClass('act');
- console.log('情书样式:' + letterType);
+ console.log('情书数量:' + num);
})
// 选择样式后下一步
$('.page1 .content .styleBox .style1 .next1').click(function () {
- num = num ? num : Number($('.page1 .content .styleBox .style1 .felxBox .box').eq(0).children('.but').children('b').text());
+ if(num == undefined){
+ toastMsg('请选择情书样式~');
+ return;
+ }
if (num > 0) {
$('.page1 .content .styleBox .style1').hide();
$('.page1 .content .styleBox .style2').show();