123456 |
- ;(function(){function asyncGeneratorStep(gen,resolve,reject,_next,_throw,key,arg){try{var info=gen[key](arg);var value=info.value;}catch(error){reject(error);return;}if(info.done){resolve(value);}else{Promise.resolve(value).then(_next,_throw);}}function _asyncToGenerator(fn){return function(){var self=this,args=arguments;return new Promise(function(resolve,reject){var gen=fn.apply(self,args);function _next(value){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"next",value);}function _throw(err){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"throw",err);}_next(undefined);});};}var __vite_style__=document.createElement('style');__vite_style__.innerHTML="._wrap_3a9v4_1{display:flex;flex-direction:row;align-items:center;border:1px solid #2dc7aa;padding:0 6px 0 20px;line-height:60px;height:60px;background:#fff;border-radius:30px;overflow:hidden;cursor:pointer}._wrap_3a9v4_1:hover,._wrap_3a9v4_1._active_3a9v4_15{box-shadow:0 2px 8px rgba(0,0,0,.1)}._wrap_3a9v4_1:hover ._searchline_3a9v4_18,._wrap_3a9v4_1._active_3a9v4_15 ._searchline_3a9v4_18,._wrap_3a9v4_1:hover ._searchBtn_3a9v4_20,._wrap_3a9v4_1._active_3a9v4_15 ._searchBtn_3a9v4_20{visibility:visible}._wrap_3a9v4_1 ._selectWrap_3a9v4_24 .el-input__wrapper{padding-right:25px;font-size:16px;box-shadow:none!important;line-height:60px;height:60px;position:relative}._wrap_3a9v4_1 ._selectWrap_3a9v4_24 .el-input__wrapper.is-focus{box-shadow:none!important}._wrap_3a9v4_1 ._selectWrap_3a9v4_24 .el-input.is-focus .el-input__wrapper{box-shadow:none!important;background-color:#fff}._wrap_3a9v4_1 ._selectWrap_3a9v4_24 .el-select__caret{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAYAAAByDd+UAAAAAXNSR0IArs4c6QAAAmBJREFUSEvtlj1oE2EYx//PXdKkFAUXJ6sOfmBJDhSxSYiEDEY61KC250dFkIJUXBxcBIeAODkUQYdOSqhDLhRRinXLoGkiKphcNKgoxRZUKFioDabN5ZGzJiTXfEoIDnnH5+P/e5//+77HEdq8qM08dIAtd/z/tlR6qexlDZNg7Abhtto/HAARN2NDwxPui07tMAnacwDbCgBmDqay6VF4A7lGoQ0BpWhwKwuWZwDt2SDMeLScXTk9573wqxFoXeCu+OTmbnRFwDhQTZCASFaz+N+7/cv1oDWBOyP3rJusPU8BeMqEGFkQLIbYq2w2N/DBe3axFrQ6MBIw2a19UwCOGQRmNDPGxBymwbAbcmmiVV/ScW6hhhsVUsxke6HcJ6bzpVkiRM2mbt/rg4MZe3J6CzKZJ2A4DApzOVrzpR0jHytBK05oj4fHwXzF0JAUrWbPm/3HlwpxKRHs4Yz1IYAjhtrvecF09G3/iYQRugFoj4WvA3zDUPhJE+F+d0j+ZhToSyld4k88AGPIcKZLgoDBhEPWn1JxlQGlmHKJie6CuRhnxlfS1tzq4ZHPVS+DoohSLyYYGDXUZAAaUp3DM4V4UViKh07mGQqBhGIT8w+APKpLVutddz0vxcO3mPlqWS1hlRjDSaf8WI8XgfZY6AtAvSWzr3Be86VcZ2YbgRVqbLPhayTgZqlLABZUp/xHuwSozJd8tvRd+ZMuWX+DTS9bLDRGoDsAxPVmnledp7YbgOEBgCf0TRBwuWBB07S/DfoRMdP4+lB0sXCOdT9t/wqs1tcBttrRzl9byx1tv6W/AYPIyR1H9tHeAAAAAElFTkSuQmCC) no-repeat;background-size:16px 16px;width:16px;height:16px!important;position:absolute;top:-1px;right:-1px}._wrap_3a9v4_1 ._selectWrap_3a9v4_24 .el-icon svg{display:none}._wrap_3a9v4_1 ._selectWrap_3a9v4_24 .el-select .el-input.is-focus .el-input__wrapper{font-size:16px}._wrap_3a9v4_1 ._selectWrap_3a9v4_24 .el-select .el-input.is-focus .el-input__wrapper .el-input{font-size:18px}._wrap_3a9v4_1 ._selectWrap_3a9v4_24 .el-select .el-input.is-focus .el-input__wrapper .el-input .el-input.is-focus .el-input__wrapper,._wrap_3a9v4_1 ._selectWrap_3a9v4_24 .el-select .el-input.is-focus .el-input__wrapper .el-input .el-input__wrapper.is-focus{box-shadow:none!important;background-color:#fff}._wrap_3a9v4_1 ._selectWrap_3a9v4_24{display:flex;flex-direction:row;position:relative;align-items:center}._wrap_3a9v4_1 ._selectWrap_3a9v4_24 ._line_3a9v4_72{width:1px;height:36px;background:#2dc7aa!important}._wrap_3a9v4_1 ._inputSelect_3a9v4_77{width:600px}._wrap_3a9v4_1 ._inputSelect_3a9v4_77 .el-input__wrapper{width:600px;padding-right:0;font-size:16px;box-shadow:none!important;line-height:60px;height:60px;position:relative}._wrap_3a9v4_1 ._inputSelect_3a9v4_77 .el-icon{position:relative;top:-5px;left:-18px;display:block;font-size:30px!important;width:16px;height:16px;opacity:0}._wrap_3a9v4_1 ._inputSelect_3a9v4_77 .el-input__suffix{cursor:pointer;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAUZJREFUWEfNlzEOwjAMRe2WazBU6mEYWRALMyOHYWRmQSwcqFUkuAZtkCtAoW0SOzSETlWa+L84tlOjUmrRtu0BAEBrvSvL8kLvsZ6qqpaIuCf7WZZtsa7rq9Z6/hS853m+KYriFANAKbVumuYIADOyj4i3PgCNR4Hoi78ByCUAcH5RxfDEmDhtFABWSIK2CVMch892BxALwifeHYMZbJwF3ODk2voAmMoTXPGBB6Y4Dom4FSDUE1JxJ4AUIkTcC8CFCBVnAfgg6LtZXqWFbJAFtjRzVDNa0tV2qTjbA57sMJnF9wjbAwwIsbjYA454oE/xASxx8JsjSBqErjyPnoacIsOZY0tvZxZIDEvmmjBWgBCDIWtGAUIMhV7l//VD8s3O+0HGtfUfP6VcWlsqucZ9tjF5Y9LrDYMvFZ93rK1Z8uY0dXv+AOy476YjMFI2AAAAAElFTkSuQmCC) no-repeat;background-size:16px 16px;width:16px;height:16px;position:absolute;top:20px;right:22px}._wrap_3a9v4_1 ._inputSelect_3a9v4_77 .el-input__wrapper.is-focus{box-shadow:none!important}._wrap_3a9v4_1 ._inputSelect_3a9v4_77 .el-input.is-focus .el-input__wrapper{box-shadow:none!important;background-color:#fff}._wrap_3a9v4_1 ._inputSelect_3a9v4_77 .el-input__wrapper{padding-left:0}._wrap_3a9v4_1 ._inputSelect_3a9v4_77 .el-input__wrapper .el-input__inner{font-size:18px!important}._wrap_3a9v4_1 ._inputSelect_3a9v4_77 .el-select .el-input.is-focus .el-input__wrapper{font-size:16px}._wrap_3a9v4_1 ._inputSelect_3a9v4_77 .el-select .el-input.is-focus .el-input__wrapper .el-input{font-size:18px}._wrap_3a9v4_1 ._inputSelect_3a9v4_77 .el-select .el-input.is-focus .el-input__wrapper .el-input .el-input.is-focus .el-input__wrapper,._wrap_3a9v4_1 ._inputSelect_3a9v4_77 .el-select .el-input.is-focus .el-input__wrapper .el-input .el-input__wrapper.is-focus{box-shadow:none!important;background-color:#fff}._wrap_3a9v4_1 ._searchIcon_3a9v4_136{font-size:20px!important}._wrap_3a9v4_1 ._searchWrap_3a9v4_139{cursor:pointer;width:97px;display:flex;flex-direction:row;align-items:center;justify-content:center}._wrap_3a9v4_1 ._searchWrap_3a9v4_139 img{width:24px;height:25px}._wrap_3a9v4_1 ._searchBtn_3a9v4_20{width:90px;height:50px;background:#2dc7aa;border-radius:25px;color:#fff;text-align:center;line-height:50px;cursor:pointer;visibility:hidden}._wrap_3a9v4_1 ._searchBtn_3a9v4_20:active{opacity:.9}._wrap_3a9v4_1 ._searchline_3a9v4_18{visibility:hidden;width:1px;height:36px;background-color:#eee;margin-right:15px}\n";document.head.appendChild(__vite_style__);System.register(['./index-legacy.0dcd49ba.js','./vendor-legacy.9ba3db9d.js'],function(exports){'use strict';var request,state,defineComponent,reactive,watch,onMounted,createVNode,ElSelect,ElOption,ElInput,createTextVNode,Fragment;return{setters:[function(module){request=module.r;state=module.c;},function(module){defineComponent=module.d;reactive=module.r;watch=module.S;onMounted=module.o;createVNode=module.c;ElSelect=module.a1;ElOption=module.a2;ElInput=module.w;createTextVNode=module.a;Fragment=module.F;}],execute:function execute(){var wrap="_wrap_3a9v4_1";var active="_active_3a9v4_15";var searchline="_searchline_3a9v4_18";var searchBtn="_searchBtn_3a9v4_20";var selectWrap="_selectWrap_3a9v4_24";var line="_line_3a9v4_72";var inputSelect="_inputSelect_3a9v4_77";var searchIcon$1="_searchIcon_3a9v4_136";var searchWrap="_searchWrap_3a9v4_139";var classes={wrap:wrap,active:active,searchline:searchline,searchBtn:searchBtn,selectWrap:selectWrap,line:line,inputSelect:inputSelect,searchIcon:searchIcon$1,searchWrap:searchWrap};var searchIcon="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAyCAYAAAAayliMAAAAAXNSR0IArs4c6QAACA1JREFUaEPVWW1wVOUVfs7dzRchaBypjKMQIWpZdjf4QfYmaapgAy1+YG32RoLaYaCdsS1tUaZT/5T0l21VcNCZtiPilJZC7oIUZqAw7RAacHfzQQ1718hHSvGjrRJqtAQSsnvv6dzNhJK97967m8QMfX/uOed5n+e978c5ZwnjGJ6o6nEZWMQSLyDQHQzMIkYJQIUMvkTAZwDOgOgEsRExXMaheOXyD8YxpSWUcgXztKszXDqtBvGTYNyRUzwRA9xGjK2YMrg1VvHUxZziBc5ZCyhvVacX5eEnAFYBKBrvxEw4D9CG/oH+jWcXrhwcK15WAvxtodVs8M8B3DDWiWziegB+Wqtq+PNYsG0FlEd/N60I+ZvBCI4FPNsYBgwAz8c/wHooip5tnOmXUcDwXucDAFXkAjhO390DN05d3nP70svZ4ggFeKN7bgJfPkpAuSMQ0afEOGQQwiCclAzq1aXkIOmuYon5ZnbRXIBrYeDLIBQ44gF/0kvwULdXGcrC1/oFPHF1qusC/gLgblsAok5mfrF/8OKebA6h78i2UuQXrAAbz4JRZofNxDvigYZGENhJhOUL+CLqNgCNNoHnwFirVSu/dwIX2T2qmu+aiWeYsZ6AwkwYTLQuLgdfcppjlAB/OPQUE/8mMyi6jASWddcq7zsBO9n90V0ys74bwIwMvkMSS/Lx6vq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LPNFl5biK3Uvnp/QVTzveHGHhYjMtn+5g8H1YrA5nmHd0XioSaGLw+I0mJtl241L86m06ck9DUlWlgNxiyDbllsSplrx3WKAH3dP46byhRegSAJWkaASGgPUlYOZ5M1d8eeoB1fgPArRnJEb2mycFvOy2EpbU4P7K9TIcrCuCmzOAYIsLrRtJ4KV7zuLieFgT7IzsDzMZzkOgR8/q2wT/WZ6DWbutctaBWGH/nrruNhH6YYP7fZTsYjKOQsB86h9mln4wHTvWCmoz7W1rc59y9N1O+NJcMo5YYj2Y6qGkz9NAUd02s4rFzTqs/6hZKd67oUCt1HfuIxR0zG3CzDZgAkJ8Ngat9iOgdMnjJ8WrlH74j22YjL29TgtzfPBF47N9ZHeJ0J3+Heicn8SYAT65kcvUnwsGkgcbuauWT4XZj8jCBZwF8XGdaZP4uwnT8j8x/cGsxX1do5ierwZByJZaF/wBAP9Xk+l+Y78zcv+6a5b6sHx6dUtDbOvNXRCIcBYwQ8IZD1SDeKKodsiApcmEQ9rBurBu5CDyd6kxXAib52ywBhGNIJOq02hV9o7ZdrpN7o2odGGsI+GqGZqwT5AUAu5ikjXG5Pna1sy/SvAmgNTa3U6drIK+ua+HXP7W9hZwYmPa7WtXpyTw8yMQLiWkBgDnCg0u4CKZTIIQlxiF3XuGBTG361DuULFVh3lgZBhHa+91YfOZexeymZP6XMhsRo3xamtz+It+MJPRpbjYK4ZYuJhmfdS8IfpxLDnVPZ2feUOKM2ZV4xIZD2wANLe6Rn/hP1mcgZ0HjCPDE1Xz3BdrFYEsRfwWWEBlKFiy5JgWYJMv3byooKp1hXuFLbdbiwDUrICXi9P6CovP9f8DwhZE26ILhlr52TQswGZe1vFE4taB4DxEWX6WgnyRaGgsEj1zzAlIi/t5SWPJx714w6gDzVsODI82G/wsBpohbwmrR9YRmuGlDfEHQfOxS47+y8wc8/IF7YgAAAABJRU5ErkJggg==";var SubjectEnum=exports('S',{SEARCH:"music-songbook-subject",VIDEO:"video-subject"});var useSubjectId=exports('u',function(key,value){var type=arguments.length>2&&arguments[2]!==undefined?arguments[2]:"get";if(!key)return"";if(type==="get"){var subject=localStorage.getItem(key);subject=subject?JSON.parse(subject):{name:"",id:""};return subject;}else{localStorage.setItem(key,value);return"";}});var searchInput=exports('s',defineComponent({name:'searchInput',props:{title:{type:String,default:''},isWhile:{type:Boolean,default:true},searchVal:{type:Object,default:{}},showSearch:{type:Boolean,default:false},holder:{type:String,default:'搜一搜你想练习的曲目'},type:{type:String,default:'search'}},emits:['startSearch'],setup:function setup(props,conent){var state$1=reactive({title:props.title,search:props.searchVal.search,subject:null,subjectList:[],holder:props.holder});watch(function(){return props.searchVal;},function(searchVal){// console.log(searchVal,'searchVal')
- state$1.search=searchVal.search?searchVal.search:'';state$1.subject=Number(props.searchVal.subject||props.searchVal.lessonSubject)?Number(props.searchVal.subject||props.searchVal.lessonSubject):'';},{deep:true});var getSubjectList=/*#__PURE__*/function(){var _ref=_asyncToGenerator(/*#__PURE__*/regeneratorRuntime.mark(function _callee(){var _state$user$data,res,result,tempSubject,subjects,subjectIds,subjectId;return regeneratorRuntime.wrap(function _callee$(_context){while(1){switch(_context.prev=_context.next){case 0:console.log('调用');_context.prev=1;_context.next=4;return request.get('/api-website/open/subject/subjectSelect',{params:{type:'MUSIC'}});case 4:res=_context.sent;result=res.data||[];tempSubject=[];result.forEach(function(item){if(item.subjects&&item.subjects.length>0){item.subjects.forEach(function(subject){tempSubject.push(subject);});}});subjects=useSubjectId(SubjectEnum[props.type==='search'?'SEARCH':'VIDEO']);console.log(subjects,'subjects found');state$1.subjectList=tempSubject;subjectIds=((_state$user$data=state.user.data)===null||_state$user$data===void 0?void 0:_state$user$data.subjectId)||'';// 判断是否已有数据
- if(subjects.id){state$1.subject=Number(subjects.id);}else{if(subjectIds){subjectId=Number(subjectIds.split(',')[0]);state$1.subject=subjectId;tempSubject.forEach(function(subject){if(subject.id==subjectId){// 设置默认查询声部
- useSubjectId(SubjectEnum[props.type==='search'?'SEARCH':'VIDEO'],JSON.stringify({id:subjectId,name:subject.name}),'set');}});}}_context.next=18;break;case 15:_context.prev=15;_context.t0=_context["catch"](1);console.log(_context.t0);case 18:case"end":return _context.stop();}}},_callee,null,[[1,15]]);}));return function getSubjectList(){return _ref.apply(this,arguments);};}();var startSearch=function startSearch(){conent.emit('startSearch',{search:state$1.search,subject:state$1.subject});var subjects={id:state$1.subject,name:''};state$1.subjectList.forEach(function(subject){if(subject.id==subjects.id){subjects.name=subject.name;}});// 设置声部
- useSubjectId(SubjectEnum[props.type==='search'?'SEARCH':'VIDEO'],JSON.stringify(subjects),'set');};onMounted(function(){getSubjectList();console.log(props.showSearch,'showSearch');});// let classStyle = classes
- return function(){return createVNode(Fragment,null,[createVNode("div",{"class":[classes.wrap,props.showSearch?classes.active:'']},[createVNode("div",{"class":classes.selectWrap,"id":"selectWrap"},[createVNode(ElSelect,{"modelValue":state$1.subject,"onUpdate:modelValue":function onUpdateModelValue($event){return state$1.subject=$event;},"placeholder":"请选择声部","style":"width: 175px","class":['subSelect',state$1.subject?'hasVal':'']},{default:function _default(){return[state$1.subjectList.map(function(item){return createVNode(ElOption,{"label":item.name,"value":item.id},null);})];},suffix:function suffix(){return createVNode("div",{"class":classes.san},null);}}),createVNode("div",{"class":classes.line},null)]),createVNode("div",{"class":classes.searchWrap},[createVNode("img",{"src":searchIcon,"alt":""},null)]),createVNode(ElInput,{"modelValue":state$1.search,"onUpdate:modelValue":function onUpdateModelValue($event){return state$1.search=$event;},"placeholder":state$1.holder,"clearable":true,"class":classes.inputSelect},null),createVNode("div",{"class":classes.searchline},null),createVNode("div",{"class":classes.searchBtn,"onClick":startSearch},[createTextVNode("\u641C\u7D22")])])]);};}}));}};});})();
|