"use strict";const e=require("../../../../common/vendor.js"),t=require("../../../../components/request.js"),n=require("../../../../components/formatDate.js"),i={data:()=>({title:"Hello",item:{},coinNumlist:[],triggered:!1}),onLoad(e){this.getOpenerEventChannel().on("itemDetail",(e=>{this.item=e.item,this.getCoinNum(this.item)}))},methods:{onRefresherRefresh(){this.triggered=!0,this.coinNumlist=[],this.getCoinNum(this.item)},getCoinNum(e){t.request({url:"pk/fetchDetailPkDataWithId",method:"POST",data:{id:e.id},userInfo:!0}).then((e=>{200==e.code?(this.coinNumlist=e.data,this.triggered=!1):console.log("获取金币数量失败")}))},formatDate:n.formatDate,onBack(){e.index.navigateBack({delta:1})}}};if(!Array){e.resolveComponent("uni-card")()}const o=e._export_sfc(i,[["render",function(t,n,i,o,r,a){return e.e({a:e.o$1(((...e)=>a.onBack&&a.onBack(...e))),b:r.item.anchorIconA,c:r.item.winnerAnchorId==r.item.anchorIdA},(r.item.winnerAnchorId,r.item.anchorIdA,{}),{d:e.t(r.item.anchorIdA),e:e.t(a.formatDate(r.item.pkTime)),f:null!==r.item.userACoins},null!==r.item.userACoins?{g:e.t(r.item.userACoins)}:{},{h:r.item.anchorIconB,i:r.item.winnerAnchorId==r.item.anchorIdB},(r.item.winnerAnchorId,r.item.anchorIdB,{}),{j:e.t(r.item.anchorIdB),k:e.t(a.formatDate(r.item.pkTime)),l:null!==r.item.userBCoins},null!==r.item.userBCoins?{m:e.t(r.item.userBCoins)}:{},{n:e.f(r.coinNumlist,((t,n,i)=>({a:e.t(t.anchorCoinA),b:t.anchorIdA==t.winnerAnchorId?"#00fbff21":"#ff000011",c:e.t(t.anchorCoinB),d:t.anchorIdB==t.winnerAnchorId?"#00fbff21":"#ff000011",e:n,f:"95039b0f-0-"+i}))),o:e.o$1(((...e)=>a.onRefresherRefresh&&a.onRefresherRefresh(...e))),p:r.triggered})}],["__scopeId","data-v-95039b0f"]]);wx.createPage(o);
