otherPaymentOrderRemain.js 2.8 KB

1
  1. require('../common/vendor.js');(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages_user/user/otherPaymentOrderRemain"],{3324:function(e,n,t){"use strict";var o=t("d55e"),i=t.n(o);i.a},4675:function(e,n,t){"use strict";(function(e,n){var o=t("47a9");t("2438");o(t("3240"));var i=o(t("a98f"));e.__webpack_require_UNI_MP_PLUGIN__=t,n(i.default)}).call(this,t("3223")["default"],t("df3c")["createPage"])},"7ce4":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=[]},a98f:function(e,n,t){"use strict";t.r(n);var o=t("7ce4"),i=t("fd79");for(var r in i)["default"].indexOf(r)<0&&function(e){t.d(n,e,(function(){return i[e]}))}(r);t("3324");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},c6a8:function(e,n,t){"use strict";(function(e){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o=t("c449"),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"])},d55e:function(e,n,t){},fd79:function(e,n,t){"use strict";t.r(n);var o=t("c6a8"),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}},[["4675","common/runtime","common/vendor"]]]);