| 12 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2b1a14d7"],{"3e0f":function(t,e,n){"use strict";n.d(e,"b",(function(){return o})),n.d(e,"c",(function(){return r})),n.d(e,"a",(function(){return s})),n.d(e,"d",(function(){return i}));var a=n("751a");function o(t){return Object(a["a"])({url:"/api/pay/info",data:t,forceLogin:!0})}function r(t){return Object(a["a"])({url:"/api/pay/type",data:t,forceLogin:!0})}function s(t){return Object(a["a"])({url:"/api/pay/status",data:t,forceLogin:!0})}function i(t){return Object(a["a"])({url:"/api/pay/pay",data:t,forceLogin:!0})}},"725b":function(t,e,n){"use strict";var a=n("bdbd"),o=n.n(a);o.a},bdbd:function(t,e,n){},fdb1:function(t,e,n){"use strict";n.r(e);var a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{directives:[{name:"loading",rawName:"v-loading",value:t.fullscreenLoading,expression:"fullscreenLoading"}]},[n("div",{staticClass:"pay"},[n("div",{staticClass:"pay-icon"},[n("i",{staticClass:" ns-text-color",class:t.payInfo.pay_status?"el-icon-circle-check":"el-icon-circle-close\n"})]),n("div",{staticClass:"pay-text"},[t._v(t._s(t.payInfo.pay_status?"支付成功":"支付失败"))]),n("div",{staticClass:"pay-money"},[t._v("支付金额:¥"+t._s(t.payInfo.pay_money))]),n("div",{staticClass:"pay-footer"},[n("router-link",{attrs:{to:"/member/index"}},[n("el-button",{attrs:{type:"primary"}},[t._v("会员中心")])],1),n("router-link",{staticClass:"pay-button",attrs:{to:"/index"}},[n("el-button",[t._v("回到首页")])],1)],1)])])},o=[],r=n("3e0f"),s=n("5315"),i={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(r["b"])({out_trade_no:this.outTradeNo,forceLogin:!0}).then((function(e){var n=e.code,a=(e.message,e.data);n>=0&&a?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(s["d"])().then((function(e){console.log(e);var n=e.data;t.$store.commit("member/SET_MEMBER",n)})).catch((function(t){console.log("err")}))}}},c=i,u=(n("725b"),n("2877")),d=Object(u["a"])(c,a,o,!1,null,"6c3649cd",null);e["default"]=d.exports}}]);
- //# sourceMappingURL=chunk-2b1a14d7.76b2fbf4.js.map
|