(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2730bfed"],{"08af":function(e,t,c){"use strict";c("dc5f")},1297:function(e,t,c){"use strict";var a=c("4d27"),n=c("fa47"),o=c("5913"),r=(c("d510"),c("7a23"));const i=e=>(Object(r["pushScopeId"])("data-v-73099098"),e=e(),Object(r["popScopeId"])(),e),s={class:"infinite"},l={class:"loading-wrapper"},d={class:"no-more-wrapper"},b=i(()=>Object(r["createElementVNode"])("div",{class:"line"},null,-1)),u={class:"text"},p=i(()=>Object(r["createElementVNode"])("div",{class:"line"},null,-1));function f(e,t,c,i,f,O){const j=o["a"],m=n["a"],h=a["a"];return Object(r["openBlock"])(),Object(r["createElementBlock"])("div",s,[f.status===f.STATUS.LOADING?Object(r["renderSlot"])(e.$slots,"loading",{key:0},()=>[Object(r["createElementVNode"])("div",l,[c.loading?(Object(r["openBlock"])(),Object(r["createBlock"])(j,{key:0},{default:Object(r["withCtx"])(()=>[Object(r["createTextVNode"])(Object(r["toDisplayString"])(c.loadingText),1)]),_:1})):Object(r["createCommentVNode"])("",!0)])],!0):Object(r["createCommentVNode"])("",!0),f.status===f.STATUS.NO_MORE?Object(r["renderSlot"])(e.$slots,"no-more",{key:1},()=>[Object(r["createElementVNode"])("div",d,[b,Object(r["createElementVNode"])("div",u,Object(r["toDisplayString"])(c.noMoreText),1),p])],!0):Object(r["createCommentVNode"])("",!0),f.status===f.STATUS.EMPTY?Object(r["renderSlot"])(e.$slots,"empty",{key:2},()=>[Object(r["createVNode"])(m,{text:c.emptyText},null,8,["text"]),c.actionText?(Object(r["openBlock"])(),Object(r["createBlock"])(h,{key:0,class:"action-button",onClick:O.handleAction},{default:Object(r["withCtx"])(()=>[Object(r["createTextVNode"])(Object(r["toDisplayString"])(c.actionText),1)]),_:1},8,["onClick"])):Object(r["createCommentVNode"])("",!0)],!0):Object(r["createCommentVNode"])("",!0),f.status===f.STATUS.ERROR?Object(r["renderSlot"])(e.$slots,"error",{key:3},()=>[Object(r["createElementVNode"])("div",{class:"error-wrapper",onClick:t[0]||(t[0]=(...e)=>O.restore&&O.restore(...e))},[Object(r["createVNode"])(m,{text:"网络好像出错了..."},null,8,["text"])])],!0):Object(r["createCommentVNode"])("",!0)])}const O={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:O,status:O.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=O.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===O.LOADING&&(this.status=O.READY),this.removeListener()},activated(){this.addListener()}},m=(c("199a"),c("6b0d")),h=c.n(m);const v=h()(j,[["render",f],["__scopeId","data-v-73099098"]]);t["a"]=v},"12ec":function(e,t,c){},"199a":function(e,t,c){"use strict";c("a2d2")},3225:function(e,t,c){},"43fa":function(e,t,c){"use strict";c("12ec")},"4d27":function(e,t,c){"use strict";var a=c("2e1b"),n=(c("22fa"),c("7a23")),o=c("85b1"),r=c("2332"),i="Expected a function";function s(e,t,c){var a=!0,n=!0;if("function"!=typeof e)throw new TypeError(i);return Object(r["a"])(c)&&(a="leading"in c?!!c.leading:a,n="trailing"in c?!!c.trailing:n),Object(o["a"])(e,t,{leading:a,maxWait:t,trailing:n})}var l=s,d={__name:"commonButton",props:{fixed:{type:Boolean,default:!1},bottom:{type:Boolean,default:!1}},emits:["click"],setup(e,{emit:t}){const c=e,o=()=>{t("click")},r=l(o,1e3);return(e,t)=>{const o=a["a"];return Object(n["openBlock"])(),Object(n["createElementBlock"])("div",{class:Object(n["normalizeClass"])(["common-button",{fixed:c.fixed,bottom:c.bottom}])},[Object(n["createVNode"])(o,Object(n["mergeProps"])({color:"linear-gradient(90deg, #FD8141, #FB4724)",onClick:Object(n["unref"])(r),block:""},e.$attrs),{default:Object(n["withCtx"])(()=>[Object(n["renderSlot"])(e.$slots,"default")]),_:3},16,["onClick"])],2)}}},b=(c("f811"),c("6b0d")),u=c.n(b);const p=u()(d,[["__scopeId","data-v-0435a750"]]);t["a"]=p},7150:function(e,t,c){"use strict";var a=c("7a23"),n=c("f286");const o=["src"],r={key:0,class:"overlay"},i=["src"];var s={__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"])(),s=Object(a["reactive"])({avatar:""});Object(a["watch"])(()=>t.src,()=>{s.avatar=t.src||c.appConfig.icon},{immediate:!0});const l=()=>{s.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:s.avatar,class:"avatar",onError:l},null,40,o),e.overlayIcon?(Object(a["openBlock"])(),Object(a["createElementBlock"])("div",r,[Object(a["createElementVNode"])("img",{src:e.overlayIcon},null,8,i)])):Object(a["createCommentVNode"])("",!0)],2))}},l=(c("9945"),c("6b0d")),d=c.n(l);const b=d()(s,[["__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){},"7be8":function(e,t,c){"use strict";c("ec32")},"8a0b":function(e,t,c){},"951b":function(e,t,c){"use strict";c.r(t);var a=c("aad9"),n=(c("72f1"),c("3e47b")),o=(c("e7d9"),c("a410")),r=c("7a23"),i=c("1297"),s=c("7150"),l=c("a042"),d=c.n(l),b=c("b05c");const u=e=>(Object(r["pushScopeId"])("data-v-57c6a51c"),e=e(),Object(r["popScopeId"])(),e),p={class:"common-page-inner"},f={class:"list-wrap"},O={class:"left flex-ac"},j={class:"info-wrap"},m={class:"id"},h={class:"time"},v={key:0,class:"money"},g={key:1,class:"point"},k=u(()=>Object(r["createElementVNode"])("img",{src:d.a},null,-1));var y={__name:"InviteRecordItem",props:["type"],setup(e){const t=e,c=Object(r["reactive"])({list:[],page:1}),a=async e=>{try{const t=await Object(b["a"])(c.page++);0===t.data.pagination.total?e.complete():t.data.pagination.next?e.loaded():(e.loaded(),e.complete()),c.list=c.list.concat(t.data.list)}catch(t){e.complete()}};return(e,n)=>{const o=s["a"],l=i["a"];return Object(r["openBlock"])(),Object(r["createElementBlock"])("div",p,[Object(r["createElementVNode"])("div",f,[(Object(r["openBlock"])(!0),Object(r["createElementBlock"])(r["Fragment"],null,Object(r["renderList"])(c.list,(e,c)=>(Object(r["openBlock"])(),Object(r["createElementBlock"])("div",{class:"item flex-ac-jb",key:c},[Object(r["createElementVNode"])("div",O,[Object(r["createVNode"])(o,{src:e.avatar,shape:"round"},null,8,["src"]),Object(r["createElementVNode"])("div",j,[Object(r["createElementVNode"])("div",m,Object(r["toDisplayString"])(e.user_id),1),Object(r["createElementVNode"])("div",h,Object(r["toDisplayString"])(e.create_time),1)])]),"money"===t.type?(Object(r["openBlock"])(),Object(r["createElementBlock"])("div",v,"+"+Object(r["toDisplayString"])(e.money),1)):(Object(r["openBlock"])(),Object(r["createElementBlock"])("div",g,[Object(r["createTextVNode"])(" +"+Object(r["toDisplayString"])(e.point),1),k]))]))),128))]),Object(r["createVNode"])(l,{onInfinite:a})])}}},S=(c("43fa"),c("6b0d")),x=c.n(S);const B=x()(y,[["__scopeId","data-v-57c6a51c"]]);var N=B,T=c("f286");const E={class:"invite-record"};var V={__name:"InviteRecord",setup(e){const t=Object(T["a"])(),c=Object(r["reactive"])({tabs:[{type:"money",title:"现金收益"},{type:"point",title:"金币收益"}]});return(e,i)=>{const s=o["a"],l=n["a"],d=a["a"];return Object(r["openBlock"])(),Object(r["createElementBlock"])("div",E,[Object(r["createVNode"])(s,{title:"邀请记录"}),Object(r["unref"])(t).appConfig.isGame?(Object(r["openBlock"])(),Object(r["createBlock"])(d,{key:0,"line-width":28,"line-height":3,border:""},{default:Object(r["withCtx"])(()=>[(Object(r["openBlock"])(!0),Object(r["createElementBlock"])(r["Fragment"],null,Object(r["renderList"])(c.tabs,e=>(Object(r["openBlock"])(),Object(r["createBlock"])(l,{title:e.title,key:e.title},{default:Object(r["withCtx"])(()=>[Object(r["createVNode"])(N,{type:e.type},null,8,["type"])]),_:2},1032,["title"]))),128))]),_:1})):(Object(r["openBlock"])(),Object(r["createBlock"])(N,{key:1,type:"money"}))])}}};c("7be8");const w=x()(V,[["__scopeId","data-v-5929d15a"]]);t["default"]=w},9945:function(e,t,c){"use strict";c("7972")},a2d2:function(e,t,c){},a410:function(e,t,c){"use strict";var a=c("23f9"),n=c("7a23"),o=c("1fba"),r=c("e5f6"),i=c("5aa0"),s=c("d243"),l=c("fa8a"),d=c("9a1c");const[b,u]=Object(o["a"])("nav-bar"),p={title:String,fixed:Boolean,zIndex:r["f"],border:r["g"],leftText:String,rightText:String,leftDisabled:Boolean,rightDisabled:Boolean,leftArrow:Boolean,placeholder:Boolean,safeAreaInsetTop:Boolean,clickable:r["g"]};var f=Object(n["defineComponent"])({name:b,props:p,emits:["clickLeft","clickRight"],setup(e,{emit:t,slots:c}){const a=Object(n["ref"])(),o=Object(l["a"])(a,u),r=c=>{e.leftDisabled||t("clickLeft",c)},b=c=>{e.rightDisabled||t("clickRight",c)},p=()=>c.left?c.left():[e.leftArrow&&Object(n["createVNode"])(d["a"],{class:u("arrow"),name:"arrow-left"},null),e.leftText&&Object(n["createVNode"])("span",{class:u("text")},[e.leftText])],f=()=>c.right?c.right():Object(n["createVNode"])("span",{class:u("text")},[e.rightText]),O=()=>{const{title:t,fixed:o,border:l,zIndex:d}=e,O=Object(i["f"])(d),j=e.leftArrow||e.leftText||c.left,m=e.rightText||c.right;return Object(n["createVNode"])("div",{ref:a,style:O,class:[u({fixed:o}),{[s["a"]]:l,"van-safe-area-top":e.safeAreaInsetTop}]},[Object(n["createVNode"])("div",{class:u("content")},[j&&Object(n["createVNode"])("div",{class:[u("left",{disabled:e.leftDisabled}),e.clickable&&!e.leftDisabled?s["i"]:""],onClick:r},[p()]),Object(n["createVNode"])("div",{class:[u("title"),"van-ellipsis"]},[c.title?c.title():t]),m&&Object(n["createVNode"])("div",{class:[u("right",{disabled:e.rightDisabled}),e.clickable&&!e.rightDisabled?s["i"]:""],onClick:b},[f()])])])};return()=>e.fixed&&e.placeholder?o(O):O()}});const O=Object(a["a"])(f);c("68ef"),c("cb51"),c("3743"),c("8a0b"),c("14d9");var j=c("6605"),m={__name:"index",props:{title:{type:String},hideBackIcon:{type:Boolean,default:!1},to:{type:String,default:""},theme:{type:Boolean,default:!1},transparent:{type:Boolean,default:!1},dark:{type:Boolean,default:!1}},setup(e){const t=e,c=Object(j["d"])(),a=()=>{t.to?c.push(t.to):c.go(-1)};return(c,o)=>{const r=O;return Object(n["openBlock"])(),Object(n["createBlock"])(r,Object(n["mergeProps"])({title:t.title,"left-arrow":!e.hideBackIcon,onClickLeft:a,"safe-area-inset-top":"",fixed:!e.transparent,placeholder:"",border:!e.transparent&&!e.theme,class:{theme:e.theme,transparent:e.transparent,dark:e.dark}},c.$attrs),{right:Object(n["withCtx"])(()=>[Object(n["renderSlot"])(c.$slots,"right")]),_:3},16,["title","left-arrow","fixed","border","class"])}}};c("08af");const h=m;t["a"]=h},b05c:function(e,t,c){"use strict";c.d(t,"a",(function(){return n})),c.d(t,"e",(function(){return o})),c.d(t,"b",(function(){return r})),c.d(t,"d",(function(){return i})),c.d(t,"c",(function(){return s}));var a=c("b775");const n=e=>Object(a["a"])({url:"/api/user/relation/list",params:{page:e,size:20}}),o=()=>Object(a["a"])({url:"/api/user/relation/stats"}),r=e=>Object(a["a"])({url:"/api/user/relation/list",params:e}),i=e=>Object(a["a"])({url:"/api/user/relation/point",params:e}),s=e=>Object(a["a"])({url:"/api/user/cash/share",params:e})},b2b1:function(e,t,c){e.exports=c.p+"img/empty_icon.decf0804.png"},bc47:function(e,t,c){},d510:function(e,t,c){"use strict";c("68ef"),c("e3b3")},dc5f:function(e,t,c){},e7d9:function(e,t,c){"use strict";c("68ef"),c("cb51"),c("ae9e"),c("8270"),c("786d"),c("b807"),c("f319")},ec32:function(e,t,c){},f811:function(e,t,c){"use strict";c("3225")},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 r=e=>(Object(a["pushScopeId"])("data-v-3e451752"),e=e(),Object(a["popScopeId"])(),e),i={class:"empty-wrap"},s=r(()=>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",i,[s,Object(a["createElementVNode"])("div",l,Object(a["toDisplayString"])(e.text||"暂无任务"),1)]))}},b=(c("f82b"),c("6b0d")),u=c.n(b);const p=u()(d,[["__scopeId","data-v-3e451752"]]);t["a"]=p},fa8a:function(e,t,c){"use strict";c.d(t,"a",(function(){return s}));var a=c("7a23"),n=c("450f"),o=c("8db7"),r=c("ee0b");const i=(e,t)=>{const c=Object(a["ref"])(),i=()=>{c.value=Object(n["useRect"])(e).height};return Object(a["onMounted"])(()=>{if(Object(a["nextTick"])(i),t)for(let e=1;e<=3;e++)setTimeout(i,100*e)}),Object(r["b"])(()=>Object(a["nextTick"])(i)),Object(a["watch"])([o["j"],o["i"]],i),c};function s(e,t){const c=i(e,!0);return e=>Object(a["createVNode"])("div",{class:t("placeholder"),style:{height:c.value?c.value+"px":void 0}},[e()])}}}]);