1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["creationindex-share"],{1785:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAMAAAC7IEhfAAAAYFBMVEUAAACXucSXusOYucObucGXusOXusOYusSXucOXucOZu8SXucOXucSXusSXu8WVvcWYusSXucOXusaYt8eXucOXusOYusOYusSYu8OXu8SZusWYucWcvc6XusOYusSXucOWA1M7AAAAH3RSTlMArVWqIaSKS/beBvzxnzQY4tY7Cup5cmldWUYfD8SUrcUn+wAAALRJREFUOMvt08kOgjAUQNGidABlngW9//+XGgIbWyoJCzfc1Ut60jRtKs7msu4llY5/sVgZAPKL31VP1hovvAJBr9sC8O1Zwm1ejyXknnMmoJazFqC3YQTjMragtqHBrKOGZBveuK/jA+RRWI3hB4ZLPQRh5nKNwS4qLadxVlf2FbrT9uO5u3hgkdx3QTOJYReMhEj/BHMhyl2QYZJeaHUQKtyl1r+vcRUIq0xdg+9kJ8529QbfpzBL1TadYgAAAABJRU5ErkJggg=="},"1fc8":function(t,e,n){t.exports=n.p+"img/video-bg.68c585af.png"},"22c6":function(t,e,n){"use strict";n.d(e,"c",(function(){return s})),n.d(e,"a",(function(){return c})),n.d(e,"g",(function(){return u})),n.d(e,"b",(function(){return l})),n.d(e,"f",(function(){return f})),n.d(e,"e",(function(){return h})),n.d(e,"d",(function(){return p}));var r=n("2b7c");function o(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 i(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?o(Object(n),!0).forEach((function(e){a(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function a(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var s=function(t){return Object(r["a"])({url:"/userMusic/detail/".concat(t),method:"get",hideLoading:!0})},c=function(t){return Object(r["a"])({url:"/open/userMusic/detail/".concat(t),baseURL:"/api-student",method:"get",hideLoading:!0})},u=function(t){return r["a"].post("/userMusicStar/page",i({},t))},l=function(t){return Object(r["a"])({url:"/open/userMusic/page",baseURL:"/api-student",method:"post",data:t})},f=function(t){return Object(r["a"])({url:"/userMusicStar/star",baseURL:"/api-student",hideLoading:!0,method:"post",data:t})},h=function(t){return Object(r["a"])({method:"post",url:"/userMusic/save",data:t})},p=function(t){return Object(r["a"])({method:"post",baseURL:"/api-student",url:"/userMusic/remove",requestType:"form",data:t})}},"3be3":function(t,e,n){"use strict";n("9f6e")},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)])},o=[],i=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:{},o=r.iterator||"@@iterator",i=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(L){u=function(t,e,n){return t[e]=n}}function l(t,e,n,r){var o=e&&e.prototype instanceof p?e:p,i=Object.create(o.prototype),a=new C(r||[]);return i._invoke=function(t,e,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return k()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var s=S(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),i}function f(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(L){return{type:"throw",arg:L}}}t.wrap=l;var h={};function p(){}function d(){}function v(){}var m={};u(m,o,(function(){return this}));var g=Object.getPrototypeOf,y=g&&g(g(E([])));y&&y!==e&&n.call(y,o)&&(m=y);var A=v.prototype=p.prototype=Object.create(m);function b(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function r(o,i,s,c){var u=f(t[o],t,i);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 o;this._invoke=function(t,n){function i(){return new e((function(e,o){r(t,n,e,o)}))}return o=o?o.then(i,i):i()}}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 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 o=r.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,h):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,h)}function x(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 O(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function C(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(x,this),this.reset(!0)}function E(t){if(t){var e=t[o];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,i=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 i.next=i}}return{next:k}}function k(){return{value:void 0,done:!0}}return d.prototype=v,u(A,"constructor",v),u(v,"constructor",d),d.displayName=u(v,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===d||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,v):(t.__proto__=v,u(t,c,"GeneratorFunction")),t.prototype=Object.create(A),t},t.awrap=function(t){return{__await:t}},b(w.prototype),u(w.prototype,i,(function(){return this})),t.AsyncIterator=w,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var a=new w(l(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(A),u(A,c,"Generator"),u(A,o,(function(){return this})),u(A,"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=E,C.prototype={constructor:C,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(O),!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 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 s=n.call(i,"catchLoc"),c=n.call(i,"finallyLoc");if(s&&c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!c)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,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),O(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 o=r.arg;O(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:E(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),h}},t}function c(t,e,n,r,o,i,a){try{var s=t[i](a),c=s.value}catch(u){return void n(u)}s.done?e(c):Promise.resolve(c).then(r,o)}function u(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var i=t.apply(e,n);function a(t){c(i,r,o,a,s,"next",t)}function s(t){c(i,r,o,a,s,"throw",t)}a(void 0)}))}}var l={name:"imgCode",props:{value:Boolean,phone:String||Number},data:function(){var t=window.location.origin;return{showImgCode:this.value,identifyingCode:t+"/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(){var e;return s().wrap((function(t){while(1)switch(t.prev=t.next){case 0:e=window.location.origin,this.identifyingCode="".concat(e,"/api-teacher/code/getLoginImage?phone=").concat(this.phone,"&token=").concat(Math.random());case 2: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(i["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("8354"),n("2877")),p=Object(h["a"])(f,r,o,!1,null,"37d96341",null);e["a"]=p.exports},7982:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAMAAAC7IEhfAAAAPFBMVEUAAACYucOWusOXusOXucOXusSWusOZusWZub+XusOXucSXucSXucOYusWYucSVuMSTucGbtsiYucKXucMm9nM5AAAAE3RSTlMAqlWi+c1rTA3kwreacmNBIRyPjUAP2gAAAHRJREFUOMvt1LEOgCAMRVErICqKKP//r4JlMIK+RCcT7kTDCRttap2gc9Ny40Z/bS6/57PkWoLC5+kSJL5TLpy15KF9gPYYDIYinvsBQ6+IKDgIuQorfAGloZiCUKdJINinySK4sXSK4afvihcAXil4Sf2rHZjwJGbdGrFMAAAAAElFTkSuQmCC"},8354:function(t,e,n){"use strict";n("f00a")},"9f6e":function(t,e,n){},a0f7:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAkCAYAAADhAJiYAAAAAXNSR0IArs4c6QAAAPhJREFUWEftmD0OwjAMhe2wg7gEEz8jdOcEICquwgm4CiqCE7AXRn4mLoFgJ0EdIiUlInmdGNytsvv88imuJTPVntFp0zO6tdZkplVIER9YvVfn8fJez0XeU3XZFa0+0lodiahbK/ZQSk+amkJ0PUPDcrszZGahkzPx/pIt5ggVm4voeob6ZfFkonaoqCF63bK808QQousZGpSF+VXwmuVefqo5RFcMhai65IWQEAoRkC6L/Y+EkBCyBGSWId0QuzduHNGVWSazTGYZ0l02V7osRk0ICSGZ9pYAshSI3Rs3juj+9zoGWSwhhBDdr/VK6uoNMVTlpup+APo9ZDQieLg0AAAAAElFTkSuQmCC"},a1b3:function(t,e,n){t.exports=n.p+"img/music_bg.d79e1a83.png"},c7a8:function(t,e,n){"use strict";n.r(e);var r=function(){var t=this,e=this,r=e.$createElement,o=e._self._c||r;return o("div",{staticClass:"creation"},[o("div",{staticClass:"playSection"},["Video"===e.playType?o("videoTcplayer",{attrs:{src:e.musicDetail.videoUrl,poster:e.musicDetail.videoImg||e.videoBg}}):e._e(),"Audio"===e.playType?o("div",{staticClass:"audioSection"},[o("div",{staticClass:"audioContainer"},[o("div",{staticClass:"waveActive",style:{width:e.audioWidth+"%"}}),o("div",{staticClass:"waveDefault"})]),o("div",{staticClass:"audioBox"},[o("div",{class:["audioPan",e.paused?"imgRotate":""]},[o("van-image",{staticClass:"audioImg",attrs:{src:e.musicDetail.img||e.musicBg}})],1),o("i",{staticClass:"audioPoint"}),o("i",{class:["audioZhen",e.paused&&"active"]})]),o("div",{staticClass:"controls",on:{click:e.onControls}},[o("div",{staticClass:"actions"},[o("div",{staticClass:"actionBtn",on:{click:e.onToggleAudio}},[e.paused?o("img",{attrs:{src:n("f073")}}):o("img",{attrs:{src:n("a0f7")}})])]),o("div",{staticClass:"slider"},[o("van-slider",{staticClass:"timeProgress",attrs:{step:.01,max:e.duration},on:{input:e.handleChangeTime,"drag-start":function(t){e.dragStatus=!0},"drag-end":function(t){e.dragStatus=!1}},model:{value:e.currentTime,callback:function(t){e.currentTime=t},expression:"currentTime"}})],1),o("div",{staticClass:"time"},[o("div",[e._v(e._s(e.getSecondRPM(e.currentTime)))]),o("span",[e._v("/")]),o("div",[e._v(e._s(e.getSecondRPM(e.duration)))])])])]):e._e()],1),o("van-cell",{staticClass:"userSection",attrs:{center:"",border:!1},scopedSlots:e._u([{key:"icon",fn:function(){return[o("van-image",{staticClass:"userLogo",attrs:{src:e.musicDetail.avatar}})]},proxy:!0},{key:"title",fn:function(){return[o("div",{staticClass:"userInfo"},[o("p",{staticClass:"name"},[o("span",[e._v(e._s(e.musicDetail.username))]),e.musicDetail.vipFlag?o("img",{staticClass:"iconMember",attrs:{src:n("f2e7")}}):e._e()]),o("p",{staticClass:"sub"},[e._v("\n "+e._s(e.musicDetail.subjectName)+"\n "+e._s(e.getGradeCh(e.musicDetail.currentGradeNum-1))+"\n ")])])]},proxy:!0},{key:"default",fn:function(){return[o("div",{class:["zan",e.musicDetail.starFlag&&"zanActive"],on:{click:e.onStarChange}},[e.musicDetail.starFlag?o("img",{staticClass:"iconZan",attrs:{src:n("c9cd")}}):o("img",{staticClass:"iconZan",attrs:{src:n("cb84")}}),e._v("\n\n "+e._s(e.musicDetail.likeNum)+"\n ")])]},proxy:!0}])}),o("div",{staticClass:"musicSection"},[o("div",{staticClass:"musicName"},[o("span",{staticClass:"musicTag"},[e._v("曲目名称")]),e._v("\n "+e._s(e.musicDetail.musicSheetName)+"\n ")]),o("div",{staticClass:"musicDesc"},[e._v(e._s(e.musicDetail.desc))])]),o("div",{staticClass:"likeSection"},[o("div",{staticClass:"likeTitle"},[e._v("推荐作品")]),e.listState.dataShow?o("van-list",{staticClass:"container containerInformation",attrs:{finished:e.listState.finished,"finished-text":" ","immediate-check":!1},on:{load:function(t){return e.getStarList()}}},[o("div",{staticClass:"cellGroup"},e._l(e.list,(function(t,n){return o("div",{key:n,staticClass:"cell",on:{click:function(n){return e.onDetail(t)}}},[o("div",{staticClass:"cellImg"},[o("van-image",{staticClass:"cellImage",attrs:{src:t.img||e.musicBg,fit:"cover"}}),o("div",{staticClass:"iconZan"},[e._v(e._s(t.likeNum))])],1),o("div",{staticClass:"cellTitle van-ellipsis"},[e._v("\n "+e._s(t.musicSheetName)+"\n ")]),o("div",{staticClass:"users"},[o("van-image",{staticClass:"userImg",attrs:{src:t.avatar}}),o("span",{staticClass:"name"},[e._v(e._s(t.username))])],1)])})),0)]):o("MEmpty",{attrs:{msg:"暂无数据"}})],1),o("van-popup",{staticStyle:{background:"transparent",overflow:"inherit"},model:{value:e.loginStatus,callback:function(t){e.loginStatus=t},expression:"loginStatus"}},[o("LoginModel",{on:{close:function(){return t.loginStatus=!1},confirm:e.onConfirm}})],1),o("van-popup",{staticClass:"wxPopupDialog",model:{value:e.messageStatus,callback:function(t){e.messageStatus=t},expression:"messageStatus"}},[o("div",{staticClass:"popupContainer"},[o("p",{staticClass:"title1"},[e._v("温馨提示")]),o("p",{staticClass:"popupTips"},[e._v(e._s(e.message))])])])],1)},o=[],i=n("5a0c"),a=n.n(i),s=n("ff51"),c=n("39b0"),u=n("d678"),l=n("ddf4"),f=n("f0a4"),h=n("22c6"),p=function(){var t=this,e=this,r=e.$createElement,o=e._self._c||r;return o("div",{staticClass:"loginModel"},[o("i",{staticClass:"iconClose",on:{click:function(){return t.$emit("close")}}}),o("div",{staticClass:"loginSection"},[o("div",{staticClass:"fieldSection"},[o("van-field",{attrs:{placeholder:"请输入手机号",autocomplete:"off",border:!1,type:"tel",maxlength:"11"},scopedSlots:e._u([{key:"left-icon",fn:function(){return[o("img",{staticClass:"icon",attrs:{src:n("7982")}})]},proxy:!0}]),model:{value:e.username,callback:function(t){e.username=t},expression:"username"}}),"PWD"===e.loginType?o("van-field",{attrs:{placeholder:"请输入密码",autocomplete:"off",border:!1,type:"password"},scopedSlots:e._u([{key:"left-icon",fn:function(){return[o("img",{staticClass:"icon",attrs:{src:n("1785")}})]},proxy:!0}],null,!1,2214458091),model:{value:e.password,callback:function(t){e.password=t},expression:"password"}}):o("van-field",{attrs:{placeholder:"请输入验证码",autocomplete:"off",maxlength:"6",type:"tel",border:!1},scopedSlots:e._u([{key:"left-icon",fn:function(){return[o("img",{staticClass:"icon",attrs:{src:n("1785")}})]},proxy:!0},{key:"button",fn:function(){return[o("span",{directives:[{name:"show",rawName:"v-show",value:e.countDownStatus,expression:"countDownStatus"}],staticClass:"codeText",on:{click:e.onSendCode}},[e._v("\n 获取验证码\n ")]),o("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),o("div",{staticClass:"btnGroup"},[o("van-button",{attrs:{round:"",block:"",color:"#2DC7AA"},on:{click:e.onLogin}},[e._v("\n 登录\n ")]),o("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)]),o("MTeleport",{attrs:{to:"body"}},[e.showImgCode?o("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)},d=[],v=n("2b7c"),m=(n("433b"),n("d399"));function g(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 y(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?g(Object(n),!0).forEach((function(e){A(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):g(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function A(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function b(t){return b="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},b(t)}var w=function(t){var e={value:o};if("string"===typeof t)e.value=t;else if("object"===b(t))return e=y(y({},e),t),!1;var n=e,r=n.value,o=void 0===r?"":r,i=n.hint,a=n.message,s=!0,c="";return o||(s=!1,c=a||"请输入手机号"),11!==o.length&&(s=!1,c=a||"请输入正确的手机号"),!1!==i&&c&&Object(m["a"])(c),s},S=n("6354"),x=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[t._t("default")],2)},O=[],C={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)}},E=C,k=n("2877"),L=Object(k["a"])(E,x,O,!1,null,null,null),j=L.exports;function D(t){return D="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},D(t)}function I(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */I=function(){return t};var t={},e=Object.prototype,n=e.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",i=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(E){s=function(t,e,n){return t[e]=n}}function c(t,e,n,r){var o=e&&e.prototype instanceof f?e:f,i=Object.create(o.prototype),a=new x(r||[]);return i._invoke=function(t,e,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return C()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var s=b(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),i}function u(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(E){return{type:"throw",arg:E}}}t.wrap=c;var l={};function f(){}function h(){}function p(){}var d={};s(d,o,(function(){return this}));var v=Object.getPrototypeOf,m=v&&v(v(O([])));m&&m!==e&&n.call(m,o)&&(d=m);var g=p.prototype=f.prototype=Object.create(d);function y(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function A(t,e){function r(o,i,a,s){var c=u(t[o],t,i);if("throw"!==c.type){var l=c.arg,f=l.value;return f&&"object"==D(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 o;this._invoke=function(t,n){function i(){return new e((function(e,o){r(t,n,e,o)}))}return o=o?o.then(i,i):i()}}function b(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,b(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 o=r.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,l):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,l)}function w(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 S(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function x(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(w,this),this.reset(!0)}function O(t){if(t){var e=t[o];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,i=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 i.next=i}}return{next:C}}function C(){return{value:void 0,done:!0}}return h.prototype=p,s(g,"constructor",p),s(p,"constructor",h),h.displayName=s(p,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,p):(t.__proto__=p,s(t,a,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},y(A.prototype),s(A.prototype,i,(function(){return this})),t.AsyncIterator=A,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var a=new A(c(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},y(g),s(g,a,"Generator"),s(g,o,(function(){return this})),s(g,"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,x.prototype={constructor:x,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(S),!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 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 s=n.call(i,"catchLoc"),c=n.call(i,"finallyLoc");if(s&&c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!c)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,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),S(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 o=r.arg;S(n)}return o}}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),l}},t}function T(t,e,n,r,o,i,a){try{var s=t[i](a),c=s.value}catch(u){return void n(u)}s.done?e(c):Promise.resolve(c).then(r,o)}function P(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var i=t.apply(e,n);function a(t){T(i,r,o,a,s,"next",t)}function s(t){T(i,r,o,a,s,"throw",t)}a(void 0)}))}}var U={components:{MImgCode:S["a"],MTeleport:j},data:function(){return{loginType:"PWD",showImgCode:!1,username:"",password:"",smsCode:"",countDownStatus:!0,countDownTime:12e4}},methods:{onSendCode:function(){var t=P(I().mark((function t(){return I().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(w(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=P(I().mark((function t(){var e,n,r,o,i,a;return I().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(t.prev=0,w(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(v["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(s["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(v["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:o=t.sent,i=o.data,a=i.authentication,Object(s["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}()}},N=U,R=(n("3be3"),Object(k["a"])(N,p,d,!1,null,"4c40f5e6",null)),B=R.exports;function F(t){return F="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},F(t)}function Y(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 Q(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Y(Object(n),!0).forEach((function(e){M(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Y(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function M(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function q(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */q=function(){return t};var t={},e=Object.prototype,n=e.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",i=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(E){s=function(t,e,n){return t[e]=n}}function c(t,e,n,r){var o=e&&e.prototype instanceof f?e:f,i=Object.create(o.prototype),a=new x(r||[]);return i._invoke=function(t,e,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return C()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var s=b(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),i}function u(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(E){return{type:"throw",arg:E}}}t.wrap=c;var l={};function f(){}function h(){}function p(){}var d={};s(d,o,(function(){return this}));var v=Object.getPrototypeOf,m=v&&v(v(O([])));m&&m!==e&&n.call(m,o)&&(d=m);var g=p.prototype=f.prototype=Object.create(d);function y(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function A(t,e){function r(o,i,a,s){var c=u(t[o],t,i);if("throw"!==c.type){var l=c.arg,f=l.value;return f&&"object"==F(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 o;this._invoke=function(t,n){function i(){return new e((function(e,o){r(t,n,e,o)}))}return o=o?o.then(i,i):i()}}function b(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,b(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 o=r.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,l):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,l)}function w(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 S(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function x(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(w,this),this.reset(!0)}function O(t){if(t){var e=t[o];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,i=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 i.next=i}}return{next:C}}function C(){return{value:void 0,done:!0}}return h.prototype=p,s(g,"constructor",p),s(p,"constructor",h),h.displayName=s(p,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,p):(t.__proto__=p,s(t,a,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},y(A.prototype),s(A.prototype,i,(function(){return this})),t.AsyncIterator=A,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var a=new A(c(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},y(g),s(g,a,"Generator"),s(g,o,(function(){return this})),s(g,"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,x.prototype={constructor:x,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(S),!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 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 s=n.call(i,"catchLoc"),c=n.call(i,"finallyLoc");if(s&&c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!c)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,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),S(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 o=r.arg;S(n)}return o}}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),l}},t}function W(t,e,n,r,o,i,a){try{var s=t[i](a),c=s.value}catch(u){return void n(u)}s.done?e(c):Promise.resolve(c).then(r,o)}function G(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var i=t.apply(e,n);function a(t){W(i,r,o,a,s,"next",t)}function s(t){W(i,r,o,a,s,"throw",t)}a(void 0)}))}}var V=new Audio;V.controls=!0,V.style.width="100%",V.className="audio";var Z={components:{videoTcplayer:c["a"],MEmpty:u["a"],LoginModel:B},data:function(){return{videoBg:n("1fc8"),musicBg:n("a1b3"),id:this.$route.query.id,loginTag:!1,loginStatus:!1,playType:"",musicDetail:{},timer:null,paused:!0,audioWidth:0,currentTime:0,duration:.1,loop:!1,dragStatus:!1,isClick:!1,list:[],listState:{dataShow:!0,loading:!1,finished:!1},params:{page:1,rows:20},messageStatus:!1,message:""}},mounted:function(){var t=G(q().mark((function t(){var e,n,r,o;return q().wrap((function(t){while(1)switch(t.prev=t.next){case 0:o=function(){document[e]&&V&&(V.pause(),r.paused=V.paused)},document.title="作品详情",this.__init(),"undefined"!==typeof document.hidden?(e="hidden",n="visibilitychange"):"undefined"!==typeof document.msHidden?(e="msHidden",n="msvisibilitychange"):"undefined"!==typeof document.webkitHidden&&(e="webkitHidden",n="webkitvisibilitychange"),r=this,"undefined"===typeof document.addEventListener||"undefined"===typeof document[e]?console.log("This demo requires a browser, such as Google Chrome or Firefox, that supports the Page Visibility API."):document.addEventListener(n,o,!1);case 6:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),methods:{__init:function(){var t=G(q().mark((function t(){var e,n=this;return q().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return this.loginTag||(f["sessionStorage"].remove("token"),window.localStorage.removeItem("userInfo"),window.localStorage.removeItem("Authorization")),t.prev=1,t.next=4,Object(h["a"])(this.id);case 4:e=t.sent,this.musicDetail=e.data||{},this.getStarList(),-1!==e.data.videoUrl.lastIndexOf("mp4")?this.playType="Video":(this.playType="Audio",this.$nextTick((function(){n.initAudio()}))),t.next=13;break;case 10:t.prev=10,t.t0=t["catch"](1),999===t.t0.code&&(this.messageStatus=!0,this.message=t.t0.msg);case 13:case"end":return t.stop()}}),t,this,[[1,10]])})));function e(){return t.apply(this,arguments)}return e}(),onDetail:function(t){V&&(V.currentTime=0,V.pause(),this.paused=V.paused),this.$router.push({path:"/shareCreation",query:{id:t.id}})},handleChangeTime:function(t){var e=this;this.currentTime=t,clearTimeout(this.timer),this.timer=setTimeout((function(){V.currentTime=t,e.timer=null}),60)},onToggleAudio:function(t){t.stopPropagation(),V.paused?V.play():V.pause(),this.paused=V.paused},onStarChange:function(){var t=G(q().mark((function t(){return q().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.musicDetail.starFlag});case 3:this.musicDetail.starFlag=!this.musicDetail.starFlag,this.musicDetail.starFlag?this.musicDetail.likeNum+=1:this.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}(),getStarList:function(){var t=G(q().mark((function t(){var e,n;return q().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(t.prev=0,!this.isClick){t.next=3;break}return t.abrupt("return");case 3:return this.isClick=!0,t.next=6,Object(h["b"])(Q({type:"FORMAL",exclusionId:this.id,sort:1},this.params));case 6:if(e=t.sent,this.listState.loading=!1,n=e.data||{},!(this.list.length>0&&1===n.current)){t.next=11;break}return t.abrupt("return");case 11:this.list=this.list.concat(n.rows||[]),this.listState.finished=n.current>=n.pages,this.params.page=n.current+1,this.listState.dataShow=this.list.length>0,this.isClick=!1,t.next=23;break;case 18:t.prev=18,t.t0=t["catch"](0),this.listState.dataShow=!1,this.listState.finished=!0,this.isClick=!1;case 23:case"end":return t.stop()}}),t,this,[[0,18]])})));function e(){return t.apply(this,arguments)}return e}(),initAudio:function(){var t=this;V.src=this.musicDetail.videoUrl,V.load(),V.oncanplaythrough=function(){t.paused=V.paused,t.duration=V.duration},V.addEventListener("timeupdate",(function(){t.duration=V.duration,t.currentTime=V.currentTime;var e=t.currentTime/t.duration*100;t.audioWidth=e>100?100:e})),V.addEventListener("ended",(function(){t.paused=V.paused}))},onConfirm:function(){var t=G(q().mark((function t(e){var n,r;return q().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.musicDetail=r;case 7:case"end":return t.stop()}}),t,this)})));function e(e){return t.apply(this,arguments)}return e}(),onDelete:function(){var t=G(q().mark((function t(){var e=this;return q().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,Object(h["d"])({id:this.id});case 3:setTimeout((function(){e.deleteStatus=!1,e.$toast("删除成功")}),100),setTimeout((function(){Object(s["b"])().isApp?Object(l["b"])({api:"goBack"}):e.$router.back()}),1200),t.next=9;break;case 7:t.prev=7,t.t0=t["catch"](0);case 9:case"end":return t.stop()}}),t,this,[[0,7]])})));function e(){return t.apply(this,arguments)}return e}(),onDownload:function(){var t=G(q().mark((function t(){return q().wrap((function(t){while(1)switch(t.prev=t.next){case 0:Object(l["b"])({api:"saveFile",content:{url:this.musicDetail.videoUrl}});case 1:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),onDayjs:function(t){return a()(t).format("YYYY-MM-DD HH:mm")},getGradeCh:s["e"],getSecondRPM:s["j"],onControls:function(t){t.stopPropagation()}},destory:function(){V&&(V.pause(),this.paused=V.paused)},watch:{$route:function(t){this.id=t.query.id,this.playType="",this.params.page=1,V&&(V.currentTime=0,V.pause(),this.paused=V.paused),this.list=[],this.__init()}}},K=Z,_=(n("fba1"),Object(k["a"])(K,r,o,!1,null,"5f41109b",null));e["default"]=_.exports},c9cd:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAkCAYAAADhAJiYAAAAAXNSR0IArs4c6QAAA7ZJREFUWEftl11ok1cYx39P1qYfRpNeqJVR0dQrtxI6B6Mr1Aq76NVQvFDGeqFQaGI2WFGzXhkcNElLnHSb3c1EtLtQsMwP8EKHF5vS4kBoSwdDJ5XWuoZZaNKm1TTvOHkNXZKmyWKS9mIvhMDLOef5nf/5P+d5XmGdPbLOeHgjIM3r/ZCZmW8Jh22Ulr7EaLzB9u1fiN0+metGcwbS/P56nj4d4tWr0oTg5eW/U1f3nhw5spAL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B0kYi2icj9eZ5/v65AExMT28IwvAjgd2be0qb5rhxhjTH12sPMfTkya60/qhMAPmbm/e36SqvjfgMdE5HDIvJqnueznQDVsyyKonBmZqZoVOte1CFr7d0ichbAHasNcK0K+QHLzz5tTUQuEFH9F0bDmltMu4eccyAi72e7b9BL/evxdvHjn28d0EaKojjunNu1tIlf72iq7GAk8YrPLy4uvjA3N/fHje7vyFkcx/c55/zEWMqUUuKc+7mTPyE6AipFUfKh/4FuJtyGU+hfID3aNIv87yAAAAAASUVORK5CYII="},e595:function(t,e,n){},f00a:function(t,e,n){},f073:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAkCAYAAADhAJiYAAAAAXNSR0IArs4c6QAAAkxJREFUWEfN2DFv00AUB/D/uwQGBKV8ig4UBobUSRkAdWJBlOiEBBtiJGqXTO2AoKhTO5MPUCRXYgtbp1ZKqyCaNE4Y0g2VrUigSmlLzg+5aShOaM6p49he78738zv7+d0RInZRp+f2hjnGcSzCxhQEmsxYYxF/U52YLg/D7gKdYAQ2QRh1Tc5QLOg92zxfTckfQcJcoFsF8yOAx+dNyMA+hJizEk9yILKDgLlA4wXzJwEj+oloWxBnyobc0Pftr0dnhLiP4QxBK/FLl7Pbdx5972Ncz65+QK0bMw5A9FaN8HLtpjz2C/MPOhUwUCcSMxUj/ckPamCgvwhC3rYxU03J3YvABg9qLeMRCVpqNvhd7b486AcWDOhMsAdGtpKSK15RQYPaL/66YmRqk7Kkgw0H1FpGRYScYsz1yvbDA519jfsA5q1vyEFK1RmxoYPaAGaUYIuX1t30539RoYFaq4hDEnhQmZCFNipU0CmiWEnKRJRAuELH17eM578cVBQixA26OrprPIwGiIGiFZUlY/ChQOzeTjK9Ffo7RIQS2H6xk3z6JdTP/qQMjkhiVISo/DqI1pXgTC0R/s81MuXHEQjLqoGF8As0Qr6J37NfjWd1Xe3zv/aBZWoiqtuKZ61Jmb8IZHB5yNkGCSyoa1gKexvkbCo/CEa2nJJ7fqL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