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
0d1ba467
Commit
0d1ba467
authored
Jul 25, 2025
by
wxf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 修改接口路径及域名
parent
b70012fa
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
9 deletions
+9
-9
index.js
api/reservation/index.js
+8
-8
reservation-request.js
api/reservation/reservation-request.js
+1
-1
No files found.
api/reservation/index.js
View file @
0d1ba467
...
...
@@ -9,14 +9,14 @@ const {
* @param {string} memberId 用户memberId
* @param {string} code 微信code
*/
export
const
decodePhone
=
(
data
)
=>
api
.
post
(
'/decode_phone
.php
'
,
data
)
export
const
decodePhone
=
(
data
)
=>
api
.
post
(
'/decode_phone'
,
data
)
/**
* 获取日期
* @returns
* @param {string} memberId 用户memberId
*/
export
const
getDateConfig
=
(
data
)
=>
api
.
post
(
'/get_day
.php
'
,
data
)
export
const
getDateConfig
=
(
data
)
=>
api
.
post
(
'/get_day'
,
data
)
/**
* 获取时间
...
...
@@ -24,21 +24,21 @@ export const getDateConfig = (data) => api.post('/get_day.php', data)
* @param {string} memberId 用户memberId
* @param {string} day 日期
*/
export
const
getTimeConfig
=
(
data
)
=>
api
.
post
(
'/get_time
.php
'
,
data
)
export
const
getTimeConfig
=
(
data
)
=>
api
.
post
(
'/get_time'
,
data
)
/**
* 获取工厂
* @returns
* @param {string} memberId 用户memberId
*/
export
const
getGround
=
(
data
)
=>
api
.
post
(
'/get_ground
.php
'
,
data
)
export
const
getGround
=
(
data
)
=>
api
.
post
(
'/get_ground'
,
data
)
/**
* 预约列表
* @returns
* @param {string} memberId 用户memberId
*/
export
const
reservationList
=
(
data
)
=>
api
.
post
(
'/reservation_list
.php
'
,
data
)
export
const
reservationList
=
(
data
)
=>
api
.
post
(
'/reservation_list'
,
data
)
/**
* 预约详情
...
...
@@ -46,7 +46,7 @@ export const reservationList = (data) => api.post('/reservation_list.php', data)
* @param {string} id 预约id
*/
export
const
reservationDetail
=
(
data
)
=>
api
.
post
(
'/reservation_detail
.php
'
,
data
)
api
.
post
(
'/reservation_detail'
,
data
)
/**
* 取消预约
...
...
@@ -54,7 +54,7 @@ export const reservationDetail = (data) =>
* @param {string} id 预约id
*/
export
const
reservationCancel
=
(
data
)
=>
api
.
post
(
'/reservation_cancel
.php
'
,
data
)
api
.
post
(
'/reservation_cancel'
,
data
)
/**
* 发起预约
...
...
@@ -67,4 +67,4 @@ export const reservationCancel = (data) =>
* @param {string} data.visitor_number 访客人数
* @param {string} data.type 访客类型
*/
export
const
reservation
=
(
data
)
=>
api
.
post
(
'/reservation.php'
,
data
)
\ No newline at end of file
export
const
reservation
=
(
data
)
=>
api
.
post
(
'/reservation'
,
data
)
\ No newline at end of file
api/reservation/reservation-request.js
View file @
0d1ba467
...
...
@@ -6,7 +6,7 @@ import {
// 通常可以吧 baseUrl 单独放在一个 js 文件了
// const baseUrl = "http://172.16.224.178:7777/pmall";
// const baseUrl = "https://momclub-uat.feihe.com/pmall";//测试环境
const
baseUrl
=
'https://
essenc
e.jzvcode.com/feihe'
//生产环境
const
baseUrl
=
'https://
feih
e.jzvcode.com/feihe'
//生产环境
const
request
=
(
options
=
{})
=>
{
// 对options.data 进行一些处理
...
...
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