Commit 1d15ec54 by 杨明

北森

1 parent 60763b13
......@@ -273,5 +273,21 @@ module.exports = {
false,
'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
})
}
}
......@@ -58,7 +58,7 @@
<update-box />
<slot name="content" />
<web-view @message="handlerMessage" ref="webview" src="/hybrid/html/index.html"></web-view>
<web-view ref="webview2" :src="studyUrl" v-if="studyUrl"></web-view>
<web-view ref="studyWebview" :src="jumpUrl" v-if="jumpUrl"></web-view>
<image v-if="showLeadPage" @click="showLeadPage = false" class="lead-page" src="../../assets/images/noviceGuide/lead-page.png" mode="scaleToFill" />
</view>
</template>
......@@ -99,6 +99,7 @@ export default {
data() {
return {
studyUrl: '',
jumpUrl: '',
transfer: '',
footerBox: true,
showHome: true,
......@@ -109,6 +110,7 @@ export default {
}
},
mounted() {
this.findBeiSenSSOToken()
const userInfo = uni.$storage.get('userInfo') || {}
this.userInfo = userInfo
this.checkVersion()
......@@ -133,10 +135,17 @@ export default {
}
},
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) {
this.$emit('changeTab', $event)
if ($event == 3) {
this.studyUrl = 'https://dj.glsx.com.cn/dj-carlife-web/#/login'
this.jumpUrl = this.studyUrl
setTimeout(() => {
const currentWebview = this.$parent.$scope.$getAppWebview()
const wv = currentWebview.children()[1]
......@@ -146,7 +155,7 @@ export default {
}
}, 100)
} else {
this.studyUrl = ''
this.jumpUrl = ''
}
},
handleFooter(val) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!