(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/order/payment"],{1267:function(n,t,e){"use strict";e.r(t);var o=e("1bcf"),i=e("e992");for(var a in i)["default"].indexOf(a)<0&&function(n){e.d(t,n,(function(){return i[n]}))}(a);e("b494");var r=e("828b"),c=Object(r["a"])(i["default"],o["b"],o["c"],!1,null,"25e43669",null,!1,o["a"],void 0);t["default"]=c.exports},"1bcf":function(n,t,e){"use strict";e.d(t,"b",(function(){return i})),e.d(t,"c",(function(){return a})),e.d(t,"a",(function(){return o}));var o={commonPayment:function(){return Promise.all([e.e("common/vendor"),e.e("components/common-payment/common-payment")]).then(e.bind(null,"9e4a"))}},i=function(){var n=this.$createElement;this._self._c},a=[]},"27d4":function(n,t,e){"use strict";(function(n,t){var o=e("47a9");e("1dee");o(e("3240"));var i=o(e("1267"));n.__webpack_require_UNI_MP_PLUGIN__=e,t(i.default)}).call(this,e("3223")["default"],e("df3c")["createPage"])},"74d0":function(n,t,e){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o={data:function(){return{api:{payment:"/api/ordercreate/payment",calculate:"/api/ordercreate/calculate",create:"/api/ordercreate/create"}}},provide:function(){return{promotion:this.promotion.bind(this)}},onShow:function(){this.$refs.payment&&this.$refs.payment.pageShow()},methods:{promotion:function(n){if(n.promotion&&n.promotion.manjian&&n.promotion.manjian.length){var t={title:"满减送",content:""};return n.promotion.manjian.forEach((function(n,e){var o,i={},a=0==n.type?"元":"件";if(n.rule){var r=n.discount_array.rule;if(r.limit=0==n.type?parseFloat(r.limit).toFixed(2):parseInt(r.limit),void 0!=r.discount_money&&(void 0==i.manjian?i.manjian="购买可享受满"+r.limit+a+"减"+r.discount_money+"元":i.manjian+="；满"+r.limit+a+"减"+r.discount_money+"元"),r.coupon&&r.coupon_list){var c="";r.coupon_list.forEach((function(n,t){"discount"==n.type?""==c?c="送"+n.give_num+"张"+parseFloat(n.discount)+"折优惠券":c+="、送"+n.give_num+"张"+parseFloat(n.discount)+"折优惠券":""==c?c="送"+n.give_num+"张"+parseFloat(n.money)+"元优惠券":c+="、送"+n.give_num+"张"+parseFloat(n.money)+"元优惠券"})),void 0==i.mansong?i.mansong="购物满"+r.limit+a+c:i.mansong+="；满"+r.limit+a+c}if(r.point){var u="可得"+r.point+"积分";void 0==i.point_text?i.point_text="购物满"+r.limit+a+u:i.point_text+="；满"+r.limit+a+u}void 0!=r.free_shipping&&void 0==i.free_shipping&&(i.free_shipping="购物满"+r.limit+a+"包邮")}o=Object.values(i).join("\n"),t.content=t.content+o+"\n"})),t.content?t:null}}}};t.default=o},b494:function(n,t,e){"use strict";var o=e("f165"),i=e.n(o);i.a},e992:function(n,t,e){"use strict";e.r(t);var o=e("74d0"),i=e.n(o);for(var a in o)["default"].indexOf(a)<0&&function(n){e.d(t,n,(function(){return o[n]}))}(a);t["default"]=i.a},f165:function(n,t,e){}},[["27d4","common/runtime","common/vendor"]]]);