(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-4f69628a"],{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),r={class:"infinite"},l={class:"loading-wrapper"},d={class:"no-more-wrapper"},b=s(()=>Object(i["createElementVNode"])("div",{class:"line"},null,-1)),p={class:"text"},O=s(()=>Object(i["createElementVNode"])("div",{class:"line"},null,-1));function m(e,t,c,s,m,u){const j=o["a"],h=n["a"],f=a["a"];return Object(i["openBlock"])(),Object(i["createElementBlock"])("div",r,[m.status===m.STATUS.LOADING?Object(i["renderSlot"])(e.$slots,"loading",{key:0},()=>[Object(i["createElementVNode"])("div",l,[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),m.status===m.STATUS.NO_MORE?Object(i["renderSlot"])(e.$slots,"no-more",{key:1},()=>[Object(i["createElementVNode"])("div",d,[b,Object(i["createElementVNode"])("div",p,Object(i["toDisplayString"])(c.noMoreText),1),O])],!0):Object(i["createCommentVNode"])("",!0),m.status===m.STATUS.EMPTY?Object(i["renderSlot"])(e.$slots,"empty",{key:2},()=>[Object(i["createVNode"])(h,{text:c.emptyText},null,8,["text"]),c.actionText?(Object(i["openBlock"])(),Object(i["createBlock"])(f,{key:0,class:"action-button",onClick:u.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),m.status===m.STATUS.ERROR?Object(i["renderSlot"])(e.$slots,"error",{key:3},()=>[Object(i["createElementVNode"])("div",{class:"error-wrapper",onClick:t[0]||(t[0]=(...e)=>u.restore&&u.restore(...e))},[Object(i["createVNode"])(h,{text:"网络好像出错了..."},null,8,["text"])])],!0):Object(i["createCommentVNode"])("",!0)])}const u={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:u,status:u.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=u.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===u.LOADING&&(this.status=u.READY),this.removeListener()},activated(){this.addListener()}},h=(c("199a"),c("6b0d")),f=c.n(h);const v=f()(j,[["render",m],["__scopeId","data-v-73099098"]]);t["a"]=v},"199a":function(e,t,c){"use strict";c("a2d2")},"277e":function(e,t,c){},"302f":function(e,t,c){e.exports=c.p+"img/join_end.2e25bad3.png"},3843:function(e,t,c){"use strict";c.r(t);var a=c("1297"),n=c("7150"),o=c("2e1b"),i=(c("22fa"),c("9a1c")),s=(c("89a0"),c("a410")),r=(c("14d9"),c("7a23")),l=c("302f"),d=c.n(l),b=c("f293"),p=c.n(b),O=c("551c"),m=c.n(O),u=c("c1d3"),j=c.n(u),h=c("867a"),f=c.n(h),v=c("ff5d"),k=c.n(v),g=c("5a0c"),y=c.n(g),E=c("6605"),S=c("aeeb"),N=c("7222"),V=c("f286");const B=e=>(Object(r["pushScopeId"])("data-v-c3048b94"),e=e(),Object(r["popScopeId"])(),e),T={class:"bounty-bid"},x={class:"bounty-bid-header"},_={class:"join-btn"},C={key:0,src:d.a},w={class:"bottom-btn"},D={class:"bounty-bid-content"},A=B(()=>Object(r["createElementVNode"])("div",{class:"content-header"},[Object(r["createElementVNode"])("img",{src:m.a})],-1)),I={class:"bounty-bid-list"},R=["onClick"],L={class:"rank-wrapper"},Y={key:0},U={key:1,src:j.a},$={key:2,src:f.a},M={key:3,src:k.a},P={key:4},z={class:"task-info"},F={class:"title-wrapper"},G={class:"title"},q={key:0,class:"rank"},J={class:"money"},H={class:"desc-wrapper"},K={class:"project-name"},Q={class:"category"},W={class:"bid-time"};var X={__name:"bountyBid",setup(e){const t=Object(E["d"])(),c=Object(V["a"])(),l=Object(r["reactive"])({list:[],page:1,disabled:y()().isAfter(y()(y()().format("YYYY-MM-DD")+" 21:00:00"))}),d=e=>{e.task_id&&t.push("/bounty/detail/"+e.task_id)},b=async e=>{try{const t=await Object(N["i"])({page:l.page++});0===t.data.pagination.total?e.complete():t.data.pagination.next?e.loaded():(e.loaded(),e.complete()),l.list=l.list.concat(t.data.list)}catch(t){e.complete()}};return(e,t)=>{const O=s["a"],m=i["a"],u=o["a"],j=n["a"],h=a["a"];return Object(r["openBlock"])(),Object(r["createElementBlock"])("div",T,[Object(r["createVNode"])(O,{title:"首页竞价",transparent:"",dark:"",fixed:!1},{right:Object(r["withCtx"])(()=>[Object(r["createElementVNode"])("span",{onClick:t[0]||(t[0]=(...e)=>Object(r["unref"])(S["c"])&&Object(r["unref"])(S["c"])(...e))},"竞价规则")]),_:1}),Object(r["createElementVNode"])("div",x,[Object(r["createElementVNode"])("div",_,[l.disabled?(Object(r["openBlock"])(),Object(r["createElementBlock"])("img",C)):(Object(r["openBlock"])(),Object(r["createElementBlock"])("img",{key:1,src:p.a,onClick:t[1]||(t[1]=t=>e.$router.push("/bounty/bid/join"))}))]),Object(r["createElementVNode"])("div",w,[Object(r["createVNode"])(u,{color:"#FF3F17",plain:"",onClick:t[2]||(t[2]=t=>e.$router.push("/bounty/bid/past"))},{default:Object(r["withCtx"])(()=>[Object(r["createTextVNode"])(" 查看昨日竞价"),Object(r["createVNode"])(m,{name:"arrow"})]),_:1}),Object(r["createVNode"])(u,{onClick:t[3]||(t[3]=t=>e.$router.push("/bounty/bid/mine"))},{default:Object(r["withCtx"])(()=>[Object(r["createTextVNode"])(" 我的竞价"),Object(r["createVNode"])(m,{name:"arrow"})]),_:1})])]),Object(r["createElementVNode"])("div",D,[A,Object(r["createElementVNode"])("div",I,[(Object(r["openBlock"])(!0),Object(r["createElementBlock"])(r["Fragment"],null,Object(r["renderList"])(l.list,(e,t)=>(Object(r["openBlock"])(),Object(r["createElementBlock"])("div",{class:Object(r["normalizeClass"])(["bounty-bid-item van-hairline--bottom",{active:e.user_hid===Object(r["unref"])(c).userInfo.id}]),key:e.bid,onClick:t=>d(e)},[Object(r["createElementVNode"])("div",L,[e.user_hid===Object(r["unref"])(c).userInfo.id?(Object(r["openBlock"])(),Object(r["createElementBlock"])("span",Y,"我")):0===t?(Object(r["openBlock"])(),Object(r["createElementBlock"])("img",U)):1===t?(Object(r["openBlock"])(),Object(r["createElementBlock"])("img",$)):2===t?(Object(r["openBlock"])(),Object(r["createElementBlock"])("img",M)):(Object(r["openBlock"])(),Object(r["createElementBlock"])("span",P,Object(r["toDisplayString"])(t+1),1))]),Object(r["createVNode"])(j,{src:e.avatar,vip:e.push_vip,size:"small"},null,8,["src","vip"]),Object(r["createElementVNode"])("div",z,[Object(r["createElementVNode"])("div",F,[Object(r["createElementVNode"])("div",G,Object(r["toDisplayString"])(e.title),1),e.user_hid===Object(r["unref"])(c).userInfo.id?(Object(r["openBlock"])(),Object(r["createElementBlock"])("div",q," 第"+Object(r["toDisplayString"])(t+1)+"名 ",1)):Object(r["createCommentVNode"])("",!0),Object(r["createElementVNode"])("div",J,Object(r["toDisplayString"])(e.money),1)]),Object(r["createElementVNode"])("div",H,[Object(r["createElementVNode"])("div",K,Object(r["toDisplayString"])(e.project_name),1),Object(r["createElementVNode"])("div",Q,Object(r["toDisplayString"])(e.category),1),Object(r["createElementVNode"])("div",W,Object(r["toDisplayString"])(e.create_time),1)])])],10,R))),128)),Object(r["createVNode"])(h,{onInfinite:b})])])])}}},Z=(c("a824"),c("6b0d")),ee=c.n(Z);const te=ee()(X,[["__scopeId","data-v-c3048b94"]]);t["default"]=te},"551c":function(e,t,c){e.exports=c.p+"img/bid_header.84a4838f.png"},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 r={__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"])(),r=Object(a["reactive"])({avatar:""});Object(a["watch"])(()=>t.src,()=>{r.avatar=t.src||c.appConfig.icon},{immediate:!0});const l=()=>{r.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:r.avatar,class:"avatar",onError:l},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))}},l=(c("9945"),c("6b0d")),d=c.n(l);const b=d()(r,[["__scopeId","data-v-49c09412"]]);t["a"]=b},7972:function(e,t,c){},"867a":function(e,t,c){e.exports=c.p+"img/2.8fc6e3cc.png"},"89a0":function(e,t,c){"use strict";c("68ef"),c("cb51"),c("3743")},9945:function(e,t,c){"use strict";c("7972")},a2d2:function(e,t,c){},a824:function(e,t,c){"use strict";c("277e")},b2b1:function(e,t,c){e.exports=c.p+"img/empty_icon.decf0804.png"},bc47:function(e,t,c){},c1d3:function(e,t,c){e.exports=c.p+"img/1.9496c924.png"},d510:function(e,t,c){"use strict";c("68ef"),c("e3b3")},f293:function(e,t,c){e.exports=c.p+"img/join.c5bfedf9.png"},f82b:function(e,t,c){"use strict";c("bc47")},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"},r=i(()=>Object(a["createElementVNode"])("img",{class:"img",src:o.a,alt:""},null,-1)),l={class:"text"};var d={__name:"index",props:["text"],setup(e){return(t,c)=>(Object(a["openBlock"])(),Object(a["createElementBlock"])("div",s,[r,Object(a["createElementVNode"])("div",l,Object(a["toDisplayString"])(e.text||"暂无任务"),1)]))}},b=(c("f82b"),c("6b0d")),p=c.n(b);const O=p()(d,[["__scopeId","data-v-3e451752"]]);t["a"]=O},ff5d:function(e,t,c){e.exports=c.p+"img/3.92e75363.png"}}]);