require('../common/vendor.js');(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages_user/user/otherPaymentOrder"],{"103e":function(e,n,t){},"12b0":function(e,n,t){"use strict";var o=t("103e"),r=t.n(o);r.a},"21b7":function(e,n,t){"use strict";t.r(n);var o=t("db17"),r=t.n(o);for(var i in o)["default"].indexOf(i)<0&&function(e){t.d(n,e,(function(){return o[e]}))}(i);n["default"]=r.a},"5f0b":function(e,n,t){"use strict";(function(e,n){var o=t("47a9");t("584a");o(t("3240"));var r=o(t("a136"));e.__webpack_require_UNI_MP_PLUGIN__=t,n(r.default)}).call(this,t("3223")["default"],t("df3c")["createPage"])},a136:function(e,n,t){"use strict";t.r(n);var o=t("f3f3"),r=t("21b7");for(var i in r)["default"].indexOf(i)<0&&function(e){t.d(n,e,(function(){return r[e]}))}(i);t("12b0");var a=t("828b"),c=Object(a["a"])(r["default"],o["b"],o["c"],!1,null,null,null,!1,o["a"],void 0);n["default"]=c.exports},db17:function(e,n,t){"use strict";(function(e){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o=t("98ea"),r={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},r=this;e.showLoading(),(0,o.getStoreOrderById)(t).then((function(t){200==t.code?(console.log(t),e.hideLoading(),r.order=t.order,n.payMoney=r.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};e.showLoading(),(0,o.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)),e.hideLoading()}})}else e.showToast({icon:"none",title:n.msg})}),(function(e){}))}}};n.default=r}).call(this,t("df3c")["default"])},f3f3:function(e,n,t){"use strict";t.d(n,"b",(function(){return o})),t.d(n,"c",(function(){return r})),t.d(n,"a",(function(){}));var o=function(){var e=this.$createElement,n=(this._self._c,this.payMoney.toFixed(2)),t=null!=this.order?this.order.payPrice.toFixed(2):null;this.$mp.data=Object.assign({},{$root:{g0:n,g1:t}})},r=[]}},[["5f0b","common/runtime","common/vendor"]]]);