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 679c377c
authored
Dec 16, 2025
by
cen
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
13ab8045
4a23aed4
Show whitespace changes
Inline
Side-by-side
Showing
18 changed files
with
106 additions
and
143 deletions
components/Form/GlCell.vue
components/HomeFrame/components/LeftSide.vue
components/HomeFrame/components/Study/FailedExam.vue
components/HomeFrame/components/Study/PassedExam.vue
components/HomeFrame/index.vue
components/OrderPopup/components/CarBrand.vue
components/OrderPopup/config.js
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/CreateEquity.vue
pages/equity/tool/components/EquityForm/EquityGoods.vue
pages/equity/tool/components/EquityForm/EquityTire.vue
components/Form/GlCell.vue
View file @
679c377
...
@@ -73,7 +73,7 @@
...
@@ -73,7 +73,7 @@
:maxlength=
"item.maxlength ? item.maxlength : -1"
:maxlength=
"item.maxlength ? item.maxlength : -1"
placeholder-class=
"input-placeholder"
placeholder-class=
"input-placeholder"
@
input=
"item.inputType === 'number' && item.maxlength ? (formData[item.value] = String($event.target.value).slice(0, item.maxlength)) : null"
@
input=
"item.inputType === 'number' && item.maxlength ? (formData[item.value] = String($event.target.value).slice(0, item.maxlength)) : null"
:
readonly=
"item.readonly
|| false"
:
disabled=
"item.readonly || item.disabled
|| false"
/>
/>
<view
<view
v-if=
"item.valueIcon"
v-if=
"item.valueIcon"
...
...
components/HomeFrame/components/LeftSide.vue
View file @
679c377
...
@@ -379,15 +379,11 @@ export default {
...
@@ -379,15 +379,11 @@ export default {
}
}
},
},
openPop
()
{
openPop
()
{
// this.messageType = 'system'
// this.$refs.kfRef.open()
uni
.
navigateTo
({
uni
.
navigateTo
({
url
:
`/pages/common/messageList`
url
:
`/pages/common/messageList`
})
})
},
},
getMessageInfo
()
{
getMessageInfo
()
{
// this.getMessage()
// this.getMessageCount()
this
.
getMessagePop
()
this
.
getMessagePop
()
},
},
jumpPersonCenter
()
{
jumpPersonCenter
()
{
...
@@ -441,13 +437,6 @@ export default {
...
@@ -441,13 +437,6 @@ export default {
this
.
tabs
[
2
].
hidden
=
true
this
.
tabs
[
2
].
hidden
=
true
this
.
tabs
[
3
].
hidden
=
true
this
.
tabs
[
3
].
hidden
=
true
return
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 {
...
@@ -456,6 +445,8 @@ export default {
// this.trackInterval = null
// this.trackInterval = null
},
},
beforeDestroy
()
{
beforeDestroy
()
{
// uni.$off('pageBack')
// uni.$off('studyCenter')
uni
.
$off
(
'ActivityCenter'
,
this
.
handleActivityCenter
);
uni
.
$off
(
'ActivityCenter'
,
this
.
handleActivityCenter
);
// clearInterval(this.trackInterval)
// clearInterval(this.trackInterval)
// this.trackInterval = null
// this.trackInterval = null
...
...
components/HomeFrame/components/Study/FailedExam.vue
View file @
679c377
...
@@ -21,9 +21,9 @@
...
@@ -21,9 +21,9 @@
<!-- 考试次数 -->
<!-- 考试次数 -->
<view
class=
"exam-times"
>
<view
class=
"exam-times"
>
<text
class=
"times-value"
>
剩余考试次数
</text>
<text
class=
"times-value"
>
剩余考试次数
</text>
<template
v-if=
"!item.examTimes"
>
不限
次数
</
template
>
<template
v-if=
"!item.examTimes"
>
不限
制
</
template
>
<
template
v-else
>
<
template
v-else
>
<text>
{{
filterValue
(
item
.
remainingTimes
)
}}
/
{{
filterValue
(
item
.
examTimes
)
}}
次
</text>
<text>
{{
filterValue
(
item
.
remainingTimes
)
}}
/
{{
filterValue
(
item
.
examTimes
)
}}
</text>
</
template
>
</
template
>
</view>
</view>
...
@@ -164,7 +164,7 @@ export default {
...
@@ -164,7 +164,7 @@ export default {
// 跳转北森考试详情页
// 跳转北森考试详情页
async
viewExam
(
item
)
{
async
viewExam
(
item
)
{
console
.
log
(
'查看考试'
,
item
)
console
.
log
(
'查看考试'
,
item
)
if
(
item
.
remainingTimes
<=
0
)
return
if
(
item
.
examTimes
&&
item
.
remainingTimes
<=
0
)
return
// TODO: 跳转到考试详情页
// TODO: 跳转到考试详情页
this
.
showStudyPopup
=
false
this
.
showStudyPopup
=
false
this
.
currentExam
=
item
this
.
currentExam
=
item
...
@@ -193,7 +193,7 @@ export default {
...
@@ -193,7 +193,7 @@ export default {
const
url
=
encodeURIComponent
(
`
${
baseUrl
}
?
${
queryString
}
#/viewDynamic?1=1`
);
const
url
=
encodeURIComponent
(
`
${
baseUrl
}
?
${
queryString
}
#/viewDynamic?1=1`
);
this
.
jumpUrl
=
`
${
tokenUrl
}
&return_url=
${
url
}
`
;
this
.
jumpUrl
=
`
${
tokenUrl
}
&return_url=
${
url
}
`
;
uni
.
navigateTo
({
uni
.
navigateTo
({
url
:
`/pages/common/studyWebview?url=
${
encodeURIComponent
(
this
.
jumpUrl
)}
&pageTitle=学习测评`
url
:
`/pages/common/studyWebview?url=
${
encodeURIComponent
(
this
.
jumpUrl
)}
&pageTitle=学习测评
&type=1
`
})
})
}
else
{
}
else
{
throw
new
Error
(
'获取 token 失败'
)
throw
new
Error
(
'获取 token 失败'
)
...
...
components/HomeFrame/components/Study/PassedExam.vue
View file @
679c377
...
@@ -22,7 +22,7 @@
...
@@ -22,7 +22,7 @@
<text
class=
"times-value"
>
剩余考试次数
</text>
<text
class=
"times-value"
>
剩余考试次数
</text>
<template
v-if=
"!item.examTimes"
>
不限制
</
template
>
<template
v-if=
"!item.examTimes"
>
不限制
</
template
>
<
template
v-else
>
<
template
v-else
>
<text>
{{
filterValue
(
item
.
remainingTimes
)
}}
/
{{
filterValue
(
item
.
examTimes
)
}}
次
</text>
<text>
{{
filterValue
(
item
.
remainingTimes
)
}}
/
{{
filterValue
(
item
.
examTimes
)
}}
</text>
</
template
>
</
template
>
</view>
</view>
...
@@ -166,7 +166,7 @@ export default {
...
@@ -166,7 +166,7 @@ export default {
// 跳转北森考试详情页
// 跳转北森考试详情页
async
viewExam
(
item
)
{
async
viewExam
(
item
)
{
console
.
log
(
'查看考试'
,
item
)
console
.
log
(
'查看考试'
,
item
)
if
(
item
.
remainingTimes
<=
0
)
return
if
(
item
.
examTimes
&&
item
.
remainingTimes
<=
0
)
return
// TODO: 跳转到考试详情页
// TODO: 跳转到考试详情页
this
.
showStudyPopup
=
false
this
.
showStudyPopup
=
false
this
.
currentExam
=
item
this
.
currentExam
=
item
...
@@ -195,7 +195,7 @@ export default {
...
@@ -195,7 +195,7 @@ export default {
const
url
=
encodeURIComponent
(
`
${
baseUrl
}
?
${
queryString
}
#/viewDynamic?1=1`
);
const
url
=
encodeURIComponent
(
`
${
baseUrl
}
?
${
queryString
}
#/viewDynamic?1=1`
);
this
.
jumpUrl
=
`
${
tokenUrl
}
&return_url=
${
url
}
`
;
this
.
jumpUrl
=
`
${
tokenUrl
}
&return_url=
${
url
}
`
;
uni
.
navigateTo
({
uni
.
navigateTo
({
url
:
`/pages/common/studyWebview?url=
${
encodeURIComponent
(
this
.
jumpUrl
)}
&pageTitle=学习测评`
url
:
`/pages/common/studyWebview?url=
${
encodeURIComponent
(
this
.
jumpUrl
)}
&pageTitle=学习测评
&type=1
`
})
})
}
else
{
}
else
{
throw
new
Error
(
'获取 token 失败'
)
throw
new
Error
(
'获取 token 失败'
)
...
...
components/HomeFrame/index.vue
View file @
679c377
...
@@ -188,31 +188,18 @@ export default {
...
@@ -188,31 +188,18 @@ export default {
lockReason
:
0
lockReason
:
0
}
}
},
},
created
()
{
// 在组件创建时就开始监听,确保事件能被捕获
// uni.$on('showExamSubmitPopup', () => {
// console.log('接收到考试提交弹窗事件')
// this.showExamPopup = true
// })
uni
.
$on
(
'showStudyPopup'
,
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
()
}
}
})
},
beforeDestroy
()
{
beforeDestroy
()
{
// 组件销毁前移除监听
// 组件销毁前移除监听
uni
.
$off
(
'showStudyPopup'
)
uni
.
$logger
.
local
.
info
(
'levelStudyPopup 移除监听'
)
uni
.
$off
(
'levelStudyPopup'
)
// uni.$off('showStudyPopup')
// uni.$off('showStudyPopup')
},
},
mounted
()
{
mounted
()
{
uni
.
$logger
.
local
.
info
(
'levelStudyPopup 开始监听mounted'
)
uni
.
$on
(
'levelStudyPopup'
,
obj
=>
{
uni
.
$logger
.
local
.
info
(
'接收到学习弹窗事件'
,
obj
)
this
.
showExamPopup
=
true
})
const
userInfo
=
uni
.
$storage
.
get
(
'userInfo'
)
||
{}
const
userInfo
=
uni
.
$storage
.
get
(
'userInfo'
)
||
{}
this
.
userInfo
=
userInfo
this
.
userInfo
=
userInfo
if
(
this
.
checkRecordAudio
)
permision
.
requestAndroidPermission
(
'android.permission.RECORD_AUDIO'
)
// 进入界面时检查权限
if
(
this
.
checkRecordAudio
)
permision
.
requestAndroidPermission
(
'android.permission.RECORD_AUDIO'
)
// 进入界面时检查权限
...
@@ -267,7 +254,7 @@ export default {
...
@@ -267,7 +254,7 @@ export default {
const
url
=
encodeURIComponent
(
`
${
baseUrl
}
?
${
queryString
}
#/viewDynamic?1=1`
)
const
url
=
encodeURIComponent
(
`
${
baseUrl
}
?
${
queryString
}
#/viewDynamic?1=1`
)
this
.
jumpUrl
=
`
${
tokenUrl
}
&return_url=
${
url
}
`
this
.
jumpUrl
=
`
${
tokenUrl
}
&return_url=
${
url
}
`
uni
.
navigateTo
({
uni
.
navigateTo
({
url
:
`/pages/common/studyWebview?url=
${
encodeURIComponent
(
this
.
jumpUrl
)}
&pageTitle=学习测评`
url
:
`/pages/common/studyWebview?url=
${
encodeURIComponent
(
this
.
jumpUrl
)}
&pageTitle=学习测评
&type=0
`
})
})
}
else
{
}
else
{
uni
.
showToast
({
uni
.
showToast
({
...
...
components/OrderPopup/components/CarBrand.vue
View file @
679c377
<
template
>
<
template
>
<view
<view
class=
"car-model-box"
>
class=
"car-model-box"
<!-- :key="viewKey" -->
:key=
"viewKey"
>
<scroll-view
<scroll-view
class=
"scroll-view"
class=
"scroll-view"
scroll-y
scroll-y
...
@@ -26,7 +24,7 @@
...
@@ -26,7 +24,7 @@
<template
v-for=
"(j, jindex) in c.childs_list"
>
<template
v-for=
"(j, jindex) in c.childs_list"
>
<view
<view
:key=
"jindex"
:key=
"jindex"
:class=
"['sub-brand-name'
]"
:class=
"['sub-brand-name'
,
{'hide-border':j.children
&&
j.children.length
&&
j.open}]"
>
>
<view
<view
class=
"subtitle subtitle-one flex"
class=
"subtitle subtitle-one flex"
...
@@ -34,24 +32,25 @@
...
@@ -34,24 +32,25 @@
>
>
{{
j
.
name
}}
{{
j
.
name
}}
<uni-icons
<uni-icons
:type=
"`$
{j.children
&&
j.children.length
?'down':'right'}`"
:type=
"`$
{j.children
&&
j.children.length
&&
j.open ?'down':'right'}`"
size="18"
size="18"
>
</uni-icons>
>
</uni-icons>
</view>
</view>
</view>
</view>
<template
v-for=
"(k,kindex) in j.children"
>
<template
v-for=
"(k,kindex) in j.children"
>
<view
<view
class=
"sub-item flex"
:class=
"['sub-item flex',
{'last':kindex == j.children.length-1}, {hide:!j.open}]"
:key="`${k.id}_${kindex}`"
:key="`${k.id}_${kindex}`"
>
>
<view
<view
class=
"subtitle subtitle-two flex"
:class=
"['subtitle subtitle-two flex']"
@
click
.
stop=
"chooseSeries(k,jindex, cindex, index ,kindex)"
@
click
.
stop=
"chooseSeries(k,jindex, cindex, index ,kindex)"
>
>
{{
k
.
name
}}
{{
k
.
name
}}
<uni-icons
<uni-icons
:type=
"`$
{k.children
&&
k.children.length
?'down':'right'}`"
:type=
"`$
{k.children
&&
k.children.length
&&
k.open ?'down':'right'}`"
size="18"
size="18"
>
</uni-icons>
>
</uni-icons>
</view>
</view>
...
@@ -60,6 +59,7 @@
...
@@ -60,6 +59,7 @@
:class=
"['item flex',
{active: checkActive(s)}]"
:class=
"['item flex',
{active: checkActive(s)}]"
:key="`${s.id}_${sindex}`"
:key="`${s.id}_${sindex}`"
@click.stop="chooseCarType(s,c)"
@click.stop="chooseCarType(s,c)"
v-if="k.open"
>
>
{{
s
.
name
}}
{{
s
.
name
}}
<view
class=
"sprite-icon icon-tag-checked"
></view>
<view
class=
"sprite-icon icon-tag-checked"
></view>
...
@@ -102,7 +102,6 @@ export default {
...
@@ -102,7 +102,6 @@ export default {
data
()
{
data
()
{
return
{
return
{
letter
:
'A'
,
letter
:
'A'
,
viewKey
:
Date
.
now
()
}
}
},
},
mounted
()
{
mounted
()
{
...
@@ -184,7 +183,10 @@ export default {
...
@@ -184,7 +183,10 @@ export default {
}
}
},
},
async
chooseSubBrand
(
that
,
item
,
jindex
,
cindex
,
index
)
{
async
chooseSubBrand
(
that
,
item
,
jindex
,
cindex
,
index
)
{
if
(
that
.
children
&&
that
.
children
.
length
)
return
if
(
that
.
children
&&
that
.
children
.
length
)
{
this
.
$set
(
this
.
listData
[
index
].
list
[
cindex
].
childs_list
[
jindex
],
'open'
,
!
that
.
open
)
return
}
uni
.
showLoading
({
uni
.
showLoading
({
mask
:
true
mask
:
true
})
})
...
@@ -192,21 +194,34 @@ export default {
...
@@ -192,21 +194,34 @@ export default {
brandId
:
item
.
id
,
brandId
:
item
.
id
,
childBrandId
:
that
.
id
childBrandId
:
that
.
id
})
})
// this.listData[index].list[cindex].childs_list[jindex].children = data
this
.
$set
(
this
.
listData
[
index
].
list
[
cindex
].
childs_list
[
jindex
],
'children'
,
data
)
this
.
$set
(
this
.
listData
[
index
].
list
[
cindex
].
childs_list
[
jindex
],
'open'
,
true
)
setTimeout
(()
=>
{
uni
.
hideLoading
()
uni
.
hideLoading
()
this
.
listData
[
index
].
list
[
cindex
].
childs_list
[
jindex
].
children
=
data
},
200
)
this
.
viewKey
=
Date
.
now
()
// this.viewKey = Date.now()
},
},
async
chooseSeries
(
k
,
jindex
,
cindex
,
index
,
kindex
)
{
async
chooseSeries
(
k
,
jindex
,
cindex
,
index
,
kindex
)
{
if
(
k
.
children
&&
k
.
children
.
length
)
return
if
(
k
.
children
&&
k
.
children
.
length
)
{
this
.
$set
(
this
.
listData
[
index
].
list
[
cindex
].
childs_list
[
jindex
].
children
[
kindex
],
'open'
,
!
k
.
open
)
return
}
uni
.
showLoading
({
uni
.
showLoading
({
mask
:
true
mask
:
true
})
})
const
data
=
await
uni
.
$api
.
popupApi
.
getCarTypeList
({
const
data
=
await
uni
.
$api
.
popupApi
.
getCarTypeList
({
carSeriesId
:
k
.
id
carSeriesId
:
k
.
id
})
})
// this.listData[index].list[cindex].childs_list[jindex].children[kindex].children = data
this
.
$set
(
this
.
listData
[
index
].
list
[
cindex
].
childs_list
[
jindex
].
children
[
kindex
],
'children'
,
data
)
this
.
$set
(
this
.
listData
[
index
].
list
[
cindex
].
childs_list
[
jindex
].
children
[
kindex
],
'open'
,
true
)
setTimeout
(()
=>
{
uni
.
hideLoading
()
uni
.
hideLoading
()
this
.
listData
[
index
].
list
[
cindex
].
childs_list
[
jindex
].
children
[
kindex
].
children
=
data
},
200
)
this
.
viewKey
=
Date
.
now
()
// this.viewKey = Date.now()
},
},
chooseCarType
(
s
,
c
)
{
chooseCarType
(
s
,
c
)
{
...
@@ -264,17 +279,20 @@ export default {
...
@@ -264,17 +279,20 @@ export default {
margin
:
0
toRpx
(
48
);
margin
:
0
toRpx
(
48
);
.brand-name
{
.brand-name
{
color
:
#333333
;
color
:
#333333
;
font-size
:
toRpx
(
32
);
font-size
:
toRpx
(
44
);
line-height
:
toRpx
(
44
);
line-height
:
toRpx
(
54
);
margin
:
toRpx
(
16
)
0
;
margin
:
toRpx
(
24
)
0
;
}
}
.sub-brand-name
{
.sub-brand-name
{
color
:
#888888
;
color
:
#888888
;
font-size
:
toRpx
(
28
);
font-size
:
toRpx
(
34
);
line-height
:
toRpx
(
4
0
);
line-height
:
toRpx
(
4
4
);
width
:
100%
;
width
:
100%
;
flex-shrink
:
0
;
flex-shrink
:
0
;
border-bottom
:
toRpx
(
2
)
solid
#888
;
border-bottom
:
toRpx
(
2
)
solid
#eee
;
}
.hide-border
{
border-bottom
:
none
;
}
}
}
}
}
}
...
@@ -290,24 +308,34 @@ export default {
...
@@ -290,24 +308,34 @@ export default {
flex-shrink
:
0
;
flex-shrink
:
0
;
}
}
.subtitle-one
{
.subtitle-one
{
margin
:
toRpx
(
10
)
0
;
margin
:
toRpx
(
30
)
0
;
}
}
.subtitle-two
{
.subtitle-two
{
color
:
#000
;
color
:
#000
;
font-size
:
toRpx
(
3
6
);
font-size
:
toRpx
(
3
2
);
font-weight
:
500
;
font-weight
:
500
;
}
}
.last
{
border-bottom
:
toRpx
(
2
)
solid
#dce0e6
;
padding-bottom
:
toRpx
(
40
);
}
.hide
{
visibility
:
hidden
;
height
:
0
;
padding-bottom
:
0
;
}
.sub-item
{
.sub-item
{
width
:
100%
;
width
:
100%
;
box-sizing
:
border-box
;
box-sizing
:
border-box
;
position
:
relative
;
position
:
relative
;
color
:
#333333
;
color
:
#333333
;
font-size
:
toRpx
(
32
);
font-size
:
toRpx
(
28
);
display
:
flex
;
display
:
flex
;
flex-wrap
:
wrap
;
flex-wrap
:
wrap
;
gap
:
toRpx
(
32
);
gap
:
toRpx
(
32
);
margin-top
:
toRpx
(
20
);
line-height
:
toRpx
(
60
);
align-items
:
stretch
;
align-items
:
stretch
;
box-sizing
:
border-box
;
}
}
.item
{
.item
{
width
:
calc
((
100%
-
#{
toRpx
(
96
)}
)
/
4
);
width
:
calc
((
100%
-
#{
toRpx
(
96
)}
)
/
4
);
...
@@ -318,8 +346,9 @@ export default {
...
@@ -318,8 +346,9 @@ export default {
box-sizing
:
border-box
;
box-sizing
:
border-box
;
position
:
relative
;
position
:
relative
;
color
:
#333333
;
color
:
#333333
;
font-size
:
toRpx
(
32
);
font-size
:
toRpx
(
28
);
padding
:
toRpx
(
10
);
padding
:
toRpx
(
10
);
line-height
:
toRpx
(
40
);
.sprite-icon
{
.sprite-icon
{
display
:
none
;
display
:
none
;
position
:
absolute
;
position
:
absolute
;
...
...
components/OrderPopup/config.js
View file @
679c377
pages/common/serviceDetail/components/ServiceList.vue
View file @
679c377
...
@@ -79,43 +79,7 @@ export default {
...
@@ -79,43 +79,7 @@ export default {
moduleIconEnum
,
moduleIconEnum
,
moduleContentEnum
,
moduleContentEnum
,
topList
:
[],
topList
:
[],
msgList
:
[
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'
}
]
}
}
},
},
watch
:
{
watch
:
{
...
@@ -138,10 +102,6 @@ export default {
...
@@ -138,10 +102,6 @@ export default {
// 过滤出topList中包含moduleType的对象
// 过滤出topList中包含moduleType的对象
const
result
=
this
.
msgList
.
filter
(
item
=>
this
.
topList
.
includes
(
item
.
moduleType
));
const
result
=
this
.
msgList
.
filter
(
item
=>
this
.
topList
.
includes
(
item
.
moduleType
));
return
result
return
result
// // 按topList中的倒序排列
// return this.topList.slice().reverse().map(type =>
// this.msgList.find(item => item.moduleType === type)
// ).filter(Boolean);
},
},
getList
()
{
getList
()
{
// 过滤掉topList中包含moduleType的对象
// 过滤掉topList中包含moduleType的对象
...
@@ -183,9 +143,6 @@ export default {
...
@@ -183,9 +143,6 @@ export default {
},
},
handleClick
(
item
)
{
handleClick
(
item
)
{
this
.
$emit
(
'handleClick'
,
item
)
this
.
$emit
(
'handleClick'
,
item
)
// uni.navigateTo({
// url: `/pages/common/serviceDetail/index?moduleType=${moduleType}`
// })
}
}
}
}
}
}
...
...
pages/common/studyCenter/components/CompletedCourse.vue
View file @
679c377
...
@@ -60,7 +60,7 @@ export default {
...
@@ -60,7 +60,7 @@ export default {
nothing
:
false
,
nothing
:
false
,
total
:
0
,
total
:
0
,
pageNum
:
1
,
pageNum
:
1
,
pageSize
:
1
2
,
pageSize
:
1
6
,
scrollTop
:
0
,
scrollTop
:
0
,
COURSE_TYPE
COURSE_TYPE
}
}
...
@@ -137,11 +137,13 @@ export default {
...
@@ -137,11 +137,13 @@ export default {
</
script
>
</
script
>
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
.completed-course
{
.completed-course
{
height
:
calc
(
100%
-
#{
toRpx
(
100
)}
);
//
height
:
calc
(
100%
-
#{
toRpx
(
100
)}
);
height
:
100
%;
.scroll-view
{
.scroll-view
{
margin-top
:
toRpx
(
40
);
margin-top
:
toRpx
(
40
);
height
:
calc
(
100%
-
#{
toRpx
(
70
)}
);
//
height
:
calc
(
100%
-
#{
toRpx
(
50
)}
);
height
:
100
%;
.completed-course-list
{
.completed-course-list
{
display
:
grid
;
display
:
grid
;
...
...
pages/common/studyCenter/courseDetail.vue
View file @
679c377
...
@@ -105,8 +105,6 @@ export default {
...
@@ -105,8 +105,6 @@ export default {
if
(
currentWebview
){
if
(
currentWebview
){
currentWebview
.
close
()
currentWebview
.
close
()
}
}
// 点击返回按钮,触发学习弹窗事件
uni
.
$emit
(
'showStudyPopup'
,
{
name
:
'courseDetail'
,
type
:
'getLevelExamInfo'
}
)
uni
.
navigateBack
()
uni
.
navigateBack
()
}
,
}
,
async
openCourse
(
index
,
item
)
{
async
openCourse
(
index
,
item
)
{
...
...
pages/common/studyCenter/leaderboard.vue
View file @
679c377
...
@@ -95,8 +95,6 @@ export default {
...
@@ -95,8 +95,6 @@ export default {
},
},
methods
:
{
methods
:
{
back
()
{
back
()
{
// 点击返回按钮,触发学习弹窗事件
uni
.
$emit
(
'showStudyPopup'
,
{
name
:
'leaderboard'
,
type
:
'getLevelExamInfo'
})
uni
.
navigateBack
()
uni
.
navigateBack
()
},
},
switchTab
(
index
)
{
switchTab
(
index
)
{
...
...
pages/common/studyCenter/myCourse.vue
View file @
679c377
...
@@ -74,8 +74,6 @@ export default {
...
@@ -74,8 +74,6 @@ export default {
},
},
methods
:
{
methods
:
{
back
()
{
back
()
{
// 点击返回按钮,触发学习弹窗事件
uni
.
$emit
(
'showStudyPopup'
,
{
name
:
'myCourse'
,
type
:
'getLevelExamInfo'
})
uni
.
navigateBack
()
uni
.
navigateBack
()
},
},
switchTab
(
index
)
{
switchTab
(
index
)
{
...
@@ -125,6 +123,7 @@ export default {
...
@@ -125,6 +123,7 @@ export default {
position
:
relative
;
position
:
relative
;
z-index
:
10
;
z-index
:
10
;
background
:
transparent
;
background
:
transparent
;
height
:
toRpx
(
140
);
.nav-bar
{
.nav-bar
{
display
:
flex
;
display
:
flex
;
...
@@ -157,7 +156,7 @@ export default {
...
@@ -157,7 +156,7 @@ export default {
display
:
flex
;
display
:
flex
;
align-items
:
center
;
align-items
:
center
;
padding
:
0
toRpx
(
64
);
padding
:
0
toRpx
(
64
);
margin-top
:
toRpx
(
52
);
//
margin-top
:
toRpx
(
52
);
.tab-item
{
.tab-item
{
width
:
toRpx
(
208
);
width
:
toRpx
(
208
);
height
:
toRpx
(
72
);
height
:
toRpx
(
72
);
...
...
pages/common/studyCenter/myExam.vue
View file @
679c377
...
@@ -51,7 +51,7 @@ export default {
...
@@ -51,7 +51,7 @@ export default {
},
},
created
()
{
created
()
{
// 在组件创建时就开始监听,确保事件能被捕获
// 在组件创建时就开始监听,确保事件能被捕获
uni
.
$on
(
'
show
StudyPopup'
,
()
=>
{
uni
.
$on
(
'
after
StudyPopup'
,
()
=>
{
console
.
log
(
'接收到考试提交弹窗事件'
)
console
.
log
(
'接收到考试提交弹窗事件'
)
if
(
this
.
currentTab
===
1
)
{
if
(
this
.
currentTab
===
1
)
{
this
.
$refs
.
failedExam
.
showExamPopup
=
true
this
.
$refs
.
failedExam
.
showExamPopup
=
true
...
@@ -62,15 +62,13 @@ export default {
...
@@ -62,15 +62,13 @@ export default {
},
},
beforeDestroy
()
{
beforeDestroy
()
{
// 组件销毁前移除监听
// 组件销毁前移除监听
uni
.
$off
(
'
show
StudyPopup'
)
uni
.
$off
(
'
after
StudyPopup'
)
},
},
mounted
()
{
mounted
()
{
this
.
getExamStatistics
()
this
.
getExamStatistics
()
},
},
methods
:
{
methods
:
{
back
()
{
back
()
{
// 点击返回按钮,触发学习弹窗事件
uni
.
$emit
(
'showStudyPopup'
,
{
name
:
'myExam'
,
type
:
'getLevelExamInfo'
})
uni
.
navigateBack
()
uni
.
navigateBack
()
},
},
switchTab
(
index
)
{
switchTab
(
index
)
{
...
@@ -97,7 +95,7 @@ export default {
...
@@ -97,7 +95,7 @@ export default {
background-image
:
url('@/assets/images/common/page-bg.webp')
;
background-image
:
url('@/assets/images/common/page-bg.webp')
;
background-size
:
100%
;
background-size
:
100%
;
box-sizing
:
border-box
;
box-sizing
:
border-box
;
padding-top
:
toRpx
(
1
12
);
padding-top
:
toRpx
(
1
56
);
}
}
.nav-bar
{
.nav-bar
{
...
@@ -132,7 +130,7 @@ export default {
...
@@ -132,7 +130,7 @@ export default {
.tab-container
{
.tab-container
{
display
:
flex
;
display
:
flex
;
align-items
:
center
;
align-items
:
center
;
margin-top
:
toRpx
(
44
);
//
margin-top
:
toRpx
(
44
);
margin-bottom
:
toRpx
(
28
);
margin-bottom
:
toRpx
(
28
);
padding
:
0
toRpx
(
64
);
padding
:
0
toRpx
(
64
);
.tab-item
{
.tab-item
{
...
...
pages/common/studyCenter/myTask.vue
View file @
679c377
...
@@ -123,8 +123,6 @@
...
@@ -123,8 +123,6 @@
},
},
methods
:
{
methods
:
{
back
()
{
back
()
{
// 点击返回按钮,触发学习弹窗事件
uni
.
$emit
(
'showStudyPopup'
,
{
name
:
'myTask'
,
type
:
'getLevelExamInfo'
})
uni
.
navigateBack
()
uni
.
navigateBack
()
},
},
goToMyTask
()
{
goToMyTask
()
{
...
...
pages/common/studyWebview.vue
View file @
679c377
...
@@ -37,6 +37,7 @@ export default {
...
@@ -37,6 +37,7 @@ export default {
return
{
return
{
webviewUrl
:
''
,
webviewUrl
:
''
,
pageTitle
:
'学习测评'
,
pageTitle
:
'学习测评'
,
type
:
null
,
wv
:
null
,
wv
:
null
,
hotArea
:
null
,
// 存储热区对象
hotArea
:
null
,
// 存储热区对象
showLoading
:
true
// 控制 loading 显示
showLoading
:
true
// 控制 loading 显示
...
@@ -50,6 +51,9 @@ export default {
...
@@ -50,6 +51,9 @@ export default {
// 和 detail.vue 一样,直接使用 URL,不需要 decode
// 和 detail.vue 一样,直接使用 URL,不需要 decode
this
.
webviewUrl
=
options
.
url
this
.
webviewUrl
=
options
.
url
}
}
if
(
options
.
type
)
{
this
.
type
=
options
.
type
}
console
.
log
(
'📱 学习中心 webview 接收到的 URL (直接使用):'
,
this
.
webviewUrl
)
console
.
log
(
'📱 学习中心 webview 接收到的 URL (直接使用):'
,
this
.
webviewUrl
)
// 提取并解码 return_url 部分以便查看
// 提取并解码 return_url 部分以便查看
...
@@ -91,13 +95,6 @@ export default {
...
@@ -91,13 +95,6 @@ export default {
this
.
hotArea
=
null
this
.
hotArea
=
null
}
}
},
},
onBackPress
(
options
)
{
if
(
options
.
from
===
'backbutton'
)
{
this
.
back
()
return
true
}
return
false
},
onBackPress
(
options
)
{
onBackPress
(
options
)
{
if
(
options
.
from
===
'backbutton'
)
{
if
(
options
.
from
===
'backbutton'
)
{
// 阻止默认返回
// 阻止默认返回
...
@@ -160,16 +157,24 @@ export default {
...
@@ -160,16 +157,24 @@ export default {
},
},
back
()
{
back
()
{
console
.
log
(
'触发返回,发送事件'
)
console
.
log
(
'触发返回,发送事件'
)
const
{
type
}
=
this
console
.
log
(
type
,
'type'
)
// 先返回上一页
// 先返回上一页
uni
.
navigateBack
({
uni
.
navigateBack
({
success
:
()
=>
{
success
:
()
=>
{
console
.
log
(
'返回成功,触发弹窗事件'
)
console
.
log
(
'返回成功,触发弹窗事件'
)
uni
.
$logger
.
local
.
info
(
'返回成功,触发弹窗事件'
,
type
)
// 延迟触发事件,确保页面已经返回
// 延迟触发事件,确保页面已经返回
setTimeout
(()
=>
{
setTimeout
(()
=>
{
if
(
type
==
0
)
{
uni
.
$emit
(
'levelStudyPopup'
)
}
else
if
(
type
==
1
)
{
uni
.
$emit
(
'afterStudyPopup'
)
}
// uni.$emit('showExamSubmitPopup')
// uni.$emit('showExamSubmitPopup')
uni
.
$emit
(
'showStudyPopup'
,
{
//
uni.$emit('showStudyPopup', {
type
:
'examSubmit'
//
type: 'examSubmit'
})
//
})
},
100
)
},
100
)
}
}
})
})
...
...
pages/equity/tool/components/CreateEquity.vue
View file @
679c377
...
@@ -518,13 +518,13 @@ export default {
...
@@ -518,13 +518,13 @@ export default {
let
[
nullCheck
,
validatorCheck
]
=
equityFormRule
[
key
]
let
[
nullCheck
,
validatorCheck
]
=
equityFormRule
[
key
]
if
(
nullCheck
.
required
)
{
if
(
nullCheck
.
required
)
{
if
(
!
params
[
key
])
throw
equityFormRule
[
key
][
0
].
message
if
(
!
params
[
key
])
throw
equityFormRule
[
key
][
0
].
message
}
else
{
else
{
if
(
validatorCheck
&&
validatorCheck
.
validator
)
{
if
(
validatorCheck
&&
validatorCheck
.
validator
)
{
const
res
=
validatorCheck
.
validator
(
''
,
params
[
key
])
const
res
=
validatorCheck
.
validator
(
''
,
params
[
key
])
if
(
res
&&
res
.
message
)
throw
res
.
message
if
(
res
&&
res
.
message
)
throw
res
.
message
}
}
}
}
}
})
})
params
.
goodInfoList
?.
map
(
item
=>
{
params
.
goodInfoList
?.
map
(
item
=>
{
if
(
item
.
printType
==
2
)
{
if
(
item
.
printType
==
2
)
{
...
...
pages/equity/tool/components/EquityForm/EquityGoods.vue
View file @
679c377
...
@@ -176,7 +176,7 @@ export default {
...
@@ -176,7 +176,7 @@ export default {
watch
:
{
watch
:
{
externalData
:
{
externalData
:
{
handler
(
val
)
{
handler
(
val
)
{
this
.
goodInfoList
=
val
.
goodInfoList
||
[]
if
(
!
this
.
goodInfoList
.
length
)
this
.
goodInfoList
=
val
.
goodInfoList
||
[]
},
},
deep
:
true
,
deep
:
true
,
immediate
:
true
immediate
:
true
...
@@ -191,7 +191,7 @@ export default {
...
@@ -191,7 +191,7 @@ export default {
extendServiceFormList
,
extendServiceFormList
,
oilProFormList
,
oilProFormList
,
cellBoxStyle
:
'background: #f5f7fa;'
,
cellBoxStyle
:
'background: #f5f7fa;'
,
goodInfoList
:[],
goodInfoList
:
[],
viewKey
:
Date
.
now
(),
viewKey
:
Date
.
now
(),
currentData
:
{},
currentData
:
{},
popupType
:
0
,
popupType
:
0
,
...
...
pages/equity/tool/components/EquityForm/EquityTire.vue
View file @
679c377
...
@@ -64,6 +64,7 @@ export default {
...
@@ -64,6 +64,7 @@ export default {
watch
:
{
watch
:
{
externalData
:
{
externalData
:
{
handler
(
val
)
{
handler
(
val
)
{
if
(
Object
.
keys
(
this
.
tireObj
).
length
)
return
const
keyList
=
[
const
keyList
=
[
'tireBrand'
,
'tireScale'
,
'tireBrand'
,
'tireScale'
,
'leftFrontDTO'
,
'leftFrontBatch'
,
'leftFrontDTO'
,
'leftFrontBatch'
,
...
...
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