creationindex-share.c7f33041.js 54 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["creationindex-share"],{"122f":function(t,e,n){"use strict";n("504cc")},1785:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAMAAAC7IEhfAAAAYFBMVEUAAACXucSXusOYucObucGXusOXusOYusSXucOXucOZu8SXucOXucSXusSXu8WVvcWYusSXucOXusaYt8eXucOXusOYusOYusSYu8OXu8SZusWYucWcvc6XusOYusSXucOWA1M7AAAAH3RSTlMArVWqIaSKS/beBvzxnzQY4tY7Cup5cmldWUYfD8SUrcUn+wAAALRJREFUOMvt08kOgjAUQNGidABlngW9//+XGgIbWyoJCzfc1Ut60jRtKs7msu4llY5/sVgZAPKL31VP1hovvAJBr9sC8O1Zwm1ejyXknnMmoJazFqC3YQTjMragtqHBrKOGZBveuK/jA+RRWI3hB4ZLPQRh5nKNwS4qLadxVlf2FbrT9uO5u3hgkdx3QTOJYReMhEj/BHMhyl2QYZJeaHUQKtyl1r+vcRUIq0xdg+9kJ8529QbfpzBL1TadYgAAAABJRU5ErkJggg=="},"28b4":function(t,e,n){"use strict";n("ffa7")},"325c":function(t,e,n){"use strict";n.d(e,"a",(function(){return r})),n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return o}));n("5a0c");function r(){var t=navigator.userAgent;return{trident:t.indexOf("Trident")>-1,presto:t.indexOf("Presto")>-1,webKit:t.indexOf("AppleWebKit")>-1,gecko:t.indexOf("Gecko")>-1&&-1==t.indexOf("KHTML"),mobile:!!t.match(/AppleWebKit.*Mobile.*/),ios:!!t.match(/Mac OS X/),android:t.indexOf("DAYAAPPA")>-1||t.indexOf("Adr")>-1,iPhone:t.indexOf("DAYAAPPI")>-1,isApp:t.indexOf("DAYAAPPI")>-1||t.indexOf("DAYAAPPA")>-1||t.indexOf("Adr")>-1,iPad:t.indexOf("iPad")>-1,webApp:-1==t.indexOf("Safari"),weixin:t.indexOf("MicroMessenger")>-1,huawei:!!t.match(/huawei/i)||!!t.match(/honor/i),xiaomi:!!t.match(/mi\s/i)||!!t.match(/redmi/i)||!!t.match(/mix/i)}}function i(t,e){"string"==typeof t&&(t=t.replace(/-/gi,"/"));var n=new Date(t),r=n.getFullYear()>=10?n.getFullYear():"0"+n.getFullYear(),i=n.getMonth()+1>=10?n.getMonth()+1:"0"+(n.getMonth()+1),o=n.getDate()>=10?n.getDate():"0"+n.getDate();return"ios"==e?r+"/"+i+"/"+o:r+"-"+i+"-"+o}function o(){var t=window.location.hostname,e="";return e=/test/.test(t)?"https://test.gym.lexiaoya.cn/mdaya":/dev/.test(t)?"https://dev.gym.lexiaoya.cn/mdaya":"https://gym.lexiaoya.cn/mdaya",e}},"3be3":function(t,e,n){"use strict";n("9f6e")},"504cc":function(t,e,n){},6354:function(t,e,n){"use strict";var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("van-popup",{staticClass:"imgCodePopup",attrs:{"close-on-click-overlay":!1,closeable:"","close-icon":"close"},on:{close:t.onClose},model:{value:t.showImgCode,callback:function(e){t.showImgCode=e},expression:"showImgCode"}},[n("div",{staticClass:"imgCode"},[n("p",{staticClass:"codeTitle"},[t._v("输入图形验证码")]),n("van-row",{attrs:{type:"flex"}},[n("van-col",{attrs:{span:"14"}},[n("van-field",{staticStyle:{background:"#f4f4f4",padding:"0.12rem 0.16rem"},attrs:{placeholder:"请输入验证码",maxlength:4,autocomplete:"off"},model:{value:t.code,callback:function(e){t.code=e},expression:"code"}})],1),n("van-col",{staticClass:"img",attrs:{span:"10"}},[n("van-image",{attrs:{src:t.identifyingCode},on:{click:function(e){return t.updateIdentifyingCode(!0)}},scopedSlots:t._u([{key:"loading",fn:function(){return[n("van-loading",{attrs:{type:"spinner",size:"20"}})]},proxy:!0}])})],1)],1),n("van-row",[n("van-col",{attrs:{span:"14"}}),n("van-col",{attrs:{span:"10"}},[n("span",{staticClass:"imgChange",on:{click:function(e){return t.updateIdentifyingCode(!0)}}},[t._v("看不清?换一换")])])],1)],1)])},i=[],o=n("b562");function a(t){return a="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},a(t)}function s(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */s=function(){return t};var t={},e=Object.prototype,n=e.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},i=r.iterator||"@@iterator",o=r.asyncIterator||"@@asyncIterator",c=r.toStringTag||"@@toStringTag";function u(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(k){u=function(t,e,n){return t[e]=n}}function l(t,e,n,r){var i=e&&e.prototype instanceof d?e:d,o=Object.create(i.prototype),a=new L(r||[]);return o._invoke=function(t,e,n){var r="suspendedStart";return function(i,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===i)throw o;return E()}for(n.method=i,n.arg=o;;){var a=n.delegate;if(a){var s=x(a,n);if(s){if(s===h)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var c=f(t,e,n);if("normal"===c.type){if(r=n.done?"completed":"suspendedYield",c.arg===h)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r="completed",n.method="throw",n.arg=c.arg)}}}(t,n,a),o}function f(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(k){return{type:"throw",arg:k}}}t.wrap=l;var h={};function d(){}function p(){}function m(){}var v={};u(v,i,(function(){return this}));var y=Object.getPrototypeOf,g=y&&y(y(O([])));g&&g!==e&&n.call(g,i)&&(v=g);var w=m.prototype=d.prototype=Object.create(v);function S(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function b(t,e){function r(i,o,s,c){var u=f(t[i],t,o);if("throw"!==u.type){var l=u.arg,h=l.value;return h&&"object"==a(h)&&n.call(h,"__await")?e.resolve(h.__await).then((function(t){r("next",t,s,c)}),(function(t){r("throw",t,s,c)})):e.resolve(h).then((function(t){l.value=t,s(l)}),(function(t){return r("throw",t,s,c)}))}c(u.arg)}var i;this._invoke=function(t,n){function o(){return new e((function(e,i){r(t,n,e,i)}))}return i=i?i.then(o,o):o()}}function x(t,e){var n=t.iterator[e.method];if(void 0===n){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,x(t,e),"throw"===e.method))return h;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return h}var r=f(n,t.iterator,e.arg);if("throw"===r.type)return e.method="throw",e.arg=r.arg,e.delegate=null,h;var i=r.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,h):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,h)}function A(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 C(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function L(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(A,this),this.reset(!0)}function O(t){if(t){var e=t[i];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:E}}function E(){return{value:void 0,done:!0}}return p.prototype=m,u(w,"constructor",m),u(m,"constructor",p),p.displayName=u(m,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===p||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,m):(t.__proto__=m,u(t,c,"GeneratorFunction")),t.prototype=Object.create(w),t},t.awrap=function(t){return{__await:t}},S(b.prototype),u(b.prototype,o,(function(){return this})),t.AsyncIterator=b,t.async=function(e,n,r,i,o){void 0===o&&(o=Promise);var a=new b(l(e,n,r,i),o);return t.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},S(w),u(w,c,"Generator"),u(w,i,(function(){return this})),u(w,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=[];for(var n in t)e.push(n);return e.reverse(),function n(){for(;e.length;){var r=e.pop();if(r in t)return n.value=r,n.done=!1,n}return n.done=!0,n}},t.values=O,L.prototype={constructor:L,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(C),!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(n,r){return a.type="throw",a.arg=t,e.next=n,r&&(e.method="next",e.arg=void 0),!!r}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var s=n.call(o,"catchLoc"),c=n.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,h):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),h},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),C(n),h}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;C(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:O(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),h}},t}function c(t,e,n,r,i,o,a){try{var s=t[o](a),c=s.value}catch(u){return void n(u)}s.done?e(c):Promise.resolve(c).then(r,i)}function u(t){return function(){var e=this,n=arguments;return new Promise((function(r,i){var o=t.apply(e,n);function a(t){c(o,r,i,a,s,"next",t)}function s(t){c(o,r,i,a,s,"throw",t)}a(void 0)}))}}var l={name:"imgCode",props:{value:Boolean,phone:String||Number},data:function(){return{showImgCode:this.value,identifyingCode:"/api-teacher/code/getLoginImage?phone="+this.phone,code:null}},mounted:function(){var t=u(s().mark((function t(){return s().wrap((function(t){while(1)switch(t.prev=t.next){case 0:case"end":return t.stop()}}),t)})));function e(){return t.apply(this,arguments)}return e}(),methods:{updateIdentifyingCode:function(){var t=u(s().mark((function t(){return s().wrap((function(t){while(1)switch(t.prev=t.next){case 0:this.identifyingCode="/api-teacher/code/getLoginImage?phone=".concat(this.phone,"&token=").concat(Math.random());case 1:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),checkVerifyLoginImage:function(){var t=u(s().mark((function t(){return s().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(t.prev=0,!(this.code.length<4)){t.next=3;break}return t.abrupt("return");case 3:return t.next=5,Object(o["n"])({mobile:this.phone,code:this.code});case 5:this.$toast("验证码已发送"),this.$emit("input",!1),this.$emit("onCodeSend",!0),t.next=13;break;case 10:t.prev=10,t.t0=t["catch"](0),this.updateIdentifyingCode();case 13:case"end":return t.stop()}}),t,this,[[0,10]])})));function e(){return t.apply(this,arguments)}return e}(),onClose:function(){this.$emit("input",!1)}},watch:{code:function(t){t.length>=4&&this.checkVerifyLoginImage()}}},f=l,h=(n("122f"),n("2877")),d=Object(h["a"])(f,r,i,!1,null,"0ecd5b5e",null);e["a"]=d.exports},7982:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAMAAAC7IEhfAAAAPFBMVEUAAACYucOWusOXusOXucOXusSWusOZusWZub+XusOXucSXucSXucOYusWYucSVuMSTucGbtsiYucKXucMm9nM5AAAAE3RSTlMAqlWi+c1rTA3kwreacmNBIRyPjUAP2gAAAHRJREFUOMvt1LEOgCAMRVErICqKKP//r4JlMIK+RCcT7kTDCRttap2gc9Ny40Z/bS6/57PkWoLC5+kSJL5TLpy15KF9gPYYDIYinvsBQ6+IKDgIuQorfAGloZiCUKdJINinySK4sXSK4afvihcAXil4Sf2rHZjwJGbdGrFMAAAAAElFTkSuQmCC"},"86d8":function(t,e,n){t.exports=n.p+"img/logo.2209d37e.png"},"9d8a":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAALAAAAA+CAMAAAC802HEAAAA/1BMVEX///8AAAD////////8/Pz///////////////////////////////////////////////////////////////////////////////////////////////+qqqr////////f39////////////////////+srKz///////////+ysrL///////+5ubn///+rq6v////////////IyMitra3///////////+rq6urq6v///////+xsbG2trb///+tra2urq6/v7/Dw8Otra2zs7P///////////////+3t7fOzs6wsLD///+8vLzDw8Ovr6////////////////+qqqqjP22jAAAAU3RSTlMZACI3GzM1JNgnIBxDklouCTHBKR72YToyLPrKtvi+ViUVD6bp3duvSJ6Li2lgS/DThW87uz3y7+jl482UcRTNsk5GxH5lXXx3aDKmVFNCo5ZjKygyJDYAAATLSURBVGje1ZppW9pAEICndJM0SWmSBlpAoYDciKjggYKg4Nlqj8n//y3dhCDCsGDN8xTyfmjxGPd1nJ1ZksC7kCEUNvM5Fotpkf+OFouxXN78N+E809SkkZBk+f1/R5alhJFUNZZ/rbAJEduSLVvRdAZrgOma4glEwHyFsMkUQzYiDNYMi3ANhZmrhHOKJalrt/WdVclSckuFTS0pb4ruWFlOaqZY+EKRDB02Ct2QlAuRMKiyAhuHIquwWJjZUgw2kJhks0XCLJnYsHKYoCeSjAqDndig3TYLS9gwL3yhShuaXxddUi9mhU1F3sj6nRCTFXNGWJM2sD+8RJG0l8K5pAEbjpHMTYV5QYgLOHv/vd9JpzvD2iWsEd0rCl+YWSoIaP1MO8+UemtsJKrFJsKmIglEWG2sO1V+XZYZEALHMUkxfWEwVEE1lFzJ5mDUuLy873ofpHsg4qiYAZ/yyS4QgsapBvjCEVnwmzW44ekoCz5XbVe5CwI+4gf/1ftUXJCCIHFMjoyF87aoRTw0nUF25jdocuPeqoXZZzzecqkDIUicYec9YWZFhB2iNb8HS7wqLlcsfICpOCeFO0AIEhexmCes0YoQ0+I5LrGlC99hfA8451gBQpA4JmuusKlaIEBU1yMgHGYyW3icydQZz9MNcHaxDIRgcZZqcuF80oYFXPa98qW0eYqBEMUx29sY93a6XTimiQgYZyfzXDhnKIsSyRvw94VRTzzFtIqtSmUXi5XK1/rJ7leXMkbd/8gEDRKnGDkuzBLagoHhOMJ+UOKtTVyLbBdfIpFvCxCnJRgXjtGDcLbteKSvaN94ZF3HGS7ZPN9wf2dnp4gZ/u8ZWThQnC7FXGHaJIaOTyc779tx+j0+Ta5Kp1fChaPuzEJ3x28LhN8Yx2RXWJPJF5p8HnMrh5Zxi3/ObcVN70t0Ye2Lv/A2Hj0v/PGTgKPlcRRZWyx83+/yIm7zv/0A5hg4ExpUuHhX2PcX3sLE88I7KKAqihML+yVBGTlOn9V+PpC/yqS86Ya8QcRU1F/4LKU/L3z7WcCdKE5cEtNNR+dDc/G07nu+8/nd+1Xky1YlvxY1PAPxwqvjxJtu2tZosV4Jz5zpR5ijgFhwN8/7aBm3otEqFqKcIlYPxLKr42hbEw4O6DhOTXCcKDWJL1Sre95u/4FznIllV8fRwSEezV3eJshsXt2e/nxx+X2C8dSh9/JbsDg6mqeHH1oTtX8W9jnE80OsBo+jh58lx8uBO+neJmwV8Ibt46fgcfR4KT7APzT5pHt4i7Cyj2X+Yfy4EjyOHuDFb5Ea7myezTEbtRsrF06c476bgms8IbkKFGfY+eVvQmtuw6292HlPfd6dmbCl+mcC3qbGXfQWU3XS498ex+QIfZtPjZ3T2tO4/za8IVeChXw9vM7gFsDRNmJm8uOu41icJitonGoAvZBCj/Ge87A9LI1ftluwkApybkH/gPEDfZq8D3guUl0dRy+krL5U9TBwXtLpgQC9Xj/4ATxT5ZmhGov6mQoep1rsVRcDn7qnvm16eM9gDZCLgSsvt7buR7Va7zEL68RI5sJ8QTt8twxCd1MmfLe9wndjMXy3bsN3czx8jx+E7wGP8D1CE8KHlML3GFgIH7QL46OMG8xf4y8dISrT8cAAAAAASUVORK5CYII="},"9f6e":function(t,e,n){},b468:function(t,e,n){t.exports=n.p+"img/logo1.6bad0622.png"},b870:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAMAAAC7IEhfAAAAY1BMVEUAAABz39hp5OJz4Nlz4Nhz39ly4th04Nlz4Nh039l039hy4ttz4dlz39lz39hy4Nhz39lz39lz39lx39hz4dp039Zz4dl16t904Nly3Nxz4Nlz4Nhy39lz4Nhz4dtz4dlz39iywadLAAAAIHRSTlMA+QVxv5IbuLB3PyFd8O7Nx8GmSDMsKBh/DuTTnINUX2T0vzcAAAEpSURBVDjLjVXbloMgDAREEEqrbW117/n/r9xBditC7Ule1GFMzDBEUcU0ej9O4nUcnD3SEkfrDru0q6ZN6OtT2u2clk+91v0p3Z9vNa+RWJBdMOnRhG4BmoKmLhFtTY6ZNlIvasOzgIZ7WeU+ALY5M+ZrAZSh2pgz+z48zs+VmLHUPPqVyLenGXLK/96hy6D2iGqASn86452sj6oj1EvK67JwXVwv+4uEZq30Nb8VRIOUcd8dUbeiP0Tv3wWzI3K4QOuwVYrs1jgBCC7wlSmIJJ3Ka8N18Cn8Igoi4sNnILw0iZGor4mIz7WpnmgUPjVfEfMWIaBnE9ml2c1w5WELXm1h2NlCtim4NmMbl3sU2IeLe1y5A4A9UvhDij/2+IOUP5r5w579+/gFPlYvzh8AnB4AAAAASUVORK5CYII="},c541:function(t,e,n){t.exports=n.p+"img/wx_bg.bc40d55d.png"},c7a8:function(t,e,n){"use strict";n.r(e);var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("indexShareRoute",{key:t.$route.fullPath})},i=[],o=function(){var t=this,e=this,r=e.$createElement,i=e._self._c||r;return i("div",{staticClass:"creation",style:{"--heightA":e.state.heightA+"px","--navBarHeight":e.navBarHeight+"px","--creationHeight":e.creationHeight?e.creationHeight+"px":"100vh"}},[i("div",{staticClass:"creationBg"}),i("van-sticky",[e.browser().isApp?i("van-nav-bar",{staticClass:"nav",class:{isScreenScroll:e.isScreenScroll},attrs:{fixed:!1,title:"作品详情","left-arrow":""},on:{"click-left":e.goBack}}):i("div",{staticClass:"logoDownload",class:{isShareScreenScroll:e.isScreenScroll}},[i("img",{staticClass:"logoImg",attrs:{src:e.isScreenScroll?n("b468"):n("86d8")}}),i("div",{staticClass:"logTit",on:{click:e.handlerDownLoad}},[e._v("下载App")])])],1),e.isEmpty?i("div",{staticClass:"isEmpty"},[i("MEmpty",{attrs:{msg:"作品已删除"}})],1):[i("div",{staticClass:"singerBox"},[i("div",{staticClass:"musicSheetName"},[i("van-notice-bar",{attrs:{text:e.state.musicDetail.musicSheetName,background:"none"}})],1),i("div",{staticClass:"singerName"},[e._v("演奏:"+e._s(e.state.musicDetail.username))])]),i("van-sticky",{attrs:{"offset-top":44+e.navBarHeight,"z-index":200}},[i("div",{ref:"playBoxDom",staticClass:"playBox"},[i("div",{class:["playSection",e.plyrState.mediaTimeShow&&"mediaTimeShow",e.isLandscapeScreen&&"isLandscapeScreen","Video"===e.state.playType&&"videoType"],attrs:{id:"playMediaSection"},on:{click:e.handlerClickPlay}},[e.isLandscapeScreen?i("div",{staticClass:"backBox"},[i("img",{staticClass:"backImg",attrs:{src:n("f912")},on:{click:e.handlerBack}}),i("div",{staticClass:"musicDetail"},[i("div",{staticClass:"musicSheetName"},[i("van-notice-bar",{attrs:{text:e.state.musicDetail.musicSheetName,background:"none"}})],1),i("div",{staticClass:"username"},[e._v("演奏:"+e._s(e.state.musicDetail.username))])])]):e._e(),"Audio"===e.state.playType?i("div",{staticClass:"audioBox"},[i("canvas",{staticClass:"audioVisualizer",attrs:{id:"audioVisualizer"}}),i("audio",{attrs:{crossorigin:"anonymous",id:"audioMediaSrc",src:e.state.musicDetail.videoUrl,controls:"false",preload:"metadata",playsinline:"","webkit-playsinline":""}}),i("img",{staticClass:"tyBg",attrs:{src:n("a324")}}),i("div",{staticClass:"audioBoxBg"},[i("div",{class:["audioPan",e.plyrState.playIngShow?"imgRotate":""]},[i("van-image",{staticClass:"audioImg",attrs:{src:e.state.musicDetail.img||n("a1b3")}})],1),i("i",{staticClass:"audioPoint"}),i("i",{class:["audioZhen",e.plyrState.playIngShow&&"active"]})])]):e._e(),"Video"===e.state.playType?i("video",{staticClass:"videoBox",attrs:{id:"videoMediaSrc",src:e.state.musicDetail.videoUrl,"data-poster":e.state.musicDetail.videoImg||n("409a"),poster:e.state.musicDetail.videoImg||n("409a"),preload:"metadata",playsinline:"","webkit-playsinline":"","x5-playsinline":""}}):e._e(),i("div",{class:["playLarge",!e.plyrState.mediaTimeShow&&e.plyrState.playIngShow&&"playIngShow"]}),i("div",{staticClass:"mediaTimeCon"},[i("div",{staticClass:"mediaTime"},[i("div",[e._v("\n "+e._s(e.getSecondRPM(e.plyrState.currentTime))+"\n ")]),i("div",{staticClass:"note"},[e._v("/")]),i("div",{staticClass:"duration"},[e._v("\n "+e._s(e.getSecondRPM(e.plyrState.duration))+"\n ")])])]),i("div",{staticClass:"landscapeScreen",on:{click:e.handlerLandscapeScreen}}),e.staffState.staffSrc?i("div",{class:["staffBoxCon",e.staffState.isShow&&"staffBoxShow"]},[i("div",{staticClass:"staffBox",style:{"--staffBoxHeight":e.staffState.height}},[i("div",{staticClass:"mask"}),i("iframe",{ref:"staffDom",staticClass:"staff",attrs:{frameborder:"0",src:e.staffState.staffSrc}})])]):e._e()])])]),i("div",{staticClass:"musicSection musicShareSection"},[i("div",{staticClass:"avatarInfoBox"},[i("div",{staticClass:"avatar"},[i("van-image",{staticClass:"userLogo",attrs:{src:e.state.musicDetail.avatar}}),i("div",{staticClass:"infoCon"},[i("div",{staticClass:"info"},[i("span",{staticClass:"userName"},[e._v(e._s(e.state.musicDetail.username))]),e.state.musicDetail.vipFlag?i("img",{staticClass:"iconMember",attrs:{src:n("f2e7")}}):e._e()]),i("div",{staticClass:"sub"},[e._v("\n "+e._s((e.state.musicDetail.subjectName||"")+" "+(e.state.musicDetail.currentGradeNum?e.getGradeCh(e.state.musicDetail.currentGradeNum-1):""))+"\n ")])])],1),i("div",{staticClass:"linkes",on:{click:e.onStarChange}},[e.state.musicDetail.starFlag?i("img",{staticClass:"iconZan",attrs:{src:n("c9cd")}}):i("img",{staticClass:"iconZan",attrs:{src:n("cb84")}}),i("span",[e._v(e._s(e.state.musicDetail.likeNum))])])]),i("textEllipsis",{staticClass:"textEllipsis",attrs:{text:e.state.musicDetail.desc||""}})],1),i("div",{staticClass:"likeSection likeShareSection"},[i("div",{staticClass:"likeTitle"},[e._v("推荐作品")]),e.state.listState.dataShow?[i("van-list",{attrs:{finished:e.state.listState.finished,finishedText:" ",immediateCheck:!1}},e._l(e.state.list,(function(t,r){return i("van-cell",{key:r,class:["likeShareItem",r===e.state.list.length-1&&"likeShareItemLast"],attrs:{border:!1},on:{click:function(n){return e.onDetail(t)}},scopedSlots:e._u([{key:"icon",fn:function(){return[i("div",{staticClass:"audioImgBox"},[i("img",{staticClass:"audioPan",attrs:{src:n("71cf"),crossorigin:"anonymous"}}),i("img",{staticClass:"muploader",attrs:{src:t.img||n("bc49"),crossorigin:"anonymous"}}),i("img",{staticClass:"imgLabel",attrs:{src:t.videoUrl&&-1!==t.videoUrl.lastIndexOf("mp4")?n("9cf4"):n("09e3")}})])]},proxy:!0},{key:"title",fn:function(){return[i("div",{staticClass:"userInfo"},[i("div",{staticClass:"musicSheetName van-ellipsis"},[e._v(e._s(t.musicSheetName))]),i("div",{staticClass:"usernameCon"},[i("div",{staticClass:"likeNum"},[i("img",{attrs:{src:n("c9cd")}}),i("span",[e._v(e._s(t.likeNum))])]),i("div",{staticClass:"username van-ellipsis"},[e._v(e._s(t.username))])])])]},proxy:!0},{key:"default",fn:function(){return[i("div",{staticClass:"time"},[i("img",{staticClass:"playImg",attrs:{src:n("b870")}})])]},proxy:!0}],null,!0)})})),1),!e.state.listState.finished||e.state.params.page>2?i("div",{staticClass:"btnImg"},[i("img",{attrs:{src:n("9d8a")},on:{click:e.handleChangeList,touchstart:function(){}}})]):e._e()]:i("MEmpty",{staticClass:"mEmpty",staticStyle:{"margin-bottom":"0.5rem"},attrs:{msg:"暂无作品"}})],2),i("div",{directives:[{name:"show",rawName:"v-show",value:!e.isScreenScroll,expression:"!isScreenScroll"}],staticClass:"upward shareUpward"},[i("img",{attrs:{src:n("b94a")}})])],i("van-popup",{staticStyle:{background:"transparent",overflow:"inherit"},model:{value:e.loginStatus,callback:function(t){e.loginStatus=t},expression:"loginStatus"}},[i("LoginModel",{on:{close:function(){return t.loginStatus=!1},confirm:e.onConfirm}})],1),e.staffState.isShow?e._e():i("Loading"),e.wxStatus?i("div",{staticClass:"wxpopup",on:{click:function(){e.wxStatus=!1}}},[i("img",{attrs:{src:n("c541"),alt:""}})]):e._e()],2)},a=[],s=n("5a0c"),c=n.n(s),u=n("ff51"),l=n("325c"),f=n("ddf4"),h=n("22c6"),d=n("60d8"),p=n("b360"),m=n("d01a"),v=(n("78f6"),n("4fb8")),y=n.n(v),g=n("d678"),w=function(){var t=this,e=this,r=e.$createElement,i=e._self._c||r;return i("div",{staticClass:"loginModel"},[i("i",{staticClass:"iconClose",on:{click:function(){return t.$emit("close")}}}),i("div",{staticClass:"loginSection"},[i("div",{staticClass:"fieldSection"},[i("van-field",{attrs:{placeholder:"请输入手机号",autocomplete:"off",border:!1,type:"tel",maxlength:"11"},scopedSlots:e._u([{key:"left-icon",fn:function(){return[i("img",{staticClass:"icon",attrs:{src:n("7982")}})]},proxy:!0}]),model:{value:e.username,callback:function(t){e.username=t},expression:"username"}}),"PWD"===e.loginType?i("van-field",{attrs:{placeholder:"请输入密码",autocomplete:"off",border:!1,type:"password"},scopedSlots:e._u([{key:"left-icon",fn:function(){return[i("img",{staticClass:"icon",attrs:{src:n("1785")}})]},proxy:!0}],null,!1,2214458091),model:{value:e.password,callback:function(t){e.password=t},expression:"password"}}):i("van-field",{attrs:{placeholder:"请输入验证码",autocomplete:"off",maxlength:"6",type:"tel",border:!1},scopedSlots:e._u([{key:"left-icon",fn:function(){return[i("img",{staticClass:"icon",attrs:{src:n("1785")}})]},proxy:!0},{key:"button",fn:function(){return[i("span",{directives:[{name:"show",rawName:"v-show",value:e.countDownStatus,expression:"countDownStatus"}],staticClass:"codeText",on:{click:e.onSendCode}},[e._v("\n 获取验证码\n ")]),i("van-count-down",{directives:[{name:"show",rawName:"v-show",value:!e.countDownStatus,expression:"!countDownStatus"}],ref:"countdown",attrs:{"auto-start":!1,time:e.countDownTime,format:"ss秒"},on:{finish:e.onFinished}})]},proxy:!0}]),model:{value:e.smsCode,callback:function(t){e.smsCode=t},expression:"smsCode"}})],1),i("div",{staticClass:"btnGroup"},[i("van-button",{attrs:{round:"",block:"",color:"#2DC7AA"},on:{click:e.onLogin}},[e._v("\n 登录\n ")]),i("span",{staticClass:"btnText",on:{click:function(){"PWD"===e.loginType?(e.countDownStatus=!0,e.loginType="SMS"):e.loginType="PWD"}}},[e._v("\n "+e._s("PWD"===e.loginType?"验证码登录":"密码登录")+"\n ")])],1)]),i("MTeleport",{attrs:{to:"body"}},[e.showImgCode?i("MImgCode",{attrs:{phone:e.username},on:{close:function(){e.showImgCode=!1},onCodeSend:e.onCodeSend},model:{value:e.showImgCode,callback:function(t){e.showImgCode=t},expression:"showImgCode"}}):e._e()],1)],1)},S=[],b=n("2b7c"),x=(n("433b"),n("d399"));function A(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function C(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?A(Object(n),!0).forEach((function(e){L(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):A(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function L(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function O(t){return O="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},O(t)}var E=function(t){var e={value:i};if("string"===typeof t)e.value=t;else if("object"===O(t))return e=C(C({},e),t),!1;var n=e,r=n.value,i=void 0===r?"":r,o=n.hint,a=n.message,s=!0,c="";return i||(s=!1,c=a||"请输入手机号"),11!==i.length&&(s=!1,c=a||"请输入正确的手机号"),!1!==o&&c&&Object(x["a"])(c),s},k=n("6354"),T=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[t._t("default")],2)},j=[],I={name:"teleport",props:{to:{type:String,required:!0}},mounted:function(){var t=document.querySelector(this.to);t&&t.appendChild(this.$el)},destroyed:function(){var t=document.querySelector(this.to);t&&t.removeChild(this.$el)}},D=I,P=n("2877"),_=Object(P["a"])(D,T,j,!1,null,null,null),N=_.exports;function M(t){return M="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},M(t)}function B(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */B=function(){return t};var t={},e=Object.prototype,n=e.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},i=r.iterator||"@@iterator",o=r.asyncIterator||"@@asyncIterator",a=r.toStringTag||"@@toStringTag";function s(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(O){s=function(t,e,n){return t[e]=n}}function c(t,e,n,r){var i=e&&e.prototype instanceof f?e:f,o=Object.create(i.prototype),a=new A(r||[]);return o._invoke=function(t,e,n){var r="suspendedStart";return function(i,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===i)throw o;return L()}for(n.method=i,n.arg=o;;){var a=n.delegate;if(a){var s=S(a,n);if(s){if(s===l)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var c=u(t,e,n);if("normal"===c.type){if(r=n.done?"completed":"suspendedYield",c.arg===l)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r="completed",n.method="throw",n.arg=c.arg)}}}(t,n,a),o}function u(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(O){return{type:"throw",arg:O}}}t.wrap=c;var l={};function f(){}function h(){}function d(){}var p={};s(p,i,(function(){return this}));var m=Object.getPrototypeOf,v=m&&m(m(C([])));v&&v!==e&&n.call(v,i)&&(p=v);var y=d.prototype=f.prototype=Object.create(p);function g(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function r(i,o,a,s){var c=u(t[i],t,o);if("throw"!==c.type){var l=c.arg,f=l.value;return f&&"object"==M(f)&&n.call(f,"__await")?e.resolve(f.__await).then((function(t){r("next",t,a,s)}),(function(t){r("throw",t,a,s)})):e.resolve(f).then((function(t){l.value=t,a(l)}),(function(t){return r("throw",t,a,s)}))}s(c.arg)}var i;this._invoke=function(t,n){function o(){return new e((function(e,i){r(t,n,e,i)}))}return i=i?i.then(o,o):o()}}function S(t,e){var n=t.iterator[e.method];if(void 0===n){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,S(t,e),"throw"===e.method))return l;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return l}var r=u(n,t.iterator,e.arg);if("throw"===r.type)return e.method="throw",e.arg=r.arg,e.delegate=null,l;var i=r.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,l):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,l)}function b(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 x(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function A(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(b,this),this.reset(!0)}function C(t){if(t){var e=t[i];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:L}}function L(){return{value:void 0,done:!0}}return h.prototype=d,s(y,"constructor",d),s(d,"constructor",h),h.displayName=s(d,a,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===h||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,d):(t.__proto__=d,s(t,a,"GeneratorFunction")),t.prototype=Object.create(y),t},t.awrap=function(t){return{__await:t}},g(w.prototype),s(w.prototype,o,(function(){return this})),t.AsyncIterator=w,t.async=function(e,n,r,i,o){void 0===o&&(o=Promise);var a=new w(c(e,n,r,i),o);return t.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},g(y),s(y,a,"Generator"),s(y,i,(function(){return this})),s(y,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=[];for(var n in t)e.push(n);return e.reverse(),function n(){for(;e.length;){var r=e.pop();if(r in t)return n.value=r,n.done=!1,n}return n.done=!0,n}},t.values=C,A.prototype={constructor:A,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(x),!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(n,r){return a.type="throw",a.arg=t,e.next=n,r&&(e.method="next",e.arg=void 0),!!r}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var s=n.call(o,"catchLoc"),c=n.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,l):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),l},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),x(n),l}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;x(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:C(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),l}},t}function U(t,e,n,r,i,o,a){try{var s=t[o](a),c=s.value}catch(u){return void n(u)}s.done?e(c):Promise.resolve(c).then(r,i)}function R(t){return function(){var e=this,n=arguments;return new Promise((function(r,i){var o=t.apply(e,n);function a(t){U(o,r,i,a,s,"next",t)}function s(t){U(o,r,i,a,s,"throw",t)}a(void 0)}))}}var Y={components:{MImgCode:k["a"],MTeleport:N},data:function(){return{loginType:"PWD",showImgCode:!1,username:"",password:"",smsCode:"",countDownStatus:!0,countDownTime:12e4}},methods:{onSendCode:function(){var t=R(B().mark((function t(){return B().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(E(this.username)){t.next=2;break}return t.abrupt("return");case 2:this.showImgCode=!0;case 3:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),onCodeSend:function(){this.countDownStatus=!1,this.$refs.countdown.start()},onFinished:function(){this.countDownStatus=!0,this.$refs.countdown.reset()},onLogin:function(){var t=R(B().mark((function t(){var e,n,r,i,o,a;return B().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(t.prev=0,E(this.username)){t.next=3;break}return t.abrupt("return",this.$toast("请输入正确的手机号码"));case 3:if("PWD"!==this.loginType){t.next=14;break}if(this.password){t.next=6;break}return t.abrupt("return",this.$toast("请输入密码"));case 6:return t.next=8,Object(b["a"])({baseURL:"/api-auth",url:"/usernameLogin",method:"post",requestType:"form",data:{username:this.username,password:this.password,clientId:"student",clientSecret:"student"}});case 8:e=t.sent,n=e.data,r=n.authentication,Object(u["k"])(r.token_type+" "+r.access_token),t.next=22;break;case 14:if(this.smsCode){t.next=16;break}return t.abrupt("return",this.$toast("请输入验证码"));case 16:return t.next=18,Object(b["a"])({baseURL:"/api-auth",url:"/smsLogin",method:"post",data:{clientId:"student",clientSecret:"student",phone:this.username,smsCode:this.smsCode,isLessee:!!this.isRegister||void 0},requestType:"form"});case 18:i=t.sent,o=i.data,a=o.authentication,Object(u["k"])(a.token_type+" "+a.access_token);case 22:return t.next=24,this.$store.dispatch("setUserInfo");case 24:this.$emit("confirm",!0),t.next=30;break;case 27:t.prev=27,t.t0=t["catch"](0),console.log(t.t0);case 30:case"end":return t.stop()}}),t,this,[[0,27]])})));function e(){return t.apply(this,arguments)}return e}()}},F=Y,G=(n("3be3"),Object(P["a"])(F,w,S,!1,null,"4c40f5e6",null)),z=G.exports;function W(t){return W="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},W(t)}function q(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function X(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?q(Object(n),!0).forEach((function(e){H(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):q(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function H(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function K(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */K=function(){return t};var t={},e=Object.prototype,n=e.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},i=r.iterator||"@@iterator",o=r.asyncIterator||"@@asyncIterator",a=r.toStringTag||"@@toStringTag";function s(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(O){s=function(t,e,n){return t[e]=n}}function c(t,e,n,r){var i=e&&e.prototype instanceof f?e:f,o=Object.create(i.prototype),a=new A(r||[]);return o._invoke=function(t,e,n){var r="suspendedStart";return function(i,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===i)throw o;return L()}for(n.method=i,n.arg=o;;){var a=n.delegate;if(a){var s=S(a,n);if(s){if(s===l)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var c=u(t,e,n);if("normal"===c.type){if(r=n.done?"completed":"suspendedYield",c.arg===l)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r="completed",n.method="throw",n.arg=c.arg)}}}(t,n,a),o}function u(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(O){return{type:"throw",arg:O}}}t.wrap=c;var l={};function f(){}function h(){}function d(){}var p={};s(p,i,(function(){return this}));var m=Object.getPrototypeOf,v=m&&m(m(C([])));v&&v!==e&&n.call(v,i)&&(p=v);var y=d.prototype=f.prototype=Object.create(p);function g(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function r(i,o,a,s){var c=u(t[i],t,o);if("throw"!==c.type){var l=c.arg,f=l.value;return f&&"object"==W(f)&&n.call(f,"__await")?e.resolve(f.__await).then((function(t){r("next",t,a,s)}),(function(t){r("throw",t,a,s)})):e.resolve(f).then((function(t){l.value=t,a(l)}),(function(t){return r("throw",t,a,s)}))}s(c.arg)}var i;this._invoke=function(t,n){function o(){return new e((function(e,i){r(t,n,e,i)}))}return i=i?i.then(o,o):o()}}function S(t,e){var n=t.iterator[e.method];if(void 0===n){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,S(t,e),"throw"===e.method))return l;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return l}var r=u(n,t.iterator,e.arg);if("throw"===r.type)return e.method="throw",e.arg=r.arg,e.delegate=null,l;var i=r.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,l):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,l)}function b(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 x(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function A(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(b,this),this.reset(!0)}function C(t){if(t){var e=t[i];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:L}}function L(){return{value:void 0,done:!0}}return h.prototype=d,s(y,"constructor",d),s(d,"constructor",h),h.displayName=s(d,a,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===h||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,d):(t.__proto__=d,s(t,a,"GeneratorFunction")),t.prototype=Object.create(y),t},t.awrap=function(t){return{__await:t}},g(w.prototype),s(w.prototype,o,(function(){return this})),t.AsyncIterator=w,t.async=function(e,n,r,i,o){void 0===o&&(o=Promise);var a=new w(c(e,n,r,i),o);return t.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},g(y),s(y,a,"Generator"),s(y,i,(function(){return this})),s(y,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=[];for(var n in t)e.push(n);return e.reverse(),function n(){for(;e.length;){var r=e.pop();if(r in t)return n.value=r,n.done=!1,n}return n.done=!0,n}},t.values=C,A.prototype={constructor:A,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(x),!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(n,r){return a.type="throw",a.arg=t,e.next=n,r&&(e.method="next",e.arg=void 0),!!r}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var s=n.call(o,"catchLoc"),c=n.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,l):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),l},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),x(n),l}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;x(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:C(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),l}},t}function V(t,e,n,r,i,o,a){try{var s=t[o](a),c=s.value}catch(u){return void n(u)}s.done?e(c):Promise.resolve(c).then(r,i)}function Z(t){return function(){var e=this,n=arguments;return new Promise((function(r,i){var o=t.apply(e,n);function a(t){V(o,r,i,a,s,"next",t)}function s(t){V(o,r,i,a,s,"throw",t)}a(void 0)}))}}var J={name:"creation",data:function(){return{id:this.$route.query.id,loginTag:!1,loginStatus:!1,isEmpty:!1,wxStatus:!1,state:{playType:"",musicDetail:{},isClick:!1,list:[],listState:{dataShow:!0,loading:!1,finished:!1},params:{page:1,rows:4},_plrl:null,heightA:0},plyrState:{duration:0,currentTime:0,mediaTimeShow:!1,playIngShow:!0},isLandscapeScreen:!1,isScreenScroll:!1,navBarHeight:0,staffState:{staffSrc:"",isShow:!1,height:"initial",speedRate:1,musicRenderType:"staff",partIndex:0},creationHeight:0}},components:{textEllipsis:p["a"],MEmpty:g["a"],Loading:m["a"],LoginModel:z},methods:{getGradeCh:u["e"],getSecondRPM:u["j"],browser:u["b"],onDayjs:function(t){return c()(t).format("YYYY-MM-DD HH:mm")},goBack:function(){Object(u["b"])().isApp?(this.setStatusBarTextColor(!1),!Object(u["b"])().android&&Object(f["b"])({api:"setBarStatus",content:{status:1,backButtonHidden:0}}),Object(f["b"])({api:"back"})):this.$router.back()},onDetail:function(t){this.$router.push({path:"/shareCreation",query:{id:t.id}})},onStarChange:function(){var t=Z(K().mark((function t(){return K().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,Object(h["f"])({userMusicId:this.id,star:!this.state.musicDetail.starFlag});case 3:this.state.musicDetail.starFlag=!this.state.musicDetail.starFlag,this.state.musicDetail.starFlag?this.state.musicDetail.likeNum+=1:this.state.musicDetail.likeNum-=1,t.next=10;break;case 7:t.prev=7,t.t0=t["catch"](0),403===t.t0.code&&(this.loginStatus=!0);case 10:case"end":return t.stop()}}),t,this,[[0,7]])})));function e(){return t.apply(this,arguments)}return e}(),onConfirm:function(){var t=Z(K().mark((function t(e){var n,r;return K().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return this.loginTag=e,this.loginStatus=!1,t.next=4,Object(h["a"])(this.id);case 4:n=t.sent,r=n.data,this.state.musicDetail=r;case 7:case"end":return t.stop()}}),t,this)})));function e(e){return t.apply(this,arguments)}return e}(),getStarList:function(){var t=Z(K().mark((function t(){var e,n;return K().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(t.prev=0,!this.state.isClick){t.next=3;break}return t.abrupt("return");case 3:return this.state.isClick=!0,t.next=6,Object(h["b"])(X({type:"FORMAL",exclusionId:this.id,sort:1},this.state.params));case 6:e=t.sent,this.state.listState.loading=!1,n=e.data||{},this.state.list=n.rows||[],this.state.listState.finished=n.current>=n.pages,this.state.params.page=n.current+1,this.state.listState.dataShow=this.state.list.length>0,this.state.isClick=!1,t.next=21;break;case 16:t.prev=16,t.t0=t["catch"](0),this.state.listState.dataShow=!1,this.state.listState.finished=!0,this.state.isClick=!1;case 21:case"end":return t.stop()}}),t,this,[[0,16]])})));function e(){return t.apply(this,arguments)}return e}(),handleChangeList:function(){this.state.listState.finished?(this.state.listState.finished=!1,this.state.params.page=1,this.getStarList()):this.getStarList()},init:function(){var t=Z(K().mark((function t(){var e,n,r=this;return K().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,Object(h["a"])(this.id);case 3:e=t.sent,this.state.musicDetail=e.data||{};try{n=JSON.parse(e.data.jsonConfig),n.speedRate&&(this.staffState.speedRate=n.speedRate),n.musicRenderType&&(this.staffState.musicRenderType=n.musicRenderType),n["part-index"]&&(this.staffState.partIndex=n["part-index"])}catch(i){}this.initStaff(),this.getStarList(),-1!==e.data.videoUrl.lastIndexOf("mp4")?this.state.playType="Video":this.state.playType="Audio",this.$nextTick((function(){r.initMediaPlay()})),t.next=16;break;case 12:t.prev=12,t.t0=t["catch"](0),this.staffState.isShow=!0,999===t.t0.code&&(this.isEmpty=!0);case 16:case"end":return t.stop()}}),t,this,[[0,12]])})));function e(){return t.apply(this,arguments)}return e}(),initMediaPlay:function(){var t=this,e=this.staffMoveInstance(),n=e.playStaff,r=e.pauseStaff,i=e.updateProgressStaff,o="Audio"===this.state.playType?"#audioMediaSrc":"#videoMediaSrc";this.state._plrl=new y.a(o,{controls:["play","progress","current-time","duration"],fullscreen:{enabled:!1,fallback:!1}});var a=this.state._plrl;if("Audio"===this.state.playType){var s=document.querySelector("#audioMediaSrc"),c=document.querySelector("#audioVisualizer"),u=Object(d["a"])(s,c),l=u.pauseVisualDraw,f=u.playVisualDraw;a.on("play",(function(){f()})),a.on("pause",(function(){l()}))}a.on("timeupdate",(function(){t.plyrState.currentTime=a.currentTime})),a.on("play",(function(){t.plyrState.playIngShow=!1,n()})),a.on("pause",(function(){t.plyrState.playIngShow=!0,r()})),a.on("ended",(function(){t.plyrState.mediaTimeShow||(a.currentTime=0,a.playing||setTimeout((function(){i(a.currentTime)}),100))}));var h=function(){t.isLandscapeScreen.value||(t.plyrState.duration=a.duration,t.plyrState.mediaTimeShow=!0)},p=function(){t.plyrState.mediaTimeShow=!1,a.playing||i(a.currentTime)},m=document.querySelector("#playMediaSection .plyr__controls .plyr__progress__container");m.addEventListener("mousedown",h),m.addEventListener("touchstart",h),m.addEventListener("mouseup",p),m.addEventListener("touchend",p)},initStaff:function(){var t=this,e="/gym-music-score/#/simple-detail?id=".concat(this.state.musicDetail.musicSheetId,"&musicRenderType=").concat(this.staffState.musicRenderType,"&part-index=").concat(this.staffState.partIndex);this.staffState.staffSrc=e,window.addEventListener("message",(function(e){var n=e.data,r=n.api,i=n.height;"api_musicPage"===r&&(t.staffState.isShow=!0,t.staffState.height=i+"px")}))},staffMoveInstance:function(){var t=this,e=!0,n=function n(){requestAnimationFrame((function(){var r,i;null===(r=t.$refs.staffDom)||void 0===r||null===(i=r.contentWindow)||void 0===i||i.postMessage({api:"api_playProgress",content:{currentTime:t.state._plrl.currentTime*t.staffState.speedRate}},"*"),e||n()}))},r=function(){var r,i;t.staffState.isShow&&(e=!1,null===(r=t.$refs.staffDom)||void 0===r||null===(i=r.contentWindow)||void 0===i||i.postMessage({api:"api_play"},"*"),n())},i=function(){var n,r;t.staffState.isShow&&(e=!0,null===(n=t.$refs.staffDom)||void 0===n||null===(r=n.contentWindow)||void 0===r||r.postMessage({api:"api_paused"},"*"))},o=function(e){var n,r;t.staffState.isShow&&(null===(n=t.$refs.staffDom)||void 0===n||null===(r=n.contentWindow)||void 0===r||r.postMessage({api:"api_updateProgress",content:{currentTime:e*t.staffState.speedRate}},"*"))};return{playStaff:r,pauseStaff:i,updateProgressStaff:o}},handlerClickPlay:function(t){var e;null!==t&&void 0!==t&&null!==(e=t.target)&&void 0!==e&&e.matches("button.plyr__control")||(this.state._plrl.playing?this.state._plrl.pause():this.state._plrl.play())},handleScroll:function(){if(!this.isEmpty){var t=window.scrollY||document.documentElement.scrollTop;t>0&&!1===this.isScreenScroll&&(this.isScreenScroll=!0,this.setStatusBarTextColor(!1)),t<=0&&(this.isScreenScroll=!1,this.setStatusBarTextColor(!0))}},setStatusBarTextColor:function(t){Object(f["b"])({api:"setStatusBarTextColor",content:{statusBarTextColor:t}})},handleVisibilitychange:function(){var t;document.hidden&&(null===(t=this.state._plrl)||void 0===t||t.pause())},handlerBack:function(t){t.stopPropagation(),this.verticalScreen()},landscapeScreen:function(){Object(f["b"])({api:"setRequestedOrientation",content:{orientation:0}}),this.isLandscapeScreen=!0},verticalScreen:function(){Object(f["b"])({api:"setRequestedOrientation",content:{orientation:1}}),this.isLandscapeScreen=!1},handlerLandscapeScreen:function(t){t.stopPropagation();var e=Object(u["b"])(),n=e.isApp,r=e.weixin;if(n)this.landscapeScreen();else if(r)this.wxStatus=!0;else{var i=Date.now(),o=location.href;this.shareCall(o),setTimeout((function(){Date.now()-i<3500&&window.location.replace(Object(l["c"])()+"/#/studentDownLoad")}),3e3)}},shareCall:function(t){var e=encodeURIComponent(t),n=navigator.userAgent||navigator.vendor;/(iPhone|iPad|iPod|iOS)/i.test(n)?window.location.href="StudentsDaya://linkUrl=".concat(e):/(Android)/i.test(n)?window.location.href="studentdaya://html:8888/SplashActivity?url=".concat(e):showToast("请用手机或移动设备打开")},handlerDownLoad:function(){Object(u["b"])().weixin?this.wxStatus=!0:window.location.replace(Object(l["c"])()+"/#/studentDownLoad")},setFullHeight:function(){this.creationHeight=window.innerHeight}},mounted:function(){this.state.heightA=this.$refs.playBoxDom.offsetHeight,document.addEventListener("scroll",this.handleScroll),document.addEventListener("visibilitychange",this.handleVisibilitychange),!Object(u["b"])().isApp&&this.setFullHeight(),window.addEventListener("resize",this.setFullHeight)},destroyed:function(){var t;null===(t=this.state._plrl)||void 0===t||t.destroy(),document.removeEventListener("scroll",this.handleScroll),document.removeEventListener("visibilitychange",this.handleVisibilitychange),window.removeEventListener("resize",this.setFullHeight)},created:function(){var t=this;this.setStatusBarTextColor(!0),Object(f["b"])({api:"setBarStatus",content:{status:0,backButtonHidden:1}}),Object(f["b"])({api:"getNavHeight"},(function(e){var n=e.content,r=n.dpi||2;if(n.navHeight){var i=n.navHeight/r;t.navBarHeight=i}})),this.init()}},Q=J,$=(n("28b4"),Object(P["a"])(Q,o,a,!1,null,"07da7674",null)),tt=$.exports,et={name:"index-share",components:{indexShareRoute:tt}},nt=et,rt=Object(P["a"])(nt,r,i,!1,null,null,null);e["default"]=rt.exports},c9cd:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAkCAYAAADhAJiYAAAAAXNSR0IArs4c6QAAA7ZJREFUWEftl11ok1cYx39P1qYfRpNeqJVR0dQrtxI6B6Mr1Aq76NVQvFDGeqFQaGI2WFGzXhkcNElLnHSb3c1EtLtQsMwP8EKHF5vS4kBoSwdDJ5XWuoZZaNKm1TTvOHkNXZKmyWKS9mIvhMDLOef5nf/5P+d5XmGdPbLOeHgjIM3r/ZCZmW8Jh22Ulr7EaLzB9u1fiN0+metGcwbS/P56nj4d4tWr0oTg5eW/U1f3nhw5spALVO5ALtcAweABampg3z5YWIBbtyAYhK1bnXLq1HfFBvqLYHAL+/dDdbUee3gY7t8Hk+kn6e4+UFygkyeDhEImDh8Gi0WPPTEBN2+C2fyneDy1RQPSzp2rYmzsbzRNOHoUSl/bKBCAq1dh06aAeL1bigd0+nQ7z5/3sXkzHDy4HPfZM7h+XSk0Lh7PjqIAaW63gVDoD+bna2lshLq65biPH8Pt2+oIB6Wrq6FYQL1MT39GZSUx/xiNy3GVoZWxN2z4Wnp6OgoOpLndHgIBV8w7LS2wI+lULl+GmRmwWj+V48d/LBiQduZMC1NTbubmPogFaWgAmy0x3osXcOWK/q6yMoxINAVIRENkAU27S3X1V9LRMZI8JuFi1Nrb38Zg8ALvxlRQj1qkrMzG4qLEjqepCXbtSt380BA8fJi9KEbjS7ZtaxSX67d/T0oEstvvItKcsmp5uX4THzoEVVUrB52fh0gENG11qHAYHjyAyUl1gf4i3d1N6YGOHVtE04zs2aOUWR43OqoDtbYqw2avQrqRCv7iRZUQS3L2bEl6IIdjCTCwd28i0OBgfoHU5i5cgJKSqPT2vvXfgZQ/lNT5Umh8XC/EGzc+EZ/PmhmoOclG+QaKJ0BFxTfi93++9kDXrsHUFNTU2KWz8/vMQMkeyqdC0SicP68yUqO+vlba2p6sBqQuM0kxdT6BpqdhYEBl66z09JhXvxgdjsIDjYzAvXvK0DfE5/t47YFUN6C6AovlS+nq8mUHVMgsu3QJ5uZg9+6PxOn8eW2BQiHo71c3dASLpUzc7pQCnFjLHA69EBVKoUeP4M4d1VEOi8eT1C7oWhUXSJlZmbqiwit+f+dKpS4ZSM8y1WLEi6v6z0ctU99rKt1VCdq5s1VOnOjPBmgUeCdt+2E2g8GQW7WfnYWlJdW8jWIy2VbyT+qROZ3vE43+8BpKqaf/4v1QbijxWRpm869YrZ9IW9tEuqWy+pTW+vqaiUTK0vIYDJnWiWI0jq0GEl8700JvpkkOs/8HyiTaulPoHxnTiDQIfUMPAAAAAElFTkSuQmCC"},ffa7:function(t,e,n){}}]);