hookehuyr

fix 快捷方式选中逻辑调整,结果页显示调整

1 <!-- 1 <!--
2 * @Date: 2023-06-21 10:23:09 2 * @Date: 2023-06-21 10:23:09
3 * @LastEditors: hookehuyr hookehuyr@gmail.com 3 * @LastEditors: hookehuyr hookehuyr@gmail.com
4 - * @LastEditTime: 2023-08-25 21:51:22 4 + * @LastEditTime: 2023-08-31 13:46:44
5 * @FilePath: /bieyuan/src/views/index.vue 5 * @FilePath: /bieyuan/src/views/index.vue
6 * @Description: 预约页首页 6 * @Description: 预约页首页
7 --> 7 -->
...@@ -213,13 +213,14 @@ const clickNext = () => { // 点击下一步按钮 ...@@ -213,13 +213,14 @@ const clickNext = () => { // 点击下一步按钮
213 showFailToast('请检查预约人数输入!'); 213 showFailToast('请检查预约人数输入!');
214 return false; 214 return false;
215 } 215 }
216 - if (isMinValue(shortcut.value, num.value)) {
217 - showFailToast('剩余名额小于预约人数!');
218 - return false;
219 - }
220 216
221 let dates = []; 217 let dates = [];
222 if (index.value > -1) { // 选择快捷方式 218 if (index.value > -1) { // 选择快捷方式
219 + // 快捷方式选中项的剩余数量小于预约人数时
220 + if (num.value < shortcut.value[index.value]['date']) {
221 + showFailToast('剩余名额小于预约人数!');
222 + return false;
223 + }
223 dates.push(shortcut.value[index.value]['date']); 224 dates.push(shortcut.value[index.value]['date']);
224 // 跳转确认页 225 // 跳转确认页
225 $router.push({ 226 $router.push({
......
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
16 </div> 16 </div>
17 </div> 17 </div>
18 <div class="qr-wrapper"> 18 <div class="qr-wrapper">
19 - <p class="name">{{ app_info_list[checkedIndex]?.name }}</p> 19 + <!-- <p class="name">{{ app_info_list[checkedIndex]?.name }}</p> -->
20 <van-row justify="center" align="center" style="position: relative;"> 20 <van-row justify="center" align="center" style="position: relative;">
21 <div class="handle-left" @click="handleLeft"> 21 <div class="handle-left" @click="handleLeft">
22 <van-icon size="4rem" :name="handleLeftIcon" /> 22 <van-icon size="4rem" :name="handleLeftIcon" />
......