Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
P
project-online-fi
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
EzijingWeb
project-online-fi
Commits
a960cf42
提交
a960cf42
authored
11月 22, 2022
作者:
matian
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
updates
上级
2e01098e
隐藏空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
8 行增加
和
5 行删除
+8
-5
Confirm.vue
src/modules/pay/components/Confirm.vue
+8
-5
没有找到文件。
src/modules/pay/components/Confirm.vue
浏览文件 @
a960cf42
...
@@ -15,7 +15,6 @@ const props = defineProps({
...
@@ -15,7 +15,6 @@ const props = defineProps({
type
:
Object
type
:
Object
}
}
})
})
// const defaultParams: any = ref({})
const
openId
:
any
=
ref
(
window
.
localStorage
.
getItem
(
'openId'
))
const
openId
:
any
=
ref
(
window
.
localStorage
.
getItem
(
'openId'
))
const
payment_method
=
ref
(
''
)
const
payment_method
=
ref
(
''
)
const
orderInfoDetail
:
any
=
ref
([])
const
orderInfoDetail
:
any
=
ref
([])
...
@@ -68,13 +67,13 @@ const handleCreateOrder = () => {
...
@@ -68,13 +67,13 @@ const handleCreateOrder = () => {
buy_count
:
'1'
,
buy_count
:
'1'
,
notify_url
:
`https://ep-lms-api.ezijing.com/v2/student/push?tenant=paa&sso_id=
${
user
.
user
?.
id
}
&
class_id
=
$
{
props
.
shopItem
?.
class_id
}
&
course_flag
=
1
&
course_id
=
$
{
props
.
shopItem
?.
course_id
}
`
notify_url
:
`https://ep-lms-api.ezijing.com/v2/student/push?tenant=paa&sso_id=
${
user
.
user
?.
id
}
&
class_id
=
$
{
props
.
shopItem
?.
class_id
}
&
course_flag
=
1
&
course_id
=
$
{
props
.
shopItem
?.
course_id
}
`
}
}
if (wechat) {
if (wechat
&& currentCheck.value === '4'
) {
if (openId.value) {
if (openId.value) {
params.open_id = openId.value
params.open_id = openId.value
params.payment_method = '3'
params.payment_method = '3'
fetchPlaceOrder(params)
fetchPlaceOrder(params)
}
}
} else if (alipay) {
} else if (alipay
&& currentCheck.value === '12'
) {
params.payment_method = '12'
params.payment_method = '12'
fetchPlaceOrder(params)
fetchPlaceOrder(params)
}
}
...
@@ -286,7 +285,9 @@ if (
...
@@ -286,7 +285,9 @@ if (
/>
/>
<div
class=
"radio_tit"
>
支付宝支付
</div>
<div
class=
"radio_tit"
>
支付宝支付
</div>
<div
<div
:class=
"payMode === 1 ? 'radio_check_active' : 'radio_check'"
:class=
"
currentCheck === '12' ? 'radio_check_active' : 'radio_check'
"
@
click=
"checkdChange('12')"
@
click=
"checkdChange('12')"
>
>
<template
v-if=
"currentCheck === '12'"
>
<template
v-if=
"currentCheck === '12'"
>
...
@@ -300,7 +301,9 @@ if (
...
@@ -300,7 +301,9 @@ if (
/>
/>
<div
class=
"radio_tit"
>
微信支付
</div>
<div
class=
"radio_tit"
>
微信支付
</div>
<div
<div
:class=
"payMode === 2 ? 'radio_check_active' : 'radio_check'"
:class=
"
currentCheck === '4' ? 'radio_check_active' : 'radio_check'
"
@
click=
"checkdChange('4')"
@
click=
"checkdChange('4')"
>
>
<
template
v-if=
"currentCheck === '4'"
>
<
template
v-if=
"currentCheck === '4'"
>
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论