1 |
- !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(P([])));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 T()}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 P(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:T}}function T(){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=P,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:P(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-fff8b745.js","./index-legacy-994b382c.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+RMvnirCuNWOylmUNkQOgDY5frKE6juEWUQf0xOfEUGLxSwK1BGrG5EhlENeiTl83qI6KL3xh4XsXYE6bu0jTQyktSRQnpHOEaRPeuIfth7lATXWGUE2TIbNlcGyXgtooFv6nkzlxtkE/AuLA+EqYRn3NTRg5UKzQKeM8vw//NnWXBcI6vFMef8BR6zZyu/Mqx46J73xNkdXgK1G5IGXW3Xnes6oV+w+G4u+Lln6lVJNy5x/elh0zOpgQzYpqdKY1O6AuiZIfHQPEdCIaMwaRuRixZCM4879cPoOhLfDRD/Mv8wPKQyLjkSngfaqgLsOwqnbEG6E9BrEL0Dik1vIGdHRM99QbSkIDISwp6Ouu5s0H4HILahpgPUUzNyAHy/cbUW+i45GUyi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j9U15RAdxw7CMbqOMwahi6aaPMMy6ljnQYfNXUexWvDcqKzNxbYQfKAJbVhkaXRRuy3qzygCe1q/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)])]}})])}}))}}}))}();
|