(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-da381582"],{"657d":function(t,e,a){},"7d8e":function(t,e,a){"use strict";a.r(e);var r=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"new-app-container layout-vertical"},[a("el-page-header",{staticStyle:{"margin-bottom":"20px"},attrs:{content:"订单详情",title:"返回"},on:{back:t.goBack}}),a("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticStyle:{padding:"0 10px"}},[a("div",{staticClass:"detail-title"},[t._v("基本信息")]),a("el-form",{staticClass:"detail-form",attrs:{"label-width":"100px"}},[a("el-row",[a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"订单号："}},[t._v(" "+t._s(t.orderInfo.ordernum||"--")+" ")])],1),a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"订单状态："}},[a("el-tag",{attrs:{type:t.getStatusTagType(t.orderInfo.status),size:"small"}},[t._v(" "+t._s(t.getStatusLabel(t.orderInfo.status))+" ")])],1)],1),a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"会员ID："}},[t._v(" "+t._s(t.orderInfo.member_id||"--")+" ")])],1),a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"会员账号："}},[t._v(" "+t._s(t.orderInfo.first_name||"--")+" ")])],1),a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"游戏名称："}},[t._v(" "+t._s(t.orderInfo.game_name||"--")+" ")])],1),a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"下注项："}},[t._v(" "+t._s(t.orderInfo.gameplay_name||"--")+" ")])],1),a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"赔率："}},[a("span",{staticStyle:{color:"#F56C6C","font-weight":"bold"}},[t._v(t._s(t.orderInfo.odds||"--"))])])],1),a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"下注金额："}},[t._v(" "+t._s(t.orderInfo.amount||"--")+" ")])],1),a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"中奖金额："}},[t._v(" "+t._s(t.orderInfo.win_amount||"--")+" ")])],1),a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"盈亏金额："}},[t._v(" "+t._s(t.orderInfo.profit_and_loss||"--")+" ")])],1),a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"退款备注："}},[t._v(" "+t._s(t.orderInfo.remark||"--")+" ")])],1)],1)],1)],1)],1)},l=[],n=a("c14f"),o=a("1da1"),s=(a("7db0"),a("e9f5"),a("f665"),a("d3b7"),a("7e1e")),i={name:"SportGameOrderDetail",data:function(){return{loading:!1,orderInfo:{},statusOptions:[{value:0,label:"待开奖"},{value:1,label:"未中奖"},{value:2,label:"已中奖"},{value:3,label:"已退款"}]}},mounted:function(){var t=this.$route.query.id;t&&this.getDetail(t)},methods:{getDetail:function(t){var e=this;return Object(o["a"])(Object(n["a"])().m((function a(){var r,l;return Object(n["a"])().w((function(a){while(1)switch(a.p=a.n){case 0:return e.loading=!0,a.p=1,a.n=2,Object(s["u"])({id:t});case 2:r=a.v,r&&r.data&&(e.orderInfo=r.data.data?r.data.data:r.data),a.n=4;break;case 3:a.p=3,l=a.v,console.error("获取详情失败:",l);case 4:return a.p=4,e.loading=!1,a.f(4);case 5:return a.a(2)}}),a,null,[[1,3,4,5]])})))()},goBack:function(){this.$router.go(-1)},getStatusLabel:function(t){if(void 0===t||null===t)return"--";var e=this.statusOptions.find((function(e){return e.value===t}));return e?e.label:"未知"},getStatusTagType:function(t){var e={0:"warning",1:"info",2:"success",3:""};return void 0!==e[t]?e[t]:"info"}}},d=i,c=(a("8312"),a("2877")),u=Object(c["a"])(d,r,l,!1,null,"6d4ef27f",null);e["default"]=u.exports},8312:function(t,e,a){"use strict";a("657d")}}]);