| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685 |
- !(function () {
- function t(e) {
- return (
- (t =
- 'function' == typeof Symbol && 'symbol' == typeof Symbol.iterator
- ? function (t) {
- return typeof t;
- }
- : function (t) {
- return t &&
- 'function' == typeof Symbol &&
- t.constructor === Symbol &&
- t !== Symbol.prototype
- ? 'symbol'
- : typeof t;
- }),
- t(e)
- );
- }
- function e() {
- 'use strict';
- /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ e =
- function () {
- return r;
- };
- var r = {},
- o = Object.prototype,
- n = o.hasOwnProperty,
- i =
- Object.defineProperty ||
- function (t, e, r) {
- t[e] = r.value;
- },
- a = 'function' == typeof Symbol ? Symbol : {},
- c = a.iterator || '@@iterator',
- u = a.asyncIterator || '@@asyncIterator',
- l = a.toStringTag || '@@toStringTag';
- function s(t, e, r) {
- return (
- Object.defineProperty(t, e, {
- value: r,
- enumerable: !0,
- configurable: !0,
- writable: !0
- }),
- t[e]
- );
- }
- try {
- s({}, '');
- } catch (R) {
- s = function (t, e, r) {
- return (t[e] = r);
- };
- }
- function h(t, e, r, o) {
- var n = e && e.prototype instanceof d ? e : d,
- a = Object.create(n.prototype),
- c = new S(o || []);
- return i(a, '_invoke', { value: _(t, r, c) }), a;
- }
- function p(t, e, r) {
- try {
- return { type: 'normal', arg: t.call(e, r) };
- } catch (R) {
- return { type: 'throw', arg: R };
- }
- }
- r.wrap = h;
- var f = {};
- function d() {}
- function A() {}
- function y() {}
- var m = {};
- s(m, c, function () {
- return this;
- });
- var v = Object.getPrototypeOf,
- g = v && v(v(T([])));
- g && g !== o && n.call(g, c) && (m = g);
- var w = (y.prototype = d.prototype = Object.create(m));
- function b(t) {
- ['next', 'throw', 'return'].forEach(function (e) {
- s(t, e, function (t) {
- return this._invoke(e, t);
- });
- });
- }
- function E(e, r) {
- function o(i, a, c, u) {
- var l = p(e[i], e, a);
- if ('throw' !== l.type) {
- var s = l.arg,
- h = s.value;
- return h && 'object' == t(h) && n.call(h, '__await')
- ? r.resolve(h.__await).then(
- function (t) {
- o('next', t, c, u);
- },
- function (t) {
- o('throw', t, c, u);
- }
- )
- : r.resolve(h).then(
- function (t) {
- (s.value = t), c(s);
- },
- function (t) {
- return o('throw', t, c, u);
- }
- );
- }
- u(l.arg);
- }
- var a;
- i(this, '_invoke', {
- value: function (t, e) {
- function n() {
- return new r(function (r, n) {
- o(t, e, r, n);
- });
- }
- return (a = a ? a.then(n, n) : n());
- }
- });
- }
- function _(t, e, r) {
- var o = 'suspendedStart';
- return function (n, i) {
- if ('executing' === o) throw new Error('Generator is already running');
- if ('completed' === o) {
- if ('throw' === n) throw i;
- return P();
- }
- for (r.method = n, r.arg = i; ; ) {
- var a = r.delegate;
- if (a) {
- var c = x(a, r);
- if (c) {
- if (c === f) continue;
- return c;
- }
- }
- if ('next' === r.method) r.sent = r._sent = r.arg;
- else if ('throw' === r.method) {
- if ('suspendedStart' === o) throw ((o = 'completed'), r.arg);
- r.dispatchException(r.arg);
- } else 'return' === r.method && r.abrupt('return', r.arg);
- o = 'executing';
- var u = p(t, e, r);
- if ('normal' === u.type) {
- if (((o = r.done ? 'completed' : 'suspendedYield'), u.arg === f))
- continue;
- return { value: u.arg, done: r.done };
- }
- 'throw' === u.type &&
- ((o = 'completed'), (r.method = 'throw'), (r.arg = u.arg));
- }
- };
- }
- function x(t, e) {
- var r = e.method,
- o = t.iterator[r];
- if (void 0 === o)
- return (
- (e.delegate = null),
- ('throw' === r &&
- t.iterator.return &&
- ((e.method = 'return'),
- (e.arg = void 0),
- x(t, e),
- 'throw' === e.method)) ||
- ('return' !== r &&
- ((e.method = 'throw'),
- (e.arg = new TypeError(
- "The iterator does not provide a '" + r + "' method"
- )))),
- f
- );
- var n = p(o, t.iterator, e.arg);
- if ('throw' === n.type)
- return (e.method = 'throw'), (e.arg = n.arg), (e.delegate = null), f;
- var i = n.arg;
- return i
- ? i.done
- ? ((e[t.resultName] = i.value),
- (e.next = t.nextLoc),
- 'return' !== e.method && ((e.method = 'next'), (e.arg = void 0)),
- (e.delegate = null),
- f)
- : i
- : ((e.method = 'throw'),
- (e.arg = new TypeError('iterator result is not an object')),
- (e.delegate = null),
- f);
- }
- function L(t) {
- var e = { tryLoc: t[0] };
- 1 in t && (e.catchLoc = t[1]),
- 2 in t && ((e.finallyLoc = t[2]), (e.afterLoc = t[3])),
- this.tryEntries.push(e);
- }
- function k(t) {
- var e = t.completion || {};
- (e.type = 'normal'), delete e.arg, (t.completion = e);
- }
- function S(t) {
- (this.tryEntries = [{ tryLoc: 'root' }]),
- t.forEach(L, this),
- this.reset(!0);
- }
- function T(t) {
- if (t) {
- var e = t[c];
- if (e) return e.call(t);
- if ('function' == typeof t.next) return t;
- if (!isNaN(t.length)) {
- var r = -1,
- o = function e() {
- for (; ++r < t.length; )
- if (n.call(t, r)) return (e.value = t[r]), (e.done = !1), e;
- return (e.value = void 0), (e.done = !0), e;
- };
- return (o.next = o);
- }
- }
- return { next: P };
- }
- function P() {
- return { value: void 0, done: !0 };
- }
- return (
- (A.prototype = y),
- i(w, 'constructor', { value: y, configurable: !0 }),
- i(y, 'constructor', { value: A, configurable: !0 }),
- (A.displayName = s(y, l, 'GeneratorFunction')),
- (r.isGeneratorFunction = function (t) {
- var e = 'function' == typeof t && t.constructor;
- return (
- !!e && (e === A || 'GeneratorFunction' === (e.displayName || e.name))
- );
- }),
- (r.mark = function (t) {
- return (
- Object.setPrototypeOf
- ? Object.setPrototypeOf(t, y)
- : ((t.__proto__ = y), s(t, l, 'GeneratorFunction')),
- (t.prototype = Object.create(w)),
- t
- );
- }),
- (r.awrap = function (t) {
- return { __await: t };
- }),
- b(E.prototype),
- s(E.prototype, u, function () {
- return this;
- }),
- (r.AsyncIterator = E),
- (r.async = function (t, e, o, n, i) {
- void 0 === i && (i = Promise);
- var a = new E(h(t, e, o, n), i);
- return r.isGeneratorFunction(e)
- ? a
- : a.next().then(function (t) {
- return t.done ? t.value : a.next();
- });
- }),
- b(w),
- s(w, l, 'Generator'),
- s(w, c, function () {
- return this;
- }),
- s(w, 'toString', function () {
- return '[object Generator]';
- }),
- (r.keys = function (t) {
- var e = Object(t),
- r = [];
- for (var o in e) r.push(o);
- return (
- r.reverse(),
- function t() {
- for (; r.length; ) {
- var o = r.pop();
- if (o in e) return (t.value = o), (t.done = !1), t;
- }
- return (t.done = !0), t;
- }
- );
- }),
- (r.values = T),
- (S.prototype = {
- constructor: S,
- reset: function (t) {
- if (
- ((this.prev = 0),
- (this.next = 0),
- (this.sent = this._sent = void 0),
- (this.done = !1),
- (this.delegate = null),
- (this.method = 'next'),
- (this.arg = void 0),
- this.tryEntries.forEach(k),
- !t)
- )
- for (var e in this)
- 't' === e.charAt(0) &&
- n.call(this, e) &&
- !isNaN(+e.slice(1)) &&
- (this[e] = void 0);
- },
- stop: function () {
- this.done = !0;
- var t = this.tryEntries[0].completion;
- if ('throw' === t.type) throw t.arg;
- return this.rval;
- },
- dispatchException: function (t) {
- if (this.done) throw t;
- var e = this;
- function r(r, o) {
- return (
- (a.type = 'throw'),
- (a.arg = t),
- (e.next = r),
- o && ((e.method = 'next'), (e.arg = void 0)),
- !!o
- );
- }
- for (var o = this.tryEntries.length - 1; o >= 0; --o) {
- var i = this.tryEntries[o],
- a = i.completion;
- if ('root' === i.tryLoc) return r('end');
- if (i.tryLoc <= this.prev) {
- var c = n.call(i, 'catchLoc'),
- u = n.call(i, 'finallyLoc');
- if (c && u) {
- if (this.prev < i.catchLoc) return r(i.catchLoc, !0);
- if (this.prev < i.finallyLoc) return r(i.finallyLoc);
- } else if (c) {
- if (this.prev < i.catchLoc) return r(i.catchLoc, !0);
- } else {
- if (!u)
- throw new Error('try statement without catch or finally');
- if (this.prev < i.finallyLoc) return r(i.finallyLoc);
- }
- }
- }
- },
- abrupt: function (t, e) {
- for (var r = this.tryEntries.length - 1; r >= 0; --r) {
- var o = this.tryEntries[r];
- if (
- o.tryLoc <= this.prev &&
- n.call(o, 'finallyLoc') &&
- this.prev < o.finallyLoc
- ) {
- var i = o;
- break;
- }
- }
- i &&
- ('break' === t || 'continue' === t) &&
- i.tryLoc <= e &&
- e <= i.finallyLoc &&
- (i = null);
- var a = i ? i.completion : {};
- return (
- (a.type = t),
- (a.arg = e),
- i
- ? ((this.method = 'next'), (this.next = i.finallyLoc), f)
- : this.complete(a)
- );
- },
- complete: function (t, e) {
- if ('throw' === t.type) throw t.arg;
- return (
- 'break' === t.type || 'continue' === t.type
- ? (this.next = t.arg)
- : 'return' === t.type
- ? ((this.rval = this.arg = t.arg),
- (this.method = 'return'),
- (this.next = 'end'))
- : 'normal' === t.type && e && (this.next = e),
- f
- );
- },
- finish: function (t) {
- for (var e = this.tryEntries.length - 1; e >= 0; --e) {
- var r = this.tryEntries[e];
- if (r.finallyLoc === t)
- return this.complete(r.completion, r.afterLoc), k(r), f;
- }
- },
- catch: function (t) {
- for (var e = this.tryEntries.length - 1; e >= 0; --e) {
- var r = this.tryEntries[e];
- if (r.tryLoc === t) {
- var o = r.completion;
- if ('throw' === o.type) {
- var n = o.arg;
- k(r);
- }
- return n;
- }
- }
- throw new Error('illegal catch attempt');
- },
- delegateYield: function (t, e, r) {
- return (
- (this.delegate = { iterator: T(t), resultName: e, nextLoc: r }),
- 'next' === this.method && (this.arg = void 0),
- f
- );
- }
- }),
- r
- );
- }
- function r(t, e, r, o, n, i, a) {
- try {
- var c = t[i](a),
- u = c.value;
- } catch (l) {
- return void r(l);
- }
- c.done ? e(u) : Promise.resolve(u).then(o, n);
- }
- function o(t) {
- return function () {
- var e = this,
- o = arguments;
- return new Promise(function (n, i) {
- var a = t.apply(e, o);
- function c(t) {
- r(a, n, i, c, u, 'next', t);
- }
- function u(t) {
- r(a, n, i, c, u, 'throw', t);
- }
- c(void 0);
- });
- };
- }
- System.register(
- ['./index-legacy-ffa013bd.js', './index-legacy-73fe1d4a.js'],
- function (t, r) {
- 'use strict';
- var n, i, a, c, u, l, s, h;
- return {
- setters: [
- function (t) {
- (n = t.d),
- (i = t.D),
- (a = t.a),
- (c = t.A),
- (u = t.I),
- (l = t.V),
- (s = t.S);
- },
- function (t) {
- h = t.C;
- }
- ],
- execute: function () {
- var r = document.createElement('style');
- (r.textContent =
- '._mProtocol_7s6ie_1{font-size:.32rem;padding:.4rem .37333rem;color:var(--k-gray-4)}._mProtocol_7s6ie_1._center_7s6ie_6{display:flex;align-items:center;justify-content:center}._mProtocol_7s6ie_1 ._protocolText_7s6ie_11{color:#f96a33;line-height:.4rem}._mProtocol_7s6ie_1 ._boxStyle_7s6ie_15{background:transparent!important;width:.4rem;height:.4rem;font-size:.4rem;border:transparent!important}._mProtocol_7s6ie_1 img{width:100%}._mProtocol_7s6ie_1 .van-checkbox{display:inline-block;align-items:inherit;overflow:inherit}._mProtocol_7s6ie_1 .van-checkbox__icon{height:.4rem;line-height:.4rem;display:inline-block;vertical-align:sub}._mProtocol_7s6ie_1 .van-checkbox__label{line-height:.4rem;color:var(--k-gray-4)}._mProtocol_7s6ie_1 ._protocolContent_7s6ie_40{font-size:.37333rem;padding:.32rem;color:#333;line-height:1.4}\n'),
- document.head.appendChild(r);
- var p = '_mProtocol_7s6ie_1',
- f = '_center_7s6ie_6',
- d = '_protocolText_7s6ie_11',
- A = '_boxStyle_7s6ie_15',
- y = '_protocolContent_7s6ie_40',
- m = {
- BUY_ORDER: '《音乐数字课堂服务协议》',
- REGISTER: '《音乐数字课堂注册协议》'
- };
- t(
- 'O',
- n({
- name: 'o-protocol',
- props: {
- showHeader: { type: Boolean, default: !1 },
- modelValue: { type: Boolean, default: !1 },
- prototcolType: { type: String, default: 'BUY_ORDER' },
- center: { type: Boolean, default: !1 }
- },
- data: function () {
- return {
- exists: !0,
- checked: this.modelValue,
- popupStatus: !1,
- protocolHTML: '',
- protocolPopup: null
- };
- },
- mounted: function () {
- var t = this;
- return o(
- e().mark(function r() {
- return e().wrap(function (e) {
- for (;;)
- switch ((e.prev = e.next)) {
- case 0:
- try {
- (t.checked = t.checked || t.exists),
- t.$emit(
- 'update:modelValue',
- t.checked || t.exists
- );
- } catch (r) {}
- (t.checked = t.modelValue),
- window.addEventListener(
- 'hashchange',
- t.onHash,
- !1
- );
- case 3:
- case 'end':
- return e.stop();
- }
- }, r);
- })
- )();
- },
- unmounted: function () {
- window.removeEventListener('hashchange', this.onHash, !1);
- },
- watch: {
- checked: function (t) {
- this.$emit('update:modelValue', t);
- },
- modelValue: function () {
- this.checked = this.modelValue;
- }
- },
- methods: {
- getContractDetail: function () {
- var t = this;
- return o(
- e().mark(function r() {
- var o, n, a, c;
- return e().wrap(
- function (e) {
- for (;;)
- switch ((e.prev = e.next)) {
- case 0:
- if (((e.prev = 0), t.protocolHTML)) {
- e.next = 15;
- break;
- }
- if ('REGISTER' !== t.prototcolType) {
- e.next = 10;
- break;
- }
- return (
- (e.next = 5),
- i.get(
- '/edu-app/open/userContractRecord/queryLatestContractTemplate',
- { params: { contractType: 'REGISTER' } }
- )
- );
- case 5:
- (o = e.sent),
- (n = o.data),
- (t.protocolHTML = n.contractTemplateContent),
- (e.next = 15);
- break;
- case 10:
- return (
- (e.next = 12),
- i.get(
- '/edu-app/schoolContractTemplate/queryLatestContractTemplate',
- {
- params: { contractType: t.prototcolType }
- }
- )
- );
- case 12:
- (a = e.sent),
- (c = a.data),
- (t.protocolHTML = c.contractTemplateContent);
- case 15:
- t.onPopupClose(), (e.next = 20);
- break;
- case 18:
- (e.prev = 18), (e.t0 = e.catch(0));
- case 20:
- case 'end':
- return e.stop();
- }
- },
- r,
- null,
- [[0, 18]]
- );
- })
- )();
- },
- onHash: function () {
- this.popupStatus = !1;
- },
- onPopupClose: function () {
- if (
- ((this.popupStatus = !this.popupStatus), this.popupStatus)
- ) {
- var t = this.$route,
- e = 0;
- for (var r in t.query) e += 1;
- var o = window.location.href,
- n = e > 0 ? '&pto=' + +new Date() : '?pto=' + +new Date();
- history.pushState('', '', ''.concat(o).concat(n));
- } else window.history.go(-1);
- this.protocolPopup && (this.protocolPopup.scrollTop = 0);
- }
- },
- render: function () {
- var t = this;
- return a('div', { class: [p, this.center ? f : ''] }, [
- a(
- h,
- {
- modelValue: this.checked,
- 'onUpdate:modelValue': function (e) {
- return (t.checked = e);
- }
- },
- {
- default: function () {
- return [c('我已阅读并同意')];
- },
- icon: function (t) {
- return a(
- u,
- {
- class: A,
- name: t.checked
- ? 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAeCAYAAAA/xX6fAAAAAXNSR0IArs4c6QAAAn1JREFUSEu9lstPU1EQh79pSwEJKkoMcWeMGl24cGEgCtXNrUSWiIH/waWoSHxENJG/wJ278tClxtgFCCwgrkw0UaOJr8RHgGAbIgUpY869thZ629uHuXd7ZuabO+c3c0bw+RMvnirCuNWOylmUNkQOgDY5frKE6juEWUQf0x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frXNL0rgUEQPJZAR4LNNCHGBQ9V7bZarXeL7C8FCnRTkLdyauMooRO1D51zH7SSb5VK5Yz+4XBY1cpvjcfj+7J5IJsa/SpdtbcE/j5tnv9fACp89yTyXiZrciJke41G47Xq3+duF58EK/V6vSeq9/Uj5ANN7pHC/ClpPQM02EcZXBPgSPW2ZjlMOqQ9KzoV2bwRdFP1L0E3ktAYaGH8LCNW9qrZbD5XPU4DXDYumNNqXyrUTzU+kM5dH17nHWTEOwN2tAwMPSaq1/AMLTRNm6FCBLRsbMuAZNjGIRpd4s800EKzbYwpUB0dtDW496/vDL9FBS00bXzKsI/6iwZOFMobqq/MxkXii/oVzlIYhj9U15RAdxw7CMbqOMwahi6aaPMMy6ljnQYfNXUexWvDcqKzNxbYQfKAJbVhkaXRRuy3qzygCe1q/B3mAZrXVEgnAOONeN4gqzabPFoK6U+S5pQGuz51HsVrwyJpjoFwxOQBS2rDcsrOAzpF5zwrZQ1FE210YTmuBeoINVDjPMsaaGdkDQYsn6W7gATd1ybLeZZJQQtNE4sYEVCbLHeQrgbJJg5PP5H/BpsGWmh2jRGfFrzDLQ0MZLCpzfbFMlB8OYDRQtO0o8nHJz6tVVwxZkLH3UOZtMGsbHaBVruj59TsxQZb+QZ+ZWihyWJ8mVmh79TLXt010UOp7VrQ0YzzvQgnoTzbrSCTq/68du7tP2r9kkP+2pKJAAAAAElFTkSuQmCC'
- },
- null
- );
- }
- }
- ),
- a('span', { onClick: this.getContractDetail, class: d }, [
- m[this.prototcolType]
- ]),
- a(
- l,
- {
- ref: this.protocolPopup,
- show: this.popupStatus,
- position: 'bottom',
- style: { height: '100%' }
- },
- {
- default: function () {
- return [
- t.showHeader &&
- a(s, { title: '管乐团平台服务协议' }, null),
- t.popupStatus &&
- a('div', { id: 'mProtocol' }, [
- a(
- 'div',
- { class: y, innerHTML: t.protocolHTML },
- null
- )
- ])
- ];
- }
- }
- )
- ]);
- }
- })
- );
- }
- };
- }
- );
- })();
|