12 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0c09da"],{4316:function(t,e,r){"use strict";r.r(e);var i=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"payment-status"},[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(e){return t.goPages()}}},[t._v("查看支付结果")]),r("div",{staticClass:"returnBnt cart-color",on:{click:function(e){return t.goPages()}}},[t._v("\n 支付失败重新支付\n ")])]):r("div",[r("div",{staticClass:"returnBnt bg-color-red",on:{click:function(e){return t.goPages()}}},[t._v("查看订单")]),r("div",{staticClass:"returnBnt cart-color",on:{click:function(e){return t.goPages("/")}}},[t._v("返回首页")])])])},n=[],o=(r("5ab2"),r("6d57"),r("e10e"),r("289c")),s=(r("cc57"),r("08c1")),a=r("f8b7"),c=r("ed08");function d(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,i)}return r}function p(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?d(Object(r),!0).forEach((function(e){Object(o["a"])(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):d(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var u="PayMentStatus",f={name:u,props:{},data:function(){return{id:"",status:0,msgContent:"",orderInfo:{},isWeixin:Object(c["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:p({},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 e=void 0!==t?t:"/order/detail/"+this.orderInfo.order_id;return 5===this.status&&void 0===t&&(e="/order/list/0"),this.$router.push({path:e})},getOrderInfo:function(){var t=this;Object(a["j"])(this.id).then((function(e){t.orderInfo=e.data,t.isWeixin?document.title=t.orderInfo.paid?"支付成功":"支付失败":document.title="订单创建成功"}))}}},l=f,v=r("623f"),m=Object(v["a"])(l,i,n,!1,null,null,null);e["default"]=m.exports}}]);
- //# sourceMappingURL=chunk-2d0c09da.2eb976a2.js.map
|