(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/shopping/payOrder"],{327:function(e,n,r){"use strict";(function(e,n){var t=r(4);r(26);t(r(25));var o=t(r(328));e.__webpack_require_UNI_MP_PLUGIN__=r,n(o.default)}).call(this,r(1)["default"],r(2)["createPage"])},328:function(e,n,r){"use strict";r.r(n);var t=r(329),o=r(331);for(var i in o)["default"].indexOf(i)<0&&function(e){r.d(n,e,(function(){return o[e]}))}(i);r(333);var d,u=r(34),c=Object(u["default"])(o["default"],t["render"],t["staticRenderFns"],!1,null,null,null,!1,t["components"],d);c.options.__file="pages/shopping/payOrder.vue",n["default"]=c.exports},329:function(e,n,r){"use strict";r.r(n);var t=r(330);r.d(n,"render",(function(){return t["render"]})),r.d(n,"staticRenderFns",(function(){return t["staticRenderFns"]})),r.d(n,"recyclableRender",(function(){return t["recyclableRender"]})),r.d(n,"components",(function(){return t["components"]}))},330:function(e,n,r){"use strict";var t;r.r(n),r.d(n,"render",(function(){return o})),r.d(n,"staticRenderFns",(function(){return d})),r.d(n,"recyclableRender",(function(){return i})),r.d(n,"components",(function(){return t}));var o=function(){var e=this,n=e.$createElement;e._self._c},i=!1,d=[];o._withStripped=!0},331:function(e,n,r){"use strict";r.r(n);var t=r(332),o=r.n(t);for(var i in t)["default"].indexOf(i)<0&&function(e){r.d(n,e,(function(){return t[e]}))}(i);n["default"]=o.a},332:function(e,n,r){"use strict";(function(e){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var t=r(273),o={data:function(){return{payLimitTime:null,order:null,wxPay:!0}},onLoad:function(e){if(e.hasOwnProperty("q")&&e.q){var n=decodeURIComponent(e.q);this.url=n;var r=this.utils.urlToObj(n);this.orderId=r.orderId}else null!=e&&null!=e.orderId&&(this.orderId=e.orderId)},onShow:function(){this.getStoreOrderById()},methods:{copyOrderSn:function(n){e.setClipboardData({data:n,success:function(){e.showToast({title:"内容已成功复制到剪切板",icon:"none"})}})},getStoreOrderById:function(){var n={orderId:this.orderId},r=this;e.showLoading(),(0,t.getStoreOrderById)(n).then((function(n){200==n.code?(console.log(n),e.hideLoading(),r.order=n.order,r.payLimitTime=n.payLimitTime):e.showToast({icon:"none",title:n.msg})}),(function(e){}))},payOrder:function(){var n={orderId:this.order.id},r=this;e.showLoading(),(0,t.pay)(n).then((function(n){200==n.code?(console.log(n),e.requestPayment({provider:"wxpay",timeStamp:n.result.timeStamp,nonceStr:n.result.nonceStr,package:n.result.packageValue,signType:n.result.signType,paySign:n.result.paySign,success:function(n){e.hideLoading(),r.order.isPrescribe?e.redirectTo({url:"prescribe?orderId="+r.order.id}):e.redirectTo({url:"success?order="+JSON.stringify(r.order)})},fail:function(n){console.log("fail:"+JSON.stringify(n)),e.hideLoading()}})):e.showToast({icon:"none",title:n.msg})}),(function(e){}))}}};n.default=o}).call(this,r(2)["default"])},333:function(e,n,r){"use strict";r.r(n);var t=r(334),o=r.n(t);for(var i in t)["default"].indexOf(i)<0&&function(e){r.d(n,e,(function(){return t[e]}))}(i);n["default"]=o.a},334:function(e,n,r){}},[[327,"common/runtime","common/vendor"]]]);
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/shopping/payOrder.js.map