<<<<<<< HEAD:dist/assets/login-legacy.6b82a5bc.js <<<<<<< HEAD:dist/assets/login-legacy.9d47d797.js <<<<<<< HEAD:dist/assets/login-legacy.a30c7bdc.js <<<<<<< HEAD:dist/assets/login-legacy.96432545.js !(function () { var e = ['returnUrl', 'isRegister'] function t(e, t) { var n = Object.keys(e) if (Object.getOwnPropertySymbols) { var r = Object.getOwnPropertySymbols(e) t && (r = r.filter(function (t) { return Object.getOwnPropertyDescriptor(e, t).enumerable })), n.push.apply(n, r) } return n } function n(e) { for (var n = 1; n < arguments.length; n++) { var o = null != arguments[n] ? arguments[n] : {} n % 2 ? t(Object(o), !0).forEach(function (t) { r(e, t, o[t]) }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(o)) : t(Object(o)).forEach(function (t) { Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(o, t)) }) } return e } function r(e, t, n) { return ( t in e ? Object.defineProperty(e, t, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : (e[t] = n), e ) } function o(e, t) { if (null == e) return {} var n, r, o = (function (e, t) { if (null == e) return {} var n, r, o = {}, i = Object.keys(e) for (r = 0; r < i.length; r++) (n = i[r]), t.indexOf(n) >= 0 || (o[n] = e[n]) return o })(e, t) if (Object.getOwnPropertySymbols) { var i = Object.getOwnPropertySymbols(e) for (r = 0; r < i.length; r++) (n = i[r]), t.indexOf(n) >= 0 || (Object.prototype.propertyIsEnumerable.call(e, n) && (o[n] = e[n])) } return o } function i(e, t, n, r, o, i, s) { try { var a = e[i](s), u = a.value } catch (c) { return void n(c) } a.done ? t(u) : Promise.resolve(u).then(r, o) } function s(e) { return function () { var t = this, n = arguments return new Promise(function (r, o) { var s = e.apply(t, n) function a(e) { i(s, r, o, a, u, 'next', e) } function u(e) { i(s, r, o, a, u, 'throw', e) } a(void 0) }) } } System.register( [ './validate-legacy.2af58e56.js', './index-legacy.37a26c18.js', './index-legacy.c75fe8a2.js', './index-legacy.a5bef69a.js', './index-legacy.b08187e4.js', './index-legacy.ae8ecab9.js', './index-legacy.d552d569.js', './index-legacy.1f5a1fbe.js' ], function (t) { 'use strict' var r, i, a, u, c, l, p, d, f, h, g, m, y, w, b, v, x, S, C, O, P, j, D return { setters: [ function (e) { ;(r = e.c), (i = e.R), (a = e.C), (u = e.I) }, function (e) { ;(c = e.d), (l = e.bd), (p = e.e), (d = e.m), (f = e.be), (h = e.bf), (g = e.f), (m = e.s), (y = e.n), (w = e.o), (b = e.c), (v = e.bg), (x = e.q), (S = e.B), (C = e.P) }, function (e) { O = e.q }, function (e) { P = e.C }, function (e) { j = e.F }, function (e) { D = e.C }, function () {}, function () {} ], execute: function () { t( 'default', c({ name: 'login-music', data: function () { return { loginType: 'SMS', username: '', password: '', smsCode: '', countDownStatus: !0, countDownTime: 12e4, imgCodeStatus: !1, showPopup: !1, showPopupMessage: '请使用微信打开', wxAppId: '', code: '', orchestraInfo: {}, testIsWeixin: !1 } }, computed: { codeDisable: function () { var e = !0 return this.username && this.smsCode && (e = !1), e } }, mounted: function () { l(), this.directNext(), p().weixin || this.testIsWeixin || (this.showPopup = !0), this.getDetails() }, methods: { getDetails: function () { var e = this return s( regeneratorRuntime.mark(function t() { var n, r return regeneratorRuntime.wrap( function (t) { for (;;) switch ((t.prev = t.next)) { case 0: if (((t.prev = 0), e.$route.query.id)) { t.next = 4 break } return t.abrupt('return') case 4: return ( (t.next = 6), d.get('/api-student/open/orchestra/detail/' + e.$route.query.id) ) case 6: ;(n = t.sent), (r = n.data), (e.orchestraInfo = r || {}), r.canSignUp || ((e.showPopup = !0), (e.showPopupMessage = '学校已关闭')), (t.next = 14) break case 12: ;(t.prev = 12), (t.t0 = t.catch(0)) case 14: case 'end': return t.stop() } }, t, null, [[0, 12]] ) }) )() }, getAppIdAndCode: function (e) { return s( regeneratorRuntime.mark(function t() { var n, r return regeneratorRuntime.wrap( function (t) { for (;;) switch ((t.prev = t.next)) { case 0: return ( (t.prev = 0), (t.next = 3), d.get('/api-student/open/paramConfig/wechatAppId') ) case 3: ;(n = t.sent), (r = n.data) && (f(), h(r, e)), (t.next = 10) break case 8: ;(t.prev = 8), (t.t0 = t.catch(0)) case 10: case 'end': return t.stop() } }, t, null, [[0, 8]] ) }) )() }, directNext: function () { if ('login' === g.user.status || 'error' === g.user.status) { var t = this.$route.query, r = t.returnUrl, i = (t.isRegister, o(t, e)), s = window.location.origin + window.location.pathname + '#' + r + '?' + O.stringify(n({}, i)) this.testIsWeixin ? this.locationReplace(s) : this.getAppIdAndCode(s) } }, locationReplace: function (e) { console.log(history.replaceState, 'window.history.replaceState', e), history.replaceState ? (history.replaceState(null, document.title, e), history.go(0)) : location.replace(e) }, onLogin: function () { var e = this return s( regeneratorRuntime.mark(function t() { var r, o, i, s return regeneratorRuntime.wrap( function (t) { for (;;) switch ((t.prev = t.next)) { case 0: return ( (t.prev = 0), e.orchestraInfo.canSignUp || ((e.showPopup = !0), (e.showPopupMessage = '学校已关闭')), (r = { username: e.username, client_id: 'jmedu-student', client_secret: 'jmedu-student', autoRegister: !0, password: e.smsCode, loginType: 'SMS', grant_type: 'password' }), (t.next = 5), d.post('/api-oauth/userlogin', { requestType: 'form', data: n({}, r) }) ) case 5: return ( (o = t.sent), (i = o.data), m(i.token_type + ' ' + i.access_token), (t.next = 10), d.get('/api-student/user/getUserInfo', { initRequest: !0 }) ) case 10: ;(s = t.sent), y(s.data), e.directNext(), (t.next = 17) break case 15: ;(t.prev = 15), (t.t0 = t.catch(0)) case 17: case 'end': return t.stop() } }, t, null, [[0, 15]] ) }) )() }, onSendCode: function () { var e = this return s( regeneratorRuntime.mark(function t() { return regeneratorRuntime.wrap(function (t) { for (;;) switch ((t.prev = t.next)) { case 0: if (r(e.username)) { t.next = 2 break } return t.abrupt('return', w('请输入正确的手机号码')) case 2: e.imgCodeStatus = !0 case 3: case 'end': return t.stop() } }, t) }) )() }, onCodeSend: function () { var e = this ;(this.countDownStatus = !1), this.$nextTick(function () { e.$refs.countDownRef.start() }) }, onFinished: function () { ;(this.countDownStatus = !0), this.$refs.countDownRef.reset() }, onChange: function () { 'PWD' === this.loginType ? (this.loginType = 'SMS') : 'SMS' === this.loginType && (this.loginType = 'PWD') } }, render: function () { var e = this return b('div', { class: v.login }, [ b('div', { class: v.loginTitle }, [ x('您好,'), b('br', null, null), x(' 欢迎使用管乐团学员端') ]), b( P, { class: v.margin34, border: !1 }, { default: function () { return [ b( i, { style: { marginBottom: '16px' } }, { default: function () { return [ b( a, { span: 24, class: v.formTitle }, { default: function () { return [x('手机号')] } } ), b( a, { span: 24, class: 'van-hairline--bottom' }, { default: function () { return [ b( j, { modelValue: e.username, 'onUpdate:modelValue': function (t) { return (e.username = t) }, name: '手机号', placeholder: '请输入您的手机号', type: 'tel', maxlength: 11 }, null ) ] } } ) ] } } ), b(i, null, { default: function () { return [ b( a, { span: 24, class: v.formTitle }, { default: function () { return [x('验证码')] } } ), b( a, { span: 24, class: 'van-hairline--bottom' }, { default: function () { return [ b( j, { modelValue: e.smsCode, 'onUpdate:modelValue': function (t) { return (e.smsCode = t) }, name: '验证码', placeholder: '请输入验证码', type: 'tel', maxlength: 6 }, { button: function () { return e.countDownStatus ? b( 'span', { class: v.codeText, onClick: e.onSendCode }, [x('获取验证码')] ) : b( D, { ref: 'countDownRef', 'auto-start': !1, time: e.countDownTime, onFinish: e.onFinished, format: 'ss秒' }, null ) } } ) ] } } ) ] } }) ] } } ), b('div', { class: v.margin34 }, [ b( S, { round: !0, block: !0, type: 'primary', disabled: this.codeDisable, onClick: this.onLogin }, { default: function () { return [x('提交')] } } ) ]), this.imgCodeStatus ? b( u, { value: this.imgCodeStatus, 'onUpdate:value': function (t) { return (e.imgCodeStatus = t) }, phone: this.username, type: 'REGISTER', onClose: function () { e.imgCodeStatus = !1 }, onSendCode: this.onCodeSend }, null ) : null, b( C, { show: this.showPopup, 'onUpdate:show': function (t) { return (e.showPopup = t) }, round: !0, style: { width: '88%' }, closeOnClickOverlay: !1, class: v.wxPopupDialog }, { default: function () { return [ b('div', { class: v.popupContainer }, [ b('p', { class: v.title }, [x('温馨提示')]), b('p', { class: v.popupTips }, [e.showPopupMessage]) ]) ] } } ) ]) } }) ) } } } ) })() ======= !function(){var e=["returnUrl","isRegister"];function t(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function n(e){for(var n=1;n=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function i(e,t,n,r,o,i,s){try{var a=e[i](s),u=a.value}catch(c){return void n(c)}a.done?t(u):Promise.resolve(u).then(r,o)}function s(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var s=e.apply(t,n);function a(e){i(s,r,o,a,u,"next",e)}function u(e){i(s,r,o,a,u,"throw",e)}a(void 0)}))}}System.register(["./validate-legacy.af1eaccc.js","./index-legacy.5250e410.js","./index-legacy.c75fe8a2.js","./index-legacy.9bde57e9.js","./index-legacy.50e1a648.js","./index-legacy.02dacbe6.js","./index-legacy.8f701eeb.js","./index-legacy.7e0d4571.js"],(function(t){"use strict";var r,i,a,u,c,l,p,d,f,h,g,m,y,w,b,v,x,S,C,O,P,j,D;return{setters:[function(e){r=e.c,i=e.R,a=e.C,u=e.I},function(e){c=e.d,l=e.bd,p=e.e,d=e.m,f=e.be,h=e.bf,g=e.f,m=e.s,y=e.n,w=e.o,b=e.c,v=e.bg,x=e.q,S=e.B,C=e.P},function(e){O=e.q},function(e){P=e.C},function(e){j=e.F},function(e){D=e.C},function(){},function(){}],execute:function(){t("default",c({name:"login-music",data:function(){return{loginType:"SMS",username:"",password:"",smsCode:"",countDownStatus:!0,countDownTime:12e4,imgCodeStatus:!1,showPopup:!1,showPopupMessage:"请使用微信打开",wxAppId:"",code:"",orchestraInfo:{},testIsWeixin:!1}},computed:{codeDisable:function(){var e=!0;return this.username&&this.smsCode&&(e=!1),e}},mounted:function(){l(),this.directNext(),p().weixin||this.testIsWeixin||(this.showPopup=!0),this.getDetails()},methods:{getDetails:function(){var e=this;return s(regeneratorRuntime.mark((function t(){var n,r;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(t.prev=0,e.$route.query.id){t.next=4;break}return t.abrupt("return");case 4:return t.next=6,d.get("/api-student/open/orchestra/detail/"+e.$route.query.id);case 6:n=t.sent,r=n.data,e.orchestraInfo=r||{},r.canSignUp||(e.showPopup=!0,e.showPopupMessage="学校已关闭"),t.next=14;break;case 12:t.prev=12,t.t0=t.catch(0);case 14:case"end":return t.stop()}}),t,null,[[0,12]])})))()},getAppIdAndCode:function(e){return s(regeneratorRuntime.mark((function t(){var n,r;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,d.get("/api-student/open/paramConfig/wechatAppId");case 3:n=t.sent,(r=n.data)&&(f(),h(r,e)),t.next=10;break;case 8:t.prev=8,t.t0=t.catch(0);case 10:case"end":return t.stop()}}),t,null,[[0,8]])})))()},directNext:function(){if("login"===g.user.status||"error"===g.user.status){var t=this.$route.query,r=t.returnUrl,i=(t.isRegister,o(t,e)),s=window.location.origin+window.location.pathname+"#"+r+"?"+O.stringify(n({},i));this.testIsWeixin?this.locationReplace(s):this.getAppIdAndCode(s)}},locationReplace:function(e){console.log(history.replaceState,"window.history.replaceState",e),history.replaceState?(history.replaceState(null,document.title,e),history.go(0)):location.replace(e)},onLogin:function(){var e=this;return s(regeneratorRuntime.mark((function t(){var r,o,i,s;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,e.orchestraInfo.canSignUp||(e.showPopup=!0,e.showPopupMessage="学校已关闭"),r={username:e.username,client_id:"jmedu-student",client_secret:"jmedu-student",autoRegister:!0,password:e.smsCode,loginType:"SMS",grant_type:"password"},t.next=5,d.post("/api-oauth/userlogin",{requestType:"form",data:n({},r)});case 5:return o=t.sent,i=o.data,m(i.token_type+" "+i.access_token),t.next=10,d.get("/api-student/user/getUserInfo",{initRequest:!0});case 10:s=t.sent,y(s.data),e.directNext(),t.next=17;break;case 15:t.prev=15,t.t0=t.catch(0);case 17:case"end":return t.stop()}}),t,null,[[0,15]])})))()},onSendCode:function(){var e=this;return s(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r(e.username)){t.next=2;break}return t.abrupt("return",w("请输入正确的手机号码"));case 2:e.imgCodeStatus=!0;case 3:case"end":return t.stop()}}),t)})))()},onCodeSend:function(){var e=this;this.countDownStatus=!1,this.$nextTick((function(){e.$refs.countDownRef.start()}))},onFinished:function(){this.countDownStatus=!0,this.$refs.countDownRef.reset()},onChange:function(){"PWD"===this.loginType?this.loginType="SMS":"SMS"===this.loginType&&(this.loginType="PWD")}},render:function(){var e=this;return b("div",{class:v.login},[b("div",{class:v.loginTitle},[x("您好,"),b("br",null,null),x(" 欢迎使用管乐团学生端")]),b(P,{class:v.margin34,border:!1},{default:function(){return[b(i,{style:{marginBottom:"16px"}},{default:function(){return[b(a,{span:24,class:v.formTitle},{default:function(){return[x("手机号")]}}),b(a,{span:24,class:"van-hairline--bottom"},{default:function(){return[b(j,{modelValue:e.username,"onUpdate:modelValue":function(t){return e.username=t},name:"手机号",placeholder:"请输入您的手机号",type:"tel",maxlength:11},null)]}})]}}),b(i,null,{default:function(){return[b(a,{span:24,class:v.formTitle},{default:function(){return[x("验证码")]}}),b(a,{span:24,class:"van-hairline--bottom"},{default:function(){return[b(j,{modelValue:e.smsCode,"onUpdate:modelValue":function(t){return e.smsCode=t},name:"验证码",placeholder:"请输入验证码",type:"tel",maxlength:6},{button:function(){return e.countDownStatus?b("span",{class:v.codeText,onClick:e.onSendCode},[x("获取验证码")]):b(D,{ref:"countDownRef","auto-start":!1,time:e.countDownTime,onFinish:e.onFinished,format:"ss秒"},null)}})]}})]}})]}}),b("div",{class:v.margin34},[b(S,{round:!0,block:!0,type:"primary",disabled:this.codeDisable,onClick:this.onLogin},{default:function(){return[x("提交")]}})]),this.imgCodeStatus?b(u,{value:this.imgCodeStatus,"onUpdate:value":function(t){return e.imgCodeStatus=t},phone:this.username,type:"REGISTER",onClose:function(){e.imgCodeStatus=!1},onSendCode:this.onCodeSend},null):null,b(C,{show:this.showPopup,"onUpdate:show":function(t){return e.showPopup=t},round:!0,style:{width:"88%"},closeOnClickOverlay:!1,class:v.wxPopupDialog},{default:function(){return[b("div",{class:v.popupContainer},[b("p",{class:v.title},[x("温馨提示")]),b("p",{class:v.popupTips},[e.showPopupMessage])])]}})])}}))}}}))}(); >>>>>>> online:dist/assets/login-legacy.a30c7bdc.js ======= !function(){var e=["returnUrl","isRegister"];function t(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function n(e){for(var n=1;n=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function i(e,t,n,r,o,i,s){try{var a=e[i](s),u=a.value}catch(c){return void n(c)}a.done?t(u):Promise.resolve(u).then(r,o)}function s(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var s=e.apply(t,n);function a(e){i(s,r,o,a,u,"next",e)}function u(e){i(s,r,o,a,u,"throw",e)}a(void 0)}))}}System.register(["./validate-legacy.6aed1b6f.js","./index-legacy.e776119d.js","./index-legacy.c75fe8a2.js","./index-legacy.e1ae7968.js","./index-legacy.0884f318.js","./index-legacy.0c3546ea.js","./index-legacy.d8701818.js","./index-legacy.513b7e98.js"],(function(t){"use strict";var r,i,a,u,c,l,p,d,f,h,g,m,y,w,b,v,x,S,C,O,P,j,D;return{setters:[function(e){r=e.c,i=e.R,a=e.C,u=e.I},function(e){c=e.d,l=e.bd,p=e.e,d=e.m,f=e.be,h=e.bf,g=e.f,m=e.s,y=e.n,w=e.o,b=e.c,v=e.bg,x=e.q,S=e.B,C=e.P},function(e){O=e.q},function(e){P=e.C},function(e){j=e.F},function(e){D=e.C},function(){},function(){}],execute:function(){t("default",c({name:"login-music",data:function(){return{loginType:"SMS",username:"",password:"",smsCode:"",countDownStatus:!0,countDownTime:12e4,imgCodeStatus:!1,showPopup:!1,showPopupMessage:"请使用微信打开",wxAppId:"",code:"",orchestraInfo:{},testIsWeixin:!1}},computed:{codeDisable:function(){var e=!0;return this.username&&this.smsCode&&(e=!1),e}},mounted:function(){l(),this.directNext(),p().weixin||this.testIsWeixin||(this.showPopup=!0),this.getDetails()},methods:{getDetails:function(){var e=this;return s(regeneratorRuntime.mark((function t(){var n,r;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(t.prev=0,e.$route.query.id){t.next=4;break}return t.abrupt("return");case 4:return t.next=6,d.get("/api-student/open/orchestra/detail/"+e.$route.query.id);case 6:n=t.sent,r=n.data,e.orchestraInfo=r||{},r.canSignUp||(e.showPopup=!0,e.showPopupMessage="学校已关闭"),t.next=14;break;case 12:t.prev=12,t.t0=t.catch(0);case 14:case"end":return t.stop()}}),t,null,[[0,12]])})))()},getAppIdAndCode:function(e){return s(regeneratorRuntime.mark((function t(){var n,r;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,d.get("/api-student/open/paramConfig/wechatAppId");case 3:n=t.sent,(r=n.data)&&(f(),h(r,e)),t.next=10;break;case 8:t.prev=8,t.t0=t.catch(0);case 10:case"end":return t.stop()}}),t,null,[[0,8]])})))()},directNext:function(){if("login"===g.user.status||"error"===g.user.status){var t=this.$route.query,r=t.returnUrl,i=(t.isRegister,o(t,e)),s=window.location.origin+window.location.pathname+"#"+r+"?"+O.stringify(n({},i));this.testIsWeixin?this.locationReplace(s):this.getAppIdAndCode(s)}},locationReplace:function(e){console.log(history.replaceState,"window.history.replaceState",e),history.replaceState?(history.replaceState(null,document.title,e),history.go(0)):location.replace(e)},onLogin:function(){var e=this;return s(regeneratorRuntime.mark((function t(){var r,o,i,s;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,e.orchestraInfo.canSignUp||(e.showPopup=!0,e.showPopupMessage="学校已关闭"),r={username:e.username,client_id:"jmedu-student",client_secret:"jmedu-student",autoRegister:!0,password:e.smsCode,loginType:"SMS",grant_type:"password"},t.next=5,d.post("/api-oauth/userlogin",{requestType:"form",data:n({},r)});case 5:return o=t.sent,i=o.data,m(i.token_type+" "+i.access_token),t.next=10,d.get("/api-student/user/getUserInfo",{initRequest:!0});case 10:s=t.sent,y(s.data),e.directNext(),t.next=17;break;case 15:t.prev=15,t.t0=t.catch(0);case 17:case"end":return t.stop()}}),t,null,[[0,15]])})))()},onSendCode:function(){var e=this;return s(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r(e.username)){t.next=2;break}return t.abrupt("return",w("请输入正确的手机号码"));case 2:e.imgCodeStatus=!0;case 3:case"end":return t.stop()}}),t)})))()},onCodeSend:function(){var e=this;this.countDownStatus=!1,this.$nextTick((function(){e.$refs.countDownRef.start()}))},onFinished:function(){this.countDownStatus=!0,this.$refs.countDownRef.reset()},onChange:function(){"PWD"===this.loginType?this.loginType="SMS":"SMS"===this.loginType&&(this.loginType="PWD")}},render:function(){var e=this;return b("div",{class:v.login},[b("div",{class:v.loginTitle},[x("您好,"),b("br",null,null),x(" 欢迎使用管乐团学生端")]),b(P,{class:v.margin34,border:!1},{default:function(){return[b(i,{style:{marginBottom:"16px"}},{default:function(){return[b(a,{span:24,class:v.formTitle},{default:function(){return[x("手机号")]}}),b(a,{span:24,class:"van-hairline--bottom"},{default:function(){return[b(j,{modelValue:e.username,"onUpdate:modelValue":function(t){return e.username=t},name:"手机号",placeholder:"请输入您的手机号",type:"tel",maxlength:11},null)]}})]}}),b(i,null,{default:function(){return[b(a,{span:24,class:v.formTitle},{default:function(){return[x("验证码")]}}),b(a,{span:24,class:"van-hairline--bottom"},{default:function(){return[b(j,{modelValue:e.smsCode,"onUpdate:modelValue":function(t){return e.smsCode=t},name:"验证码",placeholder:"请输入验证码",type:"tel",maxlength:6},{button:function(){return e.countDownStatus?b("span",{class:v.codeText,onClick:e.onSendCode},[x("获取验证码")]):b(D,{ref:"countDownRef","auto-start":!1,time:e.countDownTime,onFinish:e.onFinished,format:"ss秒"},null)}})]}})]}})]}}),b("div",{class:v.margin34},[b(S,{round:!0,block:!0,type:"primary",disabled:this.codeDisable,onClick:this.onLogin},{default:function(){return[x("提交")]}})]),this.imgCodeStatus?b(u,{value:this.imgCodeStatus,"onUpdate:value":function(t){return e.imgCodeStatus=t},phone:this.username,type:"REGISTER",onClose:function(){e.imgCodeStatus=!1},onSendCode:this.onCodeSend},null):null,b(C,{show:this.showPopup,"onUpdate:show":function(t){return e.showPopup=t},round:!0,style:{width:"88%"},closeOnClickOverlay:!1,class:v.wxPopupDialog},{default:function(){return[b("div",{class:v.popupContainer},[b("p",{class:v.title},[x("温馨提示")]),b("p",{class:v.popupTips},[e.showPopupMessage])])]}})])}}))}}}))}(); >>>>>>> online:dist/assets/login-legacy.9d47d797.js ======= !function(){var e=["returnUrl","isRegister"];function t(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function n(e){for(var n=1;n=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function i(e,t,n,r,o,i,s){try{var a=e[i](s),u=a.value}catch(c){return void n(c)}a.done?t(u):Promise.resolve(u).then(r,o)}function s(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var s=e.apply(t,n);function a(e){i(s,r,o,a,u,"next",e)}function u(e){i(s,r,o,a,u,"throw",e)}a(void 0)}))}}System.register(["./validate-legacy.2f028650.js","./index-legacy.8574e5e7.js","./index-legacy.c75fe8a2.js","./index-legacy.53c89bb8.js","./index-legacy.54a1992d.js","./index-legacy.602f3fde.js","./index-legacy.699e3e6f.js","./index-legacy.5a075ae1.js"],(function(t){"use strict";var r,i,a,u,c,l,p,d,f,h,g,m,y,w,b,v,x,S,C,O,P,j,D;return{setters:[function(e){r=e.c,i=e.R,a=e.C,u=e.I},function(e){c=e.d,l=e.bd,p=e.e,d=e.m,f=e.be,h=e.bf,g=e.f,m=e.s,y=e.n,w=e.o,b=e.c,v=e.bg,x=e.q,S=e.B,C=e.P},function(e){O=e.q},function(e){P=e.C},function(e){j=e.F},function(e){D=e.C},function(){},function(){}],execute:function(){t("default",c({name:"login-music",data:function(){return{loginType:"SMS",username:"",password:"",smsCode:"",countDownStatus:!0,countDownTime:12e4,imgCodeStatus:!1,showPopup:!1,showPopupMessage:"请使用微信打开",wxAppId:"",code:"",orchestraInfo:{},testIsWeixin:!1}},computed:{codeDisable:function(){var e=!0;return this.username&&this.smsCode&&(e=!1),e}},mounted:function(){l(),this.directNext(),p().weixin||this.testIsWeixin||(this.showPopup=!0),this.getDetails()},methods:{getDetails:function(){var e=this;return s(regeneratorRuntime.mark((function t(){var n,r;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(t.prev=0,e.$route.query.id){t.next=4;break}return t.abrupt("return");case 4:return t.next=6,d.get("/api-student/open/orchestra/detail/"+e.$route.query.id);case 6:n=t.sent,r=n.data,e.orchestraInfo=r||{},r.canSignUp||(e.showPopup=!0,e.showPopupMessage="学校已关闭"),t.next=14;break;case 12:t.prev=12,t.t0=t.catch(0);case 14:case"end":return t.stop()}}),t,null,[[0,12]])})))()},getAppIdAndCode:function(e){return s(regeneratorRuntime.mark((function t(){var n,r;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,d.get("/api-student/open/paramConfig/wechatAppId");case 3:n=t.sent,(r=n.data)&&(f(),h(r,e)),t.next=10;break;case 8:t.prev=8,t.t0=t.catch(0);case 10:case"end":return t.stop()}}),t,null,[[0,8]])})))()},directNext:function(){if("login"===g.user.status||"error"===g.user.status){var t=this.$route.query,r=t.returnUrl,i=(t.isRegister,o(t,e)),s=window.location.origin+window.location.pathname+"#"+r+"?"+O.stringify(n({},i));this.testIsWeixin?this.locationReplace(s):this.getAppIdAndCode(s)}},locationReplace:function(e){console.log(history.replaceState,"window.history.replaceState",e),history.replaceState?(history.replaceState(null,document.title,e),history.go(0)):location.replace(e)},onLogin:function(){var e=this;return s(regeneratorRuntime.mark((function t(){var r,o,i,s;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,e.orchestraInfo.canSignUp||(e.showPopup=!0,e.showPopupMessage="学校已关闭"),r={username:e.username,client_id:"jmedu-student",client_secret:"jmedu-student",autoRegister:!0,password:e.smsCode,loginType:"SMS",grant_type:"password"},t.next=5,d.post("/api-oauth/userlogin",{requestType:"form",data:n({},r)});case 5:return o=t.sent,i=o.data,m(i.token_type+" "+i.access_token),t.next=10,d.get("/api-student/user/getUserInfo",{initRequest:!0});case 10:s=t.sent,y(s.data),e.directNext(),t.next=17;break;case 15:t.prev=15,t.t0=t.catch(0);case 17:case"end":return t.stop()}}),t,null,[[0,15]])})))()},onSendCode:function(){var e=this;return s(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r(e.username)){t.next=2;break}return t.abrupt("return",w("请输入正确的手机号码"));case 2:e.imgCodeStatus=!0;case 3:case"end":return t.stop()}}),t)})))()},onCodeSend:function(){var e=this;this.countDownStatus=!1,this.$nextTick((function(){e.$refs.countDownRef.start()}))},onFinished:function(){this.countDownStatus=!0,this.$refs.countDownRef.reset()},onChange:function(){"PWD"===this.loginType?this.loginType="SMS":"SMS"===this.loginType&&(this.loginType="PWD")}},render:function(){var e=this;return b("div",{class:v.login},[b("div",{class:v.loginTitle},[x("您好,"),b("br",null,null),x(" 欢迎使用管乐团学生端")]),b(P,{class:v.margin34,border:!1},{default:function(){return[b(i,{style:{marginBottom:"16px"}},{default:function(){return[b(a,{span:24,class:v.formTitle},{default:function(){return[x("手机号")]}}),b(a,{span:24,class:"van-hairline--bottom"},{default:function(){return[b(j,{modelValue:e.username,"onUpdate:modelValue":function(t){return e.username=t},name:"手机号",placeholder:"请输入您的手机号",type:"tel",maxlength:11},null)]}})]}}),b(i,null,{default:function(){return[b(a,{span:24,class:v.formTitle},{default:function(){return[x("验证码")]}}),b(a,{span:24,class:"van-hairline--bottom"},{default:function(){return[b(j,{modelValue:e.smsCode,"onUpdate:modelValue":function(t){return e.smsCode=t},name:"验证码",placeholder:"请输入验证码",type:"tel",maxlength:6},{button:function(){return e.countDownStatus?b("span",{class:v.codeText,onClick:e.onSendCode},[x("获取验证码")]):b(D,{ref:"countDownRef","auto-start":!1,time:e.countDownTime,onFinish:e.onFinished,format:"ss秒"},null)}})]}})]}})]}}),b("div",{class:v.margin34},[b(S,{round:!0,block:!0,type:"primary",disabled:this.codeDisable,onClick:this.onLogin},{default:function(){return[x("提交")]}})]),this.imgCodeStatus?b(u,{value:this.imgCodeStatus,"onUpdate:value":function(t){return e.imgCodeStatus=t},phone:this.username,type:"REGISTER",onClose:function(){e.imgCodeStatus=!1},onSendCode:this.onCodeSend},null):null,b(C,{show:this.showPopup,"onUpdate:show":function(t){return e.showPopup=t},round:!0,style:{width:"88%"},closeOnClickOverlay:!1,class:v.wxPopupDialog},{default:function(){return[b("div",{class:v.popupContainer},[b("p",{class:v.title},[x("温馨提示")]),b("p",{class:v.popupTips},[e.showPopupMessage])])]}})])}}))}}}))}(); >>>>>>> online:dist/assets/login-legacy.6b82a5bc.js ======= !function(){var e=["returnUrl","isRegister"];function t(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function n(e){for(var n=1;n=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function i(e,t,n,r,o,i,s){try{var a=e[i](s),u=a.value}catch(c){return void n(c)}a.done?t(u):Promise.resolve(u).then(r,o)}function s(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var s=e.apply(t,n);function a(e){i(s,r,o,a,u,"next",e)}function u(e){i(s,r,o,a,u,"throw",e)}a(void 0)}))}}System.register(["./validate-legacy.14abbd99.js","./index-legacy.a92e643d.js","./index-legacy.c75fe8a2.js","./index-legacy.8e1720d1.js","./index-legacy.6adde0c8.js","./index-legacy.22492040.js","./index-legacy.6869fc07.js","./index-legacy.0d047717.js"],(function(t){"use strict";var r,i,a,u,c,l,p,d,f,h,g,m,y,w,b,v,x,S,C,O,P,j,D;return{setters:[function(e){r=e.c,i=e.R,a=e.C,u=e.I},function(e){c=e.d,l=e.bd,p=e.e,d=e.m,f=e.be,h=e.bf,g=e.f,m=e.s,y=e.n,w=e.o,b=e.c,v=e.bg,x=e.q,S=e.B,C=e.P},function(e){O=e.q},function(e){P=e.C},function(e){j=e.F},function(e){D=e.C},function(){},function(){}],execute:function(){t("default",c({name:"login-music",data:function(){return{loginType:"SMS",username:"",password:"",smsCode:"",countDownStatus:!0,countDownTime:12e4,imgCodeStatus:!1,showPopup:!1,showPopupMessage:"请使用微信打开",wxAppId:"",code:"",orchestraInfo:{},testIsWeixin:!1}},computed:{codeDisable:function(){var e=!0;return this.username&&this.smsCode&&(e=!1),e}},mounted:function(){l(),this.directNext(),p().weixin||this.testIsWeixin||(this.showPopup=!0),this.getDetails()},methods:{getDetails:function(){var e=this;return s(regeneratorRuntime.mark((function t(){var n,r;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(t.prev=0,e.$route.query.id){t.next=4;break}return t.abrupt("return");case 4:return t.next=6,d.get("/api-student/open/orchestra/detail/"+e.$route.query.id);case 6:n=t.sent,r=n.data,e.orchestraInfo=r||{},r.canSignUp||(e.showPopup=!0,e.showPopupMessage="学校已关闭"),t.next=14;break;case 12:t.prev=12,t.t0=t.catch(0);case 14:case"end":return t.stop()}}),t,null,[[0,12]])})))()},getAppIdAndCode:function(e){return s(regeneratorRuntime.mark((function t(){var n,r;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,d.get("/api-student/open/paramConfig/wechatAppId");case 3:n=t.sent,(r=n.data)&&(f(),h(r,e)),t.next=10;break;case 8:t.prev=8,t.t0=t.catch(0);case 10:case"end":return t.stop()}}),t,null,[[0,8]])})))()},directNext:function(){if("login"===g.user.status||"error"===g.user.status){var t=this.$route.query,r=t.returnUrl,i=(t.isRegister,o(t,e)),s=window.location.origin+window.location.pathname+"#"+r+"?"+O.stringify(n({},i));this.testIsWeixin?this.locationReplace(s):this.getAppIdAndCode(s)}},locationReplace:function(e){console.log(history.replaceState,"window.history.replaceState",e),history.replaceState?(history.replaceState(null,document.title,e),history.go(0)):location.replace(e)},onLogin:function(){var e=this;return s(regeneratorRuntime.mark((function t(){var r,o,i,s;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,e.orchestraInfo.canSignUp||(e.showPopup=!0,e.showPopupMessage="学校已关闭"),r={username:e.username,client_id:"jmedu-student",client_secret:"jmedu-student",autoRegister:!0,password:e.smsCode,loginType:"SMS",grant_type:"password"},t.next=5,d.post("/api-oauth/userlogin",{requestType:"form",data:n({},r)});case 5:return o=t.sent,i=o.data,m(i.token_type+" "+i.access_token),t.next=10,d.get("/api-student/user/getUserInfo",{initRequest:!0});case 10:s=t.sent,y(s.data),e.directNext(),t.next=17;break;case 15:t.prev=15,t.t0=t.catch(0);case 17:case"end":return t.stop()}}),t,null,[[0,15]])})))()},onSendCode:function(){var e=this;return s(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r(e.username)){t.next=2;break}return t.abrupt("return",w("请输入正确的手机号码"));case 2:e.imgCodeStatus=!0;case 3:case"end":return t.stop()}}),t)})))()},onCodeSend:function(){var e=this;this.countDownStatus=!1,this.$nextTick((function(){e.$refs.countDownRef.start()}))},onFinished:function(){this.countDownStatus=!0,this.$refs.countDownRef.reset()},onChange:function(){"PWD"===this.loginType?this.loginType="SMS":"SMS"===this.loginType&&(this.loginType="PWD")}},render:function(){var e=this;return b("div",{class:v.login},[b("div",{class:v.loginTitle},[x("您好,"),b("br",null,null),x(" 欢迎使用管乐团学生端")]),b(P,{class:v.margin34,border:!1},{default:function(){return[b(i,{style:{marginBottom:"16px"}},{default:function(){return[b(a,{span:24,class:v.formTitle},{default:function(){return[x("手机号")]}}),b(a,{span:24,class:"van-hairline--bottom"},{default:function(){return[b(j,{modelValue:e.username,"onUpdate:modelValue":function(t){return e.username=t},name:"手机号",placeholder:"请输入您的手机号",type:"tel",maxlength:11},null)]}})]}}),b(i,null,{default:function(){return[b(a,{span:24,class:v.formTitle},{default:function(){return[x("验证码")]}}),b(a,{span:24,class:"van-hairline--bottom"},{default:function(){return[b(j,{modelValue:e.smsCode,"onUpdate:modelValue":function(t){return e.smsCode=t},name:"验证码",placeholder:"请输入验证码",type:"tel",maxlength:6},{button:function(){return e.countDownStatus?b("span",{class:v.codeText,onClick:e.onSendCode},[x("获取验证码")]):b(D,{ref:"countDownRef","auto-start":!1,time:e.countDownTime,onFinish:e.onFinished,format:"ss秒"},null)}})]}})]}})]}}),b("div",{class:v.margin34},[b(S,{round:!0,block:!0,type:"primary",disabled:this.codeDisable,onClick:this.onLogin},{default:function(){return[x("提交")]}})]),this.imgCodeStatus?b(u,{value:this.imgCodeStatus,"onUpdate:value":function(t){return e.imgCodeStatus=t},phone:this.username,type:"REGISTER",onClose:function(){e.imgCodeStatus=!1},onSendCode:this.onCodeSend},null):null,b(C,{show:this.showPopup,"onUpdate:show":function(t){return e.showPopup=t},round:!0,style:{width:"88%"},closeOnClickOverlay:!1,class:v.wxPopupDialog},{default:function(){return[b("div",{class:v.popupContainer},[b("p",{class:v.title},[x("温馨提示")]),b("p",{class:v.popupTips},[e.showPopupMessage])])]}})])}}))}}}))}(); >>>>>>> manage-cicle:dist/assets/login-legacy.f79faff2.js