meituan-beibuwan-h5/unpackage/dist/build/web/static/js/pages-mt-pay.2c5a5488.js

1 line
5.8 KiB
JavaScript

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-mt-pay"],{"00bb":function(t,e,n){var o=n("c15c");o.__esModule&&(o=o.default),"string"===typeof o&&(o=[[t.i,o,""]]),o.locals&&(t.exports=o.locals);var i=n("4f06").default;i("745d769a",o,!0,{sourceMap:!1,shadowMode:!1})},"0747":function(t,e,n){"use strict";n.r(e);var o=n("60ce"),i=n.n(o);for(var a in o)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return o[t]}))}(a);e["default"]=i.a},"0b6d":function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return a})),n.d(e,"a",(function(){return o}));var o={uModal:n("5918").default},i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-uni-view",{staticClass:"content"},[n("v-uni-view",{staticClass:"top-content"},[n("v-uni-view",{staticClass:"price"},[n("v-uni-text",[t._v("¥"+t._s(t.order.price))])],1),n("v-uni-view",{staticClass:"time"},[n("v-uni-text",[t._v("支付剩余时间:"),n("v-uni-text",{staticClass:"countdown"},[t._v(t._s(t.countdown))])],1)],1),n("v-uni-view",{staticClass:"block"},[n("v-uni-view",{staticClass:"text-line"},[n("v-uni-text",[t._v("订单编号")]),n("v-uni-text",{staticClass:"order-code"},[t._v(t._s(t.order.order_no))])],1),n("v-uni-view",{staticClass:"text-line"},[n("v-uni-text",[t._v("支付方式")]),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)],1),n("v-uni-view",{staticClass:"buttons"},[n("v-uni-view",{staticClass:"button",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),function(){t.payOrder()}.apply(void 0,arguments)}}},[t._v("确认支付")]),n("v-uni-view",{staticClass:"button-return",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.goBack.apply(void 0,arguments)}}},[t._v("返回")])],1)],1)},a=[]},"5e87":function(t,e,n){"use strict";var o=n("00bb"),i=n.n(o);i.a},"60ce":function(t,e,n){"use strict";n("7a82");var o=n("ee27").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,n("d401"),n("d3b7"),n("25f0");var i=o(n("bbc8")),a=(n("d29d"),n("fa89")),r={data:function(){return{content:"sdfsdf",order_no:"",order:{order_no:"",product_name:"",price:"",state:1,count_time:180},countdownInterval:void 0,seconds:180,overdueDialog:!1,modalContent:"订单已失效,请重新下单"}},methods:{getOrderInfo:function(){var t=this;i.default.payInfo({order_no:this.order_no}).then((function(e){200==e.data.code?(t.seconds=60,t.order=e.data.data.order,t.seconds=t.order.count_time,1==t.order.state||4==t.order.state||9==tihs.order.state||(t.modalContent="订单已失效,请重试",t.overdueDialog=!0)):(t.modalContent="未查询到订单信息,请重新下单",t.overdueDialog=!0)}))},payOrder:function(){},goBack:function(){window.history.back()},updateCountdown:function(){this.seconds=this.seconds-1,this.seconds<0&&(clearInterval(this.countdownInterval),this.seconds=0,this.overdueDialog=!0)}},computed:{countdown:{get:function(){var t=Math.floor(this.seconds/60).toString();t.length<2&&(t="0"+t);var e=(this.seconds%60).toString();return e.length<2&&(e="0"+e),t+":"+e}}},onLoad:function(){this.order_no=this.$route.query.order_no,this.order_no?(this.getOrderInfo(),this.countdownInterval=setInterval(this.updateCountdown,1e3)):(this.modalContent="未获取到订单号,请重试",this.overdueDialog=!0)},onShow:function(){a.payState.getIsPay()&&(a.payState.setIsPay(!1),this.goBack())}};e.default=r},"9f66":function(t,e,n){"use strict";n.r(e);var o=n("0b6d"),i=n("0747");for(var a in i)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(a);n("5e87");var r=n("f0c5"),c=Object(r["a"])(i["default"],o["b"],o["c"],!1,null,"c6e1181e",null,!1,o["a"],void 0);e["default"]=c.exports},c15c:function(t,e,n){var o=n("24fb");e=o(!1),e.push([t.i,".content[data-v-c6e1181e]{display:flex;flex-direction:column;align-items:center;justify-content:space-between;background-color:#f8f8f8;height:100%}.top-content[data-v-c6e1181e]{display:flex;flex-direction:column;align-items:center;justify-content:start}.price[data-v-c6e1181e]{font-size:%?72?%;font-weight:700;margin-top:%?128?%}.time[data-v-c6e1181e]{margin-top:%?36?%}.countdown[data-v-c6e1181e]{margin-left:%?18?%;color:red}.block[data-v-c6e1181e]{background-color:#fff;border-radius:%?36?%;width:%?640?%;height:%?200?%;margin-top:%?36?%;display:flex;flex-direction:column;justify-content:center;gap:%?36?%}.text-line[data-v-c6e1181e]{padding-left:%?36?%;padding-right:%?36?%;display:flex;justify-content:space-between}.order-code[data-v-c6e1181e]{color:#a4adb3}.buttons[data-v-c6e1181e]{display:flex;flex-direction:column;gap:%?40?%;margin-bottom:%?128?%}.button[data-v-c6e1181e]{width:%?640?%;height:%?72?%;background-color:#ffce00;border-radius:%?36?%;font-weight:400;font-size:%?36?%;color:#000;line-height:%?64?%;text-align:center;font-style:normal;text-transform:none;display:flex;justify-content:center;align-items:center}.button-return[data-v-c6e1181e]{width:%?640?%;height:%?72?%;background-color:#000;border-radius:%?36?%;font-weight:400;font-size:%?36?%;color:#fff;line-height:%?64?%;text-align:center;font-style:normal;text-transform:none;display:flex;justify-content:center;align-items:center}.button-modal[data-v-c6e1181e]{width:%?360?%;height:%?72?%;background-color:#ffce00;border-radius:%?36?%;font-weight:400;font-size:%?36?%;color:#000;line-height:%?64?%;text-align:center;font-style:normal;text-transform:none;display:flex;justify-content:center;align-items:center}.modal[data-v-c6e1181e]{display:flex;flex-direction:column;justify-content:space-between;align-items:center;height:%?180?%;padding-top:%?48?%}",""]),t.exports=e}}]);