Files
ZangShiQi/public/weapp/components/common-payment/common-payment.js
2026-04-05 10:48:38 +08:00

11 lines
12 KiB
JavaScript
Executable File

(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/common-payment/common-payment"],{4051:function(a,e,t){"use strict";var n=t("4f43"),o=t.n(n);o.a},"47f2":function(a,e,t){"use strict";t.r(e);var n=t("dcdd"),o=t("9fc9");for(var l in o)["default"].indexOf(l)<0&&function(a){t.d(e,a,(function(){return o[a]}))}(l);t("4051");var r=t("828b"),c=Object(r["a"])(o["default"],n["b"],n["c"],!1,null,null,null,!1,n["a"],void 0);e["default"]=c.exports},"4f43":function(a,e,t){},"53ff":function(a,e,t){"use strict";var n=t("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=n(t("c0030")),l={name:"common-payment",data:function(){return{}},props:{api:Object,createDataKey:String},mixins:[o.default]};e.default=l},"9fc9":function(a,e,t){"use strict";t.r(e);var n=t("53ff"),o=t.n(n);for(var l in n)["default"].indexOf(l)<0&&function(a){t.d(e,a,(function(){return n[a]}))}(l);e["default"]=o.a},dcdd:function(a,e,t){"use strict";t.d(e,"b",(function(){return o})),t.d(e,"c",(function(){return l})),t.d(e,"a",(function(){return n}));var n={nsForm:function(){return t.e("components/ns-form/ns-form").then(t.bind(null,"ae30"))},nsSwitch:function(){return t.e("components/ns-switch/ns-switch").then(t.bind(null,"b0ec"))},payment:function(){return t.e("components/payment/payment").then(t.bind(null,"b6f2"))},uniPopup:function(){return t.e("components/uni-popup/uni-popup").then(t.bind(null,"d745"))},nsEmpty:function(){return t.e("components/ns-empty/ns-empty").then(t.bind(null,"52a6"))},nsMpHtml:function(){return t.e("components/ns-mp-html/ns-mp-html").then(t.bind(null,"d108"))},nsSelectTime:function(){return t.e("components/ns-select-time/ns-select-time").then(t.bind(null,"a523"))},nsLogin:function(){return Promise.all([t.e("common/vendor"),t.e("components/ns-login/ns-login")]).then(t.bind(null,"2910"))},loadingCover:function(){return t.e("components/loading-cover/loading-cover").then(t.bind(null,"c003"))}},o=function(){var a=this,e=a.$createElement,t=(a._self._c,a.paymentData&&a.paymentData.is_virtual?a.$util.img("public/uniapp/order/icon-mobile.png"):null),n=a.paymentData&&!a.paymentData.is_virtual?a.goodsData.delivery.express_type.length:null,o=a.paymentData&&!a.paymentData.is_virtual&&"express"==a.orderCreateData.delivery.delivery_type?a.goodsData.delivery.express_type.length:null,l=a.paymentData&&!a.paymentData.is_virtual&&"express"==a.orderCreateData.delivery.delivery_type?a.$util.img("public/uniapp/order/address-line.png"):null,r=a.paymentData&&!a.paymentData.is_virtual&&"local"==a.orderCreateData.delivery.delivery_type?a.goodsData.delivery.express_type.length:null,c=a.paymentData&&!a.paymentData.is_virtual&&"local"==a.orderCreateData.delivery.delivery_type&&a.localMemberAddress?a.storeList&&Object.keys(a.storeList).length>0:null,i=a.paymentData&&!a.paymentData.is_virtual&&"local"==a.orderCreateData.delivery.delivery_type&&a.localMemberAddress&&c?Object.keys(a.storeList).length:null,u=a.paymentData&&!a.paymentData.is_virtual&&"local"==a.orderCreateData.delivery.delivery_type?a.$util.img("public/uniapp/order/address-line.png"):null,m=a.paymentData&&!a.paymentData.is_virtual&&"store"==a.orderCreateData.delivery.delivery_type?a.goodsData.delivery.express_type.length:null,s=a.paymentData&&!a.paymentData.is_virtual&&"store"==a.orderCreateData.delivery.delivery_type&&a.storeInfo?a.storeList&&Object.keys(a.storeList).length>1:null,d=a.paymentData&&!a.paymentData.is_virtual&&"store"==a.orderCreateData.delivery.delivery_type&&a.storeInfo&&a.goodsData.jielong_id?a.$util.timeStampTurnTime(a.goodsData.jielong_info.take_start_time,"Y/m/d"):null,p=a.paymentData&&!a.paymentData.is_virtual&&"store"==a.orderCreateData.delivery.delivery_type&&a.storeInfo&&a.goodsData.jielong_id?a.$util.timeStampTurnTime(a.goodsData.jielong_info.take_end_time,"Y/m/d"):null,y=a.paymentData&&!a.paymentData.is_virtual&&"store"==a.orderCreateData.delivery.delivery_type?a.$util.img("public/uniapp/order/address-line.png"):null,D=a.paymentData&&a.calculateGoodsData?a.__map(a.calculateGoodsData.goods_list,(function(e,t){var n=a.__get_orig(e),o=a.$util.img(e.sku_image,{size:"mid"}),l=0==e.is_virtual?a.orderCreateData.delivery&&a.orderCreateData.delivery.delivery_type&&e.support_trade_type&&-1==e.support_trade_type.indexOf(a.orderCreateData.delivery.delivery_type):null,r=a.$lang("common.currencySymbol"),c=parseFloat(e.price).toFixed(2).split("."),i=parseFloat(e.price).toFixed(2).split("."),u=a.calculateGoodsData.goods_list[t].member_card_list&&a.calculateGoodsData.goods_list[t].card_promotion_money?a._f("moneyFormat")(a.calculateGoodsData.goods_list[t].card_promotion_money):null,m=a.goodsData.goods_list[t].goods_form?{sku_id:e.sku_id,form_id:a.goodsData.goods_list[t].goods_form.id}:null;return{$orig:n,g13:o,g14:l,m0:r,g15:c,g16:i,f0:u,a0:m}})):null,_=a.paymentData&&(a.calculateGoodsData||a.promotionInfo||a.calculateGoodsData&&a.calculateGoodsData.max_usable_point>0||a.goodsData.invoice)?a.modules.indexOf("coupon"):null,g=a.paymentData&&(a.calculateGoodsData||a.promotionInfo||a.calculateGoodsData&&a.calculateGoodsData.max_usable_point>0||a.goodsData.invoice)&&-1!=_&&a.orderCreateData.coupon&&a.orderCreateData.coupon.coupon_id?a.$lang("common.currencySymbol"):null,v=a.paymentData&&(a.calculateGoodsData||a.promotionInfo||a.calculateGoodsData&&a.calculateGoodsData.max_usable_point>0||a.goodsData.invoice)&&-1!=_&&a.orderCreateData.coupon&&a.orderCreateData.coupon.coupon_id?a._f("moneyFormat")(a.calculateData&&a.calculateData.coupon_money?a.calculateData.coupon_money:0):null,f=a.paymentData&&(a.calculateGoodsData||a.promotionInfo||a.calculateGoodsData&&a.calculateGoodsData.max_usable_point>0||a.goodsData.invoice)&&a.calculateGoodsData&&a.calculateGoodsData.max_usable_point>0?parseInt(a.calculateGoodsData.max_usable_point):null,b=a.paymentData&&(a.calculateGoodsData||a.promotionInfo||a.calculateGoodsData&&a.calculateGoodsData.max_usable_point>0||a.goodsData.invoice)&&a.calculateGoodsData&&a.calculateGoodsData.max_usable_point>0?a.$lang("common.currencySymbol"):null,$=a.paymentData&&(a.calculateGoodsData||a.promotionInfo||a.calculateGoodsData&&a.calculateGoodsData.max_usable_point>0||a.goodsData.invoice)&&a.calculateGoodsData&&a.calculateGoodsData.max_usable_point>0?a._f("moneyFormat")(a.calculateData.point_money):null,G=a.paymentData?a.paymentData.recommend_member_card&&Object.keys(a.paymentData.recommend_member_card).length>0:null,h=a.paymentData&&G?a._f("moneyFormat")(a.paymentData.recommend_member_card.discount_money):null,C=a.paymentData&&G&&a.orderCreateData.is_open_card?a.__map(a.cardChargeType,(function(e,t){var n=a.__get_orig(e),o=a.$lang("common.currencySymbol"),l=parseFloat(e.value);return{$orig:n,m4:o,m5:l}})):null,F=a.paymentData&&a.calculateData?a.$lang("common.currencySymbol"):null,x=a.paymentData&&a.calculateData?a._f("moneyFormat")(a.calculateData.goods_money):null,S=a.paymentData&&a.calculateData&&0==a.calculateData.is_virtual&&a.calculateData.delivery_money>0?a.$lang("common.currencySymbol"):null,k=a.paymentData&&a.calculateData&&0==a.calculateData.is_virtual&&a.calculateData.delivery_money>0?a._f("moneyFormat")(a.calculateData.delivery_money):null,T=a.paymentData&&a.calculateData&&a.orderCreateData.is_invoice&&a.calculateData.invoice_money>0?a.$lang("common.currencySymbol"):null,I=a.paymentData&&a.calculateData&&a.orderCreateData.is_invoice&&a.calculateData.invoice_money>0?a._f("moneyFormat")(a.calculateData.invoice_money):null,j=a.paymentData&&a.calculateData&&a.orderCreateData.is_invoice&&a.calculateData.invoice_delivery_money>0?a.$lang("common.currencySymbol"):null,O=a.paymentData&&a.calculateData&&a.orderCreateData.is_invoice&&a.calculateData.invoice_delivery_money>0?a._f("moneyFormat")(a.calculateData.invoice_delivery_money):null,P=a.paymentData&&a.calculateData&&a.calculateData.promotion_money>0?a.$lang("common.currencySymbol"):null,w=a.paymentData&&a.calculateData&&a.calculateData.promotion_money>0?a._f("moneyFormat")(a.calculateData.promotion_money):null,L=a.paymentData&&a.calculateData&&a.calculateData.coupon_money?a.$lang("common.currencySymbol"):null,M=a.paymentData&&a.calculateData&&a.calculateData.coupon_money?a._f("moneyFormat")(a.calculateData.coupon_money):null,A=a.paymentData&&a.calculateData&&a.calculateData.point_money>0?a.$lang("common.currencySymbol"):null,E=a.paymentData&&a.calculateData&&a.calculateData.point_money>0?a._f("moneyFormat")(a.calculateData.point_money):null,J=a.paymentData&&a.calculateData&&a.calculateData.member_card_money>0?a.$lang("common.currencySymbol"):null,Y=a.paymentData&&a.calculateData&&a.calculateData.member_card_money>0?a._f("moneyFormat")(a.calculateData.member_card_money):null,z=a.paymentData&&a.calculateData?a.$lang("common.currencySymbol"):null,H=a.paymentData&&a.calculateData?parseFloat(a.calculateData.pay_money).toFixed(2).split("."):null,K=a.paymentData&&a.calculateData?parseFloat(a.calculateData.pay_money).toFixed(2).split("."):null,q=a.paymentData&&a.calculateData?a.surplusStartMoney():null,B=a.paymentData&&a.calculateData&&q?a._f("moneyFormat")(a.surplusStartMoney()):null,N=a.paymentData&&1==a.orderCreateData.is_invoice?a.goodsData.invoice.invoice_type.split(","):null,Q=a.paymentData&&a.calculateGoodsData?a.coupon_list.length:null,R=a.paymentData&&a.calculateGoodsData&&Q>0?a.__map(a.coupon_list,(function(e,t){var n=a.__get_orig(e),o=a.$util.img("public/uniapp/coupon/coupon_line.png"),l="divideticket"==e.type?a.$lang("common.currencySymbol"):null,r="divideticket"==e.type?parseFloat(e.money):null,c="divideticket"!=e.type&&"reward"==e.type?a.$lang("common.currencySymbol"):null,i="divideticket"!=e.type&&"reward"==e.type?parseFloat(e.money):null,u="divideticket"!=e.type&&"reward"!=e.type&&"discount"==e.type?parseFloat(e.discount):null,m=e.end_time?a.$util.timeStampTurnTime(e.end_time):null;return{$orig:n,g22:o,m16:l,m17:r,m18:c,m19:i,m20:u,g23:m}})):null,U=a.paymentData?a.__map(a.selectGoodsCard.cardList,(function(e,t){var n=a.__get_orig(e),o=e.end_time?a.$util.timeStampTurnTime(e.end_time):null;return{$orig:n,g24:o}})):null;a._isMounted||(a.e0=function(e,t){var n=arguments[arguments.length-1].currentTarget.dataset,o=n.eventParams||n["event-params"];t=o.goodsItem;return a.$util.redirectTo("/pages/goods/detail",{goods_id:t.goods_id})},a.e1=function(e,t){var n=arguments[arguments.length-1].currentTarget.dataset,o=n.eventParams||n["event-params"];t=o.goodsItem;return a.$util.redirectTo("/pages/goods/detail",{goods_id:t.goods_id})},a.e2=function(e){return a.$refs.agreementPopup.open()},a.e3=function(e,t){var n=arguments[arguments.length-1].currentTarget.dataset,o=n.eventParams||n["event-params"];t=o.item;return a.changeInvoiceType(t)},a.e4=function(e){return a.$refs.agreementPopup.close()},a.e5=function(e){return a.$refs.editFormPopup.close()},a.e6=function(e){return a.$refs.memberGoodsCardPopup.close()},a.e7=function(e,t){var n=arguments[arguments.length-1].currentTarget.dataset,o=n.eventParams||n["event-params"];t=o.item;return a.selectGoodsCard.click(t.item_id)}),a.$mp.data=Object.assign({},{$root:{g0:t,g1:n,g2:o,g3:l,g4:r,g5:c,g6:i,g7:u,g8:m,g9:s,g10:d,g11:p,g12:y,l0:D,g17:_,m1:g,f1:v,m2:f,m3:b,f2:$,g18:G,f3:h,l1:C,m6:F,f4:x,m7:S,f5:k,m8:T,f6:I,m9:j,f7:O,m10:P,f8:w,m11:L,f9:M,m12:A,f10:E,m13:J,f11:Y,m14:z,g19:H,g20:K,m15:q,f12:B,l2:N,g21:Q,l3:R,l4:U}})},l=[]}}]);
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
'components/common-payment/common-payment-create-component',
{
'components/common-payment/common-payment-create-component':(function(module, exports, __webpack_require__){
__webpack_require__('df3c')['createComponent'](__webpack_require__("47f2"))
})
},
[['components/common-payment/common-payment-create-component']]
]);