text: (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["orderDetails"],{"5d7f":function(e,t,r){"use strict";var a=r("c5e9"),s=r.n(a);s.a},b3ce:function(e,t,r){"use strict";r.r(t);var a=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"common_width dm_orderDetails"},[r("TableTitle",{attrs:{title:"结算页"}},[r("div",[e._v("（ 订单号： "),r("i",[e._v(e._s(e.orderInfo.ordernum))]),e._v(" ）")])]),r("el-table",{staticStyle:{width:"100%"},attrs:{data:e.tableData,"max-height":"386",border:"","row-key":"id",size:"small"}},e._l(e.columns,(function(t){return r("el-table-column",{key:t.id,attrs:{prop:t.prop,label:t.label,width:t.width,align:"center"},scopedSlots:e._u([{key:"default",fn:function(a){return["mainPicture"==t.prop?r("img",{staticClass:"imgs_style",attrs:{src:e.$url+a.row.mainPicture}}):e._e(),"description"==t.prop?r("router-link",{staticClass:"title_style",attrs:{to:{name:"productsDetails",params:{id:a.row.id}}}},[r("span",{attrs:{title:a.row.description}},[e._v(e._s(a.row.description))]),r("span",{staticClass:"ellipsis"},[e._v("规格："+e._s(a.row.spec))])]):e._e(),"price"==t.prop||"totalprice"==t.prop?r("span",[e._v("￥"+e._s(e._f("keepTwoDecimalPlaces")("price"==t.prop?a.row["price"]:"totalprice"==t.prop?a.row["totalprice"]:0)))]):e._e(),"num"==t.prop?r("span",[e._v("x"+e._s(a.row.num))]):e._e()]}}],null,!0)})})),1),r("el-row",{staticClass:"dm_orderDetails__pay"},[r("el-col",{attrs:{span:12}},[r("dl",[r("dt",[e._v("收货人信息")]),r("dd",[r("i",[e._v("收货人：")]),r("span",[e._v(e._s(e.address.name||"-"))])]),r("dd",[r("i",[e._v("所在地区：")]),r("span",[e._v(e._s(e.address.region||"-"))])]),r("dd",[r("i",[e._v("详情地址：")]),r("span",[e._v(e._s(e.address.detail||"-"))])]),r("dd",[r("i",[e._v("联系电话：")]),r("span",[e._v(e._s(e.address.phone||"-"))])])])]),r("el-col",{attrs:{span:12}},[r("dl",[r("dt",[e._v("付款信息")]),r("dd",[r("i",[e._v("付款时间：")]),r("span",[e._v(e._s(e.orderInfo.submitTime||"-"))])]),r("dd",[r("i",[e._v("商品总数：")]),r("span",[e._v(e._s(e.orderInfo.num||"-")+" 件")])]),r("dd",[r("i",[e._v("商品总额：")]),r("span",[e._v("￥"+e._s(e.orderInfo.totalprice||"-"))])]),r("dd",[r("i",[e._v("应支付金额：")]),r("span",[e._v("￥"+e._s(e.orderInfo.totalprice||"-"))])])])])],1)],1)},s=[],i=(r("96cf"),r("1da1")),o={data:function(){return{columns:[{id:1,prop:"mainPicture",label:"图片",width:86},{id:2,prop:"description",label:"商品"},{id:3,prop:"price",label:"单价",width:136},{id:4,prop:"num",label:"数量",width:119},{id:5,prop:"totalprice",label:"小计",width:136}],tableData:[],address:{},orderInfo:{}}},mounted:function(){try{var e=this.$route.query||{},t=e.id;this.getOrderDetailData({id:t})}catch(r){console.log(r)}},methods:{getOrderDetailData:function(){var e=arguments,t=this;return Object(i["a"])(regeneratorRuntime.mark((function r(){var a,s,i,o,d,n,l,p,c;return regeneratorRuntime.wrap((function(r){while(1)switch(r.prev=r.next){case 0:return a=e.length>0&&void 0!==e[0]?e[0]:{},r.next=3,t.$service.getOrderDetailData(a);case 3:s=r.sent;try{200===s.data.code&&(i=s.data.data||{},o=i.address,d=void 0===o?{}:o,n=i.productsInfo,l=void 0===n?[]:n,p=i.orderInfo,c=void 0===p?{}:p,t.tableData=l,t.orderInfo=c,t.address=d)}catch(_){console.log(_)}case 5:case"end":return r.stop()}}),r)})))()}}},d=o,n=(r("5d7f"),r("2877")),l=Object(n["a"])(d,a,s,!1,null,null,null);t["default"]=l.exports},c5e9:function(e,t,r){}}]);
  //# sourceMappingURL=orderDetails.1a3c2211.js.map