Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Hooke
/
meihua-island-book
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
hookehuyr
2024-05-24 19:26:08 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
964c4e54f98053d635d76532b81c3c37a2bc06f6
964c4e54
1 parent
fc413f34
修改弹框形式
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
44 additions
and
23 deletions
components.d.ts
src/pages/index/index.less
src/pages/index/index.vue
components.d.ts
View file @
964c4e5
...
...
@@ -18,10 +18,12 @@ declare module '@vue/runtime-core' {
NutCalendar
:
typeof
import
(
'@nutui/nutui-taro'
)[
'Calendar'
]
NutCol
:
typeof
import
(
'@nutui/nutui-taro'
)[
'Col'
]
NutConfigProvider
:
typeof
import
(
'@nutui/nutui-taro'
)[
'ConfigProvider'
]
NutDialog
:
typeof
import
(
'@nutui/nutui-taro'
)[
'Dialog'
]
NutEmpty
:
typeof
import
(
'@nutui/nutui-taro'
)[
'Empty'
]
NutImagePreview
:
typeof
import
(
'@nutui/nutui-taro'
)[
'ImagePreview'
]
NutInput
:
typeof
import
(
'@nutui/nutui-taro'
)[
'Input'
]
NutInputNumber
:
typeof
import
(
'@nutui/nutui-taro'
)[
'InputNumber'
]
NutOverlay
:
typeof
import
(
'@nutui/nutui-taro'
)[
'Overlay'
]
NutPopup
:
typeof
import
(
'@nutui/nutui-taro'
)[
'Popup'
]
NutPrice
:
typeof
import
(
'@nutui/nutui-taro'
)[
'Price'
]
NutRadio
:
typeof
import
(
'@nutui/nutui-taro'
)[
'Radio'
]
...
...
@@ -29,7 +31,6 @@ declare module '@vue/runtime-core' {
NutRow
:
typeof
import
(
'@nutui/nutui-taro'
)[
'Row'
]
NutSwiper
:
typeof
import
(
'@nutui/nutui-taro'
)[
'Swiper'
]
NutSwiperItem
:
typeof
import
(
'@nutui/nutui-taro'
)[
'SwiperItem'
]
NutTable
:
typeof
import
(
'@nutui/nutui-taro'
)[
'Table'
]
NutTabPane
:
typeof
import
(
'@nutui/nutui-taro'
)[
'TabPane'
]
NutTabs
:
typeof
import
(
'@nutui/nutui-taro'
)[
'Tabs'
]
NutTag
:
typeof
import
(
'@nutui/nutui-taro'
)[
'Tag'
]
...
...
src/pages/index/index.less
View file @
964c4e5
...
...
@@ -18,23 +18,6 @@
.index-list {
background-color: #f9f9f9; overflow: auto;
}
.notice-wrapper {
padding: 1rem;
.notice-content {
.title {
font-weight: bold;
text-align: center;
margin-bottom: 0.5rem;
}
.content {
margin-bottom: 0.5rem;
}
.mb-1 {
margin-bottom: 1rem !important;
}
}
}
}
.slide-box {
height: 15rem;
...
...
@@ -95,3 +78,37 @@
.fade-leave-to {
opacity: 0;
}
.overlay-body {
display: flex;
height: 100%;
align-items: center;
justify-content: center;
}
.overlay-content {
display: flex;
width: 85%;
height: 80%;
background: #fff;
border-radius: 8px;
// align-items: center;
// justify-content: center;
overflow: scroll;
}
.notice-wrapper {
padding: 1rem;
.notice-content {
.title {
font-weight: bold;
text-align: center;
margin-bottom: 0.5rem;
}
.content {
margin-bottom: 0.5rem;
}
.mb-1 {
margin-bottom: 1rem !important;
}
}
}
...
...
src/pages/index/index.vue
View file @
964c4e5
<!--
* @Date: 2022-09-19 14:11:06
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2024-05-24 1
7:36:51
* @LastEditTime: 2024-05-24 1
9:23:29
* @FilePath: /meihuaApp/src/pages/index/index.vue
* @Description: 首页
-->
...
...
@@ -24,11 +24,11 @@
</scroll-view>
<view style="height: 6rem;"></view>
<nav-bar activated="index" />
<nut-
popup
<nut-
overlay
v-model:visible="show_notice"
position="right"
:style="{ height: '100%' }"
>
<div class="overlay-body">
<div class="overlay-content">
<view class="notice-wrapper">
<!-- <view style="text-align: center; margin-bottom: 1rem;">梅花岛的描述和入住须知</view> -->
<view class="notice-content">
...
...
@@ -71,8 +71,11 @@
<view class="content">若入住当天取消,扣除100%费用。</view>
</view>
<nut-button @tap="onCloseNotice" color="#6a4925" block type="primary" style="margin-top: 1rem;">关闭</nut-button>
<view style="height: 1rem;"></view>
</view>
</nut-popup>
</div>
</div>
</nut-overlay>
</view>
</template>
...
...
Please
register
or
login
to post a comment