1 line
17 KiB
JavaScript
1 line
17 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-users-payment-payment"],{1442:function(e,t,r){var n=r("ed4e");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[e.i,n,""]]),n.locals&&(e.exports=n.locals);var a=r("4f06").default;a("210e3c74",n,!0,{sourceMap:!1,shadowMode:!1})},"16f7":function(e,t,r){"use strict";r("7a82"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r("33b4"),a=r("736a"),i=r("8a83"),o={data:function(){return{animated:!1,totalPrice:0,couponData:{},active:0,userInfo:{},cartArr:[{name:"微信支付",icon:"icon-weixin2",value:"weixin",title:"微信快捷支付",payStatus:1},{name:"支付宝支付",icon:"icon-icon34",value:"alipay",title:"支付宝支付",payStatus:this.$store.getters.globalData.alipay_open},{name:"余额支付",icon:"icon-icon-test",value:"balance",title:"可用余额:",payStatus:this.$store.getters.globalData.yue_pay_status},{name:"线下支付",icon:"icon-yinhangqia",value:"offline",title:"线下支付",payStatus:2},{name:"先货后款",icon:"tan-a-lujing17324",value:"creditBuy",title:"结算周期:30天 ",label:"日利率:0.05%",order_id:""}],order_id:"",product_type:0,mer_id:"",be_overdue:"",be_overday:""}},onLoad:function(e){var t=this;this.payType="weixin",this.order_id=e.order_id,e.product_type&&(this.product_type=e.product_type),this.$nextTick((function(){t.getOrderInfo(),t.getUserInfo()}))},methods:{payItem:function(e){var t=e;this.active=t,this.animated=!0,this.payType=this.cartArr[t].value},getUserInfo:function(){var e=this;(0,n.getUserInfo)().then((function(t){e.userInfo=t.data,e.mer_id=t.data.service.mer_id}))},getOrderInfo:function(){var e=this;(0,a.groupOrderDetail)(this.order_id,this.product_type).then((function(t){e.couponData=t.data,e.$nextTick((function(){null!==e.couponData.interest&&e.moerTime(e.couponData.interest.start_time)}))}))},SubOrder:function(){8==this.couponData.pay_type?(0,i.postsettle)(this.mer_id,{id:this.order_id,pay_type:this.payType}).then((function(e){e.data.paid,"success"==e.message&&(uni.showToast({title:"付款成功"}),setTimeout((function(){uni.navigateBack({delta:1})}),1e3))})).catch((function(e){uni.showToast({title:e.message})})):(0,a.orderPay)(this.order_id,{type:this.payType}).then((function(e){e.data.result.config;"weixinApp"===e.data.status||200==e.status&&(uni.showToast({icon:"none",title:e.message}),(e.data.status="error")||setTimeout((function(){uni.navigateBack({delta:2})}),1e3))}))},moerTime:function(e){var t=Date.parse(new Date)/1e3,r=Date.parse(new Date(e))/1e3,n=1e3*(r-t);if(this.be_overdue=Math.floor(n/864e5),0==this.be_overdue||this.be_overdue<0){t=Date.parse(new Date)/1e3,r=Date.parse(new Date(e))/1e3,n=1e3*(t-r);this.be_overday=Math.floor(n/864e5)}}}};t.default=o},3441:function(e,t,r){"use strict";r.r(t);var n=r("16f7"),a=r.n(n);for(var i in n)["default"].indexOf(i)<0&&function(e){r.d(t,e,(function(){return n[e]}))}(i);t["default"]=a.a},"3a55":function(e,t,r){"use strict";var n=r("1442"),a=r.n(n);a.a},"736a":function(e,t,r){"use strict";r("7a82");var n=r("4ea4").default;Object.defineProperty(t,"__esModule",{value:!0}),t.applyInvoiceApi=function(e,t){return a.default.post("order/receipt/".concat(e),t)},t.cartDel=function(e){return a.default.post("user/cart/delete",e)},t.changeCartNum=function(e,t){return a.default.post("user/cart/change/"+e,t)},t.createOrder=function(e){return a.default.post("v2/order/create",e,{noAuth:!0})},t.develiveryDetail=function(e){return a.default.get("order/delivery/".concat(e))},t.express=function(e){return a.default.post("order/express/"+e)},t.expressList=function(){return a.default.get("common/express")},t.getCallBackUrlApi=function(e){return a.default.get("common/pay_key/"+e,{},{noAuth:!0})},t.getCartCounts=function(e){return a.default.get("user/cart/count",e)},t.getCartList=function(e){return a.default.get("user/cart/lst",e)},t.getCouponsOrderPrice=function(e,t){return a.default.get("coupons/order/"+e,t)},t.getOrderConfirm=function(e){return a.default.post("v2/order/check",e)},t.getOrderDetail=function(e){return a.default.get("order/detail/"+e)},t.getOrderList=function(e){return a.default.get("order/list",e)},t.getPayOrder=function(e){return a.default.get("order/status/"+e)},t.getReceiptOrder=function(e){return a.default.get("user/receipt/order/"+e)},t.groupOrderDetail=function(e,t){return a.default.get("order/group_order_detail/"+e+"?product_type="+t)},t.groupOrderList=function(e){return a.default.get("order/group_order_list",e,{noAuth:!0})},t.ordeRefundReason=function(){return a.default.get("order/refund/reason")},t.orderAgain=function(e){return a.default.post("user/cart/again",e)},t.orderComment=function(e,t){return a.default.post("reply/"+e,t)},t.orderConfirm=function(e){return a.default.post("order/check",e)},t.orderCreate=function(e){return a.default.post("order/create",e,{noAuth:!0})},t.orderData=function(e){return a.default.get("order/number",e)},t.orderDel=function(e){return a.default.post("order/del/"+e)},t.orderPay=function(e,t){return a.default.post("order/pay/"+e,t)},t.orderProduct=function(e){return a.default.get("reply/product/"+e)},t.orderRefundVerify=function(e){return a.default.post("order/refund/verify",e)},t.orderTake=function(e){return a.default.post("order/take/"+e)},t.postOrderComputed=function(e,t){return a.default.post("/order/computed/"+e,t)},t.presellOrderPay=function(e,t){return a.default.post("presell/pay/"+e,t)},t.receiptOrder=function(e){return a.default.get("user/receipt/order",e)},t.refundApply=function(e,t){return a.default.post("refund/apply/"+e,t,{noAuth:!0})},t.refundBackGoods=function(e,t){return a.default.post("refund/back_goods/"+e,t,{noAuth:!0})},t.refundBatch=function(e){return a.default.get("refund/batch_product/"+e,{noAuth:!0})},t.refundCancelApi=function(e){return a.default.post("refund/cancel/".concat(e))},t.refundDel=function(e){return a.default.post("refund/del/"+e,{noAuth:!0})},t.refundDetail=function(e){return a.default.get("refund/detail/"+e,{noAuth:!0})},t.refundExpress=function(e){return a.default.get("refund/express/"+e,{noAuth:!0})},t.refundList=function(e){return a.default.get("refund/list",e,{noAuth:!0})},t.refundMessage=function(){return a.default.get("common/refund_message",{noAuth:!0})},t.refundOrderExpress=function(e,t){return a.default.get("server/".concat(e,"/refund/express/").concat(t))},t.refundProduct=function(e,t){return a.default.get("refund/product/"+e,t,{noAuth:!0})},t.refundlist=function(e){return a.default.get("refund/list",e)},t.unOrderCancel=function(e){return a.default.post("order/cancel/"+e)},t.verifyCode=function(e){return a.default.get("order/verify_code/"+e)},r("99af");var a=n(r("6860"))},"812e":function(e,t,r){"use strict";r.r(t);var n=r("e30d"),a=r("3441");for(var i in a)["default"].indexOf(i)<0&&function(e){r.d(t,e,(function(){return a[e]}))}(i);r("3a55");var o=r("f0c5"),u=Object(o["a"])(a["default"],n["b"],n["c"],!1,null,"8c319898",null,!1,n["a"],void 0);t["default"]=u.exports},"8a83":function(e,t,r){"use strict";r("7a82");var n=r("4ea4").default;Object.defineProperty(t,"__esModule",{value:!0}),t.getAdminOrderDelivery=function(e){return a.default.get("admin/order/delivery/gain/"+e,{},{login:!0})},t.getAdminOrderDetail=function(e,t){return a.default.get("admin/"+e+"/order/"+t,{},{login:!0})},t.getAdminOrderList=function(e){return a.default.get("admin/order/list",e,{login:!0})},t.getDeliveryStoreLst=function(e){return a.default.get("admin/".concat(e,"/delivery_options"))},t.getLogistics=function(){return a.default.get("logistics",{},{login:!1})},t.getOrderList=function(e,t){return a.default.get("admin/".concat(t,"/order_list"),e,{login:!0})},t.getRefundOrderDetail=function(e,t){return a.default.get("server/".concat(e,"/refund/detail/").concat(t),{},{login:!0})},t.getRefundOrderInfo=function(e,t){return a.default.get("server/".concat(e,"/refund/get/").concat(t))},t.getRefundOrderList=function(e,t){return a.default.get("server/".concat(t,"/refund/lst"),e,{login:!0})},t.getStatisticsInfo=function(){return a.default.get("admin/order/statistics",{},{login:!0})},t.getStatisticsMonth=function(e){return a.default.get("admin/order/data",e,{login:!0})},t.getStatisticsTime=function(e){return a.default.get("admin/order/time",e,{login:!0})},t.getTempAndDelivery=function(e){return a.default.get("admin/".concat(e,"/delivery_config"))},t.logisticsCode=function(e){return a.default.get("order/logistics_code/".concat(e))},t.orderCancellation=function(e,t){return a.default.post("admin/".concat(e,"/verify/").concat(t))},t.orderDeliveryInfo=function(e){return a.default.get("admin/".concat(e,"/mer_form"))},t.orderExportTemp=function(e){return a.default.get("store/expr/temps",e)},t.orderNumberStatistics=function(e,t){return a.default.get("admin/".concat(t,"/pay_number"),e,{login:!0})},t.orderPrice=function(e,t){return a.default.get("admin/"+t+"/order_price",e,{login:!0})},t.orderStat=function(e){return a.default.get("admin/1/statistics",e)},t.orderStatistics=function(e,t){return a.default.get("admin/"+e+"/statistics",t)},t.orderVerific=function(e,t,r){return a.default.post("verifier/".concat(e,"/").concat(t),r)},t.postconfirm=function(e,t){return a.default.post("admin/"+e+"/confirm",t,{login:!0})},t.postsettle=function(e,t){return a.default.post("admin/"+e+"/settle",t,{login:!0})},t.purchaseOrder=function(e,t){return a.default.get("admin/".concat(t,"/purchaseOrder"),e,{login:!0})},t.refundOrderReceive=function(e,t){return a.default.post("server/".concat(e,"/refund/confirm/").concat(t),{},{login:!0})},t.refundOrderSubmit=function(e,t,r){return a.default.post("server/".concat(e,"/refund/status/").concat(t),r,{login:!0})},t.setAdminOrderDelivery=function(e,t,r){return a.default.post("admin/"+e+"/delivery/"+t,r,{login:!0})},t.setAdminOrderPrice=function(e,t,r){return a.default.post("admin/"+e+"/price/"+t,r,{login:!0})},t.setAdminOrderRemark=function(e,t,r){return a.default.post("admin/"+e+"/mark/"+t,r,{login:!0})},t.setOfflinePay=function(e,t){return a.default.post("admin/"+e+"/order/offline",t,{login:!0})},t.setOrderRefund=function(e,t){return a.default.post("admin/"+e+"/order/refund",t,{login:!0})},t.setRefundMark=function(e,t,r){return a.default.post("server/".concat(e,"/refund/mark/").concat(t),r,{login:!0})},t.turnoverStatistics=function(e,t){return a.default.get("admin/".concat(t,"/pay_price"),e,{login:!0})},t.verifierOrder=function(e,t){return a.default.get("verifier/"+e+"/order/"+t)},r("99af");var a=n(r("6860"))},e30d:function(e,t,r){"use strict";r.d(t,"b",(function(){return n})),r.d(t,"c",(function(){return a})),r.d(t,"a",(function(){}));var n=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("v-uni-view",{staticClass:"center"},[r("v-uni-view",{staticClass:"wrapper"},[r("v-uni-view",{staticClass:"item"},[r("v-uni-view",[e._v("支付方式")]),r("v-uni-view",{staticClass:"list"},e._l(e.cartArr,(function(t,n){return 1==t.payStatus?r("v-uni-view",{key:n,staticClass:"payItem acea-row row-middle",class:e.active==n?"on":"",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.payItem(n)}}},[r("v-uni-view",{staticClass:"name acea-row row-center-wrapper"},[r("v-uni-view",{staticClass:"iconfont animated",class:t.icon+" "+(1==e.animated&&e.active==n?"bounceIn":"")}),e._v(e._s(t.name))],1),r("v-uni-view",{staticClass:"tip"},[e._v(e._s(t.title)),"balance"==t.value?[e._v(e._s(e.userInfo.now_money))]:e._e()],2)],1):e._e()})),1)],1)],1),r("v-uni-view",{staticClass:"settel"},[r("v-uni-view",{staticClass:"settel-t"},[r("v-uni-view",[e._v("商品总价:")]),r("v-uni-view",{staticClass:"conter"},[e._v("¥ "+e._s(e.couponData.total_price))])],1)],1),(0==this.be_overdue||this.be_overdue<0)&&e.couponData.total_postage>0?r("v-uni-view",{staticClass:"settel"},[r("v-uni-view",{staticClass:"settel-t"},[r("v-uni-view",[e._v("利息合计:")]),r("v-uni-view",{staticClass:"conter"},[r("v-uni-view",{staticClass:"con_text"},[e._v("¥ "+e._s(e.couponData.total_postage))]),8==e.couponData.pay_type?r("v-uni-view",{staticClass:"con_text",staticStyle:{color:"#F84221"}},[e._v("已逾期"+e._s(this.be_overday)+"天")]):e._e()],1)],1)],1):e._e(),r("v-uni-view",{staticClass:"footer acea-row row-between-wrapper"},[r("v-uni-view",{staticClass:"footer_count"},[r("v-uni-view",[e._v("合计:"),1==e.cartArr[4].payStatus?r("v-uni-text",{staticClass:"conter"},[e._v("¥0.00")]):r("v-uni-text",{staticClass:"conter"},[e._v("¥"+e._s(e.couponData.pay_price))])],1)],1),r("v-uni-view",{staticClass:"settlement",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.SubOrder.apply(void 0,arguments)}}},[e._v("提交订单")])],1)],1)},a=[]},ed4e:function(e,t,r){var n=r("24fb");t=n(!1),t.push([e.i,'@charset "UTF-8";\r\n/**\r\n * 这里是uni-app内置的常用样式变量\r\n *\r\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\r\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\r\n *\r\n */\r\n/**\r\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\r\n *\r\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\r\n */\r\n/* 颜色变量 */\r\n/* 行为相关颜色 */\r\n/* 背景颜色 */\r\n/* 边框颜色 */\r\n/* 尺寸变量 */\r\n/* 文字尺寸 */\r\n/* 图片尺寸 */\r\n/* Border Radius */\r\n/* 水平间距 */\r\n/* 垂直间距 */\r\n/* 透明度 */\r\n/* 文章场景相关 */.center .conter[data-v-8c319898]{color:red;font-weight:700}.center .wrapper .item .discount .placeholder[data-v-8c319898]{color:#ccc;text-align:right}.center .wrapper[data-v-8c319898]{margin-bottom:%?12?%;background-color:#fff;padding-top:20px}.center .wrapper .item[data-v-8c319898]{padding:%?27?% %?30?%;font-size:%?30?%;color:#282828}.center .wrapper .item .discount .iconfont[data-v-8c319898]{color:#515151;font-size:%?30?%;margin-left:%?15?%}.center .wrapper .item .discount .num[data-v-8c319898]{font-size:%?32?%;margin-right:%?20?%}.center .wrapper .item .shipping[data-v-8c319898]{font-size:%?30?%;color:#999;position:relative;padding-right:%?58?%}.center .wrapper .item .shipping .iconfont[data-v-8c319898]{font-size:%?35?%;color:#707070;position:absolute;right:0;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);margin-left:%?30?%}.center .wrapper .item uni-input[data-v-8c319898]{flex:1;height:100%;margin-left:%?20?%;text-align:right}.center .wrapper .item .placeholder[data-v-8c319898]{color:#ccc}.center .wrapper .item .list[data-v-8c319898]{margin-top:%?35?%}.center .wrapper .item .list .payItem[data-v-8c319898]{border:1px solid #eee;border-radius:%?6?%;height:%?86?%;width:100%;box-sizing:border-box;margin-top:%?20?%;font-size:%?28?%;color:#282828}.center .wrapper .item .list .payItem.on[data-v-8c319898]{border-color:var(--view-theme);color:var(--view-theme)}.center .wrapper .item .list .payItem .name[data-v-8c319898]{width:50%;text-align:center;border-right:1px solid #eee;justify-content:left;padding-left:%?80?%}.center .wrapper .item .list .payItem .name .iconfont[data-v-8c319898]{width:%?44?%;height:%?44?%;border-radius:50%;text-align:center;line-height:%?44?%;background-color:#fe960f;color:#fff;font-size:%?30?%;margin-right:%?15?%}.center .wrapper .item .list .payItem .name .iconfont.icon-weixin2[data-v-8c319898]{background-color:#41b035}.center .wrapper .item .list .payItem .name .iconfont.icon-icon34[data-v-8c319898]{background-color:#4295d5}.center .wrapper .item .list .payItem .tip[data-v-8c319898]{width:49%;text-align:center;font-size:%?26?%;color:#aaa}.center .footer[data-v-8c319898]{width:100%;height:%?100?%;height:calc(100rpx+ constant(safe-area-inset-bottom));height:calc(%?100?% + env(safe-area-inset-bottom));background-color:#fff;padding:0 %?30?%;font-size:%?28?%;color:#333;box-sizing:border-box;position:fixed;bottom:0;left:0;z-index:30}.center .footer .footer_count[data-v-8c319898]{font-size:%?28?%}.center .footer .coupon_price[data-v-8c319898]{color:#999;font-size:%?20?%;margin-top:%?10?%}.center .footer .coupon_price uni-text[data-v-8c319898]{color:#282828;padding:%?2?% %?10?%;background:#f5f5f5;border-radius:%?26?%;margin-left:%?20?%;line-height:%?30?%;height:%?30?%;display:inline-block}.center .footer .settlement[data-v-8c319898]{font-size:%?30?%;color:#fff;width:%?240?%;height:%?70?%;background:linear-gradient(90deg,#f98649,#f34e45);border-radius:%?50?%;text-align:center;line-height:%?70?%}.center .footer .settlement.disabled[data-v-8c319898]{background-color:#ccc}.center .footer .transparent[data-v-8c319898]{opacity:0}.center .settel[data-v-8c319898]{width:100%;background-color:#fff;height:70px;padding:0 15px 0 15px;line-height:70px}.center .settel .settel-t[data-v-8c319898]{width:100%;display:flex;justify-content:space-between;align-items:center}.center .settel .con_text[data-v-8c319898]{display:flex;justify-content:flex-end;height:20px;margin:auto;line-height:30px}',""]),e.exports=t}}]); |