Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
C
center-psp-show-h5
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
EzijingWeb
center-psp-show-h5
Commits
fb581a91
提交
fb581a91
authored
10月 22, 2024
作者:
lhh
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
修改地址
上级
fae42594
显示空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
19 行增加
和
3 行删除
+19
-3
Footer.vue
src/components/layout/Footer.vue
+1
-1
api.ts
src/modules/course/api.ts
+6
-0
Detail.vue
src/modules/course/views/Detail.vue
+11
-1
PayH5.vue
src/modules/pay/components/PayH5.vue
+1
-1
没有找到文件。
src/components/layout/Footer.vue
浏览文件 @
fb581a91
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
<div
class=
"title"
>
联系我们
</div>
<div
class=
"title"
>
联系我们
</div>
<div
class=
"info"
>
<div
class=
"info"
>
紫荆小秘书:13263110169(同微信)
<br
/>
紫荆小秘书:13263110169(同微信)
<br
/>
地址:北京市海淀区
中关村东路1号院清华科技园7号楼5层
地址:北京市海淀区
北四环西路52号方正国际大厦5层501
<br
/>
邮箱:WMC@ezijing.com
<br
/>
邮箱:WMC@ezijing.com
</div>
</div>
</div>
</div>
...
...
src/modules/course/api.ts
浏览文件 @
fb581a91
...
@@ -14,3 +14,9 @@ export function getVideo(params: { resource_id: string, course_id: string, chapt
...
@@ -14,3 +14,9 @@ export function getVideo(params: { resource_id: string, course_id: string, chapt
export
function
uploadVideo
(
params
:
any
)
{
export
function
uploadVideo
(
params
:
any
)
{
return
httpRequest
.
get
(
'/api/psp/v2/learning/upload-video'
,
{
params
})
return
httpRequest
.
get
(
'/api/psp/v2/learning/upload-video'
,
{
params
})
}
}
export
function
getOrderSpec
(
data
?:
any
)
{
return
httpRequest
.
post
(
'https://shop-show-h5.ezijing.com/api/shop/commodity/spu/spec/value/search'
,
data
,
{
headers
:
{
'Content-Type'
:
'application/json'
}
})
}
src/modules/course/views/Detail.vue
浏览文件 @
fb581a91
<
script
setup
lang=
"ts"
>
<
script
setup
lang=
"ts"
>
import
AppContainer
from
'@/components/base/AppContainer.vue'
import
AppContainer
from
'@/components/base/AppContainer.vue'
import
{
getCourseDetail
}
from
'../api'
import
{
getCourseDetail
,
getOrderSpec
}
from
'../api'
import
CourseCatalog
from
'../components/CourseCatalog.vue'
import
CourseCatalog
from
'../components/CourseCatalog.vue'
import
{
useUserStore
}
from
'@/stores/user'
import
{
useUserStore
}
from
'@/stores/user'
import
{
Dialog
}
from
'vant'
import
{
Dialog
}
from
'vant'
...
@@ -21,9 +21,19 @@ getCourseDetail({ id: route.query?.id as string }).then((res: any) => {
...
@@ -21,9 +21,19 @@ getCourseDetail({ id: route.query?.id as string }).then((res: any) => {
return
item
return
item
})
})
}
}
// console.log(d)
// getURLParameters()
// const urlParam = getURLParameters(d.url)
// getOrderSpec({ shop_id: urlParam.shop_id, spu_id: urlParam.id })
data
.
course
=
d
data
.
course
=
d
})
})
const
getURLParameters
=
(
url
:
any
)
=>
(
url
.
match
(
/
([^
?=&
]
+
)(
=
([^
&
]
*
))
/g
)
||
[]).
reduce
(
(
a
:
any
,
v
:
any
)
=>
((
a
[
v
.
slice
(
0
,
v
.
indexOf
(
'='
))]
=
v
.
slice
(
v
.
indexOf
(
'='
)
+
1
)),
a
),
{}
)
const
handleStudy
=
function
()
{
const
handleStudy
=
function
()
{
if
(
data
.
course
?.
is_free_name
!==
'已过期'
)
{
if
(
data
.
course
?.
is_free_name
!==
'已过期'
)
{
router
.
push
(
`/course/chapter?id=
${
route
.
query
?.
id
}
&
chapterId
=
$
{
data
.
course
?.
id
}
`)
router
.
push
(
`/course/chapter?id=
${
route
.
query
?.
id
}
&
chapterId
=
$
{
data
.
course
?.
id
}
`)
...
...
src/modules/pay/components/PayH5.vue
浏览文件 @
fb581a91
...
@@ -30,7 +30,7 @@ function handlePay() {
...
@@ -30,7 +30,7 @@ function handlePay() {
const
payUrl
=
getURLParameters
(
props
.
shopItem
?.
url
)
const
payUrl
=
getURLParameters
(
props
.
shopItem
?.
url
)
const
data
=
{
const
data
=
{
shop_id
:
payUrl
?.
shop_id
||
''
,
shop_id
:
payUrl
?.
shop_id
||
''
,
spu_id
:
payUrl
?.
spu_id
||
''
,
spu_id
:
payUrl
?.
spu_id
||
payUrl
?.
id
||
''
,
sku_id
:
payUrl
?.
sku_id
||
''
,
sku_id
:
payUrl
?.
sku_id
||
''
,
nUrl
:
`https://wmpc-show-h5.ezijing.com/api/psp/v2/index/pay-callback?tenant=wmpc&course_id=
${
props
.
shopItem
.
id
}
&user_id=
${
uId
}
`
,
nUrl
:
`https://wmpc-show-h5.ezijing.com/api/psp/v2/index/pay-callback?tenant=wmpc&course_id=
${
props
.
shopItem
.
id
}
&user_id=
${
uId
}
`
,
amount
:
props
.
shopItem
?.
prices
,
amount
:
props
.
shopItem
?.
prices
,
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论