require('../common/vendor.js');(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages_user/user/otherPaymentOrder"],{700:function(e,n,t){"use strict";(function(e,n){var r=t(4);t(26);r(t(25));var o=r(t(701));e.__webpack_require_UNI_MP_PLUGIN__=t,n(o.default)}).call(this,t(1)["default"],t(2)["createPage"])},701:function(e,n,t){"use strict";t.r(n);var r=t(702),o=t(704);for(var i in o)["default"].indexOf(i)<0&&function(e){t.d(n,e,(function(){return o[e]}))}(i);t(706);var a,c=t(34),u=Object(c["default"])(o["default"],r["render"],r["staticRenderFns"],!1,null,null,null,!1,r["components"],a);u.options.__file="pages_user/user/otherPaymentOrder.vue",n["default"]=u.exports},702:function(e,n,t){"use strict";t.r(n);var r=t(703);t.d(n,"render",(function(){return r["render"]})),t.d(n,"staticRenderFns",(function(){return r["staticRenderFns"]})),t.d(n,"recyclableRender",(function(){return r["recyclableRender"]})),t.d(n,"components",(function(){return r["components"]}))},703:function(e,n,t){"use strict";var r;t.r(n),t.d(n,"render",(function(){return o})),t.d(n,"staticRenderFns",(function(){return a})),t.d(n,"recyclableRender",(function(){return i})),t.d(n,"components",(function(){return r}));var o=function(){var e=this,n=e.$createElement,t=(e._self._c,e.payMoney.toFixed(2)),r=null!=e.order?e.order.payPrice.toFixed(2):null;e.$mp.data=Object.assign({},{$root:{g0:t,g1:r}})},i=!1,a=[];o._withStripped=!0},704:function(e,n,t){"use strict";t.r(n);var r=t(705),o=t.n(r);for(var i in r)["default"].indexOf(i)<0&&function(e){t.d(n,e,(function(){return r[e]}))}(i);n["default"]=o.a},705:function(e,n,t){"use strict";(function(e){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r=t(273),o={data:function(){return{payDelivery:0,payMoney:0,config:null,payType:1,payLimitTime:null,order:null,user:null}},onLoad:function(e){this.orderId=JSON.parse(e.orderId),this.getStoreOrderById()},methods:{copyOrderSn:function(n){e.setClipboardData({data:n,success:function(){e.showToast({title:"内容已成功复制到剪切板",icon:"none"})}})},getStoreOrderById:function(){var n=this,t={orderId:this.orderId},o=this;e.showLoading(),(0,r.getStoreOrderById)(t).then((function(t){200==t.code?(console.log(t),e.hideLoading(),o.order=t.order,n.payMoney=o.order.payMoney):e.showToast({icon:"none",title:t.msg})}),(function(e){}))},pay:function(){var n=this;e.login({success:function(e){console.log(e),n.otherPayment(e.code)}})},otherPayment:function(n){var t={orderId:this.order.id,code:n},o=this;e.showLoading(),(0,r.otherPayment)(t).then((function(n){if(200==n.code){var t=JSON.parse(n.result);e.requestPayment({provider:"wxpay",timeStamp:t.timeStamp,nonceStr:t.nonceStr,package:t.package,signType:t.signType,paySign:t.paySign,success:function(n){e.hideLoading(),e.redirectTo({url:"otherPaySuccess"})},fail:function(n){e.showToast({icon:"none",title:"fail:"+JSON.stringify(n)}),console.log("fail:"+JSON.stringify(n)),o.getcanle(),e.hideLoading()}})}else e.showToast({icon:"none",title:n.msg})}),(function(e){}))},getcanle:function(){var e={orderId:this.order.id,payType:this.order.payType};(0,r.userCancelPay)(e).then((function(e){200==e.code&&console.log(e)}))}}};n.default=o}).call(this,t(2)["default"])},706:function(e,n,t){"use strict";t.r(n);var r=t(707),o=t.n(r);for(var i in r)["default"].indexOf(i)<0&&function(e){t.d(n,e,(function(){return r[e]}))}(i);n["default"]=o.a},707:function(e,n,t){}},[[700,"common/runtime","common/vendor"]]]); //# sourceMappingURL=../../../.sourcemap/mp-weixin/pages_user/user/otherPaymentOrder.js.map