Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
P
project-online-fi
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
EzijingWeb
project-online-fi
Commits
2a4818af
提交
2a4818af
authored
11月 21, 2022
作者:
matian
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
updates
上级
e718fff2
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
12 行增加
和
15 行删除
+12
-15
Confirm.vue
src/modules/pay/components/Confirm.vue
+11
-11
Order.vue
src/modules/pay/components/Order.vue
+1
-4
没有找到文件。
src/modules/pay/components/Confirm.vue
浏览文件 @
2a4818af
...
...
@@ -63,10 +63,10 @@ function pay() {
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
}
`
}
if (
currentCheck.value === '4'
&& wechat) {
if (
payMode.value === 4
&& wechat) {
params.payment_method = '4'
// 微信扫码支付
} else if (
currentCheck.value === '12'
&& alipay) {
} else if (
payMode.value === 12
&& alipay) {
params.payment_method = '12'
}
createOrder(params).then((order) => {
...
...
@@ -99,14 +99,18 @@ const handlePay = () => {
ElMessage.warning('请先勾选紫荆金保服务协议')
} else {
if (user.isLogin) {
if (mobile) {
handleCreateOrder()
} else {
console.log(mobile)
if (!mobile.value) {
console.log('111')
const params = {
payMode: payMode.value,
status: 'order'
}
emit('success', params)
} else {
console.log('222')
handleCreateOrder()
}
} else {
window.location.href = `
$
{
...
...
@@ -231,9 +235,7 @@ const handlePrev = () => {
/>
<div
class=
"radio_tit"
>
支付宝支付
</div>
<div
:class=
"
currentCheck === '12' ? 'radio_check_active' : 'radio_check'
"
:class=
"payMode === '12' ? 'radio_check_active' : 'radio_check'"
@
click=
"checkdChange('12')"
>
<template
v-if=
"currentCheck === '12'"
>
...
...
@@ -247,9 +249,7 @@ const handlePrev = () => {
/>
<div
class=
"radio_tit"
>
微信支付
</div>
<div
:class=
"
currentCheck === '4' ? 'radio_check_active' : 'radio_check'
"
:class=
"payMode === '4' ? 'radio_check_active' : 'radio_check'"
@
click=
"checkdChange('4')"
>
<
template
v-if=
"currentCheck === '4'"
>
...
...
src/modules/pay/components/Order.vue
浏览文件 @
2a4818af
...
...
@@ -8,10 +8,7 @@ const timer = ref()
const
qrCodeUrl
=
ref
(
''
)
const
payStatus
=
ref
(
''
)
const
orderId
=
ref
(
''
)
// const UA = navigator.userAgent
// const isMobile = /iphone/i.test(UA) || (/android/i.test(UA) && /mobile/i.test(UA))
// const isWechat = /micromessenger/i.test(UA)
// const isAliPay = /alipayclient/i.test(UA)
const
props
=
defineProps
({
payMethod
:
{
type
:
Number
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论