80.b6a978323e54b01b3f50.js 6.3 KB

12
  1. webpackJsonp([80],{j3dv:function(t,s){},rJCz:function(t,s,i){"use strict";Object.defineProperty(s,"__esModule",{value:!0});var a=i("3KG0"),o={name:"footballOrder",filters:{formatDate:function(t){t*=1e3;var s=new Date(t);return Object(a.a)(s,"yyyy-MM-dd hh:mm:ss")}},data:function(){return{allAmount:0,winAmount:0,allAmountCny:0,winAmountCny:0,totalProfit:0,totalProfitCny:0,totalCount:0,competitionInput:"",competition:"",keywordInput:"",keyword:"",historyLoading:!0,historyFinished:!1,offset:15,historyPage:0,page_size:10,historyList:[],show:!1}},mounted:function(){this.getHistoryList()},methods:{getHistoryList:function(){var t=this;this.$nextTick(function(){var s={page_page:t.page_size,page:t.historyPage,league:t.competition,keyword:t.keyword};t.$api.football.getFootballSummary(s).then(function(s){200==s.code&&(t.allAmount=s.data.amount,t.allAmountCny=s.data.amount_cny,t.winAmount=s.data.win_amount,t.winAmountCny=s.data.win_amount_cny,t.totalProfit=s.data.total_profit,t.totalProfitCny=s.data.total_profit_cny,t.totalCount=s.data.total_count,s.data.list.length>0?t.historyList=t.historyList.concat(s.data.list):t.historyFinished=!0,t.historyLoading=!1)})})},historyOnLoad:function(){var t=this;this.historyFinished||(this.historyPage=this.historyPage+1,setTimeout(function(){t.getHistoryList()},300))},filterClick:function(){this.show=!0},popupClose:function(){this.show=!1},filterReset:function(){this.competition=this.competitionInput,this.keyword=this.keywordInput,this.popupClose(),this.historyPage=0,this.historyList=[],this.historyFinished=!1,this.getHistoryList()}}},n={render:function(){var t=this,s=t.$createElement,a=t._self._c||s;return a("div",{staticClass:"footballOrder"},[a("app-nav",{attrs:{back:!0}},[a("span",[t._v(t._s(t.$t("详情")))]),t._v(" "),a("template",{attrs:{slot:"recharge"},slot:"recharge"},[a("div",[a("img",{staticStyle:{width:"0.40rem",height:"0.42rem"},attrs:{src:i("nYtz"),alt:""},on:{click:t.filterClick}})])])],2),t._v(" "),a("div",{staticClass:"hold"},[a("div",{staticClass:"hold_stat"},[a("span",[t._v(t._s(t.$t("总单数"))+":"+t._s(t.totalCount))])]),t._v(" "),a("div",{staticClass:"hold_stat"},[a("span",[t._v(t._s(t.$t("流水"))+"(USDT):"+t._s(t.allAmount)+" ≈ "+t._s(t.allAmountCny)+"RMB")])]),t._v(" "),a("div",{staticClass:"hold_stat"},[a("span",[t._v("\n "+t._s(t.$t("派奖金额"))+"(USDT):\n "),a("span",{class:Number(t.winAmount)>0?"green":Number(t.winAmount)<0?"red":""},[t._v("\n "+t._s(t.winAmount)+" ≈ "+t._s(t.winAmountCny)+"RMB\n ")])])]),t._v(" "),a("div",{staticClass:"hold_stat"},[a("span",[t._v("\n "+t._s(t.$t("利润"))+"(USDT):\n "),a("span",{class:Number(t.totalProfit)>0?"green":Number(t.totalProfit)<0?"red":""},[t._v("\n "+t._s(t.totalProfit)+" ≈ "+t._s(t.totalProfitCny)+"RMB\n ")])])]),t._v(" "),a("div",{staticClass:"hold_data"},[a("div",{staticClass:"hold_data_history"},[a("van-list",{attrs:{finished:t.historyFinished,"loading-text":t.$t("加载中"),"finished-text":t.$t("没有更多了"),offset:t.offset},on:{load:t.historyOnLoad},model:{value:t.historyLoading,callback:function(s){t.historyLoading=s},expression:"historyLoading"}},t._l(t.historyList,function(s,i){return a("div",{key:i,staticClass:"hold_data_history_list"},[a("div",{staticClass:"list_title"},[a("span",{staticClass:"list_title_s1"},[t._v(t._s(s.league))]),t._v(" "),a("span",{staticClass:"list_title_s2"},[t._v(t._s(t.$t("赛时"))+":"+t._s(t._f("formatDate")(s.game_time)))])]),t._v(" "),a("div",{staticClass:"list_data"},[a("div",{staticClass:"list_data_team"},[a("span",{staticClass:"list_data_team_s"}),t._v(" "),a("span",[t._v(t._s(s.home_team)+" VS "+t._s(s.guest_team))])]),t._v(" "),a("div",{staticClass:"list_data_d"},[a("span",[t._v(t._s(t.$t("下注单数")))]),t._v(" "),a("span",[t._v(t._s(s.count))])]),t._v(" "),a("div",{staticClass:"list_data_d"},[a("span",[t._v(t._s(t.$t("总金额")))]),t._v(" "),a("span",[t._v(t._s(s.amount)+" ≈ "+t._s(s.amount_cny)+"RMB")])]),t._v(" "),a("div",{staticClass:"list_data_d"},[a("span",[t._v(t._s(t.$t("总流水")))]),t._v(" "),a("span",[t._v(t._s(s.amount)+" ≈ "+t._s(s.amount_cny)+"RMB")])]),t._v(" "),a("div",{staticClass:"list_data_d"},[a("span",[t._v(t._s(t.$t("派奖金额")))]),t._v(" "),a("span",{class:Number(s.win_amount)>0?"green":Number(s.win_amount)<0?"red":""},[t._v("\n "+t._s(s.win_amount)+" ≈ "+t._s(s.win_amount_cny)+"RMB\n ")])]),t._v(" "),a("div",{staticClass:"list_data_d"},[a("span",[t._v(t._s(t.$t("利润")))]),t._v(" "),a("span",{class:Number(s.profit)>0?"green":Number(s.profit)<0?"red":""},[t._v("\n "+t._s(s.profit)+" ≈ "+t._s(s.profit_cny)+"RMB\n ")])])])])}))],1)])]),t._v(" "),a("van-popup",{staticClass:"popup",attrs:{position:"bottom"},model:{value:t.show,callback:function(s){t.show=s},expression:"show"}},[a("div",{staticClass:"popup_close",on:{click:t.popupClose}},[a("img",{staticStyle:{width:"0.3rem",height:"0.3rem"},attrs:{src:i("qsVC"),alt:""}})]),t._v(" "),a("div",{staticClass:"popup_content"},[a("div",{staticClass:"popup_content_odiv"},[a("p",{staticClass:"popup_content_title"},[t._v(t._s(t.$t("赛事筛选")))]),t._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:t.competitionInput,expression:"competitionInput"}],staticClass:"popup_content_input",attrs:{type:"text",placeholder:t.$t("请输入")},domProps:{value:t.competitionInput},on:{input:function(s){s.target.composing||(t.competitionInput=s.target.value)}}})]),t._v(" "),a("div",{staticClass:"popup_content_odiv"},[a("p",{staticClass:"popup_content_title"},[t._v(t._s(t.$t("球队筛选")))]),t._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:t.keywordInput,expression:"keywordInput"}],staticClass:"popup_content_input",attrs:{type:"text",placeholder:t.$t("请输入")},domProps:{value:t.keywordInput},on:{input:function(s){s.target.composing||(t.keywordInput=s.target.value)}}})]),t._v(" "),a("div",{staticClass:"popup_content_btn"},[a("div",{staticClass:"popup_content_btn_b",on:{click:t.popupClose}},[t._v("\n "+t._s(t.$t("取消"))+"\n ")]),t._v(" "),a("div",{staticClass:"popup_content_btn_b popup_content_btn_qr",on:{click:t.filterReset}},[t._v("\n "+t._s(t.$t("确定"))+"\n ")])])])])],1)},staticRenderFns:[]};var e=i("VU/8")(o,n,!1,function(t){i("j3dv")},"data-v-d5190568",null);s.default=e.exports}});
  2. //# sourceMappingURL=80.b6a978323e54b01b3f50.js.map