Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
P
project-online-pc
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
EzijingWeb
project-online-pc
Commits
2c1507df
提交
2c1507df
authored
9月 15, 2023
作者:
王鹏飞
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
chore: 修改留位费支付相关接口
上级
4133765b
显示空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
17 行增加
和
40 行删除
+17
-40
my.js
api/my.js
+11
-32
h5Pay.vue
modules/my/review/components/h5Pay.vue
+2
-4
qrcodePay.vue
modules/my/review/components/qrcodePay.vue
+1
-1
pay.vue
modules/my/review/pay.vue
+3
-3
没有找到文件。
api/my.js
浏览文件 @
2c1507df
...
@@ -54,64 +54,46 @@ export function getApplicationStatus() {
...
@@ -54,64 +54,46 @@ export function getApplicationStatus() {
/**
/**
* 获取支付二维码
* 获取支付二维码
*/
*/
export
function
getOrder
(
params
)
{
export
function
getOrder
(
params
,
fee
=
'APPLICATION_FEE'
)
{
return
httpRequest
.
get
(
return
httpRequest
.
get
(
`/api/enrollment/v1.0/application-materials/payment-records/request/
${
projectId
}
/
${
fee
}
`
,
{
params
})
`/api/enrollment/v1.0/application-materials/payment-records/request/
${
projectId
}
/APPLICATION_FEE`
,
{
params
}
)
}
}
/**
/**
* 检查支付状态
* 检查支付状态
*/
*/
export
function
checkPay
(
id
,
params
)
{
export
function
checkPay
(
id
,
params
,
fee
=
'APPLICATION_FEE'
)
{
return
httpRequest
.
get
(
return
httpRequest
.
get
(
`/api/enrollment/v1.0/application-materials/payment-records/check-status/
${
projectId
}
/
${
fee
}
/
${
id
}
`
,
{
params
})
`/api/enrollment/v1.0/application-materials/payment-records/check-status/
${
projectId
}
/APPLICATION_FEE/
${
id
}
`
,
{
params
}
)
}
}
/**
/**
* 写推荐信
* 写推荐信
*/
*/
export
function
addLetter
(
userId
,
letterId
,
data
)
{
export
function
addLetter
(
userId
,
letterId
,
data
)
{
return
httpRequest
.
post
(
return
httpRequest
.
post
(
`/api/enrollment/v1.0/application-materials/reco-letters/submit/
${
projectId
}
/
${
userId
}
/
${
letterId
}
/put`
,
data
,
{
`/api/enrollment/v1.0/application-materials/reco-letters/submit/
${
projectId
}
/
${
userId
}
/
${
letterId
}
/put`
,
data
,
{
headers
:
{
'Content-Type'
:
'application/json'
}
headers
:
{
'Content-Type'
:
'application/json'
}
}
})
)
}
}
/**
/**
* 更换推荐人
* 更换推荐人
*/
*/
export
function
updateProvider
(
letterId
,
data
)
{
export
function
updateProvider
(
letterId
,
data
)
{
return
httpRequest
.
post
(
return
httpRequest
.
post
(
`/api/enrollment/v1.0/application-materials/reco-letters/change-provider/
${
projectId
}
/
${
letterId
}
/put`
,
data
,
{
`/api/enrollment/v1.0/application-materials/reco-letters/change-provider/
${
projectId
}
/
${
letterId
}
/put`
,
data
,
{
headers
:
{
'Content-Type'
:
'application/json'
}
headers
:
{
'Content-Type'
:
'application/json'
}
}
})
)
}
}
/**
/**
* 再次邀请
* 再次邀请
*/
*/
export
function
sendToProvider
(
letterId
)
{
export
function
sendToProvider
(
letterId
)
{
return
httpRequest
.
get
(
return
httpRequest
.
get
(
`/api/enrollment/v1.0/application-materials/reco-letters/send-invitation-to-provider/
${
projectId
}
/
${
letterId
}
`
)
`/api/enrollment/v1.0/application-materials/reco-letters/send-invitation-to-provider/
${
projectId
}
/
${
letterId
}
`
)
}
}
/**
/**
* 发送推荐信
* 发送推荐信
*/
*/
export
function
sendToProviders
()
{
export
function
sendToProviders
()
{
return
httpRequest
.
get
(
return
httpRequest
.
get
(
`/api/enrollment/v1.0/application-materials/reco-letters/send-invitation-to-providers/
${
projectId
}
`
)
`/api/enrollment/v1.0/application-materials/reco-letters/send-invitation-to-providers/
${
projectId
}
`
)
}
}
/**
/**
* 退出登录
* 退出登录
...
@@ -124,10 +106,7 @@ export function logout() {
...
@@ -124,10 +106,7 @@ export function logout() {
* 更改附件状态
* 更改附件状态
*/
*/
export
function
changeFileStatus
(
userId
,
recordId
,
status
)
{
export
function
changeFileStatus
(
userId
,
recordId
,
status
)
{
return
httpRequest
.
get
(
return
httpRequest
.
get
(
`/api/enrollment/v1.0/application-materials/attachments/change-status/
${
projectId
}
/
${
userId
}
/
${
recordId
}
`
,
{
params
:
{
status
}
})
`/api/enrollment/v1.0/application-materials/attachments/change-status/
${
projectId
}
/
${
userId
}
/
${
recordId
}
`
,
{
params
:
{
status
}
}
)
}
}
/**
/**
...
...
modules/my/review/components/h5Pay.vue
浏览文件 @
2c1507df
...
@@ -20,7 +20,7 @@ export default {
...
@@ -20,7 +20,7 @@ export default {
methods
:
{
methods
:
{
// 获取订单
// 获取订单
getOrder
(
callback
)
{
getOrder
(
callback
)
{
api
.
getOrder
({
wx_open_id
:
this
.
openId
,
payment_method
:
'WX_PAY'
}).
then
(
response
=>
{
api
.
getOrder
({
wx_open_id
:
this
.
openId
,
payment_method
:
'WX_PAY'
}
,
'RESERVATION_FEE'
).
then
(
response
=>
{
const
{
data
,
error
,
message
}
=
response
const
{
data
,
error
,
message
}
=
response
if
(
error
.
toString
()
===
'0'
)
{
if
(
error
.
toString
()
===
'0'
)
{
this
.
order
=
data
this
.
order
=
data
...
@@ -51,9 +51,7 @@ export default {
...
@@ -51,9 +51,7 @@ export default {
// 去支付
// 去支付
handlePay
()
{
handlePay
()
{
this
.
getOrder
(()
=>
{
this
.
getOrder
(()
=>
{
window
.
location
.
href
=
`https://web-pay.ezijing.com/wxpay/h5?prepay_id=
${
this
.
order
.
wx_prepay_id
}
&open_id=
${
window
.
location
.
href
=
`https://web-pay.ezijing.com/wxpay/h5?prepay_id=
${
this
.
order
.
wx_prepay_id
}
&open_id=
${
this
.
openId
}
&redirect_uri=
${
encodeURIComponent
(
this
.
pageUrl
)}
`
this
.
openId
}
&redirect_uri=
${
encodeURIComponent
(
this
.
pageUrl
)}
`
})
})
}
}
},
},
...
...
modules/my/review/components/qrcodePay.vue
浏览文件 @
2c1507df
...
@@ -44,7 +44,7 @@ export default {
...
@@ -44,7 +44,7 @@ export default {
methods
:
{
methods
:
{
// 获取订单
// 获取订单
getOrder
()
{
getOrder
()
{
api
.
getOrder
({
payment_method
:
'WX_PAY_QR'
}).
then
(
response
=>
{
api
.
getOrder
({
payment_method
:
'WX_PAY_QR'
}
,
'RESERVATION_FEE'
).
then
(
response
=>
{
const
{
data
,
error
,
message
}
=
response
const
{
data
,
error
,
message
}
=
response
this
.
qrcodeError
=
error
.
toString
()
===
'1'
this
.
qrcodeError
=
error
.
toString
()
===
'1'
if
(
error
.
toString
()
===
'0'
)
{
if
(
error
.
toString
()
===
'0'
)
{
...
...
modules/my/review/pay.vue
浏览文件 @
2c1507df
...
@@ -45,7 +45,7 @@ export default {
...
@@ -45,7 +45,7 @@ export default {
orderList
()
{
orderList
()
{
// 筛选待支付订单
// 筛选待支付订单
const
list
=
this
.
paymentRecords
.
filter
(
item
=>
{
const
list
=
this
.
paymentRecords
.
filter
(
item
=>
{
return
item
.
bill_type
===
'
APPLIC
ATION_FEE'
&&
item
.
payment_status
===
'WAITING_FOR_PAY'
return
item
.
bill_type
===
'
RESERV
ATION_FEE'
&&
item
.
payment_status
===
'WAITING_FOR_PAY'
})
})
// 待支付订单是否有当前订单
// 待支付订单是否有当前订单
const
found
=
list
.
find
(
item
=>
item
.
id
===
this
.
order
.
id
)
const
found
=
list
.
find
(
item
=>
item
.
id
===
this
.
order
.
id
)
...
@@ -70,7 +70,7 @@ export default {
...
@@ -70,7 +70,7 @@ export default {
if
(
paymentRecords
&&
paymentRecords
.
length
)
{
if
(
paymentRecords
&&
paymentRecords
.
length
)
{
// 获取支付成功的订单
// 获取支付成功的订单
const
orderPaySuccess
=
paymentRecords
.
find
(
item
=>
{
const
orderPaySuccess
=
paymentRecords
.
find
(
item
=>
{
return
item
.
bill_type
===
'
APPLIC
ATION_FEE'
&&
item
.
payment_status
===
'SUCCESS'
return
item
.
bill_type
===
'
RESERV
ATION_FEE'
&&
item
.
payment_status
===
'SUCCESS'
})
})
if
(
orderPaySuccess
)
{
if
(
orderPaySuccess
)
{
this
.
order
=
orderPaySuccess
this
.
order
=
orderPaySuccess
...
@@ -89,7 +89,7 @@ export default {
...
@@ -89,7 +89,7 @@ export default {
return
return
}
}
const
userId
=
this
.
user
.
id
const
userId
=
this
.
user
.
id
api
.
checkPay
(
order
.
id
,
{
user_id
:
userId
}).
then
(
response
=>
{
api
.
checkPay
(
order
.
id
,
{
user_id
:
userId
}
,
'RESERVATION_FEE'
).
then
(
response
=>
{
if
(
response
.
data
.
payment_status
===
'SUCCESS'
)
{
if
(
response
.
data
.
payment_status
===
'SUCCESS'
)
{
this
.
timer
&&
clearInterval
(
this
.
timer
)
this
.
timer
&&
clearInterval
(
this
.
timer
)
this
.
dialogVisible
=
true
this
.
dialogVisible
=
true
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论