meituan-beibuwan-h5/unpackage/dist/build/web/static/js/pages-mt-result.e9c3dcda.js

1 line
11 KiB
JavaScript
Raw Permalink Normal View History

2024-05-30 11:07:45 +08:00
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-mt-result"],{"1de5":function(t,e,n){"use strict";t.exports=function(t,e){return e||(e={}),t=t&&t.__esModule?t.default:t,"string"!==typeof t?t:(/^['"].*['"]$/.test(t)&&(t=t.slice(1,-1)),e.hash&&(t+=e.hash),/["'() \t\n]/.test(t)||e.needQuotes?'"'.concat(t.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):t)}},"20f4":function(t,e,n){"use strict";n.d(e,"b",(function(){return o})),n.d(e,"c",(function(){return i})),n.d(e,"a",(function(){return a}));var a={uModal:n("5918").default},o=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-uni-view",{staticClass:"content"},[1==t.pay_state?n("v-uni-view",{staticClass:"top-content"},[n("v-uni-view",{staticClass:"result-logo"}),n("v-uni-view",{staticClass:"title"},[n("v-uni-text",[t._v("支付成功")])],1),n("v-uni-view",{staticClass:"text"},[n("v-uni-text",[t._v("返回美团可查看订单详情")])],1)],1):n("v-uni-view",{staticClass:"top-content"},[n("v-uni-view",{staticClass:"result-logo-fail"}),n("v-uni-view",{staticClass:"title"},[n("v-uni-text",[t._v("支付失败")])],1),n("v-uni-view",{staticClass:"text"},[n("v-uni-text",[t._v("重新支付或者返回美团查看订单详情")])],1)],1),n("u-modal",{attrs:{color:"#f56c6c",show:t.overdueDialog,showConfirmButton:!1,width:"560rpx"}},[n("v-uni-view",{staticClass:"slot-confirmButton"},[n("v-uni-view",{staticClass:"modal"},[n("v-uni-text",[t._v(t._s(t.modalContent))]),n("v-uni-view",{staticClass:"button-modal",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.goBack.apply(void 0,arguments)}}},[t._v("返回")])],1)],1)],1),n("v-uni-view",{staticClass:"buttons"},[2==t.pay_state?n("v-uni-view",{staticClass:"button-repay",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),function(){t.payOrder()}.apply(void 0,arguments)}}},[t._v("重新支付")]):t._e(),n("v-uni-view",{staticClass:"button",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.goBack.apply(void 0,arguments)}}},[t._v("返回")])],1)],1)},i=[]},"2c49":function(t,e,n){t.exports=n.p+"static/images/success.png"},"447b":function(t,e,n){"use strict";n("7a82");var a=n("ee27").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=a(n("bbc8")),i=(n("d29d"),n("fa89")),s={data:function(){return{pay_state:1,overdueDialog:!1,modalContent:"未获取到订单号,请重试"}},methods:{getOrderInfo:function(){var t=this;o.default.payInfo({order_no:this.order_no}).then((function(e){200==e.data.code?(1==e.data.code&&i.payState.setIsPay(!0),2==e.data.state&&(t.order_state=2)):t.modalContent="未查询到订单信息,请联系客服"}))},getPayInfo:function(){var t=this;o.default.payQuery({order_no:this.order_no}).then((function(e){200==e.data.code?(console.log(e.data.data),t.pay_state=e.data.data.state):(t.modalContent="网络波动,请重试",t.overdueDialog=!0)}))},payOrder:function(){},goBack:function(){window.history.back()},onLoad:function(){i.payState.setIsPay(!0),this.order_no=this.$route.query.order_no,this.order_no?this.getPayInfo():(this.modalContent="未获取到订单号,请重试",this.overdueDialog=!0)}}};e.default=s},5507:function(t,e,n){"use strict";n.r(e);var a=n("20f4"),o=n("def8");for(var i in o)["default"].indexOf(i)<0&&function(t){n.d(e,t,(function(){return o[t]}))}(i);n("9f7fb");var s=n("f0c5"),r=Object(s["a"])(o["default"],a["b"],a["c"],!1,null,"6b53fb42",null,!1,a["a"],void 0);e["default"]=r.exports},"7e0a":function(t,e,n){var a=n("24fb"),o=n("1de5"),i=n("2c49"),s=n("b311");e=a(!1);var r=o(i),l=o(s);e.push([t.i,".content[data-v-6b53fb42]{display:flex;flex-direction:column;align-items:center;justify-content:space-between;background-color:#f8f8f8;height:100%}.top-content[data-v-6b53fb42]{display:flex;flex-direction:column;align-items:center;justify-content:start;padding-top:%?240?%}.result-logo[data-v-6b53fb42]{height:%?240?%;width:%?240?%;\n\t/* margin-top: 22rpx; */background-image:url("+r+");background-repeat:no-repeat;background-size:contain;background-position:50%}.result-logo-fail[data-v-6b53fb42]{height:%?240?%;width:%?240?%;\n\t/* ma