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: `