(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-fee-orderNotPay"],{"2bc5":function(t,e,r){"use strict";r.r(e);var o=r("e903"),a=r("405d");for(var i in a)["default"].indexOf(i)<0&&function(t){r.d(e,t,(function(){return a[t]}))}(i);r("b027");var n=r("828b"),s=Object(n["a"])(a["default"],o["b"],o["c"],!1,null,"47c62964",null,!1,o["a"],void 0);e["default"]=s.exports},"405d":function(t,e,r){"use strict";r.r(e);var o=r("9ba7"),a=r.n(o);for(var i in o)["default"].indexOf(i)<0&&function(t){r.d(e,t,(function(){return o[t]}))}(i);e["default"]=a.a},"48f8":function(t,e,r){var o=r("ff44");o.__esModule&&(o=o.default),"string"===typeof o&&(o=[[t.i,o,""]]),o.locals&&(t.exports=o.locals);var a=r("967d").default;a("3a6a45af",o,!0,{sourceMap:!1,shadowMode:!1})},"9ba7":function(t,e,r){"use strict";r("6a54");var o=r("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,r("bf0f"),r("2797"),r("c9b5"),r("ab80"),r("c223"),r("8f71"),r("dd2b");o(r("b885"));var a=r("97d4"),i=r("6cd6"),n=r("a7bc"),s=o(r("79d4")),d={data:function(){return{orderList:[],showQrModal:!1,currentQrImage:"",isAppEnv:!1,highLightOrderId:""}},onLoad:function(t){this.highLightOrderId=null,t&&t.showHigh&&(this.highLightOrderId=t.showHigh,console.log("当前需高亮的订单标识:",this.highLightOrderId))},mounted:function(){if(this.isAppEnv="undefined"!==typeof plus,"ALIPAY"===(0,i.isWxOrAli)()){var t=document.createElement("script");t.type="text/javascript",t.src="https://gw.alipayobjects.com/as/g/h5-lib/alipayjsapi/3.1.1/alipayjsapi.min.js",document.body.appendChild(t)}},onShow:function(){var t=this;this.loadOrderListFromStorage(),this.orderList.forEach((function(e,r){t.handleRefresh(r)}))},methods:{formatTime:function(t){if(!t)return"";10===t.toString().length&&(t*=1e3);var e=new Date(t),r=e.getFullYear(),o=this.padZero(e.getMonth()+1),a=this.padZero(e.getDate()),i=this.padZero(e.getHours()),n=this.padZero(e.getMinutes()),s=this.padZero(e.getSeconds());return"".concat(r,"-").concat(o,"-").concat(a," ").concat(i,":").concat(n,":").concat(s)},padZero:function(t){return t<10?"0".concat(t):t},loadOrderListFromStorage:function(){try{var t=uni.getStorageSync("order_list");(0,a.isNotNull)(t)&&Array.isArray(t)?this.orderList=t.filter((function(t){return t.order_id})):this.orderList=[]}catch(e){console.log("无存储订单数据,使用空列表",e),this.orderList=[]}},handlePay:function(t){var e=this;e.currentQrImage=t.qr_image,console.log(e.orderList),console.log(t.abapayDeeplink),e.isAppEnv?plus.runtime.openURL(t.abapayDeeplink,(function(t){console.log("深链打开结果:",t),t&&t.code&&(e.showQrModal=!0,uni.showToast({title:e.$t("pages.orderList.未检测到ABABank,请扫码"),icon:"none",duration:1500}))})):e.showQrModal=!0},closeQrModal:function(){this.showQrModal=!1,this.currentQrImage=""},handleRefresh:function(t){var e=this.orderList[t],r={order_id:e.order_id,tran_id:e.train_id},o=this;(0,n.requestNoAuth)({url:s.default.abaCallBackAppUser,method:"POST",data:r,success:function(e){if(console.log("刷新订单状态返回结果:",e),(0,a.isNotNull)(e)&&"OK"===e.data)uni.showToast({title:e.data,icon:"none",duration:1500});else{o.orderList.splice(t,1);try{uni.setStorageSync("order_list",o.orderList),uni.showToast({title:o.$t("pages.orderList.订单已删除")+("OK"===e.data?o.$t("pages.orderList.原因:支付成功"):o.$t("pages.orderList.原因:未找到业务数据")),icon:"success",duration:1500})}catch(r){console.error("更新订单存储失败:",r),uni.showToast({title:o.$t("pages.orderList.订单删除成功,但存储更新失败"),icon:"none",duration:2e3}),o.loadOrderListFromStorage()}}},fail:function(t){console.error("刷新订单请求失败:",t),uni.showToast({title:o.$t("pages.orderList.刷新请求失败,请重试"),icon:"none",duration:1500})}})}}};e.default=d},b027:function(t,e,r){"use strict";var o=r("48f8"),a=r.n(o);a.a},e903:function(t,e,r){"use strict";r.d(e,"b",(function(){return a})),r.d(e,"c",(function(){return i})),r.d(e,"a",(function(){return o}));var o={uniIcons:r("24e5").default},a=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("v-uni-view",{staticClass:"order-list-container"},[r("v-uni-view",{staticClass:"page-header"},[r("v-uni-text",{staticClass:"header-title"},[t._v(t._s(t.$t("pages.orderList.订单列表")))])],1),r("v-uni-view",{staticClass:"order-list"},[0===t.orderList.length?r("v-uni-view",{staticClass:"empty-state"},[r("v-uni-image",{staticClass:"empty-icon",attrs:{src:"/static/empty_order.png",mode:"widthFix"}}),r("v-uni-text",{staticClass:"empty-text"},[t._v(t._s(t.$t("pages.orderList.暂无订单数据")))])],1):t._e(),t._l(t.orderList,(function(e,o){return r("v-uni-view",{key:e.order_id+o,staticClass:"order-item",class:{"high-light":o==t.highLightOrderId}},[r("v-uni-view",{staticClass:"order-header"},[r("v-uni-view",{staticClass:"order-id"},[r("v-uni-text",{staticClass:"label"},[t._v(t._s(t.$t("pages.orderList.订单ID:")))]),r("v-uni-text",{staticClass:"value"},[t._v(t._s(e.order_id))])],1),r("v-uni-view",{staticClass:"order-amount"},[r("v-uni-text",{staticClass:"amount-label"},[t._v(t._s(t.$t("pages.orderList.金额:")))]),r("v-uni-text",{staticClass:"amount-value"},[t._v(t._s(e.money))])],1)],1),r("v-uni-view",{staticClass:"order-body"},[r("v-uni-view",{staticClass:"order-info-row"},[r("v-uni-text",{staticClass:"info-label"},[t._v(t._s(t.$t("pages.orderList.业务描述:")))]),r("v-uni-text",{staticClass:"info-value"},[t._v(t._s(e.des||t.$t("pages.orderList.无描述")))])],1),r("v-uni-view",{staticClass:"order-info-row"},[r("v-uni-text",{staticClass:"info-label"},[t._v(t._s(t.$t("pages.orderList.交易ID:")))]),r("v-uni-text",{staticClass:"info-value"},[t._v(t._s(e.train_id))])],1),r("v-uni-view",{staticClass:"order-info-row"},[r("v-uni-text",{staticClass:"info-label"},[t._v(t._s(t.$t("pages.orderList.下单时间:")))]),r("v-uni-text",{staticClass:"info-value"},[t._v(t._s(t.formatTime(e.time)||t.$t("pages.orderList.未知时间")))])],1)],1),r("v-uni-view",{staticClass:"order-actions"},[r("v-uni-button",{staticClass:"refresh-btn",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.handleRefresh(o)}}},[r("uni-icons",{staticClass:"refresh-icon",attrs:{type:"refresh",size:"16"}}),r("v-uni-text",{staticClass:"refresh-text"},[t._v(t._s(t.$t("pages.orderList.刷新")))])],1),r("v-uni-button",{staticClass:"pay-btn",on:{click:function(r){arguments[0]=r=t.$handleEvent(r),t.handlePay(e)}}},[r("v-uni-text",{staticClass:"pay-text"},[t._v(t._s(t.$t("pages.orderList.去支付")))])],1)],1)],1)}))],2),t.showQrModal?r("v-uni-view",{staticClass:"qr-modal"},[r("v-uni-view",{staticClass:"qr-modal-content"},[r("v-uni-view",{staticClass:"modal-header"},[r("v-uni-text",{staticClass:"modal-title"},[t._v(t._s(t.$t("pages.orderList.扫码支付")))]),r("v-uni-button",{staticClass:"close-btn",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.closeQrModal.apply(void 0,arguments)}}},[r("uni-icons",{attrs:{type:"close",size:"18"}})],1)],1),r("v-uni-view",{staticClass:"modal-tip"},[r("v-uni-text",{staticClass:"tip-text"},[t._v(t._s(t.isAppEnv?t.$t("pages.orderList.App未安装,请扫码"):t.$t("pages.orderList.H5环境,请扫码支付"))+" ")])],1),r("v-uni-view",{staticClass:"qr-container"},[t.currentQrImage?r("v-uni-image",{staticClass:"qr-image",attrs:{src:t.currentQrImage,mode:"widthFix"}}):r("v-uni-view",{staticClass:"loading-qr"},[r("uni-icons",{attrs:{type:"loading",size:"24",color:"#007aff",animation:"spin"}}),r("v-uni-text",{staticClass:"loading-text"},[t._v(t._s(t.$t("pages.orderList.加载二维码中")))])],1)],1),r("v-uni-button",{staticClass:"confirm-btn",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.closeQrModal.apply(void 0,arguments)}}},[r("v-uni-text",{staticClass:"confirm-text"},[t._v(t._s(t.$t("pages.orderList.已扫码,关闭")))])],1)],1)],1):t._e()],1)},i=[]},ff44:function(t,e,r){var o=r("c86c");e=o(!1),e.push([t.i,'@charset "UTF-8";\n/* 页面容器基础样式 */.order-list-container[data-v-47c62964]{background-color:#f5f7fa;min-height:100vh;padding-bottom:30px}\n/* 页面标题栏 */.page-header[data-v-47c62964]{padding:16px 20px;background-color:#fff;border-bottom:1px solid #eee}.page-header .header-title[data-v-47c62964]{font-size:18px;font-weight:500;color:#333}\n/* 订单列表区域 */.order-list[data-v-47c62964]{padding:15px 12px\n /* 空状态样式 */\n /* 订单项样式 */}.order-list .empty-state[data-v-47c62964]{display:flex;flex-direction:column;align-items:center;margin-top:80px}.order-list .empty-state .empty-icon[data-v-47c62964]{width:120px;height:auto;margin-bottom:15px}.order-list .empty-state .empty-text[data-v-47c62964]{font-size:14px;color:#999}.order-list .order-item[data-v-47c62964]{background-color:#fff;border-radius:10px;padding:18px 15px;margin-bottom:12px;box-shadow:0 2px 8px rgba(0,0,0,.05)\n /* 2. 单独提取高亮样式,避免嵌套优先级问题 */\n /* 订单头部(ID + 金额) */\n /* 订单主体(描述 + 交易ID) */\n /* 订单操作栏(刷新 + 支付) */}.order-list .order-item.high-light[data-v-47c62964]{border-color:#007aff!important;background-color:#f0f7ff!important;box-shadow:0 4px 12px rgba(0,122,255,.15)!important;\n /* 3. 增加更明显的视觉标识 */position:relative}.order-list .order-item.high-light[data-v-47c62964]::before{content:"";position:absolute;left:0;top:0;bottom:0;width:4px;background-color:#007aff}.order-list .order-item .order-header[data-v-47c62964]{display:flex;justify-content:space-between;margin-bottom:15px}.order-list .order-item .order-header .order-id[data-v-47c62964], .order-list .order-item .order-header .order-amount[data-v-47c62964]{display:flex;align-items:center}.order-list .order-item .order-header .order-id .label[data-v-47c62964], .order-list .order-item .order-header .order-amount .label[data-v-47c62964]{font-size:13px;color:#999;margin-right:5px}.order-list .order-item .order-header .order-id .value[data-v-47c62964], .order-list .order-item .order-header .order-id .amount-value[data-v-47c62964], .order-list .order-item .order-header .order-amount .value[data-v-47c62964], .order-list .order-item .order-header .order-amount .amount-value[data-v-47c62964]{font-size:14px;color:#333}.order-list .order-item .order-header .order-id .amount-value[data-v-47c62964], .order-list .order-item .order-header .order-amount .amount-value[data-v-47c62964]{color:#e54d42;\n /* 金额红色突出 */font-weight:500}.order-list .order-item .order-body .order-info-row[data-v-47c62964]{display:flex;margin-bottom:10px}.order-list .order-item .order-body .order-info-row .info-label[data-v-47c62964]{font-size:13px;color:#999;width:80px}.order-list .order-item .order-body .order-info-row .info-value[data-v-47c62964]{font-size:14px;color:#666;flex:1;word-break:break-all\n /* 处理长文本换行 */}.order-list .order-item .order-actions[data-v-47c62964]{display:flex;justify-content:flex-end;gap:10px;margin-top:20px\n /* 刷新按钮(占位) */\n /* 支付按钮 */}.order-list .order-item .order-actions .refresh-btn[data-v-47c62964]{background-color:#f5f5f5;color:#666;font-size:13px;padding:6px 12px;border-radius:6px;display:flex;align-items:center;gap:5px}.order-list .order-item .order-actions .refresh-btn .refresh-icon[data-v-47c62964]{color:#999}.order-list .order-item .order-actions .pay-btn[data-v-47c62964]{background-color:#007aff;color:#fff;font-size:13px;padding:6px 18px;border-radius:6px}\n/* 二维码弹窗样式 */.qr-modal[data-v-47c62964]{position:fixed;top:0;left:0;width:100vw;height:100vh;background-color:rgba(0,0,0,.5);display:flex;justify-content:center;align-items:center;z-index:9999}.qr-modal .qr-modal-content[data-v-47c62964]{width:85%;max-width:350px;background-color:#fff;border-radius:12px;padding:20px 15px\n /* 弹窗头部(标题 + 关闭) */\n /* 弹窗提示文本 */\n /* 二维码容器 */\n /* 确认按钮 */}.qr-modal .qr-modal-content .modal-header[data-v-47c62964]{display:flex;justify-content:space-between;align-items:center;margin-bottom:15px}.qr-modal .qr-modal-content .modal-header .modal-title[data-v-47c62964]{font-size:16px;font-weight:500;color:#333}.qr-modal .qr-modal-content .modal-header .close-btn[data-v-47c62964]{padding:5px;color:#999}.qr-modal .qr-modal-content .modal-tip[data-v-47c62964]{margin-bottom:20px}.qr-modal .qr-modal-content .modal-tip .tip-text[data-v-47c62964]{font-size:14px;color:#666;text-align:center;display:block}.qr-modal .qr-modal-content .qr-container[data-v-47c62964]{display:flex;justify-content:center;margin-bottom:25px}.qr-modal .qr-modal-content .qr-container .qr-image[data-v-47c62964]{width:200px;height:auto;background-color:#fff;padding:10px;border:1px solid #eee;border-radius:8px}.qr-modal .qr-modal-content .qr-container .loading-qr[data-v-47c62964]{display:flex;flex-direction:column;align-items:center;gap:10px}.qr-modal .qr-modal-content .qr-container .loading-qr .loading-text[data-v-47c62964]{font-size:13px;color:#999}.qr-modal .qr-modal-content .confirm-btn[data-v-47c62964]{width:100%;background-color:#007aff;color:#fff;font-size:14px;padding:12px 0;border-radius:8px}',""]),t.exports=e}}]);