hookehuyr

修改弹框形式

...@@ -18,10 +18,12 @@ declare module '@vue/runtime-core' { ...@@ -18,10 +18,12 @@ 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 + NutDialog: typeof import('@nutui/nutui-taro')['Dialog']
21 NutEmpty: typeof import('@nutui/nutui-taro')['Empty'] 22 NutEmpty: typeof import('@nutui/nutui-taro')['Empty']
22 NutImagePreview: typeof import('@nutui/nutui-taro')['ImagePreview'] 23 NutImagePreview: typeof import('@nutui/nutui-taro')['ImagePreview']
23 NutInput: typeof import('@nutui/nutui-taro')['Input'] 24 NutInput: typeof import('@nutui/nutui-taro')['Input']
24 NutInputNumber: typeof import('@nutui/nutui-taro')['InputNumber'] 25 NutInputNumber: typeof import('@nutui/nutui-taro')['InputNumber']
26 + NutOverlay: typeof import('@nutui/nutui-taro')['Overlay']
25 NutPopup: typeof import('@nutui/nutui-taro')['Popup'] 27 NutPopup: typeof import('@nutui/nutui-taro')['Popup']
26 NutPrice: typeof import('@nutui/nutui-taro')['Price'] 28 NutPrice: typeof import('@nutui/nutui-taro')['Price']
27 NutRadio: typeof import('@nutui/nutui-taro')['Radio'] 29 NutRadio: typeof import('@nutui/nutui-taro')['Radio']
...@@ -29,7 +31,6 @@ declare module '@vue/runtime-core' { ...@@ -29,7 +31,6 @@ declare module '@vue/runtime-core' {
29 NutRow: typeof import('@nutui/nutui-taro')['Row'] 31 NutRow: typeof import('@nutui/nutui-taro')['Row']
30 NutSwiper: typeof import('@nutui/nutui-taro')['Swiper'] 32 NutSwiper: typeof import('@nutui/nutui-taro')['Swiper']
31 NutSwiperItem: typeof import('@nutui/nutui-taro')['SwiperItem'] 33 NutSwiperItem: typeof import('@nutui/nutui-taro')['SwiperItem']
32 - NutTable: typeof import('@nutui/nutui-taro')['Table']
33 NutTabPane: typeof import('@nutui/nutui-taro')['TabPane'] 34 NutTabPane: typeof import('@nutui/nutui-taro')['TabPane']
34 NutTabs: typeof import('@nutui/nutui-taro')['Tabs'] 35 NutTabs: typeof import('@nutui/nutui-taro')['Tabs']
35 NutTag: typeof import('@nutui/nutui-taro')['Tag'] 36 NutTag: typeof import('@nutui/nutui-taro')['Tag']
......
...@@ -18,23 +18,6 @@ ...@@ -18,23 +18,6 @@
18 .index-list { 18 .index-list {
19 background-color: #f9f9f9; overflow: auto; 19 background-color: #f9f9f9; overflow: auto;
20 } 20 }
21 -
22 - .notice-wrapper {
23 - padding: 1rem;
24 - .notice-content {
25 - .title {
26 - font-weight: bold;
27 - text-align: center;
28 - margin-bottom: 0.5rem;
29 - }
30 - .content {
31 - margin-bottom: 0.5rem;
32 - }
33 - .mb-1 {
34 - margin-bottom: 1rem !important;
35 - }
36 - }
37 - }
38 } 21 }
39 .slide-box { 22 .slide-box {
40 height: 15rem; 23 height: 15rem;
...@@ -95,3 +78,37 @@ ...@@ -95,3 +78,37 @@
95 .fade-leave-to { 78 .fade-leave-to {
96 opacity: 0; 79 opacity: 0;
97 } 80 }
81 +
82 +.overlay-body {
83 + display: flex;
84 + height: 100%;
85 + align-items: center;
86 + justify-content: center;
87 +}
88 +.overlay-content {
89 + display: flex;
90 + width: 85%;
91 + height: 80%;
92 + background: #fff;
93 + border-radius: 8px;
94 + // align-items: center;
95 + // justify-content: center;
96 + overflow: scroll;
97 +}
98 +
99 +.notice-wrapper {
100 + padding: 1rem;
101 + .notice-content {
102 + .title {
103 + font-weight: bold;
104 + text-align: center;
105 + margin-bottom: 0.5rem;
106 + }
107 + .content {
108 + margin-bottom: 0.5rem;
109 + }
110 + .mb-1 {
111 + margin-bottom: 1rem !important;
112 + }
113 + }
114 +}
......
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: 2024-05-24 17:36:51 4 + * @LastEditTime: 2024-05-24 19:23:29
5 * @FilePath: /meihuaApp/src/pages/index/index.vue 5 * @FilePath: /meihuaApp/src/pages/index/index.vue
6 * @Description: 首页 6 * @Description: 首页
7 --> 7 -->
...@@ -24,55 +24,58 @@ ...@@ -24,55 +24,58 @@
24 </scroll-view> 24 </scroll-view>
25 <view style="height: 6rem;"></view> 25 <view style="height: 6rem;"></view>
26 <nav-bar activated="index" /> 26 <nav-bar activated="index" />
27 - <nut-popup 27 + <nut-overlay
28 v-model:visible="show_notice" 28 v-model:visible="show_notice"
29 - position="right"
30 - :style="{ height: '100%' }"
31 > 29 >
32 - <view class="notice-wrapper"> 30 + <div class="overlay-body">
33 - <!-- <view style="text-align: center; margin-bottom: 1rem;">梅花岛的描述和入住须知</view> --> 31 + <div class="overlay-content">
34 - <view class="notice-content"> 32 + <view class="notice-wrapper">
35 - <view class="title">本味略影</view> 33 + <!-- <view style="text-align: center; margin-bottom: 1rem;">梅花岛的描述和入住须知</view> -->
36 - <view class="content" style="text-indent: 2rem;">外象多变,本心至简。人生百味,回归本味。</view> 34 + <view class="notice-content">
37 - <view class="content" style="text-indent: 2rem;">梅花岛本味山居,位于福建省三明市泰宁世界地质公园、世界自然遗产地核心景区大金湖中心。2022年动工,将岛上23幢夯土、砖彻或全木结构的旧民居进行适当修复,成为中国旧乡村改造为禅意民宿的优秀样板。山中景色四时不同,十里平湖美丽如画,空气清新,泉水清洌,可以感受大自然的静谧祥和,享受水天相接、与天地融为一体的自在惬意,完全地放松、放空、放下。</view> 35 + <view class="title">本味略影</view>
38 - <view class="content mb-1" style="text-indent: 2rem;">聆听安静,安顿身心,静候您。</view> 36 + <view class="content" style="text-indent: 2rem;">外象多变,本心至简。人生百味,回归本味。</view>
37 + <view class="content" style="text-indent: 2rem;">梅花岛本味山居,位于福建省三明市泰宁世界地质公园、世界自然遗产地核心景区大金湖中心。2022年动工,将岛上23幢夯土、砖彻或全木结构的旧民居进行适当修复,成为中国旧乡村改造为禅意民宿的优秀样板。山中景色四时不同,十里平湖美丽如画,空气清新,泉水清洌,可以感受大自然的静谧祥和,享受水天相接、与天地融为一体的自在惬意,完全地放松、放空、放下。</view>
38 + <view class="content mb-1" style="text-indent: 2rem;">聆听安静,安顿身心,静候您。</view>
39 39
40 - <view class="title">本味生活</view> 40 + <view class="title">本味生活</view>
41 - <view class="content">1、提供三餐天然纯净素食(不含五辛)。</view> 41 + <view class="content">1、提供三餐天然纯净素食(不含五辛)。</view>
42 - <view class="content">2、古早作息方式,日出而作,日落而息。</view> 42 + <view class="content">2、古早作息方式,日出而作,日落而息。</view>
43 - <view class="content">3、正念、静心、慢生活。</view> 43 + <view class="content">3、正念、静心、慢生活。</view>
44 - <view class="content mb-1">4、静心服务:健身气功八段锦,湖景茶室、咖啡室,可参与甘露别院静心茶会、别院巡礼等活动(该项看时间因缘)。</view> 44 + <view class="content mb-1">4、静心服务:健身气功八段锦,湖景茶室、咖啡室,可参与甘露别院静心茶会、别院巡礼等活动(该项看时间因缘)。</view>
45 45
46 - <view class="title">入住须知</view> 46 + <view class="title">入住须知</view>
47 - <view class="content">1、本味山居三面环水,为了您的安全,请远离水边,禁止戏水、垂钓、游泳、奔跑等。如有违反,自行承担后果。</view> 47 + <view class="content">1、本味山居三面环水,为了您的安全,请远离水边,禁止戏水、垂钓、游泳、奔跑等。如有违反,自行承担后果。</view>
48 - <view class="content">2、为了防范火灾,禁止携带火种上岛,全岛禁烟。如需使用壁炉,请和工作人员联系,做到人走火息。</view> 48 + <view class="content">2、为了防范火灾,禁止携带火种上岛,全岛禁烟。如需使用壁炉,请和工作人员联系,做到人走火息。</view>
49 - <view class="content">3、本味山居周边有野生动物出没,禁止进入山居经营范围外的区域(详见提示牌)。夜间照明范围有限,慎勿外出行走。如有违反,自行承担后果。</view> 49 + <view class="content">3、本味山居周边有野生动物出没,禁止进入山居经营范围外的区域(详见提示牌)。夜间照明范围有限,慎勿外出行走。如有违反,自行承担后果。</view>
50 - <view class="content">4、山居远离喧嚣,倡导舒缓本味生活,禁止携带荤食、含酒精饮品、宠物,勿穿吊带、短裤、短裙、凉鞋、拖鞋等暴露衣装。</view> 50 + <view class="content">4、山居远离喧嚣,倡导舒缓本味生活,禁止携带荤食、含酒精饮品、宠物,勿穿吊带、短裤、短裙、凉鞋、拖鞋等暴露衣装。</view>
51 - <view class="content">5、山居统一安排渡船上岛,为保证湖内通行安全,禁止私自雇船进出岛。如有违反,视为当天取消预订,山居不予办理入住。</view> 51 + <view class="content">5、山居统一安排渡船上岛,为保证湖内通行安全,禁止私自雇船进出岛。如有违反,视为当天取消预订,山居不予办理入住。</view>
52 - <view class="content">6、岛内自然生态茂盛,蚊虫较多,尽量穿着长衣长裤、平底鞋。房间内备有风油精,如果出现过敏等严重症状,请及时和工作人员联系。</view> 52 + <view class="content">6、岛内自然生态茂盛,蚊虫较多,尽量穿着长衣长裤、平底鞋。房间内备有风油精,如果出现过敏等严重症状,请及时和工作人员联系。</view>
53 - <view class="content">7、工作时间:8:00-5:00,上岛时间:8:00-4:50。</view> 53 + <view class="content">7、工作时间:8:00-5:00,上岛时间:8:00-4:50。</view>
54 - <view class="content mb-1">此须知为入住本位山居之前提,请预订前仔细阅读。若有预订,视为同意上述须知。</view> 54 + <view class="content mb-1">此须知为入住本位山居之前提,请预订前仔细阅读。若有预订,视为同意上述须知。</view>
55 55
56 - <view class="title">配套设施</view> 56 + <view class="title">配套设施</view>
57 - <view class="content">1、24小时热水供应,部分房间有空调、吊扇,部分区域Wi-Fi。</view> 57 + <view class="content">1、24小时热水供应,部分房间有空调、吊扇,部分区域Wi-Fi。</view>
58 - <view class="content">2、独栋配有茶室、客厅、书房,部分独栋配有独立厨房、餐厅和院子。</view> 58 + <view class="content">2、独栋配有茶室、客厅、书房,部分独栋配有独立厨房、餐厅和院子。</view>
59 - <view class="content">3、独栋二楼配有景观天窗。</view> 59 + <view class="content">3、独栋二楼配有景观天窗。</view>
60 - <view class="content">4、设有公共洗衣房(部分独栋配独立洗衣房)。</view> 60 + <view class="content">4、设有公共洗衣房(部分独栋配独立洗衣房)。</view>
61 - <view class="content">5、公共区域有湖景餐厅、湖景咖啡屋。</view> 61 + <view class="content">5、公共区域有湖景餐厅、湖景咖啡屋。</view>
62 - <view class="content">6、房内配有烧水壶、茶具、台灯、吹风机、衣架、拖鞋、洗发水、沐浴露。</view> 62 + <view class="content">6、房内配有烧水壶、茶具、台灯、吹风机、衣架、拖鞋、洗发水、沐浴露。</view>
63 - <view class="content mb-1">7、岛上环保需要,牙膏、牙刷、毛巾、浴巾等私人用品请自带。</view> 63 + <view class="content mb-1">7、岛上环保需要,牙膏、牙刷、毛巾、浴巾等私人用品请自带。</view>
64 64
65 - <view class="title">入住人员</view> 65 + <view class="title">入住人员</view>
66 - <view class="content mb-1">需年满18周岁。</view> 66 + <view class="content mb-1">需年满18周岁。</view>
67 67
68 - <view class="title">取消规定</view> 68 + <view class="title">取消规定</view>
69 - <view class="content">取消或变更请及时联系我们。</view> 69 + <view class="content">取消或变更请及时联系我们。</view>
70 - <view class="content">若入住前一天取消,扣除50%费用作为违约金。</view> 70 + <view class="content">若入住前一天取消,扣除50%费用作为违约金。</view>
71 - <view class="content">若入住当天取消,扣除100%费用。</view> 71 + <view class="content">若入住当天取消,扣除100%费用。</view>
72 + </view>
73 + <nut-button @tap="onCloseNotice" color="#6a4925" block type="primary" style="margin-top: 1rem;">关闭</nut-button>
74 + <view style="height: 1rem;"></view>
72 </view> 75 </view>
73 - <nut-button @tap="onCloseNotice" color="#6a4925" block type="primary" style="margin-top: 1rem;">关闭</nut-button> 76 + </div>
74 - </view> 77 + </div>
75 - </nut-popup> 78 + </nut-overlay>
76 </view> 79 </view>
77 </template> 80 </template>
78 81
......