8df9faa.js 2.5 KB

1
  1. (window.webpackJsonp=window.webpackJsonp||[]).push([[64],{548:function(t,e,n){"use strict";n.d(e,"b",(function(){return r})),n.d(e,"c",(function(){return c})),n.d(e,"a",(function(){return l})),n.d(e,"d",(function(){return f}));var o=n(1);function r(t){return Object(o.a)({url:"/api/pay/info",data:t,forceLogin:!0})}function c(t){return Object(o.a)({url:"/api/pay/type",data:t,forceLogin:!0})}function l(t){return Object(o.a)({url:"/api/pay/status",data:t,forceLogin:!0})}function f(t){return Object(o.a)({url:"/api/pay/pay",data:t,forceLogin:!0})}},611:function(t,e,n){},702:function(t,e,n){"use strict";n(611)},791:function(t,e,n){"use strict";n.r(e);var o=n(548),r=n(319),c={name:"pay_result",components:{},data:function(){return{payInfo:{},outTradeNo:"",fullscreenLoading:!0}},created:function(){this.$route.query.code?(this.outTradeNo=this.$route.query.code,this.getPayInfo(),this.memberInfo()):this.$router.push({path:"/"})},methods:{getPayInfo:function(){var t=this;Object(o.b)({out_trade_no:this.outTradeNo,forceLogin:!0}).then((function(e){var code=e.code,data=(e.message,e.data);code>=0&&data?t.payInfo=e.data:t.$message({message:"未获取到支付信息",type:"warning",duration:2e3,onClose:function(){t.$router.push({path:"/member/order_list"})}}),t.fullscreenLoading=!1})).catch((function(e){t.fullscreenLoading=!1,t.$message.error({message:e.message,duration:2e3,onClose:function(){t.$router.push({path:"/member/order_list"})}})}))},memberInfo:function(){var t=this;Object(r.d)().then((function(e){var data=e.data;t.$store.commit("member/SET_MEMBER",data)})).catch((function(t){console.log("err")}))}}},l=(n(702),n(7)),component=Object(l.a)(c,(function(){var t=this,e=t._self._c;return e("div",{directives:[{name:"loading",rawName:"v-loading",value:t.fullscreenLoading,expression:"fullscreenLoading"}]},[e("div",{staticClass:"pay"},[e("div",{staticClass:"pay-icon"},[e("i",{staticClass:"ns-text-color",class:t.payInfo.pay_status?"el-icon-circle-check":"el-icon-circle-close\n"})]),t._v(" "),e("div",{staticClass:"pay-text"},[t._v(t._s(t.payInfo.pay_status?"支付成功":"支付失败"))]),t._v(" "),e("div",{staticClass:"pay-money"},[t._v("支付金额:¥"+t._s(t.payInfo.pay_money))]),t._v(" "),e("div",{staticClass:"pay-footer"},[e("router-link",{attrs:{to:"/member"}},[e("el-button",{attrs:{type:"primary"}},[t._v("会员中心")])],1),t._v(" "),e("router-link",{staticClass:"pay-button",attrs:{to:"/"}},[e("el-button",[t._v("回到首页")])],1)],1)])])}),[],!1,null,"373b789a",null);e.default=component.exports}}]);