13.15c09e3c3ef094a64809.js 7.6 KB

12
  1. webpackJsonp([13],{"3LKF":function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});i("OGwZ");var a={name:"BettingRecord",data:function(){return{img:i("P7PG"),img1:i("uhdz"),img2:i("Hw0H"),active:0,data:"",date:"",startDate:"",startTime:"",endTime:"",recordConditions:1,list:[{title:"待开奖",id:0},{title:"中奖",id:1},{title:"未中奖",id:2}],classifynum:0,page:1,pageSize:5}},methods:{recordCode:function(t){this.recordConditions=t,this.loadList()},toRouter:function(){this.$router.go(-2)},initialTime:function(){var t=new Date,e=new Date(t);e.setMonth(t.getMonth()-3),this.startDate=e.getFullYear()+"-"+(e.getMonth()+1<10?"0"+(e.getMonth()+1):e.getMonth()+1)+"-"+(e.getDate()<10?"0"+e.getDate():e.getDate()),this.date=t.getFullYear()+"-"+(t.getMonth()+1<10?"0"+(t.getMonth()+1):t.getMonth()+1)+"-"+(t.getDate()<10?"0"+t.getDate():t.getDate()),this.endTime=t.getFullYear()+"-"+(t.getMonth()+1<10?"0"+(t.getMonth()+1):t.getMonth()+1)+"-"+(t.getDate()<10?"0"+t.getDate():t.getDate()),this.startTime=t.getFullYear()+"-"+(t.getMonth()-2<10?"0"+(t.getMonth()-2):t.getMonth()-2)+"-"+(t.getDate()<10?"0"+t.getDate():t.getDate()),console.log(this.startDate),console.log(this.endTime,"bbb"),console.log(this.startTime,"cccc")},loadList:function(){var t=this,e=new Date,i=e.getHours(),a=e.getMinutes(),s=e.getSeconds();this.isrequest=!1,this.$http.post(this.$ports.login.bettingRecord,{currentPage:this.page,pageSize:this.pageSize,startTime:this.startTime+" 00:00:00",endTime:this.endTime+" "+(i<10?"0"+i:i)+":"+(a<10?"0"+a:a)+":"+(s<10?"0"+s:s),status:this.classifynum,token:localStorage.getItem("token"),type:this.recordConditions}).then(function(e){return e.data.data&&(t.data=e.data.data.list),console.log(e,"aaa"),t.$refs.pullrefreshDemo.$emit("ydui.infinitescroll.finishLoad"),t.isrequest&&t.page++,!1})},classifyclick:function(t){this.isrequest=!0,this.classifynum=t,this.loadList()},openStart:function(){this.$refs.datetimeStart.open()},openEnd:function(){this.$refs.datetimeEnd.open()}},mounted:function(){this.initialTime(),this.loadList()}},s={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("div",{staticClass:"box"},[a("div",{staticClass:"row allAlignment center head_on_box"},[t._m(0),t._v(" "),a("p",{staticStyle:{color:"#fffffe","font-size":".36rem"}},[t._v("投注记录")]),t._v(" "),a("div",{staticClass:"row allAlignment center"},[a("img",{staticClass:"user-ion",attrs:{src:i("Z5cZ"),alt:""},on:{click:function(e){return t.toRouter()}}}),t._v(" "),a("img",{staticClass:"user-ion",staticStyle:{"margin-left":"0.44rem"},attrs:{src:i("hVRK"),alt:""}})])])]),t._v(" "),a("div",{staticClass:"boxIn row item-center"},[a("div",{staticClass:"date row center"},[a("yd-button-group",[a("yd-button",{attrs:{size:"large",bgcolor:"rgba(0,0,0,0)"},nativeOn:{click:function(e){return t.openStart(e)}}},[t._v(t._s(t.startTime))])],1)],1),t._v(" "),a("p",{staticStyle:{margin:"0 .22rem"}},[t._v("至")]),t._v(" "),a("div",{staticClass:"date row center"},[a("yd-button-group",[a("yd-button",{attrs:{size:"large",bgcolor:"rgba(0,0,0,0)"},nativeOn:{click:function(e){return t.openEnd(e)}}},[a("div",[t._v(t._s(t.endTime))])])],1)],1),t._v(" "),a("button",{staticClass:"dateBtn",on:{click:function(e){return t.loadList()}}},[t._v("查询")])]),t._v(" "),a("div",{staticClass:"row center average betting-btn",staticStyle:{height:".88rem",background:"#f4f4f4",margin:".1rem 0"}},[a("button",{class:1==t.recordConditions?"active":"",on:{click:function(e){return t.recordCode(1)}}},[t._v("单式投注记录")]),t._v(" "),a("button",{class:2==t.recordConditions?"active":"",on:{click:function(e){return t.recordCode(2)}}},[t._v("串式投注记录")])]),t._v(" "),a("div",{staticClass:"row classify average"},t._l(t.list,function(e,i){return a("div",{key:i,class:e.id==t.classifynum?"classifyactive":"",on:{click:function(e){return t.classifyclick(i)}}},[t._v(t._s(e.title))])}),0),t._v(" "),t.data.list?a("div",{staticClass:"row center",staticStyle:{height:".88rem",color:"#ebebeb","font-size":".32rem",background:"#666","margin-top":".1rem"}},[t._v("对不起,您当前没有数据")]):t._e(),t._v(" "),a("div",[a("div",{staticClass:"datalist"},[a("yd-pullrefresh",{ref:"pullrefreshDemo",attrs:{callback:t.loadList}},[a("yd-list",{attrs:{theme:"4"}},t._l(t.data,function(e,i){return a("div",{key:i},[a("div",{directives:[{name:"show",rawName:"v-show",value:1==t.recordConditions,expression:"recordConditions==1"}],staticClass:"list-box row average center"},[a("div",{staticStyle:{width:"50%",padding:"0 .5rem"}},[a("p",[t._v("主队:"+t._s(e.home_team))]),t._v(" "),a("p",[t._v("vs")]),t._v(" "),a("p",[t._v("客队:"+t._s(e.guest_team))]),t._v(" "),a("p",{staticStyle:{"margin-top":".2rem"}},[t._v("投注:"+t._s(e.odds_name))])]),t._v(" "),a("div",{staticStyle:{width:"50%",padding:"0 .5rem"}},[a("p",[t._v("投注金额:"+t._s(e.bet_money))]),t._v(" "),a("p",[t._v("\n 投注条件:\n "),a("span",{staticStyle:{color:"#f76649"}},[t._v(t._s(e.condition))])]),t._v(" "),a("p",[t._v("赔  率:"+t._s(e.odds))]),t._v(" "),a("p",{staticClass:"row center",class:1!=e.addBet?"bg":"",staticStyle:{width:"1rem",height:".4rem",background:"#a0a0a0","border-radius":".25rem",color:"#f4f4f4","margin-top":".1rem"}},[t._v("加注")])])]),t._v(" "),a("div",{directives:[{name:"show",rawName:"v-show",value:2==t.recordConditions,expression:"recordConditions==2"}],staticClass:"list-box row average center"},[a("div",{staticStyle:{width:"100%"}},[a("p",{staticClass:"row center",staticStyle:{height:".6rem",background:"#a0a0a0",color:"#f4f4f4","margin-bottom":".2rem"}},[t._v("订单号:"+t._s(e.batch_id))]),t._v(" "),t._l(e.money_buy,function(e,i){return a("div",{key:i,staticClass:"row average center",staticStyle:{width:"100%","margin-bottom":".2rem",padding:".1rem .5rem",background:"#fff","border-radius":".08rem"}},[a("div",{staticClass:"list-txt",staticStyle:{width:"50%"}},[a("p",[t._v("主队:"+t._s(e.home_team))]),t._v(" "),a("p",[t._v("vs")]),t._v(" "),a("p",[t._v("客队:"+t._s(e.guest_team))]),t._v(" "),a("p",[t._v("投注:"+t._s(e.odds_name))])]),t._v(" "),a("div",{staticClass:"list-txt",staticStyle:{width:"50%"}},[a("p",[t._v("投注金额:"+t._s(e.bet_money))]),t._v(" "),a("p",[t._v("\n 赔率条件:\n "),a("span",{staticStyle:{color:"#f76649"}},[t._v(t._s(e.condition))])]),t._v(" "),a("p",[t._v("赔  率:"+t._s(e.odds))]),t._v(" "),a("p",{staticClass:"row center",class:1!=e.addBet?"bg":"",staticStyle:{width:"1rem",height:".4rem",background:"#a0a0a0","border-radius":".25rem",color:"#f4f4f4","margin-top":".1rem"}},[t._v("加注")])])])})],2)])])}),0)],1)],1)]),t._v(" "),a("yd-cell-group",{staticStyle:{display:"none"}},[a("yd-cell-item",{attrs:{arrow:""}},[a("yd-datetime",{ref:"datetimeStart",attrs:{slot:"right",type:"date","start-date":t.startDate,"end-date":t.endTime},slot:"right",model:{value:t.startTime,callback:function(e){t.startTime=e},expression:"startTime"}})],1)],1),t._v(" "),a("yd-cell-group",{staticStyle:{display:"none"}},[a("yd-cell-item",{attrs:{arrow:""}},[a("yd-datetime",{ref:"datetimeEnd",attrs:{slot:"right",type:"date","start-date":t.startTime,"end-date":t.date},slot:"right",model:{value:t.endTime,callback:function(e){t.endTime=e},expression:"endTime"}})],1)],1)],1)},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("p",{staticClass:"logo",staticStyle:{"font-size":".6rem",color:"#E1E1DF","font-family":"'Franklin Gothic Medium'"}},[e("i",{staticStyle:{color:"#F76649"}},[this._v("HX")]),this._v("669\n ")])}]};var r=i("VU/8")(a,s,!1,function(t){i("Wq9V")},"data-v-287429ec",null);e.default=r.exports},Wq9V:function(t,e){}});
  2. //# sourceMappingURL=13.15c09e3c3ef094a64809.js.map