{"version":3,"sources":["webpack:///./src/common/mixins/qywxCommon.js","webpack:///./src/views/sign-in-tsied.vue","webpack:///src/views/sign-in-tsied.vue","webpack:///./src/views/sign-in-tsied.vue?24d2","webpack:///./src/views/sign-in-tsied.vue?8ddc","webpack:///./src/views/sign-in-tsied.vue?93dc"],"names":["methods","qywxHandler","_this","vm","this","is_wx_state","$route","query","state","substring","$organization","use_wechat","code","$api","then","res","data","success","setUserInfo","redirect","redirectPath","$router","replace","msg","text","$messageBox","error","ready","$isWechat","_t","encodeURIComponent","wx_redirect","wechat_appid","signin_url","wechat_agentid","window","location","href","decodeURIComponent","render","_vm","_c","_self","directives","name","rawName","value","expression","staticClass","_v","attrs","on","$event","preventDefault","submitForm","apply","arguments","login","id","domProps","target","composing","$set","resetPassword","password","jumpToWechatCorp","_m","process","loading","staticStyle","staticRenderFns","mixins","qywxCommon","error_message","show_login_error","created","mounted","qywxWebLogHandler","computed","_objectSpread","mapState","mapMutations","$affirm","$notice","response","jumpToSignIn","push","component"],"mappings":"oHAAe,QAMXA,QAAS,CACLC,YAAW,WAAG,IAAAC,EAAA,KACJC,EAAKC,KACLC,EAAcD,KAAKE,OAAOC,MAAMC,OAAoD,OAA3CJ,KAAKE,OAAOC,MAAMC,MAAMC,UAAU,EAAE,GACnF,GAAIL,KAAKM,cAAcC,YAAcP,KAAKE,OAAOC,MAAMK,MAAQP,EAC3DD,KAAKS,KAAK,eAAgB,CAACD,KAAMR,KAAKE,OAAOC,MAAMK,KAAMJ,MAAOJ,KAAKE,OAAOC,MAAMC,QAAQM,MAAK,SAAAC,GAC3F,GAAIA,EAAIC,KAAKC,QAAS,CAClBd,EAAGe,YAAYH,EAAIC,KAAKA,MAExB,IAAIG,EAAWjB,EAAKkB,eACfD,IAAUA,EAAW,KAC1BhB,EAAGkB,QAAQC,QAAQH,OAEhB,CACH,IAAII,EAAM,wBACNR,EAAIC,KAAKQ,MAAyB,WAAjBT,EAAIC,KAAKQ,OAAmBD,EAAMR,EAAIC,KA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nBf","file":"js/about172.ffaf945f.js","sourcesContent":["export default {\n /* 需要添加\n mounted() {\n this.qywxHandler();\n },\n */\n methods: {\n qywxHandler() {\n const vm = this;\n const is_wx_state = this.$route.query.state && this.$route.query.state.substring(0,2) === 'wx';\n if (this.$organization.use_wechat && this.$route.query.code && is_wx_state) {// read user info\n this.$api('Wechat.QYWeb', {code: this.$route.query.code, state: this.$route.query.state}).then(res => {\n if (res.data.success) {\n vm.setUserInfo(res.data.data);\n\n let redirect = this.redirectPath();\n if (!redirect) redirect = \"/\";\n vm.$router.replace(redirect);\n\n } else {\n let msg = '错误的企业微信返回信息,请用其他方式登录!';\n if (res.data.text && res.data.text != 'INVALID') msg = res.data.text;\n vm.$messageBox.error(msg);\n let redirect = this.redirectPath();\n redirect = !redirect ? \"/sign-in\" : (\"/sign-in?_t=\" + redirect);\n vm.$router.replace(redirect);\n vm.ready = true;\n }\n });\n } else if (this.$isWechat() && this.$organization.use_wechat) { // 微信客户端\n // 构建微信跳转地址\n // https://open.weixin.qq.com/connect/oauth2/authorize?appid=appid&redirect_uri=%2F&response_type=code&scope=snsapi_userinfo&agentid=1000013&state=STATE#wechat_redirect\n let state = 'wx';\n if (this.$route.query._t) {\n state = 'wx_' + encodeURIComponent(this.$route.query._t);\n }\n const wx_redirect = \"https://open.weixin.qq.com/connect/oauth2/authorize?\" +\n \"appid=\" + this.$organization.wechat_appid +\n \"&redirect_uri=\" + encodeURIComponent(this.$organization.signin_url) +\n \"&response_type=code&scope=snsapi_userinfo&agentid=\" + this.$organization.wechat_agentid +\n \"&state=\" + state + \"#wechat_redirect\";\n window.location.href = wx_redirect;\n } else {\n this.ready = true;\n }\n },\n redirectPath(){\n let redirect = null;\n if (this.$route.query.state.substring(0,3) === 'wx_') {\n redirect = decodeURIComponent(this.$route.query.state.substring(3));\n }\n return redirect;\n }\n }\n}\n","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.ready),expression:\"ready\"}],staticClass:\"w-100 h-100 container-tsied\"},[_c('div',{staticClass:\"page-content\"},[_c('div',{staticClass:\"login-box\"},[_c('div',{staticClass:\"login-table text-white\"},[_c('div',{staticClass:\"text-center h5 mt-3\"},[_vm._v(\"\\n 登 录 | SIGN IN\\n \")]),_c('div',{staticClass:\"line\"}),_c('form',{staticClass:\"px-3 py-3\",attrs:{\"action\":\"/\"},on:{\"submit\":function($event){$event.preventDefault();return _vm.submitForm.apply(null, arguments)}}},[_c('div',{staticClass:\"form-group color-white\"},[_c('label',[_vm._v(\"用户名/学工号\")]),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.login.id),expression:\"login.id\"}],staticClass:\"form-control\",attrs:{\"type\":\"text\",\"placeholder\":\"用户/邮箱\",\"required\":\"\"},domProps:{\"value\":(_vm.login.id)},on:{\"input\":function($event){if($event.target.composing)return;_vm.$set(_vm.login, \"id\", $event.target.value)}}})]),_c('div',{staticClass:\"form-group color-white\"},[_c('div',[_c('div',{staticClass:\"pull-right mb-3\"},[_c('a',{attrs:{\"href\":\"javascript:void(0);\"},on:{\"click\":_vm.resetPassword}},[_c('small',[_vm._v(\"忘记或重置密码\")])])]),_vm._v(\"\\n 密码\\n \")]),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.login.password),expression:\"login.password\"}],staticClass:\"form-control\",attrs:{\"type\":\"password\",\"placeholder\":\"密码\",\"required\":\"\"},domProps:{\"value\":(_vm.login.password)},on:{\"input\":function($event){if($event.target.composing)return;_vm.$set(_vm.login, \"password\", $event.target.value)}}})]),_c('div',{staticClass:\"form-check color-white text-right mb-3\"},[_c('a',{staticClass:\"sigin-a\",attrs:{\"href\":\"javascript:void(0);\"},on:{\"click\":_vm.jumpToWechatCorp}},[_vm._m(0)])]),_c('div',[_c('button',{staticClass:\"btn btn-primary btn-block\",attrs:{\"type\":\"submit\",\"disable\":_vm.process.loading}},[_vm._v(\"登 录\\n \")])])])])]),_c('div',{staticClass:\"mt-2\",staticStyle:{\"font-size\":\"1em\",\"color\":\"#eee\",\"height\":\"25%\"}},[_vm._v(\"韬视信息技术视频云平台\")])])])\n}\nvar staticRenderFns = [function (){var _vm=this,_c=_vm._self._c;return _c('small',[_c('i',{staticClass:\"fa fa-link\"}),_vm._v(\" 企业扫码登录,请点击此处\")])\n}]\n\nexport { render, staticRenderFns }","\n\n\n\n\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./sign-in-tsied.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./sign-in-tsied.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./sign-in-tsied.vue?vue&type=template&id=34ef2bdf\"\nimport script from \"./sign-in-tsied.vue?vue&type=script&lang=js\"\nexport * from \"./sign-in-tsied.vue?vue&type=script&lang=js\"\nimport style0 from \"./sign-in-tsied.vue?vue&type=style&index=0&id=34ef2bdf&prod&lang=scss\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","export * from \"-!../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../node_modules/css-loader/index.js??ref--8-oneOf-1-1!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-3!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./sign-in-tsied.vue?vue&type=style&index=0&id=34ef2bdf&prod&lang=scss\""],"sourceRoot":""}