Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
glsx
/
gl_tape
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
3
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit cec6377a
authored
Dec 15, 2025
by
李伟康
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'SAAS+V5.5.0' of
http://192.168.3.233:8090/glsx/gl_tape
into SAAS+V5.5.0
2 parents
c817895a
43397bcd
Hide whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
50 additions
and
104 deletions
components/HomeFrame/components/LeftSide.vue
components/HomeFrame/components/Study/FailedExam.vue
components/HomeFrame/components/Study/PassedExam.vue
components/HomeFrame/index.vue
pages/common/serviceDetail/components/ServiceList.vue
pages/common/studyCenter/components/CompletedCourse.vue
pages/common/studyCenter/courseDetail.vue
pages/common/studyCenter/leaderboard.vue
pages/common/studyCenter/myCourse.vue
pages/common/studyCenter/myExam.vue
pages/common/studyCenter/myTask.vue
pages/common/studyWebview.vue
pages/equity/tool/components/OrderCard.vue
components/HomeFrame/components/LeftSide.vue
View file @
cec6377
...
...
@@ -379,15 +379,11 @@ export default {
}
},
openPop
()
{
// this.messageType = 'system'
// this.$refs.kfRef.open()
uni
.
navigateTo
({
url
:
`/pages/common/messageList`
})
},
getMessageInfo
()
{
// this.getMessage()
// this.getMessageCount()
this
.
getMessagePop
()
},
jumpPersonCenter
()
{
...
...
@@ -441,13 +437,6 @@ export default {
this
.
tabs
[
2
].
hidden
=
true
this
.
tabs
[
3
].
hidden
=
true
return
}
else
{
// const { directSaleAuth, hmzxAuth, authorizedBusinessList } = res // 当驻店人员为非直营,且非鸿蒙智行延保业务驻店人员情况下。隐藏左侧【学习中心】图标
// const isYb = authorizedBusinessList && authorizedBusinessList.includes(1) // 1.延保 2.轻改 3.权益
// if (directSaleAuth || (hmzxAuth && isYb)) {
// this.tabs[2].hidden = false
// }
}
}
},
...
...
@@ -456,6 +445,8 @@ export default {
// this.trackInterval = null
},
beforeDestroy
()
{
uni
.
$off
(
'pageBack'
)
uni
.
$off
(
'studyCenter'
)
uni
.
$off
(
'ActivityCenter'
,
this
.
handleActivityCenter
);
// clearInterval(this.trackInterval)
// this.trackInterval = null
...
...
components/HomeFrame/components/Study/FailedExam.vue
View file @
cec6377
...
...
@@ -21,9 +21,9 @@
<!-- 考试次数 -->
<view
class=
"exam-times"
>
<text
class=
"times-value"
>
剩余考试次数
</text>
<template
v-if=
"!item.examTimes"
>
不限
次数
</
template
>
<template
v-if=
"!item.examTimes"
>
不限
制
</
template
>
<
template
v-else
>
<text>
{{
filterValue
(
item
.
remainingTimes
)
}}
/
{{
filterValue
(
item
.
examTimes
)
}}
次
</text>
<text>
{{
filterValue
(
item
.
remainingTimes
)
}}
/
{{
filterValue
(
item
.
examTimes
)
}}
</text>
</
template
>
</view>
...
...
@@ -164,7 +164,7 @@ export default {
// 跳转北森考试详情页
async
viewExam
(
item
)
{
console
.
log
(
'查看考试'
,
item
)
if
(
item
.
remainingTimes
<=
0
)
return
if
(
item
.
examTimes
&&
item
.
remainingTimes
<=
0
)
return
// TODO: 跳转到考试详情页
this
.
showStudyPopup
=
false
this
.
currentExam
=
item
...
...
@@ -193,7 +193,7 @@ export default {
const
url
=
encodeURIComponent
(
`
${
baseUrl
}
?
${
queryString
}
#/viewDynamic?1=1`
);
this
.
jumpUrl
=
`
${
tokenUrl
}
&return_url=
${
url
}
`
;
uni
.
navigateTo
({
url
:
`/pages/common/studyWebview?url=
${
encodeURIComponent
(
this
.
jumpUrl
)}
&pageTitle=学习测评`
url
:
`/pages/common/studyWebview?url=
${
encodeURIComponent
(
this
.
jumpUrl
)}
&pageTitle=学习测评
&type=1
`
})
}
else
{
throw
new
Error
(
'获取 token 失败'
)
...
...
components/HomeFrame/components/Study/PassedExam.vue
View file @
cec6377
...
...
@@ -22,7 +22,7 @@
<text
class=
"times-value"
>
剩余考试次数
</text>
<template
v-if=
"!item.examTimes"
>
不限制
</
template
>
<
template
v-else
>
<text>
{{
filterValue
(
item
.
remainingTimes
)
}}
/
{{
filterValue
(
item
.
examTimes
)
}}
次
</text>
<text>
{{
filterValue
(
item
.
remainingTimes
)
}}
/
{{
filterValue
(
item
.
examTimes
)
}}
</text>
</
template
>
</view>
...
...
@@ -166,7 +166,7 @@ export default {
// 跳转北森考试详情页
async
viewExam
(
item
)
{
console
.
log
(
'查看考试'
,
item
)
if
(
item
.
remainingTimes
<=
0
)
return
if
(
item
.
examTimes
&&
item
.
remainingTimes
<=
0
)
return
// TODO: 跳转到考试详情页
this
.
showStudyPopup
=
false
this
.
currentExam
=
item
...
...
@@ -195,7 +195,7 @@ export default {
const
url
=
encodeURIComponent
(
`
${
baseUrl
}
?
${
queryString
}
#/viewDynamic?1=1`
);
this
.
jumpUrl
=
`
${
tokenUrl
}
&return_url=
${
url
}
`
;
uni
.
navigateTo
({
url
:
`/pages/common/studyWebview?url=
${
encodeURIComponent
(
this
.
jumpUrl
)}
&pageTitle=学习测评`
url
:
`/pages/common/studyWebview?url=
${
encodeURIComponent
(
this
.
jumpUrl
)}
&pageTitle=学习测评
&type=0
`
})
}
else
{
throw
new
Error
(
'获取 token 失败'
)
...
...
components/HomeFrame/index.vue
View file @
cec6377
...
...
@@ -194,22 +194,16 @@ export default {
// console.log('接收到考试提交弹窗事件')
// this.showExamPopup = true
// })
uni
.
$on
(
'showStudyPopup'
,
obj
=>
{
uni
.
$off
(
'levelStudyPopup'
);
uni
.
$on
(
'levelStudyPopup'
,
obj
=>
{
console
.
log
(
'接收到学习弹窗事件'
,
obj
)
if
(
obj
.
type
===
'examSubmit'
)
{
this
.
showExamPopup
=
true
}
else
if
(
obj
.
type
===
'getLevelExamInfo'
)
{
// 查询是否有等级考试
this
.
getLevelExamInfo
()
if
(
obj
.
name
==
'myCourse'
)
{
this
.
$refs
.
pointRef
.
getMyStudyTime
()
}
}
uni
.
$logger
.
local
.
info
(
'接收到学习弹窗事件'
,
obj
)
this
.
showExamPopup
=
true
})
},
beforeDestroy
()
{
// 组件销毁前移除监听
uni
.
$off
(
'
show
StudyPopup'
)
uni
.
$off
(
'
level
StudyPopup'
)
// uni.$off('showStudyPopup')
},
mounted
()
{
...
...
@@ -267,7 +261,7 @@ export default {
const
url
=
encodeURIComponent
(
`
${
baseUrl
}
?
${
queryString
}
#/viewDynamic?1=1`
)
this
.
jumpUrl
=
`
${
tokenUrl
}
&return_url=
${
url
}
`
uni
.
navigateTo
({
url
:
`/pages/common/studyWebview?url=
${
encodeURIComponent
(
this
.
jumpUrl
)}
&pageTitle=学习测评`
url
:
`/pages/common/studyWebview?url=
${
encodeURIComponent
(
this
.
jumpUrl
)}
&pageTitle=学习测评
&type=0
`
})
}
else
{
uni
.
showToast
({
...
...
pages/common/serviceDetail/components/ServiceList.vue
View file @
cec6377
...
...
@@ -79,43 +79,7 @@ export default {
moduleIconEnum
,
moduleContentEnum
,
topList
:
[],
msgList
:
[
{
moduleType
:
3
,
title
:
'请在06-dfasd'
,
createdTime
:
new
Date
().
getTime
(),
count
:
null
,
strdate
:
'2025-06-11'
},
{
moduleType
:
4
,
title
:
'请在06-csaf '
,
createdTime
:
new
Date
().
getTime
(),
count
:
698
,
strdate
:
'2025-06-11'
},
{
moduleType
:
0
,
title
:
'#这是通知标题##这是通知标题##这是通知标题##这是通知标题##这是通知标题#'
,
createdTime
:
new
Date
().
getTime
(),
count
:
6
,
strdate
:
'2025-06-11'
},
{
moduleType
:
2
,
title
:
'dfs'
,
createdTime
:
new
Date
().
getTime
(),
count
:
99
,
strdate
:
'2025-06-12'
},
{
moduleType
:
1
,
title
:
'df '
,
createdTime
:
new
Date
().
getTime
(),
count
:
99
,
strdate
:
'2025-06-12'
}
]
msgList
:
[]
}
},
watch
:
{
...
...
@@ -138,10 +102,6 @@ export default {
// 过滤出topList中包含moduleType的对象
const
result
=
this
.
msgList
.
filter
(
item
=>
this
.
topList
.
includes
(
item
.
moduleType
));
return
result
// // 按topList中的倒序排列
// return this.topList.slice().reverse().map(type =>
// this.msgList.find(item => item.moduleType === type)
// ).filter(Boolean);
},
getList
()
{
// 过滤掉topList中包含moduleType的对象
...
...
@@ -183,9 +143,6 @@ export default {
},
handleClick
(
item
)
{
this
.
$emit
(
'handleClick'
,
item
)
// uni.navigateTo({
// url: `/pages/common/serviceDetail/index?moduleType=${moduleType}`
// })
}
}
}
...
...
pages/common/studyCenter/components/CompletedCourse.vue
View file @
cec6377
...
...
@@ -60,7 +60,7 @@ export default {
nothing
:
false
,
total
:
0
,
pageNum
:
1
,
pageSize
:
1
2
,
pageSize
:
1
6
,
scrollTop
:
0
,
COURSE_TYPE
}
...
...
@@ -137,11 +137,13 @@ export default {
</
script
>
<
style
lang=
"scss"
scoped
>
.completed-course
{
height
:
calc
(
100%
-
#{
toRpx
(
100
)}
);
//
height
:
calc
(
100%
-
#{
toRpx
(
100
)}
);
height
:
100
%;
.scroll-view
{
margin-top
:
toRpx
(
40
);
height
:
calc
(
100%
-
#{
toRpx
(
70
)}
);
//
height
:
calc
(
100%
-
#{
toRpx
(
50
)}
);
height
:
100
%;
.completed-course-list
{
display
:
grid
;
...
...
pages/common/studyCenter/courseDetail.vue
View file @
cec6377
...
...
@@ -105,8 +105,6 @@ export default {
if
(
currentWebview
){
currentWebview
.
close
()
}
// 点击返回按钮,触发学习弹窗事件
uni
.
$emit
(
'showStudyPopup'
,
{
name
:
'courseDetail'
,
type
:
'getLevelExamInfo'
}
)
uni
.
navigateBack
()
}
,
async
openCourse
(
index
,
item
)
{
...
...
pages/common/studyCenter/leaderboard.vue
View file @
cec6377
...
...
@@ -95,8 +95,6 @@ export default {
},
methods
:
{
back
()
{
// 点击返回按钮,触发学习弹窗事件
uni
.
$emit
(
'showStudyPopup'
,
{
name
:
'leaderboard'
,
type
:
'getLevelExamInfo'
})
uni
.
navigateBack
()
},
switchTab
(
index
)
{
...
...
pages/common/studyCenter/myCourse.vue
View file @
cec6377
...
...
@@ -74,8 +74,6 @@ export default {
},
methods
:
{
back
()
{
// 点击返回按钮,触发学习弹窗事件
uni
.
$emit
(
'showStudyPopup'
,
{
name
:
'myCourse'
,
type
:
'getLevelExamInfo'
})
uni
.
navigateBack
()
},
switchTab
(
index
)
{
...
...
@@ -125,6 +123,7 @@ export default {
position
:
relative
;
z-index
:
10
;
background
:
transparent
;
height
:
toRpx
(
140
);
.nav-bar
{
display
:
flex
;
...
...
@@ -157,7 +156,7 @@ export default {
display
:
flex
;
align-items
:
center
;
padding
:
0
toRpx
(
64
);
margin-top
:
toRpx
(
52
);
//
margin-top
:
toRpx
(
52
);
.tab-item
{
width
:
toRpx
(
208
);
height
:
toRpx
(
72
);
...
...
pages/common/studyCenter/myExam.vue
View file @
cec6377
...
...
@@ -51,7 +51,7 @@ export default {
},
created
()
{
// 在组件创建时就开始监听,确保事件能被捕获
uni
.
$on
(
'
show
StudyPopup'
,
()
=>
{
uni
.
$on
(
'
after
StudyPopup'
,
()
=>
{
console
.
log
(
'接收到考试提交弹窗事件'
)
if
(
this
.
currentTab
===
1
)
{
this
.
$refs
.
failedExam
.
showExamPopup
=
true
...
...
@@ -62,15 +62,13 @@ export default {
},
beforeDestroy
()
{
// 组件销毁前移除监听
uni
.
$off
(
'
show
StudyPopup'
)
uni
.
$off
(
'
after
StudyPopup'
)
},
mounted
()
{
this
.
getExamStatistics
()
},
methods
:
{
back
()
{
// 点击返回按钮,触发学习弹窗事件
uni
.
$emit
(
'showStudyPopup'
,
{
name
:
'myExam'
,
type
:
'getLevelExamInfo'
})
uni
.
navigateBack
()
},
switchTab
(
index
)
{
...
...
@@ -97,7 +95,7 @@ export default {
background-image
:
url('@/assets/images/common/page-bg.webp')
;
background-size
:
100%
;
box-sizing
:
border-box
;
padding-top
:
toRpx
(
1
12
);
padding-top
:
toRpx
(
1
56
);
}
.nav-bar
{
...
...
@@ -132,7 +130,7 @@ export default {
.tab-container
{
display
:
flex
;
align-items
:
center
;
margin-top
:
toRpx
(
44
);
//
margin-top
:
toRpx
(
44
);
margin-bottom
:
toRpx
(
28
);
padding
:
0
toRpx
(
64
);
.tab-item
{
...
...
pages/common/studyCenter/myTask.vue
View file @
cec6377
...
...
@@ -123,8 +123,6 @@
},
methods
:
{
back
()
{
// 点击返回按钮,触发学习弹窗事件
uni
.
$emit
(
'showStudyPopup'
,
{
name
:
'myTask'
,
type
:
'getLevelExamInfo'
})
uni
.
navigateBack
()
},
goToMyTask
()
{
...
...
pages/common/studyWebview.vue
View file @
cec6377
...
...
@@ -37,6 +37,7 @@ export default {
return
{
webviewUrl
:
''
,
pageTitle
:
'学习测评'
,
type
:
null
,
wv
:
null
,
hotArea
:
null
,
// 存储热区对象
showLoading
:
true
// 控制 loading 显示
...
...
@@ -50,6 +51,9 @@ export default {
// 和 detail.vue 一样,直接使用 URL,不需要 decode
this
.
webviewUrl
=
options
.
url
}
if
(
options
.
type
)
{
this
.
type
=
options
.
type
}
console
.
log
(
'📱 学习中心 webview 接收到的 URL (直接使用):'
,
this
.
webviewUrl
)
// 提取并解码 return_url 部分以便查看
...
...
@@ -91,13 +95,6 @@ export default {
this
.
hotArea
=
null
}
},
onBackPress
(
options
)
{
if
(
options
.
from
===
'backbutton'
)
{
this
.
back
()
return
true
}
return
false
},
onBackPress
(
options
)
{
if
(
options
.
from
===
'backbutton'
)
{
// 阻止默认返回
...
...
@@ -160,16 +157,24 @@ export default {
},
back
()
{
console
.
log
(
'触发返回,发送事件'
)
const
{
type
}
=
this
console
.
log
(
type
,
'type'
)
// 先返回上一页
uni
.
navigateBack
({
success
:
()
=>
{
console
.
log
(
'返回成功,触发弹窗事件'
)
uni
.
$logger
.
local
.
info
(
'返回成功,触发弹窗事件'
,
type
)
// 延迟触发事件,确保页面已经返回
setTimeout
(()
=>
{
if
(
type
==
0
)
{
uni
.
$emit
(
'levelStudyPopup'
)
}
else
if
(
type
==
1
)
{
uni
.
$emit
(
'afterStudyPopup'
)
}
// uni.$emit('showExamSubmitPopup')
uni
.
$emit
(
'showStudyPopup'
,
{
type
:
'examSubmit'
})
//
uni.$emit('showStudyPopup', {
//
type: 'examSubmit'
//
})
},
100
)
}
})
...
...
pages/equity/tool/components/OrderCard.vue
View file @
cec6377
...
...
@@ -543,7 +543,8 @@ export default {
if
(
that
.
orderCardDetail
.
payId
)
{
// 校验订单是否可撤销(在退款流程中无法撤销)
let
refundStep
=
await
uni
.
$api
.
equityApi
.
getOrderRefundStep
({
orderCode
:
that
.
orderCardDetail
.
payId
})
if
(
refundStep
?.
data
==
'Y'
)
return
_this
.
showRefundAlert
()
console
.
log
(
refundStep
,
'refundStep'
)
if
(
refundStep
==
'Y'
)
return
that
.
showRefundAlert
()
that
.
repeal
(
that
.
orderCardDetail
.
id
)
}
else
{
that
.
repeal
(
that
.
orderCardDetail
.
id
)
...
...
@@ -583,9 +584,13 @@ export default {
},
showRefundAlert
(
type
)
{
const
text
=
type
==
'error'
?
'订单已发起退款,禁止标记为错误工单!如需标记错误请联系总部运营。'
:
'订单已发起退款,禁止撤销!如需撤销请联系总部运营。'
console
.
log
(
text
,
'text'
)
let
title
=
'提示'
,
btnText
=
'好的'
,
callbackFun
=
()
=>
{}
callbackFun
=
()
=>
{
this
.
$refs
.
notice
.
close
()
this
.
$refs
.
reportNotice
.
close
()
}
this
.
noticeObj
=
{
title
,
text
:
text
,
...
...
@@ -598,6 +603,7 @@ export default {
}
]
}
console
.
log
(
this
.
$refs
.
reportNotice
)
this
.
$nextTick
(()
=>
this
.
$refs
.
reportNotice
.
open
())
// uni.showModal({
// title: '提示',
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment