chunk-2107f928.25552acd.js 5.8 KB

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