require('../common/vendor.js');(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages_user/user/otherPaymentOrderRemain"],{"113e":function(e,n,t){"use strict";(function(e,n){var o=t("47a9");t("584a");o(t("3240"));var i=o(t("b64f"));e.__webpack_require_UNI_MP_PLUGIN__=t,n(i.default)}).call(this,t("3223")["default"],t("df3c")["createPage"])},6266:function(e,n,t){},"62b3":function(e,n,t){"use strict";t.r(n);var o=t("d1b3"),i=t.n(o);for(var r in o)["default"].indexOf(r)<0&&function(e){t.d(n,e,(function(){return o[e]}))}(r);n["default"]=i.a},"9bd0":function(e,n,t){"use strict";var o=t("6266"),i=t.n(o);i.a},b64f:function(e,n,t){"use strict";t.r(n);var o=t("bc9b"),i=t("62b3");for(var r in i)["default"].indexOf(r)<0&&function(e){t.d(n,e,(function(){return i[e]}))}(r);t("9bd0");var a=t("828b"),c=Object(a["a"])(i["default"],o["b"],o["c"],!1,null,null,null,!1,o["a"],void 0);n["default"]=c.exports},bc9b:function(e,n,t){"use strict";t.d(n,"b",(function(){return o})),t.d(n,"c",(function(){return i})),t.d(n,"a",(function(){}));var o=function(){var e=this.$createElement,n=(this._self._c,this.payDelivery.toFixed(2)),t=null!=this.order?this.order.payPrice.toFixed(2):null,o=null!=this.order?this.order.payMoney.toFixed(2):null;this.$mp.data=Object.assign({},{$root:{g0:n,g1:t,g2:o}})},i=[]},d1b3:function(e,n,t){"use strict";(function(e){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o=t("98ea"),i={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},i=this;e.showLoading(),(0,o.getStoreOrderById)(t).then((function(t){200==t.code?(console.log(t),e.hideLoading(),i.order=t.order,n.payDelivery=i.order.payDelivery):e.showToast({icon:"none",title:t.msg})}),(function(e){}))},pay:function(){var n=this;e.login({success:function(e){console.log(e),n.otherPaymentRemain(e.code)}})},otherPaymentRemain:function(n){var t={orderId:this.order.id,code:n};e.showLoading(),(0,o.otherPaymentRemain)(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=i}).call(this,t("df3c")["default"])}},[["113e","common/runtime","common/vendor"]]]);