header-legacy.99360b2d.js 7.7 KB

1
  1. !function(){var e=document.createElement("style");e.innerHTML="._search_1hvcs_1{--van-cell-background-color: transparent;--van-cell-font-size: .42667rem;--van-cell-text-color: #333;--van-cell-value-color: #999;--van-cell-icon-size: .26667rem;--base-bg: #f6f8f9}._search_1hvcs_1 ._sticky_1hvcs_9 .van-sticky--fixed{box-shadow:.26667rem .26667rem .26667rem var(--box-shadow-color)}._search_1hvcs_1 ._sticky_1hvcs_9>div{background-color:var(--base-bg)}._search_1hvcs_1 ._title_1hvcs_15{padding-top:.42667rem}._search_1hvcs_1 ._title_1hvcs_15 .van-cell__value{font-size:.32rem}._search_1hvcs_1 ._keywordTitle_1hvcs_21{display:flex;align-items:center;justify-content:space-between;padding:.21333rem .24rem}._search_1hvcs_1 ._keywordTitle_1hvcs_21 ._t_1hvcs_15{font-size:.37333rem;font-weight:500;color:#000;line-height:.53333rem}._search_1hvcs_1 ._keywordTitle_1hvcs_21 ._remove_1hvcs_33{font-size:.42667rem}._search_1hvcs_1 ._keywords_1hvcs_36{margin-top:.26667rem;padding:0 .37333rem;display:flex;align-items:center}._search_1hvcs_1 ._keywords_1hvcs_36 ._content_1hvcs_42{flex:1;display:flex;flex-wrap:wrap}._search_1hvcs_1 ._keywords_1hvcs_36 ._content_1hvcs_42 ._searchKeyword_1hvcs_47{--van-tag-default-color: white;--van-tag-text-color: #313443;font-size:.37333rem;padding:.13333rem .37333rem;margin-right:.13333rem;margin-bottom:.26667rem;max-width:2.66667rem;display:block;word-break:keep-all}._search_1hvcs_1 ._keywords_1hvcs_36 ._content_1hvcs_42 ._arrowMore_1hvcs_58{width:.72rem;height:.72rem;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;background-color:#fff;font-size:.32rem;color:#93959f}._search_1hvcs_1 ._label_1hvcs_69{margin-right:.21333rem;font-size:.37333rem}._search_1hvcs_1 ._label_1hvcs_69 .van-list__loading,._search_1hvcs_1 ._label_1hvcs_69 .van-list__finished-text,._search_1hvcs_1 ._label_1hvcs_69 .van-list__error-text{width:100%}._search_1hvcs_1 ._label_1hvcs_69 .iconfont-down{margin-left:.10667rem}._sticky_1hvcs_9 .van-sticky{background:url(./assets/bg-image-search.c44b4a0f.png) no-repeat top center;background-size:100% 5.70667rem;box-shadow:none!important}._sticky_1hvcs_9 .van-search__content{background:rgba(255,255,255,.5)!important}._sticky_1hvcs_9 .van-search__content input::-moz-placeholder{color:rgba(0,0,0,.4)!important}._sticky_1hvcs_9 .van-search__content input::placeholder{color:rgba(0,0,0,.4)!important}._sticky_1hvcs_9 .van-search__content input,._sticky_1hvcs_9 .van-search__content .van-field__clear{color:rgba(0,0,0,.4)!important}._bgImg_1hvcs_98{position:fixed;top:0;left:0;width:100%;height:5.70667rem;z-index:-1}._tagTabs_1hvcs_106{--van-cell-background-color: transparent;--van-cell-font-size: .42667rem;--van-cell-text-color: #333;--van-cell-value-color: #999;--van-cell-icon-size: .26667rem}._tagTabs_1hvcs_106 .van-tab{font-size:.42667rem!important;color:#999}._tagTabs_1hvcs_106 .van-tab--active{font-size:.42667rem!important;color:#131415}._tagTabs_1hvcs_106 .van-tabs__line{width:.64rem;height:.10667rem;background:linear-gradient(90deg,#FF3C81 0%,rgba(255,118,166,.5) 100%)!important;border-radius:.96rem .96rem 0 0}\n",document.head.appendChild(e),System.register(["./index-legacy.fba2875c.js","./index-legacy.78361179.js","./index-legacy.edb65d0c.js","./index-legacy.af00a324.js","./index-legacy.5aeab789.js","./mitt-legacy.d2fe1d8d.js","./index-legacy.fc679d65.js","./index-legacy.33680739.js","./index-legacy.6e10cd37.js","./music-legacy.bbe2d538.js","./select-subject-legacy.91071995.js","./hooks-legacy.148eb332.js","./index-legacy.0e744c22.js"],(function(e){"use strict";var n,a,t,c,r,s,o,l,i,_,h,u,v,d,m,f,g,b,y,p,w,k,x,j,S,T,z,C;return{setters:[function(e){n=e.d,a=e.S,t=e.g,c=e.P,r=e.O,s=e.bD,o=e.a2,l=e.U,i=e.Q,_=e.j,h=e.M,u=e.z,v=e.R,d=e.aR,m=e.Z,f=e.W},function(e){g=e.T},function(){},function(){},function(e){b=e.T,y=e.a},function(e){p=e.m},function(e){w=e.S},function(e){k=e.c},function(e){x=e.c},function(e){j=e.g},function(e){S=e.S},function(e){T=e.a,z=e.S},function(e){C=e.T}],execute:function(){var M=e("s",{search:"_search_1hvcs_1",sticky:"_sticky_1hvcs_9",title:"_title_1hvcs_15",keywordTitle:"_keywordTitle_1hvcs_21",t:"_t_1hvcs_15",remove:"_remove_1hvcs_33",keywords:"_keywords_1hvcs_36",content:"_content_1hvcs_42",searchKeyword:"_searchKeyword_1hvcs_47",arrowMore:"_arrowMore_1hvcs_58",label:"_label_1hvcs_69",bgImg:"_bgImg_1hvcs_98",tagTabs:"_tagTabs_1hvcs_106"});var E=e("m",p()),I=a(),O=n({name:"MusicSearchHeader",setup:function(){if(!T(z.SEARCH).id){var e=t.user.data,n=e.subjectId?Number(e.subjectId.split(",")[0]):"",p=e.subjectName?e.subjectName.split(",")[0]:"";n&&T(z.SEARCH,JSON.stringify({id:n,name:p}),"set")}var O=a();localStorage.setItem("behaviorId",j()),c();var H=r(),R=a(""),$=a(""),A=k("music-search",[]),N=a("all");s((function(){var e=T(z.SEARCH);if(F.name=e.name||"全部声部",F.id=e.id,"/music-songbook/search"===H.path){R.value="",$.value="",N.value="all";try{var n,a;null===(n=I.value)||void 0===n||null===(a=n.resetTags)||void 0===a||a.call(n)}catch(t){console.log(t)}}return!0})),o(N,(function(e){E.emit("changeTab",e)}));var K=function(e){R.value=e;var n=A.value.indexOf(e);n>-1&&A.value.splice(n,1),e&&(A.value.unshift(e),console.log(A.value.length,"words.value.length"),A.value.length=Math.min(A.value.length,10)),E.emit("search",e)},P=function(e){F.name=e.name,F.id=e.id,T(z.SEARCH,JSON.stringify({id:e.id,name:e.name}),"set"),E.emit("confirmSubject",F),F.show=!1};l((function(){}));var L=T(z.SEARCH),F=i({show:!1,name:L.name||"全部声部",id:L.id||""}),J=a([]),U=i({line:0,arrowStatus:!1}),W=function(){f((function(){if(A.value&&A.value.length){var e=-1;U.line=0,J.value.forEach((function(n,a){try{n.$el.style.display="block",0===a?(U.line=1,e=n.$el.offsetLeft):n.$el.offsetLeft===e&&0!=a&&(U.line+=1),U.arrowStatus?n.$el.style.display="block":U.line>2?n.$el.style.display="none":n.$el.style.display="block"}catch(t){console.log(t,"Error")}}))}}))};return W(),function(){return _("div",{class:M.search},[_("div",{class:M.sticky},[_(C,{position:"top"},{default:function(){return[_(w,{modelValue:R.value,background:"transparent",ref:O,onSearch:K,type:"tenant"},{left:function(){return _("div",{class:M.label,onClick:function(){return F.show=!0}},[F.name,_(h,{classPrefix:"iconfont",name:"down",size:12,color:"#333"},null)])}})]}}),_("img",{class:M.bgImg,src:"./assets/bg-image-search.c44b4a0f.png"},null)]),A.value.length>0&&"/music-songbook/search"===H.path&&_("div",{class:M.keywordSection},[_("div",{class:M.keywordTitle},[_("span",{class:M.t},[u("搜索历史")]),_(h,{class:M.remove,name:"delete-o",onClick:function(){return A.value=[]}},null)]),_("div",{class:x(M.keywords)},[_("div",{class:M.content},[A.value.map((function(e,n){return _(g,{ref:function(e){return J.value[n]=e},round:!0,class:[M.searchKeyword,"van-ellipsis"],key:e,onClick:function(){return K(e)}},"function"==typeof(a=e)||"[object Object]"===Object.prototype.toString.call(a)&&!m(a)?e:{default:function(){return[e]}});var a})),U.line>2&&_("span",{class:[M.arrowMore],onClick:function(){U.arrowStatus=!U.arrowStatus,W()}},[_(h,{name:U.arrowStatus?"arrow-up":"arrow-down"},null)])])])]),"/music-songbook/search"===H.path&&_(b,{color:"var(--van-primary)",background:"transparent",lineWidth:20,shrink:!0,class:M.tagTabs,active:N.value,"onUpdate:active":function(e){return N.value=e},onChange:function(e){return N.value=e}},{default:function(){return[_(y,{title:"综合",name:"all"},null),_(y,{title:"单曲",name:"songe"},null),_(y,{title:"专辑",name:"album"},null)]}}),_(v,null,null),_(d,{show:F.show,position:"bottom",round:!0,closeable:!0,"safe-area-inset-bottom":!0,onClose:function(){return F.show=!1},onClosed:function(){return F.show=!1}},{default:function(){return[_(S,{searchParams:F,onComfirm:P},null)]}})])}}}),H=Object.freeze(Object.defineProperty({__proto__:null,mitter:E,default:O},Symbol.toStringTag,{value:"Module"}));e("h",H)}}}))}();