login-legacy.6b82a5bc.js 42 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555
  1. <<<<<<< HEAD:dist/assets/login-legacy.9d47d797.js
  2. <<<<<<< HEAD:dist/assets/login-legacy.a30c7bdc.js
  3. <<<<<<< HEAD:dist/assets/login-legacy.96432545.js
  4. !(function () {
  5. var e = ['returnUrl', 'isRegister']
  6. function t(e, t) {
  7. var n = Object.keys(e)
  8. if (Object.getOwnPropertySymbols) {
  9. var r = Object.getOwnPropertySymbols(e)
  10. t &&
  11. (r = r.filter(function (t) {
  12. return Object.getOwnPropertyDescriptor(e, t).enumerable
  13. })),
  14. n.push.apply(n, r)
  15. }
  16. return n
  17. }
  18. function n(e) {
  19. for (var n = 1; n < arguments.length; n++) {
  20. var o = null != arguments[n] ? arguments[n] : {}
  21. n % 2
  22. ? t(Object(o), !0).forEach(function (t) {
  23. r(e, t, o[t])
  24. })
  25. : Object.getOwnPropertyDescriptors
  26. ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(o))
  27. : t(Object(o)).forEach(function (t) {
  28. Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(o, t))
  29. })
  30. }
  31. return e
  32. }
  33. function r(e, t, n) {
  34. return (
  35. t in e
  36. ? Object.defineProperty(e, t, { value: n, enumerable: !0, configurable: !0, writable: !0 })
  37. : (e[t] = n),
  38. e
  39. )
  40. }
  41. function o(e, t) {
  42. if (null == e) return {}
  43. var n,
  44. r,
  45. o = (function (e, t) {
  46. if (null == e) return {}
  47. var n,
  48. r,
  49. o = {},
  50. i = Object.keys(e)
  51. for (r = 0; r < i.length; r++) (n = i[r]), t.indexOf(n) >= 0 || (o[n] = e[n])
  52. return o
  53. })(e, t)
  54. if (Object.getOwnPropertySymbols) {
  55. var i = Object.getOwnPropertySymbols(e)
  56. for (r = 0; r < i.length; r++)
  57. (n = i[r]),
  58. t.indexOf(n) >= 0 || (Object.prototype.propertyIsEnumerable.call(e, n) && (o[n] = e[n]))
  59. }
  60. return o
  61. }
  62. function i(e, t, n, r, o, i, s) {
  63. try {
  64. var a = e[i](s),
  65. u = a.value
  66. } catch (c) {
  67. return void n(c)
  68. }
  69. a.done ? t(u) : Promise.resolve(u).then(r, o)
  70. }
  71. function s(e) {
  72. return function () {
  73. var t = this,
  74. n = arguments
  75. return new Promise(function (r, o) {
  76. var s = e.apply(t, n)
  77. function a(e) {
  78. i(s, r, o, a, u, 'next', e)
  79. }
  80. function u(e) {
  81. i(s, r, o, a, u, 'throw', e)
  82. }
  83. a(void 0)
  84. })
  85. }
  86. }
  87. System.register(
  88. [
  89. './validate-legacy.2af58e56.js',
  90. './index-legacy.37a26c18.js',
  91. './index-legacy.c75fe8a2.js',
  92. './index-legacy.a5bef69a.js',
  93. './index-legacy.b08187e4.js',
  94. './index-legacy.ae8ecab9.js',
  95. './index-legacy.d552d569.js',
  96. './index-legacy.1f5a1fbe.js'
  97. ],
  98. function (t) {
  99. 'use strict'
  100. var r, i, a, u, c, l, p, d, f, h, g, m, y, w, b, v, x, S, C, O, P, j, D
  101. return {
  102. setters: [
  103. function (e) {
  104. ;(r = e.c), (i = e.R), (a = e.C), (u = e.I)
  105. },
  106. function (e) {
  107. ;(c = e.d),
  108. (l = e.bd),
  109. (p = e.e),
  110. (d = e.m),
  111. (f = e.be),
  112. (h = e.bf),
  113. (g = e.f),
  114. (m = e.s),
  115. (y = e.n),
  116. (w = e.o),
  117. (b = e.c),
  118. (v = e.bg),
  119. (x = e.q),
  120. (S = e.B),
  121. (C = e.P)
  122. },
  123. function (e) {
  124. O = e.q
  125. },
  126. function (e) {
  127. P = e.C
  128. },
  129. function (e) {
  130. j = e.F
  131. },
  132. function (e) {
  133. D = e.C
  134. },
  135. function () {},
  136. function () {}
  137. ],
  138. execute: function () {
  139. t(
  140. 'default',
  141. c({
  142. name: 'login-music',
  143. data: function () {
  144. return {
  145. loginType: 'SMS',
  146. username: '',
  147. password: '',
  148. smsCode: '',
  149. countDownStatus: !0,
  150. countDownTime: 12e4,
  151. imgCodeStatus: !1,
  152. showPopup: !1,
  153. showPopupMessage: '请使用微信打开',
  154. wxAppId: '',
  155. code: '',
  156. orchestraInfo: {},
  157. testIsWeixin: !1
  158. }
  159. },
  160. computed: {
  161. codeDisable: function () {
  162. var e = !0
  163. return this.username && this.smsCode && (e = !1), e
  164. }
  165. },
  166. mounted: function () {
  167. l(),
  168. this.directNext(),
  169. p().weixin || this.testIsWeixin || (this.showPopup = !0),
  170. this.getDetails()
  171. },
  172. methods: {
  173. getDetails: function () {
  174. var e = this
  175. return s(
  176. regeneratorRuntime.mark(function t() {
  177. var n, r
  178. return regeneratorRuntime.wrap(
  179. function (t) {
  180. for (;;)
  181. switch ((t.prev = t.next)) {
  182. case 0:
  183. if (((t.prev = 0), e.$route.query.id)) {
  184. t.next = 4
  185. break
  186. }
  187. return t.abrupt('return')
  188. case 4:
  189. return (
  190. (t.next = 6),
  191. d.get('/api-student/open/orchestra/detail/' + e.$route.query.id)
  192. )
  193. case 6:
  194. ;(n = t.sent),
  195. (r = n.data),
  196. (e.orchestraInfo = r || {}),
  197. r.canSignUp ||
  198. ((e.showPopup = !0), (e.showPopupMessage = '学校已关闭')),
  199. (t.next = 14)
  200. break
  201. case 12:
  202. ;(t.prev = 12), (t.t0 = t.catch(0))
  203. case 14:
  204. case 'end':
  205. return t.stop()
  206. }
  207. },
  208. t,
  209. null,
  210. [[0, 12]]
  211. )
  212. })
  213. )()
  214. },
  215. getAppIdAndCode: function (e) {
  216. return s(
  217. regeneratorRuntime.mark(function t() {
  218. var n, r
  219. return regeneratorRuntime.wrap(
  220. function (t) {
  221. for (;;)
  222. switch ((t.prev = t.next)) {
  223. case 0:
  224. return (
  225. (t.prev = 0),
  226. (t.next = 3),
  227. d.get('/api-student/open/paramConfig/wechatAppId')
  228. )
  229. case 3:
  230. ;(n = t.sent), (r = n.data) && (f(), h(r, e)), (t.next = 10)
  231. break
  232. case 8:
  233. ;(t.prev = 8), (t.t0 = t.catch(0))
  234. case 10:
  235. case 'end':
  236. return t.stop()
  237. }
  238. },
  239. t,
  240. null,
  241. [[0, 8]]
  242. )
  243. })
  244. )()
  245. },
  246. directNext: function () {
  247. if ('login' === g.user.status || 'error' === g.user.status) {
  248. var t = this.$route.query,
  249. r = t.returnUrl,
  250. i = (t.isRegister, o(t, e)),
  251. s =
  252. window.location.origin +
  253. window.location.pathname +
  254. '#' +
  255. r +
  256. '?' +
  257. O.stringify(n({}, i))
  258. this.testIsWeixin ? this.locationReplace(s) : this.getAppIdAndCode(s)
  259. }
  260. },
  261. locationReplace: function (e) {
  262. console.log(history.replaceState, 'window.history.replaceState', e),
  263. history.replaceState
  264. ? (history.replaceState(null, document.title, e), history.go(0))
  265. : location.replace(e)
  266. },
  267. onLogin: function () {
  268. var e = this
  269. return s(
  270. regeneratorRuntime.mark(function t() {
  271. var r, o, i, s
  272. return regeneratorRuntime.wrap(
  273. function (t) {
  274. for (;;)
  275. switch ((t.prev = t.next)) {
  276. case 0:
  277. return (
  278. (t.prev = 0),
  279. e.orchestraInfo.canSignUp ||
  280. ((e.showPopup = !0), (e.showPopupMessage = '学校已关闭')),
  281. (r = {
  282. username: e.username,
  283. client_id: 'jmedu-student',
  284. client_secret: 'jmedu-student',
  285. autoRegister: !0,
  286. password: e.smsCode,
  287. loginType: 'SMS',
  288. grant_type: 'password'
  289. }),
  290. (t.next = 5),
  291. d.post('/api-oauth/userlogin', {
  292. requestType: 'form',
  293. data: n({}, r)
  294. })
  295. )
  296. case 5:
  297. return (
  298. (o = t.sent),
  299. (i = o.data),
  300. m(i.token_type + ' ' + i.access_token),
  301. (t.next = 10),
  302. d.get('/api-student/user/getUserInfo', { initRequest: !0 })
  303. )
  304. case 10:
  305. ;(s = t.sent), y(s.data), e.directNext(), (t.next = 17)
  306. break
  307. case 15:
  308. ;(t.prev = 15), (t.t0 = t.catch(0))
  309. case 17:
  310. case 'end':
  311. return t.stop()
  312. }
  313. },
  314. t,
  315. null,
  316. [[0, 15]]
  317. )
  318. })
  319. )()
  320. },
  321. onSendCode: function () {
  322. var e = this
  323. return s(
  324. regeneratorRuntime.mark(function t() {
  325. return regeneratorRuntime.wrap(function (t) {
  326. for (;;)
  327. switch ((t.prev = t.next)) {
  328. case 0:
  329. if (r(e.username)) {
  330. t.next = 2
  331. break
  332. }
  333. return t.abrupt('return', w('请输入正确的手机号码'))
  334. case 2:
  335. e.imgCodeStatus = !0
  336. case 3:
  337. case 'end':
  338. return t.stop()
  339. }
  340. }, t)
  341. })
  342. )()
  343. },
  344. onCodeSend: function () {
  345. var e = this
  346. ;(this.countDownStatus = !1),
  347. this.$nextTick(function () {
  348. e.$refs.countDownRef.start()
  349. })
  350. },
  351. onFinished: function () {
  352. ;(this.countDownStatus = !0), this.$refs.countDownRef.reset()
  353. },
  354. onChange: function () {
  355. 'PWD' === this.loginType
  356. ? (this.loginType = 'SMS')
  357. : 'SMS' === this.loginType && (this.loginType = 'PWD')
  358. }
  359. },
  360. render: function () {
  361. var e = this
  362. return b('div', { class: v.login }, [
  363. b('div', { class: v.loginTitle }, [
  364. x('您好,'),
  365. b('br', null, null),
  366. x(' 欢迎使用管乐团学员端')
  367. ]),
  368. b(
  369. P,
  370. { class: v.margin34, border: !1 },
  371. {
  372. default: function () {
  373. return [
  374. b(
  375. i,
  376. { style: { marginBottom: '16px' } },
  377. {
  378. default: function () {
  379. return [
  380. b(
  381. a,
  382. { span: 24, class: v.formTitle },
  383. {
  384. default: function () {
  385. return [x('手机号')]
  386. }
  387. }
  388. ),
  389. b(
  390. a,
  391. { span: 24, class: 'van-hairline--bottom' },
  392. {
  393. default: function () {
  394. return [
  395. b(
  396. j,
  397. {
  398. modelValue: e.username,
  399. 'onUpdate:modelValue': function (t) {
  400. return (e.username = t)
  401. },
  402. name: '手机号',
  403. placeholder: '请输入您的手机号',
  404. type: 'tel',
  405. maxlength: 11
  406. },
  407. null
  408. )
  409. ]
  410. }
  411. }
  412. )
  413. ]
  414. }
  415. }
  416. ),
  417. b(i, null, {
  418. default: function () {
  419. return [
  420. b(
  421. a,
  422. { span: 24, class: v.formTitle },
  423. {
  424. default: function () {
  425. return [x('验证码')]
  426. }
  427. }
  428. ),
  429. b(
  430. a,
  431. { span: 24, class: 'van-hairline--bottom' },
  432. {
  433. default: function () {
  434. return [
  435. b(
  436. j,
  437. {
  438. modelValue: e.smsCode,
  439. 'onUpdate:modelValue': function (t) {
  440. return (e.smsCode = t)
  441. },
  442. name: '验证码',
  443. placeholder: '请输入验证码',
  444. type: 'tel',
  445. maxlength: 6
  446. },
  447. {
  448. button: function () {
  449. return e.countDownStatus
  450. ? b(
  451. 'span',
  452. { class: v.codeText, onClick: e.onSendCode },
  453. [x('获取验证码')]
  454. )
  455. : b(
  456. D,
  457. {
  458. ref: 'countDownRef',
  459. 'auto-start': !1,
  460. time: e.countDownTime,
  461. onFinish: e.onFinished,
  462. format: 'ss秒'
  463. },
  464. null
  465. )
  466. }
  467. }
  468. )
  469. ]
  470. }
  471. }
  472. )
  473. ]
  474. }
  475. })
  476. ]
  477. }
  478. }
  479. ),
  480. b('div', { class: v.margin34 }, [
  481. b(
  482. S,
  483. {
  484. round: !0,
  485. block: !0,
  486. type: 'primary',
  487. disabled: this.codeDisable,
  488. onClick: this.onLogin
  489. },
  490. {
  491. default: function () {
  492. return [x('提交')]
  493. }
  494. }
  495. )
  496. ]),
  497. this.imgCodeStatus
  498. ? b(
  499. u,
  500. {
  501. value: this.imgCodeStatus,
  502. 'onUpdate:value': function (t) {
  503. return (e.imgCodeStatus = t)
  504. },
  505. phone: this.username,
  506. type: 'REGISTER',
  507. onClose: function () {
  508. e.imgCodeStatus = !1
  509. },
  510. onSendCode: this.onCodeSend
  511. },
  512. null
  513. )
  514. : null,
  515. b(
  516. C,
  517. {
  518. show: this.showPopup,
  519. 'onUpdate:show': function (t) {
  520. return (e.showPopup = t)
  521. },
  522. round: !0,
  523. style: { width: '88%' },
  524. closeOnClickOverlay: !1,
  525. class: v.wxPopupDialog
  526. },
  527. {
  528. default: function () {
  529. return [
  530. b('div', { class: v.popupContainer }, [
  531. b('p', { class: v.title }, [x('温馨提示')]),
  532. b('p', { class: v.popupTips }, [e.showPopupMessage])
  533. ])
  534. ]
  535. }
  536. }
  537. )
  538. ])
  539. }
  540. })
  541. )
  542. }
  543. }
  544. }
  545. )
  546. })()
  547. =======
  548. !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])])]}})])}}))}}}))}();
  549. >>>>>>> online:dist/assets/login-legacy.a30c7bdc.js
  550. =======
  551. !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])])]}})])}}))}}}))}();
  552. >>>>>>> online:dist/assets/login-legacy.9d47d797.js
  553. =======
  554. !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])])]}})])}}))}}}))}();
  555. >>>>>>> online:dist/assets/login-legacy.6b82a5bc.js