Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
飞
飞鹤小程序
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
FH
飞鹤小程序
Commits
26779b08
Commit
26779b08
authored
Aug 13, 2025
by
kisszxc
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交跳转连接
parent
291fbc7a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
49 additions
and
3 deletions
+49
-3
index.js
api/reservation/index.js
+4
-1
index.vue
reservation/home/index.vue
+45
-2
No files found.
api/reservation/index.js
View file @
26779b08
...
...
@@ -33,6 +33,7 @@ export const getTimeConfig = (data) => api.post('/get_time', data)
*/
export
const
getGround
=
(
data
)
=>
api
.
post
(
'/get_ground'
,
data
)
/**
* 预约列表
* @returns
...
...
@@ -67,4 +68,6 @@ export const reservationCancel = (data) =>
* @param {string} data.visitor_number 访客人数
* @param {string} data.type 访客类型
*/
export
const
reservation
=
(
data
)
=>
api
.
post
(
'/reservation'
,
data
)
\ No newline at end of file
export
const
reservation
=
(
data
)
=>
api
.
post
(
'/reservation'
,
data
)
export
const
linkmember
=
(
data
)
=>
api
.
post
(
'/linkmember'
,
data
)
reservation/home/index.vue
View file @
26779b08
...
...
@@ -16,7 +16,7 @@
</swiper>
<!-- 底部导航 -->
<view
class=
"footer"
>
<view
class=
"footer-item blur-bg"
@
click=
"go
ToPag
e()"
>
<view
class=
"footer-item blur-bg"
@
click=
"go
feih
e()"
>
<view>
<image
style=
"width: 59rpx; height: 59rpx"
src=
"@/assets/reservation-images/twitter.png"
mode=
"widthFix"
>
</image>
...
...
@@ -47,6 +47,7 @@
import
{
useUserStore
}
from
"@/stores/user.js"
;
import
{
fetchUserInfo
}
from
'@/api/user.js'
import
homePage1
from
'./page1.vue'
import
homePage2
from
'./page2.vue'
import
homePage3
from
'./page3.vue'
...
...
@@ -55,7 +56,10 @@
ref
,
onMounted
}
from
'vue'
import
{
linkmember
,
}
from
'@/api/reservation'
const
current
=
ref
(
0
)
// 当前页码
const
userStore
=
useUserStore
();
onMounted
(()
=>
{
...
...
@@ -87,6 +91,45 @@
url
:
path
,
})
}
const
gofeihe
=
()
=>
{
getUserInfo
();
}
const
getUserInfo
=
()
=>
{
uni
.
navigateTo
({
url
:
'/pages/index/index?pageType=brand'
,
})
// fetchUserInfo({}).then((res) => {
// let data = res.data
// if (data?.memberId !== 'not_login') {
// let requestBody = {
// gradeName:data.gradeName,
// memberId:data.memberId,
// memberName:data.memberName,
// mobile:data.mobile,
// points:data.points
// };
// linkmember(requestBody).then((res) => {
// console.log(res, 'res')
// console.log("444");
// if (res.code == 0) {
// uni.navigateTo({
// url: '/pages/index/index?pageType=brand',
// })
// } else {
// uni.showToast({
// title: res.msg,
// icon: 'none',
// })
// }
// })
// }
// })
}
</
script
>
<
style
lang=
"less"
scoped
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment