(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/shopping/payOrder"],{"06b4":function(e,n,t){"use strict";t.r(n);var r=t("64f2"),o=t("9076");for(var i in o)["default"].indexOf(i)<0&&function(e){t.d(n,e,(function(){return o[e]}))}(i);t("976d");var d=t("828b"),a=Object(d["a"])(o["default"],r["b"],r["c"],!1,null,null,null,!1,r["a"],void 0);n["default"]=a.exports},1969:function(e,n,t){},"4cbc":function(e,n,t){"use strict";(function(e){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r=t("98ea"),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 t=this.utils.urlToObj(n);this.orderId=t.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},t=this;e.showLoading(),(0,r.getStoreOrderById)(n).then((function(n){200==n.code?(console.log(n),e.hideLoading(),t.order=n.order,t.payLimitTime=n.payLimitTime):e.showToast({icon:"none",title:n.msg})}),(function(e){}))},payOrder:function(){var n={orderId:this.order.id},t=this;e.showLoading(),(0,r.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(),t.order.isPrescribe?e.redirectTo({url:"prescribe?orderId="+t.order.id}):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=o}).call(this,t("df3c")["default"])},"64f2":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;this._self._c},o=[]},9076:function(e,n,t){"use strict";t.r(n);var r=t("4cbc"),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},"976d":function(e,n,t){"use strict";var r=t("1969"),o=t.n(r);o.a},be93:function(e,n,t){"use strict";(function(e,n){var r=t("47a9");t("584a");r(t("3240"));var o=r(t("06b4"));e.__webpack_require_UNI_MP_PLUGIN__=t,n(o.default)}).call(this,t("3223")["default"],t("df3c")["createPage"])}},[["be93","common/runtime","common/vendor"]]]);