(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-089772f2"],{1297:function(e,t,c){"use strict";var a=c("4d27"),n=c("fa47"),o=c("5913"),i=(c("d510"),c("7a23"));const s=e=>(Object(i["pushScopeId"])("data-v-73099098"),e=e(),Object(i["popScopeId"])(),e),l={class:"infinite"},r={class:"loading-wrapper"},d={class:"no-more-wrapper"},b=s(()=>Object(i["createElementVNode"])("div",{class:"line"},null,-1)),m={class:"text"},O=s(()=>Object(i["createElementVNode"])("div",{class:"line"},null,-1));function u(e,t,c,s,u,p){const j=o["a"],v=n["a"],h=a["a"];return Object(i["openBlock"])(),Object(i["createElementBlock"])("div",l,[u.status===u.STATUS.LOADING?Object(i["renderSlot"])(e.$slots,"loading",{key:0},()=>[Object(i["createElementVNode"])("div",r,[c.loading?(Object(i["openBlock"])(),Object(i["createBlock"])(j,{key:0},{default:Object(i["withCtx"])(()=>[Object(i["createTextVNode"])(Object(i["toDisplayString"])(c.loadingText),1)]),_:1})):Object(i["createCommentVNode"])("",!0)])],!0):Object(i["createCommentVNode"])("",!0),u.status===u.STATUS.NO_MORE?Object(i["renderSlot"])(e.$slots,"no-more",{key:1},()=>[Object(i["createElementVNode"])("div",d,[b,Object(i["createElementVNode"])("div",m,Object(i["toDisplayString"])(c.noMoreText),1),O])],!0):Object(i["createCommentVNode"])("",!0),u.status===u.STATUS.EMPTY?Object(i["renderSlot"])(e.$slots,"empty",{key:2},()=>[Object(i["createVNode"])(v,{text:c.emptyText},null,8,["text"]),c.actionText?(Object(i["openBlock"])(),Object(i["createBlock"])(h,{key:0,class:"action-button",onClick:p.handleAction},{default:Object(i["withCtx"])(()=>[Object(i["createTextVNode"])(Object(i["toDisplayString"])(c.actionText),1)]),_:1},8,["onClick"])):Object(i["createCommentVNode"])("",!0)],!0):Object(i["createCommentVNode"])("",!0),u.status===u.STATUS.ERROR?Object(i["renderSlot"])(e.$slots,"error",{key:3},()=>[Object(i["createElementVNode"])("div",{class:"error-wrapper",onClick:t[0]||(t[0]=(...e)=>p.restore&&p.restore(...e))},[Object(i["createVNode"])(v,{text:"网络好像出错了..."},null,8,["text"])])],!0):Object(i["createCommentVNode"])("",!0)])}const p={READY:0,LOADING:1,NO_MORE:2,EMPTY:3,ERROR:4};var j={props:{distance:{type:Number,default:10},immediate:{type:Boolean,default:!1},loading:{type:Boolean,default:!0},loadingText:{type:String,default:"加载中..."},noMoreText:{type:String,default:"到底啦"},emptyText:{type:String,default:"没有更多了..."},container:{type:String,default:""},identifier:{type:Number,default:+new Date},actionText:{type:String,default:""}},data(){return{STATUS:p,status:p.READY,hasData:!1}},methods:{isVisible(e){const t=this.scrollParent===window?window.innerHeight:this.scrollParent.getBoundingClientRect().bottom;return e.getBoundingClientRect().top<=t+this.distance},load(){this.status===this.STATUS.READY&&(this.status=this.STATUS.LOADING,this.$emit("infinite",this.$state))},getScrollParent(){let e=window;return this.container&&(e=document.querySelector(this.container)),e},restore(){this.status=p.READY,this.handleScroll(),this.addListener()},handleScroll(){this.isVisible(this.$el)&&this.load()},removeListener(){this.scrollParent.removeEventListener("scroll",this.handleScroll)},addListener(){this.scrollParent.addEventListener("scroll",this.handleScroll)},handleAction(){this.$emit("onAction")}},mounted(){this.scrollParent=this.getScrollParent(),setTimeout(()=>{this.immediate?this.load():this.handleScroll(),this.addListener()},1)},created(){this.$state={loaded:()=>{this.status=this.STATUS.READY,this.hasData=!0},complete:()=>{this.hasData?this.status=this.STATUS.NO_MORE:this.status=this.STATUS.EMPTY,this.removeListener()},error:()=>{this.status=this.STATUS.ERROR,this.removeListener()}}},beforeUnmount(){this.removeListener()},deactivated(){this.status===p.LOADING&&(this.status=p.READY),this.removeListener()},activated(){this.addListener()}},v=(c("199a"),c("6b0d")),h=c.n(v);const f=h()(j,[["render",u],["__scopeId","data-v-73099098"]]);t["a"]=f},"199a":function(e,t,c){"use strict";c("a2d2")},5675:function(e,t,c){},7150:function(e,t,c){"use strict";var a=c("7a23"),n=c("f286");const o=["src"],i={key:0,class:"overlay"},s=["src"];var l={__name:"avatar",props:{src:{type:String,default:"",required:!0},overlayIcon:{type:String,default:""},size:{type:String,default:""},shape:{type:String,default:""},vip:{type:Number,default:0}},setup(e){const t=e,c=Object(n["a"])(),l=Object(a["reactive"])({avatar:""});Object(a["watch"])(()=>t.src,()=>{l.avatar=t.src||c.appConfig.icon},{immediate:!0});const r=()=>{l.avatar=c.appConfig.icon};return(t,c)=>(Object(a["openBlock"])(),Object(a["createElementBlock"])("div",{class:Object(a["normalizeClass"])(["common-avatar",[e.shape,e.size,"vip-"+e.vip]]),onClick:c[0]||(c[0]=(...e)=>t.handleClick&&t.handleClick(...e))},[Object(a["createElementVNode"])("img",{src:l.avatar,class:"avatar",onError:r},null,40,o),e.overlayIcon?(Object(a["openBlock"])(),Object(a["createElementBlock"])("div",i,[Object(a["createElementVNode"])("img",{src:e.overlayIcon},null,8,s)])):Object(a["createCommentVNode"])("",!0)],2))}},r=(c("9945"),c("6b0d")),d=c.n(r);const b=d()(l,[["__scopeId","data-v-49c09412"]]);t["a"]=b},"72f1":function(e,t,c){"use strict";c("68ef"),c("ae9e"),c("8270"),c("b807")},7972:function(e,t,c){},9945:function(e,t,c){"use strict";c("7972")},a2d2:function(e,t,c){},b0df:function(e,t,c){"use strict";c("5675")},b0e5:function(e,t,c){"use strict";c.r(t);var a=c("aad9"),n=(c("72f1"),c("3e47b")),o=(c("e7d9"),c("a410")),i=c("7a23"),s=c("6605"),l=c("1297"),r=c("cdc2"),d=(c("6b65"),c("4d27")),b=c("7150"),m=(c("14d9"),c("5a0c")),O=c.n(m),u=c("e8dc"),p=c("aeeb"),j=c("7222");const v=e=>(Object(i["pushScopeId"])("data-v-488a2f38"),e=e(),Object(i["popScopeId"])(),e),h={class:"list-wrapper"},f=["onClick"],k={class:"bounty-item-top van-hairline--bottom"},y={class:"bounty-info"},S={class:"title-wrapper"},N={class:"title"},g={class:"state"},E={class:"desc-wrapper"},V={class:"left"},T={class:"right"},_={class:"bounty-amount"},C=v(()=>Object(i["createElementVNode"])("span",null,"|",-1)),B=v(()=>Object(i["createElementVNode"])("span",null,"|",-1)),w=["onClick"],x=["onClick"],D=["onClick"],A=["onClick"],R={key:1,class:"bounty-item-bottom"},I={class:"review-mark"};var L={__name:"bountyManageItem",props:["state"],setup(e){const t=e,c=Object(s["d"])(),a=Object(i["reactive"])({list:[],page:0,key:0}),n=()=>{a.key++,a.page=0,a.list=[]},o=e=>Object(p["j"])({item:e,onSuccess:n}),m=e=>Object(p["g"])({item:e,onSuccess:n}),v=e=>Object(p["h"])({item:e,router:c}),L=e=>{c.push("/bounty/manage/"+e.task_id)},U=()=>c.push("/bounty/publishStep1"),M=e=>{c.push("/bounty/audit/"+e.task_id)},P=async e=>{try{const c=await Object(j["m"])({state:t.state,page:++a.page}),n=c.data.list.map(e=>(e.topTime=O()(1e3*e.top_end_time).valueOf()-O()().valueOf(),e.recommendTime=O()(1e3*e.rec_end_time).valueOf()-O()().valueOf(),e));0===c.data.pagination.total?e.complete():c.data.pagination.next?e.loaded():(e.loaded(),e.complete()),a.list=a.list.concat(n)}catch(c){e.complete()}};return(e,t)=>{const c=b["a"],n=d["a"],s=r["a"],O=l["a"];return Object(i["openBlock"])(),Object(i["createElementBlock"])("div",{class:"bounty-manage-item",key:a.key},[Object(i["createElementVNode"])("div",h,[(Object(i["openBlock"])(!0),Object(i["createElementBlock"])(i["Fragment"],null,Object(i["renderList"])(a.list,e=>(Object(i["openBlock"])(),Object(i["createElementBlock"])("div",{class:"list-item",key:e.id,onClick:t=>L(e)},[Object(i["createElementVNode"])("div",k,[Object(i["createVNode"])(c,{src:e.avatar},null,8,["src"]),Object(i["createElementVNode"])("div",y,[Object(i["createElementVNode"])("div",S,[Object(i["createElementVNode"])("div",N,Object(i["toDisplayString"])(e.title),1),Object(i["createElementVNode"])("div",g,Object(i["toDisplayString"])(Object(i["unref"])(u["h"])(e.state,e.is_start)),1)]),Object(i["createElementVNode"])("div",E,[Object(i["createElementVNode"])("div",V,Object(i["toDisplayString"])(e.project_name),1),Object(i["createElementVNode"])("div",T,Object(i["toDisplayString"])(e.category),1)]),Object(i["createElementVNode"])("div",_,[Object(i["createElementVNode"])("span",null,Object(i["toDisplayString"])(e.number_done)+"人已赚",1),C,Object(i["createElementVNode"])("span",null,"剩余"+Object(i["toDisplayString"])(e.number_input-e.number_grab)+"份",1),B,Object(i["createElementVNode"])("span",null,Object(i["toDisplayString"])(e.number_grab)+"人浏览",1)])]),Object(i["createElementVNode"])("div",{onClick:Object(i["withModifiers"])(t=>M(e),["stop"])},[Object(i["createVNode"])(n,{size:"small"},{default:Object(i["withCtx"])(()=>[Object(i["createTextVNode"])(" 待审核 "+Object(i["toDisplayString"])(e.pending_num),1)]),_:2},1024)],8,w)]),e.state===Object(i["unref"])(u["d"]).Online?(Object(i["openBlock"])(),Object(i["createElementBlock"])("div",{key:0,class:"bounty-item-bottom",onClick:t[0]||(t[0]=Object(i["withModifiers"])(()=>{},["stop"]))},[Object(i["createElementVNode"])("div",{class:"action-item",onClick:t=>o(e)},[Object(i["createTextVNode"])(" 置顶 "),e.topTime>0?(Object(i["openBlock"])(),Object(i["createBlock"])(s,{key:0,time:e.topTime,format:"mm:ss"},null,8,["time"])):Object(i["createCommentVNode"])("",!0)],8,x),Object(i["createElementVNode"])("div",{class:"action-item",onClick:t=>m(e)},[Object(i["createTextVNode"])(" 推荐 "),e.recommendTime>0?(Object(i["openBlock"])(),Object(i["createBlock"])(s,{key:0,time:e.recommendTime,format:"mm:ss"},null,8,["time"])):Object(i["createCommentVNode"])("",!0)],8,D),Object(i["createElementVNode"])("div",{class:"action-item",onClick:t=>v(e)},"刷新",8,A)])):e.state===Object(i["unref"])(u["d"]).Reject?(Object(i["openBlock"])(),Object(i["createElementBlock"])("div",R,[Object(i["createElementVNode"])("div",I,"拒绝原因: "+Object(i["toDisplayString"])(e.review_mark),1)])):Object(i["createCommentVNode"])("",!0)],8,f))),128))]),Object(i["createVNode"])(O,{onInfinite:P,emptyText:"没有更多内容，发个任务看看吧",actionText:"发布任务",onOnAction:U})])}}},U=(c("b0df"),c("6b0d")),M=c.n(U);const P=M()(L,[["__scopeId","data-v-488a2f38"]]);var Y=P;const $={class:"bounty-manage"};var q={__name:"bountyManage",setup(e){const t=Object(s["c"])(),c=Object(s["d"])(),l=Object(i["reactive"])({tabs:[{label:"进行中",state:998},{label:"暂停中",state:997},{label:"审核中",state:0},{label:"审核失败",state:4},{label:"已关闭",state:999}],active:Number(t.query.active)||0});return Object(i["watch"])(()=>l.active,()=>{c.replace({name:c.name,query:{active:l.active}})}),(e,t)=>{const c=o["a"],s=n["a"],r=a["a"];return Object(i["openBlock"])(),Object(i["createElementBlock"])("div",$,[Object(i["createVNode"])(c,{title:"悬赏管理"}),Object(i["createVNode"])(r,{animated:"",swipeable:"","line-width":28,"line-height":3,border:"",active:l.active,"onUpdate:active":t[0]||(t[0]=e=>l.active=e)},{default:Object(i["withCtx"])(()=>[(Object(i["openBlock"])(!0),Object(i["createElementBlock"])(i["Fragment"],null,Object(i["renderList"])(l.tabs,e=>(Object(i["openBlock"])(),Object(i["createBlock"])(s,{key:e.state,title:e.label},{default:Object(i["withCtx"])(()=>[Object(i["createVNode"])(Y,{state:e.state},null,8,["state"])]),_:2},1032,["title"]))),128))]),_:1},8,["active"])])}}};c("f9c2");const z=M()(q,[["__scopeId","data-v-fbcca834"]]);t["default"]=z},b2b1:function(e,t,c){e.exports=c.p+"img/empty_icon.decf0804.png"},b3e7:function(e,t,c){},bc47:function(e,t,c){},d510:function(e,t,c){"use strict";c("68ef"),c("e3b3")},e7d9:function(e,t,c){"use strict";c("68ef"),c("cb51"),c("ae9e"),c("8270"),c("786d"),c("b807"),c("f319")},f82b:function(e,t,c){"use strict";c("bc47")},f9c2:function(e,t,c){"use strict";c("b3e7")},fa47:function(e,t,c){"use strict";var a=c("7a23"),n=c("b2b1"),o=c.n(n);const i=e=>(Object(a["pushScopeId"])("data-v-3e451752"),e=e(),Object(a["popScopeId"])(),e),s={class:"empty-wrap"},l=i(()=>Object(a["createElementVNode"])("img",{class:"img",src:o.a,alt:""},null,-1)),r={class:"text"};var d={__name:"index",props:["text"],setup(e){return(t,c)=>(Object(a["openBlock"])(),Object(a["createElementBlock"])("div",s,[l,Object(a["createElementVNode"])("div",r,Object(a["toDisplayString"])(e.text||"暂无任务"),1)]))}},b=(c("f82b"),c("6b0d")),m=c.n(b);const O=m()(d,[["__scopeId","data-v-3e451752"]]);t["a"]=O}}]);