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 b548f694
authored
Jul 21, 2025
by
胡悦
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
提交学习中心代码
1 parent
aa699573
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
64 additions
and
32 deletions
components/HomeFrame/components/SettingBox.vue
components/HomeFrame/components/StudyCenter.vue
pages/common/aiWebview.vue
pages/common/serviceDetail/index.vue
pages/common/studyDetail/longCourse.vue
pages/common/studyDetail/shortCourse.vue
utils/cache/constantData.js
components/HomeFrame/components/SettingBox.vue
View file @
b548f69
...
@@ -123,6 +123,7 @@ export default {
...
@@ -123,6 +123,7 @@ export default {
uni
.
$storage
.
rm
(
"sessionId"
);
uni
.
$storage
.
rm
(
"sessionId"
);
uni
.
$storage
.
rm
(
"noSignInUuid"
);
uni
.
$storage
.
rm
(
"noSignInUuid"
);
uni
.
$storage
.
rm
(
"beisenToken"
);
uni
.
$storage
.
rm
(
"beisenToken"
);
uni
.
$storage
.
rm
(
"studyCenterPermission"
);
setTimeout
(()
=>
{
setTimeout
(()
=>
{
uni
.
hideLoading
()
uni
.
hideLoading
()
uni
.
reLaunch
({
uni
.
reLaunch
({
...
...
components/HomeFrame/components/StudyCenter.vue
View file @
b548f69
...
@@ -86,6 +86,12 @@ export default {
...
@@ -86,6 +86,12 @@ export default {
const
studyCenterPermission
=
uni
.
$storage
.
get
(
'studyCenterPermission'
)
const
studyCenterPermission
=
uni
.
$storage
.
get
(
'studyCenterPermission'
)
console
.
log
(
beisenToken
,
'beisenToken'
)
console
.
log
(
beisenToken
,
'beisenToken'
)
this
.
isBeisen
=
!!
beisenToken
this
.
isBeisen
=
!!
beisenToken
if
(
!
beisenToken
)
{
// 没有北森权限则typeList没有推荐课程
this
.
typeList
=
[
{
tabName
:
'我的任务'
,
num
:
()
=>
''
}
]
}
this
.
isHmzx
=
studyCenterPermission
.
hmzxAuth
this
.
isHmzx
=
studyCenterPermission
.
hmzxAuth
this
.
isYb
=
studyCenterPermission
.
authorizedBusinessList
&&
studyCenterPermission
.
authorizedBusinessList
.
includes
(
1
)
this
.
isYb
=
studyCenterPermission
.
authorizedBusinessList
&&
studyCenterPermission
.
authorizedBusinessList
.
includes
(
1
)
// this.getServerData();
// this.getServerData();
...
...
pages/common/aiWebview.vue
View file @
b548f69
...
@@ -41,6 +41,12 @@ export default {
...
@@ -41,6 +41,12 @@ export default {
if
(
options
.
practice_status
)
{
if
(
options
.
practice_status
)
{
this
.
url
+=
`&practice_status=
${
options
.
practice_status
}
`
this
.
url
+=
`&practice_status=
${
options
.
practice_status
}
`
}
}
if
(
options
.
businessType
)
{
this
.
url
+=
`&businessType=
${
options
.
businessType
}
`
}
if
(
options
.
brandType
)
{
this
.
url
+=
`&brandType=
${
options
.
brandType
}
`
}
if
(
options
.
date
)
{
if
(
options
.
date
)
{
this
.
url
+=
`&date=
${
options
.
date
}
`
this
.
url
+=
`&date=
${
options
.
date
}
`
}
}
...
...
pages/common/serviceDetail/index.vue
View file @
b548f69
...
@@ -526,7 +526,7 @@ export default {
...
@@ -526,7 +526,7 @@ export default {
.service-list
{
.service-list
{
width
:
100%
;
width
:
100%
;
height
:
calc
(
100%
-
#{
toRpx
(
1
5
0
)}
);
height
:
calc
(
100%
-
#{
toRpx
(
1
2
0
)}
);
.service-item
{
.service-item
{
width
:
calc
(
100%
-
#{
toRpx
(
96
)}
);
width
:
calc
(
100%
-
#{
toRpx
(
96
)}
);
...
@@ -537,7 +537,7 @@ export default {
...
@@ -537,7 +537,7 @@ export default {
margin-right
:
toRpx
(
48
);
margin-right
:
toRpx
(
48
);
&
:not
(
:last-child
)
{
&
:not
(
:last-child
)
{
margin-bottom
:
toRpx
(
40
);
margin-bottom
:
toRpx
(
32
);
}
}
&
-title
{
&
-title
{
...
...
pages/common/studyDetail/longCourse.vue
View file @
b548f69
...
@@ -10,7 +10,7 @@
...
@@ -10,7 +10,7 @@
<view
class=
"course-detail-img-box"
>
<view
class=
"course-detail-img-box"
>
<image
class=
"course-detail-img"
src=
"../../../assets/images/common/course-default-bg.webp"
<image
class=
"course-detail-img"
src=
"../../../assets/images/common/course-default-bg.webp"
mode=
"scaleToFill"
/>
mode=
"scaleToFill"
/>
<view
class=
"time-limit-tag"
v-if=
"rowData.punishType == 1"
></view>
<view
class=
"time-limit-tag"
v-if=
"
completeStatus == 0 &&
rowData.punishType == 1"
></view>
</view>
</view>
<view
class=
"course-detail-content"
>
<view
class=
"course-detail-content"
>
<view
class=
"course-title"
>
{{
rowData
.
taskTitle
}}
</view>
<view
class=
"course-title"
>
{{
rowData
.
taskTitle
}}
</view>
...
@@ -30,25 +30,24 @@
...
@@ -30,25 +30,24 @@
<
view
class
=
"info-value"
>
{{
completeStatus
==
0
?
formatTime
(
rowData
.
taskDeadline
,
'YYYY-MM-DD HH:mm'
)
:
formatTime
(
rowData
.
finishDate
,
'YYYY-MM-DD HH:mm'
)
}}
<
/view
>
<
view
class
=
"info-value"
>
{{
completeStatus
==
0
?
formatTime
(
rowData
.
taskDeadline
,
'YYYY-MM-DD HH:mm'
)
:
formatTime
(
rowData
.
finishDate
,
'YYYY-MM-DD HH:mm'
)
}}
<
/view
>
<
/view
>
<
/view
>
<
/view
>
<
/view
>
<
view
class
=
"time-limit-countdown "
>
<
view
class
=
"time-limit-countdown"
v
-
if
=
"completeStatus == 0 && rowData.punishType == 1"
>
<
image
class
=
"limit-page"
src
=
"../../../assets/images/common/limit-page2.png"
mode
=
"scaleToFill"
/>
<
template
v
-
if
=
"!isTimeout"
>
<
template
v
-
if
=
"!isTimeout"
>
<
view
class
=
"countdown-label"
>
仅剩
<
/view
>
<
view
class
=
"countdown-label"
>
仅剩
<
/view
>
<
view
class
=
"countdown-num"
>
{{
countdown
.
days
<
10
?
'0'
+
countdown
.
days
:
countdown
.
days
}}
<
/view
>
<
view
class
=
"countdown-num"
>
{{
countdown
.
days
<
10
?
'0'
+
countdown
.
days
:
countdown
.
days
}}
<
/view
>
<
view
class
=
"countdown-separator"
>
天
<
/view
>
<
view
class
=
"countdown-separator"
>
天
<
/view
>
<
view
class
=
"countdown-num"
>
{{
countdown
.
hours
<
10
?
'0'
+
countdown
.
hours
:
countdown
.
hours
<
view
class
=
"countdown-num"
>
{{
countdown
.
hours
<
10
?
'0'
+
countdown
.
hours
:
countdown
.
hours
}}
<
/view
>
}}
<
/view
>
<
view
class
=
"countdown-separator"
>
:
<
/view
>
<
view
class
=
"countdown-num"
>
{{
countdown
.
minutes
<
10
?
'0'
+
countdown
.
minutes
:
countdown
.
minutes
}}
<
/view
>
<
view
class
=
"countdown-separator"
>
:
<
/view
>
<
view
class
=
"countdown-separator"
>
:
<
/view
>
<
view
class
=
"countdown-num"
>
{{
countdown
.
minutes
<
10
?
'0'
+
countdown
.
minutes
:
<
view
class
=
"countdown-num"
>
{{
countdown
.
seconds
<
10
?
'0'
+
countdown
.
seconds
:
countdown
.
minutes
}}
<
/view
>
countdown
.
seconds
}}
<
/view
>
<
view
class
=
"countdown-separator"
>
:
<
/view
>
<
view
class
=
"countdown-unit"
>
天
<
/view
>
<
view
class
=
"countdown-num"
>
{{
countdown
.
seconds
<
10
?
'0'
+
countdown
.
seconds
:
<
/template
>
countdown
.
seconds
}}
<
/view
>
<
template
v
-
else
>
<
view
class
=
"countdown-unit"
>
天
<
/view
>
<
view
class
=
"countdown-label"
style
=
"color:#B87A11;"
>
已超时
<
/view
>
<
/template
>
<
/template
>
<
template
v
-
else
>
<
view
class
=
"countdown-label"
style
=
"color:#B87A11;"
>
已超时
<
/view
>
<
/template
>
<
/view
>
<
/view
>
<
/view
>
<
/view
>
<
view
class
=
"course-list-box-wrapper"
>
<
view
class
=
"course-list-box-wrapper"
>
...
@@ -185,6 +184,7 @@ export default {
...
@@ -185,6 +184,7 @@ export default {
// ],
// ],
rowData
:
{
}
,
rowData
:
{
}
,
completeStatus
:
null
,
completeStatus
:
null
,
punishType
:
null
,
countdown
:
{
countdown
:
{
days
:
0
,
days
:
0
,
hours
:
0
,
hours
:
0
,
...
@@ -202,8 +202,11 @@ export default {
...
@@ -202,8 +202,11 @@ export default {
console
.
log
(
rowData
,
'rowData'
)
console
.
log
(
rowData
,
'rowData'
)
this
.
rowData
=
rowData
this
.
rowData
=
rowData
this
.
completeStatus
=
options
.
completeStatus
this
.
completeStatus
=
options
.
completeStatus
this
.
punishType
=
options
.
punishType
this
.
getLongCourseDetail
(
rowData
.
id
)
this
.
getLongCourseDetail
(
rowData
.
id
)
this
.
initCountdown
()
if
(
this
.
completeStatus
==
0
)
{
this
.
initCountdown
()
}
}
,
}
,
watch
:
{
watch
:
{
// 监听rowData变化,重新初始化倒计时
// 监听rowData变化,重新初始化倒计时
...
...
pages/common/studyDetail/shortCourse.vue
View file @
b548f69
...
@@ -36,7 +36,7 @@
...
@@ -36,7 +36,7 @@
<view
class=
"bottom-box-detail-item"
@
click=
"handleDetail(item)"
v-for=
"(item, index) in courseDetail.defeatReviewDetailList"
<view
class=
"bottom-box-detail-item"
@
click=
"handleDetail(item)"
v-for=
"(item, index) in courseDetail.defeatReviewDetailList"
:key=
"index"
>
:key=
"index"
>
<view
class=
"detail-item-box"
>
<view
class=
"detail-item-box"
>
<view
class=
"name-box"
>
{{
item
.
customerName
}}
<view
class=
"phone"
>
{{
<view
class=
"name-box"
>
<view
class=
"name-box-text"
>
{{
item
.
customerName
}}
</view>
<view
class=
"phone"
>
{{
desensitizePhone
(
item
.
customerPhone
)
}}
</view>
desensitizePhone
(
item
.
customerPhone
)
}}
</view>
</view>
</view>
<view
class=
"role-box"
>
<view
class=
"role-box"
>
...
@@ -62,7 +62,7 @@
...
@@ -62,7 +62,7 @@
<view
class=
"sprite-icon icon-short-task-title"
></view>
<view
class=
"sprite-icon icon-short-task-title"
></view>
短课程学习明细
短课程学习明细
</view>
</view>
<view
class=
"time-limit-countdown
"
>
<view
class=
"time-limit-countdown
"
v-if=
"completeStatus == 0
"
>
<image
class=
"limit-page"
src=
"../../../assets/images/common/limit-page2.png"
mode=
"scaleToFill"
/>
<image
class=
"limit-page"
src=
"../../../assets/images/common/limit-page2.png"
mode=
"scaleToFill"
/>
<template
v-if=
"!isTimeout"
>
<template
v-if=
"!isTimeout"
>
<view
class=
"countdown-label"
>
仅剩
</view>
<view
class=
"countdown-label"
>
仅剩
</view>
...
@@ -184,7 +184,8 @@ export default {
...
@@ -184,7 +184,8 @@ export default {
popupTitle
:
''
,
popupTitle
:
''
,
popupType
:
''
,
popupType
:
''
,
popupDetail
:
{},
popupDetail
:
{},
aiAgentData
:
{}
aiAgentData
:
{},
completeStatus
:
null
}
}
},
},
onLoad
(
options
)
{
onLoad
(
options
)
{
...
@@ -192,8 +193,11 @@ export default {
...
@@ -192,8 +193,11 @@ export default {
const
rowData
=
JSON
.
parse
(
decodeURIComponent
(
row
))
const
rowData
=
JSON
.
parse
(
decodeURIComponent
(
row
))
console
.
log
(
rowData
,
'rowData'
)
console
.
log
(
rowData
,
'rowData'
)
this
.
rowData
=
rowData
this
.
rowData
=
rowData
this
.
completeStatus
=
options
.
completeStatus
this
.
getShortCourseDetail
(
rowData
.
id
)
this
.
getShortCourseDetail
(
rowData
.
id
)
this
.
initCountdown
()
if
(
this
.
completeStatus
==
0
)
{
this
.
initCountdown
()
}
this
.
getAiAgentList
()
this
.
getAiAgentList
()
},
},
onUnload
()
{
onUnload
()
{
...
@@ -318,7 +322,9 @@ export default {
...
@@ -318,7 +322,9 @@ export default {
},
},
async
handleExam
(
item
)
{
async
handleExam
(
item
)
{
console
.
log
(
item
,
'==='
)
console
.
log
(
item
,
'==='
)
let
{
agentUrl
,
domainName
,
taskStatus
,
checkDate
,
agentCode
}
=
this
.
aiAgentData
const
{
checkDate
}
=
this
.
rowData
const
{
businessType
,
brandType
}
=
this
.
courseDetail
let
{
agentUrl
,
domainName
,
taskStatus
,
agentCode
}
=
this
.
aiAgentData
// if (agentCode == 'AI8') {
// if (agentCode == 'AI8') {
// const isPermision = await this.isPermissionFunction('请打开麦克风权限')
// const isPermision = await this.isPermissionFunction('请打开麦克风权限')
// if (!isPermision) return
// if (!isPermision) return
...
@@ -329,8 +335,8 @@ export default {
...
@@ -329,8 +335,8 @@ export default {
icon
:
'none'
icon
:
'none'
})
})
}
}
let
url
=
`/pages/common/aiWebview?url=
${
agentUrl
}
&domain=
${
domainName
}
&presuppositionProblem=
${
item
.
tagName
}
`
let
url
=
`/pages/common/aiWebview?url=
${
agentUrl
}
&domain=
${
domainName
}
&presuppositionProblem=
${
item
.
tagName
}
&businessType=
${
businessType
}
&brandType=
${
brandType
}
`
url
+=
`&
practice_status=
${
taskStatus
}
&date=
${
checkDate
}
`
url
+=
`&
date=
${
this
.
formatTime
(
checkDate
,
'YYYY-MM-DD'
)
}
`
uni
.
navigateTo
({
url
})
uni
.
navigateTo
({
url
})
},
},
handleSummary
()
{
handleSummary
()
{
...
@@ -520,6 +526,12 @@ export default {
...
@@ -520,6 +526,12 @@ export default {
display
:
flex
;
display
:
flex
;
align-items
:
center
;
align-items
:
center
;
margin-bottom
:
toRpx
(
12
);
margin-bottom
:
toRpx
(
12
);
&-text
{
max-width
:
toRpx
(
312
);
overflow
:
hidden
;
text-overflow
:
ellipsis
;
white-space
:
nowrap
;
}
.phone
{
.phone
{
font-size
:
toRpx
(
24
);
font-size
:
toRpx
(
24
);
...
@@ -539,13 +551,16 @@ export default {
...
@@ -539,13 +551,16 @@ export default {
}
}
.role-tag
{
.role-tag
{
//
max-width
:
toRpx
(
100
);
max-width
:
toRpx
(
134
);
margin-right
:
toRpx
(
12
);
margin-right
:
toRpx
(
8
);
font-size
:
toRpx
(
22
);
font-size
:
toRpx
(
22
);
color
:
#79859E
;
color
:
#79859E
;
border-radius
:
toRpx
(
4
);
border-radius
:
toRpx
(
4
);
border
:
toRpx
(
2
)
solid
#e8ecf0
;
border
:
toRpx
(
2
)
solid
#e8ecf0
;
padding
:
0
toRpx
(
8
);
padding
:
0
toRpx
(
8
);
overflow
:
hidden
;
text-overflow
:
ellipsis
;
white-space
:
nowrap
;
}
}
.role-tag-score
{
.role-tag-score
{
...
...
utils/cache/constantData.js
View file @
b548f69
...
@@ -42,5 +42,6 @@ export const STORAGE_OBJECTKEY = {
...
@@ -42,5 +42,6 @@ export const STORAGE_OBJECTKEY = {
beisenToken
:
'beisenToken'
,
beisenToken
:
'beisenToken'
,
messagePopShownDate
:
'messagePopShownDate'
,
messagePopShownDate
:
'messagePopShownDate'
,
noticeTopInfo
:
'noticeTopInfo'
,
noticeTopInfo
:
'noticeTopInfo'
,
studyCenterPermission
:
'studyCenterPermission'
studyCenterPermission
:
'studyCenterPermission'
,
caseInfo
:
'caseInfo'
,
}
}
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