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
d2d48264
提交
d2d48264
authored
10月 23, 2024
作者:
lhh
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
update
上级
35998c72
显示空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
13 行增加
和
19 行删除
+13
-19
Detail.vue
src/modules/course/views/Detail.vue
+6
-8
Player.vue
src/modules/course/views/Player.vue
+7
-7
PayH5.vue
src/modules/pay/components/PayH5.vue
+0
-2
usePay.ts
src/modules/pay/composables/usePay.ts
+0
-2
没有找到文件。
src/modules/course/views/Detail.vue
浏览文件 @
d2d48264
...
...
@@ -2,11 +2,9 @@
import
AppContainer
from
'@/components/base/AppContainer.vue'
import
{
getCourseDetail
}
from
'../api'
import
CourseCatalog
from
'../components/CourseCatalog.vue'
import
{
useUserStore
}
from
'@/stores/user'
//
import { useUserStore } from '@/stores/user'
import
{
Dialog
}
from
'vant'
const
userStore
=
useUserStore
()
const
route
=
useRoute
()
const
router
=
useRouter
()
...
...
@@ -26,11 +24,11 @@ getCourseDetail({ id: route.query?.id as string }).then((res: any) => {
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 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
()
{
if
(
data
.
course
?.
is_free_name
!==
'已过期'
)
{
...
...
src/modules/course/views/Player.vue
浏览文件 @
d2d48264
...
...
@@ -8,7 +8,7 @@ import 'xgplayer/dist/index.min.css'
const
route
=
useRoute
()
const
router
=
useRouter
()
//
const router = useRouter()
let
data
:
any
=
reactive
({
course
:
{}
...
...
@@ -87,12 +87,12 @@ function getUserInfo() {
}
getUserInfo
()
watch
(
()
=>
route
.
query
.
chapterId
,
newVal
=>
{
router
.
go
(
0
)
}
)
//
watch(
//
() => route.query.chapterId,
//
newVal => {
//
router.go(0)
//
}
//
)
</
script
>
<
template
>
...
...
src/modules/pay/components/PayH5.vue
浏览文件 @
d2d48264
...
...
@@ -7,8 +7,6 @@ import { getOrderSpec } from '../api'
const
props
=
defineProps
({
shopItem
:
{
type
:
Object
,
default
:
()
=>
({})
}
})
const
emit
=
defineEmits
([
'success'
])
const
router
=
useRouter
()
const
params
=
$ref
({
payment_method
:
'4'
})
const
{
order
,
pay
}
=
usePay
()
...
...
src/modules/pay/composables/usePay.ts
浏览文件 @
d2d48264
import
type
{
PayOrder
,
Order
}
from
'../types'
import
*
as
api
from
'../api'
import
{
useUserStore
}
from
'@/stores/user'
// import { useShopStore } from '@/stores/shop'
import
{
useStorage
}
from
'@vueuse/core'
import
{
useDevice
}
from
'@/composables/useDevice'
...
...
@@ -11,7 +10,6 @@ const { wechat } = useDevice()
export
function
usePay
()
{
const
route
=
useRoute
()
const
userStore
=
useUserStore
()
// const shopStore = useShopStore()
// 订单信息
const
order
=
ref
<
Order
>
()
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论