Showing
3 changed files
with
160 additions
and
44 deletions
| ... | @@ -18,7 +18,6 @@ declare module '@vue/runtime-core' { | ... | @@ -18,7 +18,6 @@ declare module '@vue/runtime-core' { |
| 18 | NutCalendar: typeof import('@nutui/nutui-taro')['Calendar'] | 18 | NutCalendar: typeof import('@nutui/nutui-taro')['Calendar'] |
| 19 | NutCol: typeof import('@nutui/nutui-taro')['Col'] | 19 | NutCol: typeof import('@nutui/nutui-taro')['Col'] |
| 20 | NutConfigProvider: typeof import('@nutui/nutui-taro')['ConfigProvider'] | 20 | NutConfigProvider: typeof import('@nutui/nutui-taro')['ConfigProvider'] |
| 21 | - NutCountdown: typeof import('@nutui/nutui-taro')['Countdown'] | ||
| 22 | NutImagePreview: typeof import('@nutui/nutui-taro')['ImagePreview'] | 21 | NutImagePreview: typeof import('@nutui/nutui-taro')['ImagePreview'] |
| 23 | NutInput: typeof import('@nutui/nutui-taro')['Input'] | 22 | NutInput: typeof import('@nutui/nutui-taro')['Input'] |
| 24 | NutInputNumber: typeof import('@nutui/nutui-taro')['InputNumber'] | 23 | NutInputNumber: typeof import('@nutui/nutui-taro')['InputNumber'] | ... | ... |
| 1 | -.calendar-select-page { | 1 | +.confirm-page { |
| 2 | + .book-info-desc { | ||
| 3 | + padding: 1rem; | ||
| 4 | + } | ||
| 5 | + .book-count-desc { | ||
| 6 | + padding: 0 1rem; | ||
| 7 | + } | ||
| 8 | + .calendar-select-desc { | ||
| 2 | margin: 1rem; | 9 | margin: 1rem; |
| 3 | background-color: #f6ece1; | 10 | background-color: #f6ece1; |
| 4 | border-radius: 0.5rem; | 11 | border-radius: 0.5rem; |
| 5 | padding: 1rem 0; | 12 | padding: 1rem 0; |
| 6 | padding-left: 0.5rem; | 13 | padding-left: 0.5rem; |
| 7 | -} | 14 | + .calendar-select-left, |
| 8 | - | 15 | + .calendar-select-right { |
| 9 | -.confirm-form { | 16 | + .text { |
| 17 | + color: #7d7c7c; | ||
| 18 | + font-size: 0.8rem; | ||
| 19 | + } | ||
| 20 | + .date { | ||
| 21 | + color: #6a4925; | ||
| 22 | + font-size: 0.85rem; | ||
| 23 | + font-weight: bold; | ||
| 24 | + } | ||
| 25 | + } | ||
| 26 | + .calendar-select-center { | ||
| 27 | + view { | ||
| 28 | + color: #6a4925; | ||
| 29 | + margin-top: 15%; | ||
| 30 | + font-size: 0.8rem; | ||
| 31 | + text-align: center; | ||
| 32 | + background-color: #fff; | ||
| 33 | + padding: 0.25rem 0; | ||
| 34 | + border-radius: 0.5rem; | ||
| 35 | + } | ||
| 36 | + } | ||
| 37 | + } | ||
| 38 | + .calendar-select-info { | ||
| 39 | + padding: 0 1rem 1rem; | ||
| 40 | + .check-in-text { | ||
| 41 | + color: #060606; | ||
| 42 | + font-size: 0.85rem; | ||
| 43 | + } | ||
| 44 | + .check-in-time { | ||
| 45 | + color: #010101; | ||
| 46 | + font-size: 0.85rem; | ||
| 47 | + font-weight: bold; | ||
| 48 | + text-align: right; | ||
| 49 | + } | ||
| 50 | + .check-out-text { | ||
| 51 | + color: #060606; | ||
| 52 | + font-size: 0.85rem; | ||
| 53 | + margin: 0.25rem 0; | ||
| 54 | + } | ||
| 55 | + .check-out-time { | ||
| 56 | + color: #010101; | ||
| 57 | + font-size: 0.85rem; | ||
| 58 | + font-weight: bold; | ||
| 59 | + text-align: right; | ||
| 60 | + margin: 0.25rem 0; | ||
| 61 | + } | ||
| 62 | + .meal-text { | ||
| 63 | + color: #060606; | ||
| 64 | + font-size: 0.85rem; | ||
| 65 | + } | ||
| 66 | + .meal-count { | ||
| 67 | + color: #010101; | ||
| 68 | + font-size: 0.85rem; | ||
| 69 | + font-weight: bold; | ||
| 70 | + text-align: right; | ||
| 71 | + } | ||
| 72 | + .tip { | ||
| 73 | + font-size: 0.85rem; | ||
| 74 | + margin-top: 0.25rem; | ||
| 75 | + .tip-red { | ||
| 76 | + color: red; | ||
| 77 | + margin: auto; | ||
| 78 | + display: inline-block; | ||
| 79 | + margin-right: 10rpx; | ||
| 80 | + } | ||
| 81 | + .tip-text { | ||
| 82 | + color: #6a4925; | ||
| 83 | + margin: auto; | ||
| 84 | + display: inline-block; | ||
| 85 | + } | ||
| 86 | + } | ||
| 87 | + } | ||
| 88 | + .space-line { | ||
| 89 | + height: 1rem; | ||
| 90 | + background-color: #f6f6f6; | ||
| 91 | + } | ||
| 92 | + .select-user { | ||
| 93 | + text-align: center; | ||
| 94 | + padding: 1rem 0; | ||
| 95 | + } | ||
| 96 | + .confirm-form { | ||
| 10 | padding-right: 1rem; | 97 | padding-right: 1rem; |
| 11 | .form-text { | 98 | .form-text { |
| 12 | position: relative; | 99 | position: relative; |
| ... | @@ -20,6 +107,16 @@ | ... | @@ -20,6 +107,16 @@ |
| 20 | -webkit-box-sizing: border-box; | 107 | -webkit-box-sizing: border-box; |
| 21 | box-sizing: border-box; | 108 | box-sizing: border-box; |
| 22 | font-size: 27rpx; | 109 | font-size: 27rpx; |
| 110 | + &.required::before { | ||
| 111 | + content: "*"; | ||
| 112 | + color: red; | ||
| 113 | + margin-right: 0.1rem; | ||
| 114 | + display: inline-block; | ||
| 115 | + } | ||
| 116 | + } | ||
| 117 | + .form-input { | ||
| 118 | + border: 1px solid #dedede; | ||
| 119 | + border-radius: 10rpx; | ||
| 23 | } | 120 | } |
| 24 | .nut-input { | 121 | .nut-input { |
| 25 | padding: 20rpx; | 122 | padding: 20rpx; |
| ... | @@ -31,4 +128,27 @@ | ... | @@ -31,4 +128,27 @@ |
| 31 | border-radius: 10rpx; | 128 | border-radius: 10rpx; |
| 32 | padding: 20rpx; | 129 | padding: 20rpx; |
| 33 | } | 130 | } |
| 131 | + } | ||
| 132 | + .confirm-bar { | ||
| 133 | + position: fixed; | ||
| 134 | + bottom: 0; | ||
| 135 | + left: 0; | ||
| 136 | + right: 0; | ||
| 137 | + background-color: #fff; | ||
| 138 | + height: 4rem; | ||
| 139 | + padding: 30rpx 30rpx 20rpx 30rpx; | ||
| 140 | + box-shadow: 0px -5px 4px 0px rgba(0, 0, 0, 0.07); | ||
| 141 | + .price { | ||
| 142 | + height: 2rem; margin-left: 0.5rem; display: flex; align-items: center; | ||
| 143 | + .price-text-left { | ||
| 144 | + color: #EB2E2E; font-size: 1.3rem; font-weight: bold; | ||
| 145 | + } | ||
| 146 | + .price-text-right { | ||
| 147 | + color: #7D7C7C; text-decoration: line-through; font-size: 0.85rem; margin-left: 5px; | ||
| 148 | + } | ||
| 149 | + } | ||
| 150 | + .confirm-btn { | ||
| 151 | + background-color: #6A4925; border-radius: 1.25rem; padding: 0.25rem 0.5rem; color: #fff; text-align: center; height: 2rem; line-height: 2rem; | ||
| 152 | + } | ||
| 153 | + } | ||
| 34 | } | 154 | } | ... | ... |
| 1 | <!-- | 1 | <!-- |
| 2 | * @Date: 2022-09-19 14:11:06 | 2 | * @Date: 2022-09-19 14:11:06 |
| 3 | * @LastEditors: hookehuyr hookehuyr@gmail.com | 3 | * @LastEditors: hookehuyr hookehuyr@gmail.com |
| 4 | - * @LastEditTime: 2023-12-19 16:55:06 | 4 | + * @LastEditTime: 2023-12-20 13:35:22 |
| 5 | * @FilePath: /meihuaApp/src/pages/confirm/index.vue | 5 | * @FilePath: /meihuaApp/src/pages/confirm/index.vue |
| 6 | - * @Description: 文件描述 | 6 | + * @Description: 确认订单页面 |
| 7 | --> | 7 | --> |
| 8 | <template> | 8 | <template> |
| 9 | - <view> | 9 | + <view class="confirm-page"> |
| 10 | - <view style="padding: 1rem;"> | 10 | + <view class="book-info-desc"> |
| 11 | <nut-row> | 11 | <nut-row> |
| 12 | <nut-col :span="16"> | 12 | <nut-col :span="16"> |
| 13 | <view style="font-weight: bold; color: #0B0B0B; font-size: 1.15rem;">非凡魅力豪华总统套房</view> | 13 | <view style="font-weight: bold; color: #0B0B0B; font-size: 1.15rem;">非凡魅力豪华总统套房</view> |
| ... | @@ -18,7 +18,7 @@ | ... | @@ -18,7 +18,7 @@ |
| 18 | </nut-col> | 18 | </nut-col> |
| 19 | </nut-row> | 19 | </nut-row> |
| 20 | </view> | 20 | </view> |
| 21 | - <view style="padding: 0 1rem;"> | 21 | + <view class="book-count-desc"> |
| 22 | <nut-row> | 22 | <nut-row> |
| 23 | <nut-col :span="16"> | 23 | <nut-col :span="16"> |
| 24 | <view style="font-weight: bold; color: #0B0B0B; font-size: 1rem;">预定房间数</view> | 24 | <view style="font-weight: bold; color: #0B0B0B; font-size: 1rem;">预定房间数</view> |
| ... | @@ -28,54 +28,53 @@ | ... | @@ -28,54 +28,53 @@ |
| 28 | </nut-col> | 28 | </nut-col> |
| 29 | </nut-row> | 29 | </nut-row> |
| 30 | </view> | 30 | </view> |
| 31 | - <view class="calendar-select-page"> | 31 | + <view class="calendar-select-desc"> |
| 32 | <nut-row gutter="10"> | 32 | <nut-row gutter="10"> |
| 33 | - <nut-col span="9"> | 33 | + <nut-col span="9" class="calendar-select-left"> |
| 34 | - <view style="color: #7D7C7C; font-size: 0.8rem;">入住日期</view> | 34 | + <view class="text">入住日期</view> |
| 35 | - <view style="color: #6A4925; font-size: 0.85rem; font-weight: bold;">2023.12.07 星期四</view> | 35 | + <view class="date">2023.12.07 星期四</view> |
| 36 | </nut-col> | 36 | </nut-col> |
| 37 | - <nut-col span="5"> | 37 | + <nut-col span="5" class="calendar-select-center"> |
| 38 | - <view style="color: #6A4925; margin-top: 15%; font-size: 0.8rem; text-align: center; background-color: #fff; padding: 0.25rem 0; border-radius: 0.5rem;"> | 38 | + <view>共1晚</view> |
| 39 | - 共1晚 | ||
| 40 | - </view> | ||
| 41 | </nut-col> | 39 | </nut-col> |
| 42 | - <nut-col span="9"> | 40 | + <nut-col span="9" class="calendar-select-right"> |
| 43 | - <view style="color: #7D7C7C; font-size: 0.8rem;">退房日期</view> | 41 | + <view class="text">退房日期</view> |
| 44 | - <view style="color: #6A4925; font-size: 0.85rem; font-weight: bold;">2023.12.08 星期五</view> | 42 | + <view class="date">2023.12.08 星期五</view> |
| 45 | </nut-col> | 43 | </nut-col> |
| 46 | </nut-row> | 44 | </nut-row> |
| 47 | </view> | 45 | </view> |
| 48 | - <view style="padding: 0 1rem 1rem;"> | 46 | + <view class="calendar-select-info"> |
| 49 | <nut-row> | 47 | <nut-row> |
| 50 | <nut-col span="12"> | 48 | <nut-col span="12"> |
| 51 | - <view style="color: #060606; font-size: 0.85rem;">入住时间</view> | 49 | + <view class="check-in-text">入住时间</view> |
| 52 | </nut-col> | 50 | </nut-col> |
| 53 | <nut-col span="12"> | 51 | <nut-col span="12"> |
| 54 | - <view style="color: #010101; font-size: 0.85rem; font-weight: bold; text-align: right;">12月7日 14:00后</view> | 52 | + <view class="check-in-time">12月7日 14:00后</view> |
| 55 | </nut-col> | 53 | </nut-col> |
| 56 | </nut-row> | 54 | </nut-row> |
| 57 | <nut-row> | 55 | <nut-row> |
| 58 | <nut-col span="12"> | 56 | <nut-col span="12"> |
| 59 | - <view style="color: #060606; font-size: 0.85rem; margin: 0.25rem 0;">退房日期</view> | 57 | + <view class="check-out-text">退房日期</view> |
| 60 | </nut-col> | 58 | </nut-col> |
| 61 | <nut-col span="12"> | 59 | <nut-col span="12"> |
| 62 | - <view style="color: #010101; font-size: 0.85rem; font-weight: bold; text-align: right; margin: 0.25rem 0;">12月8日 12:00前</view> | 60 | + <view class="check-out-time">12月8日 12:00前</view> |
| 63 | </nut-col> | 61 | </nut-col> |
| 64 | </nut-row> | 62 | </nut-row> |
| 65 | <nut-row> | 63 | <nut-row> |
| 66 | <nut-col span="12"> | 64 | <nut-col span="12"> |
| 67 | - <view style="color: #060606; font-size: 0.85rem;">早餐</view> | 65 | + <view class="meal-text">早餐</view> |
| 68 | </nut-col> | 66 | </nut-col> |
| 69 | <nut-col span="12"> | 67 | <nut-col span="12"> |
| 70 | - <view style="color: #010101; font-size: 0.85rem; font-weight: bold; text-align: right;">3份</view> | 68 | + <view class="meal-count">3份</view> |
| 71 | </nut-col> | 69 | </nut-col> |
| 72 | </nut-row> | 70 | </nut-row> |
| 73 | - <view style="font-size: 0.85rem; margin-top: 0.25rem;"> | 71 | + <view class="tip"> |
| 74 | - <view style="color: red; margin: auto; display: inline-block;">*</view> <view style="color: #6A4925; margin: auto; display: inline-block;">12月7日 20:00后未入住,订单将被取消</view> | 72 | + <view class="tip-red">*</view> |
| 73 | + <view class="tip-text">12月7日 20:00后未入住,订单将被取消</view> | ||
| 75 | </view> | 74 | </view> |
| 76 | </view> | 75 | </view> |
| 77 | - <view style="height: 1rem; background-color: #F6F6F6;"></view> | 76 | + <view class="space-line"></view> |
| 78 | - <view style="text-align: center; padding: 1rem 0;"> | 77 | + <view class="select-user"> |
| 79 | <nut-radio-group v-model="radioVal" direction="horizontal"> | 78 | <nut-radio-group v-model="radioVal" direction="horizontal"> |
| 80 | <nut-radio label="1"> | 79 | <nut-radio label="1"> |
| 81 | 本人入住 | 80 | 本人入住 |
| ... | @@ -92,20 +91,20 @@ | ... | @@ -92,20 +91,20 @@ |
| 92 | <view class="confirm-form"> | 91 | <view class="confirm-form"> |
| 93 | <nut-row> | 92 | <nut-row> |
| 94 | <nut-col :span="6"> | 93 | <nut-col :span="6"> |
| 95 | - <view class="form-text"><view style="color: red; margin-right: 0.1rem;display: inline-block;">*</view>联系人</view> | 94 | + <view class="form-text required">联系人</view> |
| 96 | </nut-col> | 95 | </nut-col> |
| 97 | <nut-col :span="18"> | 96 | <nut-col :span="18"> |
| 98 | - <view style="border: 1px solid #DEDEDE; border-radius: 10rpx;"> | 97 | + <view class="form-input"> |
| 99 | <nut-input v-model="basicData.name" class="nut-input-text" placeholder="请输入联系人" type="text" :border="false" /> | 98 | <nut-input v-model="basicData.name" class="nut-input-text" placeholder="请输入联系人" type="text" :border="false" /> |
| 100 | </view> | 99 | </view> |
| 101 | </nut-col> | 100 | </nut-col> |
| 102 | </nut-row> | 101 | </nut-row> |
| 103 | <nut-row style="margin: 30rpx 0;"> | 102 | <nut-row style="margin: 30rpx 0;"> |
| 104 | <nut-col :span="6"> | 103 | <nut-col :span="6"> |
| 105 | - <view class="form-text"><view style="color: red; margin-right: 0.1rem;display: inline-block;">*</view>联系电话</view> | 104 | + <view class="form-text required">联系电话</view> |
| 106 | </nut-col> | 105 | </nut-col> |
| 107 | <nut-col :span="18"> | 106 | <nut-col :span="18"> |
| 108 | - <view style="border: 1px solid #DEDEDE; border-radius: 10rpx;"> | 107 | + <view class="form-input"> |
| 109 | <nut-input v-model="basicData.tel" class="nut-input-text" placeholder="请输入联系电话" type="number" :border="false" /> | 108 | <nut-input v-model="basicData.tel" class="nut-input-text" placeholder="请输入联系电话" type="number" :border="false" /> |
| 110 | </view> | 109 | </view> |
| 111 | </nut-col> | 110 | </nut-col> |
| ... | @@ -115,25 +114,23 @@ | ... | @@ -115,25 +114,23 @@ |
| 115 | <view class="form-text" style="padding-left: 45rpx;">备注</view> | 114 | <view class="form-text" style="padding-left: 45rpx;">备注</view> |
| 116 | </nut-col> | 115 | </nut-col> |
| 117 | <nut-col :span="18"> | 116 | <nut-col :span="18"> |
| 118 | - <view style="border: 1px solid #DEDEDE; border-radius: 10rpx;"> | 117 | + <view class="form-input"> |
| 119 | <nut-textarea v-model="basicData.note" class="nut-input-text" placeholder="如有其他需求,请在此填写" :autosize="{ maxHeight: 100, minHeight: 50 }" /> | 118 | <nut-textarea v-model="basicData.note" class="nut-input-text" placeholder="如有其他需求,请在此填写" :autosize="{ maxHeight: 100, minHeight: 50 }" /> |
| 120 | </view> | 119 | </view> |
| 121 | </nut-col> | 120 | </nut-col> |
| 122 | </nut-row> | 121 | </nut-row> |
| 123 | - | ||
| 124 | - <!-- <nut-textarea v-model="basicData.note" class="nut-input-text" placeholder="如有其他需求,请在此填写" :autosize="{ maxHeight: 100, minHeight: 50 }" /> --> | ||
| 125 | <nut-number-keyboard v-model:visible="visible" v-model="basicData.tel" maxlength="11" @close="close"> </nut-number-keyboard> | 122 | <nut-number-keyboard v-model:visible="visible" v-model="basicData.tel" maxlength="11" @close="close"> </nut-number-keyboard> |
| 126 | </view> | 123 | </view> |
| 127 | - <view style="position: fixed; bottom: 0; left: 0; right: 0; background-color: #fff; height: 4rem; padding: 30rpx 30rpx 20rpx 30rpx;box-shadow: 0px -5px 4px 0px rgba(0,0,0,0.07);"> | 124 | + <view class="confirm-bar"> |
| 128 | <nut-row> | 125 | <nut-row> |
| 129 | <nut-col :span="18"> | 126 | <nut-col :span="18"> |
| 130 | - <view style="height: 2rem; margin-left: 0.5rem; display: flex; align-items: center;"> | 127 | + <view class="price"> |
| 131 | - <text style="color: #EB2E2E; font-size: 1.3rem; font-weight: bold;">¥980</text> | 128 | + <text class="price-text-left">¥980</text> |
| 132 | - <text style="color: #7D7C7C; text-decoration: line-through; font-size: 0.85rem; margin-left: 5px;">¥1280</text> | 129 | + <text class="price-text-right">¥1280</text> |
| 133 | </view> | 130 | </view> |
| 134 | </nut-col> | 131 | </nut-col> |
| 135 | <nut-col :span="6"> | 132 | <nut-col :span="6"> |
| 136 | - <view @tap="goPay" style="background-color: #6A4925; border-radius: 1.25rem; padding: 0.25rem 0.5rem; color: #fff; text-align: center; height: 2rem; line-height: 2rem;">提交订单</view> | 133 | + <view @tap="goPay" class="confirm-btn">提交订单</view> |
| 137 | </nut-col> | 134 | </nut-col> |
| 138 | </nut-row> | 135 | </nut-row> |
| 139 | </view> | 136 | </view> | ... | ... |
-
Please register or login to post a comment