"use strict";const o=require("../../common/vendor.js"),e=require("../../components/request.js"),t=require("../../components/formatDate.js"),n=require("../../components/TimeFormatting.js"),r=require("../../common/assets.js"),a={data:()=>({userinfo:{},pkInformationdata:[],myPkRecorddata:[]}),onShow(){o.index.getStorage({key:"userinfo",success:o=>{this.userinfo=o.data,console.log(this.userinfo),this.getpkInformation(),this.getmyPkRecord()}})},methods:{formatDate:t.formatDate,TimeFormatting:n.TimeFormatting,getpkInformation(){e.request({url:"user/queryMyAllPkData",method:"POST",data:{userId:this.userinfo.id,page:0,size:4},userInfo:!0}).then((o=>{200==o.code?(this.pkInformationdata=o.data,console.log(this.pkInformationdata)):console.log(o.msg)}))},getmyPkRecord(){e.request({url:"user/handlePkInfo",method:"POST",data:{type:1,userId:this.userinfo.id,page:0,size:4},userInfo:!1}).then((o=>{200==o.code?(this.myPkRecorddata=o.data,console.log(this.myPkRecorddata)):console.log(o.msg)}))},pkInformation(){o.index.navigateTo({url:"/pages/Mine/minecomponents/pkInformation"})},pkRecord(){o.index.navigateTo({url:"/pages/Mine/minecomponents/pkRecord"})},contact(){o.index.navigateTo({url:"/pages/Mine/minecomponents/contact"})},goSetting(){o.index.navigateTo({url:"/pages/Setting/Setting"})},serviceProtocol(){o.index.navigateTo({url:"/pages/Mine/minecomponents/serviceProtocol"})},logout(){o.index.clearStorage(),o.A.logout,o.index.reLaunch({url:"/pages/login/login"})}},components:{tabBar:()=>"../../components/tabBar/tabBar.js"}};if(!Array){o.resolveComponent("tabBar")()}Math;const i=o._export_sfc(a,[["render",function(e,t,n,a,i,s){return{a:r._imports_0$1,b:i.userinfo.headerIcon,c:o.t(i.userinfo.nickName),d:r._imports_1$1,e:o.o$1(((...o)=>s.goSetting&&s.goSetting(...o))),f:r._imports_2$1,g:o.o$1(((...o)=>s.pkInformation&&s.pkInformation(...o))),h:o.f(i.pkInformationdata,((e,t,n)=>({a:e.anchorIcon,b:o.t(s.formatDate(e.pkTime)),c:o.t(e.coin),d:t}))),i:r._imports_2$1,j:o.o$1(((...o)=>s.pkRecord&&s.pkRecord(...o))),k:o.f(i.myPkRecorddata,((e,t,n)=>o.e({a:e.anchorIconA,b:e.winnerAnchorId!==e.anchorIdA},(e.winnerAnchorId!==e.anchorIdA||(e.winnerAnchorId,e.anchorIdA),{}),{c:e.winnerAnchorId===e.anchorIdA,d:o.t(e.pkNumber),e:o.t(s.TimeFormatting(e.pkTime)),f:t}))),l:r._imports_3$1,m:o.o$1(((...o)=>s.contact&&s.contact(...o))),n:r._imports_4,o:o.o$1(((...o)=>s.serviceProtocol&&s.serviceProtocol(...o))),p:r._imports_5,q:o.o$1(((...o)=>s.logout&&s.logout(...o)))}}],["__scopeId","data-v-ff5e0741"]]);wx.createPage(i);