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 1d15ec54
authored
May 14, 2025
by
杨明
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
北森
1 parent
60763b13
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
3 deletions
api/module/common.js
components/HomeFrame/index.vue
api/module/common.js
View file @
1d15ec5
...
@@ -273,5 +273,21 @@ module.exports = {
...
@@ -273,5 +273,21 @@ module.exports = {
false
,
false
,
'scrm'
'scrm'
)
)
},
//获取北森代办数量
getUnreadCount
(
data
)
{
return
http
.
post
({
method
:
'dj.pad.api.beisen.getUnreadCount'
,
projectName
:
'pad'
,
...
data
})
},
//获取北森SSO鉴权
findBeiSenSSOToken
(
data
)
{
return
http
.
post
({
method
:
'dj.pad.api.beisen.findBeiSenSSOToken'
,
projectName
:
'pad'
,
...
data
})
}
}
}
}
components/HomeFrame/index.vue
View file @
1d15ec5
...
@@ -58,7 +58,7 @@
...
@@ -58,7 +58,7 @@
<update-box
/>
<update-box
/>
<slot
name=
"content"
/>
<slot
name=
"content"
/>
<web-view
@
message=
"handlerMessage"
ref=
"webview"
src=
"/hybrid/html/index.html"
></web-view>
<web-view
@
message=
"handlerMessage"
ref=
"webview"
src=
"/hybrid/html/index.html"
></web-view>
<web-view
ref=
"
webview2"
:src=
"studyUrl"
v-if=
"study
Url"
></web-view>
<web-view
ref=
"
studyWebview"
:src=
"jumpUrl"
v-if=
"jump
Url"
></web-view>
<image
v-if=
"showLeadPage"
@
click=
"showLeadPage = false"
class=
"lead-page"
src=
"../../assets/images/noviceGuide/lead-page.png"
mode=
"scaleToFill"
/>
<image
v-if=
"showLeadPage"
@
click=
"showLeadPage = false"
class=
"lead-page"
src=
"../../assets/images/noviceGuide/lead-page.png"
mode=
"scaleToFill"
/>
</view>
</view>
</template>
</template>
...
@@ -99,6 +99,7 @@ export default {
...
@@ -99,6 +99,7 @@ export default {
data
()
{
data
()
{
return
{
return
{
studyUrl
:
''
,
studyUrl
:
''
,
jumpUrl
:
''
,
transfer
:
''
,
transfer
:
''
,
footerBox
:
true
,
footerBox
:
true
,
showHome
:
true
,
showHome
:
true
,
...
@@ -109,6 +110,7 @@ export default {
...
@@ -109,6 +110,7 @@ export default {
}
}
},
},
mounted
()
{
mounted
()
{
this
.
findBeiSenSSOToken
()
const
userInfo
=
uni
.
$storage
.
get
(
'userInfo'
)
||
{}
const
userInfo
=
uni
.
$storage
.
get
(
'userInfo'
)
||
{}
this
.
userInfo
=
userInfo
this
.
userInfo
=
userInfo
this
.
checkVersion
()
this
.
checkVersion
()
...
@@ -133,10 +135,17 @@ export default {
...
@@ -133,10 +135,17 @@ export default {
}
}
},
},
methods
:
{
methods
:
{
findBeiSenSSOToken
()
{
const
url
=
'https%3A%2F%2Fwww.italent.cn%2Fportal%2Fconvoy%2FLearning%3Fquark_s%3D8a57242849538e77645db62c324e0dc3275ebf34a85357b365c6b1152167997c%26_qsrcapp%3Dcompensation%26_qrt%3Dhtml%26_userSpecialType%3D1%26xpuid%3D628527720%26_menuId%3D21a3043f-430a-46ed-93e5-0dad234799af%26_menuRootId%3D9027d6ad-d015-4c62-83d8-3fddb015b59d%26_pageType%3Dlegacy%26_pageTitle%3D%25E5%25AD%25A6%25E4%25B9%25A0%25E9%25A6%2596%25E9%25A1%25B5%26_restoreHref%3Dhttps%253A%252F%252Fcloud.italent.cn%252FPageHome%252FIndex%253Fproduct%253DLearning%2526keyName%253DNusion%2526pageCode%253DLearningNewHomepage%2526appCode%253DLearning%2523%252FviewDynamic%253Fshadow_context%253D%25257BappModel%25253A%252522italent%252522%25252Cuppid%25253A%2525221%252522%25257D%23widget%2Fitalent%3FiTalentFrameType%3Diframe%26iTalentFrame%3Dhttps%253A%252F%252Fcloud.italent.cn%252FPageHome%252FIndex%253Fproduct%253DLearning%2526keyName%253DNusion%2526pageCode%253DLearningNewHomepage%2526appCode%253DLearning%2523%252FviewDynamic%253Fshadow_context%253D%25257BappModel%25253A%252522italent%252522%25252Cuppid%25253A%2525221%252522%25257D'
uni
.
$api
.
commonApi
.
findBeiSenSSOToken
({}).
then
(
res
=>
{
this
.
studyUrl
=
`
${
res
}
&return_url=
${
url
}
`
})
},
changeTab
(
$event
)
{
changeTab
(
$event
)
{
this
.
$emit
(
'changeTab'
,
$event
)
this
.
$emit
(
'changeTab'
,
$event
)
if
(
$event
==
3
)
{
if
(
$event
==
3
)
{
this
.
studyUrl
=
'https://dj.glsx.com.cn/dj-carlife-web/#/login'
this
.
jumpUrl
=
this
.
studyUrl
setTimeout
(()
=>
{
setTimeout
(()
=>
{
const
currentWebview
=
this
.
$parent
.
$scope
.
$getAppWebview
()
const
currentWebview
=
this
.
$parent
.
$scope
.
$getAppWebview
()
const
wv
=
currentWebview
.
children
()[
1
]
const
wv
=
currentWebview
.
children
()[
1
]
...
@@ -146,7 +155,7 @@ export default {
...
@@ -146,7 +155,7 @@ export default {
}
}
},
100
)
},
100
)
}
else
{
}
else
{
this
.
study
Url
=
''
this
.
jump
Url
=
''
}
}
},
},
handleFooter
(
val
)
{
handleFooter
(
val
)
{
...
...
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