1 line
5.2 KiB
JavaScript
1 line
5.2 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-pay_result-pay_result"],{2340:function(t,e,r){"use strict";r.r(e);var n=r("5b43"),a=r("e3dc");for(var i in a)"default"!==i&&function(t){r.d(e,t,(function(){return a[t]}))}(i);r("f6e5");var s,o=r("f0c5"),u=Object(o["a"])(a["default"],n["b"],n["c"],!1,null,"1af73f40",null,!1,n["a"],s);e["default"]=u.exports},"369f":function(t,e,r){var n=r("4bc7");"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var a=r("4f06").default;a("95a052e0",n,!0,{sourceMap:!1,shadowMode:!1})},"4bc7":function(t,e,r){var n=r("24fb");e=n(!1),e.push([t.i,'@charset "UTF-8";\n/**\n * 这里是uni-app内置的常用样式变量\n *\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\n *\n */\n/**\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\n *\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\n */\n/* 颜色变量 */\n/* 行为相关颜色 */.pay-result .contain[data-v-1af73f40]{border-radius:%?10?%;padding:0 %?30?% %?40?%;position:relative;margin:%?78?% %?20?% 0}.pay-result .contain .tips-icon[data-v-1af73f40]{width:%?112?%;height:%?112?%}.pay-result .contain .header[data-v-1af73f40]{position:absolute;left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%);top:%?-50?%}.pay-result .contain .info[data-v-1af73f40]{padding-top:%?180?%}.pay-result .contain .line[data-v-1af73f40]{border-top:1px solid #e5e5e5}.pay-result .contain .plain[data-v-1af73f40]{border:1px solid #ff2c3c}',""]),t.exports=e},"5b43":function(t,e,r){"use strict";var n;r.d(e,"b",(function(){return a})),r.d(e,"c",(function(){return i})),r.d(e,"a",(function(){return n}));var a=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("v-uni-view",{staticClass:"pay-result"},[r("v-uni-view",{staticClass:"contain bg-white"},[r("v-uni-view",{staticClass:"header flex-col col-center"},[r("v-uni-view",[r("v-uni-image",{staticClass:"tips-icon",attrs:{src:"/static/images/icon_success.png"}})],1),r("v-uni-view",{staticClass:"xl m-t-20"},[t._v("订单支付成功")])],1),r("v-uni-view",{staticClass:"info"},[r("v-uni-view",{staticClass:"order-num flex row-between m-t-20"},[r("v-uni-view",[t._v("订单编号")]),r("v-uni-view",[t._v(t._s(t.payInfo.order_sn))])],1),t.payInfo.pay_time?r("v-uni-view",{staticClass:"order-time flex row-between m-t-20"},[r("v-uni-view",[t._v("付款时间")]),r("v-uni-view",[t._v(t._s(t.payInfo.pay_time))])],1):t._e(),r("v-uni-view",{staticClass:"order-pay-type flex row-between m-t-20"},[r("v-uni-view",[t._v("支付方式")]),r("v-uni-view",[t._v(t._s(t.payInfo.pay_way))])],1),r("v-uni-view",{staticClass:"order-pay-money flex row-between m-t-20"},[r("v-uni-view",[t._v("支付金额")]),r("v-uni-view",[t._v(t._s(t.payInfo.total_amount))])],1)],1),r("v-uni-view",{staticClass:"line m-t-40"}),r("v-uni-view",{staticClass:"m-t-40 flex-col row-center"},[r("router-link",{attrs:{to:t.getPagesUrl,navType:"replace"}},[r("v-uni-button",{staticClass:"br60",attrs:{type:"primary",size:"lg"}},[t._v("查看订单")])],1),r("router-link",{attrs:{navType:"pushTab",to:"/pages/index/index"}},[r("v-uni-button",{staticClass:"br60 plain primary m-t-30",attrs:{size:"lg"}},[t._v("返回首页")])],1)],1)],1)],1)},i=[]},c965:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=r("df758"),a={data:function(){return{payInfo:{},from:""}},onLoad:function(){var t=this.$Route.query;console.log(t),this.id=t.id,this.from=t.from,this.getOrderResultFun()},methods:{getOrderResultFun:function(){var t=this;(0,n.getPayResult)({id:this.id,from:this.from}).then((function(e){1==e.code&&(t.payInfo=e.data)}))}},computed:{getPagesUrl:function(){switch(this.from){case"integral":return"/bundle/pages/exchange_order/exchange_order";default:return"/bundle/pages/user_order/user_order"}}}};e.default=a},df758:function(t,e,r){"use strict";var n=r("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.orderInfo=i,e.orderBuy=s,e.delOrder=o,e.getOrderList=u,e.getOrderDetail=c,e.cancelOrder=d,e.orderTraces=f,e.confirmOrder=l,e.getPayResult=v;var a=n(r("b175"));r("357b");function i(t){return a.default.post("order/settlement",t)}function s(t){return a.default.post("order/submit_order",t)}function o(t){return a.default.post("order/del",{id:t})}function u(t){return a.default.get("order/lists",{params:t})}function c(t){return a.default.get("order/getOrderDetail",{params:{id:t}})}function d(t){return a.default.post("order/cancel",{id:t})}function f(t){return a.default.get("order/orderTraces",{params:{id:t}})}function l(t){return a.default.post("order/confirm",{id:t})}function v(t){return a.default.get("order/pay_result",{params:t})}},e3dc:function(t,e,r){"use strict";r.r(e);var n=r("c965"),a=r.n(n);for(var i in n)"default"!==i&&function(t){r.d(e,t,(function(){return n[t]}))}(i);e["default"]=a.a},f6e5:function(t,e,r){"use strict";var n=r("369f"),a=r.n(n);a.a}}]); |