113 lines
2.9 KiB
JavaScript
113 lines
2.9 KiB
JavaScript
const tl_rtc_app_module_login_content = {
|
|
props: {
|
|
socket: {
|
|
type: Object,
|
|
default: null
|
|
},
|
|
isMobile:{
|
|
type: Boolean,
|
|
default: false
|
|
},
|
|
leftModule: {
|
|
type: String,
|
|
default: ''
|
|
},
|
|
rightModule: {
|
|
type: String,
|
|
default: ''
|
|
},
|
|
codeList: {
|
|
type: Array,
|
|
default: () => []
|
|
}
|
|
},
|
|
computed: {
|
|
propsSocket(){
|
|
return this.socket;
|
|
},
|
|
propsIsMobile(){
|
|
return this.isMobile;
|
|
},
|
|
propsLeftModule() {
|
|
return this.leftModule;
|
|
},
|
|
propsRightModule() {
|
|
return this.rightModule;
|
|
},
|
|
propsCodeList() {
|
|
return this.codeList;
|
|
}
|
|
},
|
|
watch: {
|
|
leftModule: function (val) {
|
|
|
|
},
|
|
rightModule: function (val) {
|
|
|
|
}
|
|
},
|
|
data : function(){
|
|
return {
|
|
loginType : 'sso',
|
|
}
|
|
},
|
|
methods: {
|
|
/**
|
|
* 事件触发,向上传递
|
|
* @param {*} event
|
|
*/
|
|
leftModuleChange: function(event){
|
|
this.$emit('left-module-change', event)
|
|
},
|
|
/**
|
|
* 事件触发,向上传递
|
|
* @param {*} event
|
|
*/
|
|
rightModuleChange: function(event){
|
|
this.$emit('right-module-change', event)
|
|
},
|
|
/**
|
|
* 登陆方式
|
|
* @param {*} loginType
|
|
*/
|
|
moduleDataChange: function({
|
|
loginType, callback
|
|
}){
|
|
this.loginType = loginType
|
|
|
|
callback && callback()
|
|
},
|
|
/**
|
|
* 回退
|
|
*/
|
|
goBack: function(){
|
|
this.emitSubModuleEvent({
|
|
event: 'sub-module-core-change-module-show',
|
|
data: {
|
|
showRightModule: false,
|
|
}
|
|
})
|
|
}
|
|
},
|
|
mounted() {
|
|
|
|
},
|
|
created(){
|
|
window.subModule.$on('sub-module-login-content-data-change', this.moduleDataChange)
|
|
},
|
|
template: `
|
|
<div class="tl-rtc-app-right-login-content">
|
|
<svg class="icon goBack" aria-hidden="true" @click="goBack" v-show="isMobile">
|
|
<use xlink:href="#tl-rtc-app-icon-xiangzuo1"></use>
|
|
</svg>
|
|
|
|
<div style="padding: 72px 48px; line-height: 32px; font-size: 16px; color: #666;">
|
|
<div style="font-size: 24px; color: #222; margin-bottom: 20px;">请通过 SSO 登录</div>
|
|
<div>当前项目已移除帐号登录、邮箱登录和指纹登录入口。</div>
|
|
<div>请从统一认证系统进入,认证成功后会自动完成登录并建立 websocket 连接。</div>
|
|
</div>
|
|
</div>
|
|
`,
|
|
}
|
|
|
|
window.tl_rtc_app_module_login_content = tl_rtc_app_module_login_content |