1 line
24 KiB
JavaScript
1 line
24 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-fee-unifiedPaymentCashier"],{"0323":function(n,r,t){var e=t("0f5a");e.__esModule&&(e=e.default),"string"===typeof e&&(e=[[n.i,e,""]]),e.locals&&(n.exports=e.locals);var a=t("967d").default;a("b7471630",e,!0,{sourceMap:!1,shadowMode:!1})},"0f5a":function(n,r,t){var e=t("c86c");r=e(!1),r.push([n.i,"\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n/* 弹窗容器 */.payment-popup[data-v-a8cb65fe]{display:flex;flex-direction:column;align-items:center;justify-content:center;width:300px;background-color:#fff;box-shadow:0 4px 8px rgba(0,0,0,.1);border-radius:12px;position:fixed;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);padding:20px;z-index:1000}\r\n/* 弹窗头部 */.popup-header[data-v-a8cb65fe]{display:flex;justify-content:space-between;align-items:center;width:100%;margin-bottom:16px}\r\n/* 弹窗标题 */.popup-title[data-v-a8cb65fe]{font-family:SF Pro Display,sans-serif;font-weight:600;font-size:16px;color:#081b37}\r\n/* 关闭按钮 */.popup-close[data-v-a8cb65fe]{font-size:24px;color:#535362;cursor:pointer;-webkit-user-select:none;user-select:none;font-weight:700}\r\n/* 支付选项列表容器 */.payment-options[data-v-a8cb65fe]{display:flex;flex-direction:column;gap:8px;overflow-y:auto;width:100%;max-height:200px}\r\n/* 单个支付选项样式 */.payment-method[data-v-a8cb65fe]{display:flex;flex-direction:row;align-items:center;padding:10px;gap:10px;background:#fff;box-shadow:0 1px 4px rgba(183,190,203,.36);border-radius:8px;cursor:pointer;width:100%;box-sizing:border-box;transition:all .2s ease}\r\n/* 禁用状态样式 */.payment-method.disabled[data-v-a8cb65fe]{cursor:not-allowed;opacity:.7}\r\n/* 支付图标容器 */.payment-icon-wrapper[data-v-a8cb65fe]{width:40px;height:40px;border-radius:6px;display:flex;align-items:center;justify-content:center;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px)}\r\n/* 支付图标样式 */.payment-icon[data-v-a8cb65fe]{width:30px;height:30px;transition:opacity .2s ease}\r\n/* 文字标签区域 */.payment-label-wrapper[data-v-a8cb65fe]{display:flex;flex-direction:column;width:175px}\r\n/* 主标签样式 */.payment-main-label[data-v-a8cb65fe]{font-size:12px;font-weight:600;margin-bottom:2px;transition:color .2s ease}\r\n/* 子标签/描述样式 */.payment-sub-label[data-v-a8cb65fe]{font-size:11px;transition:color .2s ease}\r\n/* 右侧箭头容器 */.payment-action-wrapper[data-v-a8cb65fe]{position:relative;width:20px;height:20px;transition:opacity .2s ease}\r\n/* 箭头背景 */.arrow-bg[data-v-a8cb65fe]{position:absolute;left:0;right:0;top:0;bottom:0;border-radius:3.2px;transition:background-color .2s ease}\r\n/* 箭头图标 */.arrow-icon[data-v-a8cb65fe]{position:absolute;left:16%;top:22%;width:10px;height:10px;border-top:1.6px solid #535362;border-right:1.6px solid #535362;-webkit-transform:rotate(45deg);transform:rotate(45deg);transition:border-color .2s ease}\r\n/* 选中结果样式 */.selected-result[data-v-a8cb65fe]{margin-top:20px;font-size:14px;color:#333;text-align:center}",""]),n.exports=r},"101b":function(n,r,t){"use strict";t.d(r,"b",(function(){return e})),t.d(r,"c",(function(){return a})),t.d(r,"a",(function(){}));var e=function(){var n=this,r=n.$createElement,t=n._self._c||r;return t("v-uni-view",[t("v-uni-view",{staticClass:"top-actions"},[t("v-uni-view",{staticClass:"icon-btn",on:{click:function(r){arguments[0]=r=n.$handleEvent(r),n.BoomList.apply(void 0,arguments)}}},[t("v-uni-image",{staticClass:"icon",attrs:{src:"/static/images/orderNoPay.png"}})],1),t("v-uni-view",{staticClass:"icon-btn",on:{click:function(r){arguments[0]=r=n.$handleEvent(r),n.showOrderInfo.apply(void 0,arguments)}}},[t("v-uni-image",{staticClass:"icon",attrs:{src:"/static/images/record.png"}})],1)],1),t("v-uni-view",{staticClass:"bg-white money-info text-center"},[t("v-uni-view",{staticClass:"money-black"}),t("v-uni-view",{staticClass:"money-title"},[n._v(n._s(n.$t("pages.fee.unifiedPaymentCashier.订单金额")))]),t("v-uni-view",{staticClass:"money-value"},[n._v(n._s(n.amount))]),t("v-uni-view",{staticClass:"order-time"},[n._v(n._s(n.formatOrderTime(n.timeOrder)))])],1),t("v-uni-view",{staticClass:"cu-bar btn-group",staticStyle:{"margin-top":"30px"}},[n.isNonTelegramH5?t("v-uni-button",{staticClass:"cu-btn bg-green shadow-blur round lg",on:{click:function(r){arguments[0]=r=n.$handleEvent(r),n.toggleQr.apply(void 0,arguments)}}},[n._v(" "+n._s(n.$t("pages.fee.unifiedPaymentCashier.展示二维码"))+" ")]):n._e(),t("v-uni-button",{staticClass:"cu-btn bg-blue shadow-blur round lg",on:{click:function(r){arguments[0]=r=n.$handleEvent(r),n.openDeepLink.apply(void 0,arguments)}}},[n._v(" "+n._s(n.$t("pages.fee.unifiedPaymentCashier.打开ABAAPP支付"))+" ")])],1),n.showQr?t("v-uni-view",{staticClass:"qr-toast"},[t("v-uni-view",{staticClass:"qr-toast__content"},[t("v-uni-view",{staticClass:"qr-toast__close-icon",on:{click:function(r){arguments[0]=r=n.$handleEvent(r),n.showQr=!1}}},[n._v("×")]),t("v-uni-view",{staticClass:"qr-toast__title"},[n._v(n._s(n.$t("pages.fee.unifiedPaymentCashier.请扫码支付")))]),t("v-uni-image",{staticClass:"qr-toast__image",attrs:{src:n.orderData.returnData.qrImage,mode:"widthFix"}}),t("v-uni-view",{staticClass:"qr-toast__actions"},[t("v-uni-button",{staticClass:"qr-toast__btn qr-toast__btn--confirm",on:{click:function(r){arguments[0]=r=n.$handleEvent(r),n.checkPayStatus.apply(void 0,arguments)}}},[n._v(" "+n._s(n.$t("pages.fee.unifiedPaymentCashier.确定支付"))+" ")]),t("v-uni-button",{staticClass:"qr-toast__btn qr-toast__btn--download",on:{click:function(r){arguments[0]=r=n.$handleEvent(r),n.DownloadQr.apply(void 0,arguments)}}},[n._v(" "+n._s(n.$t("pages.fee.unifiedPaymentCashier.下载Qr"))+" ")])],1)],1)],1):n._e()],1)},a=[]},"2af8":function(n,r,t){"use strict";t("6a54");var e=t("f5bd").default;Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0,t("64aa"),t("c223"),t("795c"),t("c9b5"),t("bf0f"),t("ab80");var a=e(t("fcf3")),i=t("a7bc"),o=e(t("79d4")),s=t("c8b3"),c=t("a7bc"),l=t("97d4"),d=(e(t("eb04")),{computed:{isNonTelegramH5:function(){var n,r,t;return!(null!==(n=window.Telegram)&&void 0!==n&&null!==(r=n.WebApp)&&void 0!==r&&null!==(t=r.initDataUnsafe)&&void 0!==t&&t.user)}},data:function(){return{orderData:{},amount:0,showQr:!1,timeOrder:void 0,aba_train_id:0,timer:null,queryTime:0,isPaid:!1,order_id_query:"",order_lifetime_minute:0}},onShow:function(){this.get_train_status(),this.startQueryTimer(),this.checkDuplicateOrder()},onUnload:function(){this.clearQueryTimer()},onLoad:function(n){this.amount=n.amount,this.timeOrder=n.timeOrder,console.log("kkkk"),console.log(this.timeOrder),console.log((0,a.default)(n.timeOrder)),console.log((0,a.default)(n.timeOrder)),console.log(JSON.parse(decodeURIComponent(n.orderData)));try{this.orderData=JSON.parse(decodeURIComponent(n.orderData)),this.aba_train_id=this.orderData.returnData.status.tran_id,this.order_id_query=this.orderData.orderId;var r=Date.now(),t=60*this.orderData.lifetime*1e3;this.order_lifetime_timestamp=r+t;var e=this.orderData.returnData.abapay_deeplink;console.log(e),console.log("abalink"),null!=window.Telegram.WebApp.initDataUnsafe&&this.openDeepLink()}catch(i){console.error("订单数据解析失败",i)}this.detectEnv(),(0,s.isShowLaterTime)()&&this.checkDuplicateOrder()},methods:{detectEnv:function(){},DownloadQr:function(){var n=document.createElement("a");n.href=this.orderData.returnData.qrImage,n.download="qr-code.png",n.click()},checkDuplicateOrder:function(){for(var n=this,r=uni.getStorageSync("order_list")||[],t=-1,e=0;e<r.length;e++){var a=r[e];if(this.timeOrder!==String(a.time)&&a.money===this.amount&&"场所预约"===a.des){t=e;break}}var i=n.$t("pages.fee.unifiedPaymentCashier.未支付订单提示"),o="";-1!==t?(i=n.$t("pages.fee.unifiedPaymentCashier.相关未支付订单提示"),o="/pages/fee/orderNotPay?showHigh="+t,console.log(o)):o="/pages/fee/orderNotPay",-1!==t&&(0,s.isShowLaterTime)()&&uni._showshowModal({title:n.$t("pages.fee.unifiedPaymentCashier.提示"),content:i,confirmText:n.$t("pages.fee.unifiedPaymentCashier.去支付"),cancelText:n.$t("pages.fee.unifiedPaymentCashier.稍后再说"),success:function(r){r.confirm?uni.navigateTo({url:o,fail:function(r){uni.showToast({title:n.$t("pages.fee.unifiedPaymentCashier.跳转失败,请稍后重试"),icon:"none",duration:2e3}),console.error("导航失败原因:",r)}}):r.cancel&&(console.log("用户选择稍后处理未支付订单"),(0,s.setShowLaterTime)())}})},openDeepLink:function(){var n=this.orderData.returnData.abapay_deeplink;n?uni.showModal({title:"提示",content:"是否打开ABA应用完成支付?",showCancel:!0,cancelText:"取消",confirmText:"打开",success:function(r){r.confirm?(window.open(n,"_blank"),this.showQr=!0):this.showQr=!0},fail:function(n){console.error("弹窗交互失败:",n),this.showQr=!0}}):uni.showToast({title:this.$t("pages.fee.unifiedPaymentCashier.支付链接无效"),icon:"none"})},checkPayStatus:function(){var n=this,r=this.orderData.returnData.status.tran_id;(0,i.request)({url:o.default.queryPayStatus,method:"GET",data:{trainId:r},success:function(r){!0===r.data||!0===r.data.success?(uni.showToast({title:n.$t("pages.fee.unifiedPaymentCashier.支付成功"),icon:"none"}),uni.navigateTo({url:"/pages/successPage/successPage?msg=支付成功&objType=3003"})):uni.showToast({title:n.$t("pages.fee.unifiedPaymentCashier.支付未完成"),icon:"none"})}}),this.showQr=!1},get_train_status:function(){var n=this;""!==this.aba_train_id&&(n.queryTime=n.queryTime+1,(0,i.request)({url:o.default.queryPayStatus,method:"GET",data:{trainId:n.aba_train_id},success:function(r){try{var t=r.data;if(console.log("支付状态查询ID:",n.aba_train_id),console.log("支付状态查询结果:",t),!0===t||!0===t.success){console.log("支付成功 ✅,停止轮询"),clearInterval(this.timer),uni.showToast({title:n.$t("pages.fee.unifiedPaymentCashier.支付成功"),icon:"none",duration:2e3});var e="/pages/successPage/successPage?msg="+n.$t("pages.fee.unifiedPaymentCashier.支付成功")+"&objType=3003";return uni.navigateTo({url:e}),!0}uni.showToast({title:n.$t("pages.fee.unifiedPaymentCashier.支付失败"),icon:"none",duration:2e3})}catch(a){console.error("解析支付状态响应失败:",a)}},fail:function(n){console.error("支付状态请求失败:",n)}}))},startQueryTimer:function(){var n=this;if(1===this.queryTime&&(this.notice_Backend(),console.log("通知后台成功")),!this.isPaid&&!this.timer&&this.queryTime>=1){this.timer=setInterval((function(){(n.isPaid||Date.now()>=n.order_lifetime_timestamp)&&(clearInterval(n.timer),n.timer=null,console.log("定时器停止,原因:",n.isPaid?"支付成功":"订单已过期"))}),3e3)}},clearQueryTimer:function(){this.timer&&(clearInterval(this.timer),this.timer=null)},toggleQr:function(){this.showQr=!this.showQr},formatOrderTime:function(n){if(!n)return"";var r=new Date(Number(n));return"".concat(r.getFullYear(),"-").concat((r.getMonth()+1).toString().padStart(2,"0"),"-").concat(r.getDate().toString().padStart(2,"0")," ")+"".concat(r.getHours().toString().padStart(2,"0"),":").concat(r.getMinutes().toString().padStart(2,"0"))},BoomList:function(){uni.navigateTo({url:"/pages/appointment/myBoomList"})},notice_Backend:function(){var n={order_id:this.order_id_query,tran_id:this.aba_train_id};(0,c.requestNoAuth)({url:o.default.abaCallBackAppUser,method:"POST",data:n,success:function(n){console.log("刷新订单状态返回结果:",n),(0,l.isNotNull)(n)&&"OK"===n.data?uni.showToast({title:n.data,icon:"none",duration:1500}):uni.showToast({title:"通知后台成功",icon:"none",duration:1500})},fail:function(n){console.error("刷新订单请求失败:",n)}})},showOrderInfo:function(){uni.navigateTo({url:"/pages/fee/orderNotPay"})}}});r.default=d},"55fc":function(n,r,t){var e=t("c86c");r=e(!1),r.push([n.i,"\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n/* 二维码弹窗 */.qr-toast[data-v-954fc524]{position:fixed;top:0;left:0;width:100vw;height:100vh;background:rgba(0,0,0,.5);display:flex;flex-direction:column;justify-content:center;align-items:center;z-index:9999}.qr-toast__title[data-v-954fc524]{font-size:16px;color:#fff;margin-bottom:15px}.qr-toast__image[data-v-954fc524]{width:200px;height:auto;background:#fff;padding:10px;border-radius:8px}.qr-toast__close[data-v-954fc524]{margin-top:15px;padding:8px 20px;font-size:14px;color:#fff;background:#007aff;border:none;border-radius:4px}.block__title[data-v-954fc524]{margin:0;font-weight:400;font-size:14px;color:rgba(69,90,100,.6);padding:%?0?% %?30?% %?20?%}.money-info-uni[data-v-954fc524]{height:%?400?%;margin:%?20?%}.money-black[data-v-954fc524]{height:%?120?%}.money-title[data-v-954fc524]{font-size:%?32?%}.money-value[data-v-954fc524]{color:#e54d42;margin-top:%?20?%;font-size:%?64?%}@-webkit-keyframes fadeIn-data-v-954fc524{from{opacity:0;-webkit-transform:translateY(%?10?%);transform:translateY(%?10?%)}to{opacity:1;-webkit-transform:translateY(0);transform:translateY(0)}}@keyframes fadeIn-data-v-954fc524{from{opacity:0;-webkit-transform:translateY(%?10?%);transform:translateY(%?10?%)}to{opacity:1;-webkit-transform:translateY(0);transform:translateY(0)}}\r\n/* 二维码弹窗容器:居中显示,半透明遮罩 */.qr-toast[data-v-954fc524]{position:fixed;top:0;left:0;width:100vw;height:100vh;background:rgba(0,0,0,.5); /* 遮罩层:半透明黑色 */display:flex;justify-content:center;align-items:center;z-index:9999}\r\n/* 弹窗内容 */.qr-toast__content[data-v-954fc524]{position:relative;background:#fff;border-radius:12px;padding:20px;width:90vw; /* 控制宽度 */display:flex;flex-direction:column;align-items:center}\r\n/* 右上角关闭按钮 */.qr-toast__close-icon[data-v-954fc524]{position:absolute;top:10px;right:10px;font-size:24px;color:#999;cursor:pointer}\r\n/* 提示文字 */.qr-toast__title[data-v-954fc524]{font-size:16px;color:#333;margin-bottom:15px;text-align:center}\r\n/* 二维码图片 */.qr-toast__image[data-v-954fc524]{width:200px;height:auto;background:#fff;padding:10px;border-radius:8px;margin-bottom:20px}\r\n/* 按钮区:水平布局 */.qr-toast__actions[data-v-954fc524]{display:flex;justify-content:space-between; /* 按钮左右分布 */width:100% /* 宽度占满 */}\r\n/* 通用按钮 */.qr-toast__btn[data-v-954fc524]{padding:10px;font-size:14px;border-radius:6px;border:none;width:45% /* 按钮宽度,适应左右布局 */}\r\n/* 确定支付按钮 */.qr-toast__btn--confirm[data-v-954fc524]{background:#007aff;color:#fff}\r\n/* 关闭按钮 */.qr-toast__btn--cancel[data-v-954fc524]{background:#666;color:#fff}\r\n/* 下载按钮 */.qr-toast__btn--download[data-v-954fc524]{background:#28a745;color:#fff}.top-actions[data-v-954fc524]{position:absolute;top:%?20?%;right:%?20?%;display:flex;flex-direction:column; /* 垂直排列 */gap:%?20?%;z-index:100 /* 确保按钮浮在最上层 */}.order-time[data-v-954fc524]{font-size:%?26?%;color:#888;margin-top:%?20?%;text-align:right;padding-right:%?40?%}.icon-btn[data-v-954fc524]{width:%?80?%;height:%?80?%;border-radius:50%;background:#f5f5f5;display:flex;justify-content:center;align-items:center;overflow:hidden; /* 防止图片超出圆形容器 */box-sizing:border-box;padding:%?10?% /* 增加内边距,避免图片紧贴容器边缘 */}.icon-btn .icon[data-v-954fc524]{width:100%; /* 占满容器内部可用空间 */height:100%;object-fit:contain; /* 保持图片比例,避免变形 */vertical-align:middle /* 解决图片底部间隙问题 */}\r\n/* 可选:添加点击反馈效果,提升交互体验 */.icon-btn[data-v-954fc524]{transition:background-color .2s ease}.icon-btn[data-v-954fc524]:active{background:#e8e8e8 /* 点击时深色反馈 */}",""]),n.exports=r},6995:function(n,r,t){"use strict";var e=t("0323"),a=t.n(e);a.a},7096:function(n,r,t){"use strict";t.r(r);var e=t("2af8"),a=t.n(e);for(var i in e)["default"].indexOf(i)<0&&function(n){t.d(r,n,(function(){return e[n]}))}(i);r["default"]=a.a},"73e1":function(n,r,t){"use strict";var e=t("29d8");n.exports=/Version\/10(?:\.\d+){1,2}(?: [\w./]+)?(?: Mobile\/\w+)? Safari\//.test(e)},"795c":function(n,r,t){"use strict";var e=t("8bdb"),a=t("db04").start,i=t("73e1");e({target:"String",proto:!0,forced:i},{padStart:function(n){return a(this,n,arguments.length>1?arguments[1]:void 0)}})},"81e5":function(n,r,t){"use strict";t.d(r,"b",(function(){return e})),t.d(r,"c",(function(){return a})),t.d(r,"a",(function(){}));var e=function(){var n=this,r=n.$createElement,t=n._self._c||r;return t("v-uni-view",[n.showPaymentOptions?t("v-uni-view",{staticClass:"payment-popup"},[t("v-uni-view",{staticClass:"popup-header"},[t("v-uni-view",{staticClass:"popup-title"},[n._v(n._s(n.$t("pages.fee.cashierAbaOptions.选择ABA支付方式")))]),t("v-uni-view",{staticClass:"popup-close",on:{click:function(r){arguments[0]=r=n.$handleEvent(r),n.closePopup.apply(void 0,arguments)}}},[n._v("×")])],1),t("v-uni-view",{staticClass:"payment-options"},n._l(n.paymentOptions,(function(r){return t("v-uni-view",{key:r.value,staticClass:"payment-method",class:{disabled:!r.enabled},on:{click:function(t){arguments[0]=t=n.$handleEvent(t),r.enabled&&n.selectPaymentOption(r)}}},[t("v-uni-view",{staticClass:"payment-icon-wrapper",style:{backgroundColor:r.enabled?r.iconBg:"#E5E7EB"}},[t("v-uni-image",{staticClass:"payment-icon",style:{opacity:r.enabled?1:.5},attrs:{src:r.icon,mode:"aspectFit"}})],1),t("v-uni-view",{staticClass:"payment-label-wrapper"},[t("v-uni-view",{staticClass:"payment-main-label",style:{color:r.enabled?"#081B37":"#9CA3AF"}},[n._v(" "+n._s(r.label)+" ")]),t("v-uni-view",{staticClass:"payment-sub-label",style:{color:r.enabled?"#697386":"#D1D5DB"}},[n._v(" "+n._s(r.des)+" ")])],1),t("v-uni-view",{staticClass:"payment-action-wrapper",style:{opacity:r.enabled?1:.5}},[t("v-uni-view",{staticClass:"arrow-bg",style:{backgroundColor:r.enabled?"#F2F3F7":"#E5E7EB"}}),t("v-uni-view",{staticClass:"arrow-icon",style:{borderColor:r.enabled?"#535362":"#9CA3AF"}})],1)],1)})),1),t("v-uni-view",{staticClass:"selected-result"},[n._v(" "+n._s(n.$t("pages.fee.cashierAbaOptions.当前选中"))+":"+n._s(n.getSelectedLabel())+" ")])],1):n._e()],1)},a=[]},8702:function(n,r,t){"use strict";t.r(r);var e=t("fe7b"),a=t.n(e);for(var i in e)["default"].indexOf(i)<0&&function(n){t.d(r,n,(function(){return e[n]}))}(i);r["default"]=a.a},b21b:function(n,r,t){var e=t("55fc");e.__esModule&&(e=e.default),"string"===typeof e&&(e=[[n.i,e,""]]),e.locals&&(n.exports=e.locals);var a=t("967d").default;a("58eeeb56",e,!0,{sourceMap:!1,shadowMode:!1})},bece:function(n,r,t){"use strict";t.r(r);var e=t("101b"),a=t("7096");for(var i in a)["default"].indexOf(i)<0&&function(n){t.d(r,n,(function(){return a[n]}))}(i);t("f04a");var o=t("828b"),s=Object(o["a"])(a["default"],e["b"],e["c"],!1,null,"954fc524",null,!1,e["a"],void 0);r["default"]=s.exports},c8b3:function(n,r,t){"use strict";t("6a54"),Object.defineProperty(r,"__esModule",{value:!0}),r.isShowLaterTime=function(){var n=uni.getStorageSync("later_time"),r=Date.now();if(!n)return!0;return r>n},r.setShowLaterTime=function(){var n=Date.now(),r=n+3e5;console.log("延迟5min"),uni.setStorageSync("later_time",r)}},db04:function(n,r,t){"use strict";var e=t("bb80"),a=t("c435"),i=t("9e70"),o=t("f298"),s=t("862c"),c=e(o),l=e("".slice),d=Math.ceil,u=function(n){return function(r,t,e){var o,u,f=i(s(r)),p=a(t),v=f.length,h=void 0===e?" ":i(e);return p<=v||""===h?f:(o=p-v,u=c(h,d(o/h.length)),u.length>o&&(u=l(u,0,o)),n?f+u:u+f)}};n.exports={start:u(!1),end:u(!0)}},eb04:function(n,r,t){"use strict";t.r(r);var e=t("81e5"),a=t("8702");for(var i in a)["default"].indexOf(i)<0&&function(n){t.d(r,n,(function(){return a[n]}))}(i);t("6995");var o=t("828b"),s=Object(o["a"])(a["default"],e["b"],e["c"],!1,null,"a8cb65fe",null,!1,e["a"],void 0);r["default"]=s.exports},f04a:function(n,r,t){"use strict";var e=t("b21b"),a=t.n(e);a.a},f298:function(n,r,t){"use strict";var e=t("497b"),a=t("9e70"),i=t("862c"),o=RangeError;n.exports=function(n){var r=a(i(this)),t="",s=e(n);if(s<0||s===1/0)throw new o("Wrong number of repetitions");for(;s>0;(s>>>=1)&&(r+=r))1&s&&(t+=r);return t}},fe7b:function(n,r,t){"use strict";t("6a54"),Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0,t("8f71"),t("bf0f"),t("aa77");var e={props:{showPaymentOptions:{type:Boolean,default:!1},selectedAbaOption:{type:String,default:"abapay_khqr"}},data:function(){return{paymentOptions:[{value:"abapay_khqr",label:"ABA KHQR",des:"Scan to pay with any banking app",icon:"/static/pay_images/aba_options/ABAKHQR.png",iconBg:"#005E7B",enabled:!0},{value:"alipay",label:"Alipay",des:"Scan to pay with Alipay",icon:"/static/pay_images/aba_options/Alipay.png",iconBg:"#00A0E9",enabled:!0},{value:"wechat",label:"Wechat",des:"Scan to pay with WeChat",icon:"/static/pay_images/aba_options/Wechat.png",iconBg:"#00C800",enabled:!1}]}},watch:{showPaymentOptions:function(n){n&&this.handleAutoSelect()}},methods:{handleAutoSelect:function(){var n=this,r=this.paymentOptions.filter((function(n){return n.enabled}));if(1===r.length){var t=r[0];setTimeout((function(){n.selectPaymentOption(t)}),100)}},selectPaymentOption:function(n){this.$emit("update:selectedAbaOption",n.value),this.$emit("update:showPaymentOptions",!1)},getSelectedLabel:function(){var n=this,r=this.paymentOptions.find((function(r){return r.value===n.selectedAbaOption}));return r?r.label:"无"},closePopup:function(){this.$emit("update:showPaymentOptions",!1)}}};r.default=e}}]); |