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
68d362c0
Commit
68d362c0
authored
Oct 27, 2025
by
spc
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fxied
parent
bfe59b18
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
11 deletions
+8
-11
goods.js
api/goods.js
+5
-1
goodDetail.vue
v3/goodDetail/goodDetail.vue
+2
-5
settlementCenter.vue
v3/settlementCenter/settlementCenter.vue
+1
-5
No files found.
api/goods.js
View file @
68d362c0
...
@@ -103,4 +103,8 @@ export const fetchOrderExpressRoute = (data) => api.get('/c/order/express/route'
...
@@ -103,4 +103,8 @@ export const fetchOrderExpressRoute = (data) => api.get('/c/order/express/route'
* @returns {Promise} API响应
* @returns {Promise} API响应
* @description 取消订单
* @description 取消订单
*/
*/
export
const
fetchOrderCancel
=
(
data
)
=>
api
.
post
(
'/c/order/cancel'
,
data
);
export
const
fetchOrderCancel
=
(
data
)
=>
api
.
post
(
'/c/order/cancel'
,
data
,
{
headers
:
{
'Content-Type'
:
'form-data'
}
});
v3/goodDetail/goodDetail.vue
View file @
68d362c0
...
@@ -861,17 +861,14 @@ export default {
...
@@ -861,17 +861,14 @@ export default {
await
this
.
exchangeGoods
();
await
this
.
exchangeGoods
();
}
}
}
finally
{
}
finally
{
this
.
isSubmitting
=
false
;
// isSubmitting由调用方重置
uni
.
hideLoading
();
}
}
},
},
// 兑换商品(仅处理非实物商品)
// 兑换商品(仅处理非实物商品)
async
exchangeGoods
()
{
async
exchangeGoods
()
{
try
{
try
{
// 防连点检查
if
(
this
.
isSubmitting
)
return
;
this
.
isSubmitting
=
true
;
uni
.
showLoading
({
uni
.
showLoading
({
title
:
'兑换中...'
title
:
'兑换中...'
});
});
...
...
v3/settlementCenter/settlementCenter.vue
View file @
68d362c0
...
@@ -408,7 +408,7 @@ export default {
...
@@ -408,7 +408,7 @@ export default {
this
.
closeModal
();
this
.
closeModal
();
await
this
.
createOrder
();
await
this
.
createOrder
();
}
finally
{
}
finally
{
this
.
isSubmitting
=
false
;
// isSubmitting由调用方重置
}
}
},
},
...
@@ -421,10 +421,6 @@ export default {
...
@@ -421,10 +421,6 @@ export default {
// 创建订单
// 创建订单
async
createOrder
()
{
async
createOrder
()
{
try
{
try
{
// 防连点检查
if
(
this
.
isSubmitting
)
return
;
this
.
isSubmitting
=
true
;
uni
.
showLoading
({
uni
.
showLoading
({
title
:
'下单中...'
title
:
'下单中...'
});
});
...
...
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