require('../common/vendor.js');(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages_user/user/paymentOrderRemain"],{"15d6":function(e,n,t){"use strict";(function(e){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r=t("41e9"),o=t("98ea"),i={data:function(){return{payDelivery:0,order:null,user:null,orderId:null}},onLoad:function(n){this.orderId=JSON.parse(n.orderId),console.log(this.orderId),this.getUserInfo(),e.showShareMenu({withShareTicket:!0,menus:["shareAppMessage"]})},onShow:function(){this.getStoreOrderById()},onShareAppMessage:function(e){return{title:"帮TA支付",path:"/pages_user/user/otherPaymentOrderRemain?orderId="+this.orderId,imageUrl:"https://hos-1309931967.cos.ap-chongqing.myqcloud.com/fs/20230106/6b459adfb1004c1a96219bcdf07e337c.png"}},methods:{getUserInfo:function(){var n=this;(0,r.getUserInfo)().then((function(t){200==t.code?null!=t.user&&(n.user=t.user):e.showToast({icon:"none",title:"请求失败"})}),(function(e){}))},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.payDelivery=r.order.payDelivery):e.showToast({icon:"none",title:t.msg})}),(function(e){}))},payOrder:function(){var n={orderId:this.order.id,payType:1},t=this;e.showLoading(),(0,o.payRemain)(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(),e.redirectTo({url:"success?order="+JSON.stringify(t.order)})},fail:function(n){console.log("fail:"+JSON.stringify(n)),e.hideLoading()}})):e.showToast({icon:"none",title:n.msg})}),(function(e){}))}}};n.default=i}).call(this,t("df3c")["default"])},4226:function(e,n,t){"use strict";(function(e,n){var r=t("47a9");t("584a");r(t("3240"));var o=r(t("ad7d"));e.__webpack_require_UNI_MP_PLUGIN__=t,n(o.default)}).call(this,t("3223")["default"],t("df3c")["createPage"])},4296:function(e,n,t){"use strict";t.r(n);var r=t("15d6"),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},ad7d:function(e,n,t){"use strict";t.r(n);var r=t("b209"),o=t("4296");for(var i in o)["default"].indexOf(i)<0&&function(e){t.d(n,e,(function(){return o[e]}))}(i);t("fc12");var a=t("828b"),s=Object(a["a"])(o["default"],r["b"],r["c"],!1,null,null,null,!1,r["a"],void 0);n["default"]=s.exports},b209:function(e,n,t){"use strict";t.d(n,"b",(function(){return r})),t.d(n,"c",(function(){return o})),t.d(n,"a",(function(){}));var r=function(){var e=this.$createElement,n=(this._self._c,this.payDelivery.toFixed(2)),t=null!=this.order?this.order.payPrice.toFixed(2):null,r=null!=this.order?this.order.payMoney.toFixed(2):null;this.$mp.data=Object.assign({},{$root:{g0:n,g1:t,g2:r}})},o=[]},eca3:function(e,n,t){},fc12:function(e,n,t){"use strict";var r=t("eca3"),o=t.n(r);o.a}},[["4226","common/runtime","common/vendor"]]]);