| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555 |
- <<<<<<< 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<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.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<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.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<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.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
|