(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-0af3dc64"],{"4afe":function(t,s,e){"use strict";var i=e("78e7"),o=e.n(i);o.a},"78e7":function(t,s,e){},"890f":function(t,s,e){t.exports=e.p+"img/toux.73da2b1e.png"},f1c8:function(t,s,e){"use strict";e.r(s);var i=function(){var t=this,s=t.$createElement,i=t._self._c||s;return i("div",{staticClass:"main"},[i("div",{staticStyle:{padding:".2rem 0"}},[i("div",{staticClass:"lOgisticsquery"},[i("div",{staticClass:"customer"},[i("img",{attrs:{src:e("890f"),alt:""}}),i("span",[t._v(t._s(t._f("getOrderStatus")(t.orderStatus)))]),i("button",{on:{click:t.wuliu}},[t._v("物流查询")])])]),i("div",[i("div",{staticClass:"commodity"},[i("ul",t._l(t.ProductData,(function(s,e){return i("li",{key:e},[i("img",{directives:[{name:"lazy",rawName:"v-lazy",value:s.productImages.length>0?s.productImages[0].imageUrl:"",expression:"item.productImages.length >0?item.productImages[0].imageUrl:''"}],attrs:{alt:""}}),i("h3",[i("span"),t._v(t._s(s.productName))]),i("h4",[t._v("￥"+t._s((s.ourPrice/100).toFixed(2)))]),i("h5",[t._v("X"+t._s(s.amount))]),i("i")])})),0)]),i("div",{staticClass:"logistics"},[i("ul",[i("li",[t._v("\n            订单号"),i("span",[t._v(t._s(t.ordersCode))])]),i("li",[t._v("\n            支付时间"),i("span",[t._v(t._s(t.ProductData[0].creationDate.split("T")[0]+" "+t.ProductData[0].creationDate.split("T")[1].split(".")[0]))])]),i("li",[t._v("\n            物流公司"),i("span",[t._v(t._s(t._f("getDeliveryType")(t.deliveryType)))])]),i("li",[t._v("\n            物流单号"),i("span",[t._v(t._s(t.shippingNo))])])])]),i("div",{staticClass:"address"},[i("p",[i("span",[t._v(t._s(t.shopdata.consignee))]),t._v(t._s(t.phone)+"\n        ")]),i("p",[t._v(t._s(t.address))])]),i("div",{staticClass:"cost"},[i("ul",[i("li",[i("h3",[t._v("商品费用")]),i("span",[t._v("￥"),i("span",[t._v(t._s(t.zongji))])])]),i("li",[i("h3",[t._v("优惠金额")]),i("span",[t._v("￥-"),i("span",[t._v(t._s((t.shopdata.discountPrice/100).toFixed(2)))])])]),i("li",[i("h3",[t._v("物流费用")]),i("span",[t._v("￥+"),i("span",[t._v(t._s((t.shopdata.transportCosts/100).toFixed(2)))])])]),i("li",[i("h3",[t._v("合计")]),i("span",[t._v("￥"),i("span"),t._v(t._s(((100*t.zongji-t.shopdata.discountPrice+t.shopdata.transportCosts)/100).toFixed(2)))])])])])])])])},o=[],a={data:function(){return{ProductData:[],shippingNo:"",deliveryType:"",ordersCode:"",shopdata:{},user:[],creationDate:"",orderStatus:"",address:"",phone:"",zongji:""}},destroyed:function(){sessionStorage.removeItem("orderProducts")},created:function(){this.ProductData=JSON.parse(sessionStorage["orderProducts"]||"[]"),console.log(this.ProductData),this.shippingNo=this.$route.query.shippingNo||"",this.deliveryType=this.$route.query.deliveryType||"",this.ordersCode=this.$route.query.ordersCode||"",this.shopdata=this.$route.query.oBtainuserorder||"",this.orderStatus=this.$route.query.orderStatus||"",console.log(this.shopdata),this.allmoneny(),console.log(this.zongji,this.shopdata.discountPrice,this.shopdata.transportCosts)},filters:{},methods:{wuliu:function(){this.$router.push({path:"/logistics",query:{wuliumsg:this.shippingNo,wuliulx:this.deliveryType}})},DecodeAddress:function(t){var s=this;this.$http.Decode(t).then((function(t){s.address=t.data.data}))},DecodePhone:function(){for(var t=this,s="",e=1;e<=3;e++)if(""!=this.shopdata["aConsigneePhone"+e]){s=this.shopdata["aConsigneePhone"+e],console.log(s);break}this.$http.Decode(s).then((function(s){t.phone=s.data.data}))},allmoneny:function(){var t=0;this.ProductData.map((function(s,e){t+=s.ourPrice*s.amount})),this.zongji=(t/100).toFixed(2)}},mounted:function(){var t=this;this.DecodeAddress(this.shopdata.aDeliveryAddress),setTimeout((function(){t.DecodePhone()}),1e3)}},n=a,r=(e("4afe"),e("2877")),d=Object(r["a"])(n,i,o,!1,null,null,null);s["default"]=d.exports}}]);
//# sourceMappingURL=chunk-0af3dc64.71da4f4e.js.map