(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2107f928"],{4316:function(t,n,r){"use strict";r.r(n);var e=function(){var t=this,n=t.$createElement,r=t._self._c||n;return r("div",{staticClass:"payment-status"},[!t.isWeixin||t.orderInfo.paid||"offline"==t.orderInfo.pay_type?r("div",{staticClass:"iconfont icon-duihao2 bg-color-red"}):r("div",{staticClass:"iconfont icon-iconfontguanbi fail"}),!t.isWeixin&&"weixin"==t.orderInfo.pay_type||"offline"==t.orderInfo.pay_type?r("div",{staticClass:"status"},[t._v("\n    订单创建成功\n  ")]):t.orderInfo.paid?r("div",{staticClass:"status"},[t._v("订单支付成功")]):r("div",{staticClass:"status"},[t._v("订单支付失败")]),r("div",{staticClass:"wrapper"},[r("div",{staticClass:"item acea-row row-between-wrapper"},[r("div",[t._v("订单编号")]),r("div",{staticClass:"itemCom",domProps:{textContent:t._s(t.orderInfo.order_id)}})]),r("div",{staticClass:"item acea-row row-between-wrapper"},[r("div",[t._v("下单时间")]),r("div",{staticClass:"itemCom",domProps:{textContent:t._s(t.orderInfo.add_time)}})]),r("div",{staticClass:"item acea-row row-between-wrapper"},[r("div",[t._v("支付方式")]),"weixin"==t.orderInfo.pay_type&&2==t.orderInfo.is_channel?r("div",{staticClass:"itemCom"},[t._v("\n        H5微信支付\n      ")]):t._e(),"weixin"==t.orderInfo.pay_type&&0==t.orderInfo.is_channel?r("div",{staticClass:"itemCom"},[t._v("\n        微信支付\n      ")]):t._e(),"yue"==t.orderInfo.pay_type?r("div",{staticClass:"itemCom"},[t._v("余额支付")]):t._e(),"offline"==t.orderInfo.pay_type?r("div",{staticClass:"itemCom"},[t._v("\n        线下支付\n      ")]):t._e()]),r("div",{staticClass:"item acea-row row-between-wrapper"},[r("div",[t._v("支付金额")]),r("div",{staticClass:"itemCom",domProps:{textContent:t._s(t.orderInfo.pay_price)}})]),0==t.orderInfo.paid&&"offline"!=t.orderInfo.pay_type&&t.isWeixin&&t.msgContent?r("div",{staticClass:"item acea-row row-between-wrapper"},[r("div",[t._v("失败原因")]),r("div",{staticClass:"itemCom",domProps:{textContent:t._s(t.msgContent)}})]):t._e()]),"weixin"==t.orderInfo.pay_type&&2==t.orderInfo.is_channel?r("div",[r("div",{staticClass:"returnBnt bg-color-red",on:{click:function(n){return t.goPages()}}},[t._v("查看支付结果")]),r("div",{staticClass:"returnBnt cart-color",on:{click:function(n){return t.goPages()}}},[t._v("\n      支付失败重新支付\n    ")])]):r("div",[r("div",{staticClass:"returnBnt bg-color-red",on:{click:function(n){return t.goPages()}}},[t._v("查看订单")]),r("div",{staticClass:"returnBnt cart-color",on:{click:function(n){return t.goPages("/")}}},[t._v("返回首页")])])])},o=[],i=r("cebc"),s=(r("7f7f"),r("2f62")),a=r("f8b7"),d=r("ed08"),u="PayMentStatus",c={name:u,props:{},data:function(){return{id:"",status:0,msgContent:"",orderInfo:{},isWeixin:Object(d["d"])()}},watch:{$route:function(t){t.query.msg&&(this.msgContent=t.query.msg),t.name===u&&this.id!==t.params.id&&(this.id=t.params.id,this.status=parseInt(t.params.status),this.getOrderInfo())}},computed:Object(i["a"])({},Object(s["b"])(["userInfo"])),mounted:function(){this.id=this.$route.params.id,this.msgContent=this.$route.query.msg,this.status=parseInt(this.$route.params.status),this.getOrderInfo()},methods:{goPages:function(t){var n=void 0!==t?t:"/order/detail/"+this.orderInfo.order_id;return 5===this.status&&void 0===t&&(n="/order/list/0"),this.$router.push({path:n})},getOrderInfo:function(){var t=this;Object(a["i"])(this.id).then(function(n){t.orderInfo=n.data,t.isWeixin?document.title=t.orderInfo.paid?"支付成功":"支付失败":document.title="订单创建成功"})}}},f=c,p=r("2877"),l=Object(p["a"])(f,e,o,!1,null,null,null);n["default"]=l.exports},f8b7:function(t,n,r){"use strict";r.d(n,"m",function(){return o}),r.d(n,"l",function(){return i}),r.d(n,"e",function(){return s}),r.d(n,"b",function(){return a}),r.d(n,"f",function(){return d}),r.d(n,"g",function(){return u}),r.d(n,"a",function(){return c}),r.d(n,"i",function(){return f}),r.d(n,"h",function(){return p}),r.d(n,"n",function(){return l}),r.d(n,"o",function(){return v}),r.d(n,"c",function(){return m}),r.d(n,"d",function(){return _}),r.d(n,"k",function(){return C}),r.d(n,"j",function(){return g});var e=r("b775");function o(t){return e["a"].post("/order/confirm",{cartId:t})}function i(t,n){return e["a"].post("/order/computed/"+t,n)}function s(t){return e["a"].get("/coupons/order/"+(parseFloat(t)||0))}function a(t,n){return e["a"].post("/order/create/"+t,n||{})}function d(){return e["a"].get("/order/data")}function u(t){return e["a"].get("/order/list",t)}function c(t){return e["a"].post("/order/cancel",{id:t})}function f(t){return e["a"].get("/order/detail/"+t)}function p(){return e["a"].get("/order/refund/reason")}function l(t){return e["a"].post("/order/refund/verify",t)}function v(t){return e["a"].post("/order/take",{uni:t})}function m(t){return e["a"].post("/order/del",{uni:t})}function _(t){return e["a"].get("order/express/"+t)}function C(t,n,r){return e["a"].post("order/pay",{uni:t,paytype:n,from:r})}function g(t,n){return e["a"].post("order/order_verific",{verify_code:t,is_confirm:n})}}}]);
//# sourceMappingURL=chunk-2107f928.e2b436cd.js.map