Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mayi-mp-shop
Overview
Overview
Details
Activity
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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
程默
mayi-mp-shop
Commits
eb259922
Commit
eb259922
authored
May 15, 2023
by
hxx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
支付有礼优化
parent
5b065bcf
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
1 deletions
+14
-1
src/api/order.js
+5
-1
src/components/paySuccess/payWithGifts.vue
+9
-0
No files found.
src/api/order.js
View file @
eb259922
...
@@ -20,5 +20,9 @@ export default {
...
@@ -20,5 +20,9 @@ export default {
// 获取订单是否参加支付有礼
// 获取订单是否参加支付有礼
getPayWithCourtesyInfoForShop
(
data
)
{
getPayWithCourtesyInfoForShop
(
data
)
{
return
requestPOST
(
`
${
process
.
env
.
OLSHOP_URL
}
/payWithCourtesy/getPayWithCourtesyInfoForShop`
,
data
);
return
requestPOST
(
`
${
process
.
env
.
OLSHOP_URL
}
/payWithCourtesy/getPayWithCourtesyInfoForShop`
,
data
);
}
},
// 保存支付有礼积分
save_pay_with_courtesy_integral
(
data
)
{
return
requestPOST
(
`
${
process
.
env
.
OLSHOP_URL
}
/order/save_pay_with_courtesy_integral`
,
data
)
},
}
}
src/components/paySuccess/payWithGifts.vue
View file @
eb259922
...
@@ -133,9 +133,18 @@
...
@@ -133,9 +133,18 @@
const
info
=
this
.
giftsInfo
.
getPayWithCourtesyInfoForShopRespDTO
;
const
info
=
this
.
giftsInfo
.
getPayWithCourtesyInfoForShopRespDTO
;
if
(
info
&&
(
info
.
payWithCourtesyIntegralRedemptionPageRespDTO
||
info
.
detailCouponInfoResponseDTO
))
{
if
(
info
&&
(
info
.
payWithCourtesyIntegralRedemptionPageRespDTO
||
info
.
detailCouponInfoResponseDTO
))
{
this
.
isShowGifts
=
true
;
this
.
isShowGifts
=
true
;
this
.
savePayWithCourtesyIntegral
();
}
}
}
}
},
},
// 支付有礼保存积分
async
savePayWithCourtesyIntegral
()
{
const
data
=
{
orderSn
:
this
.
_orderDetail
.
orderSn
,
// 订单编号
payWithCourtesyId
:
this
.
giftsInfo
.
getPayWithCourtesyInfoForShopRespDTO
.
activityid
,
// 支付有礼 id
}
await
order
.
save_pay_with_courtesy_integral
(
data
);
}
},
},
}
}
</
script
>
</
script
>
...
...
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