From 6c2cff500cfdeb99c015074a1c1e03d1d9e1397b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=85=A8=E6=A0=88=E5=B0=8F=E5=AD=A6=E7=94=9F?= <1518079521@qq.com> Date: Sat, 12 Aug 2023 16:23:53 +0800 Subject: [PATCH] update wap --- ...e_type_script_setup_true_lang.18597de0.js} | 2 +- ...rticle.1722ca18.js => article.0307362e.js} | 2 +- .../public/wap/assets/balance-17a5077b.css | 1 - .../public/wap/assets/balance-d8f1465a.css | 1 + .../{index-503ff4d2.css => diy-9a1c7fc3.css} | 2 +- .../{index-5bb08350.js => index-15eacd31.js} | 3563 ++++++++--------- niucloud/public/wap/assets/index-5beda9ca.css | 1 + niucloud/public/wap/assets/index-6b3abbd5.css | 1 - ...{index-a36ec25c.css => index-8e8df8ed.css} | 2 +- .../{diy-4cefc033.css => index-da921c04.css} | 2 +- niucloud/public/wap/assets/index.1798b78b.js | 8 + niucloud/public/wap/assets/index.1d16afd8.js | 8 - .../wap/assets/mescroll-empty.22c37416.js | 1 + .../wap/assets/mescroll-empty.b357d8ac.js | 1 - ...b6.js => pages-article-detail.27a94da1.js} | 2 +- .../wap/assets/pages-article-list.7aa1b19f.js | 1 - .../wap/assets/pages-article-list.8dce3d3e.js | 1 + ...95.js => pages-auth-agreement.016f9147.js} | 2 +- ...3660137.js => pages-auth-bind.c0b8d2eb.js} | 2 +- ...2089e2.js => pages-auth-login.bfe761f1.js} | 2 +- ...bb1.js => pages-auth-register.525a8a97.js} | 2 +- ...d96.js => pages-auth-resetpwd.2e039795.js} | 2 +- .../wap/assets/pages-index-close.88941b42.js | 1 + .../wap/assets/pages-index-close.d92970a6.js | 1 - ...6bb.js => pages-index-develop.31f84e01.js} | 2 +- .../wap/assets/pages-index-diy.0d2bc949.js | 1 + .../wap/assets/pages-index-diy.511be170.js | 1 - .../wap/assets/pages-index-index.9dccf8c4.js | 1 + .../wap/assets/pages-index-index.fdb474ef.js | 1 - .../wap/assets/pages-index-nosite.05c15b99.js | 1 - .../wap/assets/pages-index-nosite.d52e22d1.js | 1 + ...e4.js => pages-member-account.1645a99d.js} | 2 +- ... => pages-member-account_edit.142797b5.js} | 2 +- ...> pages-member-apply_cash_out.f6ab459d.js} | 2 +- .../assets/pages-member-balance.c8e952bc.js | 1 + .../assets/pages-member-balance.fd4992cd.js | 1 - .../assets/pages-member-cash_out.340def83.js | 1 - .../assets/pages-member-cash_out.57f0f96a.js | 1 + ... pages-member-cash_out_detail.ccd37d79.js} | 2 +- ...js => pages-member-commission.2562b979.js} | 2 +- ...pages-member-detailed_account.dfe0ec43.js} | 2 +- .../wap/assets/pages-member-index.448cc3b0.js | 1 - .../wap/assets/pages-member-index.dbd4736b.js | 1 + ...c.js => pages-member-personal.66c2c720.js} | 2 +- ...f9da.js => pages-member-point.ff5872df.js} | 2 +- .../pages-member-recharge_record.e42b3b23.js | 1 + .../pages-member-recharge_record.f0fa2aff.js | 1 - ...member-recharge_record_detail.b2e7f0df.js} | 2 +- .../wap/assets/pages-pay-browser.3e8e32cc.js | 1 + .../wap/assets/pages-pay-browser.ae909e4d.js | 1 - .../wap/assets/pages-pay-result.131dad2c.js | 1 - .../wap/assets/pages-pay-result.8b15506e.js | 1 + ...12e.js => pages-setting-index.dc2bbfce.js} | 2 +- .../assets/pages-webview-index.1b7e28a7.js | 1 - .../assets/pages-webview-index.458b13bb.js | 1 + niucloud/public/wap/assets/pay.422381f0.js | 1 + niucloud/public/wap/assets/pay.4e07eed1.js | 1 - ...ue_type_script_setup_true_lang.bcc80d73.js | 1 - ...ue_type_script_setup_true_lang.bcd0d968.js | 1 + ...abbar-8a0d9fd7.css => tabbar-eb61cd51.css} | 2 +- ...{tabbar.f7ee8f1f.js => tabbar.e67e4875.js} | 2 +- ...acbdcbe5.js => u-action-sheet.1e4dbfee.js} | 2 +- .../public/wap/assets/u-avatar.0ea3924d.js | 1 - .../public/wap/assets/u-avatar.ddef1faa.js | 1 + ...utton.364aa63d.js => u-button.5c85e6cc.js} | 2 +- ...-empty.972875c1.js => u-empty.317e751c.js} | 2 +- ...{u-form.267f755c.js => u-form.84a1fd52.js} | 2 +- ...{u-icon.461524ba.js => u-icon.f5369555.js} | 2 +- ...-image.9265f18d.js => u-image.b892f6c4.js} | 2 +- ...-input.cefa6e75.js => u-input.4212a359.js} | 2 +- ...{u-line.0c46076e.js => u-line.bb8d1497.js} | 2 +- ...2e89024b.js => u-loading-icon.ea8c9ece.js} | 2 +- ...f2a7c1df.js => u-loading-page.925a187b.js} | 2 +- .../public/wap/assets/u-modal.64c62d33.js | 1 - .../public/wap/assets/u-modal.755a4b61.js | 1 + .../public/wap/assets/u-parse.403d1985.js | 1 + .../public/wap/assets/u-parse.8f6deaed.js | 1 - ...-popup.7d705de0.js => u-popup.8a491625.js} | 2 +- ....6578a4de.js => u-safe-bottom.593b5cec.js} | 2 +- ...n.021c4c1c.js => u-transition.a952a64b.js} | 2 +- ...ll.92c88689.js => useMescroll.fbb7af33.js} | 2 +- .../public/wap/assets/useShare.3d08f2fc.js | 1 + .../public/wap/assets/useShare.80667d20.js | 1 - ...{wechat.eeef1e91.js => wechat.56b0d350.js} | 2 +- niucloud/public/wap/index.html | 2 +- 85 files changed, 1850 insertions(+), 1851 deletions(-) rename niucloud/public/wap/assets/{app-link.vue_vue_type_script_setup_true_lang.b08a40da.js => app-link.vue_vue_type_script_setup_true_lang.18597de0.js} (76%) rename niucloud/public/wap/assets/{article.1722ca18.js => article.0307362e.js} (76%) delete mode 100644 niucloud/public/wap/assets/balance-17a5077b.css create mode 100644 niucloud/public/wap/assets/balance-d8f1465a.css rename niucloud/public/wap/assets/{index-503ff4d2.css => diy-9a1c7fc3.css} (54%) rename niucloud/public/wap/assets/{index-5bb08350.js => index-15eacd31.js} (85%) create mode 100644 niucloud/public/wap/assets/index-5beda9ca.css delete mode 100644 niucloud/public/wap/assets/index-6b3abbd5.css rename niucloud/public/wap/assets/{index-a36ec25c.css => index-8e8df8ed.css} (54%) rename niucloud/public/wap/assets/{diy-4cefc033.css => index-da921c04.css} (54%) create mode 100644 niucloud/public/wap/assets/index.1798b78b.js delete mode 100644 niucloud/public/wap/assets/index.1d16afd8.js create mode 100644 niucloud/public/wap/assets/mescroll-empty.22c37416.js delete mode 100644 niucloud/public/wap/assets/mescroll-empty.b357d8ac.js rename niucloud/public/wap/assets/{pages-article-detail.86e6f6b6.js => pages-article-detail.27a94da1.js} (76%) delete mode 100644 niucloud/public/wap/assets/pages-article-list.7aa1b19f.js create mode 100644 niucloud/public/wap/assets/pages-article-list.8dce3d3e.js rename niucloud/public/wap/assets/{pages-auth-agreement.a0a37895.js => pages-auth-agreement.016f9147.js} (76%) rename niucloud/public/wap/assets/{pages-auth-bind.13660137.js => pages-auth-bind.c0b8d2eb.js} (87%) rename niucloud/public/wap/assets/{pages-auth-login.6a2089e2.js => pages-auth-login.bfe761f1.js} (74%) rename niucloud/public/wap/assets/{pages-auth-register.33312bb1.js => pages-auth-register.525a8a97.js} (87%) rename niucloud/public/wap/assets/{pages-auth-resetpwd.91486d96.js => pages-auth-resetpwd.2e039795.js} (83%) create mode 100644 niucloud/public/wap/assets/pages-index-close.88941b42.js delete mode 100644 niucloud/public/wap/assets/pages-index-close.d92970a6.js rename niucloud/public/wap/assets/{pages-index-develop.97b246bb.js => pages-index-develop.31f84e01.js} (80%) create mode 100644 niucloud/public/wap/assets/pages-index-diy.0d2bc949.js delete mode 100644 niucloud/public/wap/assets/pages-index-diy.511be170.js create mode 100644 niucloud/public/wap/assets/pages-index-index.9dccf8c4.js delete mode 100644 niucloud/public/wap/assets/pages-index-index.fdb474ef.js delete mode 100644 niucloud/public/wap/assets/pages-index-nosite.05c15b99.js create mode 100644 niucloud/public/wap/assets/pages-index-nosite.d52e22d1.js rename niucloud/public/wap/assets/{pages-member-account.831de6e4.js => pages-member-account.1645a99d.js} (93%) rename niucloud/public/wap/assets/{pages-member-account_edit.889d1e51.js => pages-member-account_edit.142797b5.js} (82%) rename niucloud/public/wap/assets/{pages-member-apply_cash_out.895c2991.js => pages-member-apply_cash_out.f6ab459d.js} (95%) create mode 100644 niucloud/public/wap/assets/pages-member-balance.c8e952bc.js delete mode 100644 niucloud/public/wap/assets/pages-member-balance.fd4992cd.js delete mode 100644 niucloud/public/wap/assets/pages-member-cash_out.340def83.js create mode 100644 niucloud/public/wap/assets/pages-member-cash_out.57f0f96a.js rename niucloud/public/wap/assets/{pages-member-cash_out_detail.905f81df.js => pages-member-cash_out_detail.ccd37d79.js} (95%) rename niucloud/public/wap/assets/{pages-member-commission.e551b4a8.js => pages-member-commission.2562b979.js} (76%) rename niucloud/public/wap/assets/{pages-member-detailed_account.bf0ba526.js => pages-member-detailed_account.dfe0ec43.js} (52%) delete mode 100644 niucloud/public/wap/assets/pages-member-index.448cc3b0.js create mode 100644 niucloud/public/wap/assets/pages-member-index.dbd4736b.js rename niucloud/public/wap/assets/{pages-member-personal.d419619c.js => pages-member-personal.66c2c720.js} (95%) rename niucloud/public/wap/assets/{pages-member-point.3b59f9da.js => pages-member-point.ff5872df.js} (74%) create mode 100644 niucloud/public/wap/assets/pages-member-recharge_record.e42b3b23.js delete mode 100644 niucloud/public/wap/assets/pages-member-recharge_record.f0fa2aff.js rename niucloud/public/wap/assets/{pages-member-recharge_record_detail.a63f73c2.js => pages-member-recharge_record_detail.b2e7f0df.js} (91%) create mode 100644 niucloud/public/wap/assets/pages-pay-browser.3e8e32cc.js delete mode 100644 niucloud/public/wap/assets/pages-pay-browser.ae909e4d.js delete mode 100644 niucloud/public/wap/assets/pages-pay-result.131dad2c.js create mode 100644 niucloud/public/wap/assets/pages-pay-result.8b15506e.js rename niucloud/public/wap/assets/{pages-setting-index.2eb0212e.js => pages-setting-index.dc2bbfce.js} (79%) delete mode 100644 niucloud/public/wap/assets/pages-webview-index.1b7e28a7.js create mode 100644 niucloud/public/wap/assets/pages-webview-index.458b13bb.js create mode 100644 niucloud/public/wap/assets/pay.422381f0.js delete mode 100644 niucloud/public/wap/assets/pay.4e07eed1.js delete mode 100644 niucloud/public/wap/assets/sms-code.vue_vue_type_script_setup_true_lang.bcc80d73.js create mode 100644 niucloud/public/wap/assets/sms-code.vue_vue_type_script_setup_true_lang.bcd0d968.js rename niucloud/public/wap/assets/{tabbar-8a0d9fd7.css => tabbar-eb61cd51.css} (94%) rename niucloud/public/wap/assets/{tabbar.f7ee8f1f.js => tabbar.e67e4875.js} (80%) rename niucloud/public/wap/assets/{u-action-sheet.acbdcbe5.js => u-action-sheet.1e4dbfee.js} (85%) delete mode 100644 niucloud/public/wap/assets/u-avatar.0ea3924d.js create mode 100644 niucloud/public/wap/assets/u-avatar.ddef1faa.js rename niucloud/public/wap/assets/{u-button.364aa63d.js => u-button.5c85e6cc.js} (95%) rename niucloud/public/wap/assets/{u-empty.972875c1.js => u-empty.317e751c.js} (91%) rename niucloud/public/wap/assets/{u-form.267f755c.js => u-form.84a1fd52.js} (93%) rename niucloud/public/wap/assets/{u-icon.461524ba.js => u-icon.f5369555.js} (98%) rename niucloud/public/wap/assets/{u-image.9265f18d.js => u-image.b892f6c4.js} (92%) rename niucloud/public/wap/assets/{u-input.cefa6e75.js => u-input.4212a359.js} (96%) rename niucloud/public/wap/assets/{u-line.0c46076e.js => u-line.bb8d1497.js} (88%) rename niucloud/public/wap/assets/{u-loading-icon.2e89024b.js => u-loading-icon.ea8c9ece.js} (92%) rename niucloud/public/wap/assets/{u-loading-page.f2a7c1df.js => u-loading-page.925a187b.js} (77%) delete mode 100644 niucloud/public/wap/assets/u-modal.64c62d33.js create mode 100644 niucloud/public/wap/assets/u-modal.755a4b61.js create mode 100644 niucloud/public/wap/assets/u-parse.403d1985.js delete mode 100644 niucloud/public/wap/assets/u-parse.8f6deaed.js rename niucloud/public/wap/assets/{u-popup.7d705de0.js => u-popup.8a491625.js} (93%) rename niucloud/public/wap/assets/{u-safe-bottom.6578a4de.js => u-safe-bottom.593b5cec.js} (77%) rename niucloud/public/wap/assets/{u-transition.021c4c1c.js => u-transition.a952a64b.js} (93%) rename niucloud/public/wap/assets/{useMescroll.92c88689.js => useMescroll.fbb7af33.js} (96%) create mode 100644 niucloud/public/wap/assets/useShare.3d08f2fc.js delete mode 100644 niucloud/public/wap/assets/useShare.80667d20.js rename niucloud/public/wap/assets/{wechat.eeef1e91.js => wechat.56b0d350.js} (99%) diff --git a/niucloud/public/wap/assets/app-link.vue_vue_type_script_setup_true_lang.b08a40da.js b/niucloud/public/wap/assets/app-link.vue_vue_type_script_setup_true_lang.18597de0.js similarity index 76% rename from niucloud/public/wap/assets/app-link.vue_vue_type_script_setup_true_lang.b08a40da.js rename to niucloud/public/wap/assets/app-link.vue_vue_type_script_setup_true_lang.18597de0.js index 3cfedc137..7be083b91 100644 --- a/niucloud/public/wap/assets/app-link.vue_vue_type_script_setup_true_lang.b08a40da.js +++ b/niucloud/public/wap/assets/app-link.vue_vue_type_script_setup_true_lang.18597de0.js @@ -1 +1 @@ -import{d as a,h as t,i as e,w as s,B as r,ai as n,aW as i,X as d,aX as l,R as o,q as u}from"./index-5bb08350.js";const p=a({__name:"app-link",props:{url:String,data:{type:Object,default:()=>({})},mode:{type:String,default:"navigateTo"}},setup(a){const p=a,f=()=>{if(Object.keys(p.data).length){if(!p.data.url)return;if("pages/member/index"==n()&&!i())return void d().setLoginBack({url:p.data.url});l(p.data)}else o(p)};return(a,n)=>{const i=u;return t(),e(i,{onClick:f},{default:s((()=>[r(a.$slots,"default")])),_:3})}}});export{p as _}; +import{d as a,h as t,i as e,w as s,C as r,ai as n,aY as i,X as d,aZ as l,R as o,t as u}from"./index-15eacd31.js";const p=a({__name:"app-link",props:{url:String,data:{type:Object,default:()=>({})},mode:{type:String,default:"navigateTo"}},setup(a){const p=a,f=()=>{if(Object.keys(p.data).length){if(!p.data.url)return;if("pages/member/index"==n()&&!i())return void d().setLoginBack({url:p.data.url});l(p.data)}else o(p)};return(a,n)=>{const i=u;return t(),e(i,{onClick:f},{default:s((()=>[r(a.$slots,"default")])),_:3})}}});export{p as _}; diff --git a/niucloud/public/wap/assets/article.1722ca18.js b/niucloud/public/wap/assets/article.0307362e.js similarity index 76% rename from niucloud/public/wap/assets/article.1722ca18.js rename to niucloud/public/wap/assets/article.0307362e.js index f7d18bf70..c748539a0 100644 --- a/niucloud/public/wap/assets/article.1722ca18.js +++ b/niucloud/public/wap/assets/article.0307362e.js @@ -1 +1 @@ -import{aL as t}from"./index-5bb08350.js";function r(r){return t.get("article/article",r)}function e(r){return t.get("article/article/all",r)}function a(r){return t.get(`article/article/${r}`)}function c(){return t.get("article/category")}export{r as a,a as b,e as c,c as g}; +import{aN as t}from"./index-15eacd31.js";function r(r){return t.get("article/article",r)}function e(r){return t.get("article/article/all",r)}function a(r){return t.get(`article/article/${r}`)}function c(){return t.get("article/category")}export{r as a,a as b,e as c,c as g}; diff --git a/niucloud/public/wap/assets/balance-17a5077b.css b/niucloud/public/wap/assets/balance-17a5077b.css deleted file mode 100644 index 1750f8d43..000000000 --- a/niucloud/public/wap/assets/balance-17a5077b.css +++ /dev/null @@ -1 +0,0 @@ -.pay-item[data-v-14dbf0eb]:last-child{border:none}.account-info-wrap[data-v-9d051fd0]{--tw-bg-opacity: 1;background-color:rgba(245,246,250,var(--tw-bg-opacity));min-height:100vh}.account-info-wrap .account-info-head[data-v-9d051fd0]{height:10rem;position:relative}.account-info-wrap .account-info-head .name[data-v-9d051fd0]{font-size:1.125rem;line-height:1.75rem;margin-left:1rem;margin-bottom:.75rem;padding-top:1.75rem;--tw-text-opacity: 1;color:rgba(255,255,255,var(--tw-text-opacity))}.account-info-wrap .account-info-head .content[data-v-9d051fd0]{--tw-bg-opacity: 1;background-color:rgba(255,255,255,var(--tw-bg-opacity));border-radius:.5rem;padding:1.25rem;position:absolute;left:.75rem;right:.75rem}.account-info-wrap .account-info-head .content .money[data-v-9d051fd0]{font-weight:700;font-size:1.66rem;line-height:1.75rem}.account-info-wrap .account-info-head .content .text[data-v-9d051fd0]{font-size:.75rem;line-height:1rem;margin-top:.5rem;--tw-text-opacity: 1;color:rgba(100,116,139,var(--tw-text-opacity))}.account-info-wrap .account-info-head .content .money-wrap[data-v-9d051fd0]{display:-webkit-box;display:-ms-flexbox;display:-webkit-flex;display:flex;margin-top:1.25rem}.account-info-wrap .account-info-head .content .money-wrap .money-item[data-v-9d051fd0]{-webkit-box-flex:1;-ms-flex:1 1 0%;-webkit-flex:1 1 0%;flex:1 1 0%}.account-info-wrap .account-info-head .content .money-wrap .money[data-v-9d051fd0]{font-size:1.125rem;line-height:1.75rem}.account-info-wrap .account-info-head .content .money-wrap .text[data-v-9d051fd0]{margin-top:.25rem}.account-info-wrap .account-info-btn[data-v-9d051fd0]{display:-webkit-box;display:-ms-flexbox;display:-webkit-flex;display:flex;margin-top:6rem;margin-left:.75rem;margin-right:.75rem}.account-info-wrap .account-info-btn .btn[data-v-9d051fd0]:first-of-type{border-radius:.25rem;margin-right:.25rem}.account-info-wrap .account-info-btn .btn[data-v-9d051fd0]:last-of-type{border-radius:.25rem;margin-left:.25rem} diff --git a/niucloud/public/wap/assets/balance-d8f1465a.css b/niucloud/public/wap/assets/balance-d8f1465a.css new file mode 100644 index 000000000..7cc305e50 --- /dev/null +++ b/niucloud/public/wap/assets/balance-d8f1465a.css @@ -0,0 +1 @@ +.pay-item[data-v-3a12120a]:last-child{border:none}.account-info-wrap[data-v-1c825d43]{--tw-bg-opacity: 1;background-color:rgba(245,246,250,var(--tw-bg-opacity));min-height:100vh}.account-info-wrap .account-info-head[data-v-1c825d43]{height:10rem;position:relative}.account-info-wrap .account-info-head .name[data-v-1c825d43]{font-size:1.125rem;line-height:1.75rem;margin-left:1rem;margin-bottom:.75rem;padding-top:1.75rem;--tw-text-opacity: 1;color:rgba(255,255,255,var(--tw-text-opacity))}.account-info-wrap .account-info-head .content[data-v-1c825d43]{--tw-bg-opacity: 1;background-color:rgba(255,255,255,var(--tw-bg-opacity));border-radius:.5rem;padding:1.25rem;position:absolute;left:.75rem;right:.75rem}.account-info-wrap .account-info-head .content .money[data-v-1c825d43]{font-weight:700;font-size:1.66rem;line-height:1.75rem}.account-info-wrap .account-info-head .content .text[data-v-1c825d43]{font-size:.75rem;line-height:1rem;margin-top:.5rem;--tw-text-opacity: 1;color:rgba(100,116,139,var(--tw-text-opacity))}.account-info-wrap .account-info-head .content .money-wrap[data-v-1c825d43]{display:-webkit-box;display:-ms-flexbox;display:-webkit-flex;display:flex;margin-top:1.25rem}.account-info-wrap .account-info-head .content .money-wrap .money-item[data-v-1c825d43]{-webkit-box-flex:1;-ms-flex:1 1 0%;-webkit-flex:1 1 0%;flex:1 1 0%}.account-info-wrap .account-info-head .content .money-wrap .money[data-v-1c825d43]{font-size:1.125rem;line-height:1.75rem}.account-info-wrap .account-info-head .content .money-wrap .text[data-v-1c825d43]{margin-top:.25rem}.account-info-wrap .account-info-btn[data-v-1c825d43]{display:-webkit-box;display:-ms-flexbox;display:-webkit-flex;display:flex;margin-top:6rem;margin-left:.75rem;margin-right:.75rem}.account-info-wrap .account-info-btn .btn[data-v-1c825d43]:first-of-type{border-radius:.25rem;margin-right:.25rem}.account-info-wrap .account-info-btn .btn[data-v-1c825d43]:last-of-type{border-radius:.25rem;margin-left:.25rem} diff --git a/niucloud/public/wap/assets/index-503ff4d2.css b/niucloud/public/wap/assets/diy-9a1c7fc3.css similarity index 54% rename from niucloud/public/wap/assets/index-503ff4d2.css rename to niucloud/public/wap/assets/diy-9a1c7fc3.css index ba40917e2..8959ab3dd 100644 --- a/niucloud/public/wap/assets/index-503ff4d2.css +++ b/niucloud/public/wap/assets/diy-9a1c7fc3.css @@ -1 +1 @@ -.bg-index[data-v-a012177a]{width:100%;height:100%;box-sizing:border-box;background-size:100%!important;background-repeat:no-repeat!important} +.bg-index[data-v-56539ac1]{width:100%;height:100%;box-sizing:border-box;background-size:100%!important;background-repeat:no-repeat!important} diff --git a/niucloud/public/wap/assets/index-5bb08350.js b/niucloud/public/wap/assets/index-15eacd31.js similarity index 85% rename from niucloud/public/wap/assets/index-5bb08350.js rename to niucloud/public/wap/assets/index-15eacd31.js index 09f32d715..22e37b70a 100644 --- a/niucloud/public/wap/assets/index-5bb08350.js +++ b/niucloud/public/wap/assets/index-15eacd31.js @@ -123,11 +123,11 @@ function u(e) { const d = r("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly"); -function f(e) { +function p(e) { return !!e || "" === e } -function p(e, t) { +function f(e, t) { if (e === t) return !0; let n = L(e), o = L(t); if (n || o) return !(!n || !o) && e.getTime() === t.getTime(); @@ -135,7 +135,7 @@ function p(e, t) { if (n = C(e), o = C(t), n || o) return !(!n || !o) && function (e, t) { if (e.length !== t.length) return !1; let n = !0; - for (let o = 0; n && o < e.length; o++) n = p(e[o], t[o]); + for (let o = 0; n && o < e.length; o++) n = f(e[o], t[o]); return n }(e, t); if (n = F(e), o = F(t), n || o) { @@ -143,14 +143,14 @@ function p(e, t) { if (Object.keys(e).length !== Object.keys(t).length) return !1; for (const n in e) { const o = e.hasOwnProperty(n), r = t.hasOwnProperty(n); - if (o && !r || !o && r || !p(e[n], t[n])) return !1 + if (o && !r || !o && r || !f(e[n], t[n])) return !1 } } return String(e) === String(t) } function h(e, t) { - return e.findIndex((e => p(e, t))) + return e.findIndex((e => f(e, t))) } const m = e => I(e) ? e : null == e ? "" : C(e) || F(e) && (e.toString === R || !O(e.toString)) ? JSON.stringify(e, g, 2) : String(e), @@ -221,21 +221,21 @@ function de(e, t = null) { return (...o) => (e && (n = e.apply(t, o), e = null), n) } -function fe(e) { +function pe(e) { return W(e.substring(5)) } -const pe = de((() => { +const fe = de((() => { const e = HTMLElement.prototype, t = e.setAttribute; e.setAttribute = function (e, n) { if (e.startsWith("data-") && this.tagName.startsWith("UNI-")) { - (this.__uniDataset || (this.__uniDataset = {}))[fe(e)] = n + (this.__uniDataset || (this.__uniDataset = {}))[pe(e)] = n } t.call(this, e, n) }; const n = e.removeAttribute; e.removeAttribute = function (e) { - this.__uniDataset && e.startsWith("data-") && this.tagName.startsWith("UNI-") && delete this.__uniDataset[fe(e)], n.call(this, e) + this.__uniDataset && e.startsWith("data-") && this.tagName.startsWith("UNI-") && delete this.__uniDataset[pe(e)], n.call(this, e) } })); @@ -612,7 +612,7 @@ function dt(e = !1, t = !1) { } } -function ft(e = !1) { +function pt(e = !1) { return function (t, n, o, r) { let i = t[n]; if (Qt(i) && tn(i) && !tn(o)) return !1; @@ -622,8 +622,8 @@ function ft(e = !1) { } } -const pt = { - get: it, set: ft(), deleteProperty: function (e, t) { +const ft = { + get: it, set: pt(), deleteProperty: function (e, t) { const n = A(e, t); e[t]; const o = Reflect.deleteProperty(e, t); @@ -634,7 +634,7 @@ const pt = { }, ownKeys: function (e) { return Ke(e, 0, C(e) ? "length" : We), Reflect.ownKeys(e) } - }, ht = {get: st, set: (e, t) => !0, deleteProperty: (e, t) => !0}, mt = S({}, pt, {get: at, set: ft(!0)}), gt = e => e, + }, ht = {get: st, set: (e, t) => !0, deleteProperty: (e, t) => !0}, mt = S({}, ft, {get: at, set: pt(!0)}), gt = e => e, vt = e => Reflect.getPrototypeOf(e); function bt(e, t, n = !1, o = !1) { @@ -772,7 +772,7 @@ function Ht(e) { } function qt(e) { - return Qt(e) ? e : Wt(e, !1, pt, Mt, Rt) + return Qt(e) ? e : Wt(e, !1, ft, Mt, Rt) } function Vt(e) { @@ -897,11 +897,11 @@ function dn(e, t, n) { return tn(o) ? o : new un(e, t, n) } -var fn; +var pn; -class pn { +class fn { constructor(e, t, n, o) { - this._setter = t, this.dep = void 0, this.__v_isRef = !0, this[fn] = !1, this._dirty = !0, this.effect = new Qe(e, (() => { + this._setter = t, this.dep = void 0, this.__v_isRef = !0, this[pn] = !1, this._dirty = !0, this.effect = new Qe(e, (() => { this._dirty || (this._dirty = !0, en(this)) })), this.effect.computed = this, this.effect.active = this._cacheable = !o, this.__v_isReadonly = n } @@ -956,7 +956,7 @@ function gn(e, t, n, o = !0) { }(e, 0, 0, o) } -fn = "__v_isReadonly"; +pn = "__v_isReadonly"; let vn = !1, bn = !1; const yn = []; let _n = 0; @@ -1099,13 +1099,13 @@ function Hn(e, t = Nn, n) { } function qn(e) { - const {type: t, vnode: n, proxy: o, withProxy: r, props: i, propsOptions: [a], slots: s, attrs: l, emit: c, render: u, renderCache: d, data: f, setupState: p, ctx: h, inheritAttrs: m} = e; + const {type: t, vnode: n, proxy: o, withProxy: r, props: i, propsOptions: [a], slots: s, attrs: l, emit: c, render: u, renderCache: d, data: p, setupState: f, ctx: h, inheritAttrs: m} = e; let g, v; const b = zn(e); try { if (4 & n.shapeFlag) { const e = r || o; - g = ni(u.call(e, e, d, i, p, f, h)), v = l + g = ni(u.call(e, e, d, i, f, p, h)), v = l } else { const e = t; 0, g = ni(e.length > 1 ? e(i, {attrs: l, slots: s, emit: c}) : e(i, null)), v = t.props ? l : Vn(l) @@ -1174,28 +1174,28 @@ function Kn(e, t, {immediate: n, deep: o, flush: r, onTrack: i, onTrigger: a} = const s = je() === (null == ci ? void 0 : ci.scope) ? ci : null; let l, c, u = !1, d = !1; if (tn(e) ? (l = () => e.value, u = Ut(e)) : $t(e) ? (l = () => e, o = !0) : C(e) ? (d = !0, u = e.some((e => $t(e) || Ut(e))), l = () => e.map((e => tn(e) ? e.value : $t(e) ? to(e) : O(e) ? hn(e, s, 2) : void 0))) : l = O(e) ? t ? () => hn(e, s, 2) : () => { - if (!s || !s.isUnmounted) return c && c(), mn(e, s, 3, [p]) + if (!s || !s.isUnmounted) return c && c(), mn(e, s, 3, [f]) } : y, t && o) { const e = l; l = () => to(e()) } - let f, p = e => { + let p, f = e => { c = b.onStop = () => { hn(e, s, 4) } }; if (hi) { - if (p = y, t ? n && mn(t, s, 3, [l(), d ? [] : void 0, p]) : l(), "sync" !== r) return y; + if (f = y, t ? n && mn(t, s, 3, [l(), d ? [] : void 0, f]) : l(), "sync" !== r) return y; { const e = xi(); - f = e.__watcherHandles || (e.__watcherHandles = []) + p = e.__watcherHandles || (e.__watcherHandles = []) } } let h = d ? new Array(e.length).fill(Jn) : Jn; const m = () => { if (b.active) if (t) { const e = b.run(); - (o || u || (d ? e.some(((e, t) => Y(e, h[t]))) : Y(e, h))) && (c && c(), mn(t, s, 3, [e, h === Jn ? void 0 : d && h[0] === Jn ? [] : h, p]), h = e) + (o || u || (d ? e.some(((e, t) => Y(e, h[t]))) : Y(e, h))) && (c && c(), mn(t, s, 3, [e, h === Jn ? void 0 : d && h[0] === Jn ? [] : h, f]), h = e) } else b.run() }; let g; @@ -1205,7 +1205,7 @@ function Kn(e, t, {immediate: n, deep: o, flush: r, onTrack: i, onTrigger: a} = const _ = () => { b.stop(), s && s.scope && E(s.scope.effects, b) }; - return f && f.push(_), _ + return p && p.push(_), _ } function Zn(e, t, n) { @@ -1215,7 +1215,7 @@ function Zn(e, t, n) { const a = ci; di(this); const s = Kn(r, i.bind(o), n); - return a ? di(a) : fi(), s + return a ? di(a) : pi(), s } function eo(e, t) { @@ -1277,20 +1277,20 @@ const no = [Function, Array], oo = { if (!c) return so(a); const u = ao(c, s, o, n); co(c, u); - const d = n.subTree, f = d && lo(d); - let p = !1; + const d = n.subTree, p = d && lo(d); + let f = !1; const {getTransitionKey: h} = c.type; if (h) { const e = h(); - void 0 === r ? r = e : e !== r && (r = e, p = !0) + void 0 === r ? r = e : e !== r && (r = e, f = !0) } - if (f && f.type !== jr && (!Ur(c, f) || p)) { - const e = ao(f, s, o, n); - if (co(f, e), "out-in" === l) return o.isLeaving = !0, e.afterLeave = () => { + if (p && p.type !== jr && (!Ur(c, p) || f)) { + const e = ao(p, s, o, n); + if (co(p, e), "out-in" === l) return o.isLeaving = !0, e.afterLeave = () => { o.isLeaving = !1, !1 !== n.update.active && n.update() }, so(a); "in-out" === l && c.type !== jr && (e.delayLeave = (e, t, n) => { - io(o, f)[String(f.key)] = f, e._leaveCb = () => { + io(o, p)[String(p.key)] = p, e._leaveCb = () => { t(), e._leaveCb = void 0, delete u.delayedLeave }, u.delayedLeave = n }) @@ -1307,7 +1307,7 @@ function io(e, t) { } function ao(e, t, n, o) { - const {appear: r, mode: i, persisted: a = !1, onBeforeEnter: s, onEnter: l, onAfterEnter: c, onEnterCancelled: u, onBeforeLeave: d, onLeave: f, onAfterLeave: p, onLeaveCancelled: h, onBeforeAppear: m, onAppear: g, onAfterAppear: v, onAppearCancelled: b} = t, + const {appear: r, mode: i, persisted: a = !1, onBeforeEnter: s, onEnter: l, onAfterEnter: c, onEnterCancelled: u, onBeforeLeave: d, onLeave: p, onAfterLeave: f, onLeaveCancelled: h, onBeforeAppear: m, onAppear: g, onAfterAppear: v, onAppearCancelled: b} = t, y = String(e.key), _ = io(n, e), w = (e, t) => { e && mn(e, o, 9, t) }, x = (e, t) => { @@ -1340,9 +1340,9 @@ function ao(e, t, n, o) { w(d, [t]); let i = !1; const a = t._leaveCb = n => { - i || (i = !0, o(), w(n ? h : p, [t]), t._leaveCb = void 0, _[r] === e && delete _[r]) + i || (i = !0, o(), w(n ? h : f, [t]), t._leaveCb = void 0, _[r] === e && delete _[r]) }; - _[r] = e, f ? x(f, [t, a]) : a() + _[r] = e, p ? x(p, [t, a]) : a() }, clone: e => ao(e, t, n, o) }; return T @@ -1371,11 +1371,11 @@ function uo(e, t = !1, n) { return o } -function fo(e) { +function po(e) { return O(e) ? {setup: e, name: e.name} : e } -const po = e => !!e.type.__asyncLoader; +const fo = e => !!e.type.__asyncLoader; function ho(e) { O(e) && (e = {loader: e}); @@ -1390,7 +1390,7 @@ function ho(e) { throw e })).then((t => e !== c && c ? c : (t && (t.__esModule || "Module" === t[Symbol.toStringTag]) && (t = t.default), l = t, t)))) }; - return fo({ + return po({ name: "AsyncComponentWrapper", __asyncLoader: d, get __asyncResolved() { return l }, setup() { @@ -1400,9 +1400,9 @@ function ho(e) { c = null, gn(t, e, 13, !o) }; if (a && e.suspense || hi) return d().then((t => () => mo(t, e))).catch((e => (t(e), () => o ? Kr(o, {error: e}) : null))); - const s = nn(!1), u = nn(), f = nn(!!r); + const s = nn(!1), u = nn(), p = nn(!!r); return r && setTimeout((() => { - f.value = !1 + p.value = !1 }), r), null != i && setTimeout((() => { if (!s.value && !u.value) { const e = new Error(`Async component timed out after ${i}ms.`); @@ -1412,7 +1412,7 @@ function ho(e) { s.value = !0, e.parent && go(e.parent.vnode) && An(e.parent.update) })).catch((e => { t(e), u.value = e - })), () => s.value && l ? mo(l, e) : u.value && o ? Kr(o, {error: u.value}) : n && !f.value ? Kr(n) : void 0 + })), () => s.value && l ? mo(l, e) : u.value && o ? Kr(o, {error: u.value}) : n && !p.value ? Kr(n) : void 0 } }) } @@ -1476,9 +1476,9 @@ const bo = { !i || !Ur(t, i) || "key" === e.matchBy && t.key !== i.key ? (Eo(o = t), u(o, n, s, !0)) : i && Eo(i) } - const s = n.suspense, {renderer: {p: l, m: c, um: u, o: {createElement: d}}} = o, f = d("div"); + const s = n.suspense, {renderer: {p: l, m: c, um: u, o: {createElement: d}}} = o, p = d("div"); - function p(t) { + function f(t) { r.forEach(((n, o) => { const i = Ao(n, e.matchBy); !i || t && t(i) || (r.delete(o), a(n)) @@ -1498,13 +1498,13 @@ const bo = { }), s) }, o.deactivate = e => { const t = e.component; - t.bda && Co(t.bda), c(e, f, null, 1, s), Pr((() => { + t.bda && Co(t.bda), c(e, p, null, 1, s), Pr((() => { t.bda && Bo(t.bda), t.da && J(t.da); const n = e.props && e.props.onVnodeUnmounted; n && ai(n, t.parent, e), t.isDeactivated = !0 }), s) }, Gn((() => [e.include, e.exclude, e.matchBy]), (([e, t]) => { - e && p((t => _o(e, t))), t && p((e => !_o(t, e))) + e && f((t => _o(e, t))), t && f((e => !_o(t, e))) }), {flush: "post", deep: !0}); let h = null; const m = () => { @@ -1528,8 +1528,8 @@ const bo = { let a = ko(o); const s = a.type, l = Ao(a, e.matchBy), {include: c, exclude: u} = e; if (c && (!l || !_o(c, l)) || u && l && _o(u, l)) return i = a, o; - const d = null == a.key ? s : a.key, f = r.get(d); - return a.el && (a = Zr(a), Qn(o.type) && (o.ssContent = a)), h = d, f && (a.el = f.el, a.component = f.component, a.transition && co(a, a.transition), a.shapeFlag |= 512), a.shapeFlag |= 256, i = a, Qn(o.type) ? o : a + const d = null == a.key ? s : a.key, p = r.get(d); + return a.el && (a = Zr(a), Qn(o.type) && (o.ssContent = a)), h = d, p && (a.el = p.el, a.component = p.component, a.transition && co(a, a.transition), a.shapeFlag |= 512), a.shapeFlag |= 256, i = a, Qn(o.type) ? o : a } } }, yo = bo; @@ -1579,7 +1579,7 @@ function ko(e) { function Ao(e, t) { if ("name" === t) { const t = e.type; - return bi(po(e) ? t.__asyncResolved || {} : t) + return bi(fo(e) ? t.__asyncResolved || {} : t) } return String(e.key) } @@ -1610,7 +1610,7 @@ function Po(e, t, n = ci, o = !1) { if (n.isUnmounted) return; Je(), di(n); const r = mn(t, n, e, o); - return fi(), Ge(), r + return pi(), Ge(), r }); return o ? i.unshift(a) : i.push(a), a } @@ -1700,7 +1700,7 @@ function Yo(e, t, n, o) { } function Jo(e, t, n = {}, o, r) { - if (Nn.isCE || Nn.parent && po(Nn.parent) && Nn.parent.isCE) return "default" !== t && (n.name = t), Kr("slot", n, o && o()); + if (Nn.isCE || Nn.parent && fo(Nn.parent) && Nn.parent.isCE) return "default" !== t && (n.name = t), Kr("slot", n, o && o()); let i = e[t]; i && i._c && (i._d = !1), zr(); const a = i && Go(i(n)), @@ -1712,7 +1712,7 @@ function Go(e) { return e.some((e => !Qr(e) || e.type !== jr && !(e.type === Mr && !Go(e.children)))) ? e : null } -const Ko = e => e ? pi(e) ? vi(e) || e.proxy : Ko(e.parent) : null, Zo = S(Object.create(null), { +const Ko = e => e ? fi(e) ? vi(e) || e.proxy : Ko(e.parent) : null, Zo = S(Object.create(null), { $: e => e, $el: e => e.vnode.el, $data: e => e.data, @@ -1751,8 +1751,8 @@ const Ko = e => e ? pi(e) ? vi(e) || e.proxy : Ko(e.parent) : null, Zo = S(Objec } } const u = Zo[t]; - let d, f; - return u ? ("$attrs" === t && Ke(e, 0, t), u(e)) : (d = s.__cssModules) && (d = d[t]) ? d : n !== v && A(n, t) ? (a[t] = 4, n[t]) : (f = l.config.globalProperties, A(f, t) ? f[t] : void 0) + let d, p; + return u ? ("$attrs" === t && Ke(e, 0, t), u(e)) : (d = s.__cssModules) && (d = d[t]) ? d : n !== v && A(n, t) ? (a[t] = 4, n[t]) : (p = l.config.globalProperties, A(p, t) ? p[t] : void 0) }, set({_: e}, t, n) { const {data: o, setupState: r, ctx: i} = e; return er(r, t) ? (r[t] = n, !0) : o !== v && A(o, t) ? (o[t] = n, !0) : !A(e.props, t) && (("$" !== t[0] || !(t.slice(1) in e)) && (i[t] = n, !0)) @@ -1768,7 +1768,7 @@ let nr = !0; function or(e) { const t = ar(e), n = e.proxy, o = e.ctx; nr = !1, t.beforeCreate && rr(t.beforeCreate, e, "bc"); - const {data: r, computed: i, methods: a, watch: s, provide: l, inject: c, created: u, beforeMount: d, mounted: f, beforeUpdate: p, updated: h, activated: m, deactivated: g, beforeDestroy: v, beforeUnmount: b, destroyed: _, unmounted: w, render: x, renderTracked: T, renderTriggered: S, errorCaptured: E, serverPrefetch: k, expose: A, inheritAttrs: B, components: P, directives: L, filters: I} = t; + const {data: r, computed: i, methods: a, watch: s, provide: l, inject: c, created: u, beforeMount: d, mounted: p, beforeUpdate: f, updated: h, activated: m, deactivated: g, beforeDestroy: v, beforeUnmount: b, destroyed: _, unmounted: w, render: x, renderTracked: T, renderTriggered: S, errorCaptured: E, serverPrefetch: k, expose: A, inheritAttrs: B, components: P, directives: L, filters: I} = t; if (c && function (e, t, n = y, o = !1) { C(e) && (e = ur(e)); for (const r in e) { @@ -1806,7 +1806,7 @@ function or(e) { C(t) ? t.forEach((t => e(t.bind(n)))) : t && e(t.bind(n)) } - if (u && rr(u, e, "c"), M(Oo, d), M(Io, f), M(Mo, p), M(Fo, h), M(wo, m), M(xo, g), M(Ho, E), M(zo, T), M(Do, S), M(jo, b), M(Ro, w), M(No, k), C(A)) if (A.length) { + if (u && rr(u, e, "c"), M(Oo, d), M(Io, p), M(Mo, f), M(Fo, h), M(wo, m), M(xo, g), M(Ho, E), M(zo, T), M(Do, S), M(jo, b), M(Ro, w), M(No, k), C(A)) if (A.length) { const t = e.exposed || (e.exposed = {}); A.forEach((e => { Object.defineProperty(t, e, {get: () => n[e], set: t => n[e] = t}) @@ -1851,10 +1851,10 @@ function sr(e, t, n, o = !1) { const lr = { data: cr, - props: fr, - emits: fr, - methods: fr, - computed: fr, + props: pr, + emits: pr, + methods: pr, + computed: pr, beforeCreate: dr, created: dr, beforeMount: dr, @@ -1869,8 +1869,8 @@ const lr = { deactivated: dr, errorCaptured: dr, serverPrefetch: dr, - components: fr, - directives: fr, + components: pr, + directives: pr, watch: function (e, t) { if (!e) return t; if (!t) return e; @@ -1880,7 +1880,7 @@ const lr = { }, provide: cr, inject: function (e, t) { - return fr(ur(e), ur(t)) + return pr(ur(e), ur(t)) } }; @@ -1903,11 +1903,11 @@ function dr(e, t) { return e ? [...new Set([].concat(e, t))] : t } -function fr(e, t) { +function pr(e, t) { return e ? S(S(Object.create(null), e), t) : t } -function pr(e, t, n, o = !1) { +function fr(e, t, n, o = !1) { const r = {}, i = {}; G(i, Xr, 1), e.propsDefaults = Object.create(null), hr(e, t, r, i); for (const a in e.propsOptions[0]) a in r || (r[a] = void 0); @@ -1941,7 +1941,7 @@ function mr(e, t, n, o, r, i) { const e = a.default; if (a.type !== Function && O(e)) { const {propsDefaults: i} = r; - n in i ? o = i[n] : (di(r), o = i[n] = e.call(null, t), fi()) + n in i ? o = i[n] : (di(r), o = i[n] = e.call(null, t), pi()) } else o = e } a[0] && (i && !e ? o = !1 : !a[1] || "" !== o && o !== Q(n) || (o = !0)) @@ -2079,7 +2079,7 @@ function Cr(e, t) { function Br(e, t, n, o, r = !1) { if (C(e)) return void e.forEach(((e, i) => Br(e, t && (C(t) ? t[i] : t), n, o, r))); - if (po(o) && !r) return; + if (fo(o) && !r) return; const i = 4 & o.shapeFlag ? vi(o.component) || o.component.proxy : o.el, a = r ? null : i, {i: s, r: l} = e, c = t && t.r, u = s.refs === v ? s.refs = {} : s.refs, d = s.setupState; if (null != c && c !== l && (I(c) ? (u[c] = null, A(d, c) && (d[c] = null)) : tn(c) && (c.value = null)), O(l)) hn(l, s, 12, [a, u]); else { @@ -2104,7 +2104,7 @@ const Pr = function (e, t) { function Lr(e) { return function (e, t) { (Z || (Z = "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : "undefined" != typeof window ? window : "undefined" != typeof global ? global : {})).__VUE__ = !0; - const {insert: n, remove: o, patchProp: r, forcePatchProp: i, createElement: a, createText: s, createComment: l, setText: c, setElementText: u, parentNode: d, nextSibling: f, setScopeId: p = y, insertStaticContent: h} = e, + const {insert: n, remove: o, patchProp: r, forcePatchProp: i, createElement: a, createText: s, createComment: l, setText: c, setElementText: u, parentNode: d, nextSibling: p, setScopeId: f = y, insertStaticContent: h} = e, m = (e, t, n, o = null, r = null, i = null, a = !1, s = null, l = !!t.dynamicChildren) => { if (e === t) return; e && !Ur(e, t) && (o = te(e), U(e, r, i, !0), e = null), -2 === t.patchFlag && (l = !1, t.dynamicChildren = null); @@ -2137,31 +2137,31 @@ function Lr(e) { [e.el, e.anchor] = h(e.children, t, n, o, e.el, e.anchor) }, x = ({el: e, anchor: t}, o, r) => { let i; - for (; e && e !== t;) i = f(e), n(e, o, r), e = i; + for (; e && e !== t;) i = p(e), n(e, o, r), e = i; n(t, o, r) }, T = ({el: e, anchor: t}) => { let n; - for (; e && e !== t;) n = f(e), o(e), e = n; + for (; e && e !== t;) n = p(e), o(e), e = n; o(t) }, E = (e, t, n, o, r, i, a, s, l) => { a = a || "svg" === t.type, null == e ? k(t, n, o, r, i, a, s, l) : P(e, t, r, i, a, s, l) }, k = (e, t, o, i, s, l, c, d) => { - let f, p; + let p, f; const {type: h, props: m, shapeFlag: g, transition: v, dirs: b} = e; - if (f = e.el = a(e.type, l, m && m.is, m), 8 & g ? u(f, e.children) : 16 & g && B(e.children, f, null, i, s, l && "foreignObject" !== h, c, d), b && Vo(e, null, i, "created"), C(f, e, e.scopeId, c, i), m) { - for (const t in m) "value" === t || H(t) || r(f, t, null, m[t], l, e.children, i, s, ee); - "value" in m && r(f, "value", null, m.value), (p = m.onVnodeBeforeMount) && ai(p, i, e) + if (p = e.el = a(e.type, l, m && m.is, m), 8 & g ? u(p, e.children) : 16 & g && B(e.children, p, null, i, s, l && "foreignObject" !== h, c, d), b && Vo(e, null, i, "created"), C(p, e, e.scopeId, c, i), m) { + for (const t in m) "value" === t || H(t) || r(p, t, null, m[t], l, e.children, i, s, ee); + "value" in m && r(p, "value", null, m.value), (f = m.onVnodeBeforeMount) && ai(f, i, e) } - Object.defineProperty(f, "__vueParentComponent", { + Object.defineProperty(p, "__vueParentComponent", { value: i, enumerable: !1 }), b && Vo(e, null, i, "beforeMount"); const y = (!s || s && !s.pendingBranch) && v && !v.persisted; - y && v.beforeEnter(f), n(f, t, o), ((p = m && m.onVnodeMounted) || y || b) && Pr((() => { - p && ai(p, i, e), y && v.enter(f), b && Vo(e, null, i, "mounted") + y && v.beforeEnter(p), n(p, t, o), ((f = m && m.onVnodeMounted) || y || b) && Pr((() => { + f && ai(f, i, e), y && v.enter(p), b && Vo(e, null, i, "mounted") }), s) }, C = (e, t, n, o, r) => { - if (n && p(e, n), o) for (let i = 0; i < o.length; i++) p(e, o[i]); + if (n && f(e, n), o) for (let i = 0; i < o.length; i++) f(e, o[i]); if (r) { if (t === r.subTree) { const t = r.vnode; @@ -2175,13 +2175,13 @@ function Lr(e) { } }, P = (e, t, n, o, a, s, l) => { const c = t.el = e.el; - let {patchFlag: d, dynamicChildren: f, dirs: p} = t; + let {patchFlag: d, dynamicChildren: p, dirs: f} = t; d |= 16 & e.patchFlag; const h = e.props || v, m = t.props || v; let g; - n && Or(n, !1), (g = m.onVnodeBeforeUpdate) && ai(g, n, t, e), p && Vo(t, e, n, "beforeUpdate"), n && Or(n, !0); + n && Or(n, !1), (g = m.onVnodeBeforeUpdate) && ai(g, n, t, e), f && Vo(t, e, n, "beforeUpdate"), n && Or(n, !0); const b = a && "foreignObject" !== t.type; - if (f ? L(e.dynamicChildren, f, c, n, o, b, s) : l || z(e, t, c, null, n, o, b, s, !1), d > 0) { + if (p ? L(e.dynamicChildren, p, c, n, o, b, s) : l || z(e, t, c, null, n, o, b, s, !1), d > 0) { if (16 & d) O(c, t, h, m, n, o, a); else if (2 & d && h.class !== m.class && r(c, "class", null, m.class, a), 4 & d && r(c, "style", h.style, m.style, a), 8 & d) { const s = t.dynamicProps; for (let t = 0; t < s.length; t++) { @@ -2190,9 +2190,9 @@ function Lr(e) { } } 1 & d && e.children !== t.children && u(c, t.children) - } else l || null != f || O(c, t, h, m, n, o, a); - ((g = m.onVnodeUpdated) || p) && Pr((() => { - g && ai(g, n, t, e), p && Vo(t, e, n, "updated") + } else l || null != p || O(c, t, h, m, n, o, a); + ((g = m.onVnodeUpdated) || f) && Pr((() => { + g && ai(g, n, t, e), f && Vo(t, e, n, "updated") }), o) }, L = (e, t, n, o, r, i, a) => { for (let s = 0; s < t.length; s++) { @@ -2210,9 +2210,9 @@ function Lr(e) { "value" in o && r(e, "value", n.value, o.value) } }, I = (e, t, o, r, i, a, l, c, u) => { - const d = t.el = e ? e.el : s(""), f = t.anchor = e ? e.anchor : s(""); - let {patchFlag: p, dynamicChildren: h, slotScopeIds: m} = t; - m && (c = c ? c.concat(m) : m), null == e ? (n(d, o, r), n(f, o, r), B(t.children, o, f, i, a, l, c, u)) : p > 0 && 64 & p && h && e.dynamicChildren ? (L(e.dynamicChildren, h, o, i, a, l, c), (null != t.key || i && t === i.subTree) && Ir(e, t, !0)) : z(e, t, o, f, i, a, l, c, u) + const d = t.el = e ? e.el : s(""), p = t.anchor = e ? e.anchor : s(""); + let {patchFlag: f, dynamicChildren: h, slotScopeIds: m} = t; + m && (c = c ? c.concat(m) : m), null == e ? (n(d, o, r), n(p, o, r), B(t.children, o, p, i, a, l, c, u)) : f > 0 && 64 & f && h && e.dynamicChildren ? (L(e.dynamicChildren, h, o, i, a, l, c), (null != t.key || i && t === i.subTree) && Ir(e, t, !0)) : z(e, t, o, p, i, a, l, c, u) }, M = (e, t, n, o, r, i, a, s, l) => { t.slotScopeIds = s, null == e ? 512 & t.shapeFlag ? r.ctx.activate(t, n, o, a, l) : F(t, n, o, r, i, a, l) : R(e, t, l) }, F = (e, t, n, o, r, i, a) => { @@ -2282,8 +2282,8 @@ function Lr(e) { }(e, o, r); if (go(e) && (s.ctx.renderer = oe), function (e, t = !1) { hi = t; - const {props: n, children: o} = e.vnode, r = pi(e); - pr(e, n, r, t), ((e, t) => { + const {props: n, children: o} = e.vnode, r = fi(e); + fr(e, n, r, t), ((e, t) => { if (32 & e.vnode.shapeFlag) { const n = t._; n ? (e.slots = Yt(t), G(t, "_", n)) : Sr(t, e.slots = {}) @@ -2310,8 +2310,8 @@ function Lr(e) { }(e) : null; di(e), Je(); const r = hn(o, e, 0, [e.props, n]); - if (Ge(), fi(), j(r)) { - if (r.then(fi, fi), t) return r.then((n => { + if (Ge(), pi(), j(r)) { + if (r.then(pi, pi), t) return r.then((n => { mi(e, n, t) })).catch((t => { gn(t, e, 0) @@ -2356,28 +2356,28 @@ function Lr(e) { if (e.isMounted) { let t, {next: n, bu: o, u: s, parent: l, vnode: c} = e, u = n; Or(e, !1), n ? (n.el = c.el, D(e, n, a)) : n = c, o && J(o), (t = n.props && n.props.onVnodeBeforeUpdate) && ai(t, l, n, c), Or(e, !0); - const f = qn(e), p = e.subTree; - e.subTree = f, m(p, f, d(p.el), te(p), e, r, i), n.el = f.el, null === u && function ({vnode: e, parent: t}, n) { + const p = qn(e), f = e.subTree; + e.subTree = p, m(f, p, d(f.el), te(f), e, r, i), n.el = p.el, null === u && function ({vnode: e, parent: t}, n) { for (; t && t.subTree === e;) (e = t.vnode).el = n, t = t.parent - }(e, f.el), s && Pr(s, r), (t = n.props && n.props.onVnodeUpdated) && Pr((() => ai(t, l, n, c)), r) + }(e, p.el), s && Pr(s, r), (t = n.props && n.props.onVnodeUpdated) && Pr((() => ai(t, l, n, c)), r) } else { let a; - const {el: s, props: l} = t, {bm: c, m: u, parent: d} = e, f = po(t); - if (Or(e, !1), c && J(c), !f && (a = l && l.onVnodeBeforeMount) && ai(a, d, t), Or(e, !0), s && ie) { + const {el: s, props: l} = t, {bm: c, m: u, parent: d} = e, p = fo(t); + if (Or(e, !1), c && J(c), !p && (a = l && l.onVnodeBeforeMount) && ai(a, d, t), Or(e, !0), s && ie) { const n = () => { e.subTree = qn(e), ie(s, e.subTree, e, r, null) }; - f ? t.type.__asyncLoader().then((() => !e.isUnmounted && n())) : n() + p ? t.type.__asyncLoader().then((() => !e.isUnmounted && n())) : n() } else { const a = e.subTree = qn(e); m(null, a, n, o, e, r, i), t.el = a.el } - if (u && Pr(u, r), !f && (a = l && l.onVnodeMounted)) { + if (u && Pr(u, r), !p && (a = l && l.onVnodeMounted)) { const e = t; Pr((() => ai(a, d, e)), r) } - const {ba: p, a: h} = e; - (256 & t.shapeFlag || d && po(d.vnode) && 256 & d.vnode.shapeFlag) && (p && Co(p), h && Pr(h, r), p && Pr((() => Bo(p)), r)), e.isMounted = !0, t = n = o = null + const {ba: f, a: h} = e; + (256 & t.shapeFlag || d && fo(d.vnode) && 256 & d.vnode.shapeFlag) && (f && Co(f), h && Pr(h, r), f && Pr((() => Bo(f)), r)), e.isMounted = !0, t = n = o = null } }, l = e.effect = new Qe(s, (() => An(c)), e.scope), c = e.update = () => l.run(); c.id = e.uid, Or(e, !0), c() @@ -2415,59 +2415,59 @@ function Lr(e) { if (i) for (const s in r) wr(s) || s in a || delete r[s] })(e, t.children, n), Je(), Bn(), Ge() }, z = (e, t, n, o, r, i, a, s, l = !1) => { - const c = e && e.children, d = e ? e.shapeFlag : 0, f = t.children, {patchFlag: p, shapeFlag: h} = t; - if (p > 0) { - if (128 & p) return void V(c, f, n, o, r, i, a, s, l); - if (256 & p) return void q(c, f, n, o, r, i, a, s, l) + const c = e && e.children, d = e ? e.shapeFlag : 0, p = t.children, {patchFlag: f, shapeFlag: h} = t; + if (f > 0) { + if (128 & f) return void V(c, p, n, o, r, i, a, s, l); + if (256 & f) return void q(c, p, n, o, r, i, a, s, l) } - 8 & h ? (16 & d && ee(c, r, i), f !== c && u(n, f)) : 16 & d ? 16 & h ? V(c, f, n, o, r, i, a, s, l) : ee(c, r, i, !0) : (8 & d && u(n, ""), 16 & h && B(f, n, o, r, i, a, s, l)) + 8 & h ? (16 & d && ee(c, r, i), p !== c && u(n, p)) : 16 & d ? 16 & h ? V(c, p, n, o, r, i, a, s, l) : ee(c, r, i, !0) : (8 & d && u(n, ""), 16 & h && B(p, n, o, r, i, a, s, l)) }, q = (e, t, n, o, r, i, a, s, l) => { t = t || b; const c = (e = e || b).length, u = t.length, d = Math.min(c, u); - let f; - for (f = 0; f < d; f++) { - const o = t[f] = l ? oi(t[f]) : ni(t[f]); - m(e[f], o, n, null, r, i, a, s, l) + let p; + for (p = 0; p < d; p++) { + const o = t[p] = l ? oi(t[p]) : ni(t[p]); + m(e[p], o, n, null, r, i, a, s, l) } c > u ? ee(e, r, i, !0, !1, d) : B(t, n, o, r, i, a, s, l, d) }, V = (e, t, n, o, r, i, a, s, l) => { let c = 0; const u = t.length; - let d = e.length - 1, f = u - 1; - for (; c <= d && c <= f;) { + let d = e.length - 1, p = u - 1; + for (; c <= d && c <= p;) { const o = e[c], u = t[c] = l ? oi(t[c]) : ni(t[c]); if (!Ur(o, u)) break; m(o, u, n, null, r, i, a, s, l), c++ } - for (; c <= d && c <= f;) { - const o = e[d], c = t[f] = l ? oi(t[f]) : ni(t[f]); + for (; c <= d && c <= p;) { + const o = e[d], c = t[p] = l ? oi(t[p]) : ni(t[p]); if (!Ur(o, c)) break; - m(o, c, n, null, r, i, a, s, l), d--, f-- + m(o, c, n, null, r, i, a, s, l), d--, p-- } if (c > d) { - if (c <= f) { - const e = f + 1, d = e < u ? t[e].el : o; - for (; c <= f;) m(null, t[c] = l ? oi(t[c]) : ni(t[c]), n, d, r, i, a, s, l), c++ + if (c <= p) { + const e = p + 1, d = e < u ? t[e].el : o; + for (; c <= p;) m(null, t[c] = l ? oi(t[c]) : ni(t[c]), n, d, r, i, a, s, l), c++ } - } else if (c > f) for (; c <= d;) U(e[c], r, i, !0), c++; else { - const p = c, h = c, g = new Map; - for (c = h; c <= f; c++) { + } else if (c > p) for (; c <= d;) U(e[c], r, i, !0), c++; else { + const f = c, h = c, g = new Map; + for (c = h; c <= p; c++) { const e = t[c] = l ? oi(t[c]) : ni(t[c]); null != e.key && g.set(e.key, c) } let v, y = 0; - const _ = f - h + 1; + const _ = p - h + 1; let w = !1, x = 0; const T = new Array(_); for (c = 0; c < _; c++) T[c] = 0; - for (c = p; c <= d; c++) { + for (c = f; c <= d; c++) { const o = e[c]; if (y >= _) { U(o, r, i, !0); continue } let u; - if (null != o.key) u = g.get(o.key); else for (v = h; v <= f; v++) if (0 === T[v - h] && Ur(o, t[v])) { + if (null != o.key) u = g.get(o.key); else for (v = h; v <= p; v++) if (0 === T[v - h] && Ur(o, t[v])) { u = v; break } @@ -2493,8 +2493,8 @@ function Lr(e) { return n }(T) : b; for (v = S.length - 1, c = _ - 1; c >= 0; c--) { - const e = h + c, d = t[e], f = e + 1 < u ? t[e + 1].el : o; - 0 === T[c] ? m(null, d, n, f, r, i, a, s, l) : w && (v < 0 || c !== S[v] ? $(d, n, f, 2) : v--) + const e = h + c, d = t[e], p = e + 1 < u ? t[e + 1].el : o; + 0 === T[c] ? m(null, d, n, p, r, i, a, s, l) : w && (v < 0 || c !== S[v] ? $(d, n, p, 2) : v--) } } }, $ = (e, t, o, r, i = null) => { @@ -2517,16 +2517,16 @@ function Lr(e) { r ? r(a, s, c) : c() } else n(a, t, o) }, U = (e, t, n, o = !1, r = !1) => { - const {type: i, props: a, ref: s, children: l, dynamicChildren: c, shapeFlag: u, patchFlag: d, dirs: f} = e; + const {type: i, props: a, ref: s, children: l, dynamicChildren: c, shapeFlag: u, patchFlag: d, dirs: p} = e; if (null != s && Br(s, null, n, e, !0), 256 & u) return void t.ctx.deactivate(e); - const p = 1 & u && f, h = !po(e); + const f = 1 & u && p, h = !fo(e); let m; if (h && (m = a && a.onVnodeBeforeUnmount) && ai(m, t, e), 6 & u) K(e.component, n, o); else { if (128 & u) return void e.suspense.unmount(n, o); - p && Vo(e, null, t, "beforeUnmount"), 64 & u ? e.type.remove(e, t, n, r, oe, o) : c && (i !== Mr || d > 0 && 64 & d) ? ee(c, t, n, !1, !0) : (i === Mr && 384 & d || !r && 16 & u) && ee(l, t, n), o && X(e) + f && Vo(e, null, t, "beforeUnmount"), 64 & u ? e.type.remove(e, t, n, r, oe, o) : c && (i !== Mr || d > 0 && 64 & d) ? ee(c, t, n, !1, !0) : (i === Mr && 384 & d || !r && 16 & u) && ee(l, t, n), o && X(e) } - (h && (m = a && a.onVnodeUnmounted) || p) && Pr((() => { - m && ai(m, t, e), p && Vo(e, null, t, "unmounted") + (h && (m = a && a.onVnodeUnmounted) || f) && Pr((() => { + m && ai(m, t, e), f && Vo(e, null, t, "unmounted") }), n) }, X = e => { const {type: t, el: n, anchor: r, transition: i} = e; @@ -2541,7 +2541,7 @@ function Lr(e) { } else a() }, Y = (e, t) => { let n; - for (; e !== t;) n = f(e), o(e), e = n; + for (; e !== t;) n = p(e), o(e), e = n; o(t) }, K = (e, t, n) => { const {bum: o, scope: r, update: i, subTree: a, um: s} = e; @@ -2551,7 +2551,7 @@ function Lr(e) { }, ee = (e, t, n, o = !1, r = !1, i = 0) => { for (let a = i; a < e.length; a++) U(e[a], t, n, o, r) }, - te = e => 6 & e.shapeFlag ? te(e.component.subTree) : 128 & e.shapeFlag ? e.suspense.next() : f(e.anchor || e.el), + te = e => 6 & e.shapeFlag ? te(e.component.subTree) : 128 & e.shapeFlag ? e.suspense.next() : p(e.anchor || e.el), ne = (e, t, n) => { null == e ? t._vnode && U(t._vnode, null, null, !0) : m(t._vnode || null, e, t, null, null, null, n), Bn(), Pn(), t._vnode = e }, oe = {p: m, um: U, m: $, r: X, mt: F, mc: B, pc: z, pbc: L, n: te, o: e}; @@ -2753,11 +2753,11 @@ let li = 0; let ci = null; const ui = () => ci || Nn, di = e => { ci = e, e.scope.on() -}, fi = () => { +}, pi = () => { ci && ci.scope.off(), ci = null }; -function pi(e) { +function fi(e) { return 4 & e.vnode.shapeFlag } @@ -2769,7 +2769,7 @@ function mi(e, t, n) { function gi(e, t, n) { const o = e.type; - e.render || (e.render = o.render || y), di(e), Je(), or(e), Ge(), fi() + e.render || (e.render = o.render || y), di(e), Je(), or(e), Ge(), pi() } function vi(e) { @@ -2786,7 +2786,7 @@ function bi(e, t = !0) { const yi = (e, t) => function (e, t, n = !1) { let o, r; const i = O(e); - return i ? (o = e, r = y) : (o = e.get, r = e.set), new pn(o, r, i || !r, n) + return i ? (o = e, r = y) : (o = e.get, r = e.set), new fn(o, r, i || !r, n) }(e, 0, hi); function _i(e, t, n) { @@ -2931,7 +2931,7 @@ const Ui = "transition", Xi = (e, {slots: t}) => _i(ro, function (e) { const t = {}; for (const S in e) S in Yi || (t[S] = e[S]); if (!1 === e.css) return t; - const {name: n = "v", type: o, duration: r, enterFromClass: i = `${n}-enter-from`, enterActiveClass: a = `${n}-enter-active`, enterToClass: s = `${n}-enter-to`, appearFromClass: l = i, appearActiveClass: c = a, appearToClass: u = s, leaveFromClass: d = `${n}-leave-from`, leaveActiveClass: f = `${n}-leave-active`, leaveToClass: p = `${n}-leave-to`} = e, + const {name: n = "v", type: o, duration: r, enterFromClass: i = `${n}-enter-from`, enterActiveClass: a = `${n}-enter-active`, enterToClass: s = `${n}-enter-to`, appearFromClass: l = i, appearActiveClass: c = a, appearToClass: u = s, leaveFromClass: d = `${n}-leave-from`, leaveActiveClass: p = `${n}-leave-active`, leaveToClass: f = `${n}-leave-to`} = e, h = function (e) { if (null == e) return null; if (F(e)) return [Ki(e.enter), Ki(e.leave)]; @@ -2944,7 +2944,7 @@ const Ui = "transition", Xi = (e, {slots: t}) => _i(ro, function (e) { k = (e, t, n) => { ea(e, t ? u : s), ea(e, t ? c : a), n && n() }, A = (e, t) => { - e._isLeaving = !1, ea(e, d), ea(e, p), ea(e, f), t && t() + e._isLeaving = !1, ea(e, d), ea(e, f), ea(e, p), t && t() }, C = e => (t, n) => { const r = e ? T : b, a = () => k(t, e, n); Ji(r, [t, a]), ta((() => { @@ -2959,8 +2959,8 @@ const Ui = "transition", Xi = (e, {slots: t}) => _i(ro, function (e) { }, onEnter: C(!1), onAppear: C(!0), onLeave(e, t) { e._isLeaving = !0; const n = () => A(e, t); - Zi(e, d), document.body.offsetHeight, Zi(e, f), ta((() => { - e._isLeaving && (ea(e, d), Zi(e, p), Gi(_) || oa(e, o, g, n)) + Zi(e, d), document.body.offsetHeight, Zi(e, p), ta((() => { + e._isLeaving && (ea(e, d), Zi(e, f), Gi(_) || oa(e, o, g, n)) })), Ji(_, [e, n]) }, onEnterCancelled(e) { k(e, !1), Ji(y, [e]) @@ -3027,22 +3027,22 @@ function oa(e, t, n, o) { const n = window.getComputedStyle(e), o = e => (n[e] || "").split(", "), r = o("transitionDelay"), i = o("transitionDuration"), a = ra(r, i), s = o("animationDelay"), l = o("animationDuration"), c = ra(s, l); - let u = null, d = 0, f = 0; - t === Ui ? a > 0 && (u = Ui, d = a, f = i.length) : "animation" === t ? c > 0 && (u = "animation", d = c, f = l.length) : (d = Math.max(a, c), u = d > 0 ? a > c ? Ui : "animation" : null, f = u ? u === Ui ? i.length : l.length : 0); - const p = u === Ui && /\b(transform|all)(,|$)/.test(o("transitionProperty").toString()); - return {type: u, timeout: d, propCount: f, hasTransform: p} + let u = null, d = 0, p = 0; + t === Ui ? a > 0 && (u = Ui, d = a, p = i.length) : "animation" === t ? c > 0 && (u = "animation", d = c, p = l.length) : (d = Math.max(a, c), u = d > 0 ? a > c ? Ui : "animation" : null, p = u ? u === Ui ? i.length : l.length : 0); + const f = u === Ui && /\b(transform|all)(,|$)/.test(o("transitionProperty").toString()); + return {type: u, timeout: d, propCount: p, hasTransform: f} }(e, t); if (!a) return o(); const c = a + "end"; let u = 0; const d = () => { - e.removeEventListener(c, f), i() - }, f = t => { + e.removeEventListener(c, p), i() + }, p = t => { t.target === e && ++u >= l && d() }; setTimeout((() => { u < l && d() - }), s + 1), e.addEventListener(c, f) + }), s + 1), e.addEventListener(c, p) } function ra(e, t) { @@ -3112,18 +3112,18 @@ const ca = { }; function da(e, {value: t, oldValue: n}, o) { - e._modelValue = t, C(t) ? e.checked = h(t, o.props.value) > -1 : P(t) ? e.checked = t.has(o.props.value) : t !== n && (e.checked = p(t, ga(e, !0))) + e._modelValue = t, C(t) ? e.checked = h(t, o.props.value) > -1 : P(t) ? e.checked = t.has(o.props.value) : t !== n && (e.checked = f(t, ga(e, !0))) } -const fa = { +const pa = { created(e, {value: t}, n) { - e.checked = p(t, n.props.value), e._assign = aa(n), zi(e, "change", (() => { + e.checked = f(t, n.props.value), e._assign = aa(n), zi(e, "change", (() => { e._assign(ma(e)) })) }, beforeUpdate(e, {value: t, oldValue: n}, o) { - e._assign = aa(o), t !== n && (e.checked = p(t, o.props.value)) + e._assign = aa(o), t !== n && (e.checked = f(t, o.props.value)) } -}, pa = { +}, fa = { deep: !0, created(e, {value: t, modifiers: {number: n}}, o) { const r = P(t); zi(e, "change", (() => { @@ -3144,7 +3144,7 @@ function ha(e, t) { if (!n || C(t) || P(t)) { for (let o = 0, r = e.options.length; o < r; o++) { const r = e.options[o], i = ma(r); - if (n) C(t) ? r.selected = h(t, i) > -1 : r.selected = t.has(i); else if (p(ma(r), t)) return void (e.selectedIndex !== o && (e.selectedIndex = o)) + if (n) C(t) ? r.selected = h(t, i) > -1 : r.selected = t.has(i); else if (f(ma(r), t)) return void (e.selectedIndex !== o && (e.selectedIndex = o)) } n || -1 === e.selectedIndex || (e.selectedIndex = -1) } @@ -3175,7 +3175,7 @@ function ba(e, t, n, o, r) { const i = function (e, t) { switch (e) { case"SELECT": - return pa; + return fa; case"TEXTAREA": return ca; default: @@ -3183,7 +3183,7 @@ function ba(e, t, n, o, r) { case"checkbox": return ua; case"radio": - return fa; + return pa; default: return ca } @@ -3274,7 +3274,7 @@ const Sa = S({ let s = !1; if ("" === n || null == n) { const o = typeof e[t]; - "boolean" === o ? n = f(n) : null == n && "string" === o ? (n = "", s = !0) : "number" === o && (n = 0, s = !0) + "boolean" === o ? n = p(n) : null == n && "string" === o ? (n = "", s = !0) : "number" === o && (n = 0, s = !0) } try { e[t] = n @@ -3284,7 +3284,7 @@ const Sa = S({ }(e, t, o, i, a, s, l) : ("true-value" === t ? e._trueValue = o : "false-value" === t && (e._falseValue = o), function (e, t, n, o, r) { if (o && t.startsWith("xlink:")) null == n ? e.removeAttributeNS(Di, t.slice(6, t.length)) : e.setAttributeNS(Di, t, n); else { const o = d(t); - null == n || o && !f(n) ? e.removeAttribute(t) : e.setAttribute(t, o ? "" : n) + null == n || o && !p(n) ? e.removeAttribute(t) : e.setAttribute(t, o ? "" : n) } }(e, t, o, r)) }, @@ -3646,18 +3646,18 @@ const ds = { matched: [], meta: {}, redirectedFrom: void 0 -}, fs = Symbol(""); -var ps, hs; +}, ps = Symbol(""); +var fs, hs; function ms(e, t) { - return Na(new Error, {type: e, [fs]: !0}, t) + return Na(new Error, {type: e, [ps]: !0}, t) } function gs(e, t) { - return e instanceof Error && fs in e && (null == t || !!(e.type & t)) + return e instanceof Error && ps in e && (null == t || !!(e.type & t)) } -(hs = ps || (ps = {}))[hs.aborted = 4] = "aborted", hs[hs.cancelled = 8] = "cancelled", hs[hs.duplicated = 16] = "duplicated"; +(hs = fs || (fs = {}))[hs.aborted = 4] = "aborted", hs[hs.cancelled = 8] = "cancelled", hs[hs.duplicated = 16] = "duplicated"; const vs = {sensitive: !1, strict: !1, start: !0, end: !0}, bs = /[.+*?^${}()[\]/\\]/g; function ys(e, t) { @@ -3715,8 +3715,8 @@ function Ss(e, t, n) { throw new Error(`Invalid custom RegExp for param "${e}" (${d}): ` + s.message) } } - let f = n ? `((?:${d})(?:/(?:${d}))*)` : `(${d})`; - t || (f = c && l.length < 2 ? `(?:/${f})` : "/" + f), c && (f += "?"), r += f, a += 20, c && (a += -8), n && (a += -20), ".*" === d && (a += -50) + let p = n ? `((?:${d})(?:/(?:${d}))*)` : `(${d})`; + t || (p = c && l.length < 2 ? `(?:/${p})` : "/" + p), c && (p += "?"), r += p, a += 20, c && (a += -8), n && (a += -20), ".*" === d && (a += -50) } e.push(a) } @@ -3787,19 +3787,19 @@ function Ss(e, t, n) { })) : t("Invalid state to consume buffer"), c = "") } - function f() { + function p() { c += s } for (; l < e.length;) if (s = e[l++], "\\" !== s || 2 === n) switch (n) { case 0: - "/" === s ? (c && d(), a()) : ":" === s ? (d(), n = 1) : f(); + "/" === s ? (c && d(), a()) : ":" === s ? (d(), n = 1) : p(); break; case 4: - f(), n = o; + p(), n = o; break; case 1: - "(" === s ? n = 2 : Ts.test(s) ? f() : (d(), n = 0, "*" !== s && "?" !== s && "+" !== s && l--); + "(" === s ? n = 2 : Ts.test(s) ? p() : (d(), n = 0, "*" !== s && "?" !== s && "+" !== s && l--); break; case 2: ")" === s ? "\\" == u[u.length - 1] ? u = u.slice(0, -1) + s : n = 3 : u += s; @@ -3846,21 +3846,21 @@ function Es(e, t) { aliasOf: o ? o.record : l })) } - let d, f; + let d, p; for (const t of u) { const {path: u} = t; if (n && "/" !== u[0]) { const e = n.record.path, o = "/" === e[e.length - 1] ? "" : "/"; t.path = n.record.path + (u && o + u) } - if (d = Ss(t, n, c), o ? o.alias.push(d) : (f = f || d, f !== d && f.alias.push(d), s && e.name && !Cs(d) && i(e.name)), l.children) { + if (d = Ss(t, n, c), o ? o.alias.push(d) : (p = p || d, p !== d && p.alias.push(d), s && e.name && !Cs(d) && i(e.name)), l.children) { const e = l.children; for (let t = 0; t < e.length; t++) r(e[t], d, o && o.children[t]) } o = o || d, (d.record.components && Object.keys(d.record.components).length || d.record.name || d.record.redirect) && a(d) } - return f ? () => { - i(f) + return p ? () => { + i(p) } : za } @@ -4099,7 +4099,7 @@ function sl(e) { } } -const ll = fo({ +const ll = po({ name: "RouterLink", compatConfig: {MODE: 3}, props: { @@ -4140,7 +4140,7 @@ function dl(e, t) { return 1 === n.length ? n[0] : n } -const fl = fo({ +const pl = po({ name: "RouterView", inheritAttrs: !1, props: {name: {type: String, default: "default"}, route: Object}, @@ -4161,27 +4161,27 @@ const fl = fo({ const o = r.value, i = e.name, a = s.value, c = a && a.components[i]; if (!c) return dl(n.default, {Component: c, route: o}); const u = a.props[i], d = u ? !0 === u ? o.params : "function" == typeof u ? u(o) : u : null, - f = _i(c, Na({}, d, t, { + p = _i(c, Na({}, d, t, { onVnodeUnmounted: e => { e.component.isUnmounted && (a.instances[i] = null) }, ref: l })); - return dl(n.default, {Component: f, route: o}) || f + return dl(n.default, {Component: p, route: o}) || p } } }); -function pl(e) { +function fl(e) { const t = Es(e.routes, e), n = e.parseQuery || Js, o = e.stringifyQuery || Gs, r = e.history, i = rl(), a = rl(), s = rl(), l = on(ds); let c = ds; Ra && e.scrollBehavior && "scrollRestoration" in history && (history.scrollRestoration = "manual"); - const u = Da.bind(null, (e => "" + e)), d = Da.bind(null, Xs), f = Da.bind(null, Ys); + const u = Da.bind(null, (e => "" + e)), d = Da.bind(null, Xs), p = Da.bind(null, Ys); - function p(e, i) { + function f(e, i) { if (i = Na({}, i || l.value), "string" == typeof e) { const o = Va(n, e, i.path), a = t.resolve({path: o.path}, i), s = r.createHref(o.fullPath); - return Na(o, a, {params: f(a.params), hash: Ys(o.hash), redirectedFrom: void 0, href: s}) + return Na(o, a, {params: p(a.params), hash: Ys(o.hash), redirectedFrom: void 0, href: s}) } let a; if ("path" in e) a = Na({}, e, {path: Va(n, e.path, i.path).path}); else { @@ -4190,14 +4190,14 @@ function pl(e) { a = Na({}, e, {params: d(e.params)}), i.params = d(i.params) } const s = t.resolve(a, i), c = e.hash || ""; - s.params = u(f(s.params)); - const p = function (e, t) { + s.params = u(p(s.params)); + const f = function (e, t) { const n = t.query ? e(t.query) : ""; return t.path + (n && "?") + n + (t.hash || "") }(o, Na({}, e, {hash: (h = c, Qs(h).replace(qs, "{").replace(Ws, "}").replace(zs, "^")), path: s.path})); var h; - const m = r.createHref(p); - return Na({fullPath: p, hash: c, query: o === Gs ? Ks(e.query) : e.query || {}}, s, { + const m = r.createHref(f); + return Na({fullPath: f, hash: c, query: o === Gs ? Ks(e.query) : e.query || {}}, s, { redirectedFrom: void 0, href: m }) @@ -4229,17 +4229,17 @@ function pl(e) { } function b(e, t) { - const n = c = p(e), r = l.value, i = e.state, a = e.force, s = !0 === e.replace, u = v(n); + const n = c = f(e), r = l.value, i = e.state, a = e.force, s = !0 === e.replace, u = v(n); if (u) return b(Na(h(u), {state: "object" == typeof u ? Na({}, i, u.state) : i, force: a, replace: s}), t || n); const d = n; - let f; + let p; return d.redirectedFrom = t, !a && function (e, t, n) { const o = t.matched.length - 1, r = n.matched.length - 1; return o > -1 && o === r && $a(t.matched[o], n.matched[r]) && Qa(t.params, n.params) && e(t.query) === e(n.query) && t.hash === n.hash - }(o, r, n) && (f = ms(16, { + }(o, r, n) && (p = ms(16, { to: d, from: r - }), P(r, r, !0, !1)), (f ? Promise.resolve(f) : _(d, r)).catch((e => gs(e) ? gs(e, 2) ? e : B(e) : C(e, d, r))).then((e => { + }), P(r, r, !0, !1)), (p ? Promise.resolve(p) : _(d, r)).catch((e => gs(e) ? gs(e, 2) ? e : B(e) : C(e, d, r))).then((e => { if (e) { if (gs(e, 2)) return b(Na({replace: s}, h(e.to), { state: "object" == typeof e.to ? Na({}, i, e.to.state) : i, @@ -4309,7 +4309,7 @@ function pl(e) { function S() { T || (T = r.listen(((e, t, n) => { if (!M.listening) return; - const o = p(e), i = v(o); + const o = f(e), i = v(o); if (i) return void b(Na(i, {replace: !0}), o).catch(za); c = o; const a = l.value; @@ -4363,7 +4363,7 @@ function pl(e) { getRoutes: function () { return t.getRoutes().map((e => e.record)) }, - resolve: p, + resolve: f, options: e, push: g, replace: function (e) { @@ -4382,7 +4382,7 @@ function pl(e) { })) }, install(e) { - e.component("RouterLink", ll), e.component("RouterView", fl), e.config.globalProperties.$router = this, Object.defineProperty(e.config.globalProperties, "$route", { + e.component("RouterLink", ll), e.component("RouterView", pl), e.config.globalProperties.$router = this, Object.defineProperty(e.config.globalProperties, "$route", { enumerable: !0, get: () => sn(l) }), Ra && !O && l.value === ds && (O = !0, g(r.location).catch((e => { @@ -4517,14 +4517,14 @@ function Il(e, t, n) { function Ml({id: e, name: t, args: n}, o) { t = Ol(o, t); const r = t => { - e && dv.publishHandler("invokeViewApi." + e, t) + e && pv.publishHandler("invokeViewApi." + e, t) }, i = Ll[t]; i ? i(n, r) : r({}) } const Fl = S(Bl("service"), { invokeServiceMethod: (e, t, n) => { - const {subscribe: o, publishHandler: r} = dv, i = n ? Pl++ : 0; + const {subscribe: o, publishHandler: r} = pv, i = n ? Pl++ : 0; n && o("invokeServiceApi." + i, n, !0), r("invokeServiceApi", {id: i, name: e, args: t}) } }), jl = ge(!0); @@ -4580,7 +4580,7 @@ function Wl() { } function $l() { - Wl(), pe(), window.addEventListener("touchstart", Hl, jl), window.addEventListener("touchmove", ql, jl), window.addEventListener("touchend", Nl, jl), window.addEventListener("touchcancel", Nl, jl) + Wl(), fe(), window.addEventListener("touchstart", Hl, jl), window.addEventListener("touchmove", ql, jl), window.addEventListener("touchend", Nl, jl), window.addEventListener("touchcancel", Nl, jl) } var Ql, Ul, Xl = ["top", "left", "right", "bottom"], Yl = {}; @@ -4761,8 +4761,8 @@ function uc(e, t = !1) { } const dc = "M1.952 18.080q-0.32-0.352-0.416-0.88t0.128-0.976l0.16-0.352q0.224-0.416 0.64-0.528t0.8 0.176l6.496 4.704q0.384 0.288 0.912 0.272t0.88-0.336l17.312-14.272q0.352-0.288 0.848-0.256t0.848 0.352l-0.416-0.416q0.32 0.352 0.32 0.816t-0.32 0.816l-18.656 18.912q-0.32 0.352-0.8 0.352t-0.8-0.32l-7.936-8.064z", - fc = "M15.808 0.16q-4.224 0-7.872 2.176-3.552 2.112-5.632 5.728-2.144 3.744-2.144 8.128 0 4.192 2.144 7.872 2.112 3.52 5.632 5.632 3.68 2.144 7.872 2.144 4.384 0 8.128-2.144 3.616-2.080 5.728-5.632 2.176-3.648 2.176-7.872 0-4.384-2.176-8.128-2.112-3.616-5.728-5.728-3.744-2.176-8.128-2.176zM15.136 8.672h1.728q0.128 0 0.224 0.096t0.096 0.256l-0.384 10.24q0 0.064-0.048 0.112t-0.112 0.048h-1.248q-0.096 0-0.144-0.048t-0.048-0.112l-0.384-10.24q0-0.16 0.096-0.256t0.224-0.096zM16 23.328q-0.48 0-0.832-0.352t-0.352-0.848 0.352-0.848 0.832-0.352 0.832 0.352 0.352 0.848-0.352 0.848-0.832 0.352z", - pc = "M21.781 7.844l-9.063 8.594 9.063 8.594q0.25 0.25 0.25 0.609t-0.25 0.578q-0.25 0.25-0.578 0.25t-0.578-0.25l-9.625-9.125q-0.156-0.125-0.203-0.297t-0.047-0.359q0-0.156 0.047-0.328t0.203-0.297l9.625-9.125q0.25-0.25 0.578-0.25t0.578 0.25q0.25 0.219 0.25 0.578t-0.25 0.578z"; + pc = "M15.808 0.16q-4.224 0-7.872 2.176-3.552 2.112-5.632 5.728-2.144 3.744-2.144 8.128 0 4.192 2.144 7.872 2.112 3.52 5.632 5.632 3.68 2.144 7.872 2.144 4.384 0 8.128-2.144 3.616-2.080 5.728-5.632 2.176-3.648 2.176-7.872 0-4.384-2.176-8.128-2.112-3.616-5.728-5.728-3.744-2.176-8.128-2.176zM15.136 8.672h1.728q0.128 0 0.224 0.096t0.096 0.256l-0.384 10.24q0 0.064-0.048 0.112t-0.112 0.048h-1.248q-0.096 0-0.144-0.048t-0.048-0.112l-0.384-10.24q0-0.16 0.096-0.256t0.224-0.096zM16 23.328q-0.48 0-0.832-0.352t-0.352-0.848 0.352-0.848 0.832-0.352 0.832 0.352 0.352 0.848-0.352 0.848-0.832 0.352z", + fc = "M21.781 7.844l-9.063 8.594 9.063 8.594q0.25 0.25 0.25 0.609t-0.25 0.578q-0.25 0.25-0.578 0.25t-0.578-0.25l-9.625-9.125q-0.156-0.125-0.203-0.297t-0.047-0.359q0-0.156 0.047-0.328t0.203-0.297l9.625-9.125q0.25-0.25 0.578-0.25t0.578 0.25q0.25 0.219 0.25 0.578t-0.25 0.578z"; function hc(e, t = "#000", n = 27) { return Kr("svg", {width: n, height: n, viewBox: "0 0 32 32"}, [Kr("path", { @@ -4956,7 +4956,7 @@ class Pc { callMethod(e, t = {}) { const n = this.$vm[e]; - O(n) ? n(JSON.parse(JSON.stringify(t))) : this.$vm.ownerId && dv.publishHandler("onWxsInvokeCallMethod", { + O(n) ? n(JSON.parse(JSON.stringify(t))) : this.$vm.ownerId && pv.publishHandler("onWxsInvokeCallMethod", { nodeId: this.$el.__id, ownerId: this.$vm.ownerId, method: e, @@ -5192,7 +5192,7 @@ const tu = { e.__reserved = !0; const {props: t, mixins: n} = e; return t && t.animation || (n || (e.mixins = [])).push(tu), ou(e) -}, ou = e => (e.__reserved = !0, e.compatConfig = {MODE: 3}, fo(e)), ru = { +}, ou = e => (e.__reserved = !0, e.compatConfig = {MODE: 3}, po(e)), ru = { hoverClass: {type: String, default: "none"}, hoverStopPropagation: {type: Boolean, default: !1}, hoverStartTime: {type: [Number, String], default: 50}, @@ -5264,18 +5264,18 @@ const cu = lc("uf"), uu = lc("ul"); function du(e, t, n) { const o = mc(); n && !e || D(t) && Object.keys(t).forEach((r => { - n ? 0 !== r.indexOf("@") && 0 !== r.indexOf("uni-") && dv.on(`uni-${r}-${o}-${e}`, t[r]) : 0 === r.indexOf("uni-") ? dv.on(r, t[r]) : e && dv.on(`uni-${r}-${o}-${e}`, t[r]) + n ? 0 !== r.indexOf("@") && 0 !== r.indexOf("uni-") && pv.on(`uni-${r}-${o}-${e}`, t[r]) : 0 === r.indexOf("uni-") ? pv.on(r, t[r]) : e && pv.on(`uni-${r}-${o}-${e}`, t[r]) })) } -function fu(e, t, n) { +function pu(e, t, n) { const o = mc(); n && !e || D(t) && Object.keys(t).forEach((r => { - n ? 0 !== r.indexOf("@") && 0 !== r.indexOf("uni-") && dv.off(`uni-${r}-${o}-${e}`, t[r]) : 0 === r.indexOf("uni-") ? dv.off(r, t[r]) : e && dv.off(`uni-${r}-${o}-${e}`, t[r]) + n ? 0 !== r.indexOf("@") && 0 !== r.indexOf("uni-") && pv.off(`uni-${r}-${o}-${e}`, t[r]) : 0 === r.indexOf("uni-") ? pv.off(r, t[r]) : e && pv.off(`uni-${r}-${o}-${e}`, t[r]) })) } -const pu = nu({ +const fu = nu({ name: "Button", props: { id: {type: String, default: ""}, @@ -5305,9 +5305,9 @@ const pu = nu({ s.removeHandler(a) }))), function (e, t) { du(e.id, t), Gn((() => e.id), ((e, n) => { - fu(n, t, !0), du(e, t, !0) + pu(n, t, !0), du(e, t, !0) })), Ro((() => { - fu(e.id, t) + pu(e.id, t) })) }(e, {"label-click": a}), () => { const o = e.hoverClass, s = au(e, "disabled"), l = au(e, "loading"), c = au(e, "plain"), @@ -5617,7 +5617,7 @@ function ld(e, t, n, o) { }(e, t, 0, o)) } -let cd = !1, ud = 0, dd = 0, fd = 960, pd = 375, hd = 750; +let cd = !1, ud = 0, dd = 0, pd = 960, fd = 375, hd = 750; function md() { const {platform: e, pixelRatio: t, windowWidth: n} = function () { @@ -5635,10 +5635,10 @@ function gd(e, t) { const vd = sd(0, ((e, t) => { if (0 === ud && (md(), function () { const e = __uniConfig.globalStyle || {}; - fd = gd(e.rpxCalcMaxDeviceWidth, 960), pd = gd(e.rpxCalcBaseDeviceWidth, 375), hd = gd(e.rpxCalcBaseDeviceWidth, 750) + pd = gd(e.rpxCalcMaxDeviceWidth, 960), fd = gd(e.rpxCalcBaseDeviceWidth, 375), hd = gd(e.rpxCalcBaseDeviceWidth, 750) }()), 0 === (e = Number(e))) return 0; let n = t || ud; - n = e === hd || n <= fd ? n : pd; + n = e === hd || n <= pd ? n : fd; let o = e / 750 * n; return o < 0 && (o = -o), o = Math.floor(o + 1e-4), 0 === o && (o = 1 !== dd && cd ? .5 : 1), e < 0 ? -o : o })); @@ -5966,7 +5966,7 @@ class Rd { }(), n = [], o = null, r = null; function i(e) { - this.time = e.time, this.target = e.target, this.rootBounds = h(e.rootBounds), this.boundingClientRect = h(e.boundingClientRect), this.intersectionRect = h(e.intersectionRect || p()), this.isIntersecting = !!e.intersectionRect; + this.time = e.time, this.target = e.target, this.rootBounds = h(e.rootBounds), this.boundingClientRect = h(e.boundingClientRect), this.intersectionRect = h(e.intersectionRect || f()), this.isIntersecting = !!e.intersectionRect; var t = this.boundingClientRect, n = t.width * t.height, o = this.intersectionRect, r = o.width * o.height; this.intersectionRatio = n ? Number((r / n).toFixed(4)) : this.isIntersecting ? 1 : 0 @@ -6008,7 +6008,7 @@ class Rd { return a >= 0 && s >= 0 && {top: n, bottom: o, left: r, right: i, width: a, height: s} || null } - function f(e) { + function p(e) { var t; try { t = e.getBoundingClientRect() @@ -6021,10 +6021,10 @@ class Rd { left: t.left, width: t.right - t.left, height: t.bottom - t.top - }), t) : p() + }), t) : f() } - function p() { + function f() { return {top: 0, bottom: 0, left: 0, right: 0, width: 0, height: 0} } @@ -6072,7 +6072,7 @@ class Rd { a.prototype.THROTTLE_TIMEOUT = 100, a.prototype.POLL_INTERVAL = null, a.prototype.USE_MUTATION_OBSERVER = !0, a._setupCrossOriginUpdater = function () { return o || (o = function (e, t) { - r = e && t ? m(e, t) : p(), n.forEach((function (e) { + r = e && t ? m(e, t) : f(), n.forEach((function (e) { e._checkForIntersections() })) }), o @@ -6155,11 +6155,11 @@ class Rd { for (var t = 0; t < e.length; t++) e[t]() }, a.prototype._checkForIntersections = function () { if (this.root || !o || r) { - var e = this._rootIsInDom(), t = e ? this._getRootRect() : p(); + var e = this._rootIsInDom(), t = e ? this._getRootRect() : f(); this._observationTargets.forEach((function (n) { - var r = n.element, a = f(r), l = this._rootContainsTarget(r), c = n.entry, + var r = n.element, a = p(r), l = this._rootContainsTarget(r), c = n.entry, u = e && l && this._computeTargetAndRootIntersection(r, a, t), d = null; - this._rootContainsTarget(r) ? o && !this.root || (d = t) : d = p(); + this._rootContainsTarget(r) ? o && !this.root || (d = t) : d = f(); var h = n.entry = new i({ time: s(), target: r, @@ -6176,12 +6176,12 @@ class Rd { var c = null, u = 1 == s.nodeType ? window.getComputedStyle(s) : {}; if ("none" == u.display) return null; if (s == this.root || 9 == s.nodeType) if (l = !0, s == this.root || s == t) o && !this.root ? !r || 0 == r.width && 0 == r.height ? (s = null, c = null, a = null) : c = r : c = i; else { - var p = v(s), h = p && f(p), - g = p && this._computeTargetAndRootIntersection(p, h, i); - h && g ? (s = p, c = m(h, g)) : (s = null, a = null) + var f = v(s), h = f && p(f), + g = f && this._computeTargetAndRootIntersection(f, h, i); + h && g ? (s = f, c = m(h, g)) : (s = null, a = null) } else { var b = s.ownerDocument; - s != b.body && s != b.documentElement && "visible" != u.overflow && (c = f(s)) + s != b.body && s != b.documentElement && "visible" != u.overflow && (c = p(s)) } if (c && (a = d(c, a)), !a) break; s = s && v(s) @@ -6190,7 +6190,7 @@ class Rd { } }, a.prototype._getRootRect = function () { var e; - if (this.root && !b(this.root)) e = f(this.root); else { + if (this.root && !b(this.root)) e = p(this.root); else { var n = b(this.root) ? this.root : t, o = n.documentElement, r = n.body; e = { top: 0, @@ -6235,10 +6235,10 @@ class Rd { r = new IntersectionObserver((e => { e.forEach((e => { n({ - intersectionRatio: Sf(e), - intersectionRect: Tf(e.intersectionRect), - boundingClientRect: Tf(e.boundingClientRect), - relativeRect: Tf(e.rootBounds), + intersectionRatio: Tp(e), + intersectionRect: xp(e.intersectionRect), + boundingClientRect: xp(e.boundingClientRect), + relativeRect: xp(e.rootBounds), time: Date.now(), dataset: he(e.target), id: e.target.id @@ -6728,7 +6728,7 @@ const Qd = sd(0, (e => ((e = re(e)) && !gc(e) && (e = null), new $d(e || _c()))) if (!t) return !1; return t.$vm.$locale !== e && (t.$vm.$locale = e, navigator.cookieEnabled && window.localStorage && (localStorage.UNI_LOCALE = e), fv.invokeOnCallback("onLocaleChange", {locale: e}), !0) })), Yd = {onUnhandledRejection: [], onPageNotFound: [], onError: [], onShow: [], onHide: []}; -const Jd = sd(0, (() => S({}, Pf))), Gd = { +const Jd = sd(0, (() => S({}, Bp))), Gd = { formatArgs: { count(e, t) { (!e || e <= 0) && (t.count = 9) @@ -6750,7 +6750,7 @@ const Jd = sd(0, (() => S({}, Pf))), Gd = { e || (t.extension = ["*"]) } } -}, Zd = (Boolean, ["all", "image", "video"]), ef = { +}, Zd = (Boolean, ["all", "image", "video"]), ep = { formatArgs: { count(e, t) { (!e || e <= 0) && (t.count = 100) @@ -6763,7 +6763,7 @@ const Jd = sd(0, (() => S({}, Pf))), Gd = { e || (t.extension = [""]) } } -}, tf = { +}, tp = { formatArgs: { urls(e, t) { t.urls = e.map((e => I(e) && e ? gu(e) : "")) @@ -6771,9 +6771,9 @@ const Jd = sd(0, (() => S({}, Pf))), Gd = { "number" == typeof e ? t.current = e > 0 && e < t.urls.length ? e : 0 : I(e) && e && (t.current = gu(e)) } } -}, nf = "json", of = ["text", "arraybuffer"], rf = encodeURIComponent; +}, np = "json", op = ["text", "arraybuffer"], rp = encodeURIComponent; ArrayBuffer, Boolean; -const af = { +const ip = { formatArgs: { method(e, t) { t.method = Fu((e || "").toUpperCase(), Mu) @@ -6793,7 +6793,7 @@ const af = { })); for (const s in t) if (A(t, s)) { let e = t[s]; - null == e ? e = "" : D(e) && (e = JSON.stringify(e)), a[rf(s)] = rf(e) + null == e ? e = "" : D(e) && (e = JSON.stringify(e)), a[rp(s)] = rp(e) } return r = Object.keys(a).map((e => `${e}=${a[e]}`)).join("&"), e + (r ? "?" + r : "") + (o ? "#" + o : "") }(e, t.data)) @@ -6801,18 +6801,18 @@ const af = { const n = t.header = e || {}; t.method !== Mu[0] && (Object.keys(n).find((e => "content-type" === e.toLowerCase())) || (n["Content-Type"] = "application/json")) }, dataType(e, t) { - t.dataType = (e || nf).toLowerCase() + t.dataType = (e || np).toLowerCase() }, responseType(e, t) { - t.responseType = (e || "").toLowerCase(), -1 === of.indexOf(t.responseType) && (t.responseType = "text") + t.responseType = (e || "").toLowerCase(), -1 === op.indexOf(t.responseType) && (t.responseType = "text") } } -}, sf = { +}, ap = { formatArgs: { header(e, t) { t.header = e || {} } } -}, lf = { +}, sp = { formatArgs: { filePath(e, t) { e && (t.filePath = gu(e)) @@ -6823,9 +6823,9 @@ const af = { } } }; -const cf = {url: {type: String, required: !0}}, - uf = (mf(["slide-in-right", "slide-in-left", "slide-in-top", "slide-in-bottom", "fade-in", "zoom-out", "zoom-fade-out", "pop-in", "none"]), mf(["slide-out-right", "slide-out-left", "slide-out-top", "slide-out-bottom", "fade-out", "zoom-in", "zoom-fade-in", "pop-out", "none"]), bf("navigateTo")), - df = bf("redirectTo"), ff = bf("reLaunch"), pf = bf("switchTab"), hf = { +const lp = {url: {type: String, required: !0}}, + cp = (hp(["slide-in-right", "slide-in-left", "slide-in-top", "slide-in-bottom", "fade-in", "zoom-out", "zoom-fade-out", "pop-in", "none"]), hp(["slide-out-right", "slide-out-left", "slide-out-top", "slide-out-bottom", "fade-out", "zoom-in", "zoom-fade-in", "pop-out", "none"]), vp("navigateTo")), + up = vp("redirectTo"), dp = vp("reLaunch"), pp = vp("switchTab"), fp = { formatArgs: { delta(e, t) { e = parseInt(e + "") || 1, t.delta = Math.min(Hh().length - 1, e) @@ -6833,7 +6833,7 @@ const cf = {url: {type: String, required: !0}}, } }; -function mf(e) { +function hp(e) { return { animationType: { type: String, validator(t) { @@ -6843,17 +6843,17 @@ function mf(e) { } } -let gf; +let mp; -function vf() { - gf = "" +function gp() { + mp = "" } -function bf(e) { - return {formatArgs: {url: yf(e)}, beforeAll: vf} +function vp(e) { + return {formatArgs: {url: bp(e)}, beforeAll: gp} } -function yf(e) { +function bp(e) { return function (t, n) { if (!t) return 'Missing required args: "url"'; const o = (t = function (e) { @@ -6879,8 +6879,8 @@ function yf(e) { o.push(n + "=" + encodeURIComponent(r)) })), o.length ? e + "?" + o.join("&") : e }(t), "unPreloadPage" !== e) if ("preloadPage" !== e) { - if (gf === t && "appLaunch" !== n.openType) return `${gf} locked`; - __uniConfig.ready && (gf = t) + if (mp === t && "appLaunch" !== n.openType) return `${mp} locked`; + __uniConfig.ready && (mp = t) } else if (r.meta.isTabBar) { const e = Hh(), t = r.path.slice(1); if (e.find((e => e.route === t))) return "tabBar page `" + t + "` already exists" @@ -6888,36 +6888,36 @@ function yf(e) { } } -const _f = {formatArgs: {duration: 300}}, wf = ["success", "loading", "none", "error"], xf = (Boolean, { +const yp = {formatArgs: {duration: 300}}, _p = ["success", "loading", "none", "error"], wp = (Boolean, { formatArgs: { title: "", icon(e, t) { - t.icon = Fu(e, wf) + t.icon = Fu(e, _p) }, image(e, t) { t.image = e ? gu(e) : "" }, duration: 1500, mask: !1 } }); -function Tf(e) { +function xp(e) { const {bottom: t, height: n, left: o, right: r, top: i, width: a} = e || {}; return {bottom: t, height: n, left: o, right: r, top: i, width: a} } -function Sf(e) { +function Tp(e) { const {intersectionRatio: t, boundingClientRect: {height: n, width: o}, intersectionRect: {height: r, width: i}} = e; return 0 !== t ? t : r === n ? i / o : r / n } -const Ef = {}; +const Sp = {}; -function kf(e, t) { - const n = Ef[e]; +function Ep(e, t) { + const n = Sp[e]; return n ? Promise.resolve(n) : /^data:[a-z-]+\/[a-z-]+;base64,/.test(e) ? Promise.resolve(function (e) { const t = e.split(","), n = t[0].match(/:(.*?);/), o = n ? n[1] : "", r = atob(t[1]); let i = r.length; const a = new Uint8Array(i); for (; i--;) a[i] = r.charCodeAt(i); - return Af(a, o) + return kp(a, o) }(e)) : t ? Promise.reject(new Error("not find")) : new Promise(((t, n) => { const o = new XMLHttpRequest; o.open("GET", e, !0), o.responseType = "blob", o.onload = function () { @@ -6926,7 +6926,7 @@ function kf(e, t) { })) } -function Af(e, t) { +function kp(e, t) { let n; if (e instanceof File) n = e; else { t = t || e.type || ""; @@ -6943,20 +6943,20 @@ function Af(e, t) { return n } -function Cf(e) { - for (const n in Ef) if (A(Ef, n)) { - if (Ef[n] === e) return n +function Ap(e) { + for (const n in Sp) if (A(Sp, n)) { + if (Sp[n] === e) return n } var t = (window.URL || window.webkitURL).createObjectURL(e); - return Ef[t] = e, t + return Sp[t] = e, t } -function Bf(e) { - (window.URL || window.webkitURL).revokeObjectURL(e), delete Ef[e] +function Cp(e) { + (window.URL || window.webkitURL).revokeObjectURL(e), delete Sp[e] } -const Pf = Kc(), Lf = Kc(); -const Of = nu({ +const Bp = Kc(), Pp = Kc(); +const Lp = nu({ name: "ResizeSensor", props: {initial: {type: Boolean, default: !1}}, emits: ["resize"], @@ -6986,52 +6986,52 @@ const Of = nu({ } }); -function If() { +function Op() { } -const Mf = { +const Ip = { cursorSpacing: {type: [Number, String], default: 0}, showConfirmBar: {type: [Boolean, String], default: "auto"}, adjustPosition: {type: [Boolean, String], default: !0}, autoBlur: {type: [Boolean, String], default: !1} }; -function Ff(e, t, n) { +function Mp(e, t, n) { function o(e) { const t = yi((() => 0 === String(navigator.vendor).indexOf("Apple"))); e.addEventListener("focus", (() => { - clearTimeout(undefined), document.addEventListener("click", If, !1) + clearTimeout(undefined), document.addEventListener("click", Op, !1) })); e.addEventListener("blur", (() => { - t.value && e.blur(), document.removeEventListener("click", If, !1), t.value && document.documentElement.scrollTo(document.documentElement.scrollLeft, document.documentElement.scrollTop) + t.value && e.blur(), document.removeEventListener("click", Op, !1), t.value && document.documentElement.scrollTo(document.documentElement.scrollLeft, document.documentElement.scrollTop) })) } Gn((() => t.value), (e => e && o(e))) } -var jf = /^<([-A-Za-z0-9_]+)((?:\s+[a-zA-Z_:][-a-zA-Z0-9_:.]*(?:\s*=\s*(?:(?:"[^"]*")|(?:'[^']*')|[^>\s]+))?)*)\s*(\/?)>/, - Rf = /^<\/([-A-Za-z0-9_]+)[^>]*>/, - Nf = /([a-zA-Z_:][-a-zA-Z0-9_:.]*)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|([^>\s]+)))?/g, - Df = $f("area,base,basefont,br,col,frame,hr,img,input,link,meta,param,embed,command,keygen,source,track,wbr"), - zf = $f("a,address,article,applet,aside,audio,blockquote,button,canvas,center,dd,del,dir,div,dl,dt,fieldset,figcaption,figure,footer,form,frameset,h1,h2,h3,h4,h5,h6,header,hgroup,hr,iframe,isindex,li,map,menu,noframes,noscript,object,ol,output,p,pre,section,script,table,tbody,td,tfoot,th,thead,tr,ul,video"), - Hf = $f("abbr,acronym,applet,b,basefont,bdo,big,br,button,cite,code,del,dfn,em,font,i,iframe,img,input,ins,kbd,label,map,object,q,s,samp,script,select,small,span,strike,strong,sub,sup,textarea,tt,u,var"), - qf = $f("colgroup,dd,dt,li,options,p,td,tfoot,th,thead,tr"), - Vf = $f("checked,compact,declare,defer,disabled,ismap,multiple,nohref,noresize,noshade,nowrap,readonly,selected"), - Wf = $f("script,style"); +var Fp = /^<([-A-Za-z0-9_]+)((?:\s+[a-zA-Z_:][-a-zA-Z0-9_:.]*(?:\s*=\s*(?:(?:"[^"]*")|(?:'[^']*')|[^>\s]+))?)*)\s*(\/?)>/, + jp = /^<\/([-A-Za-z0-9_]+)[^>]*>/, + Rp = /([a-zA-Z_:][-a-zA-Z0-9_:.]*)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|([^>\s]+)))?/g, + Np = Wp("area,base,basefont,br,col,frame,hr,img,input,link,meta,param,embed,command,keygen,source,track,wbr"), + Dp = Wp("a,address,article,applet,aside,audio,blockquote,button,canvas,center,dd,del,dir,div,dl,dt,fieldset,figcaption,figure,footer,form,frameset,h1,h2,h3,h4,h5,h6,header,hgroup,hr,iframe,isindex,li,map,menu,noframes,noscript,object,ol,output,p,pre,section,script,table,tbody,td,tfoot,th,thead,tr,ul,video"), + zp = Wp("abbr,acronym,applet,b,basefont,bdo,big,br,button,cite,code,del,dfn,em,font,i,iframe,img,input,ins,kbd,label,map,object,q,s,samp,script,select,small,span,strike,strong,sub,sup,textarea,tt,u,var"), + Hp = Wp("colgroup,dd,dt,li,options,p,td,tfoot,th,thead,tr"), + qp = Wp("checked,compact,declare,defer,disabled,ismap,multiple,nohref,noresize,noshade,nowrap,readonly,selected"), + Vp = Wp("script,style"); -function $f(e) { +function Wp(e) { for (var t = {}, n = e.split(","), o = 0; o < n.length; o++) t[n[o]] = !0; return t } -const Qf = { +const $p = { src: {type: String, default: ""}, mode: {type: String, default: "scaleToFill"}, lazyLoad: {type: [Boolean, String], default: !1}, draggable: {type: Boolean, default: !1} - }, Uf = {widthFix: ["offsetWidth", "height", (e, t) => e / t], heightFix: ["offsetHeight", "width", (e, t) => e * t]}, - Xf = { + }, Qp = {widthFix: ["offsetWidth", "height", (e, t) => e / t], heightFix: ["offsetHeight", "width", (e, t) => e * t]}, + Up = { aspectFit: ["center center", "contain"], aspectFill: ["center center", "cover"], widthFix: [, "100% 100%"], @@ -7045,12 +7045,12 @@ const Qf = { "top right": ["right top"], "bottom left": ["left bottom"], "bottom right": ["right bottom"] - }, Yf = nu({ - name: "Image", props: Qf, setup(e, {emit: t}) { + }, Xp = nu({ + name: "Image", props: $p, setup(e, {emit: t}) { const n = nn(null), o = function (e, t) { const n = nn(""), o = yi((() => { let e = "auto", o = ""; - const r = Xf[t.mode]; + const r = Up[t.mode]; return r ? (r[0] && (o = r[0]), r[1] && (e = r[1])) : (o = "0% 0%", e = "100% 100%"), `background-image:${n.value ? 'url("' + n.value + '")' : "none"};background-position:${o};background-size:${e};` })), r = qt({ rootEl: e, @@ -7067,13 +7067,13 @@ const Qf = { })), r }(n, e), r = lu(n, t), {fixSize: i} = function (e, t, n) { const o = () => { - const {mode: o} = t, r = Uf[o]; + const {mode: o} = t, r = Qp[o]; if (!r) return; const {origWidth: i, origHeight: a} = n, s = i && a ? i / a : 0; if (!s) return; const l = e.value, c = l[r[0]]; c && (l.style[r[1]] = function (e) { - Jf && e > 10 && (e = 2 * Math.round(e / 2)); + Yp && e > 10 && (e = 2 * Math.round(e / 2)); return e }(r[2](c, s)) + "px") }, r = () => { @@ -7081,7 +7081,7 @@ const Qf = { t.width = o, t.height = r }; return Gn((() => t.mode), ((e, t) => { - Uf[t] && r(), Uf[e] && o() + Qp[t] && r(), Qp[e] && o() })), {fixSize: o, resetSize: r} }(n, e, o); return function (e, t, n, o, r) { @@ -7105,42 +7105,42 @@ const Qf = { Gn((() => e.src), (e => l(e))), Gn((() => e.imgSrc), (e => { !e && a && (a.remove(), a = null) })), Io((() => l(e.src))), jo((() => c())) - }(o, e, n, i, r), () => Kr("uni-image", {ref: n}, [Kr("div", {style: o.modeStyle}, null, 4), Uf[e.mode] ? Kr(Of, {onResize: i}, null, 8, ["onResize"]) : Kr("span", null, null)], 512) + }(o, e, n, i, r), () => Kr("uni-image", {ref: n}, [Kr("div", {style: o.modeStyle}, null, 4), Qp[e.mode] ? Kr(Lp, {onResize: i}, null, 8, ["onResize"]) : Kr("span", null, null)], 512) } }); -const Jf = "Google Inc." === navigator.vendor; -const Gf = ge(!0), Kf = []; -let Zf, ep = 0; -const tp = e => Kf.forEach((t => t.userAction = e)); +const Yp = "Google Inc." === navigator.vendor; +const Jp = ge(!0), Gp = []; +let Kp, Zp = 0; +const ef = e => Gp.forEach((t => t.userAction = e)); -function np(e = {userAction: !1}) { - if (!Zf) { +function tf(e = {userAction: !1}) { + if (!Kp) { ["touchstart", "touchmove", "touchend", "mousedown", "mouseup"].forEach((e => { document.addEventListener(e, (function () { - !ep && tp(!0), ep++, setTimeout((() => { - !--ep && tp(!1) + !Zp && ef(!0), Zp++, setTimeout((() => { + !--Zp && ef(!1) }), 0) - }), Gf) - })), Zf = !0 + }), Jp) + })), Kp = !0 } - Kf.push(e) + Gp.push(e) } -const op = () => !!ep; +const nf = () => !!Zp; -function rp() { +function of() { const e = qt({userAction: !1}); return Io((() => { - np(e) + tf(e) })), jo((() => { !function (e) { - const t = Kf.indexOf(e); - t >= 0 && Kf.splice(t, 1) + const t = Gp.indexOf(e); + t >= 0 && Gp.splice(t, 1) }(e) })), {state: e} } -function ip() { +function rf() { const e = qt({attrs: {}}); return Io((() => { let t = ui(); @@ -7151,18 +7151,18 @@ function ip() { })), {state: e} } -function ap(e, t) { +function af(e, t) { const n = document.activeElement; if (!n) return t({}); const o = {}; ["input", "textarea"].includes(n.tagName.toLowerCase()) && (o.start = n.selectionStart, o.end = n.selectionEnd), t(o) } -function sp(e, t) { +function sf(e, t) { return "number" === t && isNaN(Number(e)) && (e = ""), null === e ? "" : String(e) } -const lp = ["none", "text", "decimal", "numeric", "tel", "search", "email", "url"], cp = S({}, { +const lf = ["none", "text", "decimal", "numeric", "tel", "search", "email", "url"], cf = S({}, { name: {type: String, default: ""}, modelValue: {type: [String, Number], default: ""}, value: {type: [String, Number], default: ""}, @@ -7182,13 +7182,13 @@ const lp = ["none", "text", "decimal", "numeric", "tel", "search", "email", "url confirmHold: {type: Boolean, default: !1}, ignoreCompositionEvent: {type: Boolean, default: !0}, step: {type: String, default: "0.000000000000000001"}, - inputmode: {type: String, default: void 0, validator: e => !!~lp.indexOf(e)} - }, Mf), - up = ["input", "focus", "blur", "update:value", "update:modelValue", "update:focus", "compositionstart", "compositionupdate", "compositionend", "keyboardheightchange"]; + inputmode: {type: String, default: void 0, validator: e => !!~lf.indexOf(e)} + }, Ip), + uf = ["input", "focus", "blur", "update:value", "update:modelValue", "update:focus", "compositionstart", "compositionupdate", "compositionend", "keyboardheightchange"]; -function dp(e, t, n, o) { +function df(e, t, n, o) { const r = xe((n => { - t.value = sp(n, e.type) + t.value = sf(n, e.type) }), 100, {setTimeout: setTimeout, clearTimeout: clearTimeout}); Gn((() => e.modelValue), r), Gn((() => e.value), r); const i = function (e, t) { @@ -7216,8 +7216,8 @@ function dp(e, t, n, o) { } } -function fp(e, t) { - rp(); +function pf(e, t) { + of(); const n = yi((() => e.autoFocus || e.focus)); function o() { @@ -7236,8 +7236,8 @@ function fp(e, t) { })) } -function pp(e, t, n, o) { - Il(yc(), "getSelectedTextRange", ap); +function ff(e, t, n, o) { + Il(yc(), "getSelectedTextRange", af); const {fieldRef: r, state: i, trigger: a} = function (e, t, n) { const o = nn(null), r = lu(t, n), i = yi((() => { const t = Number(e.selectionStart); @@ -7251,7 +7251,7 @@ function pp(e, t, n, o) { })), l = yi((() => { var t = Number(e.maxlength); return isNaN(t) ? 140 : t - })), c = sp(e.modelValue, e.type) || sp(e.value, e.type), u = qt({ + })), c = sf(e.modelValue, e.type) || sf(e.value, e.type), u = qt({ value: c, valueOrigin: c, maxlength: l, @@ -7266,9 +7266,9 @@ function pp(e, t, n, o) { state: u, trigger: r } - }(e, t, n), {triggerInput: s} = dp(e, i, n, a); - fp(e, r), Ff(0, r); - const {state: l} = ip(); + }(e, t, n), {triggerInput: s} = df(e, i, n, a); + pf(e, r), Mp(0, r); + const {state: l} = rf(); !function (e, t) { const n = Xn(cu, !1); if (!n) return; @@ -7335,13 +7335,13 @@ function pp(e, t, n, o) { } } -const hp = nu({ +const hf = nu({ name: "Input", - props: S({}, cp, { + props: S({}, cf, { placeholderClass: {type: String, default: "input-placeholder"}, textContentType: {type: String, default: ""} }), - emits: ["confirm", ...up], + emits: ["confirm", ...uf], setup(e, {emit: t}) { const n = ["text", "number", "idcard", "digit", "password", "tel"], o = ["off", "one-time-code"], r = yi((() => { @@ -7365,7 +7365,7 @@ const hp = nu({ return o[-1 !== t ? t : -1 !== n ? n : 0] })); let a, s = nn(""); - const l = nn(null), {fieldRef: c, state: u, scopedAttrsState: d, fixDisabledColor: f, trigger: p} = pp(e, l, t, ((e, t) => { + const l = nn(null), {fieldRef: c, state: u, scopedAttrsState: d, fixDisabledColor: p, trigger: f} = ff(e, l, t, ((e, t) => { const n = e.target; if ("number" === r.value) { if (a && (n.removeEventListener("blur", a), a = null), n.validity && !n.validity.valid) { @@ -7395,11 +7395,11 @@ const hp = nu({ function g(t) { if ("Enter" !== t.key) return; const n = t.target; - t.stopPropagation(), p("confirm", t, {value: n.value}), !e.confirmHold && n.blur() + t.stopPropagation(), f("confirm", t, {value: n.value}), !e.confirmHold && n.blur() } return () => { - let t = e.disabled && f ? Kr("input", { + let t = e.disabled && p ? Kr("input", { key: "disabled-input", ref: c, value: u.value, @@ -7436,11 +7436,11 @@ const hp = nu({ } } }); -const mp = ["class", "style"], gp = /^on[A-Z]+/, vp = (e = {}) => { +const mf = ["class", "style"], gf = /^on[A-Z]+/, vf = (e = {}) => { const {excludeListeners: t = !1, excludeKeys: n = []} = e, o = ui(), r = on({}), i = on({}), a = on({}), - s = n.concat(mp); + s = n.concat(mf); return o.attrs = qt(o.attrs), Yn((() => { - const e = (n = o.attrs, Object.keys(n).map((e => [e, n[e]]))).reduce(((e, [n, o]) => (s.includes(n) ? e.exclude[n] = o : gp.test(n) ? (t || (e.attrs[n] = o), e.listeners[n] = o) : e.attrs[n] = o, e)), { + const e = (n = o.attrs, Object.keys(n).map((e => [e, n[e]]))).reduce(((e, [n, o]) => (s.includes(n) ? e.exclude[n] = o : gf.test(n) ? (t || (e.attrs[n] = o), e.listeners[n] = o) : e.attrs[n] = o, e)), { exclude: {}, attrs: {}, listeners: {} @@ -7450,14 +7450,14 @@ const mp = ["class", "style"], gp = /^on[A-Z]+/, vp = (e = {}) => { })), {$attrs: r, $listeners: i, $excludeAttrs: a} }; -function bp(e) { +function bf(e) { const t = []; return C(e) && e.forEach((e => { - Qr(e) ? e.type === Mr ? t.push(...bp(e.children)) : t.push(e) : C(e) && t.push(...bp(e)) + Qr(e) ? e.type === Mr ? t.push(...bf(e.children)) : t.push(e) : C(e) && t.push(...bf(e)) })), t } -const yp = nu({ +const yf = nu({ inheritAttrs: !1, name: "MovableArea", props: {scaleArea: {type: Boolean, default: !1}}, setup(e, {slots: t}) { const n = nn(null), o = nn(!1); let {setContexts: r, events: i} = function (e, t) { @@ -7488,7 +7488,7 @@ const yp = nu({ let n = t.touches; if (n && n.length > 1) { let t = {x: n[1].pageX - n[0].pageX, y: n[1].pageY - n[0].pageY}; - if (i.value = _p(t), r.x = t.x, r.y = t.y, !e.scaleArea) { + if (i.value = _f(t), r.x = t.x, r.y = t.y, !e.scaleArea) { let e = c(n[0].target), t = c(n[1].target); a = e && e === t ? e : null } @@ -7499,18 +7499,18 @@ const yp = nu({ e.preventDefault(); let n = {x: t[1].pageX - t[0].pageX, y: t[1].pageY - t[0].pageY}; if (null !== r.x && i.value && i.value > 0) { - l(_p(n) / i.value) + l(_f(n) / i.value) } r.x = n.x, r.y = n.y } - })), f = su((t => { + })), p = su((t => { let n = t.touches; n && n.length || t.changedTouches && (r.x = 0, r.y = 0, i.value = null, e.scaleArea ? s.forEach((function (e) { e._endScale() })) : a && a._endScale()) })); - function p() { + function f() { h(), s.forEach((function (e, t) { e.setParent() })) @@ -7530,10 +7530,10 @@ const yp = nu({ return Un("movableAreaWidth", n), Un("movableAreaHeight", o), { setContexts(e) { s = e - }, events: {_onTouchstart: u, _onTouchmove: d, _onTouchend: f, _resize: p} + }, events: {_onTouchstart: u, _onTouchmove: d, _onTouchend: p, _resize: f} } }(e, n); - const {$listeners: a, $attrs: s, $excludeAttrs: l} = vp(), c = a.value; + const {$listeners: a, $attrs: s, $excludeAttrs: l} = vf(), c = a.value; ["onTouchstart", "onTouchmove", "onTouchend"].forEach((e => { let t = c[e], n = i[`_${e}`]; c[e] = t ? [].concat(t, n) : n @@ -7543,7 +7543,7 @@ const yp = nu({ let u = []; const d = []; - function f() { + function p() { const e = []; for (let t = 0; t < u.length; t++) { let n = u[t]; @@ -7555,31 +7555,31 @@ const yp = nu({ } return Un("_isMounted", o), Un("movableAreaRootRef", n), Un("addMovableViewContext", (e => { - d.push(e), f() + d.push(e), p() })), Un("removeMovableViewContext", (e => { const t = d.indexOf(e); - t >= 0 && (d.splice(t, 1), f()) + t >= 0 && (d.splice(t, 1), p()) })), () => { const e = t.default && t.default(); - return u = bp(e), Kr("uni-movable-area", ii({ref: n}, s.value, l.value, c), [Kr(Of, {onResize: i._resize}, null, 8, ["onResize"]), u], 16) + return u = bf(e), Kr("uni-movable-area", ii({ref: n}, s.value, l.value, c), [Kr(Lp, {onResize: i._resize}, null, 8, ["onResize"]), u], 16) } } }); -function _p(e) { +function _f(e) { return Math.sqrt(e.x * e.x + e.y * e.y) } -const wp = function (e, t, n, o) { +const wf = function (e, t, n, o) { e.addEventListener(t, (e => { O(n) && !1 === n(e) && ((void 0 === e.cancelable || e.cancelable) && e.preventDefault(), e.stopPropagation()) }), {passive: !1}) }; -let xp, Tp; +let xf, Tf; -function Sp(e, t, n) { +function Sf(e, t, n) { jo((() => { - document.removeEventListener("mousemove", xp), document.removeEventListener("mouseup", Tp) + document.removeEventListener("mousemove", xf), document.removeEventListener("mouseup", Tf) })); let o = 0, r = 0, i = 0, a = 0; const s = function (e, n, s, l) { @@ -7595,29 +7595,29 @@ function Sp(e, t, n) { })) return !1 }; let l, c, u = null; - wp(e, "touchstart", (function (e) { + wf(e, "touchstart", (function (e) { if (l = !0, 1 === e.touches.length && !u) return u = e, o = i = e.touches[0].pageX, r = a = e.touches[0].pageY, s(e, "start", o, r) - })), wp(e, "mousedown", (function (e) { + })), wf(e, "mousedown", (function (e) { if (c = !0, !l && !u) return u = e, o = i = e.pageX, r = a = e.pageY, s(e, "start", o, r) - })), wp(e, "touchmove", (function (e) { + })), wf(e, "touchmove", (function (e) { if (1 === e.touches.length && u) { const t = s(e, "move", e.touches[0].pageX, e.touches[0].pageY); return i = e.touches[0].pageX, a = e.touches[0].pageY, t } })); - const d = xp = function (e) { + const d = xf = function (e) { if (!l && c && u) { const t = s(e, "move", e.pageX, e.pageY); return i = e.pageX, a = e.pageY, t } }; - document.addEventListener("mousemove", d), wp(e, "touchend", (function (e) { + document.addEventListener("mousemove", d), wf(e, "touchend", (function (e) { if (0 === e.touches.length && u) return l = !1, u = null, s(e, "end", e.changedTouches[0].pageX, e.changedTouches[0].pageY) })); - const f = Tp = function (e) { + const p = Tf = function (e) { if (c = !1, !l && u) return u = null, s(e, "end", e.pageX, e.pageY) }; - document.addEventListener("mouseup", f), wp(e, "touchcancel", (function (e) { + document.addEventListener("mouseup", p), wf(e, "touchcancel", (function (e) { if (u) { l = !1; const t = u; @@ -7626,37 +7626,37 @@ function Sp(e, t, n) { })) } -function Ep(e, t, n) { +function Ef(e, t, n) { return e > t - n && e < t + n } -function kp(e, t) { - return Ep(e, 0, t) +function kf(e, t) { + return Ef(e, 0, t) } -function Ap() { +function Af() { } -function Cp(e, t) { +function Cf(e, t) { this._m = e, this._f = 1e3 * t, this._startTime = 0, this._v = 0 } -function Bp(e, t, n) { +function Bf(e, t, n) { this._m = e, this._k = t, this._c = n, this._solution = null, this._endPosition = 0, this._startTime = 0 } -function Pp(e, t, n) { - this._springX = new Bp(e, t, n), this._springY = new Bp(e, t, n), this._springScale = new Bp(e, t, n), this._startTime = 0 +function Pf(e, t, n) { + this._springX = new Bf(e, t, n), this._springY = new Bf(e, t, n), this._springScale = new Bf(e, t, n), this._startTime = 0 } -Ap.prototype.x = function (e) { +Af.prototype.x = function (e) { return Math.sqrt(e) -}, Cp.prototype.setV = function (e, t) { +}, Cf.prototype.setV = function (e, t) { const n = Math.pow(Math.pow(e, 2) + Math.pow(t, 2), .5); this._x_v = e, this._y_v = t, this._x_a = -this._f * this._x_v / n, this._y_a = -this._f * this._y_v / n, this._t = Math.abs(e / this._x_a) || Math.abs(t / this._y_a), this._lastDt = null, this._startTime = (new Date).getTime() -}, Cp.prototype.setS = function (e, t) { +}, Cf.prototype.setS = function (e, t) { this._x_s = e, this._y_s = t -}, Cp.prototype.s = function (e) { +}, Cf.prototype.s = function (e) { void 0 === e && (e = ((new Date).getTime() - this._startTime) / 1e3), e > this._t && (e = this._t, this._lastDt = e); let t = this._x_v * e + .5 * this._x_a * Math.pow(e, 2) + this._x_s, n = this._y_v * e + .5 * this._y_a * Math.pow(e, 2) + this._y_s; @@ -7664,23 +7664,23 @@ Ap.prototype.x = function (e) { x: t, y: n } -}, Cp.prototype.ds = function (e) { +}, Cf.prototype.ds = function (e) { return void 0 === e && (e = ((new Date).getTime() - this._startTime) / 1e3), e > this._t && (e = this._t), { dx: this._x_v + this._x_a * e, dy: this._y_v + this._y_a * e } -}, Cp.prototype.delta = function () { +}, Cf.prototype.delta = function () { return {x: -1.5 * Math.pow(this._x_v, 2) / this._x_a || 0, y: -1.5 * Math.pow(this._y_v, 2) / this._y_a || 0} -}, Cp.prototype.dt = function () { +}, Cf.prototype.dt = function () { return -this._x_v / this._x_a -}, Cp.prototype.done = function () { - const e = Ep(this.s().x, this._endPositionX) || Ep(this.s().y, this._endPositionY) || this._lastDt === this._t; +}, Cf.prototype.done = function () { + const e = Ef(this.s().x, this._endPositionX) || Ef(this.s().y, this._endPositionY) || this._lastDt === this._t; return this._lastDt = null, e -}, Cp.prototype.setEnd = function (e, t) { +}, Cf.prototype.setEnd = function (e, t) { this._endPositionX = e, this._endPositionY = t -}, Cp.prototype.reconfigure = function (e, t) { +}, Cf.prototype.reconfigure = function (e, t) { this._m = e, this._f = 1e3 * t -}, Bp.prototype._solve = function (e, t) { +}, Bf.prototype._solve = function (e, t) { const n = this._c, o = this._m, r = this._k, i = n * n - 4 * o * r; if (0 === i) { const r = -n / (2 * o), i = e, a = t / (r * e); @@ -7715,17 +7715,17 @@ Ap.prototype.x = function (e) { return t * (c * a * n - l * a * o) + s * t * (c * o + l * n) } } -}, Bp.prototype.x = function (e) { +}, Bf.prototype.x = function (e) { return void 0 === e && (e = ((new Date).getTime() - this._startTime) / 1e3), this._solution ? this._endPosition + this._solution.x(e) : 0 -}, Bp.prototype.dx = function (e) { +}, Bf.prototype.dx = function (e) { return void 0 === e && (e = ((new Date).getTime() - this._startTime) / 1e3), this._solution ? this._solution.dx(e) : 0 -}, Bp.prototype.setEnd = function (e, t, n) { - if (n || (n = (new Date).getTime()), e !== this._endPosition || !kp(t, .1)) { +}, Bf.prototype.setEnd = function (e, t, n) { + if (n || (n = (new Date).getTime()), e !== this._endPosition || !kf(t, .1)) { t = t || 0; let o = this._endPosition; - this._solution && (kp(t, .1) && (t = this._solution.dx((n - this._startTime) / 1e3)), o = this._solution.x((n - this._startTime) / 1e3), kp(t, .1) && (t = 0), kp(o, .1) && (o = 0), o += this._endPosition), this._solution && kp(o - e, .1) && kp(t, .1) || (this._endPosition = e, this._solution = this._solve(o - this._endPosition, t), this._startTime = n) + this._solution && (kf(t, .1) && (t = this._solution.dx((n - this._startTime) / 1e3)), o = this._solution.x((n - this._startTime) / 1e3), kf(t, .1) && (t = 0), kf(o, .1) && (o = 0), o += this._endPosition), this._solution && kf(o - e, .1) && kf(t, .1) || (this._endPosition = e, this._solution = this._solve(o - this._endPosition, t), this._startTime = n) } -}, Bp.prototype.snap = function (e) { +}, Bf.prototype.snap = function (e) { this._startTime = (new Date).getTime(), this._endPosition = e, this._solution = { x: function () { return 0 @@ -7733,15 +7733,15 @@ Ap.prototype.x = function (e) { return 0 } } -}, Bp.prototype.done = function (e) { - return e || (e = (new Date).getTime()), Ep(this.x(), this._endPosition, .1) && kp(this.dx(), .1) -}, Bp.prototype.reconfigure = function (e, t, n) { +}, Bf.prototype.done = function (e) { + return e || (e = (new Date).getTime()), Ef(this.x(), this._endPosition, .1) && kf(this.dx(), .1) +}, Bf.prototype.reconfigure = function (e, t, n) { this._m = e, this._k = t, this._c = n, this.done() || (this._solution = this._solve(this.x() - this._endPosition, this.dx()), this._startTime = (new Date).getTime()) -}, Bp.prototype.springConstant = function () { +}, Bf.prototype.springConstant = function () { return this._k -}, Bp.prototype.damping = function () { +}, Bf.prototype.damping = function () { return this._c -}, Bp.prototype.configuration = function () { +}, Bf.prototype.configuration = function () { return [{ label: "Spring Constant", read: this.springConstant.bind(this), write: function (e, t) { e.reconfigure(1, t, e.damping()) @@ -7751,24 +7751,24 @@ Ap.prototype.x = function (e) { e.reconfigure(1, e.springConstant(), t) }.bind(this, this), min: 1, max: 500 }] -}, Pp.prototype.setEnd = function (e, t, n, o) { +}, Pf.prototype.setEnd = function (e, t, n, o) { const r = (new Date).getTime(); this._springX.setEnd(e, o, r), this._springY.setEnd(t, o, r), this._springScale.setEnd(n, o, r), this._startTime = r -}, Pp.prototype.x = function () { +}, Pf.prototype.x = function () { const e = ((new Date).getTime() - this._startTime) / 1e3; return {x: this._springX.x(e), y: this._springY.x(e), scale: this._springScale.x(e)} -}, Pp.prototype.done = function () { +}, Pf.prototype.done = function () { const e = (new Date).getTime(); return this._springX.done(e) && this._springY.done(e) && this._springScale.done(e) -}, Pp.prototype.reconfigure = function (e, t, n) { +}, Pf.prototype.reconfigure = function (e, t, n) { this._springX.reconfigure(e, t, n), this._springY.reconfigure(e, t, n), this._springScale.reconfigure(e, t, n) }; -function Lp(e, t) { +function Lf(e, t) { return +((1e3 * e - 1e3 * t) / 1e3).toFixed(1) } -const Op = nu({ +const Of = nu({ name: "MovableView", props: { direction: {type: String, default: "none"}, @@ -7791,12 +7791,12 @@ const Op = nu({ const o = Xn("_isMounted", nn(!1)), r = Xn("addMovableViewContext", (() => { })), i = Xn("removeMovableViewContext", (() => { })); - let a, s, l = nn(1), c = nn(1), u = nn(!1), d = nn(0), f = nn(0), p = null, h = null, m = !1, g = null, + let a, s, l = nn(1), c = nn(1), u = nn(!1), d = nn(0), p = nn(0), f = null, h = null, m = !1, g = null, v = null; - const b = new Ap, y = new Ap, _ = {historyX: [0, 0], historyY: [0, 0], historyT: [0, 0]}, w = yi((() => { + const b = new Af, y = new Af, _ = {historyX: [0, 0], historyY: [0, 0], historyT: [0, 0]}, w = yi((() => { let t = Number(e.friction); return isNaN(t) || t <= 0 ? 2 : t - })), x = new Cp(1, w.value); + })), x = new Cf(1, w.value); Gn((() => e.disabled), (() => { $() })); @@ -7807,30 +7807,30 @@ const Op = nu({ })), d = yi((() => { let t = Number(e.scaleMax); return isNaN(t) ? 10 : t - })), f = nn(Number(e.scaleValue) || 1); - Gn(f, (e => { + })), p = nn(Number(e.scaleValue) || 1); + Gn(p, (e => { R(e) })), Gn(u, (() => { j() })), Gn(d, (() => { j() })), Gn((() => e.scaleValue), (e => { - f.value = Number(e) || 0 + p.value = Number(e) || 0 })); - const {_updateBoundary: p, _updateOffset: h, _updateWH: m, _scaleOffset: g, minX: v, minY: b, maxX: y, maxY: _} = function (e, t, n) { + const {_updateBoundary: f, _updateOffset: h, _updateWH: m, _scaleOffset: g, minX: v, minY: b, maxX: y, maxY: _} = function (e, t, n) { const o = Xn("movableAreaWidth", nn(0)), r = Xn("movableAreaHeight", nn(0)), i = Xn("movableAreaRootRef"), a = {x: 0, y: 0}, s = {x: 0, y: 0}, l = nn(0), c = nn(0), - u = nn(0), d = nn(0), f = nn(0), p = nn(0); + u = nn(0), d = nn(0), p = nn(0), f = nn(0); function h() { let e = 0 - a.x + s.x, t = o.value - l.value - a.x - s.x; - u.value = Math.min(e, t), f.value = Math.max(e, t); + u.value = Math.min(e, t), p.value = Math.max(e, t); let n = 0 - a.y + s.y, i = r.value - c.value - a.y - s.y; - d.value = Math.min(n, i), p.value = Math.max(n, i) + d.value = Math.min(n, i), f.value = Math.max(n, i) } function m() { - a.x = Fp(e.value, i.value), a.y = jp(e.value, i.value) + a.x = Ff(e.value, i.value), a.y = jf(e.value, i.value) } function g(o) { @@ -7848,26 +7848,26 @@ const Op = nu({ _scaleOffset: s, minX: u, minY: d, - maxX: f, - maxY: p + maxX: p, + maxY: f } - }(t, o, F), {FAandSFACancel: w, _getLimitXY: x, _animationTo: T, _setTransform: S, _revise: E, dampingNumber: k, xMove: A, yMove: C, xSync: B, ySync: P, _STD: L} = function (e, t, n, o, r, i, a, s, l, c, u, d, f, p) { + }(t, o, F), {FAandSFACancel: w, _getLimitXY: x, _animationTo: T, _setTransform: S, _revise: E, dampingNumber: k, xMove: A, yMove: C, xSync: B, ySync: P, _STD: L} = function (e, t, n, o, r, i, a, s, l, c, u, d, p, f) { const h = yi((() => { let e = Number(t.damping); return isNaN(e) ? 20 : e })), m = yi((() => "all" === t.direction || "horizontal" === t.direction)), - g = yi((() => "all" === t.direction || "vertical" === t.direction)), v = nn(Np(t.x)), - b = nn(Np(t.y)); + g = yi((() => "all" === t.direction || "vertical" === t.direction)), v = nn(Nf(t.x)), + b = nn(Nf(t.y)); Gn((() => t.x), (e => { - v.value = Np(e) + v.value = Nf(e) })), Gn((() => t.y), (e => { - b.value = Np(e) + b.value = Nf(e) })), Gn(v, (e => { E(e) })), Gn(b, (e => { k(e) })); - const y = new Pp(1, 9 * Math.pow(h.value, 2) / 40, h.value); + const y = new Pf(1, 9 * Math.pow(h.value, 2) / 40, h.value); function _(e, t) { let n = !1; @@ -7885,7 +7885,7 @@ const Op = nu({ function x(e, n, r, i, a, s) { w(), m.value || (e = l.value), g.value || (n = c.value), t.scale || (r = o.value); let d = _(e, n); - e = d.x, n = d.y, t.animation ? (y._springX._solution = null, y._springY._solution = null, y._springScale._solution = null, y._springX._endPosition = l.value, y._springY._endPosition = c.value, y._springScale._endPosition = o.value, y.setEnd(e, n, r, 1), u = Rp(y, (function () { + e = d.x, n = d.y, t.animation ? (y._springX._solution = null, y._springY._solution = null, y._springScale._solution = null, y._springX._endPosition = l.value, y._springY._endPosition = c.value, y._springScale._endPosition = o.value, y.setEnd(e, n, r, 1), u = Rf(y, (function () { let e = y.x(); T(e.x, e.y, e.scale, i, a, s) }), (function () { @@ -7894,11 +7894,11 @@ const Op = nu({ } function T(r, i, a, s = "", u, d) { - null !== r && "NaN" !== r.toString() && "number" == typeof r || (r = l.value || 0), null !== i && "NaN" !== i.toString() && "number" == typeof i || (i = c.value || 0), r = Number(r.toFixed(1)), i = Number(i.toFixed(1)), a = Number(a.toFixed(1)), l.value === r && c.value === i || u || p("change", {}, { - x: Lp(r, n.x), - y: Lp(i, n.y), + null !== r && "NaN" !== r.toString() && "number" == typeof r || (r = l.value || 0), null !== i && "NaN" !== i.toString() && "number" == typeof i || (i = c.value || 0), r = Number(r.toFixed(1)), i = Number(i.toFixed(1)), a = Number(a.toFixed(1)), l.value === r && c.value === i || u || f("change", {}, { + x: Lf(r, n.x), + y: Lf(i, n.y), source: s - }), t.scale || (a = o.value), a = +(a = f(a)).toFixed(3), d && a !== o.value && p("scale", {}, { + }), t.scale || (a = o.value), a = +(a = p(a)).toFixed(3), d && a !== o.value && f("scale", {}, { x: r, y: i, scale: a @@ -7945,9 +7945,9 @@ const Op = nu({ function O(t, n) { if (e.scale) { - t = F(t), m(t), p(); + t = F(t), m(t), f(); const e = x(a.value, s.value), o = e.x, r = e.y; - n ? T(o, r, t, "", !0, !0) : Mp((function () { + n ? T(o, r, t, "", !0, !0) : Mf((function () { S(o, r, t, "", !0, !0) })) } @@ -7986,8 +7986,8 @@ const Op = nu({ _updateOldScale: M, _endScale: N, _setScale: D, - scaleValueSync: f, - _updateBoundary: p, + scaleValueSync: p, + _updateBoundary: f, _updateOffset: h, _updateWH: m, _scaleOffset: g, @@ -8007,19 +8007,19 @@ const Op = nu({ ySync: P, _STD: L } - }(e, n, t, l, c, u, d, f, p, h); + }(e, n, t, l, c, u, d, p, f, h); function $() { - u.value || e.disabled || (F(), _.historyX = [0, 0], _.historyY = [0, 0], _.historyT = [0, 0], z.value && (a = d.value), H.value && (s = f.value), n.value.style.willChange = "transform", g = null, v = null, m = !0) + u.value || e.disabled || (F(), _.historyX = [0, 0], _.historyY = [0, 0], _.historyT = [0, 0], z.value && (a = d.value), H.value && (s = p.value), n.value.style.willChange = "transform", g = null, v = null, m = !0) } function Q(t) { if (!u.value && !e.disabled && m) { - let n = d.value, o = f.value; + let n = d.value, o = p.value; if (null === v && (v = Math.abs(t.detail.dx / t.detail.dy) > 1 ? "htouchmove" : "vtouchmove"), z.value && (n = t.detail.dx + a, _.historyX.shift(), _.historyX.push(n), H.value || null !== g || (g = Math.abs(t.detail.dx / t.detail.dy) < 1)), H.value && (o = t.detail.dy + s, _.historyY.shift(), _.historyY.push(o), z.value || null !== g || (g = Math.abs(t.detail.dy / t.detail.dx) < 1)), _.historyT.shift(), _.historyT.push(t.detail.timeStamp), !g) { t.preventDefault(); let r = "touch"; - n < L.value ? e.outOfBounds ? (r = "touch-out-of-bounds", n = L.value - b.x(L.value - n)) : n = L.value : n > I.value && (e.outOfBounds ? (r = "touch-out-of-bounds", n = I.value + b.x(n - I.value)) : n = I.value), o < O.value ? e.outOfBounds ? (r = "touch-out-of-bounds", o = O.value - y.x(O.value - o)) : o = O.value : o > M.value && (e.outOfBounds ? (r = "touch-out-of-bounds", o = M.value + y.x(o - M.value)) : o = M.value), Mp((function () { + n < L.value ? e.outOfBounds ? (r = "touch-out-of-bounds", n = L.value - b.x(L.value - n)) : n = L.value : n > I.value && (e.outOfBounds ? (r = "touch-out-of-bounds", n = I.value + b.x(n - I.value)) : n = I.value), o < O.value ? e.outOfBounds ? (r = "touch-out-of-bounds", o = O.value - y.x(O.value - o)) : o = O.value : o > M.value && (e.outOfBounds ? (r = "touch-out-of-bounds", o = M.value + y.x(o - M.value)) : o = M.value), Mf((function () { R(n, o, l.value, r) })) } @@ -8030,11 +8030,11 @@ const Op = nu({ if (!u.value && !e.disabled && m && (n.value.style.willChange = "auto", m = !1, !g && !N("out-of-bounds") && e.inertia)) { const e = 1e3 * (_.historyX[1] - _.historyX[0]) / (_.historyT[1] - _.historyT[0]), t = 1e3 * (_.historyY[1] - _.historyY[0]) / (_.historyT[1] - _.historyT[0]), n = d.value, - o = f.value; + o = p.value; x.setV(e, t), x.setS(n, o); const r = x.delta().x, i = x.delta().y; let a = r + n, s = i + o; - a < L.value ? (a = L.value, s = o + (L.value - n) * i / r) : a > I.value && (a = I.value, s = o + (I.value - n) * i / r), s < O.value ? (s = O.value, a = n + (O.value - o) * r / i) : s > M.value && (s = M.value, a = n + (M.value - o) * r / i), x.setEnd(a, s), h = Rp(x, (function () { + a < L.value ? (a = L.value, s = o + (L.value - n) * i / r) : a > I.value && (a = I.value, s = o + (I.value - n) * i / r), s < O.value ? (s = O.value, a = n + (O.value - o) * r / i) : s > M.value && (s = M.value, a = n + (M.value - o) * r / i), x.setEnd(a, s), h = Rf(x, (function () { let e = x.s(), t = e.x, n = e.y; R(t, n, l.value, "friction") }), (function () { @@ -8054,7 +8054,7 @@ const Op = nu({ } return Io((() => { - Sp(n.value, (e => { + Sf(n.value, (e => { switch (e.detail.state) { case"start": $(); @@ -8074,30 +8074,30 @@ const Op = nu({ F() })), {setParent: X} }(e, r, o); - return () => Kr("uni-movable-view", {ref: o}, [Kr(Of, {onResize: i}, null, 8, ["onResize"]), t.default && t.default()], 512) + return () => Kr("uni-movable-view", {ref: o}, [Kr(Lp, {onResize: i}, null, 8, ["onResize"]), t.default && t.default()], 512) } }); -let Ip = !1; +let If = !1; -function Mp(e) { - Ip || (Ip = !0, requestAnimationFrame((function () { - e(), Ip = !1 +function Mf(e) { + If || (If = !0, requestAnimationFrame((function () { + e(), If = !1 }))) } -function Fp(e, t) { +function Ff(e, t) { if (e === t) return 0; let n = e.offsetLeft; - return e.offsetParent ? n += Fp(e.offsetParent, t) : 0 + return e.offsetParent ? n += Ff(e.offsetParent, t) : 0 } -function jp(e, t) { +function jf(e, t) { if (e === t) return 0; let n = e.offsetTop; - return e.offsetParent ? n += jp(e.offsetParent, t) : 0 + return e.offsetParent ? n += jf(e.offsetParent, t) : 0 } -function Rp(e, t, n) { +function Rf(e, t, n) { let o = {id: 0, cancelled: !1}; return function e(t, n, o, r) { if (!t || !t.cancelled) { @@ -8112,27 +8112,27 @@ function Rp(e, t, n) { } } -function Np(e) { +function Nf(e) { return /\d+[ur]px$/i.test(e) ? vd(parseFloat(e)) : Number(e) || 0 } -const Dp = ["navigate", "redirect", "switchTab", "reLaunch", "navigateBack"], - zp = ["slide-in-right", "slide-in-left", "slide-in-top", "slide-in-bottom", "fade-in", "zoom-out", "zoom-fade-out", "pop-in", "none"], - Hp = ["slide-out-right", "slide-out-left", "slide-out-top", "slide-out-bottom", "fade-out", "zoom-in", "zoom-fade-in", "pop-out", "none"], - qp = { +const Df = ["navigate", "redirect", "switchTab", "reLaunch", "navigateBack"], + zf = ["slide-in-right", "slide-in-left", "slide-in-top", "slide-in-bottom", "fade-in", "zoom-out", "zoom-fade-out", "pop-in", "none"], + Hf = ["slide-out-right", "slide-out-left", "slide-out-top", "slide-out-bottom", "fade-out", "zoom-in", "zoom-fade-in", "pop-out", "none"], + qf = { hoverClass: {type: String, default: "navigator-hover"}, url: {type: String, default: ""}, - openType: {type: String, default: "navigate", validator: e => Boolean(~Dp.indexOf(e))}, + openType: {type: String, default: "navigate", validator: e => Boolean(~Df.indexOf(e))}, delta: {type: Number, default: 1}, hoverStartTime: {type: [Number, String], default: 50}, hoverStayTime: {type: [Number, String], default: 600}, exists: {type: String, default: ""}, hoverStopPropagation: {type: Boolean, default: !1}, - animationType: {type: String, default: "", validator: e => !e || zp.concat(Hp).includes(e)}, + animationType: {type: String, default: "", validator: e => !e || zf.concat(Hf).includes(e)}, animationDuration: {type: [String, Number], default: 300} }; -S({}, qp, {renderLink: {type: Boolean, default: !0}}); -const Vp = nu({ +S({}, qf, {renderLink: {type: Boolean, default: !0}}); +const Vf = nu({ name: "PickerView", props: { value: { type: Array, default: () => [], validator: function (e) { @@ -8183,12 +8183,12 @@ const Vp = nu({ })), Un("pickerViewProps", e), Un("pickerViewState", a), () => { const e = t.default && t.default(); { - const t = bp(e); + const t = bf(e); l.value = t, kn((() => { c.value = t })) } - return Kr("uni-picker-view", {ref: o}, [Kr(Of, { + return Kr("uni-picker-view", {ref: o}, [Kr(Lp, { ref: s, onResize: ({height: e}) => a.height = e }, null, 8, ["onResize"]), Kr("div", {ref: r, class: "uni-picker-view-wrapper"}, [e], 512)], 512) @@ -8196,7 +8196,7 @@ const Vp = nu({ } }); -class Wp { +class Wf { constructor(e) { this._drag = e, this._dragLog = Math.log(e), this._x = 0, this._v = 0, this._startTime = 0 } @@ -8242,15 +8242,15 @@ class Wp { } } -function $p(e, t, n) { +function $f(e, t, n) { return e > t - n && e < t + n } -function Qp(e, t) { - return $p(e, 0, t) +function Qf(e, t) { + return $f(e, 0, t) } -class Up { +class Uf { constructor(e, t, n) { this._m = e, this._k = t, this._c = n, this._solution = null, this._endPosition = 0, this._startTime = 0 } @@ -8301,10 +8301,10 @@ class Up { } setEnd(e, t, n) { - if (n || (n = (new Date).getTime()), e !== this._endPosition || !Qp(t, .4)) { + if (n || (n = (new Date).getTime()), e !== this._endPosition || !Qf(t, .4)) { t = t || 0; let o = this._endPosition; - this._solution && (Qp(t, .4) && (t = this._solution.dx((n - this._startTime) / 1e3)), o = this._solution.x((n - this._startTime) / 1e3), Qp(t, .4) && (t = 0), Qp(o, .4) && (o = 0), o += this._endPosition), this._solution && Qp(o - e, .4) && Qp(t, .4) || (this._endPosition = e, this._solution = this._solve(o - this._endPosition, t), this._startTime = n) + this._solution && (Qf(t, .4) && (t = this._solution.dx((n - this._startTime) / 1e3)), o = this._solution.x((n - this._startTime) / 1e3), Qf(t, .4) && (t = 0), Qf(o, .4) && (o = 0), o += this._endPosition), this._solution && Qf(o - e, .4) && Qf(t, .4) || (this._endPosition = e, this._solution = this._solve(o - this._endPosition, t), this._startTime = n) } } @@ -8319,7 +8319,7 @@ class Up { } done(e) { - return e || (e = (new Date).getTime()), $p(this.x(), this._endPosition, .4) && Qp(this.dx(), .4) + return e || (e = (new Date).getTime()), $f(this.x(), this._endPosition, .4) && Qf(this.dx(), .4) } reconfigure(e, t, n) { @@ -8347,9 +8347,9 @@ class Up { } } -class Xp { +class Xf { constructor(e, t, n) { - this._extent = e, this._friction = t || new Wp(.01), this._spring = n || new Up(1, 90, 20), this._startTime = 0, this._springing = !1, this._springOffset = 0 + this._extent = e, this._friction = t || new Wf(.01), this._spring = n || new Uf(1, 90, 20), this._startTime = 0, this._springing = !1, this._springOffset = 0 } snap(e, t) { @@ -8386,9 +8386,9 @@ class Xp { } } -class Yp { +class Yf { constructor(e, t) { - t = t || {}, this._element = e, this._options = t, this._enableSnap = t.enableSnap || !1, this._itemSize = t.itemSize || 0, this._enableX = t.enableX || !1, this._enableY = t.enableY || !1, this._shouldDispatchScrollEvent = !!t.onScroll, this._enableX ? (this._extent = (t.scrollWidth || this._element.offsetWidth) - this._element.parentElement.offsetWidth, this._scrollWidth = t.scrollWidth) : (this._extent = (t.scrollHeight || this._element.offsetHeight) - this._element.parentElement.offsetHeight, this._scrollHeight = t.scrollHeight), this._position = 0, this._scroll = new Xp(this._extent, t.friction, t.spring), this._onTransitionEnd = this.onTransitionEnd.bind(this), this.updatePosition() + t = t || {}, this._element = e, this._options = t, this._enableSnap = t.enableSnap || !1, this._itemSize = t.itemSize || 0, this._enableX = t.enableX || !1, this._enableY = t.enableY || !1, this._shouldDispatchScrollEvent = !!t.onScroll, this._enableX ? (this._extent = (t.scrollWidth || this._element.offsetWidth) - this._element.parentElement.offsetWidth, this._scrollWidth = t.scrollWidth) : (this._extent = (t.scrollHeight || this._element.offsetHeight) - this._element.parentElement.offsetHeight, this._scrollHeight = t.scrollHeight), this._position = 0, this._scroll = new Xf(this._extent, t.friction, t.spring), this._onTransitionEnd = this.onTransitionEnd.bind(this), this.updatePosition() } onTouchStart() { @@ -8482,8 +8482,8 @@ class Yp { } } -let Jp = 0; -const Gp = nu({ +let Jf = 0; +const Gf = nu({ name: "PickerViewColumn", setup(e, {slots: t, emit: n}) { const o = nn(null), r = nn(null), i = Xn("getPickerViewColumn"), a = ui(), s = i ? i(a) : nn(0), l = Xn("pickerViewProps"), c = Xn("pickerViewState"), u = nn(34), d = nn(null); @@ -8491,8 +8491,8 @@ const Gp = nu({ const e = d.value; u.value = e.$el.offsetHeight })); - const f = yi((() => (c.height - u.value) / 2)), {state: p} = ip(), h = function (e) { - const t = "uni-picker-view-content-" + Jp++; + const p = yi((() => (c.height - u.value) / 2)), {state: f} = rf(), h = function (e) { + const t = "uni-picker-view-content-" + Jf++; return Gn((() => e.value), (function () { const n = document.createElement("style"); n.innerText = `.uni-picker-view-content.${t}>*{height: ${e.value}px;overflow: hidden;}`, document.head.appendChild(n) @@ -8540,7 +8540,7 @@ const Gp = nu({ const x = () => { const e = o.value, t = r.value, {scroller: n, handleTouchStart: i, handleTouchMove: a, handleTouchEnd: s} = function (e, t) { - const n = {trackingID: -1, maxDy: 0, maxDx: 0}, o = new Yp(e, t); + const n = {trackingID: -1, maxDy: 0, maxDx: 0}, o = new Yf(e, t); function r(e) { const t = e, o = e; @@ -8590,13 +8590,13 @@ const Gp = nu({ enableX: !1, enableSnap: !0, itemSize: u.value, - friction: new Wp(1e-4), - spring: new Up(2, 90, 20), + friction: new Wf(1e-4), + spring: new Uf(2, 90, 20), onSnap: e => { isNaN(e) || e === g.current || (g.current = e) } }); - m = n, Sp(e, (e => { + m = n, Sf(e, (e => { switch (e.detail.state) { case"start": i(e); @@ -8627,19 +8627,19 @@ const Gp = nu({ }; return Io(x), () => { const e = t.default && t.default(); - g.length = bp(e).length; - const n = `${f.value}px 0`; + g.length = bf(e).length; + const n = `${p.value}px 0`; return Kr("uni-picker-view-column", {ref: o}, [Kr("div", { onWheel: _, onClick: w, class: "uni-picker-view-group" - }, [Kr("div", ii(p.attrs, { + }, [Kr("div", ii(f.attrs, { class: ["uni-picker-view-mask", l.maskClass], - style: `background-size: 100% ${f.value}px;${l.maskStyle}` - }), null, 16), Kr("div", ii(p.attrs, { + style: `background-size: 100% ${p.value}px;${l.maskStyle}` + }), null, 16), Kr("div", ii(f.attrs, { class: ["uni-picker-view-indicator", l.indicatorClass], style: l.indicatorStyle - }), [Kr(Of, { + }), [Kr(Lp, { ref: d, onResize: ({height: e}) => u.value = e }, null, 8, ["onResize"])], 16), Kr("div", { @@ -8649,7 +8649,7 @@ const Gp = nu({ }, [e], 6)], 40, ["onWheel", "onClick"])], 512) } } -}), Kp = { +}), Kf = { a: "", abbr: "", address: "", @@ -8715,7 +8715,7 @@ const Gp = nu({ tt: "", u: "", ul: "" -}, Zp = { +}, Zf = { amp: "&", gt: ">", lt: "<", @@ -8737,7 +8737,7 @@ const eh = (e, t, n) => !n || C(n) && !n.length ? [] : n.map((n => { if (!A(n, "type") || "node" === n.type) { let o = {[e]: ""}; const r = n.name.toLowerCase(); - if (!A(Kp, r)) return; + if (!A(Kf, r)) return; return function (e, t) { if (D(t)) for (const n in t) if (A(t, n)) { const o = t[n]; @@ -8752,7 +8752,7 @@ const eh = (e, t, n) => !n || C(n) && !n.length ? [] : n.map((n => { }(n, t), n.attrs), _i(n.name, o, eh(e, t, n.children)) } return "text" === n.type && I(n.text) && "" !== n.text ? ei((n.text || "").replace(/&(([a-zA-Z]+)|(#x{0,1}[\da-zA-Z]+));/gi, (function (e, t) { - return A(Zp, t) && Zp[t] ? Zp[t] : /^#[0-9]{1,4}$/.test(t) ? String.fromCharCode(t.slice(1)) : /^#x[0-9a-f]{1,4}$/i.test(t) ? String.fromCharCode(0 + t.slice(1)) : e + return A(Zf, t) && Zf[t] ? Zf[t] : /^#[0-9]{1,4}$/.test(t) ? String.fromCharCode(t.slice(1)) : /^#x[0-9a-f]{1,4}$/i.test(t) ? String.fromCharCode(0 + t.slice(1)) : e }))) : void 0 } })); @@ -8767,9 +8767,9 @@ function th(e) { for (i.last = function () { return this[this.length - 1] }; e;) { - if (o = !0, i.last() && Wf[i.last()]) e = e.replace(new RegExp("([\\s\\S]*?)]*>"), (function (e, n) { + if (o = !0, i.last() && Vp[i.last()]) e = e.replace(new RegExp("([\\s\\S]*?)]*>"), (function (e, n) { return n = n.replace(/|/g, "$1$2"), t.chars && t.chars(n), "" - })), c("", i.last()); else if (0 == e.indexOf("\x3c!--") ? (n = e.indexOf("--\x3e")) >= 0 && (t.comment && t.comment(e.substring(4, n)), e = e.substring(n + 3), o = !1) : 0 == e.indexOf("= 0 && (t.comment && t.comment(e.substring(4, n)), e = e.substring(n + 3), o = !1) : 0 == e.indexOf(" { + let c = !1, u = 0, d = !1, p = () => { }; - const p = yi((() => { + const f = yi((() => { let t = Number(e.upperThreshold); return isNaN(t) ? 50 : t })), h = yi((() => { @@ -8904,7 +8904,7 @@ const nh = nu({ let o = 0, r = ""; if (e < 0 ? e = 0 : "x" === t && e > n.scrollWidth - n.offsetWidth ? e = n.scrollWidth - n.offsetWidth : "y" === t && e > n.scrollHeight - n.offsetHeight && (e = n.scrollHeight - n.offsetHeight), "x" === t ? o = n.scrollLeft - e : "y" === t && (o = n.scrollTop - e), 0 === o) return; let i = s.value; - i.style.transition = "transform .3s ease-out", i.style.webkitTransition = "-webkit-transform .3s ease-out", "x" === t ? r = "translateX(" + o + "px) translateZ(0)" : "y" === t && (r = "translateY(" + o + "px) translateZ(0)"), i.removeEventListener("transitionend", f), i.removeEventListener("webkitTransitionEnd", f), f = () => _(e, t), i.addEventListener("transitionend", f), i.addEventListener("webkitTransitionEnd", f), "x" === t ? n.style.overflowX = "hidden" : "y" === t && (n.style.overflowY = "hidden"), i.style.transform = r, i.style.webkitTransform = r + i.style.transition = "transform .3s ease-out", i.style.webkitTransition = "-webkit-transform .3s ease-out", "x" === t ? r = "translateX(" + o + "px) translateZ(0)" : "y" === t && (r = "translateY(" + o + "px) translateZ(0)"), i.removeEventListener("transitionend", p), i.removeEventListener("webkitTransitionEnd", p), p = () => _(e, t), i.addEventListener("transitionend", p), i.addEventListener("webkitTransitionEnd", p), "x" === t ? n.style.overflowX = "hidden" : "y" === t && (n.style.overflowY = "hidden"), i.style.transform = r, i.style.webkitTransform = r } function g(n) { @@ -8916,7 +8916,7 @@ const nh = nu({ scrollWidth: o.scrollWidth, deltaX: t.lastScrollLeft - o.scrollLeft, deltaY: t.lastScrollTop - o.scrollTop - }), e.scrollY && (o.scrollTop <= p.value && t.lastScrollTop - o.scrollTop > 0 && n.timeStamp - t.lastScrollToUpperTime > 200 && (r("scrolltoupper", n, {direction: "top"}), t.lastScrollToUpperTime = n.timeStamp), o.scrollTop + o.offsetHeight + h.value >= o.scrollHeight && t.lastScrollTop - o.scrollTop < 0 && n.timeStamp - t.lastScrollToLowerTime > 200 && (r("scrolltolower", n, {direction: "bottom"}), t.lastScrollToLowerTime = n.timeStamp)), e.scrollX && (o.scrollLeft <= p.value && t.lastScrollLeft - o.scrollLeft > 0 && n.timeStamp - t.lastScrollToUpperTime > 200 && (r("scrolltoupper", n, {direction: "left"}), t.lastScrollToUpperTime = n.timeStamp), o.scrollLeft + o.offsetWidth + h.value >= o.scrollWidth && t.lastScrollLeft - o.scrollLeft < 0 && n.timeStamp - t.lastScrollToLowerTime > 200 && (r("scrolltolower", n, {direction: "right"}), t.lastScrollToLowerTime = n.timeStamp)), t.lastScrollTop = o.scrollTop, t.lastScrollLeft = o.scrollLeft + }), e.scrollY && (o.scrollTop <= f.value && t.lastScrollTop - o.scrollTop > 0 && n.timeStamp - t.lastScrollToUpperTime > 200 && (r("scrolltoupper", n, {direction: "top"}), t.lastScrollToUpperTime = n.timeStamp), o.scrollTop + o.offsetHeight + h.value >= o.scrollHeight && t.lastScrollTop - o.scrollTop < 0 && n.timeStamp - t.lastScrollToLowerTime > 200 && (r("scrolltolower", n, {direction: "bottom"}), t.lastScrollToLowerTime = n.timeStamp)), e.scrollX && (o.scrollLeft <= f.value && t.lastScrollLeft - o.scrollLeft > 0 && n.timeStamp - t.lastScrollToUpperTime > 200 && (r("scrolltoupper", n, {direction: "left"}), t.lastScrollToUpperTime = n.timeStamp), o.scrollLeft + o.offsetWidth + h.value >= o.scrollWidth && t.lastScrollLeft - o.scrollLeft < 0 && n.timeStamp - t.lastScrollToLowerTime > 200 && (r("scrolltolower", n, {direction: "right"}), t.lastScrollToLowerTime = n.timeStamp)), t.lastScrollTop = o.scrollTop, t.lastScrollLeft = o.scrollLeft } function v(t) { @@ -8948,7 +8948,7 @@ const nh = nu({ function _(t, n) { s.value.style.transition = "", s.value.style.webkitTransition = "", s.value.style.transform = "", s.value.style.webkitTransform = ""; let o = a.value; - "x" === n ? (o.style.overflowX = e.scrollX ? "auto" : "hidden", o.scrollLeft = t) : "y" === n && (o.style.overflowY = e.scrollY ? "auto" : "hidden", o.scrollTop = t), s.value.removeEventListener("transitionend", f), s.value.removeEventListener("webkitTransitionEnd", f) + "x" === n ? (o.style.overflowX = e.scrollX ? "auto" : "hidden", o.scrollLeft = t) : "y" === n && (o.style.overflowY = e.scrollY ? "auto" : "hidden", o.scrollTop = t), s.value.removeEventListener("transitionend", p), s.value.removeEventListener("webkitTransitionEnd", p) } function w(n) { @@ -8971,30 +8971,30 @@ const nh = nu({ })), y(e.scrollIntoView); let i = function (e) { e.preventDefault(), e.stopPropagation(), g(e) - }, s = {x: 0, y: 0}, l = null, f = function (n) { + }, s = {x: 0, y: 0}, l = null, p = function (n) { if (null === s) return; - let o = n.touches[0].pageX, i = n.touches[0].pageY, f = a.value; + let o = n.touches[0].pageX, i = n.touches[0].pageY, p = a.value; if (Math.abs(o - s.x) > Math.abs(i - s.y)) if (e.scrollX) { - if (0 === f.scrollLeft && o > s.x) return void (l = !1); - if (f.scrollWidth === f.offsetWidth + f.scrollLeft && o < s.x) return void (l = !1); + if (0 === p.scrollLeft && o > s.x) return void (l = !1); + if (p.scrollWidth === p.offsetWidth + p.scrollLeft && o < s.x) return void (l = !1); l = !0 - } else l = !1; else if (e.scrollY) if (0 === f.scrollTop && i > s.y) l = !1, e.refresherEnabled && !1 !== n.cancelable && n.preventDefault(); else { - if (f.scrollHeight === f.offsetHeight + f.scrollTop && i < s.y) return void (l = !1); + } else l = !1; else if (e.scrollY) if (0 === p.scrollTop && i > s.y) l = !1, e.refresherEnabled && !1 !== n.cancelable && n.preventDefault(); else { + if (p.scrollHeight === p.offsetHeight + p.scrollTop && i < s.y) return void (l = !1); l = !0 } else l = !1; - if (l && n.stopPropagation(), 0 === f.scrollTop && 1 === n.touches.length && w("pulling"), e.refresherEnabled && "pulling" === t.refreshState) { + if (l && n.stopPropagation(), 0 === p.scrollTop && 1 === n.touches.length && w("pulling"), e.refresherEnabled && "pulling" === t.refreshState) { const o = i - s.y; 0 === u && (u = i), c ? (t.refresherHeight = o + e.refresherThreshold, d = !1) : (t.refresherHeight = i - u, t.refresherHeight > 0 && (d = !0, r("refresherpulling", n, {deltaY: o}))); const a = t.refresherHeight / e.refresherThreshold; t.refreshRotate = 360 * (a > 1 ? 1 : a) } - }, p = function (e) { + }, f = function (e) { 1 === e.touches.length && (s = {x: e.touches[0].pageX, y: e.touches[0].pageY}) }, h = function (n) { s = null, t.refresherHeight >= e.refresherThreshold ? w("refreshing") : w("refresherabort") }; - a.value.addEventListener("touchstart", p, oh), a.value.addEventListener("touchmove", f, ge(!1)), a.value.addEventListener("scroll", i, ge(!1)), a.value.addEventListener("touchend", h, oh), jo((() => { - a.value.removeEventListener("touchstart", p), a.value.removeEventListener("touchmove", f), a.value.removeEventListener("scroll", i), a.value.removeEventListener("touchend", h) + a.value.addEventListener("touchstart", f, oh), a.value.addEventListener("touchmove", p, ge(!1)), a.value.addEventListener("scroll", i, ge(!1)), a.value.addEventListener("touchend", h, oh), jo((() => { + a.value.removeEventListener("touchstart", f), a.value.removeEventListener("touchmove", p), a.value.removeEventListener("scroll", i), a.value.removeEventListener("touchend", h) })) })), wo((() => { e.scrollY && (a.value.scrollTop = t.lastScrollTop), e.scrollX && (a.value.scrollLeft = t.lastScrollLeft) @@ -9008,21 +9008,21 @@ const nh = nu({ !0 === e ? w("refreshing") : !1 === e && w("restore") })) }(e, c, u, d, l, o, r, a, t); - const f = yi((() => { + const p = yi((() => { let t = ""; return e.scrollX ? t += "overflow-x:auto;" : t += "overflow-x:hidden;", e.scrollY ? t += "overflow-y:auto;" : t += "overflow-y:hidden;", t })); return () => { - const {refresherEnabled: t, refresherBackground: l, refresherDefaultStyle: u} = e, {refresherHeight: d, refreshState: p, refreshRotate: h} = c; + const {refresherEnabled: t, refresherBackground: l, refresherDefaultStyle: u} = e, {refresherHeight: d, refreshState: f, refreshRotate: h} = c; return Kr("uni-scroll-view", {ref: o}, [Kr("div", {ref: i, class: "uni-scroll-view"}, [Kr("div", { ref: r, - style: f.value, + style: p.value, class: "uni-scroll-view" }, [Kr("div", {ref: a, class: "uni-scroll-view-content"}, [t ? Kr("div", { ref: s, style: {backgroundColor: l, height: d + "px"}, class: "uni-scroll-view-refresher" - }, ["none" !== u ? Kr("div", {class: "uni-scroll-view-refresh"}, [Kr("div", {class: "uni-scroll-view-refresh-inner"}, ["pulling" == p ? Kr("svg", { + }, ["none" !== u ? Kr("div", {class: "uni-scroll-view-refresh"}, [Kr("div", {class: "uni-scroll-view-refresh-inner"}, ["pulling" == f ? Kr("svg", { key: "refresh__icon", style: {transform: "rotate(" + h + "deg)"}, fill: "#2BD009", @@ -9033,7 +9033,7 @@ const nh = nu({ }, [Kr("path", {d: "M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4l-2.35 2.35z"}, null), Kr("path", { d: "M0 0h24v24H0z", fill: "none" - }, null)], 4) : null, "refreshing" == p ? Kr("svg", { + }, null)], 4) : null, "refreshing" == f ? Kr("svg", { key: "refresh__spinner", class: "uni-scroll-view-refresh__spinner", width: "24", @@ -9056,7 +9056,7 @@ function ih(e, t, n, o, r, i) { c && (clearTimeout(c), c = null) } - let s, l, c = null, u = !0, d = 0, f = 1, p = null, h = !1, m = 0, g = ""; + let s, l, c = null, u = !0, d = 0, p = 1, f = null, h = !1, m = 0, g = ""; const v = yi((() => n.value.length > t.displayMultipleItems)), b = yi((() => e.circular && v.value)); function y(r) { @@ -9064,11 +9064,11 @@ function ih(e, t, n, o, r, i) { if (!u) for (let r = n.value, i = r.length, a = o + t.displayMultipleItems, s = 0; s < i; s++) { const t = r[s], n = Math.floor(o / i) * i + s, l = n + i, c = n - i, u = Math.max(o - (n + 1), n - a, 0), d = Math.max(o - (l + 1), l - a, 0), - f = Math.max(o - (c + 1), c - a, 0), p = Math.min(u, d, f), h = [n, l, c][[u, d, f].indexOf(p)]; + p = Math.max(o - (c + 1), c - a, 0), f = Math.min(u, d, p), h = [n, l, c][[u, d, p].indexOf(f)]; t.updatePosition(h, e.vertical) } }(r); - const a = "translate(" + (e.vertical ? "0" : 100 * -r * f + "%") + ", " + (e.vertical ? 100 * -r * f + "%" : "0") + ") translateZ(0)", + const a = "translate(" + (e.vertical ? "0" : 100 * -r * p + "%") + ", " + (e.vertical ? 100 * -r * p + "%" : "0") + ") translateZ(0)", l = o.value; if (l && (l.style.webkitTransform = a, l.style.transform = a), d = r, !s) { if (r % 1 == 0) return; @@ -9093,14 +9093,14 @@ function ih(e, t, n, o, r, i) { } function w() { - p = null + f = null } function x() { - if (!p) return void (h = !1); - const e = p, o = e.toPos, r = e.acc, a = e.endTime, c = e.source, u = a - Date.now(); + if (!f) return void (h = !1); + const e = f, o = e.toPos, r = e.acc, a = e.endTime, c = e.source, u = a - Date.now(); if (u <= 0) { - y(o), p = null, h = !1, s = null; + y(o), f = null, h = !1, s = null; const e = n.value[t.current]; if (e) { const n = e.getItemId(); @@ -9127,7 +9127,7 @@ function ih(e, t, n, o, r, i) { for (; s - a > e;) s -= a; s + a - e < e - s && (s += a) } else "click" === o && (e = e + t.displayMultipleItems - 1 < a ? e : 0); - p = { + f = { toPos: e, acc: 2 * (s - e) / (i * i), endTime: Date.now() + i, @@ -9157,14 +9157,14 @@ function ih(e, t, n, o, r, i) { } o < 0 && (o = Math.round(e.current) || 0), o = o < 0 ? 0 : o, t.current !== o && (g = "", t.current = o) })), Gn([() => e.vertical, () => b.value, () => t.displayMultipleItems, () => [...n.value]], (function () { - a(), p && (y(p.toPos), p = null); + a(), f && (y(f.toPos), f = null); const r = n.value; for (let t = 0; t < r.length; t++) r[t].updatePosition(t, e.vertical); - f = 1; + p = 1; const i = o.value; if (1 === t.displayMultipleItems && r.length) { const e = r[0].getBoundingClientRect(), t = i.getBoundingClientRect(); - f = e.width / t.width, f > 0 && f < 1 || (f = 1) + p = e.width / t.width, p > 0 && p < 1 || (p = 1) } const s = d; d = -2; @@ -9201,7 +9201,7 @@ function ih(e, t, n, o, r, i) { e ? y(m) : (g = "touch", t.current = r, T(r, "touch", 0 !== o ? o : 0 === r && b.value && d >= 1 ? 1 : 0)) } - Sp(o.value, (c => { + Sf(o.value, (c => { if (!e.disableTouch && !u) { if ("start" === c.detail.state) return t.userTracking = !0, r = !1, a(), m = d, i = 0, s = Date.now(), void w(); if ("end" === c.detail.state) return l(!1); @@ -9226,8 +9226,8 @@ function ih(e, t, n, o, r, i) { i = .6 * i + .4 * t, b.value || (n < 0 || n > l) && (n < 0 ? n = -c(-n) : n > l && (n = l + c(n - l)), i = 0), y(n) } - const d = s - a || 1, f = o.value; - e.vertical ? u(-r.dy / f.offsetHeight, -r.ddy / d) : u(-r.dx / f.offsetWidth, -r.ddx / d) + const d = s - a || 1, p = o.value; + e.vertical ? u(-r.dy / p.offsetHeight, -r.ddy / d) : u(-r.dx / p.offsetWidth, -r.ddx / d) }(c.detail), !1 } } @@ -9291,9 +9291,9 @@ const ah = nu({ return {width: e.vertical ? "100%" : t, height: e.vertical ? t : "100%"} })); let u = []; - const d = [], f = nn([]); + const d = [], p = nn([]); - function p() { + function f() { const e = []; for (let t = 0; t < u.length; t++) { let n = u[t]; @@ -9301,28 +9301,28 @@ const ah = nu({ const o = d.find((e => n === e.rootRef.value)); o && e.push(Jt(o)) } - f.value = e + p.value = e } Un("addSwiperContext", (function (e) { - d.push(e), p() + d.push(e), f() })); Un("removeSwiperContext", (function (e) { const t = d.indexOf(e); - t >= 0 && (d.splice(t, 1), p()) + t >= 0 && (d.splice(t, 1), f()) })); - const {onSwiperDotClick: h, circularEnabled: m, swiperEnabled: g} = ih(e, s, f, a, n, r); + const {onSwiperDotClick: h, circularEnabled: m, swiperEnabled: g} = ih(e, s, p, a, n, r); let v = () => null; - return v = sh(o, e, s, h, f, m, g), () => { + return v = sh(o, e, s, h, p, m, g), () => { const n = t.default && t.default(); - return u = bp(n), Kr("uni-swiper", {ref: o}, [Kr("div", { + return u = bf(n), Kr("uni-swiper", {ref: o}, [Kr("div", { ref: i, class: "uni-swiper-wrapper" }, [Kr("div", {class: "uni-swiper-slides", style: l.value}, [Kr("div", { ref: a, class: "uni-swiper-slide-frame", style: c.value - }, [n], 4)], 4), e.indicatorDots && Kr("div", {class: ["uni-swiper-dots", e.vertical ? "uni-swiper-dots-vertical" : "uni-swiper-dots-horizontal"]}, [f.value.map(((t, n, o) => Kr("div", { + }, [n], 4)], 4), e.indicatorDots && Kr("div", {class: ["uni-swiper-dots", e.vertical ? "uni-swiper-dots-vertical" : "uni-swiper-dots-horizontal"]}, [p.value.map(((t, n, o) => Kr("div", { onClick: () => h(n), class: { "uni-swiper-dot": !0, @@ -9346,9 +9346,9 @@ const ah = nu({ const e = r.value.length, t = !i.value; l = 0 === n.current && t, c = n.current === e - 1 && t || t && n.current + n.displayMultipleItems >= e, a.value || (l = !0, c = !0, s && (u.value = !0)) })); - const f = {onMouseover: e => d(e, "over"), onMouseout: e => d(e, "out")}; + const p = {onMouseover: e => d(e, "over"), onMouseout: e => d(e, "out")}; - function p(e, t, a) { + function f(e, t, a) { if (e.stopPropagation(), a) return; const s = r.value.length; let l = n.current; @@ -9362,16 +9362,16 @@ const ah = nu({ o(l) } - const h = () => hc(pc, t.navigationColor, 26); + const h = () => hc(fc, t.navigationColor, 26); let m; const g = n => { clearTimeout(m); const {clientX: o, clientY: r} = n, {left: i, right: a, top: s, bottom: l, width: c, height: d} = e.value.getBoundingClientRect(); - let f = !1; - if (f = t.vertical ? !(r - s < d / 3 || l - r < d / 3) : !(o - i < c / 3 || a - o < c / 3), f) return m = setTimeout((() => { - u.value = f + let p = !1; + if (p = t.vertical ? !(r - s < d / 3 || l - r < d / 3) : !(o - i < c / 3 || a - o < c / 3), p) return m = setTimeout((() => { + u.value = p }), 300); - u.value = f + u.value = p }, v = () => { u.value = !0 }; @@ -9384,11 +9384,11 @@ const ah = nu({ const e = {"uni-swiper-navigation-hide": u.value, "uni-swiper-navigation-vertical": t.vertical}; return t.navigation ? Kr(Mr, null, [Kr("div", ii({ class: ["uni-swiper-navigation uni-swiper-navigation-prev", S({"uni-swiper-navigation-disabled": l}, e)], - onClick: e => p(e, "prev", l) - }, f), [h()], 16, ["onClick"]), Kr("div", ii({ + onClick: e => f(e, "prev", l) + }, p), [h()], 16, ["onClick"]), Kr("div", ii({ class: ["uni-swiper-navigation uni-swiper-navigation-next", S({"uni-swiper-navigation-disabled": c}, e)], - onClick: e => p(e, "next", c) - }, f), [h()], 16, ["onClick"])]) : null + onClick: e => f(e, "next", c) + }, p), [h()], 16, ["onClick"])]) : null } }, lh = nu({ name: "SwiperItem", props: {itemId: {type: String, default: ""}}, setup(e, {slots: t}) { @@ -9442,7 +9442,7 @@ const dh = nu({ } else n.push(t) })), Kr("uni-text", {selectable: !!e.selectable || null}, [Kr("span", null, n)], 8, ["selectable"]) } -}), fh = nu({ +}), ph = nu({ name: "View", props: S({}, ru), setup(e, {slots: t}) { const {hovering: n, binding: o} = iu(e); return () => { @@ -9452,7 +9452,7 @@ const dh = nu({ } }); -function ph(e, t) { +function fh(e, t) { if (t || (t = e.id), t) return e.$options.name.toLowerCase() + "." + t } @@ -9471,11 +9471,11 @@ function mh(e, t) { function gh(e, t, n, o) { const r = ui().proxy; Io((() => { - hh(t || ph(r), e, o), !n && t || Gn((() => r.id), ((t, n) => { - hh(ph(r, t), e, o), mh(n && ph(r, n)) + hh(t || fh(r), e, o), !n && t || Gn((() => r.id), ((t, n) => { + hh(fh(r, t), e, o), mh(n && fh(r, n)) })) })), jo((() => { - mh(t || ph(r), o) + mh(t || fh(r), o) })) } @@ -9711,10 +9711,10 @@ function Yh(e, t) { const i = {}, a = e.proxy.$page.id; (n || r) && (i.onPageScroll = function (e, t, n) { return o => { - t && dv.publishHandler("onPageScroll", {scrollTop: o}, e), n && dv.emit(e + ".onPageScroll", {scrollTop: o}) + t && pv.publishHandler("onPageScroll", {scrollTop: o}, e), n && pv.emit(e + ".onPageScroll", {scrollTop: o}) } }(a, n, r)); - o && (i.onReachBottomDistance = t.onReachBottomDistance || 50, i.onReachBottom = () => dv.publishHandler("onReachBottom", {}, a)); + o && (i.onReachBottomDistance = t.onReachBottomDistance || 50, i.onReachBottom = () => pv.publishHandler("onReachBottom", {}, a)); Zh = Ac(i), requestAnimationFrame((() => document.addEventListener("scroll", Zh))) }(e, t) } @@ -9734,7 +9734,7 @@ function Gh(e) { let Kh, Zh; function em(e) { - const t = pl({history: nm(), strict: !!__uniConfig.router.strict, routes: __uniRoutes, scrollBehavior: tm}); + const t = fl({history: nm(), strict: !!__uniConfig.router.strict, routes: __uniRoutes, scrollBehavior: tm}); e.router = t, e.use(t) } @@ -9793,7 +9793,7 @@ function dm() { return um } -function fm(e) { +function pm(e) { um = e, Object.defineProperty(um.$.ctx, "$children", {get: () => Hh().map((e => e.$vm))}); const t = um.$.appContext.app; t.component(sm.name) || t.component(sm.name, sm), t.component(cm.name) || t.component(cm.name, cm), function (e) { @@ -9815,7 +9815,7 @@ function fm(e) { }(um), Yc(), $l() } -function pm(e, {clone: t, init: n, setup: o, before: r}) { +function fm(e, {clone: t, init: n, setup: o, before: r}) { t && (e = S({}, e)), r && r(e); const i = e.setup; return e.setup = (e, t) => { @@ -9827,7 +9827,7 @@ function pm(e, {clone: t, init: n, setup: o, before: r}) { } function hm(e, t) { - return e && (e.__esModule || "Module" === e[Symbol.toStringTag]) ? pm(e.default, t) : pm(e, t) + return e && (e.__esModule || "Module" === e[Symbol.toStringTag]) ? fm(e.default, t) : fm(e, t) } function mm(e) { @@ -9860,9 +9860,9 @@ function mm(e) { const {onHide: t} = e; t && J(t) } - })), i = o.id, dv.subscribe(Ol(i, "invokeViewApi"), a ? a(Ml) : Ml), jo((() => { + })), i = o.id, pv.subscribe(Ol(i, "invokeViewApi"), a ? a(Ml) : Ml), jo((() => { !function (e) { - dv.unsubscribe(Ol(e, "invokeViewApi")), Object.keys(Ll).forEach((t => { + pv.unsubscribe(Ol(e, "invokeViewApi")), Object.keys(Ll).forEach((t => { 0 === t.indexOf(e + ".") && delete Ll[t] })) }(o.id) @@ -9886,7 +9886,7 @@ function vm(e) { function bm() { const {emit: e} = fv; - "visible" === document.visibilityState ? e("onAppEnterForeground", S({}, Lf)) : e("onAppEnterBackground") + "visible" === document.visibilityState ? e("onAppEnterForeground", S({}, Pp)) : e("onAppEnterBackground") } function ym(e) { @@ -9917,7 +9917,7 @@ function wm(e, t, n) { n.fullscreen && a(); const s = o.gestureType; if ("stop" === s) return; - const l = i.targetTouches[0], c = l.pageX, u = l.pageY, d = r, f = t.value; + const l = i.targetTouches[0], c = l.pageX, u = l.pageY, d = r, p = t.value; if ("progress" === s ? function (e) { const n = t.value.duration; let r = e / 600 * n + o.currentTimeOld; @@ -9929,10 +9929,10 @@ function wm(e, t, n) { "number" == typeof r && (i = r - e / 200, i < 0 ? i = 0 : i > 1 && (i = 1), n.volume = i, o.volumeNew = i) }(u - d.y), "none" === s) if (Math.abs(c - d.x) > Math.abs(u - d.y)) { if (!e.enableProgressGesture) return void (o.gestureType = "stop"); - o.gestureType = "progress", o.currentTimeOld = o.currentTimeNew = f.currentTime, n.fullscreen || a() + o.gestureType = "progress", o.currentTimeOld = o.currentTimeNew = p.currentTime, n.fullscreen || a() } else { if (!e.pageGesture) return void (o.gestureType = "stop"); - o.gestureType = "volume", o.volumeOld = f.volume, n.fullscreen || a() + o.gestureType = "volume", o.volumeOld = p.volume, n.fullscreen || a() } }, onTouchend: function (e) { const n = t.value; @@ -9991,9 +9991,9 @@ const Tm = nu({ emits: ["fullscreenchange", "progress", "loadedmetadata", "waiting", "error", "play", "pause", "ended", "timeupdate"], setup(e, {emit: t, attrs: n, slots: o}) { const r = nn(null), i = nn(null), - a = lu(r, t), {state: s} = rp(), {$attrs: l} = vp({excludeListeners: !0}), {t: c} = wl(); + a = lu(r, t), {state: s} = of(), {$attrs: l} = vf({excludeListeners: !0}), {t: c} = wl(); Al(); - const {videoRef: u, state: d, play: f, pause: p, seek: h, playbackRate: m, toggle: g, onDurationChange: v, onLoadedMetadata: b, onProgress: y, onWaiting: _, onVideoError: w, onPlay: x, onPause: T, onEnded: S, onTimeUpdate: E} = function (e, t, n) { + const {videoRef: u, state: d, play: p, pause: f, seek: h, playbackRate: m, toggle: g, onDurationChange: v, onLoadedMetadata: b, onProgress: y, onWaiting: _, onVideoError: w, onPlay: x, onPause: T, onEnded: S, onTimeUpdate: E} = function (e, t, n) { const o = nn(null), r = yi((() => gu(e.src))), i = qt({start: !1, src: r, playing: !1, currentTime: 0, duration: 0, progress: 0, buffered: 0}); @@ -10132,14 +10132,14 @@ const Tm = nu({ function d(e) { const n = e.targetTouches[0], r = n.pageX, l = n.pageY; - if (c && Math.abs(r - i) < Math.abs(l - a)) return void f(e); + if (c && Math.abs(r - i) < Math.abs(l - a)) return void p(e); c = !1; const u = o.value.offsetWidth; let d = s + (r - i) / u * 100; d < 0 ? d = 0 : d > 100 && (d = 100), t.progress = d, e.preventDefault(), e.stopPropagation() } - function f(o) { + function p(o) { l.controlsTouching = !1, l.touching && (u.removeEventListener("touchmove", d, e), c || (o.preventDefault(), o.stopPropagation(), n(t.duration * t.progress / 100)), l.touching = !1) } @@ -10147,7 +10147,7 @@ const Tm = nu({ l.controlsTouching = !0; const o = n.targetTouches[0]; i = o.pageX, a = o.pageY, s = t.progress, c = !0, l.touching = !0, u.addEventListener("touchmove", d, e) - })), u.addEventListener("touchend", f), u.addEventListener("touchcancel", f) + })), u.addEventListener("touchend", p), u.addEventListener("touchcancel", p) })), { state: l, progressRef: o, ballRef: r, clickProgress: function (e) { const r = o.value; @@ -10161,7 +10161,7 @@ const Tm = nu({ }, autoHideStart: u, autoHideEnd: d } }(e, d, h); - return xm(f, p, h, L, m, j, R), () => Kr("uni-video", {ref: r, id: e.id}, [Kr("div", { + return xm(p, f, h, L, m, j, R), () => Kr("uni-video", {ref: r, id: e.id}, [Kr("div", { ref: i, class: "uni-video-container", onTouchstart: D, @@ -10238,7 +10238,7 @@ const Tm = nu({ }), ["stop"]) }, [Kr("div", { class: "uni-video-cover-play-button", - onClick: wa(f, ["stop"]) + onClick: wa(p, ["stop"]) }, null, 8, ["onClick"]), Kr("p", {class: "uni-video-cover-duration"}, [_m(Number(e.duration) || d.duration)])], 8, ["onClick"]), Kr("div", { class: { "uni-video-toast": !0, @@ -10269,7 +10269,7 @@ const Tm = nu({ props: {src: {type: String, default: ""}, fullscreen: {type: Boolean, default: !0}}, setup(e) { Em(); - const t = nn(null), n = nn(null), {$attrs: o, $excludeAttrs: r, $listeners: i} = vp({excludeListeners: !0}); + const t = nn(null), n = nn(null), {$attrs: o, $excludeAttrs: r, $listeners: i} = vf({excludeListeners: !0}); let a; return (() => { const r = document.createElement("iframe"); @@ -10309,7 +10309,7 @@ const Tm = nu({ e.fullscreen && (n.value.style.display = "none") })), jo((() => { e.fullscreen && document.body.removeChild(n.value) - })), () => Kr(Mr, null, [Kr("uni-web-view", ii({class: e.fullscreen ? "uni-webview--fullscreen" : ""}, i.value, r.value, {ref: t}), [Kr(Of, {onResize: a}, null, 8, ["onResize"])], 16)]) + })), () => Kr(Mr, null, [Kr("uni-web-view", ii({class: e.fullscreen ? "uni-webview--fullscreen" : ""}, i.value, r.value, {ref: t}), [Kr(Lp, {onResize: a}, null, 8, ["onResize"])], 16)]) } }); const Am = ld("makePhoneCall", (({phoneNumber: e}, {resolve: t}) => (window.location.href = `tel:${e}`, t()))), @@ -10535,19 +10535,19 @@ const Rm = sd(0, (() => { t[o] = e[o] })), Object.keys(t) ? t : e }(l) -})); -const zm = sd(0, ((e, t) => { +})), zm = ld("getSystemInfo", ((e, {resolve: t}) => t(Dm()))); +const Hm = sd(0, ((e, t) => { const n = typeof t, o = "string" === n ? t : JSON.stringify({type: n, data: t}); localStorage.setItem(e, o) -})), Hm = ld("setStorage", (({key: e, data: t}, {resolve: n, reject: o}) => { +})), qm = ld("setStorage", (({key: e, data: t}, {resolve: n, reject: o}) => { try { - zm(e, t), n() + Hm(e, t), n() } catch (r) { o(r.message) } })); -function qm(e) { +function Vm(e) { const t = localStorage && localStorage.getItem(e); if (!I(t)) throw new Error("data not found"); let n = t; @@ -10572,26 +10572,26 @@ function qm(e) { return n } -const Vm = sd(0, (e => { +const Wm = sd(0, (e => { try { - return qm(e) + return Vm(e) } catch (t) { return "" } -})), Wm = ld("getStorage", (({key: e}, {resolve: t, reject: n}) => { +})), $m = ld("getStorage", (({key: e}, {resolve: t, reject: n}) => { try { - t({data: qm(e)}) + t({data: Vm(e)}) } catch (o) { n(o.message) } -})), $m = sd(0, (e => { +})), Qm = sd(0, (e => { localStorage && localStorage.removeItem(e) -})), Qm = ld("removeStorage", (({key: e}, {resolve: t}) => { - $m(e), t() -})), Um = ld("hideKeyboard", ((e, {resolve: t, reject: n}) => { +})), Um = ld("removeStorage", (({key: e}, {resolve: t}) => { + Qm(e), t() +})), Xm = ld("hideKeyboard", ((e, {resolve: t, reject: n}) => { const o = document.activeElement; !o || "TEXTAREA" !== o.tagName && "INPUT" !== o.tagName || (o.blur(), t()) -})), Xm = { +})), Ym = { image: { jpg: "jpeg", jpe: "jpeg", @@ -10639,7 +10639,7 @@ const Vm = sd(0, (e => { } }; -function Ym({count: e, sourceType: t, type: n, extension: o}) { +function Jm({count: e, sourceType: t, type: n, extension: o}) { const r = document.createElement("input"); return r.type = "file", ue(r, { position: "absolute", @@ -10652,7 +10652,7 @@ function Ym({count: e, sourceType: t, type: n, extension: o}) { }), r.accept = o.map((e => { if ("all" !== n) { const t = e.replace(".", ""); - return `${n}/${Xm[n][t] || t}` + return `${n}/${Ym[n][t] || t}` } return function () { const e = window.navigator.userAgent.toLowerCase().match(/MicroMessenger/i); @@ -10661,24 +10661,24 @@ function Ym({count: e, sourceType: t, type: n, extension: o}) { })).join(","), e && e > 1 && (r.multiple = !0), "all" !== n && t instanceof Array && 1 === t.length && "camera" === t[0] && r.setAttribute("capture", "camera"), r } -np(); -let Jm = null; -const Gm = ld("chooseFile", (({count: e, sourceType: t, type: n, extension: o}, {resolve: r, reject: i}) => { +tf(); +let Gm = null; +const Km = ld("chooseFile", (({count: e, sourceType: t, type: n, extension: o}, {resolve: r, reject: i}) => { kl(); const {t: a} = wl(); - Jm && (document.body.removeChild(Jm), Jm = null), Jm = Ym({ + Gm && (document.body.removeChild(Gm), Gm = null), Gm = Jm({ count: e, sourceType: t, type: n, extension: o - }), document.body.appendChild(Jm), Jm.addEventListener("change", (function (t) { + }), document.body.appendChild(Gm), Gm.addEventListener("change", (function (t) { const n = t.target, o = []; if (n && n.files) { const t = n.files.length; for (let r = 0; r < t; r++) { const t = n.files[r]; let i; - Object.defineProperty(t, "path", {get: () => (i = i || Cf(t), i)}), r < e && o.push(t) + Object.defineProperty(t, "path", {get: () => (i = i || Ap(t), i)}), r < e && o.push(t) } } r({ @@ -10686,25 +10686,25 @@ const Gm = ld("chooseFile", (({count: e, sourceType: t, type: n, extension: o}, return o.map((({path: e}) => e)) }, tempFiles: o }) - })), Jm.click(), op() || console.warn(a("uni.chooseFile.notUserActivation")) -}), 0, ef); -let Km = null; -const Zm = ld("chooseImage", (({count: e, sourceType: t, extension: n}, {resolve: o, reject: r}) => { + })), Gm.click(), nf() || console.warn(a("uni.chooseFile.notUserActivation")) +}), 0, ep); +let Zm = null; +const eg = ld("chooseImage", (({count: e, sourceType: t, extension: n}, {resolve: o, reject: r}) => { kl(); const {t: i} = wl(); - Km && (document.body.removeChild(Km), Km = null), Km = Ym({ + Zm && (document.body.removeChild(Zm), Zm = null), Zm = Jm({ count: e, sourceType: t, extension: n, type: "image" - }), document.body.appendChild(Km), Km.addEventListener("change", (function (t) { + }), document.body.appendChild(Zm), Zm.addEventListener("change", (function (t) { const n = t.target, r = []; if (n && n.files) { const t = n.files.length; for (let o = 0; o < t; o++) { const t = n.files[o]; let i; - Object.defineProperty(t, "path", {get: () => (i = i || Cf(t), i)}), o < e && r.push(t) + Object.defineProperty(t, "path", {get: () => (i = i || Ap(t), i)}), o < e && r.push(t) } } o({ @@ -10712,23 +10712,23 @@ const Zm = ld("chooseImage", (({count: e, sourceType: t, extension: n}, {resolve return r.map((({path: e}) => e)) }, tempFiles: r }) - })), Km.click(), op() || console.warn(i("uni.chooseFile.notUserActivation")) -}), 0, Gd), eg = {esc: ["Esc", "Escape"], enter: ["Enter"]}, tg = Object.keys(eg); + })), Zm.click(), nf() || console.warn(i("uni.chooseFile.notUserActivation")) +}), 0, Gd), tg = {esc: ["Esc", "Escape"], enter: ["Enter"]}, ng = Object.keys(tg); -function ng(e, t, n) { - return t.onClose = (...e) => (t.visible = !1, n.apply(null, e)), ka(fo({setup: () => () => (zr(), $r(e, t, null, 16))})) +function og(e, t, n) { + return t.onClose = (...e) => (t.visible = !1, n.apply(null, e)), ka(po({setup: () => () => (zr(), $r(e, t, null, 16))})) } -function og(e) { +function rg(e) { let t = document.getElementById(e); return t || (t = document.createElement("div"), t.id = e, document.body.append(t)), t } -function rg(e, {onEsc: t, onEnter: n}) { +function ig(e, {onEsc: t, onEnter: n}) { const o = nn(e.visible), {key: r, disable: i} = function () { const e = nn(""), t = nn(!1), n = n => { if (t.value) return; - const o = tg.find((e => -1 !== eg[e].indexOf(n.key))); + const o = ng.find((e => -1 !== tg[e].indexOf(n.key))); o && (e.value = o), kn((() => e.value = "")) }; return Io((() => { @@ -10743,14 +10743,14 @@ function rg(e, {onEsc: t, onEnter: n}) { })), o } -let ig = 0, ag = ""; +let ag = 0, sg = ""; -function sg(e) { - let t = ig; - ig += e ? 1 : -1, ig = Math.max(0, ig), ig > 0 ? 0 === t && (ag = document.body.style.overflow, document.body.style.overflow = "hidden") : (document.body.style.overflow = ag, ag = "") +function lg(e) { + let t = ag; + ag += e ? 1 : -1, ag = Math.max(0, ag), ag > 0 ? 0 === t && (sg = document.body.style.overflow, document.body.style.overflow = "hidden") : (document.body.style.overflow = sg, sg = "") } -const lg = ou({ +const cg = ou({ name: "ImageView", props: {src: {type: String, default: ""}}, setup(e) { const t = qt({direction: "none"}); let n = 1, o = 0, r = 0, i = 0, a = 0; @@ -10780,13 +10780,13 @@ const lg = ou({ return () => { const n = {position: "absolute", left: "0", top: "0", width: "100%", height: "100%"}; - return Kr(yp, { + return Kr(yf, { style: n, onTouchstart: su(c), onTouchmove: su(d), onTouchend: su(u) }, { - default: () => [Kr(Op, { + default: () => [Kr(Of, { style: n, direction: t.direction, inertia: !0, @@ -10813,18 +10813,18 @@ const lg = ou({ } }); -function cg(e) { +function ug(e) { let t = "number" == typeof e.current ? e.current : e.urls.indexOf(e.current); return t = t < 0 ? 0 : t, t } -const ug = ou({ +const dg = ou({ name: "ImagePreview", props: {urls: {type: Array, default: () => []}, current: {type: [Number, String], default: 0}}, emits: ["close"], setup(e, {emit: t}) { - Io((() => sg(!0))), Ro((() => sg(!1))); - const n = nn(null), o = nn(cg(e)); + Io((() => lg(!0))), Ro((() => lg(!1))); + const n = nn(null), o = nn(ug(e)); let r; function i() { @@ -10837,7 +10837,7 @@ const ug = ou({ o.value = e.detail.current } - Gn((() => e.current), (() => o.value = cg(e))), Io((() => { + Gn((() => e.current), (() => o.value = ug(e))), Io((() => { const e = n.value; let t = 0, o = 0; e.addEventListener("mousedown", (e => { @@ -10882,7 +10882,7 @@ const ug = ou({ "indicator-dots": !1, autoplay: !1, style: {position: "absolute", left: "0", top: "0", width: "100%", height: "100%"} - }, (r = t = e.urls.map((e => Kr(lh, null, {default: () => [Kr(lg, {src: e}, null, 8, ["src"])]}))), "function" == typeof r || "[object Object]" === Object.prototype.toString.call(r) && !Qr(r) ? t : { + }, (r = t = e.urls.map((e => Kr(lh, null, {default: () => [Kr(cg, {src: e}, null, 8, ["src"])]}))), "function" == typeof r || "[object Object]" === Object.prototype.toString.call(r) && !Qr(r) ? t : { default: () => [t], _: 1 }), 8, ["current", "onChange"]), Kr("div", {style: s}, [hc("M17.25 16.156l7.375-7.313q0.281-0.281 0.281-0.641t-0.281-0.641q-0.25-0.25-0.625-0.25t-0.625 0.25l-7.375 7.344-7.313-7.344q-0.25-0.25-0.625-0.25t-0.625 0.25q-0.281 0.25-0.281 0.625t0.281 0.625l7.313 7.344-7.375 7.344q-0.281 0.25-0.281 0.625t0.281 0.625q0.125 0.125 0.281 0.188t0.344 0.063q0.156 0 0.328-0.063t0.297-0.188l7.375-7.344 7.375 7.406q0.125 0.156 0.297 0.219t0.328 0.063q0.188 0 0.344-0.078t0.281-0.203q0.281-0.25 0.281-0.609t-0.281-0.641l-7.375-7.406z", "#ffffff", 26)], 4)], 8, ["onClick"]); @@ -10890,45 +10890,45 @@ const ug = ou({ } } }); -let dg, fg = null; -const pg = () => { +let pg, fg = null; +const hg = () => { fg = null, kn((() => { - null == dg || dg.unmount(), dg = null + null == pg || pg.unmount(), pg = null })) -}, hg = ld("previewImage", ((e, {resolve: t}) => { +}, mg = ld("previewImage", ((e, {resolve: t}) => { fg ? S(fg, e) : (fg = qt(e), kn((() => { - dg = ng(ug, fg, pg), dg.mount(og("u-a-p")) + pg = og(dg, fg, hg), pg.mount(rg("u-a-p")) }))), t() -}), 0, tf); -let mg = null; -const gg = ld("chooseVideo", (({sourceType: e, extension: t}, {resolve: n, reject: o}) => { +}), 0, tp); +let gg = null; +const vg = ld("chooseVideo", (({sourceType: e, extension: t}, {resolve: n, reject: o}) => { kl(); const {t: r} = wl(); - mg && (document.body.removeChild(mg), mg = null), mg = Ym({ + gg && (document.body.removeChild(gg), gg = null), gg = Jm({ sourceType: e, extension: t, type: "video" - }), document.body.appendChild(mg), mg.addEventListener("change", (function (e) { + }), document.body.appendChild(gg), gg.addEventListener("change", (function (e) { const t = e.target.files[0]; let o = ""; const r = {tempFilePath: o, tempFile: t, size: t.size, duration: 0, width: 0, height: 0, name: t.name}; Object.defineProperty(r, "tempFilePath", { get() { - return o = o || Cf(this.tempFile), o + return o = o || Ap(this.tempFile), o } }); const i = document.createElement("video"); if (void 0 !== i.onloadedmetadata) { - const e = Cf(t); + const e = Ap(t); i.onloadedmetadata = function () { - Bf(e), n(S(r, {duration: i.duration || 0, width: i.videoWidth || 0, height: i.videoHeight || 0})) + Cp(e), n(S(r, {duration: i.duration || 0, width: i.videoWidth || 0, height: i.videoHeight || 0})) }, setTimeout((() => { - i.onloadedmetadata = null, Bf(e), n(r) + i.onloadedmetadata = null, Cp(e), n(r) }), 300), i.src = e } else n(r) - })), mg.click(), op() || console.warn(r("uni.chooseFile.notUserActivation")) + })), gg.click(), nf() || console.warn(r("uni.chooseFile.notUserActivation")) }), 0, Kd), - vg = ad("request", (({url: e, data: t, header: n, method: o, dataType: r, responseType: i, withCredentials: a, timeout: s = __uniConfig.networkTimeout.request}, {resolve: l, reject: c}) => { + bg = ad("request", (({url: e, data: t, header: n, method: o, dataType: r, responseType: i, withCredentials: a, timeout: s = __uniConfig.networkTimeout.request}, {resolve: l, reject: c}) => { let u = null; const d = function (e) { const t = Object.keys(e).find((e => "content-type" === e.toLowerCase())); @@ -10947,29 +10947,29 @@ const gg = ld("chooseVideo", (({sourceType: e, extension: t}, {resolve: n, rejec for (const n in t) A(t, n) && e.push(encodeURIComponent(n) + "=" + encodeURIComponent(t[n])); u = e.join("&") } else u = t.toString(); - const f = new XMLHttpRequest, p = new bg(f); - f.open(o, e); - for (const g in n) A(n, g) && f.setRequestHeader(g, n[g]); + const p = new XMLHttpRequest, f = new yg(p); + p.open(o, e); + for (const g in n) A(n, g) && p.setRequestHeader(g, n[g]); const h = setTimeout((function () { - f.onload = f.onabort = f.onerror = null, p.abort(), c("timeout") + p.onload = p.onabort = p.onerror = null, f.abort(), c("timeout") }), s); - return f.responseType = i, f.onload = function () { + return p.responseType = i, p.onload = function () { clearTimeout(h); - const e = f.status; - let t = "text" === i ? f.responseText : f.response; + const e = p.status; + let t = "text" === i ? p.responseText : p.response; if ("text" === i && "json" === r) try { t = JSON.parse(t) } catch (m) { } - l({data: t, statusCode: e, header: yg(f.getAllResponseHeaders()), cookies: []}) - }, f.onabort = function () { + l({data: t, statusCode: e, header: _g(p.getAllResponseHeaders()), cookies: []}) + }, p.onabort = function () { clearTimeout(h), c("abort") - }, f.onerror = function () { + }, p.onerror = function () { clearTimeout(h), c() - }, f.withCredentials = a, f.send(u), p - }), 0, af); + }, p.withCredentials = a, p.send(u), f + }), 0, ip); -class bg { +class yg { constructor(e) { this._xhr = e } @@ -10987,7 +10987,7 @@ class bg { } } -function yg(e) { +function _g(e) { const t = {}; return e.split("\n").forEach((e => { const n = e.match(/(\S+\s*):\s*(.*)/); @@ -10995,7 +10995,7 @@ function yg(e) { })), t } -class _g { +class wg { constructor(e) { this._callbacks = [], this._xhr = e } @@ -11022,8 +11022,8 @@ class _g { } } -const wg = ad("downloadFile", (({url: e, header: t, timeout: n = __uniConfig.networkTimeout.downloadFile}, {resolve: o, reject: r}) => { - var i, a = new XMLHttpRequest, s = new _g(a); +const xg = ad("downloadFile", (({url: e, header: t, timeout: n = __uniConfig.networkTimeout.downloadFile}, {resolve: o, reject: r}) => { + var i, a = new XMLHttpRequest, s = new wg(a); return a.open("GET", e, !0), Object.keys(t).forEach((e => { a.setRequestHeader(e, t[e]) })), a.responseType = "blob", a.onload = function () { @@ -11038,7 +11038,7 @@ const wg = ad("downloadFile", (({url: e, header: t, timeout: n = __uniConfig.net n.name = r || function (e) { const t = (e = e.split("#")[0].split("?")[0]).split("/"); return t[t.length - 1] - }(e), o({statusCode: t, tempFilePath: Cf(n)}) + }(e), o({statusCode: t, tempFilePath: Ap(n)}) }, a.onabort = function () { clearTimeout(i), r("abort") }, a.onerror = function () { @@ -11051,9 +11051,9 @@ const wg = ad("downloadFile", (({url: e, header: t, timeout: n = __uniConfig.net }, a.send(), i = setTimeout((function () { a.onprogress = a.onload = a.onabort = a.onerror = null, s.abort(), r("timeout") }), n), s -}), 0, sf); +}), 0, ap); -class xg { +class Tg { constructor(e) { this._callbacks = [], this._xhr = e } @@ -11080,13 +11080,13 @@ class xg { } } -const Tg = ad("uploadFile", (({url: e, file: t, filePath: n, name: o, files: r, header: i, formData: a, timeout: s = __uniConfig.networkTimeout.uploadFile}, {resolve: l, reject: c}) => { - var u = new xg; +const Sg = ad("uploadFile", (({url: e, file: t, filePath: n, name: o, files: r, header: i, formData: a, timeout: s = __uniConfig.networkTimeout.uploadFile}, {resolve: l, reject: c}) => { + var u = new Tg; return C(r) && r.length || (r = [{ name: o, file: t, uri: n - }]), Promise.all(r.map((({file: e, uri: t}) => e instanceof Blob ? Promise.resolve(Af(e)) : kf(t)))).then((function (t) { + }]), Promise.all(r.map((({file: e, uri: t}) => e instanceof Blob ? Promise.resolve(kp(e)) : Ep(t)))).then((function (t) { var n, o = new XMLHttpRequest, d = new FormData; Object.keys(a).forEach((e => { d.append(e, a[e]) @@ -11116,12 +11116,12 @@ const Tg = ad("uploadFile", (({url: e, file: t, filePath: n, name: o, files: r, c("file error") }), 0) })), u -}), 0, lf), Sg = ld("navigateBack", ((e, {resolve: t, reject: n}) => { +}), 0, sp), Eg = ld("navigateBack", ((e, {resolve: t, reject: n}) => { let o = !0; return !0 === Tc("onBackPress", {from: e.from || "navigateBack"}) && (o = !1), o ? (dm().$router.go(-e.delta), t()) : n("onBackPress") -}), 0, hf); +}), 0, fp); -function Eg({type: e, url: t, tabBarText: n, events: o}, r) { +function kg({type: e, url: t, tabBarText: n, events: o}, r) { const i = dm().$router, {path: a, query: s} = function (e) { const [t, n] = e.split("?", 2); return {path: t, query: we(n || "")} @@ -11143,27 +11143,27 @@ function Eg({type: e, url: t, tabBarText: n, events: o}, r) { })) } -const kg = ld("navigateTo", (({url: e, events: t}, {resolve: n, reject: o}) => Eg({ +const Ag = ld("navigateTo", (({url: e, events: t}, {resolve: n, reject: o}) => kg({ type: "navigateTo", url: e, events: t -}).then(n).catch(o)), 0, uf); -const Ag = ld("redirectTo", (({url: e}, {resolve: t, reject: n}) => (function () { +}).then(n).catch(o)), 0, cp); +const Cg = ld("redirectTo", (({url: e}, {resolve: t, reject: n}) => (function () { const e = vc(); if (!e) return; const t = e.$page; qh(Qh(t.path, t.id)) -}(), Eg({type: "redirectTo", url: e}).then(t).catch(n))), 0, df); -const Cg = ld("reLaunch", (({url: e}, {resolve: t, reject: n}) => (function () { +}(), kg({type: "redirectTo", url: e}).then(t).catch(n))), 0, up); +const Bg = ld("reLaunch", (({url: e}, {resolve: t, reject: n}) => (function () { const e = zh().keys(); for (const t of e) qh(t) -}(), Eg({type: "reLaunch", url: e}).then(t).catch(n))), 0, ff); +}(), kg({type: "reLaunch", url: e}).then(t).catch(n))), 0, dp); -function Bg(e, t) { +function Pg(e, t) { return e === t.fullPath || "/" === e && t.meta.isEntry } -const Pg = ld("switchTab", (({url: e, tabBarText: t}, {resolve: n, reject: o}) => (function () { +const Lg = ld("switchTab", (({url: e, tabBarText: t}, {resolve: n, reject: o}) => (function () { const e = _c(); if (!e) return; const t = zh(), n = t.keys(); @@ -11172,38 +11172,38 @@ const Pg = ld("switchTab", (({url: e, tabBarText: t}, {resolve: n, reject: o}) = e.$.__isTabBar ? e.$.__isActive = !1 : qh(o) } e.$.__isTabBar && (e.$.__isVisible = !1, Tc(e, "onHide")) -}(), Eg({type: "switchTab", url: e, tabBarText: t}, function (e) { +}(), kg({type: "switchTab", url: e, tabBarText: t}, function (e) { const t = zh().values(); for (const n of t) { const t = n.$page; - if (Bg(e, t)) return n.$.__isActive = !0, t.id + if (Pg(e, t)) return n.$.__isActive = !0, t.id } -}(e)).then(n).catch(o))), 0, pf); +}(e)).then(n).catch(o))), 0, pp); -function Lg(e) { +function Og(e) { __uniConfig.darkmode && fv.on("onThemeChange", e) } -function Og(e) { +function Ig(e) { let t = {}; return __uniConfig.darkmode && (t = Oe(e, __uniConfig.themeConfig, Lm())), __uniConfig.darkmode ? t : e } -const Ig = { +const Mg = { title: {type: String, default: ""}, - icon: {default: "success", validator: e => -1 !== wf.indexOf(e)}, + icon: {default: "success", validator: e => -1 !== _p.indexOf(e)}, image: {type: String, default: ""}, duration: {type: Number, default: 1500}, mask: {type: Boolean, default: !1}, visible: {type: Boolean} -}, Mg = {light: "#fff", dark: "rgba(255,255,255,0.9)"}, Fg = e => Mg[e], jg = fo({ - name: "Toast", props: Ig, setup(e) { +}, Fg = {light: "#fff", dark: "rgba(255,255,255,0.9)"}, jg = e => Fg[e], Rg = po({ + name: "Toast", props: Mg, setup(e) { Sl(), El(); const {Icon: t} = function (e) { - const t = nn(Fg(Lm())), n = ({theme: e}) => t.value = Fg(e); + const t = nn(jg(Lm())), n = ({theme: e}) => t.value = jg(e); Yn((() => { var t; - e.visible ? Lg(n) : (t = n, fv.off("onThemeChange", t)) + e.visible ? Og(n) : (t = n, fv.off("onThemeChange", t)) })); return { Icon: yi((() => { @@ -11211,7 +11211,7 @@ const Ig = { case"success": return Kr(hc(dc, t.value, 38), {class: "uni-toast__icon"}); case"error": - return Kr(hc(fc, t.value, 38), {class: "uni-toast__icon"}); + return Kr(hc(pc, t.value, 38), {class: "uni-toast__icon"}); case"loading": return Kr("i", {class: ["uni-toast__icon", "uni-loading"]}, null, 2); default: @@ -11219,7 +11219,7 @@ const Ig = { } })) } - }(e), n = rg(e, {}); + }(e), n = ig(e, {}); return () => { const {mask: o, duration: r, title: i, image: a} = e; return Kr(Xi, {name: "uni-fade"}, { @@ -11235,42 +11235,42 @@ const Ig = { } } }); -let Rg, Ng, Dg = ""; -const zg = Fe(); +let Ng, Dg, zg = ""; +const Hg = Fe(); -function Hg(e) { - Rg ? S(Rg, e) : (Rg = qt(S(e, {visible: !1})), kn((() => { - zg.run((() => { - Gn([() => Rg.visible, () => Rg.duration], (([e, t]) => { +function qg(e) { + Ng ? S(Ng, e) : (Ng = qt(S(e, {visible: !1})), kn((() => { + Hg.run((() => { + Gn([() => Ng.visible, () => Ng.duration], (([e, t]) => { if (e) { - if (Ng && clearTimeout(Ng), "onShowLoading" === Dg) return; - Ng = setTimeout((() => { - Vg("onHideToast") + if (Dg && clearTimeout(Dg), "onShowLoading" === zg) return; + Dg = setTimeout((() => { + Wg("onHideToast") }), t) - } else Ng && clearTimeout(Ng) + } else Dg && clearTimeout(Dg) })) - })), fv.on("onHidePopup", (() => Vg("onHidePopup"))), ng(jg, Rg, (() => { - })).mount(og("u-a-t")) + })), fv.on("onHidePopup", (() => Wg("onHidePopup"))), og(Rg, Ng, (() => { + })).mount(rg("u-a-t")) }))), setTimeout((() => { - Rg.visible = !0 + Ng.visible = !0 }), 10) } -const qg = ld("showToast", ((e, {resolve: t, reject: n}) => { - Hg(e), Dg = "onShowToast", t() -}), 0, xf); +const Vg = ld("showToast", ((e, {resolve: t, reject: n}) => { + qg(e), zg = "onShowToast", t() +}), 0, wp); -function Vg(e) { +function Wg(e) { const {t: t} = wl(); - if (!Dg) return; + if (!zg) return; let n = ""; - if ("onHideToast" === e && "onShowToast" !== Dg ? n = t("uni.showToast.unpaired") : "onHideLoading" === e && "onShowLoading" !== Dg && (n = t("uni.showLoading.unpaired")), n) return console.warn(n); - Dg = "", setTimeout((() => { - Rg.visible = !1 + if ("onHideToast" === e && "onShowToast" !== zg ? n = t("uni.showToast.unpaired") : "onHideLoading" === e && "onShowLoading" !== zg && (n = t("uni.showLoading.unpaired")), n) return console.warn(n); + zg = "", setTimeout((() => { + Ng.visible = !1 }), 10) } -const Wg = ld("loadFontFace", (({family: e, source: t, desc: n}, {resolve: o, reject: r}) => { +const $g = ld("loadFontFace", (({family: e, source: t, desc: n}, {resolve: o, reject: r}) => { (function (e, t, n) { const o = document.fonts; if (o) { @@ -11294,7 +11294,7 @@ const Wg = ld("loadFontFace", (({family: e, source: t, desc: n}, {resolve: o, re })) })); -function $g(e) { +function Qg(e) { function t() { var t; t = e.navigationBar.titleText, document.title = t, fv.emit("onNavigationBarChange", {titleText: t}) @@ -11303,7 +11303,7 @@ function $g(e) { Yn(t), wo(t) } -const Qg = ld("setNavigationBarTitle", ((e, {resolve: t, reject: n}) => { +const Ug = ld("setNavigationBarTitle", ((e, {resolve: t, reject: n}) => { !function (e, t, n, o, r) { if (!e) return r("page not found"); const {navigationBar: i} = e; @@ -11324,7 +11324,7 @@ const Qg = ld("setNavigationBarTitle", ((e, {resolve: t, reject: n}) => { } o() }(bc(), "setNavigationBarTitle", e, t, n) - })), Ug = ld("pageScrollTo", (({scrollTop: e, selector: t, duration: n}, {resolve: o}) => { + })), Xg = ld("pageScrollTo", (({scrollTop: e, selector: t, duration: n}, {resolve: o}) => { !function (e, t, n) { if (I(e)) { const t = document.querySelector(e); @@ -11346,20 +11346,20 @@ const Qg = ld("setNavigationBarTitle", ((e, {resolve: t, reject: n}) => { }; a(t) }(t || e || 0, n, !0), o() - }), 0, _f), Xg = ld("startPullDownRefresh", ((e, {resolve: t}) => { + }), 0, yp), Yg = ld("startPullDownRefresh", ((e, {resolve: t}) => { fv.invokeViewMethod("startPullDownRefresh", {}, yc()), t() - })), Yg = ld("stopPullDownRefresh", ((e, {resolve: t}) => { + })), Jg = ld("stopPullDownRefresh", ((e, {resolve: t}) => { fv.invokeViewMethod("stopPullDownRefresh", {}, yc()), t() - })), Jg = ["text", "iconPath", "iconfont", "selectedIconPath", "visible"], - Gg = ["color", "selectedColor", "backgroundColor", "borderStyle", "midButton"], Kg = ["badge", "redDot"]; + })), Gg = ["text", "iconPath", "iconfont", "selectedIconPath", "visible"], + Kg = ["color", "selectedColor", "backgroundColor", "borderStyle", "midButton"], Zg = ["badge", "redDot"]; -function Zg(e, t, n) { +function ev(e, t, n) { t.forEach((function (t) { A(n, t) && (e[t] = n[t]) })) } -function ev(e, t, n) { +function tv(e, t, n) { const o = Lh(); switch (e) { case"showTabBar": @@ -11370,7 +11370,7 @@ function ev(e, t, n) { break; case"setTabBarItem": const {index: e} = t, n = o.list[e], r = n.pagePath; - Zg(n, Jg, t); + ev(n, Gg, t); const {pagePath: i} = t; if (i) { const t = le(i); @@ -11391,26 +11391,26 @@ function ev(e, t, n) { } break; case"setTabBarStyle": - Zg(o, Gg, t); + ev(o, Kg, t); break; case"showTabBarRedDot": - Zg(o.list[t.index], Kg, {badge: "", redDot: !0}); + ev(o.list[t.index], Zg, {badge: "", redDot: !0}); break; case"setTabBarBadge": - Zg(o.list[t.index], Kg, {badge: t.text, redDot: !0}); + ev(o.list[t.index], Zg, {badge: t.text, redDot: !0}); break; case"hideTabBarRedDot": case"removeTabBarBadge": - Zg(o.list[t.index], Kg, {badge: "", redDot: !1}) + ev(o.list[t.index], Zg, {badge: "", redDot: !1}) } n() } -const tv = ld("hideTabBar", ((e, {resolve: t}) => { - ev("hideTabBar", e || {}, t) -})), nv = ou({ +const nv = ld("hideTabBar", ((e, {resolve: t}) => { + tv("hideTabBar", e || {}, t) +})), ov = ou({ name: "TabBar", setup() { - const e = nn([]), t = Lh(), n = qt(Og(t)); + const e = nn([]), t = Lh(), n = qt(Ig(t)); !function (e, t) { function n() { let n = []; @@ -11433,7 +11433,7 @@ const tv = ld("hideTabBar", ((e, {resolve: t}) => { })), (t, n) => () => { const {pagePath: o, text: r} = t; let i = le(o); - i === __uniRoutes[0].alias && (i = "/"), e.path !== i ? Pg({ + i === __uniRoutes[0].alias && (i = "/"), e.path !== i ? Lg({ from: "tabBar", url: i, tabBarText: r @@ -11443,23 +11443,23 @@ const tv = ld("hideTabBar", ((e, {resolve: t}) => { const t = yi((() => { let t = e.backgroundColor; const n = e.blurEffect; - return t || jh && n && "none" !== n && (t = ov[n]), { + return t || jh && n && "none" !== n && (t = rv[n]), { backgroundColor: t || "#f7f7fa", backdropFilter: "none" !== n ? "blur(10px)" : n } })), n = yi((() => { const {borderStyle: t} = e; - return {backgroundColor: rv[t] || t} + return {backgroundColor: iv[t] || t} })), o = yi((() => ({height: e.height}))); return {style: t, borderStyle: n, placeholderStyle: o} }(n); - return Lg((() => { - const e = Og(t); + return Og((() => { + const e = Ig(t); n.backgroundColor = e.backgroundColor, n.borderStyle = e.borderStyle, n.color = e.color, n.selectedColor = e.selectedColor, n.blurEffect = e.blurEffect, e.list && e.list.length && e.list.forEach(((e, t) => { n.list[t].iconPath = e.iconPath, n.list[t].selectedIconPath = e.selectedIconPath })) })), Io((() => { - n.iconfontSrc && Wg({family: "UniTabbarIconFont", source: `url("${n.iconfontSrc}")`}) + n.iconfontSrc && $g({family: "UniTabbarIconFont", source: `url("${n.iconfontSrc}")`}) })), () => { const t = function (e, t, n) { const {selectedIndex: o, selectedColor: r, color: i} = e; @@ -11470,7 +11470,7 @@ const tv = ld("hideTabBar", ((e, {resolve: t}) => { key: a, class: "uni-tabbar__item", onClick: s(r, a) - }, [iv(e, t || "", n, o, r, i)], 8, ["onClick"]) + }, [av(e, t || "", n, o, r, i)], 8, ["onClick"]) }(s ? r : i, s && n.selectedIconPath || n.iconPath || "", n.iconfont ? s && n.iconfont.selectedText || n.iconfont.text : void 0, n.iconfont ? s && n.iconfont.selectedColor || n.iconfont.color : void 0, n, e, a, t) })) }(n, o, e); @@ -11484,18 +11484,18 @@ const tv = ld("hideTabBar", ((e, {resolve: t}) => { } } }); -const ov = {dark: "rgb(0, 0, 0, 0.8)", light: "rgb(250, 250, 250, 0.8)", extralight: "rgb(250, 250, 250, 0.8)"}, - rv = {white: "rgba(255, 255, 255, 0.33)", black: "rgba(0, 0, 0, 0.33)"}; +const rv = {dark: "rgb(0, 0, 0, 0.8)", light: "rgb(250, 250, 250, 0.8)", extralight: "rgb(250, 250, 250, 0.8)"}, + iv = {white: "rgba(255, 255, 255, 0.33)", black: "rgba(0, 0, 0, 0.33)"}; -function iv(e, t, n, o, r, i) { +function av(e, t, n, o, r, i) { const {height: a} = i; return Kr("div", { class: "uni-tabbar__bd", style: {height: a} - }, [n ? sv(n, o || "rgb(0, 0, 0, 0.8)", r, i) : t && av(t, r, i), r.text && lv(e, r, i), r.redDot && cv(r.badge)], 4) + }, [n ? lv(n, o || "rgb(0, 0, 0, 0.8)", r, i) : t && sv(t, r, i), r.text && cv(e, r, i), r.redDot && uv(r.badge)], 4) } -function av(e, t, n) { +function sv(e, t, n) { const {type: o, text: r} = t, {iconWidth: i} = n; return Kr("div", { class: "uni-tabbar__icon" + (r ? " uni-tabbar__icon__diff" : ""), @@ -11503,7 +11503,7 @@ function av(e, t, n) { }, ["midButton" !== o && Kr("img", {src: gu(e)}, null, 8, ["src"])], 6) } -function sv(e, t, n, o) { +function lv(e, t, n, o) { var r; const {type: i, text: a} = n, {iconWidth: s} = o, l = "uni-tabbar__icon" + (a ? " uni-tabbar__icon__diff" : ""), c = {width: s, height: s}, u = {fontSize: (null == (r = n.iconfont) ? void 0 : r.fontSize) || s, color: t}; @@ -11513,7 +11513,7 @@ function sv(e, t, n, o) { }, [e], 4)], 6) } -function lv(e, t, n) { +function cv(e, t, n) { const {iconPath: o, text: r} = t, {fontSize: i, spacing: a} = n; return Kr("div", { class: "uni-tabbar__label", @@ -11521,11 +11521,11 @@ function lv(e, t, n) { }, [r], 4) } -function cv(e) { +function uv(e) { return Kr("div", {class: "uni-tabbar__reddot" + (e ? " uni-tabbar__badge" : "")}, [e], 2) } -const uv = ou({ +const dv = ou({ name: "Layout", setup(e, {emit: t}) { const n = nn(null); ac({ @@ -11591,7 +11591,7 @@ const uv = ou({ return () => { const e = function (e, t, n, o, r, i) { return function ({routeKey: e, isTabBar: t, routeCache: n}) { - return Kr(fl, null, { + return Kr(pl, null, { default: Hn((({Component: o}) => [(zr(), $r(yo, { matchBy: "key", cache: n @@ -11600,23 +11600,23 @@ const uv = ou({ }) }(e) }(o), t = function (e) { - return qo(Kr(nv, null, null, 512), [[xa, e.value]]) + return qo(Kr(ov, null, null, 512), [[xa, e.value]]) }(a); return Kr("uni-app", {ref: n, class: s.value}, [e, t], 2) } } }); -const dv = S(Fl, { +const pv = S(Fl, { publishHandler(e, t, n) { fv.subscribeHandler(e, t, n) } }), fv = S(Vc, { publishHandler(e, t, n) { - dv.subscribeHandler(e, t, n) + pv.subscribeHandler(e, t, n) } -}), pv = ou({ +}), hv = ou({ name: "PageHead", setup() { - const e = nn(null), t = kh(), n = qt(Og(t.navigationBar)), {clazz: o, style: r} = function (e) { + const e = nn(null), t = kh(), n = qt(Ig(t.navigationBar)), {clazz: o, style: r} = function (e) { const t = yi((() => { const {type: t, titlePenetrate: n, shadowColorType: o} = e, r = { "uni-page-head": !0, @@ -11633,15 +11633,15 @@ const dv = S(Fl, { }))); return {clazz: t, style: n} }(n); - return Lg((() => { - const e = Og(t.navigationBar); + return Og((() => { + const e = Ig(t.navigationBar); n.backgroundColor = e.backgroundColor, n.titleColor = e.titleColor })), () => { const i = function (e, t) { if (!t) return Kr("div", { class: "uni-page-head-btn", - onClick: mv - }, [hc(pc, "transparent" === e.type ? "#fff" : e.titleColor, 27)], 8, ["onClick"]) + onClick: gv + }, [hc(fc, "transparent" === e.type ? "#fff" : e.titleColor, 27)], 8, ["onClick"]) }(n, t.isQuit), a = n.type || "default", s = "transparent" !== a && "float" !== a && Kr("div", { class: { "uni-placeholder": !0, @@ -11652,12 +11652,12 @@ const dv = S(Fl, { ref: e, class: o.value, style: r.value - }, [Kr("div", {class: "uni-page-head-hd"}, [i]), hv(n), Kr("div", {class: "uni-page-head-ft"}, [])], 6), s], 8, ["uni-page-head-type"]) + }, [Kr("div", {class: "uni-page-head-hd"}, [i]), mv(n), Kr("div", {class: "uni-page-head-ft"}, [])], 6), s], 8, ["uni-page-head-type"]) } } }); -function hv(e, t) { +function mv(e, t) { return function ({type: e, loading: t, titleSize: n, titleText: o, titleImage: r}) { return Kr("div", {class: "uni-page-head-bd"}, [Kr("div", { style: { @@ -11671,39 +11671,39 @@ function hv(e, t) { }(e) } -function mv() { - 1 === Hh().length ? Cg({url: "/"}) : Sg({ +function gv() { + 1 === Hh().length ? Bg({url: "/"}) : Eg({ from: "backbutton", success() { } }) } -const gv = { +const vv = { name: "PageRefresh", setup() { const {pullToRefresh: e} = kh(); return {offset: e.offset, color: e.color} } - }, vv = (e, t) => { + }, bv = (e, t) => { const n = e.__vccOpts || e; for (const [o, r]of t) n[o] = r; return n - }, bv = {class: "uni-page-refresh-inner"}, yv = ["fill"], - _v = [Gr("path", {d: "M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4l-2.35 2.35z"}, null, -1), Gr("path", { + }, yv = {class: "uni-page-refresh-inner"}, _v = ["fill"], + wv = [Gr("path", {d: "M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4l-2.35 2.35z"}, null, -1), Gr("path", { d: "M0 0h24v24H0z", fill: "none" - }, null, -1)], wv = {class: "uni-page-refresh__spinner", width: "24", height: "24", viewBox: "25 25 50 50"}, - xv = ["stroke"]; -const Tv = vv(gv, [["render", function (e, t, n, o, r, a) { + }, null, -1)], xv = {class: "uni-page-refresh__spinner", width: "24", height: "24", viewBox: "25 25 50 50"}, + Tv = ["stroke"]; +const Sv = bv(vv, [["render", function (e, t, n, o, r, a) { return zr(), Wr("uni-page-refresh", null, [Gr("div", { style: i({"margin-top": o.offset + "px"}), class: "uni-page-refresh" - }, [Gr("div", bv, [(zr(), Wr("svg", { + }, [Gr("div", yv, [(zr(), Wr("svg", { fill: o.color, class: "uni-page-refresh__icon", width: "24", height: "24", viewBox: "0 0 24 24" - }, _v, 8, yv)), (zr(), Wr("svg", wv, [Gr("circle", { + }, wv, 8, _v)), (zr(), Wr("svg", xv, [Gr("circle", { stroke: o.color, class: "uni-page-refresh__path", cx: "50", @@ -11712,25 +11712,25 @@ const Tv = vv(gv, [["render", function (e, t, n, o, r, a) { fill: "none", "stroke-width": "4", "stroke-miterlimit": "10" - }, null, 8, xv)]))])], 4)]) + }, null, 8, Tv)]))])], 4)]) }]]); -function Sv(e, t, n) { +function Ev(e, t, n) { const o = Array.prototype.slice.call(e.changedTouches).filter((e => e.identifier === t))[0]; return !!o && (e.deltaY = o.pageY - n, !0) } -const Ev = "aborting", kv = "refreshing", Av = "restoring"; +const kv = "aborting", Av = "refreshing", Cv = "restoring"; -function Cv(e) { +function Bv(e) { const {id: t, pullToRefresh: n} = kh(), {range: o, height: r} = n; - let i, a, s, l, c, u, d, f; + let i, a, s, l, c, u, d, p; gh((() => { - f || (f = kv, g(), setTimeout((() => { + p || (p = Av, g(), setTimeout((() => { w() }), 50)) }), "startPullDownRefresh", !1, t), gh((() => { - f === kv && (v(), f = Av, g(), function (e) { + p === Av && (v(), p = Cv, g(), function (e) { if (!a) return; s.transition = "-webkit-transform 0.3s", s.transform += " scale(0.01)"; const t = function () { @@ -11739,15 +11739,15 @@ function Cv(e) { a.addEventListener("webkitTransitionEnd", t); const n = setTimeout(t, 350) }((() => { - v(), f = p = h = null + v(), p = f = h = null }))) }), "stopPullDownRefresh", !1, t), Io((() => { i = e.value.$el, a = i.querySelector(".uni-page-refresh"), s = a.style, l = a.querySelector(".uni-page-refresh-inner").style })); - let p = null, h = null; + let f = null, h = null; function m(e) { - f && i && i.classList[e]("uni-page-refresh--" + f) + p && i && i.classList[e]("uni-page-refresh--" + p) } function g() { @@ -11760,15 +11760,15 @@ function Cv(e) { const b = su((e => { const t = e.changedTouches[0]; - c = t.identifier, u = t.pageY, d = !([Ev, kv, Av].indexOf(f) >= 0) + c = t.identifier, u = t.pageY, d = !([kv, Av, Cv].indexOf(p) >= 0) })), y = su((e => { if (!d) return; - if (!Sv(e, c, u)) return; + if (!Ev(e, c, u)) return; let {deltaY: t} = e; if (0 !== (document.documentElement.scrollTop || document.body.scrollTop)) return void (c = null); - if (t < 0 && !f) return; - e.preventDefault(), null === p && (h = t, f = "pulling", g()), t -= h, t < 0 && (t = 0), p = t; - (t >= o && "reached" !== f || t < o && "pulling" !== f) && (v(), f = "reached" === f ? "pulling" : "reached", g()), function (e) { + if (t < 0 && !p) return; + e.preventDefault(), null === f && (h = t, p = "pulling", g()), t -= h, t < 0 && (t = 0), f = t; + (t >= o && "reached" !== p || t < o && "pulling" !== p) && (v(), p = "reached" === p ? "pulling" : "reached", g()), function (e) { if (!a) return; let t = e / o; t > 1 ? t = 1 : t *= t * t; @@ -11776,7 +11776,7 @@ function Cv(e) { l.transform = "rotate(" + 360 * t + "deg)", s.clip = "rect(" + (45 - n) + "px,45px,45px,-5px)", s.transform = "translate3d(-50%, " + n + "px, 0)" }(t) })), _ = su((e => { - Sv(e, c, u) && null !== f && ("pulling" === f ? (v(), f = Ev, g(), function (e) { + Ev(e, c, u) && null !== p && ("pulling" === p ? (v(), p = kv, g(), function (e) { if (!a) return; if (s.transform) { s.transition = "-webkit-transform 0.3s", s.transform = "translate3d(-50%, 0, 0)"; @@ -11787,8 +11787,8 @@ function Cv(e) { const n = setTimeout(t, 350) } else e() }((() => { - v(), f = p = h = null - }))) : "reached" === f && (v(), f = kv, g(), w())) + v(), p = f = h = null + }))) : "reached" === p && (v(), p = Av, g(), w())) })); function w() { @@ -11798,34 +11798,34 @@ function Cv(e) { return {onTouchstartPassive: b, onTouchmove: y, onTouchend: _, onTouchcancel: _} } -const Bv = ou({ +const Pv = ou({ name: "PageBody", setup(e, t) { - const n = kh(), o = nn(null), r = n.enablePullDownRefresh ? Cv(o) : null; + const n = kh(), o = nn(null), r = n.enablePullDownRefresh ? Bv(o) : null; return () => { const e = function (e, t) { if (!t.enablePullDownRefresh) return null; - return Kr(Tv, {ref: e}, null, 512) + return Kr(Sv, {ref: e}, null, 512) }(o, n); return Kr(Mr, null, [e, Kr("uni-page-wrapper", r, [Kr("uni-page-body", null, [Jo(t.slots, "default")])], 16)]) } } }); -const Pv = ou({ +const Lv = ou({ name: "Page", setup(e, t) { const n = Ah(Bh()), o = n.navigationBar; - return $g(n), () => Kr("uni-page", {"data-page": n.route}, "custom" !== o.style ? [Kr(pv), Lv(t)] : [Lv(t)]) + return Qg(n), () => Kr("uni-page", {"data-page": n.route}, "custom" !== o.style ? [Kr(hv), Ov(t)] : [Ov(t)]) } }); -function Lv(e) { - return zr(), $r(Bv, {key: 0}, {default: Hn((() => [Jo(e.slots, "page")])), _: 3}) +function Ov(e) { + return zr(), $r(Pv, {key: 0}, {default: Hn((() => [Jo(e.slots, "page")])), _: 3}) } -const Ov = {loading: "AsyncLoading", error: "AsyncError", delay: 200, timeout: 6e4, suspensible: !0}; +const Iv = {loading: "AsyncLoading", error: "AsyncError", delay: 200, timeout: 6e4, suspensible: !0}; window.uni = {}, window.wx = {}, window.rpx2px = vd; -const Iv = Object.assign({"./locale/en.json": n, "./locale/zh-Hans.json": o}), Mv = Object.assign; +const Mv = Object.assign({"./locale/en.json": n, "./locale/zh-Hans.json": o}), Fv = Object.assign; const match = location.href.match(/\/wap\/(\d*)\//); -window.__uniConfig = Mv({ +window.__uniConfig = Fv({ globalStyle: { backgroundColor: "#F8F8F8", backgroundColorTop: "#F8F8F8", @@ -11855,13 +11855,13 @@ window.__uniConfig = Mv({ "fixed-(.*)": "@/components/fixed/$1/index.vue" } }, - compilerVersion: "3.8.4" + compilerVersion: "3.8.7" }, { appId: "__UNI__ED923AB", appName: "", appVersion: "1.0.0", appVersionCode: "100", - async: Ov, + async: Iv, debug: !1, networkTimeout: {request: 6e4, connectSocket: 6e4, uploadFile: 6e4, downloadFile: 6e4}, sdkConfigs: {}, @@ -11873,83 +11873,83 @@ window.__uniConfig = Mv({ nvue: {"flex-direction": "column"}, locale: "", fallbackLocale: "zh-Hans", - locales: Object.keys(Iv).reduce(((e, t) => { + locales: Object.keys(Mv).reduce(((e, t) => { const n = t.replace(/\.\/locale\/(uni-app.)?(.*).json/, "$2"); - return Mv(e[n] || (e[n] = {}), Iv[t].default), e + return Fv(e[n] || (e[n] = {}), Mv[t].default), e }), {}), router: {mode: "history", base: match ? `/wap/${match[1]}/` : '/wap/', assets: "assets", routerBase: match ? `/wap/${match[1]}/` : '/wap/'}, darkmode: !1, themeConfig: {} }), window.__uniLayout = window.__uniLayout || {}; -const Fv = {delay: Ov.delay, timeout: Ov.timeout, suspensible: Ov.suspensible}; -Ov.loading && (Fv.loadingComponent = { +const jv = {delay: Iv.delay, timeout: Iv.timeout, suspensible: Iv.suspensible}; +Iv.loading && (jv.loadingComponent = { name: "SystemAsyncLoading", - render: () => Kr(Wo(Ov.loading)) -}), Ov.error && (Fv.errorComponent = {name: "SystemAsyncError", render: () => Kr(Wo(Ov.error))}); -const jv = () => t((() => import("./pages-index-index.fdb474ef.js")), ["assets/pages-index-index.fdb474ef.js", "assets/u-loading-page.f2a7c1df.js", "assets/u-loading-icon.2e89024b.js", "assets/_plugin-vue_export-helper.1b428a4d.js", "assets/u-loading-icon-4a706ea2.css", "assets/u-transition.021c4c1c.js", "assets/u-transition-607b6047.css", "assets/u-loading-page-2116306f.css", "assets/index.1d16afd8.js", "assets/u-icon.461524ba.js", "assets/u-icon-3406a03e.css", "assets/tabbar.f7ee8f1f.js", "assets/u-image.9265f18d.js", "assets/u-image-f70fd559.css", "assets/u-safe-bottom.6578a4de.js", "assets/u-safe-bottom-fd70ea8a.css", "assets/tabbar-8a0d9fd7.css", "assets/article.1722ca18.js", "assets/app-link.vue_vue_type_script_setup_true_lang.b08a40da.js", "assets/u-avatar.0ea3924d.js", "assets/u-avatar-0d8f8309.css", "assets/index-6b3abbd5.css", "assets/useShare.80667d20.js", "assets/wechat.eeef1e91.js", "assets/index-a36ec25c.css"]).then((e => mm(e.default || e))), - Rv = ho(Mv({loader: jv}, Fv)), - Nv = () => t((() => import("./pages-article-list.7aa1b19f.js")), ["assets/pages-article-list.7aa1b19f.js", "assets/u-icon.461524ba.js", "assets/_plugin-vue_export-helper.1b428a4d.js", "assets/u-icon-3406a03e.css", "assets/tabbar.f7ee8f1f.js", "assets/u-image.9265f18d.js", "assets/u-transition.021c4c1c.js", "assets/u-transition-607b6047.css", "assets/u-image-f70fd559.css", "assets/u-safe-bottom.6578a4de.js", "assets/u-safe-bottom-fd70ea8a.css", "assets/tabbar-8a0d9fd7.css", "assets/article.1722ca18.js", "assets/useMescroll.92c88689.js", "assets/useMescroll-f0734f93.css", "assets/mescroll-empty.b357d8ac.js", "assets/mescroll-empty-40916e41.css", "assets/useShare.80667d20.js", "assets/wechat.eeef1e91.js", "assets/list-c9622c2a.css"]).then((e => mm(e.default || e))), - Dv = ho(Mv({loader: Nv}, Fv)), - zv = () => t((() => import("./pages-auth-agreement.a0a37895.js")), ["assets/pages-auth-agreement.a0a37895.js", "assets/u-parse.8f6deaed.js", "assets/_plugin-vue_export-helper.1b428a4d.js", "assets/u-parse-9cce559f.css"]).then((e => mm(e.default || e))), - Hv = ho(Mv({loader: zv}, Fv)), - qv = () => t((() => import("./pages-auth-bind.13660137.js")), ["assets/pages-auth-bind.13660137.js", "assets/u-input.cefa6e75.js", "assets/u-icon.461524ba.js", "assets/_plugin-vue_export-helper.1b428a4d.js", "assets/u-icon-3406a03e.css", "assets/u-input-2dabccde.css", "assets/u-form.267f755c.js", "assets/u-line.0c46076e.js", "assets/u-line-90cc8525.css", "assets/u-form-c93addfb.css", "assets/sms-code.vue_vue_type_script_setup_true_lang.bcc80d73.js", "assets/u-modal.64c62d33.js", "assets/u-loading-icon.2e89024b.js", "assets/u-loading-icon-4a706ea2.css", "assets/u-popup.7d705de0.js", "assets/u-transition.021c4c1c.js", "assets/u-transition-607b6047.css", "assets/u-safe-bottom.6578a4de.js", "assets/u-safe-bottom-fd70ea8a.css", "assets/u-popup-b896d01d.css", "assets/u-modal-b7ee2981.css", "assets/sms-code-9b208b13.css", "assets/app-link.vue_vue_type_script_setup_true_lang.b08a40da.js", "assets/u-button.364aa63d.js", "assets/u-button-4e9253f5.css", "assets/bind-12c3cc42.css"]).then((e => mm(e.default || e))), - Vv = ho(Mv({loader: qv}, Fv)), - Wv = () => t((() => import("./pages-auth-login.6a2089e2.js")), ["assets/pages-auth-login.6a2089e2.js", "assets/u-input.cefa6e75.js", "assets/u-icon.461524ba.js", "assets/_plugin-vue_export-helper.1b428a4d.js", "assets/u-icon-3406a03e.css", "assets/u-input-2dabccde.css", "assets/u-form.267f755c.js", "assets/u-line.0c46076e.js", "assets/u-line-90cc8525.css", "assets/u-form-c93addfb.css", "assets/sms-code.vue_vue_type_script_setup_true_lang.bcc80d73.js", "assets/u-modal.64c62d33.js", "assets/u-loading-icon.2e89024b.js", "assets/u-loading-icon-4a706ea2.css", "assets/u-popup.7d705de0.js", "assets/u-transition.021c4c1c.js", "assets/u-transition-607b6047.css", "assets/u-safe-bottom.6578a4de.js", "assets/u-safe-bottom-fd70ea8a.css", "assets/u-popup-b896d01d.css", "assets/u-modal-b7ee2981.css", "assets/sms-code-9b208b13.css", "assets/app-link.vue_vue_type_script_setup_true_lang.b08a40da.js", "assets/u-button.364aa63d.js", "assets/u-button-4e9253f5.css"]).then((e => mm(e.default || e))), - $v = ho(Mv({loader: Wv}, Fv)), - Qv = () => t((() => import("./pages-auth-register.33312bb1.js")), ["assets/pages-auth-register.33312bb1.js", "assets/u-input.cefa6e75.js", "assets/u-icon.461524ba.js", "assets/_plugin-vue_export-helper.1b428a4d.js", "assets/u-icon-3406a03e.css", "assets/u-input-2dabccde.css", "assets/u-form.267f755c.js", "assets/u-line.0c46076e.js", "assets/u-line-90cc8525.css", "assets/u-form-c93addfb.css", "assets/sms-code.vue_vue_type_script_setup_true_lang.bcc80d73.js", "assets/u-modal.64c62d33.js", "assets/u-loading-icon.2e89024b.js", "assets/u-loading-icon-4a706ea2.css", "assets/u-popup.7d705de0.js", "assets/u-transition.021c4c1c.js", "assets/u-transition-607b6047.css", "assets/u-safe-bottom.6578a4de.js", "assets/u-safe-bottom-fd70ea8a.css", "assets/u-popup-b896d01d.css", "assets/u-modal-b7ee2981.css", "assets/sms-code-9b208b13.css", "assets/app-link.vue_vue_type_script_setup_true_lang.b08a40da.js", "assets/u-button.364aa63d.js", "assets/u-button-4e9253f5.css"]).then((e => mm(e.default || e))), - Uv = ho(Mv({loader: Qv}, Fv)), - Xv = () => t((() => import("./pages-auth-resetpwd.91486d96.js")), ["assets/pages-auth-resetpwd.91486d96.js", "assets/u-input.cefa6e75.js", "assets/u-icon.461524ba.js", "assets/_plugin-vue_export-helper.1b428a4d.js", "assets/u-icon-3406a03e.css", "assets/u-input-2dabccde.css", "assets/u-form.267f755c.js", "assets/u-line.0c46076e.js", "assets/u-line-90cc8525.css", "assets/u-form-c93addfb.css", "assets/sms-code.vue_vue_type_script_setup_true_lang.bcc80d73.js", "assets/u-modal.64c62d33.js", "assets/u-loading-icon.2e89024b.js", "assets/u-loading-icon-4a706ea2.css", "assets/u-popup.7d705de0.js", "assets/u-transition.021c4c1c.js", "assets/u-transition-607b6047.css", "assets/u-safe-bottom.6578a4de.js", "assets/u-safe-bottom-fd70ea8a.css", "assets/u-popup-b896d01d.css", "assets/u-modal-b7ee2981.css", "assets/sms-code-9b208b13.css", "assets/u-button.364aa63d.js", "assets/u-button-4e9253f5.css"]).then((e => mm(e.default || e))), - Yv = ho(Mv({loader: Xv}, Fv)), - Jv = () => t((() => import("./pages-index-diy.511be170.js")), ["assets/pages-index-diy.511be170.js", "assets/u-loading-page.f2a7c1df.js", "assets/u-loading-icon.2e89024b.js", "assets/_plugin-vue_export-helper.1b428a4d.js", "assets/u-loading-icon-4a706ea2.css", "assets/u-transition.021c4c1c.js", "assets/u-transition-607b6047.css", "assets/u-loading-page-2116306f.css", "assets/index.1d16afd8.js", "assets/u-icon.461524ba.js", "assets/u-icon-3406a03e.css", "assets/tabbar.f7ee8f1f.js", "assets/u-image.9265f18d.js", "assets/u-image-f70fd559.css", "assets/u-safe-bottom.6578a4de.js", "assets/u-safe-bottom-fd70ea8a.css", "assets/tabbar-8a0d9fd7.css", "assets/article.1722ca18.js", "assets/app-link.vue_vue_type_script_setup_true_lang.b08a40da.js", "assets/u-avatar.0ea3924d.js", "assets/u-avatar-0d8f8309.css", "assets/index-6b3abbd5.css", "assets/useShare.80667d20.js", "assets/wechat.eeef1e91.js", "assets/diy-4cefc033.css"]).then((e => mm(e.default || e))), - Gv = ho(Mv({loader: Jv}, Fv)), - Kv = () => t((() => import("./pages-index-close.d92970a6.js")), ["assets/pages-index-close.d92970a6.js", "assets/u-empty.972875c1.js", "assets/u-icon.461524ba.js", "assets/_plugin-vue_export-helper.1b428a4d.js", "assets/u-icon-3406a03e.css", "assets/u-empty-5067ac67.css"]).then((e => mm(e.default || e))), - Zv = ho(Mv({loader: Kv}, Fv)), - eb = () => t((() => import("./pages-index-nosite.05c15b99.js")), ["assets/pages-index-nosite.05c15b99.js", "assets/u-empty.972875c1.js", "assets/u-icon.461524ba.js", "assets/_plugin-vue_export-helper.1b428a4d.js", "assets/u-icon-3406a03e.css", "assets/u-empty-5067ac67.css"]).then((e => mm(e.default || e))), - tb = ho(Mv({loader: eb}, Fv)), - nb = () => t((() => import("./pages-article-detail.86e6f6b6.js")), ["assets/pages-article-detail.86e6f6b6.js", "assets/u-parse.8f6deaed.js", "assets/_plugin-vue_export-helper.1b428a4d.js", "assets/u-parse-9cce559f.css", "assets/u-loading-page.f2a7c1df.js", "assets/u-loading-icon.2e89024b.js", "assets/u-loading-icon-4a706ea2.css", "assets/u-transition.021c4c1c.js", "assets/u-transition-607b6047.css", "assets/u-loading-page-2116306f.css", "assets/article.1722ca18.js", "assets/useShare.80667d20.js", "assets/wechat.eeef1e91.js"]).then((e => mm(e.default || e))), - ob = ho(Mv({loader: nb}, Fv)), - rb = () => t((() => import("./pages-member-apply_cash_out.895c2991.js")), ["assets/pages-member-apply_cash_out.895c2991.js", "assets/u-button.364aa63d.js", "assets/u-loading-icon.2e89024b.js", "assets/_plugin-vue_export-helper.1b428a4d.js", "assets/u-loading-icon-4a706ea2.css", "assets/u-icon.461524ba.js", "assets/u-icon-3406a03e.css", "assets/u-button-4e9253f5.css", "assets/u-loading-page.f2a7c1df.js", "assets/u-transition.021c4c1c.js", "assets/u-transition-607b6047.css", "assets/u-loading-page-2116306f.css"]).then((e => mm(e.default || e))), - ib = ho(Mv({loader: rb}, Fv)), - ab = () => t((() => import("./pages-member-commission.e551b4a8.js")), ["assets/pages-member-commission.e551b4a8.js", "assets/u-button.364aa63d.js", "assets/u-loading-icon.2e89024b.js", "assets/_plugin-vue_export-helper.1b428a4d.js", "assets/u-loading-icon-4a706ea2.css", "assets/u-icon.461524ba.js", "assets/u-icon-3406a03e.css", "assets/u-button-4e9253f5.css", "assets/commission-df4369d0.css"]).then((e => mm(e.default || e))), - sb = ho(Mv({loader: ab}, Fv)), - lb = () => t((() => import("./pages-member-balance.fd4992cd.js")), ["assets/pages-member-balance.fd4992cd.js", "assets/u-loading-page.f2a7c1df.js", "assets/u-loading-icon.2e89024b.js", "assets/_plugin-vue_export-helper.1b428a4d.js", "assets/u-loading-icon-4a706ea2.css", "assets/u-transition.021c4c1c.js", "assets/u-transition-607b6047.css", "assets/u-loading-page-2116306f.css", "assets/u-button.364aa63d.js", "assets/u-icon.461524ba.js", "assets/u-icon-3406a03e.css", "assets/u-button-4e9253f5.css", "assets/u-input.cefa6e75.js", "assets/u-input-2dabccde.css", "assets/u-popup.7d705de0.js", "assets/u-safe-bottom.6578a4de.js", "assets/u-safe-bottom-fd70ea8a.css", "assets/u-popup-b896d01d.css", "assets/u-image.9265f18d.js", "assets/u-image-f70fd559.css", "assets/pay.4e07eed1.js", "assets/wechat.eeef1e91.js", "assets/balance-17a5077b.css"]).then((e => mm(e.default || e))), - cb = ho(Mv({loader: lb}, Fv)), - ub = () => t((() => import("./pages-member-recharge_record.f0fa2aff.js")), ["assets/pages-member-recharge_record.f0fa2aff.js", "assets/useMescroll.92c88689.js", "assets/_plugin-vue_export-helper.1b428a4d.js", "assets/useMescroll-f0734f93.css", "assets/mescroll-empty.b357d8ac.js", "assets/mescroll-empty-40916e41.css", "assets/recharge_record-b6711670.css"]).then((e => mm(e.default || e))), - db = ho(Mv({loader: ub}, Fv)), - fb = () => t((() => import("./pages-member-recharge_record_detail.a63f73c2.js")), ["assets/pages-member-recharge_record_detail.a63f73c2.js", "assets/_plugin-vue_export-helper.1b428a4d.js", "assets/recharge_record_detail-56202dd4.css"]).then((e => mm(e.default || e))), - pb = ho(Mv({loader: fb}, Fv)), - hb = () => t((() => import("./pages-member-detailed_account.bf0ba526.js")), ["assets/pages-member-detailed_account.bf0ba526.js", "assets/useMescroll.92c88689.js", "assets/_plugin-vue_export-helper.1b428a4d.js", "assets/useMescroll-f0734f93.css", "assets/mescroll-empty.b357d8ac.js", "assets/mescroll-empty-40916e41.css", "assets/detailed_account-3b9b6750.css"]).then((e => mm(e.default || e))), - mb = ho(Mv({loader: hb}, Fv)), - gb = () => t((() => import("./pages-member-cash_out.340def83.js")), ["assets/pages-member-cash_out.340def83.js", "assets/useMescroll.92c88689.js", "assets/_plugin-vue_export-helper.1b428a4d.js", "assets/useMescroll-f0734f93.css", "assets/mescroll-empty.b357d8ac.js", "assets/mescroll-empty-40916e41.css", "assets/cash_out-25dffb81.css"]).then((e => mm(e.default || e))), - vb = ho(Mv({loader: gb}, Fv)), - bb = () => t((() => import("./pages-member-cash_out_detail.905f81df.js")), ["assets/pages-member-cash_out_detail.905f81df.js", "assets/_plugin-vue_export-helper.1b428a4d.js", "assets/cash_out_detail-a5b1b8f4.css"]).then((e => mm(e.default || e))), - yb = ho(Mv({loader: bb}, Fv)), - _b = () => t((() => import("./pages-member-index.448cc3b0.js")), ["assets/pages-member-index.448cc3b0.js", "assets/u-loading-page.f2a7c1df.js", "assets/u-loading-icon.2e89024b.js", "assets/_plugin-vue_export-helper.1b428a4d.js", "assets/u-loading-icon-4a706ea2.css", "assets/u-transition.021c4c1c.js", "assets/u-transition-607b6047.css", "assets/u-loading-page-2116306f.css", "assets/index.1d16afd8.js", "assets/u-icon.461524ba.js", "assets/u-icon-3406a03e.css", "assets/tabbar.f7ee8f1f.js", "assets/u-image.9265f18d.js", "assets/u-image-f70fd559.css", "assets/u-safe-bottom.6578a4de.js", "assets/u-safe-bottom-fd70ea8a.css", "assets/tabbar-8a0d9fd7.css", "assets/article.1722ca18.js", "assets/app-link.vue_vue_type_script_setup_true_lang.b08a40da.js", "assets/u-avatar.0ea3924d.js", "assets/u-avatar-0d8f8309.css", "assets/index-6b3abbd5.css", "assets/index-503ff4d2.css"]).then((e => mm(e.default || e))), - wb = ho(Mv({loader: _b}, Fv)), - xb = () => t((() => import("./pages-member-personal.d419619c.js")), ["assets/pages-member-personal.d419619c.js", "assets/u-avatar.0ea3924d.js", "assets/u-icon.461524ba.js", "assets/_plugin-vue_export-helper.1b428a4d.js", "assets/u-icon-3406a03e.css", "assets/u-avatar-0d8f8309.css", "assets/u-loading-icon.2e89024b.js", "assets/u-loading-icon-4a706ea2.css", "assets/u-action-sheet.acbdcbe5.js", "assets/u-line.0c46076e.js", "assets/u-line-90cc8525.css", "assets/u-popup.7d705de0.js", "assets/u-transition.021c4c1c.js", "assets/u-transition-607b6047.css", "assets/u-safe-bottom.6578a4de.js", "assets/u-safe-bottom-fd70ea8a.css", "assets/u-popup-b896d01d.css", "assets/u-action-sheet-e3392aa2.css", "assets/u-button.364aa63d.js", "assets/u-button-4e9253f5.css", "assets/app-link.vue_vue_type_script_setup_true_lang.b08a40da.js", "assets/u-modal.64c62d33.js", "assets/u-modal-b7ee2981.css", "assets/personal-7d5bc078.css"]).then((e => mm(e.default || e))), - Tb = ho(Mv({loader: xb}, Fv)), - Sb = () => t((() => import("./pages-member-point.3b59f9da.js")), ["assets/pages-member-point.3b59f9da.js", "assets/useMescroll.92c88689.js", "assets/_plugin-vue_export-helper.1b428a4d.js", "assets/useMescroll-f0734f93.css", "assets/mescroll-empty.b357d8ac.js", "assets/mescroll-empty-40916e41.css"]).then((e => mm(e.default || e))), - Eb = ho(Mv({loader: Sb}, Fv)), - kb = () => t((() => import("./pages-member-account.831de6e4.js")), ["assets/pages-member-account.831de6e4.js", "assets/u-icon.461524ba.js", "assets/_plugin-vue_export-helper.1b428a4d.js", "assets/u-icon-3406a03e.css", "assets/useMescroll.92c88689.js", "assets/useMescroll-f0734f93.css"]).then((e => mm(e.default || e))), - Ab = ho(Mv({loader: kb}, Fv)), - Cb = () => t((() => import("./pages-member-account_edit.889d1e51.js")), ["assets/pages-member-account_edit.889d1e51.js", "assets/u-input.cefa6e75.js", "assets/u-icon.461524ba.js", "assets/_plugin-vue_export-helper.1b428a4d.js", "assets/u-icon-3406a03e.css", "assets/u-input-2dabccde.css", "assets/u-form.267f755c.js", "assets/u-line.0c46076e.js", "assets/u-line-90cc8525.css", "assets/u-form-c93addfb.css", "assets/u-button.364aa63d.js", "assets/u-loading-icon.2e89024b.js", "assets/u-loading-icon-4a706ea2.css", "assets/u-button-4e9253f5.css", "assets/u-modal.64c62d33.js", "assets/u-popup.7d705de0.js", "assets/u-transition.021c4c1c.js", "assets/u-transition-607b6047.css", "assets/u-safe-bottom.6578a4de.js", "assets/u-safe-bottom-fd70ea8a.css", "assets/u-popup-b896d01d.css", "assets/u-modal-b7ee2981.css"]).then((e => mm(e.default || e))), - Bb = ho(Mv({loader: Cb}, Fv)), - Pb = () => t((() => import("./pages-pay-browser.ae909e4d.js")), []).then((e => mm(e.default || e))), - Lb = ho(Mv({loader: Pb}, Fv)), - Ob = () => t((() => import("./pages-pay-result.131dad2c.js")), ["assets/pages-pay-result.131dad2c.js", "assets/u-button.364aa63d.js", "assets/u-loading-icon.2e89024b.js", "assets/_plugin-vue_export-helper.1b428a4d.js", "assets/u-loading-icon-4a706ea2.css", "assets/u-icon.461524ba.js", "assets/u-icon-3406a03e.css", "assets/u-button-4e9253f5.css", "assets/u-modal.64c62d33.js", "assets/u-line.0c46076e.js", "assets/u-line-90cc8525.css", "assets/u-popup.7d705de0.js", "assets/u-transition.021c4c1c.js", "assets/u-transition-607b6047.css", "assets/u-safe-bottom.6578a4de.js", "assets/u-safe-bottom-fd70ea8a.css", "assets/u-popup-b896d01d.css", "assets/u-modal-b7ee2981.css", "assets/pay.4e07eed1.js"]).then((e => mm(e.default || e))), - Ib = ho(Mv({loader: Ob}, Fv)), - Mb = () => t((() => import("./pages-setting-index.2eb0212e.js")), ["assets/pages-setting-index.2eb0212e.js", "assets/u-action-sheet.acbdcbe5.js", "assets/u-icon.461524ba.js", "assets/_plugin-vue_export-helper.1b428a4d.js", "assets/u-icon-3406a03e.css", "assets/u-line.0c46076e.js", "assets/u-line-90cc8525.css", "assets/u-loading-icon.2e89024b.js", "assets/u-loading-icon-4a706ea2.css", "assets/u-popup.7d705de0.js", "assets/u-transition.021c4c1c.js", "assets/u-transition-607b6047.css", "assets/u-safe-bottom.6578a4de.js", "assets/u-safe-bottom-fd70ea8a.css", "assets/u-popup-b896d01d.css", "assets/u-action-sheet-e3392aa2.css", "assets/index-91a59a4a.css"]).then((e => mm(e.default || e))), - Fb = ho(Mv({loader: Mb}, Fv)), - jb = () => t((() => import("./pages-webview-index.1b7e28a7.js")), ["assets/pages-webview-index.1b7e28a7.js", "assets/u-icon.461524ba.js", "assets/_plugin-vue_export-helper.1b428a4d.js", "assets/u-icon-3406a03e.css", "assets/index-9ae05732.css"]).then((e => mm(e.default || e))), - Rb = ho(Mv({loader: jb}, Fv)), - Nb = () => t((() => import("./pages-index-develop.97b246bb.js")), ["assets/pages-index-develop.97b246bb.js", "assets/u-input.cefa6e75.js", "assets/u-icon.461524ba.js", "assets/_plugin-vue_export-helper.1b428a4d.js", "assets/u-icon-3406a03e.css", "assets/u-input-2dabccde.css", "assets/u-button.364aa63d.js", "assets/u-loading-icon.2e89024b.js", "assets/u-loading-icon-4a706ea2.css", "assets/u-button-4e9253f5.css"]).then((e => mm(e.default || e))), - Db = ho(Mv({loader: Nb}, Fv)); - -function zb(e, t) { - return zr(), $r(Pv, null, {page: Hn((() => [Kr(e, Mv({}, t, {ref: "page"}), null, 512)])), _: 1}) -} + render: () => Kr(Wo(Iv.loading)) +}), Iv.error && (jv.errorComponent = {name: "SystemAsyncError", render: () => Kr(Wo(Iv.error))}); +const Rv = () => t((() => import("./pages-index-index.9dccf8c4.js")), ["assets/pages-index-index.9dccf8c4.js", "assets/u-loading-page.925a187b.js", "assets/u-loading-icon.ea8c9ece.js", "assets/_plugin-vue_export-helper.1b428a4d.js", "assets/u-loading-icon-4a706ea2.css", "assets/u-transition.a952a64b.js", "assets/u-transition-607b6047.css", "assets/u-loading-page-2116306f.css", "assets/index.1798b78b.js", "assets/u-icon.f5369555.js", "assets/u-icon-3406a03e.css", "assets/tabbar.e67e4875.js", "assets/u-image.b892f6c4.js", "assets/u-image-f70fd559.css", "assets/u-safe-bottom.593b5cec.js", "assets/u-safe-bottom-fd70ea8a.css", "assets/tabbar-eb61cd51.css", "assets/article.0307362e.js", "assets/app-link.vue_vue_type_script_setup_true_lang.18597de0.js", "assets/u-avatar.ddef1faa.js", "assets/u-avatar-0d8f8309.css", "assets/index-5beda9ca.css", "assets/useShare.3d08f2fc.js", "assets/wechat.56b0d350.js", "assets/index-8e8df8ed.css"]).then((e => mm(e.default || e))), + Nv = ho(Fv({loader: Rv}, jv)), + Dv = () => t((() => import("./pages-article-list.8dce3d3e.js")), ["assets/pages-article-list.8dce3d3e.js", "assets/u-icon.f5369555.js", "assets/_plugin-vue_export-helper.1b428a4d.js", "assets/u-icon-3406a03e.css", "assets/tabbar.e67e4875.js", "assets/u-image.b892f6c4.js", "assets/u-transition.a952a64b.js", "assets/u-transition-607b6047.css", "assets/u-image-f70fd559.css", "assets/u-safe-bottom.593b5cec.js", "assets/u-safe-bottom-fd70ea8a.css", "assets/tabbar-eb61cd51.css", "assets/article.0307362e.js", "assets/useMescroll.fbb7af33.js", "assets/useMescroll-f0734f93.css", "assets/mescroll-empty.22c37416.js", "assets/mescroll-empty-40916e41.css", "assets/useShare.3d08f2fc.js", "assets/wechat.56b0d350.js", "assets/list-c9622c2a.css"]).then((e => mm(e.default || e))), + zv = ho(Fv({loader: Dv}, jv)), + Hv = () => t((() => import("./pages-auth-agreement.016f9147.js")), ["assets/pages-auth-agreement.016f9147.js", "assets/u-parse.403d1985.js", "assets/_plugin-vue_export-helper.1b428a4d.js", "assets/u-parse-9cce559f.css"]).then((e => mm(e.default || e))), + qv = ho(Fv({loader: Hv}, jv)), + Vv = () => t((() => import("./pages-auth-bind.c0b8d2eb.js")), ["assets/pages-auth-bind.c0b8d2eb.js", "assets/u-input.4212a359.js", "assets/u-icon.f5369555.js", "assets/_plugin-vue_export-helper.1b428a4d.js", "assets/u-icon-3406a03e.css", "assets/u-input-2dabccde.css", "assets/u-form.84a1fd52.js", "assets/u-line.bb8d1497.js", "assets/u-line-90cc8525.css", "assets/u-form-c93addfb.css", "assets/sms-code.vue_vue_type_script_setup_true_lang.bcd0d968.js", "assets/u-modal.755a4b61.js", "assets/u-loading-icon.ea8c9ece.js", "assets/u-loading-icon-4a706ea2.css", "assets/u-popup.8a491625.js", "assets/u-transition.a952a64b.js", "assets/u-transition-607b6047.css", "assets/u-safe-bottom.593b5cec.js", "assets/u-safe-bottom-fd70ea8a.css", "assets/u-popup-b896d01d.css", "assets/u-modal-b7ee2981.css", "assets/sms-code-9b208b13.css", "assets/app-link.vue_vue_type_script_setup_true_lang.18597de0.js", "assets/u-button.5c85e6cc.js", "assets/u-button-4e9253f5.css", "assets/bind-12c3cc42.css"]).then((e => mm(e.default || e))), + Wv = ho(Fv({loader: Vv}, jv)), + $v = () => t((() => import("./pages-auth-login.bfe761f1.js")), ["assets/pages-auth-login.bfe761f1.js", "assets/u-input.4212a359.js", "assets/u-icon.f5369555.js", "assets/_plugin-vue_export-helper.1b428a4d.js", "assets/u-icon-3406a03e.css", "assets/u-input-2dabccde.css", "assets/u-form.84a1fd52.js", "assets/u-line.bb8d1497.js", "assets/u-line-90cc8525.css", "assets/u-form-c93addfb.css", "assets/sms-code.vue_vue_type_script_setup_true_lang.bcd0d968.js", "assets/u-modal.755a4b61.js", "assets/u-loading-icon.ea8c9ece.js", "assets/u-loading-icon-4a706ea2.css", "assets/u-popup.8a491625.js", "assets/u-transition.a952a64b.js", "assets/u-transition-607b6047.css", "assets/u-safe-bottom.593b5cec.js", "assets/u-safe-bottom-fd70ea8a.css", "assets/u-popup-b896d01d.css", "assets/u-modal-b7ee2981.css", "assets/sms-code-9b208b13.css", "assets/app-link.vue_vue_type_script_setup_true_lang.18597de0.js", "assets/u-button.5c85e6cc.js", "assets/u-button-4e9253f5.css"]).then((e => mm(e.default || e))), + Qv = ho(Fv({loader: $v}, jv)), + Uv = () => t((() => import("./pages-auth-register.525a8a97.js")), ["assets/pages-auth-register.525a8a97.js", "assets/u-input.4212a359.js", "assets/u-icon.f5369555.js", "assets/_plugin-vue_export-helper.1b428a4d.js", "assets/u-icon-3406a03e.css", "assets/u-input-2dabccde.css", "assets/u-form.84a1fd52.js", "assets/u-line.bb8d1497.js", "assets/u-line-90cc8525.css", "assets/u-form-c93addfb.css", "assets/sms-code.vue_vue_type_script_setup_true_lang.bcd0d968.js", "assets/u-modal.755a4b61.js", "assets/u-loading-icon.ea8c9ece.js", "assets/u-loading-icon-4a706ea2.css", "assets/u-popup.8a491625.js", "assets/u-transition.a952a64b.js", "assets/u-transition-607b6047.css", "assets/u-safe-bottom.593b5cec.js", "assets/u-safe-bottom-fd70ea8a.css", "assets/u-popup-b896d01d.css", "assets/u-modal-b7ee2981.css", "assets/sms-code-9b208b13.css", "assets/app-link.vue_vue_type_script_setup_true_lang.18597de0.js", "assets/u-button.5c85e6cc.js", "assets/u-button-4e9253f5.css"]).then((e => mm(e.default || e))), + Xv = ho(Fv({loader: Uv}, jv)), + Yv = () => t((() => import("./pages-auth-resetpwd.2e039795.js")), ["assets/pages-auth-resetpwd.2e039795.js", "assets/u-input.4212a359.js", "assets/u-icon.f5369555.js", "assets/_plugin-vue_export-helper.1b428a4d.js", "assets/u-icon-3406a03e.css", "assets/u-input-2dabccde.css", "assets/u-form.84a1fd52.js", "assets/u-line.bb8d1497.js", "assets/u-line-90cc8525.css", "assets/u-form-c93addfb.css", "assets/sms-code.vue_vue_type_script_setup_true_lang.bcd0d968.js", "assets/u-modal.755a4b61.js", "assets/u-loading-icon.ea8c9ece.js", "assets/u-loading-icon-4a706ea2.css", "assets/u-popup.8a491625.js", "assets/u-transition.a952a64b.js", "assets/u-transition-607b6047.css", "assets/u-safe-bottom.593b5cec.js", "assets/u-safe-bottom-fd70ea8a.css", "assets/u-popup-b896d01d.css", "assets/u-modal-b7ee2981.css", "assets/sms-code-9b208b13.css", "assets/u-button.5c85e6cc.js", "assets/u-button-4e9253f5.css"]).then((e => mm(e.default || e))), + Jv = ho(Fv({loader: Yv}, jv)), + Gv = () => t((() => import("./pages-index-diy.0d2bc949.js")), ["assets/pages-index-diy.0d2bc949.js", "assets/u-loading-page.925a187b.js", "assets/u-loading-icon.ea8c9ece.js", "assets/_plugin-vue_export-helper.1b428a4d.js", "assets/u-loading-icon-4a706ea2.css", "assets/u-transition.a952a64b.js", "assets/u-transition-607b6047.css", "assets/u-loading-page-2116306f.css", "assets/index.1798b78b.js", "assets/u-icon.f5369555.js", "assets/u-icon-3406a03e.css", "assets/tabbar.e67e4875.js", "assets/u-image.b892f6c4.js", "assets/u-image-f70fd559.css", "assets/u-safe-bottom.593b5cec.js", "assets/u-safe-bottom-fd70ea8a.css", "assets/tabbar-eb61cd51.css", "assets/article.0307362e.js", "assets/app-link.vue_vue_type_script_setup_true_lang.18597de0.js", "assets/u-avatar.ddef1faa.js", "assets/u-avatar-0d8f8309.css", "assets/index-5beda9ca.css", "assets/useShare.3d08f2fc.js", "assets/wechat.56b0d350.js", "assets/diy-9a1c7fc3.css"]).then((e => mm(e.default || e))), + Kv = ho(Fv({loader: Gv}, jv)), + Zv = () => t((() => import("./pages-index-close.88941b42.js")), ["assets/pages-index-close.88941b42.js", "assets/u-empty.317e751c.js", "assets/u-icon.f5369555.js", "assets/_plugin-vue_export-helper.1b428a4d.js", "assets/u-icon-3406a03e.css", "assets/u-empty-5067ac67.css"]).then((e => mm(e.default || e))), + eb = ho(Fv({loader: Zv}, jv)), + tb = () => t((() => import("./pages-index-nosite.d52e22d1.js")), ["assets/pages-index-nosite.d52e22d1.js", "assets/u-empty.317e751c.js", "assets/u-icon.f5369555.js", "assets/_plugin-vue_export-helper.1b428a4d.js", "assets/u-icon-3406a03e.css", "assets/u-empty-5067ac67.css"]).then((e => mm(e.default || e))), + nb = ho(Fv({loader: tb}, jv)), + ob = () => t((() => import("./pages-article-detail.27a94da1.js")), ["assets/pages-article-detail.27a94da1.js", "assets/u-parse.403d1985.js", "assets/_plugin-vue_export-helper.1b428a4d.js", "assets/u-parse-9cce559f.css", "assets/u-loading-page.925a187b.js", "assets/u-loading-icon.ea8c9ece.js", "assets/u-loading-icon-4a706ea2.css", "assets/u-transition.a952a64b.js", "assets/u-transition-607b6047.css", "assets/u-loading-page-2116306f.css", "assets/article.0307362e.js", "assets/useShare.3d08f2fc.js", "assets/wechat.56b0d350.js"]).then((e => mm(e.default || e))), + rb = ho(Fv({loader: ob}, jv)), + ib = () => t((() => import("./pages-member-apply_cash_out.f6ab459d.js")), ["assets/pages-member-apply_cash_out.f6ab459d.js", "assets/u-button.5c85e6cc.js", "assets/u-loading-icon.ea8c9ece.js", "assets/_plugin-vue_export-helper.1b428a4d.js", "assets/u-loading-icon-4a706ea2.css", "assets/u-icon.f5369555.js", "assets/u-icon-3406a03e.css", "assets/u-button-4e9253f5.css", "assets/u-loading-page.925a187b.js", "assets/u-transition.a952a64b.js", "assets/u-transition-607b6047.css", "assets/u-loading-page-2116306f.css"]).then((e => mm(e.default || e))), + ab = ho(Fv({loader: ib}, jv)), + sb = () => t((() => import("./pages-member-commission.2562b979.js")), ["assets/pages-member-commission.2562b979.js", "assets/u-button.5c85e6cc.js", "assets/u-loading-icon.ea8c9ece.js", "assets/_plugin-vue_export-helper.1b428a4d.js", "assets/u-loading-icon-4a706ea2.css", "assets/u-icon.f5369555.js", "assets/u-icon-3406a03e.css", "assets/u-button-4e9253f5.css", "assets/commission-df4369d0.css"]).then((e => mm(e.default || e))), + lb = ho(Fv({loader: sb}, jv)), + cb = () => t((() => import("./pages-member-balance.c8e952bc.js")), ["assets/pages-member-balance.c8e952bc.js", "assets/u-loading-page.925a187b.js", "assets/u-loading-icon.ea8c9ece.js", "assets/_plugin-vue_export-helper.1b428a4d.js", "assets/u-loading-icon-4a706ea2.css", "assets/u-transition.a952a64b.js", "assets/u-transition-607b6047.css", "assets/u-loading-page-2116306f.css", "assets/u-button.5c85e6cc.js", "assets/u-icon.f5369555.js", "assets/u-icon-3406a03e.css", "assets/u-button-4e9253f5.css", "assets/u-input.4212a359.js", "assets/u-input-2dabccde.css", "assets/u-popup.8a491625.js", "assets/u-safe-bottom.593b5cec.js", "assets/u-safe-bottom-fd70ea8a.css", "assets/u-popup-b896d01d.css", "assets/u-image.b892f6c4.js", "assets/u-image-f70fd559.css", "assets/pay.422381f0.js", "assets/wechat.56b0d350.js", "assets/balance-d8f1465a.css"]).then((e => mm(e.default || e))), + ub = ho(Fv({loader: cb}, jv)), + db = () => t((() => import("./pages-member-recharge_record.e42b3b23.js")), ["assets/pages-member-recharge_record.e42b3b23.js", "assets/useMescroll.fbb7af33.js", "assets/_plugin-vue_export-helper.1b428a4d.js", "assets/useMescroll-f0734f93.css", "assets/mescroll-empty.22c37416.js", "assets/mescroll-empty-40916e41.css", "assets/recharge_record-b6711670.css"]).then((e => mm(e.default || e))), + pb = ho(Fv({loader: db}, jv)), + fb = () => t((() => import("./pages-member-recharge_record_detail.b2e7f0df.js")), ["assets/pages-member-recharge_record_detail.b2e7f0df.js", "assets/_plugin-vue_export-helper.1b428a4d.js", "assets/recharge_record_detail-56202dd4.css"]).then((e => mm(e.default || e))), + hb = ho(Fv({loader: fb}, jv)), + mb = () => t((() => import("./pages-member-detailed_account.dfe0ec43.js")), ["assets/pages-member-detailed_account.dfe0ec43.js", "assets/useMescroll.fbb7af33.js", "assets/_plugin-vue_export-helper.1b428a4d.js", "assets/useMescroll-f0734f93.css", "assets/mescroll-empty.22c37416.js", "assets/mescroll-empty-40916e41.css", "assets/detailed_account-3b9b6750.css"]).then((e => mm(e.default || e))), + gb = ho(Fv({loader: mb}, jv)), + vb = () => t((() => import("./pages-member-cash_out.57f0f96a.js")), ["assets/pages-member-cash_out.57f0f96a.js", "assets/useMescroll.fbb7af33.js", "assets/_plugin-vue_export-helper.1b428a4d.js", "assets/useMescroll-f0734f93.css", "assets/mescroll-empty.22c37416.js", "assets/mescroll-empty-40916e41.css", "assets/cash_out-25dffb81.css"]).then((e => mm(e.default || e))), + bb = ho(Fv({loader: vb}, jv)), + yb = () => t((() => import("./pages-member-cash_out_detail.ccd37d79.js")), ["assets/pages-member-cash_out_detail.ccd37d79.js", "assets/_plugin-vue_export-helper.1b428a4d.js", "assets/cash_out_detail-a5b1b8f4.css"]).then((e => mm(e.default || e))), + _b = ho(Fv({loader: yb}, jv)), + wb = () => t((() => import("./pages-member-index.dbd4736b.js")), ["assets/pages-member-index.dbd4736b.js", "assets/u-loading-page.925a187b.js", "assets/u-loading-icon.ea8c9ece.js", "assets/_plugin-vue_export-helper.1b428a4d.js", "assets/u-loading-icon-4a706ea2.css", "assets/u-transition.a952a64b.js", "assets/u-transition-607b6047.css", "assets/u-loading-page-2116306f.css", "assets/index.1798b78b.js", "assets/u-icon.f5369555.js", "assets/u-icon-3406a03e.css", "assets/tabbar.e67e4875.js", "assets/u-image.b892f6c4.js", "assets/u-image-f70fd559.css", "assets/u-safe-bottom.593b5cec.js", "assets/u-safe-bottom-fd70ea8a.css", "assets/tabbar-eb61cd51.css", "assets/article.0307362e.js", "assets/app-link.vue_vue_type_script_setup_true_lang.18597de0.js", "assets/u-avatar.ddef1faa.js", "assets/u-avatar-0d8f8309.css", "assets/index-5beda9ca.css", "assets/index-da921c04.css"]).then((e => mm(e.default || e))), + xb = ho(Fv({loader: wb}, jv)), + Tb = () => t((() => import("./pages-member-personal.66c2c720.js")), ["assets/pages-member-personal.66c2c720.js", "assets/u-avatar.ddef1faa.js", "assets/u-icon.f5369555.js", "assets/_plugin-vue_export-helper.1b428a4d.js", "assets/u-icon-3406a03e.css", "assets/u-avatar-0d8f8309.css", "assets/u-loading-icon.ea8c9ece.js", "assets/u-loading-icon-4a706ea2.css", "assets/u-action-sheet.1e4dbfee.js", "assets/u-line.bb8d1497.js", "assets/u-line-90cc8525.css", "assets/u-popup.8a491625.js", "assets/u-transition.a952a64b.js", "assets/u-transition-607b6047.css", "assets/u-safe-bottom.593b5cec.js", "assets/u-safe-bottom-fd70ea8a.css", "assets/u-popup-b896d01d.css", "assets/u-action-sheet-e3392aa2.css", "assets/u-button.5c85e6cc.js", "assets/u-button-4e9253f5.css", "assets/app-link.vue_vue_type_script_setup_true_lang.18597de0.js", "assets/u-modal.755a4b61.js", "assets/u-modal-b7ee2981.css", "assets/personal-7d5bc078.css"]).then((e => mm(e.default || e))), + Sb = ho(Fv({loader: Tb}, jv)), + Eb = () => t((() => import("./pages-member-point.ff5872df.js")), ["assets/pages-member-point.ff5872df.js", "assets/useMescroll.fbb7af33.js", "assets/_plugin-vue_export-helper.1b428a4d.js", "assets/useMescroll-f0734f93.css", "assets/mescroll-empty.22c37416.js", "assets/mescroll-empty-40916e41.css"]).then((e => mm(e.default || e))), + kb = ho(Fv({loader: Eb}, jv)), + Ab = () => t((() => import("./pages-member-account.1645a99d.js")), ["assets/pages-member-account.1645a99d.js", "assets/u-icon.f5369555.js", "assets/_plugin-vue_export-helper.1b428a4d.js", "assets/u-icon-3406a03e.css", "assets/useMescroll.fbb7af33.js", "assets/useMescroll-f0734f93.css"]).then((e => mm(e.default || e))), + Cb = ho(Fv({loader: Ab}, jv)), + Bb = () => t((() => import("./pages-member-account_edit.142797b5.js")), ["assets/pages-member-account_edit.142797b5.js", "assets/u-input.4212a359.js", "assets/u-icon.f5369555.js", "assets/_plugin-vue_export-helper.1b428a4d.js", "assets/u-icon-3406a03e.css", "assets/u-input-2dabccde.css", "assets/u-form.84a1fd52.js", "assets/u-line.bb8d1497.js", "assets/u-line-90cc8525.css", "assets/u-form-c93addfb.css", "assets/u-button.5c85e6cc.js", "assets/u-loading-icon.ea8c9ece.js", "assets/u-loading-icon-4a706ea2.css", "assets/u-button-4e9253f5.css", "assets/u-modal.755a4b61.js", "assets/u-popup.8a491625.js", "assets/u-transition.a952a64b.js", "assets/u-transition-607b6047.css", "assets/u-safe-bottom.593b5cec.js", "assets/u-safe-bottom-fd70ea8a.css", "assets/u-popup-b896d01d.css", "assets/u-modal-b7ee2981.css"]).then((e => mm(e.default || e))), + Pb = ho(Fv({loader: Bb}, jv)), + Lb = () => t((() => import("./pages-pay-browser.3e8e32cc.js")), []).then((e => mm(e.default || e))), + Ob = ho(Fv({loader: Lb}, jv)), + Ib = () => t((() => import("./pages-pay-result.8b15506e.js")), ["assets/pages-pay-result.8b15506e.js", "assets/u-button.5c85e6cc.js", "assets/u-loading-icon.ea8c9ece.js", "assets/_plugin-vue_export-helper.1b428a4d.js", "assets/u-loading-icon-4a706ea2.css", "assets/u-icon.f5369555.js", "assets/u-icon-3406a03e.css", "assets/u-button-4e9253f5.css", "assets/u-modal.755a4b61.js", "assets/u-line.bb8d1497.js", "assets/u-line-90cc8525.css", "assets/u-popup.8a491625.js", "assets/u-transition.a952a64b.js", "assets/u-transition-607b6047.css", "assets/u-safe-bottom.593b5cec.js", "assets/u-safe-bottom-fd70ea8a.css", "assets/u-popup-b896d01d.css", "assets/u-modal-b7ee2981.css", "assets/pay.422381f0.js"]).then((e => mm(e.default || e))), + Mb = ho(Fv({loader: Ib}, jv)), + Fb = () => t((() => import("./pages-setting-index.dc2bbfce.js")), ["assets/pages-setting-index.dc2bbfce.js", "assets/u-action-sheet.1e4dbfee.js", "assets/u-icon.f5369555.js", "assets/_plugin-vue_export-helper.1b428a4d.js", "assets/u-icon-3406a03e.css", "assets/u-line.bb8d1497.js", "assets/u-line-90cc8525.css", "assets/u-loading-icon.ea8c9ece.js", "assets/u-loading-icon-4a706ea2.css", "assets/u-popup.8a491625.js", "assets/u-transition.a952a64b.js", "assets/u-transition-607b6047.css", "assets/u-safe-bottom.593b5cec.js", "assets/u-safe-bottom-fd70ea8a.css", "assets/u-popup-b896d01d.css", "assets/u-action-sheet-e3392aa2.css", "assets/index-91a59a4a.css"]).then((e => mm(e.default || e))), + jb = ho(Fv({loader: Fb}, jv)), + Rb = () => t((() => import("./pages-webview-index.458b13bb.js")), ["assets/pages-webview-index.458b13bb.js", "assets/u-icon.f5369555.js", "assets/_plugin-vue_export-helper.1b428a4d.js", "assets/u-icon-3406a03e.css", "assets/index-9ae05732.css"]).then((e => mm(e.default || e))), + Nb = ho(Fv({loader: Rb}, jv)), + Db = () => t((() => import("./pages-index-develop.31f84e01.js")), ["assets/pages-index-develop.31f84e01.js", "assets/u-input.4212a359.js", "assets/u-icon.f5369555.js", "assets/_plugin-vue_export-helper.1b428a4d.js", "assets/u-icon-3406a03e.css", "assets/u-input-2dabccde.css", "assets/u-button.5c85e6cc.js", "assets/u-loading-icon.ea8c9ece.js", "assets/u-loading-icon-4a706ea2.css", "assets/u-button-4e9253f5.css"]).then((e => mm(e.default || e))), + zb = ho(Fv({loader: Db}, jv)); function Hb(e, t) { + return zr(), $r(Lv, null, {page: Hn((() => [Kr(e, Fv({}, t, {ref: "page"}), null, 512)])), _: 1}) +} + +function qb(e, t) { return I(e) ? t : e } @@ -11959,10 +11959,10 @@ window.__uniRoutes = [{ component: { setup() { const e = dm(), t = e && e.$route && e.$route.query || {}; - return () => zb(Rv, t) + return () => Hb(Nv, t) } }, - loader: jv, + loader: Rv, meta: { isQuit: !0, isEntry: !0, @@ -11977,10 +11977,10 @@ window.__uniRoutes = [{ component: { setup() { const e = dm(), t = e && e.$route && e.$route.query || {}; - return () => zb(Dv, t) + return () => Hb(zv, t) } }, - loader: Nv, + loader: Dv, meta: { isQuit: !0, isTabBar: !0, @@ -11992,102 +11992,102 @@ window.__uniRoutes = [{ path: "/pages/auth/agreement", component: { setup() { const e = dm(), t = e && e.$route && e.$route.query || {}; - return () => zb(Hv, t) + return () => Hb(qv, t) } - }, loader: zv, meta: {navigationBar: {titleText: "%pages.auth.agreement%", type: "default"}, isNVue: !1} + }, loader: Hv, meta: {navigationBar: {titleText: "%pages.auth.agreement%", type: "default"}, isNVue: !1} }, { path: "/pages/auth/bind", component: { setup() { const e = dm(), t = e && e.$route && e.$route.query || {}; - return () => zb(Vv, t) + return () => Hb(Wv, t) } - }, loader: qv, meta: {navigationBar: {titleText: "%pages.auth.bind%", type: "default"}, isNVue: !1} + }, loader: Vv, meta: {navigationBar: {titleText: "%pages.auth.bind%", type: "default"}, isNVue: !1} }, { path: "/pages/auth/login", component: { setup() { const e = dm(), t = e && e.$route && e.$route.query || {}; - return () => zb($v, t) + return () => Hb(Qv, t) } - }, loader: Wv, meta: {navigationBar: {titleText: "%pages.auth.login%", type: "default"}, isNVue: !1} + }, loader: $v, meta: {navigationBar: {titleText: "%pages.auth.login%", type: "default"}, isNVue: !1} }, { path: "/pages/auth/register", component: { setup() { const e = dm(), t = e && e.$route && e.$route.query || {}; - return () => zb(Uv, t) + return () => Hb(Xv, t) } - }, loader: Qv, meta: {navigationBar: {titleText: "%pages.auth.register%", type: "default"}, isNVue: !1} + }, loader: Uv, meta: {navigationBar: {titleText: "%pages.auth.register%", type: "default"}, isNVue: !1} }, { path: "/pages/auth/resetpwd", component: { setup() { const e = dm(), t = e && e.$route && e.$route.query || {}; - return () => zb(Yv, t) + return () => Hb(Jv, t) } - }, loader: Xv, meta: {navigationBar: {titleText: "%pages.auth.resetpwd%", type: "default"}, isNVue: !1} + }, loader: Yv, meta: {navigationBar: {titleText: "%pages.auth.resetpwd%", type: "default"}, isNVue: !1} }, { path: "/pages/index/diy", component: { setup() { const e = dm(), t = e && e.$route && e.$route.query || {}; - return () => zb(Gv, t) + return () => Hb(Kv, t) } }, - loader: Jv, + loader: Gv, meta: {enablePullDownRefresh: !0, navigationBar: {titleText: "%pages.index.diy%", type: "default"}, isNVue: !1} }, { path: "/pages/index/close", component: { setup() { const e = dm(), t = e && e.$route && e.$route.query || {}; - return () => zb(Zv, t) + return () => Hb(eb, t) } - }, loader: Kv, meta: {navigationBar: {titleText: "%pages.index.close%", type: "default"}, isNVue: !1} + }, loader: Zv, meta: {navigationBar: {titleText: "%pages.index.close%", type: "default"}, isNVue: !1} }, { path: "/pages/index/nosite", component: { setup() { const e = dm(), t = e && e.$route && e.$route.query || {}; - return () => zb(tb, t) + return () => Hb(nb, t) } - }, loader: eb, meta: {navigationBar: {titleText: "%pages.index.nosite%", type: "default"}, isNVue: !1} + }, loader: tb, meta: {navigationBar: {titleText: "%pages.index.nosite%", type: "default"}, isNVue: !1} }, { path: "/pages/article/detail", component: { setup() { const e = dm(), t = e && e.$route && e.$route.query || {}; - return () => zb(ob, t) + return () => Hb(rb, t) } - }, loader: nb, meta: {navigationBar: {titleText: "%pages.article.detail%", type: "default"}, isNVue: !1} + }, loader: ob, meta: {navigationBar: {titleText: "%pages.article.detail%", type: "default"}, isNVue: !1} }, { path: "/pages/member/apply_cash_out", component: { setup() { const e = dm(), t = e && e.$route && e.$route.query || {}; - return () => zb(ib, t) + return () => Hb(ab, t) } - }, loader: rb, meta: {navigationBar: {titleText: "%pages.member.apply_cash_out%", type: "default"}, isNVue: !1} + }, loader: ib, meta: {navigationBar: {titleText: "%pages.member.apply_cash_out%", type: "default"}, isNVue: !1} }, { path: "/pages/member/commission", component: { setup() { const e = dm(), t = e && e.$route && e.$route.query || {}; - return () => zb(sb, t) + return () => Hb(lb, t) } - }, loader: ab, meta: {navigationBar: {titleText: "%pages.member.commission%", type: "default"}, isNVue: !1} + }, loader: sb, meta: {navigationBar: {titleText: "%pages.member.commission%", type: "default"}, isNVue: !1} }, { path: "/pages/member/balance", component: { setup() { const e = dm(), t = e && e.$route && e.$route.query || {}; - return () => zb(cb, t) + return () => Hb(ub, t) } - }, loader: lb, meta: {navigationBar: {titleText: "%pages.member.balance%", type: "default"}, isNVue: !1} + }, loader: cb, meta: {navigationBar: {titleText: "%pages.member.balance%", type: "default"}, isNVue: !1} }, { path: "/pages/member/recharge_record", component: { setup() { const e = dm(), t = e && e.$route && e.$route.query || {}; - return () => zb(db, t) + return () => Hb(pb, t) } - }, loader: ub, meta: {navigationBar: {titleText: "%pages.member.recharge_record%", type: "default"}, isNVue: !1} + }, loader: db, meta: {navigationBar: {titleText: "%pages.member.recharge_record%", type: "default"}, isNVue: !1} }, { path: "/pages/member/recharge_record_detail", component: { setup() { const e = dm(), t = e && e.$route && e.$route.query || {}; - return () => zb(pb, t) + return () => Hb(hb, t) } }, loader: fb, @@ -12096,32 +12096,32 @@ window.__uniRoutes = [{ path: "/pages/member/detailed_account", component: { setup() { const e = dm(), t = e && e.$route && e.$route.query || {}; - return () => zb(mb, t) + return () => Hb(gb, t) } - }, loader: hb, meta: {navigationBar: {titleText: "%pages.member.detailed_account%", type: "default"}, isNVue: !1} + }, loader: mb, meta: {navigationBar: {titleText: "%pages.member.detailed_account%", type: "default"}, isNVue: !1} }, { path: "/pages/member/cash_out", component: { setup() { const e = dm(), t = e && e.$route && e.$route.query || {}; - return () => zb(vb, t) + return () => Hb(bb, t) } - }, loader: gb, meta: {navigationBar: {titleText: "%pages.member.cash_out%", type: "default"}, isNVue: !1} + }, loader: vb, meta: {navigationBar: {titleText: "%pages.member.cash_out%", type: "default"}, isNVue: !1} }, { path: "/pages/member/cash_out_detail", component: { setup() { const e = dm(), t = e && e.$route && e.$route.query || {}; - return () => zb(yb, t) + return () => Hb(_b, t) } - }, loader: bb, meta: {navigationBar: {titleText: "%pages.member.cash_out_detail%", type: "default"}, isNVue: !1} + }, loader: yb, meta: {navigationBar: {titleText: "%pages.member.cash_out_detail%", type: "default"}, isNVue: !1} }, { path: "/pages/member/index", component: { setup() { const e = dm(), t = e && e.$route && e.$route.query || {}; - return () => zb(wb, t) + return () => Hb(xb, t) } }, - loader: _b, + loader: wb, meta: { isQuit: !0, isTabBar: !0, @@ -12134,71 +12134,71 @@ window.__uniRoutes = [{ path: "/pages/member/personal", component: { setup() { const e = dm(), t = e && e.$route && e.$route.query || {}; - return () => zb(Tb, t) + return () => Hb(Sb, t) } - }, loader: xb, meta: {navigationBar: {titleText: "%pages.member.personal%", type: "default"}, isNVue: !1} + }, loader: Tb, meta: {navigationBar: {titleText: "%pages.member.personal%", type: "default"}, isNVue: !1} }, { path: "/pages/member/point", component: { setup() { const e = dm(), t = e && e.$route && e.$route.query || {}; - return () => zb(Eb, t) + return () => Hb(kb, t) } - }, loader: Sb, meta: {navigationBar: {titleText: "%pages.member.point%", type: "default"}, isNVue: !1} + }, loader: Eb, meta: {navigationBar: {titleText: "%pages.member.point%", type: "default"}, isNVue: !1} }, { path: "/pages/member/account", component: { setup() { const e = dm(), t = e && e.$route && e.$route.query || {}; - return () => zb(Ab, t) + return () => Hb(Cb, t) } - }, loader: kb, meta: {navigationBar: {titleText: "%pages.member.account%", type: "default"}, isNVue: !1} + }, loader: Ab, meta: {navigationBar: {titleText: "%pages.member.account%", type: "default"}, isNVue: !1} }, { path: "/pages/member/account_edit", component: { setup() { const e = dm(), t = e && e.$route && e.$route.query || {}; - return () => zb(Bb, t) + return () => Hb(Pb, t) } - }, loader: Cb, meta: {navigationBar: {titleText: "%pages.member.account_edit%", type: "default"}, isNVue: !1} + }, loader: Bb, meta: {navigationBar: {titleText: "%pages.member.account_edit%", type: "default"}, isNVue: !1} }, { path: "/pages/pay/browser", component: { setup() { const e = dm(), t = e && e.$route && e.$route.query || {}; - return () => zb(Lb, t) + return () => Hb(Ob, t) } - }, loader: Pb, meta: {navigationBar: {titleText: "%pages.pay.browser%", type: "default"}, isNVue: !1} + }, loader: Lb, meta: {navigationBar: {titleText: "%pages.pay.browser%", type: "default"}, isNVue: !1} }, { path: "/pages/pay/result", component: { setup() { const e = dm(), t = e && e.$route && e.$route.query || {}; - return () => zb(Ib, t) + return () => Hb(Mb, t) } - }, loader: Ob, meta: {navigationBar: {titleText: "%pages.pay.result%", type: "default"}, isNVue: !1} + }, loader: Ib, meta: {navigationBar: {titleText: "%pages.pay.result%", type: "default"}, isNVue: !1} }, { path: "/pages/setting/index", component: { setup() { const e = dm(), t = e && e.$route && e.$route.query || {}; - return () => zb(Fb, t) + return () => Hb(jb, t) } - }, loader: Mb, meta: {navigationBar: {titleText: "%pages.setting.index%", type: "default"}, isNVue: !1} + }, loader: Fb, meta: {navigationBar: {titleText: "%pages.setting.index%", type: "default"}, isNVue: !1} }, { path: "/pages/webview/index", component: { setup() { const e = dm(), t = e && e.$route && e.$route.query || {}; - return () => zb(Rb, t) + return () => Hb(Nb, t) } - }, loader: jb, meta: {navigationBar: {titleText: "%pages.webview.index%", type: "default"}, isNVue: !1} + }, loader: Rb, meta: {navigationBar: {titleText: "%pages.webview.index%", type: "default"}, isNVue: !1} }, { path: "/pages/index/develop", component: { setup() { const e = dm(), t = e && e.$route && e.$route.query || {}; - return () => zb(Db, t) + return () => Hb(zb, t) } - }, loader: Nb, meta: {navigationBar: {titleText: "%pages.index.develop%", type: "default"}, isNVue: !1} + }, loader: Db, meta: {navigationBar: {titleText: "%pages.index.develop%", type: "default"}, isNVue: !1} }].map((e => (e.meta.route = (e.alias || e.path).slice(1), e))); -const qb = e => (t, n = ui()) => { +const Vb = e => (t, n = ui()) => { !hi && Po(e, t, n) - }, Vb = qb("onShow"), Wb = qb("onHide"), $b = qb("onLaunch"), Qb = qb("onLoad"), Ub = qb("onPageScroll"), - Xb = qb("onReachBottom"), Yb = qb("onPullDownRefresh"), Jb = qb("onShareTimeline"), Gb = qb("onShareAppMessage"), - Kb = { + }, Wb = Vb("onShow"), $b = Vb("onHide"), Qb = Vb("onLaunch"), Ub = Vb("onLoad"), Xb = Vb("onPageScroll"), + Yb = Vb("onReachBottom"), Jb = Vb("onPullDownRefresh"), Gb = Vb("onShareTimeline"), Kb = Vb("onShareAppMessage"), + Zb = { name: "", appid: "__UNI__ED923AB", description: "", @@ -12226,51 +12226,51 @@ const qb = e => (t, n = ui()) => { vueVersion: "3", h5: {router: {mode: "history", base: "/wap/"}}, fallbackLocale: "zh-Hans" - }, Zb = "function" == typeof Symbol && "symbol" == typeof Symbol.toStringTag, ey = e => Zb ? Symbol(e) : e, - ty = e => JSON.stringify(e).replace(/\u2028/g, "\\u2028").replace(/\u2029/g, "\\u2029").replace(/\u0027/g, "\\u0027"), - ny = e => "number" == typeof e && isFinite(e), oy = e => "[object RegExp]" === gy(e), - ry = e => vy(e) && 0 === Object.keys(e).length; + }, ey = "function" == typeof Symbol && "symbol" == typeof Symbol.toStringTag, ty = e => ey ? Symbol(e) : e, + ny = e => JSON.stringify(e).replace(/\u2028/g, "\\u2028").replace(/\u2029/g, "\\u2029").replace(/\u0027/g, "\\u0027"), + oy = e => "number" == typeof e && isFinite(e), ry = e => "[object RegExp]" === vy(e), + iy = e => by(e) && 0 === Object.keys(e).length; -function iy(e, t) { +function ay(e, t) { "undefined" != typeof console && (console.warn("[intlify] " + e), t && console.warn(t.stack)) } -const ay = Object.assign; +const sy = Object.assign; -function sy(e) { +function ly(e) { return e.replace(//g, ">").replace(/"/g, """).replace(/'/g, "'") } -const ly = Object.prototype.hasOwnProperty; +const cy = Object.prototype.hasOwnProperty; -function cy(e, t) { - return ly.call(e, t) +function uy(e, t) { + return cy.call(e, t) } -const uy = Array.isArray, dy = e => "function" == typeof e, fy = e => "string" == typeof e, - py = e => "boolean" == typeof e, hy = e => null !== e && "object" == typeof e, my = Object.prototype.toString, - gy = e => my.call(e), vy = e => "[object Object]" === gy(e), by = Object.prototype.hasOwnProperty; +const dy = Array.isArray, py = e => "function" == typeof e, fy = e => "string" == typeof e, + hy = e => "boolean" == typeof e, my = e => null !== e && "object" == typeof e, gy = Object.prototype.toString, + vy = e => gy.call(e), by = e => "[object Object]" === vy(e), yy = Object.prototype.hasOwnProperty; -function yy(e, t) { - return by.call(e, t) +function _y(e, t) { + return yy.call(e, t) } -const _y = e => null !== e && "object" == typeof e, wy = []; -wy[0] = {w: [0], i: [3, 0], "[": [4], o: [7]}, wy[1] = {w: [1], ".": [2], "[": [4], o: [7]}, wy[2] = { +const wy = e => null !== e && "object" == typeof e, xy = []; +xy[0] = {w: [0], i: [3, 0], "[": [4], o: [7]}, xy[1] = {w: [1], ".": [2], "[": [4], o: [7]}, xy[2] = { w: [2], i: [3, 0], 0: [3, 0] -}, wy[3] = {i: [3, 0], 0: [3, 0], w: [1, 1], ".": [2, 1], "[": [4, 1], o: [7, 1]}, wy[4] = { +}, xy[3] = {i: [3, 0], 0: [3, 0], w: [1, 1], ".": [2, 1], "[": [4, 1], o: [7, 1]}, xy[4] = { "'": [5, 0], '"': [6, 0], "[": [4, 2], "]": [1, 3], o: 8, l: [4, 0] -}, wy[5] = {"'": [4, 0], o: 8, l: [5, 0]}, wy[6] = {'"': [4, 0], o: 8, l: [6, 0]}; -const xy = /^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/; +}, xy[5] = {"'": [4, 0], o: 8, l: [5, 0]}, xy[6] = {'"': [4, 0], o: 8, l: [6, 0]}; +const Ty = /^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/; -function Ty(e) { +function Sy(e) { if (null == e) return "o"; switch (e.charCodeAt(0)) { case 91: @@ -12295,48 +12295,48 @@ function Ty(e) { return "i" } -function Sy(e) { +function Ey(e) { const t = e.trim(); - return ("0" !== e.charAt(0) || !isNaN(parseInt(e))) && (n = t, xy.test(n) ? function (e) { + return ("0" !== e.charAt(0) || !isNaN(parseInt(e))) && (n = t, Ty.test(n) ? function (e) { const t = e.charCodeAt(0); return t !== e.charCodeAt(e.length - 1) || 34 !== t && 39 !== t ? e : e.slice(1, -1) }(t) : "*" + t); var n } -const Ey = new Map; +const ky = new Map; -function ky(e, t) { - if (!_y(e)) return null; - let n = Ey.get(t); +function Ay(e, t) { + if (!wy(e)) return null; + let n = ky.get(t); if (n || (n = function (e) { const t = []; let n, o, r, i, a, s, l, c = -1, u = 0, d = 0; - const f = []; + const p = []; - function p() { + function f() { const t = e[c + 1]; - if (5 === u && "'" === t || 6 === u && '"' === t) return c++, r = "\\" + t, f[0](), !0 + if (5 === u && "'" === t || 6 === u && '"' === t) return c++, r = "\\" + t, p[0](), !0 } - for (f[0] = () => { + for (p[0] = () => { void 0 === o ? o = r : o += r - }, f[1] = () => { + }, p[1] = () => { void 0 !== o && (t.push(o), o = void 0) - }, f[2] = () => { - f[0](), d++ - }, f[3] = () => { - if (d > 0) d--, u = 4, f[0](); else { + }, p[2] = () => { + p[0](), d++ + }, p[3] = () => { + if (d > 0) d--, u = 4, p[0](); else { if (d = 0, void 0 === o) return !1; - if (o = Sy(o), !1 === o) return !1; - f[1]() + if (o = Ey(o), !1 === o) return !1; + p[1]() } - }; null !== u;) if (c++, n = e[c], "\\" !== n || !p()) { - if (i = Ty(n), l = wy[u], a = l[i] || l.l || 8, 8 === a) return; - if (u = a[0], void 0 !== a[1] && (s = f[a[1]], s && (r = n, !1 === s()))) return; + }; null !== u;) if (c++, n = e[c], "\\" !== n || !f()) { + if (i = Sy(n), l = xy[u], a = l[i] || l.l || 8, 8 === a) return; + if (u = a[0], void 0 !== a[1] && (s = p[a[1]], s && (r = n, !1 === s()))) return; if (7 === u) return t } - }(t), n && Ey.set(t, n)), !n) return null; + }(t), n && ky.set(t, n)), !n) return null; const o = n.length; let r = e, i = 0; for (; i < o;) { @@ -12347,14 +12347,14 @@ function ky(e, t) { return r } -function Ay(e) { - if (!_y(e)) return e; - for (const t in e) if (yy(e, t)) if (t.includes(".")) { +function Cy(e) { + if (!wy(e)) return e; + for (const t in e) if (_y(e, t)) if (t.includes(".")) { const n = t.split("."), o = n.length - 1; let r = e; for (let e = 0; e < o; e++) n[e] in r || (r[n[e]] = {}), r = r[n[e]]; - r[n[o]] = e[t], delete e[t], _y(r[n[o]]) && Ay(r[n[o]]) - } else _y(e[t]) && Ay(e[t]); + r[n[o]] = e[t], delete e[t], wy(r[n[o]]) && Cy(r[n[o]]) + } else wy(e[t]) && Cy(e[t]); return e } @@ -12363,40 +12363,40 @@ function Ay(e) { * (c) 2021 kazuya kawaguchi * Released under the MIT License. */ -const Cy = e => e, By = e => "", Py = e => 0 === e.length ? "" : e.join(""), - Ly = e => null == e ? "" : uy(e) || vy(e) && e.toString === my ? JSON.stringify(e, null, 2) : String(e); +const By = e => e, Py = e => "", Ly = e => 0 === e.length ? "" : e.join(""), + Oy = e => null == e ? "" : dy(e) || by(e) && e.toString === gy ? JSON.stringify(e, null, 2) : String(e); -function Oy(e, t) { +function Iy(e, t) { return e = Math.abs(e), 2 === t ? e ? e > 1 ? 1 : 0 : 1 : e ? Math.min(e, 2) : 0 } -function Iy(e = {}) { +function My(e = {}) { const t = e.locale, n = function (e) { - const t = ny(e.pluralIndex) ? e.pluralIndex : -1; - return e.named && (ny(e.named.count) || ny(e.named.n)) ? ny(e.named.count) ? e.named.count : ny(e.named.n) ? e.named.n : t : t - }(e), o = hy(e.pluralRules) && fy(t) && dy(e.pluralRules[t]) ? e.pluralRules[t] : Oy, - r = hy(e.pluralRules) && fy(t) && dy(e.pluralRules[t]) ? Oy : void 0, i = e.list || [], a = e.named || {}; - ny(e.pluralIndex) && function (e, t) { + const t = oy(e.pluralIndex) ? e.pluralIndex : -1; + return e.named && (oy(e.named.count) || oy(e.named.n)) ? oy(e.named.count) ? e.named.count : oy(e.named.n) ? e.named.n : t : t + }(e), o = my(e.pluralRules) && fy(t) && py(e.pluralRules[t]) ? e.pluralRules[t] : Iy, + r = my(e.pluralRules) && fy(t) && py(e.pluralRules[t]) ? Iy : void 0, i = e.list || [], a = e.named || {}; + oy(e.pluralIndex) && function (e, t) { t.count || (t.count = e), t.n || (t.n = e) }(n, a); function s(t) { - const n = dy(e.messages) ? e.messages(t) : !!hy(e.messages) && e.messages[t]; - return n || (e.parent ? e.parent.message(t) : By) + const n = py(e.messages) ? e.messages(t) : !!my(e.messages) && e.messages[t]; + return n || (e.parent ? e.parent.message(t) : Py) } - const l = vy(e.processor) && dy(e.processor.normalize) ? e.processor.normalize : Py, - c = vy(e.processor) && dy(e.processor.interpolate) ? e.processor.interpolate : Ly, u = { + const l = by(e.processor) && py(e.processor.normalize) ? e.processor.normalize : Ly, + c = by(e.processor) && py(e.processor.interpolate) ? e.processor.interpolate : Oy, u = { list: e => i[e], named: e => a[e], plural: e => e[o(n, e.length, r)], linked: (t, n) => { const o = s(t)(u); - return fy(n) ? (r = n, e.modifiers ? e.modifiers[r] : Cy)(o) : o; + return fy(n) ? (r = n, e.modifiers ? e.modifiers[r] : By)(o) : o; var r }, message: s, - type: vy(e.processor) && fy(e.processor.type) ? e.processor.type : "text", + type: by(e.processor) && fy(e.processor.type) ? e.processor.type : "text", interpolate: c, normalize: l }; @@ -12408,26 +12408,26 @@ function Iy(e = {}) { * (c) 2021 kazuya kawaguchi * Released under the MIT License. */ -function My(e, t, n = {}) { +function Fy(e, t, n = {}) { const {domain: o, messages: r, args: i} = n, a = new SyntaxError(String(e)); return a.code = e, t && (a.location = t), a.domain = o, a } -function Fy(e) { +function jy(e) { throw e } -function jy(e, t, n) { +function Ry(e, t, n) { const o = {start: e, end: t}; return null != n && (o.source = n), o } -const Ry = String.fromCharCode(8232), Ny = String.fromCharCode(8233); +const Ny = String.fromCharCode(8232), Dy = String.fromCharCode(8233); -function Dy(e) { +function zy(e) { const t = e; let n = 0, o = 1, r = 1, i = 0; - const a = e => "\r" === t[e] && "\n" === t[e + 1], s = e => t[e] === Ny, l = e => t[e] === Ry, + const a = e => "\r" === t[e] && "\n" === t[e + 1], s = e => t[e] === Dy, l = e => t[e] === Ny, c = e => a(e) || (e => "\n" === t[e])(e) || s(e) || l(e), u = e => a(e) || s(e) || l(e) ? "\n" : t[e]; function d() { @@ -12460,10 +12460,10 @@ function Dy(e) { } } -const zy = void 0; +const Hy = void 0; -function Hy(e, t = {}) { - const n = !1 !== t.location, o = Dy(e), r = () => o.index(), i = () => { +function qy(e, t = {}) { + const n = !1 !== t.location, o = zy(e), r = () => o.index(), i = () => { return e = o.line(), t = o.column(), n = o.index(), {line: e, column: t, offset: n}; var e, t, n }, a = i(), s = r(), l = { @@ -12483,18 +12483,18 @@ function Hy(e, t = {}) { function d(e, t, n, ...o) { const r = c(); if (t.column += n, t.offset += n, u) { - const n = My(e, jy(r.startLoc, t), {domain: "tokenizer", args: o}); + const n = Fy(e, Ry(r.startLoc, t), {domain: "tokenizer", args: o}); u(n) } } - function f(e, t, o) { + function p(e, t, o) { e.endLoc = i(), e.currentType = t; const r = {type: t}; - return n && (r.loc = jy(e.startLoc, e.endLoc)), null != o && (r.value = o), r + return n && (r.loc = Ry(e.startLoc, e.endLoc)), null != o && (r.value = o), r } - const p = e => f(e, 14); + const f = e => p(e, 14); function h(e, t) { return e.currentChar() === t ? (e.next(), t) : (d(0, i(), 0, t), "") @@ -12512,7 +12512,7 @@ function Hy(e, t = {}) { } function v(e) { - if (e === zy) return !1; + if (e === Hy) return !1; const t = e.charCodeAt(0); return t >= 97 && t <= 122 || t >= 65 && t <= 90 || 95 === t } @@ -12522,7 +12522,7 @@ function Hy(e, t = {}) { if (2 !== n) return !1; m(e); const o = function (e) { - if (e === zy) return !1; + if (e === Hy) return !1; const t = e.charCodeAt(0); return t >= 48 && t <= 57 }("-" === e.currentPeek() ? e.peek() : e.currentPeek()); @@ -12545,7 +12545,7 @@ function Hy(e, t = {}) { function w(e, t) { const n = e.currentChar(); - return n === zy ? zy : t(n) ? (e.next(), n) : null + return n === Hy ? Hy : t(n) ? (e.next(), n) : null } function x(e) { @@ -12614,14 +12614,14 @@ function Hy(e, t = {}) { let n = null; switch (e.currentChar()) { case"{": - return t.braceNest >= 1 && d(8, i(), 0), e.next(), n = f(t, 2, "{"), g(e), t.braceNest++, n; + return t.braceNest >= 1 && d(8, i(), 0), e.next(), n = p(t, 2, "{"), g(e), t.braceNest++, n; case"}": - return t.braceNest > 0 && 2 === t.currentType && d(7, i(), 0), e.next(), n = f(t, 3, "}"), t.braceNest--, t.braceNest > 0 && g(e), t.inLinked && 0 === t.braceNest && (t.inLinked = !1), n; + return t.braceNest > 0 && 2 === t.currentType && d(7, i(), 0), e.next(), n = p(t, 3, "}"), t.braceNest--, t.braceNest > 0 && g(e), t.inLinked && 0 === t.braceNest && (t.inLinked = !1), n; case"@": - return t.braceNest > 0 && d(6, i(), 0), n = P(e, t) || p(t), t.braceNest = 0, n; + return t.braceNest > 0 && d(6, i(), 0), n = P(e, t) || f(t), t.braceNest = 0, n; default: let o = !0, r = !0, a = !0; - if (y(e)) return t.braceNest > 0 && d(6, i(), 0), n = f(t, 1, C(e)), t.braceNest = 0, t.inLinked = !1, n; + if (y(e)) return t.braceNest > 0 && d(6, i(), 0), n = p(t, 1, C(e)), t.braceNest = 0, t.inLinked = !1, n; if (t.braceNest > 0 && (5 === t.currentType || 6 === t.currentType || 7 === t.currentType)) return d(6, i(), 0), t.braceNest = 0, L(e, t); if (o = function (e, t) { const {currentType: n} = t; @@ -12629,16 +12629,16 @@ function Hy(e, t = {}) { m(e); const o = v(e.currentPeek()); return e.resetPeek(), o - }(e, t)) return n = f(t, 5, function (e) { + }(e, t)) return n = p(t, 5, function (e) { g(e); let t = "", n = ""; for (; t = x(e);) n += t; - return e.currentChar() === zy && d(6, i(), 0), n + return e.currentChar() === Hy && d(6, i(), 0), n }(e)), g(e), n; - if (r = b(e, t)) return n = f(t, 6, function (e) { + if (r = b(e, t)) return n = p(t, 6, function (e) { g(e); let t = ""; - return "-" === e.currentChar() ? (e.next(), t += `-${E(e)}`) : t += E(e), e.currentChar() === zy && d(6, i(), 0), t + return "-" === e.currentChar() ? (e.next(), t += `-${E(e)}`) : t += E(e), e.currentChar() === Hy && d(6, i(), 0), t }(e)), g(e), n; if (a = function (e, t) { const {currentType: n} = t; @@ -12646,15 +12646,15 @@ function Hy(e, t = {}) { m(e); const o = "'" === e.currentPeek(); return e.resetPeek(), o - }(e, t)) return n = f(t, 7, function (e) { + }(e, t)) return n = p(t, 7, function (e) { g(e), h(e, "'"); let t = "", n = ""; const o = e => "'" !== e && "\n" !== e; for (; t = w(e, o);) n += "\\" === t ? k(e) : t; const r = e.currentChar(); - return "\n" === r || r === zy ? (d(2, i(), 0), "\n" === r && (e.next(), h(e, "'")), n) : (h(e, "'"), n) + return "\n" === r || r === Hy ? (d(2, i(), 0), "\n" === r && (e.next(), h(e, "'")), n) : (h(e, "'"), n) }(e)), g(e), n; - if (!o && !r && !a) return n = f(t, 13, function (e) { + if (!o && !r && !a) return n = p(t, 13, function (e) { g(e); let t = "", n = ""; const o = e => "{" !== e && "}" !== e && " " !== e && "\n" !== e; @@ -12671,13 +12671,13 @@ function Hy(e, t = {}) { const r = e.currentChar(); switch (8 !== n && 9 !== n && 12 !== n && 10 !== n || "\n" !== r && " " !== r || d(9, i(), 0), r) { case"@": - return e.next(), o = f(t, 8, "@"), t.inLinked = !0, o; + return e.next(), o = p(t, 8, "@"), t.inLinked = !0, o; case".": - return g(e), e.next(), f(t, 9, "."); + return g(e), e.next(), p(t, 9, "."); case":": - return g(e), e.next(), f(t, 10, ":"); + return g(e), e.next(), p(t, 10, ":"); default: - return y(e) ? (o = f(t, 1, C(e)), t.braceNest = 0, t.inLinked = !1, o) : function (e, t) { + return y(e) ? (o = p(t, 1, C(e)), t.braceNest = 0, t.inLinked = !1, o) : function (e, t) { const {currentType: n} = t; if (8 !== n) return !1; m(e); @@ -12695,7 +12695,7 @@ function Hy(e, t = {}) { m(e); const o = v(e.currentPeek()); return e.resetPeek(), o - }(e, t) ? (g(e), f(t, 12, function (e) { + }(e, t) ? (g(e), p(t, 12, function (e) { let t = "", n = ""; for (; t = x(e);) n += t; return n @@ -12707,7 +12707,7 @@ function Hy(e, t = {}) { return "{" === t ? v(e.peek()) : !("@" === t || "%" === t || "|" === t || ":" === t || "." === t || " " === t || !t) && ("\n" === t ? (e.peek(), o()) : v(t)) }, r = o(); return e.resetPeek(), r - }(e, t) ? (g(e), "{" === r ? B(e, t) || o : f(t, 11, function (e) { + }(e, t) ? (g(e), "{" === r ? B(e, t) || o : p(t, 11, function (e) { const t = (n = !1, o) => { const r = e.currentChar(); return "{" !== r && "%" !== r && "@" !== r && "|" !== r && r ? " " === r ? o : "\n" === r ? (o += r, e.next(), t(n, o)) : (o += r, e.next(), t(!0, o)) : o @@ -12719,19 +12719,19 @@ function Hy(e, t = {}) { function L(e, t) { let n = {type: 14}; - if (t.braceNest > 0) return B(e, t) || p(t); - if (t.inLinked) return P(e, t) || p(t); + if (t.braceNest > 0) return B(e, t) || f(t); + if (t.inLinked) return P(e, t) || f(t); const o = e.currentChar(); switch (o) { case"{": - return B(e, t) || p(t); + return B(e, t) || f(t); case"}": - return d(5, i(), 0), e.next(), f(t, 3, "}"); + return d(5, i(), 0), e.next(), p(t, 3, "}"); case"@": - return P(e, t) || p(t); + return P(e, t) || f(t); default: - if (y(e)) return n = f(t, 1, C(e)), t.braceNest = 0, t.inLinked = !1, n; - if (_(e)) return f(t, 0, function (e) { + if (y(e)) return n = p(t, 1, C(e)), t.braceNest = 0, t.inLinked = !1, n; + if (_(e)) return p(t, 0, function (e) { let t = ""; for (; ;) { const n = e.currentChar(); @@ -12746,7 +12746,7 @@ function Hy(e, t = {}) { } return t }(e)); - if ("%" === o) return e.next(), f(t, 4, "%") + if ("%" === o) return e.next(), p(t, 4, "%") } return n } @@ -12754,14 +12754,14 @@ function Hy(e, t = {}) { return { nextToken: function () { const {currentType: e, offset: t, startLoc: n, endLoc: a} = l; - return l.lastType = e, l.lastOffset = t, l.lastStartLoc = n, l.lastEndLoc = a, l.offset = r(), l.startLoc = i(), o.currentChar() === zy ? f(l, 14) : L(o, l) + return l.lastType = e, l.lastOffset = t, l.lastStartLoc = n, l.lastEndLoc = a, l.offset = r(), l.startLoc = i(), o.currentChar() === Hy ? p(l, 14) : L(o, l) }, currentOffset: r, currentPosition: i, context: c } } -const qy = /(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g; +const Vy = /(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g; -function Vy(e, t, n) { +function Wy(e, t, n) { switch (e) { case"\\\\": return "\\"; @@ -12774,13 +12774,13 @@ function Vy(e, t, n) { } } -function Wy(e = {}) { +function $y(e = {}) { const t = !1 !== e.location, {onError: n} = e; function o(e, t, o, r, ...i) { const a = e.currentPosition(); if (a.offset += r, a.column += r, n) { - const e = My(t, jy(o, a), {domain: "parser", args: i}); + const e = Fy(t, Ry(o, a), {domain: "parser", args: i}); n(e) } } @@ -12811,7 +12811,7 @@ function Wy(e = {}) { function c(e, t) { const n = e.context(), {lastOffset: o, lastStartLoc: a} = n, s = r(9, o, a); - return s.value = t.replace(qy, Vy), e.nextToken(), i(s, e.currentOffset(), e.currentPosition()), s + return s.value = t.replace(Vy, Wy), e.nextToken(), i(s, e.currentOffset(), e.currentPosition()), s } function u(e) { @@ -12823,25 +12823,25 @@ function Wy(e = {}) { return 12 !== t.type ? (o(e, 11, n.lastStartLoc, 0), l.value = "", i(l, a, s), { nextConsumeToken: t, node: l - }) : (null == t.value && o(e, 13, n.lastStartLoc, 0, $y(t)), l.value = t.value || "", i(l, e.currentOffset(), e.currentPosition()), {node: l}) + }) : (null == t.value && o(e, 13, n.lastStartLoc, 0, Qy(t)), l.value = t.value || "", i(l, e.currentOffset(), e.currentPosition()), {node: l}) }(e); n.modifier = t.node, a = t.nextConsumeToken || e.nextToken() } - switch (10 !== a.type && o(e, 13, t.lastStartLoc, 0, $y(a)), a = e.nextToken(), 2 === a.type && (a = e.nextToken()), a.type) { + switch (10 !== a.type && o(e, 13, t.lastStartLoc, 0, Qy(a)), a = e.nextToken(), 2 === a.type && (a = e.nextToken()), a.type) { case 11: - null == a.value && o(e, 13, t.lastStartLoc, 0, $y(a)), n.key = function (e, t) { + null == a.value && o(e, 13, t.lastStartLoc, 0, Qy(a)), n.key = function (e, t) { const n = e.context(), o = r(7, n.offset, n.startLoc); return o.value = t, i(o, e.currentOffset(), e.currentPosition()), o }(e, a.value || ""); break; case 5: - null == a.value && o(e, 13, t.lastStartLoc, 0, $y(a)), n.key = l(e, a.value || ""); + null == a.value && o(e, 13, t.lastStartLoc, 0, Qy(a)), n.key = l(e, a.value || ""); break; case 6: - null == a.value && o(e, 13, t.lastStartLoc, 0, $y(a)), n.key = s(e, a.value || ""); + null == a.value && o(e, 13, t.lastStartLoc, 0, Qy(a)), n.key = s(e, a.value || ""); break; case 7: - null == a.value && o(e, 13, t.lastStartLoc, 0, $y(a)), n.key = c(e, a.value || ""); + null == a.value && o(e, 13, t.lastStartLoc, 0, Qy(a)), n.key = c(e, a.value || ""); break; default: o(e, 12, t.lastStartLoc, 0); @@ -12863,16 +12863,16 @@ function Wy(e = {}) { const r = d || e.nextToken(); switch (d = null, r.type) { case 0: - null == r.value && o(e, 13, t.lastStartLoc, 0, $y(r)), n.items.push(a(e, r.value || "")); + null == r.value && o(e, 13, t.lastStartLoc, 0, Qy(r)), n.items.push(a(e, r.value || "")); break; case 6: - null == r.value && o(e, 13, t.lastStartLoc, 0, $y(r)), n.items.push(s(e, r.value || "")); + null == r.value && o(e, 13, t.lastStartLoc, 0, Qy(r)), n.items.push(s(e, r.value || "")); break; case 5: - null == r.value && o(e, 13, t.lastStartLoc, 0, $y(r)), n.items.push(l(e, r.value || "")); + null == r.value && o(e, 13, t.lastStartLoc, 0, Qy(r)), n.items.push(l(e, r.value || "")); break; case 7: - null == r.value && o(e, 13, t.lastStartLoc, 0, $y(r)), n.items.push(c(e, r.value || "")); + null == r.value && o(e, 13, t.lastStartLoc, 0, Qy(r)), n.items.push(c(e, r.value || "")); break; case 8: const i = u(e); @@ -12882,7 +12882,7 @@ function Wy(e = {}) { return i(n, 1 === t.currentType ? t.lastOffset : e.currentOffset(), 1 === t.currentType ? t.lastEndLoc : e.currentPosition()), n } - function f(e) { + function p(e) { const t = e.context(), {offset: n, startLoc: a} = t, s = d(e); return 14 === t.currentType ? s : function (e, t, n, a) { const s = e.context(); @@ -12899,32 +12899,32 @@ function Wy(e = {}) { return { parse: function (n) { - const a = Hy(n, ay({}, e)), s = a.context(), l = r(0, s.offset, s.startLoc); - return t && l.loc && (l.loc.source = n), l.body = f(a), 14 !== s.currentType && o(a, 13, s.lastStartLoc, 0, n[s.offset] || ""), i(l, a.currentOffset(), a.currentPosition()), l + const a = qy(n, sy({}, e)), s = a.context(), l = r(0, s.offset, s.startLoc); + return t && l.loc && (l.loc.source = n), l.body = p(a), 14 !== s.currentType && o(a, 13, s.lastStartLoc, 0, n[s.offset] || ""), i(l, a.currentOffset(), a.currentPosition()), l } } } -function $y(e) { +function Qy(e) { if (14 === e.type) return "EOF"; const t = (e.value || "").replace(/\r?\n/gu, "\\n"); return t.length > 10 ? t.slice(0, 9) + "…" : t } -function Qy(e, t) { - for (let n = 0; n < e.length; n++) Uy(e[n], t) +function Uy(e, t) { + for (let n = 0; n < e.length; n++) Xy(e[n], t) } -function Uy(e, t) { +function Xy(e, t) { switch (e.type) { case 1: - Qy(e.cases, t), t.helper("plural"); + Uy(e.cases, t), t.helper("plural"); break; case 2: - Qy(e.items, t); + Uy(e.items, t); break; case 6: - Uy(e.key, t), t.helper("linked"); + Xy(e.key, t), t.helper("linked"); break; case 5: t.helper("interpolate"), t.helper("list"); @@ -12934,22 +12934,22 @@ function Uy(e, t) { } } -function Xy(e, t = {}) { +function Yy(e, t = {}) { const n = function (e, t = {}) { const n = {ast: e, helpers: new Set}; return {context: () => n, helper: e => (n.helpers.add(e), e)} }(e); - n.helper("normalize"), e.body && Uy(e.body, n); + n.helper("normalize"), e.body && Xy(e.body, n); const o = n.context(); e.helpers = Array.from(o.helpers) } -function Yy(e, t) { +function Jy(e, t) { const {helper: n} = e; switch (t.type) { case 0: !function (e, t) { - t.body ? Yy(e, t.body) : e.push("null") + t.body ? Jy(e, t.body) : e.push("null") }(e, t); break; case 1: @@ -12958,7 +12958,7 @@ function Yy(e, t) { if (t.cases.length > 1) { e.push(`${n("plural")}([`), e.indent(o()); const r = t.cases.length; - for (let n = 0; n < r && (Yy(e, t.cases[n]), n !== r - 1); n++) e.push(", "); + for (let n = 0; n < r && (Jy(e, t.cases[n]), n !== r - 1); n++) e.push(", "); e.deindent(o()), e.push("])") } }(e, t); @@ -12968,14 +12968,14 @@ function Yy(e, t) { const {helper: n, needIndent: o} = e; e.push(`${n("normalize")}([`), e.indent(o()); const r = t.items.length; - for (let i = 0; i < r && (Yy(e, t.items[i]), i !== r - 1); i++) e.push(", "); + for (let i = 0; i < r && (Jy(e, t.items[i]), i !== r - 1); i++) e.push(", "); e.deindent(o()), e.push("])") }(e, t); break; case 6: !function (e, t) { const {helper: n} = e; - e.push(`${n("linked")}(`), Yy(e, t.key), t.modifier && (e.push(", "), Yy(e, t.modifier)), e.push(")") + e.push(`${n("linked")}(`), Jy(e, t.key), t.modifier && (e.push(", "), Jy(e, t.modifier)), e.push(")") }(e, t); break; case 8: @@ -12992,9 +12992,9 @@ function Yy(e, t) { } } -function Jy(e, t = {}) { - const n = ay({}, t), o = Wy(n).parse(e); - return Xy(o, n), ((e, t = {}) => { +function Gy(e, t = {}) { + const n = sy({}, t), o = $y(n).parse(e); + return Yy(o, n), ((e, t = {}) => { const n = fy(t.mode) ? t.mode : "normal", o = fy(t.filename) ? t.filename : "message.intl", r = !!t.sourceMap, i = null != t.breakLineCode ? t.breakLineCode : "arrow" === n ? ";" : "\n", a = t.needIndent ? t.needIndent : "arrow" !== n, s = e.helpers || [], l = function (e, t) { @@ -13032,7 +13032,7 @@ function Jy(e, t = {}) { }, helper: e => `_${e}`, needIndent: () => a.needIndent } }(e, {mode: n, filename: o, sourceMap: r, breakLineCode: i, needIndent: a}); - l.push("normal" === n ? "function __msg__ (ctx) {" : "(ctx) => {"), l.indent(a), s.length > 0 && (l.push(`const { ${s.map((e => `${e}: _${e}`)).join(", ")} } = ctx`), l.newline()), l.push("return "), Yy(l, e), l.deindent(a), l.push("}"); + l.push("normal" === n ? "function __msg__ (ctx) {" : "(ctx) => {"), l.indent(a), s.length > 0 && (l.push(`const { ${s.map((e => `${e}: _${e}`)).join(", ")} } = ctx`), l.newline()), l.push("return "), Jy(l, e), l.deindent(a), l.push("}"); const {code: c, map: u} = l.context(); return {ast: e, code: c, map: u ? u.toJSON() : void 0} })(o, n) @@ -13043,29 +13043,29 @@ function Jy(e, t = {}) { * (c) 2021 kazuya kawaguchi * Released under the MIT License. */ -let Gy; -let Ky = 0; +let Ky; +let Zy = 0; -function Zy(e = {}) { +function e_(e = {}) { const t = fy(e.version) ? e.version : "9.1.9", n = fy(e.locale) ? e.locale : "en-US", - o = uy(e.fallbackLocale) || vy(e.fallbackLocale) || fy(e.fallbackLocale) || !1 === e.fallbackLocale ? e.fallbackLocale : n, - r = vy(e.messages) ? e.messages : {[n]: {}}, i = vy(e.datetimeFormats) ? e.datetimeFormats : {[n]: {}}, - a = vy(e.numberFormats) ? e.numberFormats : {[n]: {}}, s = ay({}, e.modifiers || {}, { + o = dy(e.fallbackLocale) || by(e.fallbackLocale) || fy(e.fallbackLocale) || !1 === e.fallbackLocale ? e.fallbackLocale : n, + r = by(e.messages) ? e.messages : {[n]: {}}, i = by(e.datetimeFormats) ? e.datetimeFormats : {[n]: {}}, + a = by(e.numberFormats) ? e.numberFormats : {[n]: {}}, s = sy({}, e.modifiers || {}, { upper: e => fy(e) ? e.toUpperCase() : e, lower: e => fy(e) ? e.toLowerCase() : e, capitalize: e => fy(e) ? `${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}` : e - }), l = e.pluralRules || {}, c = dy(e.missing) ? e.missing : null, - u = !py(e.missingWarn) && !oy(e.missingWarn) || e.missingWarn, - d = !py(e.fallbackWarn) && !oy(e.fallbackWarn) || e.fallbackWarn, f = !!e.fallbackFormat, p = !!e.unresolving, - h = dy(e.postTranslation) ? e.postTranslation : null, m = vy(e.processor) ? e.processor : null, - g = !py(e.warnHtmlMessage) || e.warnHtmlMessage, v = !!e.escapeParameter, - b = dy(e.messageCompiler) ? e.messageCompiler : Gy, y = dy(e.onWarn) ? e.onWarn : iy, _ = e, - w = hy(_.__datetimeFormatters) ? _.__datetimeFormatters : new Map, - x = hy(_.__numberFormatters) ? _.__numberFormatters : new Map, T = hy(_.__meta) ? _.__meta : {}; - Ky++; + }), l = e.pluralRules || {}, c = py(e.missing) ? e.missing : null, + u = !hy(e.missingWarn) && !ry(e.missingWarn) || e.missingWarn, + d = !hy(e.fallbackWarn) && !ry(e.fallbackWarn) || e.fallbackWarn, p = !!e.fallbackFormat, f = !!e.unresolving, + h = py(e.postTranslation) ? e.postTranslation : null, m = by(e.processor) ? e.processor : null, + g = !hy(e.warnHtmlMessage) || e.warnHtmlMessage, v = !!e.escapeParameter, + b = py(e.messageCompiler) ? e.messageCompiler : Ky, y = py(e.onWarn) ? e.onWarn : ay, _ = e, + w = my(_.__datetimeFormatters) ? _.__datetimeFormatters : new Map, + x = my(_.__numberFormatters) ? _.__numberFormatters : new Map, T = my(_.__meta) ? _.__meta : {}; + Zy++; return { version: t, - cid: Ky, + cid: Zy, locale: n, fallbackLocale: o, messages: r, @@ -13076,8 +13076,8 @@ function Zy(e = {}) { missing: c, missingWarn: u, fallbackWarn: d, - fallbackFormat: f, - unresolving: p, + fallbackFormat: p, + unresolving: f, postTranslation: h, processor: m, warnHtmlMessage: g, @@ -13090,7 +13090,7 @@ function Zy(e = {}) { } } -function e_(e, t, n, o, r) { +function t_(e, t, n, o, r) { const {missing: i, onWarn: a} = e; if (null !== i) { const o = i(e, n, t, r); @@ -13099,113 +13099,113 @@ function e_(e, t, n, o, r) { return t } -function t_(e, t, n) { +function n_(e, t, n) { const o = e; o.__localeChainCache || (o.__localeChainCache = new Map); let r = o.__localeChainCache.get(n); if (!r) { r = []; let e = [n]; - for (; uy(e);) e = n_(r, e, t); - const i = uy(t) ? t : vy(t) ? t.default ? t.default : null : t; - e = fy(i) ? [i] : i, uy(e) && n_(r, e, !1), o.__localeChainCache.set(n, r) + for (; dy(e);) e = o_(r, e, t); + const i = dy(t) ? t : by(t) ? t.default ? t.default : null : t; + e = fy(i) ? [i] : i, dy(e) && o_(r, e, !1), o.__localeChainCache.set(n, r) } return r } -function n_(e, t, n) { - let o = !0; - for (let r = 0; r < t.length && py(o); r++) { - const i = t[r]; - fy(i) && (o = o_(e, t[r], n)) - } - return o -} - function o_(e, t, n) { - let o; - const r = t.split("-"); - do { - o = r_(e, r.join("-"), n), r.splice(-1, 1) - } while (r.length && !0 === o); + let o = !0; + for (let r = 0; r < t.length && hy(o); r++) { + const i = t[r]; + fy(i) && (o = r_(e, t[r], n)) + } return o } function r_(e, t, n) { - let o = !1; - if (!e.includes(t) && (o = !0, t)) { - o = "!" !== t[t.length - 1]; - const r = t.replace(/!/g, ""); - e.push(r), (uy(n) || vy(n)) && n[r] && (o = n[r]) - } + let o; + const r = t.split("-"); + do { + o = i_(e, r.join("-"), n), r.splice(-1, 1) + } while (r.length && !0 === o); return o } function i_(e, t, n) { - e.__localeChainCache = new Map, t_(e, n, t) + let o = !1; + if (!e.includes(t) && (o = !0, t)) { + o = "!" !== t[t.length - 1]; + const r = t.replace(/!/g, ""); + e.push(r), (dy(n) || by(n)) && n[r] && (o = n[r]) + } + return o } -const a_ = e => e; -let s_ = Object.create(null); - -function l_(e) { - return My(e, null, void 0) +function a_(e, t, n) { + e.__localeChainCache = new Map, n_(e, n, t) } -const c_ = () => "", u_ = e => dy(e); +const s_ = e => e; +let l_ = Object.create(null); -function d_(e, ...t) { - const {fallbackFormat: n, postTranslation: o, unresolving: r, fallbackLocale: i, messages: a} = e, [s, l] = p_(...t), - c = (py(l.missingWarn) ? l.missingWarn : e.missingWarn, py(l.fallbackWarn) ? l.fallbackWarn : e.fallbackWarn, py(l.escapeParameter) ? l.escapeParameter : e.escapeParameter), - u = !!l.resolvedMessage, d = fy(l.default) || py(l.default) ? py(l.default) ? s : l.default : n ? s : "", - f = n || "" !== d, p = fy(l.locale) ? l.locale : e.locale; +function c_(e) { + return Fy(e, null, void 0) +} + +const u_ = () => "", d_ = e => py(e); + +function p_(e, ...t) { + const {fallbackFormat: n, postTranslation: o, unresolving: r, fallbackLocale: i, messages: a} = e, [s, l] = h_(...t), + c = (hy(l.missingWarn) ? l.missingWarn : e.missingWarn, hy(l.fallbackWarn) ? l.fallbackWarn : e.fallbackWarn, hy(l.escapeParameter) ? l.escapeParameter : e.escapeParameter), + u = !!l.resolvedMessage, d = fy(l.default) || hy(l.default) ? hy(l.default) ? s : l.default : n ? s : "", + p = n || "" !== d, f = fy(l.locale) ? l.locale : e.locale; c && function (e) { - uy(e.list) ? e.list = e.list.map((e => fy(e) ? sy(e) : e)) : hy(e.named) && Object.keys(e.named).forEach((t => { - fy(e.named[t]) && (e.named[t] = sy(e.named[t])) + dy(e.list) ? e.list = e.list.map((e => fy(e) ? ly(e) : e)) : my(e.named) && Object.keys(e.named).forEach((t => { + fy(e.named[t]) && (e.named[t] = ly(e.named[t])) })) }(l); - let [h, m, g] = u ? [s, p, a[p] || {}] : function (e, t, n, o, r, i) { - const {messages: a, onWarn: s} = e, l = t_(e, o, n); + let [h, m, g] = u ? [s, f, a[f] || {}] : function (e, t, n, o, r, i) { + const {messages: a, onWarn: s} = e, l = n_(e, o, n); let c, u = {}, d = null; - const f = "translate"; - for (let p = 0; p < l.length && (c = l[p], u = a[c] || {}, null === (d = ky(u, t)) && (d = u[t]), !fy(d) && !dy(d)); p++) { - const n = e_(e, t, c, 0, f); + const p = "translate"; + for (let f = 0; f < l.length && (c = l[f], u = a[c] || {}, null === (d = Ay(u, t)) && (d = u[t]), !fy(d) && !py(d)); f++) { + const n = t_(e, t, c, 0, p); n !== t && (d = n) } return [d, c, u] - }(e, s, p, i), v = s; - if (u || fy(h) || u_(h) || f && (h = d, v = h), !(u || (fy(h) || u_(h)) && fy(m))) return r ? -1 : s; + }(e, s, f, i), v = s; + if (u || fy(h) || d_(h) || p && (h = d, v = h), !(u || (fy(h) || d_(h)) && fy(m))) return r ? -1 : s; let b = !1; - const y = u_(h) ? h : f_(e, s, m, h, v, (() => { + const y = d_(h) ? h : f_(e, s, m, h, v, (() => { b = !0 })); if (b) return h; const _ = function (e, t, n, o) { const {modifiers: r, pluralRules: i} = e, a = o => { - const r = ky(n, o); + const r = Ay(n, o); if (fy(r)) { let n = !1; const i = f_(e, o, t, r, o, (() => { n = !0 })); - return n ? c_ : i + return n ? u_ : i } - return u_(r) ? r : c_ + return d_(r) ? r : u_ }, s = {locale: t, modifiers: r, pluralRules: i, messages: a}; e.processor && (s.processor = e.processor); o.list && (s.list = o.list); o.named && (s.named = o.named); - ny(o.plural) && (s.pluralIndex = o.plural); + oy(o.plural) && (s.pluralIndex = o.plural); return s }(e, m, g, l), w = function (e, t, n) { return t(n) - }(0, y, Iy(_)); + }(0, y, My(_)); return o ? o(w) : w } function f_(e, t, n, o, r, i) { const {messageCompiler: a, warnHtmlMessage: s} = e; - if (u_(o)) { + if (d_(o)) { const e = o; return e.locale = e.locale || n, e.key = e.key || t, e } @@ -13213,56 +13213,56 @@ function f_(e, t, n, o, r, i) { return { warnHtmlMessage: r, onError: e => { throw i && i(e), e - }, onCacheKey: e => ((e, t, n) => ty({l: e, k: t, s: n}))(t, n, e) + }, onCacheKey: e => ((e, t, n) => ny({l: e, k: t, s: n}))(t, n, e) } }(0, n, r, 0, s, i)); return l.locale = n, l.key = t, l.source = o, l } -function p_(...e) { +function h_(...e) { const [t, n, o] = e, r = {}; - if (!fy(t) && !ny(t) && !u_(t)) throw l_(14); - const i = ny(t) ? String(t) : (u_(t), t); - return ny(n) ? r.plural = n : fy(n) ? r.default = n : vy(n) && !ry(n) ? r.named = n : uy(n) && (r.list = n), ny(o) ? r.plural = o : fy(o) ? r.default = o : vy(o) && ay(r, o), [i, r] + if (!fy(t) && !oy(t) && !d_(t)) throw c_(14); + const i = oy(t) ? String(t) : (d_(t), t); + return oy(n) ? r.plural = n : fy(n) ? r.default = n : by(n) && !iy(n) ? r.named = n : dy(n) && (r.list = n), oy(o) ? r.plural = o : fy(o) ? r.default = o : by(o) && sy(r, o), [i, r] } -function h_(e, ...t) { - const {datetimeFormats: n, unresolving: o, fallbackLocale: r, onWarn: i} = e, {__datetimeFormatters: a} = e, [s, l, c, u] = m_(...t); - py(c.missingWarn) ? c.missingWarn : e.missingWarn; - py(c.fallbackWarn) ? c.fallbackWarn : e.fallbackWarn; - const d = !!c.part, f = fy(c.locale) ? c.locale : e.locale, p = t_(e, r, f); - if (!fy(s) || "" === s) return new Intl.DateTimeFormat(f).format(l); +function m_(e, ...t) { + const {datetimeFormats: n, unresolving: o, fallbackLocale: r, onWarn: i} = e, {__datetimeFormatters: a} = e, [s, l, c, u] = g_(...t); + hy(c.missingWarn) ? c.missingWarn : e.missingWarn; + hy(c.fallbackWarn) ? c.fallbackWarn : e.fallbackWarn; + const d = !!c.part, p = fy(c.locale) ? c.locale : e.locale, f = n_(e, r, p); + if (!fy(s) || "" === s) return new Intl.DateTimeFormat(p).format(l); let h, m = {}, g = null; - for (let y = 0; y < p.length && (h = p[y], m = n[h] || {}, g = m[s], !vy(g)); y++) e_(e, s, h, 0, "datetime format"); - if (!vy(g) || !fy(h)) return o ? -1 : s; + for (let y = 0; y < f.length && (h = f[y], m = n[h] || {}, g = m[s], !by(g)); y++) t_(e, s, h, 0, "datetime format"); + if (!by(g) || !fy(h)) return o ? -1 : s; let v = `${h}__${s}`; - ry(u) || (v = `${v}__${JSON.stringify(u)}`); + iy(u) || (v = `${v}__${JSON.stringify(u)}`); let b = a.get(v); - return b || (b = new Intl.DateTimeFormat(h, ay({}, g, u)), a.set(v, b)), d ? b.formatToParts(l) : b.format(l) + return b || (b = new Intl.DateTimeFormat(h, sy({}, g, u)), a.set(v, b)), d ? b.formatToParts(l) : b.format(l) } -function m_(...e) { +function g_(...e) { const [t, n, o, r] = e; let i, a = {}, s = {}; if (fy(t)) { - if (!/\d{4}-\d{2}-\d{2}(T.*)?/.test(t)) throw l_(16); + if (!/\d{4}-\d{2}-\d{2}(T.*)?/.test(t)) throw c_(16); i = new Date(t); try { i.toISOString() } catch (l) { - throw l_(16) + throw c_(16) } - } else if ("[object Date]" === gy(t)) { - if (isNaN(t.getTime())) throw l_(15); + } else if ("[object Date]" === vy(t)) { + if (isNaN(t.getTime())) throw c_(15); i = t } else { - if (!ny(t)) throw l_(14); + if (!oy(t)) throw c_(14); i = t } - return fy(n) ? a.key = n : vy(n) && (a = n), fy(o) ? a.locale = o : vy(o) && (s = o), vy(r) && (s = r), [a.key || "", i, a, s] + return fy(n) ? a.key = n : by(n) && (a = n), fy(o) ? a.locale = o : by(o) && (s = o), by(r) && (s = r), [a.key || "", i, a, s] } -function g_(e, t, n) { +function v_(e, t, n) { const o = e; for (const r in n) { const e = `${t}__${r}`; @@ -13270,30 +13270,30 @@ function g_(e, t, n) { } } -function v_(e, ...t) { - const {numberFormats: n, unresolving: o, fallbackLocale: r, onWarn: i} = e, {__numberFormatters: a} = e, [s, l, c, u] = b_(...t); - py(c.missingWarn) ? c.missingWarn : e.missingWarn; - py(c.fallbackWarn) ? c.fallbackWarn : e.fallbackWarn; - const d = !!c.part, f = fy(c.locale) ? c.locale : e.locale, p = t_(e, r, f); - if (!fy(s) || "" === s) return new Intl.NumberFormat(f).format(l); +function b_(e, ...t) { + const {numberFormats: n, unresolving: o, fallbackLocale: r, onWarn: i} = e, {__numberFormatters: a} = e, [s, l, c, u] = y_(...t); + hy(c.missingWarn) ? c.missingWarn : e.missingWarn; + hy(c.fallbackWarn) ? c.fallbackWarn : e.fallbackWarn; + const d = !!c.part, p = fy(c.locale) ? c.locale : e.locale, f = n_(e, r, p); + if (!fy(s) || "" === s) return new Intl.NumberFormat(p).format(l); let h, m = {}, g = null; - for (let y = 0; y < p.length && (h = p[y], m = n[h] || {}, g = m[s], !vy(g)); y++) e_(e, s, h, 0, "number format"); - if (!vy(g) || !fy(h)) return o ? -1 : s; + for (let y = 0; y < f.length && (h = f[y], m = n[h] || {}, g = m[s], !by(g)); y++) t_(e, s, h, 0, "number format"); + if (!by(g) || !fy(h)) return o ? -1 : s; let v = `${h}__${s}`; - ry(u) || (v = `${v}__${JSON.stringify(u)}`); + iy(u) || (v = `${v}__${JSON.stringify(u)}`); let b = a.get(v); - return b || (b = new Intl.NumberFormat(h, ay({}, g, u)), a.set(v, b)), d ? b.formatToParts(l) : b.format(l) + return b || (b = new Intl.NumberFormat(h, sy({}, g, u)), a.set(v, b)), d ? b.formatToParts(l) : b.format(l) } -function b_(...e) { +function y_(...e) { const [t, n, o, r] = e; let i = {}, a = {}; - if (!ny(t)) throw l_(14); + if (!oy(t)) throw c_(14); const s = t; - return fy(n) ? i.key = n : vy(n) && (i = n), fy(o) ? i.locale = o : vy(o) && (a = o), vy(r) && (a = r), [i.key || "", s, i, a] + return fy(n) ? i.key = n : by(n) && (i = n), fy(o) ? i.locale = o : by(o) && (a = o), by(r) && (a = r), [i.key || "", s, i, a] } -function y_(e, t, n) { +function __(e, t, n) { const o = e; for (const r in n) { const e = `${t}__${r}`; @@ -13306,52 +13306,52 @@ function y_(e, t, n) { * (c) 2021 kazuya kawaguchi * Released under the MIT License. */ -function __(e, ...t) { - return My(e, null, void 0) +function w_(e, ...t) { + return Fy(e, null, void 0) } -const w_ = ey("__transrateVNode"), x_ = ey("__datetimeParts"), T_ = ey("__numberParts"); -ey("__enableEmitter"), ey("__disableEmitter"); -const S_ = ey("__setPluralRules"); -ey("__intlifyMeta"); -const E_ = ey("__injectWithOption"); -let k_ = 0; +const x_ = ty("__transrateVNode"), T_ = ty("__datetimeParts"), S_ = ty("__numberParts"); +ty("__enableEmitter"), ty("__disableEmitter"); +const E_ = ty("__setPluralRules"); +ty("__intlifyMeta"); +const k_ = ty("__injectWithOption"); +let A_ = 0; -function A_(e) { +function C_(e) { return (t, n, o, r) => e(n, o, ui() || void 0, r) } -function C_(e, t) { - const {messages: n, __i18n: o} = t, r = vy(n) ? n : uy(o) ? {} : {[e]: {}}; - if (uy(o) && o.forEach((({locale: e, resource: t}) => { - e ? (r[e] = r[e] || {}, P_(t, r[e])) : P_(t, r) - })), t.flatJson) for (const i in r) cy(r, i) && Ay(r[i]); +function B_(e, t) { + const {messages: n, __i18n: o} = t, r = by(n) ? n : dy(o) ? {} : {[e]: {}}; + if (dy(o) && o.forEach((({locale: e, resource: t}) => { + e ? (r[e] = r[e] || {}, L_(t, r[e])) : L_(t, r) + })), t.flatJson) for (const i in r) uy(r, i) && Cy(r[i]); return r } -const B_ = e => !hy(e) || uy(e); +const P_ = e => !my(e) || dy(e); -function P_(e, t) { - if (B_(e) || B_(t)) throw __(20); - for (const n in e) cy(e, n) && (B_(e[n]) || B_(t[n]) ? t[n] = e[n] : P_(e[n], t[n])) +function L_(e, t) { + if (P_(e) || P_(t)) throw w_(20); + for (const n in e) uy(e, n) && (P_(e[n]) || P_(t[n]) ? t[n] = e[n] : L_(e[n], t[n])) } -function L_(e = {}) { +function O_(e = {}) { const {__root: t} = e, n = void 0 === t; - let o = !py(e.inheritLocale) || e.inheritLocale; + let o = !hy(e.inheritLocale) || e.inheritLocale; const r = nn(t && o ? t.locale.value : fy(e.locale) ? e.locale : "en-US"), - i = nn(t && o ? t.fallbackLocale.value : fy(e.fallbackLocale) || uy(e.fallbackLocale) || vy(e.fallbackLocale) || !1 === e.fallbackLocale ? e.fallbackLocale : r.value), - a = nn(C_(r.value, e)), s = nn(vy(e.datetimeFormats) ? e.datetimeFormats : {[r.value]: {}}), - l = nn(vy(e.numberFormats) ? e.numberFormats : {[r.value]: {}}); - let c = t ? t.missingWarn : !py(e.missingWarn) && !oy(e.missingWarn) || e.missingWarn, - u = t ? t.fallbackWarn : !py(e.fallbackWarn) && !oy(e.fallbackWarn) || e.fallbackWarn, - d = t ? t.fallbackRoot : !py(e.fallbackRoot) || e.fallbackRoot, f = !!e.fallbackFormat, - p = dy(e.missing) ? e.missing : null, h = dy(e.missing) ? A_(e.missing) : null, - m = dy(e.postTranslation) ? e.postTranslation : null, g = !py(e.warnHtmlMessage) || e.warnHtmlMessage, + i = nn(t && o ? t.fallbackLocale.value : fy(e.fallbackLocale) || dy(e.fallbackLocale) || by(e.fallbackLocale) || !1 === e.fallbackLocale ? e.fallbackLocale : r.value), + a = nn(B_(r.value, e)), s = nn(by(e.datetimeFormats) ? e.datetimeFormats : {[r.value]: {}}), + l = nn(by(e.numberFormats) ? e.numberFormats : {[r.value]: {}}); + let c = t ? t.missingWarn : !hy(e.missingWarn) && !ry(e.missingWarn) || e.missingWarn, + u = t ? t.fallbackWarn : !hy(e.fallbackWarn) && !ry(e.fallbackWarn) || e.fallbackWarn, + d = t ? t.fallbackRoot : !hy(e.fallbackRoot) || e.fallbackRoot, p = !!e.fallbackFormat, + f = py(e.missing) ? e.missing : null, h = py(e.missing) ? C_(e.missing) : null, + m = py(e.postTranslation) ? e.postTranslation : null, g = !hy(e.warnHtmlMessage) || e.warnHtmlMessage, v = !!e.escapeParameter; - const b = t ? t.modifiers : vy(e.modifiers) ? e.modifiers : {}; + const b = t ? t.modifiers : by(e.modifiers) ? e.modifiers : {}; let y, _ = e.pluralRules || t && t.pluralRules; - y = Zy({ + y = e_({ version: "9.1.9", locale: r.value, fallbackLocale: i.value, @@ -13363,38 +13363,38 @@ function L_(e = {}) { missing: null === h ? void 0 : h, missingWarn: c, fallbackWarn: u, - fallbackFormat: f, + fallbackFormat: p, unresolving: !0, postTranslation: null === m ? void 0 : m, warnHtmlMessage: g, escapeParameter: v, - __datetimeFormatters: vy(y) ? y.__datetimeFormatters : void 0, - __numberFormatters: vy(y) ? y.__numberFormatters : void 0, - __v_emitter: vy(y) ? y.__v_emitter : void 0, + __datetimeFormatters: by(y) ? y.__datetimeFormatters : void 0, + __numberFormatters: by(y) ? y.__numberFormatters : void 0, + __v_emitter: by(y) ? y.__v_emitter : void 0, __meta: {framework: "vue"} - }), i_(y, r.value, i.value); + }), a_(y, r.value, i.value); const w = yi({ get: () => r.value, set: e => { r.value = e, y.locale = r.value } }), x = yi({ get: () => i.value, set: e => { - i.value = e, y.fallbackLocale = i.value, i_(y, r.value, e) + i.value = e, y.fallbackLocale = i.value, a_(y, r.value, e) } }), T = yi((() => a.value)), S = yi((() => s.value)), E = yi((() => l.value)); - function k(e, n, o, c, u, f) { - let p; - if (r.value, i.value, a.value, s.value, l.value, p = e(y), ny(p) && -1 === p) { + function k(e, n, o, c, u, p) { + let f; + if (r.value, i.value, a.value, s.value, l.value, f = e(y), oy(f) && -1 === f) { const [e, o] = n(); return t && d ? c(t) : u(e) } - if (f(p)) return p; - throw __(14) + if (p(f)) return f; + throw w_(14) } function A(...e) { - return k((t => d_(t, ...e)), (() => p_(...e)), 0, (t => t.t(...e)), (e => e), (e => fy(e))) + return k((t => p_(t, ...e)), (() => h_(...e)), 0, (t => t.t(...e)), (e => e), (e => fy(e))) } const C = { @@ -13407,16 +13407,16 @@ function L_(e = {}) { return a.value[e] || {} } - k_++, t && (Gn(t.locale, (e => { - o && (r.value = e, y.locale = e, i_(y, r.value, i.value)) + A_++, t && (Gn(t.locale, (e => { + o && (r.value = e, y.locale = e, a_(y, r.value, i.value)) })), Gn(t.fallbackLocale, (e => { - o && (i.value = e, y.fallbackLocale = e, i_(y, r.value, i.value)) + o && (i.value = e, y.fallbackLocale = e, a_(y, r.value, i.value)) }))); return { - id: k_, locale: w, fallbackLocale: x, get inheritLocale() { + id: A_, locale: w, fallbackLocale: x, get inheritLocale() { return o }, set inheritLocale(e) { - o = e, e && t && (r.value = t.locale.value, i.value = t.fallbackLocale.value, i_(y, r.value, i.value)) + o = e, e && t && (r.value = t.locale.value, i.value = t.fallbackLocale.value, a_(y, r.value, i.value)) }, get availableLocales() { return Object.keys(a.value).sort() }, messages: T, datetimeFormats: S, numberFormats: E, get modifiers() { @@ -13438,9 +13438,9 @@ function L_(e = {}) { }, set fallbackRoot(e) { d = e }, get fallbackFormat() { - return f + return p }, set fallbackFormat(e) { - f = e, y.fallbackFormat = f + p = e, y.fallbackFormat = p }, get warnHtmlMessage() { return g }, set warnHtmlMessage(e) { @@ -13451,20 +13451,20 @@ function L_(e = {}) { v = e, y.escapeParameter = e }, t: A, rt: function (...e) { const [t, n, o] = e; - if (o && !hy(o)) throw __(15); - return A(t, n, ay({resolvedMessage: !0}, o || {})) + if (o && !my(o)) throw w_(15); + return A(t, n, sy({resolvedMessage: !0}, o || {})) }, d: function (...e) { - return k((t => h_(t, ...e)), (() => m_(...e)), 0, (t => t.d(...e)), (() => ""), (e => fy(e))) + return k((t => m_(t, ...e)), (() => g_(...e)), 0, (t => t.d(...e)), (() => ""), (e => fy(e))) }, n: function (...e) { - return k((t => v_(t, ...e)), (() => b_(...e)), 0, (t => t.n(...e)), (() => ""), (e => fy(e))) + return k((t => b_(t, ...e)), (() => y_(...e)), 0, (t => t.n(...e)), (() => ""), (e => fy(e))) }, te: function (e, t) { - return null !== ky(B(fy(t) ? t : r.value), e) + return null !== Ay(B(fy(t) ? t : r.value), e) }, tm: function (e) { const n = function (e) { let t = null; - const n = t_(y, i.value, r.value); + const n = n_(y, i.value, r.value); for (let o = 0; o < n.length; o++) { - const r = ky(a.value[n[o]] || {}, e); + const r = Ay(a.value[n[o]] || {}, e); if (null != r) { t = r; break @@ -13476,66 +13476,66 @@ function L_(e = {}) { }, getLocaleMessage: B, setLocaleMessage: function (e, t) { a.value[e] = t, y.messages = a.value }, mergeLocaleMessage: function (e, t) { - a.value[e] = a.value[e] || {}, P_(t, a.value[e]), y.messages = a.value + a.value[e] = a.value[e] || {}, L_(t, a.value[e]), y.messages = a.value }, getDateTimeFormat: function (e) { return s.value[e] || {} }, setDateTimeFormat: function (e, t) { - s.value[e] = t, y.datetimeFormats = s.value, g_(y, e, t) + s.value[e] = t, y.datetimeFormats = s.value, v_(y, e, t) }, mergeDateTimeFormat: function (e, t) { - s.value[e] = ay(s.value[e] || {}, t), y.datetimeFormats = s.value, g_(y, e, t) + s.value[e] = sy(s.value[e] || {}, t), y.datetimeFormats = s.value, v_(y, e, t) }, getNumberFormat: function (e) { return l.value[e] || {} }, setNumberFormat: function (e, t) { - l.value[e] = t, y.numberFormats = l.value, y_(y, e, t) + l.value[e] = t, y.numberFormats = l.value, __(y, e, t) }, mergeNumberFormat: function (e, t) { - l.value[e] = ay(l.value[e] || {}, t), y.numberFormats = l.value, y_(y, e, t) + l.value[e] = sy(l.value[e] || {}, t), y.numberFormats = l.value, __(y, e, t) }, getPostTranslationHandler: function () { - return dy(m) ? m : null + return py(m) ? m : null }, setPostTranslationHandler: function (e) { m = e, y.postTranslation = e }, getMissingHandler: function () { - return p + return f }, setMissingHandler: function (e) { - null !== e && (h = A_(e)), p = e, y.missing = h - }, [w_]: function (...e) { + null !== e && (h = C_(e)), f = e, y.missing = h + }, [x_]: function (...e) { return k((t => { let n; const o = t; try { - o.processor = C, n = d_(o, ...e) + o.processor = C, n = p_(o, ...e) } finally { o.processor = null } return n - }), (() => p_(...e)), 0, (t => t[w_](...e)), (e => [Kr(Fr, null, e, 0)]), (e => uy(e))) + }), (() => h_(...e)), 0, (t => t[x_](...e)), (e => [Kr(Fr, null, e, 0)]), (e => dy(e))) + }, [S_]: function (...e) { + return k((t => b_(t, ...e)), (() => y_(...e)), 0, (t => t[S_](...e)), (() => []), (e => fy(e) || dy(e))) }, [T_]: function (...e) { - return k((t => v_(t, ...e)), (() => b_(...e)), 0, (t => t[T_](...e)), (() => []), (e => fy(e) || uy(e))) - }, [x_]: function (...e) { - return k((t => h_(t, ...e)), (() => m_(...e)), 0, (t => t[x_](...e)), (() => []), (e => fy(e) || uy(e))) - }, [S_]: function (e) { + return k((t => m_(t, ...e)), (() => g_(...e)), 0, (t => t[T_](...e)), (() => []), (e => fy(e) || dy(e))) + }, [E_]: function (e) { _ = e, y.pluralRules = _ - }, [E_]: e.__injectWithOption + }, [k_]: e.__injectWithOption } } -function O_(e = {}) { - const t = L_(function (e) { +function I_(e = {}) { + const t = O_(function (e) { const t = fy(e.locale) ? e.locale : "en-US", - n = fy(e.fallbackLocale) || uy(e.fallbackLocale) || vy(e.fallbackLocale) || !1 === e.fallbackLocale ? e.fallbackLocale : t, - o = dy(e.missing) ? e.missing : void 0, - r = !py(e.silentTranslationWarn) && !oy(e.silentTranslationWarn) || !e.silentTranslationWarn, - i = !py(e.silentFallbackWarn) && !oy(e.silentFallbackWarn) || !e.silentFallbackWarn, - a = !py(e.fallbackRoot) || e.fallbackRoot, s = !!e.formatFallbackMessages, - l = vy(e.modifiers) ? e.modifiers : {}, c = e.pluralizationRules, - u = dy(e.postTranslation) ? e.postTranslation : void 0, - d = !fy(e.warnHtmlInMessage) || "off" !== e.warnHtmlInMessage, f = !!e.escapeParameterHtml, - p = !py(e.sync) || e.sync; + n = fy(e.fallbackLocale) || dy(e.fallbackLocale) || by(e.fallbackLocale) || !1 === e.fallbackLocale ? e.fallbackLocale : t, + o = py(e.missing) ? e.missing : void 0, + r = !hy(e.silentTranslationWarn) && !ry(e.silentTranslationWarn) || !e.silentTranslationWarn, + i = !hy(e.silentFallbackWarn) && !ry(e.silentFallbackWarn) || !e.silentFallbackWarn, + a = !hy(e.fallbackRoot) || e.fallbackRoot, s = !!e.formatFallbackMessages, + l = by(e.modifiers) ? e.modifiers : {}, c = e.pluralizationRules, + u = py(e.postTranslation) ? e.postTranslation : void 0, + d = !fy(e.warnHtmlInMessage) || "off" !== e.warnHtmlInMessage, p = !!e.escapeParameterHtml, + f = !hy(e.sync) || e.sync; let h = e.messages; - if (vy(e.sharedMessages)) { + if (by(e.sharedMessages)) { const t = e.sharedMessages; h = Object.keys(t).reduce(((e, n) => { const o = e[n] || (e[n] = {}); - return ay(o, t[n]), e + return sy(o, t[n]), e }), h || {}) } const {__i18n: m, __root: g, __injectWithOption: v} = e, b = e.datetimeFormats, y = e.numberFormats; @@ -13555,8 +13555,8 @@ function O_(e = {}) { pluralRules: c, postTranslation: u, warnHtmlMessage: d, - escapeParameter: f, - inheritLocale: p, + escapeParameter: p, + inheritLocale: f, __i18n: m, __root: g, __injectWithOption: v @@ -13599,16 +13599,16 @@ function O_(e = {}) { t.setMissingHandler(e) }, get silentTranslationWarn() { - return py(t.missingWarn) ? !t.missingWarn : t.missingWarn + return hy(t.missingWarn) ? !t.missingWarn : t.missingWarn }, set silentTranslationWarn(e) { - t.missingWarn = py(e) ? !e : e + t.missingWarn = hy(e) ? !e : e }, get silentFallbackWarn() { - return py(t.fallbackWarn) ? !t.fallbackWarn : t.fallbackWarn + return hy(t.fallbackWarn) ? !t.fallbackWarn : t.fallbackWarn }, set silentFallbackWarn(e) { - t.fallbackWarn = py(e) ? !e : e + t.fallbackWarn = hy(e) ? !e : e }, get modifiers() { return t.modifiers @@ -13655,17 +13655,17 @@ function O_(e = {}) { t(...e) { const [n, o, r] = e, i = {}; let a = null, s = null; - if (!fy(n)) throw __(15); + if (!fy(n)) throw w_(15); const l = n; - return fy(o) ? i.locale = o : uy(o) ? a = o : vy(o) && (s = o), uy(r) ? a = r : vy(r) && (s = r), t.t(l, a || s || {}, i) + return fy(o) ? i.locale = o : dy(o) ? a = o : by(o) && (s = o), dy(r) ? a = r : by(r) && (s = r), t.t(l, a || s || {}, i) }, rt: (...e) => t.rt(...e), tc(...e) { const [n, o, r] = e, i = {plural: 1}; let a = null, s = null; - if (!fy(n)) throw __(15); + if (!fy(n)) throw w_(15); const l = n; - return fy(o) ? i.locale = o : ny(o) ? i.plural = o : uy(o) ? a = o : vy(o) && (s = o), fy(r) ? i.locale = r : uy(r) ? a = r : vy(r) && (s = r), t.t(l, a || s || {}, i) + return fy(o) ? i.locale = o : oy(o) ? i.plural = o : dy(o) ? a = o : by(o) && (s = o), fy(r) ? i.locale = r : dy(r) ? a = r : by(r) && (s = r), t.t(l, a || s || {}, i) }, te: (e, n) => t.te(e, n), tm: e => t.tm(e), @@ -13701,19 +13701,19 @@ function O_(e = {}) { return n } -const I_ = { +const M_ = { tag: {type: [String, Object]}, locale: {type: String}, scope: {type: String, validator: e => "parent" === e || "global" === e, default: "parent"}, i18n: {type: Object} -}, M_ = { +}, F_ = { name: "i18n-t", - props: ay({ + props: sy({ keypath: {type: String, required: !0}, - plural: {type: [Number, String], validator: e => ny(e) || !isNaN(e)} - }, I_), + plural: {type: [Number, String], validator: e => oy(e) || !isNaN(e)} + }, M_), setup(e, t) { - const {slots: n, attrs: o} = t, r = e.i18n || q_({useScope: e.scope, __useComponent: !0}), + const {slots: n, attrs: o} = t, r = e.i18n || V_({useScope: e.scope, __useComponent: !0}), i = Object.keys(n).filter((e => "_" !== e)); return () => { const n = {}; @@ -13723,51 +13723,51 @@ const I_ = { const o = e[n]; return o && (t[n] = o()), t }), {}) - }(t, i), s = r[w_](e.keypath, a, n), l = ay({}, o); - return fy(e.tag) || hy(e.tag) ? _i(e.tag, l, s) : _i(Mr, l, s) + }(t, i), s = r[x_](e.keypath, a, n), l = sy({}, o); + return fy(e.tag) || my(e.tag) ? _i(e.tag, l, s) : _i(Mr, l, s) } } }; -function F_(e, t, n, o) { +function j_(e, t, n, o) { const {slots: r, attrs: i} = t; return () => { const t = {part: !0}; let a = {}; - e.locale && (t.locale = e.locale), fy(e.format) ? t.key = e.format : hy(e.format) && (fy(e.format.key) && (t.key = e.format.key), a = Object.keys(e.format).reduce(((t, o) => n.includes(o) ? ay({}, t, {[o]: e.format[o]}) : t), {})); + e.locale && (t.locale = e.locale), fy(e.format) ? t.key = e.format : my(e.format) && (fy(e.format.key) && (t.key = e.format.key), a = Object.keys(e.format).reduce(((t, o) => n.includes(o) ? sy({}, t, {[o]: e.format[o]}) : t), {})); const s = o(e.value, t, a); let l = [t.key]; - uy(s) ? l = s.map(((e, t) => { + dy(s) ? l = s.map(((e, t) => { const n = r[e.type]; return n ? n({[e.type]: e.value, index: t, parts: s}) : [e.value] })) : fy(s) && (l = [s]); - const c = ay({}, i); - return fy(e.tag) || hy(e.tag) ? _i(e.tag, c, l) : _i(Mr, c, l) + const c = sy({}, i); + return fy(e.tag) || my(e.tag) ? _i(e.tag, c, l) : _i(Mr, c, l) } } -const j_ = ["localeMatcher", "style", "unit", "unitDisplay", "currency", "currencyDisplay", "useGrouping", "numberingSystem", "minimumIntegerDigits", "minimumFractionDigits", "maximumFractionDigits", "minimumSignificantDigits", "maximumSignificantDigits", "notation", "formatMatcher"], - R_ = { +const R_ = ["localeMatcher", "style", "unit", "unitDisplay", "currency", "currencyDisplay", "useGrouping", "numberingSystem", "minimumIntegerDigits", "minimumFractionDigits", "maximumFractionDigits", "minimumSignificantDigits", "maximumSignificantDigits", "notation", "formatMatcher"], + N_ = { name: "i18n-n", - props: ay({value: {type: Number, required: !0}, format: {type: [String, Object]}}, I_), + props: sy({value: {type: Number, required: !0}, format: {type: [String, Object]}}, M_), setup(e, t) { - const n = e.i18n || q_({useScope: "parent", __useComponent: !0}); - return F_(e, t, j_, ((...e) => n[T_](...e))) + const n = e.i18n || V_({useScope: "parent", __useComponent: !0}); + return j_(e, t, R_, ((...e) => n[S_](...e))) } }, - N_ = ["dateStyle", "timeStyle", "fractionalSecondDigits", "calendar", "dayPeriod", "numberingSystem", "localeMatcher", "timeZone", "hour12", "hourCycle", "formatMatcher", "weekday", "era", "year", "month", "day", "hour", "minute", "second", "timeZoneName"], - D_ = { + D_ = ["dateStyle", "timeStyle", "fractionalSecondDigits", "calendar", "dayPeriod", "numberingSystem", "localeMatcher", "timeZone", "hour12", "hourCycle", "formatMatcher", "weekday", "era", "year", "month", "day", "hour", "minute", "second", "timeZoneName"], + z_ = { name: "i18n-d", - props: ay({value: {type: [Number, Date], required: !0}, format: {type: [String, Object]}}, I_), + props: sy({value: {type: [Number, Date], required: !0}, format: {type: [String, Object]}}, M_), setup(e, t) { - const n = e.i18n || q_({useScope: "parent", __useComponent: !0}); - return F_(e, t, N_, ((...e) => n[x_](...e))) + const n = e.i18n || V_({useScope: "parent", __useComponent: !0}); + return j_(e, t, D_, ((...e) => n[T_](...e))) } }; -function z_(e) { +function H_(e) { const t = (t, {instance: n, value: o, modifiers: r}) => { - if (!n || !n.$) throw __(22); + if (!n || !n.$) throw w_(22); const i = function (e, t) { const n = e; if ("composition" === e.mode) return n.__getInstance(t) || e.global; @@ -13777,50 +13777,50 @@ function z_(e) { } }(e, n.$), a = function (e) { if (fy(e)) return {path: e}; - if (vy(e)) { - if (!("path" in e)) throw __(19); + if (by(e)) { + if (!("path" in e)) throw w_(19); return e } - throw __(20) + throw w_(20) }(o); t.textContent = i.t(...function (e) { const {path: t, locale: n, args: o, choice: r, plural: i} = e, a = {}, s = o || {}; fy(n) && (a.locale = n); - ny(r) && (a.plural = r); - ny(i) && (a.plural = i); + oy(r) && (a.plural = r); + oy(i) && (a.plural = i); return [t, s, a] }(a)) }; return {beforeMount: t, beforeUpdate: t} } -function H_(e, t) { - e.locale = t.locale || e.locale, e.fallbackLocale = t.fallbackLocale || e.fallbackLocale, e.missing = t.missing || e.missing, e.silentTranslationWarn = t.silentTranslationWarn || e.silentFallbackWarn, e.silentFallbackWarn = t.silentFallbackWarn || e.silentFallbackWarn, e.formatFallbackMessages = t.formatFallbackMessages || e.formatFallbackMessages, e.postTranslation = t.postTranslation || e.postTranslation, e.warnHtmlInMessage = t.warnHtmlInMessage || e.warnHtmlInMessage, e.escapeParameterHtml = t.escapeParameterHtml || e.escapeParameterHtml, e.sync = t.sync || e.sync, e.__composer[S_](t.pluralizationRules || e.pluralizationRules); - const n = C_(e.locale, {messages: t.messages, __i18n: t.__i18n}); +function q_(e, t) { + e.locale = t.locale || e.locale, e.fallbackLocale = t.fallbackLocale || e.fallbackLocale, e.missing = t.missing || e.missing, e.silentTranslationWarn = t.silentTranslationWarn || e.silentFallbackWarn, e.silentFallbackWarn = t.silentFallbackWarn || e.silentFallbackWarn, e.formatFallbackMessages = t.formatFallbackMessages || e.formatFallbackMessages, e.postTranslation = t.postTranslation || e.postTranslation, e.warnHtmlInMessage = t.warnHtmlInMessage || e.warnHtmlInMessage, e.escapeParameterHtml = t.escapeParameterHtml || e.escapeParameterHtml, e.sync = t.sync || e.sync, e.__composer[E_](t.pluralizationRules || e.pluralizationRules); + const n = B_(e.locale, {messages: t.messages, __i18n: t.__i18n}); return Object.keys(n).forEach((t => e.mergeLocaleMessage(t, n[t]))), t.datetimeFormats && Object.keys(t.datetimeFormats).forEach((n => e.mergeDateTimeFormat(n, t.datetimeFormats[n]))), t.numberFormats && Object.keys(t.numberFormats).forEach((n => e.mergeNumberFormat(n, t.numberFormats[n]))), e } -function q_(e = {}) { +function V_(e = {}) { const t = ui(); - if (null == t) throw __(16); - if (!t.appContext.app.__VUE_I18N_SYMBOL__) throw __(17); + if (null == t) throw w_(16); + if (!t.appContext.app.__VUE_I18N_SYMBOL__) throw w_(17); const n = Xn(t.appContext.app.__VUE_I18N_SYMBOL__); - if (!n) throw __(22); + if (!n) throw w_(22); const o = "composition" === n.mode ? n.global : n.global.__composer, - r = ry(e) ? "__i18n" in t.type ? "local" : "global" : e.useScope ? e.useScope : "local"; + r = iy(e) ? "__i18n" in t.type ? "local" : "global" : e.useScope ? e.useScope : "local"; if ("global" === r) { - let n = hy(e.messages) ? e.messages : {}; - "__i18nGlobal" in t.type && (n = C_(o.locale.value, {messages: n, __i18n: t.type.__i18nGlobal})); + let n = my(e.messages) ? e.messages : {}; + "__i18nGlobal" in t.type && (n = B_(o.locale.value, {messages: n, __i18n: t.type.__i18nGlobal})); const r = Object.keys(n); if (r.length && r.forEach((e => { o.mergeLocaleMessage(e, n[e]) - })), hy(e.datetimeFormats)) { + })), my(e.datetimeFormats)) { const t = Object.keys(e.datetimeFormats); t.length && t.forEach((t => { o.mergeDateTimeFormat(t, e.datetimeFormats[t]) })) } - if (hy(e.numberFormats)) { + if (my(e.numberFormats)) { const t = Object.keys(e.numberFormats); t.length && t.forEach((t => { o.mergeNumberFormat(t, e.numberFormats[t]) @@ -13837,7 +13837,7 @@ function q_(e = {}) { const t = e; if ("composition" === e.mode) o = t.__getInstance(i); else { const e = t.__getInstance(i); - null != e && (o = e.__composer), n && o && !o[E_] && (o = null) + null != e && (o = e.__composer), n && o && !o[k_] && (o = null) } if (null != o) break; if (r === i) break; @@ -13847,12 +13847,12 @@ function q_(e = {}) { }(n, t, e.__useComponent); return null == r && (r = o), r } - if ("legacy" === n.mode) throw __(18); + if ("legacy" === n.mode) throw w_(18); const i = n; let a = i.__getInstance(t); if (null == a) { - const n = t.type, r = ay({}, e); - n.__i18n && (r.__i18n = n.__i18n), o && (r.__root = o), a = L_(r), function (e, t, n) { + const n = t.type, r = sy({}, e); + n.__i18n && (r.__i18n = n.__i18n), o && (r.__root = o), a = O_(r), function (e, t, n) { Io((() => { }), t), Ro((() => { e.__deleteInstance(t) @@ -13862,21 +13862,21 @@ function q_(e = {}) { return a } -const V_ = ["locale", "fallbackLocale", "availableLocales"], W_ = ["t", "rt", "d", "n", "tm"]; -Gy = function (e, t = {}) { +const W_ = ["locale", "fallbackLocale", "availableLocales"], $_ = ["t", "rt", "d", "n", "tm"]; +Ky = function (e, t = {}) { { - const n = (t.onCacheKey || a_)(e), o = s_[n]; + const n = (t.onCacheKey || s_)(e), o = l_[n]; if (o) return o; let r = !1; - const i = t.onError || Fy; + const i = t.onError || jy; t.onError = e => { r = !0, i(e) }; - const {code: a} = Jy(e, t), s = new Function(`return ${a}`)(); - return r ? s : s_[n] = s + const {code: a} = Gy(e, t), s = new Function(`return ${a}`)(); + return r ? s : l_[n] = s } }; -const $_ = { +const Q_ = { orderInfo: "订单信息", confirmPay: "确认支付", payTitle: "确认付款", @@ -13888,7 +13888,7 @@ const $_ = { completePay: "已完成支付", incompletePay: "未完成支付", getting: "获取支付结果中" -}, Q_ = { +}, U_ = { requestFail: "请求失败", notInDomainList: "不在request 合法域名列表中", currency: "¥", @@ -13918,13 +13918,13 @@ const $_ = { register: "注册", complete: "完成", close: "关闭", - pay: $_, + pay: Q_, myBalance: "我的余额", myPoint: "我的积分", customerService: "联系客服", siteClose: "站点已关闭", noSite: "站点不存在" -}, U_ = Object.freeze(Object.defineProperty({ +}, X_ = Object.freeze(Object.defineProperty({ __proto__: null, balance: "余额", cancel: "取消", @@ -13936,7 +13936,7 @@ const $_ = { confirm: "确认", currency: "¥", customerService: "联系客服", - default: Q_, + default: U_, getAvatarNickname: "获取您的昵称头像", getAvatarNicknameTips: "获取用户头像、昵称完善个人资料,主要用于向用户提供具有辨识度的用户中心界面", getSmsCode: "获取验证码", @@ -13952,7 +13952,7 @@ const $_ = { nicknamePlaceholder: "请输入昵称", noSite: "站点不存在", notInDomainList: "不在request 合法域名列表中", - pay: $_, + pay: Q_, point: "积分", privacyAgreement: "隐私协议", register: "注册", @@ -13961,45 +13961,45 @@ const $_ = { siteClose: "站点已关闭", smsCodeChangeText: "秒后重新获取", userAgreement: "用户协议" -}, Symbol.toStringTag, {value: "Module"})), X_ = {index: "Index"}, Y_ = Object.freeze(Object.defineProperty({ +}, Symbol.toStringTag, {value: "Module"})), Y_ = {index: "Index"}, J_ = Object.freeze(Object.defineProperty({ __proto__: null, - default: X_, + default: Y_, index: "Index" }, Symbol.toStringTag, {value: "Module"})); -let J_ = function (e = {}) { - const t = !py(e.legacy) || e.legacy, n = !!e.globalInjection, o = new Map, r = t ? O_(e) : L_(e), i = ey(""), a = { +let G_ = function (e = {}) { + const t = !hy(e.legacy) || e.legacy, n = !!e.globalInjection, o = new Map, r = t ? I_(e) : O_(e), i = ty(""), a = { get mode() { return t ? "legacy" : "composition" }, async install(e, ...o) { e.__VUE_I18N_SYMBOL__ = i, e.provide(e.__VUE_I18N_SYMBOL__, a), !t && n && function (e, t) { const n = Object.create(null); - V_.forEach((e => { + W_.forEach((e => { const o = Object.getOwnPropertyDescriptor(t, e); - if (!o) throw __(22); + if (!o) throw w_(22); const r = tn(o.value) ? { get: () => o.value.value, set(e) { o.value.value = e } } : {get: () => o.get && o.get()}; Object.defineProperty(n, e, r) - })), e.config.globalProperties.$i18n = n, W_.forEach((n => { + })), e.config.globalProperties.$i18n = n, $_.forEach((n => { const o = Object.getOwnPropertyDescriptor(t, n); - if (!o || !o.value) throw __(22); + if (!o || !o.value) throw w_(22); Object.defineProperty(e.config.globalProperties, `$${n}`, o) })) }(e, a.global), function (e, t, ...n) { - const o = vy(n[0]) ? n[0] : {}, r = !!o.useI18nComponentName; - (!py(o.globalInstall) || o.globalInstall) && (e.component(r ? "i18n" : M_.name, M_), e.component(R_.name, R_), e.component(D_.name, D_)), e.directive("t", z_(t)) + const o = by(n[0]) ? n[0] : {}, r = !!o.useI18nComponentName; + (!hy(o.globalInstall) || o.globalInstall) && (e.component(r ? "i18n" : F_.name, F_), e.component(N_.name, N_), e.component(z_.name, z_)), e.directive("t", H_(t)) }(e, a, ...o), t && e.mixin(function (e, t, n) { return { beforeCreate() { const o = ui(); - if (!o) throw __(22); + if (!o) throw w_(22); const r = this.$options; if (r.i18n) { const n = r.i18n; - r.__i18n && (n.__i18n = r.__i18n), n.__root = t, this === this.$root ? this.$i18n = H_(e, n) : (n.__injectWithOption = !0, this.$i18n = O_(n)) - } else r.__i18n ? this === this.$root ? this.$i18n = H_(e, r) : this.$i18n = O_({ + r.__i18n && (n.__i18n = r.__i18n), n.__root = t, this === this.$root ? this.$i18n = q_(e, n) : (n.__injectWithOption = !0, this.$i18n = I_(n)) + } else r.__i18n ? this === this.$root ? this.$i18n = q_(e, r) : this.$i18n = I_({ __i18n: r.__i18n, __injectWithOption: !0, __root: t @@ -14008,7 +14008,7 @@ let J_ = function (e = {}) { }, mounted() { }, beforeUnmount() { const e = ui(); - if (!e) throw __(22); + if (!e) throw w_(22); delete this.$t, delete this.$rt, delete this.$tc, delete this.$te, delete this.$d, delete this.$n, delete this.$tm, n.__deleteInstance(e), delete this.$i18n } } @@ -14022,8 +14022,8 @@ let J_ = function (e = {}) { } }; return a -}({locale: Ud(), globalInjection: !0, messages: {"zh-Hans": Q_, en: X_}}); -const G_ = new class { +}({locale: Ud(), globalInjection: !0, messages: {"zh-Hans": U_, en: Y_}}); +const K_ = new class { constructor(e) { this.loadLocale = [], this.i18n = e } @@ -14043,9 +14043,9 @@ const G_ = new class { ("function" == typeof queueMicrotask ? queueMicrotask : setTimeout)(n.bind(null, new Error("Unknown variable dynamic import: " + t))) })) })(Object.assign({ - "./en/common.json": () => t((() => Promise.resolve().then((() => Y_))), void 0), + "./en/common.json": () => t((() => Promise.resolve().then((() => J_))), void 0), "./en/pages.setting.index.json": () => t((() => import("./locale-en-pages.setting.index.b1f97200.js")), []), - "./zh-Hans/common.json": () => t((() => Promise.resolve().then((() => U_))), void 0), + "./zh-Hans/common.json": () => t((() => Promise.resolve().then((() => X_))), void 0), "./zh-Hans/pages.article.detail.json": () => t((() => import("./locale-zh-Hans-pages.article.detail.0050a1c5.js")), []), "./zh-Hans/pages.article.list.json": () => t((() => import("./locale-zh-Hans-pages.article.list.5ad66381.js")), []), "./zh-Hans/pages.auth.bind.json": () => t((() => import("./locale-zh-Hans-pages.auth.bind.52381448.js")), []), @@ -14072,11 +14072,11 @@ const G_ = new class { return this.setI18nLanguage(n, e), kn() } } -}(J_), K_ = e => J_.global.t(e), Z_ = { +}(G_), Z_ = e => G_.global.t(e), ew = { install(e) { - e.use(J_) + e.use(G_) } -}, ew = { +}, tw = { pages: [{ path: "pages/index/index", style: {navigationBarTitleText: "%pages.index.index%", enablePullDownRefresh: !0} @@ -14182,8 +14182,8 @@ const G_ = new class { } }; -function tw() { - return "/" + ew.pages[0].path +function nw() { + return "/" + tw.pages[0].path } /*! @@ -14191,23 +14191,23 @@ function tw() { * (c) 2023 Eduardo San Martin Morote * @license MIT */ -let nw; -const ow = e => nw = e, rw = Symbol(); +let ow; +const rw = e => ow = e, iw = Symbol(); -function iw(e) { +function aw(e) { return e && "object" == typeof e && "[object Object]" === Object.prototype.toString.call(e) && "function" != typeof e.toJSON } -var aw, sw; -(sw = aw || (aw = {})).direct = "direct", sw.patchObject = "patch object", sw.patchFunction = "patch function"; -const lw = "undefined" != typeof window; +var sw, lw; +(lw = sw || (sw = {})).direct = "direct", lw.patchObject = "patch object", lw.patchFunction = "patch function"; +const cw = "undefined" != typeof window; -function cw() { +function uw() { const e = Fe(!0), t = e.run((() => nn({}))); let n = [], o = []; const r = Jt({ install(e) { - ow(r), r._a = e, e.provide(rw, r), e.config.globalProperties.$pinia = r, o.forEach((e => n.push(e))), o = [] + rw(r), r._a = e, e.provide(iw, r), e.config.globalProperties.$pinia = r, o.forEach((e => n.push(e))), o = [] }, use(e) { return this._a ? n.push(e) : o.push(e), this }, _p: n, _a: null, _e: e, _s: new Map, state: t @@ -14215,10 +14215,10 @@ function cw() { return r } -const uw = () => { +const dw = () => { }; -function dw(e, t, n, o = uw) { +function pw(e, t, n, o = dw) { e.push(t); const r = () => { const n = e.indexOf(t); @@ -14234,68 +14234,68 @@ function fw(e, ...t) { })) } -function pw(e, t) { +function hw(e, t) { e instanceof Map && t instanceof Map && t.forEach(((t, n) => e.set(n, t))), e instanceof Set && t instanceof Set && t.forEach(e.add, e); for (const n in t) { if (!t.hasOwnProperty(n)) continue; const o = t[n], r = e[n]; - iw(r) && iw(o) && e.hasOwnProperty(n) && !tn(o) && !$t(o) ? e[n] = pw(r, o) : e[n] = o + aw(r) && aw(o) && e.hasOwnProperty(n) && !tn(o) && !$t(o) ? e[n] = hw(r, o) : e[n] = o } return e } -const hw = Symbol(); -const {assign: mw} = Object; +const mw = Symbol(); +const {assign: gw} = Object; -function gw(e, t, n, o) { +function vw(e, t, n, o) { const {state: r, actions: i, getters: a} = t, s = n.state.value[e]; let l; - return l = vw(e, (function () { + return l = bw(e, (function () { s || (n.state.value[e] = r ? r() : {}); const t = function (e) { const t = C(e) ? new Array(e.length) : {}; for (const n in e) t[n] = dn(e, n); return t }(n.state.value[e]); - return mw(t, i, Object.keys(a || {}).reduce(((t, o) => (t[o] = Jt(yi((() => { - ow(n); + return gw(t, i, Object.keys(a || {}).reduce(((t, o) => (t[o] = Jt(yi((() => { + rw(n); const t = n._s.get(e); return a[o].call(t, t) }))), t)), {})) }), t, n, o, !0), l } -function vw(e, t, n = {}, o, r, i) { +function bw(e, t, n = {}, o, r, i) { let a; - const s = mw({actions: {}}, n), l = {deep: !0}; - let c, u, d, f = Jt([]), p = Jt([]); + const s = gw({actions: {}}, n), l = {deep: !0}; + let c, u, d, p = Jt([]), f = Jt([]); const h = o.state.value[e]; let m; function g(t) { let n; c = u = !1, "function" == typeof t ? (t(o.state.value[e]), n = { - type: aw.patchFunction, + type: sw.patchFunction, storeId: e, events: d - }) : (pw(o.state.value[e], t), n = {type: aw.patchObject, payload: t, storeId: e, events: d}); + }) : (hw(o.state.value[e], t), n = {type: sw.patchObject, payload: t, storeId: e, events: d}); const r = m = Symbol(); kn().then((() => { m === r && (c = !0) - })), u = !0, fw(f, n, o.state.value[e]) + })), u = !0, fw(p, n, o.state.value[e]) } i || h || (o.state.value[e] = {}), nn({}); const v = i ? function () { const {state: e} = n, t = e ? e() : {}; this.$patch((e => { - mw(e, t) + gw(e, t) })) - } : uw; + } : dw; function b(t, n) { return function () { - ow(o); + rw(o); const r = Array.from(arguments), i = [], a = []; function s(e) { @@ -14307,7 +14307,7 @@ function vw(e, t, n = {}, o, r, i) { } let c; - fw(p, {args: r, name: t, store: y, after: s, onError: l}); + fw(f, {args: r, name: t, store: y, after: s, onError: l}); try { c = n.apply(this && this.$id === e ? this : y, r) } catch (u) { @@ -14318,52 +14318,52 @@ function vw(e, t, n = {}, o, r, i) { } const y = qt({ - _p: o, $id: e, $onAction: dw.bind(null, p), $patch: g, $reset: v, $subscribe(t, n = {}) { - const r = dw(f, t, n.detached, (() => i())), i = a.run((() => Gn((() => o.state.value[e]), (o => { - ("sync" === n.flush ? u : c) && t({storeId: e, type: aw.direct, events: d}, o) - }), mw({}, l, n)))); + _p: o, $id: e, $onAction: pw.bind(null, f), $patch: g, $reset: v, $subscribe(t, n = {}) { + const r = pw(p, t, n.detached, (() => i())), i = a.run((() => Gn((() => o.state.value[e]), (o => { + ("sync" === n.flush ? u : c) && t({storeId: e, type: sw.direct, events: d}, o) + }), gw({}, l, n)))); return r }, $dispose: function () { - a.stop(), f = [], p = [], o._s.delete(e) + a.stop(), p = [], f = [], o._s.delete(e) } }); o._s.set(e, y); const _ = o._e.run((() => (a = Fe(), a.run((() => t()))))); for (const T in _) { const t = _[T]; - if (tn(t) && (!tn(x = t) || !x.effect) || $t(t)) i || (!h || iw(w = t) && w.hasOwnProperty(hw) || (tn(t) ? t.value = h[T] : pw(t, h[T])), o.state.value[e][T] = t); else if ("function" == typeof t) { + if (tn(t) && (!tn(x = t) || !x.effect) || $t(t)) i || (!h || aw(w = t) && w.hasOwnProperty(mw) || (tn(t) ? t.value = h[T] : hw(t, h[T])), o.state.value[e][T] = t); else if ("function" == typeof t) { const e = b(T, t); _[T] = e, s.actions[T] = t } } var w, x; - return mw(y, _), mw(Yt(y), _), Object.defineProperty(y, "$state", { + return gw(y, _), gw(Yt(y), _), Object.defineProperty(y, "$state", { get: () => o.state.value[e], set: e => { g((t => { - mw(t, e) + gw(t, e) })) } }), o._p.forEach((e => { - mw(y, a.run((() => e({store: y, app: o._a, pinia: o, options: s})))) + gw(y, a.run((() => e({store: y, app: o._a, pinia: o, options: s})))) })), h && i && n.hydrate && n.hydrate(y.$state, h), c = !0, u = !0, y } -function bw(e, t, n) { +function yw(e, t, n) { let o, r; const i = "function" == typeof t; function a(e, n) { const a = ui(); - (e = e || a && Xn(rw, null)) && ow(e), (e = nw)._s.has(o) || (i ? vw(o, t, r, e) : gw(o, r, e)); + (e = e || a && Xn(iw, null)) && rw(e), (e = ow)._s.has(o) || (i ? bw(o, t, r, e) : vw(o, r, e)); return e._s.get(o) } return "string" == typeof e ? (o = e, r = i ? n : t) : (r = e, o = e.id), a.$id = o, a } -let yw = "Store"; +let _w = "Store"; -function _w(e, t) { +function ww(e, t) { return Array.isArray(t) ? t.reduce(((t, n) => (t[n] = function () { return e(this.$pinia)[n] }, t)), {}) : Object.keys(t).reduce(((n, o) => (n[o] = function () { @@ -14372,10 +14372,10 @@ function _w(e, t) { }, n)), {}) } -const ww = _w; -const xw = Object.freeze(Object.defineProperty({ +const xw = ww; +const Tw = Object.freeze(Object.defineProperty({ __proto__: null, get MutationType() { - return aw + return sw }, PiniaVuePlugin: function (e) { e.mixin({ beforeCreate() { @@ -14386,7 +14386,7 @@ const xw = Object.freeze(Object.defineProperty({ const e = {}; Object.defineProperty(this, "_provided", {get: () => e, set: t => Object.assign(e, t)}) } - this._provided[rw] = t, this.$pinia || (this.$pinia = t), t._a = this, lw && ow(t) + this._provided[iw] = t, this.$pinia || (this.$pinia = t), t._a = this, cw && rw(t) } else !this.$pinia && e.parent && e.parent.$pinia && (this.$pinia = e.parent.$pinia) }, destroyed() { delete this._pStores @@ -14395,14 +14395,14 @@ const xw = Object.freeze(Object.defineProperty({ }, acceptHMRUpdate: function (e, t) { return () => { } - }, createPinia: cw, defineStore: bw, getActivePinia: () => ui() && Xn(rw) || nw, mapActions: function (e, t) { + }, createPinia: uw, defineStore: yw, getActivePinia: () => ui() && Xn(iw) || ow, mapActions: function (e, t) { return Array.isArray(t) ? t.reduce(((t, n) => (t[n] = function (...t) { return e(this.$pinia)[n](...t) }, t)), {}) : Object.keys(t).reduce(((n, o) => (n[o] = function (...n) { return e(this.$pinia)[t[o]](...n) }, n)), {}) - }, mapGetters: ww, mapState: _w, mapStores: function (...e) { - return e.reduce(((e, t) => (e[t.$id + yw] = function () { + }, mapGetters: xw, mapState: ww, mapStores: function (...e) { + return e.reduce(((e, t) => (e[t.$id + _w] = function () { return t(this.$pinia) }, e)), {}) }, mapWritableState: function (e, t) { @@ -14419,10 +14419,10 @@ const xw = Object.freeze(Object.defineProperty({ return e(this.$pinia)[t[o]] = n } }, n)), {}) - }, setActivePinia: ow, setMapStoreSuffix: function (e) { - yw = e + }, setActivePinia: rw, setMapStoreSuffix: function (e) { + _w = e }, skipHydrate: function (e) { - return Object.defineProperty(e, hw, {}) + return Object.defineProperty(e, mw, {}) }, storeToRefs: function (e) { { e = Yt(e); @@ -14434,9 +14434,10 @@ const xw = Object.freeze(Object.defineProperty({ return t } } -}, Symbol.toStringTag, {value: "Module"})), Tw = bw("diy", { +}, Symbol.toStringTag, {value: "Module"})), Sw = yw("diy", { state: () => ({ mode: "", + pageMode: "diy", currentIndex: -99, global: {title: "", pageBgColor: "", bottomTabBarSwitch: !0, bgUrl: ""}, value: [] @@ -14446,7 +14447,7 @@ const xw = Object.freeze(Object.defineProperty({ window.parent.postMessage(e, "*"), window.addEventListener("message", (e => { try { let t = JSON.parse(e.data); - this.currentIndex = t.currentIndex, t.global && (this.global = t.global), t.value && (this.value = t.value), this.value && this.value.forEach(((e, t) => { + this.currentIndex = t.currentIndex, this.pageMode = t.pageMode, t.global && (this.global = t.global), t.value && (this.value = t.value), this.value && this.value.forEach(((e, t) => { e.pageStyle = "", e.pageBgColor && (e.pageStyle += "background-color:" + e.pageBgColor + ";"), e.margin && (e.pageStyle += "padding-top:" + 2 * e.margin.top + "rpx;", e.pageStyle += "padding-bottom:" + 2 * e.margin.bottom + "rpx;", e.pageStyle += "padding-right:" + 2 * e.margin.both + "rpx;", e.pageStyle += "padding-left:" + 2 * e.margin.both + "rpx;") })) } catch (t) { @@ -14471,21 +14472,21 @@ const xw = Object.freeze(Object.defineProperty({ } } }); -const Sw = new class { +const Ew = new class { constructor() { this.config = { url: "", header: {} }, this.baseUrl = `${location.origin}/api/`, "/" != this.baseUrl.substr(-1) && (this.baseUrl += "/"); try { - this.config.header["site-id"] = ux(""), this.config.header.channel = sx() + this.config.header["site-id"] = dx(""), this.config.header.channel = lx() } catch (e) { } } requestInterceptors() { try { - nx() && (this.config.header.token = nx()), this.config.header.channel = sx(), this.config.header["site-id"] = ux("") + ox() && (this.config.header.token = ox()), this.config.header.channel = lx(), this.config.header["site-id"] = dx("") } catch (e) { } } @@ -14510,16 +14511,13 @@ const Sw = new class { this.requestInterceptors(); const o = Object.assign(uni.$u.deepClone(this.config), {url: this.baseUrl + e, ...t}); return new Promise(((e, t) => { - Tg({ + Sg({ ...o, success: n => { const o = JSON.parse(n.data); - 1 == o.code ? (this.config.showSuccessMessage && qg({ + 1 == o.code ? (this.config.showSuccessMessage && Vg({ title: o.msg, icon: "none" - }), e(o)) : (this.handleAuthError(o.code), this.config.showErrorMessage && qg({ - title: o.msg, - icon: "none" - }), t(o)) + }), e(o)) : (0 == o.code ? Vg({title: o.msg, icon: "none"}) : this.handleAuthError(o.code), t(o)) }, fail: e => { t(e) } @@ -14531,16 +14529,13 @@ const Sw = new class { this.requestInterceptors(); const o = Object.assign(uni.$u.deepClone(this.config), {url: this.baseUrl + t, method: e, data: n}); return new Promise(((e, t) => { - vg({ + bg({ ...o, success: n => { const o = n.data; - 1 == o.code ? (this.config.showSuccessMessage && qg({ + 1 == o.code ? (this.config.showSuccessMessage && Vg({ title: o.msg, icon: "none" - }), e(o)) : (this.handleAuthError(o.code), this.config.showErrorMessage && qg({ - title: o.msg, - icon: "none" - }), t(o)) + }), e(o)) : (0 == o.code ? Vg({title: o.msg, icon: "none"}) : this.handleAuthError(o.code), t(o)) }, fail: e => { t(e) }, complete: e => { @@ -14551,125 +14546,128 @@ const Sw = new class { } handleAuthError(e) { - if (401 === e) Gw().logout() + if (401 === e) Kw().logout() } handleRequestFail(e) { - e.errMsg && "request:ok" == e.errMsg && "string" == typeof e.data ? qg({ + e.errMsg && "request:ok" == e.errMsg && "string" == typeof e.data ? Vg({ icon: "none", - title: this.baseUrl + K_("requestFail") - }) : "request:fail" != e.errMsg ? e.errMsg && "request:fail url not in domain list" == e.errMsg && qg({ + title: this.baseUrl + Z_("requestFail") + }) : "request:fail" != e.errMsg ? e.errMsg && "request:fail url not in domain list" == e.errMsg && Vg({ icon: "none", - title: this.baseUrl + K_("notInDomainList") - }) : qg({icon: "none", title: this.baseUrl + K_("requestFail")}) + title: this.baseUrl + Z_("notInDomainList") + }) : Vg({icon: "none", title: this.baseUrl + Z_("requestFail")}) } }; -function Ew(e) { - return Sw.get("member/account/point", e) -} - function kw(e) { - return Sw.get("member/account/balance", e) + return Ew.get("member/account/point", e) } function Aw(e) { - return Sw.get("member/account/money", e) + return Ew.get("member/account/balance", e) } function Cw(e) { - return Sw.put(`member/modify/${e.field}`, e, {showErrorMessage: !0}) + return Ew.get("member/account/money", e) } function Bw(e) { - return Sw.post("order/recharge", e, {showErrorMessage: !0}) + return Ew.put(`member/modify/${e.field}`, e, {showErrorMessage: !0}) } function Pw(e) { - return Sw.get("order/recharge", e, {showErrorMessage: !0}) + return Ew.post("order/recharge", e, {showErrorMessage: !0}) } function Lw(e) { - return Sw.get(`order/recharge/${e}`, {}, {showErrorMessage: !0}) + return Ew.get("order/recharge", e, {showErrorMessage: !0}) } function Ow(e) { - return Sw.put("member/mobile", e, {showErrorMessage: !0}) + return Ew.get(`order/recharge/${e}`, {}, {showErrorMessage: !0}) } -function Iw() { - return Sw.get("member/cash_out/config") +function Iw(e) { + return Ew.put("member/mobile", e, {showErrorMessage: !0}) } -function Mw(e) { - return Sw.post("member/cash_out/apply", e, {showSuccessMessage: !0, showErrorMessage: !0}) +function Mw() { + return Ew.get("member/cash_out/config") } function Fw(e) { - return Sw.get(`member/cashout_account/${e.account_id}`, {}) + return Ew.post("member/cash_out/apply", e, {showSuccessMessage: !0, showErrorMessage: !0}) } function jw(e) { - return Sw.get("member/cashout_account/firstinfo", e) + return Ew.get(`member/cashout_account/${e.account_id}`, {}) } function Rw(e) { - return Sw.get("member/cashout_account", e) + return Ew.get("member/cashout_account/firstinfo", e) } function Nw(e) { - return Sw.get("member/cash_out", e) + return Ew.get("member/cashout_account", e) } function Dw(e) { - return Sw.get(`member/cash_out/${e}`) + return Ew.get("member/cash_out", e) } function zw(e) { - return Sw.post("member/cashout_account", e, {showSuccessMessage: !0, showErrorMessage: !0}) + return Ew.get(`member/cash_out/${e}`) } function Hw(e) { - return Sw.put(`member/cashout_account/${e.account_id}`, e, {showSuccessMessage: !0, showErrorMessage: !0}) + return Ew.post("member/cashout_account", e, {showSuccessMessage: !0, showErrorMessage: !0}) } function qw(e) { - return Sw.delete(`member/cashout_account/${e}`, {showSuccessMessage: !0, showErrorMessage: !0}) + return Ew.put(`member/cashout_account/${e.account_id}`, e, {showSuccessMessage: !0, showErrorMessage: !0}) } function Vw(e) { - return Sw.get("member/account/commission", e) + return Ew.delete(`member/cashout_account/${e}`, {showSuccessMessage: !0, showErrorMessage: !0}) } function Ww(e) { - return Sw.get("login", e, {showErrorMessage: !0}) + return Ew.get("member/account/commission", e) } function $w(e) { - return Sw.post("login/mobile", e, {showErrorMessage: !0}) + return Ew.get("login", e, {showErrorMessage: !0}) } function Qw(e) { - return Sw.post("register", e, {showErrorMessage: !0}) + return Ew.post("login/mobile", e, {showErrorMessage: !0}) } function Uw(e) { - return Sw.post("register/mobile", e, {showErrorMessage: !0}) + let t = "register"; + return e.pid && (t += `?pid=${e.pid}`), Ew.post(t, e, {showErrorMessage: !0}) } function Xw(e) { - return Sw.post("wechat/login", e) + let t = "register/mobile"; + return e.pid && (t += `?pid=${e.pid}`), Ew.post(t, e, {showErrorMessage: !0}) } function Yw(e) { - return Sw.post("bind", e, {showErrorMessage: !0}) + return Ew.post("wechat/login", e) } function Jw(e) { - return Sw.post("member/log", e, {showErrorMessage: !1}) + let t = "bind"; + return e.pid && (t += `?pid=${e.pid}`), Ew.post(t, e, {showErrorMessage: !0}) } -const Gw = bw("member", { +function Gw(e) { + return Ew.post("member/log", e, {showErrorMessage: !1}) +} + +const Kw = yw("member", { state: () => ({token: uni.getStorageSync("wapToken"), info: null}), actions: { async setToken(e) { @@ -14677,26 +14675,26 @@ const Gw = bw("member", { uni.setStorageSync("wapToken", e) }(e), await this.getMemberInfo() }, async getMemberInfo() { - this.token && await Sw.get("member/member").then((e => { + this.token && await Ew.get("member/member").then((e => { this.info = e.data })).catch((async () => { await this.logout() })) }, async logout(e = !1) { - this.token && await Sw.put("auth/logout").then((() => { - this.$reset(), ox(), e && Kw({url: "/pages/index/index"}) + this.token && await Ew.put("auth/logout").then((() => { + this.$reset(), rx(), e && Zw({url: "/pages/index/index"}) })).catch((() => { - this.$reset(), ox(), e && Kw({url: "/pages/index/index"}) + this.$reset(), rx(), e && Zw({url: "/pages/index/index"}) })) } } -}), Kw = e => { - if ("decorate" == Tw().mode) return; +}), Zw = e => { + if ("decorate" == Sw().mode) return; let {url: t, mode: n, param: o, success: r, fail: i, complete: a} = e; n = n || "navigateTo"; - switch (ew.tabBar.list.map((e => `/${e.pagePath}`)).includes(t) && (n = "switchTab"), "switchTab" != n && o && Object.keys(o).length && (t += uni.$u.queryParams(o)), n) { + switch (tw.tabBar.list.map((e => `/${e.pagePath}`)).includes(t) && (n = "switchTab"), "switchTab" != n && o && Object.keys(o).length && (t += uni.$u.queryParams(o)), n) { case"switchTab": - Pg({ + Lg({ url: t, success: () => { r && r() }, fail: () => { @@ -14707,7 +14705,7 @@ const Gw = bw("member", { }); break; case"navigateTo": - kg({ + Ag({ url: t, success: () => { r && r() }, fail: () => { @@ -14718,7 +14716,7 @@ const Gw = bw("member", { }); break; case"reLaunch": - Cg({ + Bg({ url: t, success: () => { r && r() }, fail: () => { @@ -14729,7 +14727,7 @@ const Gw = bw("member", { }); break; case"redirectTo": - Ag({ + Cg({ url: t, success: () => { r && r() }, fail: () => { @@ -14739,27 +14737,27 @@ const Gw = bw("member", { } }) } -}, Zw = e => { - "decorate" != Tw().mode && null != e && 1 != Object.keys(e).length && e.url && (-1 != e.url.indexOf("http") || -1 != e.url.indexOf("http") ? window.location.href = e.url : Kw({url: e.url})) -}, ex = () => { +}, ex = e => { + "decorate" != Sw().mode && null != e && 1 != Object.keys(e).length && e.url && (-1 != e.url.indexOf("http") || -1 != e.url.indexOf("http") ? window.location.href = e.url : Zw({url: e.url})) +}, tx = () => { const e = Hh(), t = e[e.length - 1]; return t ? t.route : "" -}, tx = () => { +}, nx = () => { const e = Hh(); let t = e[e.length - 1].route, n = e[e.length - 1].$page.options, o = {}; for (let r in n) o[r] = n[r]; return {path: "/" + t, params: o} }; -function nx() { - return Gw().token +function ox() { + return Kw().token } -function ox() { +function rx() { uni.removeStorageSync("wapToken") } -function rx(e) { +function ix(e) { const t = {}, [n, o] = e.split("?"); return o && o.split("&").forEach((e => { let [n, o] = e.split("="); @@ -14767,70 +14765,70 @@ function rx(e) { })), {path: n, query: t} } -function ix(e) { +function ax(e) { return -1 != (t = e).indexOf("http://") || -1 != t.indexOf("https://") ? e : `${location.origin}/${e}`; var t } -function ax() { +function sx() { let e = navigator.userAgent.toLowerCase(); return !!/micromessenger/.test(e) } -function sx() { - return ax() ? "wechat" : "h5" -} - -function lx(e) { - return isNaN(parseFloat(e)) ? e : parseFloat(e).toFixed(2) +function lx() { + return sx() ? "wechat" : "h5" } function cx(e) { - return e.substring(0, 3) + "****" + e.substr(e.length - 4) + return isNaN(parseFloat(e)) ? e : parseFloat(e).toFixed(2) } function ux(e) { + return e.substring(0, 3) + "****" + e.substr(e.length - 4) +} + +function dx(e) { const t = location.href.match(/\/wap\/(\d*)\//); return t ? t[1] : e } -function dx() { - return Sw.get("captcha", {}, {showErrorMessage: !0}) +function px() { + return Ew.get("captcha", {}, {showErrorMessage: !0}) } function fx(e) { - return Sw.post("wechat/sync", e) -} - -function px(e) { - return Sw.get(`agreement/${e}`) + return Ew.post("wechat/sync", e) } function hx(e) { - return Sw.post("password/reset", e, {showErrorMessage: !0}) + return Ew.get(`agreement/${e}`) } function mx(e) { - return Sw.post(`send/mobile/${e.type}`, e, {showErrorMessage: !0}) + return Ew.post("password/reset", e, {showErrorMessage: !0}) } function gx(e) { - return Sw.get("wechat/jssdkconfig", e) + return Ew.post(`send/mobile/${e.type}`, e, {showErrorMessage: !0}) } function vx(e) { - return Sw.upload("file/image", e, {showErrorMessage: !0}) + return Ew.get("wechat/jssdkconfig", e) } function bx(e) { - return Sw.get("diy/diy", e) + return Ew.upload("file/image", e, {showErrorMessage: !0}) } function yx(e) { - return Sw.get("diy/share", e) + return Ew.get("diy/diy", e) } -const _x = bw("config", { +function _x(e) { + return Ew.get("diy/share", e) +} + +const wx = yw("config", { state: () => ({ login: { is_username: 0, @@ -14841,12 +14839,12 @@ const _x = bw("config", { }, tabbar: null }), actions: { async getLoginConfig() { - await Sw.get("login/config").then((e => { + await Ew.get("login/config").then((e => { this.login.is_username = parseInt(e.data.is_username), this.login.is_mobile = parseInt(e.data.is_mobile), this.login.is_auth_register = parseInt(e.data.is_auth_register), this.login.is_bind_mobile = parseInt(e.data.is_bind_mobile), this.login.agreement_show = parseInt(e.data.agreement_show) })).catch((() => { })) }, async getTabbarConfig() { - await Sw.get("diy/tabbar").then((e => { + await Ew.get("diy/tabbar").then((e => { this.tabbar = e.data })).catch((() => { })) @@ -14854,74 +14852,74 @@ const _x = bw("config", { } }); -function wx() { +function xx() { return { setLoginBack: e => { uni.setStorage({key: "loginBack", data: e}), setTimeout((() => { - const e = _x(); - ax() && uni.getStorageSync("openid") && e.login.is_bind_mobile ? Kw({ + const e = wx(); + sx() && uni.getStorageSync("openid") && e.login.is_bind_mobile ? Zw({ url: "/pages/auth/bind", mode: "redirectTo" - }) : Kw({url: "/pages/auth/login", mode: "redirectTo"}) + }) : Zw({url: "/pages/auth/login", mode: "redirectTo"}) })) }, handleLoginBack: () => { uni.getStorage({ key: "loginBack", success: e => { - Kw(e ? e.data : {url: "/pages/index/index"}) + Zw(e ? e.data : {url: "/pages/index/index"}) }, fail: e => { - Kw({url: "/pages/index/index"}) + Zw({url: "/pages/index/index"}) } }) }, authLogin: e => { let t = null; - t = Xw, t({code: e}).then((e => { - e.data.token ? Gw().setToken(e.data.token) : uni.setStorageSync("openid", e.data.openid) + t = Yw, t({code: e}).then((e => { + e.data.token ? Kw().setToken(e.data.token) : uni.setStorageSync("openid", e.data.openid) })) }, getAuthCode: (e = "snsapi_base") => { - let t = `${location.origin}${location.pathname}`, n = rx(location.href).query; + let t = `${location.origin}${location.pathname}`, n = ix(location.href).query; var o; n.code && delete n.code, Object.keys(n).length && (t += uni.$u.queryParams(n)), (o = { url: t, scopes: e - }, Sw.get("wechat/codeurl", o)).then((e => { + }, Ew.get("wechat/codeurl", o)).then((e => { location.href = e.data.url })) } } } -const xx = wx(); +const Tx = xx(); -function Tx(e) { +function Sx(e) { (function () { const e = []; - return ew.pages.forEach((t => { + return tw.pages.forEach((t => { t.needLogin && e.push(`/${t.path}`) - })), ew.subPackages && ew.subPackages.forEach((t => { + })), tw.subPackages && tw.subPackages.forEach((t => { t.pages.forEach((n => { n.needLogin && e.push(`/${t.root}/${n.path}`) })) })), e - })().includes(e.path) && !nx() && setTimeout((() => { - xx.setLoginBack({url: e.path, param: e.query || {}}) + })().includes(e.path) && !ox() && setTimeout((() => { + Tx.setLoginBack({url: e.path, param: e.query || {}}) }), 100) } -const Sx = bw("system", { +const Ex = yw("system", { state: () => ({site: null}), actions: { async getSitenfo() { - await Sw.get("site").then((e => { - this.site = e.data, 3 == this.site.status && Kw({url: "/pages/index/close", mode: "reLaunch"}) + await Ew.get("site").then((e => { + this.site = e.data, 3 == this.site.status && Zw({url: "/pages/index/close", mode: "reLaunch"}) })).catch((e => { - Kw({url: "/pages/index/nosite", mode: "reLaunch"}) + Zw({url: "/pages/index/nosite", mode: "reLaunch"}) })) } } -}), Ex = fo({ - __name: "App", setup: e => (({}.VITE_APP_DEBUG && new window.VConsole, $b((async e => { +}), kx = po({ + __name: "App", setup: e => (({}.VITE_APP_DEBUG && new window.VConsole, Qb((async e => { (() => { const e = Jd(); - e.path = `/${e.path}`, G_.loadLocaleMessages(e.path, Ud()), Tx(e), e.query && e.query.mid && uni.setStorageSync("pid", e.query.mid), nx() && Jw({ + e.path = `/${e.path}`, K_.loadLocaleMessages(e.path, Ud()), Sx(e), e.query && e.query.mid && uni.setStorageSync("pid", e.query.mid), ox() && Gw({ route: e.path, params: JSON.stringify(e.query || {}), pre_route: "" @@ -14929,8 +14927,8 @@ const Sx = bw("system", { })(), ["navigateTo", "redirectTo", "reLaunch", "switchTab"].forEach((e => { yd(e, { invoke(e) { - const t = rx(e.url); - G_.loadLocaleMessages(t.path, Ud()), Tx(t), nx() && Jw({ + const t = ix(e.url); + K_.loadLocaleMessages(t.path, Ud()), Sx(t), ox() && Gw({ route: t.path, params: JSON.stringify(t.query), pre_route: Hh()[0].route @@ -14938,26 +14936,26 @@ const Sx = bw("system", { } }) })), "ios" == Dm().platform && uni.setStorageSync("initUrl", location.href); - const t = _x(); - if (t.getTabbarConfig(), await t.getLoginConfig(), Sx().getSitenfo(), tv(), nx()) { - const e = Gw(); - await e.setToken(nx()) + const t = wx(); + if (t.getTabbarConfig(), await t.getLoginConfig(), Ex().getSitenfo(), nv(), ox()) { + const e = Kw(); + await e.setToken(ox()) } - if (!nx()) { - const t = wx(); - ax() && (e.query.code ? t.authLogin(e.query.code) : t.getAuthCode("snsapi_userinfo")) + if (!ox()) { + const t = xx(); + sx() && (e.query.code ? t.authLogin(e.query.code) : t.getAuthCode("snsapi_userinfo")) } window.addEventListener("popstate", (function (e) { - const t = "/" + location.pathname.replace(Kb.h5.router.base, ""); - G_.loadLocaleMessages(t, Ud()) + const t = "/" + location.pathname.replace(Zb.h5.router.base, ""); + K_.loadLocaleMessages(t, Ud()) }), !1) - })), Vb((() => { })), Wb((() => { + })), $b((() => { })), () => { })) }); -hm(Ex, { - init: fm, setup(e) { +hm(kx, { + init: pm, setup(e) { const t = Ch(), n = () => { var n; n = e, Object.keys(Yd).forEach((e => { @@ -14966,7 +14964,7 @@ hm(Ex, { })) })); const {onLaunch: o, onShow: r, onPageNotFound: i, onError: a} = e, s = function ({path: e, query: t}) { - return S(Pf, {path: e, query: t}), S(Lf, Pf), S({}, Pf) + return S(Bp, {path: e, query: t}), S(Pp, Bp), S({}, Bp) }({path: t.path.slice(1) || __uniRoutes[0].meta.route, query: ye(t.query)}); if (o && J(o, s), r && J(r, s), !t.matched.length) { const e = {notFound: !0, openType: "appLaunch", path: t.path, query: {}, scene: 1001}; @@ -14996,14 +14994,14 @@ hm(Ex, { })), t.query }, before(e) { e.mpType = "app"; - const {setup: t} = e, n = () => (zr(), $r(uv)); + const {setup: t} = e, n = () => (zr(), $r(dv)); e.setup = (e, o) => { const r = t && t(e, o); return O(r) ? n : r }, e.render = n } }); -const kx = { +const Ax = { props: { customStyle: {type: [Object, String], default: () => ({})}, customClass: {type: String, default: ""}, @@ -15059,47 +15057,47 @@ const kx = { })) } } -}, Ax = {}, {toString: Cx} = Object.prototype; +}, Cx = {}, {toString: Bx} = Object.prototype; -function Bx(e) { - return "[object Array]" === Cx.call(e) +function Px(e) { + return "[object Array]" === Bx.call(e) } -function Px(e, t) { - if (null != e) if ("object" != typeof e && (e = [e]), Bx(e)) for (let n = 0, o = e.length; n < o; n++) t.call(null, e[n], n, e); else for (const n in e) Object.prototype.hasOwnProperty.call(e, n) && t.call(null, e[n], n, e) +function Lx(e, t) { + if (null != e) if ("object" != typeof e && (e = [e]), Px(e)) for (let n = 0, o = e.length; n < o; n++) t.call(null, e[n], n, e); else for (const n in e) Object.prototype.hasOwnProperty.call(e, n) && t.call(null, e[n], n, e) } -function Lx() { +function Ox() { const e = {}; function t(t, n) { - "object" == typeof e[n] && "object" == typeof t ? e[n] = Lx(e[n], t) : e[n] = "object" == typeof t ? Lx({}, t) : t + "object" == typeof e[n] && "object" == typeof t ? e[n] = Ox(e[n], t) : e[n] = "object" == typeof t ? Ox({}, t) : t } - for (let n = 0, o = arguments.length; n < o; n++) Px(arguments[n], t); + for (let n = 0, o = arguments.length; n < o; n++) Lx(arguments[n], t); return e } -function Ox(e) { +function Ix(e) { return void 0 === e } -function Ix(e) { +function Mx(e) { return encodeURIComponent(e).replace(/%40/gi, "@").replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]") } -function Mx(e, t) { +function Fx(e, t) { if (!t) return e; let n; if (o = t, "undefined" != typeof URLSearchParams && o instanceof URLSearchParams) n = t.toString(); else { const e = []; - Px(t, ((t, n) => { - null != t && (Bx(t) ? n = `${n}[]` : t = [t], Px(t, (t => { + Lx(t, ((t, n) => { + null != t && (Px(t) ? n = `${n}[]` : t = [t], Lx(t, (t => { !function (e) { - return "[object Date]" === Cx.call(e) + return "[object Date]" === Bx.call(e) }(t) ? function (e) { return null !== e && "object" == typeof e - }(t) && (t = JSON.stringify(t)) : t = t.toISOString(), e.push(`${Ix(n)}=${Ix(t)}`) + }(t) && (t = JSON.stringify(t)) : t = t.toISOString(), e.push(`${Mx(n)}=${Mx(t)}`) }))) })), n = e.join("&") } @@ -15111,13 +15109,13 @@ function Mx(e, t) { return e } -const Fx = (e, t) => { +const jx = (e, t) => { const n = {}; return e.forEach((e => { - Ox(t[e]) || (n[e] = t[e]) + Ix(t[e]) || (n[e] = t[e]) })), n -}, jx = e => (e => new Promise(((t, n) => { - const o = Mx((r = e.baseURL, i = e.url, r && !/^([a-z][a-z\d+\-.]*:)?\/\//i.test(i) ? function (e, t) { +}, Rx = e => (e => new Promise(((t, n) => { + const o = Fx((r = e.baseURL, i = e.url, r && !/^([a-z][a-z\d+\-.]*:)?\/\//i.test(i) ? function (e, t) { return t ? `${e.replace(/\/+$/, "")}/${t.replace(/^\/+/, "")}` : e }(r, i) : i), e.params); var r, i; @@ -15138,33 +15136,33 @@ const Fx = (e, t) => { if ("UPLOAD" === e.method) { delete a.header["content-type"], delete a.header["Content-Type"]; const t = {filePath: e.filePath, name: e.name}, n = ["files", "file", "timeout", "formData"]; - s = Tg({...a, ...t, ...Fx(n, e)}) - } else if ("DOWNLOAD" === e.method) Ox(e.timeout) || (a.timeout = e.timeout), s = wg(a); else { + s = Sg({...a, ...t, ...jx(n, e)}) + } else if ("DOWNLOAD" === e.method) Ix(e.timeout) || (a.timeout = e.timeout), s = xg(a); else { const t = ["data", "method", "timeout", "dataType", "responseType", "withCredentials"]; - s = vg({...a, ...Fx(t, e)}) + s = bg({...a, ...jx(t, e)}) } e.getTask && e.getTask(s, e) })))(e); -function Rx() { +function Nx() { this.handlers = [] } -Rx.prototype.use = function (e, t) { +Nx.prototype.use = function (e, t) { return this.handlers.push({fulfilled: e, rejected: t}), this.handlers.length - 1 -}, Rx.prototype.eject = function (e) { +}, Nx.prototype.eject = function (e) { this.handlers[e] && (this.handlers[e] = null) -}, Rx.prototype.forEach = function (e) { +}, Nx.prototype.forEach = function (e) { this.handlers.forEach((t => { null !== t && e(t) })) }; -const Nx = (e, t, n) => { +const Dx = (e, t, n) => { const o = {}; return e.forEach((e => { - Ox(n[e]) ? Ox(t[e]) || (o[e] = t[e]) : o[e] = n[e] + Ix(n[e]) ? Ix(t[e]) || (o[e] = t[e]) : o[e] = n[e] })), o -}, Dx = { +}, zx = { baseURL: "", header: {}, method: "GET", @@ -15177,7 +15175,7 @@ const Nx = (e, t, n) => { return e >= 200 && e < 300 } }; -var zx = function () { +var Hx = function () { function e(e, t) { return null != t && e instanceof t } @@ -15204,7 +15202,7 @@ var zx = function () { function r(i, s, l, c, u) { "object" == typeof s && (l = s.depth, c = s.prototype, u = s.includeNonEnumerable, s = s.circular); - var d = [], f = [], p = "undefined" != typeof Buffer; + var d = [], p = [], f = "undefined" != typeof Buffer; return void 0 === s && (s = !0), void 0 === l && (l = 1 / 0), function i(l, h) { if (null === l) return null; if (0 === h) return l; @@ -15217,13 +15215,13 @@ var zx = function () { t(i(e, h - 1)) })) })); else if (r.__isArray(l)) m = []; else if (r.__isRegExp(l)) m = new RegExp(l.source, a(l)), l.lastIndex && (m.lastIndex = l.lastIndex); else if (r.__isDate(l)) m = new Date(l.getTime()); else { - if (p && Buffer.isBuffer(l)) return Buffer.from ? m = Buffer.from(l) : (m = new Buffer(l.length), l.copy(m)), m; + if (f && Buffer.isBuffer(l)) return Buffer.from ? m = Buffer.from(l) : (m = new Buffer(l.length), l.copy(m)), m; e(l, Error) ? m = Object.create(l) : void 0 === c ? (g = Object.getPrototypeOf(l), m = Object.create(g)) : (m = Object.create(c), g = c) } if (s) { var v = d.indexOf(l); - if (-1 != v) return f[v]; - d.push(l), f.push(m) + if (-1 != v) return p[v]; + d.push(l), p.push(m) } for (var b in e(l, t) && l.forEach((function (e, t) { var n = i(t, h - 1), o = i(e, h - 1); @@ -15281,7 +15279,7 @@ var zx = function () { return "object" == typeof e && "[object RegExp]" === i(e) }, r.__getRegExpFlags = a, r }(); -const Hx = (new class { +const qx = (new class { constructor() { this.config = { type: "navigateTo", @@ -15315,15 +15313,15 @@ const Hx = (new class { openPage(e) { const {url: t, type: n, delta: o, animationType: r, animationDuration: i} = e; - "navigateTo" != e.type && "to" != e.type || kg({ + "navigateTo" != e.type && "to" != e.type || Ag({ url: t, animationType: r, animationDuration: i - }), "redirectTo" != e.type && "redirect" != e.type || Ag({url: t}), "switchTab" != e.type && "tab" != e.type || Pg({url: t}), "reLaunch" != e.type && "launch" != e.type || Cg({url: t}), "navigateBack" != e.type && "back" != e.type || Sg({delta: o}) + }), "redirectTo" != e.type && "redirect" != e.type || Cg({url: t}), "switchTab" != e.type && "tab" != e.type || Lg({url: t}), "reLaunch" != e.type && "launch" != e.type || Bg({url: t}), "navigateBack" != e.type && "back" != e.type || Eg({delta: o}) } }).route; -function qx(e, t = !0) { +function Vx(e, t = !0) { if ((e = String(e).toLowerCase()) && /^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/.test(e)) { if (4 === e.length) { let t = "#"; @@ -15340,7 +15338,7 @@ function qx(e, t = !0) { return e } -function Vx(e) { +function Wx(e) { const t = e; if (/^(rgb|RGB)/.test(t)) { const e = t.replace(/(?:\(|\)|rgb|RGB)*/g, "").split(","); @@ -15363,17 +15361,17 @@ function Vx(e) { } } -const Wx = { +const $x = { colorGradient: function (e = "rgb(0, 0, 0)", t = "rgb(255, 255, 255)", n = 10) { - const o = qx(e, !1), r = o[0], i = o[1], a = o[2], s = qx(t, !1), l = (s[0] - r) / n, c = (s[1] - i) / n, + const o = Vx(e, !1), r = o[0], i = o[1], a = o[2], s = Vx(t, !1), l = (s[0] - r) / n, c = (s[1] - i) / n, u = (s[2] - a) / n, d = []; - for (let f = 0; f < n; f++) { - let o = Vx(`rgb(${Math.round(l * f + r)},${Math.round(c * f + i)},${Math.round(u * f + a)})`); - 0 === f && (o = Vx(e)), f === n - 1 && (o = Vx(t)), d.push(o) + for (let p = 0; p < n; p++) { + let o = Wx(`rgb(${Math.round(l * p + r)},${Math.round(c * p + i)},${Math.round(u * p + a)})`); + 0 === p && (o = Wx(e)), p === n - 1 && (o = Wx(t)), d.push(o) } return d - }, hexToRgb: qx, rgbToHex: Vx, colorToRgba: function (e, t) { - e = Vx(e); + }, hexToRgb: Vx, rgbToHex: Wx, colorToRgba: function (e, t) { + e = Wx(e); let n = String(e).toLowerCase(); if (n && /^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/.test(n)) { if (4 === n.length) { @@ -15389,11 +15387,11 @@ const Wx = { } }; -function $x(e) { +function Qx(e) { return /^[\+-]?(\d+\.?\d*|\.\d+|\d\.\d+e\+\d+)$/.test(e) } -function Qx(e) { +function Ux(e) { switch (typeof e) { case"undefined": return !0; @@ -15414,15 +15412,15 @@ function Qx(e) { return !1 } -function Ux(e) { +function Xx(e) { return "[object Object]" === Object.prototype.toString.call(e) } -function Xx(e) { +function Yx(e) { return "function" == typeof e } -const Yx = { +const Jx = { email: function (e) { return /^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/.test(e) }, mobile: function (e) { @@ -15430,10 +15428,10 @@ const Yx = { }, url: function (e) { return /^((https|http|ftp|rtsp|mms):\/\/)(([0-9a-zA-Z_!~*'().&=+$%-]+: )?[0-9a-zA-Z_!~*'().&=+$%-]+@)?(([0-9]{1,3}.){3}[0-9]{1,3}|([0-9a-zA-Z_!~*'()-]+.)*([0-9a-zA-Z][0-9a-zA-Z-]{0,61})?[0-9a-zA-Z].[a-zA-Z]{2,6})(:[0-9]{1,4})?((\/?)|(\/[0-9a-zA-Z_!~*'().;?:@&=+$,%#-]+)+\/?)$/.test(e) }, date: function (e) { - return !!e && ($x(e) && (e = +e), !/Invalid|NaN/.test(new Date(e).toString())) + return !!e && (Qx(e) && (e = +e), !/Invalid|NaN/.test(new Date(e).toString())) }, dateISO: function (e) { return /^\d{4}[\/\-](0?[1-9]|1[012])[\/\-](0?[1-9]|[12][0-9]|3[01])$/.test(e) - }, number: $x, digits: function (e) { + }, number: Qx, digits: function (e) { return /^\d+$/.test(e) }, idCard: function (e) { return /^[1-9]\d{5}[1-9]\d{3}((0\d)|(1[0-2]))(([0|1|2]\d)|3[0-1])\d{3}([0-9]|X)$/.test(e) @@ -15455,7 +15453,7 @@ const Yx = { return e >= t[0] && e <= t[1] }, rangeLength: function (e, t) { return e.length >= t[0] && e.length <= t[1] - }, empty: Qx, isEmpty: Qx, jsonString: function (e) { + }, empty: Ux, isEmpty: Ux, jsonString: function (e) { if ("string" == typeof e) try { const t = JSON.parse(e); return !("object" != typeof t || !t) @@ -15465,12 +15463,12 @@ const Yx = { return !1 }, landline: function (e) { return /^\d{3,4}-\d{7,8}(-\d{3,4})?$/.test(e) - }, object: Ux, array: function (e) { + }, object: Xx, array: function (e) { return "function" == typeof Array.isArray ? Array.isArray(e) : "[object Array]" === Object.prototype.toString.call(e) }, code: function (e, t = 6) { return new RegExp(`^\\d{${t}}$`).test(e) - }, func: Xx, promise: function (e) { - return Ux(e) && Xx(e.then) && Xx(e.catch) + }, func: Yx, promise: function (e) { + return Xx(e) && Yx(e.then) && Yx(e.catch) }, video: function (e) { return /\.(mp4|mpg|mpeg|dat|asf|avi|rm|rmvb|mov|wmv|flv|mkv|m3u8)/i.test(e) }, image: function (e) { @@ -15482,28 +15480,28 @@ const Yx = { return "string" == typeof e } }; -let Jx, Gx = null; +let Gx, Kx = null; -function Kx(e, t = 15) { +function Zx(e, t = 15) { return +parseFloat(Number(e).toPrecision(t)) } -function Zx(e) { +function eT(e) { const t = e.toString().split(/[eE]/), n = (t[0].split(".")[1] || "").length - +(t[1] || 0); return n > 0 ? n : 0 } -function eT(e) { +function tT(e) { if (-1 === e.toString().indexOf("e")) return Number(e.toString().replace(".", "")); - const t = Zx(e); - return t > 0 ? Kx(Number(e) * Math.pow(10, t)) : Number(e) + const t = eT(e); + return t > 0 ? Zx(Number(e) * Math.pow(10, t)) : Number(e) } -function tT(e) { +function nT(e) { (e > Number.MAX_SAFE_INTEGER || e < Number.MIN_SAFE_INTEGER) && console.warn(`${e} 超出了精度限制,结果可能不正确`) } -function nT(e, t) { +function oT(e, t) { const [n, o, ...r] = e; let i = t(n, o); return r.forEach((e => { @@ -15511,27 +15509,27 @@ function nT(e, t) { })), i } -function oT(...e) { - if (e.length > 2) return nT(e, oT); - const [t, n] = e, o = eT(t), r = eT(n), i = Zx(t) + Zx(n), a = o * r; - return tT(a), a / Math.pow(10, i) -} - function rT(...e) { - if (e.length > 2) return nT(e, rT); - const [t, n] = e, o = eT(t), r = eT(n); - return tT(o), tT(r), oT(o / r, Kx(Math.pow(10, Zx(n) - Zx(t)))) + if (e.length > 2) return oT(e, rT); + const [t, n] = e, o = tT(t), r = tT(n), i = eT(t) + eT(n), a = o * r; + return nT(a), a / Math.pow(10, i) } -function iT(e) { +function iT(...e) { + if (e.length > 2) return oT(e, iT); + const [t, n] = e, o = tT(t), r = tT(n); + return nT(o), nT(r), rT(o / r, Zx(Math.pow(10, eT(n) - eT(t)))) +} + +function aT(e) { if ([null, void 0, NaN, !1].includes(e)) return e; if ("object" != typeof e && "function" != typeof e) return e; - const t = Yx.array(e) ? [] : {}; - for (const n in e) e.hasOwnProperty(n) && (t[n] = "object" == typeof e[n] ? iT(e[n]) : e[n]); + const t = Jx.array(e) ? [] : {}; + for (const n in e) e.hasOwnProperty(n) && (t[n] = "object" == typeof e[n] ? aT(e[n]) : e[n]); return t } -function aT(e = null, t = "yyyy-mm-dd") { +function sT(e = null, t = "yyyy-mm-dd") { let n; n = e ? /^\d{10}$/.test(e.toString().trim()) ? new Date(1e3 * e) : "string" == typeof e && /^\d+$/.test(e.trim()) ? new Date(Number(e)) : new Date("string" == typeof e ? e.replace(/-/g, "/") : e) : new Date; const o = { @@ -15552,7 +15550,7 @@ function aT(e = null, t = "yyyy-mm-dd") { return t } -function sT(e, t = "both") { +function lT(e, t = "both") { return e = String(e), "both" == t ? e.replace(/^\s+|\s+$/g, "") : "left" == t ? e.replace(/^\s*/, "") : "right" == t ? e.replace(/(\s*$)/g, "") : "all" == t ? e.replace(/\s+/g, "") : e } @@ -15565,11 +15563,11 @@ String.prototype.padStart || (String.prototype.padStart = function (e, t = " ") for (; r >>= 1;) t += t, 1 === r && (t += t); return t.slice(0, o) + n }); -const lT = { +const cT = { range: function (e = 0, t = 0, n = 0) { return Math.max(e, Math.min(t, Number(n))) }, getPx: function (e, t = !1) { - return Yx.number(e) ? t ? `${e}px` : Number(e) : /(rpx|upx)$/.test(e) ? t ? `${vd(parseInt(e))}px` : Number(vd(parseInt(e))) : t ? `${parseInt(e)}px` : parseInt(e) + return Jx.number(e) ? t ? `${e}px` : Number(e) : /(rpx|upx)$/.test(e) ? t ? `${vd(parseInt(e))}px` : Number(vd(parseInt(e))) : t ? `${parseInt(e)}px` : parseInt(e) }, sleep: function (e = 30) { return new Promise((t => { setTimeout((() => { @@ -15602,12 +15600,12 @@ const lT = { } return !1 }, addStyle: function (e, t = "object") { - if (Yx.empty(e) || "object" == typeof e && "object" === t || "string" === t && "string" == typeof e) return e; + if (Jx.empty(e) || "object" == typeof e && "object" === t || "string" === t && "string" == typeof e) return e; if ("object" === t) { - const t = (e = sT(e)).split(";"), n = {}; + const t = (e = lT(e)).split(";"), n = {}; for (let e = 0; e < t.length; e++) if (t[e]) { const o = t[e].split(":"); - n[sT(o[0])] = sT(o[1]) + n[lT(o[0])] = lT(o[1]) } return n } @@ -15615,17 +15613,17 @@ const lT = { for (const o in e) { n += `${o.replace(/([A-Z])/g, "-$1").toLowerCase()}:${e[o]};` } - return sT(n) + return lT(n) }, addUnit: function (e = "auto", t = "") { - return t || (t = uni.$u.config.unit || "px"), e = String(e), Yx.number(e) ? `${e}${t}` : e - }, deepClone: iT, deepMerge: function e(t = {}, n = {}) { - if ("object" != typeof (t = iT(t)) || "object" != typeof n) return !1; + return t || (t = uni.$u.config.unit || "px"), e = String(e), Jx.number(e) ? `${e}${t}` : e + }, deepClone: aT, deepMerge: function e(t = {}, n = {}) { + if ("object" != typeof (t = aT(t)) || "object" != typeof n) return !1; for (const o in n) n.hasOwnProperty(o) && (o in t ? "object" != typeof t[o] || "object" != typeof n[o] ? t[o] = n[o] : t[o].concat && n[o].concat ? t[o] = t[o].concat(n[o]) : t[o] = e(t[o], n[o]) : t[o] = n[o]); return t }, error: function (e) { }, randomArray: function (e = []) { return e.sort((() => Math.random() - .5)) - }, timeFormat: aT, timeFrom: function (e = null, t = "yyyy-mm-dd") { + }, timeFormat: sT, timeFrom: function (e = null, t = "yyyy-mm-dd") { null == e && (e = Number(new Date)), 10 == (e = parseInt(e)).toString().length && (e *= 1e3); let n = (new Date).getTime() - e; n = parseInt(n / 1e3); @@ -15644,10 +15642,10 @@ const lT = { o = `${parseInt(n / 86400)}天前`; break; default: - o = !1 === t ? n >= 2592e3 && n < 31536e3 ? `${parseInt(n / 2592e3)}个月前` : `${parseInt(n / 31536e3)}年前` : aT(e, t) + o = !1 === t ? n >= 2592e3 && n < 31536e3 ? `${parseInt(n / 2592e3)}个月前` : `${parseInt(n / 31536e3)}年前` : sT(e, t) } return o - }, trim: sT, queryParams: function (e = {}, t = !0, n = "brackets") { + }, trim: lT, queryParams: function (e = {}, t = !0, n = "brackets") { const o = t ? "?" : "", r = []; -1 == ["indices", "brackets", "repeat", "comma"].indexOf(n) && (n = "brackets"); for (const i in e) { @@ -15676,7 +15674,7 @@ const lT = { } return r.length ? o + r.join("&") : "" }, toast: function (e, t = 2e3) { - qg({title: String(e), icon: "none", duration: t}) + Vg({title: String(e), icon: "none", duration: t}) }, type2icon: function (e = "success", t = !1) { -1 == ["primary", "info", "error", "warning", "success"].indexOf(e) && (e = "success"); let n = ""; @@ -15702,8 +15700,8 @@ const lT = { let l = ""; l = (i ? function (e, t) { const n = Math.pow(10, t); - let o = rT(Math.round(Math.abs(oT(e, n))), n); - return e < 0 && 0 !== o && (o = oT(o, -1)), o + let o = iT(Math.round(Math.abs(rT(e, n))), n); + return e < 0 && 0 !== o && (o = rT(o, -1)), o }(r, i) + "" : `${Math.round(r)}`).split("."); const c = /(-?\d+)(\d{3})/; for (; c.test(l[0]);) l[0] = l[0].replace(c, `$1${a}$2`); @@ -15749,7 +15747,7 @@ const lT = { const {deepMerge: r} = uni.$u; uni.$u.config = r(uni.$u.config, t), uni.$u.props = r(uni.$u.props, e), uni.$u.color = r(uni.$u.color, n), uni.$u.zIndex = r(uni.$u.zIndex, o) } -}, cT = { +}, uT = { v: "3", version: "3", type: ["primary", "success", "info", "error", "warning"], @@ -15765,7 +15763,7 @@ const lT = { "u-light-color": "#c0c4cc" }, unit: "px" -}, uT = { +}, dT = { calendar: { title: "日期选择", showTitle: !0, @@ -15796,7 +15794,7 @@ const lT = { round: 0, monthNum: 3 } -}, dT = { +}, pT = { datetimePicker: { show: !1, showToolbar: !0, @@ -15821,7 +15819,7 @@ const lT = { closeOnClickOverlay: !1, defaultIndex: () => [] } -}, {color: fT} = cT, pT = { +}, {color: fT} = uT, hT = { icon: { name: "", color: fT["u-content-color"], @@ -15841,9 +15839,9 @@ const lT = { top: 0, stop: !1 } -}, {color: hT} = cT, mT = { +}, {color: mT} = uT, gT = { link: { - color: hT["u-primary"], + color: mT["u-primary"], fontSize: 15, underLine: !1, href: "", @@ -15851,7 +15849,7 @@ const lT = { lineColor: "", text: "" } -}, {color: gT} = cT, vT = { +}, {color: vT} = uT, bT = { primary: "#3c9cff", info: "#909399", default: "#909399", @@ -15863,7 +15861,7 @@ const lT = { tipsColor: "#909399", lightColor: "#c0c4cc", borderColor: "#e4e7ed" -}, bT = { +}, yT = { actionSheet: { show: !1, title: "", @@ -15983,7 +15981,7 @@ const lT = { icon: "", iconColor: "", color: "" - }, ...uT, + }, ...dT, carKeyboard: {random: !1}, cell: { customClass: "", @@ -16100,7 +16098,7 @@ const lT = { fontSize: 22, bold: !1, separator: "" - }, ...dT, + }, ...pT, divider: { dashed: !1, hairline: !0, @@ -16146,7 +16144,7 @@ const lT = { }, gap: {bgColor: "transparent", height: 20, marginTop: 0, marginBottom: 0, customStyle: {}}, grid: {col: 3, border: !1, align: "left"}, - gridItem: {name: null, bgColor: "transparent"}, ...pT, + gridItem: {name: null, bgColor: "transparent"}, ...hT, image: { src: "", mode: "aspectFill", @@ -16222,7 +16220,7 @@ const lT = { autoChange: !1 }, line: {color: "#d6d7d9", length: "100%", direction: "row", hairline: !0, margin: 0, dashed: !1}, - lineProgress: {activeColor: "#19be6b", inactiveColor: "#ececec", percentage: 0, showText: !0, height: 12}, ...mT, + lineProgress: {activeColor: "#19be6b", inactiveColor: "#ececec", percentage: 0, showText: !0, height: 12}, ...gT, list: { showScrollbar: !1, lowerThreshold: 50, @@ -16242,8 +16240,8 @@ const lT = { listItem: {anchor: ""}, ...{ loadingIcon: { show: !0, - color: gT["u-tips-color"], - textColor: gT["u-tips-color"], + color: vT["u-tips-color"], + textColor: vT["u-tips-color"], vertical: !1, mode: "spinner", size: 24, @@ -16317,7 +16315,7 @@ const lT = { titleWidth: "400rpx", height: "44px", leftIconSize: 20, - leftIconColor: vT.mainColor, + leftIconColor: bT.mainColor, autoBack: !1, titleStyle: "" } @@ -16779,23 +16777,23 @@ const lT = { } } }; -let yT = "none"; -yT = "vue3", yT = "h5"; -const _T = { - route: Hx, - date: lT.timeFormat, - colorGradient: Wx.colorGradient, - hexToRgb: Wx.hexToRgb, - rgbToHex: Wx.rgbToHex, - colorToRgba: Wx.colorToRgba, - test: Yx, +let _T = "none"; +_T = "vue3", _T = "h5"; +const wT = { + route: qx, + date: cT.timeFormat, + colorGradient: $x.colorGradient, + hexToRgb: $x.hexToRgb, + rgbToHex: $x.rgbToHex, + colorToRgba: $x.colorToRgba, + test: Jx, type: ["primary", "success", "error", "warning", "info"], http: new class { constructor(e = {}) { var t; - t = e, "[object Object]" !== Object.prototype.toString.call(t) && (e = {}, console.warn("设置全局参数必须接收一个Object")), this.config = zx({...Dx, ...e}), this.interceptors = { - request: new Rx, - response: new Rx + t = e, "[object Object]" !== Object.prototype.toString.call(t) && (e = {}, console.warn("设置全局参数必须接收一个Object")), this.config = Hx({...zx, ...e}), this.interceptors = { + request: new Nx, + response: new Nx } } @@ -16812,17 +16810,17 @@ const _T = { url: t.url || "", params: t.params || {}, custom: {...e.custom || {}, ...t.custom || {}}, - header: Lx(e.header || {}, t.header || {}) + header: Ox(e.header || {}, t.header || {}) }; - if (o = {...o, ...Nx(["getTask", "validateStatus"], e, t)}, "DOWNLOAD" === n) Ox(t.timeout) ? Ox(e.timeout) || (o.timeout = e.timeout) : o.timeout = t.timeout; else if ("UPLOAD" === n) delete o.header["content-type"], delete o.header["Content-Type"], ["files", "file", "filePath", "name", "timeout", "formData"].forEach((e => { - Ox(t[e]) || (o[e] = t[e]) - })), Ox(o.timeout) && !Ox(e.timeout) && (o.timeout = e.timeout); else { + if (o = {...o, ...Dx(["getTask", "validateStatus"], e, t)}, "DOWNLOAD" === n) Ix(t.timeout) ? Ix(e.timeout) || (o.timeout = e.timeout) : o.timeout = t.timeout; else if ("UPLOAD" === n) delete o.header["content-type"], delete o.header["Content-Type"], ["files", "file", "filePath", "name", "timeout", "formData"].forEach((e => { + Ix(t[e]) || (o[e] = t[e]) + })), Ix(o.timeout) && !Ix(e.timeout) && (o.timeout = e.timeout); else { const n = ["data", "timeout", "dataType", "responseType", "withCredentials"]; - o = {...o, ...Nx(n, e, t)} + o = {...o, ...Dx(n, e, t)} } return o })(this.config, e); - const t = [jx, void 0]; + const t = [Rx, void 0]; let n = Promise.resolve(e); for (this.interceptors.request.forEach((e => { t.unshift(e.fulfilled, e.rejected) @@ -16876,7 +16874,7 @@ const _T = { return t.url = e, t.method = "DOWNLOAD", this.middleware(t) } }, - config: cT, + config: uT, zIndex: { toast: 10090, noNetwork: 10080, @@ -16888,181 +16886,182 @@ const _T = { indexListSticky: 965 }, debounce: function (e, t = 500, n = !1) { - if (null !== Gx && clearTimeout(Gx), n) { - const n = !Gx; - Gx = setTimeout((() => { - Gx = null + if (null !== Kx && clearTimeout(Kx), n) { + const n = !Kx; + Kx = setTimeout((() => { + Kx = null }), t), n && "function" == typeof e && e() - } else Gx = setTimeout((() => { + } else Kx = setTimeout((() => { "function" == typeof e && e() }), t) }, throttle: function (e, t = 500, n = !0) { - n ? Jx || (Jx = !0, "function" == typeof e && e(), setTimeout((() => { - Jx = !1 - }), t)) : Jx || (Jx = !0, setTimeout((() => { - Jx = !1, "function" == typeof e && e() + n ? Gx || (Gx = !0, "function" == typeof e && e(), setTimeout((() => { + Gx = !1 + }), t)) : Gx || (Gx = !0, setTimeout((() => { + Gx = !1, "function" == typeof e && e() }), t)) }, - mixin: kx, - mpMixin: Ax, - props: bT, ...lT, - color: vT, + mixin: Ax, + mpMixin: Cx, + props: yT, ...cT, + color: bT, platform: "h5" }; -uni.$u = _T; -const wT = { +uni.$u = wT; +const xT = { install: e => { - e.config.globalProperties.$u = _T, e.config.globalProperties.$nextTick = e => { + e.config.globalProperties.$u = wT, e.config.globalProperties.$nextTick = e => { e() - }, e.mixin(kx) + }, e.mixin(Ax) } -}, xT = e => { - const t = ux(0); +}, TT = e => { + const t = dx(0); return (t ? `site${t}.` : "") + e }; (function () { - const e = ka(Ex); - return e.use(cw()), e.use(Z_), e.use(wT), function () { - const e = zm, t = Hm, n = Wm, o = Vm, r = Qm, i = $m; + const e = ka(kx); + return e.use(uw()), e.use(ew), e.use(xT), function () { + const e = Hm, t = qm, n = $m, o = Wm, r = Um, i = Qm; uni.setStorage = e => { - e.key = xT(e.key), t(e) + e.key = TT(e.key), t(e) }, uni.setStorageSync = (t, n) => { - e(xT(t), n) + e(TT(t), n) }, uni.getStorage = e => { - e.key = xT(e.key), n(e) - }, uni.getStorageSync = e => o(xT(e)), uni.removeStorage = e => { - e.key = xT(e.key), r(e) - }, uni.removeStorageSync = e => i(xT(e)) - }(), {app: e, Pinia: xw} + e.key = TT(e.key), n(e) + }, uni.getStorageSync = e => o(TT(e)), uni.removeStorage = e => { + e.key = TT(e.key), r(e) + }, uni.removeStorageSync = e => i(TT(e)) + }(), {app: e, Pinia: Tw} })().app.use(om).mount("#app"); export { - Qw as $, - Um as A, - Jo as B, - ei as C, - m as D, - ti as E, + Uw as $, + Ax as A, + Xm as B, + Jo as C, + ei as D, + m as E, u as F, wa as G, dh as H, - hp as I, - K_ as J, + hf as I, + Z_ as J, Io as K, tn as L, Wr as M, Yo as N, Mr as O, - Xb as P, - Ub as Q, - Kw as R, + Yb as P, + Xb as Q, + Zw as R, rh as S, - px as T, - Gw as U, - Ow as V, - Yw as W, - wx as X, - _x as Y, - Ww as Z, - $w as _, + hx as T, + Kw as U, + Iw as V, + Jw as W, + xx as X, + wx as Y, + $w as Z, + Qw as _, qt as a, - vd as a$, - Uw as a0, - Yf as a1, - hx as a2, - mx as a3, - dx as a4, - qg as a5, + Nw as a$, + Xw as a0, + Xp as a1, + mx as a2, + gx as a3, + px as a4, + Vg as a5, Nd as a6, kd as a7, - hg as a8, - kg as a9, - Lw as aA, - kw as aB, - Aw as aC, - Vw as aD, - Nw as aE, - Dw as aF, + mg as a8, + Ag as a9, + Ow as aA, + Aw as aB, + Cw as aC, + Ww as aD, + Dw as aE, + zw as aF, lh as aG, ah as aH, - rx as aI, + ix as aI, fx as aJ, - kn as aK, - Sw as aL, - Gm as aM, - gg as aN, - Zm as aO, - Gp as aP, - Vp as aQ, - Cw as aR, - vx as aS, - cx as aT, - Am as aU, - pu as aV, - nx as aW, - Zw as aX, - Ew as aY, - Rw as aZ, - Xg as a_, - Pg as aa, + vd as aK, + zm as aL, + kn as aM, + Ew as aN, + Km as aO, + vg as aP, + eg as aQ, + Gf as aR, + Vf as aS, + Bw as aT, + bx as aU, + ux as aV, + Am as aW, + fu as aX, + ox as aY, + ex as aZ, + kw as a_, + Lg as aa, Wo as ab, Tm as ac, nh as ad, Dm as ae, Qd as af, - Ug as ag, - tx as ah, - ex as ai, - yx as aj, - Gb as ak, - Jb as al, - ax as am, + Xg as ag, + nx as ah, + tx as ai, + _x as aj, + Kb as ak, + Gb as al, + sx as am, Gn as an, - Sg as ao, - Iw as ap, - lx as aq, - jw as ar, - Fw as as, - Mw as at, + Eg as ao, + Mw as ap, + cx as aq, + Rw as ar, + jw as as, + Fw as at, Gr as au, wd as av, Td as aw, - Bw as ax, - gx as ay, - Pw as az, - Yb as b, - xd as b0, - Hw as b1, - zw as b2, - qw as b3, - tw as b4, - G_ as b5, - Ud as b6, - km as b7, - Kb as b8, - Hh as b9, + Pw as ax, + vx as ay, + Lw as az, + Jb as b, + Yg as b0, + xd as b1, + qw as b2, + Hw as b3, + Vw as b4, + nw as b5, + K_ as b6, + Ud as b7, + km as b8, + Zb as b9, + Hh as ba, yi as c, - fo as d, - Vb as e, - Qg as f, - bx as g, + po as d, + Wb as e, + Ug as f, + yx as g, zr as h, $r as i, Kr as j, qo as k, sn as l, - Hb as m, + ti as m, i as n, - Qb as o, - Qo as p, - fh as q, + Ub as o, + qb as p, + Qo as q, nn as r, - Yg as s, - ix as t, - Tw as u, + Jg as s, + ph as t, + Sw as u, xa as v, Hn as w, - bT as x, - Ax as y, - kx as z + ax as x, + yT as y, + Cx as z }; diff --git a/niucloud/public/wap/assets/index-5beda9ca.css b/niucloud/public/wap/assets/index-5beda9ca.css new file mode 100644 index 000000000..7e2c64cc1 --- /dev/null +++ b/niucloud/public/wap/assets/index-5beda9ca.css @@ -0,0 +1 @@ +.using-hidden[data-v-e40f9828]{word-break:break-all;text-overflow:ellipsis;overflow:hidden;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;white-space:break-spaces}.multi-hidden[data-v-e40f9828]{word-break:break-all;text-overflow:ellipsis;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.graphic-nav-singleSlide[data-v-b36514a1] .uni-scroll-view-content{display:flex}.graphic-nav-fixed[data-v-b36514a1] .uni-scroll-view-content{display:flex;flex-wrap:wrap}.using-hidden[data-v-7fc5a7a3]{word-break:break-all;text-overflow:ellipsis;overflow:hidden;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;white-space:break-spaces}.multi-hidden[data-v-7fc5a7a3]{word-break:break-all;text-overflow:ellipsis;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.rubik-cube[data-v-5d671723]{overflow:hidden;display:flex;flex-wrap:wrap;justify-content:space-between}.rubik-cube .item[data-v-5d671723]{text-align:center;line-height:0;overflow:hidden}.rubik-cube .item uni-image[data-v-5d671723]{width:100%;max-width:100%;height:100%}.rubik-cube .item.row1-of2[data-v-5d671723]{box-sizing:border-box;margin-top:0!important;margin-bottom:0!important}.rubik-cube .item.row1-of2[data-v-5d671723]:nth-child(1){margin-left:0!important}.rubik-cube .item.row1-of2[data-v-5d671723]:nth-child(2){margin-right:0!important}.rubik-cube .item.row1-of3[data-v-5d671723]{box-sizing:border-box;margin-top:0!important;margin-bottom:0!important}.rubik-cube .item.row1-of3[data-v-5d671723]:nth-child(1){margin-left:0!important}.rubik-cube .item.row1-of3[data-v-5d671723]:nth-child(3){margin-right:0!important}.rubik-cube .item.row1-of4[data-v-5d671723]{box-sizing:border-box;margin-top:0!important;margin-bottom:0!important}.rubik-cube .item.row1-of4[data-v-5d671723]:nth-child(1){margin-left:0!important}.rubik-cube .item.row1-of4[data-v-5d671723]:nth-child(4){margin-right:0!important}.rubik-cube .item.row2-lt-of2-rt[data-v-5d671723]{display:inline-block;box-sizing:border-box}.rubik-cube .item.row2-lt-of2-rt[data-v-5d671723]:nth-child(1){margin-left:0!important;margin-top:0!important}.rubik-cube .item.row2-lt-of2-rt[data-v-5d671723]:nth-child(2){margin-right:0!important;margin-top:0!important}.rubik-cube .item.row2-lt-of2-rt[data-v-5d671723]:nth-child(3){margin-left:0!important;margin-bottom:0!important}.rubik-cube .item.row2-lt-of2-rt[data-v-5d671723]:nth-child(4){margin-right:0!important;margin-bottom:0!important}.rubik-cube .template-left[data-v-5d671723],.rubik-cube .template-right[data-v-5d671723]{box-sizing:border-box}.rubik-cube .template-left .item.row1-lt-of2-rt[data-v-5d671723]:nth-child(1){margin-bottom:0}.rubik-cube .template-right .item.row1-lt-of2-rt[data-v-5d671723]:nth-child(2){margin-bottom:0!important}.rubik-cube.row1-lt-of2-rt .template-right[data-v-5d671723]{display:flex;flex-direction:column;justify-content:space-between}.rubik-cube .item.row1-tp-of2-bm[data-v-5d671723]:nth-child(1){width:100%;box-sizing:border-box;margin-top:0!important;margin-left:0!important;margin-right:0!important}.rubik-cube .item.row1-tp-of2-bm[data-v-5d671723]:nth-child(2){box-sizing:border-box;margin-left:0!important;margin-bottom:0!important}.rubik-cube .item.row1-tp-of2-bm[data-v-5d671723]:nth-child(3){box-sizing:border-box;margin-right:0!important;margin-bottom:0!important}.rubik-cube .template-left .item.row1-lt-of1-tp-of2-bm[data-v-5d671723]{width:100%;box-sizing:border-box}.rubik-cube .template-bottom[data-v-5d671723]{display:flex;align-items:center;justify-content:space-between}.rubik-cube .template-bottom .item[data-v-5d671723]:nth-child(2){margin-right:0!important}.draggable-element.decorate[data-v-26c6536e]:hover:before{content:"";position:absolute;top:0;left:0;right:0;bottom:0;border:.125rem solid var(--primary-color);z-index:10;pointer-events:none;cursor:move;border-style:dotted}.draggable-element.decorate.selected[data-v-26c6536e]:before{content:"";position:absolute;top:0;left:0;right:0;bottom:0;border:.125rem solid var(--primary-color);z-index:10;pointer-events:none;cursor:move} diff --git a/niucloud/public/wap/assets/index-6b3abbd5.css b/niucloud/public/wap/assets/index-6b3abbd5.css deleted file mode 100644 index f3a2d74fa..000000000 --- a/niucloud/public/wap/assets/index-6b3abbd5.css +++ /dev/null @@ -1 +0,0 @@ -.using-hidden[data-v-e40f9828]{word-break:break-all;text-overflow:ellipsis;overflow:hidden;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;white-space:break-spaces}.multi-hidden[data-v-e40f9828]{word-break:break-all;text-overflow:ellipsis;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.graphic-nav-singleSlide[data-v-b36514a1] .uni-scroll-view-content{display:flex}.graphic-nav-fixed[data-v-b36514a1] .uni-scroll-view-content{display:flex;flex-wrap:wrap}.using-hidden[data-v-7fc5a7a3]{word-break:break-all;text-overflow:ellipsis;overflow:hidden;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;white-space:break-spaces}.multi-hidden[data-v-7fc5a7a3]{word-break:break-all;text-overflow:ellipsis;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.draggable-element.decorate[data-v-7bf03d34]:hover:before{content:"";position:absolute;top:0;left:0;right:0;bottom:0;border:.125rem solid var(--primary-color);z-index:10;pointer-events:none;cursor:move;border-style:dotted}.draggable-element.decorate.selected[data-v-7bf03d34]:before{content:"";position:absolute;top:0;left:0;right:0;bottom:0;border:.125rem solid var(--primary-color);z-index:10;pointer-events:none;cursor:move} diff --git a/niucloud/public/wap/assets/index-a36ec25c.css b/niucloud/public/wap/assets/index-8e8df8ed.css similarity index 54% rename from niucloud/public/wap/assets/index-a36ec25c.css rename to niucloud/public/wap/assets/index-8e8df8ed.css index d999f954b..f98dfe441 100644 --- a/niucloud/public/wap/assets/index-a36ec25c.css +++ b/niucloud/public/wap/assets/index-8e8df8ed.css @@ -1 +1 @@ -.bg-index[data-v-efa7cdd6]{width:100%;height:100%;box-sizing:border-box;background-size:100%!important;background-repeat:no-repeat!important} +.bg-index[data-v-e6c97636]{width:100%;height:100%;box-sizing:border-box;background-size:100%!important;background-repeat:no-repeat!important} diff --git a/niucloud/public/wap/assets/diy-4cefc033.css b/niucloud/public/wap/assets/index-da921c04.css similarity index 54% rename from niucloud/public/wap/assets/diy-4cefc033.css rename to niucloud/public/wap/assets/index-da921c04.css index 67ee8281b..e67342fb2 100644 --- a/niucloud/public/wap/assets/diy-4cefc033.css +++ b/niucloud/public/wap/assets/index-da921c04.css @@ -1 +1 @@ -.bg-index[data-v-5d78a9ac]{width:100%;height:100%;box-sizing:border-box;background-size:100%!important;background-repeat:no-repeat!important} +.bg-index[data-v-1c8f71ff]{width:100%;height:100%;box-sizing:border-box;background-size:100%!important;background-repeat:no-repeat!important} diff --git a/niucloud/public/wap/assets/index.1798b78b.js b/niucloud/public/wap/assets/index.1798b78b.js new file mode 100644 index 000000000..80ceb2c03 --- /dev/null +++ b/niucloud/public/wap/assets/index.1798b78b.js @@ -0,0 +1,8 @@ +import{_ as e}from"./u-icon.f5369555.js";import{d as t,u as o,r,c as n,an as a,p as i,q as l,h as s,i as d,w as u,M as c,O as p,N as h,F as m,n as g,l as f,x as v,j as b,m as y,D as x,E as w,R as _,t as S,H as D,K as E,a1 as R,aG as C,aH as k,S as T,U as I,aI as N,am as O,aJ as W,aq as A,J as M,X as H,aK as P,aL as B,aM as j}from"./index-15eacd31.js";import{_ as z,a as F}from"./tabbar.e67e4875.js";import{c as X}from"./article.0307362e.js";import{_ as Y}from"./_plugin-vue_export-helper.1b428a4d.js";import{_ as G}from"./app-link.vue_vue_type_script_setup_true_lang.18597de0.js";import{_ as U}from"./u-avatar.ddef1faa.js";const L=Y(t({__name:"index",props:["component","index","pullDownRefresh"],setup(t){const E=t,R=o(),C=r([]),k=n((()=>"decorate"==R.mode?R.value[E.index]:E.component)),T=n((()=>{var e="";return k.value.componentBgColor&&(e+="background-color:"+k.value.componentBgColor+";"),k.value.topRounded&&(e+="border-top-left-radius:"+2*k.value.topRounded+"rpx;"),k.value.topRounded&&(e+="border-top-right-radius:"+2*k.value.topRounded+"rpx;"),k.value.bottomRounded&&(e+="border-bottom-left-radius:"+2*k.value.bottomRounded+"rpx;"),k.value.bottomRounded&&(e+="border-bottom-right-radius:"+2*k.value.bottomRounded+"rpx;"),e})),I=n((()=>{var e="";return k.value.elementBgColor&&(e+="background-color:"+k.value.elementBgColor+";"),k.value.topElementRounded&&(e+="border-top-left-radius:"+2*k.value.topElementRounded+"rpx;"),k.value.topElementRounded&&(e+="border-top-right-radius:"+2*k.value.topElementRounded+"rpx;"),k.value.bottomElementRounded&&(e+="border-bottom-left-radius:"+2*k.value.bottomElementRounded+"rpx;"),k.value.bottomElementRounded&&(e+="border-bottom-right-radius:"+2*k.value.bottomElementRounded+"rpx;"),e}));a((()=>E.pullDownRefresh),((e,t)=>{}));(()=>{if("decorate"==R.mode){let e={image:"",summary:"文章摘要",title:"文章标题",create_time:"2023-03-28 09:00:00"};C.value.push(e),C.value.push(e)}else(()=>{let e={};"diy"==k.value.sources?e.ids=k.value.articleIds:e.limit=k.value.count,X(e).then((e=>{C.value=e.data}))})()})();return(t,o)=>{const r=i(l("u-icon"),e),n=i(l("u--image"),z),a=S,E=D;return s(),d(a,{style:g(f(T))},{default:u((()=>[(s(!0),c(p,null,h(C.value,((e,t)=>(s(),d(a,{key:e.id,class:m(["item flex align-center p-[20rpx]",{"border-solid border-t-0 border-l-0 border-r-0 border-b border-gray-200 mb-[20rpx]":C.value.length-1!==t}]),onClick:t=>{return o=e.id,void _({url:"/pages/article/detail",param:{id:o}});var o},style:g(f(I))},{default:u((()=>[e.image?(s(),d(n,{key:0,width:"260rpx",height:"200rpx",src:f(v)(e.image),model:"aspectFill"},{error:u((()=>[b(r,{name:"photo",color:"#999",size:"50"})])),_:2},1032,["src"])):y("",!0),b(a,{class:"flex-1 flex flex-col justify-between ml-[20rpx]"},{default:u((()=>[b(a,{class:"text-[32rpx] leading-[1.3] multi-hidden mt-[4rpx]"},{default:u((()=>[x(w(e.title),1)])),_:2},1024),b(a,{class:"text-[28rpx] using-hidden mb-[auto] mt-[20rpx] text-gray-500"},{default:u((()=>[x(w(e.summary),1)])),_:2},1024),b(a,{class:"text-[24rpx] text-gray-400 flex justify-between mt-[10rpx]"},{default:u((()=>[b(E,null,{default:u((()=>[x(w(e.create_time),1)])),_:2},1024)])),_:2},1024)])),_:2},1024)])),_:2},1032,["class","onClick","style"])))),128))])),_:1},8,["style"])}}}),[["__scopeId","data-v-e40f9828"]]),q=Y(t({__name:"index",props:["component","index","pullDownRefresh"],setup(t){const _=t,I=o(),N=n((()=>"decorate"==I.mode?I.value[_.index]:_.component)),O=n((()=>{var e="";return N.value.componentBgColor&&(e+="background-color:"+N.value.componentBgColor+";"),N.value.topRounded&&(e+="border-top-left-radius:"+2*N.value.topRounded+"rpx;"),N.value.topRounded&&(e+="border-top-right-radius:"+2*N.value.topRounded+"rpx;"),N.value.bottomRounded&&(e+="border-bottom-left-radius:"+2*N.value.bottomRounded+"rpx;"),N.value.bottomRounded&&(e+="border-bottom-right-radius:"+2*N.value.bottomRounded+"rpx;"),e}));a((()=>_.pullDownRefresh),((e,t)=>{}));const W=r(0),A=e=>{W.value=e.detail.current},M=(e,t)=>{let o=N.value.pageCount*N.value.rowCount,r=!0;return r=e>=[(t-1)*o]&&e<[t*o],r},H=r("");E((()=>{P(),"decorate"==I.mode&&a((()=>N.value),((e,t)=>{e&&"GraphicNav"==e.componentName&&P()}))}));const P=()=>{var e;"decorate"==I.mode&&N.value.list.forEach(((e,t)=>{""==e.imageUrl&&(e.imageUrl="static/resource/images/diy/figure.png")})),e=0,"graphic"==N.value.mode?e=(49+N.value.imageSize)*N.value.pageCount:"img"==N.value.mode?e=(22+N.value.imageSize)*N.value.pageCount:"text"==N.value.mode&&(e=43*N.value.pageCount),H.value=2*e+"rpx"};return(t,o)=>{const r=R,n=D,a=S,_=i(l("u-icon"),e),E=i(l("app-link"),G),I=C,W=k,P=T;return s(),d(a,{style:g(f(O))},{default:u((()=>[f(N).navTitle?(s(),c("div",{key:0,class:"py-[30rpx] px-[32rpx] text-[30rpx]",style:g({fontWeight:f(N).font.weight,color:f(N).font.color})},w(f(N).navTitle),5)):y("",!0),"vertical"==f(N).layout?(s(),d(a,{key:1,class:"graphic-nav"},{default:u((()=>[(s(!0),c(p,null,h(f(N).list,((e,t)=>(s(),d(a,{class:"graphic-nav-item",key:e.id},{default:u((()=>[b(E,{data:e.link,class:m(["flex items-center justify-between py-[30rpx] px-[32rpx]",[0==t?"border-t-0":"border-t"]])},{default:u((()=>["text"!=f(N).mode?(s(),d(a,{key:0,class:"graphic-img relative flex items-center w-10 h-10 mr-[20rpx]",style:g({width:2*f(N).imageSize+"rpx",height:2*f(N).imageSize+"rpx"})},{default:u((()=>[b(r,{src:f(v)(e.imageUrl),mode:"aspectFill",style:g({maxWidth:2*f(N).imageSize+"rpx",maxHeight:2*f(N).imageSize+"rpx",borderRadius:2*f(N).aroundRadius+"rpx"})},null,8,["src","style"]),e.label.control?(s(),d(n,{key:0,class:"tag absolute -top-[10rpx] -right-[24rpx] text-white rounded-[24rpx] rounded-bl-none transform scale-80 py-1 px-2 text-xs",style:g({color:e.label.textColor,backgroundImage:"linear-gradient("+e.label.bgColorStart+","+e.label.bgColorEnd+")"})},{default:u((()=>[x(w(e.label.text),1)])),_:2},1032,["style"])):y("",!0)])),_:2},1032,["style"])):y("",!0),"img"!=f(N).mode?(s(),d(n,{key:1,class:"graphic-text w-full truncate leading-normal",style:g({fontSize:2*f(N).font.size+"rpx",fontWeight:f(N).font.weight,color:f(N).font.color})},{default:u((()=>[x(w(e.title),1)])),_:2},1032,["style"])):y("",!0),b(_,{name:"arrow-right",color:"#CACACA"})])),_:2},1032,["data","class"])])),_:2},1024)))),128))])),_:1})):"horizontal"==f(N).layout&&"pageSlide"==f(N).showStyle?(s(),d(W,{key:2,class:"graphic-nav p-2 box-border relative",circular:"","indicator-dots":!1,style:g({height:H.value}),onChange:A},{default:u((()=>[(s(!0),c(p,null,h(Math.ceil(f(N).list.length/(f(N).pageCount*f(N).rowCount)),((e,t)=>(s(),d(I,{class:"graphic-nav-wrap flex flex-wrap"},{default:u((()=>[(s(!0),c(p,null,h(f(N).list,((t,o)=>(s(),c(p,null,[M(o,e)?(s(),d(a,{class:m(["graphic-nav-item",[f(N).mode]]),key:t.id,style:g({width:100/f(N).rowCount+"%"})},{default:u((()=>[b(E,{data:t.link,class:"flex flex-col items-center box-border py-2"},{default:u((()=>["text"!=f(N).mode?(s(),d(a,{key:0,class:"graphic-img relative flex items-center justify-center w-10 h-10",style:g({width:2*f(N).imageSize+"rpx",height:2*f(N).imageSize+"rpx"})},{default:u((()=>[b(r,{src:f(v)(t.imageUrl),mode:"aspectFill",style:g({maxWidth:2*f(N).imageSize+"rpx",maxHeight:2*f(N).imageSize+"rpx",borderRadius:2*f(N).aroundRadius+"rpx"})},null,8,["src","style"]),t.label.control?(s(),d(n,{key:0,class:"tag absolute -top-[10rpx] -right-[24rpx] text-white rounded-[24rpx] rounded-bl-none transform scale-80 py-1 px-2 text-xs",style:g({color:t.label.textColor,backgroundImage:"linear-gradient("+t.label.bgColorStart+","+t.label.bgColorEnd+")"})},{default:u((()=>[x(w(t.label.text),1)])),_:2},1032,["style"])):y("",!0)])),_:2},1032,["style"])):y("",!0),"img"!=f(N).mode?(s(),d(n,{key:1,class:m(["graphic-text w-full text-center truncate leading-normal",{"pt-1.5":"text"!=f(N).mode}]),style:g({fontSize:2*f(N).font.size+"rpx",fontWeight:f(N).font.weight,color:f(N).font.color})},{default:u((()=>[x(w(t.title),1)])),_:2},1032,["class","style"])):y("",!0)])),_:2},1032,["data"])])),_:2},1032,["class","style"])):y("",!0)],64)))),256))])),_:2},1024)))),256))])),_:1},8,["style"])):(s(),d(P,{key:3,"scroll-x":"singleSlide"==f(N).showStyle,class:m(["graphic-nav","graphic-nav-"+f(N).showStyle])},{default:u((()=>[(s(!0),c(p,null,h(f(N).list,((e,t)=>(s(),d(a,{class:m(["graphic-nav-item",{"flex-shrink-0":"singleSlide"==f(N).showStyle}]),key:e.id,style:g({width:100/f(N).rowCount+"%"})},{default:u((()=>[b(E,{data:e.link,class:"flex flex-col items-center box-border py-2"},{default:u((()=>["text"!=f(N).mode?(s(),d(a,{key:0,class:"graphic-img relative flex items-center justify-center w-10 h-10",style:g({width:2*f(N).imageSize+"rpx",height:2*f(N).imageSize+"rpx"})},{default:u((()=>[b(r,{src:f(v)(e.imageUrl),mode:"aspectFill",style:g({maxWidth:2*f(N).imageSize+"rpx",maxHeight:2*f(N).imageSize+"rpx",borderRadius:2*f(N).aroundRadius+"rpx"})},null,8,["src","style"]),e.label.control?(s(),d(n,{key:0,class:m(["tag absolute -top-[10rpx] -right-[24rpx] text-white rounded-[24rpx] rounded-bl-none transform scale-80 py-1 px-2 text-xs"]),style:g({color:e.label.textColor,backgroundImage:"linear-gradient("+e.label.bgColorStart+","+e.label.bgColorEnd+")"})},{default:u((()=>[x(w(e.label.text),1)])),_:2},1032,["style"])):y("",!0)])),_:2},1032,["style"])):y("",!0),"img"!=f(N).mode?(s(),d(n,{key:1,class:m(["graphic-text w-full text-center truncate leading-normal",{"pt-1.5":"text"!=f(N).mode}]),style:g({fontSize:2*f(N).font.size+"rpx",fontWeight:f(N).font.weight,color:f(N).font.color})},{default:u((()=>[x(w(e.title),1)])),_:2},1032,["class","style"])):y("",!0)])),_:2},1032,["data"])])),_:2},1032,["class","style"])))),128))])),_:1},8,["scroll-x","class"]))])),_:1},8,["style"])}}}),[["__scopeId","data-v-b36514a1"]]),$=t({__name:"index",props:["component","index","pullDownRefresh"],setup(e){const t=e,r=o(),i=n((()=>"decorate"==r.mode?r.value[t.index]:t.component)),l=n((()=>{var e="";return e+="height:"+2*i.value.height+"rpx;",i.value.componentBgColor&&(e+="background-color:"+i.value.componentBgColor+";"),e}));return a((()=>t.pullDownRefresh),((e,t)=>{})),(e,t)=>{const o=S;return s(),d(o,{style:g(f(l))},null,8,["style"])}}}),V=t({__name:"index",props:["component","index","pullDownRefresh"],setup(e){const t=e,m=o(),y=n((()=>"decorate"==m.mode?m.value[t.index]:t.component)),x=n((()=>{var e="";return y.value.componentBgColor&&(e+="background-color:"+y.value.componentBgColor+";"),e})),w=n((()=>{var e="";return y.value.topRounded&&(e+="border-top-left-radius:"+2*y.value.topRounded+"rpx;"),y.value.topRounded&&(e+="border-top-right-radius:"+2*y.value.topRounded+"rpx;"),y.value.bottomRounded&&(e+="border-bottom-left-radius:"+2*y.value.bottomRounded+"rpx;"),y.value.bottomRounded&&(e+="border-bottom-right-radius:"+2*y.value.bottomRounded+"rpx;"),e}));a((()=>t.pullDownRefresh),((e,t)=>{}));const _=n((()=>2*y.value.imageHeight+"rpx")),D=r(0),T=e=>{D.value=e.detail.current};E((()=>{I(),"decorate"==m.mode&&a((()=>y.value),((e,t)=>{e&&"ImageAds"==e.componentName&&I()}))}));const I=()=>{"decorate"==m.mode&&y.value.list.forEach(((e,t)=>{""==e.imageUrl&&(e.imageUrl="static/resource/images/diy/figure.png",e.imgWidth=690,e.imgHeight=330)}))};return(e,t)=>{const o=R,r=i(l("app-link"),G),n=S,a=C,m=k;return s(),d(n,{class:"image-ads",style:g(f(x))},{default:u((()=>[1==f(y).list.length?(s(),d(n,{key:0,class:"leading-0 overflow-hidden",style:g(f(w))},{default:u((()=>[b(r,{data:f(y).list[0].link},{default:u((()=>[b(o,{src:f(v)(f(y).list[0].imageUrl),style:g({height:f(_)}),mode:"heightFix",class:"w-full","show-menu-by-longpress":!0},null,8,["src","style"])])),_:1},8,["data"])])),_:1},8,["style"])):(s(),d(m,{key:1,class:"swiper",style:g({height:f(_)}),autoplay:"true",circular:"true",onChange:T},{default:u((()=>[(s(!0),c(p,null,h(f(y).list,(e=>(s(),d(a,{class:"swiper-item",key:e.id,style:g(f(w))},{default:u((()=>[b(r,{data:e.link},{default:u((()=>[b(n,{class:"item",style:g({height:f(_)})},{default:u((()=>[b(o,{src:f(v)(e.imageUrl),mode:"scaleToFill",class:"w-full h-full","show-menu-by-longpress":!0},null,8,["src"])])),_:2},1032,["style"])])),_:2},1032,["data"])])),_:2},1032,["style"])))),128))])),_:1},8,["style"]))])),_:1},8,["style"])}}}),K=Y(t({__name:"index",props:["component","index","pullDownRefresh"],setup(e){const t=e,c=o(),p=n((()=>"decorate"==c.mode?c.value[t.index]:t.component)),h=n((()=>{var e="";return p.value.componentBgColor&&(e+="background-color:"+p.value.componentBgColor+";"),p.value.bgUrl&&(e+="background-image:url("+v(p.value.bgUrl)+");",e+="background-size: 100%;",e+="background-repeat: no-repeat;"),p.value.topRounded&&(e+="border-top-left-radius:"+2*p.value.topRounded+"rpx;"),p.value.topRounded&&(e+="border-top-right-radius:"+2*p.value.topRounded+"rpx;"),p.value.bottomRounded&&(e+="border-bottom-left-radius:"+2*p.value.bottomRounded+"rpx;"),p.value.bottomRounded&&(e+="border-bottom-right-radius:"+2*p.value.bottomRounded+"rpx;"),e}));a((()=>t.pullDownRefresh),((e,t)=>{}));const m=I(),{query:y}=N(location.href);y.code&&O()&&W({code:y.code}).then((e=>{m.getMemberInfo()}));const E=n((()=>"decorate"==c.mode?{headimg:"",nickname:"昵称",balance:0,point:0,money:0,member_no:"NIU0000021"}:m.info)),R=n((()=>{if(E.value){let e=parseFloat(E.value.balance)+parseFloat(E.value.money);return A(e.toString())}return 0})),C=()=>{H().setLoginBack({url:"/pages/member/index"})};r(!1);const k=()=>{O()?H().getAuthCode("snsapi_userinfo"):_({url:"/pages/member/personal"})};return(e,t)=>{const o=i(l("u-avatar"),U),r=S,n=D,a=i(l("app-link"),G);return s(),d(r,{style:g(f(h))},{default:u((()=>[b(r,{class:"pt-[34rpx] member-info"},{default:u((()=>[f(E)?(s(),d(r,{key:0,class:"flex ml-[32rpx] mr-[52rpx] items-center relative"},{default:u((()=>[b(o,{src:f(v)(f(E).headimg),size:"55",leftIcon:"none",onClick:k},null,8,["src"]),b(r,{class:"ml-[22rpx]"},{default:u((()=>[b(r,{class:"text-[#222222] truncate w-[430rpx] font-bold text-lg",style:g({color:f(p).textColor})},{default:u((()=>[x(w(f(E).nickname),1)])),_:1},8,["style"]),b(r,{class:"text-[#696B70] text-[24rpx] mt-[10rpx]",style:g({color:f(p).textColor})},{default:u((()=>[x(" UID:"+w(f(E).member_no),1)])),_:1},8,["style"])])),_:1}),b(r,{class:"set-icon flex items-center absolute right-0 top-2"},{default:u((()=>[b(a,{url:"/pages/setting/index"},{default:u((()=>[b(n,{class:"iconfont iconshezhi text-[1.6rem] ml-[10rpx]",style:g({color:f(p).textColor})},null,8,["style"])])),_:1})])),_:1})])),_:1})):(s(),d(r,{key:1,class:"flex ml-[32rpx] mr-[52rpx] items-center relative",onClick:C},{default:u((()=>[b(o,{src:"",size:"55"}),b(r,{class:"ml-[22rpx]"},{default:u((()=>[b(r,{class:"text-[#222222] font-bold text-lg",style:g({color:f(p).textColor})},{default:u((()=>[x(w(f(M)("login"))+"/"+w(f(M)("register")),1)])),_:1},8,["style"])])),_:1}),b(r,{class:"set-icon flex items-center absolute right-0 top-2"},{default:u((()=>[b(a,{url:"/pages/setting/index"},{default:u((()=>[b(n,{class:"iconfont iconshezhi text-[1.6rem] ml-[10rpx]",style:g({color:f(p).textColor})},null,8,["style"])])),_:1})])),_:1})])),_:1})),b(r,{class:"flex m-[30rpx] mb-0 py-[30rpx] items-center"},{default:u((()=>[b(r,{class:"flex-1 text-center"},{default:u((()=>[b(r,{class:"font-bold"},{default:u((()=>[b(a,{url:f(E)?"/pages/member/balance":"",style:g({color:f(p).textColor})},{default:u((()=>[x(w(f(R)),1)])),_:1},8,["url","style"])])),_:1}),b(r,{class:"text-sm mt-[10rpx]"},{default:u((()=>[b(a,{url:f(E)?"/pages/member/balance":"",style:g({color:f(p).textColor})},{default:u((()=>[x(w(f(M)("balance")),1)])),_:1},8,["url","style"])])),_:1})])),_:1}),b(r,{class:"border-solid border-white border-l border-b-0 border-t-0 border-r-0 h-[60rpx]"}),b(r,{class:"flex-1 text-center"},{default:u((()=>[b(r,{class:"font-bold"},{default:u((()=>[b(a,{url:f(E)?"/pages/member/point":"",style:g({color:f(p).textColor})},{default:u((()=>{var e;return[x(w(parseInt(null==(e=f(E))?void 0:e.point)||0),1)]})),_:1},8,["url","style"])])),_:1}),b(r,{class:"text-sm mt-[10rpx]"},{default:u((()=>[b(a,{url:f(E)?"/pages/member/point":"",style:g({color:f(p).textColor})},{default:u((()=>[x(w(f(M)("point")),1)])),_:1},8,["url","style"])])),_:1})])),_:1})])),_:1})])),_:1})])),_:1},8,["style"])}}}),[["__scopeId","data-v-1e679529"]]),J=Y(t({__name:"index",props:["component","index","pullDownRefresh"],setup(t){const r=t,c=o(),p=n((()=>"decorate"==c.mode?c.value[r.index]:r.component)),h=n((()=>{var e="";return p.value.componentBgColor&&(e+="background-color:"+p.value.componentBgColor+";"),p.value.topRounded&&(e+="border-top-left-radius:"+2*p.value.topRounded+"rpx;"),p.value.topRounded&&(e+="border-top-right-radius:"+2*p.value.topRounded+"rpx;"),p.value.bottomRounded&&(e+="border-bottom-left-radius:"+2*p.value.bottomRounded+"rpx;"),p.value.bottomRounded&&(e+="border-bottom-right-radius:"+2*p.value.bottomRounded+"rpx;"),e}));return a((()=>r.pullDownRefresh),((e,t)=>{})),(t,o)=>{const r=S,n=i(l("app-link"),G),a=D,c=i(l("u-icon"),e);return s(),d(r,{class:"diy-text",style:g(f(h))},{default:u((()=>["style-1"==f(p).style?(s(),d(r,{key:0,class:"p-[20rpx]"},{default:u((()=>[b(n,{data:f(p).link},{default:u((()=>[b(r,{style:g({fontSize:2*f(p).fontSize+"rpx",color:f(p).textColor,fontWeight:f(p).fontWeight,textAlign:f(p).textAlign})},{default:u((()=>[x(w(f(p).text),1)])),_:1},8,["style"])])),_:1},8,["data"])])),_:1})):y("",!0),"style-2"==f(p).style?(s(),d(r,{key:1,class:"p-[20rpx] flex items-center"},{default:u((()=>[b(n,{data:f(p).link},{default:u((()=>[b(r,{class:"max-w-[200rpx] truncate",style:g({fontSize:2*f(p).fontSize+"rpx",color:f(p).textColor,fontWeight:f(p).fontWeight})},{default:u((()=>[x(w(f(p).text),1)])),_:1},8,["style"])])),_:1},8,["data"]),b(a,{class:"ml-[16rpx] max-w-[300rpx] truncate",style:g({color:f(p).subTitle.color,fontSize:2*f(p).subTitle.fontSize+"rpx"})},{default:u((()=>[x(w(f(p).subTitle.text),1)])),_:1},8,["style"]),f(p).more.isShow?(s(),d(r,{key:0,class:"ml-auto text-right",style:g({color:f(p).more.color})},{default:u((()=>[b(n,{data:f(p).more.link,class:"flex items-center"},{default:u((()=>[b(a,{class:"max-w-[200rpx] truncate text-[24rpx] mr-[8rpx]"},{default:u((()=>[x(w(f(p).more.text),1)])),_:1}),b(c,{name:"arrow-right",size:"12",style:g({color:f(p).more.color})},null,8,["style"])])),_:1},8,["data"])])),_:1},8,["style"])):y("",!0)])),_:1})):y("",!0)])),_:1},8,["style"])}}}),[["__scopeId","data-v-7fc5a7a3"]]),Z=Y(t({__name:"index",props:["component","index","pullDownRefresh"],setup(e){const t=e,r=o(),x=n((()=>"decorate"==r.mode?r.value[t.index]:t.component)),w=n((()=>{var e="";return x.value.componentBgColor&&(e+="background-color:"+x.value.componentBgColor+";"),x.value.topRounded&&(e+="border-top-left-radius:"+2*x.value.topRounded+"rpx;"),x.value.topRounded&&(e+="border-top-right-radius:"+2*x.value.topRounded+"rpx;"),x.value.bottomRounded&&(e+="border-bottom-left-radius:"+2*x.value.bottomRounded+"rpx;"),x.value.bottomRounded&&(e+="border-bottom-right-radius:"+2*x.value.bottomRounded+"rpx;"),e}));a((()=>t.pullDownRefresh),((e,t)=>{})),E((()=>{_(),a((()=>x.value),((e,t)=>{e&&"RubikCube"==e.componentName&&_()}))}));const _=()=>{"decorate"==r.mode&&x.value.list.forEach(((e,t)=>{""==e.imageUrl&&(e.imageUrl="static/resource/images/diy/figure.png",e.imgWidth=690,e.imgHeight=330)})),D()},D=()=>{var e={"row1-of2":{ratio:2,width:"calc((100% - "+P(2*x.value.imageGap)+"px) / 2)"},"row1-of3":{ratio:3,width:"calc((100% - "+P(4*x.value.imageGap)+"px) / 3)"},"row1-of4":{ratio:4,width:"calc((100% - "+P(6*x.value.imageGap)+"px) / 4)"}};x.value.list.forEach(((e,t)=>{e.pageItemStyle=((e,t)=>{var o="";return"right"==x.value.elementAngle||{"row1-lt-of2-rt":[["border-top-right-radius","border-bottom-right-radius"],["border-top-left-radius","border-bottom-left-radius","border-bottom-right-radius"],["border-top-left-radius","border-bottom-left-radius","border-top-right-radius"]],"row1-lt-of1-tp-of2-bm":[["border-top-right-radius","border-bottom-right-radius"],["border-top-left-radius","border-bottom-left-radius","border-bottom-right-radius"],["border-radius"],["border-top-left-radius","border-bottom-left-radius","border-top-right-radius"]],"row1-tp-of2-bm":[["border-bottom-left-radius","border-bottom-right-radius"],["border-top-left-radius","border-bottom-right-radius","border-top-right-radius"],["border-top-left-radius","border-bottom-left-radius","border-top-right-radius"]],"row2-lt-of2-rt":[["border-top-right-radius","border-bottom-left-radius","border-bottom-right-radius"],["border-top-left-radius","border-bottom-right-radius","border-bottom-left-radius"],["border-top-left-radius","border-bottom-right-radius","border-top-right-radius"],["border-top-left-radius","border-bottom-left-radius","border-top-right-radius"]],"row1-of4":[["border-top-right-radius","border-bottom-right-radius"],["border-radius"],["border-radius"],["border-top-left-radius","border-bottom-left-radius"]],"row1-of3":[["border-top-right-radius","border-bottom-right-radius"],["border-radius"],["border-top-left-radius","border-bottom-left-radius"]],"row1-of2":[["border-top-right-radius","border-bottom-right-radius"],["border-top-left-radius","border-bottom-left-radius"]]}[e][t].forEach(((e,t)=>{o+="border-top-left-radius:"+2*x.value.topElementRounded+"rpx;",o+="border-top-right-radius:"+2*x.value.topElementRounded+"rpx;",o+="border-bottom-left-radius:"+2*x.value.bottomElementRounded+"rpx;",o+="border-bottom-right-radius:"+2*x.value.bottomElementRounded+"rpx;"})),o})(x.value.mode,t)})),e[x.value.mode]?C(e[x.value.mode]):"row2-lt-of2-rt"==x.value.mode?k():"row1-lt-of2-rt"==x.value.mode?T():"row1-tp-of2-bm"==x.value.mode?I():"row1-lt-of1-tp-of2-bm"==x.value.mode&&N()},C=e=>{B({success:t=>{let o=0;x.value.list.forEach(((r,n)=>{var a=r.imgHeight/r.imgWidth;let i=t.windowWidth-P(2*x.value.margin.both);x.value.imageGap>0&&(i-=P(e.ratio*x.value.imageGap*2)),r.imgWidth=i/e.ratio,r.imgHeight=r.imgWidth*a,(0==o||o{t.widthStyle=e.width,t.imgHeight=o}))}})},k=()=>{B({success:e=>{let t=0,o=0;x.value.list.forEach(((r,n)=>{var a=r.imgHeight/r.imgWidth;r.imgWidth=e.windowWidth,r.imgWidth-=P(4*x.value.margin.both),x.value.imageGap>0&&(r.imgWidth-=P(2*x.value.imageGap)),r.imgWidth=r.imgWidth/2,r.imgHeight=r.imgWidth*a,n<=1?(0==t||t1&&(0==o||o{e.imgWidth="calc((100% - "+P(2*x.value.imageGap)+"px) / 2)",e.widthStyle=e.imgWidth,r<=1?e.imgHeight=t:r>1&&(e.imgHeight=o)}))}})},T=()=>{let e=0;x.value.list[1].imgWidth,x.value.list[2].imgWidth,B({success:t=>{x.value.list.forEach(((o,r)=>{if(0==r){var n=o.imgHeight/o.imgWidth;o.imgWidth=t.windowWidth-P(4*x.value.margin.both)-P(2*x.value.imageGap),o.imgWidth=o.imgWidth/2,o.imgHeight=o.imgWidth*n,e=(o.imgHeight-P(2*x.value.imageGap))/2,o.imgWidth+="px"}else o.imgWidth=x.value.list[0].imgWidth,o.imgHeight=e}))}})},I=()=>{var e=0;B({success:t=>{x.value.list.forEach(((o,r)=>{var n=o.imgHeight/o.imgWidth;0==r?o.imgWidth=t.windowWidth-P(4*x.value.margin.both):r>0&&(o.imgWidth=t.windowWidth-P(4*x.value.margin.both)-P(2*x.value.imageGap),o.imgWidth=o.imgWidth/2),o.imgHeight=o.imgWidth*n,r>0&&(0==e||e{t.imgWidth+="px",t.widthStyle=t.imgWidth,o>0&&(t.imgHeight=e)}))}})},N=()=>{B({success:e=>{x.value.list.forEach(((t,o)=>{if(0==o){var r=t.imgHeight/t.imgWidth;t.imgWidth=e.windowWidth-P(4*x.value.margin.both)-P(2*x.value.imageGap),t.imgWidth=t.imgWidth/2,t.imgHeight=t.imgWidth*r}else 1==o?(t.imgWidth=x.value.list[0].imgWidth,t.imgHeight=(x.value.list[0].imgHeight-P(2*x.value.imageGap))/2):o>1&&(t.imgWidth=(x.value.list[0].imgWidth-P(2*x.value.imageGap))/2,t.imgHeight=x.value.list[1].imgHeight)})),x.value.list.forEach(((e,t)=>{e.imgWidth+="px",e.imgHeight}))}})};return(e,t)=>{const o=R,n=i(l("app-link"),G),a=S;return s(),d(a,{class:m(["rubik-cube",f(r).mode]),style:g(f(w))},{default:u((()=>["row1-lt-of2-rt"==f(x).mode?(s(),c(p,{key:0},[b(a,{class:"template-left"},{default:u((()=>[b(n,{data:f(x).list[0].link,class:m(["item",f(x).mode]),style:g({marginRight:2*f(x).imageGap+"rpx",width:f(x).list[0].imgWidth,height:f(x).list[0].imgHeight+"px"})},{default:u((()=>[b(o,{src:f(v)(f(x).list[0].imageUrl),mode:"scaleToFill",style:g(f(x).list[0].pageItemStyle),"show-menu-by-longpress":!0},null,8,["src","style"])])),_:1},8,["data","class","style"])])),_:1}),b(a,{class:"template-right"},{default:u((()=>[(s(!0),c(p,null,h(f(x).list,((e,t)=>(s(),c(p,{key:t},[t>0?(s(),d(n,{key:0,data:e.link,class:m(["item",f(x).mode]),style:g({marginBottom:2*f(x).imageGap+"rpx",width:e.imgWidth,height:e.imgHeight+"px"})},{default:u((()=>[b(o,{src:f(v)(e.imageUrl),mode:"scaleToFill",style:g(e.pageItemStyle),"show-menu-by-longpress":!0},null,8,["src","style"])])),_:2},1032,["data","class","style"])):y("",!0)],64)))),128))])),_:1})],64)):"row1-lt-of1-tp-of2-bm"==f(x).mode?(s(),c(p,{key:1},[b(a,{class:"template-left"},{default:u((()=>[b(n,{data:f(x).list[0].link,class:m(["item",f(x).mode]),style:g({marginRight:2*f(x).imageGap+"rpx",width:f(x).list[0].imgWidth,height:f(x).list[0].imgHeight+"px"})},{default:u((()=>[b(o,{src:f(v)(f(x).list[0].imageUrl),mode:"scaleToFill",style:g(f(x).list[0].pageItemStyle),"show-menu-by-longpress":!0},null,8,["src","style"])])),_:1},8,["data","class","style"])])),_:1}),b(a,{class:"template-right"},{default:u((()=>[b(n,{data:f(x).list[1].link,class:m(["item",f(x).mode]),style:g({marginBottom:2*f(x).imageGap+"rpx",width:f(x).list[1].imgWidth,height:f(x).list[1].imgHeight+"px"})},{default:u((()=>[b(o,{src:f(v)(f(x).list[1].imageUrl),mode:"scaleToFill",style:g(f(x).list[1].pageItemStyle),"show-menu-by-longpress":!0},null,8,["src","style"])])),_:1},8,["data","class","style"]),b(a,{class:"template-bottom"},{default:u((()=>[(s(!0),c(p,null,h(f(x).list,((e,t)=>(s(),c(p,{key:t},[t>1?(s(),d(n,{key:0,data:e.link,class:m(["item",f(x).mode]),style:g({marginRight:2*f(x).imageGap+"rpx",width:e.imgWidth,height:e.imgHeight+"px"})},{default:u((()=>[b(o,{src:f(v)(e.imageUrl),mode:"scaleToFill",style:g(e.pageItemStyle),"show-menu-by-longpress":!0},null,8,["src","style"])])),_:2},1032,["data","class","style"])):y("",!0)],64)))),128))])),_:1})])),_:1})],64)):(s(!0),c(p,{key:2},h(f(x).list,((e,t)=>(s(),d(n,{class:m(["item",f(x).mode]),key:t,data:e.link,style:g({marginRight:2*f(x).imageGap+"rpx",marginBottom:2*f(x).imageGap+"rpx",width:e.widthStyle,height:e.imgHeight+"px"})},{default:u((()=>[b(o,{src:f(v)(e.imageUrl),mode:"scaleToFill",style:g(e.pageItemStyle),"show-menu-by-longpress":!0},null,8,["src","style"])])),_:2},1032,["class","data","style"])))),128))])),_:1},8,["class","style"])}}}),[["__scopeId","data-v-5d671723"]]),Q=t({__name:"index",props:["component","index","pullDownRefresh"],setup(e){const t=e,r=o(),m=n((()=>"decorate"==r.mode?r.value[t.index]:t.component)),x=n((()=>{var e="";return m.value.componentBgColor&&(e+="background-color:"+m.value.componentBgColor+";"),m.value.topRounded&&(e+="border-top-left-radius:"+2*m.value.topRounded+"rpx;"),m.value.topRounded&&(e+="border-top-right-radius:"+2*m.value.topRounded+"rpx;"),m.value.bottomRounded&&(e+="border-bottom-left-radius:"+2*m.value.bottomRounded+"rpx;"),m.value.bottomRounded&&(e+="border-bottom-right-radius:"+2*m.value.bottomRounded+"rpx;"),e}));E((()=>{w(),a((()=>m.value),((e,t)=>{e&&"HotArea"==e.componentName&&w()}))}));const w=()=>{"decorate"==r.mode&&""==m.value.imageUrl&&(m.value.imageUrl="static/resource/images/diy/figure.png",m.value.imgWidth=690,m.value.imgHeight=330)};return a((()=>t.pullDownRefresh),((e,t)=>{})),(e,t)=>{const o=R,n=i(l("app-link"),G),a=S;return s(),d(a,{style:g(f(x))},{default:u((()=>[b(a,{class:"simple-graph-wrap overflow-hidden relative leading-0"},{default:u((()=>[b(o,{style:g({height:f(m).imgHeight}),src:f(v)(f(m).imageUrl),mode:"widthFix","show-menu-by-longpress":!0,class:"w-full"},null,8,["style","src"]),"decorate"!=f(r).mode?(s(!0),c(p,{key:0},h(f(m).heatMapData,((e,t)=>(s(),d(n,{data:e.link,class:"absolute",key:t,style:g({width:e.width+"%",height:e.height+"%",left:e.left+"%",top:e.top+"%"})},null,8,["data","style"])))),128)):y("",!0)])),_:1})])),_:1},8,["style"])}}}); +/**! + * Sortable 1.15.0 + * @author RubaXa + * @author owenm + * @license MIT + */ +function ee(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,r)}return o}function te(e){for(var t=1;t=0||(n[o]=e[o]);return n}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,o)&&(n[o]=e[o])}return n}function ie(e){if("undefined"!=typeof window&&window.navigator)return!!navigator.userAgent.match(e)}var le=ie(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),se=ie(/Edge/i),de=ie(/firefox/i),ue=ie(/safari/i)&&!ie(/chrome/i)&&!ie(/android/i),ce=ie(/iP(ad|od|hone)/i),pe=ie(/chrome/i)&&ie(/android/i),he={capture:!1,passive:!1};function me(e,t,o){e.addEventListener(t,o,!le&&he)}function ge(e,t,o){e.removeEventListener(t,o,!le&&he)}function fe(e,t){if(t){if(">"===t[0]&&(t=t.substring(1)),e)try{if(e.matches)return e.matches(t);if(e.msMatchesSelector)return e.msMatchesSelector(t);if(e.webkitMatchesSelector)return e.webkitMatchesSelector(t)}catch(o){return!1}return!1}}function ve(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function be(e,t,o,r){if(e){o=o||document;do{if(null!=t&&(">"===t[0]?e.parentNode===o&&fe(e,t):fe(e,t))||r&&e===o)return e;if(e===o)break}while(e=ve(e))}return null}var ye,xe=/\s+/g;function we(e,t,o){if(e&&t)if(e.classList)e.classList[o?"add":"remove"](t);else{var r=(" "+e.className+" ").replace(xe," ").replace(" "+t+" "," ");e.className=(r+(o?" "+t:"")).replace(xe," ")}}function _e(e,t,o){var r=e&&e.style;if(r){if(void 0===o)return document.defaultView&&document.defaultView.getComputedStyle?o=document.defaultView.getComputedStyle(e,""):e.currentStyle&&(o=e.currentStyle),void 0===t?o:o[t];t in r||-1!==t.indexOf("webkit")||(t="-webkit-"+t),r[t]=o+("string"==typeof o?"":"px")}}function Se(e,t){var o="";if("string"==typeof e)o=e;else do{var r=_e(e,"transform");r&&"none"!==r&&(o=r+" "+o)}while(!t&&(e=e.parentNode));var n=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return n&&new n(o)}function De(e,t,o){if(e){var r=e.getElementsByTagName(t),n=0,a=r.length;if(o)for(;n=a:n<=a))return r;if(r===Ee())break;r=Oe(r,!1)}return!1}function ke(e,t,o,r){for(var n=0,a=0,i=e.children;a2&&void 0!==arguments[2]?arguments[2]:{},r=o.evt,n=ae(o,Xe);Fe.pluginEvent.bind(Mt)(e,t,te({dragEl:Ue,parentEl:Le,ghostEl:qe,rootEl:$e,nextEl:Ve,lastDownEl:Ke,cloneEl:Je,cloneHidden:Ze,dragStarted:ct,putSortable:nt,activeSortable:Mt.active,originalEvent:r,oldIndex:Qe,oldDraggableIndex:tt,newIndex:et,newDraggableIndex:ot,hideGhostForTarget:Nt,unhideGhostForTarget:Ot,cloneNowHidden:function(){Ze=!0},cloneNowShown:function(){Ze=!1},dispatchSortableEvent:function(e){Ge({sortable:t,name:e,originalEvent:r})}},n))};function Ge(e){!function(e){var t=e.sortable,o=e.rootEl,r=e.name,n=e.targetEl,a=e.cloneEl,i=e.toEl,l=e.fromEl,s=e.oldIndex,d=e.newIndex,u=e.oldDraggableIndex,c=e.newDraggableIndex,p=e.originalEvent,h=e.putSortable,m=e.extraEventProperties;if(t=t||o&&o[Pe]){var g,f=t.options,v="on"+r.charAt(0).toUpperCase()+r.substr(1);!window.CustomEvent||le||se?(g=document.createEvent("Event")).initEvent(r,!0,!0):g=new CustomEvent(r,{bubbles:!0,cancelable:!0}),g.to=i||o,g.from=l||o,g.item=n||o,g.clone=a,g.oldIndex=s,g.newIndex=d,g.oldDraggableIndex=u,g.newDraggableIndex=c,g.originalEvent=p,g.pullMode=h?h.lastPutMode:void 0;var b=te(te({},m),Fe.getEventProperties(r,t));for(var y in b)g[y]=b[y];o&&o.dispatchEvent(g),f[v]&&f[v].call(t,g)}}(te({putSortable:nt,cloneEl:Je,targetEl:Ue,rootEl:$e,oldIndex:Qe,oldDraggableIndex:tt,newIndex:et,newDraggableIndex:ot},e))}var Ue,Le,qe,$e,Ve,Ke,Je,Ze,Qe,et,tt,ot,rt,nt,at,it,lt,st,dt,ut,ct,pt,ht,mt,gt,ft=!1,vt=!1,bt=[],yt=!1,xt=!1,wt=[],_t=!1,St=[],Dt="undefined"!=typeof document,Et=ce,Rt=se||le?"cssFloat":"float",Ct=Dt&&!pe&&!ce&&"draggable"in document.createElement("div"),kt=function(){if(Dt){if(le)return!1;var e=document.createElement("x");return e.style.cssText="pointer-events:auto","auto"===e.style.pointerEvents}}(),Tt=function(e,t){var o=_e(e),r=parseInt(o.width)-parseInt(o.paddingLeft)-parseInt(o.paddingRight)-parseInt(o.borderLeftWidth)-parseInt(o.borderRightWidth),n=ke(e,0,t),a=ke(e,1,t),i=n&&_e(n),l=a&&_e(a),s=i&&parseInt(i.marginLeft)+parseInt(i.marginRight)+Re(n).width,d=l&&parseInt(l.marginLeft)+parseInt(l.marginRight)+Re(a).width;if("flex"===o.display)return"column"===o.flexDirection||"column-reverse"===o.flexDirection?"vertical":"horizontal";if("grid"===o.display)return o.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(n&&i.float&&"none"!==i.float){var u="left"===i.float?"left":"right";return!a||"both"!==l.clear&&l.clear!==u?"horizontal":"vertical"}return n&&("block"===i.display||"flex"===i.display||"table"===i.display||"grid"===i.display||s>=r&&"none"===o[Rt]||a&&"none"===o[Rt]&&s+d>r)?"vertical":"horizontal"},It=function(e){function t(e,o){return function(r,n,a,i){var l=r.options.group.name&&n.options.group.name&&r.options.group.name===n.options.group.name;if(null==e&&(o||l))return!0;if(null==e||!1===e)return!1;if(o&&"clone"===e)return e;if("function"==typeof e)return t(e(r,n,a,i),o)(r,n,a,i);var s=(o?r:n).options.group.name;return!0===e||"string"==typeof e&&e===s||e.join&&e.indexOf(s)>-1}}var o={},r=e.group;r&&"object"==oe(r)||(r={name:r}),o.name=r.name,o.checkPull=t(r.pull,!0),o.checkPut=t(r.put),o.revertClone=r.revertClone,e.group=o},Nt=function(){!kt&&qe&&_e(qe,"display","none")},Ot=function(){!kt&&qe&&_e(qe,"display","")};Dt&&!pe&&document.addEventListener("click",(function(e){if(vt)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),vt=!1,!1}),!0);var Wt=function(e){if(Ue){e=e.touches?e.touches[0]:e;var t=(n=e.clientX,a=e.clientY,bt.some((function(e){var t=e[Pe].options.emptyInsertThreshold;if(t&&!Te(e)){var o=Re(e),r=n>=o.left-t&&n<=o.right+t,l=a>=o.top-t&&a<=o.bottom+t;return r&&l?i=e:void 0}})),i);if(t){var o={};for(var r in e)e.hasOwnProperty(r)&&(o[r]=e[r]);o.target=o.rootEl=t,o.preventDefault=void 0,o.stopPropagation=void 0,t[Pe]._onDragOver(o)}}var n,a,i},At=function(e){Ue&&Ue.parentNode[Pe]._isOutsideThisEl(e.target)};function Mt(e,t){if(!e||!e.nodeType||1!==e.nodeType)throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(e));this.el=e,this.options=t=ne({},t),e[Pe]=this;var o={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(e.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return Tt(e,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(e,t){e.setData("Text",t.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:!1!==Mt.supportPointer&&"PointerEvent"in window&&!ue,emptyInsertThreshold:5};for(var r in Fe.initializePlugins(this,e,o),o)!(r in t)&&(t[r]=o[r]);for(var n in It(t),this)"_"===n.charAt(0)&&"function"==typeof this[n]&&(this[n]=this[n].bind(this));this.nativeDraggable=!t.forceFallback&&Ct,this.nativeDraggable&&(this.options.touchStartThreshold=1),t.supportPointer?me(e,"pointerdown",this._onTapStart):(me(e,"mousedown",this._onTapStart),me(e,"touchstart",this._onTapStart)),this.nativeDraggable&&(me(e,"dragover",this),me(e,"dragenter",this)),bt.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),ne(this,Be())}function Ht(e,t,o,r,n,a,i,l){var s,d,u=e[Pe],c=u.options.onMove;return!window.CustomEvent||le||se?(s=document.createEvent("Event")).initEvent("move",!0,!0):s=new CustomEvent("move",{bubbles:!0,cancelable:!0}),s.to=t,s.from=e,s.dragged=o,s.draggedRect=r,s.related=n||t,s.relatedRect=a||Re(t),s.willInsertAfter=l,s.originalEvent=i,e.dispatchEvent(s),c&&(d=c.call(u,s,i)),d}function Pt(e){e.draggable=!1}function Bt(){_t=!1}function jt(e){for(var t=e.tagName+e.className+e.src+e.href+e.textContent,o=t.length,r=0;o--;)r+=t.charCodeAt(o);return r.toString(36)}function zt(e){return setTimeout(e,0)}function Ft(e){return clearTimeout(e)}Mt.prototype={constructor:Mt,_isOutsideThisEl:function(e){this.el.contains(e)||e===this.el||(pt=null)},_getDirection:function(e,t){return"function"==typeof this.options.direction?this.options.direction.call(this,e,t,Ue):this.options.direction},_onTapStart:function(e){if(e.cancelable){var t=this,o=this.el,r=this.options,n=r.preventOnFilter,a=e.type,i=e.touches&&e.touches[0]||e.pointerType&&"touch"===e.pointerType&&e,l=(i||e).target,s=e.target.shadowRoot&&(e.path&&e.path[0]||e.composedPath&&e.composedPath()[0])||l,d=r.filter;if(function(e){St.length=0;var t=e.getElementsByTagName("input"),o=t.length;for(;o--;){var r=t[o];r.checked&&St.push(r)}}(o),!Ue&&!(/mousedown|pointerdown/.test(a)&&0!==e.button||r.disabled)&&!s.isContentEditable&&(this.nativeDraggable||!ue||!l||"SELECT"!==l.tagName.toUpperCase())&&!((l=be(l,r.draggable,o,!1))&&l.animated||Ke===l)){if(Qe=Ie(l),tt=Ie(l,r.draggable),"function"==typeof d){if(d.call(this,e,l,this))return Ge({sortable:t,rootEl:s,name:"filter",targetEl:l,toEl:o,fromEl:o}),Ye("filter",t,{evt:e}),void(n&&e.cancelable&&e.preventDefault())}else if(d&&(d=d.split(",").some((function(r){if(r=be(s,r.trim(),o,!1))return Ge({sortable:t,rootEl:r,name:"filter",targetEl:l,fromEl:o,toEl:o}),Ye("filter",t,{evt:e}),!0}))))return void(n&&e.cancelable&&e.preventDefault());r.handle&&!be(s,r.handle,o,!1)||this._prepareDragStart(e,i,l)}}},_prepareDragStart:function(e,t,o){var r,n=this,a=n.el,i=n.options,l=a.ownerDocument;if(o&&!Ue&&o.parentNode===a){var s=Re(o);if($e=a,Le=(Ue=o).parentNode,Ve=Ue.nextSibling,Ke=o,rt=i.group,Mt.dragged=Ue,at={target:Ue,clientX:(t||e).clientX,clientY:(t||e).clientY},dt=at.clientX-s.left,ut=at.clientY-s.top,this._lastX=(t||e).clientX,this._lastY=(t||e).clientY,Ue.style["will-change"]="all",r=function(){Ye("delayEnded",n,{evt:e}),Mt.eventCanceled?n._onDrop():(n._disableDelayedDragEvents(),!de&&n.nativeDraggable&&(Ue.draggable=!0),n._triggerDragStart(e,t),Ge({sortable:n,name:"choose",originalEvent:e}),we(Ue,i.chosenClass,!0))},i.ignore.split(",").forEach((function(e){De(Ue,e.trim(),Pt)})),me(l,"dragover",Wt),me(l,"mousemove",Wt),me(l,"touchmove",Wt),me(l,"mouseup",n._onDrop),me(l,"touchend",n._onDrop),me(l,"touchcancel",n._onDrop),de&&this.nativeDraggable&&(this.options.touchStartThreshold=4,Ue.draggable=!0),Ye("delayStart",this,{evt:e}),!i.delay||i.delayOnTouchOnly&&!t||this.nativeDraggable&&(se||le))r();else{if(Mt.eventCanceled)return void this._onDrop();me(l,"mouseup",n._disableDelayedDrag),me(l,"touchend",n._disableDelayedDrag),me(l,"touchcancel",n._disableDelayedDrag),me(l,"mousemove",n._delayedDragTouchMoveHandler),me(l,"touchmove",n._delayedDragTouchMoveHandler),i.supportPointer&&me(l,"pointermove",n._delayedDragTouchMoveHandler),n._dragStartTimer=setTimeout(r,i.delay)}}},_delayedDragTouchMoveHandler:function(e){var t=e.touches?e.touches[0]:e;Math.max(Math.abs(t.clientX-this._lastX),Math.abs(t.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){Ue&&Pt(Ue),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var e=this.el.ownerDocument;ge(e,"mouseup",this._disableDelayedDrag),ge(e,"touchend",this._disableDelayedDrag),ge(e,"touchcancel",this._disableDelayedDrag),ge(e,"mousemove",this._delayedDragTouchMoveHandler),ge(e,"touchmove",this._delayedDragTouchMoveHandler),ge(e,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(e,t){t=t||"touch"==e.pointerType&&e,!this.nativeDraggable||t?this.options.supportPointer?me(document,"pointermove",this._onTouchMove):me(document,t?"touchmove":"mousemove",this._onTouchMove):(me(Ue,"dragend",this),me($e,"dragstart",this._onDragStart));try{document.selection?zt((function(){document.selection.empty()})):window.getSelection().removeAllRanges()}catch(o){}},_dragStarted:function(e,t){if(ft=!1,$e&&Ue){Ye("dragStarted",this,{evt:t}),this.nativeDraggable&&me(document,"dragover",At);var o=this.options;!e&&we(Ue,o.dragClass,!1),we(Ue,o.ghostClass,!0),Mt.active=this,e&&this._appendGhost(),Ge({sortable:this,name:"start",originalEvent:t})}else this._nulling()},_emulateDragOver:function(){if(it){this._lastX=it.clientX,this._lastY=it.clientY,Nt();for(var e=document.elementFromPoint(it.clientX,it.clientY),t=e;e&&e.shadowRoot&&(e=e.shadowRoot.elementFromPoint(it.clientX,it.clientY))!==t;)t=e;if(Ue.parentNode[Pe]._isOutsideThisEl(e),t)do{if(t[Pe]){if(t[Pe]._onDragOver({clientX:it.clientX,clientY:it.clientY,target:e,rootEl:t})&&!this.options.dragoverBubble)break}e=t}while(t=t.parentNode);Ot()}},_onTouchMove:function(e){if(at){var t=this.options,o=t.fallbackTolerance,r=t.fallbackOffset,n=e.touches?e.touches[0]:e,a=qe&&Se(qe,!0),i=qe&&a&&a.a,l=qe&&a&&a.d,s=Et&>&&Ne(gt),d=(n.clientX-at.clientX+r.x)/(i||1)+(s?s[0]-wt[0]:0)/(i||1),u=(n.clientY-at.clientY+r.y)/(l||1)+(s?s[1]-wt[1]:0)/(l||1);if(!Mt.active&&!ft){if(o&&Math.max(Math.abs(n.clientX-this._lastX),Math.abs(n.clientY-this._lastY))r.right+n||e.clientX<=r.right&&e.clientY>r.bottom&&e.clientX>=r.left:e.clientX>r.right&&e.clientY>r.top||e.clientX<=r.right&&e.clientY>r.bottom+n}(e,n,this)&&!g.animated){if(g===Ue)return N(!1);if(g&&a===e.target&&(i=g),i&&(o=Re(i)),!1!==Ht($e,a,Ue,t,i,o,e,!!i))return I(),g&&g.nextSibling?a.insertBefore(Ue,g.nextSibling):a.appendChild(Ue),Le=a,O(),N(!0)}else if(g&&function(e,t,o){var r=Re(ke(o.el,0,o.options,!0)),n=10;return t?e.clientXu+d*a/2:sc-mt)return-ht}else if(s>u+d*(1-n)/2&&sc-d*a/2))return s>u+d/2?1:-1;return 0}(e,i,o,n,w?1:l.swapThreshold,null==l.invertedSwapThreshold?l.swapThreshold:l.invertedSwapThreshold,xt,pt===i),0!==v){var E=Ie(Ue);do{E-=v,y=Le.children[E]}while(y&&("none"===_e(y,"display")||y===qe))}if(0===v||y===i)return N(!1);pt=i,ht=v;var R=i.nextElementSibling,C=!1,k=Ht($e,a,Ue,t,i,o,e,C=1===v);if(!1!==k)return 1!==k&&-1!==k||(C=1===k),_t=!0,setTimeout(Bt,30),I(),C&&!R?a.appendChild(Ue):i.parentNode.insertBefore(Ue,C?R:i),S&&Me(S,0,D-S.scrollTop),Le=Ue.parentNode,void 0===b||xt||(mt=Math.abs(b-Re(i)[_])),O(),N(!0)}if(a.contains(Ue))return N(!1)}return!1}function T(l,s){Ye(l,h,te({evt:e,isOwner:u,axis:n?"vertical":"horizontal",revert:r,dragRect:t,targetRect:o,canSort:c,fromSortable:p,target:i,completed:N,onMove:function(o,r){return Ht($e,a,Ue,t,o,Re(o),e,r)},changed:O},s))}function I(){T("dragOverAnimationCapture"),h.captureAnimationState(),h!==p&&p.captureAnimationState()}function N(t){return T("dragOverCompleted",{insertion:t}),t&&(u?d._hideClone():d._showClone(h),h!==p&&(we(Ue,nt?nt.options.ghostClass:d.options.ghostClass,!1),we(Ue,l.ghostClass,!0)),nt!==h&&h!==Mt.active?nt=h:h===Mt.active&&nt&&(nt=null),p===h&&(h._ignoreWhileAnimating=i),h.animateAll((function(){T("dragOverAnimationComplete"),h._ignoreWhileAnimating=null})),h!==p&&(p.animateAll(),p._ignoreWhileAnimating=null)),(i===Ue&&!Ue.animated||i===a&&!i.animated)&&(pt=null),l.dragoverBubble||e.rootEl||i===document||(Ue.parentNode[Pe]._isOutsideThisEl(e.target),!t&&Wt(e)),!l.dragoverBubble&&e.stopPropagation&&e.stopPropagation(),m=!0}function O(){et=Ie(Ue),ot=Ie(Ue,l.draggable),Ge({sortable:h,name:"change",toEl:a,newIndex:et,newDraggableIndex:ot,originalEvent:e})}},_ignoreWhileAnimating:null,_offMoveEvents:function(){ge(document,"mousemove",this._onTouchMove),ge(document,"touchmove",this._onTouchMove),ge(document,"pointermove",this._onTouchMove),ge(document,"dragover",Wt),ge(document,"mousemove",Wt),ge(document,"touchmove",Wt)},_offUpEvents:function(){var e=this.el.ownerDocument;ge(e,"mouseup",this._onDrop),ge(e,"touchend",this._onDrop),ge(e,"pointerup",this._onDrop),ge(e,"touchcancel",this._onDrop),ge(document,"selectstart",this)},_onDrop:function(e){var t=this.el,o=this.options;et=Ie(Ue),ot=Ie(Ue,o.draggable),Ye("drop",this,{evt:e}),Le=Ue&&Ue.parentNode,et=Ie(Ue),ot=Ie(Ue,o.draggable),Mt.eventCanceled||(ft=!1,xt=!1,yt=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),Ft(this.cloneId),Ft(this._dragStartId),this.nativeDraggable&&(ge(document,"drop",this),ge(t,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),ue&&_e(document.body,"user-select",""),_e(Ue,"transform",""),e&&(ct&&(e.cancelable&&e.preventDefault(),!o.dropBubble&&e.stopPropagation()),qe&&qe.parentNode&&qe.parentNode.removeChild(qe),($e===Le||nt&&"clone"!==nt.lastPutMode)&&Je&&Je.parentNode&&Je.parentNode.removeChild(Je),Ue&&(this.nativeDraggable&&ge(Ue,"dragend",this),Pt(Ue),Ue.style["will-change"]="",ct&&!ft&&we(Ue,nt?nt.options.ghostClass:this.options.ghostClass,!1),we(Ue,this.options.chosenClass,!1),Ge({sortable:this,name:"unchoose",toEl:Le,newIndex:null,newDraggableIndex:null,originalEvent:e}),$e!==Le?(et>=0&&(Ge({rootEl:Le,name:"add",toEl:Le,fromEl:$e,originalEvent:e}),Ge({sortable:this,name:"remove",toEl:Le,originalEvent:e}),Ge({rootEl:Le,name:"sort",toEl:Le,fromEl:$e,originalEvent:e}),Ge({sortable:this,name:"sort",toEl:Le,originalEvent:e})),nt&&nt.save()):et!==Qe&&et>=0&&(Ge({sortable:this,name:"update",toEl:Le,originalEvent:e}),Ge({sortable:this,name:"sort",toEl:Le,originalEvent:e})),Mt.active&&(null!=et&&-1!==et||(et=Qe,ot=tt),Ge({sortable:this,name:"end",toEl:Le,originalEvent:e}),this.save())))),this._nulling()},_nulling:function(){Ye("nulling",this),$e=Ue=Le=qe=Ve=Je=Ke=Ze=at=it=ct=et=ot=Qe=tt=pt=ht=nt=rt=Mt.dragged=Mt.ghost=Mt.clone=Mt.active=null,St.forEach((function(e){e.checked=!0})),St.length=lt=st=0},handleEvent:function(e){switch(e.type){case"drop":case"dragend":this._onDrop(e);break;case"dragenter":case"dragover":Ue&&(this._onDragOver(e),function(e){e.dataTransfer&&(e.dataTransfer.dropEffect="move");e.cancelable&&e.preventDefault()}(e));break;case"selectstart":e.preventDefault()}},toArray:function(){for(var e,t=[],o=this.el.children,r=0,n=o.length,a=this.options;r-1&&e%1==0&&e<=9007199254740991}(e.length)&&!function(e){if(!fo(e))return!1;var t=po(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}(e)}function Eo(e,t,o){if(!fo(o))return!1;var r=typeof t;return!!("number"==r?Do(o)&&function(e,t){var o=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==o||"symbol"!=o&&So.test(e))&&e>-1&&e%1==0&&e"decorate"==r.mode?r:t.data));return E((()=>{if("decorate"==r.mode){var e=document.getElementById("componentList");const t=Mt.create(e,{group:"draggable-element",animation:200,onEnd:e=>{let o=r.value[e.oldIndex];r.value.splice(e.oldIndex,1),r.value.splice(e.newIndex,0,o),j((()=>{t.sort(Io(r.value.length).map((e=>e.toString()))),r.postMessage(e.newIndex,r.value[e.newIndex])}))}})}})),(e,o)=>{const n=i(l("diy-article"),L),v=i(l("diy-graphic-nav"),q),x=i(l("diy-horz-blank"),$),w=i(l("diy-image-ads"),V),_=i(l("diy-member-info"),K),D=i(l("diy-text"),J),E=i(l("diy-rubik-cube"),Z),R=i(l("diy-hot-area"),Q),C=S,k=i(l("tabbar"),F);return s(),d(C,{class:"diy-group",id:"componentList"},{default:u((()=>[(s(!0),c(p,null,h(f(a).value,((e,o)=>(s(),d(C,{key:e.id,onClick:t=>f(r).changeCurrentIndex(o,e),class:m(["draggable-element relative cursor-move",{selected:f(r).currentIndex==o,decorate:"decorate"==f(r).mode}]),style:g(e.pageStyle)},{default:u((()=>["Article"==e.componentName?(s(),d(n,{key:0,component:e,index:o,pullDownRefresh:t.pullDownRefresh},null,8,["component","index","pullDownRefresh"])):y("",!0),"GraphicNav"==e.componentName?(s(),d(v,{key:1,component:e,index:o,pullDownRefresh:t.pullDownRefresh},null,8,["component","index","pullDownRefresh"])):y("",!0),"HorzBlank"==e.componentName?(s(),d(x,{key:2,component:e,index:o,pullDownRefresh:t.pullDownRefresh},null,8,["component","index","pullDownRefresh"])):y("",!0),"ImageAds"==e.componentName?(s(),d(w,{key:3,component:e,index:o,pullDownRefresh:t.pullDownRefresh},null,8,["component","index","pullDownRefresh"])):y("",!0),"MemberInfo"==e.componentName?(s(),d(_,{key:4,component:e,index:o,pullDownRefresh:t.pullDownRefresh},null,8,["component","index","pullDownRefresh"])):y("",!0),"Text"==e.componentName?(s(),d(D,{key:5,component:e,index:o,pullDownRefresh:t.pullDownRefresh},null,8,["component","index","pullDownRefresh"])):y("",!0),"RubikCube"==e.componentName?(s(),d(E,{key:6,component:e,index:o,pullDownRefresh:t.pullDownRefresh},null,8,["component","index","pullDownRefresh"])):y("",!0),"HotArea"==e.componentName?(s(),d(R,{key:7,component:e,index:o,pullDownRefresh:t.pullDownRefresh},null,8,["component","index","pullDownRefresh"])):y("",!0)])),_:2},1032,["onClick","class","style"])))),128)),"decorate"!=f(r).mode&&f(a).global.bottomTabBarSwitch?(s(),c(p,{key:0},[b(C,{class:"pt-[20rpx]"}),b(k)],64)):y("",!0)])),_:1})}}}),[["__scopeId","data-v-26c6536e"]]),Oo=t({__name:"index",props:["data","pullDownRefresh"],setup(e){const t=e;return(e,o)=>{const r=i(l("diy-group"),No),n=S;return s(),d(n,null,{default:u((()=>[x(" 固定模板示例,我也可以装修 "),b(r,{data:t.data,pullDownRefresh:t.pullDownRefresh},null,8,["data","pullDownRefresh"])])),_:1})}}}),Wo=Y(t({__name:"index",props:["data","pullDownRefresh"],setup(e){const t=e;return(e,o)=>{const r=i(l("fixed-demo-index"),Oo),n=S;return s(),d(n,{class:"fixed-group"},{default:u((()=>["demo-index"==t.data.global.component?(s(),d(r,{key:0,data:t.data,pullDownRefresh:t.pullDownRefresh},null,8,["data","pullDownRefresh"])):y("",!0)])),_:1})}}}),[["__scopeId","data-v-3b1723ce"]]);export{No as _,Wo as a}; diff --git a/niucloud/public/wap/assets/index.1d16afd8.js b/niucloud/public/wap/assets/index.1d16afd8.js deleted file mode 100644 index ba4cef598..000000000 --- a/niucloud/public/wap/assets/index.1d16afd8.js +++ /dev/null @@ -1,8 +0,0 @@ -import{d as e,u as t,c as o,an as n,h as r,i as a,w as l,C as i,D as s,l as u,n as c,q as d,m as p,p as f,E as h,r as m,M as g,O as v,N as b,F as y,t as x,j as w,R as _,H as S,K as D,a1 as E,aG as C,aH as R,S as k,U as T,aI as I,am as O,aJ as N,aq as A,J as M,X as P,aK as j}from"./index-5bb08350.js";import{_ as z}from"./_plugin-vue_export-helper.1b428a4d.js";import{_ as B}from"./u-icon.461524ba.js";import{_ as X,a as F}from"./tabbar.f7ee8f1f.js";import{c as Y}from"./article.1722ca18.js";import{_ as W}from"./app-link.vue_vue_type_script_setup_true_lang.b08a40da.js";import{_ as H}from"./u-avatar.0ea3924d.js";const L=e({__name:"index",props:["component","index","pullDownRefresh"],setup(e){const p=e,f=t(),h=o((()=>"decorate"==f.mode?f.value[p.index]:p.component)),m=o((()=>{var e="";return e+="height:"+2*h.value.height+"rpx;",h.value.componentBgColor&&(e+="background-color:"+h.value.componentBgColor+";"),e}));return n((()=>p.pullDownRefresh),((e,t)=>{})),(e,t)=>{const o=d;return r(),a(o,{style:c(u(m))},{default:l((()=>[i(" 固定模板示例,我也可以装修 我定义的数据源:"+s(u(h).componentName),1)])),_:1},8,["style"])}}}),U=z(e({__name:"index",props:["component","index","pullDownRefresh"],setup(e){const t=e;return(e,o)=>{const n=p(f("fixed-demo-index"),L),i=d;return r(),a(i,{class:"fixed-group"},{default:l((()=>["DemoIndex"==t.component.componentName?(r(),a(n,{key:0,component:t.component,index:t.index,pullDownRefresh:t.pullDownRefresh},null,8,["component","index","pullDownRefresh"])):h("",!0)])),_:1})}}}),[["__scopeId","data-v-089d8afe"]]),G=z(e({__name:"index",props:["component","index","pullDownRefresh"],setup(e){const D=e,E=t(),C=m([]),R=o((()=>"decorate"==E.mode?E.value[D.index]:D.component)),k=o((()=>{var e="";return R.value.componentBgColor&&(e+="background-color:"+R.value.componentBgColor+";"),R.value.topRounded&&(e+="border-top-left-radius:"+2*R.value.topRounded+"rpx;"),R.value.topRounded&&(e+="border-top-right-radius:"+2*R.value.topRounded+"rpx;"),R.value.bottomRounded&&(e+="border-bottom-left-radius:"+2*R.value.bottomRounded+"rpx;"),R.value.bottomRounded&&(e+="border-bottom-right-radius:"+2*R.value.bottomRounded+"rpx;"),e})),T=o((()=>{var e="";return R.value.elementBgColor&&(e+="background-color:"+R.value.elementBgColor+";"),R.value.topElementRounded&&(e+="border-top-left-radius:"+2*R.value.topElementRounded+"rpx;"),R.value.topElementRounded&&(e+="border-top-right-radius:"+2*R.value.topElementRounded+"rpx;"),R.value.bottomElementRounded&&(e+="border-bottom-left-radius:"+2*R.value.bottomElementRounded+"rpx;"),R.value.bottomElementRounded&&(e+="border-bottom-right-radius:"+2*R.value.bottomElementRounded+"rpx;"),e}));n((()=>D.pullDownRefresh),((e,t)=>{}));(()=>{if("decorate"==E.mode){let e={image:"",summary:"文章摘要",title:"文章标题",create_time:"2023-03-28 09:00:00"};C.value.push(e),C.value.push(e)}else(()=>{let e={};"diy"==R.value.sources?e.ids=R.value.articleIds:e.limit=R.value.count,Y(e).then((e=>{C.value=e.data}))})()})();return(e,t)=>{const o=p(f("u-icon"),B),n=p(f("u--image"),X),m=d,D=S;return r(),a(m,{style:c(u(k))},{default:l((()=>[(r(!0),g(v,null,b(C.value,((e,t)=>(r(),a(m,{key:e.id,class:y(["item flex align-center p-[20rpx]",{"border-solid border-t-0 border-l-0 border-r-0 border-b border-gray-200 mb-[20rpx]":C.value.length-1!==t}]),onClick:t=>{return o=e.id,void _({url:"/pages/article/detail",param:{id:o}});var o},style:c(u(T))},{default:l((()=>[e.image?(r(),a(n,{key:0,width:"260rpx",height:"200rpx",src:u(x)(e.image),model:"aspectFill"},{error:l((()=>[w(o,{name:"photo",color:"#999",size:"50"})])),_:2},1032,["src"])):h("",!0),w(m,{class:"flex-1 flex flex-col justify-between ml-[20rpx]"},{default:l((()=>[w(m,{class:"text-[32rpx] leading-[1.3] multi-hidden mt-[4rpx]"},{default:l((()=>[i(s(e.title),1)])),_:2},1024),w(m,{class:"text-[28rpx] using-hidden mb-[auto] mt-[20rpx] text-gray-500"},{default:l((()=>[i(s(e.summary),1)])),_:2},1024),w(m,{class:"text-[24rpx] text-gray-400 flex justify-between mt-[10rpx]"},{default:l((()=>[w(D,null,{default:l((()=>[i(s(e.create_time),1)])),_:2},1024)])),_:2},1024)])),_:2},1024)])),_:2},1032,["class","onClick","style"])))),128))])),_:1},8,["style"])}}}),[["__scopeId","data-v-e40f9828"]]),q=z(e({__name:"index",props:["component","index","pullDownRefresh"],setup(e){const _=e,T=t(),I=o((()=>"decorate"==T.mode?T.value[_.index]:_.component)),O=o((()=>{var e="";return I.value.componentBgColor&&(e+="background-color:"+I.value.componentBgColor+";"),I.value.topRounded&&(e+="border-top-left-radius:"+2*I.value.topRounded+"rpx;"),I.value.topRounded&&(e+="border-top-right-radius:"+2*I.value.topRounded+"rpx;"),I.value.bottomRounded&&(e+="border-bottom-left-radius:"+2*I.value.bottomRounded+"rpx;"),I.value.bottomRounded&&(e+="border-bottom-right-radius:"+2*I.value.bottomRounded+"rpx;"),e}));n((()=>_.pullDownRefresh),((e,t)=>{}));const N=m(0),A=e=>{N.value=e.detail.current},M=(e,t)=>{let o=I.value.pageCount*I.value.rowCount,n=!0;return n=e>=[(t-1)*o]&&e<[t*o],n},P=m("");D((()=>{j(),"decorate"==T.mode&&n((()=>I.value),((e,t)=>{e&&"GraphicNav"==e.componentName&&j()}))}));const j=()=>{var e;"decorate"==T.mode&&I.value.list.forEach(((e,t)=>{""==e.imageUrl&&(e.imageUrl="static/resource/images/diy/figure.png")})),e=0,"graphic"==I.value.mode?e=(49+I.value.imageSize)*I.value.pageCount:"img"==I.value.mode?e=(22+I.value.imageSize)*I.value.pageCount:"text"==I.value.mode&&(e=43*I.value.pageCount),P.value=2*e+"rpx"};return(e,t)=>{const o=E,n=S,m=d,_=p(f("u-icon"),B),D=p(f("app-link"),W),T=C,N=R,j=k;return r(),a(m,{style:c(u(O))},{default:l((()=>[u(I).navTitle?(r(),g("div",{key:0,class:"py-[30rpx] px-[32rpx] text-[30rpx]",style:c({fontWeight:u(I).font.weight,color:u(I).font.color})},s(u(I).navTitle),5)):h("",!0),"vertical"==u(I).layout?(r(),a(m,{key:1,class:"graphic-nav"},{default:l((()=>[(r(!0),g(v,null,b(u(I).list,((e,t)=>(r(),a(m,{class:"graphic-nav-item",key:e.id},{default:l((()=>[w(D,{data:e.link,class:y(["flex items-center justify-between py-[30rpx] px-[32rpx]",[0==t?"border-t-0":"border-t"]])},{default:l((()=>["text"!=u(I).mode?(r(),a(m,{key:0,class:"graphic-img relative flex items-center w-10 h-10 mr-[20rpx]",style:c({width:2*u(I).imageSize+"rpx",height:2*u(I).imageSize+"rpx"})},{default:l((()=>[w(o,{src:u(x)(e.imageUrl),mode:"aspectFill",style:c({maxWidth:2*u(I).imageSize+"rpx",maxHeight:2*u(I).imageSize+"rpx",borderRadius:2*u(I).aroundRadius+"rpx"})},null,8,["src","style"]),e.label.control?(r(),a(n,{key:0,class:"tag absolute -top-[10rpx] -right-[24rpx] text-white rounded-[24rpx] rounded-bl-none transform scale-80 py-1 px-2 text-xs",style:c({color:e.label.textColor,backgroundImage:"linear-gradient("+e.label.bgColorStart+","+e.label.bgColorEnd+")"})},{default:l((()=>[i(s(e.label.text),1)])),_:2},1032,["style"])):h("",!0)])),_:2},1032,["style"])):h("",!0),"img"!=u(I).mode?(r(),a(n,{key:1,class:"graphic-text w-full truncate leading-normal",style:c({fontSize:2*u(I).font.size+"rpx",fontWeight:u(I).font.weight,color:u(I).font.color})},{default:l((()=>[i(s(e.title),1)])),_:2},1032,["style"])):h("",!0),w(_,{name:"arrow-right",color:"#CACACA"})])),_:2},1032,["data","class"])])),_:2},1024)))),128))])),_:1})):"horizontal"==u(I).layout&&"pageSlide"==u(I).showStyle?(r(),a(N,{key:2,class:"graphic-nav p-2 box-border relative",circular:"","indicator-dots":!1,style:c({height:P.value}),onChange:A},{default:l((()=>[(r(!0),g(v,null,b(Math.ceil(u(I).list.length/(u(I).pageCount*u(I).rowCount)),((e,t)=>(r(),a(T,{class:"graphic-nav-wrap flex flex-wrap"},{default:l((()=>[(r(!0),g(v,null,b(u(I).list,((t,d)=>(r(),g(v,null,[M(d,e)?(r(),a(m,{class:y(["graphic-nav-item",[u(I).mode]]),key:t.id,style:c({width:100/u(I).rowCount+"%"})},{default:l((()=>[w(D,{data:t.link,class:"flex flex-col items-center box-border py-2"},{default:l((()=>["text"!=u(I).mode?(r(),a(m,{key:0,class:"graphic-img relative flex items-center justify-center w-10 h-10",style:c({width:2*u(I).imageSize+"rpx",height:2*u(I).imageSize+"rpx"})},{default:l((()=>[w(o,{src:u(x)(t.imageUrl),mode:"aspectFill",style:c({maxWidth:2*u(I).imageSize+"rpx",maxHeight:2*u(I).imageSize+"rpx",borderRadius:2*u(I).aroundRadius+"rpx"})},null,8,["src","style"]),t.label.control?(r(),a(n,{key:0,class:"tag absolute -top-[10rpx] -right-[24rpx] text-white rounded-[24rpx] rounded-bl-none transform scale-80 py-1 px-2 text-xs",style:c({color:t.label.textColor,backgroundImage:"linear-gradient("+t.label.bgColorStart+","+t.label.bgColorEnd+")"})},{default:l((()=>[i(s(t.label.text),1)])),_:2},1032,["style"])):h("",!0)])),_:2},1032,["style"])):h("",!0),"img"!=u(I).mode?(r(),a(n,{key:1,class:y(["graphic-text w-full text-center truncate leading-normal",{"pt-1.5":"text"!=u(I).mode}]),style:c({fontSize:2*u(I).font.size+"rpx",fontWeight:u(I).font.weight,color:u(I).font.color})},{default:l((()=>[i(s(t.title),1)])),_:2},1032,["class","style"])):h("",!0)])),_:2},1032,["data"])])),_:2},1032,["class","style"])):h("",!0)],64)))),256))])),_:2},1024)))),256))])),_:1},8,["style"])):(r(),a(j,{key:3,"scroll-x":"singleSlide"==u(I).showStyle,class:y(["graphic-nav","graphic-nav-"+u(I).showStyle])},{default:l((()=>[(r(!0),g(v,null,b(u(I).list,((e,t)=>(r(),a(m,{class:y(["graphic-nav-item",{"flex-shrink-0":"singleSlide"==u(I).showStyle}]),key:e.id,style:c({width:100/u(I).rowCount+"%"})},{default:l((()=>[w(D,{data:e.link,class:"flex flex-col items-center box-border py-2"},{default:l((()=>["text"!=u(I).mode?(r(),a(m,{key:0,class:"graphic-img relative flex items-center justify-center w-10 h-10",style:c({width:2*u(I).imageSize+"rpx",height:2*u(I).imageSize+"rpx"})},{default:l((()=>[w(o,{src:u(x)(e.imageUrl),mode:"aspectFill",style:c({maxWidth:2*u(I).imageSize+"rpx",maxHeight:2*u(I).imageSize+"rpx",borderRadius:2*u(I).aroundRadius+"rpx"})},null,8,["src","style"]),e.label.control?(r(),a(n,{key:0,class:y(["tag absolute -top-[10rpx] -right-[24rpx] text-white rounded-[24rpx] rounded-bl-none transform scale-80 py-1 px-2 text-xs"]),style:c({color:e.label.textColor,backgroundImage:"linear-gradient("+e.label.bgColorStart+","+e.label.bgColorEnd+")"})},{default:l((()=>[i(s(e.label.text),1)])),_:2},1032,["style"])):h("",!0)])),_:2},1032,["style"])):h("",!0),"img"!=u(I).mode?(r(),a(n,{key:1,class:y(["graphic-text w-full text-center truncate leading-normal",{"pt-1.5":"text"!=u(I).mode}]),style:c({fontSize:2*u(I).font.size+"rpx",fontWeight:u(I).font.weight,color:u(I).font.color})},{default:l((()=>[i(s(e.title),1)])),_:2},1032,["class","style"])):h("",!0)])),_:2},1032,["data"])])),_:2},1032,["class","style"])))),128))])),_:1},8,["scroll-x","class"]))])),_:1},8,["style"])}}}),[["__scopeId","data-v-b36514a1"]]),$=e({__name:"index",props:["component","index","pullDownRefresh"],setup(e){const l=e,i=t(),s=o((()=>"decorate"==i.mode?i.value[l.index]:l.component)),p=o((()=>{var e="";return e+="height:"+2*s.value.height+"rpx;",s.value.componentBgColor&&(e+="background-color:"+s.value.componentBgColor+";"),e}));return n((()=>l.pullDownRefresh),((e,t)=>{})),(e,t)=>{const o=d;return r(),a(o,{style:c(u(p))},null,8,["style"])}}}),V=e({__name:"index",props:["component","index","pullDownRefresh"],setup(e){const i=e,s=t(),h=o((()=>"decorate"==s.mode?s.value[i.index]:i.component)),y=o((()=>{var e="";return h.value.componentBgColor&&(e+="background-color:"+h.value.componentBgColor+";"),e})),_=o((()=>{var e="";return h.value.topRounded&&(e+="border-top-left-radius:"+2*h.value.topRounded+"rpx;"),h.value.topRounded&&(e+="border-top-right-radius:"+2*h.value.topRounded+"rpx;"),h.value.bottomRounded&&(e+="border-bottom-left-radius:"+2*h.value.bottomRounded+"rpx;"),h.value.bottomRounded&&(e+="border-bottom-right-radius:"+2*h.value.bottomRounded+"rpx;"),e}));n((()=>i.pullDownRefresh),((e,t)=>{}));const S=o((()=>2*h.value.imageHeight+"rpx")),k=m(0),T=e=>{k.value=e.detail.current};D((()=>{I(),"decorate"==s.mode&&n((()=>h.value),((e,t)=>{e&&"ImageAds"==e.componentName&&I()}))}));const I=()=>{"decorate"==s.mode&&h.value.list.forEach(((e,t)=>{""==e.imageUrl&&(e.imageUrl="static/resource/images/diy/figure.png",e.imgWidth=690,e.imgHeight=330)}))};return(e,t)=>{const o=E,n=p(f("app-link"),W),i=d,s=C,m=R;return r(),a(i,{class:"image-ads",style:c(u(y))},{default:l((()=>[1==u(h).list.length?(r(),a(i,{key:0,class:"leading-0 overflow-hidden",style:c(u(_))},{default:l((()=>[w(n,{data:u(h).list[0].link},{default:l((()=>[w(o,{src:u(x)(u(h).list[0].imageUrl),style:c({height:u(S)}),mode:"scaleToFill",class:"w-full","show-menu-by-longpress":!0},null,8,["src","style"])])),_:1},8,["data"])])),_:1},8,["style"])):(r(),a(m,{key:1,class:"swiper",style:c({height:u(S)}),autoplay:"true",circular:"true",onChange:T},{default:l((()=>[(r(!0),g(v,null,b(u(h).list,(e=>(r(),a(s,{class:"swiper-item",key:e.id,style:c(u(_))},{default:l((()=>[w(n,{data:e.link},{default:l((()=>[w(i,{class:"item",style:c({height:u(S)})},{default:l((()=>[w(o,{src:u(x)(e.imageUrl),mode:"scaleToFill",class:"w-full h-full","show-menu-by-longpress":!0},null,8,["src"])])),_:2},1032,["style"])])),_:2},1032,["data"])])),_:2},1032,["style"])))),128))])),_:1},8,["style"]))])),_:1},8,["style"])}}}),K=z(e({__name:"index",props:["component","index","pullDownRefresh"],setup(e){const h=e,g=t(),v=o((()=>"decorate"==g.mode?g.value[h.index]:h.component)),b=o((()=>{var e="";return v.value.componentBgColor&&(e+="background-color:"+v.value.componentBgColor+";"),v.value.bgUrl&&(e+="background-image:url("+x(v.value.bgUrl)+");",e+="background-size: 100%;",e+="background-repeat: no-repeat;"),v.value.topRounded&&(e+="border-top-left-radius:"+2*v.value.topRounded+"rpx;"),v.value.topRounded&&(e+="border-top-right-radius:"+2*v.value.topRounded+"rpx;"),v.value.bottomRounded&&(e+="border-bottom-left-radius:"+2*v.value.bottomRounded+"rpx;"),v.value.bottomRounded&&(e+="border-bottom-right-radius:"+2*v.value.bottomRounded+"rpx;"),e}));n((()=>h.pullDownRefresh),((e,t)=>{}));const y=T(),{query:D}=I(location.href);D.code&&O()&&N({code:D.code}).then((e=>{y.getMemberInfo()}));const E=o((()=>"decorate"==g.mode?{headimg:"",nickname:"昵称",balance:0,point:0,money:0,member_no:"NIU0000021"}:y.info)),C=o((()=>{if(E.value){let e=parseFloat(E.value.balance)+parseFloat(E.value.money);return A(e.toString())}return 0})),R=()=>{P().setLoginBack({url:"/pages/member/index"})};m(!1);const k=()=>{O()?P().getAuthCode("snsapi_userinfo"):_({url:"/pages/member/personal"})};return(e,t)=>{const o=p(f("u-avatar"),H),n=d,h=S,m=p(f("app-link"),W);return r(),a(n,{style:c(u(b))},{default:l((()=>[w(n,{class:"pt-[34rpx] member-info"},{default:l((()=>[u(E)?(r(),a(n,{key:0,class:"flex ml-[32rpx] mr-[52rpx] items-center relative"},{default:l((()=>[w(o,{src:u(x)(u(E).headimg),size:"55",leftIcon:"none",onClick:k},null,8,["src"]),w(n,{class:"ml-[22rpx]"},{default:l((()=>[w(n,{class:"text-[#222222] truncate w-[430rpx] font-bold text-lg",style:c({color:u(v).textColor})},{default:l((()=>[i(s(u(E).nickname),1)])),_:1},8,["style"]),w(n,{class:"text-[#696B70] text-[24rpx] mt-[10rpx]",style:c({color:u(v).textColor})},{default:l((()=>[i(" UID:"+s(u(E).member_no),1)])),_:1},8,["style"])])),_:1}),w(n,{class:"set-icon flex items-center absolute right-0 top-2"},{default:l((()=>[w(m,{url:"/pages/setting/index"},{default:l((()=>[w(h,{class:"iconfont iconshezhi text-[1.6rem] ml-[10rpx]",style:c({color:u(v).textColor})},null,8,["style"])])),_:1})])),_:1})])),_:1})):(r(),a(n,{key:1,class:"flex ml-[32rpx] mr-[52rpx] items-center relative",onClick:R},{default:l((()=>[w(o,{src:"",size:"55"}),w(n,{class:"ml-[22rpx]"},{default:l((()=>[w(n,{class:"text-[#222222] font-bold text-lg",style:c({color:u(v).textColor})},{default:l((()=>[i(s(u(M)("login"))+"/"+s(u(M)("register")),1)])),_:1},8,["style"])])),_:1}),w(n,{class:"set-icon flex items-center absolute right-0 top-2"},{default:l((()=>[w(m,{url:"/pages/setting/index"},{default:l((()=>[w(h,{class:"iconfont iconshezhi text-[1.6rem] ml-[10rpx]",style:c({color:u(v).textColor})},null,8,["style"])])),_:1})])),_:1})])),_:1})),w(n,{class:"flex m-[30rpx] mb-0 py-[30rpx] items-center"},{default:l((()=>[w(n,{class:"flex-1 text-center"},{default:l((()=>[w(n,{class:"font-bold"},{default:l((()=>[w(m,{url:u(E)?"/pages/member/balance":"",style:c({color:u(v).textColor})},{default:l((()=>[i(s(u(C)),1)])),_:1},8,["url","style"])])),_:1}),w(n,{class:"text-sm mt-[10rpx]"},{default:l((()=>[w(m,{url:u(E)?"/pages/member/balance":"",style:c({color:u(v).textColor})},{default:l((()=>[i(s(u(M)("balance")),1)])),_:1},8,["url","style"])])),_:1})])),_:1}),w(n,{class:"border-solid border-white border-l border-b-0 border-t-0 border-r-0 h-[60rpx]"}),w(n,{class:"flex-1 text-center"},{default:l((()=>[w(n,{class:"font-bold"},{default:l((()=>[w(m,{url:u(E)?"/pages/member/point":"",style:c({color:u(v).textColor})},{default:l((()=>{var e;return[i(s(parseInt(null==(e=u(E))?void 0:e.point)||0),1)]})),_:1},8,["url","style"])])),_:1}),w(n,{class:"text-sm mt-[10rpx]"},{default:l((()=>[w(m,{url:u(E)?"/pages/member/point":"",style:c({color:u(v).textColor})},{default:l((()=>[i(s(u(M)("point")),1)])),_:1},8,["url","style"])])),_:1})])),_:1})])),_:1})])),_:1})])),_:1},8,["style"])}}}),[["__scopeId","data-v-1e679529"]]),J=z(e({__name:"index",props:["component","index","pullDownRefresh"],setup(e){const m=e,g=t(),v=o((()=>"decorate"==g.mode?g.value[m.index]:m.component)),b=o((()=>{var e="";return v.value.componentBgColor&&(e+="background-color:"+v.value.componentBgColor+";"),v.value.topRounded&&(e+="border-top-left-radius:"+2*v.value.topRounded+"rpx;"),v.value.topRounded&&(e+="border-top-right-radius:"+2*v.value.topRounded+"rpx;"),v.value.bottomRounded&&(e+="border-bottom-left-radius:"+2*v.value.bottomRounded+"rpx;"),v.value.bottomRounded&&(e+="border-bottom-right-radius:"+2*v.value.bottomRounded+"rpx;"),e}));return n((()=>m.pullDownRefresh),((e,t)=>{})),(e,t)=>{const o=d,n=p(f("app-link"),W),m=S,g=p(f("u-icon"),B);return r(),a(o,{class:"diy-text",style:c(u(b))},{default:l((()=>["style-1"==u(v).style?(r(),a(o,{key:0,class:"p-[20rpx]"},{default:l((()=>[w(n,{data:u(v).link},{default:l((()=>[w(o,{style:c({fontSize:2*u(v).fontSize+"rpx",color:u(v).textColor,fontWeight:u(v).fontWeight,textAlign:u(v).textAlign})},{default:l((()=>[i(s(u(v).text),1)])),_:1},8,["style"])])),_:1},8,["data"])])),_:1})):h("",!0),"style-2"==u(v).style?(r(),a(o,{key:1,class:"p-[20rpx] flex items-center"},{default:l((()=>[w(n,{data:u(v).link},{default:l((()=>[w(o,{class:"max-w-[200rpx] truncate",style:c({fontSize:2*u(v).fontSize+"rpx",color:u(v).textColor,fontWeight:u(v).fontWeight})},{default:l((()=>[i(s(u(v).text),1)])),_:1},8,["style"])])),_:1},8,["data"]),w(m,{class:"ml-[16rpx] max-w-[300rpx] truncate",style:c({color:u(v).subTitle.color,fontSize:2*u(v).subTitle.fontSize+"rpx"})},{default:l((()=>[i(s(u(v).subTitle.text),1)])),_:1},8,["style"]),u(v).more.isShow?(r(),a(o,{key:0,class:"ml-auto text-right",style:c({color:u(v).more.color})},{default:l((()=>[w(n,{data:u(v).more.link,class:"flex items-center"},{default:l((()=>[w(m,{class:"max-w-[200rpx] truncate text-[24rpx] mr-[8rpx]"},{default:l((()=>[i(s(u(v).more.text),1)])),_:1}),w(g,{name:"arrow-right",size:"12",style:c({color:u(v).more.color})},null,8,["style"])])),_:1},8,["data"])])),_:1},8,["style"])):h("",!0)])),_:1})):h("",!0)])),_:1},8,["style"])}}}),[["__scopeId","data-v-7fc5a7a3"]]); -/**! - * Sortable 1.15.0 - * @author RubaXa - * @author owenm - * @license MIT - */ -function Z(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function Q(e){for(var t=1;t=0||(r[o]=e[o]);return r}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,o)&&(r[o]=e[o])}return r}function re(e){if("undefined"!=typeof window&&window.navigator)return!!navigator.userAgent.match(e)}var ae=re(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),le=re(/Edge/i),ie=re(/firefox/i),se=re(/safari/i)&&!re(/chrome/i)&&!re(/android/i),ue=re(/iP(ad|od|hone)/i),ce=re(/chrome/i)&&re(/android/i),de={capture:!1,passive:!1};function pe(e,t,o){e.addEventListener(t,o,!ae&&de)}function fe(e,t,o){e.removeEventListener(t,o,!ae&&de)}function he(e,t){if(t){if(">"===t[0]&&(t=t.substring(1)),e)try{if(e.matches)return e.matches(t);if(e.msMatchesSelector)return e.msMatchesSelector(t);if(e.webkitMatchesSelector)return e.webkitMatchesSelector(t)}catch(o){return!1}return!1}}function me(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function ge(e,t,o,n){if(e){o=o||document;do{if(null!=t&&(">"===t[0]?e.parentNode===o&&he(e,t):he(e,t))||n&&e===o)return e;if(e===o)break}while(e=me(e))}return null}var ve,be=/\s+/g;function ye(e,t,o){if(e&&t)if(e.classList)e.classList[o?"add":"remove"](t);else{var n=(" "+e.className+" ").replace(be," ").replace(" "+t+" "," ");e.className=(n+(o?" "+t:"")).replace(be," ")}}function xe(e,t,o){var n=e&&e.style;if(n){if(void 0===o)return document.defaultView&&document.defaultView.getComputedStyle?o=document.defaultView.getComputedStyle(e,""):e.currentStyle&&(o=e.currentStyle),void 0===t?o:o[t];t in n||-1!==t.indexOf("webkit")||(t="-webkit-"+t),n[t]=o+("string"==typeof o?"":"px")}}function we(e,t){var o="";if("string"==typeof e)o=e;else do{var n=xe(e,"transform");n&&"none"!==n&&(o=n+" "+o)}while(!t&&(e=e.parentNode));var r=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return r&&new r(o)}function _e(e,t,o){if(e){var n=e.getElementsByTagName(t),r=0,a=n.length;if(o)for(;r=a:r<=a))return n;if(n===Se())break;n=Ie(n,!1)}return!1}function Ce(e,t,o,n){for(var r=0,a=0,l=e.children;a2&&void 0!==arguments[2]?arguments[2]:{},n=o.evt,r=ne(o,Fe);Xe.pluginEvent.bind(At)(e,t,Q({dragEl:He,parentEl:Le,ghostEl:Ue,rootEl:Ge,nextEl:qe,lastDownEl:$e,cloneEl:Ve,cloneHidden:Ke,dragStarted:ut,putSortable:ot,activeSortable:At.active,originalEvent:n,oldIndex:Je,oldDraggableIndex:Qe,newIndex:Ze,newDraggableIndex:et,hideGhostForTarget:Tt,unhideGhostForTarget:It,cloneNowHidden:function(){Ke=!0},cloneNowShown:function(){Ke=!1},dispatchSortableEvent:function(e){We({sortable:t,name:e,originalEvent:n})}},r))};function We(e){!function(e){var t=e.sortable,o=e.rootEl,n=e.name,r=e.targetEl,a=e.cloneEl,l=e.toEl,i=e.fromEl,s=e.oldIndex,u=e.newIndex,c=e.oldDraggableIndex,d=e.newDraggableIndex,p=e.originalEvent,f=e.putSortable,h=e.extraEventProperties;if(t=t||o&&o[Pe]){var m,g=t.options,v="on"+n.charAt(0).toUpperCase()+n.substr(1);!window.CustomEvent||ae||le?(m=document.createEvent("Event")).initEvent(n,!0,!0):m=new CustomEvent(n,{bubbles:!0,cancelable:!0}),m.to=l||o,m.from=i||o,m.item=r||o,m.clone=a,m.oldIndex=s,m.newIndex=u,m.oldDraggableIndex=c,m.newDraggableIndex=d,m.originalEvent=p,m.pullMode=f?f.lastPutMode:void 0;var b=Q(Q({},h),Xe.getEventProperties(n,t));for(var y in b)m[y]=b[y];o&&o.dispatchEvent(m),g[v]&&g[v].call(t,m)}}(Q({putSortable:ot,cloneEl:Ve,targetEl:He,rootEl:Ge,oldIndex:Je,oldDraggableIndex:Qe,newIndex:Ze,newDraggableIndex:et},e))}var He,Le,Ue,Ge,qe,$e,Ve,Ke,Je,Ze,Qe,et,tt,ot,nt,rt,at,lt,it,st,ut,ct,dt,pt,ft,ht=!1,mt=!1,gt=[],vt=!1,bt=!1,yt=[],xt=!1,wt=[],_t="undefined"!=typeof document,St=ue,Dt=le||ae?"cssFloat":"float",Et=_t&&!ce&&!ue&&"draggable"in document.createElement("div"),Ct=function(){if(_t){if(ae)return!1;var e=document.createElement("x");return e.style.cssText="pointer-events:auto","auto"===e.style.pointerEvents}}(),Rt=function(e,t){var o=xe(e),n=parseInt(o.width)-parseInt(o.paddingLeft)-parseInt(o.paddingRight)-parseInt(o.borderLeftWidth)-parseInt(o.borderRightWidth),r=Ce(e,0,t),a=Ce(e,1,t),l=r&&xe(r),i=a&&xe(a),s=l&&parseInt(l.marginLeft)+parseInt(l.marginRight)+De(r).width,u=i&&parseInt(i.marginLeft)+parseInt(i.marginRight)+De(a).width;if("flex"===o.display)return"column"===o.flexDirection||"column-reverse"===o.flexDirection?"vertical":"horizontal";if("grid"===o.display)return o.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(r&&l.float&&"none"!==l.float){var c="left"===l.float?"left":"right";return!a||"both"!==i.clear&&i.clear!==c?"horizontal":"vertical"}return r&&("block"===l.display||"flex"===l.display||"table"===l.display||"grid"===l.display||s>=n&&"none"===o[Dt]||a&&"none"===o[Dt]&&s+u>n)?"vertical":"horizontal"},kt=function(e){function t(e,o){return function(n,r,a,l){var i=n.options.group.name&&r.options.group.name&&n.options.group.name===r.options.group.name;if(null==e&&(o||i))return!0;if(null==e||!1===e)return!1;if(o&&"clone"===e)return e;if("function"==typeof e)return t(e(n,r,a,l),o)(n,r,a,l);var s=(o?n:r).options.group.name;return!0===e||"string"==typeof e&&e===s||e.join&&e.indexOf(s)>-1}}var o={},n=e.group;n&&"object"==ee(n)||(n={name:n}),o.name=n.name,o.checkPull=t(n.pull,!0),o.checkPut=t(n.put),o.revertClone=n.revertClone,e.group=o},Tt=function(){!Ct&&Ue&&xe(Ue,"display","none")},It=function(){!Ct&&Ue&&xe(Ue,"display","")};_t&&!ce&&document.addEventListener("click",(function(e){if(mt)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),mt=!1,!1}),!0);var Ot=function(e){if(He){e=e.touches?e.touches[0]:e;var t=(r=e.clientX,a=e.clientY,gt.some((function(e){var t=e[Pe].options.emptyInsertThreshold;if(t&&!Re(e)){var o=De(e),n=r>=o.left-t&&r<=o.right+t,i=a>=o.top-t&&a<=o.bottom+t;return n&&i?l=e:void 0}})),l);if(t){var o={};for(var n in e)e.hasOwnProperty(n)&&(o[n]=e[n]);o.target=o.rootEl=t,o.preventDefault=void 0,o.stopPropagation=void 0,t[Pe]._onDragOver(o)}}var r,a,l},Nt=function(e){He&&He.parentNode[Pe]._isOutsideThisEl(e.target)};function At(e,t){if(!e||!e.nodeType||1!==e.nodeType)throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(e));this.el=e,this.options=t=oe({},t),e[Pe]=this;var o={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(e.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return Rt(e,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(e,t){e.setData("Text",t.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:!1!==At.supportPointer&&"PointerEvent"in window&&!se,emptyInsertThreshold:5};for(var n in Xe.initializePlugins(this,e,o),o)!(n in t)&&(t[n]=o[n]);for(var r in kt(t),this)"_"===r.charAt(0)&&"function"==typeof this[r]&&(this[r]=this[r].bind(this));this.nativeDraggable=!t.forceFallback&&Et,this.nativeDraggable&&(this.options.touchStartThreshold=1),t.supportPointer?pe(e,"pointerdown",this._onTapStart):(pe(e,"mousedown",this._onTapStart),pe(e,"touchstart",this._onTapStart)),this.nativeDraggable&&(pe(e,"dragover",this),pe(e,"dragenter",this)),gt.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),oe(this,je())}function Mt(e,t,o,n,r,a,l,i){var s,u,c=e[Pe],d=c.options.onMove;return!window.CustomEvent||ae||le?(s=document.createEvent("Event")).initEvent("move",!0,!0):s=new CustomEvent("move",{bubbles:!0,cancelable:!0}),s.to=t,s.from=e,s.dragged=o,s.draggedRect=n,s.related=r||t,s.relatedRect=a||De(t),s.willInsertAfter=i,s.originalEvent=l,e.dispatchEvent(s),d&&(u=d.call(c,s,l)),u}function Pt(e){e.draggable=!1}function jt(){xt=!1}function zt(e){for(var t=e.tagName+e.className+e.src+e.href+e.textContent,o=t.length,n=0;o--;)n+=t.charCodeAt(o);return n.toString(36)}function Bt(e){return setTimeout(e,0)}function Xt(e){return clearTimeout(e)}At.prototype={constructor:At,_isOutsideThisEl:function(e){this.el.contains(e)||e===this.el||(ct=null)},_getDirection:function(e,t){return"function"==typeof this.options.direction?this.options.direction.call(this,e,t,He):this.options.direction},_onTapStart:function(e){if(e.cancelable){var t=this,o=this.el,n=this.options,r=n.preventOnFilter,a=e.type,l=e.touches&&e.touches[0]||e.pointerType&&"touch"===e.pointerType&&e,i=(l||e).target,s=e.target.shadowRoot&&(e.path&&e.path[0]||e.composedPath&&e.composedPath()[0])||i,u=n.filter;if(function(e){wt.length=0;var t=e.getElementsByTagName("input"),o=t.length;for(;o--;){var n=t[o];n.checked&&wt.push(n)}}(o),!He&&!(/mousedown|pointerdown/.test(a)&&0!==e.button||n.disabled)&&!s.isContentEditable&&(this.nativeDraggable||!se||!i||"SELECT"!==i.tagName.toUpperCase())&&!((i=ge(i,n.draggable,o,!1))&&i.animated||$e===i)){if(Je=ke(i),Qe=ke(i,n.draggable),"function"==typeof u){if(u.call(this,e,i,this))return We({sortable:t,rootEl:s,name:"filter",targetEl:i,toEl:o,fromEl:o}),Ye("filter",t,{evt:e}),void(r&&e.cancelable&&e.preventDefault())}else if(u&&(u=u.split(",").some((function(n){if(n=ge(s,n.trim(),o,!1))return We({sortable:t,rootEl:n,name:"filter",targetEl:i,fromEl:o,toEl:o}),Ye("filter",t,{evt:e}),!0}))))return void(r&&e.cancelable&&e.preventDefault());n.handle&&!ge(s,n.handle,o,!1)||this._prepareDragStart(e,l,i)}}},_prepareDragStart:function(e,t,o){var n,r=this,a=r.el,l=r.options,i=a.ownerDocument;if(o&&!He&&o.parentNode===a){var s=De(o);if(Ge=a,Le=(He=o).parentNode,qe=He.nextSibling,$e=o,tt=l.group,At.dragged=He,nt={target:He,clientX:(t||e).clientX,clientY:(t||e).clientY},it=nt.clientX-s.left,st=nt.clientY-s.top,this._lastX=(t||e).clientX,this._lastY=(t||e).clientY,He.style["will-change"]="all",n=function(){Ye("delayEnded",r,{evt:e}),At.eventCanceled?r._onDrop():(r._disableDelayedDragEvents(),!ie&&r.nativeDraggable&&(He.draggable=!0),r._triggerDragStart(e,t),We({sortable:r,name:"choose",originalEvent:e}),ye(He,l.chosenClass,!0))},l.ignore.split(",").forEach((function(e){_e(He,e.trim(),Pt)})),pe(i,"dragover",Ot),pe(i,"mousemove",Ot),pe(i,"touchmove",Ot),pe(i,"mouseup",r._onDrop),pe(i,"touchend",r._onDrop),pe(i,"touchcancel",r._onDrop),ie&&this.nativeDraggable&&(this.options.touchStartThreshold=4,He.draggable=!0),Ye("delayStart",this,{evt:e}),!l.delay||l.delayOnTouchOnly&&!t||this.nativeDraggable&&(le||ae))n();else{if(At.eventCanceled)return void this._onDrop();pe(i,"mouseup",r._disableDelayedDrag),pe(i,"touchend",r._disableDelayedDrag),pe(i,"touchcancel",r._disableDelayedDrag),pe(i,"mousemove",r._delayedDragTouchMoveHandler),pe(i,"touchmove",r._delayedDragTouchMoveHandler),l.supportPointer&&pe(i,"pointermove",r._delayedDragTouchMoveHandler),r._dragStartTimer=setTimeout(n,l.delay)}}},_delayedDragTouchMoveHandler:function(e){var t=e.touches?e.touches[0]:e;Math.max(Math.abs(t.clientX-this._lastX),Math.abs(t.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){He&&Pt(He),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var e=this.el.ownerDocument;fe(e,"mouseup",this._disableDelayedDrag),fe(e,"touchend",this._disableDelayedDrag),fe(e,"touchcancel",this._disableDelayedDrag),fe(e,"mousemove",this._delayedDragTouchMoveHandler),fe(e,"touchmove",this._delayedDragTouchMoveHandler),fe(e,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(e,t){t=t||"touch"==e.pointerType&&e,!this.nativeDraggable||t?this.options.supportPointer?pe(document,"pointermove",this._onTouchMove):pe(document,t?"touchmove":"mousemove",this._onTouchMove):(pe(He,"dragend",this),pe(Ge,"dragstart",this._onDragStart));try{document.selection?Bt((function(){document.selection.empty()})):window.getSelection().removeAllRanges()}catch(o){}},_dragStarted:function(e,t){if(ht=!1,Ge&&He){Ye("dragStarted",this,{evt:t}),this.nativeDraggable&&pe(document,"dragover",Nt);var o=this.options;!e&&ye(He,o.dragClass,!1),ye(He,o.ghostClass,!0),At.active=this,e&&this._appendGhost(),We({sortable:this,name:"start",originalEvent:t})}else this._nulling()},_emulateDragOver:function(){if(rt){this._lastX=rt.clientX,this._lastY=rt.clientY,Tt();for(var e=document.elementFromPoint(rt.clientX,rt.clientY),t=e;e&&e.shadowRoot&&(e=e.shadowRoot.elementFromPoint(rt.clientX,rt.clientY))!==t;)t=e;if(He.parentNode[Pe]._isOutsideThisEl(e),t)do{if(t[Pe]){if(t[Pe]._onDragOver({clientX:rt.clientX,clientY:rt.clientY,target:e,rootEl:t})&&!this.options.dragoverBubble)break}e=t}while(t=t.parentNode);It()}},_onTouchMove:function(e){if(nt){var t=this.options,o=t.fallbackTolerance,n=t.fallbackOffset,r=e.touches?e.touches[0]:e,a=Ue&&we(Ue,!0),l=Ue&&a&&a.a,i=Ue&&a&&a.d,s=St&&ft&&Te(ft),u=(r.clientX-nt.clientX+n.x)/(l||1)+(s?s[0]-yt[0]:0)/(l||1),c=(r.clientY-nt.clientY+n.y)/(i||1)+(s?s[1]-yt[1]:0)/(i||1);if(!At.active&&!ht){if(o&&Math.max(Math.abs(r.clientX-this._lastX),Math.abs(r.clientY-this._lastY))n.right+r||e.clientX<=n.right&&e.clientY>n.bottom&&e.clientX>=n.left:e.clientX>n.right&&e.clientY>n.top||e.clientX<=n.right&&e.clientY>n.bottom+r}(e,r,this)&&!m.animated){if(m===He)return O(!1);if(m&&a===e.target&&(l=m),l&&(o=De(l)),!1!==Mt(Ge,a,He,t,l,o,e,!!l))return I(),m&&m.nextSibling?a.insertBefore(He,m.nextSibling):a.appendChild(He),Le=a,N(),O(!0)}else if(m&&function(e,t,o){var n=De(Ce(o.el,0,o.options,!0)),r=10;return t?e.clientXc+u*a/2:sd-pt)return-dt}else if(s>c+u*(1-r)/2&&sd-u*a/2))return s>c+u/2?1:-1;return 0}(e,l,o,r,w?1:i.swapThreshold,null==i.invertedSwapThreshold?i.swapThreshold:i.invertedSwapThreshold,bt,ct===l),0!==v){var E=ke(He);do{E-=v,y=Le.children[E]}while(y&&("none"===xe(y,"display")||y===Ue))}if(0===v||y===l)return O(!1);ct=l,dt=v;var C=l.nextElementSibling,R=!1,k=Mt(Ge,a,He,t,l,o,e,R=1===v);if(!1!==k)return 1!==k&&-1!==k||(R=1===k),xt=!0,setTimeout(jt,30),I(),R&&!C?a.appendChild(He):l.parentNode.insertBefore(He,R?C:l),S&&Ae(S,0,D-S.scrollTop),Le=He.parentNode,void 0===b||bt||(pt=Math.abs(b-De(l)[_])),N(),O(!0)}if(a.contains(He))return O(!1)}return!1}function T(i,s){Ye(i,f,Q({evt:e,isOwner:c,axis:r?"vertical":"horizontal",revert:n,dragRect:t,targetRect:o,canSort:d,fromSortable:p,target:l,completed:O,onMove:function(o,n){return Mt(Ge,a,He,t,o,De(o),e,n)},changed:N},s))}function I(){T("dragOverAnimationCapture"),f.captureAnimationState(),f!==p&&p.captureAnimationState()}function O(t){return T("dragOverCompleted",{insertion:t}),t&&(c?u._hideClone():u._showClone(f),f!==p&&(ye(He,ot?ot.options.ghostClass:u.options.ghostClass,!1),ye(He,i.ghostClass,!0)),ot!==f&&f!==At.active?ot=f:f===At.active&&ot&&(ot=null),p===f&&(f._ignoreWhileAnimating=l),f.animateAll((function(){T("dragOverAnimationComplete"),f._ignoreWhileAnimating=null})),f!==p&&(p.animateAll(),p._ignoreWhileAnimating=null)),(l===He&&!He.animated||l===a&&!l.animated)&&(ct=null),i.dragoverBubble||e.rootEl||l===document||(He.parentNode[Pe]._isOutsideThisEl(e.target),!t&&Ot(e)),!i.dragoverBubble&&e.stopPropagation&&e.stopPropagation(),h=!0}function N(){Ze=ke(He),et=ke(He,i.draggable),We({sortable:f,name:"change",toEl:a,newIndex:Ze,newDraggableIndex:et,originalEvent:e})}},_ignoreWhileAnimating:null,_offMoveEvents:function(){fe(document,"mousemove",this._onTouchMove),fe(document,"touchmove",this._onTouchMove),fe(document,"pointermove",this._onTouchMove),fe(document,"dragover",Ot),fe(document,"mousemove",Ot),fe(document,"touchmove",Ot)},_offUpEvents:function(){var e=this.el.ownerDocument;fe(e,"mouseup",this._onDrop),fe(e,"touchend",this._onDrop),fe(e,"pointerup",this._onDrop),fe(e,"touchcancel",this._onDrop),fe(document,"selectstart",this)},_onDrop:function(e){var t=this.el,o=this.options;Ze=ke(He),et=ke(He,o.draggable),Ye("drop",this,{evt:e}),Le=He&&He.parentNode,Ze=ke(He),et=ke(He,o.draggable),At.eventCanceled||(ht=!1,bt=!1,vt=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),Xt(this.cloneId),Xt(this._dragStartId),this.nativeDraggable&&(fe(document,"drop",this),fe(t,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),se&&xe(document.body,"user-select",""),xe(He,"transform",""),e&&(ut&&(e.cancelable&&e.preventDefault(),!o.dropBubble&&e.stopPropagation()),Ue&&Ue.parentNode&&Ue.parentNode.removeChild(Ue),(Ge===Le||ot&&"clone"!==ot.lastPutMode)&&Ve&&Ve.parentNode&&Ve.parentNode.removeChild(Ve),He&&(this.nativeDraggable&&fe(He,"dragend",this),Pt(He),He.style["will-change"]="",ut&&!ht&&ye(He,ot?ot.options.ghostClass:this.options.ghostClass,!1),ye(He,this.options.chosenClass,!1),We({sortable:this,name:"unchoose",toEl:Le,newIndex:null,newDraggableIndex:null,originalEvent:e}),Ge!==Le?(Ze>=0&&(We({rootEl:Le,name:"add",toEl:Le,fromEl:Ge,originalEvent:e}),We({sortable:this,name:"remove",toEl:Le,originalEvent:e}),We({rootEl:Le,name:"sort",toEl:Le,fromEl:Ge,originalEvent:e}),We({sortable:this,name:"sort",toEl:Le,originalEvent:e})),ot&&ot.save()):Ze!==Je&&Ze>=0&&(We({sortable:this,name:"update",toEl:Le,originalEvent:e}),We({sortable:this,name:"sort",toEl:Le,originalEvent:e})),At.active&&(null!=Ze&&-1!==Ze||(Ze=Je,et=Qe),We({sortable:this,name:"end",toEl:Le,originalEvent:e}),this.save())))),this._nulling()},_nulling:function(){Ye("nulling",this),Ge=He=Le=Ue=qe=Ve=$e=Ke=nt=rt=ut=Ze=et=Je=Qe=ct=dt=ot=tt=At.dragged=At.ghost=At.clone=At.active=null,wt.forEach((function(e){e.checked=!0})),wt.length=at=lt=0},handleEvent:function(e){switch(e.type){case"drop":case"dragend":this._onDrop(e);break;case"dragenter":case"dragover":He&&(this._onDragOver(e),function(e){e.dataTransfer&&(e.dataTransfer.dropEffect="move");e.cancelable&&e.preventDefault()}(e));break;case"selectstart":e.preventDefault()}},toArray:function(){for(var e,t=[],o=this.el.children,n=0,r=o.length,a=this.options;n-1&&e%1==0&&e<=9007199254740991}(e.length)&&!function(e){if(!ho(e))return!1;var t=uo(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}(e)}function So(e,t,o){if(!ho(o))return!1;var n=typeof t;return!!("number"==n?_o(o)&&function(e,t){var o=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==o||"symbol"!=o&&wo.test(e))&&e>-1&&e%1==0&&e"decorate"==i.mode?i:n.data));return D((()=>{if("decorate"==i.mode){var e=document.getElementById("componentList");const t=At.create(e,{group:"draggable-element",animation:200,onEnd:e=>{let o=i.value[e.oldIndex];i.value.splice(e.oldIndex,1),i.value.splice(e.newIndex,0,o),j((()=>{t.sort(ko(i.value.length).map((e=>e.toString()))),i.postMessage(e.newIndex,i.value[e.newIndex])}))}})}})),(e,t)=>{const o=p(f("fixed-group"),U),m=p(f("diy-article"),G),x=p(f("diy-graphic-nav"),q),_=p(f("diy-horz-blank"),$),S=p(f("diy-image-ads"),V),D=p(f("diy-member-info"),K),E=p(f("diy-text"),J),C=d,R=p(f("tabbar"),F);return r(),a(C,{class:"diy-group",id:"componentList"},{default:l((()=>[(r(!0),g(v,null,b(u(s).value,((e,t)=>(r(),a(C,{key:e.id,onClick:o=>u(i).changeCurrentIndex(t,e),class:y(["draggable-element relative cursor-move",{selected:u(i).currentIndex==t,decorate:"decorate"==u(i).mode}]),style:c(e.pageStyle)},{default:l((()=>[w(o,{component:e,index:t,pullDownRefresh:n.pullDownRefresh},null,8,["component","index","pullDownRefresh"]),"Article"==e.componentName?(r(),a(m,{key:0,component:e,index:t,pullDownRefresh:n.pullDownRefresh},null,8,["component","index","pullDownRefresh"])):h("",!0),"GraphicNav"==e.componentName?(r(),a(x,{key:1,component:e,index:t,pullDownRefresh:n.pullDownRefresh},null,8,["component","index","pullDownRefresh"])):h("",!0),"HorzBlank"==e.componentName?(r(),a(_,{key:2,component:e,index:t,pullDownRefresh:n.pullDownRefresh},null,8,["component","index","pullDownRefresh"])):h("",!0),"ImageAds"==e.componentName?(r(),a(S,{key:3,component:e,index:t,pullDownRefresh:n.pullDownRefresh},null,8,["component","index","pullDownRefresh"])):h("",!0),"MemberInfo"==e.componentName?(r(),a(D,{key:4,component:e,index:t,pullDownRefresh:n.pullDownRefresh},null,8,["component","index","pullDownRefresh"])):h("",!0),"Text"==e.componentName?(r(),a(E,{key:5,component:e,index:t,pullDownRefresh:n.pullDownRefresh},null,8,["component","index","pullDownRefresh"])):h("",!0)])),_:2},1032,["onClick","class","style"])))),128)),"decorate"!=u(i).mode&&u(s).global.bottomTabBarSwitch?(r(),g(v,{key:0},[w(C,{class:"pt-[20rpx]"}),w(R)],64)):h("",!0)])),_:1})}}}),[["__scopeId","data-v-7bf03d34"]]);export{To as _}; diff --git a/niucloud/public/wap/assets/mescroll-empty.22c37416.js b/niucloud/public/wap/assets/mescroll-empty.22c37416.js new file mode 100644 index 000000000..9998bfbbb --- /dev/null +++ b/niucloud/public/wap/assets/mescroll-empty.22c37416.js @@ -0,0 +1 @@ +import{h as t,i,w as e,j as n,m as o,D as p,E as s,F as l,n as c,a1 as r,t as a}from"./index-15eacd31.js";import{m,G as u}from"./useMescroll.fbb7af33.js";import{_ as y}from"./_plugin-vue_export-helper.1b428a4d.js";const d=y({props:{option:{type:Object,default:()=>({})}},computed:{icon(){if(null!=this.option.icon)return this.option.icon;{let t=m.getType();return this.option.i18n?this.option.i18n[t].icon:u.i18n[t].up.empty.icon||u.up.empty.icon}},tip(){if(null!=this.option.tip)return this.option.tip;{let t=m.getType();return this.option.i18n?this.option.i18n[t].tip:u.i18n[t].up.empty.tip||u.up.empty.tip}},btnText(){if(this.option.i18n){let t=m.getType();return this.option.i18n[t].btnText}return this.option.btnText}},methods:{emptyClick(){this.$emit("emptyclick")}}},[["render",function(m,u,y,d,h,f){const x=r,T=a;return t(),i(T,{class:l(["mescroll-empty",{"empty-fixed":y.option.fixed}]),style:c({"z-index":y.option.zIndex,top:y.option.top})},{default:e((()=>[n(T,null,{default:e((()=>[f.icon?(t(),i(x,{key:0,class:"empty-icon",src:f.icon,mode:"widthFix"},null,8,["src"])):o("",!0)])),_:1}),f.tip?(t(),i(T,{key:0,class:"empty-tip"},{default:e((()=>[p(s(f.tip),1)])),_:1})):o("",!0),f.btnText?(t(),i(T,{key:1,class:"empty-btn",onClick:f.emptyClick},{default:e((()=>[p(s(f.btnText),1)])),_:1},8,["onClick"])):o("",!0)])),_:1},8,["class","style"])}],["__scopeId","data-v-438f1a76"]]);export{d as M}; diff --git a/niucloud/public/wap/assets/mescroll-empty.b357d8ac.js b/niucloud/public/wap/assets/mescroll-empty.b357d8ac.js deleted file mode 100644 index 2b78809e5..000000000 --- a/niucloud/public/wap/assets/mescroll-empty.b357d8ac.js +++ /dev/null @@ -1 +0,0 @@ -import{h as t,i,w as e,j as n,E as o,C as p,D as s,F as l,n as c,a1 as r,q as a}from"./index-5bb08350.js";import{m as u,G as m}from"./useMescroll.92c88689.js";import{_ as y}from"./_plugin-vue_export-helper.1b428a4d.js";const d=y({props:{option:{type:Object,default:()=>({})}},computed:{icon(){if(null!=this.option.icon)return this.option.icon;{let t=u.getType();return this.option.i18n?this.option.i18n[t].icon:m.i18n[t].up.empty.icon||m.up.empty.icon}},tip(){if(null!=this.option.tip)return this.option.tip;{let t=u.getType();return this.option.i18n?this.option.i18n[t].tip:m.i18n[t].up.empty.tip||m.up.empty.tip}},btnText(){if(this.option.i18n){let t=u.getType();return this.option.i18n[t].btnText}return this.option.btnText}},methods:{emptyClick(){this.$emit("emptyclick")}}},[["render",function(u,m,y,d,h,f){const x=r,T=a;return t(),i(T,{class:l(["mescroll-empty",{"empty-fixed":y.option.fixed}]),style:c({"z-index":y.option.zIndex,top:y.option.top})},{default:e((()=>[n(T,null,{default:e((()=>[f.icon?(t(),i(x,{key:0,class:"empty-icon",src:f.icon,mode:"widthFix"},null,8,["src"])):o("",!0)])),_:1}),f.tip?(t(),i(T,{key:0,class:"empty-tip"},{default:e((()=>[p(s(f.tip),1)])),_:1})):o("",!0),f.btnText?(t(),i(T,{key:1,class:"empty-btn",onClick:f.emptyClick},{default:e((()=>[p(s(f.btnText),1)])),_:1},8,["onClick"])):o("",!0)])),_:1},8,["class","style"])}],["__scopeId","data-v-438f1a76"]]);export{d as M}; diff --git a/niucloud/public/wap/assets/pages-article-detail.86e6f6b6.js b/niucloud/public/wap/assets/pages-article-detail.27a94da1.js similarity index 76% rename from niucloud/public/wap/assets/pages-article-detail.86e6f6b6.js rename to niucloud/public/wap/assets/pages-article-detail.27a94da1.js index d70716d9d..8ca752e0a 100644 --- a/niucloud/public/wap/assets/pages-article-detail.86e6f6b6.js +++ b/niucloud/public/wap/assets/pages-article-detail.27a94da1.js @@ -1 +1 @@ -import{d as e,r as a,o as t,f as s,h as l,i as r,w as o,l as i,M as n,j as p,C as u,D as d,O as m,E as g,q as x,H as c,m as f,p as b,J as _}from"./index-5bb08350.js";import{_ as h}from"./u-parse.8f6deaed.js";import{_ as j}from"./u-loading-page.f2a7c1df.js";import{b as y}from"./article.1722ca18.js";import{u as v}from"./useShare.80667d20.js";import"./_plugin-vue_export-helper.1b428a4d.js";import"./u-loading-icon.2e89024b.js";import"./u-transition.021c4c1c.js";import"./wechat.eeef1e91.js";const S=e({__name:"detail",setup(e){const{setShare:S,onShareAppMessage:w,onShareTimeline:T}=v();w(),T();let M=a([]),k=a(!0),q={h2:"margin-bottom: 15px;",p:"margin-bottom: 10px;line-height: 1.5;",img:"margin: 10px 0;"};return t((e=>{k.value=!0,y(e.id).then((e=>{M.value=e.data,k.value=!1;let a={title:M.value.title,desc:M.value.intro,url:M.value.image};s({title:M.value.title}),S({wechat:{...a},weapp:{...a}})}))})),(e,a)=>{const t=x,s=c,y=f(b("u-parse"),h),v=f(b("u-loading-page"),j);return l(),r(t,{class:"bg-white"},{default:o((()=>[i(k)?g("",!0):(l(),n(m,{key:0},[p(t,{class:"border-solid border-t-0 border-l-0 border-r-0 border-b-[1px] border-gray-200 p-[10px]"},{default:o((()=>[p(t,{class:"text-[16px]"},{default:o((()=>[u(d(i(M).title),1)])),_:1}),p(t,{class:"flex align-center justify-between text-[12px] text-gray-400 mt-[15px]"},{default:o((()=>[p(s,null,{default:o((()=>[u(d(i(M).create_time),1)])),_:1})])),_:1})])),_:1}),p(t,{class:"mx-[10px] my-[10px] bg-gray-100 p-[8px] text-[14px] rounded-[5px] leading-[1.3]"},{default:o((()=>[u(d(i(_)("abstract"))+":"+d(i(M).summary),1)])),_:1}),p(t,{class:"px-[10px] pd-[10px]"},{default:o((()=>[p(y,{content:i(M).content,tagStyle:i(q)},null,8,["content","tagStyle"])])),_:1})],64)),p(v,{"bg-color":"rgb(248,248,248)",loading:i(k),fontSize:"16",color:"#333",loadingText:i(_)("loadingText")},null,8,["loading","loadingText"])])),_:1})}}});export{S as default}; +import{d as e,r as a,o as t,f as s,h as l,i as r,w as o,l as i,M as n,j as p,D as u,E as d,O as m,m as g,t as x,H as c,p as f,q as b,J as _}from"./index-15eacd31.js";import{_ as h}from"./u-parse.403d1985.js";import{_ as j}from"./u-loading-page.925a187b.js";import{b as y}from"./article.0307362e.js";import{u as v}from"./useShare.3d08f2fc.js";import"./_plugin-vue_export-helper.1b428a4d.js";import"./u-loading-icon.ea8c9ece.js";import"./u-transition.a952a64b.js";import"./wechat.56b0d350.js";const S=e({__name:"detail",setup(e){const{setShare:S,onShareAppMessage:w,onShareTimeline:T}=v();w(),T();let M=a([]),k=a(!0),q={h2:"margin-bottom: 15px;",p:"margin-bottom: 10px;line-height: 1.5;",img:"margin: 10px 0;"};return t((e=>{k.value=!0,y(e.id).then((e=>{M.value=e.data,k.value=!1;let a={title:M.value.title,desc:M.value.intro,url:M.value.image};s({title:M.value.title}),S({wechat:{...a},weapp:{...a}})}))})),(e,a)=>{const t=x,s=c,y=f(b("u-parse"),h),v=f(b("u-loading-page"),j);return l(),r(t,{class:"bg-white"},{default:o((()=>[i(k)?g("",!0):(l(),n(m,{key:0},[p(t,{class:"border-solid border-t-0 border-l-0 border-r-0 border-b-[1px] border-gray-200 p-[10px]"},{default:o((()=>[p(t,{class:"text-[16px]"},{default:o((()=>[u(d(i(M).title),1)])),_:1}),p(t,{class:"flex align-center justify-between text-[12px] text-gray-400 mt-[15px]"},{default:o((()=>[p(s,null,{default:o((()=>[u(d(i(M).create_time),1)])),_:1})])),_:1})])),_:1}),p(t,{class:"mx-[10px] my-[10px] bg-gray-100 p-[8px] text-[14px] rounded-[5px] leading-[1.3]"},{default:o((()=>[u(d(i(_)("abstract"))+":"+d(i(M).summary),1)])),_:1}),p(t,{class:"px-[10px] pd-[10px]"},{default:o((()=>[p(y,{content:i(M).content,tagStyle:i(q)},null,8,["content","tagStyle"])])),_:1})],64)),p(v,{"bg-color":"rgb(248,248,248)",loading:i(k),fontSize:"16",color:"#333",loadingText:i(_)("loadingText")},null,8,["loading","loadingText"])])),_:1})}}});export{S as default}; diff --git a/niucloud/public/wap/assets/pages-article-list.7aa1b19f.js b/niucloud/public/wap/assets/pages-article-list.7aa1b19f.js deleted file mode 100644 index cc9082678..000000000 --- a/niucloud/public/wap/assets/pages-article-list.7aa1b19f.js +++ /dev/null @@ -1 +0,0 @@ -import{x as e,y as a,z as t,A as l,m as o,p as r,h as s,i as c,w as i,j as n,n as u,B as d,C as h,D as p,E as m,F as f,G as y,H as g,q as b,I as _,d as x,r as k,o as S,J as w,K as C,l as v,L as I,M as j,N as $,O as A,P as z,Q as B,S as T,t as V,R as M}from"./index-5bb08350.js";import{_ as F}from"./u-icon.461524ba.js";import{_ as N}from"./_plugin-vue_export-helper.1b428a4d.js";import{_ as U,a as D}from"./tabbar.f7ee8f1f.js";import{g as H,a as O}from"./article.1722ca18.js";import{u as R,M as E}from"./useMescroll.92c88689.js";import{M as P}from"./mescroll-empty.b357d8ac.js";import{u as q}from"./useShare.80667d20.js";import"./u-image.9265f18d.js";import"./u-transition.021c4c1c.js";import"./u-safe-bottom.6578a4de.js";import"./wechat.eeef1e91.js";const G=N({name:"u-search",mixins:[a,t,{props:{shape:{type:String,default:e.search.shape},bgColor:{type:String,default:e.search.bgColor},placeholder:{type:String,default:e.search.placeholder},clearabled:{type:Boolean,default:e.search.clearabled},focus:{type:Boolean,default:e.search.focus},showAction:{type:Boolean,default:e.search.showAction},actionStyle:{type:Object,default:e.search.actionStyle},actionText:{type:String,default:e.search.actionText},inputAlign:{type:String,default:e.search.inputAlign},inputStyle:{type:Object,default:e.search.inputStyle},disabled:{type:Boolean,default:e.search.disabled},borderColor:{type:String,default:e.search.borderColor},searchIconColor:{type:String,default:e.search.searchIconColor},color:{type:String,default:e.search.color},placeholderColor:{type:String,default:e.search.placeholderColor},searchIcon:{type:String,default:e.search.searchIcon},searchIconSize:{type:[Number,String],default:e.search.searchIconSize},margin:{type:String,default:e.search.margin},animation:{type:Boolean,default:e.search.animation},modelValue:{type:String,default:e.search.value},value:{type:String,default:e.search.value},maxlength:{type:[String,Number],default:e.search.maxlength},height:{type:[String,Number],default:e.search.height},label:{type:[String,Number,null],default:e.search.label}}}],data(){return{keyword:"",showClear:!1,show:!1,focused:this.focus}},watch:{keyword(e){this.$emit("update:modelValue",e),this.$emit("change",e)},modelValue:{immediate:!0,handler(e){this.keyword=e}}},computed:{showActionBtn(){return!this.animation&&this.showAction}},emits:["clear","search","custom","focus","blur","click","clickIcon","update:modelValue","change"],methods:{inputChange(e){this.keyword=e.detail.value},clear(){this.keyword="",this.$nextTick((()=>{this.$emit("clear")}))},search(e){this.$emit("search",e.detail.value);try{l()}catch(a){}},custom(){this.$emit("custom",this.keyword);try{l()}catch(e){}},getFocus(){this.focused=!0,this.animation&&this.showAction&&(this.show=!0),this.$emit("focus",this.keyword)},blur(){setTimeout((()=>{this.focused=!1}),100),this.show=!1,this.$emit("blur",this.keyword)},clickHandler(){this.disabled&&this.$emit("click")},clickIcon(){this.$emit("clickIcon")}}},[["render",function(e,a,t,l,x,k){const S=g,w=o(r("u-icon"),F),C=b,v=_;return s(),c(C,{class:"u-search",onClick:k.clickHandler,style:u([{margin:e.margin},e.$u.addStyle(e.customStyle)])},{default:i((()=>[n(C,{class:"u-search__content",style:u({backgroundColor:e.bgColor,borderRadius:"round"==e.shape?"100px":"4px",borderColor:e.borderColor})},{default:i((()=>[e.$slots.label||null!==e.label?d(e.$slots,"label",{key:0},(()=>[n(S,{class:"u-search__content__label"},{default:i((()=>[h(p(e.label),1)])),_:1})]),!0):m("",!0),n(C,{class:"u-search__content__icon"},{default:i((()=>[n(w,{onClick:k.clickIcon,size:e.searchIconSize,name:e.searchIcon,color:e.searchIconColor?e.searchIconColor:e.color},null,8,["onClick","size","name","color"])])),_:1}),n(v,{"confirm-type":"search",onBlur:k.blur,value:x.keyword,onConfirm:k.search,onInput:k.inputChange,disabled:e.disabled,onFocus:k.getFocus,focus:e.focus,maxlength:e.maxlength,"placeholder-class":"u-search__content__input--placeholder",placeholder:e.placeholder,"placeholder-style":`color: ${e.placeholderColor}`,class:"u-search__content__input",type:"text",style:u([{textAlign:e.inputAlign,color:e.color,backgroundColor:e.bgColor,height:e.$u.addUnit(e.height)},e.inputStyle])},null,8,["onBlur","value","onConfirm","onInput","disabled","onFocus","focus","maxlength","placeholder","placeholder-style","style"]),x.keyword&&e.clearabled&&x.focused?(s(),c(C,{key:1,class:"u-search__content__icon u-search__content__close",onClick:k.clear},{default:i((()=>[n(w,{name:"close",size:"11",color:"#ffffff",customStyle:"line-height: 12px"})])),_:1},8,["onClick"])):m("",!0)])),_:3},8,["style"]),n(S,{style:u([e.actionStyle]),class:f(["u-search__action",[(k.showActionBtn||x.show)&&"u-search__action--active"]]),onClick:y(k.custom,["stop","prevent"])},{default:i((()=>[h(p(e.actionText),1)])),_:1},8,["style","class","onClick"])])),_:3},8,["onClick","style"])}],["__scopeId","data-v-7ec77839"]]),J=N(x({__name:"list",setup(e){const{mescrollInit:a,downCallback:t,getMescroll:l}=R(B,z),{setShare:u,onShareAppMessage:d,onShareTimeline:y}=q();u(),d(),y();let _=k([]),x=k([]),N=k(""),J=k(""),K=k(null),L=k(!1);S((async()=>{await H().then((e=>{const a={name:w("all"),category_id:""};_.value.push(a),_.value=_.value.concat(e.data.data)}))}));const Q=e=>{L.value=!1;let a={category_id:N.value,title:J.value,page:e.num,limit:e.size};O(a).then((a=>{let t=a.data.data;1==e.num&&(x.value=[]),x.value=x.value.concat(t),e.endSuccess(t.length),L.value=!0})).catch((()=>{L.value=!0,e.endErr()}))},W=()=>{l().resetUpScroll()};return C((()=>{setTimeout((()=>{l().optUp.textNoMore=w("end")}),500)})),(e,u)=>{const d=o(r("u-search"),G),y=b,k=T,S=o(r("u-icon"),F),C=o(r("u--image"),U),z=g,B=o(r("tabbar"),D);return s(),c(y,{class:"bg-gray-100 min-h-[100vh]"},{default:i((()=>[n(y,{class:"fixed top-0 inset-x-0 z-10"},{default:i((()=>[n(y,{class:"p-[10px] bg-white border-solid border-t-0 border-l-0 border-r-0 border-b-[1px] border-gray-200"},{default:i((()=>[n(d,{placeholder:v(w)("searchPlaceholder"),actionText:"",actionStyle:{width:0,margin:0},modelValue:v(J),"onUpdate:modelValue":u[0]||(u[0]=e=>I(J)?J.value=e:J=e),onClickIcon:W},null,8,["placeholder","modelValue"])])),_:1}),n(k,{"scroll-x":!0,"enable-flex":!0,class:"nav-list bg-white align-center px-[10px] box-border"},{default:i((()=>[n(y,{class:"flex scroll-view-wrap"},{default:i((()=>[(s(!0),j(A,null,$(v(_),((e,a)=>(s(),c(y,{class:f(["nav-item text-[14px] mx-[5px] h-[30px] leading-[30px] my-[5px] border-t-0 border-l-0 border-r-0",{"border-solid border-b-[2px] active":v(N)==e.category_id}]),onClick:a=>{return t=e.category_id,N.value=t,void l().resetUpScroll();var t},key:e.category_id},{default:i((()=>[h(p(e.name),1)])),_:2},1032,["class","onClick"])))),128))])),_:1})])),_:1})])),_:1}),n(E,{ref_key:"mescrollRef",ref:K,onInit:v(a),top:"220rpx",onDown:v(t),onUp:Q},{default:i((()=>[(s(!0),j(A,null,$(v(x),((e,a)=>(s(),c(y,{key:e.id,class:f(["bg-white flex align-center p-[10px]",{"border-solid border-t-0 border-l-0 border-r-0 border-b-[1px] border-gray-200":v(x).length-1!==a}]),onClick:a=>{return t=e.id,void M({url:"/pages/article/detail",param:{id:t}});var t}},{default:i((()=>[e.image?(s(),c(C,{key:0,width:"260rpx",height:"200rpx",src:v(V)(e.image),model:"aspectFill"},{error:i((()=>[n(S,{name:"photo",color:"#999",size:"50"})])),_:2},1032,["src"])):m("",!0),n(y,{class:"flex-1 flex flex-col justify-between ml-[10px]"},{default:i((()=>[n(y,{class:"text-[16px] leading-[1.3] multi-hidden mt-[2px]"},{default:i((()=>[h(p(e.title),1)])),_:2},1024),n(y,{class:"text-[14px] using-hidden mb-[auto] mt-[10px] text-gray-500"},{default:i((()=>[h(p(e.summary),1)])),_:2},1024),n(y,{class:"text-[12px] text-gray-400 flex justify-between mb-[5px]"},{default:i((()=>[n(z,{class:""},{default:i((()=>[h(p(e.create_time),1)])),_:2},1024)])),_:2},1024)])),_:2},1024)])),_:2},1032,["class","onClick"])))),128)),!v(x).length&&v(L)?(s(),c(P,{key:0})):m("",!0)])),_:1},8,["onInit","onDown"]),n(B)])),_:1})}}}),[["__scopeId","data-v-ace1db76"]]);export{J as default}; diff --git a/niucloud/public/wap/assets/pages-article-list.8dce3d3e.js b/niucloud/public/wap/assets/pages-article-list.8dce3d3e.js new file mode 100644 index 000000000..a372f07bd --- /dev/null +++ b/niucloud/public/wap/assets/pages-article-list.8dce3d3e.js @@ -0,0 +1 @@ +import{y as e,z as a,A as t,B as l,p as o,q as r,h as s,i as c,w as i,j as n,n as u,C as d,D as h,E as p,m,F as f,G as y,H as g,t as b,I as _,d as x,r as k,o as S,J as w,K as C,l as v,L as I,M as j,N as $,O as A,P as z,Q as B,S as T,x as V,R as M}from"./index-15eacd31.js";import{_ as F}from"./u-icon.f5369555.js";import{_ as N}from"./_plugin-vue_export-helper.1b428a4d.js";import{_ as U,a as D}from"./tabbar.e67e4875.js";import{g as H,a as O}from"./article.0307362e.js";import{u as R,M as E}from"./useMescroll.fbb7af33.js";import{M as P}from"./mescroll-empty.22c37416.js";import{u as q}from"./useShare.3d08f2fc.js";import"./u-image.b892f6c4.js";import"./u-transition.a952a64b.js";import"./u-safe-bottom.593b5cec.js";import"./wechat.56b0d350.js";const G=N({name:"u-search",mixins:[a,t,{props:{shape:{type:String,default:e.search.shape},bgColor:{type:String,default:e.search.bgColor},placeholder:{type:String,default:e.search.placeholder},clearabled:{type:Boolean,default:e.search.clearabled},focus:{type:Boolean,default:e.search.focus},showAction:{type:Boolean,default:e.search.showAction},actionStyle:{type:Object,default:e.search.actionStyle},actionText:{type:String,default:e.search.actionText},inputAlign:{type:String,default:e.search.inputAlign},inputStyle:{type:Object,default:e.search.inputStyle},disabled:{type:Boolean,default:e.search.disabled},borderColor:{type:String,default:e.search.borderColor},searchIconColor:{type:String,default:e.search.searchIconColor},color:{type:String,default:e.search.color},placeholderColor:{type:String,default:e.search.placeholderColor},searchIcon:{type:String,default:e.search.searchIcon},searchIconSize:{type:[Number,String],default:e.search.searchIconSize},margin:{type:String,default:e.search.margin},animation:{type:Boolean,default:e.search.animation},modelValue:{type:String,default:e.search.value},value:{type:String,default:e.search.value},maxlength:{type:[String,Number],default:e.search.maxlength},height:{type:[String,Number],default:e.search.height},label:{type:[String,Number,null],default:e.search.label}}}],data(){return{keyword:"",showClear:!1,show:!1,focused:this.focus}},watch:{keyword(e){this.$emit("update:modelValue",e),this.$emit("change",e)},modelValue:{immediate:!0,handler(e){this.keyword=e}}},computed:{showActionBtn(){return!this.animation&&this.showAction}},emits:["clear","search","custom","focus","blur","click","clickIcon","update:modelValue","change"],methods:{inputChange(e){this.keyword=e.detail.value},clear(){this.keyword="",this.$nextTick((()=>{this.$emit("clear")}))},search(e){this.$emit("search",e.detail.value);try{l()}catch(a){}},custom(){this.$emit("custom",this.keyword);try{l()}catch(e){}},getFocus(){this.focused=!0,this.animation&&this.showAction&&(this.show=!0),this.$emit("focus",this.keyword)},blur(){setTimeout((()=>{this.focused=!1}),100),this.show=!1,this.$emit("blur",this.keyword)},clickHandler(){this.disabled&&this.$emit("click")},clickIcon(){this.$emit("clickIcon")}}},[["render",function(e,a,t,l,x,k){const S=g,w=o(r("u-icon"),F),C=b,v=_;return s(),c(C,{class:"u-search",onClick:k.clickHandler,style:u([{margin:e.margin},e.$u.addStyle(e.customStyle)])},{default:i((()=>[n(C,{class:"u-search__content",style:u({backgroundColor:e.bgColor,borderRadius:"round"==e.shape?"100px":"4px",borderColor:e.borderColor})},{default:i((()=>[e.$slots.label||null!==e.label?d(e.$slots,"label",{key:0},(()=>[n(S,{class:"u-search__content__label"},{default:i((()=>[h(p(e.label),1)])),_:1})]),!0):m("",!0),n(C,{class:"u-search__content__icon"},{default:i((()=>[n(w,{onClick:k.clickIcon,size:e.searchIconSize,name:e.searchIcon,color:e.searchIconColor?e.searchIconColor:e.color},null,8,["onClick","size","name","color"])])),_:1}),n(v,{"confirm-type":"search",onBlur:k.blur,value:x.keyword,onConfirm:k.search,onInput:k.inputChange,disabled:e.disabled,onFocus:k.getFocus,focus:e.focus,maxlength:e.maxlength,"placeholder-class":"u-search__content__input--placeholder",placeholder:e.placeholder,"placeholder-style":`color: ${e.placeholderColor}`,class:"u-search__content__input",type:"text",style:u([{textAlign:e.inputAlign,color:e.color,backgroundColor:e.bgColor,height:e.$u.addUnit(e.height)},e.inputStyle])},null,8,["onBlur","value","onConfirm","onInput","disabled","onFocus","focus","maxlength","placeholder","placeholder-style","style"]),x.keyword&&e.clearabled&&x.focused?(s(),c(C,{key:1,class:"u-search__content__icon u-search__content__close",onClick:k.clear},{default:i((()=>[n(w,{name:"close",size:"11",color:"#ffffff",customStyle:"line-height: 12px"})])),_:1},8,["onClick"])):m("",!0)])),_:3},8,["style"]),n(S,{style:u([e.actionStyle]),class:f(["u-search__action",[(k.showActionBtn||x.show)&&"u-search__action--active"]]),onClick:y(k.custom,["stop","prevent"])},{default:i((()=>[h(p(e.actionText),1)])),_:1},8,["style","class","onClick"])])),_:3},8,["onClick","style"])}],["__scopeId","data-v-7ec77839"]]),J=N(x({__name:"list",setup(e){const{mescrollInit:a,downCallback:t,getMescroll:l}=R(B,z),{setShare:u,onShareAppMessage:d,onShareTimeline:y}=q();u(),d(),y();let _=k([]),x=k([]),N=k(""),J=k(""),K=k(null),L=k(!1);S((async()=>{await H().then((e=>{const a={name:w("all"),category_id:""};_.value.push(a),_.value=_.value.concat(e.data.data)}))}));const Q=e=>{L.value=!1;let a={category_id:N.value,title:J.value,page:e.num,limit:e.size};O(a).then((a=>{let t=a.data.data;1==e.num&&(x.value=[]),x.value=x.value.concat(t),e.endSuccess(t.length),L.value=!0})).catch((()=>{L.value=!0,e.endErr()}))},W=()=>{l().resetUpScroll()};return C((()=>{setTimeout((()=>{l().optUp.textNoMore=w("end")}),500)})),(e,u)=>{const d=o(r("u-search"),G),y=b,k=T,S=o(r("u-icon"),F),C=o(r("u--image"),U),z=g,B=o(r("tabbar"),D);return s(),c(y,{class:"bg-gray-100 min-h-[100vh]"},{default:i((()=>[n(y,{class:"fixed top-0 inset-x-0 z-10"},{default:i((()=>[n(y,{class:"p-[10px] bg-white border-solid border-t-0 border-l-0 border-r-0 border-b-[1px] border-gray-200"},{default:i((()=>[n(d,{placeholder:v(w)("searchPlaceholder"),actionText:"",actionStyle:{width:0,margin:0},modelValue:v(J),"onUpdate:modelValue":u[0]||(u[0]=e=>I(J)?J.value=e:J=e),onClickIcon:W},null,8,["placeholder","modelValue"])])),_:1}),n(k,{"scroll-x":!0,"enable-flex":!0,class:"nav-list bg-white align-center px-[10px] box-border"},{default:i((()=>[n(y,{class:"flex scroll-view-wrap"},{default:i((()=>[(s(!0),j(A,null,$(v(_),((e,a)=>(s(),c(y,{class:f(["nav-item text-[14px] mx-[5px] h-[30px] leading-[30px] my-[5px] border-t-0 border-l-0 border-r-0",{"border-solid border-b-[2px] active":v(N)==e.category_id}]),onClick:a=>{return t=e.category_id,N.value=t,void l().resetUpScroll();var t},key:e.category_id},{default:i((()=>[h(p(e.name),1)])),_:2},1032,["class","onClick"])))),128))])),_:1})])),_:1})])),_:1}),n(E,{ref_key:"mescrollRef",ref:K,onInit:v(a),top:"220rpx",onDown:v(t),onUp:Q},{default:i((()=>[(s(!0),j(A,null,$(v(x),((e,a)=>(s(),c(y,{key:e.id,class:f(["bg-white flex align-center p-[10px]",{"border-solid border-t-0 border-l-0 border-r-0 border-b-[1px] border-gray-200":v(x).length-1!==a}]),onClick:a=>{return t=e.id,void M({url:"/pages/article/detail",param:{id:t}});var t}},{default:i((()=>[e.image?(s(),c(C,{key:0,width:"260rpx",height:"200rpx",src:v(V)(e.image),model:"aspectFill"},{error:i((()=>[n(S,{name:"photo",color:"#999",size:"50"})])),_:2},1032,["src"])):m("",!0),n(y,{class:"flex-1 flex flex-col justify-between ml-[10px]"},{default:i((()=>[n(y,{class:"text-[16px] leading-[1.3] multi-hidden mt-[2px]"},{default:i((()=>[h(p(e.title),1)])),_:2},1024),n(y,{class:"text-[14px] using-hidden mb-[auto] mt-[10px] text-gray-500"},{default:i((()=>[h(p(e.summary),1)])),_:2},1024),n(y,{class:"text-[12px] text-gray-400 flex justify-between mb-[5px]"},{default:i((()=>[n(z,{class:""},{default:i((()=>[h(p(e.create_time),1)])),_:2},1024)])),_:2},1024)])),_:2},1024)])),_:2},1032,["class","onClick"])))),128)),!v(x).length&&v(L)?(s(),c(P,{key:0})):m("",!0)])),_:1},8,["onInit","onDown"]),n(B)])),_:1})}}}),[["__scopeId","data-v-ace1db76"]]);export{J as default}; diff --git a/niucloud/public/wap/assets/pages-auth-agreement.a0a37895.js b/niucloud/public/wap/assets/pages-auth-agreement.016f9147.js similarity index 76% rename from niucloud/public/wap/assets/pages-auth-agreement.a0a37895.js rename to niucloud/public/wap/assets/pages-auth-agreement.016f9147.js index 925aee868..f049c68ab 100644 --- a/niucloud/public/wap/assets/pages-auth-agreement.a0a37895.js +++ b/niucloud/public/wap/assets/pages-auth-agreement.016f9147.js @@ -1 +1 @@ -import{d as a,r as e,o as t,T as s,f as n,h as r,i as l,w as o,j as u,E as p,m as i,p as m,q as c}from"./index-5bb08350.js";import{_ as d}from"./u-parse.8f6deaed.js";import"./_plugin-vue_export-helper.1b428a4d.js";const _=a({__name:"agreement",setup(a){const _=e(null);return t((a=>{s(a.key).then((a=>{_.value=a.data,n({title:a.data.title})}))})),(a,e)=>{const t=i(m("u-parse"),d),s=c;return _.value?(r(),l(s,{key:0,class:"p-[30rpx]"},{default:o((()=>[u(t,{content:_.value.content},null,8,["content"])])),_:1})):p("",!0)}}});export{_ as default}; +import{d as a,r as e,o as t,T as s,f as n,h as r,i as l,w as o,j as u,m as p,p as i,q as m,t as c}from"./index-15eacd31.js";import{_ as d}from"./u-parse.403d1985.js";import"./_plugin-vue_export-helper.1b428a4d.js";const _=a({__name:"agreement",setup(a){const _=e(null);return t((a=>{s(a.key).then((a=>{_.value=a.data,n({title:a.data.title})}))})),(a,e)=>{const t=i(m("u-parse"),d),s=c;return _.value?(r(),l(s,{key:0,class:"p-[30rpx]"},{default:o((()=>[u(t,{content:_.value.content},null,8,["content"])])),_:1})):p("",!0)}}});export{_ as default}; diff --git a/niucloud/public/wap/assets/pages-auth-bind.13660137.js b/niucloud/public/wap/assets/pages-auth-bind.c0b8d2eb.js similarity index 87% rename from niucloud/public/wap/assets/pages-auth-bind.13660137.js rename to niucloud/public/wap/assets/pages-auth-bind.c0b8d2eb.js index 119e3f4d0..a74a4b216 100644 --- a/niucloud/public/wap/assets/pages-auth-bind.13660137.js +++ b/niucloud/public/wap/assets/pages-auth-bind.c0b8d2eb.js @@ -1 +1 @@ -import{x as e,y as t,z as a,m as l,p as o,h as i,i as r,w as s,j as n,F as c,G as u,n as h,B as d,C as p,D as b,q as m,H as f,d as k,U as C,c as g,r as x,a as _,J as y,l as S,E as D,V as v,W as z,R as B,X as V,Y as $}from"./index-5bb08350.js";import{_ as w}from"./u-input.cefa6e75.js";import{_ as G,a as j}from"./u-form.267f755c.js";import{_ as P}from"./sms-code.vue_vue_type_script_setup_true_lang.bcc80d73.js";import{_ as I}from"./u-icon.461524ba.js";import{_ as H}from"./_plugin-vue_export-helper.1b428a4d.js";import{_ as T}from"./app-link.vue_vue_type_script_setup_true_lang.b08a40da.js";import{_ as L}from"./u-button.364aa63d.js";import"./u-line.0c46076e.js";import"./u-modal.64c62d33.js";import"./u-loading-icon.2e89024b.js";import"./u-popup.7d705de0.js";import"./u-transition.021c4c1c.js";import"./u-safe-bottom.6578a4de.js";const N=H({name:"u-checkbox",mixins:[t,a,{props:{name:{type:[String,Number,Boolean],default:e.checkbox.name},shape:{type:String,default:e.checkbox.shape},size:{type:[String,Number],default:e.checkbox.size},checked:{type:Boolean,default:e.checkbox.checked},disabled:{type:[String,Boolean],default:e.checkbox.disabled},activeColor:{type:String,default:e.checkbox.activeColor},inactiveColor:{type:String,default:e.checkbox.inactiveColor},iconSize:{type:[String,Number],default:e.checkbox.iconSize},iconColor:{type:String,default:e.checkbox.iconColor},label:{type:[String,Number],default:e.checkbox.label},labelSize:{type:[String,Number],default:e.checkbox.labelSize},labelColor:{type:String,default:e.checkbox.labelColor},labelDisabled:{type:[String,Boolean],default:e.checkbox.labelDisabled}}}],data:()=>({isChecked:!1,parentData:{iconSize:12,labelDisabled:null,disabled:null,shape:"square",activeColor:null,inactiveColor:null,size:18,modelValue:null,iconColor:null,placement:"row",borderBottom:!1,iconPlacement:"left"}}),computed:{elDisabled(){return""!==this.disabled?this.disabled:null!==this.parentData.disabled&&this.parentData.disabled},elLabelDisabled(){return""!==this.labelDisabled?this.labelDisabled:null!==this.parentData.labelDisabled&&this.parentData.labelDisabled},elSize(){return this.size?this.size:this.parentData.size?this.parentData.size:21},elIconSize(){return this.iconSize?this.iconSize:this.parentData.iconSize?this.parentData.iconSize:12},elActiveColor(){return this.activeColor?this.activeColor:this.parentData.activeColor?this.parentData.activeColor:"#2979ff"},elInactiveColor(){return this.inactiveColor?this.inactiveColor:this.parentData.inactiveColor?this.parentData.inactiveColor:"#c8c9cc"},elLabelColor(){return this.labelColor?this.labelColor:this.parentData.labelColor?this.parentData.labelColor:"#606266"},elShape(){return this.shape?this.shape:this.parentData.shape?this.parentData.shape:"circle"},elLabelSize(){return uni.$u.addUnit(this.labelSize?this.labelSize:this.parentData.labelSize?this.parentData.labelSize:"15")},elIconColor(){const e=this.iconColor?this.iconColor:this.parentData.iconColor?this.parentData.iconColor:"#ffffff";return this.elDisabled?this.isChecked?this.elInactiveColor:"transparent":this.isChecked?e:"transparent"},iconClasses(){let e=[];return e.push("u-checkbox__icon-wrap--"+this.elShape),this.elDisabled&&e.push("u-checkbox__icon-wrap--disabled"),this.isChecked&&this.elDisabled&&e.push("u-checkbox__icon-wrap--disabled--checked"),e},iconWrapStyle(){const e={};return e.backgroundColor=this.isChecked&&!this.elDisabled?this.elActiveColor:"#ffffff",e.borderColor=this.isChecked&&!this.elDisabled?this.elActiveColor:this.elInactiveColor,e.width=uni.$u.addUnit(this.elSize),e.height=uni.$u.addUnit(this.elSize),"right"===this.parentData.iconPlacement&&(e.marginRight=0),e},checkboxStyle(){const e={};return this.parentData.borderBottom&&"row"===this.parentData.placement&&uni.$u.error("检测到您将borderBottom设置为true,需要同时将u-checkbox-group的placement设置为column才有效"),this.parentData.borderBottom&&"column"===this.parentData.placement&&(e.paddingBottom="8px"),uni.$u.deepMerge(e,uni.$u.addStyle(this.customStyle))}},mounted(){this.init()},methods:{init(){this.updateParentData(),this.parent||uni.$u.error("u-checkbox必须搭配u-checkbox-group组件使用");const e=this.parentData.modelValue;this.checked?this.isChecked=!0:uni.$u.test.array(e)&&(this.isChecked=e.some((e=>e===this.name)))},updateParentData(){this.getParentData("u-checkbox-group")},wrapperClickHandler(e){"right"===this.parentData.iconPlacement&&this.iconClickHandler(e)},iconClickHandler(e){this.preventEvent(e),this.elDisabled||this.setRadioCheckedStatus()},labelClickHandler(e){this.preventEvent(e),this.elLabelDisabled||this.elDisabled||this.setRadioCheckedStatus()},emitEvent(){this.$emit("change",this.isChecked),this.$nextTick((()=>{uni.$u.formValidate(this,"change")}))},setRadioCheckedStatus(){this.isChecked=!this.isChecked,this.emitEvent(),"function"==typeof this.parent.unCheckedOther&&this.parent.unCheckedOther(this)}},watch:{checked(){this.isChecked=this.checked}}},[["render",function(e,t,a,k,C,g){const x=l(o("u-icon"),I),_=m,y=f;return i(),r(_,{class:c(["u-checkbox",[`u-checkbox-label--${C.parentData.iconPlacement}`,C.parentData.borderBottom&&"column"===C.parentData.placement&&"u-border-bottom"]]),style:h([g.checkboxStyle]),onClick:u(g.wrapperClickHandler,["stop"])},{default:s((()=>[n(_,{class:c(["u-checkbox__icon-wrap",g.iconClasses]),onClick:u(g.iconClickHandler,["stop"]),style:h([g.iconWrapStyle])},{default:s((()=>[d(e.$slots,"icon",{},(()=>[n(x,{class:"u-checkbox__icon-wrap__icon",name:"checkbox-mark",size:g.elIconSize,color:g.elIconColor},null,8,["size","color"])]),!0)])),_:3},8,["onClick","class","style"]),n(y,{onClick:u(g.labelClickHandler,["stop"]),style:h({color:g.elDisabled?g.elInactiveColor:g.elLabelColor,fontSize:g.elLabelSize,lineHeight:g.elLabelSize})},{default:s((()=>[p(b(e.label),1)])),_:1},8,["onClick","style"])])),_:3},8,["style","onClick","class"])}],["__scopeId","data-v-fb07f37a"]]);const U=H({name:"u-checkbox-group",mixins:[t,a,{props:{name:{type:String,default:e.checkboxGroup.name},modelValue:{type:Array,default:e.checkboxGroup.value},shape:{type:String,default:e.checkboxGroup.shape},disabled:{type:Boolean,default:e.checkboxGroup.disabled},activeColor:{type:String,default:e.checkboxGroup.activeColor},inactiveColor:{type:String,default:e.checkboxGroup.inactiveColor},size:{type:[String,Number],default:e.checkboxGroup.size},placement:{type:String,default:e.checkboxGroup.placement},labelSize:{type:[String,Number],default:e.checkboxGroup.labelSize},labelColor:{type:[String],default:e.checkboxGroup.labelColor},labelDisabled:{type:Boolean,default:e.checkboxGroup.labelDisabled},iconColor:{type:String,default:e.checkboxGroup.iconColor},iconSize:{type:[String,Number],default:e.checkboxGroup.iconSize},iconPlacement:{type:String,default:e.checkboxGroup.iconPlacement},borderBottom:{type:Boolean,default:e.checkboxGroup.borderBottom}}}],computed:{parentData(){return[this.modelValue,this.disabled,this.inactiveColor,this.activeColor,this.size,this.labelDisabled,this.shape,this.iconSize,this.borderBottom,this.placement]},bemClass(){return this.bem("checkbox-group",["placement"])}},watch:{parentData:{handler(){this.children.length&&this.children.map((e=>{"function"==typeof e.init&&e.init()}))},deep:!0}},data:()=>({}),created(){this.children=[]},emits:["update:modelValue","change"],methods:{unCheckedOther(e){const t=[];this.children.map((e=>{e.isChecked&&t.push(e.name)})),this.$emit("change",t),this.$emit("update:modelValue",t)}}},[["render",function(e,t,a,l,o,n){const u=m;return i(),r(u,{class:c(["u-checkbox-group",n.bemClass])},{default:s((()=>[d(e.$slots,"default",{},void 0,!0)])),_:3},8,["class"])}],["__scopeId","data-v-f5bb36e2"]]),A=k({__name:"bind",setup(e){const t=C(),a=g((()=>t.info)),c=g((()=>$().login)),u=x(!1),h=x(!1),d=_({mobile:"",mobile_code:"",mobile_key:"",openid:uni.getStorageSync("openid")}),k={mobile:[{type:"string",required:!0,message:y("mobilePlaceholder"),trigger:["blur","change"]},{validator:(e,t)=>uni.$u.test.mobile(t),message:y("mobileError"),trigger:["change","blur"]}],mobile_code:{type:"string",required:!0,message:y("codePlaceholder"),trigger:["blur","change"]}},I=()=>{h.value=!h.value},H=x(null),A=()=>{H.value.validate().then((()=>{if(u.value)return;u.value=!0;(a.value?v:z)(d).then((e=>{a.value?(t.getMemberInfo(),B({url:"/pages/member/personal",mode:"redirectTo"})):(t.setToken(e.data.token),V().handleLoginBack())})).catch((()=>{u.value=!1}))}))};return(e,t)=>{const C=m,g=l(o("u-input"),w),x=l(o("u-form-item"),G),_=l(o("sms-code"),P),v=l(o("u-checkbox"),N),z=l(o("u-checkbox-group"),U),B=f,V=l(o("app-link"),T),$=l(o("u-button"),L),E=l(o("u-form"),j);return i(),r(C,{class:"w-screen h-screen flex flex-col"},{default:s((()=>[n(C,{class:"flex-1"},{default:s((()=>[n(C,{class:"h-[100rpx]"}),n(C,{class:"px-[60rpx] pt-[100rpx] mb-[100rpx]"},{default:s((()=>[n(C,{class:"font-bold text-lg"},{default:s((()=>[p(b(S(y)("bindMobile")),1)])),_:1})])),_:1}),n(C,{class:"px-[60rpx]"},{default:s((()=>[n(E,{labelPosition:"left",model:d,errorType:"toast",rules:k,ref_key:"formRef",ref:H},{default:s((()=>[n(x,{label:"",prop:"mobile","border-bottom":!0},{default:s((()=>[n(g,{modelValue:d.mobile,"onUpdate:modelValue":t[0]||(t[0]=e=>d.mobile=e),border:"none",clearable:"",placeholder:S(y)("mobilePlaceholder")},null,8,["modelValue","placeholder"])])),_:1}),n(C,{class:"mt-[40rpx]"},{default:s((()=>[n(x,{label:"",prop:"mobile_code","border-bottom":!0},{default:s((()=>[n(g,{modelValue:d.mobile_code,"onUpdate:modelValue":t[2]||(t[2]=e=>d.mobile_code=e),border:"none",type:"password",clearable:"",placeholder:S(y)("codePlaceholder")},{suffix:s((()=>[n(_,{mobile:d.mobile,type:"bind_mobile",modelValue:d.mobile_key,"onUpdate:modelValue":t[1]||(t[1]=e=>d.mobile_key=e)},null,8,["mobile","modelValue"])])),_:1},8,["modelValue","placeholder"])])),_:1})])),_:1}),!S(a)&&S(c).agreement_show?(i(),r(C,{key:0,class:"flex items-start mt-[30rpx]"},{default:s((()=>[n(z,null,{default:s((()=>[n(v,{checked:h.value,shape:"shape",size:"14",onChange:I,customStyle:{marginTop:"4rpx"}},null,8,["checked"])])),_:1}),n(C,{class:"text-xs text-gray-400 flex flex-wrap"},{default:s((()=>[p(b(S(y)("agreeTips"))+" ",1),n(V,{url:"/pages/auth/agreement?key=service"},{default:s((()=>[n(B,{class:"text-primary"},{default:s((()=>[p("《"+b(S(y)("userAgreement"))+"》",1)])),_:1})])),_:1}),n(V,{url:"/pages/auth/agreement?key=privacy"},{default:s((()=>[n(B,{class:"text-primary"},{default:s((()=>[p("《"+b(S(y)("privacyAgreement"))+"》",1)])),_:1})])),_:1})])),_:1})])),_:1})):D("",!0),n(C,{class:"mt-[60rpx]"},{default:s((()=>[n($,{type:"primary",loading:u.value,loadingText:S(y)("logining"),onClick:A},{default:s((()=>[p(b(S(y)("bind")),1)])),_:1},8,["loading","loadingText"])])),_:1})])),_:1},8,["model"])])),_:1})])),_:1})])),_:1})}}});export{A as default}; +import{y as e,z as t,A as a,p as l,q as o,h as i,i as r,w as s,j as n,F as c,G as u,n as h,C as d,D as p,E as b,t as m,H as f,d as k,U as C,c as g,r as x,a as _,J as y,l as S,m as D,V as v,W as z,R as V,X as $,Y as w}from"./index-15eacd31.js";import{_ as B}from"./u-input.4212a359.js";import{_ as G,a as j}from"./u-form.84a1fd52.js";import{_ as P}from"./sms-code.vue_vue_type_script_setup_true_lang.bcd0d968.js";import{_ as I}from"./u-icon.f5369555.js";import{_ as H}from"./_plugin-vue_export-helper.1b428a4d.js";import{_ as T}from"./app-link.vue_vue_type_script_setup_true_lang.18597de0.js";import{_ as L}from"./u-button.5c85e6cc.js";import"./u-line.bb8d1497.js";import"./u-modal.755a4b61.js";import"./u-loading-icon.ea8c9ece.js";import"./u-popup.8a491625.js";import"./u-transition.a952a64b.js";import"./u-safe-bottom.593b5cec.js";const N=H({name:"u-checkbox",mixins:[t,a,{props:{name:{type:[String,Number,Boolean],default:e.checkbox.name},shape:{type:String,default:e.checkbox.shape},size:{type:[String,Number],default:e.checkbox.size},checked:{type:Boolean,default:e.checkbox.checked},disabled:{type:[String,Boolean],default:e.checkbox.disabled},activeColor:{type:String,default:e.checkbox.activeColor},inactiveColor:{type:String,default:e.checkbox.inactiveColor},iconSize:{type:[String,Number],default:e.checkbox.iconSize},iconColor:{type:String,default:e.checkbox.iconColor},label:{type:[String,Number],default:e.checkbox.label},labelSize:{type:[String,Number],default:e.checkbox.labelSize},labelColor:{type:String,default:e.checkbox.labelColor},labelDisabled:{type:[String,Boolean],default:e.checkbox.labelDisabled}}}],data:()=>({isChecked:!1,parentData:{iconSize:12,labelDisabled:null,disabled:null,shape:"square",activeColor:null,inactiveColor:null,size:18,modelValue:null,iconColor:null,placement:"row",borderBottom:!1,iconPlacement:"left"}}),computed:{elDisabled(){return""!==this.disabled?this.disabled:null!==this.parentData.disabled&&this.parentData.disabled},elLabelDisabled(){return""!==this.labelDisabled?this.labelDisabled:null!==this.parentData.labelDisabled&&this.parentData.labelDisabled},elSize(){return this.size?this.size:this.parentData.size?this.parentData.size:21},elIconSize(){return this.iconSize?this.iconSize:this.parentData.iconSize?this.parentData.iconSize:12},elActiveColor(){return this.activeColor?this.activeColor:this.parentData.activeColor?this.parentData.activeColor:"#2979ff"},elInactiveColor(){return this.inactiveColor?this.inactiveColor:this.parentData.inactiveColor?this.parentData.inactiveColor:"#c8c9cc"},elLabelColor(){return this.labelColor?this.labelColor:this.parentData.labelColor?this.parentData.labelColor:"#606266"},elShape(){return this.shape?this.shape:this.parentData.shape?this.parentData.shape:"circle"},elLabelSize(){return uni.$u.addUnit(this.labelSize?this.labelSize:this.parentData.labelSize?this.parentData.labelSize:"15")},elIconColor(){const e=this.iconColor?this.iconColor:this.parentData.iconColor?this.parentData.iconColor:"#ffffff";return this.elDisabled?this.isChecked?this.elInactiveColor:"transparent":this.isChecked?e:"transparent"},iconClasses(){let e=[];return e.push("u-checkbox__icon-wrap--"+this.elShape),this.elDisabled&&e.push("u-checkbox__icon-wrap--disabled"),this.isChecked&&this.elDisabled&&e.push("u-checkbox__icon-wrap--disabled--checked"),e},iconWrapStyle(){const e={};return e.backgroundColor=this.isChecked&&!this.elDisabled?this.elActiveColor:"#ffffff",e.borderColor=this.isChecked&&!this.elDisabled?this.elActiveColor:this.elInactiveColor,e.width=uni.$u.addUnit(this.elSize),e.height=uni.$u.addUnit(this.elSize),"right"===this.parentData.iconPlacement&&(e.marginRight=0),e},checkboxStyle(){const e={};return this.parentData.borderBottom&&"row"===this.parentData.placement&&uni.$u.error("检测到您将borderBottom设置为true,需要同时将u-checkbox-group的placement设置为column才有效"),this.parentData.borderBottom&&"column"===this.parentData.placement&&(e.paddingBottom="8px"),uni.$u.deepMerge(e,uni.$u.addStyle(this.customStyle))}},mounted(){this.init()},methods:{init(){this.updateParentData(),this.parent||uni.$u.error("u-checkbox必须搭配u-checkbox-group组件使用");const e=this.parentData.modelValue;this.checked?this.isChecked=!0:uni.$u.test.array(e)&&(this.isChecked=e.some((e=>e===this.name)))},updateParentData(){this.getParentData("u-checkbox-group")},wrapperClickHandler(e){"right"===this.parentData.iconPlacement&&this.iconClickHandler(e)},iconClickHandler(e){this.preventEvent(e),this.elDisabled||this.setRadioCheckedStatus()},labelClickHandler(e){this.preventEvent(e),this.elLabelDisabled||this.elDisabled||this.setRadioCheckedStatus()},emitEvent(){this.$emit("change",this.isChecked),this.$nextTick((()=>{uni.$u.formValidate(this,"change")}))},setRadioCheckedStatus(){this.isChecked=!this.isChecked,this.emitEvent(),"function"==typeof this.parent.unCheckedOther&&this.parent.unCheckedOther(this)}},watch:{checked(){this.isChecked=this.checked}}},[["render",function(e,t,a,k,C,g){const x=l(o("u-icon"),I),_=m,y=f;return i(),r(_,{class:c(["u-checkbox",[`u-checkbox-label--${C.parentData.iconPlacement}`,C.parentData.borderBottom&&"column"===C.parentData.placement&&"u-border-bottom"]]),style:h([g.checkboxStyle]),onClick:u(g.wrapperClickHandler,["stop"])},{default:s((()=>[n(_,{class:c(["u-checkbox__icon-wrap",g.iconClasses]),onClick:u(g.iconClickHandler,["stop"]),style:h([g.iconWrapStyle])},{default:s((()=>[d(e.$slots,"icon",{},(()=>[n(x,{class:"u-checkbox__icon-wrap__icon",name:"checkbox-mark",size:g.elIconSize,color:g.elIconColor},null,8,["size","color"])]),!0)])),_:3},8,["onClick","class","style"]),n(y,{onClick:u(g.labelClickHandler,["stop"]),style:h({color:g.elDisabled?g.elInactiveColor:g.elLabelColor,fontSize:g.elLabelSize,lineHeight:g.elLabelSize})},{default:s((()=>[p(b(e.label),1)])),_:1},8,["onClick","style"])])),_:3},8,["style","onClick","class"])}],["__scopeId","data-v-fb07f37a"]]);const U=H({name:"u-checkbox-group",mixins:[t,a,{props:{name:{type:String,default:e.checkboxGroup.name},modelValue:{type:Array,default:e.checkboxGroup.value},shape:{type:String,default:e.checkboxGroup.shape},disabled:{type:Boolean,default:e.checkboxGroup.disabled},activeColor:{type:String,default:e.checkboxGroup.activeColor},inactiveColor:{type:String,default:e.checkboxGroup.inactiveColor},size:{type:[String,Number],default:e.checkboxGroup.size},placement:{type:String,default:e.checkboxGroup.placement},labelSize:{type:[String,Number],default:e.checkboxGroup.labelSize},labelColor:{type:[String],default:e.checkboxGroup.labelColor},labelDisabled:{type:Boolean,default:e.checkboxGroup.labelDisabled},iconColor:{type:String,default:e.checkboxGroup.iconColor},iconSize:{type:[String,Number],default:e.checkboxGroup.iconSize},iconPlacement:{type:String,default:e.checkboxGroup.iconPlacement},borderBottom:{type:Boolean,default:e.checkboxGroup.borderBottom}}}],computed:{parentData(){return[this.modelValue,this.disabled,this.inactiveColor,this.activeColor,this.size,this.labelDisabled,this.shape,this.iconSize,this.borderBottom,this.placement]},bemClass(){return this.bem("checkbox-group",["placement"])}},watch:{parentData:{handler(){this.children.length&&this.children.map((e=>{"function"==typeof e.init&&e.init()}))},deep:!0}},data:()=>({}),created(){this.children=[]},emits:["update:modelValue","change"],methods:{unCheckedOther(e){const t=[];this.children.map((e=>{e.isChecked&&t.push(e.name)})),this.$emit("change",t),this.$emit("update:modelValue",t)}}},[["render",function(e,t,a,l,o,n){const u=m;return i(),r(u,{class:c(["u-checkbox-group",n.bemClass])},{default:s((()=>[d(e.$slots,"default",{},void 0,!0)])),_:3},8,["class"])}],["__scopeId","data-v-f5bb36e2"]]),A=k({__name:"bind",setup(e){const t=C(),a=g((()=>t.info)),c=g((()=>w().login)),u=x(!1),h=x(!1),d=_({mobile:"",mobile_code:"",mobile_key:"",openid:uni.getStorageSync("openid")}),k={mobile:[{type:"string",required:!0,message:y("mobilePlaceholder"),trigger:["blur","change"]},{validator:(e,t)=>uni.$u.test.mobile(t),message:y("mobileError"),trigger:["change","blur"]}],mobile_code:{type:"string",required:!0,message:y("codePlaceholder"),trigger:["blur","change"]}},I=()=>{h.value=!h.value},H=x(null),A=()=>{H.value.validate().then((()=>{if(u.value)return;u.value=!0;(a.value?v:z)(d).then((e=>{a.value?(t.getMemberInfo(),V({url:"/pages/member/personal",mode:"redirectTo"})):(t.setToken(e.data.token),$().handleLoginBack())})).catch((()=>{u.value=!1}))}))};return(e,t)=>{const C=m,g=l(o("u-input"),B),x=l(o("u-form-item"),G),_=l(o("sms-code"),P),v=l(o("u-checkbox"),N),z=l(o("u-checkbox-group"),U),V=f,$=l(o("app-link"),T),w=l(o("u-button"),L),E=l(o("u-form"),j);return i(),r(C,{class:"w-screen h-screen flex flex-col"},{default:s((()=>[n(C,{class:"flex-1"},{default:s((()=>[n(C,{class:"h-[100rpx]"}),n(C,{class:"px-[60rpx] pt-[100rpx] mb-[100rpx]"},{default:s((()=>[n(C,{class:"font-bold text-lg"},{default:s((()=>[p(b(S(y)("bindMobile")),1)])),_:1})])),_:1}),n(C,{class:"px-[60rpx]"},{default:s((()=>[n(E,{labelPosition:"left",model:d,errorType:"toast",rules:k,ref_key:"formRef",ref:H},{default:s((()=>[n(x,{label:"",prop:"mobile","border-bottom":!0},{default:s((()=>[n(g,{modelValue:d.mobile,"onUpdate:modelValue":t[0]||(t[0]=e=>d.mobile=e),border:"none",clearable:"",placeholder:S(y)("mobilePlaceholder")},null,8,["modelValue","placeholder"])])),_:1}),n(C,{class:"mt-[40rpx]"},{default:s((()=>[n(x,{label:"",prop:"mobile_code","border-bottom":!0},{default:s((()=>[n(g,{modelValue:d.mobile_code,"onUpdate:modelValue":t[2]||(t[2]=e=>d.mobile_code=e),border:"none",type:"password",clearable:"",placeholder:S(y)("codePlaceholder")},{suffix:s((()=>[n(_,{mobile:d.mobile,type:"bind_mobile",modelValue:d.mobile_key,"onUpdate:modelValue":t[1]||(t[1]=e=>d.mobile_key=e)},null,8,["mobile","modelValue"])])),_:1},8,["modelValue","placeholder"])])),_:1})])),_:1}),!S(a)&&S(c).agreement_show?(i(),r(C,{key:0,class:"flex items-start mt-[30rpx]"},{default:s((()=>[n(z,null,{default:s((()=>[n(v,{checked:h.value,shape:"shape",size:"14",onChange:I,customStyle:{marginTop:"4rpx"}},null,8,["checked"])])),_:1}),n(C,{class:"text-xs text-gray-400 flex flex-wrap"},{default:s((()=>[p(b(S(y)("agreeTips"))+" ",1),n($,{url:"/pages/auth/agreement?key=service"},{default:s((()=>[n(V,{class:"text-primary"},{default:s((()=>[p("《"+b(S(y)("userAgreement"))+"》",1)])),_:1})])),_:1}),n($,{url:"/pages/auth/agreement?key=privacy"},{default:s((()=>[n(V,{class:"text-primary"},{default:s((()=>[p("《"+b(S(y)("privacyAgreement"))+"》",1)])),_:1})])),_:1})])),_:1})])),_:1})):D("",!0),n(C,{class:"mt-[60rpx]"},{default:s((()=>[n(w,{type:"primary",loading:u.value,loadingText:S(y)("logining"),onClick:A},{default:s((()=>[p(b(S(y)("bind")),1)])),_:1},8,["loading","loadingText"])])),_:1})])),_:1},8,["model"])])),_:1})])),_:1})])),_:1})}}});export{A as default}; diff --git a/niucloud/public/wap/assets/pages-auth-login.6a2089e2.js b/niucloud/public/wap/assets/pages-auth-login.bfe761f1.js similarity index 74% rename from niucloud/public/wap/assets/pages-auth-login.6a2089e2.js rename to niucloud/public/wap/assets/pages-auth-login.bfe761f1.js index ec5a74434..7a0bb8e3d 100644 --- a/niucloud/public/wap/assets/pages-auth-login.6a2089e2.js +++ b/niucloud/public/wap/assets/pages-auth-login.bfe761f1.js @@ -1 +1 @@ -import{d as e,a as l,U as a,Y as r,r as o,c as s,h as t,i as u,w as n,j as d,C as i,D as p,l as m,M as c,N as b,O as g,E as _,k as f,v as x,Z as y,_ as h,X as v,q as j,m as k,p as w,H as V,J as P,F as U}from"./index-5bb08350.js";import{_ as T}from"./u-input.cefa6e75.js";import{_ as q,a as C}from"./u-form.267f755c.js";import{_ as S}from"./sms-code.vue_vue_type_script_setup_true_lang.bcc80d73.js";import{_ as A}from"./app-link.vue_vue_type_script_setup_true_lang.b08a40da.js";import{_ as L}from"./u-button.364aa63d.js";import"./u-icon.461524ba.js";import"./_plugin-vue_export-helper.1b428a4d.js";import"./u-line.0c46076e.js";import"./u-modal.64c62d33.js";import"./u-loading-icon.2e89024b.js";import"./u-popup.7d705de0.js";import"./u-transition.021c4c1c.js";import"./u-safe-bottom.6578a4de.js";const E=e({__name:"login",setup(e){const E=l({username:"",password:"",mobile:"",mobile_code:"",mobile_key:""});uni.getStorageSync("openid")&&Object.assign(E,{openid:uni.getStorageSync("openid")});const O=a(),R=r(),Z=o(!1),$=o(""),B=s((()=>{const e=[];return R.login.is_username&&e.push({type:"username",title:P("usernameLogin")}),R.login.is_mobile&&e.push({type:"mobile",title:P("mobileLogin")}),$.value=e[0]?e[0].type:"",e})),D=s((()=>({username:{type:"string",required:"username"==$.value,message:P("usernamePlaceholder"),trigger:["blur","change"]},password:{type:"string",required:"username"==$.value,message:P("passwordPlaceholder"),trigger:["blur","change"]},mobile:[{type:"string",required:"mobile"==$.value,message:P("mobilePlaceholder"),trigger:["blur","change"]},{validator:(e,l)=>"mobile"!=$.value||uni.$u.test.mobile(l),message:P("mobileError"),trigger:["change","blur"]}],mobile_code:{type:"string",required:"mobile"==$.value,message:P("codePlaceholder"),trigger:["blur","change"]}}))),F=o(null),H=()=>{F.value.validate().then((()=>{if(Z.value)return;Z.value=!0;("username"==$.value?y:h)(E).then((e=>{O.setToken(e.data.token),v().handleLoginBack()})).catch((()=>{Z.value=!1}))}))};return(e,l)=>{const a=j,r=k(w("u-input"),T),o=k(w("u-form-item"),q),s=k(w("sms-code"),S),y=V,h=k(w("app-link"),A),v=k(w("u-button"),L),O=k(w("u-form"),C);return t(),u(a,{class:"w-screen h-screen flex flex-col"},{default:n((()=>[d(a,{class:"flex-1"},{default:n((()=>[d(a,{class:"h-[100rpx]"}),d(a,{class:"px-[60rpx] pt-[100rpx] mb-[100rpx]"},{default:n((()=>[d(a,{class:"font-bold text-xl"},{default:n((()=>[i(p(m(P)("login")),1)])),_:1})])),_:1}),m(B).length>1?(t(),u(a,{key:0,class:"px-[60rpx] text-sm flex mb-[50rpx] font-bold leading-none"},{default:n((()=>[(t(!0),c(g,null,b(m(B),((e,l)=>(t(),c(g,null,[d(a,{class:U({"text-gray-300":e.type!=$.value}),onClick:l=>$.value=e.type},{default:n((()=>[i(p(e.title),1)])),_:2},1032,["class","onClick"]),f(d(a,{class:"mx-[30rpx] border-solid border-0 border-r-[2px] border-gray-300"},null,512),[[x,0==l]])],64)))),256))])),_:1})):_("",!0),d(a,{class:"px-[60rpx]"},{default:n((()=>[d(O,{labelPosition:"left",model:E,errorType:"toast",rules:m(D),ref_key:"formRef",ref:F},{default:n((()=>[f(d(a,null,{default:n((()=>[d(o,{label:"",prop:"username","border-bottom":!0},{default:n((()=>[d(r,{modelValue:E.username,"onUpdate:modelValue":l[0]||(l[0]=e=>E.username=e),border:"none",clearable:"",placeholder:m(P)("usernamePlaceholder")},null,8,["modelValue","placeholder"])])),_:1}),d(a,{class:"mt-[40rpx]"},{default:n((()=>[d(o,{label:"",prop:"password","border-bottom":!0},{default:n((()=>[d(r,{modelValue:E.password,"onUpdate:modelValue":l[1]||(l[1]=e=>E.password=e),border:"none",type:"password",clearable:"",placeholder:m(P)("passwordPlaceholder")},null,8,["modelValue","placeholder"])])),_:1})])),_:1})])),_:1},512),[[x,"username"==$.value]]),f(d(a,null,{default:n((()=>[d(o,{label:"",prop:"mobile","border-bottom":!0},{default:n((()=>[d(r,{modelValue:E.mobile,"onUpdate:modelValue":l[2]||(l[2]=e=>E.mobile=e),border:"none",clearable:"",placeholder:m(P)("mobilePlaceholder")},null,8,["modelValue","placeholder"])])),_:1}),d(a,{class:"mt-[40rpx]"},{default:n((()=>[d(o,{label:"",prop:"mobile_code","border-bottom":!0},{default:n((()=>[d(r,{modelValue:E.mobile_code,"onUpdate:modelValue":l[4]||(l[4]=e=>E.mobile_code=e),border:"none",type:"password",clearable:"",placeholder:m(P)("codePlaceholder")},{suffix:n((()=>[d(s,{mobile:E.mobile,type:"login",modelValue:E.mobile_key,"onUpdate:modelValue":l[3]||(l[3]=e=>E.mobile_key=e)},null,8,["mobile","modelValue"])])),_:1},8,["modelValue","placeholder"])])),_:1})])),_:1})])),_:1},512),[[x,"mobile"==$.value]]),d(a,{class:"flex text-xs justify-between mt-[20rpx] text-gray-400"},{default:n((()=>[d(h,{url:"/pages/auth/register"},{default:n((()=>[i(p(m(P)("noAccount"))+" ",1),d(y,{class:"text-primary"},{default:n((()=>[i(p(m(P)("toRegister")),1)])),_:1})])),_:1}),d(h,{url:"/pages/auth/resetpwd"},{default:n((()=>[i(p(m(P)("resetpwd")),1)])),_:1})])),_:1}),d(a,{class:"mt-[80rpx]"},{default:n((()=>[d(v,{type:"primary",loading:Z.value,loadingText:m(P)("logining"),onClick:H},{default:n((()=>[i(p(m(P)("login")),1)])),_:1},8,["loading","loadingText"])])),_:1})])),_:1},8,["model","rules"])])),_:1})])),_:1}),m(R).login.agreement_show?(t(),u(a,{key:0,class:"text-xs py-[50rpx] flex justify-center w-full"},{default:n((()=>[i(p(m(P)("agreeTips"))+" ",1),d(h,{url:"/pages/auth/agreement?key=service"},{default:n((()=>[d(y,{class:"text-primary"},{default:n((()=>[i(p(m(P)("userAgreement")),1)])),_:1})])),_:1}),i(" "+p(m(P)("and"))+" ",1),d(h,{url:"/pages/auth/agreement?key=privacy"},{default:n((()=>[d(y,{class:"text-primary"},{default:n((()=>[i(p(m(P)("privacyAgreement")),1)])),_:1})])),_:1})])),_:1})):_("",!0)])),_:1})}}});export{E as default}; +import{d as e,a as l,U as a,Y as r,r as o,c as t,h as s,i as u,w as n,j as d,D as i,E as p,l as m,M as c,N as b,O as g,m as _,k as f,v as x,Z as y,_ as h,X as v,t as j,p as k,q as w,H as V,J as P,F as U}from"./index-15eacd31.js";import{_ as T}from"./u-input.4212a359.js";import{_ as q,a as S}from"./u-form.84a1fd52.js";import{_ as A}from"./sms-code.vue_vue_type_script_setup_true_lang.bcd0d968.js";import{_ as C}from"./app-link.vue_vue_type_script_setup_true_lang.18597de0.js";import{_ as L}from"./u-button.5c85e6cc.js";import"./u-icon.f5369555.js";import"./_plugin-vue_export-helper.1b428a4d.js";import"./u-line.bb8d1497.js";import"./u-modal.755a4b61.js";import"./u-loading-icon.ea8c9ece.js";import"./u-popup.8a491625.js";import"./u-transition.a952a64b.js";import"./u-safe-bottom.593b5cec.js";const E=e({__name:"login",setup(e){const E=l({username:"",password:"",mobile:"",mobile_code:"",mobile_key:""});uni.getStorageSync("openid")&&Object.assign(E,{openid:uni.getStorageSync("openid")});const O=a(),R=r(),Z=o(!1),$=o(""),B=t((()=>{const e=[];return R.login.is_username&&e.push({type:"username",title:P("usernameLogin")}),R.login.is_mobile&&e.push({type:"mobile",title:P("mobileLogin")}),$.value=e[0]?e[0].type:"",e})),D=t((()=>({username:{type:"string",required:"username"==$.value,message:P("usernamePlaceholder"),trigger:["blur","change"]},password:{type:"string",required:"username"==$.value,message:P("passwordPlaceholder"),trigger:["blur","change"]},mobile:[{type:"string",required:"mobile"==$.value,message:P("mobilePlaceholder"),trigger:["blur","change"]},{validator:(e,l)=>"mobile"!=$.value||uni.$u.test.mobile(l),message:P("mobileError"),trigger:["change","blur"]}],mobile_code:{type:"string",required:"mobile"==$.value,message:P("codePlaceholder"),trigger:["blur","change"]}}))),F=o(null),H=()=>{F.value.validate().then((()=>{if(Z.value)return;Z.value=!0;("username"==$.value?y:h)(E).then((e=>{O.setToken(e.data.token),v().handleLoginBack()})).catch((()=>{Z.value=!1}))}))};return(e,l)=>{const a=j,r=k(w("u-input"),T),o=k(w("u-form-item"),q),t=k(w("sms-code"),A),y=V,h=k(w("app-link"),C),v=k(w("u-button"),L),O=k(w("u-form"),S);return s(),u(a,{class:"w-screen h-screen flex flex-col"},{default:n((()=>[d(a,{class:"flex-1"},{default:n((()=>[d(a,{class:"h-[100rpx]"}),d(a,{class:"px-[60rpx] pt-[100rpx] mb-[100rpx]"},{default:n((()=>[d(a,{class:"font-bold text-xl"},{default:n((()=>[i(p(m(P)("login")),1)])),_:1})])),_:1}),m(B).length>1?(s(),u(a,{key:0,class:"px-[60rpx] text-sm flex mb-[50rpx] font-bold leading-none"},{default:n((()=>[(s(!0),c(g,null,b(m(B),((e,l)=>(s(),c(g,null,[d(a,{class:U({"text-gray-300":e.type!=$.value}),onClick:l=>$.value=e.type},{default:n((()=>[i(p(e.title),1)])),_:2},1032,["class","onClick"]),f(d(a,{class:"mx-[30rpx] border-solid border-0 border-r-[2px] border-gray-300"},null,512),[[x,0==l]])],64)))),256))])),_:1})):_("",!0),d(a,{class:"px-[60rpx]"},{default:n((()=>[d(O,{labelPosition:"left",model:E,errorType:"toast",rules:m(D),ref_key:"formRef",ref:F},{default:n((()=>[f(d(a,null,{default:n((()=>[d(o,{label:"",prop:"username","border-bottom":!0},{default:n((()=>[d(r,{modelValue:E.username,"onUpdate:modelValue":l[0]||(l[0]=e=>E.username=e),border:"none",clearable:"",placeholder:m(P)("usernamePlaceholder")},null,8,["modelValue","placeholder"])])),_:1}),d(a,{class:"mt-[40rpx]"},{default:n((()=>[d(o,{label:"",prop:"password","border-bottom":!0},{default:n((()=>[d(r,{modelValue:E.password,"onUpdate:modelValue":l[1]||(l[1]=e=>E.password=e),border:"none",type:"password",clearable:"",placeholder:m(P)("passwordPlaceholder")},null,8,["modelValue","placeholder"])])),_:1})])),_:1})])),_:1},512),[[x,"username"==$.value]]),f(d(a,null,{default:n((()=>[d(o,{label:"",prop:"mobile","border-bottom":!0},{default:n((()=>[d(r,{modelValue:E.mobile,"onUpdate:modelValue":l[2]||(l[2]=e=>E.mobile=e),border:"none",clearable:"",placeholder:m(P)("mobilePlaceholder")},null,8,["modelValue","placeholder"])])),_:1}),d(a,{class:"mt-[40rpx]"},{default:n((()=>[d(o,{label:"",prop:"mobile_code","border-bottom":!0},{default:n((()=>[d(r,{modelValue:E.mobile_code,"onUpdate:modelValue":l[4]||(l[4]=e=>E.mobile_code=e),border:"none",type:"password",clearable:"",placeholder:m(P)("codePlaceholder")},{suffix:n((()=>[d(t,{mobile:E.mobile,type:"login",modelValue:E.mobile_key,"onUpdate:modelValue":l[3]||(l[3]=e=>E.mobile_key=e)},null,8,["mobile","modelValue"])])),_:1},8,["modelValue","placeholder"])])),_:1})])),_:1})])),_:1},512),[[x,"mobile"==$.value]]),d(a,{class:"flex text-xs justify-between mt-[20rpx] text-gray-400"},{default:n((()=>[d(h,{url:"/pages/auth/register"},{default:n((()=>[i(p(m(P)("noAccount"))+" ",1),d(y,{class:"text-primary"},{default:n((()=>[i(p(m(P)("toRegister")),1)])),_:1})])),_:1}),d(h,{url:"/pages/auth/resetpwd"},{default:n((()=>[i(p(m(P)("resetpwd")),1)])),_:1})])),_:1}),d(a,{class:"mt-[80rpx]"},{default:n((()=>[d(v,{type:"primary",loading:Z.value,loadingText:m(P)("logining"),onClick:H},{default:n((()=>[i(p(m(P)("login")),1)])),_:1},8,["loading","loadingText"])])),_:1})])),_:1},8,["model","rules"])])),_:1})])),_:1}),m(R).login.agreement_show?(s(),u(a,{key:0,class:"text-xs py-[50rpx] flex justify-center w-full"},{default:n((()=>[i(p(m(P)("agreeTips"))+" ",1),d(h,{url:"/pages/auth/agreement?key=service"},{default:n((()=>[d(y,{class:"text-primary"},{default:n((()=>[i(p(m(P)("userAgreement")),1)])),_:1})])),_:1}),i(" "+p(m(P)("and"))+" ",1),d(h,{url:"/pages/auth/agreement?key=privacy"},{default:n((()=>[d(y,{class:"text-primary"},{default:n((()=>[i(p(m(P)("privacyAgreement")),1)])),_:1})])),_:1})])),_:1})):_("",!0)])),_:1})}}});export{E as default}; diff --git a/niucloud/public/wap/assets/pages-auth-register.33312bb1.js b/niucloud/public/wap/assets/pages-auth-register.525a8a97.js similarity index 87% rename from niucloud/public/wap/assets/pages-auth-register.33312bb1.js rename to niucloud/public/wap/assets/pages-auth-register.525a8a97.js index e7fd69d09..f5b21fa2d 100644 --- a/niucloud/public/wap/assets/pages-auth-register.33312bb1.js +++ b/niucloud/public/wap/assets/pages-auth-register.525a8a97.js @@ -1 +1 @@ -import{d as e,a as l,U as a,Y as r,r as o,c as s,h as t,i as u,w as d,j as i,C as n,D as m,l as p,M as c,N as b,O as _,E as g,k as f,v as h,$ as x,a0 as y,X as v,q as w,m as V,p as k,a1 as j,H as P,J as U,F as q}from"./index-5bb08350.js";import{_ as T}from"./u-input.cefa6e75.js";import{_ as C,a as A}from"./u-form.267f755c.js";import{u as S,_ as E}from"./sms-code.vue_vue_type_script_setup_true_lang.bcc80d73.js";import{_ as R}from"./app-link.vue_vue_type_script_setup_true_lang.b08a40da.js";import{_ as $}from"./u-button.364aa63d.js";import"./u-icon.461524ba.js";import"./_plugin-vue_export-helper.1b428a4d.js";import"./u-line.0c46076e.js";import"./u-modal.64c62d33.js";import"./u-loading-icon.2e89024b.js";import"./u-popup.7d705de0.js";import"./u-transition.021c4c1c.js";import"./u-safe-bottom.6578a4de.js";const F=e({__name:"register",setup(e){const F=l({username:"",password:"",confirm_password:"",mobile:"",mobile_code:"",mobile_key:"",captcha_key:"",captcha_code:""});uni.getStorageSync("openid")&&Object.assign(F,{openid:uni.getStorageSync("openid")});const L=S(F);L.refresh();const O=a(),B=r(),D=o(!1),H=o(""),J=s((()=>{const e=[];return B.login.is_username&&e.push({type:"username",title:U("usernameRegister")}),B.login.is_mobile&&!B.login.is_bind_mobile&&e.push({type:"mobile",title:U("mobileRegister")}),H.value=e[0]?e[0].type:"",e})),M=s((()=>({username:{type:"string",required:"username"==H.value,message:U("usernamePlaceholder"),trigger:["blur","change"]},password:{type:"string",required:"username"==H.value,message:U("passwordPlaceholder"),trigger:["blur","change"]},confirm_password:[{type:"string",required:"username"==H.value,message:U("confirmPasswordPlaceholder"),trigger:["blur","change"]},{validator:(e,l)=>l==F.password,message:U("confirmPasswordError"),trigger:["change","blur"]}],mobile:[{type:"string",required:"mobile"==H.value||B.login.is_bind_mobile,message:U("mobilePlaceholder"),trigger:["blur","change"]},{validator:(e,l)=>"mobile"!=H.value&&!B.login.is_bind_mobile||uni.$u.test.mobile(l),message:U("mobileError"),trigger:["change","blur"]}],mobile_code:{type:"string",required:"mobile"==H.value||B.login.is_bind_mobile,message:U("codePlaceholder"),trigger:["blur","change"]},captcha_code:{type:"string",required:"username"==H.value,message:U("captchaPlaceholder"),trigger:["blur","change"]}}))),N=o(null),W=()=>{N.value.validate().then((()=>{if(D.value)return;D.value=!0;("username"==H.value?x:y)(F).then((e=>{O.setToken(e.data.token),v().handleLoginBack()})).catch((()=>{D.value=!1,L.refresh()}))}))};return(e,l)=>{const a=w,r=V(k("u-input"),T),o=V(k("u-form-item"),C),s=V(k("sms-code"),E),x=j,y=P,v=V(k("app-link"),R),S=V(k("u-button"),$),O=V(k("u-form"),A);return t(),u(a,{class:"w-screen h-screen flex flex-col"},{default:d((()=>[i(a,{class:"flex-1"},{default:d((()=>[i(a,{class:"h-[100rpx]"}),i(a,{class:"px-[60rpx] pt-[100rpx] mb-[100rpx]"},{default:d((()=>[i(a,{class:"font-bold text-xl"},{default:d((()=>[n(m(p(U)("register")),1)])),_:1})])),_:1}),p(J).length>1?(t(),u(a,{key:0,class:"px-[60rpx] text-sm flex mb-[50rpx] font-bold leading-none"},{default:d((()=>[(t(!0),c(_,null,b(p(J),((e,l)=>(t(),c(_,null,[i(a,{class:q({"text-gray-300":e.type!=H.value}),onClick:l=>H.value=e.type},{default:d((()=>[n(m(e.title),1)])),_:2},1032,["class","onClick"]),f(i(a,{class:"mx-[30rpx] border-solid border-0 border-r-[2px] border-gray-300"},null,512),[[h,0==l]])],64)))),256))])),_:1})):g("",!0),i(a,{class:"px-[60rpx]"},{default:d((()=>[i(O,{labelPosition:"left",model:F,errorType:"toast",rules:p(M),ref_key:"formRef",ref:N},{default:d((()=>[f(i(a,null,{default:d((()=>[i(a,{class:"mt-[30rpx]"},{default:d((()=>[i(o,{label:"",prop:"username","border-bottom":!0},{default:d((()=>[i(r,{modelValue:F.username,"onUpdate:modelValue":l[0]||(l[0]=e=>F.username=e),border:"none",clearable:"",placeholder:p(U)("usernamePlaceholder")},null,8,["modelValue","placeholder"])])),_:1})])),_:1}),i(a,{class:"mt-[30rpx]"},{default:d((()=>[i(o,{label:"",prop:"password","border-bottom":!0},{default:d((()=>[i(r,{modelValue:F.password,"onUpdate:modelValue":l[1]||(l[1]=e=>F.password=e),border:"none",type:"password",clearable:"",placeholder:p(U)("passwordPlaceholder")},null,8,["modelValue","placeholder"])])),_:1})])),_:1}),i(a,{class:"mt-[30rpx]"},{default:d((()=>[i(o,{label:"",prop:"confirm_password","border-bottom":!0},{default:d((()=>[i(r,{modelValue:F.confirm_password,"onUpdate:modelValue":l[2]||(l[2]=e=>F.confirm_password=e),border:"none",type:"password",clearable:"",placeholder:p(U)("confirmPasswordPlaceholder")},null,8,["modelValue","placeholder"])])),_:1})])),_:1})])),_:1},512),[[h,"username"==H.value]]),f(i(a,null,{default:d((()=>[i(a,{class:"mt-[30rpx]"},{default:d((()=>[i(o,{label:"",prop:"mobile","border-bottom":!0},{default:d((()=>[i(r,{modelValue:F.mobile,"onUpdate:modelValue":l[3]||(l[3]=e=>F.mobile=e),border:"none",clearable:"",placeholder:p(U)("mobilePlaceholder")},null,8,["modelValue","placeholder"])])),_:1})])),_:1}),i(a,{class:"mt-[30rpx]"},{default:d((()=>[i(o,{label:"",prop:"code","border-bottom":!0},{default:d((()=>[i(r,{modelValue:F.mobile_code,"onUpdate:modelValue":l[5]||(l[5]=e=>F.mobile_code=e),border:"none",type:"password",clearable:"",placeholder:p(U)("codePlaceholder")},{suffix:d((()=>[i(s,{mobile:F.mobile,type:"register",modelValue:F.mobile_key,"onUpdate:modelValue":l[4]||(l[4]=e=>F.mobile_key=e)},null,8,["mobile","modelValue"])])),_:1},8,["modelValue","placeholder"])])),_:1})])),_:1})])),_:1},512),[[h,"mobile"==H.value||p(B).login.is_bind_mobile]]),f(i(a,null,{default:d((()=>[i(a,{class:"mt-[30rpx]"},{default:d((()=>[i(o,{label:"",prop:"captcha_code","border-bottom":!0},{default:d((()=>[i(r,{modelValue:F.captcha_code,"onUpdate:modelValue":l[7]||(l[7]=e=>F.captcha_code=e),border:"none",clearable:"",placeholder:p(U)("captchaPlaceholder")},{suffix:d((()=>[i(x,{src:p(L).image.value,class:"h-[48rpx] ml-[20rpx]",mode:"heightFix",onClick:l[6]||(l[6]=e=>p(L).refresh())},null,8,["src"])])),_:1},8,["modelValue","placeholder"])])),_:1})])),_:1})])),_:1},512),[[h,"username"==H.value]]),i(a,{class:"flex text-xs justify-between mt-[20rpx] text-gray-400"},{default:d((()=>[i(v,{url:"/pages/auth/login"},{default:d((()=>[n(m(p(U)("haveAccount"))+",",1),i(y,{class:"text-primary"},{default:d((()=>[n(m(p(U)("toLogin")),1)])),_:1})])),_:1})])),_:1}),i(a,{class:"mt-[80rpx]"},{default:d((()=>[i(S,{type:"primary",loading:D.value,loadingText:p(U)("registering"),onClick:W},{default:d((()=>[n(m(p(U)("register")),1)])),_:1},8,["loading","loadingText"])])),_:1})])),_:1},8,["model","rules"])])),_:1})])),_:1}),p(B).login.agreement_show?(t(),u(a,{key:0,class:"text-xs py-[50rpx] flex justify-center w-full"},{default:d((()=>[n(m(p(U)("registerAgreeTips"))+" ",1),i(v,{url:"/pages/auth/agreement?key=service"},{default:d((()=>[i(y,{class:"text-primary"},{default:d((()=>[n(m(p(U)("userAgreement")),1)])),_:1})])),_:1}),n(" "+m(p(U)("and"))+" ",1),i(v,{url:"/pages/auth/agreement?key=privacy"},{default:d((()=>[i(y,{class:"text-primary"},{default:d((()=>[n(m(p(U)("privacyAgreement")),1)])),_:1})])),_:1})])),_:1})):g("",!0)])),_:1})}}});export{F as default}; +import{d as e,a as l,U as a,Y as r,r as o,c as s,h as t,i as u,w as d,j as i,D as n,E as m,l as p,M as c,N as b,O as _,m as g,k as f,v as h,$ as x,a0 as y,X as v,t as w,p as V,q as k,a1 as j,H as P,J as U,F as q}from"./index-15eacd31.js";import{_ as T}from"./u-input.4212a359.js";import{_ as A,a as C}from"./u-form.84a1fd52.js";import{u as S,_ as E}from"./sms-code.vue_vue_type_script_setup_true_lang.bcd0d968.js";import{_ as R}from"./app-link.vue_vue_type_script_setup_true_lang.18597de0.js";import{_ as $}from"./u-button.5c85e6cc.js";import"./u-icon.f5369555.js";import"./_plugin-vue_export-helper.1b428a4d.js";import"./u-line.bb8d1497.js";import"./u-modal.755a4b61.js";import"./u-loading-icon.ea8c9ece.js";import"./u-popup.8a491625.js";import"./u-transition.a952a64b.js";import"./u-safe-bottom.593b5cec.js";const F=e({__name:"register",setup(e){const F=l({username:"",password:"",confirm_password:"",mobile:"",mobile_code:"",mobile_key:"",captcha_key:"",captcha_code:""});uni.getStorageSync("openid")&&Object.assign(F,{openid:uni.getStorageSync("openid")});const L=S(F);L.refresh();const O=a(),B=r(),D=o(!1),H=o(""),J=s((()=>{const e=[];return B.login.is_username&&e.push({type:"username",title:U("usernameRegister")}),B.login.is_mobile&&!B.login.is_bind_mobile&&e.push({type:"mobile",title:U("mobileRegister")}),H.value=e[0]?e[0].type:"",e})),M=s((()=>({username:{type:"string",required:"username"==H.value,message:U("usernamePlaceholder"),trigger:["blur","change"]},password:{type:"string",required:"username"==H.value,message:U("passwordPlaceholder"),trigger:["blur","change"]},confirm_password:[{type:"string",required:"username"==H.value,message:U("confirmPasswordPlaceholder"),trigger:["blur","change"]},{validator:(e,l)=>l==F.password,message:U("confirmPasswordError"),trigger:["change","blur"]}],mobile:[{type:"string",required:"mobile"==H.value||B.login.is_bind_mobile,message:U("mobilePlaceholder"),trigger:["blur","change"]},{validator:(e,l)=>"mobile"!=H.value&&!B.login.is_bind_mobile||uni.$u.test.mobile(l),message:U("mobileError"),trigger:["change","blur"]}],mobile_code:{type:"string",required:"mobile"==H.value||B.login.is_bind_mobile,message:U("codePlaceholder"),trigger:["blur","change"]},captcha_code:{type:"string",required:"username"==H.value,message:U("captchaPlaceholder"),trigger:["blur","change"]}}))),N=o(null),W=()=>{N.value.validate().then((()=>{if(D.value)return;D.value=!0;("username"==H.value?x:y)(F).then((e=>{O.setToken(e.data.token),v().handleLoginBack()})).catch((()=>{D.value=!1,L.refresh()}))}))};return(e,l)=>{const a=w,r=V(k("u-input"),T),o=V(k("u-form-item"),A),s=V(k("sms-code"),E),x=j,y=P,v=V(k("app-link"),R),S=V(k("u-button"),$),O=V(k("u-form"),C);return t(),u(a,{class:"w-screen h-screen flex flex-col"},{default:d((()=>[i(a,{class:"flex-1"},{default:d((()=>[i(a,{class:"h-[100rpx]"}),i(a,{class:"px-[60rpx] pt-[100rpx] mb-[100rpx]"},{default:d((()=>[i(a,{class:"font-bold text-xl"},{default:d((()=>[n(m(p(U)("register")),1)])),_:1})])),_:1}),p(J).length>1?(t(),u(a,{key:0,class:"px-[60rpx] text-sm flex mb-[50rpx] font-bold leading-none"},{default:d((()=>[(t(!0),c(_,null,b(p(J),((e,l)=>(t(),c(_,null,[i(a,{class:q({"text-gray-300":e.type!=H.value}),onClick:l=>H.value=e.type},{default:d((()=>[n(m(e.title),1)])),_:2},1032,["class","onClick"]),f(i(a,{class:"mx-[30rpx] border-solid border-0 border-r-[2px] border-gray-300"},null,512),[[h,0==l]])],64)))),256))])),_:1})):g("",!0),i(a,{class:"px-[60rpx]"},{default:d((()=>[i(O,{labelPosition:"left",model:F,errorType:"toast",rules:p(M),ref_key:"formRef",ref:N},{default:d((()=>[f(i(a,null,{default:d((()=>[i(a,{class:"mt-[30rpx]"},{default:d((()=>[i(o,{label:"",prop:"username","border-bottom":!0},{default:d((()=>[i(r,{modelValue:F.username,"onUpdate:modelValue":l[0]||(l[0]=e=>F.username=e),border:"none",clearable:"",placeholder:p(U)("usernamePlaceholder")},null,8,["modelValue","placeholder"])])),_:1})])),_:1}),i(a,{class:"mt-[30rpx]"},{default:d((()=>[i(o,{label:"",prop:"password","border-bottom":!0},{default:d((()=>[i(r,{modelValue:F.password,"onUpdate:modelValue":l[1]||(l[1]=e=>F.password=e),border:"none",type:"password",clearable:"",placeholder:p(U)("passwordPlaceholder")},null,8,["modelValue","placeholder"])])),_:1})])),_:1}),i(a,{class:"mt-[30rpx]"},{default:d((()=>[i(o,{label:"",prop:"confirm_password","border-bottom":!0},{default:d((()=>[i(r,{modelValue:F.confirm_password,"onUpdate:modelValue":l[2]||(l[2]=e=>F.confirm_password=e),border:"none",type:"password",clearable:"",placeholder:p(U)("confirmPasswordPlaceholder")},null,8,["modelValue","placeholder"])])),_:1})])),_:1})])),_:1},512),[[h,"username"==H.value]]),f(i(a,null,{default:d((()=>[i(a,{class:"mt-[30rpx]"},{default:d((()=>[i(o,{label:"",prop:"mobile","border-bottom":!0},{default:d((()=>[i(r,{modelValue:F.mobile,"onUpdate:modelValue":l[3]||(l[3]=e=>F.mobile=e),border:"none",clearable:"",placeholder:p(U)("mobilePlaceholder")},null,8,["modelValue","placeholder"])])),_:1})])),_:1}),i(a,{class:"mt-[30rpx]"},{default:d((()=>[i(o,{label:"",prop:"code","border-bottom":!0},{default:d((()=>[i(r,{modelValue:F.mobile_code,"onUpdate:modelValue":l[5]||(l[5]=e=>F.mobile_code=e),border:"none",type:"password",clearable:"",placeholder:p(U)("codePlaceholder")},{suffix:d((()=>[i(s,{mobile:F.mobile,type:"register",modelValue:F.mobile_key,"onUpdate:modelValue":l[4]||(l[4]=e=>F.mobile_key=e)},null,8,["mobile","modelValue"])])),_:1},8,["modelValue","placeholder"])])),_:1})])),_:1})])),_:1},512),[[h,"mobile"==H.value||p(B).login.is_bind_mobile]]),f(i(a,null,{default:d((()=>[i(a,{class:"mt-[30rpx]"},{default:d((()=>[i(o,{label:"",prop:"captcha_code","border-bottom":!0},{default:d((()=>[i(r,{modelValue:F.captcha_code,"onUpdate:modelValue":l[7]||(l[7]=e=>F.captcha_code=e),border:"none",clearable:"",placeholder:p(U)("captchaPlaceholder")},{suffix:d((()=>[i(x,{src:p(L).image.value,class:"h-[48rpx] ml-[20rpx]",mode:"heightFix",onClick:l[6]||(l[6]=e=>p(L).refresh())},null,8,["src"])])),_:1},8,["modelValue","placeholder"])])),_:1})])),_:1})])),_:1},512),[[h,"username"==H.value]]),i(a,{class:"flex text-xs justify-between mt-[20rpx] text-gray-400"},{default:d((()=>[i(v,{url:"/pages/auth/login"},{default:d((()=>[n(m(p(U)("haveAccount"))+",",1),i(y,{class:"text-primary"},{default:d((()=>[n(m(p(U)("toLogin")),1)])),_:1})])),_:1})])),_:1}),i(a,{class:"mt-[80rpx]"},{default:d((()=>[i(S,{type:"primary",loading:D.value,loadingText:p(U)("registering"),onClick:W},{default:d((()=>[n(m(p(U)("register")),1)])),_:1},8,["loading","loadingText"])])),_:1})])),_:1},8,["model","rules"])])),_:1})])),_:1}),p(B).login.agreement_show?(t(),u(a,{key:0,class:"text-xs py-[50rpx] flex justify-center w-full"},{default:d((()=>[n(m(p(U)("registerAgreeTips"))+" ",1),i(v,{url:"/pages/auth/agreement?key=service"},{default:d((()=>[i(y,{class:"text-primary"},{default:d((()=>[n(m(p(U)("userAgreement")),1)])),_:1})])),_:1}),n(" "+m(p(U)("and"))+" ",1),i(v,{url:"/pages/auth/agreement?key=privacy"},{default:d((()=>[i(y,{class:"text-primary"},{default:d((()=>[n(m(p(U)("privacyAgreement")),1)])),_:1})])),_:1})])),_:1})):g("",!0)])),_:1})}}});export{F as default}; diff --git a/niucloud/public/wap/assets/pages-auth-resetpwd.91486d96.js b/niucloud/public/wap/assets/pages-auth-resetpwd.2e039795.js similarity index 83% rename from niucloud/public/wap/assets/pages-auth-resetpwd.91486d96.js rename to niucloud/public/wap/assets/pages-auth-resetpwd.2e039795.js index c2fda236b..f01145de3 100644 --- a/niucloud/public/wap/assets/pages-auth-resetpwd.91486d96.js +++ b/niucloud/public/wap/assets/pages-auth-resetpwd.2e039795.js @@ -1 +1 @@ -import{d as e,a as o,r as l,J as r,h as a,i as s,w as d,j as t,C as m,D as p,l as i,a2 as u,R as n,q as c,m as b,p as f}from"./index-5bb08350.js";import{_}from"./u-input.cefa6e75.js";import{_ as g,a as h}from"./u-form.267f755c.js";import{_ as w}from"./sms-code.vue_vue_type_script_setup_true_lang.bcc80d73.js";import{_ as x}from"./u-button.364aa63d.js";import"./u-icon.461524ba.js";import"./_plugin-vue_export-helper.1b428a4d.js";import"./u-line.0c46076e.js";import"./u-modal.64c62d33.js";import"./u-loading-icon.2e89024b.js";import"./u-popup.7d705de0.js";import"./u-transition.021c4c1c.js";import"./u-safe-bottom.6578a4de.js";const y=e({__name:"resetpwd",setup(e){const y=o({mobile:"",mobile_code:"",mobile_key:"",password:"",confirm_password:""}),V=l(!1),j=l(null),P={password:{type:"string",required:!0,message:r("passwordPlaceholder"),trigger:["blur","change"]},confirm_password:[{type:"string",required:!0,message:r("confirmPasswordPlaceholder"),trigger:["blur","change"]},{validator:(e,o)=>o==y.password,message:r("confirmPasswordError"),trigger:["change","blur"]}],mobile:[{type:"string",required:!0,message:r("mobilePlaceholder"),trigger:["blur","change"]},{validator:(e,o)=>uni.$u.test.mobile(o),message:r("mobileError"),trigger:["change","blur"]}],mobile_code:{type:"string",required:!0,message:r("codePlaceholder"),trigger:["blur","change"]}},v=()=>{j.value.validate().then((()=>{V.value||(V.value=!0,u(y).then((e=>{n({url:"/pages/auth/login",mode:"redirectTo"})})).catch((()=>{V.value=!1})))}))};return(e,o)=>{const l=c,u=b(f("u-input"),_),n=b(f("u-form-item"),g),U=b(f("sms-code"),w),k=b(f("u-button"),x),q=b(f("u-form"),h);return a(),s(l,{class:"w-screen h-screen flex flex-col"},{default:d((()=>[t(l,{class:"flex-1"},{default:d((()=>[t(l,{class:"h-[100rpx]"}),t(l,{class:"px-[60rpx] pt-[100rpx] mb-[100rpx]"},{default:d((()=>[t(l,{class:"font-bold text-xl"},{default:d((()=>[m(p(i(r)("findPassword")),1)])),_:1})])),_:1}),t(l,{class:"px-[60rpx]"},{default:d((()=>[t(q,{labelPosition:"left",model:y,errorType:"toast",rules:P,ref_key:"formRef",ref:j},{default:d((()=>[t(l,{class:"mt-[30rpx]"},{default:d((()=>[t(n,{label:"",prop:"mobile","border-bottom":!0},{default:d((()=>[t(u,{modelValue:y.mobile,"onUpdate:modelValue":o[0]||(o[0]=e=>y.mobile=e),border:"none",clearable:"",placeholder:i(r)("mobilePlaceholder")},null,8,["modelValue","placeholder"])])),_:1})])),_:1}),t(l,{class:"mt-[30rpx]"},{default:d((()=>[t(n,{label:"",prop:"code","border-bottom":!0},{default:d((()=>[t(u,{modelValue:y.mobile_code,"onUpdate:modelValue":o[2]||(o[2]=e=>y.mobile_code=e),border:"none",type:"password",clearable:"",placeholder:i(r)("codePlaceholder")},{suffix:d((()=>[t(U,{mobile:y.mobile,type:"find_pass",modelValue:y.mobile_key,"onUpdate:modelValue":o[1]||(o[1]=e=>y.mobile_key=e)},null,8,["mobile","modelValue"])])),_:1},8,["modelValue","placeholder"])])),_:1})])),_:1}),t(l,{class:"mt-[30rpx]"},{default:d((()=>[t(n,{label:"",prop:"password","border-bottom":!0},{default:d((()=>[t(u,{modelValue:y.password,"onUpdate:modelValue":o[3]||(o[3]=e=>y.password=e),border:"none",type:"password",clearable:"",placeholder:i(r)("passwordPlaceholder")},null,8,["modelValue","placeholder"])])),_:1})])),_:1}),t(l,{class:"mt-[30rpx]"},{default:d((()=>[t(n,{label:"",prop:"confirm_password","border-bottom":!0},{default:d((()=>[t(u,{modelValue:y.confirm_password,"onUpdate:modelValue":o[4]||(o[4]=e=>y.confirm_password=e),border:"none",type:"password",clearable:"",placeholder:i(r)("confirmPasswordPlaceholder")},null,8,["modelValue","placeholder"])])),_:1})])),_:1}),t(l,{class:"mt-[80rpx]"},{default:d((()=>[t(k,{type:"primary",loading:V.value,loadingText:i(r)("confirm"),onClick:v},{default:d((()=>[m(p(i(r)("confirm")),1)])),_:1},8,["loading","loadingText"])])),_:1})])),_:1},8,["model"])])),_:1})])),_:1})])),_:1})}}});export{y as default}; +import{d as e,a as o,r as l,J as r,h as a,i as s,w as d,j as t,D as m,E as p,l as i,a2 as u,R as n,t as c,p as b,q as f}from"./index-15eacd31.js";import{_}from"./u-input.4212a359.js";import{_ as g,a as h}from"./u-form.84a1fd52.js";import{_ as w}from"./sms-code.vue_vue_type_script_setup_true_lang.bcd0d968.js";import{_ as x}from"./u-button.5c85e6cc.js";import"./u-icon.f5369555.js";import"./_plugin-vue_export-helper.1b428a4d.js";import"./u-line.bb8d1497.js";import"./u-modal.755a4b61.js";import"./u-loading-icon.ea8c9ece.js";import"./u-popup.8a491625.js";import"./u-transition.a952a64b.js";import"./u-safe-bottom.593b5cec.js";const y=e({__name:"resetpwd",setup(e){const y=o({mobile:"",mobile_code:"",mobile_key:"",password:"",confirm_password:""}),V=l(!1),j=l(null),P={password:{type:"string",required:!0,message:r("passwordPlaceholder"),trigger:["blur","change"]},confirm_password:[{type:"string",required:!0,message:r("confirmPasswordPlaceholder"),trigger:["blur","change"]},{validator:(e,o)=>o==y.password,message:r("confirmPasswordError"),trigger:["change","blur"]}],mobile:[{type:"string",required:!0,message:r("mobilePlaceholder"),trigger:["blur","change"]},{validator:(e,o)=>uni.$u.test.mobile(o),message:r("mobileError"),trigger:["change","blur"]}],mobile_code:{type:"string",required:!0,message:r("codePlaceholder"),trigger:["blur","change"]}},v=()=>{j.value.validate().then((()=>{V.value||(V.value=!0,u(y).then((e=>{n({url:"/pages/auth/login",mode:"redirectTo"})})).catch((()=>{V.value=!1})))}))};return(e,o)=>{const l=c,u=b(f("u-input"),_),n=b(f("u-form-item"),g),U=b(f("sms-code"),w),k=b(f("u-button"),x),q=b(f("u-form"),h);return a(),s(l,{class:"w-screen h-screen flex flex-col"},{default:d((()=>[t(l,{class:"flex-1"},{default:d((()=>[t(l,{class:"h-[100rpx]"}),t(l,{class:"px-[60rpx] pt-[100rpx] mb-[100rpx]"},{default:d((()=>[t(l,{class:"font-bold text-xl"},{default:d((()=>[m(p(i(r)("findPassword")),1)])),_:1})])),_:1}),t(l,{class:"px-[60rpx]"},{default:d((()=>[t(q,{labelPosition:"left",model:y,errorType:"toast",rules:P,ref_key:"formRef",ref:j},{default:d((()=>[t(l,{class:"mt-[30rpx]"},{default:d((()=>[t(n,{label:"",prop:"mobile","border-bottom":!0},{default:d((()=>[t(u,{modelValue:y.mobile,"onUpdate:modelValue":o[0]||(o[0]=e=>y.mobile=e),border:"none",clearable:"",placeholder:i(r)("mobilePlaceholder")},null,8,["modelValue","placeholder"])])),_:1})])),_:1}),t(l,{class:"mt-[30rpx]"},{default:d((()=>[t(n,{label:"",prop:"code","border-bottom":!0},{default:d((()=>[t(u,{modelValue:y.mobile_code,"onUpdate:modelValue":o[2]||(o[2]=e=>y.mobile_code=e),border:"none",type:"password",clearable:"",placeholder:i(r)("codePlaceholder")},{suffix:d((()=>[t(U,{mobile:y.mobile,type:"find_pass",modelValue:y.mobile_key,"onUpdate:modelValue":o[1]||(o[1]=e=>y.mobile_key=e)},null,8,["mobile","modelValue"])])),_:1},8,["modelValue","placeholder"])])),_:1})])),_:1}),t(l,{class:"mt-[30rpx]"},{default:d((()=>[t(n,{label:"",prop:"password","border-bottom":!0},{default:d((()=>[t(u,{modelValue:y.password,"onUpdate:modelValue":o[3]||(o[3]=e=>y.password=e),border:"none",type:"password",clearable:"",placeholder:i(r)("passwordPlaceholder")},null,8,["modelValue","placeholder"])])),_:1})])),_:1}),t(l,{class:"mt-[30rpx]"},{default:d((()=>[t(n,{label:"",prop:"confirm_password","border-bottom":!0},{default:d((()=>[t(u,{modelValue:y.confirm_password,"onUpdate:modelValue":o[4]||(o[4]=e=>y.confirm_password=e),border:"none",type:"password",clearable:"",placeholder:i(r)("confirmPasswordPlaceholder")},null,8,["modelValue","placeholder"])])),_:1})])),_:1}),t(l,{class:"mt-[80rpx]"},{default:d((()=>[t(k,{type:"primary",loading:V.value,loadingText:i(r)("confirm"),onClick:v},{default:d((()=>[m(p(i(r)("confirm")),1)])),_:1},8,["loading","loadingText"])])),_:1})])),_:1},8,["model"])])),_:1})])),_:1})])),_:1})}}});export{y as default}; diff --git a/niucloud/public/wap/assets/pages-index-close.88941b42.js b/niucloud/public/wap/assets/pages-index-close.88941b42.js new file mode 100644 index 000000000..ffe86db4e --- /dev/null +++ b/niucloud/public/wap/assets/pages-index-close.88941b42.js @@ -0,0 +1 @@ +import{_ as e}from"./u-empty.317e751c.js";import{d as s,h as t,i as a,w as o,j as r,l as c,p as i,q as n,t as l,x as p,J as u}from"./index-15eacd31.js";import"./u-icon.f5369555.js";import"./_plugin-vue_export-helper.1b428a4d.js";const m=s({__name:"close",setup:s=>(s,m)=>{const x=i(n("u-empty"),e),f=l;return t(),a(f,{class:"w-screen h-screen flex flex-col items-center justify-center"},{default:o((()=>[r(x,{icon:c(p)("static/resource/images/site/close.png"),text:c(u)("siteClose")},null,8,["icon","text"])])),_:1})}});export{m as default}; diff --git a/niucloud/public/wap/assets/pages-index-close.d92970a6.js b/niucloud/public/wap/assets/pages-index-close.d92970a6.js deleted file mode 100644 index 0ce62e9ea..000000000 --- a/niucloud/public/wap/assets/pages-index-close.d92970a6.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as e}from"./u-empty.972875c1.js";import{d as s,h as t,i as a,w as o,j as r,l as c,m as i,p as n,q as l,t as p,J as m}from"./index-5bb08350.js";import"./u-icon.461524ba.js";import"./_plugin-vue_export-helper.1b428a4d.js";const u=s({__name:"close",setup:s=>(s,u)=>{const f=i(n("u-empty"),e),x=l;return t(),a(x,{class:"w-screen h-screen flex flex-col items-center justify-center"},{default:o((()=>[r(f,{icon:c(p)("static/resource/images/site/close.png"),text:c(m)("siteClose")},null,8,["icon","text"])])),_:1})}});export{u as default}; diff --git a/niucloud/public/wap/assets/pages-index-develop.97b246bb.js b/niucloud/public/wap/assets/pages-index-develop.31f84e01.js similarity index 80% rename from niucloud/public/wap/assets/pages-index-develop.97b246bb.js rename to niucloud/public/wap/assets/pages-index-develop.31f84e01.js index 4f8cb2685..055609a21 100644 --- a/niucloud/public/wap/assets/pages-index-develop.97b246bb.js +++ b/niucloud/public/wap/assets/pages-index-develop.31f84e01.js @@ -1 +1 @@ -import{d as e,a as l,h as a,i as t,w as s,j as o,C as r,D as i,l as d,a5 as n,J as p,b8 as u,q as c,H as m,m as x,p as f}from"./index-5bb08350.js";import{_}from"./u-input.cefa6e75.js";import{_ as b}from"./u-button.364aa63d.js";import"./u-icon.461524ba.js";import"./_plugin-vue_export-helper.1b428a4d.js";import"./u-loading-icon.2e89024b.js";const g=e({__name:"develop",setup(e){const g=l({siteId:"",baseUrl:`${location.origin}/api/`,imgUrl:""}),h=()=>{if(0==g.siteId.length)return void n({title:p("siteIdPlaceholder"),icon:"none"});if(!/^[0-9]+$/.test(g.siteId))return void n({title:p("pleaseEnterNumber"),icon:"none"});uni.setStorageSync("wap_site_id",g.siteId);let e=uni.getStorageSync("develop_before_path")||"/pages/index/index";"/pages/index/develop"==e&&(e="/pages/index/index"),e=e.replace("/",""),uni.removeStorageSync("develop_before_path"),location.href=`${location.origin}${u.h5.router.base}${e}`};return(e,l)=>{const n=c,u=m,v=x(f("u-input"),_),I=x(f("u-button"),b);return a(),t(n,{class:"mt-[80rpx] px-[60rpx]"},{default:s((()=>[o(n,{class:"font-bold text-xl mb-[80rpx]"},{default:s((()=>[r(i(d(p)("developTitle")),1)])),_:1}),o(n,{class:"mb-[40rpx] flex flex-col"},{default:s((()=>[o(u,{class:"mb-[10rpx]"},{default:s((()=>[r(i(d(p)("baseUrl")),1)])),_:1}),o(u,{class:"text-sm"},{default:s((()=>[r(i(g.baseUrl),1)])),_:1})])),_:1}),o(n,{class:"mb-[40rpx] flex flex-col"},{default:s((()=>[o(u,{class:"mb-[10rpx]"},{default:s((()=>[r(i(d(p)("imgUrl")),1)])),_:1}),o(u,{class:"text-sm"},{default:s((()=>[r(i(g.imgUrl),1)])),_:1})])),_:1}),o(n,{class:"mb-[40rpx] flex flex-col"},{default:s((()=>[o(u,{class:"mb-[20rpx]"},{default:s((()=>[r(i(d(p)("siteId")),1)])),_:1}),o(v,{modelValue:g.siteId,"onUpdate:modelValue":l[0]||(l[0]=e=>g.siteId=e),clearable:"",placeholder:d(p)("siteIdPlaceholder")},null,8,["modelValue","placeholder"])])),_:1}),o(I,{type:"primary",onClick:h,class:"mt-[80rpx]"},{default:s((()=>[r(i(d(p)("confirm")),1)])),_:1})])),_:1})}}});export{g as default}; +import{d as e,a as l,h as t,i as a,w as s,j as o,D as r,E as i,l as d,a5 as n,J as p,b9 as u,t as c,H as m,p as x,q as f}from"./index-15eacd31.js";import{_}from"./u-input.4212a359.js";import{_ as b}from"./u-button.5c85e6cc.js";import"./u-icon.f5369555.js";import"./_plugin-vue_export-helper.1b428a4d.js";import"./u-loading-icon.ea8c9ece.js";const g=e({__name:"develop",setup(e){const g=l({siteId:"",baseUrl:`${location.origin}/api/`,imgUrl:""}),h=()=>{if(0==g.siteId.length)return void n({title:p("siteIdPlaceholder"),icon:"none"});if(!/^[0-9]+$/.test(g.siteId))return void n({title:p("pleaseEnterNumber"),icon:"none"});uni.setStorageSync("wap_site_id",g.siteId);let e=uni.getStorageSync("develop_before_path")||"/pages/index/index";"/pages/index/develop"==e&&(e="/pages/index/index"),e=e.replace("/",""),uni.removeStorageSync("develop_before_path"),location.href=`${location.origin}${u.h5.router.base}${e}`};return(e,l)=>{const n=c,u=m,v=x(f("u-input"),_),I=x(f("u-button"),b);return t(),a(n,{class:"mt-[80rpx] px-[60rpx]"},{default:s((()=>[o(n,{class:"font-bold text-xl mb-[80rpx]"},{default:s((()=>[r(i(d(p)("developTitle")),1)])),_:1}),o(n,{class:"mb-[40rpx] flex flex-col"},{default:s((()=>[o(u,{class:"mb-[10rpx]"},{default:s((()=>[r(i(d(p)("baseUrl")),1)])),_:1}),o(u,{class:"text-sm"},{default:s((()=>[r(i(g.baseUrl),1)])),_:1})])),_:1}),o(n,{class:"mb-[40rpx] flex flex-col"},{default:s((()=>[o(u,{class:"mb-[10rpx]"},{default:s((()=>[r(i(d(p)("imgUrl")),1)])),_:1}),o(u,{class:"text-sm"},{default:s((()=>[r(i(g.imgUrl),1)])),_:1})])),_:1}),o(n,{class:"mb-[40rpx] flex flex-col"},{default:s((()=>[o(u,{class:"mb-[20rpx]"},{default:s((()=>[r(i(d(p)("siteId")),1)])),_:1}),o(v,{modelValue:g.siteId,"onUpdate:modelValue":l[0]||(l[0]=e=>g.siteId=e),clearable:"",placeholder:d(p)("siteIdPlaceholder")},null,8,["modelValue","placeholder"])])),_:1}),o(I,{type:"primary",onClick:h,class:"mt-[80rpx]"},{default:s((()=>[r(i(d(p)("confirm")),1)])),_:1})])),_:1})}}});export{g as default}; diff --git a/niucloud/public/wap/assets/pages-index-diy.0d2bc949.js b/niucloud/public/wap/assets/pages-index-diy.0d2bc949.js new file mode 100644 index 000000000..04a9c47d6 --- /dev/null +++ b/niucloud/public/wap/assets/pages-index-diy.0d2bc949.js @@ -0,0 +1 @@ +import{d as a,r as e,u as l,a as t,c as o,o as r,b as s,s as p,e as i,g as d,f as u,h as g,i as n,w as m,j as f,k as c,v,l as b,n as h,m as _,p as j,q as x,t as y,x as S}from"./index-15eacd31.js";import{_ as w}from"./u-loading-page.925a187b.js";import{_ as k,a as M}from"./index.1798b78b.js";import{u as R}from"./useShare.3d08f2fc.js";import{_ as C}from"./_plugin-vue_export-helper.1b428a4d.js";import"./u-loading-icon.ea8c9ece.js";import"./u-transition.a952a64b.js";import"./u-icon.f5369555.js";import"./tabbar.e67e4875.js";import"./u-image.b892f6c4.js";import"./u-safe-bottom.593b5cec.js";import"./article.0307362e.js";import"./app-link.vue_vue_type_script_setup_true_lang.18597de0.js";import"./u-avatar.ddef1faa.js";import"./wechat.56b0d350.js";const D=C(a({__name:"diy",setup(a){const{setShare:C,onShareAppMessage:D,onShareTimeline:B}=R();D(),B();const T=e(!0),U=l(),I=e(0),J=t({pageMode:"diy",title:"",global:{},value:[]}),N=o((()=>"decorate"==U.mode?U:J)),O=e(0),q=e("");return r((a=>{U.mode=a.mode||"","decorate"==U.mode&&(T.value=!1),O.value=a.id||"",q.value=a.name||""})),s((()=>{I.value++,p()})),i((()=>{"decorate"==U.mode?U.init():d({id:O.value,name:q.value}).then((a=>{if(a.data.value){let e=a.data;J.pageMode=e.mode,J.title=e.title;let l=JSON.parse(e.value);J.global=l.global,J.value=l.value,J.value.forEach(((a,e)=>{a.pageStyle="",a.pageBgColor&&(a.pageStyle+="background-color:"+a.pageBgColor+";"),a.margin&&(a.pageStyle+="padding-top:"+2*a.margin.top+"rpx;",a.pageStyle+="padding-bottom:"+2*a.margin.bottom+"rpx;",a.pageStyle+="padding-right:"+2*a.margin.both+"rpx;",a.pageStyle+="padding-left:"+2*a.margin.both+"rpx;")})),u({title:J.title})}let e=a.data.share?JSON.parse(a.data.share):null;C(e),T.value=!1}))})),(a,e)=>{const l=j(x("u-loading-page"),w),t=j(x("diy-group"),k),o=y,r=j(x("fixed-group"),M);return g(),n(o,null,{default:m((()=>[f(l,{loading:T.value,loadingText:"","bg-color":"#f7f7f7"},null,8,["loading"]),c(f(o,null,{default:m((()=>["fixed"!=b(N).pageMode?(g(),n(o,{key:0,class:"diy-template-wrap bg-index",style:h({backgroundColor:b(N).global.pageBgColor,minHeight:"calc(100vh - 50px)",backgroundImage:b(N).global.bgUrl?"url("+b(S)(b(N).global.bgUrl)+")":""})},{default:m((()=>[f(t,{data:b(N),pullDownRefresh:I.value},null,8,["data","pullDownRefresh"])])),_:1},8,["style"])):_("",!0),"fixed"==b(N).pageMode?(g(),n(o,{key:1,class:"fixed-template-wrap"},{default:m((()=>[f(r,{data:b(N),pullDownRefresh:I.value},null,8,["data","pullDownRefresh"])])),_:1})):_("",!0)])),_:1},512),[[v,!T.value]])])),_:1})}}}),[["__scopeId","data-v-56539ac1"]]);export{D as default}; diff --git a/niucloud/public/wap/assets/pages-index-diy.511be170.js b/niucloud/public/wap/assets/pages-index-diy.511be170.js deleted file mode 100644 index 93c746bb8..000000000 --- a/niucloud/public/wap/assets/pages-index-diy.511be170.js +++ /dev/null @@ -1 +0,0 @@ -import{d as a,r as e,u as l,a as o,c as t,o as r,b as s,s as i,e as p,g,f as u,h as n,i as d,w as m,j as c,k as v,v as b,n as f,l as _,m as h,p as j,q as S,t as y}from"./index-5bb08350.js";import{_ as x}from"./u-loading-page.f2a7c1df.js";import{_ as k}from"./index.1d16afd8.js";import{u as w}from"./useShare.80667d20.js";import{_ as C}from"./_plugin-vue_export-helper.1b428a4d.js";import"./u-loading-icon.2e89024b.js";import"./u-transition.021c4c1c.js";import"./u-icon.461524ba.js";import"./tabbar.f7ee8f1f.js";import"./u-image.9265f18d.js";import"./u-safe-bottom.6578a4de.js";import"./article.1722ca18.js";import"./app-link.vue_vue_type_script_setup_true_lang.b08a40da.js";import"./u-avatar.0ea3924d.js";import"./wechat.eeef1e91.js";const B=C(a({__name:"diy",setup(a){const{setShare:C,onShareAppMessage:B,onShareTimeline:R}=w();B(),R();const T=e(!0),U=l(),D=e(0),I=o({global:{},value:[]}),J=t((()=>"decorate"==U.mode?U:I)),N=e(0),O=e("");return r((a=>{U.mode=a.mode||"","decorate"==U.mode&&(T.value=!1),N.value=a.id||"",O.value=a.name||""})),s((()=>{D.value++,i()})),p((()=>{"decorate"==U.mode?U.init():g({id:N.value,name:O.value}).then((a=>{if(a.data.value){let e=a.data;I.mode=e.mode;let l=JSON.parse(a.data.value);I.global=l.global,I.value=l.value,I.value.forEach(((a,e)=>{a.pageStyle="",a.pageBgColor&&(a.pageStyle+="background-color:"+a.pageBgColor+";"),a.margin&&(a.pageStyle+="padding-top:"+2*a.margin.top+"rpx;",a.pageStyle+="padding-bottom:"+2*a.margin.bottom+"rpx;",a.pageStyle+="padding-right:"+2*a.margin.both+"rpx;",a.pageStyle+="padding-left:"+2*a.margin.both+"rpx;")})),u({title:I.global.title})}let e=a.data.share?JSON.parse(a.data.share):null;C(e),T.value=!1}))})),(a,e)=>{const l=h(j("u-loading-page"),x),o=h(j("diy-group"),k),t=S;return n(),d(t,null,{default:m((()=>[c(l,{loading:T.value,loadingText:"","bg-color":"#f7f7f7"},null,8,["loading"]),v(c(t,null,{default:m((()=>[c(t,{class:"diy-template-wrap bg-index",style:f({backgroundColor:_(J).global.pageBgColor,minHeight:"calc(100vh - 50px)",backgroundImage:_(J).global.bgUrl?"url("+_(y)(_(J).global.bgUrl)+")":""})},{default:m((()=>[c(o,{data:_(J),pullDownRefresh:D.value},null,8,["data","pullDownRefresh"])])),_:1},8,["style"])])),_:1},512),[[b,!T.value]])])),_:1})}}}),[["__scopeId","data-v-5d78a9ac"]]);export{B as default}; diff --git a/niucloud/public/wap/assets/pages-index-index.9dccf8c4.js b/niucloud/public/wap/assets/pages-index-index.9dccf8c4.js new file mode 100644 index 000000000..df537d52e --- /dev/null +++ b/niucloud/public/wap/assets/pages-index-index.9dccf8c4.js @@ -0,0 +1 @@ +import{d as a,r as e,u as l,a as t,c as o,o as r,b as s,s as p,e as i,g,f as d,h as n,i as u,w as m,j as f,k as c,v as b,l as _,n as v,m as h,p as x,q as j,t as y,x as S}from"./index-15eacd31.js";import{_ as w}from"./u-loading-page.925a187b.js";import{_ as k,a as D}from"./index.1798b78b.js";import{u as M}from"./useShare.3d08f2fc.js";import{_ as R}from"./_plugin-vue_export-helper.1b428a4d.js";import"./u-loading-icon.ea8c9ece.js";import"./u-transition.a952a64b.js";import"./u-icon.f5369555.js";import"./tabbar.e67e4875.js";import"./u-image.b892f6c4.js";import"./u-safe-bottom.593b5cec.js";import"./article.0307362e.js";import"./app-link.vue_vue_type_script_setup_true_lang.18597de0.js";import"./u-avatar.ddef1faa.js";import"./wechat.56b0d350.js";const C=R(a({__name:"index",setup(a){const{setShare:R,onShareAppMessage:C,onShareTimeline:I}=M();R(),C(),I();const B=e(!0),T=l(),U=e(0),E=t({pageMode:"diy",title:"",global:{},value:[]}),N=o((()=>"decorate"==T.mode?T:E));return r((a=>{T.mode=a.mode||"","decorate"==T.mode&&(B.value=!1)})),s((()=>{U.value++,p()})),i((()=>{"decorate"==T.mode?T.init():g({name:"DIY_INDEX"}).then((a=>{if(a.data.value){let e=a.data;E.pageMode=e.mode,E.title=e.title;let l=JSON.parse(e.value);E.global=l.global,E.value=l.value,E.value.forEach(((a,e)=>{a.pageStyle="",a.pageBgColor&&(a.pageStyle+="background-color:"+a.pageBgColor+";"),a.margin&&(a.pageStyle+="padding-top:"+2*a.margin.top+"rpx;",a.pageStyle+="padding-bottom:"+2*a.margin.bottom+"rpx;",a.pageStyle+="padding-right:"+2*a.margin.both+"rpx;",a.pageStyle+="padding-left:"+2*a.margin.both+"rpx;")})),d({title:E.title})}B.value=!1}))})),(a,e)=>{const l=x(j("u-loading-page"),w),t=x(j("diy-group"),k),o=y,r=x(j("fixed-group"),D);return n(),u(o,null,{default:m((()=>[f(l,{loading:B.value,loadingText:"","bg-color":"#f7f7f7"},null,8,["loading"]),c(f(o,null,{default:m((()=>["fixed"!=_(N).pageMode?(n(),u(o,{key:0,class:"diy-template-wrap bg-index",style:v({backgroundColor:_(N).global.pageBgColor,minHeight:"calc(100vh - 50px)",backgroundImage:_(N).global.bgUrl?"url("+_(S)(_(N).global.bgUrl)+")":""})},{default:m((()=>[f(t,{data:_(N),pullDownRefresh:U.value},null,8,["data","pullDownRefresh"])])),_:1},8,["style"])):h("",!0),"fixed"==_(N).pageMode?(n(),u(o,{key:1,class:"fixed-template-wrap"},{default:m((()=>[f(r,{data:_(N),pullDownRefresh:U.value},null,8,["data","pullDownRefresh"])])),_:1})):h("",!0)])),_:1},512),[[b,!B.value]])])),_:1})}}}),[["__scopeId","data-v-e6c97636"]]);export{C as default}; diff --git a/niucloud/public/wap/assets/pages-index-index.fdb474ef.js b/niucloud/public/wap/assets/pages-index-index.fdb474ef.js deleted file mode 100644 index d45fb09c3..000000000 --- a/niucloud/public/wap/assets/pages-index-index.fdb474ef.js +++ /dev/null @@ -1 +0,0 @@ -import{d as a,r as e,u as o,a as t,c as l,o as r,b as s,s as i,e as p,g,f as n,h as u,i as d,w as m,j as c,k as b,v as f,n as _,l as v,m as h,p as j,q as x,t as S}from"./index-5bb08350.js";import{_ as y}from"./u-loading-page.f2a7c1df.js";import{_ as k}from"./index.1d16afd8.js";import{u as w}from"./useShare.80667d20.js";import{_ as C}from"./_plugin-vue_export-helper.1b428a4d.js";import"./u-loading-icon.2e89024b.js";import"./u-transition.021c4c1c.js";import"./u-icon.461524ba.js";import"./tabbar.f7ee8f1f.js";import"./u-image.9265f18d.js";import"./u-safe-bottom.6578a4de.js";import"./article.1722ca18.js";import"./app-link.vue_vue_type_script_setup_true_lang.b08a40da.js";import"./u-avatar.0ea3924d.js";import"./wechat.eeef1e91.js";const D=C(a({__name:"index",setup(a){const{setShare:C,onShareAppMessage:D,onShareTimeline:I}=w();C(),D(),I();const B=e(!0),R=o(),T=e(0),U=t({global:{},value:[]}),E=l((()=>"decorate"==R.mode?R:U));return r((a=>{R.mode=a.mode||"","decorate"==R.mode&&(B.value=!1)})),s((()=>{T.value++,i()})),p((()=>{"decorate"==R.mode?R.init():g({name:"DIY_INDEX"}).then((a=>{if(a.data.value){let e=a.data;U.mode=e.mode;let o=JSON.parse(e.value);U.title=o.title,U.global=o.global,U.value=o.value,U.value.forEach(((a,e)=>{a.pageStyle="",a.pageBgColor&&(a.pageStyle+="background-color:"+a.pageBgColor+";"),a.margin&&(a.pageStyle+="padding-top:"+2*a.margin.top+"rpx;",a.pageStyle+="padding-bottom:"+2*a.margin.bottom+"rpx;",a.pageStyle+="padding-right:"+2*a.margin.both+"rpx;",a.pageStyle+="padding-left:"+2*a.margin.both+"rpx;")})),n({title:U.global.title})}B.value=!1}))})),(a,e)=>{const o=h(j("u-loading-page"),y),t=h(j("diy-group"),k),l=x;return u(),d(l,null,{default:m((()=>[c(o,{loading:B.value,loadingText:"","bg-color":"#f7f7f7"},null,8,["loading"]),b(c(l,null,{default:m((()=>[c(l,{class:"diy-template-wrap bg-index",style:_({backgroundColor:v(E).global.pageBgColor,minHeight:"calc(100vh - 50px)",backgroundImage:v(E).global.bgUrl?"url("+v(S)(v(E).global.bgUrl)+")":""})},{default:m((()=>[c(t,{data:v(E),pullDownRefresh:T.value},null,8,["data","pullDownRefresh"])])),_:1},8,["style"])])),_:1},512),[[f,!B.value]])])),_:1})}}}),[["__scopeId","data-v-efa7cdd6"]]);export{D as default}; diff --git a/niucloud/public/wap/assets/pages-index-nosite.05c15b99.js b/niucloud/public/wap/assets/pages-index-nosite.05c15b99.js deleted file mode 100644 index 066eca926..000000000 --- a/niucloud/public/wap/assets/pages-index-nosite.05c15b99.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as e}from"./u-empty.972875c1.js";import{d as s,h as t,i as a,w as o,j as i,l as n,m as r,p as c,q as p,t as l,J as m}from"./index-5bb08350.js";import"./u-icon.461524ba.js";import"./_plugin-vue_export-helper.1b428a4d.js";const u=s({__name:"nosite",setup:s=>(s,u)=>{const f=r(c("u-empty"),e),x=p;return t(),a(x,{class:"w-screen h-screen flex flex-col items-center justify-center"},{default:o((()=>[i(f,{icon:n(l)("static/resource/images/site/close.png"),text:n(m)("noSite")},null,8,["icon","text"])])),_:1})}});export{u as default}; diff --git a/niucloud/public/wap/assets/pages-index-nosite.d52e22d1.js b/niucloud/public/wap/assets/pages-index-nosite.d52e22d1.js new file mode 100644 index 000000000..25c87f4b4 --- /dev/null +++ b/niucloud/public/wap/assets/pages-index-nosite.d52e22d1.js @@ -0,0 +1 @@ +import{_ as e}from"./u-empty.317e751c.js";import{d as s,h as t,i as a,w as o,j as i,l as n,p as r,q as c,t as p,x as l,J as u}from"./index-15eacd31.js";import"./u-icon.f5369555.js";import"./_plugin-vue_export-helper.1b428a4d.js";const m=s({__name:"nosite",setup:s=>(s,m)=>{const x=r(c("u-empty"),e),f=p;return t(),a(f,{class:"w-screen h-screen flex flex-col items-center justify-center"},{default:o((()=>[i(x,{icon:n(l)("static/resource/images/site/close.png"),text:n(u)("noSite")},null,8,["icon","text"])])),_:1})}});export{m as default}; diff --git a/niucloud/public/wap/assets/pages-member-account.831de6e4.js b/niucloud/public/wap/assets/pages-member-account.1645a99d.js similarity index 93% rename from niucloud/public/wap/assets/pages-member-account.831de6e4.js rename to niucloud/public/wap/assets/pages-member-account.1645a99d.js index 6c6966503..9f4341dc9 100644 --- a/niucloud/public/wap/assets/pages-member-account.831de6e4.js +++ b/niucloud/public/wap/assets/pages-member-account.1645a99d.js @@ -1 +1 @@ -import{d as a,r as e,o as t,h as A,i as s,w as u,j as l,M as o,N as n,O as r,l as i,C as c,D as d,P as g,Q as p,aZ as m,q as f,H as x,m as B,p as G,J as Q,R as y,a1 as h}from"./index-5bb08350.js";import{_ as b}from"./u-icon.461524ba.js";import{u as v,M as T}from"./useMescroll.92c88689.js";import"./_plugin-vue_export-helper.1b428a4d.js";const P=a({__name:"account",setup(a){const{mescrollInit:P,downCallback:M,getMescroll:O}=v(p,g),U=e([]),w=e(!1),k=e("bank"),S=e(null),F=e("get");t((a=>{a.type&&(k.value=a.type),a.mode&&(F.value=a.mode)}));const Z=a=>{w.value=!1;let e={page:a.num,limit:a.size,account_type:k.value};m(e).then((e=>{const t=e.data.data;1==a.num&&(U.value=[]),U.value=U.value.concat(t),a.endSuccess(t.length),w.value=!0})).catch((()=>{w.value=!0,a.endErr()}))};return(a,e)=>{const t=f,g=h,p=x,m=B(G("u-icon"),b);return A(),s(t,{class:"w-screen h-screen bg-page"},{default:u((()=>[l(T,{ref_key:"mescrollRef",ref:S,onInit:i(P),onDown:i(M),onUp:Z},{default:u((()=>[l(t,{class:"h-[20rpx]"}),(A(!0),o(r,null,n(U.value,((a,e)=>(A(),s(t,{class:"p-[30rpx] bg-white mx-[32rpx] my-[20rpx] rounded flex",key:e,onClick:e=>{return t=a,void("get"==F.value?y({url:"/pages/member/account_edit",param:{id:t.account_id,type:k.value,mode:F.value}}):y({url:"/pages/member/apply_cash_out",param:{account_id:t.account_id,type:k.value}}));var t}},{default:u((()=>[l(t,{class:"w-[100rpx] h-[100rpx] flex items-center justify-center mr-[10rpx]"},{default:u((()=>["bank"==a.account_type?(A(),s(g,{key:0,src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAAXNSR0IArs4c6QAACnVJREFUeF7tWXtQVNcZ/91FQQZZdhcXfKCCqFXQuKBV0YSHqWJ9AbU+qkZQG+uEyu66i0maB5jEaSetBdvG1vrCRhM1bQS1SUw6gn0kJhkDpqLNQ10jLApEHmrCuuyeznfWRZZd3L03/MOw38zOPfee8517vt/5fY9zV0AfF6GP2w8/AH4G9HEE/C7QxwngD4J+F/C7QB9HwO8CfZwA/iwgyQWuQznBBmGxAKGdwd4u41e0070Ndhtd7z2zUT+DYKN7GWzt14PDAtZOXfIjgLULYNaziuGfQ0A73QPMxtt2wdGG0H6vzwaB2kI7omyjoMZkMFgRav8MTGZFP+Eu7PZ23gaz8nGMWRHArGABVtht7QiQfY08Q2VXxosGwAzlVkDQAggR6z7bx87EjrEzcKtfkFhVIBjAcAYMZeJ1uYbwDWR4BnmG4s4TiALAjPBfAuwpKSvYFTsVBRPnSFF16ExigFKq8R2vvQmdMVwSAGYoVwHCq1IsqA4bjIXJOWgL6CdFHYhljt3vCWEsDfr8CudUPjOgFqpDArBMyhp2x07F899l96fbgQFS3uxBp/l2AAoL7aIBMEN1GUCMlGXkTsnE0agJUlSBgQCmdKxX2hz3tf4NnfER0S5QA4VGBplbBPV1NTNm58IUovR1uOu4IQC+10MACMJWaA3PigbADOV6QNgpxYKL8gg8Omu9FFWHzlg7MFS6uoumTJaOvE3vSgBAtRvAOinLeH2kBoaEBVJUHTqT7UCodHUXzf7BocjNvS0agFqoPhWAiQMy56HfpAmwXb2Gb0te5/MEps5EYMpMWMrehrXqv24r3ayZhwPRiZIsSNVEISV9mItuVUMDyi5/KX4+AR9Ba5zWVdFrFriOsBg7AigAYlBlBfprJuLb/YfQnJPL5wqvOMYBaExI9QjA7LSfgtKgFCktWIQMTSzONTZAERSEkaFyPs2a995ByYVqcVMK7DfQ5ueLBsAM5QpAOEiKQ9jXXL8p6zG0lb7F2/SMtbTiusI9QZiD5ZiSniduoZ1GN732BBTBQYjZtwum1lZUrVyNSYPU2PLhByg88764ee1sETblH5cAgIpKRy1RPbz8GNe/oRwFe3MLZwOxoq3sbTRlruJ9MkUY7yM5NiwOh9bkISU+CvvLL8BU39rtohUhjvKYrjROE6NG5W9X4eqtVkTv3cUZULliNaLlciS89iqqGurFAWBlkcjPd1Py6gJ1UL3PgKQQ3QbIi7bCeu48GjUp/OXOZ636Z/g99dtMXyEgegQH4bllzyJi41pER8iR87uT3Kh9G9P5ffMdC9Kee4MbfPSpRR3G03Plqh3QLUxE0doUvvOll75AZuwYbvz+i9WoqLmGouQ0mFpb0GyxICYsDJnHy3B0QQYHjNhB7e1VnziYwnAOeqPGE2IPBOAmlGFtEIj3AYqSVxCcvdzF/5WlBzAg44fc/wkM6r+95WUMLNjM3/WDec9gd8mT3GAy6srOdWj5xgLdngpu9PYTlRyIgmXTeTtzWixGquUQsopQYkhH9sNx3CACodnShtJLX/J2+eKlHAiS7PHxvE0xgZ6frq0BY4yDojn4Fw4QGH4PvdGjLz4QgBoo58sgnKAXOYPdne070ar7Bad6ZNNlnhHqozUdAbJOCOdxof1qDZKKTuHj4tU4XV2DklMXsG/jHGw5fIZT3NlOnRDFXSTmZ3tQ/uISKAcGQbFyB67sWYdolTvdSxdmIGPUaO4GmbGjUTAtCfp/VqC48iyY1tCxyS6BUmDLoM0/IpoBZihfAgTOb+duE7UtpW/x9EdUp4B4t+I/HAxyDwKHYsWVwyfwQn1gh6E0B+10yalqaGIiEBMph0Z/gPu5IIC3iSEEFrkLZ4vFAsWf/uCy7oofL0PKsChknSjjbtA5JjgBIBak/vXwfT1mjYH+aZMEAFRUNc0mRTI2tPBJbjiJteo87hT/kRtPwVBevJW3qRYgd3jzZCU+mzQFtMOFhz5A1ZUGlD69iO922UeX+DOif8VLS1D64SUOTPG6VM4UU30LCh9PQtXNeuhOl7usOycuHsXJaWi+a+FpsTNIzizhGiSFi9AZ4rqLmA90ATNUzQDCxIVbx+iVST9BeWSsFFWAEkKSuPqfmHBlzeM8HuS8+06n9wo7oTNsEA3ADaiSbIDIZHv/NXHzDGgOpM84EkTNgHhx53+K+mlRwxG9b5cj8DmFCWugN5SIBqAOKiMDfi1h+ahSDMG81O6PDuTflBmKj3+Cc6ZGnh61CxK4K1AmcAr5OUX+pg0/548o7WnUES5LIrpTcVQyZ67nAokFxEGvvygaADNUbwLIkgJAd5+/KOdTpKcASDGBhHyegiOlx+LjlRipDkXO3Hgog4N4AKRIT7vrzP/7Zs/l+Z0kZ3w8qhod8xA4rtTnjy9DZ3ygH3YbA8xQ1QBwPYn4iMb6qYtxYuh4t9G061QIVZy/1tF3ztTAawK6UlAk4ZXjPV8uTkmDVpPIix+qBokBlPYyRrna1XLXwoshF2HYD70x50HL9giAGeHjANYtbbzh8P30jagNdo+dBEBJXrpLaUysIPoTIwgAhTwImhFqpP3tCDeaAhulSdpd2n2HoaWIlofxe2cf+b2H8jgXOuMO0QDUQrVOAOgbgGgxhagwY/YTHvVyZsVzY8nnnf5P91T8EP0zpsZi/6fVyJgWy098ZGTlisc4EFQBUgokZjhPhalRw3nAI8OJFW4ACJgCrfGsaADqoNrLgDWirQdwZMRD0CU6avuu4qzvie4U8JwVYeeS2NTUihabhZexuoTJKEpO5UYTGFQAUdAjV6C4QFdnGUzGu0R/oBY6Y5Q3G7pxAdX/6EucN2VP/fma+TgYneBRlYoiCoL6vac5A4gRVBJn/eoYrw4pGAovb+N1ABlHtT35PFV1hdNn8DYdjQkYnSaRF0NNbW0cFA/yBnTGpd5scAPgOgZG2BF4w5tid/2pj27A56GDPHYXLk/iRtLOUzVI/p+d5ijSiBWTotW8Tf5PhQ35eFchV6A+chFyAToMdfOBxAidcZs3O9wAMCM8C2CUAkVLc/9gxM2/fyDpOgEZTP5PQiBQ0HPeUxDUJKqBkYz7fGdxRn9KdeQKTr93PvdAf8BuT8amzf/yZoQHAFSE2iZvip763xs8FtnTvbKu+6nHMGCYuArQ82RCA4beisLSwrve7HADoBaqMwLg9vHQ20TUvzV+Fl4ZM8OXoZ7H9NQXYIa/Q2/06VO0CwAM6FcHlVWqBRmPZOPj8OHS1GUAksUdgLp9kSA8D63hRV8W4gLANShSAyBzPX/6Msu9MUMzXf50EaFJHwMZoOkJ+vPXzoXOeNKXBXRlQGCd4wgs6Ri3Kmk5TkWO9uW97mOIAQ/bAbp+N9kGndHo6xSegqDkf4G2jUsG/STLODsg7S8EQIAZEP4MrWGLmPd7LIS+AIIGQJEkZqLOYwseSudfYL8KCav/R+QYs6h51BiMMAxGsKwRKjsdyHyTTv/5+6bgGOX1s7iYyXrjWD8AvXHXenLNfgb0JJq9cS4/A3rjrvXkmv0M6Ek0e+Ncfgb0xl3ryTX7GdCTaPbGufo8A/4PpckqfWjPHTQAAAAASUVORK5CYII=",mode:"widthFix",class:"w-[80rpx]"})):(A(),s(p,{key:1,class:"iconfont iconzhifubaoxuanzhong text-[#188dfb] text-[80rpx]"}))])),_:2},1024),l(t,null,{default:u((()=>[l(t,null,{default:u((()=>[c(d("bank"==a.account_type?a.bank_name:i(Q)("alipayAccountNo")),1)])),_:2},1024),"bank"==a.account_type?(A(),s(t,{key:0,class:"text-sm text-gray-subtitle mt-[10rpx]"},{default:u((()=>[c(d(i(Q)("endNumber"))+" "+d(a.account_no.substring(a.account_no.length-4))+d(i(Q)("bankCard")),1)])),_:2},1024)):(A(),s(t,{key:1,class:"text-sm text-gray-subtitle mt-[10rpx]"},{default:u((()=>[c(d(a.account_no),1)])),_:2},1024))])),_:2},1024)])),_:2},1032,["onClick"])))),128)),l(t,{class:"p-[30rpx] bg-white mx-[32rpx] my-[20rpx] rounded flex",onClick:e[0]||(e[0]=a=>i(y)({url:"/pages/member/account_edit",param:{type:k.value,mode:F.value}}))},{default:u((()=>[l(m,{name:"plus",color:"#333",size:"16"}),l(p,{class:"text-sm ml-[10rpx] flex-1"},{default:u((()=>[c(d("bank"==k.value?i(Q)("addBankCard"):i(Q)("addAlipayAccount")),1)])),_:1}),l(m,{name:"arrow-right",color:"#333",size:"14"})])),_:1})])),_:1},8,["onInit","onDown"])])),_:1})}}});export{P as default}; +import{d as a,r as e,o as t,h as A,i as s,w as u,j as l,M as o,N as n,O as r,l as i,D as c,E as d,P as g,Q as p,a$ as m,t as f,H as x,p as B,q as G,J as Q,R as y,a1 as h}from"./index-15eacd31.js";import{_ as b}from"./u-icon.f5369555.js";import{u as v,M as T}from"./useMescroll.fbb7af33.js";import"./_plugin-vue_export-helper.1b428a4d.js";const P=a({__name:"account",setup(a){const{mescrollInit:P,downCallback:M,getMescroll:O}=v(p,g),U=e([]),w=e(!1),k=e("bank"),S=e(null),F=e("get");t((a=>{a.type&&(k.value=a.type),a.mode&&(F.value=a.mode)}));const Y=a=>{w.value=!1;let e={page:a.num,limit:a.size,account_type:k.value};m(e).then((e=>{const t=e.data.data;1==a.num&&(U.value=[]),U.value=U.value.concat(t),a.endSuccess(t.length),w.value=!0})).catch((()=>{w.value=!0,a.endErr()}))};return(a,e)=>{const t=f,g=h,p=x,m=B(G("u-icon"),b);return A(),s(t,{class:"w-screen h-screen bg-page"},{default:u((()=>[l(T,{ref_key:"mescrollRef",ref:S,onInit:i(P),onDown:i(M),onUp:Y},{default:u((()=>[l(t,{class:"h-[20rpx]"}),(A(!0),o(r,null,n(U.value,((a,e)=>(A(),s(t,{class:"p-[30rpx] bg-white mx-[32rpx] my-[20rpx] rounded flex",key:e,onClick:e=>{return t=a,void("get"==F.value?y({url:"/pages/member/account_edit",param:{id:t.account_id,type:k.value,mode:F.value}}):y({url:"/pages/member/apply_cash_out",param:{account_id:t.account_id,type:k.value}}));var t}},{default:u((()=>[l(t,{class:"w-[100rpx] h-[100rpx] flex items-center justify-center mr-[10rpx]"},{default:u((()=>["bank"==a.account_type?(A(),s(g,{key:0,src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAAXNSR0IArs4c6QAACnVJREFUeF7tWXtQVNcZ/91FQQZZdhcXfKCCqFXQuKBV0YSHqWJ9AbU+qkZQG+uEyu66i0maB5jEaSetBdvG1vrCRhM1bQS1SUw6gn0kJhkDpqLNQ10jLApEHmrCuuyeznfWRZZd3L03/MOw38zOPfee8517vt/5fY9zV0AfF6GP2w8/AH4G9HEE/C7QxwngD4J+F/C7QB9HwO8CfZwA/iwgyQWuQznBBmGxAKGdwd4u41e0070Ndhtd7z2zUT+DYKN7GWzt14PDAtZOXfIjgLULYNaziuGfQ0A73QPMxtt2wdGG0H6vzwaB2kI7omyjoMZkMFgRav8MTGZFP+Eu7PZ23gaz8nGMWRHArGABVtht7QiQfY08Q2VXxosGwAzlVkDQAggR6z7bx87EjrEzcKtfkFhVIBjAcAYMZeJ1uYbwDWR4BnmG4s4TiALAjPBfAuwpKSvYFTsVBRPnSFF16ExigFKq8R2vvQmdMVwSAGYoVwHCq1IsqA4bjIXJOWgL6CdFHYhljt3vCWEsDfr8CudUPjOgFqpDArBMyhp2x07F899l96fbgQFS3uxBp/l2AAoL7aIBMEN1GUCMlGXkTsnE0agJUlSBgQCmdKxX2hz3tf4NnfER0S5QA4VGBplbBPV1NTNm58IUovR1uOu4IQC+10MACMJWaA3PigbADOV6QNgpxYKL8gg8Omu9FFWHzlg7MFS6uoumTJaOvE3vSgBAtRvAOinLeH2kBoaEBVJUHTqT7UCodHUXzf7BocjNvS0agFqoPhWAiQMy56HfpAmwXb2Gb0te5/MEps5EYMpMWMrehrXqv24r3ayZhwPRiZIsSNVEISV9mItuVUMDyi5/KX4+AR9Ba5zWVdFrFriOsBg7AigAYlBlBfprJuLb/YfQnJPL5wqvOMYBaExI9QjA7LSfgtKgFCktWIQMTSzONTZAERSEkaFyPs2a995ByYVqcVMK7DfQ5ueLBsAM5QpAOEiKQ9jXXL8p6zG0lb7F2/SMtbTiusI9QZiD5ZiSniduoZ1GN732BBTBQYjZtwum1lZUrVyNSYPU2PLhByg88764ee1sETblH5cAgIpKRy1RPbz8GNe/oRwFe3MLZwOxoq3sbTRlruJ9MkUY7yM5NiwOh9bkISU+CvvLL8BU39rtohUhjvKYrjROE6NG5W9X4eqtVkTv3cUZULliNaLlciS89iqqGurFAWBlkcjPd1Py6gJ1UL3PgKQQ3QbIi7bCeu48GjUp/OXOZ636Z/g99dtMXyEgegQH4bllzyJi41pER8iR87uT3Kh9G9P5ffMdC9Kee4MbfPSpRR3G03Plqh3QLUxE0doUvvOll75AZuwYbvz+i9WoqLmGouQ0mFpb0GyxICYsDJnHy3B0QQYHjNhB7e1VnziYwnAOeqPGE2IPBOAmlGFtEIj3AYqSVxCcvdzF/5WlBzAg44fc/wkM6r+95WUMLNjM3/WDec9gd8mT3GAy6srOdWj5xgLdngpu9PYTlRyIgmXTeTtzWixGquUQsopQYkhH9sNx3CACodnShtJLX/J2+eKlHAiS7PHxvE0xgZ6frq0BY4yDojn4Fw4QGH4PvdGjLz4QgBoo58sgnKAXOYPdne070ar7Bad6ZNNlnhHqozUdAbJOCOdxof1qDZKKTuHj4tU4XV2DklMXsG/jHGw5fIZT3NlOnRDFXSTmZ3tQ/uISKAcGQbFyB67sWYdolTvdSxdmIGPUaO4GmbGjUTAtCfp/VqC48iyY1tCxyS6BUmDLoM0/IpoBZihfAgTOb+duE7UtpW/x9EdUp4B4t+I/HAxyDwKHYsWVwyfwQn1gh6E0B+10yalqaGIiEBMph0Z/gPu5IIC3iSEEFrkLZ4vFAsWf/uCy7oofL0PKsChknSjjbtA5JjgBIBak/vXwfT1mjYH+aZMEAFRUNc0mRTI2tPBJbjiJteo87hT/kRtPwVBevJW3qRYgd3jzZCU+mzQFtMOFhz5A1ZUGlD69iO922UeX+DOif8VLS1D64SUOTPG6VM4UU30LCh9PQtXNeuhOl7usOycuHsXJaWi+a+FpsTNIzizhGiSFi9AZ4rqLmA90ATNUzQDCxIVbx+iVST9BeWSsFFWAEkKSuPqfmHBlzeM8HuS8+06n9wo7oTNsEA3ADaiSbIDIZHv/NXHzDGgOpM84EkTNgHhx53+K+mlRwxG9b5cj8DmFCWugN5SIBqAOKiMDfi1h+ahSDMG81O6PDuTflBmKj3+Cc6ZGnh61CxK4K1AmcAr5OUX+pg0/548o7WnUES5LIrpTcVQyZ67nAokFxEGvvygaADNUbwLIkgJAd5+/KOdTpKcASDGBhHyegiOlx+LjlRipDkXO3Hgog4N4AKRIT7vrzP/7Zs/l+Z0kZ3w8qhod8xA4rtTnjy9DZ3ygH3YbA8xQ1QBwPYn4iMb6qYtxYuh4t9G061QIVZy/1tF3ztTAawK6UlAk4ZXjPV8uTkmDVpPIix+qBokBlPYyRrna1XLXwoshF2HYD70x50HL9giAGeHjANYtbbzh8P30jagNdo+dBEBJXrpLaUysIPoTIwgAhTwImhFqpP3tCDeaAhulSdpd2n2HoaWIlofxe2cf+b2H8jgXOuMO0QDUQrVOAOgbgGgxhagwY/YTHvVyZsVzY8nnnf5P91T8EP0zpsZi/6fVyJgWy098ZGTlisc4EFQBUgokZjhPhalRw3nAI8OJFW4ACJgCrfGsaADqoNrLgDWirQdwZMRD0CU6avuu4qzvie4U8JwVYeeS2NTUihabhZexuoTJKEpO5UYTGFQAUdAjV6C4QFdnGUzGu0R/oBY6Y5Q3G7pxAdX/6EucN2VP/fma+TgYneBRlYoiCoL6vac5A4gRVBJn/eoYrw4pGAovb+N1ABlHtT35PFV1hdNn8DYdjQkYnSaRF0NNbW0cFA/yBnTGpd5scAPgOgZG2BF4w5tid/2pj27A56GDPHYXLk/iRtLOUzVI/p+d5ijSiBWTotW8Tf5PhQ35eFchV6A+chFyAToMdfOBxAidcZs3O9wAMCM8C2CUAkVLc/9gxM2/fyDpOgEZTP5PQiBQ0HPeUxDUJKqBkYz7fGdxRn9KdeQKTr93PvdAf8BuT8amzf/yZoQHAFSE2iZvip763xs8FtnTvbKu+6nHMGCYuArQ82RCA4beisLSwrve7HADoBaqMwLg9vHQ20TUvzV+Fl4ZM8OXoZ7H9NQXYIa/Q2/06VO0CwAM6FcHlVWqBRmPZOPj8OHS1GUAksUdgLp9kSA8D63hRV8W4gLANShSAyBzPX/6Msu9MUMzXf50EaFJHwMZoOkJ+vPXzoXOeNKXBXRlQGCd4wgs6Ri3Kmk5TkWO9uW97mOIAQ/bAbp+N9kGndHo6xSegqDkf4G2jUsG/STLODsg7S8EQIAZEP4MrWGLmPd7LIS+AIIGQJEkZqLOYwseSudfYL8KCav/R+QYs6h51BiMMAxGsKwRKjsdyHyTTv/5+6bgGOX1s7iYyXrjWD8AvXHXenLNfgb0JJq9cS4/A3rjrvXkmv0M6Ek0e+Ncfgb0xl3ryTX7GdCTaPbGufo8A/4PpckqfWjPHTQAAAAASUVORK5CYII=",mode:"widthFix",class:"w-[80rpx]"})):(A(),s(p,{key:1,class:"iconfont iconzhifubaoxuanzhong text-[#188dfb] text-[80rpx]"}))])),_:2},1024),l(t,null,{default:u((()=>[l(t,null,{default:u((()=>[c(d("bank"==a.account_type?a.bank_name:i(Q)("alipayAccountNo")),1)])),_:2},1024),"bank"==a.account_type?(A(),s(t,{key:0,class:"text-sm text-gray-subtitle mt-[10rpx]"},{default:u((()=>[c(d(i(Q)("endNumber"))+" "+d(a.account_no.substring(a.account_no.length-4))+d(i(Q)("bankCard")),1)])),_:2},1024)):(A(),s(t,{key:1,class:"text-sm text-gray-subtitle mt-[10rpx]"},{default:u((()=>[c(d(a.account_no),1)])),_:2},1024))])),_:2},1024)])),_:2},1032,["onClick"])))),128)),l(t,{class:"p-[30rpx] bg-white mx-[32rpx] my-[20rpx] rounded flex",onClick:e[0]||(e[0]=a=>i(y)({url:"/pages/member/account_edit",param:{type:k.value,mode:F.value}}))},{default:u((()=>[l(m,{name:"plus",color:"#333",size:"16"}),l(p,{class:"text-sm ml-[10rpx] flex-1"},{default:u((()=>[c(d("bank"==k.value?i(Q)("addBankCard"):i(Q)("addAlipayAccount")),1)])),_:1}),l(m,{name:"arrow-right",color:"#333",size:"14"})])),_:1})])),_:1},8,["onInit","onDown"])])),_:1})}}});export{P as default}; diff --git a/niucloud/public/wap/assets/pages-member-account_edit.889d1e51.js b/niucloud/public/wap/assets/pages-member-account_edit.142797b5.js similarity index 82% rename from niucloud/public/wap/assets/pages-member-account_edit.889d1e51.js rename to niucloud/public/wap/assets/pages-member-account_edit.142797b5.js index af8dd2e9f..09e0b2914 100644 --- a/niucloud/public/wap/assets/pages-member-account_edit.889d1e51.js +++ b/niucloud/public/wap/assets/pages-member-account_edit.142797b5.js @@ -1 +1 @@ -import{d as e,r as a,a as l,c as t,o,as as n,h as r,M as c,j as u,w as d,O as s,C as m,D as p,l as i,E as b,i as _,b1 as f,b2 as h,R as y,b3 as x,q as g,m as k,p as V,S as v,J as j}from"./index-5bb08350.js";import{_ as P}from"./u-input.cefa6e75.js";import{_ as A,a as T}from"./u-form.267f755c.js";import{_ as C}from"./u-button.364aa63d.js";import{_ as N}from"./u-modal.64c62d33.js";import"./u-icon.461524ba.js";import"./_plugin-vue_export-helper.1b428a4d.js";import"./u-line.0c46076e.js";import"./u-loading-icon.2e89024b.js";import"./u-popup.7d705de0.js";import"./u-transition.021c4c1c.js";import"./u-safe-bottom.6578a4de.js";const R=e({__name:"account_edit",setup(e){const R=a(!1),w=a(null),U=a("get"),q=a(!1),B=l({account_id:0,account_type:"bank",bank_name:"",realname:"",account_no:""}),W=t((()=>({realname:{type:"string",required:!0,message:"bank"==B.account_type?j("bankRealnamePlaceholder"):j("alipayRealnamePlaceholder"),trigger:["blur","change"]},bank_name:{type:"string",required:"bank"==B.account_type,message:j("bankNamePlaceholder"),trigger:["blur","change"]},account_no:{type:"string",required:!0,message:"bank"==B.account_type?j("bankAccountNoPlaceholder"):j("alipayAccountNoPlaceholder"),trigger:["blur","change"]}})));o((e=>{e.type&&(B.account_type=e.type),e.mode&&(U.value=e.mode),e.id&&(B.account_id=e.id,n({account_id:e.id}).then((e=>{e.data&&Object.keys(B).forEach((a=>{null!=e.data[a]&&(B[a]=e.data[a])}))})))}));const E=()=>{const e=B.account_id?f:h;w.value.validate().then((()=>{R.value||(R.value=!0,e(B).then((e=>{"get"==U.value?y({url:"/pages/member/account",param:{type:B.account_type,mode:U.value}}):y({url:"/pages/member/apply_cash_out",param:{account_id:e.data,type:B.account_type}})})).catch((()=>{R.value=!1})))}))},O=()=>{x(B.account_id).then((()=>{y({url:"/pages/member/account",mode:"redirectTo"})}))};return(e,a)=>{const l=g,t=k(V("u-input"),P),o=k(V("u-form-item"),A),n=k(V("u-form"),T),f=k(V("u-button"),C),h=v,y=k(V("u-modal"),N);return r(),c(s,null,[u(h,{"scroll-y":"true",class:"w-screen h-screen bg-page"},{default:d((()=>[u(l,{class:"h-[30rpx]"}),u(l,{class:"p-[30rpx] bg-white mx-[32rpx] rounded"},{default:d((()=>["bank"==B.account_type?(r(),c(s,{key:0},[u(l,{class:"text-center text-base font-bold mt-[50rpx]"},{default:d((()=>[m(p(i(j)("addBankCard")),1)])),_:1}),u(l,{class:"text-center text-sm mt-[10rpx]"},{default:d((()=>[m(p(i(j)("addBankCardTips")),1)])),_:1}),u(l,{class:"mt-[50rpx]"},{default:d((()=>[u(n,{labelPosition:"left",model:B,labelWidth:"200rpx",errorType:"toast",rules:i(W),ref_key:"formRef",ref:w},{default:d((()=>[u(l,{class:"mt-[10rpx]"},{default:d((()=>[u(o,{label:i(j)("bankRealname"),prop:"realname","border-bottom":!0},{default:d((()=>[u(t,{modelValue:B.realname,"onUpdate:modelValue":a[0]||(a[0]=e=>B.realname=e),border:"none",clearable:"",placeholder:i(j)("bankRealnamePlaceholder")},null,8,["modelValue","placeholder"])])),_:1},8,["label"])])),_:1}),u(l,{class:"mt-[10rpx]"},{default:d((()=>[u(o,{label:i(j)("bankName"),prop:"bank_name","border-bottom":!0},{default:d((()=>[u(t,{modelValue:B.bank_name,"onUpdate:modelValue":a[1]||(a[1]=e=>B.bank_name=e),border:"none",clearable:"",placeholder:i(j)("bankNamePlaceholder")},null,8,["modelValue","placeholder"])])),_:1},8,["label"])])),_:1}),u(l,{class:"mt-[10rpx]"},{default:d((()=>[u(o,{label:i(j)("bankAccountNo"),prop:"account_no","border-bottom":!0},{default:d((()=>[u(t,{modelValue:B.account_no,"onUpdate:modelValue":a[2]||(a[2]=e=>B.account_no=e),border:"none",clearable:"",placeholder:i(j)("bankAccountNoPlaceholder")},null,8,["modelValue","placeholder"])])),_:1},8,["label"])])),_:1})])),_:1},8,["model","rules"])])),_:1})],64)):b("",!0),"alipay"==B.account_type?(r(),c(s,{key:1},[u(l,{class:"text-center text-base font-bold mt-[50rpx]"},{default:d((()=>[m(p(i(j)("addAlipayAccount")),1)])),_:1}),u(l,{class:"text-center text-sm mt-[10rpx]"},{default:d((()=>[m(p(i(j)("addAlipayAccountTips")),1)])),_:1}),u(l,{class:"mt-[50rpx]"},{default:d((()=>[u(n,{labelPosition:"left",model:B,labelWidth:"200rpx",errorType:"toast",rules:i(W),ref_key:"formRef",ref:w},{default:d((()=>[u(l,{class:"mt-[10rpx]"},{default:d((()=>[u(o,{label:i(j)("alipayRealname"),prop:"realname","border-bottom":!0},{default:d((()=>[u(t,{modelValue:B.realname,"onUpdate:modelValue":a[3]||(a[3]=e=>B.realname=e),border:"none",clearable:"",placeholder:i(j)("alipayRealnamePlaceholder")},null,8,["modelValue","placeholder"])])),_:1},8,["label"])])),_:1}),u(l,{class:"mt-[10rpx]"},{default:d((()=>[u(o,{label:i(j)("alipayAccountNo"),prop:"account_no","border-bottom":!0},{default:d((()=>[u(t,{modelValue:B.account_no,"onUpdate:modelValue":a[4]||(a[4]=e=>B.account_no=e),border:"none",clearable:"",placeholder:i(j)("alipayAccountNoPlaceholder")},null,8,["modelValue","placeholder"])])),_:1},8,["label"])])),_:1})])),_:1},8,["model","rules"])])),_:1})],64)):b("",!0),u(l,{class:"mt-[100rpx]"},{default:d((()=>[u(f,{text:i(j)("save"),type:"primary",shape:"circle",loading:R.value,onClick:E},null,8,["text","loading"]),B.account_id?(r(),_(l,{key:0,class:"mt-[30rpx]"},{default:d((()=>[u(f,{text:i(j)("delete"),type:"primary",shape:"circle",plain:!0,loading:R.value,onClick:a[5]||(a[5]=e=>q.value=!0)},null,8,["text","loading"])])),_:1})):b("",!0)])),_:1})])),_:1})])),_:1}),u(y,{show:q.value,content:i(j)("deleteConfirm"),confirmText:i(j)("confirm"),cancelText:i(j)("cancel"),showCancelButton:!0,onConfirm:O,onCancel:a[6]||(a[6]=e=>q.value=!1)},null,8,["show","content","confirmText","cancelText"])],64)}}});export{R as default}; +import{d as e,r as a,a as l,c as t,o,as as n,h as r,M as c,j as u,w as d,O as s,D as m,E as p,l as i,m as b,i as _,b2 as f,b3 as h,R as y,b4 as x,t as g,p as k,q as V,S as v,J as j}from"./index-15eacd31.js";import{_ as P}from"./u-input.4212a359.js";import{_ as A,a as T}from"./u-form.84a1fd52.js";import{_ as N}from"./u-button.5c85e6cc.js";import{_ as R}from"./u-modal.755a4b61.js";import"./u-icon.f5369555.js";import"./_plugin-vue_export-helper.1b428a4d.js";import"./u-line.bb8d1497.js";import"./u-loading-icon.ea8c9ece.js";import"./u-popup.8a491625.js";import"./u-transition.a952a64b.js";import"./u-safe-bottom.593b5cec.js";const C=e({__name:"account_edit",setup(e){const C=a(!1),w=a(null),U=a("get"),q=a(!1),B=l({account_id:0,account_type:"bank",bank_name:"",realname:"",account_no:""}),W=t((()=>({realname:{type:"string",required:!0,message:"bank"==B.account_type?j("bankRealnamePlaceholder"):j("alipayRealnamePlaceholder"),trigger:["blur","change"]},bank_name:{type:"string",required:"bank"==B.account_type,message:j("bankNamePlaceholder"),trigger:["blur","change"]},account_no:{type:"string",required:!0,message:"bank"==B.account_type?j("bankAccountNoPlaceholder"):j("alipayAccountNoPlaceholder"),trigger:["blur","change"]}})));o((e=>{e.type&&(B.account_type=e.type),e.mode&&(U.value=e.mode),e.id&&(B.account_id=e.id,n({account_id:e.id}).then((e=>{e.data&&Object.keys(B).forEach((a=>{null!=e.data[a]&&(B[a]=e.data[a])}))})))}));const E=()=>{const e=B.account_id?f:h;w.value.validate().then((()=>{C.value||(C.value=!0,e(B).then((e=>{"get"==U.value?y({url:"/pages/member/account",param:{type:B.account_type,mode:U.value}}):y({url:"/pages/member/apply_cash_out",param:{account_id:e.data,type:B.account_type}})})).catch((()=>{C.value=!1})))}))},O=()=>{x(B.account_id).then((()=>{y({url:"/pages/member/account",mode:"redirectTo"})}))};return(e,a)=>{const l=g,t=k(V("u-input"),P),o=k(V("u-form-item"),A),n=k(V("u-form"),T),f=k(V("u-button"),N),h=v,y=k(V("u-modal"),R);return r(),c(s,null,[u(h,{"scroll-y":"true",class:"w-screen h-screen bg-page"},{default:d((()=>[u(l,{class:"h-[30rpx]"}),u(l,{class:"p-[30rpx] bg-white mx-[32rpx] rounded"},{default:d((()=>["bank"==B.account_type?(r(),c(s,{key:0},[u(l,{class:"text-center text-base font-bold mt-[50rpx]"},{default:d((()=>[m(p(i(j)("addBankCard")),1)])),_:1}),u(l,{class:"text-center text-sm mt-[10rpx]"},{default:d((()=>[m(p(i(j)("addBankCardTips")),1)])),_:1}),u(l,{class:"mt-[50rpx]"},{default:d((()=>[u(n,{labelPosition:"left",model:B,labelWidth:"200rpx",errorType:"toast",rules:i(W),ref_key:"formRef",ref:w},{default:d((()=>[u(l,{class:"mt-[10rpx]"},{default:d((()=>[u(o,{label:i(j)("bankRealname"),prop:"realname","border-bottom":!0},{default:d((()=>[u(t,{modelValue:B.realname,"onUpdate:modelValue":a[0]||(a[0]=e=>B.realname=e),border:"none",clearable:"",placeholder:i(j)("bankRealnamePlaceholder")},null,8,["modelValue","placeholder"])])),_:1},8,["label"])])),_:1}),u(l,{class:"mt-[10rpx]"},{default:d((()=>[u(o,{label:i(j)("bankName"),prop:"bank_name","border-bottom":!0},{default:d((()=>[u(t,{modelValue:B.bank_name,"onUpdate:modelValue":a[1]||(a[1]=e=>B.bank_name=e),border:"none",clearable:"",placeholder:i(j)("bankNamePlaceholder")},null,8,["modelValue","placeholder"])])),_:1},8,["label"])])),_:1}),u(l,{class:"mt-[10rpx]"},{default:d((()=>[u(o,{label:i(j)("bankAccountNo"),prop:"account_no","border-bottom":!0},{default:d((()=>[u(t,{modelValue:B.account_no,"onUpdate:modelValue":a[2]||(a[2]=e=>B.account_no=e),border:"none",clearable:"",placeholder:i(j)("bankAccountNoPlaceholder")},null,8,["modelValue","placeholder"])])),_:1},8,["label"])])),_:1})])),_:1},8,["model","rules"])])),_:1})],64)):b("",!0),"alipay"==B.account_type?(r(),c(s,{key:1},[u(l,{class:"text-center text-base font-bold mt-[50rpx]"},{default:d((()=>[m(p(i(j)("addAlipayAccount")),1)])),_:1}),u(l,{class:"text-center text-sm mt-[10rpx]"},{default:d((()=>[m(p(i(j)("addAlipayAccountTips")),1)])),_:1}),u(l,{class:"mt-[50rpx]"},{default:d((()=>[u(n,{labelPosition:"left",model:B,labelWidth:"200rpx",errorType:"toast",rules:i(W),ref_key:"formRef",ref:w},{default:d((()=>[u(l,{class:"mt-[10rpx]"},{default:d((()=>[u(o,{label:i(j)("alipayRealname"),prop:"realname","border-bottom":!0},{default:d((()=>[u(t,{modelValue:B.realname,"onUpdate:modelValue":a[3]||(a[3]=e=>B.realname=e),border:"none",clearable:"",placeholder:i(j)("alipayRealnamePlaceholder")},null,8,["modelValue","placeholder"])])),_:1},8,["label"])])),_:1}),u(l,{class:"mt-[10rpx]"},{default:d((()=>[u(o,{label:i(j)("alipayAccountNo"),prop:"account_no","border-bottom":!0},{default:d((()=>[u(t,{modelValue:B.account_no,"onUpdate:modelValue":a[4]||(a[4]=e=>B.account_no=e),border:"none",clearable:"",placeholder:i(j)("alipayAccountNoPlaceholder")},null,8,["modelValue","placeholder"])])),_:1},8,["label"])])),_:1})])),_:1},8,["model","rules"])])),_:1})],64)):b("",!0),u(l,{class:"mt-[100rpx]"},{default:d((()=>[u(f,{text:i(j)("save"),type:"primary",shape:"circle",loading:C.value,onClick:E},null,8,["text","loading"]),B.account_id?(r(),_(l,{key:0,class:"mt-[30rpx]"},{default:d((()=>[u(f,{text:i(j)("delete"),type:"primary",shape:"circle",plain:!0,loading:C.value,onClick:a[5]||(a[5]=e=>q.value=!0)},null,8,["text","loading"])])),_:1})):b("",!0)])),_:1})])),_:1})])),_:1}),u(y,{show:q.value,content:i(j)("deleteConfirm"),confirmText:i(j)("confirm"),cancelText:i(j)("cancel"),showCancelButton:!0,onConfirm:O,onCancel:a[6]||(a[6]=e=>q.value=!1)},null,8,["show","content","confirmText","cancelText"])],64)}}});export{C as default}; diff --git a/niucloud/public/wap/assets/pages-member-apply_cash_out.895c2991.js b/niucloud/public/wap/assets/pages-member-apply_cash_out.f6ab459d.js similarity index 95% rename from niucloud/public/wap/assets/pages-member-apply_cash_out.895c2991.js rename to niucloud/public/wap/assets/pages-member-apply_cash_out.f6ab459d.js index 33051412b..05da58e5b 100644 --- a/niucloud/public/wap/assets/pages-member-apply_cash_out.895c2991.js +++ b/niucloud/public/wap/assets/pages-member-apply_cash_out.f6ab459d.js @@ -1 +1 @@ -import{d as e,r as a,U as t,a as l,c as n,an as s,o,a5 as c,J as p,ao as i,ap as u,h as r,M as d,i as y,w as x,j as f,C as A,D as m,l as g,E as _,O as b,aq as h,ar as k,as as T,at as B,R as O,q as w,H as G,I as Q,a1 as v,m as C,p as U,S as F,t as M}from"./index-5bb08350.js";import{_ as P}from"./u-button.364aa63d.js";import{_ as S}from"./u-loading-page.f2a7c1df.js";import"./u-loading-icon.2e89024b.js";import"./_plugin-vue_export-helper.1b428a4d.js";import"./u-icon.461524ba.js";import"./u-transition.021c4c1c.js";const Y=e({__name:"apply_cash_out",setup(e){const Y=a(!0),Z=a(!1),j=t(),E=l({apply_money:"",transfer_type:"",account_type:"money",account_id:0}),H=n((()=>j.info?j.info[E.account_type]:0));s((()=>E.transfer_type),(e=>{switch(e){case"bank":E.account_id=z.value?z.value.account_id:0;break;case"alipay":E.account_id=R.value?R.value.account_id:0;break;default:E.account_id=0}}),{immediate:!0});const V=l({is_auto_transfer:0,is_auto_verify:0,is_open:0,min:0,rate:0,transfer_type:[]});let I={};o((async e=>{I=e,uni.getStorageSync("cashOutAccountType")&&(E.account_type=uni.getStorageSync("cashOutAccountType")),["money","commission"].includes(E.account_type)?await u().then((e=>{for(let a in e.data)V[a]=e.data[a];V.transfer_type.includes("wechat")&&j.info&&!j.info.wx_openid&&!j.info.weapp_openid&&V.transfer_type.splice(0,1),V.transfer_type.includes("bank")&&D(),V.transfer_type.includes("alipay")&&X(),E.transfer_type=V.transfer_type[0],Y.value=!1})):c({title:p("abnormalOperation"),icon:"none",success(){setTimeout((()=>{i({delta:1})}),1500)}})}));const L=()=>{E.apply_money=h(H)},N=()=>{E.apply_money=""},R=a(null),X=()=>{const e={account_type:"alipay",account_id:0};let a=k;I.type&&"alipay"==I.type&&I.account_id&&(a=T,e.account_id=I.account_id),a(e).then((e=>{e.data&&e.data.account_id&&(R.value=e.data)}))},z=a(null),D=()=>{const e={account_type:"bank",account_id:0};let a=k;I.type&&"bank"==I.type&&I.account_id&&(a=T,e.account_id=I.account_id),a(e).then((e=>{e.data&&e.data.account_id&&(z.value=e.data)}))},W=()=>{if(E.transfer_type?uni.$u.test.isEmpty(E.apply_money)?(c({title:p("applyMoneyPlaceholder"),icon:"none"}),0):uni.$u.test.amount(E.apply_money)?parseFloat(E.apply_money)>parseFloat(H.value)?(c({title:p("applyMoneyExceed"),icon:"none"}),0):!(parseFloat(E.apply_money){O({url:"/pages/member/cash_out"})})).catch((()=>{Z.value=!1}))}};return(e,a)=>{const t=w,l=G,n=Q,s=v,o=C(U("u-button"),P),c=F,i=C(U("u-loading-page"),S);return r(),d(b,null,[Y.value?_("",!0):(r(),y(c,{key:0,"scroll-y":"true",class:"w-screen h-screen bg-page"},{default:x((()=>[f(t,null,{default:x((()=>[f(t,{class:"p-[30rpx] bg-white"},{default:x((()=>[f(t,null,{default:x((()=>[A(m(g(p)("cashOutMoneyTip")),1)])),_:1}),f(t,{class:"flex py-[20rpx] items-baseline border-0 border-b-[2rpx] border-solid border-gray-200"},{default:x((()=>[f(l,{class:"text-[60rpx]"},{default:x((()=>[A(m(g(p)("currency")),1)])),_:1}),f(n,{type:"digit",class:"h-[70rpx] leading-[70rpx] pl-[10rpx] flex-1 font-bold text-[60rpx]",modelValue:E.apply_money,"onUpdate:modelValue":a[0]||(a[0]=e=>E.apply_money=e)},null,8,["modelValue"]),E.apply_money?(r(),y(s,{key:0,onClick:N,src:g(M)("static/resource/images/member/apply_withdrawal/close.png"),class:"w-[40rpx] h-[40rpx]",mode:"widthFix"},null,8,["src"])):_("",!0)])),_:1}),f(t,{class:"pt-[20rpx]"},{default:x((()=>[f(l,{class:"text-gray-400 text-[28rpx]"},{default:x((()=>[A(m(g(p)("money"))+":"+m(g(p)("currency"))+m(g(h)(g(H))),1)])),_:1}),f(l,{class:"pl-[10rpx] text-[28rpx] text-primary",onClick:L},{default:x((()=>[A(m(g(p)("allTx")),1)])),_:1})])),_:1}),f(t,null,{default:x((()=>[f(l,{class:"text-[24rpx] text-gray-400"},{default:x((()=>[A(m(g(p)("minWithdrawal"))+m(g(p)("currency"))+m(g(h)(V.min)),1)])),_:1}),f(l,{class:"text-[24rpx] text-gray-400"},{default:x((()=>[A(","+m(g(p)("commissionTo"))+m(V.rate+"%"),1)])),_:1})])),_:1})])),_:1}),f(t,{class:"px-[30rpx] bg-white mt-[30rpx]"},{default:x((()=>[V.transfer_type.includes("wechat")&&g(j).info&&(g(j).info.wx_openid||g(j).info.weapp_openid)?(r(),y(t,{key:0,class:"py-[30rpx] flex"},{default:x((()=>[f(t,null,{default:x((()=>[f(l,{class:"iconfont iconweixin1 text-[#43c93e] text-[70rpx]"})])),_:1}),f(t,{class:"flex-1 px-[20rpx]"},{default:x((()=>[f(t,null,{default:x((()=>[A(m(g(p)("cashOutToWechat")),1)])),_:1}),f(t,{class:"text-[#bbb] text-[26rpx] mt-[16rpx]"},{default:x((()=>[A(m(g(p)("cashOutToWechatTips")),1)])),_:1})])),_:1}),f(t,{class:"flex items-center",onClick:a[1]||(a[1]=e=>E.transfer_type="wechat")},{default:x((()=>["wechat"==E.transfer_type?(r(),y(l,{key:0,class:"iconfont iconduigou text-[40rpx] text-primary"})):(r(),y(l,{key:1,class:"iconfont iconcheckbox_nol text-[40rpx] text-[#bbb]"}))])),_:1})])),_:1})):_("",!0),V.transfer_type.includes("alipay")?(r(),y(t,{key:1,class:"py-[30rpx] flex"},{default:x((()=>[f(t,null,{default:x((()=>[f(l,{class:"iconfont iconzhifubaoxuanzhong text-[#188dfb] text-[70rpx]"})])),_:1}),f(t,{class:"flex-1 px-[20rpx]"},{default:x((()=>[f(t,null,{default:x((()=>[A(m(g(p)("cashOutToAlipay")),1)])),_:1}),f(t,{class:"text-[#bbb] text-[26rpx] mt-[16rpx]"},{default:x((()=>[R.value?(r(),y(t,{key:0},{default:x((()=>[A(m(g(p)("cashOutTo"))+m(g(p)("alipayAccountNo"))+m(R.value.account_no)+" ",1),f(l,{class:"text-black",onClick:a[2]||(a[2]=e=>g(O)({url:"/pages/member/account",param:{type:"alipay",mode:"select"}}))},{default:x((()=>[A(m(g(p)("replace")),1)])),_:1})])),_:1})):(r(),y(t,{key:1},{default:x((()=>[A(m(g(p)("cashOutToAlipayTips")),1)])),_:1}))])),_:1})])),_:1}),f(t,{class:"flex items-center"},{default:x((()=>[R.value?(r(),y(t,{key:1,onClick:a[4]||(a[4]=e=>E.transfer_type="alipay")},{default:x((()=>["alipay"==E.transfer_type?(r(),y(l,{key:0,class:"iconfont iconduigou text-[40rpx] text-primary"})):(r(),y(l,{key:1,class:"iconfont iconcheckbox_nol text-[40rpx] text-[#bbb]"}))])),_:1})):(r(),y(o,{key:0,plain:!0,type:"primary",shape:"circle","custom-style":{height:"56rpx"},onClick:a[3]||(a[3]=e=>g(O)({url:"/pages/member/account",param:{type:"alipay",mode:"select"}}))},{default:x((()=>[A(m(g(p)("toAdd")),1)])),_:1}))])),_:1})])),_:1})):_("",!0),V.transfer_type.includes("bank")?(r(),y(t,{key:2,class:"py-[30rpx] flex"},{default:x((()=>[f(t,{class:"w-[70rpx] flex justify-center"},{default:x((()=>[f(s,{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAAXNSR0IArs4c6QAACnVJREFUeF7tWXtQVNcZ/91FQQZZdhcXfKCCqFXQuKBV0YSHqWJ9AbU+qkZQG+uEyu66i0maB5jEaSetBdvG1vrCRhM1bQS1SUw6gn0kJhkDpqLNQ10jLApEHmrCuuyeznfWRZZd3L03/MOw38zOPfee8517vt/5fY9zV0AfF6GP2w8/AH4G9HEE/C7QxwngD4J+F/C7QB9HwO8CfZwA/iwgyQWuQznBBmGxAKGdwd4u41e0070Ndhtd7z2zUT+DYKN7GWzt14PDAtZOXfIjgLULYNaziuGfQ0A73QPMxtt2wdGG0H6vzwaB2kI7omyjoMZkMFgRav8MTGZFP+Eu7PZ23gaz8nGMWRHArGABVtht7QiQfY08Q2VXxosGwAzlVkDQAggR6z7bx87EjrEzcKtfkFhVIBjAcAYMZeJ1uYbwDWR4BnmG4s4TiALAjPBfAuwpKSvYFTsVBRPnSFF16ExigFKq8R2vvQmdMVwSAGYoVwHCq1IsqA4bjIXJOWgL6CdFHYhljt3vCWEsDfr8CudUPjOgFqpDArBMyhp2x07F899l96fbgQFS3uxBp/l2AAoL7aIBMEN1GUCMlGXkTsnE0agJUlSBgQCmdKxX2hz3tf4NnfER0S5QA4VGBplbBPV1NTNm58IUovR1uOu4IQC+10MACMJWaA3PigbADOV6QNgpxYKL8gg8Omu9FFWHzlg7MFS6uoumTJaOvE3vSgBAtRvAOinLeH2kBoaEBVJUHTqT7UCodHUXzf7BocjNvS0agFqoPhWAiQMy56HfpAmwXb2Gb0te5/MEps5EYMpMWMrehrXqv24r3ayZhwPRiZIsSNVEISV9mItuVUMDyi5/KX4+AR9Ba5zWVdFrFriOsBg7AigAYlBlBfprJuLb/YfQnJPL5wqvOMYBaExI9QjA7LSfgtKgFCktWIQMTSzONTZAERSEkaFyPs2a995ByYVqcVMK7DfQ5ueLBsAM5QpAOEiKQ9jXXL8p6zG0lb7F2/SMtbTiusI9QZiD5ZiSniduoZ1GN732BBTBQYjZtwum1lZUrVyNSYPU2PLhByg88764ee1sETblH5cAgIpKRy1RPbz8GNe/oRwFe3MLZwOxoq3sbTRlruJ9MkUY7yM5NiwOh9bkISU+CvvLL8BU39rtohUhjvKYrjROE6NG5W9X4eqtVkTv3cUZULliNaLlciS89iqqGurFAWBlkcjPd1Py6gJ1UL3PgKQQ3QbIi7bCeu48GjUp/OXOZ636Z/g99dtMXyEgegQH4bllzyJi41pER8iR87uT3Kh9G9P5ffMdC9Kee4MbfPSpRR3G03Plqh3QLUxE0doUvvOll75AZuwYbvz+i9WoqLmGouQ0mFpb0GyxICYsDJnHy3B0QQYHjNhB7e1VnziYwnAOeqPGE2IPBOAmlGFtEIj3AYqSVxCcvdzF/5WlBzAg44fc/wkM6r+95WUMLNjM3/WDec9gd8mT3GAy6srOdWj5xgLdngpu9PYTlRyIgmXTeTtzWixGquUQsopQYkhH9sNx3CACodnShtJLX/J2+eKlHAiS7PHxvE0xgZ6frq0BY4yDojn4Fw4QGH4PvdGjLz4QgBoo58sgnKAXOYPdne070ar7Bad6ZNNlnhHqozUdAbJOCOdxof1qDZKKTuHj4tU4XV2DklMXsG/jHGw5fIZT3NlOnRDFXSTmZ3tQ/uISKAcGQbFyB67sWYdolTvdSxdmIGPUaO4GmbGjUTAtCfp/VqC48iyY1tCxyS6BUmDLoM0/IpoBZihfAgTOb+duE7UtpW/x9EdUp4B4t+I/HAxyDwKHYsWVwyfwQn1gh6E0B+10yalqaGIiEBMph0Z/gPu5IIC3iSEEFrkLZ4vFAsWf/uCy7oofL0PKsChknSjjbtA5JjgBIBak/vXwfT1mjYH+aZMEAFRUNc0mRTI2tPBJbjiJteo87hT/kRtPwVBevJW3qRYgd3jzZCU+mzQFtMOFhz5A1ZUGlD69iO922UeX+DOif8VLS1D64SUOTPG6VM4UU30LCh9PQtXNeuhOl7usOycuHsXJaWi+a+FpsTNIzizhGiSFi9AZ4rqLmA90ATNUzQDCxIVbx+iVST9BeWSsFFWAEkKSuPqfmHBlzeM8HuS8+06n9wo7oTNsEA3ADaiSbIDIZHv/NXHzDGgOpM84EkTNgHhx53+K+mlRwxG9b5cj8DmFCWugN5SIBqAOKiMDfi1h+ahSDMG81O6PDuTflBmKj3+Cc6ZGnh61CxK4K1AmcAr5OUX+pg0/548o7WnUES5LIrpTcVQyZ67nAokFxEGvvygaADNUbwLIkgJAd5+/KOdTpKcASDGBhHyegiOlx+LjlRipDkXO3Hgog4N4AKRIT7vrzP/7Zs/l+Z0kZ3w8qhod8xA4rtTnjy9DZ3ygH3YbA8xQ1QBwPYn4iMb6qYtxYuh4t9G061QIVZy/1tF3ztTAawK6UlAk4ZXjPV8uTkmDVpPIix+qBokBlPYyRrna1XLXwoshF2HYD70x50HL9giAGeHjANYtbbzh8P30jagNdo+dBEBJXrpLaUysIPoTIwgAhTwImhFqpP3tCDeaAhulSdpd2n2HoaWIlofxe2cf+b2H8jgXOuMO0QDUQrVOAOgbgGgxhagwY/YTHvVyZsVzY8nnnf5P91T8EP0zpsZi/6fVyJgWy098ZGTlisc4EFQBUgokZjhPhalRw3nAI8OJFW4ACJgCrfGsaADqoNrLgDWirQdwZMRD0CU6avuu4qzvie4U8JwVYeeS2NTUihabhZexuoTJKEpO5UYTGFQAUdAjV6C4QFdnGUzGu0R/oBY6Y5Q3G7pxAdX/6EucN2VP/fma+TgYneBRlYoiCoL6vac5A4gRVBJn/eoYrw4pGAovb+N1ABlHtT35PFV1hdNn8DYdjQkYnSaRF0NNbW0cFA/yBnTGpd5scAPgOgZG2BF4w5tid/2pj27A56GDPHYXLk/iRtLOUzVI/p+d5ijSiBWTotW8Tf5PhQ35eFchV6A+chFyAToMdfOBxAidcZs3O9wAMCM8C2CUAkVLc/9gxM2/fyDpOgEZTP5PQiBQ0HPeUxDUJKqBkYz7fGdxRn9KdeQKTr93PvdAf8BuT8amzf/yZoQHAFSE2iZvip763xs8FtnTvbKu+6nHMGCYuArQ82RCA4beisLSwrve7HADoBaqMwLg9vHQ20TUvzV+Fl4ZM8OXoZ7H9NQXYIa/Q2/06VO0CwAM6FcHlVWqBRmPZOPj8OHS1GUAksUdgLp9kSA8D63hRV8W4gLANShSAyBzPX/6Msu9MUMzXf50EaFJHwMZoOkJ+vPXzoXOeNKXBXRlQGCd4wgs6Ri3Kmk5TkWO9uW97mOIAQ/bAbp+N9kGndHo6xSegqDkf4G2jUsG/STLODsg7S8EQIAZEP4MrWGLmPd7LIS+AIIGQJEkZqLOYwseSudfYL8KCav/R+QYs6h51BiMMAxGsKwRKjsdyHyTTv/5+6bgGOX1s7iYyXrjWD8AvXHXenLNfgb0JJq9cS4/A3rjrvXkmv0M6Ek0e+Ncfgb0xl3ryTX7GdCTaPbGufo8A/4PpckqfWjPHTQAAAAASUVORK5CYII=",mode:"widthFix",class:"w-[60rpx]"})])),_:1}),f(t,{class:"flex-1 px-[20rpx]"},{default:x((()=>[f(t,null,{default:x((()=>[A(m(g(p)("cashOutToBank")),1)])),_:1}),f(t,{class:"text-[#bbb] text-[26rpx] mt-[16rpx]"},{default:x((()=>[z.value?(r(),y(t,{key:0},{default:x((()=>[A(m(g(p)("cashOutTo"))+m(z.value.bank_name)+m(g(p)("debitCard"))+m(z.value.account_no.substring(z.value.account_no.length-4))+" ",1),f(l,{class:"text-black",onClick:a[5]||(a[5]=e=>g(O)({url:"/pages/member/account",param:{type:"bank",mode:"select"}}))},{default:x((()=>[A(m(g(p)("replace")),1)])),_:1})])),_:1})):(r(),y(t,{key:1},{default:x((()=>[A(m(g(p)("cashOutToBankTips")),1)])),_:1}))])),_:1})])),_:1}),f(t,{class:"flex items-center"},{default:x((()=>[z.value?(r(),y(t,{key:1,onClick:a[7]||(a[7]=e=>E.transfer_type="bank")},{default:x((()=>["bank"==E.transfer_type?(r(),y(l,{key:0,class:"iconfont iconduigou text-[40rpx] text-primary"})):(r(),y(l,{key:1,class:"iconfont iconcheckbox_nol text-[40rpx] text-[#bbb]"}))])),_:1})):(r(),y(o,{key:0,plain:!0,type:"primary",shape:"circle","custom-style":{height:"56rpx"},onClick:a[6]||(a[6]=e=>g(O)({url:"/pages/member/account",param:{type:"bank",mode:"select"}}))},{default:x((()=>[A(m(g(p)("toAdd")),1)])),_:1}))])),_:1})])),_:1})):_("",!0)])),_:1}),f(t,{class:"px-[32rpx]"},{default:x((()=>[f(o,{type:"primary",shape:"circle",text:g(p)("cashOut"),class:"mt-[60rpx] mb-[40rpx]",disabled:""==E.apply_money||0==E.apply_money,loading:Z.value,onClick:W},null,8,["text","disabled","loading"])])),_:1}),f(t,{class:"mt-[40rpx] text-center text-sm",onClick:a[8]||(a[8]=e=>g(O)({url:"/pages/member/cash_out"}))},{default:x((()=>[A(m(g(p)("cashOutList")),1)])),_:1})])),_:1})])),_:1})),f(i,{loading:Y.value,"bg-color":"#e8e8e8","loading-text":""},null,8,["loading"])],64)}}});export{Y as default}; +import{d as e,r as a,U as t,a as l,c as n,an as s,o,a5 as c,J as p,ao as i,ap as u,h as r,M as d,i as y,w as x,j as f,D as A,E as m,l as g,m as _,O as b,aq as h,ar as k,as as T,at as B,R as O,t as w,H as G,I as Q,a1 as v,p as U,q as C,S as F,x as M}from"./index-15eacd31.js";import{_ as P}from"./u-button.5c85e6cc.js";import{_ as S}from"./u-loading-page.925a187b.js";import"./u-loading-icon.ea8c9ece.js";import"./_plugin-vue_export-helper.1b428a4d.js";import"./u-icon.f5369555.js";import"./u-transition.a952a64b.js";const Y=e({__name:"apply_cash_out",setup(e){const Y=a(!0),Z=a(!1),j=t(),E=l({apply_money:"",transfer_type:"",account_type:"money",account_id:0}),H=n((()=>j.info?j.info[E.account_type]:0));s((()=>E.transfer_type),(e=>{switch(e){case"bank":E.account_id=z.value?z.value.account_id:0;break;case"alipay":E.account_id=R.value?R.value.account_id:0;break;default:E.account_id=0}}),{immediate:!0});const V=l({is_auto_transfer:0,is_auto_verify:0,is_open:0,min:0,rate:0,transfer_type:[]});let I={};o((async e=>{I=e,uni.getStorageSync("cashOutAccountType")&&(E.account_type=uni.getStorageSync("cashOutAccountType")),["money","commission"].includes(E.account_type)?await u().then((e=>{for(let a in e.data)V[a]=e.data[a];V.transfer_type.includes("wechat")&&j.info&&!j.info.wx_openid&&!j.info.weapp_openid&&V.transfer_type.splice(0,1),V.transfer_type.includes("bank")&&D(),V.transfer_type.includes("alipay")&&X(),E.transfer_type=V.transfer_type[0],Y.value=!1})):c({title:p("abnormalOperation"),icon:"none",success(){setTimeout((()=>{i({delta:1})}),1500)}})}));const L=()=>{E.apply_money=h(H)},N=()=>{E.apply_money=""},R=a(null),X=()=>{const e={account_type:"alipay",account_id:0};let a=k;I.type&&"alipay"==I.type&&I.account_id&&(a=T,e.account_id=I.account_id),a(e).then((e=>{e.data&&e.data.account_id&&(R.value=e.data)}))},z=a(null),D=()=>{const e={account_type:"bank",account_id:0};let a=k;I.type&&"bank"==I.type&&I.account_id&&(a=T,e.account_id=I.account_id),a(e).then((e=>{e.data&&e.data.account_id&&(z.value=e.data)}))},W=()=>{if(E.transfer_type?uni.$u.test.isEmpty(E.apply_money)?(c({title:p("applyMoneyPlaceholder"),icon:"none"}),0):uni.$u.test.amount(E.apply_money)?parseFloat(E.apply_money)>parseFloat(H.value)?(c({title:p("applyMoneyExceed"),icon:"none"}),0):!(parseFloat(E.apply_money){O({url:"/pages/member/cash_out"})})).catch((()=>{Z.value=!1}))}};return(e,a)=>{const t=w,l=G,n=Q,s=v,o=U(C("u-button"),P),c=F,i=U(C("u-loading-page"),S);return r(),d(b,null,[Y.value?_("",!0):(r(),y(c,{key:0,"scroll-y":"true",class:"w-screen h-screen bg-page"},{default:x((()=>[f(t,null,{default:x((()=>[f(t,{class:"p-[30rpx] bg-white"},{default:x((()=>[f(t,null,{default:x((()=>[A(m(g(p)("cashOutMoneyTip")),1)])),_:1}),f(t,{class:"flex py-[20rpx] items-baseline border-0 border-b-[2rpx] border-solid border-gray-200"},{default:x((()=>[f(l,{class:"text-[60rpx]"},{default:x((()=>[A(m(g(p)("currency")),1)])),_:1}),f(n,{type:"digit",class:"h-[70rpx] leading-[70rpx] pl-[10rpx] flex-1 font-bold text-[60rpx]",modelValue:E.apply_money,"onUpdate:modelValue":a[0]||(a[0]=e=>E.apply_money=e)},null,8,["modelValue"]),E.apply_money?(r(),y(s,{key:0,onClick:N,src:g(M)("static/resource/images/member/apply_withdrawal/close.png"),class:"w-[40rpx] h-[40rpx]",mode:"widthFix"},null,8,["src"])):_("",!0)])),_:1}),f(t,{class:"pt-[20rpx]"},{default:x((()=>[f(l,{class:"text-gray-400 text-[28rpx]"},{default:x((()=>[A(m(g(p)("money"))+":"+m(g(p)("currency"))+m(g(h)(g(H))),1)])),_:1}),f(l,{class:"pl-[10rpx] text-[28rpx] text-primary",onClick:L},{default:x((()=>[A(m(g(p)("allTx")),1)])),_:1})])),_:1}),f(t,null,{default:x((()=>[f(l,{class:"text-[24rpx] text-gray-400"},{default:x((()=>[A(m(g(p)("minWithdrawal"))+m(g(p)("currency"))+m(g(h)(V.min)),1)])),_:1}),f(l,{class:"text-[24rpx] text-gray-400"},{default:x((()=>[A(","+m(g(p)("commissionTo"))+m(V.rate+"%"),1)])),_:1})])),_:1})])),_:1}),f(t,{class:"px-[30rpx] bg-white mt-[30rpx]"},{default:x((()=>[V.transfer_type.includes("wechat")&&g(j).info&&(g(j).info.wx_openid||g(j).info.weapp_openid)?(r(),y(t,{key:0,class:"py-[30rpx] flex"},{default:x((()=>[f(t,null,{default:x((()=>[f(l,{class:"iconfont iconweixin1 text-[#43c93e] text-[70rpx]"})])),_:1}),f(t,{class:"flex-1 px-[20rpx]"},{default:x((()=>[f(t,null,{default:x((()=>[A(m(g(p)("cashOutToWechat")),1)])),_:1}),f(t,{class:"text-[#bbb] text-[26rpx] mt-[16rpx]"},{default:x((()=>[A(m(g(p)("cashOutToWechatTips")),1)])),_:1})])),_:1}),f(t,{class:"flex items-center",onClick:a[1]||(a[1]=e=>E.transfer_type="wechat")},{default:x((()=>["wechat"==E.transfer_type?(r(),y(l,{key:0,class:"iconfont iconduigou text-[40rpx] text-primary"})):(r(),y(l,{key:1,class:"iconfont iconcheckbox_nol text-[40rpx] text-[#bbb]"}))])),_:1})])),_:1})):_("",!0),V.transfer_type.includes("alipay")?(r(),y(t,{key:1,class:"py-[30rpx] flex"},{default:x((()=>[f(t,null,{default:x((()=>[f(l,{class:"iconfont iconzhifubaoxuanzhong text-[#188dfb] text-[70rpx]"})])),_:1}),f(t,{class:"flex-1 px-[20rpx]"},{default:x((()=>[f(t,null,{default:x((()=>[A(m(g(p)("cashOutToAlipay")),1)])),_:1}),f(t,{class:"text-[#bbb] text-[26rpx] mt-[16rpx]"},{default:x((()=>[R.value?(r(),y(t,{key:0},{default:x((()=>[A(m(g(p)("cashOutTo"))+m(g(p)("alipayAccountNo"))+m(R.value.account_no)+" ",1),f(l,{class:"text-black",onClick:a[2]||(a[2]=e=>g(O)({url:"/pages/member/account",param:{type:"alipay",mode:"select"}}))},{default:x((()=>[A(m(g(p)("replace")),1)])),_:1})])),_:1})):(r(),y(t,{key:1},{default:x((()=>[A(m(g(p)("cashOutToAlipayTips")),1)])),_:1}))])),_:1})])),_:1}),f(t,{class:"flex items-center"},{default:x((()=>[R.value?(r(),y(t,{key:1,onClick:a[4]||(a[4]=e=>E.transfer_type="alipay")},{default:x((()=>["alipay"==E.transfer_type?(r(),y(l,{key:0,class:"iconfont iconduigou text-[40rpx] text-primary"})):(r(),y(l,{key:1,class:"iconfont iconcheckbox_nol text-[40rpx] text-[#bbb]"}))])),_:1})):(r(),y(o,{key:0,plain:!0,type:"primary",shape:"circle","custom-style":{height:"56rpx"},onClick:a[3]||(a[3]=e=>g(O)({url:"/pages/member/account",param:{type:"alipay",mode:"select"}}))},{default:x((()=>[A(m(g(p)("toAdd")),1)])),_:1}))])),_:1})])),_:1})):_("",!0),V.transfer_type.includes("bank")?(r(),y(t,{key:2,class:"py-[30rpx] flex"},{default:x((()=>[f(t,{class:"w-[70rpx] flex justify-center"},{default:x((()=>[f(s,{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAAXNSR0IArs4c6QAACnVJREFUeF7tWXtQVNcZ/91FQQZZdhcXfKCCqFXQuKBV0YSHqWJ9AbU+qkZQG+uEyu66i0maB5jEaSetBdvG1vrCRhM1bQS1SUw6gn0kJhkDpqLNQ10jLApEHmrCuuyeznfWRZZd3L03/MOw38zOPfee8517vt/5fY9zV0AfF6GP2w8/AH4G9HEE/C7QxwngD4J+F/C7QB9HwO8CfZwA/iwgyQWuQznBBmGxAKGdwd4u41e0070Ndhtd7z2zUT+DYKN7GWzt14PDAtZOXfIjgLULYNaziuGfQ0A73QPMxtt2wdGG0H6vzwaB2kI7omyjoMZkMFgRav8MTGZFP+Eu7PZ23gaz8nGMWRHArGABVtht7QiQfY08Q2VXxosGwAzlVkDQAggR6z7bx87EjrEzcKtfkFhVIBjAcAYMZeJ1uYbwDWR4BnmG4s4TiALAjPBfAuwpKSvYFTsVBRPnSFF16ExigFKq8R2vvQmdMVwSAGYoVwHCq1IsqA4bjIXJOWgL6CdFHYhljt3vCWEsDfr8CudUPjOgFqpDArBMyhp2x07F899l96fbgQFS3uxBp/l2AAoL7aIBMEN1GUCMlGXkTsnE0agJUlSBgQCmdKxX2hz3tf4NnfER0S5QA4VGBplbBPV1NTNm58IUovR1uOu4IQC+10MACMJWaA3PigbADOV6QNgpxYKL8gg8Omu9FFWHzlg7MFS6uoumTJaOvE3vSgBAtRvAOinLeH2kBoaEBVJUHTqT7UCodHUXzf7BocjNvS0agFqoPhWAiQMy56HfpAmwXb2Gb0te5/MEps5EYMpMWMrehrXqv24r3ayZhwPRiZIsSNVEISV9mItuVUMDyi5/KX4+AR9Ba5zWVdFrFriOsBg7AigAYlBlBfprJuLb/YfQnJPL5wqvOMYBaExI9QjA7LSfgtKgFCktWIQMTSzONTZAERSEkaFyPs2a995ByYVqcVMK7DfQ5ueLBsAM5QpAOEiKQ9jXXL8p6zG0lb7F2/SMtbTiusI9QZiD5ZiSniduoZ1GN732BBTBQYjZtwum1lZUrVyNSYPU2PLhByg88764ee1sETblH5cAgIpKRy1RPbz8GNe/oRwFe3MLZwOxoq3sbTRlruJ9MkUY7yM5NiwOh9bkISU+CvvLL8BU39rtohUhjvKYrjROE6NG5W9X4eqtVkTv3cUZULliNaLlciS89iqqGurFAWBlkcjPd1Py6gJ1UL3PgKQQ3QbIi7bCeu48GjUp/OXOZ636Z/g99dtMXyEgegQH4bllzyJi41pER8iR87uT3Kh9G9P5ffMdC9Kee4MbfPSpRR3G03Plqh3QLUxE0doUvvOll75AZuwYbvz+i9WoqLmGouQ0mFpb0GyxICYsDJnHy3B0QQYHjNhB7e1VnziYwnAOeqPGE2IPBOAmlGFtEIj3AYqSVxCcvdzF/5WlBzAg44fc/wkM6r+95WUMLNjM3/WDec9gd8mT3GAy6srOdWj5xgLdngpu9PYTlRyIgmXTeTtzWixGquUQsopQYkhH9sNx3CACodnShtJLX/J2+eKlHAiS7PHxvE0xgZ6frq0BY4yDojn4Fw4QGH4PvdGjLz4QgBoo58sgnKAXOYPdne070ar7Bad6ZNNlnhHqozUdAbJOCOdxof1qDZKKTuHj4tU4XV2DklMXsG/jHGw5fIZT3NlOnRDFXSTmZ3tQ/uISKAcGQbFyB67sWYdolTvdSxdmIGPUaO4GmbGjUTAtCfp/VqC48iyY1tCxyS6BUmDLoM0/IpoBZihfAgTOb+duE7UtpW/x9EdUp4B4t+I/HAxyDwKHYsWVwyfwQn1gh6E0B+10yalqaGIiEBMph0Z/gPu5IIC3iSEEFrkLZ4vFAsWf/uCy7oofL0PKsChknSjjbtA5JjgBIBak/vXwfT1mjYH+aZMEAFRUNc0mRTI2tPBJbjiJteo87hT/kRtPwVBevJW3qRYgd3jzZCU+mzQFtMOFhz5A1ZUGlD69iO922UeX+DOif8VLS1D64SUOTPG6VM4UU30LCh9PQtXNeuhOl7usOycuHsXJaWi+a+FpsTNIzizhGiSFi9AZ4rqLmA90ATNUzQDCxIVbx+iVST9BeWSsFFWAEkKSuPqfmHBlzeM8HuS8+06n9wo7oTNsEA3ADaiSbIDIZHv/NXHzDGgOpM84EkTNgHhx53+K+mlRwxG9b5cj8DmFCWugN5SIBqAOKiMDfi1h+ahSDMG81O6PDuTflBmKj3+Cc6ZGnh61CxK4K1AmcAr5OUX+pg0/548o7WnUES5LIrpTcVQyZ67nAokFxEGvvygaADNUbwLIkgJAd5+/KOdTpKcASDGBhHyegiOlx+LjlRipDkXO3Hgog4N4AKRIT7vrzP/7Zs/l+Z0kZ3w8qhod8xA4rtTnjy9DZ3ygH3YbA8xQ1QBwPYn4iMb6qYtxYuh4t9G061QIVZy/1tF3ztTAawK6UlAk4ZXjPV8uTkmDVpPIix+qBokBlPYyRrna1XLXwoshF2HYD70x50HL9giAGeHjANYtbbzh8P30jagNdo+dBEBJXrpLaUysIPoTIwgAhTwImhFqpP3tCDeaAhulSdpd2n2HoaWIlofxe2cf+b2H8jgXOuMO0QDUQrVOAOgbgGgxhagwY/YTHvVyZsVzY8nnnf5P91T8EP0zpsZi/6fVyJgWy098ZGTlisc4EFQBUgokZjhPhalRw3nAI8OJFW4ACJgCrfGsaADqoNrLgDWirQdwZMRD0CU6avuu4qzvie4U8JwVYeeS2NTUihabhZexuoTJKEpO5UYTGFQAUdAjV6C4QFdnGUzGu0R/oBY6Y5Q3G7pxAdX/6EucN2VP/fma+TgYneBRlYoiCoL6vac5A4gRVBJn/eoYrw4pGAovb+N1ABlHtT35PFV1hdNn8DYdjQkYnSaRF0NNbW0cFA/yBnTGpd5scAPgOgZG2BF4w5tid/2pj27A56GDPHYXLk/iRtLOUzVI/p+d5ijSiBWTotW8Tf5PhQ35eFchV6A+chFyAToMdfOBxAidcZs3O9wAMCM8C2CUAkVLc/9gxM2/fyDpOgEZTP5PQiBQ0HPeUxDUJKqBkYz7fGdxRn9KdeQKTr93PvdAf8BuT8amzf/yZoQHAFSE2iZvip763xs8FtnTvbKu+6nHMGCYuArQ82RCA4beisLSwrve7HADoBaqMwLg9vHQ20TUvzV+Fl4ZM8OXoZ7H9NQXYIa/Q2/06VO0CwAM6FcHlVWqBRmPZOPj8OHS1GUAksUdgLp9kSA8D63hRV8W4gLANShSAyBzPX/6Msu9MUMzXf50EaFJHwMZoOkJ+vPXzoXOeNKXBXRlQGCd4wgs6Ri3Kmk5TkWO9uW97mOIAQ/bAbp+N9kGndHo6xSegqDkf4G2jUsG/STLODsg7S8EQIAZEP4MrWGLmPd7LIS+AIIGQJEkZqLOYwseSudfYL8KCav/R+QYs6h51BiMMAxGsKwRKjsdyHyTTv/5+6bgGOX1s7iYyXrjWD8AvXHXenLNfgb0JJq9cS4/A3rjrvXkmv0M6Ek0e+Ncfgb0xl3ryTX7GdCTaPbGufo8A/4PpckqfWjPHTQAAAAASUVORK5CYII=",mode:"widthFix",class:"w-[60rpx]"})])),_:1}),f(t,{class:"flex-1 px-[20rpx]"},{default:x((()=>[f(t,null,{default:x((()=>[A(m(g(p)("cashOutToBank")),1)])),_:1}),f(t,{class:"text-[#bbb] text-[26rpx] mt-[16rpx]"},{default:x((()=>[z.value?(r(),y(t,{key:0},{default:x((()=>[A(m(g(p)("cashOutTo"))+m(z.value.bank_name)+m(g(p)("debitCard"))+m(z.value.account_no.substring(z.value.account_no.length-4))+" ",1),f(l,{class:"text-black",onClick:a[5]||(a[5]=e=>g(O)({url:"/pages/member/account",param:{type:"bank",mode:"select"}}))},{default:x((()=>[A(m(g(p)("replace")),1)])),_:1})])),_:1})):(r(),y(t,{key:1},{default:x((()=>[A(m(g(p)("cashOutToBankTips")),1)])),_:1}))])),_:1})])),_:1}),f(t,{class:"flex items-center"},{default:x((()=>[z.value?(r(),y(t,{key:1,onClick:a[7]||(a[7]=e=>E.transfer_type="bank")},{default:x((()=>["bank"==E.transfer_type?(r(),y(l,{key:0,class:"iconfont iconduigou text-[40rpx] text-primary"})):(r(),y(l,{key:1,class:"iconfont iconcheckbox_nol text-[40rpx] text-[#bbb]"}))])),_:1})):(r(),y(o,{key:0,plain:!0,type:"primary",shape:"circle","custom-style":{height:"56rpx"},onClick:a[6]||(a[6]=e=>g(O)({url:"/pages/member/account",param:{type:"bank",mode:"select"}}))},{default:x((()=>[A(m(g(p)("toAdd")),1)])),_:1}))])),_:1})])),_:1})):_("",!0)])),_:1}),f(t,{class:"px-[32rpx]"},{default:x((()=>[f(o,{type:"primary",shape:"circle",text:g(p)("cashOut"),class:"mt-[60rpx] mb-[40rpx]",disabled:""==E.apply_money||0==E.apply_money,loading:Z.value,onClick:W},null,8,["text","disabled","loading"])])),_:1}),f(t,{class:"mt-[40rpx] text-center text-sm",onClick:a[8]||(a[8]=e=>g(O)({url:"/pages/member/cash_out"}))},{default:x((()=>[A(m(g(p)("cashOutList")),1)])),_:1})])),_:1})])),_:1})),f(i,{loading:Y.value,"bg-color":"#e8e8e8","loading-text":""},null,8,["loading"])],64)}}});export{Y as default}; diff --git a/niucloud/public/wap/assets/pages-member-balance.c8e952bc.js b/niucloud/public/wap/assets/pages-member-balance.c8e952bc.js new file mode 100644 index 000000000..dc504d7aa --- /dev/null +++ b/niucloud/public/wap/assets/pages-member-balance.c8e952bc.js @@ -0,0 +1 @@ +import{z as e,A as a,ab as t,h as l,i as o,w as r,C as s,d as n,am as u,r as i,av as c,R as d,p,q as m,j as y,D as f,E as _,l as x,J as g,aq as v,M as b,O as h,N as S,x as k,m as w,a5 as C,t as I,S as E,U as j,a as P,e as T,aw as A,ap as F,k as R,v as V,n as $,au as H,ax as O,H as U,F as z}from"./index-15eacd31.js";import{_ as D}from"./u-loading-page.925a187b.js";import{_ as B}from"./u-button.5c85e6cc.js";import{p as W,_ as K}from"./u-input.4212a359.js";import{_ as L}from"./_plugin-vue_export-helper.1b428a4d.js";import{_ as q}from"./u-popup.8a491625.js";import{_ as J}from"./u-image.b892f6c4.js";import{_ as M}from"./u-icon.f5369555.js";import{p as N,g as Q}from"./pay.422381f0.js";import{w as Y}from"./wechat.56b0d350.js";import"./u-loading-icon.ea8c9ece.js";import"./u-transition.a952a64b.js";import"./u-safe-bottom.593b5cec.js";const Z=L({name:"u--input",mixins:[e,W,a],components:{uvInput:K}},[["render",function(e,a,n,u,i,c){const d=t("uvInput");return l(),o(d,{modelValue:e.modelValue,"onUpdate:modelValue":a[0]||(a[0]=a=>e.$emit("update:modelValue",a)),type:e.type,fixed:e.fixed,disabled:e.disabled,disabledColor:e.disabledColor,clearable:e.clearable,password:e.password,maxlength:e.maxlength,placeholder:e.placeholder,placeholderClass:e.placeholderClass,placeholderStyle:e.placeholderStyle,showWordLimit:e.showWordLimit,confirmType:e.confirmType,confirmHold:e.confirmHold,holdKeyboard:e.holdKeyboard,focus:e.focus,autoBlur:e.autoBlur,disableDefaultPadding:e.disableDefaultPadding,cursor:e.cursor,cursorSpacing:e.cursorSpacing,selectionStart:e.selectionStart,selectionEnd:e.selectionEnd,adjustPosition:e.adjustPosition,inputAlign:e.inputAlign,fontSize:e.fontSize,color:e.color,prefixIcon:e.prefixIcon,suffixIcon:e.suffixIcon,suffixIconStyle:e.suffixIconStyle,prefixIconStyle:e.prefixIconStyle,border:e.border,readonly:e.readonly,shape:e.shape,customStyle:e.customStyle,formatter:e.formatter,ignoreCompositionEvent:e.ignoreCompositionEvent},{default:r((()=>[s(e.$slots,"prefix",{slot:"prefix"}),s(e.$slots,"suffix",{slot:"suffix"})])),_:3},8,["modelValue","type","fixed","disabled","disabledColor","clearable","password","maxlength","placeholder","placeholderClass","placeholderStyle","showWordLimit","confirmType","confirmHold","holdKeyboard","focus","autoBlur","disableDefaultPadding","cursor","cursorSpacing","selectionStart","selectionEnd","adjustPosition","inputAlign","fontSize","color","prefixIcon","suffixIcon","suffixIconStyle","prefixIconStyle","border","readonly","shape","customStyle","formatter","ignoreCompositionEvent"])}]]),G=L(n({__name:"pay",emits:["close"],setup(e,{expose:a,emit:t}){u()&&Y.init();const s=i(!1),n=i(!1),j=i(null),P=i(""),T=()=>{var e,a;uni.$u.test.isEmpty(P.value)?C({title:g("pay.notHavePayType"),icon:"none"}):n.value||(n.value=!0,N({trade_type:null==(e=j.value)?void 0:e.trade_type,trade_id:null==(a=j.value)?void 0:a.trade_id,type:P.value}).then((e=>{var a,t,l,o,r,s;switch(P.value){case"wechatpay":u()?(e.data.timestamp=e.data.timeStamp,delete e.data.timeStamp,Y.pay({...e.data,success:()=>{A()},cancel:()=>{n.value=!1}})):(uni.setStorageSync("paymenting",{trade_type:null==(a=j.value)?void 0:a.trade_type,trade_id:null==(t=j.value)?void 0:t.trade_id}),location.href=e.data.h5_url);break;case"alipay":u()?d({url:"/pages/pay/browser",param:{trade_type:null==(l=j.value)?void 0:l.trade_type,trade_id:null==(o=j.value)?void 0:o.trade_id,alipay:encodeURIComponent(e.data.url)},mode:"redirectTo"}):(uni.setStorageSync("paymenting",{trade_type:null==(r=j.value)?void 0:r.trade_type,trade_id:null==(s=j.value)?void 0:s.trade_id}),location.href=e.data.url);break;default:A()}})).catch((()=>{n.value=!1})))};c("checkIsReturnAfterPayment",(()=>{const e=uni.getStorageSync("paymenting");uni.getStorageSync("paymenting")&&d({url:"/pages/pay/result",param:{trade_type:e.trade_type,trade_id:e.trade_id},mode:"redirectTo",success(){uni.removeStorageSync("paymenting")}})}));const A=()=>{var e,a;d({url:"/pages/pay/result",param:{trade_type:null==(e=j.value)?void 0:e.trade_type,trade_id:null==(a=j.value)?void 0:a.trade_id},mode:"redirectTo"})},F=()=>{uni.removeStorageSync("paymenting"),s.value=!1,t("close")};return a({open:(e,a,t="")=>{uni.setStorageSync("payReturn",encodeURIComponent(t)),Q(e,a).then((e=>{let{data:a}=e;j.value=a,uni.$u.test.isEmpty(a)?C({title:g("pay.notObtainedInfo"),icon:"none"}):0!=a.money?0==a.status?(P.value=a.pay_type_list[0]?a.pay_type_list[0].key:"",s.value=!0):C({title:g("pay.paymentDocuments")+a.status_name,icon:"none"}):A()})).catch((()=>{}))}}),(e,a)=>{const t=I,u=p(m("u-image"),J),i=p(m("u-icon"),M),c=E,d=p(m("u-button"),B),C=p(m("u-popup"),q);return l(),o(C,{show:s.value,round:10,onClose:F,closeable:!0,bgColor:"#fff",zIndex:"10081",closeOnClickOverlay:!1},{default:r((()=>[j.value?(l(),o(t,{key:0,class:"flex flex-col h-[75vh]"},{default:r((()=>[y(t,{class:"head"},{default:r((()=>[y(t,{class:"text-center py-[26rpx]"},{default:r((()=>[f(_(x(g)("pay.payTitle")),1)])),_:1}),y(t,{class:"flex items-end justify-center w-full text-xl font-bold py-[20rpx]"},{default:r((()=>[y(t,{class:"text-base mr-[4rpx]"},{default:r((()=>[f(_(x(g)("currency")),1)])),_:1}),f(" "+_(x(v)(j.value.money)),1)])),_:1})])),_:1}),y(c,{"scroll-y":"true",class:"flex-1 pt-[20rpx]"},{default:r((()=>[y(t,{class:"flex text-sm px-[30rpx] py-[20rpx]"},{default:r((()=>[y(t,{class:"text-gray-500"},{default:r((()=>[f(_(x(g)("pay.orderInfo")),1)])),_:1}),y(t,{class:"text-right flex-1 pl-[30rpx] truncate"},{default:r((()=>[f(_(j.value.body),1)])),_:1})])),_:1}),y(t,{class:"mx-[30rpx] py-[10rpx] px-[30rpx] bg-white rounded-md bg-page"},{default:r((()=>[j.value.pay_type_list.length?(l(!0),b(h,{key:0},S(j.value.pay_type_list,((e,a)=>(l(),o(t,{class:"pay-item py-[18rpx] flex items-center border-0 border-b border-solid border-[#eee]",key:a,onClick:a=>P.value=e.key},{default:r((()=>[y(u,{src:x(k)(e.icon),width:"50rpx",height:"50rpx"},null,8,["src"]),y(t,{class:"flex-1 px-[20rpx] text-sm font-bold"},{default:r((()=>[f(_(e.name),1)])),_:2},1024),e.key==P.value?(l(),o(i,{key:0,name:"checkbox-mark",color:"var(--primary-color)"})):w("",!0)])),_:2},1032,["onClick"])))),128)):(l(),o(t,{key:1,class:"py-[20rpx] text-center text-sm text-gray-subtitle"},{default:r((()=>[f(_(x(g)("pay.notHavePayType")),1)])),_:1}))])),_:1})])),_:1}),y(t,{class:"p-[30rpx]"},{default:r((()=>[y(d,{type:"primary",loading:n.value,text:x(g)("pay.confirmPay"),shape:"circle",onClick:T},null,8,["loading","text"])])),_:1})])),_:1})):w("",!0)])),_:1},8,["show"])}}}),[["__scopeId","data-v-3a12120a"]]),X=L(n({__name:"balance",setup(e){const a=j(),t=i(!1),s=()=>{t.value=!0},n=()=>{t.value=!1},u=i([20,30,50,100,200,300]),c=i(""),E=i(!1),W=i(null),K=P({is_auto_transfer:0,is_auto_verify:0,is_open:0,min:0,rate:0,transfer_type:[]}),L=i(!0);T((()=>{A("checkIsReturnAfterPayment"),F().then((e=>{for(let a in e.data)K[a]=e.data[a];L.value=!1}))}));const J=()=>{uni.$u.test.isEmpty(c.value)?C({title:g("rechargeAmountPlaceholder"),icon:"none"}):!uni.$u.test.amount(c.value)||c.value<=0?C({title:g("rechargeAmountError"),icon:"none"}):E.value||(E.value=!0,O({recharge_money:c.value}).then((e=>{var a;null==(a=W.value)||a.open(e.data.trade_type,e.data.trade_id)})).catch((()=>{E.value=!1})))},M=()=>{uni.setStorageSync("cashOutAccountType","money"),d({url:"/pages/member/apply_cash_out"})};return(e,i)=>{const C=p(m("u-loading-page"),D),j=I,P=U,T=p(m("u-button"),B),A=p(m("u--input"),Z),F=p(m("u-popup"),q),O=p(m("pay"),G);return l(),b(h,null,[y(C,{loading:L.value,loadingText:""},null,8,["loading"]),R(y(j,{class:"account-info-wrap"},{default:r((()=>[y(j,{class:"account-info-head",style:$({background:"url("+x(k)("static/resource/images/member/balance_bg.png")+") no-repeat 95% 30% / auto 250rpx, linear-gradient(314deg, #FE7849 0%, #FF1959 100%)"})},{default:r((()=>[y(j,{class:"name"},{default:r((()=>[f(_(x(g)("balanceInfo")),1)])),_:1}),y(j,{class:"content"},{default:r((()=>[y(j,{class:"money"},{default:r((()=>[f(_(x(a).info?x(v)((parseFloat(x(a).info.balance)+parseFloat(x(a).info.money)).toString()):"0.00"),1)])),_:1}),y(j,{class:"text"},{default:r((()=>[f(_(x(g)("accountBalance")),1)])),_:1}),y(j,{class:"money-wrap"},{default:r((()=>[y(j,{class:"money-item",onClick:i[0]||(i[0]=e=>x(d)({url:"/pages/member/detailed_account",param:{type:"balance"}}))},{default:r((()=>[y(j,{class:"money"},{default:r((()=>{var e;return[f(_(x(v)(null==(e=x(a).info)?void 0:e.balance)||"0.00"),1)]})),_:1}),y(j,{class:"text leading-none"},{default:r((()=>[f(_(x(g)("balance")),1)])),_:1})])),_:1}),y(j,{class:"money-item",onClick:i[1]||(i[1]=e=>x(d)({url:"/pages/member/detailed_account",param:{type:"money"}}))},{default:r((()=>[y(j,{class:"money"},{default:r((()=>{var e;return[f(_(x(v)(null==(e=x(a).info)?void 0:e.money)||"0.00"),1)]})),_:1}),y(j,{class:"text leading-none"},{default:r((()=>[f(_(x(g)("money")),1)])),_:1})])),_:1})])),_:1})])),_:1})])),_:1},8,["style"]),y(j,{class:"account-info-btn"},{default:r((()=>[y(T,{type:"primary",shape:"circle",class:"btn",customStyle:{backgroundColor:"#FE4E50",color:"#fff",borderColor:"#FE4E50",width:"calc(100vw - 64rpx)"},onClick:s},{default:r((()=>[H("img",{class:"max-w-[36rpx] max-h-[36rpx] mr-1",src:x(k)("static/resource/images/member/reset.png"),alt:""},null,8,["src"]),y(P,null,{default:r((()=>[f(_(x(g)("recharge")),1)])),_:1})])),_:1},8,["customStyle"]),1==K.is_open?(l(),o(T,{key:0,type:"primary",plain:!0,shape:"circle",class:"btn",customStyle:{backgroundColor:"#fff",color:"#FE4E50",borderColor:"#FE4E50",width:"calc(100vw - 64rpx)"},onClick:M},{default:r((()=>[H("img",{class:"max-w-[36rpx] max-h-[36rpx] mr-1",src:x(k)("static/resource/images/member/withdraw_deposit.png"),alt:""},null,8,["src"]),y(P,null,{default:r((()=>[f(_(x(g)("cashOut")),1)])),_:1})])),_:1},8,["customStyle"])):w("",!0)])),_:1}),y(F,{show:t.value,mode:"center",round:10,onClose:n,closeable:!0},{default:r((()=>[y(j,{class:"w-80 px-3 pb-4 pt-7 box-border"},{default:r((()=>[y(A,{placeholder:x(g)("rechargeAmountPlaceholder"),modelValue:c.value,"onUpdate:modelValue":i[2]||(i[2]=e=>c.value=e),border:"bottom",type:"number",clearable:""},null,8,["placeholder","modelValue"]),y(j,{class:"top-up-wrap flex flex-wrap justify-around mt-3"},{default:r((()=>[(l(!0),b(h,null,S(u.value,((e,a)=>(l(),o(j,{key:a,class:z(["top-up-item w-22 box-border border-1 text-center rounded mt-2 py-3 px-4 border-gray-400 border-solid",{"border-primary text-primary":c.value==e}]),onClick:a=>c.value=e},{default:r((()=>[y(P,null,{default:r((()=>[f(_(e)+_(x(g)("yuan")),1)])),_:2},1024)])),_:2},1032,["class","onClick"])))),128))])),_:1}),y(j,{class:"mt-5 px-2"},{default:r((()=>[y(T,{type:"primary",shape:"circle",loading:E.value,text:x(g)("clickRecharge"),onClick:J},null,8,["loading","text"])])),_:1}),y(j,{class:"mt-[20rpx] text-center text-sm",onClick:i[3]||(i[3]=e=>x(d)({url:"/pages/member/recharge_record"}))},{default:r((()=>[f(_(x(g)("rechargeRecord")),1)])),_:1})])),_:1})])),_:1},8,["show"]),y(O,{ref_key:"payRef",ref:W,onClose:i[4]||(i[4]=e=>E.value=!1)},null,512)])),_:1},512),[[V,!L.value]])],64)}}}),[["__scopeId","data-v-1c825d43"]]);export{X as default}; diff --git a/niucloud/public/wap/assets/pages-member-balance.fd4992cd.js b/niucloud/public/wap/assets/pages-member-balance.fd4992cd.js deleted file mode 100644 index f4c3b1eb5..000000000 --- a/niucloud/public/wap/assets/pages-member-balance.fd4992cd.js +++ /dev/null @@ -1 +0,0 @@ -import{y as e,z as a,ab as t,h as l,i as o,w as r,B as s,d as n,am as u,r as c,av as i,R as d,m as p,p as m,j as f,C as y,D as _,l as x,J as g,aq as b,M as v,O as h,N as S,t as k,E as w,a5 as C,q as I,S as E,U as j,a as P,e as T,aw as F,ap as A,k as V,v as B,n as R,au as $,ax as H,H as O,F as D}from"./index-5bb08350.js";import{_ as L}from"./u-loading-page.f2a7c1df.js";import{_ as U}from"./u-button.364aa63d.js";import{p as z,_ as W}from"./u-input.cefa6e75.js";import{_ as K}from"./_plugin-vue_export-helper.1b428a4d.js";import{_ as q}from"./u-popup.7d705de0.js";import{_ as J}from"./u-image.9265f18d.js";import{_ as M}from"./u-icon.461524ba.js";import{p as N,g as Q}from"./pay.4e07eed1.js";import{w as Y}from"./wechat.eeef1e91.js";import"./u-loading-icon.2e89024b.js";import"./u-transition.021c4c1c.js";import"./u-safe-bottom.6578a4de.js";const Z=K({name:"u--input",mixins:[e,z,a],components:{uvInput:W}},[["render",function(e,a,n,u,c,i){const d=t("uvInput");return l(),o(d,{modelValue:e.modelValue,"onUpdate:modelValue":a[0]||(a[0]=a=>e.$emit("update:modelValue",a)),type:e.type,fixed:e.fixed,disabled:e.disabled,disabledColor:e.disabledColor,clearable:e.clearable,password:e.password,maxlength:e.maxlength,placeholder:e.placeholder,placeholderClass:e.placeholderClass,placeholderStyle:e.placeholderStyle,showWordLimit:e.showWordLimit,confirmType:e.confirmType,confirmHold:e.confirmHold,holdKeyboard:e.holdKeyboard,focus:e.focus,autoBlur:e.autoBlur,disableDefaultPadding:e.disableDefaultPadding,cursor:e.cursor,cursorSpacing:e.cursorSpacing,selectionStart:e.selectionStart,selectionEnd:e.selectionEnd,adjustPosition:e.adjustPosition,inputAlign:e.inputAlign,fontSize:e.fontSize,color:e.color,prefixIcon:e.prefixIcon,suffixIcon:e.suffixIcon,suffixIconStyle:e.suffixIconStyle,prefixIconStyle:e.prefixIconStyle,border:e.border,readonly:e.readonly,shape:e.shape,customStyle:e.customStyle,formatter:e.formatter,ignoreCompositionEvent:e.ignoreCompositionEvent},{default:r((()=>[s(e.$slots,"prefix",{slot:"prefix"}),s(e.$slots,"suffix",{slot:"suffix"})])),_:3},8,["modelValue","type","fixed","disabled","disabledColor","clearable","password","maxlength","placeholder","placeholderClass","placeholderStyle","showWordLimit","confirmType","confirmHold","holdKeyboard","focus","autoBlur","disableDefaultPadding","cursor","cursorSpacing","selectionStart","selectionEnd","adjustPosition","inputAlign","fontSize","color","prefixIcon","suffixIcon","suffixIconStyle","prefixIconStyle","border","readonly","shape","customStyle","formatter","ignoreCompositionEvent"])}]]),G=K(n({__name:"pay",emits:["close"],setup(e,{expose:a,emit:t}){u()&&Y.init();const s=c(!1),n=c(!1),j=c(null),P=c(""),T=()=>{var e;uni.$u.test.isEmpty(P.value)?C({title:g("pay.notHavePayType"),icon:"none"}):n.value||(n.value=!0,N({out_trade_no:null==(e=j.value)?void 0:e.out_trade_no,type:P.value}).then((e=>{var a,t,l,o;switch(P.value){case"wechatpay":u()?(e.data.timestamp=e.data.timeStamp,delete e.data.timeStamp,Y.pay({...e.data,success:()=>{var e;d({url:"/pages/pay/result",param:{code:null==(e=j.value)?void 0:e.out_trade_no},mode:"redirectTo"})},cancel:()=>{n.value=!1}})):(uni.setStorageSync("paymenting",null==(a=j.value)?void 0:a.out_trade_no),location.href=e.data.h5_url,addListenerPayBack());break;case"alipay":u()?d({url:"/pages/pay/browser",param:{code:null==(t=j.value)?void 0:t.out_trade_no,alipay:encodeURIComponent(e.data.url)},mode:"redirectTo"}):(uni.setStorageSync("paymenting",null==(l=j.value)?void 0:l.out_trade_no),location.href=e.data.url,addListenerPayBack());break;default:d({url:"/pages/pay/result",param:{code:null==(o=j.value)?void 0:o.out_trade_no},mode:"redirectTo"})}})).catch((()=>{n.value=!1})))};i("checkIsReturnAfterPayment",(()=>{uni.getStorageSync("paymenting")&&d({url:"/pages/pay/result",param:{code:uni.getStorageSync("paymenting")},mode:"redirectTo",success(){uni.removeStorageSync("paymenting")}})}));const F=()=>{uni.removeStorageSync("paymenting"),s.value=!1,t("close")};return a({open:e=>{Q(e).then((a=>{let{data:t}=a;uni.$u.test.isEmpty(t)?C({title:g("pay.notObtainedInfo"),icon:"none"}):0!=t.money?0==t.status?(j.value=t,P.value=t.pay_type_list[0]?t.pay_type_list[0].key:"",s.value=!0):C({title:g("pay.paymentDocuments")+t.status_name,icon:"none"}):d({url:"/pages/pay/result",param:{code:e},mode:"redirectTo"})})).catch((()=>{}))}}),(e,a)=>{const t=I,u=p(m("u-image"),J),c=p(m("u-icon"),M),i=E,d=p(m("u-button"),U),C=p(m("u-popup"),q);return l(),o(C,{show:s.value,round:10,onClose:F,closeable:!0,bgColor:"#fff",closeOnClickOverlay:!1},{default:r((()=>[j.value?(l(),o(t,{key:0,class:"flex flex-col h-[75vh]"},{default:r((()=>[f(t,{class:"head"},{default:r((()=>[f(t,{class:"text-center py-[26rpx]"},{default:r((()=>[y(_(x(g)("pay.payTitle")),1)])),_:1}),f(t,{class:"flex items-end justify-center w-full text-xl font-bold py-[20rpx]"},{default:r((()=>[f(t,{class:"text-base mr-[4rpx]"},{default:r((()=>[y(_(x(g)("currency")),1)])),_:1}),y(" "+_(x(b)(j.value.money)),1)])),_:1})])),_:1}),f(i,{"scroll-y":"true",class:"flex-1 pt-[20rpx]"},{default:r((()=>[f(t,{class:"flex text-sm px-[30rpx] py-[20rpx]"},{default:r((()=>[f(t,{class:"text-gray-500"},{default:r((()=>[y(_(x(g)("pay.orderInfo")),1)])),_:1}),f(t,{class:"text-right flex-1 pl-[30rpx] truncate"},{default:r((()=>[y(_(j.value.body),1)])),_:1})])),_:1}),f(t,{class:"mx-[30rpx] py-[10rpx] px-[30rpx] bg-white rounded-md bg-page"},{default:r((()=>[j.value.pay_type_list.length?(l(!0),v(h,{key:0},S(j.value.pay_type_list,((e,a)=>(l(),o(t,{class:"pay-item py-[18rpx] flex items-center border-0 border-b border-solid border-[#eee]",key:a,onClick:a=>P.value=e.key},{default:r((()=>[f(u,{src:x(k)(e.icon),width:"50rpx",height:"50rpx"},null,8,["src"]),f(t,{class:"flex-1 px-[20rpx] text-sm font-bold"},{default:r((()=>[y(_(e.name),1)])),_:2},1024),e.key==P.value?(l(),o(c,{key:0,name:"checkbox-mark",color:"var(--primary-color)"})):w("",!0)])),_:2},1032,["onClick"])))),128)):(l(),o(t,{key:1,class:"py-[20rpx] text-center text-sm text-gray-subtitle"},{default:r((()=>[y(_(x(g)("pay.notHavePayType")),1)])),_:1}))])),_:1})])),_:1}),f(t,{class:"p-[30rpx]"},{default:r((()=>[f(d,{type:"primary",loading:n.value,text:x(g)("pay.confirmPay"),shape:"circle",onClick:T},null,8,["loading","text"])])),_:1})])),_:1})):w("",!0)])),_:1},8,["show"])}}}),[["__scopeId","data-v-14dbf0eb"]]),X=K(n({__name:"balance",setup(e){const a=j(),t=c(!1),s=()=>{t.value=!0},n=()=>{t.value=!1},u=c([20,30,50,100,200,300]),i=c(""),E=c(!1),z=c(null),W=P({is_auto_transfer:0,is_auto_verify:0,is_open:0,min:0,rate:0,transfer_type:[]}),K=c(!0);T((()=>{F("checkIsReturnAfterPayment"),A().then((e=>{for(let a in e.data)W[a]=e.data[a];K.value=!1}))}));const J=()=>{uni.$u.test.isEmpty(i.value)?C({title:g("rechargeAmountPlaceholder"),icon:"none"}):!uni.$u.test.amount(i.value)||i.value<=0?C({title:g("rechargeAmountError"),icon:"none"}):E.value||(E.value=!0,H({recharge_money:i.value}).then((e=>{var a;null==(a=z.value)||a.open(e.data.out_trade_no)})).catch((()=>{E.value=!1})))},M=()=>{uni.setStorageSync("cashOutAccountType","money"),d({url:"/pages/member/apply_cash_out"})};return(e,c)=>{const C=p(m("u-loading-page"),L),j=I,P=O,T=p(m("u-button"),U),F=p(m("u--input"),Z),A=p(m("u-popup"),q),H=p(m("pay"),G);return l(),v(h,null,[f(C,{loading:K.value,loadingText:""},null,8,["loading"]),V(f(j,{class:"account-info-wrap"},{default:r((()=>[f(j,{class:"account-info-head",style:R({background:"url("+x(k)("static/resource/images/member/balance_bg.png")+") no-repeat 95% 30% / auto 250rpx, linear-gradient(314deg, #FE7849 0%, #FF1959 100%)"})},{default:r((()=>[f(j,{class:"name"},{default:r((()=>[y(_(x(g)("balanceInfo")),1)])),_:1}),f(j,{class:"content"},{default:r((()=>[f(j,{class:"money"},{default:r((()=>[y(_(x(a).info?x(b)((parseFloat(x(a).info.balance)+parseFloat(x(a).info.money)).toString()):"0.00"),1)])),_:1}),f(j,{class:"text"},{default:r((()=>[y(_(x(g)("accountBalance")),1)])),_:1}),f(j,{class:"money-wrap"},{default:r((()=>[f(j,{class:"money-item",onClick:c[0]||(c[0]=e=>x(d)({url:"/pages/member/detailed_account",param:{type:"balance"}}))},{default:r((()=>[f(j,{class:"money"},{default:r((()=>{var e;return[y(_(x(b)(null==(e=x(a).info)?void 0:e.balance)||"0.00"),1)]})),_:1}),f(j,{class:"text leading-none"},{default:r((()=>[y(_(x(g)("balance")),1)])),_:1})])),_:1}),f(j,{class:"money-item",onClick:c[1]||(c[1]=e=>x(d)({url:"/pages/member/detailed_account",param:{type:"money"}}))},{default:r((()=>[f(j,{class:"money"},{default:r((()=>{var e;return[y(_(x(b)(null==(e=x(a).info)?void 0:e.money)||"0.00"),1)]})),_:1}),f(j,{class:"text leading-none"},{default:r((()=>[y(_(x(g)("money")),1)])),_:1})])),_:1})])),_:1})])),_:1})])),_:1},8,["style"]),f(j,{class:"account-info-btn"},{default:r((()=>[f(T,{type:"primary",shape:"circle",class:"btn",customStyle:{backgroundColor:"#FE4E50",color:"#fff",borderColor:"#FE4E50",width:"calc(100vw - 64rpx)"},onClick:s},{default:r((()=>[$("img",{class:"max-w-[36rpx] max-h-[36rpx] mr-1",src:x(k)("static/resource/images/member/reset.png"),alt:""},null,8,["src"]),f(P,null,{default:r((()=>[y(_(x(g)("recharge")),1)])),_:1})])),_:1},8,["customStyle"]),1==W.is_open?(l(),o(T,{key:0,type:"primary",plain:!0,shape:"circle",class:"btn",customStyle:{backgroundColor:"#fff",color:"#FE4E50",borderColor:"#FE4E50",width:"calc(100vw - 64rpx)"},onClick:M},{default:r((()=>[$("img",{class:"max-w-[36rpx] max-h-[36rpx] mr-1",src:x(k)("static/resource/images/member/withdraw_deposit.png"),alt:""},null,8,["src"]),f(P,null,{default:r((()=>[y(_(x(g)("cashOut")),1)])),_:1})])),_:1},8,["customStyle"])):w("",!0)])),_:1}),f(A,{show:t.value,mode:"center",round:10,onClose:n,closeable:!0},{default:r((()=>[f(j,{class:"w-80 px-3 pb-4 pt-7 box-border"},{default:r((()=>[f(F,{placeholder:x(g)("rechargeAmountPlaceholder"),modelValue:i.value,"onUpdate:modelValue":c[2]||(c[2]=e=>i.value=e),border:"bottom",type:"number",clearable:""},null,8,["placeholder","modelValue"]),f(j,{class:"top-up-wrap flex flex-wrap justify-around mt-3"},{default:r((()=>[(l(!0),v(h,null,S(u.value,((e,a)=>(l(),o(j,{key:a,class:D(["top-up-item w-22 box-border border-1 text-center rounded mt-2 py-3 px-4 border-gray-400 border-solid",{"border-primary text-primary":i.value==e}]),onClick:a=>i.value=e},{default:r((()=>[f(P,null,{default:r((()=>[y(_(e)+_(x(g)("yuan")),1)])),_:2},1024)])),_:2},1032,["class","onClick"])))),128))])),_:1}),f(j,{class:"mt-5 px-2"},{default:r((()=>[f(T,{type:"primary",shape:"circle",loading:E.value,text:x(g)("clickRecharge"),onClick:J},null,8,["loading","text"])])),_:1}),f(j,{class:"mt-[20rpx] text-center text-sm",onClick:c[3]||(c[3]=e=>x(d)({url:"/pages/member/recharge_record"}))},{default:r((()=>[y(_(x(g)("rechargeRecord")),1)])),_:1})])),_:1})])),_:1},8,["show"]),f(H,{ref_key:"payRef",ref:z,onClose:c[4]||(c[4]=e=>E.value=!1)},null,512)])),_:1},512),[[B,!K.value]])],64)}}}),[["__scopeId","data-v-9d051fd0"]]);export{X as default}; diff --git a/niucloud/public/wap/assets/pages-member-cash_out.340def83.js b/niucloud/public/wap/assets/pages-member-cash_out.340def83.js deleted file mode 100644 index 41f9ef1f6..000000000 --- a/niucloud/public/wap/assets/pages-member-cash_out.340def83.js +++ /dev/null @@ -1 +0,0 @@ -import{d as e,r as a,h as s,i as t,w as l,j as n,M as o,N as r,l as c,O as u,E as m,P as p,Q as i,aE as _,q as d,C as f,D as y,J as v,F as h,R as g}from"./index-5bb08350.js";import{u as k,M as w}from"./useMescroll.92c88689.js";import{M as T}from"./mescroll-empty.b357d8ac.js";import{_ as j}from"./_plugin-vue_export-helper.1b428a4d.js";const M=j(e({__name:"cash_out",setup(e){const{mescrollInit:j,downCallback:M,getMescroll:b}=k(i,p);let x=a([]),C=a(null),I=a(!1),D=uni.getStorageSync("cashOutAccountType");const E=e=>{switch(e){case 1:return v("toBeReviewed");case 2:return v("toBeTransfer");case 3:return v("transfer");case-2:return v("cancelApply")}},R=e=>{let s=a({});I.value=!1,s.value.page=e.num,s.value.page_size=e.size,s.value.account_type=D,_(s.value).then((a=>{let s=a.data.data;e.endSuccess(s.length),1==e.num&&(x.value=[]),x.value=x.value.concat(s),I.value=!0})).catch((()=>{I.value=!0,e.endErr()}))};return(e,a)=>{const p=d;return s(),t(p,{class:"member-record-list"},{default:l((()=>[n(w,{ref_key:"mescrollRef",ref:C,onInit:c(j),onDown:c(M),onUp:R},{default:l((()=>[(s(!0),o(u,null,r(c(x),((e,a)=>(s(),t(p,{key:e.id,class:"member-record-item",onClick:a=>{g({url:"/pages/member/cash_out_detail",param:{id:e.id}})}},{default:l((()=>[n(p,{class:"name"},{default:l((()=>[f(y(e.transfer_type_name),1)])),_:2},1024),n(p,{class:"desc"},{default:l((()=>[f(y(c(v)("applyTime"))+": "+y(e.create_time),1)])),_:2},1024),n(p,{class:"desc"},{default:l((()=>[f(y(-1!=e.status?E(e.status):e.refuse_reason),1)])),_:2},1024),n(p,{class:h(["money",e.apply_money>0?"text-active":""])},{default:l((()=>[f(y(e.apply_money>0?"+"+e.apply_money:e.apply_money),1)])),_:2},1032,["class"]),n(p,{class:"state"},{default:l((()=>[f(y(e.status_name),1)])),_:2},1024)])),_:2},1032,["onClick"])))),128)),!c(x).length&&c(I)?(s(),t(T,{key:0,option:{tip:"commission"==c(D)?c(v)("commissemptyTip"):c(v)("emptyTip")}},null,8,["option"])):m("",!0)])),_:1},8,["onInit","onDown"])])),_:1})}}}),[["__scopeId","data-v-84fd62a2"]]);export{M as default}; diff --git a/niucloud/public/wap/assets/pages-member-cash_out.57f0f96a.js b/niucloud/public/wap/assets/pages-member-cash_out.57f0f96a.js new file mode 100644 index 000000000..af22e7b4d --- /dev/null +++ b/niucloud/public/wap/assets/pages-member-cash_out.57f0f96a.js @@ -0,0 +1 @@ +import{d as e,r as a,h as s,i as t,w as l,j as n,M as o,N as r,l as c,O as u,m,P as p,Q as i,aE as _,t as d,D as f,E as y,J as v,F as h,R as g}from"./index-15eacd31.js";import{u as k,M as w}from"./useMescroll.fbb7af33.js";import{M as T}from"./mescroll-empty.22c37416.js";import{_ as j}from"./_plugin-vue_export-helper.1b428a4d.js";const M=j(e({__name:"cash_out",setup(e){const{mescrollInit:j,downCallback:M,getMescroll:b}=k(i,p);let x=a([]),I=a(null),C=a(!1),D=uni.getStorageSync("cashOutAccountType");const E=e=>{switch(e){case 1:return v("toBeReviewed");case 2:return v("toBeTransfer");case 3:return v("transfer");case-2:return v("cancelApply")}},R=e=>{let s=a({});C.value=!1,s.value.page=e.num,s.value.page_size=e.size,s.value.account_type=D,_(s.value).then((a=>{let s=a.data.data;e.endSuccess(s.length),1==e.num&&(x.value=[]),x.value=x.value.concat(s),C.value=!0})).catch((()=>{C.value=!0,e.endErr()}))};return(e,a)=>{const p=d;return s(),t(p,{class:"member-record-list"},{default:l((()=>[n(w,{ref_key:"mescrollRef",ref:I,onInit:c(j),onDown:c(M),onUp:R},{default:l((()=>[(s(!0),o(u,null,r(c(x),((e,a)=>(s(),t(p,{key:e.id,class:"member-record-item",onClick:a=>{g({url:"/pages/member/cash_out_detail",param:{id:e.id}})}},{default:l((()=>[n(p,{class:"name"},{default:l((()=>[f(y(e.transfer_type_name),1)])),_:2},1024),n(p,{class:"desc"},{default:l((()=>[f(y(c(v)("applyTime"))+": "+y(e.create_time),1)])),_:2},1024),n(p,{class:"desc"},{default:l((()=>[f(y(-1!=e.status?E(e.status):e.refuse_reason),1)])),_:2},1024),n(p,{class:h(["money",e.apply_money>0?"text-active":""])},{default:l((()=>[f(y(e.apply_money>0?"+"+e.apply_money:e.apply_money),1)])),_:2},1032,["class"]),n(p,{class:"state"},{default:l((()=>[f(y(e.status_name),1)])),_:2},1024)])),_:2},1032,["onClick"])))),128)),!c(x).length&&c(C)?(s(),t(T,{key:0,option:{tip:"commission"==c(D)?c(v)("commissemptyTip"):c(v)("emptyTip")}},null,8,["option"])):m("",!0)])),_:1},8,["onInit","onDown"])])),_:1})}}}),[["__scopeId","data-v-84fd62a2"]]);export{M as default}; diff --git a/niucloud/public/wap/assets/pages-member-cash_out_detail.905f81df.js b/niucloud/public/wap/assets/pages-member-cash_out_detail.ccd37d79.js similarity index 95% rename from niucloud/public/wap/assets/pages-member-cash_out_detail.905f81df.js rename to niucloud/public/wap/assets/pages-member-cash_out_detail.ccd37d79.js index 4e4209336..2d3f2811f 100644 --- a/niucloud/public/wap/assets/pages-member-cash_out_detail.905f81df.js +++ b/niucloud/public/wap/assets/pages-member-cash_out_detail.ccd37d79.js @@ -1 +1 @@ -import{d as a,r as e,o as l,aF as s,h as t,i as u,w as _,j as r,C as c,D as f,l as d,E as n,H as i,q as o,J as p}from"./index-5bb08350.js";import{_ as m}from"./_plugin-vue_export-helper.1b428a4d.js";const v=m(a({__name:"cash_out_detail",setup(a){let m=e({}),v=e(!1);l((a=>{let e=a.id||"";b(e)}));const b=a=>{v.value=!1,s(a).then((a=>{m.value=a.data,v.value=!0})).catch((()=>{v.value=!0}))};return(a,e)=>{const l=i,s=o;return t(),u(s,{class:"member-record-detail"},{default:_((()=>[r(s,{class:"money-wrap"},{default:_((()=>[r(l,null,{default:_((()=>[c("-"+f(d(m).apply_money),1)])),_:1}),r(l,null,{default:_((()=>[c(f(d(m).status_name),1)])),_:1})])),_:1}),r(s,{class:"item"},{default:_((()=>[r(s,{class:"line-wrap"},{default:_((()=>[r(l,{class:"label"},{default:_((()=>[c(f(d(p)("cashOutNo")),1)])),_:1}),r(l,{class:"value"},{default:_((()=>[c(f(d(m).cash_out_no),1)])),_:1})])),_:1}),r(s,{class:"line-wrap"},{default:_((()=>[r(l,{class:"label"},{default:_((()=>[c(f(d(p)("serviceMoney")),1)])),_:1}),r(l,{class:"value"},{default:_((()=>[c("¥"+f(d(m).service_money),1)])),_:1})])),_:1}),r(s,{class:"line-wrap"},{default:_((()=>[r(l,{class:"label"},{default:_((()=>[c(f(d(p)("createTime")),1)])),_:1}),r(l,{class:"value"},{default:_((()=>[c(f(d(m).create_time),1)])),_:1})])),_:1}),d(m).status?(t(),u(s,{key:0,class:"line-wrap"},{default:_((()=>[r(l,{class:"label"},{default:_((()=>[c(f(d(p)("auditTime")),1)])),_:1}),r(l,{class:"value"},{default:_((()=>[c(f(d(m).audit_time),1)])),_:1})])),_:1})):n("",!0),d(m).transfer_bank?(t(),u(s,{key:1,class:"line-wrap"},{default:_((()=>[r(l,{class:"label"},{default:_((()=>[c(f(d(p)("transferBank")),1)])),_:1}),r(l,{class:"value"},{default:_((()=>[c(f(d(m).transfer_bank),1)])),_:1})])),_:1})):n("",!0),r(s,{class:"line-wrap"},{default:_((()=>[r(l,{class:"label"},{default:_((()=>[c(f(d(p)("transferAccount")),1)])),_:1}),r(l,{class:"value"},{default:_((()=>[c(f(d(m).transfer_account),1)])),_:1})])),_:1}),-1==d(m).status&&d(m).refuse_reason?(t(),u(s,{key:2,class:"line-wrap"},{default:_((()=>[r(l,{class:"label"},{default:_((()=>[c(f(d(p)("refuseReason")),1)])),_:1}),r(l,{class:"value"},{default:_((()=>[c(f(d(m).refuse_reason),1)])),_:1})])),_:1})):n("",!0),2==d(m).status?(t(),u(s,{key:3,class:"line-wrap"},{default:_((()=>[r(l,{class:"label"},{default:_((()=>[c(f(d(p)("transferTypeName")),1)])),_:1}),r(l,{class:"value"},{default:_((()=>[c(f(d(m).transfer_type_name),1)])),_:1})])),_:1})):n("",!0),2==d(m).status?(t(),u(s,{key:4,class:"line-wrap"},{default:_((()=>[r(l,{class:"label"},{default:_((()=>[c(f(d(p)("transferTime")),1)])),_:1}),r(l,{class:"value"},{default:_((()=>[c(f(d(m).transfer_time),1)])),_:1})])),_:1})):n("",!0)])),_:1})])),_:1})}}}),[["__scopeId","data-v-49c455c6"]]);export{v as default}; +import{d as a,r as e,o as l,aF as s,h as t,i as u,w as _,j as r,D as c,E as f,l as d,m as n,H as i,t as o,J as p}from"./index-15eacd31.js";import{_ as m}from"./_plugin-vue_export-helper.1b428a4d.js";const v=m(a({__name:"cash_out_detail",setup(a){let m=e({}),v=e(!1);l((a=>{let e=a.id||"";b(e)}));const b=a=>{v.value=!1,s(a).then((a=>{m.value=a.data,v.value=!0})).catch((()=>{v.value=!0}))};return(a,e)=>{const l=i,s=o;return t(),u(s,{class:"member-record-detail"},{default:_((()=>[r(s,{class:"money-wrap"},{default:_((()=>[r(l,null,{default:_((()=>[c("-"+f(d(m).apply_money),1)])),_:1}),r(l,null,{default:_((()=>[c(f(d(m).status_name),1)])),_:1})])),_:1}),r(s,{class:"item"},{default:_((()=>[r(s,{class:"line-wrap"},{default:_((()=>[r(l,{class:"label"},{default:_((()=>[c(f(d(p)("cashOutNo")),1)])),_:1}),r(l,{class:"value"},{default:_((()=>[c(f(d(m).cash_out_no),1)])),_:1})])),_:1}),r(s,{class:"line-wrap"},{default:_((()=>[r(l,{class:"label"},{default:_((()=>[c(f(d(p)("serviceMoney")),1)])),_:1}),r(l,{class:"value"},{default:_((()=>[c("¥"+f(d(m).service_money),1)])),_:1})])),_:1}),r(s,{class:"line-wrap"},{default:_((()=>[r(l,{class:"label"},{default:_((()=>[c(f(d(p)("createTime")),1)])),_:1}),r(l,{class:"value"},{default:_((()=>[c(f(d(m).create_time),1)])),_:1})])),_:1}),d(m).status?(t(),u(s,{key:0,class:"line-wrap"},{default:_((()=>[r(l,{class:"label"},{default:_((()=>[c(f(d(p)("auditTime")),1)])),_:1}),r(l,{class:"value"},{default:_((()=>[c(f(d(m).audit_time),1)])),_:1})])),_:1})):n("",!0),d(m).transfer_bank?(t(),u(s,{key:1,class:"line-wrap"},{default:_((()=>[r(l,{class:"label"},{default:_((()=>[c(f(d(p)("transferBank")),1)])),_:1}),r(l,{class:"value"},{default:_((()=>[c(f(d(m).transfer_bank),1)])),_:1})])),_:1})):n("",!0),r(s,{class:"line-wrap"},{default:_((()=>[r(l,{class:"label"},{default:_((()=>[c(f(d(p)("transferAccount")),1)])),_:1}),r(l,{class:"value"},{default:_((()=>[c(f(d(m).transfer_account),1)])),_:1})])),_:1}),-1==d(m).status&&d(m).refuse_reason?(t(),u(s,{key:2,class:"line-wrap"},{default:_((()=>[r(l,{class:"label"},{default:_((()=>[c(f(d(p)("refuseReason")),1)])),_:1}),r(l,{class:"value"},{default:_((()=>[c(f(d(m).refuse_reason),1)])),_:1})])),_:1})):n("",!0),2==d(m).status?(t(),u(s,{key:3,class:"line-wrap"},{default:_((()=>[r(l,{class:"label"},{default:_((()=>[c(f(d(p)("transferTypeName")),1)])),_:1}),r(l,{class:"value"},{default:_((()=>[c(f(d(m).transfer_type_name),1)])),_:1})])),_:1})):n("",!0),2==d(m).status?(t(),u(s,{key:4,class:"line-wrap"},{default:_((()=>[r(l,{class:"label"},{default:_((()=>[c(f(d(p)("transferTime")),1)])),_:1}),r(l,{class:"value"},{default:_((()=>[c(f(d(m).transfer_time),1)])),_:1})])),_:1})):n("",!0)])),_:1})])),_:1})}}}),[["__scopeId","data-v-49c455c6"]]);export{v as default}; diff --git a/niucloud/public/wap/assets/pages-member-commission.e551b4a8.js b/niucloud/public/wap/assets/pages-member-commission.2562b979.js similarity index 76% rename from niucloud/public/wap/assets/pages-member-commission.e551b4a8.js rename to niucloud/public/wap/assets/pages-member-commission.2562b979.js index 93506189c..6c98a5825 100644 --- a/niucloud/public/wap/assets/pages-member-commission.e551b4a8.js +++ b/niucloud/public/wap/assets/pages-member-commission.2562b979.js @@ -1 +1 @@ -import{d as a,U as s,h as e,i as o,w as t,j as c,C as n,D as l,l as i,n as m,au as r,R as u,q as d,H as p,m as _,p as f,t as g,J as y,aq as b}from"./index-5bb08350.js";import{_ as x}from"./u-button.364aa63d.js";import{_ as h}from"./_plugin-vue_export-helper.1b428a4d.js";import"./u-loading-icon.2e89024b.js";import"./u-icon.461524ba.js";const w=h(a({__name:"commission",setup(a){const h=s(),w=()=>{uni.setStorageSync("cashOutAccountType","commission"),u({url:"/pages/member/apply_cash_out"})};return(a,s)=>{const v=d,C=p,j=_(f("u-button"),x);return e(),o(v,{class:"account-info-wrap"},{default:t((()=>[c(v,{class:"account-info-head",style:m({background:"url("+i(g)("static/resource/images/member/balance_bg.png")+") no-repeat 95% 30% / auto 250rpx, linear-gradient(314deg, #FE7849 0%, #FF1959 100%)"})},{default:t((()=>[c(v,{class:"name"},{default:t((()=>[n(l(i(y)("commissionInfo")),1)])),_:1}),c(v,{class:"content"},{default:t((()=>[c(v,{class:"money",onClick:s[0]||(s[0]=a=>i(u)({url:"/pages/member/detailed_account",param:{type:"commission"}}))},{default:t((()=>[n(l(i(h).info?i(b)(i(h).info.commission):0),1)])),_:1}),c(v,{class:"text",onClick:s[1]||(s[1]=a=>i(u)({url:"/pages/member/detailed_account",param:{type:"commission"}}))},{default:t((()=>[n(l(i(y)("accountCommission")),1)])),_:1}),c(v,{class:"money-wrap"},{default:t((()=>[c(v,{class:"money-item"},{default:t((()=>[c(v,{class:"money"},{default:t((()=>{var a;return[n(l(i(b)(null==(a=i(h).info)?void 0:a.commission_get)||"0.00"),1)]})),_:1}),c(v,{class:"text"},{default:t((()=>[n(l(i(y)("commission")),1)])),_:1})])),_:1}),c(v,{class:"money-item"},{default:t((()=>[c(v,{class:"money"},{default:t((()=>{var a;return[n(l(i(b)(null==(a=i(h).info)?void 0:a.commission_cash_outing)||"0.00"),1)]})),_:1}),c(v,{class:"text"},{default:t((()=>[n(l(i(y)("money")),1)])),_:1})])),_:1})])),_:1})])),_:1})])),_:1},8,["style"]),c(v,{class:"account-info-btn"},{default:t((()=>[c(j,{type:"primary",plain:!0,shape:"circle",class:"btn",customStyle:{backgroundColor:"#fff",color:"#FE4E50",borderColor:"#FE4E50",width:"calc(100vw - 64rpx)"},onClick:w},{default:t((()=>[r("img",{class:"max-w-[36rpx] max-h-[36rpx] mr-1",src:i(g)("static/resource/images/member/withdraw_deposit.png"),alt:""},null,8,["src"]),c(C,null,{default:t((()=>[n(l(i(y)("cashOut")),1)])),_:1})])),_:1},8,["customStyle"])])),_:1})])),_:1})}}}),[["__scopeId","data-v-a04a90cc"]]);export{w as default}; +import{d as a,U as s,h as e,i as o,w as t,j as c,D as n,E as l,l as i,n as m,au as r,R as u,t as d,H as p,p as _,q as f,x as g,J as y,aq as b}from"./index-15eacd31.js";import{_ as x}from"./u-button.5c85e6cc.js";import{_ as h}from"./_plugin-vue_export-helper.1b428a4d.js";import"./u-loading-icon.ea8c9ece.js";import"./u-icon.f5369555.js";const w=h(a({__name:"commission",setup(a){const h=s(),w=()=>{uni.setStorageSync("cashOutAccountType","commission"),u({url:"/pages/member/apply_cash_out"})};return(a,s)=>{const v=d,j=p,C=_(f("u-button"),x);return e(),o(v,{class:"account-info-wrap"},{default:t((()=>[c(v,{class:"account-info-head",style:m({background:"url("+i(g)("static/resource/images/member/balance_bg.png")+") no-repeat 95% 30% / auto 250rpx, linear-gradient(314deg, #FE7849 0%, #FF1959 100%)"})},{default:t((()=>[c(v,{class:"name"},{default:t((()=>[n(l(i(y)("commissionInfo")),1)])),_:1}),c(v,{class:"content"},{default:t((()=>[c(v,{class:"money",onClick:s[0]||(s[0]=a=>i(u)({url:"/pages/member/detailed_account",param:{type:"commission"}}))},{default:t((()=>[n(l(i(h).info?i(b)(i(h).info.commission):0),1)])),_:1}),c(v,{class:"text",onClick:s[1]||(s[1]=a=>i(u)({url:"/pages/member/detailed_account",param:{type:"commission"}}))},{default:t((()=>[n(l(i(y)("accountCommission")),1)])),_:1}),c(v,{class:"money-wrap"},{default:t((()=>[c(v,{class:"money-item"},{default:t((()=>[c(v,{class:"money"},{default:t((()=>{var a;return[n(l(i(b)(null==(a=i(h).info)?void 0:a.commission_get)||"0.00"),1)]})),_:1}),c(v,{class:"text"},{default:t((()=>[n(l(i(y)("commission")),1)])),_:1})])),_:1}),c(v,{class:"money-item"},{default:t((()=>[c(v,{class:"money"},{default:t((()=>{var a;return[n(l(i(b)(null==(a=i(h).info)?void 0:a.commission_cash_outing)||"0.00"),1)]})),_:1}),c(v,{class:"text"},{default:t((()=>[n(l(i(y)("money")),1)])),_:1})])),_:1})])),_:1})])),_:1})])),_:1},8,["style"]),c(v,{class:"account-info-btn"},{default:t((()=>[c(C,{type:"primary",plain:!0,shape:"circle",class:"btn",customStyle:{backgroundColor:"#fff",color:"#FE4E50",borderColor:"#FE4E50",width:"calc(100vw - 64rpx)"},onClick:w},{default:t((()=>[r("img",{class:"max-w-[36rpx] max-h-[36rpx] mr-1",src:i(g)("static/resource/images/member/withdraw_deposit.png"),alt:""},null,8,["src"]),c(j,null,{default:t((()=>[n(l(i(y)("cashOut")),1)])),_:1})])),_:1},8,["customStyle"])])),_:1})])),_:1})}}}),[["__scopeId","data-v-a04a90cc"]]);export{w as default}; diff --git a/niucloud/public/wap/assets/pages-member-detailed_account.bf0ba526.js b/niucloud/public/wap/assets/pages-member-detailed_account.dfe0ec43.js similarity index 52% rename from niucloud/public/wap/assets/pages-member-detailed_account.bf0ba526.js rename to niucloud/public/wap/assets/pages-member-detailed_account.dfe0ec43.js index 0d537a307..cf4aecf39 100644 --- a/niucloud/public/wap/assets/pages-member-detailed_account.bf0ba526.js +++ b/niucloud/public/wap/assets/pages-member-detailed_account.dfe0ec43.js @@ -1 +1 @@ -import{d as a,r as e,o as s,h as t,i as l,w as o,j as c,M as n,N as u,O as m,l as r,E as d,P as i,Q as p,q as _,C as v,D as f,F as y,J as b,aB as g,aC as h,aD as j}from"./index-5bb08350.js";import{u as k,M}from"./useMescroll.92c88689.js";import{M as w}from"./mescroll-empty.b357d8ac.js";import{_ as x}from"./_plugin-vue_export-helper.1b428a4d.js";const D=x(a({__name:"detailed_account",setup(a){const{mescrollInit:x,downCallback:D,getMescroll:I}=k(p,i),C=e("");s((a=>{C.value=a.type||"balance"}));const T=e([]),z=e(!1),E=e(null),q=a=>{z.value=!1;let e={page:a.num,page_size:a.size},s=a=>{};"balance"==C.value?s=g:"money"==C.value?s=h:"commission"==C.value&&(s=j),s(e).then((e=>{let s=e.data.data;a.endSuccess(s.length),1==a.num&&(T.value=[]),T.value=T.value.concat(s),z.value=!0})).catch((()=>{z.value=!0,a.endErr()}))};return(a,e)=>{const s=_;return t(),l(s,{class:"member-record-list"},{default:o((()=>[c(M,{ref_key:"mescrollRef",ref:E,onInit:r(x),onDown:r(D),onUp:q,top:""},{default:o((()=>[(t(!0),n(m,null,u(T.value,((a,e)=>(t(),l(s,{key:a.id,class:"member-record-item"},{default:o((()=>[c(s,{class:"name"},{default:o((()=>[v(f(a.from_type_name),1)])),_:2},1024),a.memo?(t(),l(s,{key:0,class:"desc"},{default:o((()=>[v(f(a.memo),1)])),_:2},1024)):d("",!0),c(s,{class:"desc"},{default:o((()=>[v(f(a.create_time),1)])),_:2},1024),c(s,{class:y(["money",a.account_data>0?"text-active":""])},{default:o((()=>[v(f(a.account_data>0?"+"+a.account_data:a.account_data),1)])),_:2},1032,["class"])])),_:2},1024)))),128)),!T.value.length&&z.value?(t(),l(w,{key:0,option:{tip:"commission"==C.value?r(b)("commissemptyTip"):r(b)("emptyTip")}},null,8,["option"])):d("",!0)])),_:1},8,["onInit","onDown"])])),_:1})}}}),[["__scopeId","data-v-ba9ac1e5"]]);export{D as default}; +import{d as a,r as e,o as s,h as t,i as l,w as o,j as c,M as n,N as u,O as m,l as r,m as d,P as i,Q as p,t as _,D as v,E as f,F as y,J as b,aB as g,aC as h,aD as j}from"./index-15eacd31.js";import{u as k,M}from"./useMescroll.fbb7af33.js";import{M as w}from"./mescroll-empty.22c37416.js";import{_ as x}from"./_plugin-vue_export-helper.1b428a4d.js";const D=x(a({__name:"detailed_account",setup(a){const{mescrollInit:x,downCallback:D,getMescroll:I}=k(p,i),T=e("");s((a=>{T.value=a.type||"balance"}));const z=e([]),C=e(!1),E=e(null),B=a=>{C.value=!1;let e={page:a.num,page_size:a.size},s=a=>{};"balance"==T.value?s=g:"money"==T.value?s=h:"commission"==T.value&&(s=j),s(e).then((e=>{let s=e.data.data;a.endSuccess(s.length),1==a.num&&(z.value=[]),z.value=z.value.concat(s),C.value=!0})).catch((()=>{C.value=!0,a.endErr()}))};return(a,e)=>{const s=_;return t(),l(s,{class:"member-record-list"},{default:o((()=>[c(M,{ref_key:"mescrollRef",ref:E,onInit:r(x),onDown:r(D),onUp:B,top:""},{default:o((()=>[(t(!0),n(m,null,u(z.value,((a,e)=>(t(),l(s,{key:a.id,class:"member-record-item"},{default:o((()=>[c(s,{class:"name"},{default:o((()=>[v(f(a.from_type_name),1)])),_:2},1024),a.memo?(t(),l(s,{key:0,class:"desc"},{default:o((()=>[v(f(a.memo),1)])),_:2},1024)):d("",!0),c(s,{class:"desc"},{default:o((()=>[v(f(a.create_time),1)])),_:2},1024),c(s,{class:y(["money",a.account_data>0?"text-active":""])},{default:o((()=>[v(f(a.account_data>0?"+"+a.account_data:a.account_data),1)])),_:2},1032,["class"])])),_:2},1024)))),128)),!z.value.length&&C.value?(t(),l(w,{key:0,option:{tip:"commission"==T.value?r(b)("commissemptyTip"):r(b)("emptyTip")}},null,8,["option"])):d("",!0)])),_:1},8,["onInit","onDown"])])),_:1})}}}),[["__scopeId","data-v-ba9ac1e5"]]);export{D as default}; diff --git a/niucloud/public/wap/assets/pages-member-index.448cc3b0.js b/niucloud/public/wap/assets/pages-member-index.448cc3b0.js deleted file mode 100644 index 853394668..000000000 --- a/niucloud/public/wap/assets/pages-member-index.448cc3b0.js +++ /dev/null @@ -1 +0,0 @@ -import{d as a,r as e,u as o,a as l,c as t,o as r,b as s,s as p,e as g,g as i,f as n,U as d,h as u,i as m,w as b,j as c,k as _,v as f,n as v,l as j,m as x,p as h,q as y,t as S}from"./index-5bb08350.js";import{_ as k}from"./u-loading-page.f2a7c1df.js";import{_ as I}from"./index.1d16afd8.js";import{_ as w}from"./_plugin-vue_export-helper.1b428a4d.js";import"./u-loading-icon.2e89024b.js";import"./u-transition.021c4c1c.js";import"./u-icon.461524ba.js";import"./tabbar.f7ee8f1f.js";import"./u-image.9265f18d.js";import"./u-safe-bottom.6578a4de.js";import"./article.1722ca18.js";import"./app-link.vue_vue_type_script_setup_true_lang.b08a40da.js";import"./u-avatar.0ea3924d.js";const B=w(a({__name:"index",setup(a){const w=e(!0),B=o(),C=e(0),D=l({global:{},value:[]}),E=t((()=>"decorate"==B.mode?B:D));return r((a=>{B.mode=a.mode||"","decorate"==B.mode&&(w.value=!1)})),s((()=>{C.value++,p()})),g((()=>{"decorate"==B.mode?B.init():i({name:"DIY_MEMBER_INDEX"}).then((a=>{if(a.data.value){let e=a.data;D.mode=e.mode;let o=JSON.parse(a.data.value);D.global=o.global,D.value=o.value,D.value.forEach(((a,e)=>{a.pageStyle="",a.pageBgColor&&(a.pageStyle+="background-color:"+a.pageBgColor+";"),a.margin&&(a.pageStyle+="padding-top:"+2*a.margin.top+"rpx;",a.pageStyle+="padding-bottom:"+2*a.margin.bottom+"rpx;",a.pageStyle+="padding-right:"+2*a.margin.both+"rpx;",a.pageStyle+="padding-left:"+2*a.margin.both+"rpx;")})),n({title:D.global.title})}w.value=!1})),d().getMemberInfo()})),(a,e)=>{const o=x(h("u-loading-page"),k),l=x(h("diy-group"),I),t=y;return u(),m(t,null,{default:b((()=>[c(o,{loading:w.value,loadingText:"","bg-color":"#f7f7f7"},null,8,["loading"]),_(c(t,null,{default:b((()=>[c(t,{class:"diy-template-wrap bg-index",style:v({backgroundColor:j(E).global.pageBgColor,minHeight:"calc(100vh - 50px)",backgroundImage:j(E).global.bgUrl?"url("+j(S)(j(E).global.bgUrl)+")":""})},{default:b((()=>[c(l,{data:j(E),pullDownRefresh:C.value},null,8,["data","pullDownRefresh"])])),_:1},8,["style"])])),_:1},512),[[f,!w.value]])])),_:1})}}}),[["__scopeId","data-v-a012177a"]]);export{B as default}; diff --git a/niucloud/public/wap/assets/pages-member-index.dbd4736b.js b/niucloud/public/wap/assets/pages-member-index.dbd4736b.js new file mode 100644 index 000000000..4f7b9a3b3 --- /dev/null +++ b/niucloud/public/wap/assets/pages-member-index.dbd4736b.js @@ -0,0 +1 @@ +import{d as a,r as e,u as l,a as t,c as o,o as r,b as s,s as p,e as i,g,f as d,U as u,h as n,i as m,w as f,j as c,k as b,v as _,l as v,n as x,m as j,p as y,q as h,t as k,x as w}from"./index-15eacd31.js";import{_ as M}from"./u-loading-page.925a187b.js";import{_ as S,a as D}from"./index.1798b78b.js";import{_ as R}from"./_plugin-vue_export-helper.1b428a4d.js";import"./u-loading-icon.ea8c9ece.js";import"./u-transition.a952a64b.js";import"./u-icon.f5369555.js";import"./tabbar.e67e4875.js";import"./u-image.b892f6c4.js";import"./u-safe-bottom.593b5cec.js";import"./article.0307362e.js";import"./app-link.vue_vue_type_script_setup_true_lang.18597de0.js";import"./u-avatar.ddef1faa.js";const I=R(a({__name:"index",setup(a){const R=e(!0),I=l(),B=e(0),C=t({pageMode:"diy",title:"",global:{},value:[]}),E=o((()=>"decorate"==I.mode?I:C));return r((a=>{I.mode=a.mode||"","decorate"==I.mode&&(R.value=!1)})),s((()=>{B.value++,p()})),i((()=>{"decorate"==I.mode?I.init():g({name:"DIY_MEMBER_INDEX"}).then((a=>{if(a.data.value){let e=a.data;C.pageMode=e.mode,C.title=e.title;let l=JSON.parse(e.value);C.global=l.global,C.value=l.value,C.value.forEach(((a,e)=>{a.pageStyle="",a.pageBgColor&&(a.pageStyle+="background-color:"+a.pageBgColor+";"),a.margin&&(a.pageStyle+="padding-top:"+2*a.margin.top+"rpx;",a.pageStyle+="padding-bottom:"+2*a.margin.bottom+"rpx;",a.pageStyle+="padding-right:"+2*a.margin.both+"rpx;",a.pageStyle+="padding-left:"+2*a.margin.both+"rpx;")})),d({title:C.title})}R.value=!1})),u().getMemberInfo()})),(a,e)=>{const l=y(h("u-loading-page"),M),t=y(h("diy-group"),S),o=k,r=y(h("fixed-group"),D);return n(),m(o,null,{default:f((()=>[c(l,{loading:R.value,loadingText:"","bg-color":"#f7f7f7"},null,8,["loading"]),b(c(o,null,{default:f((()=>["fixed"!=v(E).pageMode?(n(),m(o,{key:0,class:"diy-template-wrap bg-index",style:x({backgroundColor:v(E).global.pageBgColor,minHeight:"calc(100vh - 50px)",backgroundImage:v(E).global.bgUrl?"url("+v(w)(v(E).global.bgUrl)+")":""})},{default:f((()=>[c(t,{data:v(E),pullDownRefresh:B.value},null,8,["data","pullDownRefresh"])])),_:1},8,["style"])):j("",!0),"fixed"==v(E).pageMode?(n(),m(o,{key:1,class:"fixed-template-wrap"},{default:f((()=>[c(r,{data:v(E),pullDownRefresh:B.value},null,8,["data","pullDownRefresh"])])),_:1})):j("",!0)])),_:1},512),[[_,!R.value]])])),_:1})}}}),[["__scopeId","data-v-1c8f71ff"]]);export{I as default}; diff --git a/niucloud/public/wap/assets/pages-member-personal.d419619c.js b/niucloud/public/wap/assets/pages-member-personal.66c2c720.js similarity index 95% rename from niucloud/public/wap/assets/pages-member-personal.d419619c.js rename to niucloud/public/wap/assets/pages-member-personal.66c2c720.js index ba108a899..31ba17894 100644 --- a/niucloud/public/wap/assets/pages-member-personal.d419619c.js +++ b/niucloud/public/wap/assets/pages-member-personal.66c2c720.js @@ -1 +1 @@ -import{aM as e,aN as t,aO as i,x as a,y as n,z as r,a8 as l,m as s,p as o,h as u,i as c,w as d,j as m,M as h,O as f,N as p,n as y,C as g,D as _,E as x,G as $,B as v,F as b,a1 as C,H as k,q as w,aP as I,aQ as S,d as D,U as M,c as T,a as O,r as H,l as P,a5 as j,J as V,aR as B,aS as F,I as z,t as N,aT as A}from"./index-5bb08350.js";import{_ as L}from"./u-avatar.0ea3924d.js";import{_ as R}from"./u-icon.461524ba.js";import{_ as U}from"./u-loading-icon.2e89024b.js";import{_ as Y}from"./_plugin-vue_export-helper.1b428a4d.js";import{_ as W,a as Z,b as J}from"./u-action-sheet.acbdcbe5.js";import{_ as E}from"./u-button.364aa63d.js";import{_ as q}from"./app-link.vue_vue_type_script_setup_true_lang.b08a40da.js";import{_ as Q}from"./u-modal.64c62d33.js";import{_ as G}from"./u-popup.7d705de0.js";import"./u-line.0c46076e.js";import"./u-transition.021c4c1c.js";import"./u-safe-bottom.6578a4de.js";"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self&&self;function K(e,t){return["[object Object]","[object File]"].includes(Object.prototype.toString.call(e))?Object.keys(e).reduce(((i,a)=>(t.includes(a)||(i[a]=e[a]),i)),{}):{}}function X(e){return e.tempFiles.map((e=>({...K(e,["path"]),url:e.path,size:e.size,name:e.name,type:e.type})))}function ee({accept:a,multiple:n,capture:r,compressed:l,maxDuration:s,sizeType:o,camera:u,maxCount:c}){return new Promise(((d,m)=>{switch(a){case"image":i({count:n?Math.min(c,9):1,sourceType:r,sizeType:o,success:e=>d(function(e){return e.tempFiles.map((e=>({...K(e,["path"]),type:"image",url:e.path,thumb:e.path,size:e.size,name:e.name})))}(e)),fail:m});break;case"video":t({sourceType:r,compressed:l,maxDuration:s,camera:u,success:e=>d(function(e){return[{...K(e,["tempFilePath","thumbTempFilePath","errMsg"]),type:"video",url:e.tempFilePath,thumb:e.thumbTempFilePath,size:e.size,name:e.name}]}(e)),fail:m});break;case"file":e({count:n?c:1,type:a,success:e=>d(X(e)),fail:m});break;default:e({count:n?c:1,type:"all",success:e=>d(X(e)),fail:m})}}))}const te=Y({name:"u-upload",mixins:[n,r,{watch:{accept:{immediate:!0,handler(e){"all"!==e&&"media"!==e||uni.$u.error("只有微信小程序才支持把accept配置为all、media之一")}}}},{props:{accept:{type:String,default:a.upload.accept},capture:{type:[String,Array],default:a.upload.capture},compressed:{type:Boolean,default:a.upload.compressed},camera:{type:String,default:a.upload.camera},maxDuration:{type:Number,default:a.upload.maxDuration},uploadIcon:{type:String,default:a.upload.uploadIcon},uploadIconColor:{type:String,default:a.upload.uploadIconColor},useBeforeRead:{type:Boolean,default:a.upload.useBeforeRead},afterRead:{type:Function,default:null},beforeRead:{type:Function,default:null},previewFullImage:{type:Boolean,default:a.upload.previewFullImage},maxCount:{type:[String,Number],default:a.upload.maxCount},disabled:{type:Boolean,default:a.upload.disabled},imageMode:{type:String,default:a.upload.imageMode},name:{type:String,default:a.upload.name},sizeType:{type:Array,default:a.upload.sizeType},multiple:{type:Boolean,default:a.upload.multiple},deletable:{type:Boolean,default:a.upload.deletable},maxSize:{type:[String,Number],default:a.upload.maxSize},fileList:{type:Array,default:a.upload.fileList},uploadText:{type:String,default:a.upload.uploadText},width:{type:[String,Number],default:a.upload.width},height:{type:[String,Number],default:a.upload.height},previewImage:{type:Boolean,default:a.upload.previewImage}}}],data:()=>({lists:[],isInCount:!0}),watch:{fileList:{immediate:!0,handler(){this.formatFileList()},immediate:!0,deep:!0}},emits:["error","beforeRead","oversize","afterRead","delete","clickPreview"],methods:{formatFileList(){const{fileList:e=[],maxCount:t}=this,i=e.map((e=>Object.assign(Object.assign({},e),{isImage:"image"===this.accept||uni.$u.test.image(e.url||e.thumb),isVideo:"video"===this.accept||uni.$u.test.video(e.url||e.thumb),deletable:"boolean"==typeof e.deletable?e.deletable:this.deletable})));this.lists=i,this.isInCount=i.length{this.onBeforeRead(t?e:e[0])})).catch((e=>{this.$emit("error",e)}))},onBeforeRead(e){const{beforeRead:t,useBeforeRead:i}=this;let a=!0;uni.$u.test.func(t)&&(a=t(e,this.getDetail())),i&&(a=new Promise(((t,i)=>{this.$emit("beforeRead",Object.assign(Object.assign({file:e},this.getDetail()),{callback:e=>{e?t():i()}}))}))),a&&(uni.$u.test.promise(a)?a.then((t=>this.onAfterRead(t||e))):this.onAfterRead(e))},getDetail(e){return{name:this.name,index:null==e?this.fileList.length:e}},onAfterRead(e){const{maxSize:t,afterRead:i}=this;(Array.isArray(e)?e.some((e=>e.size>t)):e.size>t)?this.$emit("oversize",Object.assign({file:e},this.getDetail())):("function"==typeof i&&i(e,this.getDetail()),this.$emit("afterRead",Object.assign({file:e},this.getDetail())))},deleteItem(e){this.$emit("delete",Object.assign(Object.assign({},this.getDetail(e)),{file:this.fileList[e]}))},onPreviewImage(e){e.isImage&&this.previewFullImage&&l({urls:this.lists.filter((e=>"image"===this.accept||uni.$u.test.image(e.url||e.thumb))).map((e=>e.url||e.thumb)),current:e.url||e.thumb,fail(){uni.$u.toast("预览图片失败")}})},onPreviewVideo(e){if(!this.data.previewFullImage)return;const{index:t}=e.currentTarget.dataset,{lists:i}=this.data;wx.previewMedia({sources:i.filter((e=>isVideoFile(e))).map((e=>Object.assign(Object.assign({},e),{type:"video"}))),current:t,fail(){uni.$u.toast("预览视频失败")}})},onClickPreview(e){const{index:t}=e.currentTarget.dataset,i=this.data.lists[t];this.$emit("clickPreview",Object.assign(Object.assign({},i),this.getDetail(t)))}}},[["render",function(e,t,i,a,n,r){const l=C,I=s(o("u-icon"),R),S=k,D=w,M=s(o("u-loading-icon"),U);return u(),c(D,{class:"u-upload",style:y([e.$u.addStyle(e.customStyle)])},{default:d((()=>[m(D,{class:"u-upload__wrap"},{default:d((()=>[e.previewImage?(u(!0),h(f,{key:0},p(n.lists,((t,i)=>(u(),c(D,{class:"u-upload__wrap__preview",key:i},{default:d((()=>[t.isImage||t.type&&"image"===t.type?(u(),c(l,{key:0,src:t.thumb||t.url,mode:e.imageMode,class:"u-upload__wrap__preview__image",onClick:e=>r.onPreviewImage(t),style:y([{width:e.$u.addUnit(e.width),height:e.$u.addUnit(e.height)}])},null,8,["src","mode","onClick","style"])):(u(),c(D,{key:1,class:"u-upload__wrap__preview__other"},{default:d((()=>[m(I,{color:"#80CBF9",size:"26",name:t.isVideo||t.type&&"video"===t.type?"movie":"folder"},null,8,["name"]),m(S,{class:"u-upload__wrap__preview__other__text"},{default:d((()=>[g(_(t.isVideo||t.type&&"video"===t.type?"视频":"文件"),1)])),_:2},1024)])),_:2},1024)),"uploading"===t.status||"failed"===t.status?(u(),c(D,{key:2,class:"u-upload__status"},{default:d((()=>[m(D,{class:"u-upload__status__icon"},{default:d((()=>["failed"===t.status?(u(),c(I,{key:0,name:"close-circle",color:"#ffffff",size:"25"})):(u(),c(M,{key:1,size:"22",mode:"circle",color:"#ffffff"}))])),_:2},1024),t.message?(u(),c(S,{key:0,class:"u-upload__status__message"},{default:d((()=>[g(_(t.message),1)])),_:2},1024)):x("",!0)])),_:2},1024)):x("",!0),"uploading"!==t.status&&(e.deletable||t.deletable)?(u(),c(D,{key:3,class:"u-upload__deletable",onClick:$((e=>r.deleteItem(i)),["stop"])},{default:d((()=>[m(D,{class:"u-upload__deletable__icon"},{default:d((()=>[m(I,{name:"close",color:"#ffffff",size:"10"})])),_:1})])),_:2},1032,["onClick"])):x("",!0),"success"===t.status?(u(),c(D,{key:4,class:"u-upload__success"},{default:d((()=>[m(D,{class:"u-upload__success__icon"},{default:d((()=>[m(I,{name:"checkmark",color:"#ffffff",size:"12"})])),_:1})])),_:1})):x("",!0)])),_:2},1024)))),128)):x("",!0),n.isInCount?(u(),h(f,{key:1},[e.$slots.default||e.$slots.$default?(u(),c(D,{key:0,onClick:r.chooseFile},{default:d((()=>[v(e.$slots,"default",{},void 0,!0)])),_:3},8,["onClick"])):(u(),c(D,{key:1,class:b(["u-upload__button",[e.disabled&&"u-upload__button--disabled"]]),"hover-class":e.disabled?"":"u-upload__button--hover","hover-stay-time":"150",onClick:r.chooseFile,style:y([{width:e.$u.addUnit(e.width),height:e.$u.addUnit(e.height)}])},{default:d((()=>[m(I,{name:e.uploadIcon,size:"26",color:e.uploadIconColor},null,8,["name","color"]),e.uploadText?(u(),c(S,{key:0,class:"u-upload__button__text"},{default:d((()=>[g(_(e.uploadText),1)])),_:1})):x("",!0)])),_:1},8,["hover-class","onClick","class","style"]))],64)):x("",!0)])),_:3})])),_:3},8,["style"])}],["__scopeId","data-v-9283198f"]]);const ie=Y({name:"u-toolbar",mixins:[n,r,{props:{show:{type:Boolean,default:a.toolbar.show},cancelText:{type:String,default:a.toolbar.cancelText},confirmText:{type:String,default:a.toolbar.confirmText},cancelColor:{type:String,default:a.toolbar.cancelColor},confirmColor:{type:String,default:a.toolbar.confirmColor},title:{type:String,default:a.toolbar.title}}}],methods:{cancel(){this.$emit("cancel")},confirm(){this.$emit("confirm")}}},[["render",function(e,t,i,a,n,r){const l=k,s=w;return e.show?(u(),c(s,{key:0,class:"u-toolbar",onTouchmove:$(e.noop,["stop","prevent"])},{default:d((()=>[m(s,{class:"u-toolbar__cancel__wrapper","hover-class":"u-hover-class"},{default:d((()=>[m(l,{class:"u-toolbar__wrapper__cancel",onClick:r.cancel,style:y({color:e.cancelColor})},{default:d((()=>[g(_(e.cancelText),1)])),_:1},8,["onClick","style"])])),_:1}),e.title?(u(),c(l,{key:0,class:"u-toolbar__title u-line-1"},{default:d((()=>[g(_(e.title),1)])),_:1})):x("",!0),m(s,{class:"u-toolbar__confirm__wrapper","hover-class":"u-hover-class"},{default:d((()=>[m(l,{class:"u-toolbar__wrapper__confirm",onClick:r.confirm,style:y({color:e.confirmColor})},{default:d((()=>[g(_(e.confirmText),1)])),_:1},8,["onClick","style"])])),_:1})])),_:1},8,["onTouchmove"])):x("",!0)}],["__scopeId","data-v-88cf1536"]]);const ae=Y({name:"u-picker",mixins:[n,r,{props:{show:{type:Boolean,default:a.picker.show},showToolbar:{type:Boolean,default:a.picker.showToolbar},title:{type:String,default:a.picker.title},columns:{type:Array,default:a.picker.columns},loading:{type:Boolean,default:a.picker.loading},itemHeight:{type:[String,Number],default:a.picker.itemHeight},cancelText:{type:String,default:a.picker.cancelText},confirmText:{type:String,default:a.picker.confirmText},cancelColor:{type:String,default:a.picker.cancelColor},confirmColor:{type:String,default:a.picker.confirmColor},visibleItemCount:{type:[String,Number],default:a.picker.visibleItemCount},keyName:{type:String,default:a.picker.keyName},closeOnClickOverlay:{type:Boolean,default:a.picker.closeOnClickOverlay},defaultIndex:{type:Array,default:a.picker.defaultIndex},immediateChange:{type:Boolean,default:a.picker.immediateChange}}}],data:()=>({lastIndex:[],innerIndex:[],innerColumns:[],columnIndex:0}),watch:{defaultIndex:{immediate:!0,handler(e){this.setIndexs(e,!0)}},columns:{immediate:!0,deep:!0,handler(e){this.setColumns(e)}}},emits:["close","cancel","confirm","change"],methods:{getItemText(e){return uni.$u.test.object(e)?e[this.keyName]:e},closeHandler(){this.closeOnClickOverlay&&this.$emit("close")},cancel(){this.$emit("cancel")},confirm(){this.$emit("confirm",{indexs:this.innerIndex,value:this.innerColumns.map(((e,t)=>e[this.innerIndex[t]])),values:this.innerColumns})},changeHandler(e){const{value:t}=e.detail;let i=0,a=0;for(let r=0;re[t[i]])),index:i,indexs:t,values:n,columnIndex:a})},setIndexs(e,t){this.innerIndex=uni.$u.deepClone(e),t&&this.setLastIndex(e)},setLastIndex(e){this.lastIndex=uni.$u.deepClone(e)},setColumnValues(e,t){this.innerColumns.splice(e,1,t);let i=uni.$u.deepClone(this.innerIndex);for(let a=0;athis.columnIndex&&(i[a]=0);this.setIndexs(i)},getColumnValues(e){return(async()=>{await uni.$u.sleep()})(),this.innerColumns[e]},setColumns(e){console.log(e),this.innerColumns=uni.$u.deepClone(e),0===this.innerIndex.length&&(this.innerIndex=new Array(e.length).fill(0))},getIndexs(){return this.innerIndex},getValues(){return(async()=>{await uni.$u.sleep()})(),this.innerColumns.map(((e,t)=>e[this.innerIndex[t]]))}}},[["render",function(e,t,i,a,n,r){const l=s(o("u-toolbar"),ie),$=k,v=I,b=S,C=s(o("u-loading-icon"),U),D=w,M=s(o("u-popup"),G);return u(),c(M,{show:e.show,onClose:r.closeHandler},{default:d((()=>[m(D,{class:"u-picker"},{default:d((()=>[e.showToolbar?(u(),c(l,{key:0,cancelColor:e.cancelColor,confirmColor:e.confirmColor,cancelText:e.cancelText,confirmText:e.confirmText,title:e.title,onCancel:r.cancel,onConfirm:r.confirm},null,8,["cancelColor","confirmColor","cancelText","confirmText","title","onCancel","onConfirm"])):x("",!0),m(b,{class:"u-picker__view",indicatorStyle:`height: ${e.$u.addUnit(e.itemHeight)}`,value:n.innerIndex,immediateChange:e.immediateChange,style:y({height:`${e.$u.addUnit(e.visibleItemCount*e.itemHeight)}`}),onChange:r.changeHandler},{default:d((()=>[(u(!0),h(f,null,p(n.innerColumns,((t,i)=>(u(),c(v,{key:i,class:"u-picker__view__column"},{default:d((()=>[e.$u.test.array(t)?(u(!0),h(f,{key:0},p(t,((t,a)=>(u(),c($,{class:"u-picker__view__column__item u-line-1",key:a,style:y({height:e.$u.addUnit(e.itemHeight),lineHeight:e.$u.addUnit(e.itemHeight),fontWeight:a===n.innerIndex[i]?"bold":"normal"})},{default:d((()=>[g(_(r.getItemText(t)),1)])),_:2},1032,["style"])))),128)):x("",!0)])),_:2},1024)))),128))])),_:1},8,["indicatorStyle","value","immediateChange","style","onChange"]),e.loading?(u(),c(D,{key:1,class:"u-picker--loading"},{default:d((()=>[m(C,{mode:"circle"})])),_:1})):x("",!0)])),_:1})])),_:1},8,["show","onClose"])}],["__scopeId","data-v-f5929e2b"]]),ne={props:{show:{type:Boolean,default:a.datetimePicker.show},showToolbar:{type:Boolean,default:a.datetimePicker.showToolbar},modelValue:{type:[String,Number],default:a.datetimePicker.value},title:{type:String,default:a.datetimePicker.title},mode:{type:String,default:a.datetimePicker.mode},maxDate:{type:Number,default:a.datetimePicker.maxDate},minDate:{type:Number,default:a.datetimePicker.minDate},minHour:{type:Number,default:a.datetimePicker.minHour},maxHour:{type:Number,default:a.datetimePicker.maxHour},minMinute:{type:Number,default:a.datetimePicker.minMinute},maxMinute:{type:Number,default:a.datetimePicker.maxMinute},filter:{type:[Function,null],default:a.datetimePicker.filter},formatter:{type:[Function,null],default:a.datetimePicker.formatter},loading:{type:Boolean,default:a.datetimePicker.loading},itemHeight:{type:[String,Number],default:a.datetimePicker.itemHeight},cancelText:{type:String,default:a.datetimePicker.cancelText},confirmText:{type:String,default:a.datetimePicker.confirmText},cancelColor:{type:String,default:a.datetimePicker.cancelColor},confirmColor:{type:String,default:a.datetimePicker.confirmColor},visibleItemCount:{type:[String,Number],default:a.datetimePicker.visibleItemCount},closeOnClickOverlay:{type:Boolean,default:a.datetimePicker.closeOnClickOverlay},defaultIndex:{type:Array,default:a.datetimePicker.defaultIndex}}};var re={};({get exports(){return re},set exports(e){re=e}}).exports=function(){var e=1e3,t=6e4,i=36e5,a="millisecond",n="second",r="minute",l="hour",s="day",o="week",u="month",c="quarter",d="year",m="date",h="Invalid Date",f=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,p=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,y={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var t=["th","st","nd","rd"],i=e%100;return"["+e+(t[(i-20)%10]||t[i]||t[0])+"]"}},g=function(e,t,i){var a=String(e);return!a||a.length>=t?e:""+Array(t+1-a.length).join(i)+e},_={s:g,z:function(e){var t=-e.utcOffset(),i=Math.abs(t),a=Math.floor(i/60),n=i%60;return(t<=0?"+":"-")+g(a,2,"0")+":"+g(n,2,"0")},m:function e(t,i){if(t.date()1)return e(l[0])}else{var s=t.name;$[s]=t,n=s}return!a&&n&&(x=n),n||!a&&x},C=function(e,t){if(v(e))return e.clone();var i="object"==typeof t?t:{};return i.date=e,i.args=arguments,new w(i)},k=_;k.l=b,k.i=v,k.w=function(e,t){return C(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var w=function(){function y(e){this.$L=b(e.locale,null,!0),this.parse(e)}var g=y.prototype;return g.parse=function(e){this.$d=function(e){var t=e.date,i=e.utc;if(null===t)return new Date(NaN);if(k.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var a=t.match(f);if(a){var n=a[2]-1||0,r=(a[7]||"0").substring(0,3);return i?new Date(Date.UTC(a[1],n,a[3]||1,a[4]||0,a[5]||0,a[6]||0,r)):new Date(a[1],n,a[3]||1,a[4]||0,a[5]||0,a[6]||0,r)}}return new Date(t)}(e),this.$x=e.x||{},this.init()},g.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},g.$utils=function(){return k},g.isValid=function(){return!(this.$d.toString()===h)},g.isSame=function(e,t){var i=C(e);return this.startOf(t)<=i&&i<=this.endOf(t)},g.isAfter=function(e,t){return C(e)({columns:[],innerDefaultIndex:[],innerFormatter:(e,t)=>t}),watch:{show(e,t){e&&this.updateColumnValue(this.innerValue)},propsChange(){this.init()}},computed:{propsChange(){return[this.mode,this.maxDate,this.minDate,this.minHour,this.maxHour,this.minMinute,this.maxMinute,this.filter]}},mounted(){this.init()},emits:["close","cancel","confirm","change"],methods:{init(){this.innerValue=this.correctValue(this.modelValue),this.updateColumnValue(this.innerValue)},setFormatter(e){this.innerFormatter=e},close(){this.closeOnClickOverlay&&this.$emit("close")},cancel(){this.$emit("cancel")},confirm(){this.$emit("confirm",{value:this.innerValue,mode:this.mode}),this.$emit("update:modelValue",this.innerValue)},intercept(e,t){let i=e.match(/\d+/g);return i.length>1?(uni.$u.error("请勿在过滤或格式化函数时添加数字"),0):t&&4==i[0].length?i[0]:i[0].length>2?(uni.$u.error("请勿在过滤或格式化函数时添加数字"),0):i[0]},change(e){const{indexs:t,values:i}=e;let a="";if("time"===this.mode)a=`${this.intercept(i[0][t[0]])}:${this.intercept(i[1][t[1]])}`;else{const e=parseInt(this.intercept(i[0][t[0]],"year")),n=parseInt(this.intercept(i[1][t[1]]));let r=parseInt(i[2]?this.intercept(i[2][t[2]]):1),l=0,s=0;const o=le(`${e}-${n}`).daysInMonth();"year-month"===this.mode&&(r=1),r=Math.min(o,r),"datetime"===this.mode&&(l=parseInt(this.intercept(i[3][t[3]])),s=parseInt(this.intercept(i[4][t[4]]))),a=Number(new Date(e,n-1,r,l,s))}a=this.correctValue(a),this.innerValue=a,this.updateColumnValue(a),this.$emit("change",{value:a,picker:this.$refs.picker,mode:this.mode})},updateColumnValue(e){this.innerValue=e,this.updateColumns(),this.updateIndexs(e)},updateIndexs(e){let t=[];const i=this.formatter||this.innerFormatter,a=uni.$u.padZero;if("time"===this.mode){const a=e.split(":");t=[i("hour",a[0]),i("minute",a[1])]}else t=[i("year",`${le(e).year()}`),i("month",a(le(e).month()+1))],"date"===this.mode&&t.push(i("day",a(le(e).date()))),"datetime"===this.mode&&t.push(i("day",a(le(e).date())),i("hour",a(le(e).hour())),i("minute",a(le(e).minute())));const n=this.columns.map(((e,i)=>Math.max(0,e.findIndex((e=>e===t[i])))));this.innerDefaultIndex=n},updateColumns(){const e=this.formatter||this.innerFormatter,t=this.getOriginColumns().map((t=>t.values.map((i=>e(t.type,i)))));this.columns=t},getOriginColumns(){return this.getRanges().map((({type:e,range:t})=>{let i=function(e,t){let i=-1;const a=Array(e<0?0:e);for(;++i{let a=t[0]+i;return a="year"===e?`${a}`:uni.$u.padZero(a),a}));return this.filter&&(i=this.filter(e,i)),{type:e,values:i}}))},generateArray:(e,t)=>Array.from(new Array(t+1).keys()).slice(e),correctValue(e){const t="time"!==this.mode;if(t&&!uni.$u.test.date(e)?e=this.minDate:t||e||(e=`${uni.$u.padZero(this.minHour)}:${uni.$u.padZero(this.minMinute)}`),t)return e=le(e).isBefore(le(this.minDate))?this.minDate:e,e=le(e).isAfter(le(this.maxDate))?this.maxDate:e;{if(-1===String(e).indexOf(":"))return uni.$u.error("时间错误,请传递如12:24的格式");let[t,i]=e.split(":");return t=uni.$u.padZero(uni.$u.range(this.minHour,this.maxHour,Number(t))),i=uni.$u.padZero(uni.$u.range(this.minMinute,this.maxMinute,Number(i))),`${t}:${i}`}},getRanges(){if("time"===this.mode)return[{type:"hour",range:[this.minHour,this.maxHour]},{type:"minute",range:[this.minMinute,this.maxMinute]}];const{maxYear:e,maxDate:t,maxMonth:i,maxHour:a,maxMinute:n}=this.getBoundary("max",this.innerValue),{minYear:r,minDate:l,minMonth:s,minHour:o,minMinute:u}=this.getBoundary("min",this.innerValue),c=[{type:"year",range:[r,e]},{type:"month",range:[s,i]},{type:"day",range:[l,t]},{type:"hour",range:[o,a]},{type:"minute",range:[u,n]}];return"date"===this.mode&&c.splice(3,2),"year-month"===this.mode&&c.splice(2,3),c},getBoundary(e,t){const i=new Date(t),a=new Date(this[`${e}Date`]),n=le(a).year();let r=1,l=1,s=0,o=0;return"max"===e&&(r=12,l=le(i).daysInMonth(),s=23,o=59),le(i).year()===n&&(r=le(a).month()+1,le(i).month()+1===r&&(l=le(a).date(),le(i).date()===l&&(s=le(a).hour(),le(i).hour()===s&&(o=le(a).minute())))),{[`${e}Year`]:n,[`${e}Month`]:r,[`${e}Date`]:l,[`${e}Hour`]:s,[`${e}Minute`]:o}}}},[["render",function(e,t,i,a,n,r){const l=s(o("u-picker"),ae);return u(),c(l,{ref:"picker",show:e.show,closeOnClickOverlay:e.closeOnClickOverlay,columns:n.columns,title:e.title,itemHeight:e.itemHeight,showToolbar:e.showToolbar,visibleItemCount:e.visibleItemCount,defaultIndex:n.innerDefaultIndex,cancelText:e.cancelText,confirmText:e.confirmText,cancelColor:e.cancelColor,confirmColor:e.confirmColor,onClose:r.close,onCancel:r.cancel,onConfirm:r.confirm,onChange:r.change},null,8,["show","closeOnClickOverlay","columns","title","itemHeight","showToolbar","visibleItemCount","defaultIndex","cancelText","confirmText","cancelColor","confirmColor","onClose","onCancel","onConfirm","onChange"])}],["__scopeId","data-v-401e9cf7"]]),oe=Y(D({__name:"personal",setup(e){const t=M(),i=T((()=>t.info)),a=O({modal:!1,value:i.nickname||""}),n=e=>{a.value=e.detail.value},r=()=>{uni.$u.test.isEmpty(a.value)?j({title:V("nicknamePlaceholder"),icon:"none"}):B({field:"nickname",value:a.value}).then((e=>{t.info.nickname=a.value,a.modal=!1}))},l=H(!1),h=T((()=>[{name:V("man"),value:1},{name:V("woman"),value:2}])),f=e=>{B({field:"sex",value:e.value}).then((i=>{t.info.sex_name=e.name}))},p=e=>{F({filePath:e.file.url,name:"file"}).then((e=>{B({field:"headimg",value:e.data.url}).then((()=>{t.info.headimg=e.data.url}))})).catch((()=>{}))},y=H(!1),$=e=>{B({field:"birthday",value:uni.$u.date(e.value,"yyyy-mm-dd")}).then((()=>{t.info.birthday=uni.$u.date(e.value,"yyyy-mm-dd"),y.value=!1}))};return(e,t)=>{const v=s(o("u-avatar"),L),b=w,C=s(o("u-upload"),te),k=s(o("u-cell"),W),I=s(o("u-button"),E),S=s(o("app-link"),q),D=s(o("u-cell-group"),Z),M=z,T=s(o("u-modal"),Q),O=s(o("u-action-sheet"),J),H=s(o("u-datetime-picker"),se);return P(i)?(u(),c(b,{key:0,class:"w-full h-screen bg-page"},{default:d((()=>[m(b,{class:"flex flex-col items-center pt-[30rpx]"},{default:d((()=>[m(C,{onAfterRead:p,maxCount:1},{default:d((()=>[m(v,{src:P(N)(P(i).headimg),size:"60",leftIcon:"none"},null,8,["src"]),m(b,{class:"text-primary text-sm mt-[10rpx]"},{default:d((()=>[g(_(P(V)("updateHeadimg")),1)])),_:1})])),_:1})])),_:1}),m(b,{class:"m-[30rpx] bg-white rounded-md overflow-hidden px-[20rpx] py-[10rpx]"},{default:d((()=>[m(D,{border:!1},{default:d((()=>[m(k,{title:P(V)("nickname"),"is-link":!0,value:P(i).nickname,onClick:t[0]||(t[0]=e=>a.modal=!0)},null,8,["title","value"]),m(k,{title:P(V)("sex"),"is-link":!0,value:P(i).sex_name||P(V)("unknown"),onClick:t[1]||(t[1]=e=>l.value=!0)},null,8,["title","value"]),m(k,{title:P(V)("mobile")},{value:d((()=>[P(i).mobile?(u(),c(b,{key:0},{default:d((()=>[g(_(P(A)(P(i).mobile)),1)])),_:1})):x("",!0),m(b,null,{default:d((()=>[m(S,{url:"/pages/auth/bind"},{default:d((()=>[m(I,{type:"primary",plain:!0,text:P(V)("bindMobile"),shape:"circle",size:"mini"},null,8,["text"])])),_:1})])),_:1})])),_:1},8,["title"]),m(k,{title:P(V)("birthday"),"is-link":!0,value:P(i).birthday||P(V)("unknown"),onClick:t[2]||(t[2]=e=>y.value=!0)},null,8,["title","value"])])),_:1})])),_:1}),m(T,{show:a.modal,closeOnClickOverlay:!0,onClose:t[4]||(t[4]=e=>a.modal=!1),"show-cancel-button":!0,onCancel:t[5]||(t[5]=e=>a.modal=!1),title:P(V)("updateNickname")},{confirmButton:d((()=>[m(b,{class:"mt-[10rpx]"},{default:d((()=>[m(I,{type:"primary",text:P(V)("confirm"),shape:"circle",onClick:r},null,8,["text"])])),_:1})])),default:d((()=>[m(b,{class:"w-full mt-[20rpx] border-0 border-b border-gray-300 border-solid py-[20rpx]"},{default:d((()=>[m(M,{type:"nickname",modelValue:a.value,"onUpdate:modelValue":t[3]||(t[3]=e=>a.value=e),placeholder:P(V)("nicknamePlaceholder"),onBlur:n},null,8,["modelValue","placeholder"])])),_:1})])),_:1},8,["show","title"]),m(O,{actions:P(h),show:l.value,closeOnClickOverlay:!0,safeAreaInsetBottom:!0,onClose:t[6]||(t[6]=e=>l.value=!1),onSelect:f},null,8,["actions","show"]),m(H,{show:y.value,mode:"date","confirm-text":P(V)("confirm"),maxDate:(new Date).valueOf(),minDate:0,"cancel-text":P(V)("cancel"),onCancel:t[7]||(t[7]=e=>y.value=!1),onConfirm:$},null,8,["show","confirm-text","maxDate","cancel-text"])])),_:1})):x("",!0)}}}),[["__scopeId","data-v-74d0e486"]]);export{oe as default}; +import{aO as e,aP as t,aQ as i,y as a,z as n,A as r,a8 as l,p as s,q as o,h as u,i as c,w as d,j as m,M as h,O as f,N as p,n as y,D as g,E as _,m as x,G as $,C as v,F as b,a1 as C,H as k,t as w,aR as I,aS as S,d as D,U as M,c as T,a as O,r as H,l as P,a5 as j,J as V,aT as F,aU as z,I as B,x as N,aV as A}from"./index-15eacd31.js";import{_ as L}from"./u-avatar.ddef1faa.js";import{_ as R}from"./u-icon.f5369555.js";import{_ as U}from"./u-loading-icon.ea8c9ece.js";import{_ as Y}from"./_plugin-vue_export-helper.1b428a4d.js";import{_ as W,a as Z,b as J}from"./u-action-sheet.1e4dbfee.js";import{_ as E}from"./u-button.5c85e6cc.js";import{_ as q}from"./app-link.vue_vue_type_script_setup_true_lang.18597de0.js";import{_ as Q}from"./u-modal.755a4b61.js";import{_ as G}from"./u-popup.8a491625.js";import"./u-line.bb8d1497.js";import"./u-transition.a952a64b.js";import"./u-safe-bottom.593b5cec.js";"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self&&self;function K(e,t){return["[object Object]","[object File]"].includes(Object.prototype.toString.call(e))?Object.keys(e).reduce(((i,a)=>(t.includes(a)||(i[a]=e[a]),i)),{}):{}}function X(e){return e.tempFiles.map((e=>({...K(e,["path"]),url:e.path,size:e.size,name:e.name,type:e.type})))}function ee({accept:a,multiple:n,capture:r,compressed:l,maxDuration:s,sizeType:o,camera:u,maxCount:c}){return new Promise(((d,m)=>{switch(a){case"image":i({count:n?Math.min(c,9):1,sourceType:r,sizeType:o,success:e=>d(function(e){return e.tempFiles.map((e=>({...K(e,["path"]),type:"image",url:e.path,thumb:e.path,size:e.size,name:e.name})))}(e)),fail:m});break;case"video":t({sourceType:r,compressed:l,maxDuration:s,camera:u,success:e=>d(function(e){return[{...K(e,["tempFilePath","thumbTempFilePath","errMsg"]),type:"video",url:e.tempFilePath,thumb:e.thumbTempFilePath,size:e.size,name:e.name}]}(e)),fail:m});break;case"file":e({count:n?c:1,type:a,success:e=>d(X(e)),fail:m});break;default:e({count:n?c:1,type:"all",success:e=>d(X(e)),fail:m})}}))}const te=Y({name:"u-upload",mixins:[n,r,{watch:{accept:{immediate:!0,handler(e){"all"!==e&&"media"!==e||uni.$u.error("只有微信小程序才支持把accept配置为all、media之一")}}}},{props:{accept:{type:String,default:a.upload.accept},capture:{type:[String,Array],default:a.upload.capture},compressed:{type:Boolean,default:a.upload.compressed},camera:{type:String,default:a.upload.camera},maxDuration:{type:Number,default:a.upload.maxDuration},uploadIcon:{type:String,default:a.upload.uploadIcon},uploadIconColor:{type:String,default:a.upload.uploadIconColor},useBeforeRead:{type:Boolean,default:a.upload.useBeforeRead},afterRead:{type:Function,default:null},beforeRead:{type:Function,default:null},previewFullImage:{type:Boolean,default:a.upload.previewFullImage},maxCount:{type:[String,Number],default:a.upload.maxCount},disabled:{type:Boolean,default:a.upload.disabled},imageMode:{type:String,default:a.upload.imageMode},name:{type:String,default:a.upload.name},sizeType:{type:Array,default:a.upload.sizeType},multiple:{type:Boolean,default:a.upload.multiple},deletable:{type:Boolean,default:a.upload.deletable},maxSize:{type:[String,Number],default:a.upload.maxSize},fileList:{type:Array,default:a.upload.fileList},uploadText:{type:String,default:a.upload.uploadText},width:{type:[String,Number],default:a.upload.width},height:{type:[String,Number],default:a.upload.height},previewImage:{type:Boolean,default:a.upload.previewImage}}}],data:()=>({lists:[],isInCount:!0}),watch:{fileList:{immediate:!0,handler(){this.formatFileList()},immediate:!0,deep:!0}},emits:["error","beforeRead","oversize","afterRead","delete","clickPreview"],methods:{formatFileList(){const{fileList:e=[],maxCount:t}=this,i=e.map((e=>Object.assign(Object.assign({},e),{isImage:"image"===this.accept||uni.$u.test.image(e.url||e.thumb),isVideo:"video"===this.accept||uni.$u.test.video(e.url||e.thumb),deletable:"boolean"==typeof e.deletable?e.deletable:this.deletable})));this.lists=i,this.isInCount=i.length{this.onBeforeRead(t?e:e[0])})).catch((e=>{this.$emit("error",e)}))},onBeforeRead(e){const{beforeRead:t,useBeforeRead:i}=this;let a=!0;uni.$u.test.func(t)&&(a=t(e,this.getDetail())),i&&(a=new Promise(((t,i)=>{this.$emit("beforeRead",Object.assign(Object.assign({file:e},this.getDetail()),{callback:e=>{e?t():i()}}))}))),a&&(uni.$u.test.promise(a)?a.then((t=>this.onAfterRead(t||e))):this.onAfterRead(e))},getDetail(e){return{name:this.name,index:null==e?this.fileList.length:e}},onAfterRead(e){const{maxSize:t,afterRead:i}=this;(Array.isArray(e)?e.some((e=>e.size>t)):e.size>t)?this.$emit("oversize",Object.assign({file:e},this.getDetail())):("function"==typeof i&&i(e,this.getDetail()),this.$emit("afterRead",Object.assign({file:e},this.getDetail())))},deleteItem(e){this.$emit("delete",Object.assign(Object.assign({},this.getDetail(e)),{file:this.fileList[e]}))},onPreviewImage(e){e.isImage&&this.previewFullImage&&l({urls:this.lists.filter((e=>"image"===this.accept||uni.$u.test.image(e.url||e.thumb))).map((e=>e.url||e.thumb)),current:e.url||e.thumb,fail(){uni.$u.toast("预览图片失败")}})},onPreviewVideo(e){if(!this.data.previewFullImage)return;const{index:t}=e.currentTarget.dataset,{lists:i}=this.data;wx.previewMedia({sources:i.filter((e=>isVideoFile(e))).map((e=>Object.assign(Object.assign({},e),{type:"video"}))),current:t,fail(){uni.$u.toast("预览视频失败")}})},onClickPreview(e){const{index:t}=e.currentTarget.dataset,i=this.data.lists[t];this.$emit("clickPreview",Object.assign(Object.assign({},i),this.getDetail(t)))}}},[["render",function(e,t,i,a,n,r){const l=C,I=s(o("u-icon"),R),S=k,D=w,M=s(o("u-loading-icon"),U);return u(),c(D,{class:"u-upload",style:y([e.$u.addStyle(e.customStyle)])},{default:d((()=>[m(D,{class:"u-upload__wrap"},{default:d((()=>[e.previewImage?(u(!0),h(f,{key:0},p(n.lists,((t,i)=>(u(),c(D,{class:"u-upload__wrap__preview",key:i},{default:d((()=>[t.isImage||t.type&&"image"===t.type?(u(),c(l,{key:0,src:t.thumb||t.url,mode:e.imageMode,class:"u-upload__wrap__preview__image",onClick:e=>r.onPreviewImage(t),style:y([{width:e.$u.addUnit(e.width),height:e.$u.addUnit(e.height)}])},null,8,["src","mode","onClick","style"])):(u(),c(D,{key:1,class:"u-upload__wrap__preview__other"},{default:d((()=>[m(I,{color:"#80CBF9",size:"26",name:t.isVideo||t.type&&"video"===t.type?"movie":"folder"},null,8,["name"]),m(S,{class:"u-upload__wrap__preview__other__text"},{default:d((()=>[g(_(t.isVideo||t.type&&"video"===t.type?"视频":"文件"),1)])),_:2},1024)])),_:2},1024)),"uploading"===t.status||"failed"===t.status?(u(),c(D,{key:2,class:"u-upload__status"},{default:d((()=>[m(D,{class:"u-upload__status__icon"},{default:d((()=>["failed"===t.status?(u(),c(I,{key:0,name:"close-circle",color:"#ffffff",size:"25"})):(u(),c(M,{key:1,size:"22",mode:"circle",color:"#ffffff"}))])),_:2},1024),t.message?(u(),c(S,{key:0,class:"u-upload__status__message"},{default:d((()=>[g(_(t.message),1)])),_:2},1024)):x("",!0)])),_:2},1024)):x("",!0),"uploading"!==t.status&&(e.deletable||t.deletable)?(u(),c(D,{key:3,class:"u-upload__deletable",onClick:$((e=>r.deleteItem(i)),["stop"])},{default:d((()=>[m(D,{class:"u-upload__deletable__icon"},{default:d((()=>[m(I,{name:"close",color:"#ffffff",size:"10"})])),_:1})])),_:2},1032,["onClick"])):x("",!0),"success"===t.status?(u(),c(D,{key:4,class:"u-upload__success"},{default:d((()=>[m(D,{class:"u-upload__success__icon"},{default:d((()=>[m(I,{name:"checkmark",color:"#ffffff",size:"12"})])),_:1})])),_:1})):x("",!0)])),_:2},1024)))),128)):x("",!0),n.isInCount?(u(),h(f,{key:1},[e.$slots.default||e.$slots.$default?(u(),c(D,{key:0,onClick:r.chooseFile},{default:d((()=>[v(e.$slots,"default",{},void 0,!0)])),_:3},8,["onClick"])):(u(),c(D,{key:1,class:b(["u-upload__button",[e.disabled&&"u-upload__button--disabled"]]),"hover-class":e.disabled?"":"u-upload__button--hover","hover-stay-time":"150",onClick:r.chooseFile,style:y([{width:e.$u.addUnit(e.width),height:e.$u.addUnit(e.height)}])},{default:d((()=>[m(I,{name:e.uploadIcon,size:"26",color:e.uploadIconColor},null,8,["name","color"]),e.uploadText?(u(),c(S,{key:0,class:"u-upload__button__text"},{default:d((()=>[g(_(e.uploadText),1)])),_:1})):x("",!0)])),_:1},8,["hover-class","onClick","class","style"]))],64)):x("",!0)])),_:3})])),_:3},8,["style"])}],["__scopeId","data-v-9283198f"]]);const ie=Y({name:"u-toolbar",mixins:[n,r,{props:{show:{type:Boolean,default:a.toolbar.show},cancelText:{type:String,default:a.toolbar.cancelText},confirmText:{type:String,default:a.toolbar.confirmText},cancelColor:{type:String,default:a.toolbar.cancelColor},confirmColor:{type:String,default:a.toolbar.confirmColor},title:{type:String,default:a.toolbar.title}}}],methods:{cancel(){this.$emit("cancel")},confirm(){this.$emit("confirm")}}},[["render",function(e,t,i,a,n,r){const l=k,s=w;return e.show?(u(),c(s,{key:0,class:"u-toolbar",onTouchmove:$(e.noop,["stop","prevent"])},{default:d((()=>[m(s,{class:"u-toolbar__cancel__wrapper","hover-class":"u-hover-class"},{default:d((()=>[m(l,{class:"u-toolbar__wrapper__cancel",onClick:r.cancel,style:y({color:e.cancelColor})},{default:d((()=>[g(_(e.cancelText),1)])),_:1},8,["onClick","style"])])),_:1}),e.title?(u(),c(l,{key:0,class:"u-toolbar__title u-line-1"},{default:d((()=>[g(_(e.title),1)])),_:1})):x("",!0),m(s,{class:"u-toolbar__confirm__wrapper","hover-class":"u-hover-class"},{default:d((()=>[m(l,{class:"u-toolbar__wrapper__confirm",onClick:r.confirm,style:y({color:e.confirmColor})},{default:d((()=>[g(_(e.confirmText),1)])),_:1},8,["onClick","style"])])),_:1})])),_:1},8,["onTouchmove"])):x("",!0)}],["__scopeId","data-v-88cf1536"]]);const ae=Y({name:"u-picker",mixins:[n,r,{props:{show:{type:Boolean,default:a.picker.show},showToolbar:{type:Boolean,default:a.picker.showToolbar},title:{type:String,default:a.picker.title},columns:{type:Array,default:a.picker.columns},loading:{type:Boolean,default:a.picker.loading},itemHeight:{type:[String,Number],default:a.picker.itemHeight},cancelText:{type:String,default:a.picker.cancelText},confirmText:{type:String,default:a.picker.confirmText},cancelColor:{type:String,default:a.picker.cancelColor},confirmColor:{type:String,default:a.picker.confirmColor},visibleItemCount:{type:[String,Number],default:a.picker.visibleItemCount},keyName:{type:String,default:a.picker.keyName},closeOnClickOverlay:{type:Boolean,default:a.picker.closeOnClickOverlay},defaultIndex:{type:Array,default:a.picker.defaultIndex},immediateChange:{type:Boolean,default:a.picker.immediateChange}}}],data:()=>({lastIndex:[],innerIndex:[],innerColumns:[],columnIndex:0}),watch:{defaultIndex:{immediate:!0,handler(e){this.setIndexs(e,!0)}},columns:{immediate:!0,deep:!0,handler(e){this.setColumns(e)}}},emits:["close","cancel","confirm","change"],methods:{getItemText(e){return uni.$u.test.object(e)?e[this.keyName]:e},closeHandler(){this.closeOnClickOverlay&&this.$emit("close")},cancel(){this.$emit("cancel")},confirm(){this.$emit("confirm",{indexs:this.innerIndex,value:this.innerColumns.map(((e,t)=>e[this.innerIndex[t]])),values:this.innerColumns})},changeHandler(e){const{value:t}=e.detail;let i=0,a=0;for(let r=0;re[t[i]])),index:i,indexs:t,values:n,columnIndex:a})},setIndexs(e,t){this.innerIndex=uni.$u.deepClone(e),t&&this.setLastIndex(e)},setLastIndex(e){this.lastIndex=uni.$u.deepClone(e)},setColumnValues(e,t){this.innerColumns.splice(e,1,t);let i=uni.$u.deepClone(this.innerIndex);for(let a=0;athis.columnIndex&&(i[a]=0);this.setIndexs(i)},getColumnValues(e){return(async()=>{await uni.$u.sleep()})(),this.innerColumns[e]},setColumns(e){console.log(e),this.innerColumns=uni.$u.deepClone(e),0===this.innerIndex.length&&(this.innerIndex=new Array(e.length).fill(0))},getIndexs(){return this.innerIndex},getValues(){return(async()=>{await uni.$u.sleep()})(),this.innerColumns.map(((e,t)=>e[this.innerIndex[t]]))}}},[["render",function(e,t,i,a,n,r){const l=s(o("u-toolbar"),ie),$=k,v=I,b=S,C=s(o("u-loading-icon"),U),D=w,M=s(o("u-popup"),G);return u(),c(M,{show:e.show,onClose:r.closeHandler},{default:d((()=>[m(D,{class:"u-picker"},{default:d((()=>[e.showToolbar?(u(),c(l,{key:0,cancelColor:e.cancelColor,confirmColor:e.confirmColor,cancelText:e.cancelText,confirmText:e.confirmText,title:e.title,onCancel:r.cancel,onConfirm:r.confirm},null,8,["cancelColor","confirmColor","cancelText","confirmText","title","onCancel","onConfirm"])):x("",!0),m(b,{class:"u-picker__view",indicatorStyle:`height: ${e.$u.addUnit(e.itemHeight)}`,value:n.innerIndex,immediateChange:e.immediateChange,style:y({height:`${e.$u.addUnit(e.visibleItemCount*e.itemHeight)}`}),onChange:r.changeHandler},{default:d((()=>[(u(!0),h(f,null,p(n.innerColumns,((t,i)=>(u(),c(v,{key:i,class:"u-picker__view__column"},{default:d((()=>[e.$u.test.array(t)?(u(!0),h(f,{key:0},p(t,((t,a)=>(u(),c($,{class:"u-picker__view__column__item u-line-1",key:a,style:y({height:e.$u.addUnit(e.itemHeight),lineHeight:e.$u.addUnit(e.itemHeight),fontWeight:a===n.innerIndex[i]?"bold":"normal"})},{default:d((()=>[g(_(r.getItemText(t)),1)])),_:2},1032,["style"])))),128)):x("",!0)])),_:2},1024)))),128))])),_:1},8,["indicatorStyle","value","immediateChange","style","onChange"]),e.loading?(u(),c(D,{key:1,class:"u-picker--loading"},{default:d((()=>[m(C,{mode:"circle"})])),_:1})):x("",!0)])),_:1})])),_:1},8,["show","onClose"])}],["__scopeId","data-v-f5929e2b"]]),ne={props:{show:{type:Boolean,default:a.datetimePicker.show},showToolbar:{type:Boolean,default:a.datetimePicker.showToolbar},modelValue:{type:[String,Number],default:a.datetimePicker.value},title:{type:String,default:a.datetimePicker.title},mode:{type:String,default:a.datetimePicker.mode},maxDate:{type:Number,default:a.datetimePicker.maxDate},minDate:{type:Number,default:a.datetimePicker.minDate},minHour:{type:Number,default:a.datetimePicker.minHour},maxHour:{type:Number,default:a.datetimePicker.maxHour},minMinute:{type:Number,default:a.datetimePicker.minMinute},maxMinute:{type:Number,default:a.datetimePicker.maxMinute},filter:{type:[Function,null],default:a.datetimePicker.filter},formatter:{type:[Function,null],default:a.datetimePicker.formatter},loading:{type:Boolean,default:a.datetimePicker.loading},itemHeight:{type:[String,Number],default:a.datetimePicker.itemHeight},cancelText:{type:String,default:a.datetimePicker.cancelText},confirmText:{type:String,default:a.datetimePicker.confirmText},cancelColor:{type:String,default:a.datetimePicker.cancelColor},confirmColor:{type:String,default:a.datetimePicker.confirmColor},visibleItemCount:{type:[String,Number],default:a.datetimePicker.visibleItemCount},closeOnClickOverlay:{type:Boolean,default:a.datetimePicker.closeOnClickOverlay},defaultIndex:{type:Array,default:a.datetimePicker.defaultIndex}}};var re={};({get exports(){return re},set exports(e){re=e}}).exports=function(){var e=1e3,t=6e4,i=36e5,a="millisecond",n="second",r="minute",l="hour",s="day",o="week",u="month",c="quarter",d="year",m="date",h="Invalid Date",f=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,p=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,y={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var t=["th","st","nd","rd"],i=e%100;return"["+e+(t[(i-20)%10]||t[i]||t[0])+"]"}},g=function(e,t,i){var a=String(e);return!a||a.length>=t?e:""+Array(t+1-a.length).join(i)+e},_={s:g,z:function(e){var t=-e.utcOffset(),i=Math.abs(t),a=Math.floor(i/60),n=i%60;return(t<=0?"+":"-")+g(a,2,"0")+":"+g(n,2,"0")},m:function e(t,i){if(t.date()1)return e(l[0])}else{var s=t.name;$[s]=t,n=s}return!a&&n&&(x=n),n||!a&&x},C=function(e,t){if(v(e))return e.clone();var i="object"==typeof t?t:{};return i.date=e,i.args=arguments,new w(i)},k=_;k.l=b,k.i=v,k.w=function(e,t){return C(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var w=function(){function y(e){this.$L=b(e.locale,null,!0),this.parse(e)}var g=y.prototype;return g.parse=function(e){this.$d=function(e){var t=e.date,i=e.utc;if(null===t)return new Date(NaN);if(k.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var a=t.match(f);if(a){var n=a[2]-1||0,r=(a[7]||"0").substring(0,3);return i?new Date(Date.UTC(a[1],n,a[3]||1,a[4]||0,a[5]||0,a[6]||0,r)):new Date(a[1],n,a[3]||1,a[4]||0,a[5]||0,a[6]||0,r)}}return new Date(t)}(e),this.$x=e.x||{},this.init()},g.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},g.$utils=function(){return k},g.isValid=function(){return!(this.$d.toString()===h)},g.isSame=function(e,t){var i=C(e);return this.startOf(t)<=i&&i<=this.endOf(t)},g.isAfter=function(e,t){return C(e)({columns:[],innerDefaultIndex:[],innerFormatter:(e,t)=>t}),watch:{show(e,t){e&&this.updateColumnValue(this.innerValue)},propsChange(){this.init()}},computed:{propsChange(){return[this.mode,this.maxDate,this.minDate,this.minHour,this.maxHour,this.minMinute,this.maxMinute,this.filter]}},mounted(){this.init()},emits:["close","cancel","confirm","change"],methods:{init(){this.innerValue=this.correctValue(this.modelValue),this.updateColumnValue(this.innerValue)},setFormatter(e){this.innerFormatter=e},close(){this.closeOnClickOverlay&&this.$emit("close")},cancel(){this.$emit("cancel")},confirm(){this.$emit("confirm",{value:this.innerValue,mode:this.mode}),this.$emit("update:modelValue",this.innerValue)},intercept(e,t){let i=e.match(/\d+/g);return i.length>1?(uni.$u.error("请勿在过滤或格式化函数时添加数字"),0):t&&4==i[0].length?i[0]:i[0].length>2?(uni.$u.error("请勿在过滤或格式化函数时添加数字"),0):i[0]},change(e){const{indexs:t,values:i}=e;let a="";if("time"===this.mode)a=`${this.intercept(i[0][t[0]])}:${this.intercept(i[1][t[1]])}`;else{const e=parseInt(this.intercept(i[0][t[0]],"year")),n=parseInt(this.intercept(i[1][t[1]]));let r=parseInt(i[2]?this.intercept(i[2][t[2]]):1),l=0,s=0;const o=le(`${e}-${n}`).daysInMonth();"year-month"===this.mode&&(r=1),r=Math.min(o,r),"datetime"===this.mode&&(l=parseInt(this.intercept(i[3][t[3]])),s=parseInt(this.intercept(i[4][t[4]]))),a=Number(new Date(e,n-1,r,l,s))}a=this.correctValue(a),this.innerValue=a,this.updateColumnValue(a),this.$emit("change",{value:a,picker:this.$refs.picker,mode:this.mode})},updateColumnValue(e){this.innerValue=e,this.updateColumns(),this.updateIndexs(e)},updateIndexs(e){let t=[];const i=this.formatter||this.innerFormatter,a=uni.$u.padZero;if("time"===this.mode){const a=e.split(":");t=[i("hour",a[0]),i("minute",a[1])]}else t=[i("year",`${le(e).year()}`),i("month",a(le(e).month()+1))],"date"===this.mode&&t.push(i("day",a(le(e).date()))),"datetime"===this.mode&&t.push(i("day",a(le(e).date())),i("hour",a(le(e).hour())),i("minute",a(le(e).minute())));const n=this.columns.map(((e,i)=>Math.max(0,e.findIndex((e=>e===t[i])))));this.innerDefaultIndex=n},updateColumns(){const e=this.formatter||this.innerFormatter,t=this.getOriginColumns().map((t=>t.values.map((i=>e(t.type,i)))));this.columns=t},getOriginColumns(){return this.getRanges().map((({type:e,range:t})=>{let i=function(e,t){let i=-1;const a=Array(e<0?0:e);for(;++i{let a=t[0]+i;return a="year"===e?`${a}`:uni.$u.padZero(a),a}));return this.filter&&(i=this.filter(e,i)),{type:e,values:i}}))},generateArray:(e,t)=>Array.from(new Array(t+1).keys()).slice(e),correctValue(e){const t="time"!==this.mode;if(t&&!uni.$u.test.date(e)?e=this.minDate:t||e||(e=`${uni.$u.padZero(this.minHour)}:${uni.$u.padZero(this.minMinute)}`),t)return e=le(e).isBefore(le(this.minDate))?this.minDate:e,e=le(e).isAfter(le(this.maxDate))?this.maxDate:e;{if(-1===String(e).indexOf(":"))return uni.$u.error("时间错误,请传递如12:24的格式");let[t,i]=e.split(":");return t=uni.$u.padZero(uni.$u.range(this.minHour,this.maxHour,Number(t))),i=uni.$u.padZero(uni.$u.range(this.minMinute,this.maxMinute,Number(i))),`${t}:${i}`}},getRanges(){if("time"===this.mode)return[{type:"hour",range:[this.minHour,this.maxHour]},{type:"minute",range:[this.minMinute,this.maxMinute]}];const{maxYear:e,maxDate:t,maxMonth:i,maxHour:a,maxMinute:n}=this.getBoundary("max",this.innerValue),{minYear:r,minDate:l,minMonth:s,minHour:o,minMinute:u}=this.getBoundary("min",this.innerValue),c=[{type:"year",range:[r,e]},{type:"month",range:[s,i]},{type:"day",range:[l,t]},{type:"hour",range:[o,a]},{type:"minute",range:[u,n]}];return"date"===this.mode&&c.splice(3,2),"year-month"===this.mode&&c.splice(2,3),c},getBoundary(e,t){const i=new Date(t),a=new Date(this[`${e}Date`]),n=le(a).year();let r=1,l=1,s=0,o=0;return"max"===e&&(r=12,l=le(i).daysInMonth(),s=23,o=59),le(i).year()===n&&(r=le(a).month()+1,le(i).month()+1===r&&(l=le(a).date(),le(i).date()===l&&(s=le(a).hour(),le(i).hour()===s&&(o=le(a).minute())))),{[`${e}Year`]:n,[`${e}Month`]:r,[`${e}Date`]:l,[`${e}Hour`]:s,[`${e}Minute`]:o}}}},[["render",function(e,t,i,a,n,r){const l=s(o("u-picker"),ae);return u(),c(l,{ref:"picker",show:e.show,closeOnClickOverlay:e.closeOnClickOverlay,columns:n.columns,title:e.title,itemHeight:e.itemHeight,showToolbar:e.showToolbar,visibleItemCount:e.visibleItemCount,defaultIndex:n.innerDefaultIndex,cancelText:e.cancelText,confirmText:e.confirmText,cancelColor:e.cancelColor,confirmColor:e.confirmColor,onClose:r.close,onCancel:r.cancel,onConfirm:r.confirm,onChange:r.change},null,8,["show","closeOnClickOverlay","columns","title","itemHeight","showToolbar","visibleItemCount","defaultIndex","cancelText","confirmText","cancelColor","confirmColor","onClose","onCancel","onConfirm","onChange"])}],["__scopeId","data-v-401e9cf7"]]),oe=Y(D({__name:"personal",setup(e){const t=M(),i=T((()=>t.info)),a=O({modal:!1,value:i.nickname||""}),n=e=>{a.value=e.detail.value},r=()=>{uni.$u.test.isEmpty(a.value)?j({title:V("nicknamePlaceholder"),icon:"none"}):F({field:"nickname",value:a.value}).then((e=>{t.info.nickname=a.value,a.modal=!1}))},l=H(!1),h=T((()=>[{name:V("man"),value:1},{name:V("woman"),value:2}])),f=e=>{F({field:"sex",value:e.value}).then((i=>{t.info.sex_name=e.name}))},p=e=>{z({filePath:e.file.url,name:"file"}).then((e=>{F({field:"headimg",value:e.data.url}).then((()=>{t.info.headimg=e.data.url}))})).catch((()=>{}))},y=H(!1),$=e=>{F({field:"birthday",value:uni.$u.date(e.value,"yyyy-mm-dd")}).then((()=>{t.info.birthday=uni.$u.date(e.value,"yyyy-mm-dd"),y.value=!1}))};return(e,t)=>{const v=s(o("u-avatar"),L),b=w,C=s(o("u-upload"),te),k=s(o("u-cell"),W),I=s(o("u-button"),E),S=s(o("app-link"),q),D=s(o("u-cell-group"),Z),M=B,T=s(o("u-modal"),Q),O=s(o("u-action-sheet"),J),H=s(o("u-datetime-picker"),se);return P(i)?(u(),c(b,{key:0,class:"w-full h-screen bg-page"},{default:d((()=>[m(b,{class:"flex flex-col items-center pt-[30rpx]"},{default:d((()=>[m(C,{onAfterRead:p,maxCount:1},{default:d((()=>[m(v,{src:P(N)(P(i).headimg),size:"60",leftIcon:"none"},null,8,["src"]),m(b,{class:"text-primary text-sm mt-[10rpx]"},{default:d((()=>[g(_(P(V)("updateHeadimg")),1)])),_:1})])),_:1})])),_:1}),m(b,{class:"m-[30rpx] bg-white rounded-md overflow-hidden px-[20rpx] py-[10rpx]"},{default:d((()=>[m(D,{border:!1},{default:d((()=>[m(k,{title:P(V)("nickname"),"is-link":!0,value:P(i).nickname,onClick:t[0]||(t[0]=e=>a.modal=!0)},null,8,["title","value"]),m(k,{title:P(V)("sex"),"is-link":!0,value:P(i).sex_name||P(V)("unknown"),onClick:t[1]||(t[1]=e=>l.value=!0)},null,8,["title","value"]),m(k,{title:P(V)("mobile")},{value:d((()=>[P(i).mobile?(u(),c(b,{key:0},{default:d((()=>[g(_(P(A)(P(i).mobile)),1)])),_:1})):x("",!0),m(b,null,{default:d((()=>[m(S,{url:"/pages/auth/bind"},{default:d((()=>[m(I,{type:"primary",plain:!0,text:P(V)("bindMobile"),shape:"circle",size:"mini"},null,8,["text"])])),_:1})])),_:1})])),_:1},8,["title"]),m(k,{title:P(V)("birthday"),"is-link":!0,value:P(i).birthday||P(V)("unknown"),onClick:t[2]||(t[2]=e=>y.value=!0)},null,8,["title","value"])])),_:1})])),_:1}),m(T,{show:a.modal,closeOnClickOverlay:!0,onClose:t[4]||(t[4]=e=>a.modal=!1),"show-cancel-button":!0,onCancel:t[5]||(t[5]=e=>a.modal=!1),title:P(V)("updateNickname")},{confirmButton:d((()=>[m(b,{class:"mt-[10rpx]"},{default:d((()=>[m(I,{type:"primary",text:P(V)("confirm"),shape:"circle",onClick:r},null,8,["text"])])),_:1})])),default:d((()=>[m(b,{class:"w-full mt-[20rpx] border-0 border-b border-gray-300 border-solid py-[20rpx]"},{default:d((()=>[m(M,{type:"nickname",modelValue:a.value,"onUpdate:modelValue":t[3]||(t[3]=e=>a.value=e),placeholder:P(V)("nicknamePlaceholder"),onBlur:n},null,8,["modelValue","placeholder"])])),_:1})])),_:1},8,["show","title"]),m(O,{actions:P(h),show:l.value,closeOnClickOverlay:!0,safeAreaInsetBottom:!0,onClose:t[6]||(t[6]=e=>l.value=!1),onSelect:f},null,8,["actions","show"]),m(H,{show:y.value,mode:"date","confirm-text":P(V)("confirm"),maxDate:(new Date).valueOf(),minDate:0,"cancel-text":P(V)("cancel"),onCancel:t[7]||(t[7]=e=>y.value=!1),onConfirm:$},null,8,["show","confirm-text","maxDate","cancel-text"])])),_:1})):x("",!0)}}}),[["__scopeId","data-v-74d0e486"]]);export{oe as default}; diff --git a/niucloud/public/wap/assets/pages-member-point.3b59f9da.js b/niucloud/public/wap/assets/pages-member-point.ff5872df.js similarity index 74% rename from niucloud/public/wap/assets/pages-member-point.3b59f9da.js rename to niucloud/public/wap/assets/pages-member-point.ff5872df.js index e128f04e0..34e6dd9b6 100644 --- a/niucloud/public/wap/assets/pages-member-point.3b59f9da.js +++ b/niucloud/public/wap/assets/pages-member-point.ff5872df.js @@ -1 +1 @@ -import{d as e,r as a,h as t,i as s,w as l,j as r,M as o,N as n,l as u,O as c,E as p,P as d,Q as i,aY as m,q as _,F as f,C as x,D as g}from"./index-5bb08350.js";import{u as v,M as b}from"./useMescroll.92c88689.js";import{M as h}from"./mescroll-empty.b357d8ac.js";import"./_plugin-vue_export-helper.1b428a4d.js";const y=e({__name:"point",setup(e){const{mescrollInit:y,downCallback:j,getMescroll:w}=v(i,d);let M=a([]),k=a(null),D=a(!1);const I=e=>{let t=a({});D.value=!1,t.value.page=e.num,t.value.page_size=e.size,m(t.value).then((a=>{let t=a.data.data;e.endSuccess(t.length),1==e.num&&(M.value=[]),M.value=M.value.concat(t),D.value=!0})).catch((()=>{D.value=!0,e.endErr()}))};return(e,a)=>{const d=_;return t(),s(d,{class:"bg-gray-100 min-h-[100vh]"},{default:l((()=>[r(b,{ref_key:"mescrollRef",ref:k,onInit:u(y),onDown:u(j),onUp:I},{default:l((()=>[(t(!0),o(c,null,n(u(M),((e,a)=>(t(),s(d,{key:e.id,class:f(["bg-white relative p-[10px]",{"border-solid border-t-0 border-l-0 border-r-0 border-b-[1px] border-gray-200":u(M).length-1!=a}])},{default:l((()=>[r(d,{class:"text-[14px]"},{default:l((()=>[x(g(e.from_type_name),1)])),_:2},1024),r(d,{class:"text-[12px] text-gray-400 mt-[10px]"},{default:l((()=>[x(g(e.create_time),1)])),_:2},1024),r(d,{class:"text-[14px] absolute top-[50%] transform -translate-y-[50%] right-[10px]"},{default:l((()=>[x(g(e.account_data),1)])),_:2},1024)])),_:2},1032,["class"])))),128)),!u(M).length&&u(D)?(t(),s(h,{key:0})):p("",!0)])),_:1},8,["onInit","onDown"])])),_:1})}}});export{y as default}; +import{d as e,r as a,h as t,i as s,w as l,j as r,M as o,N as n,l as u,O as c,m as p,P as d,Q as m,a_ as i,t as _,F as f,D as x,E as g}from"./index-15eacd31.js";import{u as v,M as b}from"./useMescroll.fbb7af33.js";import{M as h}from"./mescroll-empty.22c37416.js";import"./_plugin-vue_export-helper.1b428a4d.js";const y=e({__name:"point",setup(e){const{mescrollInit:y,downCallback:j,getMescroll:w}=v(m,d);let M=a([]),k=a(null),D=a(!1);const I=e=>{let t=a({});D.value=!1,t.value.page=e.num,t.value.page_size=e.size,i(t.value).then((a=>{let t=a.data.data;e.endSuccess(t.length),1==e.num&&(M.value=[]),M.value=M.value.concat(t),D.value=!0})).catch((()=>{D.value=!0,e.endErr()}))};return(e,a)=>{const d=_;return t(),s(d,{class:"bg-gray-100 min-h-[100vh]"},{default:l((()=>[r(b,{ref_key:"mescrollRef",ref:k,onInit:u(y),onDown:u(j),onUp:I},{default:l((()=>[(t(!0),o(c,null,n(u(M),((e,a)=>(t(),s(d,{key:e.id,class:f(["bg-white relative p-[10px]",{"border-solid border-t-0 border-l-0 border-r-0 border-b-[1px] border-gray-200":u(M).length-1!=a}])},{default:l((()=>[r(d,{class:"text-[14px]"},{default:l((()=>[x(g(e.from_type_name),1)])),_:2},1024),r(d,{class:"text-[12px] text-gray-400 mt-[10px]"},{default:l((()=>[x(g(e.create_time),1)])),_:2},1024),r(d,{class:"text-[14px] absolute top-[50%] transform -translate-y-[50%] right-[10px]"},{default:l((()=>[x(g(e.account_data),1)])),_:2},1024)])),_:2},1032,["class"])))),128)),!u(M).length&&u(D)?(t(),s(h,{key:0})):p("",!0)])),_:1},8,["onInit","onDown"])])),_:1})}}});export{y as default}; diff --git a/niucloud/public/wap/assets/pages-member-recharge_record.e42b3b23.js b/niucloud/public/wap/assets/pages-member-recharge_record.e42b3b23.js new file mode 100644 index 000000000..c2f420311 --- /dev/null +++ b/niucloud/public/wap/assets/pages-member-recharge_record.e42b3b23.js @@ -0,0 +1 @@ +import{d as e,r as a,h as s,i as t,w as l,j as r,M as o,N as n,O as u,l as c,m,P as d,Q as i,az as _,t as p,D as f,E as v,J as g,R as h}from"./index-15eacd31.js";import{u as y,M as k}from"./useMescroll.fbb7af33.js";import{M as b}from"./mescroll-empty.22c37416.js";import{_ as j}from"./_plugin-vue_export-helper.1b428a4d.js";const M=j(e({__name:"recharge_record",setup(e){const{mescrollInit:j,downCallback:M,getMescroll:w}=y(i,d),x=a([]),I=a(!1),z=a(null),C=e=>{I.value=!1;let a={page:e.num,page_size:e.size};_(a).then((a=>{let s=a.data.data;e.endSuccess(s.length),1==e.num&&(x.value=[]),x.value=x.value.concat(s),I.value=!0})).catch((()=>{I.value=!0,e.endErr()}))};return(e,a)=>{const d=p;return s(),t(d,{class:"member-record-list"},{default:l((()=>[r(k,{ref_key:"mescrollRef",ref:z,onInit:c(j),onDown:c(M),onUp:C,top:""},{default:l((()=>[(s(!0),o(u,null,n(x.value,((e,a)=>(s(),t(d,{key:e.order_id,class:"member-record-item",onClick:a=>{h({url:"/pages/member/recharge_record_detail",param:{id:e.order_id}})}},{default:l((()=>[r(d,{class:"name"},{default:l((()=>[f(v(e.item[0].item_name),1)])),_:2},1024),r(d,{class:"desc"},{default:l((()=>[f(v(e.create_time),1)])),_:2},1024),r(d,{class:"money text-active"},{default:l((()=>[f("+"+v(e.order_money),1)])),_:2},1024),e.order_status_info?(s(),t(d,{key:0,class:"status"},{default:l((()=>[f(v(e.order_status_info.name),1)])),_:2},1024)):m("",!0)])),_:2},1032,["onClick"])))),128)),!x.value.length&&I.value?(s(),t(b,{key:0,option:{tip:c(g)("emptyTip")}},null,8,["option"])):m("",!0)])),_:1},8,["onInit","onDown"])])),_:1})}}}),[["__scopeId","data-v-fb39f6a1"]]);export{M as default}; diff --git a/niucloud/public/wap/assets/pages-member-recharge_record.f0fa2aff.js b/niucloud/public/wap/assets/pages-member-recharge_record.f0fa2aff.js deleted file mode 100644 index 27cc6bcd4..000000000 --- a/niucloud/public/wap/assets/pages-member-recharge_record.f0fa2aff.js +++ /dev/null @@ -1 +0,0 @@ -import{d as e,r as a,h as s,i as t,w as l,j as r,M as o,N as n,O as u,l as c,E as m,P as d,Q as i,az as _,q as p,C as f,D as v,J as g,R as h}from"./index-5bb08350.js";import{u as y,M as k}from"./useMescroll.92c88689.js";import{M as b}from"./mescroll-empty.b357d8ac.js";import{_ as j}from"./_plugin-vue_export-helper.1b428a4d.js";const M=j(e({__name:"recharge_record",setup(e){const{mescrollInit:j,downCallback:M,getMescroll:w}=y(i,d),x=a([]),C=a(!1),I=a(null),z=e=>{C.value=!1;let a={page:e.num,page_size:e.size};_(a).then((a=>{let s=a.data.data;e.endSuccess(s.length),1==e.num&&(x.value=[]),x.value=x.value.concat(s),C.value=!0})).catch((()=>{C.value=!0,e.endErr()}))};return(e,a)=>{const d=p;return s(),t(d,{class:"member-record-list"},{default:l((()=>[r(k,{ref_key:"mescrollRef",ref:I,onInit:c(j),onDown:c(M),onUp:z,top:""},{default:l((()=>[(s(!0),o(u,null,n(x.value,((e,a)=>(s(),t(d,{key:e.order_id,class:"member-record-item",onClick:a=>{h({url:"/pages/member/recharge_record_detail",param:{id:e.order_id}})}},{default:l((()=>[r(d,{class:"name"},{default:l((()=>[f(v(e.item[0].item_name),1)])),_:2},1024),r(d,{class:"desc"},{default:l((()=>[f(v(e.create_time),1)])),_:2},1024),r(d,{class:"money text-active"},{default:l((()=>[f("+"+v(e.order_money),1)])),_:2},1024),e.order_status_info?(s(),t(d,{key:0,class:"status"},{default:l((()=>[f(v(e.order_status_info.name),1)])),_:2},1024)):m("",!0)])),_:2},1032,["onClick"])))),128)),!x.value.length&&C.value?(s(),t(b,{key:0,option:{tip:c(g)("emptyTip")}},null,8,["option"])):m("",!0)])),_:1},8,["onInit","onDown"])])),_:1})}}}),[["__scopeId","data-v-fb39f6a1"]]);export{M as default}; diff --git a/niucloud/public/wap/assets/pages-member-recharge_record_detail.a63f73c2.js b/niucloud/public/wap/assets/pages-member-recharge_record_detail.b2e7f0df.js similarity index 91% rename from niucloud/public/wap/assets/pages-member-recharge_record_detail.a63f73c2.js rename to niucloud/public/wap/assets/pages-member-recharge_record_detail.b2e7f0df.js index 1d726b75a..93f4621ca 100644 --- a/niucloud/public/wap/assets/pages-member-recharge_record_detail.a63f73c2.js +++ b/niucloud/public/wap/assets/pages-member-recharge_record_detail.b2e7f0df.js @@ -1 +1 @@ -import{d as a,r as e,o as s,aA as l,k as t,v as r,l as d,h as _,i as u,w as o,j as c,C as n,D as f,E as i,H as m,q as p,J as v}from"./index-5bb08350.js";import{_ as b}from"./_plugin-vue_export-helper.1b428a4d.js";const h=b(a({__name:"recharge_record_detail",setup(a){let b=e({}),h=e(!1);s((a=>{let e=a.id||"";w(e)}));const w=a=>{h.value=!1,l(a).then((a=>{b.value=a.data,h.value=!0})).catch((()=>{h.value=!0}))};return(a,e)=>{const s=m,l=p;return t((_(),u(l,{class:"member-record-detail"},{default:o((()=>[c(l,{class:"money-wrap"},{default:o((()=>[c(s,null,{default:o((()=>[n("¥"+f(d(b).order_money),1)])),_:1}),d(b).order_status_info?(_(),u(s,{key:0},{default:o((()=>[n(f(d(b).order_status_info.name),1)])),_:1})):i("",!0)])),_:1}),c(l,{class:"item"},{default:o((()=>[d(b).item?(_(),u(l,{key:0,class:"line-wrap"},{default:o((()=>[c(s,{class:"label"},{default:o((()=>[n(f(d(b).item[0].item_name),1)])),_:1}),c(s,{class:"value"},{default:o((()=>[n("¥"+f(d(b).order_money),1)])),_:1})])),_:1})):i("",!0),c(l,{class:"line-wrap"},{default:o((()=>[c(s,{class:"label"},{default:o((()=>[n(f(d(v)("orderNo")),1)])),_:1}),c(s,{class:"value"},{default:o((()=>[n(f(d(b).order_no),1)])),_:1})])),_:1}),c(l,{class:"line-wrap"},{default:o((()=>[c(s,{class:"label"},{default:o((()=>[n(f(d(v)("createTime")),1)])),_:1}),c(s,{class:"value"},{default:o((()=>[n(f(d(b).create_time),1)])),_:1})])),_:1})])),_:1})])),_:1},512)),[[r,d(h)]])}}}),[["__scopeId","data-v-6bd10a7a"]]);export{h as default}; +import{d as a,r as e,o as s,aA as l,k as t,v as r,l as d,h as _,i as u,w as o,j as c,D as n,E as f,m as i,H as m,t as p,J as v}from"./index-15eacd31.js";import{_ as b}from"./_plugin-vue_export-helper.1b428a4d.js";const h=b(a({__name:"recharge_record_detail",setup(a){let b=e({}),h=e(!1);s((a=>{let e=a.id||"";w(e)}));const w=a=>{h.value=!1,l(a).then((a=>{b.value=a.data,h.value=!0})).catch((()=>{h.value=!0}))};return(a,e)=>{const s=m,l=p;return t((_(),u(l,{class:"member-record-detail"},{default:o((()=>[c(l,{class:"money-wrap"},{default:o((()=>[c(s,null,{default:o((()=>[n("¥"+f(d(b).order_money),1)])),_:1}),d(b).order_status_info?(_(),u(s,{key:0},{default:o((()=>[n(f(d(b).order_status_info.name),1)])),_:1})):i("",!0)])),_:1}),c(l,{class:"item"},{default:o((()=>[d(b).item?(_(),u(l,{key:0,class:"line-wrap"},{default:o((()=>[c(s,{class:"label"},{default:o((()=>[n(f(d(b).item[0].item_name),1)])),_:1}),c(s,{class:"value"},{default:o((()=>[n("¥"+f(d(b).order_money),1)])),_:1})])),_:1})):i("",!0),c(l,{class:"line-wrap"},{default:o((()=>[c(s,{class:"label"},{default:o((()=>[n(f(d(v)("orderNo")),1)])),_:1}),c(s,{class:"value"},{default:o((()=>[n(f(d(b).order_no),1)])),_:1})])),_:1}),c(l,{class:"line-wrap"},{default:o((()=>[c(s,{class:"label"},{default:o((()=>[n(f(d(v)("createTime")),1)])),_:1}),c(s,{class:"value"},{default:o((()=>[n(f(d(b).create_time),1)])),_:1})])),_:1})])),_:1})])),_:1},512)),[[r,d(h)]])}}}),[["__scopeId","data-v-6bd10a7a"]]);export{h as default}; diff --git a/niucloud/public/wap/assets/pages-pay-browser.3e8e32cc.js b/niucloud/public/wap/assets/pages-pay-browser.3e8e32cc.js new file mode 100644 index 000000000..661716672 --- /dev/null +++ b/niucloud/public/wap/assets/pages-pay-browser.3e8e32cc.js @@ -0,0 +1 @@ +import{d as a,o as e,am as s,h as t,i as r,w as p,j as i,l as n,D as o,a1 as d,t as c,x as l}from"./index-15eacd31.js";const x=a({__name:"browser",setup:a=>(e((a=>{!s()&&a.alipay&&(uni.setStorageSync("paymenting",{trade_type:a.trade_type,trade_id:a.trade_id}),location.href=decodeURIComponent(a.alipay))})),(a,e)=>{const s=d,x=c;return t(),r(x,{class:"w-screen h-screen bg-[#424040] text-right"},{default:p((()=>[i(s,{src:n(l)("static/resource/images/pay/invite_friends_share.png"),mode:"heightFix",class:"pt-[30rpx] pr-[30rpx] h-[200rpx]"},null,8,["src"]),i(x,{class:"text-white font-bold pt-[30rpx] pr-[30rpx]"},{default:p((()=>[o("点击右上角跳转到浏览器打开")])),_:1})])),_:1})})});export{x as default}; diff --git a/niucloud/public/wap/assets/pages-pay-browser.ae909e4d.js b/niucloud/public/wap/assets/pages-pay-browser.ae909e4d.js deleted file mode 100644 index 591e1dbb2..000000000 --- a/niucloud/public/wap/assets/pages-pay-browser.ae909e4d.js +++ /dev/null @@ -1 +0,0 @@ -import{d as s,o as a,am as e,h as t,i as r,w as n,j as o,l as p,C as i,a1 as c,q as l,t as d}from"./index-5bb08350.js";const x=s({__name:"browser",setup:s=>(a((s=>{!e()&&s.alipay&&(uni.setStorageSync("paymenting",s.code),location.href=decodeURIComponent(s.alipay))})),(s,a)=>{const e=c,x=l;return t(),r(x,{class:"w-screen h-screen bg-[#424040] text-right"},{default:n((()=>[o(e,{src:p(d)("static/resource/images/pay/invite_friends_share.png"),mode:"heightFix",class:"pt-[30rpx] pr-[30rpx] h-[200rpx]"},null,8,["src"]),o(x,{class:"text-white font-bold pt-[30rpx] pr-[30rpx]"},{default:n((()=>[i("点击右上角跳转到浏览器打开")])),_:1})])),_:1})})});export{x as default}; diff --git a/niucloud/public/wap/assets/pages-pay-result.131dad2c.js b/niucloud/public/wap/assets/pages-pay-result.131dad2c.js deleted file mode 100644 index af326a986..000000000 --- a/niucloud/public/wap/assets/pages-pay-result.131dad2c.js +++ /dev/null @@ -1 +0,0 @@ -import{d as a,r as t,o as e,f as s,J as l,h as o,M as u,i as r,w as i,j as n,F as c,C as p,D as m,l as d,E as f,O as x,R as y,b4 as _,H as v,q as j,m as h,p as b,aq as g}from"./index-5bb08350.js";import{_ as w}from"./u-button.364aa63d.js";import{_ as T}from"./u-loading-icon.2e89024b.js";import{_ as C}from"./u-modal.64c62d33.js";import{g as F}from"./pay.4e07eed1.js";import"./u-icon.461524ba.js";import"./_plugin-vue_export-helper.1b428a4d.js";import"./u-line.0c46076e.js";import"./u-popup.7d705de0.js";import"./u-transition.021c4c1c.js";import"./u-safe-bottom.6578a4de.js";const S=a({__name:"result",setup(a){const S=t(null),k=t(!1);let q="",z=0;e((a=>{q=a.code,E()}));const E=()=>{F(q).then((a=>{if(!uni.$u.test.isEmpty(a.data)){if(1==a.data.status&&z<5)return k.value=!0,z++,void setTimeout((()=>{E()}),1e3);S.value=a.data,k.value=!1,s({title:2==S.value.status?l("pay.paySuccess"):l("pay.payFail")})}})).catch((()=>{}))},P=()=>{var a;y({url:_(),param:{code:null==(a=S.value)?void 0:a.out_trade_no},mode:"redirectTo"})};return(a,t)=>{const e=v,s=j,y=h(b("u-button"),w),_=h(b("u-loading-icon"),T),F=h(b("u-modal"),C);return o(),u(x,null,[S.value?(o(),r(s,{key:0,class:"w-screen h-screen flex flex-col items-center"},{default:i((()=>[n(s,{class:"flex-1 flex flex-col items-center w-full pt-[100rpx]"},{default:i((()=>[n(e,{class:c(["iconfont text-2xl",2==S.value.status?"text-primary iconduigou":"iconzhifushibai text-red"])},null,8,["class"]),n(s,{class:"text-sm"},{default:i((()=>[p(m(2==S.value.status?d(l)("pay.paySuccess"):d(l)("pay.payFail")),1)])),_:1}),n(s,{class:"text-xl font-bold pt-[30rpx]"},{default:i((()=>[n(e,{class:"text-base"},{default:i((()=>[p(m(d(l)("currency")),1)])),_:1}),n(e,null,{default:i((()=>[p(m(d(g)(S.value.money)),1)])),_:1})])),_:1})])),_:1}),n(s,{class:"pb-[200rpx] w-[240rpx]"},{default:i((()=>[n(y,{type:"primary",text:2==S.value.status?d(l)("complete"):d(l)("close"),plain:!0,onClick:P},null,8,["text"])])),_:1})])),_:1})):f("",!0),n(F,{show:k.value,showCancelButton:!0,confirmText:d(l)("pay.completePay"),cancelText:d(l)("pay.incompletePay"),onCancel:P},{default:i((()=>[n(s,{class:"py-[20rpx]"},{default:i((()=>[n(_,{text:d(l)("pay.getting"),textSize:"16",mode:"circle",vertical:!0},null,8,["text"])])),_:1})])),_:1},8,["show","confirmText","cancelText"])],64)}}});export{S as default}; diff --git a/niucloud/public/wap/assets/pages-pay-result.8b15506e.js b/niucloud/public/wap/assets/pages-pay-result.8b15506e.js new file mode 100644 index 000000000..4012fc41c --- /dev/null +++ b/niucloud/public/wap/assets/pages-pay-result.8b15506e.js @@ -0,0 +1 @@ +import{d as t,r as a,o as e,f as s,J as l,h as o,M as u,i as r,w as i,j as n,F as c,D as p,E as m,l as d,m as f,O as x,R as y,b5 as _,H as v,t as j,p as h,q as b,aq as g}from"./index-15eacd31.js";import{_ as w}from"./u-button.5c85e6cc.js";import{_ as T}from"./u-loading-icon.ea8c9ece.js";import{_ as C}from"./u-modal.755a4b61.js";import{g as F}from"./pay.422381f0.js";import"./u-icon.f5369555.js";import"./_plugin-vue_export-helper.1b428a4d.js";import"./u-line.bb8d1497.js";import"./u-popup.8a491625.js";import"./u-transition.a952a64b.js";import"./u-safe-bottom.593b5cec.js";const S=t({__name:"result",setup(t){const S=a(null),k=a(!1);let q="",z=0,E=0;e((t=>{q=t.trade_type,z=t.trade_id,P()}));const P=()=>{F(q,z).then((t=>{if(!uni.$u.test.isEmpty(t.data)){if(1==t.data.status&&E<5)return k.value=!0,E++,void setTimeout((()=>{P()}),1e3);S.value=t.data,k.value=!1,s({title:2==S.value.status?l("pay.paySuccess"):l("pay.payFail")})}})).catch((()=>{}))},B=()=>{var t;y({url:_(),param:{code:null==(t=S.value)?void 0:t.out_trade_no},mode:"redirectTo"})};return(t,a)=>{const e=v,s=j,y=h(b("u-button"),w),_=h(b("u-loading-icon"),T),F=h(b("u-modal"),C);return o(),u(x,null,[S.value?(o(),r(s,{key:0,class:"w-screen h-screen flex flex-col items-center"},{default:i((()=>[n(s,{class:"flex-1 flex flex-col items-center w-full pt-[100rpx]"},{default:i((()=>[n(e,{class:c(["iconfont text-2xl",2==S.value.status?"text-primary iconduigou":"iconzhifushibai text-red"])},null,8,["class"]),n(s,{class:"text-sm"},{default:i((()=>[p(m(2==S.value.status?d(l)("pay.paySuccess"):d(l)("pay.payFail")),1)])),_:1}),n(s,{class:"text-xl font-bold pt-[30rpx]"},{default:i((()=>[n(e,{class:"text-base"},{default:i((()=>[p(m(d(l)("currency")),1)])),_:1}),n(e,null,{default:i((()=>[p(m(d(g)(S.value.money)),1)])),_:1})])),_:1})])),_:1}),n(s,{class:"pb-[200rpx] w-[240rpx]"},{default:i((()=>[n(y,{type:"primary",text:2==S.value.status?d(l)("complete"):d(l)("close"),plain:!0,onClick:B},null,8,["text"])])),_:1})])),_:1})):f("",!0),n(F,{show:k.value,showCancelButton:!0,confirmText:d(l)("pay.completePay"),cancelText:d(l)("pay.incompletePay"),onCancel:B},{default:i((()=>[n(s,{class:"py-[20rpx]"},{default:i((()=>[n(_,{text:d(l)("pay.getting"),textSize:"16",mode:"circle",vertical:!0},null,8,["text"])])),_:1})])),_:1},8,["show","confirmText","cancelText"])],64)}}});export{S as default}; diff --git a/niucloud/public/wap/assets/pages-setting-index.2eb0212e.js b/niucloud/public/wap/assets/pages-setting-index.dc2bbfce.js similarity index 79% rename from niucloud/public/wap/assets/pages-setting-index.2eb0212e.js rename to niucloud/public/wap/assets/pages-setting-index.dc2bbfce.js index 55af740ed..e811f84fc 100644 --- a/niucloud/public/wap/assets/pages-setting-index.2eb0212e.js +++ b/niucloud/public/wap/assets/pages-setting-index.dc2bbfce.js @@ -1 +1 @@ -import{d as e,U as a,r as l,a as t,c as s,h as n,i as o,w as r,j as i,l as u,E as p,b5 as d,ai as c,q as m,m as g,p as v,J as h,am as f,b6 as x}from"./index-5bb08350.js";import{_,a as b,b as w}from"./u-action-sheet.acbdcbe5.js";import{_ as j}from"./_plugin-vue_export-helper.1b428a4d.js";import"./u-icon.461524ba.js";import"./u-line.0c46076e.js";import"./u-loading-icon.2e89024b.js";import"./u-popup.7d705de0.js";import"./u-transition.021c4c1c.js";import"./u-safe-bottom.6578a4de.js";const k=j(e({__name:"index",setup(e){const j=a(),k=l("1.0.1"),y=t({"zh-Hans":{name:"简体中文",fontSize:"14",value:"zh-Hans"},en:{name:"English",fontSize:"14",value:"en"}}),z=l(!1),C=s((()=>{const e=x();return y[e].name})),S=e=>{d.loadLocaleMessages("/"+c(),e.value)};return(e,a)=>{const l=m,t=g(v("u-cell"),_),s=g(v("u-cell-group"),b),d=g(v("u-action-sheet"),w);return n(),o(l,{class:"w-full h-screen bg-page"},{default:r((()=>[i(l,{class:"h-[30rpx]"}),i(l,{class:"m-[30rpx] bg-white rounded-md overflow-hidden px-[20rpx] py-[10rpx]"},{default:r((()=>[i(s,{border:!1},{default:r((()=>[i(t,{title:u(h)("personalSettings"),"is-link":!0,url:"/pages/member/personal"},null,8,["title"]),i(t,{title:u(h)("switchLang"),"is-link":!0,value:u(C),onClick:a[0]||(a[0]=e=>z.value=!0)},null,8,["title","value"]),i(t,{title:u(h)("version"),value:k.value},null,8,["title","value"])])),_:1})])),_:1}),i(l,{class:"m-[30rpx] bg-white rounded-md overflow-hidden px-[20rpx] py-[10rpx]"},{default:r((()=>[i(s,{border:!1},{default:r((()=>[i(t,{title:u(h)("userAgreement"),"is-link":!0,url:"/pages/auth/agreement?key=service"},null,8,["title"]),i(t,{title:u(h)("privacyAgreement"),"is-link":!0,url:"/pages/auth/agreement?key=privacy"},null,8,["title"])])),_:1})])),_:1}),u(f)()?p("",!0):(n(),o(l,{key:0,class:"m-[30rpx] bg-white rounded-md overflow-hidden px-[20rpx]"},{default:r((()=>[i(s,{border:!1},{default:r((()=>[i(t,{title:u(h)("logout"),class:"text-center",onClick:a[1]||(a[1]=e=>u(j).logout(!0))},null,8,["title"])])),_:1})])),_:1})),i(d,{actions:y,show:z.value,closeOnClickOverlay:!0,safeAreaInsetBottom:!0,onClose:a[2]||(a[2]=e=>z.value=!1),onSelect:S},null,8,["actions","show"])])),_:1})}}}),[["__scopeId","data-v-dbae4323"]]);export{k as default}; +import{d as e,U as a,r as l,a as t,c as s,h as n,i as o,w as r,j as i,l as u,m as p,b6 as d,ai as c,t as m,p as g,q as v,J as h,am as f,b7 as x}from"./index-15eacd31.js";import{_,a as b,b as w}from"./u-action-sheet.1e4dbfee.js";import{_ as j}from"./_plugin-vue_export-helper.1b428a4d.js";import"./u-icon.f5369555.js";import"./u-line.bb8d1497.js";import"./u-loading-icon.ea8c9ece.js";import"./u-popup.8a491625.js";import"./u-transition.a952a64b.js";import"./u-safe-bottom.593b5cec.js";const k=j(e({__name:"index",setup(e){const j=a(),k=l("1.0.1"),y=t({"zh-Hans":{name:"简体中文",fontSize:"14",value:"zh-Hans"},en:{name:"English",fontSize:"14",value:"en"}}),z=l(!1),C=s((()=>{const e=x();return y[e].name})),S=e=>{d.loadLocaleMessages("/"+c(),e.value)};return(e,a)=>{const l=m,t=g(v("u-cell"),_),s=g(v("u-cell-group"),b),d=g(v("u-action-sheet"),w);return n(),o(l,{class:"w-full h-screen bg-page"},{default:r((()=>[i(l,{class:"h-[30rpx]"}),i(l,{class:"m-[30rpx] bg-white rounded-md overflow-hidden px-[20rpx] py-[10rpx]"},{default:r((()=>[i(s,{border:!1},{default:r((()=>[i(t,{title:u(h)("personalSettings"),"is-link":!0,url:"/pages/member/personal"},null,8,["title"]),i(t,{title:u(h)("switchLang"),"is-link":!0,value:u(C),onClick:a[0]||(a[0]=e=>z.value=!0)},null,8,["title","value"]),i(t,{title:u(h)("version"),value:k.value},null,8,["title","value"])])),_:1})])),_:1}),i(l,{class:"m-[30rpx] bg-white rounded-md overflow-hidden px-[20rpx] py-[10rpx]"},{default:r((()=>[i(s,{border:!1},{default:r((()=>[i(t,{title:u(h)("userAgreement"),"is-link":!0,url:"/pages/auth/agreement?key=service"},null,8,["title"]),i(t,{title:u(h)("privacyAgreement"),"is-link":!0,url:"/pages/auth/agreement?key=privacy"},null,8,["title"])])),_:1})])),_:1}),u(f)()?p("",!0):(n(),o(l,{key:0,class:"m-[30rpx] bg-white rounded-md overflow-hidden px-[20rpx]"},{default:r((()=>[i(s,{border:!1},{default:r((()=>[i(t,{title:u(h)("logout"),class:"text-center",onClick:a[1]||(a[1]=e=>u(j).logout(!0))},null,8,["title"])])),_:1})])),_:1})),i(d,{actions:y,show:z.value,closeOnClickOverlay:!0,safeAreaInsetBottom:!0,onClose:a[2]||(a[2]=e=>z.value=!1),onSelect:S},null,8,["actions","show"])])),_:1})}}}),[["__scopeId","data-v-dbae4323"]]);export{k as default}; diff --git a/niucloud/public/wap/assets/pages-webview-index.1b7e28a7.js b/niucloud/public/wap/assets/pages-webview-index.1b7e28a7.js deleted file mode 100644 index 4908d3ebb..000000000 --- a/niucloud/public/wap/assets/pages-webview-index.1b7e28a7.js +++ /dev/null @@ -1 +0,0 @@ -import{d as a,r as s,o as e,h as o,i as n,w as r,j as t,ao as c,m as l,p as u,b7 as i,q as p}from"./index-5bb08350.js";import{_ as d}from"./u-icon.461524ba.js";import{_ as m}from"./_plugin-vue_export-helper.1b428a4d.js";const _=m(a({__name:"index",setup(a){const m=s("");e((a=>{m.value=decodeURIComponent(a.src)}));const _=()=>{c({delta:1})};return(a,s)=>{const e=l(u("u-icon"),d),c=i,f=p;return o(),n(f,null,{default:r((()=>[t(e,{name:"arrow-left",class:"navigate-back",onClick:_}),t(c,{src:m.value},null,8,["src"])])),_:1})}}}),[["__scopeId","data-v-679fa1ce"]]);export{_ as default}; diff --git a/niucloud/public/wap/assets/pages-webview-index.458b13bb.js b/niucloud/public/wap/assets/pages-webview-index.458b13bb.js new file mode 100644 index 000000000..fead0b8e1 --- /dev/null +++ b/niucloud/public/wap/assets/pages-webview-index.458b13bb.js @@ -0,0 +1 @@ +import{d as a,r as s,o as e,h as o,i as t,w as n,j as r,ao as c,p as l,q as u,b8 as i,t as p}from"./index-15eacd31.js";import{_ as d}from"./u-icon.f5369555.js";import{_ as m}from"./_plugin-vue_export-helper.1b428a4d.js";const _=m(a({__name:"index",setup(a){const m=s("");e((a=>{m.value=decodeURIComponent(a.src)}));const _=()=>{c({delta:1})};return(a,s)=>{const e=l(u("u-icon"),d),c=i,f=p;return o(),t(f,null,{default:n((()=>[r(e,{name:"arrow-left",class:"navigate-back",onClick:_}),r(c,{src:m.value},null,8,["src"])])),_:1})}}}),[["__scopeId","data-v-679fa1ce"]]);export{_ as default}; diff --git a/niucloud/public/wap/assets/pay.422381f0.js b/niucloud/public/wap/assets/pay.422381f0.js new file mode 100644 index 000000000..5263c700d --- /dev/null +++ b/niucloud/public/wap/assets/pay.422381f0.js @@ -0,0 +1 @@ +import{aN as r}from"./index-15eacd31.js";function o(o){return r.post("pay",o,{showErrorMessage:!0})}function s(o,s){return r.get(`pay/info/${o}/${s}`,{},{showErrorMessage:!0})}export{s as g,o as p}; diff --git a/niucloud/public/wap/assets/pay.4e07eed1.js b/niucloud/public/wap/assets/pay.4e07eed1.js deleted file mode 100644 index ccf5af9f3..000000000 --- a/niucloud/public/wap/assets/pay.4e07eed1.js +++ /dev/null @@ -1 +0,0 @@ -import{aL as r}from"./index-5bb08350.js";function o(o){return r.post("pay",o,{showErrorMessage:!0})}function s(o){return r.get(`pay/info/${o}`,{},{showErrorMessage:!0})}export{s as g,o as p}; diff --git a/niucloud/public/wap/assets/sms-code.vue_vue_type_script_setup_true_lang.bcc80d73.js b/niucloud/public/wap/assets/sms-code.vue_vue_type_script_setup_true_lang.bcc80d73.js deleted file mode 100644 index 433db3f58..000000000 --- a/niucloud/public/wap/assets/sms-code.vue_vue_type_script_setup_true_lang.bcc80d73.js +++ /dev/null @@ -1 +0,0 @@ -import{x as e,y as t,z as a,h as s,i as n,q as i,r as c,J as o,c as r,a3 as u,a4 as l,d as h,a as d,m,p,M as g,j as f,w as v,C as x,D as y,l as T,F as _,O as C,a5 as S,a1 as b}from"./index-5bb08350.js";import{_ as k}from"./_plugin-vue_export-helper.1b428a4d.js";import{_ as w}from"./u-input.cefa6e75.js";import{_ as N}from"./u-modal.64c62d33.js";const E=k({name:"u-code",mixins:[t,a,{props:{seconds:{type:[String,Number],default:e.code.seconds},startText:{type:String,default:e.code.startText},changeText:{type:String,default:e.code.changeText},endText:{type:String,default:e.code.endText},keepRunning:{type:Boolean,default:e.code.keepRunning},uniqueKey:{type:String,default:e.code.uniqueKey}}}],data(){return{secNum:this.seconds,timer:null,canGetCode:!0}},mounted(){this.checkKeepRunning()},watch:{seconds:{immediate:!0,handler(e){this.secNum=e}}},methods:{checkKeepRunning(){let e=Number(uni.getStorageSync(this.uniqueKey+"_$uCountDownTimestamp"));if(!e)return this.changeEvent(this.startText);let t=Math.floor(+new Date/1e3);this.keepRunning&&e&&e>t?(this.secNum=e-t,uni.removeStorageSync(this.uniqueKey+"_$uCountDownTimestamp"),this.start()):this.changeEvent(this.startText)},start(){this.timer&&(clearInterval(this.timer),this.timer=null),this.$emit("start"),this.canGetCode=!1,this.changeEvent(this.changeText.replace(/x|X/,this.secNum)),this.setTimeToStorage(),this.timer=setInterval((()=>{--this.secNum?this.changeEvent(this.changeText.replace(/x|X/,this.secNum)):(clearInterval(this.timer),this.timer=null,this.changeEvent(this.endText),this.secNum=this.seconds,this.$emit("end"),this.canGetCode=!0)}),1e3)},reset(){this.canGetCode=!0,clearInterval(this.timer),this.secNum=this.seconds,this.changeEvent(this.endText)},changeEvent(e){this.$emit("change",e)},setTimeToStorage(){if(this.keepRunning&&this.timer&&this.secNum>0&&this.secNum<=this.seconds){let e=Math.floor(+new Date/1e3);uni.setStorage({key:this.uniqueKey+"_$uCountDownTimestamp",data:e+Number(this.secNum)})}}},beforeDestroy(){this.setTimeToStorage(),clearTimeout(this.timer),this.timer=null}},[["render",function(e,t,a,c,o,r){const u=i;return s(),n(u,{class:"u-code"})}],["__scopeId","data-v-198ccd63"]]);function G(e){const t=c("");return{image:t,refresh:async()=>{try{const a=await l();e.captcha_key=a.data.captcha_key,e.captcha_code="",t.value=a.data.img.replace(/\r\n/g,"")}catch(a){}}}}const $=h({__name:"sms-code",props:{mobile:String,type:String,modelValue:{type:String,default:""}},emits:["update:modelValue"],setup(e,{emit:t}){const a=e,n=r({get:()=>a.modelValue,set(e){t("update:modelValue",e)}}),l=c(null),h=function(e){const t=c(o("getSmsCode")),a="X"+o("smsCodeChangeText"),s=r((()=>!e.value||e.value.canGetCode));return{tips:t,seconds:90,canGetCode:s,send:async t=>{if(!s.value)return;e.value.start();let a=!1;return await u(t).then((t=>{1==t.code?a=t.data.key:(e.value.reset(),a=!1)})).catch((t=>{a=!1,e.value.reset()})),a},codeChange:e=>{t.value=e},changeText:a}}(l),k=c(!1),$=d({mobile:"",captcha_code:"",captcha_key:"",type:a.type}),D=G($),K=async()=>{if(l.value.canGetCode){if($.mobile=a.mobile,uni.$u.test.isEmpty($.mobile))return void S({title:o("mobilePlaceholder"),icon:"none"});if(!uni.$u.test.mobile($.mobile))return void S({title:o("mobileError"),icon:"none"});await D.refresh(),k.value=!0}},R=async()=>{if(uni.$u.test.isEmpty($.captcha_code))return void S({title:o("captchaPlaceholder"),icon:"none"});const e=await h.send($);e?(n.value=e,k.value=!1):!1===e&&D.refresh()};return(e,t)=>{const a=i,n=m(p("u-code"),E),c=m(p("u-input"),w),r=b,u=m(p("u-modal"),N);return s(),g(C,null,[f(a,{class:_({"text-primary":T(h).canGetCode.value,"text-gray-300":!T(h).canGetCode.value}),onClick:K},{default:v((()=>[x(y(T(h).tips.value),1)])),_:1},8,["class"]),f(n,{seconds:T(h).seconds,"change-text":T(h).changeText,ref_key:"smsRef",ref:l,onChange:T(h).codeChange},null,8,["seconds","change-text","onChange"]),f(u,{show:k.value,title:T(o)("captchaTitle"),"confirm-text":T(o)("confirm"),"cancel-text":T(o)("cancel"),"show-cancel-button":!0,onCancel:t[2]||(t[2]=e=>k.value=!1),onConfirm:R},{default:v((()=>[f(a,{class:"flex mt-[20rpx]"},{default:v((()=>[f(c,{placeholder:T(o)("captchaPlaceholder"),border:"surround",modelValue:$.captcha_code,"onUpdate:modelValue":t[0]||(t[0]=e=>$.captcha_code=e)},null,8,["placeholder","modelValue"]),f(r,{src:T(D).image.value,class:"h-[76rpx] ml-[20rpx]",mode:"heightFix",onClick:t[1]||(t[1]=e=>T(D).refresh())},null,8,["src"])])),_:1})])),_:1},8,["show","title","confirm-text","cancel-text"])],64)}}});export{$ as _,G as u}; diff --git a/niucloud/public/wap/assets/sms-code.vue_vue_type_script_setup_true_lang.bcd0d968.js b/niucloud/public/wap/assets/sms-code.vue_vue_type_script_setup_true_lang.bcd0d968.js new file mode 100644 index 000000000..d8fc6857a --- /dev/null +++ b/niucloud/public/wap/assets/sms-code.vue_vue_type_script_setup_true_lang.bcd0d968.js @@ -0,0 +1 @@ +import{y as e,z as t,A as a,h as s,i as n,t as i,r as c,J as o,c as r,a3 as u,a4 as l,d as h,a as d,p as m,q as p,M as g,j as f,w as v,D as x,E as y,l as T,F as _,O as C,a5 as S,a1 as b}from"./index-15eacd31.js";import{_ as k}from"./_plugin-vue_export-helper.1b428a4d.js";import{_ as w}from"./u-input.4212a359.js";import{_ as N}from"./u-modal.755a4b61.js";const E=k({name:"u-code",mixins:[t,a,{props:{seconds:{type:[String,Number],default:e.code.seconds},startText:{type:String,default:e.code.startText},changeText:{type:String,default:e.code.changeText},endText:{type:String,default:e.code.endText},keepRunning:{type:Boolean,default:e.code.keepRunning},uniqueKey:{type:String,default:e.code.uniqueKey}}}],data(){return{secNum:this.seconds,timer:null,canGetCode:!0}},mounted(){this.checkKeepRunning()},watch:{seconds:{immediate:!0,handler(e){this.secNum=e}}},methods:{checkKeepRunning(){let e=Number(uni.getStorageSync(this.uniqueKey+"_$uCountDownTimestamp"));if(!e)return this.changeEvent(this.startText);let t=Math.floor(+new Date/1e3);this.keepRunning&&e&&e>t?(this.secNum=e-t,uni.removeStorageSync(this.uniqueKey+"_$uCountDownTimestamp"),this.start()):this.changeEvent(this.startText)},start(){this.timer&&(clearInterval(this.timer),this.timer=null),this.$emit("start"),this.canGetCode=!1,this.changeEvent(this.changeText.replace(/x|X/,this.secNum)),this.setTimeToStorage(),this.timer=setInterval((()=>{--this.secNum?this.changeEvent(this.changeText.replace(/x|X/,this.secNum)):(clearInterval(this.timer),this.timer=null,this.changeEvent(this.endText),this.secNum=this.seconds,this.$emit("end"),this.canGetCode=!0)}),1e3)},reset(){this.canGetCode=!0,clearInterval(this.timer),this.secNum=this.seconds,this.changeEvent(this.endText)},changeEvent(e){this.$emit("change",e)},setTimeToStorage(){if(this.keepRunning&&this.timer&&this.secNum>0&&this.secNum<=this.seconds){let e=Math.floor(+new Date/1e3);uni.setStorage({key:this.uniqueKey+"_$uCountDownTimestamp",data:e+Number(this.secNum)})}}},beforeDestroy(){this.setTimeToStorage(),clearTimeout(this.timer),this.timer=null}},[["render",function(e,t,a,c,o,r){const u=i;return s(),n(u,{class:"u-code"})}],["__scopeId","data-v-198ccd63"]]);function G(e){const t=c("");return{image:t,refresh:async()=>{try{const a=await l();e.captcha_key=a.data.captcha_key,e.captcha_code="",t.value=a.data.img.replace(/\r\n/g,"")}catch(a){}}}}const $=h({__name:"sms-code",props:{mobile:String,type:String,modelValue:{type:String,default:""}},emits:["update:modelValue"],setup(e,{emit:t}){const a=e,n=r({get:()=>a.modelValue,set(e){t("update:modelValue",e)}}),l=c(null),h=function(e){const t=c(o("getSmsCode")),a="X"+o("smsCodeChangeText"),s=r((()=>!e.value||e.value.canGetCode));return{tips:t,seconds:90,canGetCode:s,send:async t=>{if(!s.value)return;e.value.start();let a=!1;return await u(t).then((t=>{1==t.code?a=t.data.key:(e.value.reset(),a=!1)})).catch((t=>{a=!1,e.value.reset()})),a},codeChange:e=>{t.value=e},changeText:a}}(l),k=c(!1),$=d({mobile:"",captcha_code:"",captcha_key:"",type:a.type}),D=G($),K=async()=>{if(l.value.canGetCode){if($.mobile=a.mobile,uni.$u.test.isEmpty($.mobile))return void S({title:o("mobilePlaceholder"),icon:"none"});if(!uni.$u.test.mobile($.mobile))return void S({title:o("mobileError"),icon:"none"});await D.refresh(),k.value=!0}},R=async()=>{if(uni.$u.test.isEmpty($.captcha_code))return void S({title:o("captchaPlaceholder"),icon:"none"});const e=await h.send($);e?(n.value=e,k.value=!1):!1===e&&D.refresh()};return(e,t)=>{const a=i,n=m(p("u-code"),E),c=m(p("u-input"),w),r=b,u=m(p("u-modal"),N);return s(),g(C,null,[f(a,{class:_({"text-primary":T(h).canGetCode.value,"text-gray-300":!T(h).canGetCode.value}),onClick:K},{default:v((()=>[x(y(T(h).tips.value),1)])),_:1},8,["class"]),f(n,{seconds:T(h).seconds,"change-text":T(h).changeText,ref_key:"smsRef",ref:l,onChange:T(h).codeChange},null,8,["seconds","change-text","onChange"]),f(u,{show:k.value,title:T(o)("captchaTitle"),"confirm-text":T(o)("confirm"),"cancel-text":T(o)("cancel"),"show-cancel-button":!0,onCancel:t[2]||(t[2]=e=>k.value=!1),onConfirm:R},{default:v((()=>[f(a,{class:"flex mt-[20rpx]"},{default:v((()=>[f(c,{placeholder:T(o)("captchaPlaceholder"),border:"surround",modelValue:$.captcha_code,"onUpdate:modelValue":t[0]||(t[0]=e=>$.captcha_code=e)},null,8,["placeholder","modelValue"]),f(r,{src:T(D).image.value,class:"h-[76rpx] ml-[20rpx]",mode:"heightFix",onClick:t[1]||(t[1]=e=>T(D).refresh())},null,8,["src"])])),_:1})])),_:1},8,["show","title","confirm-text","cancel-text"])],64)}}});export{$ as _,G as u}; diff --git a/niucloud/public/wap/assets/tabbar-8a0d9fd7.css b/niucloud/public/wap/assets/tabbar-eb61cd51.css similarity index 94% rename from niucloud/public/wap/assets/tabbar-8a0d9fd7.css rename to niucloud/public/wap/assets/tabbar-eb61cd51.css index 26ddc8fdb..fbd305e8d 100644 --- a/niucloud/public/wap/assets/tabbar-8a0d9fd7.css +++ b/niucloud/public/wap/assets/tabbar-eb61cd51.css @@ -1 +1 @@ -uni-view[data-v-99cd5b85],uni-scroll-view[data-v-99cd5b85],uni-swiper-item[data-v-99cd5b85]{display:flex;flex-direction:column;flex-shrink:0;flex-grow:0;flex-basis:auto;align-items:stretch;align-content:flex-start}.u-badge[data-v-99cd5b85]{border-radius:100px;display:flex;flex-direction:row;line-height:11px;text-align:center;font-size:11px;color:#fff}.u-badge--dot[data-v-99cd5b85]{height:8px;width:8px}.u-badge--inverted[data-v-99cd5b85]{font-size:13px}.u-badge--not-dot[data-v-99cd5b85]{padding:2px 5px}.u-badge--horn[data-v-99cd5b85]{border-bottom-left-radius:0}.u-badge--primary[data-v-99cd5b85]{background-color:var(--primary-color)}.u-badge--primary--inverted[data-v-99cd5b85]{color:var(--primary-color)}.u-badge--error[data-v-99cd5b85]{background-color:#f56c6c}.u-badge--error--inverted[data-v-99cd5b85]{color:#f56c6c}.u-badge--success[data-v-99cd5b85]{background-color:#5ac725}.u-badge--success--inverted[data-v-99cd5b85]{color:#5ac725}.u-badge--info[data-v-99cd5b85]{background-color:#909399}.u-badge--info--inverted[data-v-99cd5b85]{color:#909399}.u-badge--warning[data-v-99cd5b85]{background-color:#f9ae3d}.u-badge--warning--inverted[data-v-99cd5b85]{color:#f9ae3d}uni-view[data-v-b5faebd4],uni-scroll-view[data-v-b5faebd4],uni-swiper-item[data-v-b5faebd4]{display:flex;flex-direction:column;flex-shrink:0;flex-grow:0;flex-basis:auto;align-items:stretch;align-content:flex-start}.u-tabbar-item[data-v-b5faebd4]{display:flex;flex-direction:column;align-items:center;justify-content:center;flex:1;width:100%;height:100%}.u-tabbar-item__icon[data-v-b5faebd4]{display:flex;flex-direction:row;position:relative;width:4.6875rem;justify-content:center}.u-tabbar-item__text[data-v-b5faebd4]{margin-top:2px;font-size:12px;color:#606266}uni-view[data-v-b564ac71],uni-scroll-view[data-v-b564ac71],uni-swiper-item[data-v-b564ac71]{display:flex;flex-direction:column;flex-shrink:0;flex-grow:0;flex-basis:auto;align-items:stretch;align-content:flex-start}.u-tabbar[data-v-b564ac71]{display:flex;flex-direction:column;flex:1;justify-content:center}.u-tabbar__content[data-v-b564ac71]{display:flex;flex-direction:column;background-color:#fff}.u-tabbar__content__item-wrapper[data-v-b564ac71]{height:50px;display:flex;flex-direction:row;justify-content:space-around}.u-tabbar--fixed[data-v-b564ac71]{position:fixed;bottom:0;left:0;right:0}.tab-bar-placeholder[data-v-d23d1a6b]{padding-bottom:calc(constant(safe-area-inset-bottom) + 3.5rem);padding-bottom:calc(env(safe-area-inset-bottom) + 3.5rem)} +uni-view[data-v-99cd5b85],uni-scroll-view[data-v-99cd5b85],uni-swiper-item[data-v-99cd5b85]{display:flex;flex-direction:column;flex-shrink:0;flex-grow:0;flex-basis:auto;align-items:stretch;align-content:flex-start}.u-badge[data-v-99cd5b85]{border-radius:100px;display:flex;flex-direction:row;line-height:11px;text-align:center;font-size:11px;color:#fff}.u-badge--dot[data-v-99cd5b85]{height:8px;width:8px}.u-badge--inverted[data-v-99cd5b85]{font-size:13px}.u-badge--not-dot[data-v-99cd5b85]{padding:2px 5px}.u-badge--horn[data-v-99cd5b85]{border-bottom-left-radius:0}.u-badge--primary[data-v-99cd5b85]{background-color:var(--primary-color)}.u-badge--primary--inverted[data-v-99cd5b85]{color:var(--primary-color)}.u-badge--error[data-v-99cd5b85]{background-color:#f56c6c}.u-badge--error--inverted[data-v-99cd5b85]{color:#f56c6c}.u-badge--success[data-v-99cd5b85]{background-color:#5ac725}.u-badge--success--inverted[data-v-99cd5b85]{color:#5ac725}.u-badge--info[data-v-99cd5b85]{background-color:#909399}.u-badge--info--inverted[data-v-99cd5b85]{color:#909399}.u-badge--warning[data-v-99cd5b85]{background-color:#f9ae3d}.u-badge--warning--inverted[data-v-99cd5b85]{color:#f9ae3d}uni-view[data-v-b5faebd4],uni-scroll-view[data-v-b5faebd4],uni-swiper-item[data-v-b5faebd4]{display:flex;flex-direction:column;flex-shrink:0;flex-grow:0;flex-basis:auto;align-items:stretch;align-content:flex-start}.u-tabbar-item[data-v-b5faebd4]{display:flex;flex-direction:column;align-items:center;justify-content:center;flex:1;width:100%;height:100%}.u-tabbar-item__icon[data-v-b5faebd4]{display:flex;flex-direction:row;position:relative;width:4.6875rem;justify-content:center}.u-tabbar-item__text[data-v-b5faebd4]{margin-top:2px;font-size:12px;color:#606266}uni-view[data-v-b564ac71],uni-scroll-view[data-v-b564ac71],uni-swiper-item[data-v-b564ac71]{display:flex;flex-direction:column;flex-shrink:0;flex-grow:0;flex-basis:auto;align-items:stretch;align-content:flex-start}.u-tabbar[data-v-b564ac71]{display:flex;flex-direction:column;flex:1;justify-content:center}.u-tabbar__content[data-v-b564ac71]{display:flex;flex-direction:column;background-color:#fff}.u-tabbar__content__item-wrapper[data-v-b564ac71]{height:50px;display:flex;flex-direction:row;justify-content:space-around}.u-tabbar--fixed[data-v-b564ac71]{position:fixed;bottom:0;left:0;right:0}.tab-bar-placeholder[data-v-cc0d2f65]{padding-bottom:calc(constant(safe-area-inset-bottom) + 3.5rem);padding-bottom:calc(env(safe-area-inset-bottom) + 3.5rem)} diff --git a/niucloud/public/wap/assets/tabbar.f7ee8f1f.js b/niucloud/public/wap/assets/tabbar.e67e4875.js similarity index 80% rename from niucloud/public/wap/assets/tabbar.f7ee8f1f.js rename to niucloud/public/wap/assets/tabbar.e67e4875.js index aac8de39b..0471c347b 100644 --- a/niucloud/public/wap/assets/tabbar.f7ee8f1f.js +++ b/niucloud/public/wap/assets/tabbar.e67e4875.js @@ -1 +1 @@ -import{p as e,_ as t}from"./u-image.9265f18d.js";import{y as a,z as o,ab as r,h as l,i as s,w as i,B as n,x as u,C as d,D as c,F as b,n as h,E as p,H as m,m as g,p as y,j as f,M as v,O as x,q as _,G as S,d as C,c as k,Y as w,ai as I,l as $,N as B,t as D,R as N}from"./index-5bb08350.js";import{_ as P}from"./_plugin-vue_export-helper.1b428a4d.js";import{_ as H}from"./u-icon.461524ba.js";import{_ as A}from"./u-safe-bottom.6578a4de.js";const L=P({name:"u--image",mixins:[a,e,o],components:{uvImage:t},emits:["click","error","load"]},[["render",function(e,t,a,o,u,d){const c=r("uvImage");return l(),s(c,{src:e.src,mode:e.mode,width:e.width,height:e.height,shape:e.shape,radius:e.radius,lazyLoad:e.lazyLoad,showMenuByLongpress:e.showMenuByLongpress,loadingIcon:e.loadingIcon,errorIcon:e.errorIcon,showLoading:e.showLoading,showError:e.showError,fade:e.fade,webp:e.webp,duration:e.duration,bgColor:e.bgColor,customStyle:e.customStyle,onClick:t[0]||(t[0]=t=>e.$emit("click")),onError:t[1]||(t[1]=t=>e.$emit("error")),onLoad:t[2]||(t[2]=t=>e.$emit("load"))},{loading:i((()=>[n(e.$slots,"loading")])),error:i((()=>[n(e.$slots,"error")])),_:3},8,["src","mode","width","height","shape","radius","lazyLoad","showMenuByLongpress","loadingIcon","errorIcon","showLoading","showError","fade","webp","duration","bgColor","customStyle"])}]]);const z=P({name:"u-badge",mixins:[a,{props:{isDot:{type:Boolean,default:u.badge.isDot},value:{type:[Number,String],default:u.badge.value},modelValue:{type:[Number,String],default:u.badge.modelValue},show:{type:Boolean,default:u.badge.show},max:{type:[Number,String],default:u.badge.max},type:{type:String,default:u.badge.type},showZero:{type:Boolean,default:u.badge.showZero},bgColor:{type:[String,null],default:u.badge.bgColor},color:{type:[String,null],default:u.badge.color},shape:{type:String,default:u.badge.shape},numberType:{type:String,default:u.badge.numberType},offset:{type:Array,default:u.badge.offset},inverted:{type:Boolean,default:u.badge.inverted},absolute:{type:Boolean,default:u.badge.absolute}}},o],computed:{boxStyle:()=>({}),badgeStyle(){const e={};if(this.color&&(e.color=this.color),this.bgColor&&!this.inverted&&(e.backgroundColor=this.bgColor),this.absolute&&(e.position="absolute",this.offset.length)){const t=this.offset[0],a=this.offset[1]||t;e.top=uni.$u.addUnit(t),e.right=uni.$u.addUnit(a)}return e},showValue(){switch(this.numberType){case"overflow":return Number(this.value)>Number(this.max)?this.max+"+":this.value;case"ellipsis":return Number(this.value)>Number(this.max)?"...":this.value;case"limit":return Number(this.value)>999?Number(this.value)>=9999?Math.floor(this.value/1e4*100)/100+"w":Math.floor(this.value/1e3*100)/100+"k":this.value;default:return Number(this.value)}}}},[["render",function(e,t,a,o,r,n){const u=m;return e.show&&(0!==Number(e.value)||e.showZero||e.isDot)?(l(),s(u,{key:0,class:b([[e.isDot?"u-badge--dot":"u-badge--not-dot",e.inverted&&"u-badge--inverted","horn"===e.shape&&"u-badge--horn",`u-badge--${e.type}${e.inverted?"--inverted":""}`],"u-badge"]),style:h([e.$u.addStyle(e.customStyle),n.badgeStyle])},{default:i((()=>[d(c(e.isDot?"":n.showValue),1)])),_:1},8,["class","style"])):p("",!0)}],["__scopeId","data-v-99cd5b85"]]);const j=P({name:"u-tabbar-item",mixins:[a,o,{props:{name:{type:[String,Number,null],default:u.tabbarItem.name},icon:{icon:String,default:u.tabbarItem.icon},badge:{type:[String,Number,null],default:u.tabbarItem.badge},dot:{type:Boolean,default:u.tabbarItem.dot},text:{type:String,default:u.tabbarItem.text},badgeStyle:{type:[Object,String],default:u.tabbarItem.badgeStyle}}}],data:()=>({isActive:!1,parentData:{value:null,activeColor:"",inactiveColor:""}}),options:{virtualHost:!0},created(){this.init()},methods:{init(){this.updateParentData(),this.parent||uni.$u.error("u-tabbar-item必须搭配u-tabbar组件使用");const e=this.parent.children.indexOf(this);this.isActive=(this.name||e)===this.parentData.value},updateParentData(){this.getParentData("u-tabbar")},updateFromParent(){this.init()},clickHandler(){this.$nextTick((()=>{const e=this.parent.children.indexOf(this),t=this.name||e;t!==this.parent.value&&this.parent.$emit("change",t),this.$emit("click",t)}))}}},[["render",function(e,t,a,o,r,u){const b=g(y("u-icon"),H),p=g(y("u-badge"),z),S=_,C=m;return l(),s(S,{class:"u-tabbar-item",style:h([e.$u.addStyle(e.customStyle)]),onClick:u.clickHandler},{default:i((()=>[f(S,{class:"u-tabbar-item__icon"},{default:i((()=>[e.icon?(l(),s(b,{key:0,name:e.icon,color:r.isActive?r.parentData.activeColor:r.parentData.inactiveColor,size:20},null,8,["name","color"])):(l(),v(x,{key:1},[r.isActive?n(e.$slots,"active-icon",{key:0},void 0,!0):n(e.$slots,"inactive-icon",{key:1},void 0,!0)],64)),f(p,{absolute:"",offset:[0,e.dot?"34rpx":e.badge>9?"14rpx":"20rpx"],customStyle:e.badgeStyle,isDot:e.dot,value:e.badge||(e.dot?1:null),show:e.dot||e.badge>0},null,8,["offset","customStyle","isDot","value","show"])])),_:3}),n(e.$slots,"text",{},(()=>[f(C,{class:"u-tabbar-item__text",style:h({color:r.isActive?r.parentData.activeColor:r.parentData.inactiveColor})},{default:i((()=>[d(c(e.text),1)])),_:1},8,["style"])]),!0)])),_:3},8,["style","onClick"])}],["__scopeId","data-v-b5faebd4"]]);const M=P({name:"u-tabbar",mixins:[a,o,{props:{value:{type:[String,Number,null],default:u.tabbar.value},safeAreaInsetBottom:{type:Boolean,default:u.tabbar.safeAreaInsetBottom},border:{type:Boolean,default:u.tabbar.border},zIndex:{type:[String,Number],default:u.tabbar.zIndex},activeColor:{type:String,default:u.tabbar.activeColor},inactiveColor:{type:String,default:u.tabbar.inactiveColor},fixed:{type:Boolean,default:u.tabbar.fixed},placeholder:{type:Boolean,default:u.tabbar.placeholder}}}],data:()=>({placeholderHeight:0}),computed:{tabbarStyle(){const e={zIndex:this.zIndex};return uni.$u.deepMerge(e,uni.$u.addStyle(this.customStyle))},updateChild(){return[this.value,this.activeColor,this.inactiveColor]},updatePlaceholder(){return[this.fixed,this.placeholder]}},watch:{updateChild(){this.updateChildren()},updatePlaceholder(){this.setPlaceholderHeight()}},created(){this.children=[]},mounted(){this.setPlaceholderHeight()},methods:{updateChildren(){this.children.length&&this.children.map((e=>e.updateFromParent()))},async setPlaceholderHeight(){this.fixed&&this.placeholder&&(await uni.$u.sleep(20),this.$uGetRect(".u-tabbar__content").then((({height:e=50})=>{this.placeholderHeight=e})))}}},[["render",function(e,t,a,o,r,u){const d=_,c=g(y("u-safe-bottom"),A);return l(),s(d,{class:"u-tabbar"},{default:i((()=>[f(d,{class:b(["u-tabbar__content",[e.border&&"u-border-top",e.fixed&&"u-tabbar--fixed"]]),ref:"u-tabbar__content",onTouchmove:S(e.noop,["stop","prevent"]),style:h([u.tabbarStyle])},{default:i((()=>[f(d,{class:"u-tabbar__content__item-wrapper"},{default:i((()=>[n(e.$slots,"default",{},void 0,!0)])),_:3}),e.safeAreaInsetBottom?(l(),s(c,{key:0})):p("",!0)])),_:3},8,["onTouchmove","class","style"]),e.placeholder?(l(),s(d,{key:0,class:"u-tabbar__placeholder",style:h({height:r.placeholderHeight+"px"})},null,8,["style"])):p("",!0)])),_:3})}],["__scopeId","data-v-b564ac71"]]),T=P(C({__name:"tabbar",setup(e){const t=k((()=>w().tabbar)),a=k((()=>"/"+I())),o=e=>{N({url:`${e}`})};return(e,r)=>{const n=g(y("u-tabbar-item"),j),u=g(y("u-tabbar"),M),d=_;return l(),v(x,null,[$(t)?(l(),s(u,{key:0,value:$(a),onChange:o,fixed:!0,placeholder:!0,safeAreaInsetBottom:!0,"inactive-color":$(t).textColor,"active-color":$(t).textHoverColor},{default:i((()=>[(l(!0),v(x,null,B($(t).list,(e=>(l(),v(x,null,[1==$(t).type?(l(),s(n,{key:0,style:h({"background-color":$(t).backgroundColor}),text:e.text,icon:$(D)($(a)==e.link.url?e.iconSelectPath:e.iconPath),name:e.link.url},null,8,["style","text","icon","name"])):p("",!0),2==$(t).type?(l(),s(n,{key:1,style:h({"background-color":$(t).backgroundColor}),icon:$(D)($(a)==e.link.url?e.iconSelectPath:e.iconPath),name:e.link.url},null,8,["style","icon","name"])):p("",!0),3==$(t).type?(l(),s(n,{key:2,style:h({"background-color":$(t).backgroundColor}),text:e.text,name:e.link.url},null,8,["style","text","name"])):p("",!0)],64)))),256))])),_:1},8,["value","inactive-color","active-color"])):p("",!0),f(d,{class:"tab-bar-placeholder"})],64)}}}),[["__scopeId","data-v-d23d1a6b"]]);export{L as _,T as a}; +import{p as e,_ as t}from"./u-image.b892f6c4.js";import{z as a,A as o,ab as r,h as l,i as s,w as i,C as n,y as u,D as d,E as c,F as b,n as h,m as p,H as m,p as g,q as y,j as f,M as v,O as x,t as _,G as S,d as C,c as k,Y as w,ai as I,l as $,N as B,x as D,R as N}from"./index-15eacd31.js";import{_ as P}from"./_plugin-vue_export-helper.1b428a4d.js";import{_ as A}from"./u-icon.f5369555.js";import{_ as H}from"./u-safe-bottom.593b5cec.js";const z=P({name:"u--image",mixins:[a,e,o],components:{uvImage:t},emits:["click","error","load"]},[["render",function(e,t,a,o,u,d){const c=r("uvImage");return l(),s(c,{src:e.src,mode:e.mode,width:e.width,height:e.height,shape:e.shape,radius:e.radius,lazyLoad:e.lazyLoad,showMenuByLongpress:e.showMenuByLongpress,loadingIcon:e.loadingIcon,errorIcon:e.errorIcon,showLoading:e.showLoading,showError:e.showError,fade:e.fade,webp:e.webp,duration:e.duration,bgColor:e.bgColor,customStyle:e.customStyle,onClick:t[0]||(t[0]=t=>e.$emit("click")),onError:t[1]||(t[1]=t=>e.$emit("error")),onLoad:t[2]||(t[2]=t=>e.$emit("load"))},{loading:i((()=>[n(e.$slots,"loading")])),error:i((()=>[n(e.$slots,"error")])),_:3},8,["src","mode","width","height","shape","radius","lazyLoad","showMenuByLongpress","loadingIcon","errorIcon","showLoading","showError","fade","webp","duration","bgColor","customStyle"])}]]);const L=P({name:"u-badge",mixins:[a,{props:{isDot:{type:Boolean,default:u.badge.isDot},value:{type:[Number,String],default:u.badge.value},modelValue:{type:[Number,String],default:u.badge.modelValue},show:{type:Boolean,default:u.badge.show},max:{type:[Number,String],default:u.badge.max},type:{type:String,default:u.badge.type},showZero:{type:Boolean,default:u.badge.showZero},bgColor:{type:[String,null],default:u.badge.bgColor},color:{type:[String,null],default:u.badge.color},shape:{type:String,default:u.badge.shape},numberType:{type:String,default:u.badge.numberType},offset:{type:Array,default:u.badge.offset},inverted:{type:Boolean,default:u.badge.inverted},absolute:{type:Boolean,default:u.badge.absolute}}},o],computed:{boxStyle:()=>({}),badgeStyle(){const e={};if(this.color&&(e.color=this.color),this.bgColor&&!this.inverted&&(e.backgroundColor=this.bgColor),this.absolute&&(e.position="absolute",this.offset.length)){const t=this.offset[0],a=this.offset[1]||t;e.top=uni.$u.addUnit(t),e.right=uni.$u.addUnit(a)}return e},showValue(){switch(this.numberType){case"overflow":return Number(this.value)>Number(this.max)?this.max+"+":this.value;case"ellipsis":return Number(this.value)>Number(this.max)?"...":this.value;case"limit":return Number(this.value)>999?Number(this.value)>=9999?Math.floor(this.value/1e4*100)/100+"w":Math.floor(this.value/1e3*100)/100+"k":this.value;default:return Number(this.value)}}}},[["render",function(e,t,a,o,r,n){const u=m;return e.show&&(0!==Number(e.value)||e.showZero||e.isDot)?(l(),s(u,{key:0,class:b([[e.isDot?"u-badge--dot":"u-badge--not-dot",e.inverted&&"u-badge--inverted","horn"===e.shape&&"u-badge--horn",`u-badge--${e.type}${e.inverted?"--inverted":""}`],"u-badge"]),style:h([e.$u.addStyle(e.customStyle),n.badgeStyle])},{default:i((()=>[d(c(e.isDot?"":n.showValue),1)])),_:1},8,["class","style"])):p("",!0)}],["__scopeId","data-v-99cd5b85"]]);const j=P({name:"u-tabbar-item",mixins:[a,o,{props:{name:{type:[String,Number,null],default:u.tabbarItem.name},icon:{icon:String,default:u.tabbarItem.icon},badge:{type:[String,Number,null],default:u.tabbarItem.badge},dot:{type:Boolean,default:u.tabbarItem.dot},text:{type:String,default:u.tabbarItem.text},badgeStyle:{type:[Object,String],default:u.tabbarItem.badgeStyle}}}],data:()=>({isActive:!1,parentData:{value:null,activeColor:"",inactiveColor:""}}),options:{virtualHost:!0},created(){this.init()},methods:{init(){this.updateParentData(),this.parent||uni.$u.error("u-tabbar-item必须搭配u-tabbar组件使用");const e=this.parent.children.indexOf(this);this.isActive=(this.name||e)===this.parentData.value},updateParentData(){this.getParentData("u-tabbar")},updateFromParent(){this.init()},clickHandler(){this.$nextTick((()=>{const e=this.parent.children.indexOf(this),t=this.name||e;t!==this.parent.value&&this.parent.$emit("change",t),this.$emit("click",t)}))}}},[["render",function(e,t,a,o,r,u){const b=g(y("u-icon"),A),p=g(y("u-badge"),L),S=_,C=m;return l(),s(S,{class:"u-tabbar-item",style:h([e.$u.addStyle(e.customStyle)]),onClick:u.clickHandler},{default:i((()=>[f(S,{class:"u-tabbar-item__icon"},{default:i((()=>[e.icon?(l(),s(b,{key:0,name:e.icon,color:r.isActive?r.parentData.activeColor:r.parentData.inactiveColor,size:20},null,8,["name","color"])):(l(),v(x,{key:1},[r.isActive?n(e.$slots,"active-icon",{key:0},void 0,!0):n(e.$slots,"inactive-icon",{key:1},void 0,!0)],64)),f(p,{absolute:"",offset:[0,e.dot?"34rpx":e.badge>9?"14rpx":"20rpx"],customStyle:e.badgeStyle,isDot:e.dot,value:e.badge||(e.dot?1:null),show:e.dot||e.badge>0},null,8,["offset","customStyle","isDot","value","show"])])),_:3}),n(e.$slots,"text",{},(()=>[f(C,{class:"u-tabbar-item__text",style:h({color:r.isActive?r.parentData.activeColor:r.parentData.inactiveColor})},{default:i((()=>[d(c(e.text),1)])),_:1},8,["style"])]),!0)])),_:3},8,["style","onClick"])}],["__scopeId","data-v-b5faebd4"]]);const M=P({name:"u-tabbar",mixins:[a,o,{props:{value:{type:[String,Number,null],default:u.tabbar.value},safeAreaInsetBottom:{type:Boolean,default:u.tabbar.safeAreaInsetBottom},border:{type:Boolean,default:u.tabbar.border},zIndex:{type:[String,Number],default:u.tabbar.zIndex},activeColor:{type:String,default:u.tabbar.activeColor},inactiveColor:{type:String,default:u.tabbar.inactiveColor},fixed:{type:Boolean,default:u.tabbar.fixed},placeholder:{type:Boolean,default:u.tabbar.placeholder}}}],data:()=>({placeholderHeight:0}),computed:{tabbarStyle(){const e={zIndex:this.zIndex};return uni.$u.deepMerge(e,uni.$u.addStyle(this.customStyle))},updateChild(){return[this.value,this.activeColor,this.inactiveColor]},updatePlaceholder(){return[this.fixed,this.placeholder]}},watch:{updateChild(){this.updateChildren()},updatePlaceholder(){this.setPlaceholderHeight()}},created(){this.children=[]},mounted(){this.setPlaceholderHeight()},methods:{updateChildren(){this.children.length&&this.children.map((e=>e.updateFromParent()))},async setPlaceholderHeight(){this.fixed&&this.placeholder&&(await uni.$u.sleep(20),this.$uGetRect(".u-tabbar__content").then((({height:e=50})=>{this.placeholderHeight=e})))}}},[["render",function(e,t,a,o,r,u){const d=_,c=g(y("u-safe-bottom"),H);return l(),s(d,{class:"u-tabbar"},{default:i((()=>[f(d,{class:b(["u-tabbar__content",[e.border&&"u-border-top",e.fixed&&"u-tabbar--fixed"]]),ref:"u-tabbar__content",onTouchmove:S(e.noop,["stop","prevent"]),style:h([u.tabbarStyle])},{default:i((()=>[f(d,{class:"u-tabbar__content__item-wrapper"},{default:i((()=>[n(e.$slots,"default",{},void 0,!0)])),_:3}),e.safeAreaInsetBottom?(l(),s(c,{key:0})):p("",!0)])),_:3},8,["onTouchmove","class","style"]),e.placeholder?(l(),s(d,{key:0,class:"u-tabbar__placeholder",style:h({height:r.placeholderHeight+"px"})},null,8,["style"])):p("",!0)])),_:3})}],["__scopeId","data-v-b564ac71"]]),T=P(C({__name:"tabbar",setup(e){const t=k((()=>w().tabbar)),a=k((()=>"/"+I())),o=e=>{N({url:`${e}`})};return(e,r)=>{const n=g(y("u-tabbar-item"),j),u=g(y("u-tabbar"),M),d=_;return l(),v(x,null,[$(t)?(l(),s(u,{key:0,value:$(a),onChange:o,zIndex:"9999",fixed:!0,placeholder:!0,safeAreaInsetBottom:!0,"inactive-color":$(t).textColor,"active-color":$(t).textHoverColor},{default:i((()=>[(l(!0),v(x,null,B($(t).list,(e=>(l(),v(x,null,[1==$(t).type?(l(),s(n,{key:0,style:h({"background-color":$(t).backgroundColor}),text:e.text,icon:$(D)($(a)==e.link.url?e.iconSelectPath:e.iconPath),name:e.link.url},null,8,["style","text","icon","name"])):p("",!0),2==$(t).type?(l(),s(n,{key:1,style:h({"background-color":$(t).backgroundColor}),icon:$(D)($(a)==e.link.url?e.iconSelectPath:e.iconPath),name:e.link.url},null,8,["style","icon","name"])):p("",!0),3==$(t).type?(l(),s(n,{key:2,style:h({"background-color":$(t).backgroundColor}),text:e.text,name:e.link.url},null,8,["style","text","name"])):p("",!0)],64)))),256))])),_:1},8,["value","inactive-color","active-color"])):p("",!0),f(d,{class:"tab-bar-placeholder"})],64)}}}),[["__scopeId","data-v-cc0d2f65"]]);export{z as _,T as a}; diff --git a/niucloud/public/wap/assets/u-action-sheet.acbdcbe5.js b/niucloud/public/wap/assets/u-action-sheet.1e4dbfee.js similarity index 85% rename from niucloud/public/wap/assets/u-action-sheet.acbdcbe5.js rename to niucloud/public/wap/assets/u-action-sheet.1e4dbfee.js index 24869df7a..af3689da9 100644 --- a/niucloud/public/wap/assets/u-action-sheet.acbdcbe5.js +++ b/niucloud/public/wap/assets/u-action-sheet.1e4dbfee.js @@ -1 +1 @@ -import{_ as e}from"./u-icon.461524ba.js";import{x as t,y as l,z as a,m as s,p as i,h as o,i as n,w as c,j as r,F as u,B as d,E as p,n as m,C as _,D as y,q as g,H as h,G as f,M as S,O as b,N as k}from"./index-5bb08350.js";import{_ as $}from"./u-line.0c46076e.js";import{_ as v}from"./_plugin-vue_export-helper.1b428a4d.js";import{_ as C}from"./u-loading-icon.2e89024b.js";import{_ as B}from"./u-popup.7d705de0.js";const T={props:{lang:String,sessionFrom:String,sendMessageTitle:String,sendMessagePath:String,sendMessageImg:String,showMessageCard:Boolean,appParameter:String,formType:String,openType:String}},x={props:{openType:String},methods:{onGetUserInfo(e){this.$emit("getuserinfo",e.detail)},onContact(e){this.$emit("contact",e.detail)},onGetPhoneNumber(e){this.$emit("getphonenumber",e.detail)},onError(e){this.$emit("error",e.detail)},onLaunchApp(e){this.$emit("launchapp",e.detail)},onOpenSetting(e){this.$emit("opensetting",e.detail)}}};const w=v({name:"u-cell",data:()=>({}),mixins:[l,a,{props:{title:{type:[String,Number],default:t.cell.title},label:{type:[String,Number],default:t.cell.label},value:{type:[String,Number],default:t.cell.value},icon:{type:String,default:t.cell.icon},disabled:{type:Boolean,default:t.cell.disabled},border:{type:Boolean,default:t.cell.border},center:{type:Boolean,default:t.cell.center},url:{type:String,default:t.cell.url},linkType:{type:String,default:t.cell.linkType},clickable:{type:Boolean,default:t.cell.clickable},isLink:{type:Boolean,default:t.cell.isLink},required:{type:Boolean,default:t.cell.required},rightIcon:{type:String,default:t.cell.rightIcon},arrowDirection:{type:String,default:t.cell.arrowDirection},iconStyle:{type:[Object,String],default:()=>uni.$u.props.cell.iconStyle},rightIconStyle:{type:[Object,String],default:()=>uni.$u.props.cell.rightIconStyle},titleStyle:{type:[Object,String],default:()=>uni.$u.props.cell.titleStyle},size:{type:String,default:t.cell.size},stop:{type:Boolean,default:t.cell.stop},name:{type:[Number,String],default:t.cell.name}}}],computed:{titleTextStyle(){return uni.$u.addStyle(this.titleStyle)}},emits:["click"],methods:{clickHandler(e){this.disabled||(this.$emit("click",{name:this.name}),this.openPage(),this.stop&&this.preventEvent(e))}}},[["render",function(t,l,a,f,S,b){const k=s(i("u-icon"),e),v=g,C=h,B=s(i("u-line"),$);return o(),n(v,{class:u(["u-cell",[t.customClass]]),style:m([t.$u.addStyle(t.customStyle)]),"hover-class":t.disabled||!t.clickable&&!t.isLink?"":"u-cell--clickable","hover-stay-time":250,onClick:b.clickHandler},{default:c((()=>[r(v,{class:u(["u-cell__body",[t.center&&"u-cell--center","large"===t.size&&"u-cell__body--large"]])},{default:c((()=>[r(v,{class:"u-cell__body__content"},{default:c((()=>[r(v,{class:"u-cell__left-icon-wrap"},{default:c((()=>[d(t.$slots,"icon",{},(()=>[t.icon?(o(),n(k,{key:0,name:t.icon,"custom-style":t.iconStyle,size:"large"===t.size?22:18},null,8,["name","custom-style","size"])):p("",!0)]),!0)])),_:3}),r(v,{class:"u-cell__title"},{default:c((()=>[d(t.$slots,"title",{},(()=>[t.title?(o(),n(C,{key:0,class:u(["u-cell__title-text",[t.disabled&&"u-cell--disabled","large"===t.size&&"u-cell__title-text--large"]]),style:m([b.titleTextStyle])},{default:c((()=>[_(y(t.title),1)])),_:1},8,["style","class"])):p("",!0)]),!0),d(t.$slots,"label",{},(()=>[t.label?(o(),n(C,{key:0,class:u(["u-cell__label",[t.disabled&&"u-cell--disabled","large"===t.size&&"u-cell__label--large"]])},{default:c((()=>[_(y(t.label),1)])),_:1},8,["class"])):p("",!0)]),!0)])),_:3})])),_:3}),d(t.$slots,"value",{},(()=>[t.$u.test.empty(t.value)?p("",!0):(o(),n(C,{key:0,class:u(["u-cell__value",[t.disabled&&"u-cell--disabled","large"===t.size&&"u-cell__value--large"]])},{default:c((()=>[_(y(t.value),1)])),_:1},8,["class"]))]),!0),r(v,{class:u(["u-cell__right-icon-wrap",[`u-cell__right-icon-wrap--${t.arrowDirection}`]])},{default:c((()=>[d(t.$slots,"right-icon",{},(()=>[t.isLink?(o(),n(k,{key:0,name:t.rightIcon,"custom-style":t.rightIconStyle,color:t.disabled?"#c8c9cc":"info",size:"large"===t.size?18:16},null,8,["name","custom-style","color","size"])):p("",!0)]),!0)])),_:3},8,["class"])])),_:3},8,["class"]),t.border?(o(),n(B,{key:0})):p("",!0)])),_:3},8,["class","style","hover-class","onClick"])}],["__scopeId","data-v-ce3eecec"]]);const z=v({name:"u-cell-group",mixins:[l,a,{props:{title:{type:String,default:t.cellGroup.title},border:{type:Boolean,default:t.cellGroup.border}}}]},[["render",function(e,t,l,a,f,S){const b=h,k=g,v=s(i("u-line"),$);return o(),n(k,{style:m([e.$u.addStyle(e.customStyle)]),class:u([[e.customClass],"u-cell-group"])},{default:c((()=>[e.title?(o(),n(k,{key:0,class:"u-cell-group__title"},{default:c((()=>[d(e.$slots,"title",{},(()=>[r(b,{class:"u-cell-group__title__text"},{default:c((()=>[_(y(e.title),1)])),_:1})]),!0)])),_:3})):p("",!0),r(k,{class:"u-cell-group__wrapper"},{default:c((()=>[e.border?(o(),n(v,{key:0})):p("",!0),d(e.$slots,"default",{},void 0,!0)])),_:3})])),_:3},8,["style","class"])}],["__scopeId","data-v-bfc8927a"]]);const I=v({name:"u-gap",mixins:[l,a,{props:{bgColor:{type:String,default:t.gap.bgColor},height:{type:[String,Number],default:t.gap.height},marginTop:{type:[String,Number],default:t.gap.marginTop},marginBottom:{type:[String,Number],default:t.gap.marginBottom}}}],computed:{gapStyle(){const e={backgroundColor:this.bgColor,height:uni.$u.addUnit(this.height),marginTop:uni.$u.addUnit(this.marginTop),marginBottom:uni.$u.addUnit(this.marginBottom)};return uni.$u.deepMerge(e,uni.$u.addStyle(this.customStyle))}}},[["render",function(e,t,l,a,s,i){const c=g;return o(),n(c,{class:"u-gap",style:m([i.gapStyle])},null,8,["style"])}],["__scopeId","data-v-148cef11"]]);const O=v({name:"u-action-sheet",mixins:[x,T,a,{props:{show:{type:Boolean,default:t.actionSheet.show},title:{type:String,default:t.actionSheet.title},description:{type:String,default:t.actionSheet.description},actions:{type:Array,default:t.actionSheet.actions},cancelText:{type:String,default:t.actionSheet.cancelText},closeOnClickAction:{type:Boolean,default:t.actionSheet.closeOnClickAction},safeAreaInsetBottom:{type:Boolean,default:t.actionSheet.safeAreaInsetBottom},openType:{type:String,default:t.actionSheet.openType},closeOnClickOverlay:{type:Boolean,default:t.actionSheet.closeOnClickOverlay},round:{type:[Boolean,String,Number],default:t.actionSheet.round}}}],data:()=>({}),computed:{itemStyle(){return e=>{let t={};return this.actions[e].color&&(t.color=this.actions[e].color),this.actions[e].fontSize&&(t.fontSize=uni.$u.addUnit(this.actions[e].fontSize)),this.actions[e].disabled&&(t.color="#c0c4cc"),t}}},methods:{closeHandler(){this.closeOnClickOverlay&&this.$emit("close")},cancel(){this.$emit("close")},selectHandler(e){const t=this.actions[e];!t||t.disabled||t.loading||(this.$emit("select",t),this.closeOnClickAction&&this.$emit("close"))}}},[["render",function(t,l,a,u,v,T){const x=h,w=s(i("u-icon"),e),z=g,O=s(i("u-line"),$),j=s(i("u-loading-icon"),C),A=s(i("u-gap"),I),N=s(i("u-popup"),B);return o(),n(N,{show:t.show,mode:"bottom",onClose:T.closeHandler,safeAreaInsetBottom:t.safeAreaInsetBottom,round:t.round},{default:c((()=>[r(z,{class:"u-action-sheet"},{default:c((()=>[t.title?(o(),n(z,{key:0,class:"u-action-sheet__header"},{default:c((()=>[r(x,{class:"u-action-sheet__header__title u-line-1"},{default:c((()=>[_(y(t.title),1)])),_:1}),r(z,{class:"u-action-sheet__header__icon-wrap",onClick:f(T.cancel,["stop"])},{default:c((()=>[r(w,{name:"close",size:"17",color:"#c8c9cc",bold:""})])),_:1},8,["onClick"])])),_:1})):p("",!0),t.description?(o(),n(x,{key:1,class:"u-action-sheet__description",style:m([{marginTop:`${t.title&&t.description?0:"18px"}`}])},{default:c((()=>[_(y(t.description),1)])),_:1},8,["style"])):p("",!0),d(t.$slots,"default",{},(()=>[t.description?(o(),n(O,{key:0})):p("",!0),r(z,{class:"u-action-sheet__item-wrap"},{default:c((()=>[(o(!0),S(b,null,k(t.actions,((e,l)=>(o(),n(z,{key:l},{default:c((()=>[r(z,{class:"u-action-sheet__item-wrap__item",onClick:f((e=>T.selectHandler(l)),["stop"]),"hover-class":e.disabled||e.loading?"":"u-action-sheet--hover","hover-stay-time":150},{default:c((()=>[e.loading?(o(),n(j,{key:1,"custom-class":"van-action-sheet__loading",size:"18",mode:"circle"})):(o(),S(b,{key:0},[r(x,{class:"u-action-sheet__item-wrap__item__name",style:m([T.itemStyle(l)])},{default:c((()=>[_(y(e.name),1)])),_:2},1032,["style"]),e.subname?(o(),n(x,{key:0,class:"u-action-sheet__item-wrap__item__subname"},{default:c((()=>[_(y(e.subname),1)])),_:2},1024)):p("",!0)],64))])),_:2},1032,["onClick","hover-class"]),l!==t.actions.length-1?(o(),n(O,{key:0})):p("",!0)])),_:2},1024)))),128))])),_:1})]),!0),t.cancelText?(o(),n(A,{key:2,bgColor:"#eaeaec",height:"6"})):p("",!0),r(z,{"hover-class":"u-action-sheet--hover"},{default:c((()=>[t.cancelText?(o(),n(x,{key:0,onTouchmove:l[0]||(l[0]=f((()=>{}),["stop","prevent"])),"hover-stay-time":150,class:"u-action-sheet__cancel-text",onClick:T.cancel},{default:c((()=>[_(y(t.cancelText),1)])),_:1},8,["onClick"])):p("",!0)])),_:1})])),_:3})])),_:3},8,["show","onClose","safeAreaInsetBottom","round"])}],["__scopeId","data-v-37c6ec45"]]);export{w as _,z as a,O as b}; +import{_ as e}from"./u-icon.f5369555.js";import{y as t,z as l,A as a,p as s,q as i,h as o,i as n,w as c,j as r,F as u,C as d,m as p,n as m,D as _,E as y,t as g,H as h,G as f,M as S,O as b,N as k}from"./index-15eacd31.js";import{_ as $}from"./u-line.bb8d1497.js";import{_ as v}from"./_plugin-vue_export-helper.1b428a4d.js";import{_ as C}from"./u-loading-icon.ea8c9ece.js";import{_ as B}from"./u-popup.8a491625.js";const T={props:{lang:String,sessionFrom:String,sendMessageTitle:String,sendMessagePath:String,sendMessageImg:String,showMessageCard:Boolean,appParameter:String,formType:String,openType:String}},w={props:{openType:String},methods:{onGetUserInfo(e){this.$emit("getuserinfo",e.detail)},onContact(e){this.$emit("contact",e.detail)},onGetPhoneNumber(e){this.$emit("getphonenumber",e.detail)},onError(e){this.$emit("error",e.detail)},onLaunchApp(e){this.$emit("launchapp",e.detail)},onOpenSetting(e){this.$emit("opensetting",e.detail)}}};const x=v({name:"u-cell",data:()=>({}),mixins:[l,a,{props:{title:{type:[String,Number],default:t.cell.title},label:{type:[String,Number],default:t.cell.label},value:{type:[String,Number],default:t.cell.value},icon:{type:String,default:t.cell.icon},disabled:{type:Boolean,default:t.cell.disabled},border:{type:Boolean,default:t.cell.border},center:{type:Boolean,default:t.cell.center},url:{type:String,default:t.cell.url},linkType:{type:String,default:t.cell.linkType},clickable:{type:Boolean,default:t.cell.clickable},isLink:{type:Boolean,default:t.cell.isLink},required:{type:Boolean,default:t.cell.required},rightIcon:{type:String,default:t.cell.rightIcon},arrowDirection:{type:String,default:t.cell.arrowDirection},iconStyle:{type:[Object,String],default:()=>uni.$u.props.cell.iconStyle},rightIconStyle:{type:[Object,String],default:()=>uni.$u.props.cell.rightIconStyle},titleStyle:{type:[Object,String],default:()=>uni.$u.props.cell.titleStyle},size:{type:String,default:t.cell.size},stop:{type:Boolean,default:t.cell.stop},name:{type:[Number,String],default:t.cell.name}}}],computed:{titleTextStyle(){return uni.$u.addStyle(this.titleStyle)}},emits:["click"],methods:{clickHandler(e){this.disabled||(this.$emit("click",{name:this.name}),this.openPage(),this.stop&&this.preventEvent(e))}}},[["render",function(t,l,a,f,S,b){const k=s(i("u-icon"),e),v=g,C=h,B=s(i("u-line"),$);return o(),n(v,{class:u(["u-cell",[t.customClass]]),style:m([t.$u.addStyle(t.customStyle)]),"hover-class":t.disabled||!t.clickable&&!t.isLink?"":"u-cell--clickable","hover-stay-time":250,onClick:b.clickHandler},{default:c((()=>[r(v,{class:u(["u-cell__body",[t.center&&"u-cell--center","large"===t.size&&"u-cell__body--large"]])},{default:c((()=>[r(v,{class:"u-cell__body__content"},{default:c((()=>[r(v,{class:"u-cell__left-icon-wrap"},{default:c((()=>[d(t.$slots,"icon",{},(()=>[t.icon?(o(),n(k,{key:0,name:t.icon,"custom-style":t.iconStyle,size:"large"===t.size?22:18},null,8,["name","custom-style","size"])):p("",!0)]),!0)])),_:3}),r(v,{class:"u-cell__title"},{default:c((()=>[d(t.$slots,"title",{},(()=>[t.title?(o(),n(C,{key:0,class:u(["u-cell__title-text",[t.disabled&&"u-cell--disabled","large"===t.size&&"u-cell__title-text--large"]]),style:m([b.titleTextStyle])},{default:c((()=>[_(y(t.title),1)])),_:1},8,["style","class"])):p("",!0)]),!0),d(t.$slots,"label",{},(()=>[t.label?(o(),n(C,{key:0,class:u(["u-cell__label",[t.disabled&&"u-cell--disabled","large"===t.size&&"u-cell__label--large"]])},{default:c((()=>[_(y(t.label),1)])),_:1},8,["class"])):p("",!0)]),!0)])),_:3})])),_:3}),d(t.$slots,"value",{},(()=>[t.$u.test.empty(t.value)?p("",!0):(o(),n(C,{key:0,class:u(["u-cell__value",[t.disabled&&"u-cell--disabled","large"===t.size&&"u-cell__value--large"]])},{default:c((()=>[_(y(t.value),1)])),_:1},8,["class"]))]),!0),r(v,{class:u(["u-cell__right-icon-wrap",[`u-cell__right-icon-wrap--${t.arrowDirection}`]])},{default:c((()=>[d(t.$slots,"right-icon",{},(()=>[t.isLink?(o(),n(k,{key:0,name:t.rightIcon,"custom-style":t.rightIconStyle,color:t.disabled?"#c8c9cc":"info",size:"large"===t.size?18:16},null,8,["name","custom-style","color","size"])):p("",!0)]),!0)])),_:3},8,["class"])])),_:3},8,["class"]),t.border?(o(),n(B,{key:0})):p("",!0)])),_:3},8,["class","style","hover-class","onClick"])}],["__scopeId","data-v-ce3eecec"]]);const z=v({name:"u-cell-group",mixins:[l,a,{props:{title:{type:String,default:t.cellGroup.title},border:{type:Boolean,default:t.cellGroup.border}}}]},[["render",function(e,t,l,a,f,S){const b=h,k=g,v=s(i("u-line"),$);return o(),n(k,{style:m([e.$u.addStyle(e.customStyle)]),class:u([[e.customClass],"u-cell-group"])},{default:c((()=>[e.title?(o(),n(k,{key:0,class:"u-cell-group__title"},{default:c((()=>[d(e.$slots,"title",{},(()=>[r(b,{class:"u-cell-group__title__text"},{default:c((()=>[_(y(e.title),1)])),_:1})]),!0)])),_:3})):p("",!0),r(k,{class:"u-cell-group__wrapper"},{default:c((()=>[e.border?(o(),n(v,{key:0})):p("",!0),d(e.$slots,"default",{},void 0,!0)])),_:3})])),_:3},8,["style","class"])}],["__scopeId","data-v-bfc8927a"]]);const I=v({name:"u-gap",mixins:[l,a,{props:{bgColor:{type:String,default:t.gap.bgColor},height:{type:[String,Number],default:t.gap.height},marginTop:{type:[String,Number],default:t.gap.marginTop},marginBottom:{type:[String,Number],default:t.gap.marginBottom}}}],computed:{gapStyle(){const e={backgroundColor:this.bgColor,height:uni.$u.addUnit(this.height),marginTop:uni.$u.addUnit(this.marginTop),marginBottom:uni.$u.addUnit(this.marginBottom)};return uni.$u.deepMerge(e,uni.$u.addStyle(this.customStyle))}}},[["render",function(e,t,l,a,s,i){const c=g;return o(),n(c,{class:"u-gap",style:m([i.gapStyle])},null,8,["style"])}],["__scopeId","data-v-148cef11"]]);const O=v({name:"u-action-sheet",mixins:[w,T,a,{props:{show:{type:Boolean,default:t.actionSheet.show},title:{type:String,default:t.actionSheet.title},description:{type:String,default:t.actionSheet.description},actions:{type:Array,default:t.actionSheet.actions},cancelText:{type:String,default:t.actionSheet.cancelText},closeOnClickAction:{type:Boolean,default:t.actionSheet.closeOnClickAction},safeAreaInsetBottom:{type:Boolean,default:t.actionSheet.safeAreaInsetBottom},openType:{type:String,default:t.actionSheet.openType},closeOnClickOverlay:{type:Boolean,default:t.actionSheet.closeOnClickOverlay},round:{type:[Boolean,String,Number],default:t.actionSheet.round}}}],data:()=>({}),computed:{itemStyle(){return e=>{let t={};return this.actions[e].color&&(t.color=this.actions[e].color),this.actions[e].fontSize&&(t.fontSize=uni.$u.addUnit(this.actions[e].fontSize)),this.actions[e].disabled&&(t.color="#c0c4cc"),t}}},methods:{closeHandler(){this.closeOnClickOverlay&&this.$emit("close")},cancel(){this.$emit("close")},selectHandler(e){const t=this.actions[e];!t||t.disabled||t.loading||(this.$emit("select",t),this.closeOnClickAction&&this.$emit("close"))}}},[["render",function(t,l,a,u,v,T){const w=h,x=s(i("u-icon"),e),z=g,O=s(i("u-line"),$),A=s(i("u-loading-icon"),C),j=s(i("u-gap"),I),N=s(i("u-popup"),B);return o(),n(N,{show:t.show,mode:"bottom",onClose:T.closeHandler,safeAreaInsetBottom:t.safeAreaInsetBottom,round:t.round},{default:c((()=>[r(z,{class:"u-action-sheet"},{default:c((()=>[t.title?(o(),n(z,{key:0,class:"u-action-sheet__header"},{default:c((()=>[r(w,{class:"u-action-sheet__header__title u-line-1"},{default:c((()=>[_(y(t.title),1)])),_:1}),r(z,{class:"u-action-sheet__header__icon-wrap",onClick:f(T.cancel,["stop"])},{default:c((()=>[r(x,{name:"close",size:"17",color:"#c8c9cc",bold:""})])),_:1},8,["onClick"])])),_:1})):p("",!0),t.description?(o(),n(w,{key:1,class:"u-action-sheet__description",style:m([{marginTop:`${t.title&&t.description?0:"18px"}`}])},{default:c((()=>[_(y(t.description),1)])),_:1},8,["style"])):p("",!0),d(t.$slots,"default",{},(()=>[t.description?(o(),n(O,{key:0})):p("",!0),r(z,{class:"u-action-sheet__item-wrap"},{default:c((()=>[(o(!0),S(b,null,k(t.actions,((e,l)=>(o(),n(z,{key:l},{default:c((()=>[r(z,{class:"u-action-sheet__item-wrap__item",onClick:f((e=>T.selectHandler(l)),["stop"]),"hover-class":e.disabled||e.loading?"":"u-action-sheet--hover","hover-stay-time":150},{default:c((()=>[e.loading?(o(),n(A,{key:1,"custom-class":"van-action-sheet__loading",size:"18",mode:"circle"})):(o(),S(b,{key:0},[r(w,{class:"u-action-sheet__item-wrap__item__name",style:m([T.itemStyle(l)])},{default:c((()=>[_(y(e.name),1)])),_:2},1032,["style"]),e.subname?(o(),n(w,{key:0,class:"u-action-sheet__item-wrap__item__subname"},{default:c((()=>[_(y(e.subname),1)])),_:2},1024)):p("",!0)],64))])),_:2},1032,["onClick","hover-class"]),l!==t.actions.length-1?(o(),n(O,{key:0})):p("",!0)])),_:2},1024)))),128))])),_:1})]),!0),t.cancelText?(o(),n(j,{key:2,bgColor:"#eaeaec",height:"6"})):p("",!0),r(z,{"hover-class":"u-action-sheet--hover"},{default:c((()=>[t.cancelText?(o(),n(w,{key:0,onTouchmove:l[0]||(l[0]=f((()=>{}),["stop","prevent"])),"hover-stay-time":150,class:"u-action-sheet__cancel-text",onClick:T.cancel},{default:c((()=>[_(y(t.cancelText),1)])),_:1},8,["onClick"])):p("",!0)])),_:1})])),_:3})])),_:3},8,["show","onClose","safeAreaInsetBottom","round"])}],["__scopeId","data-v-37c6ec45"]]);export{x as _,z as a,O as b}; diff --git a/niucloud/public/wap/assets/u-avatar.0ea3924d.js b/niucloud/public/wap/assets/u-avatar.0ea3924d.js deleted file mode 100644 index 1c2f910b7..000000000 --- a/niucloud/public/wap/assets/u-avatar.0ea3924d.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as A}from"./u-icon.461524ba.js";import{x as e,y as t,z as a,h as n,i as l,w as o,C as i,D as r,G as s,n as u,H as c,aU as d,m as f,p,F as m,E as y,j as g,q as x,aV as h,ab as S,B as b,M as v,O as k,a1 as I}from"./index-5bb08350.js";import{_ as B}from"./_plugin-vue_export-helper.1b428a4d.js";const H=B({name:"u-link",mixins:[t,a,{props:{color:{type:String,default:e.link.color},fontSize:{type:[String,Number],default:e.link.fontSize},underLine:{type:Boolean,default:e.link.underLine},href:{type:String,default:e.link.href},mpTips:{type:String,default:e.link.mpTips},lineColor:{type:String,default:e.link.lineColor},text:{type:String,default:e.link.text}}}],computed:{linkStyle(){return{color:this.color,fontSize:uni.$u.addUnit(this.fontSize),lineHeight:uni.$u.addUnit(uni.$u.getPx(this.fontSize)+2),textDecoration:this.underLine?"underline":"none"}}},methods:{openLink(){window.open(this.href),this.$emit("click")}}},[["render",function(A,e,t,a,d,f){const p=c;return n(),l(p,{class:"u-link",onClick:s(f.openLink,["stop"]),style:u([f.linkStyle,A.$u.addStyle(A.customStyle)])},{default:o((()=>[i(r(A.text),1)])),_:1},8,["onClick","style"])}],["__scopeId","data-v-a339e5f1"]]),R={computed:{value(){const{text:A,mode:e,format:t,href:a}=this;return"price"===e?(/^\d+(\.\d+)?$/.test(A)||uni.$u.error("金额模式下,text参数需要为金额格式"),uni.$u.test.func(t)?t(A):uni.$u.priceFormat(A,2)):"date"===e?(!uni.$u.test.date(A)&&uni.$u.error("日期模式下,text参数需要为日期或时间戳格式"),uni.$u.test.func(t)?t(A):t?uni.$u.timeFormat(A,t):uni.$u.timeFormat(A,"yyyy-mm-dd")):"phone"===e?uni.$u.test.func(t)?t(A):"encrypt"===t?`${A.substr(0,3)}****${A.substr(7)}`:A:"name"===e?("string"!=typeof A&&uni.$u.error("姓名模式下,text参数需要为字符串格式"),uni.$u.test.func(t)?t(A):"encrypt"===t?this.formatName(A):A):"link"===e?(!uni.$u.test.url(a)&&uni.$u.error("超链接模式下,href参数需要为URL格式"),A):A}},methods:{formatName(A){let e="";if(2===A.length)e=A.substr(0,1)+"*";else if(A.length>2){let t="";for(let e=0,a=A.length-2;e!1,isMp:()=>!1},data:()=>({}),methods:{clickHandler(){this.call&&"phone"===this.mode&&d({phoneNumber:this.text}),this.$emit("click")}}},[["render",function(e,t,a,s,d,S){const b=c,v=f(p("u-icon"),A),k=x,I=f(p("u-link"),H),B=h;return e.show?(n(),l(k,{key:0,class:m(["u-text",[]]),style:u({margin:e.margin,justifyContent:"left"===e.align?"flex-start":"center"===e.align?"center":"flex-end"}),onClick:S.clickHandler},{default:o((()=>["price"===e.mode?(n(),l(b,{key:0,class:m(["u-text__price",e.type&&`u-text__value--${e.type}`]),style:u([S.valueStyle])},{default:o((()=>[i("¥")])),_:1},8,["class","style"])):y("",!0),e.prefixIcon?(n(),l(k,{key:1,class:"u-text__prefix-icon"},{default:o((()=>[g(v,{name:e.prefixIcon,customStyle:e.$u.addStyle(e.iconStyle)},null,8,["name","customStyle"])])),_:1})):y("",!0),"link"===e.mode?(n(),l(I,{key:2,text:e.value,href:e.href,underLine:""},null,8,["text","href"])):e.openType&&S.isMp?(n(),l(B,{key:3,class:"u-reset-button u-text__value",style:u([S.valueStyle]),"data-index":e.index,openType:e.openType,onGetuserinfo:e.onGetUserInfo,onContact:e.onContact,onGetphonenumber:e.onGetPhoneNumber,onError:e.onError,onLaunchapp:e.onLaunchApp,onOpensetting:e.onOpenSetting,lang:e.lang,"session-from":e.sessionFrom,"send-message-title":e.sendMessageTitle,"send-message-path":e.sendMessagePath,"send-message-img":e.sendMessageImg,"show-message-card":e.showMessageCard,"app-parameter":e.appParameter},{default:o((()=>[i(r(e.value),1)])),_:1},8,["style","data-index","openType","onGetuserinfo","onContact","onGetphonenumber","onError","onLaunchapp","onOpensetting","lang","session-from","send-message-title","send-message-path","send-message-img","show-message-card","app-parameter"])):(n(),l(b,{key:4,class:m(["u-text__value",[e.type&&`u-text__value--${e.type}`,e.lines&&`u-line-${e.lines}`]]),style:u([S.valueStyle])},{default:o((()=>[i(r(e.value),1)])),_:1},8,["style","class"])),e.suffixIcon?(n(),l(k,{key:5,class:"u-text__suffix-icon"},{default:o((()=>[g(v,{name:e.suffixIcon,customStyle:e.$u.addStyle(e.iconStyle)},null,8,["name","customStyle"])])),_:1})):y("",!0)])),_:1},8,["style","onClick"])):y("",!0)}],["__scopeId","data-v-b9da4249"]])}},[["render",function(A,e,t,a,o,i){const r=S("uvText");return n(),l(r,{type:A.type,show:A.show,text:A.text,prefixIcon:A.prefixIcon,suffixIcon:A.suffixIcon,mode:A.mode,href:A.href,format:A.format,call:A.call,openType:A.openType,bold:A.bold,block:A.block,lines:A.lines,color:A.color,decoration:A.decoration,size:A.size,iconStyle:A.iconStyle,margin:A.margin,lineHeight:A.lineHeight,align:A.align,wordWrap:A.wordWrap,customStyle:A.customStyle},null,8,["type","show","text","prefixIcon","suffixIcon","mode","href","format","call","openType","bold","block","lines","color","decoration","size","iconStyle","margin","lineHeight","align","wordWrap","customStyle"])}]]),G={props:{src:{type:String,default:e.avatar.src},shape:{type:String,default:e.avatar.shape},size:{type:[String,Number],default:e.avatar.size},mode:{type:String,default:e.avatar.mode},text:{type:String,default:e.avatar.text},bgColor:{type:String,default:e.avatar.bgColor},color:{type:String,default:e.avatar.color},fontSize:{type:[String,Number],default:e.avatar.fontSize},icon:{type:String,default:e.avatar.icon},mpAvatar:{type:Boolean,default:e.avatar.mpAvatar},randomBgColor:{type:Boolean,default:e.avatar.randomBgColor},defaultUrl:{type:String,default:e.avatar.defaultUrl},colorIndex:{type:[String,Number],validator:A=>uni.$u.test.range(A,[0,19])||""===A,default:e.avatar.colorIndex},name:{type:String,default:e.avatar.name}}};const M=B({name:"u-avatar",mixins:[t,a,G],data(){return{colors:["#ffb34b","#f2bba9","#f7a196","#f18080","#88a867","#bfbf39","#89c152","#94d554","#f19ec2","#afaae4","#e1b0df","#c38cc1","#72dcdc","#9acdcb","#77b1cc","#448aca","#86cefa","#98d1ee","#73d1f1","#80a7dc"],avatarUrl:this.src,allowMp:!1}},watch:{src:{immediate:!0,handler(A){this.avatarUrl=A,A||this.errorHandler()}}},computed:{imageStyle:()=>({})},created(){this.init()},methods:{init(){},isImg(){return-1!==this.src.indexOf("/")},errorHandler(){this.avatarUrl=this.defaultUrl||"data:image/jpg;base64,/9j/4QAYRXhpZgAASUkqAAgAAAAAAAAAAAAAAP/sABFEdWNreQABAAQAAAA8AAD/4QMraHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wLwA8P3hwYWNrZXQgYmVnaW49Iu+7vyIgaWQ9Ilc1TTBNcENlaGlIenJlU3pOVGN6a2M5ZCI/PiA8eDp4bXBtZXRhIHhtbG5zOng9ImFkb2JlOm5zOm1ldGEvIiB4OnhtcHRrPSJBZG9iZSBYTVAgQ29yZSA1LjMtYzAxMSA2Ni4xNDU2NjEsIDIwMTIvMDIvMDYtMTQ6NTY6MjcgICAgICAgICI+IDxyZGY6UkRGIHhtbG5zOnJkZj0iaHR0cDovL3d3dy53My5vcmcvMTk5OS8wMi8yMi1yZGYtc3ludGF4LW5zIyI+IDxyZGY6RGVzY3JpcHRpb24gcmRmOmFib3V0PSIiIHhtbG5zOnhtcD0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wLyIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bXA6Q3JlYXRvclRvb2w9IkFkb2JlIFBob3Rvc2hvcCBDUzYgKFdpbmRvd3MpIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOjREMEQwRkY0RjgwNDExRUE5OTY2RDgxODY3NkJFODMxIiB4bXBNTTpEb2N1bWVudElEPSJ4bXAuZGlkOjREMEQwRkY1RjgwNDExRUE5OTY2RDgxODY3NkJFODMxIj4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6NEQwRDBGRjJGODA0MTFFQTk5NjZEODE4Njc2QkU4MzEiIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6NEQwRDBGRjNGODA0MTFFQTk5NjZEODE4Njc2QkU4MzEiLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz7/7gAOQWRvYmUAZMAAAAAB/9sAhAAGBAQEBQQGBQUGCQYFBgkLCAYGCAsMCgoLCgoMEAwMDAwMDBAMDg8QDw4MExMUFBMTHBsbGxwfHx8fHx8fHx8fAQcHBw0MDRgQEBgaFREVGh8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx//wAARCADIAMgDAREAAhEBAxEB/8QAcQABAQEAAwEBAAAAAAAAAAAAAAUEAQMGAgcBAQAAAAAAAAAAAAAAAAAAAAAQAAIBAwICBgkDBQAAAAAAAAABAhEDBCEFMVFBYXGREiKBscHRMkJSEyOh4XLxYjNDFBEBAAAAAAAAAAAAAAAAAAAAAP/aAAwDAQACEQMRAD8A/fAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHbHFyZ/Dam+yLA+Z2L0Pjtyj2poD4AAAAAAAAAAAAAAAAAAAAAAAAKWFs9y6lcvvwQeqj8z9wFaziY1n/HbUX9XF97A7QAGXI23EvJ1goyfzR0YEfN269jeZ+a03pNe0DIAAAAAAAAAAAAAAAAAAAACvtO3RcVkXlWutuL9YFYAAAAAOJRjKLjJVi9GmB5/csH/mu1h/in8PU+QGMAAAAAAAAAAAAAAAAAAaMDG/6MmMH8C80+xAelSSVFolwQAAAAAAAHVlWI37ErUulaPk+hgeYnCUJuElSUXRrrQHAAAAAAAAAAAAAAAAABa2Oz4bM7r4zdF2ICmAAAAAAAAAg7zZ8GX41wuJP0rRgYAAAAAAAAAAAAAAAAAD0m2R8ODaXU33tsDSAAAAAAAAAlb9HyWZcnJd9PcBHAAAAAAAAAAAAAAAAAPS7e64Vn+KA0AAAAAAAAAJm+v8Ftf3ewCKAAAAAAAAAAAAAAAAAX9muqeGo9NttP06+0DcAAAAAAAAAjb7dTu2ra+VOT9P8AQCWAAAAAAAAAAAAAAAAAUNmyPt5Ltv4bui/kuAF0AAAAAAADiUlGLlJ0SVW+oDzOXfd/Ind6JPRdS0QHSAAAAAAAAAAAAAAAAAE2nVaNcGB6Lbs6OTao9LsF51z60BrAAAAAABJ3jOVHjW3r/sa9QEgAAAAAAAAAAAAAAAAAAAPu1duWriuW34ZR4MC9hbnZyEoy8l36XwfYBsAAADaSq9EuLAlZ+7xSdrGdW9Hc5dgEdtt1erfFgAAAAAAAAAAAAAAAAADVjbblX6NR8MH80tEBRs7HYivyzlN8lovaBPzduvY0m6eK10TXtAyAarO55lpJK54orolr+4GqO/Xaea1FvqbXvA+Z77kNeW3GPbV+4DJfzcm/pcm3H6Vou5AdAFLC2ed2Pjv1txa8sV8T6wOL+yZEKu1JXFy4MDBOE4ScZxcZLinoB8gAAAAAAAAAAAB242LeyJ+C3GvN9C7QLmJtePYpKS+5c+p8F2IDYAANJqj1T4oCfk7Nj3G5Wn9qXJax7gJ93Z82D8sVNc4v30A6Xg5i42Z+iLfqARwcyT0sz9MWvWBps7LlTf5Grce9/oBTxdtxseklHxT+uWr9AGoAB138ezfj4bsFJdD6V2MCPm7RdtJzs1uW1xXzL3gTgAAAAAAAAADRhYc8q74I6RWs5ckB6GxYtWLat21SK731sDsAAAAAAAAAAAAAAAASt021NO/YjrxuQXT1oCOAAAAAAABzGLlJRSq26JAelwsWONYjbXxcZvmwO8AAAAAAAAAAAAAAAAAAef3TEWPkVivx3NY9T6UBiAAAAAABo2+VmGXblddIJ8eivRUD0oAAAAAAAAAAAAAAAAAAAYt4tKeFKVNYNSXfRgefAAAAAAAAr7VuSSWPedKaW5v1MCsAAAAAAAAAAAAAAAAAAIe6bj96Ts2n+JPzSXzP3ATgAAAAAAAAFbbt1UUrOQ9FpC4/UwK6aaqtU+DAAAAAAAAAAAAAAA4lKMIuUmoxWrb4ARNx3R3q2rLpa4Sl0y/YCcAAAAAAAAAAANmFud7G8r89r6X0dgFvGzLGRGtuWvTF6NAdwAAAAAAAAAAAy5W442PVN+K59EePp5ARMvOv5MvO6QXCC4AZwAAAAAAAAAAAAAcxlKLUotprg1owN+PvORborq+7Hnwl3gUbO74VzRydt8pKn68ANcJwmqwkpLmnUDkAAAAfNy9atqtyagut0AxXt5xIV8Fbj6lRd7Am5G65V6qUvtwfyx94GMAAAAAAAAAAAAAAAAAAAOU2nVOj5gdsc3LiqRvTpyqwOxbnnrhdfpSfrQB7pnv/AGvuS9gHXPMy5/Fem1yq0v0A6W29XqwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAf//Z"},clickHandler(){this.$emit("click",this.name)}}},[["render",function(e,t,a,i,r,s){const c=f(p("u-icon"),A),d=f(p("u--text"),w),y=I,g=x;return n(),l(g,{class:m(["u-avatar",[`u-avatar--${e.shape}`]]),style:u([{backgroundColor:e.text||e.icon?e.randomBgColor?r.colors[""!==e.colorIndex?e.colorIndex:e.$u.random(0,19)]:e.bgColor:"transparent",width:e.$u.addUnit(e.size),height:e.$u.addUnit(e.size)},e.$u.addStyle(e.customStyle)]),onClick:s.clickHandler},{default:o((()=>[b(e.$slots,"default",{},(()=>[e.mpAvatar&&r.allowMp?(n(),v(k,{key:0},[],64)):e.icon?(n(),l(c,{key:1,name:e.icon,size:e.fontSize,color:e.color},null,8,["name","size","color"])):e.text?(n(),l(d,{key:2,text:e.text,size:e.fontSize,color:e.color,align:"center",customStyle:"justify-content: center"},null,8,["text","size","color"])):(n(),l(y,{key:3,class:m(["u-avatar__image",[`u-avatar__image--${e.shape}`]]),src:r.avatarUrl||e.defaultUrl,mode:e.mode,onError:s.errorHandler,style:u([{width:e.$u.addUnit(e.size),height:e.$u.addUnit(e.size)}])},null,8,["class","src","mode","onError","style"]))]),!0)])),_:3},8,["class","style","onClick"])}],["__scopeId","data-v-03b4cb4d"]]);export{M as _}; diff --git a/niucloud/public/wap/assets/u-avatar.ddef1faa.js b/niucloud/public/wap/assets/u-avatar.ddef1faa.js new file mode 100644 index 000000000..d68f254c1 --- /dev/null +++ b/niucloud/public/wap/assets/u-avatar.ddef1faa.js @@ -0,0 +1 @@ +import{_ as A}from"./u-icon.f5369555.js";import{y as e,z as t,A as a,h as n,i as l,w as o,D as i,E as r,G as s,n as u,H as c,aW as d,p as f,q as p,F as m,m as y,j as g,t as x,aX as h,ab as S,C as b,M as v,O as k,a1 as I}from"./index-15eacd31.js";import{_ as H}from"./_plugin-vue_export-helper.1b428a4d.js";const R=H({name:"u-link",mixins:[t,a,{props:{color:{type:String,default:e.link.color},fontSize:{type:[String,Number],default:e.link.fontSize},underLine:{type:Boolean,default:e.link.underLine},href:{type:String,default:e.link.href},mpTips:{type:String,default:e.link.mpTips},lineColor:{type:String,default:e.link.lineColor},text:{type:String,default:e.link.text}}}],computed:{linkStyle(){return{color:this.color,fontSize:uni.$u.addUnit(this.fontSize),lineHeight:uni.$u.addUnit(uni.$u.getPx(this.fontSize)+2),textDecoration:this.underLine?"underline":"none"}}},methods:{openLink(){window.open(this.href),this.$emit("click")}}},[["render",function(A,e,t,a,d,f){const p=c;return n(),l(p,{class:"u-link",onClick:s(f.openLink,["stop"]),style:u([f.linkStyle,A.$u.addStyle(A.customStyle)])},{default:o((()=>[i(r(A.text),1)])),_:1},8,["onClick","style"])}],["__scopeId","data-v-a339e5f1"]]),B={computed:{value(){const{text:A,mode:e,format:t,href:a}=this;return"price"===e?(/^\d+(\.\d+)?$/.test(A)||uni.$u.error("金额模式下,text参数需要为金额格式"),uni.$u.test.func(t)?t(A):uni.$u.priceFormat(A,2)):"date"===e?(!uni.$u.test.date(A)&&uni.$u.error("日期模式下,text参数需要为日期或时间戳格式"),uni.$u.test.func(t)?t(A):t?uni.$u.timeFormat(A,t):uni.$u.timeFormat(A,"yyyy-mm-dd")):"phone"===e?uni.$u.test.func(t)?t(A):"encrypt"===t?`${A.substr(0,3)}****${A.substr(7)}`:A:"name"===e?("string"!=typeof A&&uni.$u.error("姓名模式下,text参数需要为字符串格式"),uni.$u.test.func(t)?t(A):"encrypt"===t?this.formatName(A):A):"link"===e?(!uni.$u.test.url(a)&&uni.$u.error("超链接模式下,href参数需要为URL格式"),A):A}},methods:{formatName(A){let e="";if(2===A.length)e=A.substr(0,1)+"*";else if(A.length>2){let t="";for(let e=0,a=A.length-2;e!1,isMp:()=>!1},data:()=>({}),methods:{clickHandler(){this.call&&"phone"===this.mode&&d({phoneNumber:this.text}),this.$emit("click")}}},[["render",function(e,t,a,s,d,S){const b=c,v=f(p("u-icon"),A),k=x,I=f(p("u-link"),R),H=h;return e.show?(n(),l(k,{key:0,class:m(["u-text",[]]),style:u({margin:e.margin,justifyContent:"left"===e.align?"flex-start":"center"===e.align?"center":"flex-end"}),onClick:S.clickHandler},{default:o((()=>["price"===e.mode?(n(),l(b,{key:0,class:m(["u-text__price",e.type&&`u-text__value--${e.type}`]),style:u([S.valueStyle])},{default:o((()=>[i("¥")])),_:1},8,["class","style"])):y("",!0),e.prefixIcon?(n(),l(k,{key:1,class:"u-text__prefix-icon"},{default:o((()=>[g(v,{name:e.prefixIcon,customStyle:e.$u.addStyle(e.iconStyle)},null,8,["name","customStyle"])])),_:1})):y("",!0),"link"===e.mode?(n(),l(I,{key:2,text:e.value,href:e.href,underLine:""},null,8,["text","href"])):e.openType&&S.isMp?(n(),l(H,{key:3,class:"u-reset-button u-text__value",style:u([S.valueStyle]),"data-index":e.index,openType:e.openType,onGetuserinfo:e.onGetUserInfo,onContact:e.onContact,onGetphonenumber:e.onGetPhoneNumber,onError:e.onError,onLaunchapp:e.onLaunchApp,onOpensetting:e.onOpenSetting,lang:e.lang,"session-from":e.sessionFrom,"send-message-title":e.sendMessageTitle,"send-message-path":e.sendMessagePath,"send-message-img":e.sendMessageImg,"show-message-card":e.showMessageCard,"app-parameter":e.appParameter},{default:o((()=>[i(r(e.value),1)])),_:1},8,["style","data-index","openType","onGetuserinfo","onContact","onGetphonenumber","onError","onLaunchapp","onOpensetting","lang","session-from","send-message-title","send-message-path","send-message-img","show-message-card","app-parameter"])):(n(),l(b,{key:4,class:m(["u-text__value",[e.type&&`u-text__value--${e.type}`,e.lines&&`u-line-${e.lines}`]]),style:u([S.valueStyle])},{default:o((()=>[i(r(e.value),1)])),_:1},8,["style","class"])),e.suffixIcon?(n(),l(k,{key:5,class:"u-text__suffix-icon"},{default:o((()=>[g(v,{name:e.suffixIcon,customStyle:e.$u.addStyle(e.iconStyle)},null,8,["name","customStyle"])])),_:1})):y("",!0)])),_:1},8,["style","onClick"])):y("",!0)}],["__scopeId","data-v-b9da4249"]])}},[["render",function(A,e,t,a,o,i){const r=S("uvText");return n(),l(r,{type:A.type,show:A.show,text:A.text,prefixIcon:A.prefixIcon,suffixIcon:A.suffixIcon,mode:A.mode,href:A.href,format:A.format,call:A.call,openType:A.openType,bold:A.bold,block:A.block,lines:A.lines,color:A.color,decoration:A.decoration,size:A.size,iconStyle:A.iconStyle,margin:A.margin,lineHeight:A.lineHeight,align:A.align,wordWrap:A.wordWrap,customStyle:A.customStyle},null,8,["type","show","text","prefixIcon","suffixIcon","mode","href","format","call","openType","bold","block","lines","color","decoration","size","iconStyle","margin","lineHeight","align","wordWrap","customStyle"])}]]),G={props:{src:{type:String,default:e.avatar.src},shape:{type:String,default:e.avatar.shape},size:{type:[String,Number],default:e.avatar.size},mode:{type:String,default:e.avatar.mode},text:{type:String,default:e.avatar.text},bgColor:{type:String,default:e.avatar.bgColor},color:{type:String,default:e.avatar.color},fontSize:{type:[String,Number],default:e.avatar.fontSize},icon:{type:String,default:e.avatar.icon},mpAvatar:{type:Boolean,default:e.avatar.mpAvatar},randomBgColor:{type:Boolean,default:e.avatar.randomBgColor},defaultUrl:{type:String,default:e.avatar.defaultUrl},colorIndex:{type:[String,Number],validator:A=>uni.$u.test.range(A,[0,19])||""===A,default:e.avatar.colorIndex},name:{type:String,default:e.avatar.name}}};const M=H({name:"u-avatar",mixins:[t,a,G],data(){return{colors:["#ffb34b","#f2bba9","#f7a196","#f18080","#88a867","#bfbf39","#89c152","#94d554","#f19ec2","#afaae4","#e1b0df","#c38cc1","#72dcdc","#9acdcb","#77b1cc","#448aca","#86cefa","#98d1ee","#73d1f1","#80a7dc"],avatarUrl:this.src,allowMp:!1}},watch:{src:{immediate:!0,handler(A){this.avatarUrl=A,A||this.errorHandler()}}},computed:{imageStyle:()=>({})},created(){this.init()},methods:{init(){},isImg(){return-1!==this.src.indexOf("/")},errorHandler(){this.avatarUrl=this.defaultUrl||"data:image/jpg;base64,/9j/4QAYRXhpZgAASUkqAAgAAAAAAAAAAAAAAP/sABFEdWNreQABAAQAAAA8AAD/4QMraHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wLwA8P3hwYWNrZXQgYmVnaW49Iu+7vyIgaWQ9Ilc1TTBNcENlaGlIenJlU3pOVGN6a2M5ZCI/PiA8eDp4bXBtZXRhIHhtbG5zOng9ImFkb2JlOm5zOm1ldGEvIiB4OnhtcHRrPSJBZG9iZSBYTVAgQ29yZSA1LjMtYzAxMSA2Ni4xNDU2NjEsIDIwMTIvMDIvMDYtMTQ6NTY6MjcgICAgICAgICI+IDxyZGY6UkRGIHhtbG5zOnJkZj0iaHR0cDovL3d3dy53My5vcmcvMTk5OS8wMi8yMi1yZGYtc3ludGF4LW5zIyI+IDxyZGY6RGVzY3JpcHRpb24gcmRmOmFib3V0PSIiIHhtbG5zOnhtcD0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wLyIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bXA6Q3JlYXRvclRvb2w9IkFkb2JlIFBob3Rvc2hvcCBDUzYgKFdpbmRvd3MpIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOjREMEQwRkY0RjgwNDExRUE5OTY2RDgxODY3NkJFODMxIiB4bXBNTTpEb2N1bWVudElEPSJ4bXAuZGlkOjREMEQwRkY1RjgwNDExRUE5OTY2RDgxODY3NkJFODMxIj4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6NEQwRDBGRjJGODA0MTFFQTk5NjZEODE4Njc2QkU4MzEiIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6NEQwRDBGRjNGODA0MTFFQTk5NjZEODE4Njc2QkU4MzEiLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz7/7gAOQWRvYmUAZMAAAAAB/9sAhAAGBAQEBQQGBQUGCQYFBgkLCAYGCAsMCgoLCgoMEAwMDAwMDBAMDg8QDw4MExMUFBMTHBsbGxwfHx8fHx8fHx8fAQcHBw0MDRgQEBgaFREVGh8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx//wAARCADIAMgDAREAAhEBAxEB/8QAcQABAQEAAwEBAAAAAAAAAAAAAAUEAQMGAgcBAQAAAAAAAAAAAAAAAAAAAAAQAAIBAwICBgkDBQAAAAAAAAABAhEDBCEFMVFBYXGREiKBscHRMkJSEyOh4XLxYjNDFBEBAAAAAAAAAAAAAAAAAAAAAP/aAAwDAQACEQMRAD8A/fAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHbHFyZ/Dam+yLA+Z2L0Pjtyj2poD4AAAAAAAAAAAAAAAAAAAAAAAAKWFs9y6lcvvwQeqj8z9wFaziY1n/HbUX9XF97A7QAGXI23EvJ1goyfzR0YEfN269jeZ+a03pNe0DIAAAAAAAAAAAAAAAAAAAACvtO3RcVkXlWutuL9YFYAAAAAOJRjKLjJVi9GmB5/csH/mu1h/in8PU+QGMAAAAAAAAAAAAAAAAAAaMDG/6MmMH8C80+xAelSSVFolwQAAAAAAAHVlWI37ErUulaPk+hgeYnCUJuElSUXRrrQHAAAAAAAAAAAAAAAAABa2Oz4bM7r4zdF2ICmAAAAAAAAAg7zZ8GX41wuJP0rRgYAAAAAAAAAAAAAAAAAD0m2R8ODaXU33tsDSAAAAAAAAAlb9HyWZcnJd9PcBHAAAAAAAAAAAAAAAAAPS7e64Vn+KA0AAAAAAAAAJm+v8Ftf3ewCKAAAAAAAAAAAAAAAAAX9muqeGo9NttP06+0DcAAAAAAAAAjb7dTu2ra+VOT9P8AQCWAAAAAAAAAAAAAAAAAUNmyPt5Ltv4bui/kuAF0AAAAAAADiUlGLlJ0SVW+oDzOXfd/Ind6JPRdS0QHSAAAAAAAAAAAAAAAAAE2nVaNcGB6Lbs6OTao9LsF51z60BrAAAAAABJ3jOVHjW3r/sa9QEgAAAAAAAAAAAAAAAAAAAPu1duWriuW34ZR4MC9hbnZyEoy8l36XwfYBsAAADaSq9EuLAlZ+7xSdrGdW9Hc5dgEdtt1erfFgAAAAAAAAAAAAAAAAADVjbblX6NR8MH80tEBRs7HYivyzlN8lovaBPzduvY0m6eK10TXtAyAarO55lpJK54orolr+4GqO/Xaea1FvqbXvA+Z77kNeW3GPbV+4DJfzcm/pcm3H6Vou5AdAFLC2ed2Pjv1txa8sV8T6wOL+yZEKu1JXFy4MDBOE4ScZxcZLinoB8gAAAAAAAAAAAB242LeyJ+C3GvN9C7QLmJtePYpKS+5c+p8F2IDYAANJqj1T4oCfk7Nj3G5Wn9qXJax7gJ93Z82D8sVNc4v30A6Xg5i42Z+iLfqARwcyT0sz9MWvWBps7LlTf5Grce9/oBTxdtxseklHxT+uWr9AGoAB138ezfj4bsFJdD6V2MCPm7RdtJzs1uW1xXzL3gTgAAAAAAAAADRhYc8q74I6RWs5ckB6GxYtWLat21SK731sDsAAAAAAAAAAAAAAAASt021NO/YjrxuQXT1oCOAAAAAAABzGLlJRSq26JAelwsWONYjbXxcZvmwO8AAAAAAAAAAAAAAAAAAef3TEWPkVivx3NY9T6UBiAAAAAABo2+VmGXblddIJ8eivRUD0oAAAAAAAAAAAAAAAAAAAYt4tKeFKVNYNSXfRgefAAAAAAAAr7VuSSWPedKaW5v1MCsAAAAAAAAAAAAAAAAAAIe6bj96Ts2n+JPzSXzP3ATgAAAAAAAAFbbt1UUrOQ9FpC4/UwK6aaqtU+DAAAAAAAAAAAAAAA4lKMIuUmoxWrb4ARNx3R3q2rLpa4Sl0y/YCcAAAAAAAAAAANmFud7G8r89r6X0dgFvGzLGRGtuWvTF6NAdwAAAAAAAAAAAy5W442PVN+K59EePp5ARMvOv5MvO6QXCC4AZwAAAAAAAAAAAAAcxlKLUotprg1owN+PvORborq+7Hnwl3gUbO74VzRydt8pKn68ANcJwmqwkpLmnUDkAAAAfNy9atqtyagut0AxXt5xIV8Fbj6lRd7Am5G65V6qUvtwfyx94GMAAAAAAAAAAAAAAAAAAAOU2nVOj5gdsc3LiqRvTpyqwOxbnnrhdfpSfrQB7pnv/AGvuS9gHXPMy5/Fem1yq0v0A6W29XqwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAf//Z"},clickHandler(){this.$emit("click",this.name)}}},[["render",function(e,t,a,i,r,s){const c=f(p("u-icon"),A),d=f(p("u--text"),w),y=I,g=x;return n(),l(g,{class:m(["u-avatar",[`u-avatar--${e.shape}`]]),style:u([{backgroundColor:e.text||e.icon?e.randomBgColor?r.colors[""!==e.colorIndex?e.colorIndex:e.$u.random(0,19)]:e.bgColor:"transparent",width:e.$u.addUnit(e.size),height:e.$u.addUnit(e.size)},e.$u.addStyle(e.customStyle)]),onClick:s.clickHandler},{default:o((()=>[b(e.$slots,"default",{},(()=>[e.mpAvatar&&r.allowMp?(n(),v(k,{key:0},[],64)):e.icon?(n(),l(c,{key:1,name:e.icon,size:e.fontSize,color:e.color},null,8,["name","size","color"])):e.text?(n(),l(d,{key:2,text:e.text,size:e.fontSize,color:e.color,align:"center",customStyle:"justify-content: center"},null,8,["text","size","color"])):(n(),l(y,{key:3,class:m(["u-avatar__image",[`u-avatar__image--${e.shape}`]]),src:r.avatarUrl||e.defaultUrl,mode:e.mode,onError:s.errorHandler,style:u([{width:e.$u.addUnit(e.size),height:e.$u.addUnit(e.size)}])},null,8,["class","src","mode","onError","style"]))]),!0)])),_:3},8,["class","style","onClick"])}],["__scopeId","data-v-03b4cb4d"]]);export{M as _}; diff --git a/niucloud/public/wap/assets/u-button.364aa63d.js b/niucloud/public/wap/assets/u-button.5c85e6cc.js similarity index 95% rename from niucloud/public/wap/assets/u-button.364aa63d.js rename to niucloud/public/wap/assets/u-button.5c85e6cc.js index b660bed97..80e149778 100644 --- a/niucloud/public/wap/assets/u-button.364aa63d.js +++ b/niucloud/public/wap/assets/u-button.5c85e6cc.js @@ -1 +1 @@ -import{_ as e}from"./u-loading-icon.2e89024b.js";import{x as t,y as o,z as n,m as a,p as i,h as s,i as r,w as l,M as p,O as u,j as d,n as h,C as g,D as m,E as c,B as b,F as y,H as f,aV as S}from"./index-5bb08350.js";import{_ as x}from"./u-icon.461524ba.js";import{_ as T}from"./_plugin-vue_export-helper.1b428a4d.js";const v=T({name:"u-button",mixins:[o,n,{props:{hairline:{type:Boolean,default:t.button.hairline},type:{type:String,default:t.button.type},size:{type:String,default:t.button.size},shape:{type:String,default:t.button.shape},plain:{type:Boolean,default:t.button.plain},disabled:{type:Boolean,default:t.button.disabled},loading:{type:Boolean,default:t.button.loading},loadingText:{type:[String,Number],default:t.button.loadingText},loadingMode:{type:String,default:t.button.loadingMode},loadingSize:{type:[String,Number],default:t.button.loadingSize},openType:{type:String,default:t.button.openType},formType:{type:String,default:t.button.formType},appParameter:{type:String,default:t.button.appParameter},hoverStopPropagation:{type:Boolean,default:t.button.hoverStopPropagation},lang:{type:String,default:t.button.lang},sessionFrom:{type:String,default:t.button.sessionFrom},sendMessageTitle:{type:String,default:t.button.sendMessageTitle},sendMessagePath:{type:String,default:t.button.sendMessagePath},sendMessageImg:{type:String,default:t.button.sendMessageImg},showMessageCard:{type:Boolean,default:t.button.showMessageCard},dataName:{type:String,default:t.button.dataName},throttleTime:{type:[String,Number],default:t.button.throttleTime},hoverStartTime:{type:[String,Number],default:t.button.hoverStartTime},hoverStayTime:{type:[String,Number],default:t.button.hoverStayTime},text:{type:[String,Number],default:t.button.text},icon:{type:String,default:t.button.icon},iconColor:{type:String,default:t.button.icon},color:{type:String,default:t.button.color}}}],data:()=>({}),computed:{bemClass(){return this.color?this.bem("button",["shape","size"],["disabled","plain","hairline"]):this.bem("button",["type","shape","size"],["disabled","plain","hairline"])},loadingColor(){return this.plain?this.color?this.color:uni.$u.config.color[`u-${this.type}`]:"info"===this.type?"#c9c9c9":"rgb(200, 200, 200)"},iconColorCom(){return this.iconColor?this.iconColor:this.plain?this.color?this.color:this.type:"info"===this.type?"#000000":"#ffffff"},baseColor(){let e={};return this.color&&(e.color=this.plain?this.color:"white",this.plain||(e["background-color"]=this.color),-1!==this.color.indexOf("gradient")?(e.borderTopWidth=0,e.borderRightWidth=0,e.borderBottomWidth=0,e.borderLeftWidth=0,this.plain||(e.backgroundImage=this.color)):(e.borderColor=this.color,e.borderWidth="1px",e.borderStyle="solid")),e},nvueTextStyle(){let e={};return"info"===this.type&&(e.color="#323233"),this.color&&(e.color=this.plain?this.color:"white"),e.fontSize=this.textSize+"px",e},textSize(){let e=14,{size:t}=this;return"large"===t&&(e=16),"normal"===t&&(e=14),"small"===t&&(e=12),"mini"===t&&(e=10),e}},emits:["click","getphonenumber","getuserinfo","error","opensetting","launchapp"],methods:{clickHandler(){this.disabled||this.loading||uni.$u.throttle((()=>{this.$emit("click")}),this.throttleTime)},getphonenumber(e){this.$emit("getphonenumber",e)},getuserinfo(e){this.$emit("getuserinfo",e)},error(e){this.$emit("error",e)},opensetting(e){this.$emit("opensetting",e)},launchapp(e){this.$emit("launchapp",e)}}},[["render",function(t,o,n,T,v,z){const C=a(i("u-loading-icon"),e),M=f,_=a(i("u-icon"),x),k=S;return s(),r(k,{"hover-start-time":Number(t.hoverStartTime),"hover-stay-time":Number(t.hoverStayTime),"form-type":t.formType,"open-type":t.openType,"app-parameter":t.appParameter,"hover-stop-propagation":t.hoverStopPropagation,"send-message-title":t.sendMessageTitle,"send-message-path":t.sendMessagePath,lang:t.lang,"data-name":t.dataName,"session-from":t.sessionFrom,"send-message-img":t.sendMessageImg,"show-message-card":t.showMessageCard,onGetphonenumber:z.getphonenumber,onGetuserinfo:z.getuserinfo,onError:z.error,onOpensetting:z.opensetting,onLaunchapp:z.launchapp,"hover-class":t.disabled||t.loading?"":"u-button--active",class:y(["u-button u-reset-button",z.bemClass]),style:h([z.baseColor,t.$u.addStyle(t.customStyle)]),onClick:z.clickHandler},{default:l((()=>[t.loading?(s(),p(u,{key:0},[d(C,{mode:t.loadingMode,size:1.15*t.loadingSize,color:z.loadingColor},null,8,["mode","size","color"]),d(M,{class:"u-button__loading-text",style:h([{fontSize:z.textSize+"px"}])},{default:l((()=>[g(m(t.loadingText||t.text),1)])),_:1},8,["style"])],64)):(s(),p(u,{key:1},[t.icon?(s(),r(_,{key:0,name:t.icon,color:z.iconColorCom,size:1.35*z.textSize,customStyle:{marginRight:"2px"}},null,8,["name","color","size"])):c("",!0),b(t.$slots,"default",{},(()=>[d(M,{class:"u-button__text",style:h([{fontSize:z.textSize+"px"}])},{default:l((()=>[g(m(t.text),1)])),_:1},8,["style"])]),!0)],64))])),_:3},8,["hover-start-time","hover-stay-time","form-type","open-type","app-parameter","hover-stop-propagation","send-message-title","send-message-path","lang","data-name","session-from","send-message-img","show-message-card","onGetphonenumber","onGetuserinfo","onError","onOpensetting","onLaunchapp","hover-class","style","onClick","class"])}],["__scopeId","data-v-6b0695bb"]]);export{v as _}; +import{_ as e}from"./u-loading-icon.ea8c9ece.js";import{y as t,z as o,A as n,p as a,q as i,h as s,i as r,w as l,M as p,O as u,j as d,n as h,D as g,E as m,m as c,C as b,F as y,H as f,aX as S}from"./index-15eacd31.js";import{_ as x}from"./u-icon.f5369555.js";import{_ as T}from"./_plugin-vue_export-helper.1b428a4d.js";const v=T({name:"u-button",mixins:[o,n,{props:{hairline:{type:Boolean,default:t.button.hairline},type:{type:String,default:t.button.type},size:{type:String,default:t.button.size},shape:{type:String,default:t.button.shape},plain:{type:Boolean,default:t.button.plain},disabled:{type:Boolean,default:t.button.disabled},loading:{type:Boolean,default:t.button.loading},loadingText:{type:[String,Number],default:t.button.loadingText},loadingMode:{type:String,default:t.button.loadingMode},loadingSize:{type:[String,Number],default:t.button.loadingSize},openType:{type:String,default:t.button.openType},formType:{type:String,default:t.button.formType},appParameter:{type:String,default:t.button.appParameter},hoverStopPropagation:{type:Boolean,default:t.button.hoverStopPropagation},lang:{type:String,default:t.button.lang},sessionFrom:{type:String,default:t.button.sessionFrom},sendMessageTitle:{type:String,default:t.button.sendMessageTitle},sendMessagePath:{type:String,default:t.button.sendMessagePath},sendMessageImg:{type:String,default:t.button.sendMessageImg},showMessageCard:{type:Boolean,default:t.button.showMessageCard},dataName:{type:String,default:t.button.dataName},throttleTime:{type:[String,Number],default:t.button.throttleTime},hoverStartTime:{type:[String,Number],default:t.button.hoverStartTime},hoverStayTime:{type:[String,Number],default:t.button.hoverStayTime},text:{type:[String,Number],default:t.button.text},icon:{type:String,default:t.button.icon},iconColor:{type:String,default:t.button.icon},color:{type:String,default:t.button.color}}}],data:()=>({}),computed:{bemClass(){return this.color?this.bem("button",["shape","size"],["disabled","plain","hairline"]):this.bem("button",["type","shape","size"],["disabled","plain","hairline"])},loadingColor(){return this.plain?this.color?this.color:uni.$u.config.color[`u-${this.type}`]:"info"===this.type?"#c9c9c9":"rgb(200, 200, 200)"},iconColorCom(){return this.iconColor?this.iconColor:this.plain?this.color?this.color:this.type:"info"===this.type?"#000000":"#ffffff"},baseColor(){let e={};return this.color&&(e.color=this.plain?this.color:"white",this.plain||(e["background-color"]=this.color),-1!==this.color.indexOf("gradient")?(e.borderTopWidth=0,e.borderRightWidth=0,e.borderBottomWidth=0,e.borderLeftWidth=0,this.plain||(e.backgroundImage=this.color)):(e.borderColor=this.color,e.borderWidth="1px",e.borderStyle="solid")),e},nvueTextStyle(){let e={};return"info"===this.type&&(e.color="#323233"),this.color&&(e.color=this.plain?this.color:"white"),e.fontSize=this.textSize+"px",e},textSize(){let e=14,{size:t}=this;return"large"===t&&(e=16),"normal"===t&&(e=14),"small"===t&&(e=12),"mini"===t&&(e=10),e}},emits:["click","getphonenumber","getuserinfo","error","opensetting","launchapp"],methods:{clickHandler(){this.disabled||this.loading||uni.$u.throttle((()=>{this.$emit("click")}),this.throttleTime)},getphonenumber(e){this.$emit("getphonenumber",e)},getuserinfo(e){this.$emit("getuserinfo",e)},error(e){this.$emit("error",e)},opensetting(e){this.$emit("opensetting",e)},launchapp(e){this.$emit("launchapp",e)}}},[["render",function(t,o,n,T,v,z){const C=a(i("u-loading-icon"),e),M=f,_=a(i("u-icon"),x),k=S;return s(),r(k,{"hover-start-time":Number(t.hoverStartTime),"hover-stay-time":Number(t.hoverStayTime),"form-type":t.formType,"open-type":t.openType,"app-parameter":t.appParameter,"hover-stop-propagation":t.hoverStopPropagation,"send-message-title":t.sendMessageTitle,"send-message-path":t.sendMessagePath,lang:t.lang,"data-name":t.dataName,"session-from":t.sessionFrom,"send-message-img":t.sendMessageImg,"show-message-card":t.showMessageCard,onGetphonenumber:z.getphonenumber,onGetuserinfo:z.getuserinfo,onError:z.error,onOpensetting:z.opensetting,onLaunchapp:z.launchapp,"hover-class":t.disabled||t.loading?"":"u-button--active",class:y(["u-button u-reset-button",z.bemClass]),style:h([z.baseColor,t.$u.addStyle(t.customStyle)]),onClick:z.clickHandler},{default:l((()=>[t.loading?(s(),p(u,{key:0},[d(C,{mode:t.loadingMode,size:1.15*t.loadingSize,color:z.loadingColor},null,8,["mode","size","color"]),d(M,{class:"u-button__loading-text",style:h([{fontSize:z.textSize+"px"}])},{default:l((()=>[g(m(t.loadingText||t.text),1)])),_:1},8,["style"])],64)):(s(),p(u,{key:1},[t.icon?(s(),r(_,{key:0,name:t.icon,color:z.iconColorCom,size:1.35*z.textSize,customStyle:{marginRight:"2px"}},null,8,["name","color","size"])):c("",!0),b(t.$slots,"default",{},(()=>[d(M,{class:"u-button__text",style:h([{fontSize:z.textSize+"px"}])},{default:l((()=>[g(m(t.text),1)])),_:1},8,["style"])]),!0)],64))])),_:3},8,["hover-start-time","hover-stay-time","form-type","open-type","app-parameter","hover-stop-propagation","send-message-title","send-message-path","lang","data-name","session-from","send-message-img","show-message-card","onGetphonenumber","onGetuserinfo","onError","onOpensetting","onLaunchapp","hover-class","style","onClick","class"])}],["__scopeId","data-v-6b0695bb"]]);export{v as _}; diff --git a/niucloud/public/wap/assets/u-empty.972875c1.js b/niucloud/public/wap/assets/u-empty.317e751c.js similarity index 91% rename from niucloud/public/wap/assets/u-empty.972875c1.js rename to niucloud/public/wap/assets/u-empty.317e751c.js index f0e739bbc..e7e529981 100644 --- a/niucloud/public/wap/assets/u-empty.972875c1.js +++ b/niucloud/public/wap/assets/u-empty.317e751c.js @@ -1 +1 @@ -import{_ as t}from"./u-icon.461524ba.js";import{x as e,y as i,z as o,m as s,p as a,h as n,i as r,w as d,n as l,j as m,C as p,D as u,B as y,E as c,a1 as f,H as h,q as S}from"./index-5bb08350.js";import{_ as g}from"./_plugin-vue_export-helper.1b428a4d.js";const x=g({name:"u-empty",mixins:[i,o,{props:{icon:{type:String,default:e.empty.icon},text:{type:String,default:e.empty.text},textColor:{type:String,default:e.empty.textColor},textSize:{type:[String,Number],default:e.empty.textSize},iconColor:{type:String,default:e.empty.iconColor},iconSize:{type:[String,Number],default:e.empty.iconSize},mode:{type:String,default:e.empty.mode},width:{type:[String,Number],default:e.empty.width},height:{type:[String,Number],default:e.empty.height},show:{type:Boolean,default:e.empty.show},marginTop:{type:[String,Number],default:e.empty.marginTop}}}],data:()=>({icons:{car:"购物车为空",page:"页面不存在",search:"没有搜索结果",address:"没有收货地址",wifi:"没有WiFi",order:"订单为空",coupon:"没有优惠券",favor:"暂无收藏",permission:"无权限",history:"无历史记录",news:"无新闻列表",message:"消息列表为空",list:"列表为空",data:"数据为空",comment:"暂无评论"}}),computed:{emptyStyle(){const t={};return t.marginTop=uni.$u.addUnit(this.marginTop),uni.$u.deepMerge(uni.$u.addStyle(this.customStyle),t)},textStyle(){const t={};return t.color=this.textColor,t.fontSize=uni.$u.addUnit(this.textSize),t},isSrc(){return this.icon.indexOf("/")>=0}}},[["render",function(e,i,o,g,x,_){const w=s(a("u-icon"),t),$=f,z=h,b=S;return e.show?(n(),r(b,{key:0,class:"u-empty",style:l([_.emptyStyle])},{default:d((()=>[_.isSrc?(n(),r($,{key:1,style:l({width:e.$u.addUnit(e.width),height:e.$u.addUnit(e.height)}),src:e.icon,mode:"widthFix"},null,8,["style","src"])):(n(),r(w,{key:0,name:"message"===e.mode?"chat":`empty-${e.mode}`,size:e.iconSize,color:e.iconColor,"margin-top":"14"},null,8,["name","size","color"])),m(z,{class:"u-empty__text",style:l([_.textStyle])},{default:d((()=>[p(u(e.text?e.text:x.icons[e.mode]),1)])),_:1},8,["style"]),e.$slots.default||e.$slots.$default?(n(),r(b,{key:2,class:"u-empty__wrap"},{default:d((()=>[y(e.$slots,"default",{},void 0,!0)])),_:3})):c("",!0)])),_:3},8,["style"])):c("",!0)}],["__scopeId","data-v-bdfabab8"]]);export{x as _}; +import{_ as t}from"./u-icon.f5369555.js";import{y as e,z as i,A as o,p as s,q as a,h as n,i as r,w as d,n as l,j as m,D as p,E as u,C as y,m as c,a1 as f,H as h,t as S}from"./index-15eacd31.js";import{_ as g}from"./_plugin-vue_export-helper.1b428a4d.js";const x=g({name:"u-empty",mixins:[i,o,{props:{icon:{type:String,default:e.empty.icon},text:{type:String,default:e.empty.text},textColor:{type:String,default:e.empty.textColor},textSize:{type:[String,Number],default:e.empty.textSize},iconColor:{type:String,default:e.empty.iconColor},iconSize:{type:[String,Number],default:e.empty.iconSize},mode:{type:String,default:e.empty.mode},width:{type:[String,Number],default:e.empty.width},height:{type:[String,Number],default:e.empty.height},show:{type:Boolean,default:e.empty.show},marginTop:{type:[String,Number],default:e.empty.marginTop}}}],data:()=>({icons:{car:"购物车为空",page:"页面不存在",search:"没有搜索结果",address:"没有收货地址",wifi:"没有WiFi",order:"订单为空",coupon:"没有优惠券",favor:"暂无收藏",permission:"无权限",history:"无历史记录",news:"无新闻列表",message:"消息列表为空",list:"列表为空",data:"数据为空",comment:"暂无评论"}}),computed:{emptyStyle(){const t={};return t.marginTop=uni.$u.addUnit(this.marginTop),uni.$u.deepMerge(uni.$u.addStyle(this.customStyle),t)},textStyle(){const t={};return t.color=this.textColor,t.fontSize=uni.$u.addUnit(this.textSize),t},isSrc(){return this.icon.indexOf("/")>=0}}},[["render",function(e,i,o,g,x,_){const w=s(a("u-icon"),t),$=f,z=h,b=S;return e.show?(n(),r(b,{key:0,class:"u-empty",style:l([_.emptyStyle])},{default:d((()=>[_.isSrc?(n(),r($,{key:1,style:l({width:e.$u.addUnit(e.width),height:e.$u.addUnit(e.height)}),src:e.icon,mode:"widthFix"},null,8,["style","src"])):(n(),r(w,{key:0,name:"message"===e.mode?"chat":`empty-${e.mode}`,size:e.iconSize,color:e.iconColor,"margin-top":"14"},null,8,["name","size","color"])),m(z,{class:"u-empty__text",style:l([_.textStyle])},{default:d((()=>[p(u(e.text?e.text:x.icons[e.mode]),1)])),_:1},8,["style"]),e.$slots.default||e.$slots.$default?(n(),r(b,{key:2,class:"u-empty__wrap"},{default:d((()=>[y(e.$slots,"default",{},void 0,!0)])),_:3})):c("",!0)])),_:3},8,["style"])):c("",!0)}],["__scopeId","data-v-bdfabab8"]]);export{x as _}; diff --git a/niucloud/public/wap/assets/u-form.267f755c.js b/niucloud/public/wap/assets/u-form.84a1fd52.js similarity index 93% rename from niucloud/public/wap/assets/u-form.267f755c.js rename to niucloud/public/wap/assets/u-form.84a1fd52.js index 3591c17ef..0fb6464aa 100644 --- a/niucloud/public/wap/assets/u-form.267f755c.js +++ b/niucloud/public/wap/assets/u-form.84a1fd52.js @@ -1 +1 @@ -import{x as e,y as t,z as r,m as n,p as i,h as s,i as a,w as o,j as l,n as u,B as f,C as d,E as c,D as p,H as m,q as y}from"./index-5bb08350.js";import{_ as h}from"./u-icon.461524ba.js";import{_ as g}from"./u-line.0c46076e.js";import{_ as b}from"./_plugin-vue_export-helper.1b428a4d.js";const _=b({name:"u-form-item",mixins:[t,r,{props:{label:{type:String,default:e.formItem.label},prop:{type:String,default:e.formItem.prop},borderBottom:{type:[String,Boolean],default:e.formItem.borderBottom},labelWidth:{type:[String,Number],default:e.formItem.labelWidth},rightIcon:{type:String,default:e.formItem.rightIcon},leftIcon:{type:String,default:e.formItem.leftIcon},required:{type:Boolean,default:e.formItem.required},leftIconStyle:{type:[String,Object],default:e.formItem.leftIconStyle}}}],data:()=>({message:"",parentData:{labelPosition:"left",labelAlign:"left",labelStyle:{},labelWidth:45,errorType:"message"}}),computed:{propsLine:()=>uni.$u.props.line},mounted(){this.init()},methods:{init(){this.updateParentData(),this.parent||uni.$u.error("u-form-item需要结合u-form组件使用")},updateParentData(){this.getParentData("u-form")},clearValidate(){this.message=null},resetField(){const e=uni.$u.getProperty(this.parent.originalModel,this.prop);uni.$u.setProperty(this.parent.model,this.prop,e),this.message=null},clickHandler(){this.$emit("click")}}},[["render",function(e,t,r,b,_,q){const v=m,w=n(i("u-icon"),h),x=y,P=n(i("u-line"),g);return s(),a(x,{class:"u-form-item"},{default:o((()=>[l(x,{class:"u-form-item__body",onClick:q.clickHandler,style:u([e.$u.addStyle(e.customStyle),{flexDirection:"left"===_.parentData.labelPosition?"row":"column"}])},{default:o((()=>[f(e.$slots,"label",{},(()=>[e.required||e.leftIcon||e.label?(s(),a(x,{key:0,class:"u-form-item__body__left",style:u({width:e.$u.addUnit(e.labelWidth||_.parentData.labelWidth),marginBottom:"left"===_.parentData.labelPosition?0:"5px"})},{default:o((()=>[l(x,{class:"u-form-item__body__left__content"},{default:o((()=>[e.required?(s(),a(v,{key:0,class:"u-form-item__body__left__content__required"},{default:o((()=>[d("*")])),_:1})):c("",!0),e.leftIcon?(s(),a(x,{key:1,class:"u-form-item__body__left__content__icon"},{default:o((()=>[l(w,{name:e.leftIcon,"custom-style":e.leftIconStyle},null,8,["name","custom-style"])])),_:1})):c("",!0),l(v,{class:"u-form-item__body__left__content__label",style:u([_.parentData.labelStyle,{justifyContent:"left"===_.parentData.labelAlign?"flex-start":"center"===_.parentData.labelAlign?"center":"flex-end"}])},{default:o((()=>[d(p(e.label),1)])),_:1},8,["style"])])),_:1})])),_:1},8,["style"])):c("",!0)]),!0),l(x,{class:"u-form-item__body__right"},{default:o((()=>[l(x,{class:"u-form-item__body__right__content"},{default:o((()=>[l(x,{class:"u-form-item__body__right__content__slot"},{default:o((()=>[f(e.$slots,"default",{},void 0,!0)])),_:3}),e.$slots.right?(s(),a(x,{key:0,class:"item__body__right__content__icon"},{default:o((()=>[f(e.$slots,"right",{},void 0,!0)])),_:3})):c("",!0)])),_:3})])),_:3})])),_:3},8,["onClick","style"]),f(e.$slots,"error",{},(()=>[_.message&&"message"===_.parentData.errorType?(s(),a(v,{key:0,class:"u-form-item__body__right__message",style:u({marginLeft:e.$u.addUnit("top"===_.parentData.labelPosition?0:e.labelWidth||_.parentData.labelWidth)})},{default:o((()=>[d(p(_.message),1)])),_:1},8,["style"])):c("",!0)]),!0),e.borderBottom?(s(),a(P,{key:0,color:_.message&&"border-bottom"===_.parentData.errorType?e.$u.color.error:q.propsLine.color,customStyle:`margin-top: ${_.message&&"message"===_.parentData.errorType?"5px":0}`},null,8,["color","customStyle"])):c("",!0)])),_:3})}],["__scopeId","data-v-a180cd81"]]),q={props:{model:{type:Object,default:e.form.model},rules:{type:[Object,Function,Array],default:e.form.rules},errorType:{type:String,default:e.form.errorType},borderBottom:{type:Boolean,default:e.form.borderBottom},labelPosition:{type:String,default:e.form.labelPosition},labelWidth:{type:[String,Number],default:e.form.labelWidth},labelAlign:{type:String,default:e.form.labelAlign},labelStyle:{type:Object,default:e.form.labelStyle}}},v=/%[sdj%]/g;let w=function(){};function x(e){if(!e||!e.length)return null;const t={};return e.forEach((e=>{const{field:r}=e;t[r]=t[r]||[],t[r].push(e)})),t}function P(){for(var e=arguments.length,t=new Array(e),r=0;r{if("%%"===e)return"%";if(n>=s)return e;switch(e){case"%s":return String(t[n++]);case"%d":return Number(t[n++]);case"%j":try{return JSON.stringify(t[n++])}catch(r){return"[Circular]"}break;default:return e}}));for(let r=t[n];n{const s=function(e){const t=[];return Object.keys(e).forEach((r=>{t.push.apply(t,e[r])})),t}(e);$(s,r,(function(e){return n(e),e.length?i({errors:e,fields:x(e)}):t()}))}));return t.catch((e=>e)),t}let i=t.firstFields||[];!0===i&&(i=Object.keys(e));const s=Object.keys(e),a=s.length;let o=0;const l=[],u=new Promise(((t,u)=>{const f=function(e){if(l.push.apply(l,e),o++,o===a)return n(l),l.length?u({errors:l,fields:x(l)}):t()};s.length||(n(l),t()),s.forEach((t=>{const n=e[t];-1!==i.indexOf(t)?$(n,r,f):function(e,t,r){const n=[];let i=0;const s=e.length;function a(e){n.push.apply(n,e),i++,i===s&&r(n)}e.forEach((e=>{t(e,a)}))}(n,r,f)}))}));return u.catch((e=>e)),u}function F(e){return function(t){return t&&t.message?(t.field=t.field||e.fullField,t):{message:"function"==typeof t?t():t,field:t.field||e.fullField}}}function A(e,t){if(t)for(const r in t)if(t.hasOwnProperty(r)){const n=t[r];"object"==typeof n&&"object"==typeof e[r]?e[r]={...e[r],...n}:e[r]=n}return e}function S(e,t,r,n,i,s){!e.required||r.hasOwnProperty(e.field)&&!O(t,s||e.type)||n.push(P(i.messages.required,e.fullField))}"undefined"!=typeof process&&process.env;const D={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,url:new RegExp("^(?!mailto:)(?:(?:http|https|ftp)://|//)(?:\\S+(?::\\S*)?@)?(?:(?:(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[0-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u00a1-\\uffff0-9]+-*)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]+-*)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))|localhost)(?::\\d{2,5})?(?:(/|\\?|#)[^\\s]*)?$","i"),hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i};var k={integer:function(e){return/^(-)?\d+$/.test(e)},float:function(e){return/^(-)?\d+(\.\d+)?$/.test(e)},array:function(e){return Array.isArray(e)},regexp:function(e){if(e instanceof RegExp)return!0;try{return!!new RegExp(e)}catch(t){return!1}},date:function(e){return"function"==typeof e.getTime&&"function"==typeof e.getMonth&&"function"==typeof e.getYear},number:function(e){return!isNaN(e)&&"number"==typeof+e},object:function(e){return"object"==typeof e&&!k.array(e)},method:function(e){return"function"==typeof e},email:function(e){return"string"==typeof e&&!!e.match(D.email)&&e.length<255},url:function(e){return"string"==typeof e&&!!e.match(D.url)},hex:function(e){return"string"==typeof e&&!!e.match(D.hex)}};const I={required:S,whitespace:function(e,t,r,n,i){(/^\s+$/.test(t)||""===t)&&n.push(P(i.messages.whitespace,e.fullField))},type:function(e,t,r,n,i){if(e.required&&void 0===t)return void S(e,t,r,n,i);const s=e.type;["integer","float","array","regexp","object","method","email","number","date","url","hex"].indexOf(s)>-1?k[s](t)||n.push(P(i.messages.types[s],e.fullField,e.type)):s&&typeof t!==e.type&&n.push(P(i.messages.types[s],e.fullField,e.type))},range:function(e,t,r,n,i){const s="number"==typeof e.len,a="number"==typeof e.min,o="number"==typeof e.max,l=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g;let u=t,f=null;const d="number"==typeof t,c="string"==typeof t,p=Array.isArray(t);if(d?f="number":c?f="string":p&&(f="array"),!f)return!1;p&&(u=t.length),c&&(u=t.replace(l,"_").length),s?u!==e.len&&n.push(P(i.messages[f].len,e.fullField,e.len)):a&&!o&&ue.max?n.push(P(i.messages[f].max,e.fullField,e.max)):a&&o&&(ue.max)&&n.push(P(i.messages[f].range,e.fullField,e.min,e.max))},enum:function(e,t,r,n,i){e.enum=Array.isArray(e.enum)?e.enum:[],-1===e.enum.indexOf(t)&&n.push(P(i.messages.enum,e.fullField,e.enum.join(", ")))},pattern:function(e,t,r,n,i){if(e.pattern)if(e.pattern instanceof RegExp)e.pattern.lastIndex=0,e.pattern.test(t)||n.push(P(i.messages.pattern.mismatch,e.fullField,t,e.pattern));else if("string"==typeof e.pattern){new RegExp(e.pattern).test(t)||n.push(P(i.messages.pattern.mismatch,e.fullField,t,e.pattern))}}};function E(e,t,r,n,i){const s=e.type,a=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if(O(t,s)&&!e.required)return r();I.required(e,t,n,a,i,s),O(t,s)||I.type(e,t,n,a,i)}r(a)}const T={string:function(e,t,r,n,i){const s=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if(O(t,"string")&&!e.required)return r();I.required(e,t,n,s,i,"string"),O(t,"string")||(I.type(e,t,n,s,i),I.range(e,t,n,s,i),I.pattern(e,t,n,s,i),!0===e.whitespace&&I.whitespace(e,t,n,s,i))}r(s)},method:function(e,t,r,n,i){const s=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if(O(t)&&!e.required)return r();I.required(e,t,n,s,i),void 0!==t&&I.type(e,t,n,s,i)}r(s)},number:function(e,t,r,n,i){const s=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if(""===t&&(t=void 0),O(t)&&!e.required)return r();I.required(e,t,n,s,i),void 0!==t&&(I.type(e,t,n,s,i),I.range(e,t,n,s,i))}r(s)},boolean:function(e,t,r,n,i){const s=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if(O(t)&&!e.required)return r();I.required(e,t,n,s,i),void 0!==t&&I.type(e,t,n,s,i)}r(s)},regexp:function(e,t,r,n,i){const s=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if(O(t)&&!e.required)return r();I.required(e,t,n,s,i),O(t)||I.type(e,t,n,s,i)}r(s)},integer:function(e,t,r,n,i){const s=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if(O(t)&&!e.required)return r();I.required(e,t,n,s,i),void 0!==t&&(I.type(e,t,n,s,i),I.range(e,t,n,s,i))}r(s)},float:function(e,t,r,n,i){const s=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if(O(t)&&!e.required)return r();I.required(e,t,n,s,i),void 0!==t&&(I.type(e,t,n,s,i),I.range(e,t,n,s,i))}r(s)},array:function(e,t,r,n,i){const s=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if(O(t,"array")&&!e.required)return r();I.required(e,t,n,s,i,"array"),O(t,"array")||(I.type(e,t,n,s,i),I.range(e,t,n,s,i))}r(s)},object:function(e,t,r,n,i){const s=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if(O(t)&&!e.required)return r();I.required(e,t,n,s,i),void 0!==t&&I.type(e,t,n,s,i)}r(s)},enum:function(e,t,r,n,i){const s=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if(O(t)&&!e.required)return r();I.required(e,t,n,s,i),void 0!==t&&I.enum(e,t,n,s,i)}r(s)},pattern:function(e,t,r,n,i){const s=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if(O(t,"string")&&!e.required)return r();I.required(e,t,n,s,i),O(t,"string")||I.pattern(e,t,n,s,i)}r(s)},date:function(e,t,r,n,i){const s=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if(O(t)&&!e.required)return r();if(I.required(e,t,n,s,i),!O(t)){let r;r="number"==typeof t?new Date(t):t,I.type(e,r,n,s,i),r&&I.range(e,r.getTime(),n,s,i)}}r(s)},url:E,hex:E,email:E,required:function(e,t,r,n,i){const s=[],a=Array.isArray(t)?"array":typeof t;I.required(e,t,n,s,i,a),r(s)},any:function(e,t,r,n,i){const s=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if(O(t)&&!e.required)return r();I.required(e,t,n,s,i)}r(s)}};function B(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){const e=JSON.parse(JSON.stringify(this));return e.clone=this.clone,e}}}const R=B();function W(e){this.rules=null,this._messages=R,this.define(e)}W.prototype={messages:function(e){return e&&(this._messages=A(B(),e)),this._messages},define:function(e){if(!e)throw new Error("Cannot configure a schema with no rules");if("object"!=typeof e||Array.isArray(e))throw new Error("Rules must be an object");let t,r;for(t in this.rules={},e)e.hasOwnProperty(t)&&(r=e[t],this.rules[t]=Array.isArray(r)?r:[r])},validate:function(e,t,r){const n=this;void 0===t&&(t={}),void 0===r&&(r=function(){});let i,s,a=e,o=t,l=r;if("function"==typeof o&&(l=o,o={}),!this.rules||0===Object.keys(this.rules).length)return l&&l(),Promise.resolve();if(o.messages){let e=this.messages();e===R&&(e=B()),A(e,o.messages),o.messages=e}else o.messages=this.messages();const u={};(o.keys||Object.keys(this.rules)).forEach((t=>{i=n.rules[t],s=a[t],i.forEach((r=>{let i=r;"function"==typeof i.transform&&(a===e&&(a={...a}),s=a[t]=i.transform(s)),i="function"==typeof i?{validator:i}:{...i},i.validator=n.getValidationMethod(i),i.field=t,i.fullField=i.fullField||t,i.type=n.getType(i),i.validator&&(u[t]=u[t]||[],u[t].push({rule:i,value:s,source:a,field:t}))}))}));const f={};return j(u,o,((e,t)=>{const{rule:r}=e;let n,i=!("object"!==r.type&&"array"!==r.type||"object"!=typeof r.fields&&"object"!=typeof r.defaultField);function s(e,t){return{...t,fullField:`${r.fullField}.${e}`}}function a(n){void 0===n&&(n=[]);let a=n;if(Array.isArray(a)||(a=[a]),!o.suppressWarning&&a.length&&W.warning("async-validator:",a),a.length&&r.message&&(a=[].concat(r.message)),a=a.map(F(r)),o.first&&a.length)return f[r.field]=1,t(a);if(i){if(r.required&&!e.value)return a=r.message?[].concat(r.message).map(F(r)):o.error?[o.error(r,P(o.messages.required,r.field))]:[],t(a);let n={};if(r.defaultField)for(const t in e.value)e.value.hasOwnProperty(t)&&(n[t]=r.defaultField);n={...n,...e.rule.fields};for(const e in n)if(n.hasOwnProperty(e)){const t=Array.isArray(n[e])?n[e]:[n[e]];n[e]=t.map(s.bind(null,e))}const i=new W(n);i.messages(o.messages),e.rule.options&&(e.rule.options.messages=o.messages,e.rule.options.error=o.error),i.validate(e.value,e.rule.options||o,(e=>{const r=[];a&&a.length&&r.push.apply(r,a),e&&e.length&&r.push.apply(r,e),t(r.length?r:null)}))}else t(a)}i=i&&(r.required||!r.required&&e.value),r.field=e.field,r.asyncValidator?n=r.asyncValidator(r,e.value,a,e.source,o):r.validator&&(n=r.validator(r,e.value,a,e.source,o),!0===n?a():!1===n?a(r.message||`${r.field} fails`):n instanceof Array?a(n):n instanceof Error&&a(n.message)),n&&n.then&&n.then((()=>a()),(e=>a(e)))}),(e=>{!function(e){let t,r=[],n={};function i(e){if(Array.isArray(e)){let t;r=(t=r).concat.apply(t,e)}else r.push(e)}for(t=0;t({formRules:{},validator:{},originalModel:null}),watch:{rules:{immediate:!0,handler(e){this.setRules(e)}},propsChange(e){var t;(null==(t=this.children)?void 0:t.length)&&this.children.map((e=>{"function"==typeof e.updateParentData&&e.updateParentData()}))},model:{immediate:!0,handler(e){this.originalModel||(this.originalModel=uni.$u.deepClone(e))}}},computed:{propsChange(){return[this.errorType,this.borderBottom,this.labelPosition,this.labelWidth,this.labelAlign,this.labelStyle]}},created(){this.children=[]},methods:{setRules(e){0!==Object.keys(e).length&&(this.formRules=e,this.validator=new W(e))},resetFields(){this.resetModel()},resetModel(e){this.children.map((e=>{const t=null==e?void 0:e.prop,r=uni.$u.getProperty(this.originalModel,t);uni.$u.setProperty(this.model,t,r)}))},clearValidate(e){e=[].concat(e),this.children.map((t=>{(void 0===e[0]||e.includes(t.prop))&&(t.message=null)}))},async validateField(e,t,r=null){this.$nextTick((()=>{const n=[];e=[].concat(e),this.children.map((t=>{const i=[];if(e.includes(t.prop)){const e=uni.$u.getProperty(this.model,t.prop),s=t.prop.split("."),a=s[s.length-1],o=this.formRules[t.prop];if(!o)return;const l=[].concat(o);for(let u=0;u{var s;uni.$u.test.array(e)&&(n.push(...e),i.push(...e)),t.message=(null==(s=i[0])?void 0:s.message)??null}))}}})),"function"==typeof t&&t(n)}))},validate(e){return new Promise(((e,t)=>{this.$nextTick((()=>{const r=this.children.map((e=>e.prop));this.validateField(r,(r=>{r.length?("toast"===this.errorType&&uni.$u.toast(r[0].message),t(r)):e(!0)}))}))}))}}},[["render",function(e,t,r,n,i,l){const u=y;return s(),a(u,{class:"u-form"},{default:o((()=>[f(e.$slots,"default")])),_:3})}]]);export{_,C as a}; +import{y as e,z as t,A as r,p as n,q as i,h as s,i as a,w as o,j as l,n as u,C as f,D as d,m as c,E as p,H as m,t as y}from"./index-15eacd31.js";import{_ as h}from"./u-icon.f5369555.js";import{_ as g}from"./u-line.bb8d1497.js";import{_ as b}from"./_plugin-vue_export-helper.1b428a4d.js";const _=b({name:"u-form-item",mixins:[t,r,{props:{label:{type:String,default:e.formItem.label},prop:{type:String,default:e.formItem.prop},borderBottom:{type:[String,Boolean],default:e.formItem.borderBottom},labelWidth:{type:[String,Number],default:e.formItem.labelWidth},rightIcon:{type:String,default:e.formItem.rightIcon},leftIcon:{type:String,default:e.formItem.leftIcon},required:{type:Boolean,default:e.formItem.required},leftIconStyle:{type:[String,Object],default:e.formItem.leftIconStyle}}}],data:()=>({message:"",parentData:{labelPosition:"left",labelAlign:"left",labelStyle:{},labelWidth:45,errorType:"message"}}),computed:{propsLine:()=>uni.$u.props.line},mounted(){this.init()},methods:{init(){this.updateParentData(),this.parent||uni.$u.error("u-form-item需要结合u-form组件使用")},updateParentData(){this.getParentData("u-form")},clearValidate(){this.message=null},resetField(){const e=uni.$u.getProperty(this.parent.originalModel,this.prop);uni.$u.setProperty(this.parent.model,this.prop,e),this.message=null},clickHandler(){this.$emit("click")}}},[["render",function(e,t,r,b,_,q){const v=m,w=n(i("u-icon"),h),x=y,P=n(i("u-line"),g);return s(),a(x,{class:"u-form-item"},{default:o((()=>[l(x,{class:"u-form-item__body",onClick:q.clickHandler,style:u([e.$u.addStyle(e.customStyle),{flexDirection:"left"===_.parentData.labelPosition?"row":"column"}])},{default:o((()=>[f(e.$slots,"label",{},(()=>[e.required||e.leftIcon||e.label?(s(),a(x,{key:0,class:"u-form-item__body__left",style:u({width:e.$u.addUnit(e.labelWidth||_.parentData.labelWidth),marginBottom:"left"===_.parentData.labelPosition?0:"5px"})},{default:o((()=>[l(x,{class:"u-form-item__body__left__content"},{default:o((()=>[e.required?(s(),a(v,{key:0,class:"u-form-item__body__left__content__required"},{default:o((()=>[d("*")])),_:1})):c("",!0),e.leftIcon?(s(),a(x,{key:1,class:"u-form-item__body__left__content__icon"},{default:o((()=>[l(w,{name:e.leftIcon,"custom-style":e.leftIconStyle},null,8,["name","custom-style"])])),_:1})):c("",!0),l(v,{class:"u-form-item__body__left__content__label",style:u([_.parentData.labelStyle,{justifyContent:"left"===_.parentData.labelAlign?"flex-start":"center"===_.parentData.labelAlign?"center":"flex-end"}])},{default:o((()=>[d(p(e.label),1)])),_:1},8,["style"])])),_:1})])),_:1},8,["style"])):c("",!0)]),!0),l(x,{class:"u-form-item__body__right"},{default:o((()=>[l(x,{class:"u-form-item__body__right__content"},{default:o((()=>[l(x,{class:"u-form-item__body__right__content__slot"},{default:o((()=>[f(e.$slots,"default",{},void 0,!0)])),_:3}),e.$slots.right?(s(),a(x,{key:0,class:"item__body__right__content__icon"},{default:o((()=>[f(e.$slots,"right",{},void 0,!0)])),_:3})):c("",!0)])),_:3})])),_:3})])),_:3},8,["onClick","style"]),f(e.$slots,"error",{},(()=>[_.message&&"message"===_.parentData.errorType?(s(),a(v,{key:0,class:"u-form-item__body__right__message",style:u({marginLeft:e.$u.addUnit("top"===_.parentData.labelPosition?0:e.labelWidth||_.parentData.labelWidth)})},{default:o((()=>[d(p(_.message),1)])),_:1},8,["style"])):c("",!0)]),!0),e.borderBottom?(s(),a(P,{key:0,color:_.message&&"border-bottom"===_.parentData.errorType?e.$u.color.error:q.propsLine.color,customStyle:`margin-top: ${_.message&&"message"===_.parentData.errorType?"5px":0}`},null,8,["color","customStyle"])):c("",!0)])),_:3})}],["__scopeId","data-v-a180cd81"]]),q={props:{model:{type:Object,default:e.form.model},rules:{type:[Object,Function,Array],default:e.form.rules},errorType:{type:String,default:e.form.errorType},borderBottom:{type:Boolean,default:e.form.borderBottom},labelPosition:{type:String,default:e.form.labelPosition},labelWidth:{type:[String,Number],default:e.form.labelWidth},labelAlign:{type:String,default:e.form.labelAlign},labelStyle:{type:Object,default:e.form.labelStyle}}},v=/%[sdj%]/g;let w=function(){};function x(e){if(!e||!e.length)return null;const t={};return e.forEach((e=>{const{field:r}=e;t[r]=t[r]||[],t[r].push(e)})),t}function P(){for(var e=arguments.length,t=new Array(e),r=0;r{if("%%"===e)return"%";if(n>=s)return e;switch(e){case"%s":return String(t[n++]);case"%d":return Number(t[n++]);case"%j":try{return JSON.stringify(t[n++])}catch(r){return"[Circular]"}break;default:return e}}));for(let r=t[n];n{const s=function(e){const t=[];return Object.keys(e).forEach((r=>{t.push.apply(t,e[r])})),t}(e);$(s,r,(function(e){return n(e),e.length?i({errors:e,fields:x(e)}):t()}))}));return t.catch((e=>e)),t}let i=t.firstFields||[];!0===i&&(i=Object.keys(e));const s=Object.keys(e),a=s.length;let o=0;const l=[],u=new Promise(((t,u)=>{const f=function(e){if(l.push.apply(l,e),o++,o===a)return n(l),l.length?u({errors:l,fields:x(l)}):t()};s.length||(n(l),t()),s.forEach((t=>{const n=e[t];-1!==i.indexOf(t)?$(n,r,f):function(e,t,r){const n=[];let i=0;const s=e.length;function a(e){n.push.apply(n,e),i++,i===s&&r(n)}e.forEach((e=>{t(e,a)}))}(n,r,f)}))}));return u.catch((e=>e)),u}function A(e){return function(t){return t&&t.message?(t.field=t.field||e.fullField,t):{message:"function"==typeof t?t():t,field:t.field||e.fullField}}}function F(e,t){if(t)for(const r in t)if(t.hasOwnProperty(r)){const n=t[r];"object"==typeof n&&"object"==typeof e[r]?e[r]={...e[r],...n}:e[r]=n}return e}function S(e,t,r,n,i,s){!e.required||r.hasOwnProperty(e.field)&&!O(t,s||e.type)||n.push(P(i.messages.required,e.fullField))}"undefined"!=typeof process&&process.env;const D={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,url:new RegExp("^(?!mailto:)(?:(?:http|https|ftp)://|//)(?:\\S+(?::\\S*)?@)?(?:(?:(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[0-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u00a1-\\uffff0-9]+-*)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]+-*)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))|localhost)(?::\\d{2,5})?(?:(/|\\?|#)[^\\s]*)?$","i"),hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i};var k={integer:function(e){return/^(-)?\d+$/.test(e)},float:function(e){return/^(-)?\d+(\.\d+)?$/.test(e)},array:function(e){return Array.isArray(e)},regexp:function(e){if(e instanceof RegExp)return!0;try{return!!new RegExp(e)}catch(t){return!1}},date:function(e){return"function"==typeof e.getTime&&"function"==typeof e.getMonth&&"function"==typeof e.getYear},number:function(e){return!isNaN(e)&&"number"==typeof+e},object:function(e){return"object"==typeof e&&!k.array(e)},method:function(e){return"function"==typeof e},email:function(e){return"string"==typeof e&&!!e.match(D.email)&&e.length<255},url:function(e){return"string"==typeof e&&!!e.match(D.url)},hex:function(e){return"string"==typeof e&&!!e.match(D.hex)}};const I={required:S,whitespace:function(e,t,r,n,i){(/^\s+$/.test(t)||""===t)&&n.push(P(i.messages.whitespace,e.fullField))},type:function(e,t,r,n,i){if(e.required&&void 0===t)return void S(e,t,r,n,i);const s=e.type;["integer","float","array","regexp","object","method","email","number","date","url","hex"].indexOf(s)>-1?k[s](t)||n.push(P(i.messages.types[s],e.fullField,e.type)):s&&typeof t!==e.type&&n.push(P(i.messages.types[s],e.fullField,e.type))},range:function(e,t,r,n,i){const s="number"==typeof e.len,a="number"==typeof e.min,o="number"==typeof e.max,l=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g;let u=t,f=null;const d="number"==typeof t,c="string"==typeof t,p=Array.isArray(t);if(d?f="number":c?f="string":p&&(f="array"),!f)return!1;p&&(u=t.length),c&&(u=t.replace(l,"_").length),s?u!==e.len&&n.push(P(i.messages[f].len,e.fullField,e.len)):a&&!o&&ue.max?n.push(P(i.messages[f].max,e.fullField,e.max)):a&&o&&(ue.max)&&n.push(P(i.messages[f].range,e.fullField,e.min,e.max))},enum:function(e,t,r,n,i){e.enum=Array.isArray(e.enum)?e.enum:[],-1===e.enum.indexOf(t)&&n.push(P(i.messages.enum,e.fullField,e.enum.join(", ")))},pattern:function(e,t,r,n,i){if(e.pattern)if(e.pattern instanceof RegExp)e.pattern.lastIndex=0,e.pattern.test(t)||n.push(P(i.messages.pattern.mismatch,e.fullField,t,e.pattern));else if("string"==typeof e.pattern){new RegExp(e.pattern).test(t)||n.push(P(i.messages.pattern.mismatch,e.fullField,t,e.pattern))}}};function E(e,t,r,n,i){const s=e.type,a=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if(O(t,s)&&!e.required)return r();I.required(e,t,n,a,i,s),O(t,s)||I.type(e,t,n,a,i)}r(a)}const T={string:function(e,t,r,n,i){const s=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if(O(t,"string")&&!e.required)return r();I.required(e,t,n,s,i,"string"),O(t,"string")||(I.type(e,t,n,s,i),I.range(e,t,n,s,i),I.pattern(e,t,n,s,i),!0===e.whitespace&&I.whitespace(e,t,n,s,i))}r(s)},method:function(e,t,r,n,i){const s=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if(O(t)&&!e.required)return r();I.required(e,t,n,s,i),void 0!==t&&I.type(e,t,n,s,i)}r(s)},number:function(e,t,r,n,i){const s=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if(""===t&&(t=void 0),O(t)&&!e.required)return r();I.required(e,t,n,s,i),void 0!==t&&(I.type(e,t,n,s,i),I.range(e,t,n,s,i))}r(s)},boolean:function(e,t,r,n,i){const s=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if(O(t)&&!e.required)return r();I.required(e,t,n,s,i),void 0!==t&&I.type(e,t,n,s,i)}r(s)},regexp:function(e,t,r,n,i){const s=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if(O(t)&&!e.required)return r();I.required(e,t,n,s,i),O(t)||I.type(e,t,n,s,i)}r(s)},integer:function(e,t,r,n,i){const s=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if(O(t)&&!e.required)return r();I.required(e,t,n,s,i),void 0!==t&&(I.type(e,t,n,s,i),I.range(e,t,n,s,i))}r(s)},float:function(e,t,r,n,i){const s=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if(O(t)&&!e.required)return r();I.required(e,t,n,s,i),void 0!==t&&(I.type(e,t,n,s,i),I.range(e,t,n,s,i))}r(s)},array:function(e,t,r,n,i){const s=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if(O(t,"array")&&!e.required)return r();I.required(e,t,n,s,i,"array"),O(t,"array")||(I.type(e,t,n,s,i),I.range(e,t,n,s,i))}r(s)},object:function(e,t,r,n,i){const s=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if(O(t)&&!e.required)return r();I.required(e,t,n,s,i),void 0!==t&&I.type(e,t,n,s,i)}r(s)},enum:function(e,t,r,n,i){const s=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if(O(t)&&!e.required)return r();I.required(e,t,n,s,i),void 0!==t&&I.enum(e,t,n,s,i)}r(s)},pattern:function(e,t,r,n,i){const s=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if(O(t,"string")&&!e.required)return r();I.required(e,t,n,s,i),O(t,"string")||I.pattern(e,t,n,s,i)}r(s)},date:function(e,t,r,n,i){const s=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if(O(t)&&!e.required)return r();if(I.required(e,t,n,s,i),!O(t)){let r;r="number"==typeof t?new Date(t):t,I.type(e,r,n,s,i),r&&I.range(e,r.getTime(),n,s,i)}}r(s)},url:E,hex:E,email:E,required:function(e,t,r,n,i){const s=[],a=Array.isArray(t)?"array":typeof t;I.required(e,t,n,s,i,a),r(s)},any:function(e,t,r,n,i){const s=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if(O(t)&&!e.required)return r();I.required(e,t,n,s,i)}r(s)}};function R(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){const e=JSON.parse(JSON.stringify(this));return e.clone=this.clone,e}}}const W=R();function B(e){this.rules=null,this._messages=W,this.define(e)}B.prototype={messages:function(e){return e&&(this._messages=F(R(),e)),this._messages},define:function(e){if(!e)throw new Error("Cannot configure a schema with no rules");if("object"!=typeof e||Array.isArray(e))throw new Error("Rules must be an object");let t,r;for(t in this.rules={},e)e.hasOwnProperty(t)&&(r=e[t],this.rules[t]=Array.isArray(r)?r:[r])},validate:function(e,t,r){const n=this;void 0===t&&(t={}),void 0===r&&(r=function(){});let i,s,a=e,o=t,l=r;if("function"==typeof o&&(l=o,o={}),!this.rules||0===Object.keys(this.rules).length)return l&&l(),Promise.resolve();if(o.messages){let e=this.messages();e===W&&(e=R()),F(e,o.messages),o.messages=e}else o.messages=this.messages();const u={};(o.keys||Object.keys(this.rules)).forEach((t=>{i=n.rules[t],s=a[t],i.forEach((r=>{let i=r;"function"==typeof i.transform&&(a===e&&(a={...a}),s=a[t]=i.transform(s)),i="function"==typeof i?{validator:i}:{...i},i.validator=n.getValidationMethod(i),i.field=t,i.fullField=i.fullField||t,i.type=n.getType(i),i.validator&&(u[t]=u[t]||[],u[t].push({rule:i,value:s,source:a,field:t}))}))}));const f={};return j(u,o,((e,t)=>{const{rule:r}=e;let n,i=!("object"!==r.type&&"array"!==r.type||"object"!=typeof r.fields&&"object"!=typeof r.defaultField);function s(e,t){return{...t,fullField:`${r.fullField}.${e}`}}function a(n){void 0===n&&(n=[]);let a=n;if(Array.isArray(a)||(a=[a]),!o.suppressWarning&&a.length&&B.warning("async-validator:",a),a.length&&r.message&&(a=[].concat(r.message)),a=a.map(A(r)),o.first&&a.length)return f[r.field]=1,t(a);if(i){if(r.required&&!e.value)return a=r.message?[].concat(r.message).map(A(r)):o.error?[o.error(r,P(o.messages.required,r.field))]:[],t(a);let n={};if(r.defaultField)for(const t in e.value)e.value.hasOwnProperty(t)&&(n[t]=r.defaultField);n={...n,...e.rule.fields};for(const e in n)if(n.hasOwnProperty(e)){const t=Array.isArray(n[e])?n[e]:[n[e]];n[e]=t.map(s.bind(null,e))}const i=new B(n);i.messages(o.messages),e.rule.options&&(e.rule.options.messages=o.messages,e.rule.options.error=o.error),i.validate(e.value,e.rule.options||o,(e=>{const r=[];a&&a.length&&r.push.apply(r,a),e&&e.length&&r.push.apply(r,e),t(r.length?r:null)}))}else t(a)}i=i&&(r.required||!r.required&&e.value),r.field=e.field,r.asyncValidator?n=r.asyncValidator(r,e.value,a,e.source,o):r.validator&&(n=r.validator(r,e.value,a,e.source,o),!0===n?a():!1===n?a(r.message||`${r.field} fails`):n instanceof Array?a(n):n instanceof Error&&a(n.message)),n&&n.then&&n.then((()=>a()),(e=>a(e)))}),(e=>{!function(e){let t,r=[],n={};function i(e){if(Array.isArray(e)){let t;r=(t=r).concat.apply(t,e)}else r.push(e)}for(t=0;t({formRules:{},validator:{},originalModel:null}),watch:{rules:{immediate:!0,handler(e){this.setRules(e)}},propsChange(e){var t;(null==(t=this.children)?void 0:t.length)&&this.children.map((e=>{"function"==typeof e.updateParentData&&e.updateParentData()}))},model:{immediate:!0,handler(e){this.originalModel||(this.originalModel=uni.$u.deepClone(e))}}},computed:{propsChange(){return[this.errorType,this.borderBottom,this.labelPosition,this.labelWidth,this.labelAlign,this.labelStyle]}},created(){this.children=[]},methods:{setRules(e){0!==Object.keys(e).length&&(this.formRules=e,this.validator=new B(e))},resetFields(){this.resetModel()},resetModel(e){this.children.map((e=>{const t=null==e?void 0:e.prop,r=uni.$u.getProperty(this.originalModel,t);uni.$u.setProperty(this.model,t,r)}))},clearValidate(e){e=[].concat(e),this.children.map((t=>{(void 0===e[0]||e.includes(t.prop))&&(t.message=null)}))},async validateField(e,t,r=null){this.$nextTick((()=>{const n=[];e=[].concat(e),this.children.map((t=>{const i=[];if(e.includes(t.prop)){const e=uni.$u.getProperty(this.model,t.prop),s=t.prop.split("."),a=s[s.length-1],o=this.formRules[t.prop];if(!o)return;const l=[].concat(o);for(let u=0;u{var s;uni.$u.test.array(e)&&(n.push(...e),i.push(...e)),t.message=(null==(s=i[0])?void 0:s.message)??null}))}}})),"function"==typeof t&&t(n)}))},validate(e){return new Promise(((e,t)=>{this.$nextTick((()=>{const r=this.children.map((e=>e.prop));this.validateField(r,(r=>{r.length?("toast"===this.errorType&&uni.$u.toast(r[0].message),t(r)):e(!0)}))}))}))}}},[["render",function(e,t,r,n,i,l){const u=y;return s(),a(u,{class:"u-form"},{default:o((()=>[f(e.$slots,"default")])),_:3})}]]);export{_,C as a}; diff --git a/niucloud/public/wap/assets/u-icon.461524ba.js b/niucloud/public/wap/assets/u-icon.f5369555.js similarity index 98% rename from niucloud/public/wap/assets/u-icon.461524ba.js rename to niucloud/public/wap/assets/u-icon.f5369555.js index fc272cb32..0d2868c6a 100644 --- a/niucloud/public/wap/assets/u-icon.461524ba.js +++ b/niucloud/public/wap/assets/u-icon.f5369555.js @@ -1 +1 @@ -import{x as i,y as o,z as c,h as n,i as l,w as e,n as u,F as t,C as r,D as a,E as s,a1 as f,H as d,q as p}from"./index-5bb08350.js";import{_ as m}from"./_plugin-vue_export-helper.1b428a4d.js";const h={"uicon-level":"","uicon-column-line":"","uicon-checkbox-mark":"","uicon-folder":"","uicon-movie":"","uicon-star-fill":"","uicon-star":"","uicon-phone-fill":"","uicon-phone":"","uicon-apple-fill":"","uicon-chrome-circle-fill":"","uicon-backspace":"","uicon-attach":"","uicon-cut":"","uicon-empty-car":"","uicon-empty-coupon":"","uicon-empty-address":"","uicon-empty-favor":"","uicon-empty-permission":"","uicon-empty-news":"","uicon-empty-search":"","uicon-github-circle-fill":"","uicon-rmb":"","uicon-person-delete-fill":"","uicon-reload":"","uicon-order":"","uicon-server-man":"","uicon-search":"","uicon-fingerprint":"","uicon-more-dot-fill":"","uicon-scan":"","uicon-share-square":"","uicon-map":"","uicon-map-fill":"","uicon-tags":"","uicon-tags-fill":"","uicon-bookmark-fill":"","uicon-bookmark":"","uicon-eye":"","uicon-eye-fill":"","uicon-mic":"","uicon-mic-off":"","uicon-calendar":"","uicon-calendar-fill":"","uicon-trash":"","uicon-trash-fill":"","uicon-play-left":"","uicon-play-right":"","uicon-minus":"","uicon-plus":"","uicon-info":"","uicon-info-circle":"","uicon-info-circle-fill":"","uicon-question":"","uicon-error":"","uicon-close":"","uicon-checkmark":"","uicon-android-circle-fill":"","uicon-android-fill":"","uicon-ie":"","uicon-IE-circle-fill":"","uicon-google":"","uicon-google-circle-fill":"","uicon-setting-fill":"","uicon-setting":"","uicon-minus-square-fill":"","uicon-plus-square-fill":"","uicon-heart":"","uicon-heart-fill":"","uicon-camera":"","uicon-camera-fill":"","uicon-more-circle":"","uicon-more-circle-fill":"","uicon-chat":"","uicon-chat-fill":"","uicon-bag-fill":"","uicon-bag":"","uicon-error-circle-fill":"","uicon-error-circle":"","uicon-close-circle":"","uicon-close-circle-fill":"","uicon-checkmark-circle":"","uicon-checkmark-circle-fill":"","uicon-question-circle-fill":"","uicon-question-circle":"","uicon-share":"","uicon-share-fill":"","uicon-shopping-cart":"","uicon-shopping-cart-fill":"","uicon-bell":"","uicon-bell-fill":"","uicon-list":"","uicon-list-dot":"","uicon-zhihu":"","uicon-zhihu-circle-fill":"","uicon-zhifubao":"","uicon-zhifubao-circle-fill":"","uicon-weixin-circle-fill":"","uicon-weixin-fill":"","uicon-twitter-circle-fill":"","uicon-twitter":"","uicon-taobao-circle-fill":"","uicon-taobao":"","uicon-weibo-circle-fill":"","uicon-weibo":"","uicon-qq-fill":"","uicon-qq-circle-fill":"","uicon-moments-circel-fill":"","uicon-moments":"","uicon-qzone":"","uicon-qzone-circle-fill":"","uicon-baidu-circle-fill":"","uicon-baidu":"","uicon-facebook-circle-fill":"","uicon-facebook":"","uicon-car":"","uicon-car-fill":"","uicon-warning-fill":"","uicon-warning":"","uicon-clock-fill":"","uicon-clock":"","uicon-edit-pen":"","uicon-edit-pen-fill":"","uicon-email":"","uicon-email-fill":"","uicon-minus-circle":"","uicon-minus-circle-fill":"","uicon-plus-circle":"","uicon-plus-circle-fill":"","uicon-file-text":"","uicon-file-text-fill":"","uicon-pushpin":"","uicon-pushpin-fill":"","uicon-grid":"","uicon-grid-fill":"","uicon-play-circle":"","uicon-play-circle-fill":"","uicon-pause-circle-fill":"","uicon-pause":"","uicon-pause-circle":"","uicon-eye-off":"","uicon-eye-off-outline":"","uicon-gift-fill":"","uicon-gift":"","uicon-rmb-circle-fill":"","uicon-rmb-circle":"","uicon-kefu-ermai":"","uicon-server-fill":"","uicon-coupon-fill":"","uicon-coupon":"","uicon-integral":"","uicon-integral-fill":"","uicon-home-fill":"","uicon-home":"","uicon-hourglass-half-fill":"","uicon-hourglass":"","uicon-account":"","uicon-plus-people-fill":"","uicon-minus-people-fill":"","uicon-account-fill":"","uicon-thumb-down-fill":"","uicon-thumb-down":"","uicon-thumb-up":"","uicon-thumb-up-fill":"","uicon-lock-fill":"","uicon-lock-open":"","uicon-lock-opened-fill":"","uicon-lock":"","uicon-red-packet-fill":"","uicon-photo-fill":"","uicon-photo":"","uicon-volume-off-fill":"","uicon-volume-off":"","uicon-volume-fill":"","uicon-volume":"","uicon-red-packet":"","uicon-download":"","uicon-arrow-up-fill":"","uicon-arrow-down-fill":"","uicon-play-left-fill":"","uicon-play-right-fill":"","uicon-rewind-left-fill":"","uicon-rewind-right-fill":"","uicon-arrow-downward":"","uicon-arrow-leftward":"","uicon-arrow-rightward":"","uicon-arrow-upward":"","uicon-arrow-down":"","uicon-arrow-right":"","uicon-arrow-left":"","uicon-arrow-up":"","uicon-skip-back-left":"","uicon-skip-forward-right":"","uicon-rewind-right":"","uicon-rewind-left":"","uicon-arrow-right-double":"","uicon-arrow-left-double":"","uicon-wifi-off":"","uicon-wifi":"","uicon-empty-data":"","uicon-empty-history":"","uicon-empty-list":"","uicon-empty-page":"","uicon-empty-order":"","uicon-man":"","uicon-woman":"","uicon-man-add":"","uicon-man-add-fill":"","uicon-man-delete":"","uicon-man-delete-fill":"","uicon-zh":"","uicon-en":""};const g=m({name:"u-icon",data:()=>({}),emits:["click"],mixins:[o,c,{props:{name:{type:String,default:i.icon.name},color:{type:String,default:i.icon.color},size:{type:[String,Number],default:i.icon.size},bold:{type:Boolean,default:i.icon.bold},index:{type:[String,Number],default:i.icon.index},hoverClass:{type:String,default:i.icon.hoverClass},customPrefix:{type:String,default:i.icon.customPrefix},label:{type:[String,Number],default:i.icon.label},labelPos:{type:String,default:i.icon.labelPos},labelSize:{type:[String,Number],default:i.icon.labelSize},labelColor:{type:String,default:i.icon.labelColor},space:{type:[String,Number],default:i.icon.space},imgMode:{type:String,default:i.icon.imgMode},width:{type:[String,Number],default:i.icon.width},height:{type:[String,Number],default:i.icon.height},top:{type:[String,Number],default:i.icon.top},stop:{type:Boolean,default:i.icon.stop}}}],computed:{uClasses(){let i=[];return i.push(this.customPrefix+"-"+this.name),this.color&&uni.$u.config.type.includes(this.color)&&i.push("u-icon__icon--"+this.color),i},iconStyle(){let i={};return i={fontSize:uni.$u.addUnit(this.size),lineHeight:uni.$u.addUnit(this.size),fontWeight:this.bold?"bold":"normal",top:uni.$u.addUnit(this.top)},this.color&&!uni.$u.config.type.includes(this.color)&&(i.color=this.color),i},isImg(){return-1!==this.name.indexOf("/")},imgStyle(){let i={};return i.width=this.width?uni.$u.addUnit(this.width):uni.$u.addUnit(this.size),i.height=this.height?uni.$u.addUnit(this.height):uni.$u.addUnit(this.size),i},icon(){return h["uicon-"+this.name]||this.name}},methods:{clickHandler(i){this.$emit("click",this.index),this.stop&&this.preventEvent(i)}}},[["render",function(i,o,c,m,h,g){const b=f,y=d,w=p;return n(),l(w,{class:t(["u-icon",["u-icon--"+i.labelPos]]),onClick:g.clickHandler},{default:e((()=>[g.isImg?(n(),l(b,{key:0,class:"u-icon__img",src:i.name,mode:i.imgMode,style:u([g.imgStyle,i.$u.addStyle(i.customStyle)])},null,8,["src","mode","style"])):(n(),l(y,{key:1,class:t(["u-icon__icon",g.uClasses]),style:u([g.iconStyle,i.$u.addStyle(i.customStyle)]),"hover-class":i.hoverClass},{default:e((()=>[r(a(g.icon),1)])),_:1},8,["class","style","hover-class"])),""!==i.label?(n(),l(y,{key:2,class:"u-icon__label",style:u({color:i.labelColor,fontSize:i.$u.addUnit(i.labelSize),marginLeft:"right"==i.labelPos?i.$u.addUnit(i.space):0,marginTop:"bottom"==i.labelPos?i.$u.addUnit(i.space):0,marginRight:"left"==i.labelPos?i.$u.addUnit(i.space):0,marginBottom:"top"==i.labelPos?i.$u.addUnit(i.space):0})},{default:e((()=>[r(a(i.label),1)])),_:1},8,["style"])):s("",!0)])),_:1},8,["onClick","class"])}],["__scopeId","data-v-890c3ce2"]]);export{g as _}; +import{y as i,z as o,A as c,h as n,i as l,w as e,n as u,F as t,D as r,E as a,m as s,a1 as f,H as d,t as p}from"./index-15eacd31.js";import{_ as m}from"./_plugin-vue_export-helper.1b428a4d.js";const h={"uicon-level":"","uicon-column-line":"","uicon-checkbox-mark":"","uicon-folder":"","uicon-movie":"","uicon-star-fill":"","uicon-star":"","uicon-phone-fill":"","uicon-phone":"","uicon-apple-fill":"","uicon-chrome-circle-fill":"","uicon-backspace":"","uicon-attach":"","uicon-cut":"","uicon-empty-car":"","uicon-empty-coupon":"","uicon-empty-address":"","uicon-empty-favor":"","uicon-empty-permission":"","uicon-empty-news":"","uicon-empty-search":"","uicon-github-circle-fill":"","uicon-rmb":"","uicon-person-delete-fill":"","uicon-reload":"","uicon-order":"","uicon-server-man":"","uicon-search":"","uicon-fingerprint":"","uicon-more-dot-fill":"","uicon-scan":"","uicon-share-square":"","uicon-map":"","uicon-map-fill":"","uicon-tags":"","uicon-tags-fill":"","uicon-bookmark-fill":"","uicon-bookmark":"","uicon-eye":"","uicon-eye-fill":"","uicon-mic":"","uicon-mic-off":"","uicon-calendar":"","uicon-calendar-fill":"","uicon-trash":"","uicon-trash-fill":"","uicon-play-left":"","uicon-play-right":"","uicon-minus":"","uicon-plus":"","uicon-info":"","uicon-info-circle":"","uicon-info-circle-fill":"","uicon-question":"","uicon-error":"","uicon-close":"","uicon-checkmark":"","uicon-android-circle-fill":"","uicon-android-fill":"","uicon-ie":"","uicon-IE-circle-fill":"","uicon-google":"","uicon-google-circle-fill":"","uicon-setting-fill":"","uicon-setting":"","uicon-minus-square-fill":"","uicon-plus-square-fill":"","uicon-heart":"","uicon-heart-fill":"","uicon-camera":"","uicon-camera-fill":"","uicon-more-circle":"","uicon-more-circle-fill":"","uicon-chat":"","uicon-chat-fill":"","uicon-bag-fill":"","uicon-bag":"","uicon-error-circle-fill":"","uicon-error-circle":"","uicon-close-circle":"","uicon-close-circle-fill":"","uicon-checkmark-circle":"","uicon-checkmark-circle-fill":"","uicon-question-circle-fill":"","uicon-question-circle":"","uicon-share":"","uicon-share-fill":"","uicon-shopping-cart":"","uicon-shopping-cart-fill":"","uicon-bell":"","uicon-bell-fill":"","uicon-list":"","uicon-list-dot":"","uicon-zhihu":"","uicon-zhihu-circle-fill":"","uicon-zhifubao":"","uicon-zhifubao-circle-fill":"","uicon-weixin-circle-fill":"","uicon-weixin-fill":"","uicon-twitter-circle-fill":"","uicon-twitter":"","uicon-taobao-circle-fill":"","uicon-taobao":"","uicon-weibo-circle-fill":"","uicon-weibo":"","uicon-qq-fill":"","uicon-qq-circle-fill":"","uicon-moments-circel-fill":"","uicon-moments":"","uicon-qzone":"","uicon-qzone-circle-fill":"","uicon-baidu-circle-fill":"","uicon-baidu":"","uicon-facebook-circle-fill":"","uicon-facebook":"","uicon-car":"","uicon-car-fill":"","uicon-warning-fill":"","uicon-warning":"","uicon-clock-fill":"","uicon-clock":"","uicon-edit-pen":"","uicon-edit-pen-fill":"","uicon-email":"","uicon-email-fill":"","uicon-minus-circle":"","uicon-minus-circle-fill":"","uicon-plus-circle":"","uicon-plus-circle-fill":"","uicon-file-text":"","uicon-file-text-fill":"","uicon-pushpin":"","uicon-pushpin-fill":"","uicon-grid":"","uicon-grid-fill":"","uicon-play-circle":"","uicon-play-circle-fill":"","uicon-pause-circle-fill":"","uicon-pause":"","uicon-pause-circle":"","uicon-eye-off":"","uicon-eye-off-outline":"","uicon-gift-fill":"","uicon-gift":"","uicon-rmb-circle-fill":"","uicon-rmb-circle":"","uicon-kefu-ermai":"","uicon-server-fill":"","uicon-coupon-fill":"","uicon-coupon":"","uicon-integral":"","uicon-integral-fill":"","uicon-home-fill":"","uicon-home":"","uicon-hourglass-half-fill":"","uicon-hourglass":"","uicon-account":"","uicon-plus-people-fill":"","uicon-minus-people-fill":"","uicon-account-fill":"","uicon-thumb-down-fill":"","uicon-thumb-down":"","uicon-thumb-up":"","uicon-thumb-up-fill":"","uicon-lock-fill":"","uicon-lock-open":"","uicon-lock-opened-fill":"","uicon-lock":"","uicon-red-packet-fill":"","uicon-photo-fill":"","uicon-photo":"","uicon-volume-off-fill":"","uicon-volume-off":"","uicon-volume-fill":"","uicon-volume":"","uicon-red-packet":"","uicon-download":"","uicon-arrow-up-fill":"","uicon-arrow-down-fill":"","uicon-play-left-fill":"","uicon-play-right-fill":"","uicon-rewind-left-fill":"","uicon-rewind-right-fill":"","uicon-arrow-downward":"","uicon-arrow-leftward":"","uicon-arrow-rightward":"","uicon-arrow-upward":"","uicon-arrow-down":"","uicon-arrow-right":"","uicon-arrow-left":"","uicon-arrow-up":"","uicon-skip-back-left":"","uicon-skip-forward-right":"","uicon-rewind-right":"","uicon-rewind-left":"","uicon-arrow-right-double":"","uicon-arrow-left-double":"","uicon-wifi-off":"","uicon-wifi":"","uicon-empty-data":"","uicon-empty-history":"","uicon-empty-list":"","uicon-empty-page":"","uicon-empty-order":"","uicon-man":"","uicon-woman":"","uicon-man-add":"","uicon-man-add-fill":"","uicon-man-delete":"","uicon-man-delete-fill":"","uicon-zh":"","uicon-en":""};const g=m({name:"u-icon",data:()=>({}),emits:["click"],mixins:[o,c,{props:{name:{type:String,default:i.icon.name},color:{type:String,default:i.icon.color},size:{type:[String,Number],default:i.icon.size},bold:{type:Boolean,default:i.icon.bold},index:{type:[String,Number],default:i.icon.index},hoverClass:{type:String,default:i.icon.hoverClass},customPrefix:{type:String,default:i.icon.customPrefix},label:{type:[String,Number],default:i.icon.label},labelPos:{type:String,default:i.icon.labelPos},labelSize:{type:[String,Number],default:i.icon.labelSize},labelColor:{type:String,default:i.icon.labelColor},space:{type:[String,Number],default:i.icon.space},imgMode:{type:String,default:i.icon.imgMode},width:{type:[String,Number],default:i.icon.width},height:{type:[String,Number],default:i.icon.height},top:{type:[String,Number],default:i.icon.top},stop:{type:Boolean,default:i.icon.stop}}}],computed:{uClasses(){let i=[];return i.push(this.customPrefix+"-"+this.name),this.color&&uni.$u.config.type.includes(this.color)&&i.push("u-icon__icon--"+this.color),i},iconStyle(){let i={};return i={fontSize:uni.$u.addUnit(this.size),lineHeight:uni.$u.addUnit(this.size),fontWeight:this.bold?"bold":"normal",top:uni.$u.addUnit(this.top)},this.color&&!uni.$u.config.type.includes(this.color)&&(i.color=this.color),i},isImg(){return-1!==this.name.indexOf("/")},imgStyle(){let i={};return i.width=this.width?uni.$u.addUnit(this.width):uni.$u.addUnit(this.size),i.height=this.height?uni.$u.addUnit(this.height):uni.$u.addUnit(this.size),i},icon(){return h["uicon-"+this.name]||this.name}},methods:{clickHandler(i){this.$emit("click",this.index),this.stop&&this.preventEvent(i)}}},[["render",function(i,o,c,m,h,g){const b=f,y=d,w=p;return n(),l(w,{class:t(["u-icon",["u-icon--"+i.labelPos]]),onClick:g.clickHandler},{default:e((()=>[g.isImg?(n(),l(b,{key:0,class:"u-icon__img",src:i.name,mode:i.imgMode,style:u([g.imgStyle,i.$u.addStyle(i.customStyle)])},null,8,["src","mode","style"])):(n(),l(y,{key:1,class:t(["u-icon__icon",g.uClasses]),style:u([g.iconStyle,i.$u.addStyle(i.customStyle)]),"hover-class":i.hoverClass},{default:e((()=>[r(a(g.icon),1)])),_:1},8,["class","style","hover-class"])),""!==i.label?(n(),l(y,{key:2,class:"u-icon__label",style:u({color:i.labelColor,fontSize:i.$u.addUnit(i.labelSize),marginLeft:"right"==i.labelPos?i.$u.addUnit(i.space):0,marginTop:"bottom"==i.labelPos?i.$u.addUnit(i.space):0,marginRight:"left"==i.labelPos?i.$u.addUnit(i.space):0,marginBottom:"top"==i.labelPos?i.$u.addUnit(i.space):0})},{default:e((()=>[r(a(i.label),1)])),_:1},8,["style"])):s("",!0)])),_:1},8,["onClick","class"])}],["__scopeId","data-v-890c3ce2"]]);export{g as _}; diff --git a/niucloud/public/wap/assets/u-image.9265f18d.js b/niucloud/public/wap/assets/u-image.b892f6c4.js similarity index 92% rename from niucloud/public/wap/assets/u-image.9265f18d.js rename to niucloud/public/wap/assets/u-image.b892f6c4.js index 211f9ff57..b97c3a7ee 100644 --- a/niucloud/public/wap/assets/u-image.9265f18d.js +++ b/niucloud/public/wap/assets/u-image.b892f6c4.js @@ -1 +1 @@ -import{x as e,y as i,z as a,m as t,p as o,h as r,i as d,w as s,j as n,n as l,E as h,B as u,a1 as g,q as m}from"./index-5bb08350.js";import{_ as p}from"./u-icon.461524ba.js";import{_ as c}from"./u-transition.021c4c1c.js";import{_ as y}from"./_plugin-vue_export-helper.1b428a4d.js";const w={props:{src:{type:String,default:e.image.src},mode:{type:String,default:e.image.mode},width:{type:[String,Number],default:e.image.width},height:{type:[String,Number],default:e.image.height},shape:{type:String,default:e.image.shape},radius:{type:[String,Number],default:e.image.radius},lazyLoad:{type:Boolean,default:e.image.lazyLoad},showMenuByLongpress:{type:Boolean,default:e.image.showMenuByLongpress},loadingIcon:{type:String,default:e.image.loadingIcon},errorIcon:{type:String,default:e.image.errorIcon},showLoading:{type:Boolean,default:e.image.showLoading},showError:{type:Boolean,default:e.image.showError},fade:{type:Boolean,default:e.image.fade},webp:{type:Boolean,default:e.image.webp},duration:{type:[String,Number],default:e.image.duration},bgColor:{type:String,default:e.image.bgColor}}};const f=y({name:"u-image",mixins:[i,a,w],data(){return{isError:!1,loading:!0,opacity:1,durationTime:this.duration,backgroundStyle:{},show:!1}},watch:{src:{immediate:!0,handler(e){e?(this.isError=!1,this.loading=!0):this.isError=!0}}},computed:{wrapStyle(){let e={};return e.width=this.$u.addUnit(this.width),e.height=this.$u.addUnit(this.height),e.borderRadius="circle"==this.shape?"10000px":uni.$u.addUnit(this.radius),e.overflow=this.radius>0?"hidden":"visible",uni.$u.deepMerge(e,uni.$u.addStyle(this.customStyle))}},mounted(){this.show=!0},emits:["click","error","load"],methods:{onClick(){this.$emit("click")},onErrorHandler(e){this.loading=!1,this.isError=!0,this.$emit("error",e)},onLoadHandler(e){this.loading=!1,this.isError=!1,this.$emit("load",e),this.removeBgColor()},removeBgColor(){this.backgroundStyle={backgroundColor:"transparent"}}}},[["render",function(e,i,a,y,w,f){const b=g,$=t(o("u-icon"),p),_=m,S=t(o("u-transition"),c);return r(),d(S,{mode:"fade",show:w.show,duration:e.fade?1e3:0},{default:s((()=>[n(_,{class:"u-image",onClick:f.onClick,style:l([f.wrapStyle,w.backgroundStyle])},{default:s((()=>[w.isError?h("",!0):(r(),d(b,{key:0,src:e.src,mode:e.mode,onError:f.onErrorHandler,onLoad:f.onLoadHandler,"show-menu-by-longpress":e.showMenuByLongpress,"lazy-load":e.lazyLoad,class:"u-image__image",style:l({borderRadius:"circle"==e.shape?"10000px":e.$u.addUnit(e.radius),width:e.$u.addUnit(e.width),height:e.$u.addUnit(e.height)})},null,8,["src","mode","onError","onLoad","show-menu-by-longpress","lazy-load","style"])),e.showLoading&&w.loading?(r(),d(_,{key:1,class:"u-image__loading",style:l({borderRadius:"circle"==e.shape?"50%":e.$u.addUnit(e.radius),backgroundColor:this.bgColor,width:e.$u.addUnit(e.width),height:e.$u.addUnit(e.height)})},{default:s((()=>[u(e.$slots,"loading",{},(()=>[n($,{name:e.loadingIcon,width:e.width,height:e.height},null,8,["name","width","height"])]),!0)])),_:3},8,["style"])):h("",!0),e.showError&&w.isError&&!w.loading?(r(),d(_,{key:2,class:"u-image__error",style:l({borderRadius:"circle"==e.shape?"50%":e.$u.addUnit(e.radius),width:e.$u.addUnit(e.width),height:e.$u.addUnit(e.height)})},{default:s((()=>[u(e.$slots,"error",{},(()=>[n($,{name:e.errorIcon,width:e.width,height:e.height},null,8,["name","width","height"])]),!0)])),_:3},8,["style"])):h("",!0)])),_:3},8,["onClick","style"])])),_:3},8,["show","duration"])}],["__scopeId","data-v-466b6710"]]);export{f as _,w as p}; +import{y as e,z as i,A as a,p as t,q as o,h as r,i as d,w as s,j as n,n as l,m as h,C as u,a1 as g,t as m}from"./index-15eacd31.js";import{_ as p}from"./u-icon.f5369555.js";import{_ as c}from"./u-transition.a952a64b.js";import{_ as y}from"./_plugin-vue_export-helper.1b428a4d.js";const w={props:{src:{type:String,default:e.image.src},mode:{type:String,default:e.image.mode},width:{type:[String,Number],default:e.image.width},height:{type:[String,Number],default:e.image.height},shape:{type:String,default:e.image.shape},radius:{type:[String,Number],default:e.image.radius},lazyLoad:{type:Boolean,default:e.image.lazyLoad},showMenuByLongpress:{type:Boolean,default:e.image.showMenuByLongpress},loadingIcon:{type:String,default:e.image.loadingIcon},errorIcon:{type:String,default:e.image.errorIcon},showLoading:{type:Boolean,default:e.image.showLoading},showError:{type:Boolean,default:e.image.showError},fade:{type:Boolean,default:e.image.fade},webp:{type:Boolean,default:e.image.webp},duration:{type:[String,Number],default:e.image.duration},bgColor:{type:String,default:e.image.bgColor}}};const f=y({name:"u-image",mixins:[i,a,w],data(){return{isError:!1,loading:!0,opacity:1,durationTime:this.duration,backgroundStyle:{},show:!1}},watch:{src:{immediate:!0,handler(e){e?(this.isError=!1,this.loading=!0):this.isError=!0}}},computed:{wrapStyle(){let e={};return e.width=this.$u.addUnit(this.width),e.height=this.$u.addUnit(this.height),e.borderRadius="circle"==this.shape?"10000px":uni.$u.addUnit(this.radius),e.overflow=this.radius>0?"hidden":"visible",uni.$u.deepMerge(e,uni.$u.addStyle(this.customStyle))}},mounted(){this.show=!0},emits:["click","error","load"],methods:{onClick(){this.$emit("click")},onErrorHandler(e){this.loading=!1,this.isError=!0,this.$emit("error",e)},onLoadHandler(e){this.loading=!1,this.isError=!1,this.$emit("load",e),this.removeBgColor()},removeBgColor(){this.backgroundStyle={backgroundColor:"transparent"}}}},[["render",function(e,i,a,y,w,f){const b=g,$=t(o("u-icon"),p),_=m,S=t(o("u-transition"),c);return r(),d(S,{mode:"fade",show:w.show,duration:e.fade?1e3:0},{default:s((()=>[n(_,{class:"u-image",onClick:f.onClick,style:l([f.wrapStyle,w.backgroundStyle])},{default:s((()=>[w.isError?h("",!0):(r(),d(b,{key:0,src:e.src,mode:e.mode,onError:f.onErrorHandler,onLoad:f.onLoadHandler,"show-menu-by-longpress":e.showMenuByLongpress,"lazy-load":e.lazyLoad,class:"u-image__image",style:l({borderRadius:"circle"==e.shape?"10000px":e.$u.addUnit(e.radius),width:e.$u.addUnit(e.width),height:e.$u.addUnit(e.height)})},null,8,["src","mode","onError","onLoad","show-menu-by-longpress","lazy-load","style"])),e.showLoading&&w.loading?(r(),d(_,{key:1,class:"u-image__loading",style:l({borderRadius:"circle"==e.shape?"50%":e.$u.addUnit(e.radius),backgroundColor:this.bgColor,width:e.$u.addUnit(e.width),height:e.$u.addUnit(e.height)})},{default:s((()=>[u(e.$slots,"loading",{},(()=>[n($,{name:e.loadingIcon,width:e.width,height:e.height},null,8,["name","width","height"])]),!0)])),_:3},8,["style"])):h("",!0),e.showError&&w.isError&&!w.loading?(r(),d(_,{key:2,class:"u-image__error",style:l({borderRadius:"circle"==e.shape?"50%":e.$u.addUnit(e.radius),width:e.$u.addUnit(e.width),height:e.$u.addUnit(e.height)})},{default:s((()=>[u(e.$slots,"error",{},(()=>[n($,{name:e.errorIcon,width:e.width,height:e.height},null,8,["name","width","height"])]),!0)])),_:3},8,["style"])):h("",!0)])),_:3},8,["onClick","style"])])),_:3},8,["show","duration"])}],["__scopeId","data-v-466b6710"]]);export{f as _,w as p}; diff --git a/niucloud/public/wap/assets/u-input.cefa6e75.js b/niucloud/public/wap/assets/u-input.4212a359.js similarity index 96% rename from niucloud/public/wap/assets/u-input.cefa6e75.js rename to niucloud/public/wap/assets/u-input.4212a359.js index 6a63d75e1..887c36b71 100644 --- a/niucloud/public/wap/assets/u-input.cefa6e75.js +++ b/niucloud/public/wap/assets/u-input.4212a359.js @@ -1 +1 @@ -import{_ as e}from"./u-icon.461524ba.js";import{x as t,y as n,z as o,m as i,p as a,h as l,i as r,w as u,j as s,B as p,E as d,n as c,F as f,q as h,I as y}from"./index-5bb08350.js";import{_ as m}from"./_plugin-vue_export-helper.1b428a4d.js";const g={props:{modelValue:{type:[String,Number],default:t.input.value},type:{type:String,default:t.input.type},fixed:{type:Boolean,default:t.input.fixed},disabled:{type:Boolean,default:t.input.disabled},disabledColor:{type:String,default:t.input.disabledColor},clearable:{type:Boolean,default:t.input.clearable},password:{type:Boolean,default:t.input.password},maxlength:{type:[String,Number],default:t.input.maxlength},placeholder:{type:String,default:t.input.placeholder},placeholderClass:{type:String,default:t.input.placeholderClass},placeholderStyle:{type:[String,Object],default:t.input.placeholderStyle},showWordLimit:{type:Boolean,default:t.input.showWordLimit},confirmType:{type:String,default:t.input.confirmType},confirmHold:{type:Boolean,default:t.input.confirmHold},holdKeyboard:{type:Boolean,default:t.input.holdKeyboard},focus:{type:Boolean,default:t.input.focus},autoBlur:{type:Boolean,default:t.input.autoBlur},disableDefaultPadding:{type:Boolean,default:t.input.disableDefaultPadding},cursor:{type:[String,Number],default:t.input.cursor},cursorSpacing:{type:[String,Number],default:t.input.cursorSpacing},selectionStart:{type:[String,Number],default:t.input.selectionStart},selectionEnd:{type:[String,Number],default:t.input.selectionEnd},adjustPosition:{type:Boolean,default:t.input.adjustPosition},inputAlign:{type:String,default:t.input.inputAlign},fontSize:{type:[String,Number],default:t.input.fontSize},color:{type:String,default:t.input.color},prefixIcon:{type:String,default:t.input.prefixIcon},prefixIconStyle:{type:[String,Object],default:t.input.prefixIconStyle},suffixIcon:{type:String,default:t.input.suffixIcon},suffixIconStyle:{type:[String,Object],default:t.input.suffixIconStyle},border:{type:String,default:t.input.border},readonly:{type:Boolean,default:t.input.readonly},shape:{type:String,default:t.input.shape},formatter:{type:[Function,null],default:t.input.formatter},ignoreCompositionEvent:{type:Boolean,default:!0}}};const S=m({name:"u-input",mixins:[n,o,g],data:()=>({innerValue:"",focused:!1,firstChange:!0,changeFromInner:!1,innerFormatter:e=>e}),watch:{modelValue:{immediate:!0,handler(e,t){this.innerValue=e,!1===this.firstChange&&!1===this.changeFromInner&&this.valueChange(),this.firstChange=!1,this.changeFromInner=!1}}},computed:{isShowClear(){const{clearable:e,readonly:t,focused:n,innerValue:o}=this;return!!e&&!t&&!!n&&""!==o},inputClass(){let e=[],{border:t,disabled:n,shape:o}=this;return"surround"===t&&(e=e.concat(["u-border","u-input--radius"])),e.push(`u-input--${o}`),"bottom"===t&&(e=e.concat(["u-border-bottom","u-input--no-radius"])),e.join(" ")},wrapperStyle(){const e={};return this.disabled&&(e.backgroundColor=this.disabledColor),"none"===this.border?e.padding="0":(e.paddingTop="6px",e.paddingBottom="6px",e.paddingLeft="9px",e.paddingRight="9px"),uni.$u.deepMerge(e,uni.$u.addStyle(this.customStyle))},inputStyle(){return{color:this.color,fontSize:uni.$u.addUnit(this.fontSize),textAlign:this.inputAlign}}},emits:["update:modelValue","focus","blur","change","confirm","clear","keyboardheightchange"],methods:{setFormatter(e){this.innerFormatter=e},onInput(e){let{value:t=""}=e.detail||{};const n=(this.formatter||this.innerFormatter)(t);this.innerValue=t,this.$nextTick((()=>{this.innerValue=n,this.valueChange()}))},onBlur(e){this.$emit("blur",e.detail.value),uni.$u.sleep(50).then((()=>{this.focused=!1})),uni.$u.formValidate(this,"blur")},onFocus(e){this.focused=!0,this.$emit("focus")},onConfirm(e){this.$emit("confirm",this.innerValue)},onkeyboardheightchange(){this.$emit("keyboardheightchange")},valueChange(){const e=this.innerValue;this.$nextTick((()=>{this.$emit("update:modelValue",e),this.changeFromInner=!0,this.$emit("change",e),uni.$u.formValidate(this,"change")}))},onClear(){this.innerValue="",this.$nextTick((()=>{this.valueChange(),this.$emit("clear")}))},clickHandler(){}}},[["render",function(t,n,o,m,g,S){const b=i(a("u-icon"),e),x=h,_=y;return l(),r(x,{class:f(["u-input",S.inputClass]),style:c([S.wrapperStyle])},{default:u((()=>[s(x,{class:"u-input__content"},{default:u((()=>[t.prefixIcon||t.$slots.prefix?(l(),r(x,{key:0,class:"u-input__content__prefix-icon"},{default:u((()=>[p(t.$slots,"prefix",{},(()=>[s(b,{name:t.prefixIcon,size:"18",customStyle:t.prefixIconStyle},null,8,["name","customStyle"])]),!0)])),_:3})):d("",!0),s(x,{class:"u-input__content__field-wrapper",onClick:S.clickHandler},{default:u((()=>[s(_,{class:"u-input__content__field-wrapper__field",style:c([S.inputStyle]),type:t.type,focus:t.focus,cursor:t.cursor,value:g.innerValue,"auto-blur":t.autoBlur,disabled:t.disabled||t.readonly,maxlength:t.maxlength,placeholder:t.placeholder,"placeholder-style":t.placeholderStyle,"placeholder-class":t.placeholderClass,"confirm-type":t.confirmType,"confirm-hold":t.confirmHold,"hold-keyboard":t.holdKeyboard,"cursor-spacing":t.cursorSpacing,"adjust-position":t.adjustPosition,"selection-end":t.selectionEnd,"selection-start":t.selectionStart,password:t.password||"password"===t.type||void 0,ignoreCompositionEvent:t.ignoreCompositionEvent,onInput:S.onInput,onBlur:S.onBlur,onFocus:S.onFocus,onConfirm:S.onConfirm,onKeyboardheightchange:S.onkeyboardheightchange},null,8,["style","type","focus","cursor","value","auto-blur","disabled","maxlength","placeholder","placeholder-style","placeholder-class","confirm-type","confirm-hold","hold-keyboard","cursor-spacing","adjust-position","selection-end","selection-start","password","ignoreCompositionEvent","onInput","onBlur","onFocus","onConfirm","onKeyboardheightchange"])])),_:1},8,["onClick"]),S.isShowClear?(l(),r(x,{key:1,class:"u-input__content__clear",onClick:S.onClear},{default:u((()=>[s(b,{name:"close",size:"11",color:"#ffffff",customStyle:"line-height: 12px"})])),_:1},8,["onClick"])):d("",!0),t.suffixIcon||t.$slots.suffix?(l(),r(x,{key:2,class:"u-input__content__subfix-icon"},{default:u((()=>[p(t.$slots,"suffix",{},(()=>[s(b,{name:t.suffixIcon,size:"18",customStyle:t.suffixIconStyle},null,8,["name","customStyle"])]),!0)])),_:3})):d("",!0)])),_:3})])),_:3},8,["class","style"])}],["__scopeId","data-v-afd9dafc"]]);export{S as _,g as p}; +import{_ as e}from"./u-icon.f5369555.js";import{y as t,z as n,A as o,p as i,q as a,h as l,i as r,w as u,j as s,C as p,m as d,n as c,F as f,t as h,I as y}from"./index-15eacd31.js";import{_ as m}from"./_plugin-vue_export-helper.1b428a4d.js";const g={props:{modelValue:{type:[String,Number],default:t.input.value},type:{type:String,default:t.input.type},fixed:{type:Boolean,default:t.input.fixed},disabled:{type:Boolean,default:t.input.disabled},disabledColor:{type:String,default:t.input.disabledColor},clearable:{type:Boolean,default:t.input.clearable},password:{type:Boolean,default:t.input.password},maxlength:{type:[String,Number],default:t.input.maxlength},placeholder:{type:String,default:t.input.placeholder},placeholderClass:{type:String,default:t.input.placeholderClass},placeholderStyle:{type:[String,Object],default:t.input.placeholderStyle},showWordLimit:{type:Boolean,default:t.input.showWordLimit},confirmType:{type:String,default:t.input.confirmType},confirmHold:{type:Boolean,default:t.input.confirmHold},holdKeyboard:{type:Boolean,default:t.input.holdKeyboard},focus:{type:Boolean,default:t.input.focus},autoBlur:{type:Boolean,default:t.input.autoBlur},disableDefaultPadding:{type:Boolean,default:t.input.disableDefaultPadding},cursor:{type:[String,Number],default:t.input.cursor},cursorSpacing:{type:[String,Number],default:t.input.cursorSpacing},selectionStart:{type:[String,Number],default:t.input.selectionStart},selectionEnd:{type:[String,Number],default:t.input.selectionEnd},adjustPosition:{type:Boolean,default:t.input.adjustPosition},inputAlign:{type:String,default:t.input.inputAlign},fontSize:{type:[String,Number],default:t.input.fontSize},color:{type:String,default:t.input.color},prefixIcon:{type:String,default:t.input.prefixIcon},prefixIconStyle:{type:[String,Object],default:t.input.prefixIconStyle},suffixIcon:{type:String,default:t.input.suffixIcon},suffixIconStyle:{type:[String,Object],default:t.input.suffixIconStyle},border:{type:String,default:t.input.border},readonly:{type:Boolean,default:t.input.readonly},shape:{type:String,default:t.input.shape},formatter:{type:[Function,null],default:t.input.formatter},ignoreCompositionEvent:{type:Boolean,default:!0}}};const S=m({name:"u-input",mixins:[n,o,g],data:()=>({innerValue:"",focused:!1,firstChange:!0,changeFromInner:!1,innerFormatter:e=>e}),watch:{modelValue:{immediate:!0,handler(e,t){this.innerValue=e,!1===this.firstChange&&!1===this.changeFromInner&&this.valueChange(),this.firstChange=!1,this.changeFromInner=!1}}},computed:{isShowClear(){const{clearable:e,readonly:t,focused:n,innerValue:o}=this;return!!e&&!t&&!!n&&""!==o},inputClass(){let e=[],{border:t,disabled:n,shape:o}=this;return"surround"===t&&(e=e.concat(["u-border","u-input--radius"])),e.push(`u-input--${o}`),"bottom"===t&&(e=e.concat(["u-border-bottom","u-input--no-radius"])),e.join(" ")},wrapperStyle(){const e={};return this.disabled&&(e.backgroundColor=this.disabledColor),"none"===this.border?e.padding="0":(e.paddingTop="6px",e.paddingBottom="6px",e.paddingLeft="9px",e.paddingRight="9px"),uni.$u.deepMerge(e,uni.$u.addStyle(this.customStyle))},inputStyle(){return{color:this.color,fontSize:uni.$u.addUnit(this.fontSize),textAlign:this.inputAlign}}},emits:["update:modelValue","focus","blur","change","confirm","clear","keyboardheightchange"],methods:{setFormatter(e){this.innerFormatter=e},onInput(e){let{value:t=""}=e.detail||{};const n=(this.formatter||this.innerFormatter)(t);this.innerValue=t,this.$nextTick((()=>{this.innerValue=n,this.valueChange()}))},onBlur(e){this.$emit("blur",e.detail.value),uni.$u.sleep(50).then((()=>{this.focused=!1})),uni.$u.formValidate(this,"blur")},onFocus(e){this.focused=!0,this.$emit("focus")},onConfirm(e){this.$emit("confirm",this.innerValue)},onkeyboardheightchange(){this.$emit("keyboardheightchange")},valueChange(){const e=this.innerValue;this.$nextTick((()=>{this.$emit("update:modelValue",e),this.changeFromInner=!0,this.$emit("change",e),uni.$u.formValidate(this,"change")}))},onClear(){this.innerValue="",this.$nextTick((()=>{this.valueChange(),this.$emit("clear")}))},clickHandler(){}}},[["render",function(t,n,o,m,g,S){const b=i(a("u-icon"),e),x=h,_=y;return l(),r(x,{class:f(["u-input",S.inputClass]),style:c([S.wrapperStyle])},{default:u((()=>[s(x,{class:"u-input__content"},{default:u((()=>[t.prefixIcon||t.$slots.prefix?(l(),r(x,{key:0,class:"u-input__content__prefix-icon"},{default:u((()=>[p(t.$slots,"prefix",{},(()=>[s(b,{name:t.prefixIcon,size:"18",customStyle:t.prefixIconStyle},null,8,["name","customStyle"])]),!0)])),_:3})):d("",!0),s(x,{class:"u-input__content__field-wrapper",onClick:S.clickHandler},{default:u((()=>[s(_,{class:"u-input__content__field-wrapper__field",style:c([S.inputStyle]),type:t.type,focus:t.focus,cursor:t.cursor,value:g.innerValue,"auto-blur":t.autoBlur,disabled:t.disabled||t.readonly,maxlength:t.maxlength,placeholder:t.placeholder,"placeholder-style":t.placeholderStyle,"placeholder-class":t.placeholderClass,"confirm-type":t.confirmType,"confirm-hold":t.confirmHold,"hold-keyboard":t.holdKeyboard,"cursor-spacing":t.cursorSpacing,"adjust-position":t.adjustPosition,"selection-end":t.selectionEnd,"selection-start":t.selectionStart,password:t.password||"password"===t.type||void 0,ignoreCompositionEvent:t.ignoreCompositionEvent,onInput:S.onInput,onBlur:S.onBlur,onFocus:S.onFocus,onConfirm:S.onConfirm,onKeyboardheightchange:S.onkeyboardheightchange},null,8,["style","type","focus","cursor","value","auto-blur","disabled","maxlength","placeholder","placeholder-style","placeholder-class","confirm-type","confirm-hold","hold-keyboard","cursor-spacing","adjust-position","selection-end","selection-start","password","ignoreCompositionEvent","onInput","onBlur","onFocus","onConfirm","onKeyboardheightchange"])])),_:1},8,["onClick"]),S.isShowClear?(l(),r(x,{key:1,class:"u-input__content__clear",onClick:S.onClear},{default:u((()=>[s(b,{name:"close",size:"11",color:"#ffffff",customStyle:"line-height: 12px"})])),_:1},8,["onClick"])):d("",!0),t.suffixIcon||t.$slots.suffix?(l(),r(x,{key:2,class:"u-input__content__subfix-icon"},{default:u((()=>[p(t.$slots,"suffix",{},(()=>[s(b,{name:t.suffixIcon,size:"18",customStyle:t.suffixIconStyle},null,8,["name","customStyle"])]),!0)])),_:3})):d("",!0)])),_:3})])),_:3},8,["class","style"])}],["__scopeId","data-v-afd9dafc"]]);export{S as _,g as p}; diff --git a/niucloud/public/wap/assets/u-line.0c46076e.js b/niucloud/public/wap/assets/u-line.bb8d1497.js similarity index 88% rename from niucloud/public/wap/assets/u-line.0c46076e.js rename to niucloud/public/wap/assets/u-line.bb8d1497.js index 09ebf78ac..c743a5afe 100644 --- a/niucloud/public/wap/assets/u-line.0c46076e.js +++ b/niucloud/public/wap/assets/u-line.bb8d1497.js @@ -1 +1 @@ -import{x as e,y as t,z as i,h as n,i as r,n as l,q as s}from"./index-5bb08350.js";import{_ as a}from"./_plugin-vue_export-helper.1b428a4d.js";const d=a({name:"u-line",mixins:[t,i,{props:{color:{type:String,default:e.line.color},length:{type:[String,Number],default:e.line.length},direction:{type:String,default:e.line.direction},hairline:{type:Boolean,default:e.line.hairline},margin:{type:[String,Number],default:e.line.margin},dashed:{type:Boolean,default:e.line.dashed}}}],computed:{lineStyle(){const e={};return e.margin=this.margin,"row"===this.direction?(e.borderBottomWidth="1px",e.borderBottomStyle=this.dashed?"dashed":"solid",e.width=uni.$u.addUnit(this.length),this.hairline&&(e.transform="scaleY(0.5)")):(e.borderLeftWidth="1px",e.borderLeftStyle=this.dashed?"dashed":"solid",e.height=uni.$u.addUnit(this.length),this.hairline&&(e.transform="scaleX(0.5)")),e.borderColor=this.color,uni.$u.deepMerge(e,uni.$u.addStyle(this.customStyle))}}},[["render",function(e,t,i,a,d,o){const h=s;return n(),r(h,{class:"u-line",style:l([o.lineStyle])},null,8,["style"])}],["__scopeId","data-v-45e31c7a"]]);export{d as _}; +import{y as e,z as t,A as i,h as n,i as r,n as l,t as s}from"./index-15eacd31.js";import{_ as a}from"./_plugin-vue_export-helper.1b428a4d.js";const d=a({name:"u-line",mixins:[t,i,{props:{color:{type:String,default:e.line.color},length:{type:[String,Number],default:e.line.length},direction:{type:String,default:e.line.direction},hairline:{type:Boolean,default:e.line.hairline},margin:{type:[String,Number],default:e.line.margin},dashed:{type:Boolean,default:e.line.dashed}}}],computed:{lineStyle(){const e={};return e.margin=this.margin,"row"===this.direction?(e.borderBottomWidth="1px",e.borderBottomStyle=this.dashed?"dashed":"solid",e.width=uni.$u.addUnit(this.length),this.hairline&&(e.transform="scaleY(0.5)")):(e.borderLeftWidth="1px",e.borderLeftStyle=this.dashed?"dashed":"solid",e.height=uni.$u.addUnit(this.length),this.hairline&&(e.transform="scaleX(0.5)")),e.borderColor=this.color,uni.$u.deepMerge(e,uni.$u.addStyle(this.customStyle))}}},[["render",function(e,t,i,a,d,o){const h=s;return n(),r(h,{class:"u-line",style:l([o.lineStyle])},null,8,["style"])}],["__scopeId","data-v-45e31c7a"]]);export{d as _}; diff --git a/niucloud/public/wap/assets/u-loading-icon.2e89024b.js b/niucloud/public/wap/assets/u-loading-icon.ea8c9ece.js similarity index 92% rename from niucloud/public/wap/assets/u-loading-icon.2e89024b.js rename to niucloud/public/wap/assets/u-loading-icon.ea8c9ece.js index 2e7f9eef8..1d5ca7767 100644 --- a/niucloud/public/wap/assets/u-loading-icon.2e89024b.js +++ b/niucloud/public/wap/assets/u-loading-icon.ea8c9ece.js @@ -1 +1 @@ -import{x as e,y as o,z as t,b9 as i,h as n,i as a,w as r,F as l,n as d,M as s,O as c,N as u,E as g,C as m,D as f,q as p,H as y}from"./index-5bb08350.js";import{_ as h}from"./_plugin-vue_export-helper.1b428a4d.js";const v=h({name:"u-loading-icon",mixins:[o,t,{props:{show:{type:Boolean,default:e.loadingIcon.show},color:{type:String,default:e.loadingIcon.color},textColor:{type:String,default:e.loadingIcon.textColor},vertical:{type:Boolean,default:e.loadingIcon.vertical},mode:{type:String,default:e.loadingIcon.mode},size:{type:[String,Number],default:e.loadingIcon.size},textSize:{type:[String,Number],default:e.loadingIcon.textSize},text:{type:[String,Number],default:e.loadingIcon.text},timingFunction:{type:String,default:e.loadingIcon.timingFunction},duration:{type:[String,Number],default:e.loadingIcon.duration},inactiveColor:{type:String,default:e.loadingIcon.inactiveColor}}}],data:()=>({array12:Array.from({length:12}),aniAngel:360,webviewHide:!1,loading:!1}),computed:{otherBorderColor(){const e=uni.$u.colorGradient(this.color,"#ffffff",100)[80];return"circle"===this.mode?this.inactiveColor?this.inactiveColor:e:"transparent"}},watch:{show(e){}},mounted(){this.init()},methods:{init(){setTimeout((()=>{}),20)},addEventListenerToWebview(){const e=i(),o=e[e.length-1].$getAppWebview();o.addEventListener("hide",(()=>{this.webviewHide=!0})),o.addEventListener("show",(()=>{this.webviewHide=!1}))}}},[["render",function(e,o,t,i,h,v){const w=p,_=y;return e.show?(n(),a(w,{key:0,class:l(["u-loading-icon",[e.vertical&&"u-loading-icon--vertical"]]),style:d([e.$u.addStyle(e.customStyle)])},{default:r((()=>[h.webviewHide?g("",!0):(n(),a(w,{key:0,class:l(["u-loading-icon__spinner",[`u-loading-icon__spinner--${e.mode}`]]),ref:"ani",style:d({color:e.color,width:e.$u.addUnit(e.size),height:e.$u.addUnit(e.size),borderTopColor:e.color,borderBottomColor:v.otherBorderColor,borderLeftColor:v.otherBorderColor,borderRightColor:v.otherBorderColor,"animation-duration":`${e.duration}ms`,"animation-timing-function":"semicircle"===e.mode||"circle"===e.mode?e.timingFunction:""})},{default:r((()=>["spinner"===e.mode?(n(!0),s(c,{key:0},u(h.array12,((e,o)=>(n(),a(w,{key:o,class:"u-loading-icon__dot"})))),128)):g("",!0)])),_:1},8,["class","style"])),e.text?(n(),a(_,{key:1,class:"u-loading-icon__text",style:d({fontSize:e.$u.addUnit(e.textSize),color:e.textColor})},{default:r((()=>[m(f(e.text),1)])),_:1},8,["style"])):g("",!0)])),_:1},8,["style","class"])):g("",!0)}],["__scopeId","data-v-adfb58a0"]]);export{v as _}; +import{y as e,z as o,A as t,ba as i,h as n,i as a,w as r,F as l,n as d,M as s,O as c,N as u,m as g,D as m,E as f,t as p,H as y}from"./index-15eacd31.js";import{_ as h}from"./_plugin-vue_export-helper.1b428a4d.js";const v=h({name:"u-loading-icon",mixins:[o,t,{props:{show:{type:Boolean,default:e.loadingIcon.show},color:{type:String,default:e.loadingIcon.color},textColor:{type:String,default:e.loadingIcon.textColor},vertical:{type:Boolean,default:e.loadingIcon.vertical},mode:{type:String,default:e.loadingIcon.mode},size:{type:[String,Number],default:e.loadingIcon.size},textSize:{type:[String,Number],default:e.loadingIcon.textSize},text:{type:[String,Number],default:e.loadingIcon.text},timingFunction:{type:String,default:e.loadingIcon.timingFunction},duration:{type:[String,Number],default:e.loadingIcon.duration},inactiveColor:{type:String,default:e.loadingIcon.inactiveColor}}}],data:()=>({array12:Array.from({length:12}),aniAngel:360,webviewHide:!1,loading:!1}),computed:{otherBorderColor(){const e=uni.$u.colorGradient(this.color,"#ffffff",100)[80];return"circle"===this.mode?this.inactiveColor?this.inactiveColor:e:"transparent"}},watch:{show(e){}},mounted(){this.init()},methods:{init(){setTimeout((()=>{}),20)},addEventListenerToWebview(){const e=i(),o=e[e.length-1].$getAppWebview();o.addEventListener("hide",(()=>{this.webviewHide=!0})),o.addEventListener("show",(()=>{this.webviewHide=!1}))}}},[["render",function(e,o,t,i,h,v){const w=p,_=y;return e.show?(n(),a(w,{key:0,class:l(["u-loading-icon",[e.vertical&&"u-loading-icon--vertical"]]),style:d([e.$u.addStyle(e.customStyle)])},{default:r((()=>[h.webviewHide?g("",!0):(n(),a(w,{key:0,class:l(["u-loading-icon__spinner",[`u-loading-icon__spinner--${e.mode}`]]),ref:"ani",style:d({color:e.color,width:e.$u.addUnit(e.size),height:e.$u.addUnit(e.size),borderTopColor:e.color,borderBottomColor:v.otherBorderColor,borderLeftColor:v.otherBorderColor,borderRightColor:v.otherBorderColor,"animation-duration":`${e.duration}ms`,"animation-timing-function":"semicircle"===e.mode||"circle"===e.mode?e.timingFunction:""})},{default:r((()=>["spinner"===e.mode?(n(!0),s(c,{key:0},u(h.array12,((e,o)=>(n(),a(w,{key:o,class:"u-loading-icon__dot"})))),128)):g("",!0)])),_:1},8,["class","style"])),e.text?(n(),a(_,{key:1,class:"u-loading-icon__text",style:d({fontSize:e.$u.addUnit(e.textSize),color:e.textColor})},{default:r((()=>[m(f(e.text),1)])),_:1},8,["style"])):g("",!0)])),_:1},8,["style","class"])):g("",!0)}],["__scopeId","data-v-adfb58a0"]]);export{v as _}; diff --git a/niucloud/public/wap/assets/u-loading-page.f2a7c1df.js b/niucloud/public/wap/assets/u-loading-page.925a187b.js similarity index 77% rename from niucloud/public/wap/assets/u-loading-page.f2a7c1df.js rename to niucloud/public/wap/assets/u-loading-page.925a187b.js index abecadd75..4a52013e5 100644 --- a/niucloud/public/wap/assets/u-loading-page.f2a7c1df.js +++ b/niucloud/public/wap/assets/u-loading-page.925a187b.js @@ -1 +1 @@ -import{x as a,y as o,z as e,m as i,p as t,h as l,i as n,w as d,j as g,n as s,B as r,C as u,D as p,a1 as c,q as _,H as f}from"./index-5bb08350.js";import{_ as m}from"./u-loading-icon.2e89024b.js";import{_ as y}from"./u-transition.021c4c1c.js";import{_ as S}from"./_plugin-vue_export-helper.1b428a4d.js";const z=S({name:"u-loading-page",mixins:[o,e,{props:{loadingText:{type:[String,Number],default:a.loadingPage.loadingText},image:{type:String,default:a.loadingPage.image},loadingMode:{type:String,default:a.loadingPage.loadingMode},loading:{type:Boolean,default:a.loadingPage.loading},bgColor:{type:String,default:a.loadingPage.bgColor},color:{type:String,default:a.loadingPage.color},fontSize:{type:[String,Number],default:a.loadingPage.fontSize},iconSize:{type:[String,Number],default:a.loadingPage.fontSize},loadingColor:{type:String,default:a.loadingPage.loadingColor}}}],data:()=>({}),methods:{}},[["render",function(a,o,e,S,z,x){const b=c,h=i(t("u-loading-icon"),m),w=_,P=f,C=i(t("u-transition"),y);return l(),n(C,{show:a.loading,"custom-style":{position:"fixed",top:0,left:0,right:0,bottom:0,backgroundColor:a.bgColor,display:"flex"}},{default:d((()=>[g(w,{class:"u-loading-page"},{default:d((()=>[g(w,{class:"u-loading-page__warpper"},{default:d((()=>[g(w,{class:"u-loading-page__warpper__loading-icon"},{default:d((()=>[a.image?(l(),n(b,{key:0,src:a.image,class:"u-loading-page__warpper__loading-icon__img",mode:"widthFit",style:s({width:a.$u.addUnit(a.iconSize),height:a.$u.addUnit(a.iconSize)})},null,8,["src","style"])):(l(),n(h,{key:1,mode:a.loadingMode,size:a.$u.addUnit(a.iconSize),color:a.loadingColor},null,8,["mode","size","color"]))])),_:1}),r(a.$slots,"default",{},(()=>[g(P,{class:"u-loading-page__warpper__text",style:s({fontSize:a.$u.addUnit(a.fontSize),color:a.color})},{default:d((()=>[u(p(a.loadingText),1)])),_:1},8,["style"])]),!0)])),_:3})])),_:3})])),_:3},8,["show","custom-style"])}],["__scopeId","data-v-bb97457c"]]);export{z as _}; +import{y as a,z as o,A as e,p as i,q as t,h as l,i as n,w as d,j as g,n as s,C as r,D as u,E as p,a1 as c,t as _,H as f}from"./index-15eacd31.js";import{_ as m}from"./u-loading-icon.ea8c9ece.js";import{_ as y}from"./u-transition.a952a64b.js";import{_ as S}from"./_plugin-vue_export-helper.1b428a4d.js";const z=S({name:"u-loading-page",mixins:[o,e,{props:{loadingText:{type:[String,Number],default:a.loadingPage.loadingText},image:{type:String,default:a.loadingPage.image},loadingMode:{type:String,default:a.loadingPage.loadingMode},loading:{type:Boolean,default:a.loadingPage.loading},bgColor:{type:String,default:a.loadingPage.bgColor},color:{type:String,default:a.loadingPage.color},fontSize:{type:[String,Number],default:a.loadingPage.fontSize},iconSize:{type:[String,Number],default:a.loadingPage.fontSize},loadingColor:{type:String,default:a.loadingPage.loadingColor}}}],data:()=>({}),methods:{}},[["render",function(a,o,e,S,z,b){const h=c,x=i(t("u-loading-icon"),m),w=_,P=f,C=i(t("u-transition"),y);return l(),n(C,{show:a.loading,"custom-style":{position:"fixed",top:0,left:0,right:0,bottom:0,backgroundColor:a.bgColor,display:"flex"}},{default:d((()=>[g(w,{class:"u-loading-page"},{default:d((()=>[g(w,{class:"u-loading-page__warpper"},{default:d((()=>[g(w,{class:"u-loading-page__warpper__loading-icon"},{default:d((()=>[a.image?(l(),n(h,{key:0,src:a.image,class:"u-loading-page__warpper__loading-icon__img",mode:"widthFit",style:s({width:a.$u.addUnit(a.iconSize),height:a.$u.addUnit(a.iconSize)})},null,8,["src","style"])):(l(),n(x,{key:1,mode:a.loadingMode,size:a.$u.addUnit(a.iconSize),color:a.loadingColor},null,8,["mode","size","color"]))])),_:1}),r(a.$slots,"default",{},(()=>[g(P,{class:"u-loading-page__warpper__text",style:s({fontSize:a.$u.addUnit(a.fontSize),color:a.color})},{default:d((()=>[u(p(a.loadingText),1)])),_:1},8,["style"])]),!0)])),_:3})])),_:3})])),_:3},8,["show","custom-style"])}],["__scopeId","data-v-bb97457c"]]);export{z as _}; diff --git a/niucloud/public/wap/assets/u-modal.64c62d33.js b/niucloud/public/wap/assets/u-modal.64c62d33.js deleted file mode 100644 index 27c27e0fa..000000000 --- a/niucloud/public/wap/assets/u-modal.64c62d33.js +++ /dev/null @@ -1 +0,0 @@ -import{x as o,y as t,z as e,m as l,p as a,h as n,i as s,w as r,j as u,n as i,C as c,D as d,E as m,B as p,M as _,O as f,F as y,H as h,q as w}from"./index-5bb08350.js";import{_ as g}from"./u-line.0c46076e.js";import{_ as C}from"./u-loading-icon.2e89024b.js";import{_ as B}from"./u-popup.7d705de0.js";import{_ as v}from"./_plugin-vue_export-helper.1b428a4d.js";const k=v({name:"u-modal",mixins:[t,e,{props:{show:{type:Boolean,default:o.modal.show},title:{type:[String],default:o.modal.title},content:{type:String,default:o.modal.content},confirmText:{type:String,default:o.modal.confirmText},cancelText:{type:String,default:o.modal.cancelText},showConfirmButton:{type:Boolean,default:o.modal.showConfirmButton},showCancelButton:{type:Boolean,default:o.modal.showCancelButton},confirmColor:{type:String,default:o.modal.confirmColor},cancelColor:{type:String,default:o.modal.cancelColor},buttonReverse:{type:Boolean,default:o.modal.buttonReverse},zoom:{type:Boolean,default:o.modal.zoom},asyncClose:{type:Boolean,default:o.modal.asyncClose},closeOnClickOverlay:{type:Boolean,default:o.modal.closeOnClickOverlay},negativeTop:{type:[String,Number],default:o.modal.negativeTop},width:{type:[String,Number],default:o.modal.width},confirmButtonShape:{type:String,default:o.modal.confirmButtonShape}}}],data:()=>({loading:!1}),watch:{show(o){o&&this.loading&&(this.loading=!1)}},methods:{confirmHandler(){this.asyncClose&&(this.loading=!0),this.$emit("confirm")},cancelHandler(){this.$emit("cancel")},clickHandler(){this.closeOnClickOverlay&&this.$emit("close")}}},[["render",function(o,t,e,v,k,b){const x=h,O=w,S=l(a("u-line"),g),T=l(a("u-loading-icon"),C),$=l(a("u-popup"),B);return n(),s($,{mode:"center",zoom:o.zoom,show:o.show,customStyle:{borderRadius:"6px",overflow:"hidden",marginTop:`-${o.$u.addUnit(o.negativeTop)}`},closeOnClickOverlay:o.closeOnClickOverlay,safeAreaInsetBottom:!1,duration:400,onClick:b.clickHandler},{default:r((()=>[u(O,{class:"u-modal",style:i({width:o.$u.addUnit(o.width)})},{default:r((()=>[o.title?(n(),s(x,{key:0,class:"u-modal__title"},{default:r((()=>[c(d(o.title),1)])),_:1})):m("",!0),u(O,{class:"u-modal__content",style:i({paddingTop:(o.title?12:25)+"px"})},{default:r((()=>[p(o.$slots,"default",{},(()=>[u(x,{class:"u-modal__content__text"},{default:r((()=>[c(d(o.content),1)])),_:1})]),!0)])),_:3},8,["style"]),o.$slots.confirmButton?(n(),s(O,{key:1,class:"u-modal__button-group--confirm-button"},{default:r((()=>[p(o.$slots,"confirmButton",{},void 0,!0)])),_:3})):(n(),_(f,{key:2},[u(S),u(O,{class:"u-modal__button-group",style:i({flexDirection:o.buttonReverse?"row-reverse":"row"})},{default:r((()=>[o.showCancelButton?(n(),s(O,{key:0,class:y(["u-modal__button-group__wrapper u-modal__button-group__wrapper--cancel",[o.showCancelButton&&!o.showConfirmButton&&"u-modal__button-group__wrapper--only-cancel"]]),"hover-stay-time":150,"hover-class":"u-modal__button-group__wrapper--hover",onClick:b.cancelHandler},{default:r((()=>[u(x,{class:"u-modal__button-group__wrapper__text",style:i({color:o.cancelColor})},{default:r((()=>[c(d(o.cancelText),1)])),_:1},8,["style"])])),_:1},8,["class","onClick"])):m("",!0),o.showConfirmButton&&o.showCancelButton?(n(),s(S,{key:1,direction:"column"})):m("",!0),o.showConfirmButton?(n(),s(O,{key:2,class:y(["u-modal__button-group__wrapper u-modal__button-group__wrapper--confirm",[!o.showCancelButton&&o.showConfirmButton&&"u-modal__button-group__wrapper--only-confirm"]]),"hover-stay-time":150,"hover-class":"u-modal__button-group__wrapper--hover",onClick:b.confirmHandler},{default:r((()=>[k.loading?(n(),s(T,{key:0})):(n(),s(x,{key:1,class:"u-modal__button-group__wrapper__text",style:i({color:o.confirmColor})},{default:r((()=>[c(d(o.confirmText),1)])),_:1},8,["style"]))])),_:1},8,["class","onClick"])):m("",!0)])),_:1},8,["style"])],64))])),_:3},8,["style"])])),_:3},8,["zoom","show","customStyle","closeOnClickOverlay","onClick"])}],["__scopeId","data-v-4425533b"]]);export{k as _}; diff --git a/niucloud/public/wap/assets/u-modal.755a4b61.js b/niucloud/public/wap/assets/u-modal.755a4b61.js new file mode 100644 index 000000000..115ffad48 --- /dev/null +++ b/niucloud/public/wap/assets/u-modal.755a4b61.js @@ -0,0 +1 @@ +import{y as o,z as t,A as e,p as l,q as a,h as n,i as s,w as r,j as u,n as i,D as c,E as d,m,C as p,M as _,O as f,F as y,H as h,t as w}from"./index-15eacd31.js";import{_ as g}from"./u-line.bb8d1497.js";import{_ as C}from"./u-loading-icon.ea8c9ece.js";import{_ as B}from"./u-popup.8a491625.js";import{_ as v}from"./_plugin-vue_export-helper.1b428a4d.js";const k=v({name:"u-modal",mixins:[t,e,{props:{show:{type:Boolean,default:o.modal.show},title:{type:[String],default:o.modal.title},content:{type:String,default:o.modal.content},confirmText:{type:String,default:o.modal.confirmText},cancelText:{type:String,default:o.modal.cancelText},showConfirmButton:{type:Boolean,default:o.modal.showConfirmButton},showCancelButton:{type:Boolean,default:o.modal.showCancelButton},confirmColor:{type:String,default:o.modal.confirmColor},cancelColor:{type:String,default:o.modal.cancelColor},buttonReverse:{type:Boolean,default:o.modal.buttonReverse},zoom:{type:Boolean,default:o.modal.zoom},asyncClose:{type:Boolean,default:o.modal.asyncClose},closeOnClickOverlay:{type:Boolean,default:o.modal.closeOnClickOverlay},negativeTop:{type:[String,Number],default:o.modal.negativeTop},width:{type:[String,Number],default:o.modal.width},confirmButtonShape:{type:String,default:o.modal.confirmButtonShape}}}],data:()=>({loading:!1}),watch:{show(o){o&&this.loading&&(this.loading=!1)}},methods:{confirmHandler(){this.asyncClose&&(this.loading=!0),this.$emit("confirm")},cancelHandler(){this.$emit("cancel")},clickHandler(){this.closeOnClickOverlay&&this.$emit("close")}}},[["render",function(o,t,e,v,k,b){const x=h,O=w,S=l(a("u-line"),g),T=l(a("u-loading-icon"),C),$=l(a("u-popup"),B);return n(),s($,{mode:"center",zoom:o.zoom,show:o.show,customStyle:{borderRadius:"6px",overflow:"hidden",marginTop:`-${o.$u.addUnit(o.negativeTop)}`},closeOnClickOverlay:o.closeOnClickOverlay,safeAreaInsetBottom:!1,duration:400,onClick:b.clickHandler},{default:r((()=>[u(O,{class:"u-modal",style:i({width:o.$u.addUnit(o.width)})},{default:r((()=>[o.title?(n(),s(x,{key:0,class:"u-modal__title"},{default:r((()=>[c(d(o.title),1)])),_:1})):m("",!0),u(O,{class:"u-modal__content",style:i({paddingTop:(o.title?12:25)+"px"})},{default:r((()=>[p(o.$slots,"default",{},(()=>[u(x,{class:"u-modal__content__text"},{default:r((()=>[c(d(o.content),1)])),_:1})]),!0)])),_:3},8,["style"]),o.$slots.confirmButton?(n(),s(O,{key:1,class:"u-modal__button-group--confirm-button"},{default:r((()=>[p(o.$slots,"confirmButton",{},void 0,!0)])),_:3})):(n(),_(f,{key:2},[u(S),u(O,{class:"u-modal__button-group",style:i({flexDirection:o.buttonReverse?"row-reverse":"row"})},{default:r((()=>[o.showCancelButton?(n(),s(O,{key:0,class:y(["u-modal__button-group__wrapper u-modal__button-group__wrapper--cancel",[o.showCancelButton&&!o.showConfirmButton&&"u-modal__button-group__wrapper--only-cancel"]]),"hover-stay-time":150,"hover-class":"u-modal__button-group__wrapper--hover",onClick:b.cancelHandler},{default:r((()=>[u(x,{class:"u-modal__button-group__wrapper__text",style:i({color:o.cancelColor})},{default:r((()=>[c(d(o.cancelText),1)])),_:1},8,["style"])])),_:1},8,["class","onClick"])):m("",!0),o.showConfirmButton&&o.showCancelButton?(n(),s(S,{key:1,direction:"column"})):m("",!0),o.showConfirmButton?(n(),s(O,{key:2,class:y(["u-modal__button-group__wrapper u-modal__button-group__wrapper--confirm",[!o.showCancelButton&&o.showConfirmButton&&"u-modal__button-group__wrapper--only-confirm"]]),"hover-stay-time":150,"hover-class":"u-modal__button-group__wrapper--hover",onClick:b.confirmHandler},{default:r((()=>[k.loading?(n(),s(T,{key:0})):(n(),s(x,{key:1,class:"u-modal__button-group__wrapper__text",style:i({color:o.confirmColor})},{default:r((()=>[c(d(o.confirmText),1)])),_:1},8,["style"]))])),_:1},8,["class","onClick"])):m("",!0)])),_:1},8,["style"])],64))])),_:3},8,["style"])])),_:3},8,["zoom","show","customStyle","closeOnClickOverlay","onClick"])}],["__scopeId","data-v-4425533b"]]);export{k as _}; diff --git a/niucloud/public/wap/assets/u-parse.403d1985.js b/niucloud/public/wap/assets/u-parse.403d1985.js new file mode 100644 index 000000000..cd7c9485d --- /dev/null +++ b/niucloud/public/wap/assets/u-parse.403d1985.js @@ -0,0 +1 @@ +import{a6 as t,a7 as s,a8 as e,a9 as i,aa as n,ab as a,h as r,i as o,w as l,M as h,O as c,N as d,n as p,m,F as g,G as u,D as f,E as y,j as b,a1 as x,H as k,t as v,ac as w,ad as T,ae as _,f as $,af as N,ag as L,C as O}from"./index-15eacd31.js";import{_ as S}from"./_plugin-vue_export-helper.1b428a4d.js";var C={abbr:!0,b:!0,big:!0,code:!0,del:!0,em:!0,i:!0,ins:!0,label:!0,q:!0,small:!0,span:!0,strong:!0,sub:!0,sup:!0};const I={isInline:function(t,s){return C[t]||-1!==(s||"").indexOf("display:inline")}},j=t=>{t.$wxs||(t.$wxs=[]),t.$wxs.push("handler"),t.mixins||(t.mixins=[]),t.mixins.push({beforeCreate(){this.handler=I}})},R={name:"node",options:{},data:()=>({ctrl:{}}),props:{name:String,attrs:{type:Object,default:()=>({})},childs:Array,opts:Array},components:{},mounted(){if(this.$nextTick((()=>{for(this.root=this.$parent;"u-parse"!==this.root.$options.name;this.root=this.root.$parent);})),this.opts[0]){let s;for(s=this.childs.length;s--&&"img"!==this.childs[s].name;);-1!==s&&(this.observer=t(this).relativeToViewport({top:500,bottom:500}),this.observer.observe("._img",(t=>{t.intersectionRatio&&(this.$set(this.ctrl,"load",1),this.observer.disconnect())})))}},beforeDestroy(){this.observer&&this.observer.disconnect()},methods:{play(t){if(this.root.$emit("play"),this.root.pauseVideo){let e=!1;const i=t.target.id;for(let t=this.root._videos.length;t--;)this.root._videos[t].id===i?e=!0:this.root._videos[t].pause();if(!e){const t=s(i,this);t.id=i,this.root.playbackRate&&t.playbackRate(this.root.playbackRate),this.root._videos.push(t)}}},imgTap(t){const s=this.childs[t.currentTarget.dataset.i];s.a?this.linkTap(s.a):s.attrs.ignore||(s.attrs.src=s.attrs.src||s.attrs["data-src"],this.root.$emit("imgtap",s.attrs),this.root.previewImg&&e({current:parseInt(s.attrs.i),urls:this.root.imgList}))},imgLongTap(t){},imgLoad(t){const s=t.currentTarget.dataset.i;(this.opts[1]&&!this.ctrl[s]||-1===this.ctrl[s])&&this.$set(this.ctrl,s,1),this.checkReady()},checkReady(){this.root.lazyLoad||(this.root._unloadimgs-=1,this.root._unloadimgs||setTimeout((()=>{this.root.getRect().then((t=>{this.root.$emit("ready",t)})).catch((()=>{this.root.$emit("ready",{})}))}),350))},linkTap(t){const s=t.currentTarget?this.childs[t.currentTarget.dataset.i]:{},e=s.attrs||t,a=e.href;this.root.$emit("linktap",Object.assign({innerText:this.root.getText(s.children||[])},e)),a&&("#"===a[0]?this.root.navigateTo(a.substring(1)).catch((()=>{})):a.split("?")[0].includes("://")?this.root.copyLink&&window.open(a):i({url:a,fail(){n({url:a,fail(){}})}}))},mediaError(t){const s=t.currentTarget.dataset.i,e=this.childs[s];if("video"===e.name||"audio"===e.name){let t=(this.ctrl[s]||0)+1;if(t>e.src.length&&(t=0),t[(r(!0),h(c,null,d(e.childs,((i,a)=>(r(),h(c,{key:a},["img"===i.name&&!i.t&&(e.opts[1]&&!n.ctrl[a]||n.ctrl[a]<0)?(r(),o($,{key:0,class:"_img",style:p(i.attrs.style),src:n.ctrl[a]<0?e.opts[2]:e.opts[1],mode:"widthFix"},null,8,["style","src"])):m("",!0),"img"===i.name?(r(),h("img",{key:1,id:i.attrs.id,class:g("_img "+i.attrs.class),style:p((-1===n.ctrl[a]?"display:none;":"")+i.attrs.style),src:i.attrs.src||(n.ctrl.load?i.attrs["data-src"]:""),"data-i":a,onLoad:s[0]||(s[0]=(...t)=>_.imgLoad&&_.imgLoad(...t)),onError:s[1]||(s[1]=(...t)=>_.mediaError&&_.mediaError(...t)),onClick:s[2]||(s[2]=u(((...t)=>_.imgTap&&_.imgTap(...t)),["stop"])),onLongpress:s[3]||(s[3]=(...t)=>_.imgLongTap&&_.imgLongTap(...t))},null,46,["id","src","data-i"])):i.text?(r(),o(N,{key:2,decode:""},{default:l((()=>[f(y(i.text),1)])),_:2},1024)):"br"===i.name?(r(),o(N,{key:3},{default:l((()=>[f("\\n")])),_:1})):"a"===i.name?(r(),o(O,{key:4,id:i.attrs.id,class:g((i.attrs.href?"_a ":"")+i.attrs.class),"hover-class":"_hover",style:p("display:inline;"+i.attrs.style),"data-i":a,onClick:u(_.linkTap,["stop"])},{default:l((()=>[b(L,{name:"span",childs:i.children,opts:e.opts,style:{display:"inherit"}},null,8,["childs","opts"])])),_:2},1032,["id","class","style","data-i","onClick"])):"video"===i.name?(r(),o(S,{key:5,id:i.attrs.id,class:g(i.attrs.class),style:p(i.attrs.style),autoplay:i.attrs.autoplay,controls:i.attrs.controls,loop:i.attrs.loop,muted:i.attrs.muted,"object-fit":i.attrs["object-fit"],poster:i.attrs.poster,src:i.src[n.ctrl[a]||0],"data-i":a,onPlay:_.play,onError:_.mediaError},null,8,["id","class","style","autoplay","controls","loop","muted","object-fit","poster","src","data-i","onPlay","onError"])):"iframe"===i.name?(r(),h("iframe",{key:6,style:p(i.attrs.style),allowfullscreen:i.attrs.allowfullscreen,frameborder:i.attrs.frameborder,src:i.attrs.src},null,12,["allowfullscreen","frameborder","src"])):"embed"===i.name?(r(),h("embed",{key:7,style:p(i.attrs.style),src:i.attrs.src},null,12,["src"])):"table"===i.name&&i.c||"li"===i.name?(r(),o(O,{key:8,id:i.attrs.id,class:g("_"+i.name+" "+i.attrs.class),style:p(i.attrs.style)},{default:l((()=>["li"===i.name?(r(),o(L,{key:0,childs:i.children,opts:e.opts},null,8,["childs","opts"])):(r(!0),h(c,{key:1},d(i.children,((t,s)=>(r(),o(O,{key:s,class:g("_"+t.name+" "+t.attrs.class),style:p(t.attrs.style)},{default:l((()=>["td"===t.name||"th"===t.name?(r(),o(L,{key:0,childs:t.children,opts:e.opts},null,8,["childs","opts"])):(r(!0),h(c,{key:1},d(t.children,((t,s)=>(r(),h(c,{key:s},["td"===t.name||"th"===t.name?(r(),o(O,{key:0,class:g("_"+t.name+" "+t.attrs.class),style:p(t.attrs.style)},{default:l((()=>[b(L,{childs:t.children,opts:e.opts},null,8,["childs","opts"])])),_:2},1032,["class","style"])):(r(),o(O,{key:1,class:g("_"+t.name+" "+t.attrs.class),style:p(t.attrs.style)},{default:l((()=>[(r(!0),h(c,null,d(t.children,((t,s)=>(r(),o(O,{key:s,class:g("_"+t.name+" "+t.attrs.class),style:p(t.attrs.style)},{default:l((()=>[b(L,{childs:t.children,opts:e.opts},null,8,["childs","opts"])])),_:2},1032,["class","style"])))),128))])),_:2},1032,["class","style"]))],64)))),128))])),_:2},1032,["class","style"])))),128))])),_:2},1032,["id","class","style"])):i.c||t.handler.isInline(i.name,i.attrs.style)?2===i.c?(r(),o(O,{key:10,id:i.attrs.id,class:g("_block _"+i.name+" "+i.attrs.class),style:p(i.f+";"+i.attrs.style)},{default:l((()=>[(r(!0),h(c,null,d(i.children,((t,s)=>(r(),o(L,{key:s,style:p(t.f),name:t.name,attrs:t.attrs,childs:t.children,opts:e.opts},null,8,["style","name","attrs","childs","opts"])))),128))])),_:2},1032,["id","class","style"])):(r(),o(L,{key:11,style:p(i.f),name:i.name,attrs:i.attrs,childs:i.children,opts:e.opts},null,8,["style","name","attrs","childs","opts"])):(r(),o(C,{key:9,id:i.attrs.id,style:p(i.f),"user-select":e.opts[4],nodes:[i]},null,8,["id","style","user-select","nodes"]))],64)))),128))])),_:1},8,["id","class","style"])}],["__scopeId","data-v-08dfb3fe"]]),z={trustTags:D("a,abbr,ad,audio,b,blockquote,br,code,col,colgroup,dd,del,dl,dt,div,em,fieldset,h1,h2,h3,h4,h5,h6,hr,i,img,ins,label,legend,li,ol,p,q,ruby,rt,source,span,strong,sub,sup,table,tbody,td,tfoot,th,thead,tr,title,ul,video"),blockTags:D("address,article,aside,body,caption,center,cite,footer,header,html,nav,pre,section"),ignoreTags:D("area,base,canvas,embed,frame,head,iframe,input,link,map,meta,param,rp,script,source,style,textarea,title,track,wbr"),voidTags:D("area,base,br,col,circle,ellipse,embed,frame,hr,img,input,line,link,meta,param,path,polygon,rect,source,track,use,wbr"),entities:{lt:"<",gt:">",quot:'"',apos:"'",ensp:" ",emsp:" ",nbsp:" ",semi:";",ndash:"–",mdash:"—",middot:"·",lsquo:"‘",rsquo:"’",ldquo:"“",rdquo:"”",bull:"•",hellip:"…",larr:"←",uarr:"↑",rarr:"→",darr:"↓"},tagStyle:{address:"font-style:italic",big:"display:inline;font-size:1.2em",caption:"display:table-caption;text-align:center",center:"text-align:center",cite:"font-style:italic",dd:"margin-left:40px",mark:"background-color:yellow",pre:"font-family:monospace;white-space:pre",s:"text-decoration:line-through",small:"display:inline;font-size:0.8em",strike:"text-decoration:line-through",u:"text-decoration:underline"},svgDict:{animatetransform:"animateTransform",lineargradient:"linearGradient",viewbox:"viewBox",attributename:"attributeName",repeatcount:"repeatCount",repeatdur:"repeatDur"}},E={},{windowWidth:B}=_(),V=D(" ,\r,\n,\t,\f");let q=0;function D(t){const s=Object.create(null),e=t.split(",");for(let i=e.length;i--;)s[e[i]]=!0;return s}function F(t,s){let e=t.indexOf("&");for(;-1!==e;){const i=t.indexOf(";",e+3);let n;if(-1===i)break;"#"===t[e+1]?(n=parseInt(("x"===t[e+2]?"0":"")+t.substring(e+2,i)),isNaN(n)||(t=t.substr(0,e)+String.fromCharCode(n)+t.substr(i+1))):(n=t.substring(e+1,i),(z.entities[n]||"amp"===n&&s)&&(t=t.substr(0,e)+(z.entities[n]||"&")+t.substr(i+1))),e=t.indexOf("&",e+1)}return t}function P(t){let s=t.length-1;for(let e=s;e>=-1;e--)(-1===e||t[e].c||!t[e].name||"div"!==t[e].name&&"p"!==t[e].name&&"h"!==t[e].name[0]||(t[e].attrs.style||"").includes("inline"))&&(s-e>=5&&t.splice(e+1,s-e,{name:"div",attrs:{},children:t.slice(e+1,s+1)}),s=e-1)}function U(t){this.options=t||{},this.tagStyle=Object.assign({},z.tagStyle,this.options.tagStyle),this.imgList=t.imgList||[],this.imgList._unloadimgs=0,this.plugins=t.plugins||[],this.attrs=Object.create(null),this.stack=[],this.nodes=[],this.pre=(this.options.containerStyle||"").includes("white-space")&&this.options.containerStyle.includes("pre")?2:0}function M(t){this.handler=t}z.ignoreTags.iframe=void 0,z.trustTags.iframe=!0,z.ignoreTags.embed=void 0,z.trustTags.embed=!0,U.prototype.parse=function(t){for(let s=this.plugins.length;s--;)this.plugins[s].onUpdate&&(t=this.plugins[s].onUpdate(t,z)||t);for(new M(this).parse(t);this.stack.length;)this.popNode();return this.nodes.length>50&&P(this.nodes),this.nodes},U.prototype.expose=function(){for(let t=this.stack.length;t--;){const s=this.stack[t];if(s.c||"a"===s.name||"video"===s.name||"audio"===s.name)return;s.c=1}},U.prototype.hook=function(t){for(let s=this.plugins.length;s--;)if(this.plugins[s].onParse&&!1===this.plugins[s].onParse(t,this))return!1;return!0},U.prototype.getUrl=function(t){const s=this.options.domain;return"/"===t[0]?"/"===t[1]?t=(s?s.split("://")[0]:"http")+":"+t:s&&(t=s+t):t.includes("data:")||t.includes("://")||s&&(t=s+"/"+t),t},U.prototype.parseStyle=function(t){const s=t.attrs,e=(this.tagStyle[t.name]||"").split(";").concat((s.style||"").split(";")),i={};let n="";s.id&&!this.xml&&(this.options.useAnchor?this.expose():"img"!==t.name&&"a"!==t.name&&"video"!==t.name&&"audio"!==t.name&&(s.id=void 0)),s.width&&(i.width=parseFloat(s.width)+(s.width.includes("%")?"%":"px"),s.width=void 0),s.height&&(i.height=parseFloat(s.height)+(s.height.includes("%")?"%":"px"),s.height=void 0);for(let a=0,r=e.length;a0||r.includes("safe"))n+=`;${s}:${r}`;else if(!i[s]||r.includes("import")||!i[s].includes("import")){if(r.includes("url")){let t=r.indexOf("(")+1;if(t){for(;'"'===r[t]||"'"===r[t]||V[r[t]];)t++;r=r.substr(0,t)+this.getUrl(r.substr(t))}}else r.includes("rpx")&&(r=r.replace(/[0-9.]+\s*rpx/g,(t=>parseFloat(t)*B/750+"px")));i[s]=r}}return t.attrs.style=n,i},U.prototype.onTagName=function(t){this.tagName=this.xml?t:t.toLowerCase(),"svg"===this.tagName&&(this.xml=(this.xml||0)+1)},U.prototype.onAttrName=function(t){"data-"===(t=this.xml?t:t.toLowerCase()).substr(0,5)?"data-src"!==t||this.attrs.src?"img"===this.tagName||"a"===this.tagName?this.attrName=t:this.attrName=void 0:this.attrName="src":(this.attrName=t,this.attrs[t]="T")},U.prototype.onAttrVal=function(t){const s=this.attrName||"";"style"===s||"href"===s?this.attrs[s]=F(t,!0):s.includes("src")?this.attrs[s]=this.getUrl(F(t,!0)):s&&(this.attrs[s]=t)},U.prototype.onOpenTag=function(t){const s=Object.create(null);s.name=this.tagName,s.attrs=this.attrs,this.options.nodes.length&&(s.type="node"),this.attrs=Object.create(null);const e=s.attrs,i=this.stack[this.stack.length-1],n=i?i.children:this.nodes,a=this.xml?t:z.voidTags[s.name];if(E[s.name]&&(e.class=E[s.name]+(e.class?" "+e.class:"")),"embed"===s.name&&this.expose(),"video"!==s.name&&"audio"!==s.name||("video"!==s.name||e.id||(e.id="v"+q++),e.controls||e.autoplay||(e.controls="T"),s.src=[],e.src&&(s.src.push(e.src),e.src=void 0),this.expose()),a){if(!this.hook(s)||z.ignoreTags[s.name])return void("base"!==s.name||this.options.domain?"source"===s.name&&i&&("video"===i.name||"audio"===i.name)&&e.src&&i.src.push(e.src):this.options.domain=e.href);const t=this.parseStyle(s);if("img"===s.name){if(e.src&&(e.src.includes("webp")&&(s.webp="T"),e.src.includes("data:")&&!e["original-src"]&&(e.ignore="T"),!e.ignore||s.webp||e.src.includes("cloud://"))){for(let n=this.stack.length;n--;){const i=this.stack[n];"a"===i.name&&(s.a=i.attrs),"table"!==i.name||s.webp||e.src.includes("cloud://")||(!t.display||t.display.includes("inline")?s.t="inline-block":s.t=t.display,t.display=void 0),i.c=1}e.i=this.imgList.length.toString();let i=e["original-src"]||e.src;this.imgList.push(i),s.t||(this.imgList._unloadimgs+=1),this.options.lazyLoad&&(e["data-src"]=e.src,e.src=void 0)}"inline"===t.display&&(t.display=""),e.ignore&&(t["max-width"]=t["max-width"]||"100%",e.style+=";-webkit-touch-callout:none"),parseInt(t.width)>B&&(t.height=void 0),isNaN(parseInt(t.width))||(s.w="T"),!isNaN(parseInt(t.height))&&(!t.height.includes("%")||i&&(i.attrs.style||"").includes("height"))&&(s.h="T")}else if("svg"===s.name)return n.push(s),this.stack.push(s),void this.popNode();for(const s in t)t[s]&&(e.style+=`;${s}:${t[s].replace(" !important","")}`);e.style=e.style.substr(1)||void 0}else("pre"===s.name||(e.style||"").includes("white-space")&&e.style.includes("pre"))&&2!==this.pre&&(this.pre=s.pre=1),s.children=[],this.stack.push(s);n.push(s)},U.prototype.onCloseTag=function(t){let s;for(t=this.xml?t:t.toLowerCase(),s=this.stack.length;s--&&this.stack[s].name!==t;);if(-1!==s)for(;this.stack.length>s;)this.popNode();else if("p"===t||"br"===t){(this.stack.length?this.stack[this.stack.length-1].children:this.nodes).push({name:t,attrs:{class:E[t]||"",style:this.tagStyle[t]||""}})}},U.prototype.popNode=function(){const t=this.stack.pop();let s=t.attrs;const e=t.children,i=this.stack[this.stack.length-1],n=i?i.children:this.nodes;if(!this.hook(t)||z.ignoreTags[t.name])return"title"===t.name&&e.length&&"text"===e[0].type&&this.options.setTitle&&$({title:e[0].text}),void n.pop();if(t.pre&&2!==this.pre){this.pre=t.pre=void 0;for(let t=this.stack.length;t--;)this.stack[t].pre&&(this.pre=1)}const a={};if("svg"===t.name){if(this.xml>1)return void this.xml--;let e="";const i=s.style;return s.style="",s.xmlns="http://www.w3.org/2000/svg",function t(s){if("text"===s.type)return void(e+=s.text);const i=z.svgDict[s.name]||s.name;e+="<"+i;for(const n in s.attrs){const t=s.attrs[n];t&&(e+=` ${z.svgDict[n]||n}="${t}"`)}if(s.children){e+=">";for(let e=0;e"}else e+="/>"}(t),t.name="img",t.attrs={src:"data:image/svg+xml;utf8,"+e.replace(/#/g,"%23"),style:i,ignore:"T"},t.children=void 0,void(this.xml=!1)}if(s.align&&("table"===t.name?"center"===s.align?a["margin-inline-start"]=a["margin-inline-end"]="auto":a.float=s.align:a["text-align"]=s.align,s.align=void 0),s.dir&&(a.direction=s.dir,s.dir=void 0),"font"===t.name&&(s.color&&(a.color=s.color,s.color=void 0),s.face&&(a["font-family"]=s.face,s.face=void 0),s.size)){let t=parseInt(s.size);isNaN(t)||(t<1?t=1:t>7&&(t=7),a["font-size"]=["x-small","small","medium","large","x-large","xx-large","xxx-large"][t-1]),s.size=void 0}if((s.class||"").includes("align-center")&&(a["text-align"]="center"),Object.assign(a,this.parseStyle(t)),"table"!==t.name&&parseInt(a.width)>B&&(a["max-width"]="100%",a["box-sizing"]="border-box"),z.blockTags[t.name]?t.name="div":z.trustTags[t.name]||this.xml||(t.name="span"),"a"===t.name||"ad"===t.name||"iframe"===t.name)this.expose();else if("video"===t.name)(a.height||"").includes("auto")&&(a.height=void 0);else if("ul"!==t.name&&"ol"!==t.name||!t.c){if("table"===t.name){let i=parseFloat(s.cellpadding),n=parseFloat(s.cellspacing);const r=parseFloat(s.border),o=a["border-color"],l=a["border-style"];if(t.c&&(isNaN(i)&&(i=2),isNaN(n)&&(n=2)),r&&(s.style+=`;border:${r}px ${l||"solid"} ${o||"gray"}`),t.flag&&t.c){a.display="grid",n?(a["grid-gap"]=n+"px",a.padding=n+"px"):r&&(s.style+=";border-left:0;border-top:0");const h=[],c=[],d=[],p={};!function t(s){for(let e=0;e=50&&t.c&&!(a.display||"").includes("flex")&&P(e);for(const o in a)if(a[o]){const e=`;${o}:${a[o].replace(" !important","")}`;r&&(o.includes("flex")&&"flex-direction"!==o||"align-self"===o||o.includes("grid")||"-"===a[o][0]||o.includes("width")&&e.includes("%"))?(t.f+=e,"width"===o&&(s.style+=";width:100%")):s.style+=e}s.style=s.style.substr(1)||void 0},U.prototype.onText=function(t){if(!this.pre){let s,e="";for(let i=0,n=t.length;i"===this.content[this.i]||s&&">"===this.content[this.i+1])&&(t&&this.handler[t](this.content.substring(this.start,this.i)),this.i+=s?2:1,this.start=this.i,this.handler.onOpenTag(s),"script"===this.handler.tagName?(this.i=this.content.indexOf("="a"&&t<="z"||t>="A"&&t<="Z")this.start!==this.i&&this.handler.onText(this.content.substring(this.start,this.i)),this.start=++this.i,this.state=this.tagName;else if("/"===t||"!"===t||"?"===t){this.start!==this.i&&this.handler.onText(this.content.substring(this.start,this.i));const s=this.content[this.i+2];if("/"===t&&(s>="a"&&s<="z"||s>="A"&&s<="Z"))return this.i+=2,this.start=this.i,void(this.state=this.endTag);let e="--\x3e";"!"===t&&"-"===this.content[this.i+2]&&"-"===this.content[this.i+3]||(e=">"),this.i=this.content.indexOf(e,this.i),-1!==this.i&&(this.i+=e.length,this.start=this.i)}else this.i++},M.prototype.tagName=function(){if(V[this.content[this.i]]){for(this.handler.onTagName(this.content.substring(this.start,this.i));V[this.content[++this.i]];);this.i"===t||"/"===t){if(this.handler.onCloseTag(this.content.substring(this.start,this.i)),">"!==t&&(this.i=this.content.indexOf(">",this.i),-1===this.i))return;this.start=++this.i,this.state=this.text}else this.i++};const G=[];const Z=S({name:"u-parse",data:()=>({nodes:[]}),props:{containerStyle:{type:String,default:""},content:{type:String,default:""},copyLink:{type:[Boolean,String],default:!0},domain:String,errorImg:{type:String,default:""},lazyLoad:{type:[Boolean,String],default:!1},loadingImg:{type:String,default:""},pauseVideo:{type:[Boolean,String],default:!0},previewImg:{type:[Boolean,String],default:!0},scrollTable:[Boolean,String],selectable:[Boolean,String],setTitle:{type:[Boolean,String],default:!0},showImgMenu:{type:[Boolean,String],default:!0},tagStyle:Object,useAnchor:[Boolean,Number]},emits:["load","ready","imgtap","linktap","play","error"],components:{node:A},watch:{content(t){this.setContent(t)}},created(){this.plugins=[];for(let t=G.length;t--;)this.plugins.push(new G[t](this))},mounted(){this.content&&!this.nodes.length&&this.setContent(this.content)},beforeDestroy(){this._hook("onDetached")},methods:{in(t,s,e){t&&s&&e&&(this._in={page:t,selector:s,scrollTop:e})},navigateTo(t,s){return new Promise(((e,i)=>{if(!this.useAnchor)return void i(Error("Anchor is disabled"));s=s||parseInt(this.useAnchor)||0;const n=N().in(this._in?this._in.page:this).select((this._in?this._in.selector:"._root")+(t?` #${t}`:"")).boundingClientRect();this._in?n.select(this._in.selector).scrollOffset().select(this._in.selector).boundingClientRect():n.selectViewport().scrollOffset(),n.exec((t=>{if(!t[0])return void i(Error("Label not found"));const n=t[1].scrollTop+t[0].top-(t[2]?t[2].top:0)+s;this._in?this._in.page[this._in.scrollTop]=n:L({scrollTop:n,duration:300}),e()}))}))},getText(t){let s="";return function t(e){for(let i=0;i"0"&&n.name[1]<"7";e&&s&&"\n"!==s[s.length-1]&&(s+="\n"),n.children&&t(n.children),e&&"\n"!==s[s.length-1]?s+="\n":"td"!==n.name&&"th"!==n.name||(s+="\t")}}}(t||this.nodes),s},getRect(){return new Promise(((t,s)=>{N().in(this).select("#_root").boundingClientRect().exec((e=>e[0]?t(e[0]):s(Error("Root label not found"))))}))},pauseMedia(){for(let t=(this._videos||[]).length;t--;)this._videos[t].pause()},setPlaybackRate(t){this.playbackRate=t;for(let s=(this._videos||[]).length;s--;)this._videos[s].playbackRate(t)},setContent(t,s){s&&this.imgList||(this.imgList=[]);const e=new U(this).parse(t);if(this.$set(this,"nodes",s?(this.nodes||[]).concat(e):e),this._videos=[],this.$nextTick((()=>{this._hook("onLoad"),this.$emit("load")})),this.lazyLoad||this.imgList._unloadimgs{e&&e.height||(e={}),e.height===t?this.$emit("ready",e):(t=e.height,setTimeout((()=>{this.getRect().then(s).catch(s)}),350))};this.getRect().then(s).catch(s)}else this.imgList._unloadimgs||this.getRect().then((t=>{this.$emit("ready",t)})).catch((()=>{this.$emit("ready",{})}))},_hook(t){for(let s=G.length;s--;)this.plugins[s][t]&&this.plugins[s][t]()}}},[["render",function(t,s,e,i,n,h){const c=a("node"),d=v;return r(),o(d,{id:"_root",class:g((e.selectable?"_select ":"")+"_root"),style:p(e.containerStyle)},{default:l((()=>[n.nodes[0]?(r(),o(c,{key:1,childs:n.nodes,opts:[e.lazyLoad,e.loadingImg,e.errorImg,e.showImgMenu,e.selectable],name:"span"},null,8,["childs","opts"])):O(t.$slots,"default",{key:0},void 0,!0)])),_:3},8,["class","style"])}],["__scopeId","data-v-223c9678"]]);export{Z as _}; diff --git a/niucloud/public/wap/assets/u-parse.8f6deaed.js b/niucloud/public/wap/assets/u-parse.8f6deaed.js deleted file mode 100644 index 7b41fe359..000000000 --- a/niucloud/public/wap/assets/u-parse.8f6deaed.js +++ /dev/null @@ -1 +0,0 @@ -import{a6 as t,a7 as s,a8 as e,a9 as i,aa as n,ab as a,h as r,i as o,w as l,M as h,O as c,N as d,n as p,E as g,F as m,G as u,C as f,D as y,j as b,a1 as x,H as k,q as v,ac as w,ad as T,ae as _,f as $,af as N,ag as L,B as O}from"./index-5bb08350.js";import{_ as S}from"./_plugin-vue_export-helper.1b428a4d.js";var C={abbr:!0,b:!0,big:!0,code:!0,del:!0,em:!0,i:!0,ins:!0,label:!0,q:!0,small:!0,span:!0,strong:!0,sub:!0,sup:!0};const I={isInline:function(t,s){return C[t]||-1!==(s||"").indexOf("display:inline")}},j=t=>{t.$wxs||(t.$wxs=[]),t.$wxs.push("handler"),t.mixins||(t.mixins=[]),t.mixins.push({beforeCreate(){this.handler=I}})},R={name:"node",options:{},data:()=>({ctrl:{}}),props:{name:String,attrs:{type:Object,default:()=>({})},childs:Array,opts:Array},components:{},mounted(){if(this.$nextTick((()=>{for(this.root=this.$parent;"u-parse"!==this.root.$options.name;this.root=this.root.$parent);})),this.opts[0]){let s;for(s=this.childs.length;s--&&"img"!==this.childs[s].name;);-1!==s&&(this.observer=t(this).relativeToViewport({top:500,bottom:500}),this.observer.observe("._img",(t=>{t.intersectionRatio&&(this.$set(this.ctrl,"load",1),this.observer.disconnect())})))}},beforeDestroy(){this.observer&&this.observer.disconnect()},methods:{play(t){if(this.root.$emit("play"),this.root.pauseVideo){let e=!1;const i=t.target.id;for(let t=this.root._videos.length;t--;)this.root._videos[t].id===i?e=!0:this.root._videos[t].pause();if(!e){const t=s(i,this);t.id=i,this.root.playbackRate&&t.playbackRate(this.root.playbackRate),this.root._videos.push(t)}}},imgTap(t){const s=this.childs[t.currentTarget.dataset.i];s.a?this.linkTap(s.a):s.attrs.ignore||(s.attrs.src=s.attrs.src||s.attrs["data-src"],this.root.$emit("imgtap",s.attrs),this.root.previewImg&&e({current:parseInt(s.attrs.i),urls:this.root.imgList}))},imgLongTap(t){},imgLoad(t){const s=t.currentTarget.dataset.i;(this.opts[1]&&!this.ctrl[s]||-1===this.ctrl[s])&&this.$set(this.ctrl,s,1),this.checkReady()},checkReady(){this.root.lazyLoad||(this.root._unloadimgs-=1,this.root._unloadimgs||setTimeout((()=>{this.root.getRect().then((t=>{this.root.$emit("ready",t)})).catch((()=>{this.root.$emit("ready",{})}))}),350))},linkTap(t){const s=t.currentTarget?this.childs[t.currentTarget.dataset.i]:{},e=s.attrs||t,a=e.href;this.root.$emit("linktap",Object.assign({innerText:this.root.getText(s.children||[])},e)),a&&("#"===a[0]?this.root.navigateTo(a.substring(1)).catch((()=>{})):a.split("?")[0].includes("://")?this.root.copyLink&&window.open(a):i({url:a,fail(){n({url:a,fail(){}})}}))},mediaError(t){const s=t.currentTarget.dataset.i,e=this.childs[s];if("video"===e.name||"audio"===e.name){let t=(this.ctrl[s]||0)+1;if(t>e.src.length&&(t=0),t[(r(!0),h(c,null,d(e.childs,((i,a)=>(r(),h(c,{key:a},["img"===i.name&&!i.t&&(e.opts[1]&&!n.ctrl[a]||n.ctrl[a]<0)?(r(),o($,{key:0,class:"_img",style:p(i.attrs.style),src:n.ctrl[a]<0?e.opts[2]:e.opts[1],mode:"widthFix"},null,8,["style","src"])):g("",!0),"img"===i.name?(r(),h("img",{key:1,id:i.attrs.id,class:m("_img "+i.attrs.class),style:p((-1===n.ctrl[a]?"display:none;":"")+i.attrs.style),src:i.attrs.src||(n.ctrl.load?i.attrs["data-src"]:""),"data-i":a,onLoad:s[0]||(s[0]=(...t)=>_.imgLoad&&_.imgLoad(...t)),onError:s[1]||(s[1]=(...t)=>_.mediaError&&_.mediaError(...t)),onClick:s[2]||(s[2]=u(((...t)=>_.imgTap&&_.imgTap(...t)),["stop"])),onLongpress:s[3]||(s[3]=(...t)=>_.imgLongTap&&_.imgLongTap(...t))},null,46,["id","src","data-i"])):i.text?(r(),o(N,{key:2,decode:""},{default:l((()=>[f(y(i.text),1)])),_:2},1024)):"br"===i.name?(r(),o(N,{key:3},{default:l((()=>[f("\\n")])),_:1})):"a"===i.name?(r(),o(O,{key:4,id:i.attrs.id,class:m((i.attrs.href?"_a ":"")+i.attrs.class),"hover-class":"_hover",style:p("display:inline;"+i.attrs.style),"data-i":a,onClick:u(_.linkTap,["stop"])},{default:l((()=>[b(L,{name:"span",childs:i.children,opts:e.opts,style:{display:"inherit"}},null,8,["childs","opts"])])),_:2},1032,["id","class","style","data-i","onClick"])):"video"===i.name?(r(),o(S,{key:5,id:i.attrs.id,class:m(i.attrs.class),style:p(i.attrs.style),autoplay:i.attrs.autoplay,controls:i.attrs.controls,loop:i.attrs.loop,muted:i.attrs.muted,"object-fit":i.attrs["object-fit"],poster:i.attrs.poster,src:i.src[n.ctrl[a]||0],"data-i":a,onPlay:_.play,onError:_.mediaError},null,8,["id","class","style","autoplay","controls","loop","muted","object-fit","poster","src","data-i","onPlay","onError"])):"iframe"===i.name?(r(),h("iframe",{key:6,style:p(i.attrs.style),allowfullscreen:i.attrs.allowfullscreen,frameborder:i.attrs.frameborder,src:i.attrs.src},null,12,["allowfullscreen","frameborder","src"])):"embed"===i.name?(r(),h("embed",{key:7,style:p(i.attrs.style),src:i.attrs.src},null,12,["src"])):"table"===i.name&&i.c||"li"===i.name?(r(),o(O,{key:8,id:i.attrs.id,class:m("_"+i.name+" "+i.attrs.class),style:p(i.attrs.style)},{default:l((()=>["li"===i.name?(r(),o(L,{key:0,childs:i.children,opts:e.opts},null,8,["childs","opts"])):(r(!0),h(c,{key:1},d(i.children,((t,s)=>(r(),o(O,{key:s,class:m("_"+t.name+" "+t.attrs.class),style:p(t.attrs.style)},{default:l((()=>["td"===t.name||"th"===t.name?(r(),o(L,{key:0,childs:t.children,opts:e.opts},null,8,["childs","opts"])):(r(!0),h(c,{key:1},d(t.children,((t,s)=>(r(),h(c,{key:s},["td"===t.name||"th"===t.name?(r(),o(O,{key:0,class:m("_"+t.name+" "+t.attrs.class),style:p(t.attrs.style)},{default:l((()=>[b(L,{childs:t.children,opts:e.opts},null,8,["childs","opts"])])),_:2},1032,["class","style"])):(r(),o(O,{key:1,class:m("_"+t.name+" "+t.attrs.class),style:p(t.attrs.style)},{default:l((()=>[(r(!0),h(c,null,d(t.children,((t,s)=>(r(),o(O,{key:s,class:m("_"+t.name+" "+t.attrs.class),style:p(t.attrs.style)},{default:l((()=>[b(L,{childs:t.children,opts:e.opts},null,8,["childs","opts"])])),_:2},1032,["class","style"])))),128))])),_:2},1032,["class","style"]))],64)))),128))])),_:2},1032,["class","style"])))),128))])),_:2},1032,["id","class","style"])):i.c||t.handler.isInline(i.name,i.attrs.style)?2===i.c?(r(),o(O,{key:10,id:i.attrs.id,class:m("_block _"+i.name+" "+i.attrs.class),style:p(i.f+";"+i.attrs.style)},{default:l((()=>[(r(!0),h(c,null,d(i.children,((t,s)=>(r(),o(L,{key:s,style:p(t.f),name:t.name,attrs:t.attrs,childs:t.children,opts:e.opts},null,8,["style","name","attrs","childs","opts"])))),128))])),_:2},1032,["id","class","style"])):(r(),o(L,{key:11,style:p(i.f),name:i.name,attrs:i.attrs,childs:i.children,opts:e.opts},null,8,["style","name","attrs","childs","opts"])):(r(),o(C,{key:9,id:i.attrs.id,style:p(i.f),"user-select":e.opts[4],nodes:[i]},null,8,["id","style","user-select","nodes"]))],64)))),128))])),_:1},8,["id","class","style"])}],["__scopeId","data-v-08dfb3fe"]]),z={trustTags:D("a,abbr,ad,audio,b,blockquote,br,code,col,colgroup,dd,del,dl,dt,div,em,fieldset,h1,h2,h3,h4,h5,h6,hr,i,img,ins,label,legend,li,ol,p,q,ruby,rt,source,span,strong,sub,sup,table,tbody,td,tfoot,th,thead,tr,title,ul,video"),blockTags:D("address,article,aside,body,caption,center,cite,footer,header,html,nav,pre,section"),ignoreTags:D("area,base,canvas,embed,frame,head,iframe,input,link,map,meta,param,rp,script,source,style,textarea,title,track,wbr"),voidTags:D("area,base,br,col,circle,ellipse,embed,frame,hr,img,input,line,link,meta,param,path,polygon,rect,source,track,use,wbr"),entities:{lt:"<",gt:">",quot:'"',apos:"'",ensp:" ",emsp:" ",nbsp:" ",semi:";",ndash:"–",mdash:"—",middot:"·",lsquo:"‘",rsquo:"’",ldquo:"“",rdquo:"”",bull:"•",hellip:"…",larr:"←",uarr:"↑",rarr:"→",darr:"↓"},tagStyle:{address:"font-style:italic",big:"display:inline;font-size:1.2em",caption:"display:table-caption;text-align:center",center:"text-align:center",cite:"font-style:italic",dd:"margin-left:40px",mark:"background-color:yellow",pre:"font-family:monospace;white-space:pre",s:"text-decoration:line-through",small:"display:inline;font-size:0.8em",strike:"text-decoration:line-through",u:"text-decoration:underline"},svgDict:{animatetransform:"animateTransform",lineargradient:"linearGradient",viewbox:"viewBox",attributename:"attributeName",repeatcount:"repeatCount",repeatdur:"repeatDur"}},B={},{windowWidth:E}=_(),V=D(" ,\r,\n,\t,\f");let q=0;function D(t){const s=Object.create(null),e=t.split(",");for(let i=e.length;i--;)s[e[i]]=!0;return s}function F(t,s){let e=t.indexOf("&");for(;-1!==e;){const i=t.indexOf(";",e+3);let n;if(-1===i)break;"#"===t[e+1]?(n=parseInt(("x"===t[e+2]?"0":"")+t.substring(e+2,i)),isNaN(n)||(t=t.substr(0,e)+String.fromCharCode(n)+t.substr(i+1))):(n=t.substring(e+1,i),(z.entities[n]||"amp"===n&&s)&&(t=t.substr(0,e)+(z.entities[n]||"&")+t.substr(i+1))),e=t.indexOf("&",e+1)}return t}function P(t){let s=t.length-1;for(let e=s;e>=-1;e--)(-1===e||t[e].c||!t[e].name||"div"!==t[e].name&&"p"!==t[e].name&&"h"!==t[e].name[0]||(t[e].attrs.style||"").includes("inline"))&&(s-e>=5&&t.splice(e+1,s-e,{name:"div",attrs:{},children:t.slice(e+1,s+1)}),s=e-1)}function U(t){this.options=t||{},this.tagStyle=Object.assign({},z.tagStyle,this.options.tagStyle),this.imgList=t.imgList||[],this.imgList._unloadimgs=0,this.plugins=t.plugins||[],this.attrs=Object.create(null),this.stack=[],this.nodes=[],this.pre=(this.options.containerStyle||"").includes("white-space")&&this.options.containerStyle.includes("pre")?2:0}function M(t){this.handler=t}z.ignoreTags.iframe=void 0,z.trustTags.iframe=!0,z.ignoreTags.embed=void 0,z.trustTags.embed=!0,U.prototype.parse=function(t){for(let s=this.plugins.length;s--;)this.plugins[s].onUpdate&&(t=this.plugins[s].onUpdate(t,z)||t);for(new M(this).parse(t);this.stack.length;)this.popNode();return this.nodes.length>50&&P(this.nodes),this.nodes},U.prototype.expose=function(){for(let t=this.stack.length;t--;){const s=this.stack[t];if(s.c||"a"===s.name||"video"===s.name||"audio"===s.name)return;s.c=1}},U.prototype.hook=function(t){for(let s=this.plugins.length;s--;)if(this.plugins[s].onParse&&!1===this.plugins[s].onParse(t,this))return!1;return!0},U.prototype.getUrl=function(t){const s=this.options.domain;return"/"===t[0]?"/"===t[1]?t=(s?s.split("://")[0]:"http")+":"+t:s&&(t=s+t):t.includes("data:")||t.includes("://")||s&&(t=s+"/"+t),t},U.prototype.parseStyle=function(t){const s=t.attrs,e=(this.tagStyle[t.name]||"").split(";").concat((s.style||"").split(";")),i={};let n="";s.id&&!this.xml&&(this.options.useAnchor?this.expose():"img"!==t.name&&"a"!==t.name&&"video"!==t.name&&"audio"!==t.name&&(s.id=void 0)),s.width&&(i.width=parseFloat(s.width)+(s.width.includes("%")?"%":"px"),s.width=void 0),s.height&&(i.height=parseFloat(s.height)+(s.height.includes("%")?"%":"px"),s.height=void 0);for(let a=0,r=e.length;a0||r.includes("safe"))n+=`;${s}:${r}`;else if(!i[s]||r.includes("import")||!i[s].includes("import")){if(r.includes("url")){let t=r.indexOf("(")+1;if(t){for(;'"'===r[t]||"'"===r[t]||V[r[t]];)t++;r=r.substr(0,t)+this.getUrl(r.substr(t))}}else r.includes("rpx")&&(r=r.replace(/[0-9.]+\s*rpx/g,(t=>parseFloat(t)*E/750+"px")));i[s]=r}}return t.attrs.style=n,i},U.prototype.onTagName=function(t){this.tagName=this.xml?t:t.toLowerCase(),"svg"===this.tagName&&(this.xml=(this.xml||0)+1)},U.prototype.onAttrName=function(t){"data-"===(t=this.xml?t:t.toLowerCase()).substr(0,5)?"data-src"!==t||this.attrs.src?"img"===this.tagName||"a"===this.tagName?this.attrName=t:this.attrName=void 0:this.attrName="src":(this.attrName=t,this.attrs[t]="T")},U.prototype.onAttrVal=function(t){const s=this.attrName||"";"style"===s||"href"===s?this.attrs[s]=F(t,!0):s.includes("src")?this.attrs[s]=this.getUrl(F(t,!0)):s&&(this.attrs[s]=t)},U.prototype.onOpenTag=function(t){const s=Object.create(null);s.name=this.tagName,s.attrs=this.attrs,this.options.nodes.length&&(s.type="node"),this.attrs=Object.create(null);const e=s.attrs,i=this.stack[this.stack.length-1],n=i?i.children:this.nodes,a=this.xml?t:z.voidTags[s.name];if(B[s.name]&&(e.class=B[s.name]+(e.class?" "+e.class:"")),"embed"===s.name&&this.expose(),"video"!==s.name&&"audio"!==s.name||("video"!==s.name||e.id||(e.id="v"+q++),e.controls||e.autoplay||(e.controls="T"),s.src=[],e.src&&(s.src.push(e.src),e.src=void 0),this.expose()),a){if(!this.hook(s)||z.ignoreTags[s.name])return void("base"!==s.name||this.options.domain?"source"===s.name&&i&&("video"===i.name||"audio"===i.name)&&e.src&&i.src.push(e.src):this.options.domain=e.href);const t=this.parseStyle(s);if("img"===s.name){if(e.src&&(e.src.includes("webp")&&(s.webp="T"),e.src.includes("data:")&&!e["original-src"]&&(e.ignore="T"),!e.ignore||s.webp||e.src.includes("cloud://"))){for(let n=this.stack.length;n--;){const i=this.stack[n];"a"===i.name&&(s.a=i.attrs),"table"!==i.name||s.webp||e.src.includes("cloud://")||(!t.display||t.display.includes("inline")?s.t="inline-block":s.t=t.display,t.display=void 0),i.c=1}e.i=this.imgList.length.toString();let i=e["original-src"]||e.src;this.imgList.push(i),s.t||(this.imgList._unloadimgs+=1),this.options.lazyLoad&&(e["data-src"]=e.src,e.src=void 0)}"inline"===t.display&&(t.display=""),e.ignore&&(t["max-width"]=t["max-width"]||"100%",e.style+=";-webkit-touch-callout:none"),parseInt(t.width)>E&&(t.height=void 0),isNaN(parseInt(t.width))||(s.w="T"),!isNaN(parseInt(t.height))&&(!t.height.includes("%")||i&&(i.attrs.style||"").includes("height"))&&(s.h="T")}else if("svg"===s.name)return n.push(s),this.stack.push(s),void this.popNode();for(const s in t)t[s]&&(e.style+=`;${s}:${t[s].replace(" !important","")}`);e.style=e.style.substr(1)||void 0}else("pre"===s.name||(e.style||"").includes("white-space")&&e.style.includes("pre"))&&2!==this.pre&&(this.pre=s.pre=1),s.children=[],this.stack.push(s);n.push(s)},U.prototype.onCloseTag=function(t){let s;for(t=this.xml?t:t.toLowerCase(),s=this.stack.length;s--&&this.stack[s].name!==t;);if(-1!==s)for(;this.stack.length>s;)this.popNode();else if("p"===t||"br"===t){(this.stack.length?this.stack[this.stack.length-1].children:this.nodes).push({name:t,attrs:{class:B[t]||"",style:this.tagStyle[t]||""}})}},U.prototype.popNode=function(){const t=this.stack.pop();let s=t.attrs;const e=t.children,i=this.stack[this.stack.length-1],n=i?i.children:this.nodes;if(!this.hook(t)||z.ignoreTags[t.name])return"title"===t.name&&e.length&&"text"===e[0].type&&this.options.setTitle&&$({title:e[0].text}),void n.pop();if(t.pre&&2!==this.pre){this.pre=t.pre=void 0;for(let t=this.stack.length;t--;)this.stack[t].pre&&(this.pre=1)}const a={};if("svg"===t.name){if(this.xml>1)return void this.xml--;let e="";const i=s.style;return s.style="",s.xmlns="http://www.w3.org/2000/svg",function t(s){if("text"===s.type)return void(e+=s.text);const i=z.svgDict[s.name]||s.name;e+="<"+i;for(const n in s.attrs){const t=s.attrs[n];t&&(e+=` ${z.svgDict[n]||n}="${t}"`)}if(s.children){e+=">";for(let e=0;e"}else e+="/>"}(t),t.name="img",t.attrs={src:"data:image/svg+xml;utf8,"+e.replace(/#/g,"%23"),style:i,ignore:"T"},t.children=void 0,void(this.xml=!1)}if(s.align&&("table"===t.name?"center"===s.align?a["margin-inline-start"]=a["margin-inline-end"]="auto":a.float=s.align:a["text-align"]=s.align,s.align=void 0),s.dir&&(a.direction=s.dir,s.dir=void 0),"font"===t.name&&(s.color&&(a.color=s.color,s.color=void 0),s.face&&(a["font-family"]=s.face,s.face=void 0),s.size)){let t=parseInt(s.size);isNaN(t)||(t<1?t=1:t>7&&(t=7),a["font-size"]=["x-small","small","medium","large","x-large","xx-large","xxx-large"][t-1]),s.size=void 0}if((s.class||"").includes("align-center")&&(a["text-align"]="center"),Object.assign(a,this.parseStyle(t)),"table"!==t.name&&parseInt(a.width)>E&&(a["max-width"]="100%",a["box-sizing"]="border-box"),z.blockTags[t.name]?t.name="div":z.trustTags[t.name]||this.xml||(t.name="span"),"a"===t.name||"ad"===t.name||"iframe"===t.name)this.expose();else if("video"===t.name)(a.height||"").includes("auto")&&(a.height=void 0);else if("ul"!==t.name&&"ol"!==t.name||!t.c){if("table"===t.name){let i=parseFloat(s.cellpadding),n=parseFloat(s.cellspacing);const r=parseFloat(s.border),o=a["border-color"],l=a["border-style"];if(t.c&&(isNaN(i)&&(i=2),isNaN(n)&&(n=2)),r&&(s.style+=`;border:${r}px ${l||"solid"} ${o||"gray"}`),t.flag&&t.c){a.display="grid",n?(a["grid-gap"]=n+"px",a.padding=n+"px"):r&&(s.style+=";border-left:0;border-top:0");const h=[],c=[],d=[],p={};!function t(s){for(let e=0;e=50&&t.c&&!(a.display||"").includes("flex")&&P(e);for(const o in a)if(a[o]){const e=`;${o}:${a[o].replace(" !important","")}`;r&&(o.includes("flex")&&"flex-direction"!==o||"align-self"===o||o.includes("grid")||"-"===a[o][0]||o.includes("width")&&e.includes("%"))?(t.f+=e,"width"===o&&(s.style+=";width:100%")):s.style+=e}s.style=s.style.substr(1)||void 0},U.prototype.onText=function(t){if(!this.pre){let s,e="";for(let i=0,n=t.length;i"===this.content[this.i]||s&&">"===this.content[this.i+1])&&(t&&this.handler[t](this.content.substring(this.start,this.i)),this.i+=s?2:1,this.start=this.i,this.handler.onOpenTag(s),"script"===this.handler.tagName?(this.i=this.content.indexOf("="a"&&t<="z"||t>="A"&&t<="Z")this.start!==this.i&&this.handler.onText(this.content.substring(this.start,this.i)),this.start=++this.i,this.state=this.tagName;else if("/"===t||"!"===t||"?"===t){this.start!==this.i&&this.handler.onText(this.content.substring(this.start,this.i));const s=this.content[this.i+2];if("/"===t&&(s>="a"&&s<="z"||s>="A"&&s<="Z"))return this.i+=2,this.start=this.i,void(this.state=this.endTag);let e="--\x3e";"!"===t&&"-"===this.content[this.i+2]&&"-"===this.content[this.i+3]||(e=">"),this.i=this.content.indexOf(e,this.i),-1!==this.i&&(this.i+=e.length,this.start=this.i)}else this.i++},M.prototype.tagName=function(){if(V[this.content[this.i]]){for(this.handler.onTagName(this.content.substring(this.start,this.i));V[this.content[++this.i]];);this.i"===t||"/"===t){if(this.handler.onCloseTag(this.content.substring(this.start,this.i)),">"!==t&&(this.i=this.content.indexOf(">",this.i),-1===this.i))return;this.start=++this.i,this.state=this.text}else this.i++};const G=[];const Z=S({name:"u-parse",data:()=>({nodes:[]}),props:{containerStyle:{type:String,default:""},content:{type:String,default:""},copyLink:{type:[Boolean,String],default:!0},domain:String,errorImg:{type:String,default:""},lazyLoad:{type:[Boolean,String],default:!1},loadingImg:{type:String,default:""},pauseVideo:{type:[Boolean,String],default:!0},previewImg:{type:[Boolean,String],default:!0},scrollTable:[Boolean,String],selectable:[Boolean,String],setTitle:{type:[Boolean,String],default:!0},showImgMenu:{type:[Boolean,String],default:!0},tagStyle:Object,useAnchor:[Boolean,Number]},emits:["load","ready","imgtap","linktap","play","error"],components:{node:A},watch:{content(t){this.setContent(t)}},created(){this.plugins=[];for(let t=G.length;t--;)this.plugins.push(new G[t](this))},mounted(){this.content&&!this.nodes.length&&this.setContent(this.content)},beforeDestroy(){this._hook("onDetached")},methods:{in(t,s,e){t&&s&&e&&(this._in={page:t,selector:s,scrollTop:e})},navigateTo(t,s){return new Promise(((e,i)=>{if(!this.useAnchor)return void i(Error("Anchor is disabled"));s=s||parseInt(this.useAnchor)||0;const n=N().in(this._in?this._in.page:this).select((this._in?this._in.selector:"._root")+(t?` #${t}`:"")).boundingClientRect();this._in?n.select(this._in.selector).scrollOffset().select(this._in.selector).boundingClientRect():n.selectViewport().scrollOffset(),n.exec((t=>{if(!t[0])return void i(Error("Label not found"));const n=t[1].scrollTop+t[0].top-(t[2]?t[2].top:0)+s;this._in?this._in.page[this._in.scrollTop]=n:L({scrollTop:n,duration:300}),e()}))}))},getText(t){let s="";return function t(e){for(let i=0;i"0"&&n.name[1]<"7";e&&s&&"\n"!==s[s.length-1]&&(s+="\n"),n.children&&t(n.children),e&&"\n"!==s[s.length-1]?s+="\n":"td"!==n.name&&"th"!==n.name||(s+="\t")}}}(t||this.nodes),s},getRect(){return new Promise(((t,s)=>{N().in(this).select("#_root").boundingClientRect().exec((e=>e[0]?t(e[0]):s(Error("Root label not found"))))}))},pauseMedia(){for(let t=(this._videos||[]).length;t--;)this._videos[t].pause()},setPlaybackRate(t){this.playbackRate=t;for(let s=(this._videos||[]).length;s--;)this._videos[s].playbackRate(t)},setContent(t,s){s&&this.imgList||(this.imgList=[]);const e=new U(this).parse(t);if(this.$set(this,"nodes",s?(this.nodes||[]).concat(e):e),this._videos=[],this.$nextTick((()=>{this._hook("onLoad"),this.$emit("load")})),this.lazyLoad||this.imgList._unloadimgs{e&&e.height||(e={}),e.height===t?this.$emit("ready",e):(t=e.height,setTimeout((()=>{this.getRect().then(s).catch(s)}),350))};this.getRect().then(s).catch(s)}else this.imgList._unloadimgs||this.getRect().then((t=>{this.$emit("ready",t)})).catch((()=>{this.$emit("ready",{})}))},_hook(t){for(let s=G.length;s--;)this.plugins[s][t]&&this.plugins[s][t]()}}},[["render",function(t,s,e,i,n,h){const c=a("node"),d=v;return r(),o(d,{id:"_root",class:m((e.selectable?"_select ":"")+"_root"),style:p(e.containerStyle)},{default:l((()=>[n.nodes[0]?(r(),o(c,{key:1,childs:n.nodes,opts:[e.lazyLoad,e.loadingImg,e.errorImg,e.showImgMenu,e.selectable],name:"span"},null,8,["childs","opts"])):O(t.$slots,"default",{key:0},void 0,!0)])),_:3},8,["class","style"])}],["__scopeId","data-v-223c9678"]]);export{Z as _}; diff --git a/niucloud/public/wap/assets/u-popup.7d705de0.js b/niucloud/public/wap/assets/u-popup.8a491625.js similarity index 93% rename from niucloud/public/wap/assets/u-popup.7d705de0.js rename to niucloud/public/wap/assets/u-popup.8a491625.js index cc51a5335..68f0097b0 100644 --- a/niucloud/public/wap/assets/u-popup.7d705de0.js +++ b/niucloud/public/wap/assets/u-popup.8a491625.js @@ -1 +1 @@ -import{_ as t}from"./u-transition.021c4c1c.js";import{x as e,y as o,z as s,m as a,p as i,h as n,i as r,w as l,B as u,n as d,q as p,E as c,j as y,G as m,F as h}from"./index-5bb08350.js";import{_ as f}from"./_plugin-vue_export-helper.1b428a4d.js";import{_ as g}from"./u-icon.461524ba.js";import{_ as b}from"./u-safe-bottom.6578a4de.js";const v=f({name:"u-overlay",mixins:[o,s,{props:{show:{type:Boolean,default:e.overlay.show},zIndex:{type:[String,Number],default:e.overlay.zIndex},duration:{type:[String,Number],default:e.overlay.duration},opacity:{type:[String,Number],default:e.overlay.opacity}}}],computed:{overlayStyle(){const t={position:"fixed",top:0,left:0,right:0,zIndex:this.zIndex,bottom:0,"background-color":`rgba(0, 0, 0, ${this.opacity})`};return uni.$u.deepMerge(t,uni.$u.addStyle(this.customStyle))}},methods:{clickHandler(){this.$emit("click")}}},[["render",function(e,o,s,d,p,c){const y=a(i("u-transition"),t);return n(),r(y,{show:e.show,"custom-class":"u-overlay",duration:e.duration,"custom-style":c.overlayStyle,onClick:c.clickHandler},{default:l((()=>[u(e.$slots,"default",{},void 0,!0)])),_:3},8,["show","duration","custom-style","onClick"])}],["__scopeId","data-v-1ce16a4a"]]);const _=f({name:"u-status-bar",mixins:[o,s,{props:{bgColor:{type:String,default:e.statusBar.bgColor}}}],data:()=>({}),computed:{style(){const t={};return t.height=uni.$u.addUnit(uni.$u.sys().statusBarHeight,"px"),t.backgroundColor=this.bgColor,uni.$u.deepMerge(t,uni.$u.addStyle(this.customStyle))}}},[["render",function(t,e,o,s,a,i){const c=p;return n(),r(c,{style:d([i.style]),class:"u-status-bar"},{default:l((()=>[u(t.$slots,"default",{},void 0,!0)])),_:3},8,["style"])}],["__scopeId","data-v-df170e56"]]);const S=f({name:"u-popup",mixins:[o,s,{props:{show:{type:Boolean,default:e.popup.show},overlay:{type:Boolean,default:e.popup.overlay},mode:{type:String,default:e.popup.mode},duration:{type:[String,Number],default:e.popup.duration},closeable:{type:Boolean,default:e.popup.closeable},overlayStyle:{type:[Object,String],default:e.popup.overlayStyle},closeOnClickOverlay:{type:Boolean,default:e.popup.closeOnClickOverlay},zIndex:{type:[String,Number],default:e.popup.zIndex},safeAreaInsetBottom:{type:Boolean,default:e.popup.safeAreaInsetBottom},safeAreaInsetTop:{type:Boolean,default:e.popup.safeAreaInsetTop},closeIconPos:{type:String,default:e.popup.closeIconPos},round:{type:[Boolean,String,Number],default:e.popup.round},zoom:{type:Boolean,default:e.popup.zoom},bgColor:{type:String,default:e.popup.bgColor},overlayOpacity:{type:[Number,String],default:e.popup.overlayOpacity}}}],data(){return{overlayDuration:this.duration+50}},watch:{show(t,e){}},computed:{transitionStyle(){const t={zIndex:this.zIndex,position:"fixed",display:"flex"};return t[this.mode]=0,"left"===this.mode||"right"===this.mode?uni.$u.deepMerge(t,{bottom:0,top:0}):"top"===this.mode||"bottom"===this.mode?uni.$u.deepMerge(t,{left:0,right:0}):"center"===this.mode?uni.$u.deepMerge(t,{alignItems:"center","justify-content":"center",top:0,left:0,right:0,bottom:0}):void 0},contentStyle(){const t={};if(uni.$u.sys(),"center"!==this.mode&&(t.flex=1),this.bgColor&&(t.backgroundColor=this.bgColor),this.round){const e=uni.$u.addUnit(this.round);"top"===this.mode?(t.borderBottomLeftRadius=e,t.borderBottomRightRadius=e):"bottom"===this.mode?(t.borderTopLeftRadius=e,t.borderTopRightRadius=e):"center"===this.mode&&(t.borderRadius=e)}return uni.$u.deepMerge(t,uni.$u.addStyle(this.customStyle))},position(){return"center"===this.mode?this.zoom?"fade-zoom":"fade":"left"===this.mode?"slide-left":"right"===this.mode?"slide-right":"bottom"===this.mode?"slide-up":"top"===this.mode?"slide-down":void 0}},methods:{overlayClick(){this.closeOnClickOverlay&&this.$emit("close")},close(t){this.$emit("close")},afterEnter(){this.$emit("open")},clickHandler(){"center"===this.mode&&this.overlayClick(),this.$emit("click")}}},[["render",function(e,o,s,f,S,k){const C=a(i("u-overlay"),v),$=a(i("u-status-bar"),_),I=a(i("u-icon"),g),x=p,w=a(i("u-safe-bottom"),b),B=a(i("u-transition"),t);return n(),r(x,{class:"u-popup"},{default:l((()=>[e.overlay?(n(),r(C,{key:0,show:e.show,onClick:k.overlayClick,duration:S.overlayDuration,customStyle:e.overlayStyle,opacity:e.overlayOpacity},null,8,["show","onClick","duration","customStyle","opacity"])):c("",!0),y(B,{show:e.show,customStyle:k.transitionStyle,mode:k.position,duration:e.duration,onAfterEnter:k.afterEnter,onClick:k.clickHandler},{default:l((()=>[y(x,{class:"u-popup__content",style:d([k.contentStyle]),onClick:m(e.noop,["stop"])},{default:l((()=>[e.safeAreaInsetTop?(n(),r($,{key:0})):c("",!0),u(e.$slots,"default",{},void 0,!0),e.closeable?(n(),r(x,{key:1,onClick:m(k.close,["stop"]),class:h(["u-popup__content__close",["u-popup__content__close--"+e.closeIconPos]]),"hover-class":"u-popup__content__close--hover","hover-stay-time":"150"},{default:l((()=>[y(I,{name:"close",color:"#909399",size:"18",bold:""})])),_:1},8,["onClick","class"])):c("",!0),e.safeAreaInsetBottom?(n(),r(w,{key:2})):c("",!0)])),_:3},8,["style","onClick"])])),_:3},8,["show","customStyle","mode","duration","onAfterEnter","onClick"])])),_:3})}],["__scopeId","data-v-ca966c1e"]]);export{S as _}; +import{_ as t}from"./u-transition.a952a64b.js";import{y as e,z as o,A as s,p as a,q as i,h as n,i as r,w as l,C as u,n as d,t as p,m as c,j as y,G as m,F as h}from"./index-15eacd31.js";import{_ as f}from"./_plugin-vue_export-helper.1b428a4d.js";import{_ as g}from"./u-icon.f5369555.js";import{_ as b}from"./u-safe-bottom.593b5cec.js";const v=f({name:"u-overlay",mixins:[o,s,{props:{show:{type:Boolean,default:e.overlay.show},zIndex:{type:[String,Number],default:e.overlay.zIndex},duration:{type:[String,Number],default:e.overlay.duration},opacity:{type:[String,Number],default:e.overlay.opacity}}}],computed:{overlayStyle(){const t={position:"fixed",top:0,left:0,right:0,zIndex:this.zIndex,bottom:0,"background-color":`rgba(0, 0, 0, ${this.opacity})`};return uni.$u.deepMerge(t,uni.$u.addStyle(this.customStyle))}},methods:{clickHandler(){this.$emit("click")}}},[["render",function(e,o,s,d,p,c){const y=a(i("u-transition"),t);return n(),r(y,{show:e.show,"custom-class":"u-overlay",duration:e.duration,"custom-style":c.overlayStyle,onClick:c.clickHandler},{default:l((()=>[u(e.$slots,"default",{},void 0,!0)])),_:3},8,["show","duration","custom-style","onClick"])}],["__scopeId","data-v-1ce16a4a"]]);const _=f({name:"u-status-bar",mixins:[o,s,{props:{bgColor:{type:String,default:e.statusBar.bgColor}}}],data:()=>({}),computed:{style(){const t={};return t.height=uni.$u.addUnit(uni.$u.sys().statusBarHeight,"px"),t.backgroundColor=this.bgColor,uni.$u.deepMerge(t,uni.$u.addStyle(this.customStyle))}}},[["render",function(t,e,o,s,a,i){const c=p;return n(),r(c,{style:d([i.style]),class:"u-status-bar"},{default:l((()=>[u(t.$slots,"default",{},void 0,!0)])),_:3},8,["style"])}],["__scopeId","data-v-df170e56"]]);const S=f({name:"u-popup",mixins:[o,s,{props:{show:{type:Boolean,default:e.popup.show},overlay:{type:Boolean,default:e.popup.overlay},mode:{type:String,default:e.popup.mode},duration:{type:[String,Number],default:e.popup.duration},closeable:{type:Boolean,default:e.popup.closeable},overlayStyle:{type:[Object,String],default:e.popup.overlayStyle},closeOnClickOverlay:{type:Boolean,default:e.popup.closeOnClickOverlay},zIndex:{type:[String,Number],default:e.popup.zIndex},safeAreaInsetBottom:{type:Boolean,default:e.popup.safeAreaInsetBottom},safeAreaInsetTop:{type:Boolean,default:e.popup.safeAreaInsetTop},closeIconPos:{type:String,default:e.popup.closeIconPos},round:{type:[Boolean,String,Number],default:e.popup.round},zoom:{type:Boolean,default:e.popup.zoom},bgColor:{type:String,default:e.popup.bgColor},overlayOpacity:{type:[Number,String],default:e.popup.overlayOpacity}}}],data(){return{overlayDuration:this.duration+50}},watch:{show(t,e){}},computed:{transitionStyle(){const t={zIndex:this.zIndex,position:"fixed",display:"flex"};return t[this.mode]=0,"left"===this.mode||"right"===this.mode?uni.$u.deepMerge(t,{bottom:0,top:0}):"top"===this.mode||"bottom"===this.mode?uni.$u.deepMerge(t,{left:0,right:0}):"center"===this.mode?uni.$u.deepMerge(t,{alignItems:"center","justify-content":"center",top:0,left:0,right:0,bottom:0}):void 0},contentStyle(){const t={};if(uni.$u.sys(),"center"!==this.mode&&(t.flex=1),this.bgColor&&(t.backgroundColor=this.bgColor),this.round){const e=uni.$u.addUnit(this.round);"top"===this.mode?(t.borderBottomLeftRadius=e,t.borderBottomRightRadius=e):"bottom"===this.mode?(t.borderTopLeftRadius=e,t.borderTopRightRadius=e):"center"===this.mode&&(t.borderRadius=e)}return uni.$u.deepMerge(t,uni.$u.addStyle(this.customStyle))},position(){return"center"===this.mode?this.zoom?"fade-zoom":"fade":"left"===this.mode?"slide-left":"right"===this.mode?"slide-right":"bottom"===this.mode?"slide-up":"top"===this.mode?"slide-down":void 0}},methods:{overlayClick(){this.closeOnClickOverlay&&this.$emit("close")},close(t){this.$emit("close")},afterEnter(){this.$emit("open")},clickHandler(){"center"===this.mode&&this.overlayClick(),this.$emit("click")}}},[["render",function(e,o,s,f,S,k){const C=a(i("u-overlay"),v),$=a(i("u-status-bar"),_),I=a(i("u-icon"),g),x=p,w=a(i("u-safe-bottom"),b),B=a(i("u-transition"),t);return n(),r(x,{class:"u-popup"},{default:l((()=>[e.overlay?(n(),r(C,{key:0,show:e.show,onClick:k.overlayClick,duration:S.overlayDuration,customStyle:e.overlayStyle,opacity:e.overlayOpacity},null,8,["show","onClick","duration","customStyle","opacity"])):c("",!0),y(B,{show:e.show,customStyle:k.transitionStyle,mode:k.position,duration:e.duration,onAfterEnter:k.afterEnter,onClick:k.clickHandler},{default:l((()=>[y(x,{class:"u-popup__content",style:d([k.contentStyle]),onClick:m(e.noop,["stop"])},{default:l((()=>[e.safeAreaInsetTop?(n(),r($,{key:0})):c("",!0),u(e.$slots,"default",{},void 0,!0),e.closeable?(n(),r(x,{key:1,onClick:m(k.close,["stop"]),class:h(["u-popup__content__close",["u-popup__content__close--"+e.closeIconPos]]),"hover-class":"u-popup__content__close--hover","hover-stay-time":"150"},{default:l((()=>[y(I,{name:"close",color:"#909399",size:"18",bold:""})])),_:1},8,["onClick","class"])):c("",!0),e.safeAreaInsetBottom?(n(),r(w,{key:2})):c("",!0)])),_:3},8,["style","onClick"])])),_:3},8,["show","customStyle","mode","duration","onAfterEnter","onClick"])])),_:3})}],["__scopeId","data-v-ca966c1e"]]);export{S as _}; diff --git a/niucloud/public/wap/assets/u-safe-bottom.6578a4de.js b/niucloud/public/wap/assets/u-safe-bottom.593b5cec.js similarity index 77% rename from niucloud/public/wap/assets/u-safe-bottom.6578a4de.js rename to niucloud/public/wap/assets/u-safe-bottom.593b5cec.js index 7f33b3e65..c5451f5d9 100644 --- a/niucloud/public/wap/assets/u-safe-bottom.6578a4de.js +++ b/niucloud/public/wap/assets/u-safe-bottom.593b5cec.js @@ -1 +1 @@ -import{y as e,z as s,h as t,i as a,F as o,n as u,q as n}from"./index-5bb08350.js";import{_ as r}from"./_plugin-vue_export-helper.1b428a4d.js";const i=r({name:"u-safe-bottom",mixins:[e,s,{props:{}}],data:()=>({safeAreaBottomHeight:0,isNvue:!1}),computed:{style(){return uni.$u.deepMerge({},uni.$u.addStyle(this.customStyle))}},mounted(){}},[["render",function(e,s,r,i,m,l){const d=n;return t(),a(d,{class:o(["u-safe-bottom",[!m.isNvue&&"u-safe-area-inset-bottom"]]),style:u([l.style])},null,8,["style","class"])}],["__scopeId","data-v-6e02536d"]]);export{i as _}; +import{z as e,A as s,h as t,i as a,F as o,n as u,t as n}from"./index-15eacd31.js";import{_ as r}from"./_plugin-vue_export-helper.1b428a4d.js";const i=r({name:"u-safe-bottom",mixins:[e,s,{props:{}}],data:()=>({safeAreaBottomHeight:0,isNvue:!1}),computed:{style(){return uni.$u.deepMerge({},uni.$u.addStyle(this.customStyle))}},mounted(){}},[["render",function(e,s,r,i,m,l){const d=n;return t(),a(d,{class:o(["u-safe-bottom",[!m.isNvue&&"u-safe-area-inset-bottom"]]),style:u([l.style])},null,8,["style","class"])}],["__scopeId","data-v-6e02536d"]]);export{i as _}; diff --git a/niucloud/public/wap/assets/u-transition.021c4c1c.js b/niucloud/public/wap/assets/u-transition.a952a64b.js similarity index 93% rename from niucloud/public/wap/assets/u-transition.021c4c1c.js rename to niucloud/public/wap/assets/u-transition.a952a64b.js index a571901de..776114a71 100644 --- a/niucloud/public/wap/assets/u-transition.021c4c1c.js +++ b/niucloud/public/wap/assets/u-transition.a952a64b.js @@ -1 +1 @@ -import{x as t,y as e,z as i,h as s,i as n,w as a,B as o,F as r,n as l,E as u,q as d}from"./index-5bb08350.js";import{_ as h}from"./_plugin-vue_export-helper.1b428a4d.js";const c={props:{show:{type:Boolean,default:t.transition.show},mode:{type:String,default:t.transition.mode},duration:{type:[String,Number],default:t.transition.duration},timingFunction:{type:String,default:t.transition.timingFunction}}},m=t=>({enter:`u-${t}-enter u-${t}-enter-active`,"enter-to":`u-${t}-enter-to u-${t}-enter-active`,leave:`u-${t}-leave u-${t}-leave-active`,"leave-to":`u-${t}-leave-to u-${t}-leave-active`});const v=h({name:"u-transition",data:()=>({inited:!1,viewStyle:{},status:"",transitionEnded:!1,display:!1,classes:""}),computed:{mergeStyle(){const{viewStyle:t,customStyle:e}=this;return{transitionDuration:`${this.duration}ms`,transitionTimingFunction:this.timingFunction,...uni.$u.addStyle(e),...t}}},mixins:[e,i,{methods:{clickHandler(){this.$emit("click")},vueEnter(){const t=m(this.mode);this.status="enter",this.$emit("beforeEnter"),this.inited=!0,this.display=!0,this.classes=t.enter,this.$nextTick((async()=>{await uni.$u.sleep(20),this.$emit("enter"),this.transitionEnded=!1,this.$emit("afterEnter"),this.classes=t["enter-to"]}))},vueLeave(){if(!this.display)return;const t=m(this.mode);this.status="leave",this.$emit("beforeLeave"),this.classes=t.leave,this.$nextTick((()=>{this.transitionEnded=!1,this.$emit("leave"),setTimeout(this.onTransitionEnd,this.duration),this.classes=t["leave-to"]}))},onTransitionEnd(){this.transitionEnded||(this.transitionEnded=!0,this.$emit("leave"===this.status?"afterLeave":"afterEnter"),!this.show&&this.display&&(this.display=!1,this.inited=!1))}}},c],watch:{show:{handler(t){t?this.vueEnter():this.vueLeave()},immediate:!0}}},[["render",function(t,e,i,h,c,m){const v=d;return c.inited?(s(),n(v,{key:0,class:r(["u-transition",c.classes]),ref:"u-transition",onClick:t.clickHandler,style:l([m.mergeStyle]),onTouchmove:t.noop},{default:a((()=>[o(t.$slots,"default",{},void 0,!0)])),_:3},8,["onClick","class","style","onTouchmove"])):u("",!0)}],["__scopeId","data-v-159cf890"]]);export{v as _}; +import{y as t,z as e,A as i,h as s,i as n,w as a,C as o,F as r,n as l,m as u,t as d}from"./index-15eacd31.js";import{_ as h}from"./_plugin-vue_export-helper.1b428a4d.js";const c={props:{show:{type:Boolean,default:t.transition.show},mode:{type:String,default:t.transition.mode},duration:{type:[String,Number],default:t.transition.duration},timingFunction:{type:String,default:t.transition.timingFunction}}},m=t=>({enter:`u-${t}-enter u-${t}-enter-active`,"enter-to":`u-${t}-enter-to u-${t}-enter-active`,leave:`u-${t}-leave u-${t}-leave-active`,"leave-to":`u-${t}-leave-to u-${t}-leave-active`});const v=h({name:"u-transition",data:()=>({inited:!1,viewStyle:{},status:"",transitionEnded:!1,display:!1,classes:""}),computed:{mergeStyle(){const{viewStyle:t,customStyle:e}=this;return{transitionDuration:`${this.duration}ms`,transitionTimingFunction:this.timingFunction,...uni.$u.addStyle(e),...t}}},mixins:[e,i,{methods:{clickHandler(){this.$emit("click")},vueEnter(){const t=m(this.mode);this.status="enter",this.$emit("beforeEnter"),this.inited=!0,this.display=!0,this.classes=t.enter,this.$nextTick((async()=>{await uni.$u.sleep(20),this.$emit("enter"),this.transitionEnded=!1,this.$emit("afterEnter"),this.classes=t["enter-to"]}))},vueLeave(){if(!this.display)return;const t=m(this.mode);this.status="leave",this.$emit("beforeLeave"),this.classes=t.leave,this.$nextTick((()=>{this.transitionEnded=!1,this.$emit("leave"),setTimeout(this.onTransitionEnd,this.duration),this.classes=t["leave-to"]}))},onTransitionEnd(){this.transitionEnded||(this.transitionEnded=!0,this.$emit("leave"===this.status?"afterLeave":"afterEnter"),!this.show&&this.display&&(this.display=!1,this.inited=!1))}}},c],watch:{show:{handler(t){t?this.vueEnter():this.vueLeave()},immediate:!0}}},[["render",function(t,e,i,h,c,m){const v=d;return c.inited?(s(),n(v,{key:0,class:r(["u-transition",c.classes]),ref:"u-transition",onClick:t.clickHandler,style:l([m.mergeStyle]),onTouchmove:t.noop},{default:a((()=>[o(t.$slots,"default",{},void 0,!0)])),_:3},8,["onClick","class","style","onTouchmove"])):u("",!0)}],["__scopeId","data-v-159cf890"]]);export{v as _}; diff --git a/niucloud/public/wap/assets/useMescroll.92c88689.js b/niucloud/public/wap/assets/useMescroll.fbb7af33.js similarity index 96% rename from niucloud/public/wap/assets/useMescroll.92c88689.js rename to niucloud/public/wap/assets/useMescroll.fbb7af33.js index dbc45204e..af98bcc6d 100644 --- a/niucloud/public/wap/assets/useMescroll.92c88689.js +++ b/niucloud/public/wap/assets/useMescroll.fbb7af33.js @@ -1 +1 @@ -import{a_ as t,s as o,h as e,i as n,F as s,n as i,E as l,a1 as r,a$ as p,ae as c,af as a,ag as h,av as d,b0 as u,ab as w,w as g,j as f,C as m,D as y,B as S,k as D,v as T,q as x}from"./index-5bb08350.js";import{_ as U}from"./_plugin-vue_export-helper.1b428a4d.js";function b(t,o){let e=this;e.version="1.3.7",e.options=t||{},e.isScrollBody=o||!1,e.isDownScrolling=!1,e.isUpScrolling=!1;let n=e.options.down&&e.options.down.callback;e.initDownScroll(),e.initUpScroll(),setTimeout((function(){(e.optDown.use||e.optDown.native)&&e.optDown.auto&&n&&(e.optDown.autoShowLoading?e.triggerDownScroll():e.optDown.callback&&e.optDown.callback(e)),e.isUpAutoLoad||setTimeout((function(){e.optUp.use&&e.optUp.auto&&!e.isUpAutoLoad&&e.triggerUpScroll()}),100)}),30)}b.prototype.extendDownScroll=function(t){b.extend(t,{use:!0,auto:!0,native:!1,autoShowLoading:!1,isLock:!1,offset:80,startTop:100,inOffsetRate:1,outOffsetRate:.2,bottomOffset:20,minAngle:45,textInOffset:"下拉刷新",textOutOffset:"释放更新",textLoading:"加载中 ...",textSuccess:"加载成功",textErr:"加载失败",beforeEndDelay:0,bgColor:"transparent",textColor:"gray",inited:null,inOffset:null,outOffset:null,onMoving:null,beforeLoading:null,showLoading:null,afterLoading:null,beforeEndDownScroll:null,endDownScroll:null,afterEndDownScroll:null,callback:function(t){t.resetUpScroll()}})},b.prototype.extendUpScroll=function(t){b.extend(t,{use:!0,auto:!0,isLock:!1,isBoth:!0,callback:null,page:{num:0,size:10,time:null},noMoreSize:5,offset:150,textLoading:"加载中 ...",textNoMore:"-- END --",bgColor:"transparent",textColor:"gray",inited:null,showLoading:null,showNoMore:null,hideUpScroll:null,errDistance:60,toTop:{src:null,offset:1e3,duration:300,btnClick:null,onShow:null,zIndex:9990,left:null,right:20,bottom:120,safearea:!1,width:72,radius:"50%"},empty:{use:!0,icon:null,tip:"~ 暂无相关数据 ~",btnText:"",btnClick:null,onShow:null,fixed:!1,top:"100rpx",zIndex:99},onScroll:!1})},b.extend=function(t,o){if(!t)return o;for(let e in o)if(null==t[e]){let n=o[e];t[e]=null!=n&&"object"==typeof n?b.extend({},n):n}else"object"==typeof t[e]&&b.extend(t[e],o[e]);return t},b.prototype.hasColor=function(t){if(!t)return!1;let o=t.toLowerCase();return"#fff"!=o&&"#ffffff"!=o&&"transparent"!=o&&"white"!=o},b.prototype.initDownScroll=function(){let t=this;t.optDown=t.options.down||{},!t.optDown.textColor&&t.hasColor(t.optDown.bgColor)&&(t.optDown.textColor="#fff"),t.extendDownScroll(t.optDown),t.isScrollBody&&t.optDown.native?t.optDown.use=!1:t.optDown.native=!1,t.downHight=0,t.optDown.use&&t.optDown.inited&&setTimeout((function(){t.optDown.inited(t)}),0)},b.prototype.touchstartEvent=function(t){this.optDown.use&&(this.startPoint=this.getPoint(t),this.startTop=this.getScrollTop(),this.startAngle=0,this.lastPoint=this.startPoint,this.maxTouchmoveY=this.getBodyHeight()-this.optDown.bottomOffset,this.inTouchend=!1)},b.prototype.touchmoveEvent=function(t){if(!this.optDown.use)return;let o=this,e=o.getScrollTop(),n=o.getPoint(t);if(n.y-o.startPoint.y>0&&(o.isScrollBody&&e<=0||!o.isScrollBody&&(e<=0||e<=o.optDown.startTop&&e===o.startTop))&&!o.inTouchend&&!o.isDownScrolling&&!o.optDown.isLock&&(!o.isUpScrolling||o.isUpScrolling&&o.optUp.isBoth)){if(o.startAngle||(o.startAngle=o.getAngle(o.lastPoint,n)),o.startAngle0&&n.y>=o.maxTouchmoveY)return o.inTouchend=!0,void o.touchendEvent();o.preventDefault(t);let e=n.y-o.lastPoint.y;o.downHight0?e*o.optDown.outOffsetRate:e),o.downHight=Math.round(o.downHight);let s=o.downHight/o.optDown.offset;o.optDown.onMoving&&o.optDown.onMoving(o,s,o.downHight)}o.lastPoint=n},b.prototype.touchendEvent=function(t){if(this.optDown.use)if(this.isMoveDown)this.downHight>=this.optDown.offset?this.triggerDownScroll():(this.downHight=0,this.endDownScrollCall(this)),this.movetype=0,this.isMoveDown=!1;else if(!this.isScrollBody&&this.getScrollTop()===this.startTop){if(this.getPoint(t).y-this.startPoint.y<0){this.getAngle(this.getPoint(t),this.startPoint)>80&&this.triggerUpScroll(!0)}}},b.prototype.getPoint=function(t){return t?t.touches&&t.touches[0]?{x:t.touches[0].pageX,y:t.touches[0].pageY}:t.changedTouches&&t.changedTouches[0]?{x:t.changedTouches[0].pageX,y:t.changedTouches[0].pageY}:{x:t.clientX,y:t.clientY}:{x:0,y:0}},b.prototype.getAngle=function(t,o){let e=Math.abs(t.x-o.x),n=Math.abs(t.y-o.y),s=Math.sqrt(e*e+n*n),i=0;return 0!==s&&(i=Math.asin(n/s)/Math.PI*180),i},b.prototype.triggerDownScroll=function(){this.optDown.beforeLoading&&this.optDown.beforeLoading(this)||(this.showDownScroll(),!this.optDown.native&&this.optDown.callback&&this.optDown.callback(this))},b.prototype.showDownScroll=function(){this.isDownScrolling=!0,this.optDown.native?(t(),this.showDownLoadingCall(0)):(this.downHight=this.optDown.offset,this.showDownLoadingCall(this.downHight))},b.prototype.showDownLoadingCall=function(t){this.optDown.showLoading&&this.optDown.showLoading(this,t),this.optDown.afterLoading&&this.optDown.afterLoading(this,t)},b.prototype.onPullDownRefresh=function(){this.isDownScrolling=!0,this.showDownLoadingCall(0),this.optDown.callback&&this.optDown.callback(this)},b.prototype.endDownScroll=function(){if(this.optDown.native)return this.isDownScrolling=!1,this.endDownScrollCall(this),void o();let t=this,e=function(){t.downHight=0,t.isDownScrolling=!1,t.endDownScrollCall(t),t.isScrollBody||(t.setScrollHeight(0),t.scrollTo(0,0))},n=0;t.optDown.beforeEndDownScroll&&(n=t.optDown.beforeEndDownScroll(t),null==t.isDownEndSuccess&&(n=0)),"number"==typeof n&&n>0?setTimeout(e,n):e()},b.prototype.endDownScrollCall=function(){this.optDown.endDownScroll&&this.optDown.endDownScroll(this),this.optDown.afterEndDownScroll&&this.optDown.afterEndDownScroll(this)},b.prototype.lockDownScroll=function(t){null==t&&(t=!0),this.optDown.isLock=t},b.prototype.lockUpScroll=function(t){null==t&&(t=!0),this.optUp.isLock=t},b.prototype.initUpScroll=function(){let t=this;t.optUp=t.options.up||{use:!1},!t.optUp.textColor&&t.hasColor(t.optUp.bgColor)&&(t.optUp.textColor="#fff"),t.extendUpScroll(t.optUp),!1!==t.optUp.use&&(t.optUp.hasNext=!0,t.startNum=t.optUp.page.num+1,t.optUp.inited&&setTimeout((function(){t.optUp.inited(t)}),0))},b.prototype.onReachBottom=function(){this.isScrollBody&&!this.isUpScrolling&&!this.optUp.isLock&&this.optUp.hasNext&&this.triggerUpScroll()},b.prototype.onPageScroll=function(t){this.isScrollBody&&(this.setScrollTop(t.scrollTop),t.scrollTop>=this.optUp.toTop.offset?this.showTopBtn():this.hideTopBtn())},b.prototype.scroll=function(t,o){this.setScrollTop(t.scrollTop),this.setScrollHeight(t.scrollHeight),null==this.preScrollY&&(this.preScrollY=0),this.isScrollUp=t.scrollTop-this.preScrollY>0,this.preScrollY=t.scrollTop,this.isScrollUp&&this.triggerUpScroll(!0),t.scrollTop>=this.optUp.toTop.offset?this.showTopBtn():this.hideTopBtn(),this.optUp.onScroll&&o&&o()},b.prototype.triggerUpScroll=function(t){if(!this.isUpScrolling&&this.optUp.use&&this.optUp.callback){if(!0===t){let t=!1;if(!this.optUp.hasNext||this.optUp.isLock||this.isDownScrolling||this.getScrollBottom()<=this.optUp.offset&&(t=!0),!1===t)return}this.showUpScroll(),this.optUp.page.num++,this.isUpAutoLoad=!0,this.num=this.optUp.page.num,this.size=this.optUp.page.size,this.time=this.optUp.page.time,this.optUp.callback(this)}},b.prototype.showUpScroll=function(){this.isUpScrolling=!0,this.optUp.showLoading&&this.optUp.showLoading(this)},b.prototype.showNoMore=function(){this.optUp.hasNext=!1,this.optUp.showNoMore&&this.optUp.showNoMore(this)},b.prototype.hideUpScroll=function(){this.optUp.hideUpScroll&&this.optUp.hideUpScroll(this)},b.prototype.endUpScroll=function(t){null!=t&&(t?this.showNoMore():this.hideUpScroll()),this.isUpScrolling=!1},b.prototype.resetUpScroll=function(t){if(this.optUp&&this.optUp.use){let o=this.optUp.page;this.prePageNum=o.num,this.prePageTime=o.time,o.num=this.startNum,o.time=null,this.isDownScrolling||!1===t||(null==t?(this.removeEmpty(),this.showUpScroll()):this.showDownScroll()),this.isUpAutoLoad=!0,this.num=o.num,this.size=o.size,this.time=o.time,this.optUp.callback&&this.optUp.callback(this)}},b.prototype.setPageNum=function(t){this.optUp.page.num=t-1},b.prototype.setPageSize=function(t){this.optUp.page.size=t},b.prototype.endByPage=function(t,o,e){let n;this.optUp.use&&null!=o&&(n=this.optUp.page.numt?"number"==typeof t?t+"rpx":t:0,toTopClick(){this.$emit("input",!1),this.$emit("click")}}},[["render",function(t,o,p,c,a,h){const d=r;return h.mOption.src?(e(),n(d,{key:0,class:s(["mescroll-totop",[p.value?"mescroll-totop-in":"mescroll-totop-out",{"mescroll-totop-safearea":h.mOption.safearea}]]),style:i({"z-index":h.mOption.zIndex,left:h.left,right:h.right,bottom:h.addUnit(h.mOption.bottom),width:h.addUnit(h.mOption.width),"border-radius":h.addUnit(h.mOption.radius)}),src:h.mOption.src,mode:"widthFix",onClick:h.toTopClick},null,8,["class","style","src","onClick"])):l("",!0)}],["__scopeId","data-v-c0bf933e"]]),H={data:()=>({wxsProp:{optDown:{},scrollTop:0,bodyHeight:0,isDownScrolling:!1,isUpScrolling:!1,isScrollBody:!0,isUpBoth:!0,t:0},callProp:{callType:"",t:0}}),methods:{wxsCall(t){"setWxsProp"===t.type?this.wxsProp={optDown:this.mescroll.optDown,scrollTop:this.mescroll.getScrollTop(),bodyHeight:this.mescroll.getBodyHeight(),isDownScrolling:this.mescroll.isDownScrolling,isUpScrolling:this.mescroll.isUpScrolling,isUpBoth:this.mescroll.optUp.isBoth,isScrollBody:this.mescroll.isScrollBody,t:Date.now()}:"setLoadType"===t.type?(this.downLoadType=t.downLoadType,this.$set(this.mescroll,"downLoadType",this.downLoadType),this.$set(this.mescroll,"isDownEndSuccess",null)):"triggerDownScroll"===t.type?this.mescroll.triggerDownScroll():"endDownScroll"===t.type?this.mescroll.endDownScroll():"triggerUpScroll"===t.type&&this.mescroll.triggerUpScroll(!0)}},mounted(){this.mescroll.optDown.afterLoading=()=>{this.callProp={callType:"showLoading",t:Date.now()}},this.mescroll.optDown.afterEndDownScroll=()=>{this.callProp={callType:"endDownScroll",t:Date.now()};let t=300+(this.mescroll.optDown.beforeEndDelay||0);setTimeout((()=>{4!==this.downLoadType&&0!==this.downLoadType||(this.callProp={callType:"clearTransform",t:Date.now()}),this.$set(this.mescroll,"downLoadType",this.downLoadType)}),t)},this.wxsCall({type:"setWxsProp"})}};var P={};function O(t,o){if(P.isMoveDown)P.downHight>=P.optDown.offset?(P.downHight=P.optDown.offset,P.callMethod(o,{type:"triggerDownScroll"})):(P.downHight=0,P.callMethod(o,{type:"endDownScroll"})),P.movetype=0,P.isMoveDown=!1;else if(!P.isScrollBody&&P.getScrollTop()===P.startTop){if(P.getPoint(t).y-P.startPoint.y<0)P.getAngle(P.getPoint(t),P.startPoint)>80&&P.callMethod(o,{type:"triggerUpScroll"})}P.callMethod(o,{type:"setWxsProp"})}P.onMoving=function(t,o,e){t.requestAnimationFrame((function(){t.selectComponent(".mescroll-wxs-content").setStyle({"will-change":"transform",transform:"translateY("+e+"px)",transition:""});var n=t.selectComponent(".mescroll-wxs-progress");n&&n.setStyle({transform:"rotate("+360*o+"deg)"})}))},P.showLoading=function(t){P.downHight=P.optDown.offset,t.requestAnimationFrame((function(){t.selectComponent(".mescroll-wxs-content").setStyle({"will-change":"auto",transform:"translateY("+P.downHight+"px)",transition:"transform 300ms"})}))},P.endDownScroll=function(t){P.downHight=0,P.isDownScrolling=!1,t.requestAnimationFrame((function(){t.selectComponent(".mescroll-wxs-content").setStyle({"will-change":"auto",transform:"translateY(0)",transition:"transform 300ms"})}))},P.clearTransform=function(t){t.requestAnimationFrame((function(){t.selectComponent(".mescroll-wxs-content").setStyle({"will-change":"",transform:"",transition:""})}))},P.disabled=function(){return!P.optDown||!P.optDown.use||P.optDown.native},P.getPoint=function(t){return t?t.touches&&t.touches[0]?{x:t.touches[0].pageX,y:t.touches[0].pageY}:t.changedTouches&&t.changedTouches[0]?{x:t.changedTouches[0].pageX,y:t.changedTouches[0].pageY}:{x:t.clientX,y:t.clientY}:{x:0,y:0}},P.getAngle=function(t,o){var e=Math.abs(t.x-o.x),n=Math.abs(t.y-o.y),s=Math.sqrt(e*e+n*n),i=0;return 0!==s&&(i=Math.asin(n/s)/Math.PI*180),i},P.getScrollTop=function(){return P.scrollTop||0},P.getBodyHeight=function(){return P.bodyHeight||0},P.callMethod=function(t,o){t&&t.callMethod("wxsCall",o)};const k={propObserver:function(t){P.optDown=t.optDown,P.scrollTop=t.scrollTop,P.bodyHeight=t.bodyHeight,P.isDownScrolling=t.isDownScrolling,P.isUpScrolling=t.isUpScrolling,P.isUpBoth=t.isUpBoth,P.isScrollBody=t.isScrollBody,P.startTop=t.scrollTop},callObserver:function(t,o,e){P.disabled()||t.callType&&("showLoading"===t.callType?P.showLoading(e):"endDownScroll"===t.callType?P.endDownScroll(e):"clearTransform"===t.callType&&P.clearTransform(e))},touchstartEvent:function(t,o){P.downHight=0,P.startPoint=P.getPoint(t),P.startTop=P.getScrollTop(),P.startAngle=0,P.lastPoint=P.startPoint,P.maxTouchmoveY=P.getBodyHeight()-P.optDown.bottomOffset,P.inTouchend=!1,P.callMethod(o,{type:"setWxsProp"})},touchmoveEvent:function(t,o){var e=!0;if(P.disabled())return e;var n=P.getScrollTop(),s=P.getPoint(t);if(s.y-P.startPoint.y>0&&(P.isScrollBody&&n<=0||!P.isScrollBody&&(n<=0||n<=P.optDown.startTop&&n===P.startTop))&&!P.inTouchend&&!P.isDownScrolling&&!P.optDown.isLock&&(!P.isUpScrolling||P.isUpScrolling&&P.isUpBoth)){if(P.startAngle||(P.startAngle=P.getAngle(P.lastPoint,s)),P.startAngle0&&s.y>=P.maxTouchmoveY)return P.inTouchend=!0,O(t,o),e;e=!1;var i=s.y-P.lastPoint.y;P.downHight0?i*P.optDown.outOffsetRate:i),P.downHight=Math.round(P.downHight);var l=P.downHight/P.optDown.offset;P.onMoving(o,l,P.downHight)}return P.lastPoint=s,e},touchendEvent:O},C=t=>{t.$wxs||(t.$wxs=[]),t.$wxs.push("wxsBiz"),t.mixins||(t.mixins=[]),t.mixins.push({beforeCreate(){this.wxsBiz=k}})};var E={};function M(t){E.optDown=t.optDown,E.scrollTop=t.scrollTop,E.isDownScrolling=t.isDownScrolling,E.isUpScrolling=t.isUpScrolling,E.isUpBoth=t.isUpBoth}window&&!window.$mescrollRenderInit&&(window.$mescrollRenderInit=!0,window.addEventListener("touchstart",(function(t){E.disabled()||(E.startPoint=E.getPoint(t))}),{passive:!0}),window.addEventListener("touchmove",(function(t){if(!E.disabled()&&(!(E.getScrollTop()>0)&&E.getPoint(t).y-E.startPoint.y>0&&!E.isDownScrolling&&!E.optDown.isLock&&(!E.isUpScrolling||E.isUpScrolling&&E.isUpBoth))){for(var o=t.target,e=!1;o&&o.tagName&&"UNI-PAGE-BODY"!==o.tagName&&"BODY"!=o.tagName;){var n=o.classList;if(n&&n.contains("mescroll-render-touch")){e=!0;break}o=o.parentNode}e&&t.cancelable&&!t.defaultPrevented&&t.preventDefault()}}),{passive:!1})),E.getScrollTop=function(){return E.scrollTop||0},E.disabled=function(){return!E.optDown||!E.optDown.use||E.optDown.native},E.getPoint=function(t){return t?t.touches&&t.touches[0]?{x:t.touches[0].pageX,y:t.touches[0].pageY}:t.changedTouches&&t.changedTouches[0]?{x:t.changedTouches[0].pageX,y:t.changedTouches[0].pageY}:{x:t.clientX,y:t.clientY}:{x:0,y:0}};const N={mixins:[{data:()=>({propObserver:M})}]},z=t=>{t.$renderjs||(t.$renderjs=[]),t.$renderjs.push("renderBiz"),t.mixins||(t.mixins=[]),t.mixins.push({beforeCreate(){this.renderBiz=this},mounted(){this.$ownerInstance=this.$gcd(this,!0)}}),t.mixins.push(N)},Y={name:"mescroll-body",mixins:[H],components:{MescrollTop:L},props:{down:Object,up:Object,i18n:Object,top:[String,Number],topbar:[Boolean,String],bottom:[String,Number],safearea:Boolean,height:[String,Number],bottombar:{type:Boolean,default:!0},sticky:Boolean},data:()=>({mescroll:{optDown:{},optUp:{}},downHight:0,downRate:0,downLoadType:0,upLoadType:0,isShowEmpty:!1,isShowToTop:!1,windowHeight:0,windowBottom:0,statusBarHeight:0}),computed:{minHeight(){return this.toPx(this.height||"100%")+"px"},numTop(){return this.toPx(this.top)},padTop(){return this.numTop+"px"},numBottom(){return this.toPx(this.bottom)},padBottom(){return this.numBottom+"px"},isDownReset(){return 3===this.downLoadType||4===this.downLoadType},transition(){return this.isDownReset?"transform 300ms":""},translateY(){return this.downHight>0?"translateY("+this.downHight+"px)":""},isDownLoading(){return 3===this.downLoadType},downRotate(){return"rotate("+360*this.downRate+"deg)"},downText(){if(!this.mescroll)return"";switch(this.downLoadType){case 1:default:return this.mescroll.optDown.textInOffset;case 2:return this.mescroll.optDown.textOutOffset;case 3:return this.mescroll.optDown.textLoading;case 4:return this.mescroll.isDownEndSuccess?this.mescroll.optDown.textSuccess:0==this.mescroll.isDownEndSuccess?this.mescroll.optDown.textErr:this.mescroll.optDown.textInOffset}}},methods:{toPx(t){if("string"==typeof t)if(-1!==t.indexOf("px"))if(-1!==t.indexOf("rpx"))t=t.replace("rpx","");else{if(-1===t.indexOf("upx"))return Number(t.replace("px",""));t=t.replace("upx","")}else if(-1!==t.indexOf("%")){let o=Number(t.replace("%",""))/100;return this.windowHeight*o}return t?p(Number(t)):0},emptyClick(){this.$emit("emptyclick",this.mescroll)},toTopClick(){this.mescroll.scrollTo(0,this.mescroll.optUp.toTop.duration),this.$emit("topclick",this.mescroll)}},created(){let t=this,o={down:{inOffset(){t.downLoadType=1},outOffset(){t.downLoadType=2},onMoving(o,e,n){t.downHight=n,t.downRate=e},showLoading(o,e){t.downLoadType=3,t.downHight=e},beforeEndDownScroll:o=>(t.downLoadType=4,o.optDown.beforeEndDelay),endDownScroll(){t.downLoadType=4,t.downHight=0,t.downResetTimer&&(clearTimeout(t.downResetTimer),t.downResetTimer=null),t.downResetTimer=setTimeout((()=>{4===t.downLoadType&&(t.downLoadType=0)}),300)},callback:function(o){t.$emit("down",o)}},up:{showLoading(){t.upLoadType=1},showNoMore(){t.upLoadType=2},hideUpScroll(o){t.upLoadType=o.optUp.hasNext?0:3},empty:{onShow(o){t.isShowEmpty=o}},toTop:{onShow(o){t.isShowToTop=o}},callback:function(o){t.$emit("up",o)}}},e=B.getType(),n={type:e};b.extend(n,t.i18n),b.extend(n,v.i18n),b.extend(o,n[e]),b.extend(o,{down:v.down,up:v.up});let s=JSON.parse(JSON.stringify({down:t.down,up:t.up}));b.extend(s,o),t.mescroll=new b(s,!0),t.mescroll.i18n=n,t.$emit("init",t.mescroll);const i=c();i.windowHeight&&(t.windowHeight=i.windowHeight),i.windowBottom&&(t.windowBottom=i.windowBottom),i.statusBarHeight&&(t.statusBarHeight=i.statusBarHeight),t.mescroll.setBodyHeight(i.windowHeight),t.mescroll.resetScrollTo(((o,e)=>{"string"==typeof o?setTimeout((()=>{let n;-1==o.indexOf("#")&&-1==o.indexOf(".")?n="#"+o:(n=o,-1!=o.indexOf(">>>")&&(n=o.split(">>>")[1].trim())),a().select(n).boundingClientRect((function(o){if(o){let n=o.top;n+=t.mescroll.getScrollTop(),h({scrollTop:n,duration:e})}else console.error(n+" does not exist")})).exec()}),30):h({scrollTop:o,duration:e})})),t.up&&t.up.toTop&&null!=t.up.toTop.safearea||(t.mescroll.optUp.toTop.safearea=t.safearea),d("setMescrollGlobalOption",(o=>{if(!o)return;let e=o.i18n?o.i18n.type:null;if(e&&t.mescroll.i18n.type!=e&&(t.mescroll.i18n.type=e,B.setType(e),b.extend(o,t.mescroll.i18n[e])),o.down){let e=b.extend({},o.down);t.mescroll.optDown=b.extend(e,t.mescroll.optDown)}if(o.up){let e=b.extend({},o.up);t.mescroll.optUp=b.extend(e,t.mescroll.optUp)}}))},destroyed(){u("setMescrollGlobalOption")}};C(Y),z(Y);const A=U(Y,[["render",function(t,o,r,p,c,a){const h=x,d=w("mescroll-empty"),u=w("mescroll-top");return e(),n(h,{class:s(["mescroll-body mescroll-render-touch",{"mescorll-sticky":r.sticky}]),style:i({minHeight:a.minHeight,"padding-top":a.padTop,"padding-bottom":a.padBottom}),onTouchstart:t.wxsBiz.touchstartEvent,onTouchmove:t.wxsBiz.touchmoveEvent,onTouchend:t.wxsBiz.touchendEvent,onTouchcancel:t.wxsBiz.touchendEvent,"change:prop":t.wxsBiz.propObserver,prop:t.wxsProp},{default:g((()=>[r.topbar&&c.statusBarHeight?(e(),n(h,{key:0,class:"mescroll-topbar",style:i({height:c.statusBarHeight+"px",background:r.topbar})},null,8,["style"])):l("",!0),f(h,{class:"mescroll-body-content mescroll-wxs-content",style:i({transform:a.translateY,transition:a.transition}),"change:prop":t.wxsBiz.callObserver,prop:t.callProp},{default:g((()=>[c.mescroll.optDown.use?(e(),n(h,{key:0,class:"mescroll-downwarp",style:i({background:c.mescroll.optDown.bgColor,color:c.mescroll.optDown.textColor})},{default:g((()=>[f(h,{class:"downwarp-content"},{default:g((()=>[f(h,{class:s(["downwarp-progress mescroll-wxs-progress",{"mescroll-rotate":a.isDownLoading}]),style:i({"border-color":c.mescroll.optDown.textColor,transform:a.downRotate})},null,8,["class","style"]),f(h,{class:"downwarp-tip"},{default:g((()=>[m(y(a.downText),1)])),_:1})])),_:1})])),_:1},8,["style"])):l("",!0),S(t.$slots,"default",{},void 0,!0),c.isShowEmpty?(e(),n(d,{key:1,option:c.mescroll.optUp.empty,onEmptyclick:a.emptyClick},null,8,["option","onEmptyclick"])):l("",!0),c.mescroll.optUp.use&&!a.isDownLoading&&3!==c.upLoadType?(e(),n(h,{key:2,class:"mescroll-upwarp",style:i({background:c.mescroll.optUp.bgColor,color:c.mescroll.optUp.textColor})},{default:g((()=>[D(f(h,null,{default:g((()=>[f(h,{class:"upwarp-progress mescroll-rotate",style:i({"border-color":c.mescroll.optUp.textColor})},null,8,["style"]),f(h,{class:"upwarp-tip"},{default:g((()=>[m(y(c.mescroll.optUp.textLoading),1)])),_:1})])),_:1},512),[[T,1===c.upLoadType]]),2===c.upLoadType?(e(),n(h,{key:0,class:"upwarp-nodata"},{default:g((()=>[m(y(c.mescroll.optUp.textNoMore),1)])),_:1})):l("",!0)])),_:1},8,["style"])):l("",!0)])),_:3},8,["style","change:prop","prop"]),r.bottombar&&c.windowBottom>0?(e(),n(h,{key:1,class:"mescroll-bottombar",style:i({height:c.windowBottom+"px"})},null,8,["style"])):l("",!0),r.safearea?(e(),n(h,{key:2,class:"mescroll-safearea"})):l("",!0),f(u,{modelValue:c.isShowToTop,"onUpdate:modelValue":o[0]||(o[0]=t=>c.isShowToTop=t),option:c.mescroll.optUp.toTop,onClick:a.toTopClick},null,8,["modelValue","option","onClick"]),f(h,{"change:prop":t.renderBiz.propObserver,prop:t.wxsProp},null,8,["change:prop","prop"])])),_:3},8,["class","style","onTouchstart","onTouchmove","onTouchend","onTouchcancel","change:prop","prop"])}],["__scopeId","data-v-0e2ab920"]]);function R(t,o,e){let n=null;return e&&e((()=>{n&&n.onPullDownRefresh()})),t&&t((t=>{n&&n.onPageScroll(t)})),o&&o((()=>{n&&n.onReachBottom()})),{getMescroll:()=>n,mescrollInit:t=>{n=t},downCallback:()=>{n.optUp.use?n.resetUpScroll():setTimeout((()=>{n.endSuccess()}),500)},upCallback:()=>{setTimeout((()=>{n.endErr()}),500)}}}export{v as G,A as M,B as m,R as u}; +import{b0 as t,s as o,h as e,i as n,F as s,n as i,m as l,a1 as r,aK as p,ae as c,af as a,ag as h,av as d,b1 as u,ab as w,w as g,j as m,D as f,E as y,C as S,k as D,v as T,t as x}from"./index-15eacd31.js";import{_ as U}from"./_plugin-vue_export-helper.1b428a4d.js";function b(t,o){let e=this;e.version="1.3.7",e.options=t||{},e.isScrollBody=o||!1,e.isDownScrolling=!1,e.isUpScrolling=!1;let n=e.options.down&&e.options.down.callback;e.initDownScroll(),e.initUpScroll(),setTimeout((function(){(e.optDown.use||e.optDown.native)&&e.optDown.auto&&n&&(e.optDown.autoShowLoading?e.triggerDownScroll():e.optDown.callback&&e.optDown.callback(e)),e.isUpAutoLoad||setTimeout((function(){e.optUp.use&&e.optUp.auto&&!e.isUpAutoLoad&&e.triggerUpScroll()}),100)}),30)}b.prototype.extendDownScroll=function(t){b.extend(t,{use:!0,auto:!0,native:!1,autoShowLoading:!1,isLock:!1,offset:80,startTop:100,inOffsetRate:1,outOffsetRate:.2,bottomOffset:20,minAngle:45,textInOffset:"下拉刷新",textOutOffset:"释放更新",textLoading:"加载中 ...",textSuccess:"加载成功",textErr:"加载失败",beforeEndDelay:0,bgColor:"transparent",textColor:"gray",inited:null,inOffset:null,outOffset:null,onMoving:null,beforeLoading:null,showLoading:null,afterLoading:null,beforeEndDownScroll:null,endDownScroll:null,afterEndDownScroll:null,callback:function(t){t.resetUpScroll()}})},b.prototype.extendUpScroll=function(t){b.extend(t,{use:!0,auto:!0,isLock:!1,isBoth:!0,callback:null,page:{num:0,size:10,time:null},noMoreSize:5,offset:150,textLoading:"加载中 ...",textNoMore:"-- END --",bgColor:"transparent",textColor:"gray",inited:null,showLoading:null,showNoMore:null,hideUpScroll:null,errDistance:60,toTop:{src:null,offset:1e3,duration:300,btnClick:null,onShow:null,zIndex:9990,left:null,right:20,bottom:120,safearea:!1,width:72,radius:"50%"},empty:{use:!0,icon:null,tip:"~ 暂无相关数据 ~",btnText:"",btnClick:null,onShow:null,fixed:!1,top:"100rpx",zIndex:99},onScroll:!1})},b.extend=function(t,o){if(!t)return o;for(let e in o)if(null==t[e]){let n=o[e];t[e]=null!=n&&"object"==typeof n?b.extend({},n):n}else"object"==typeof t[e]&&b.extend(t[e],o[e]);return t},b.prototype.hasColor=function(t){if(!t)return!1;let o=t.toLowerCase();return"#fff"!=o&&"#ffffff"!=o&&"transparent"!=o&&"white"!=o},b.prototype.initDownScroll=function(){let t=this;t.optDown=t.options.down||{},!t.optDown.textColor&&t.hasColor(t.optDown.bgColor)&&(t.optDown.textColor="#fff"),t.extendDownScroll(t.optDown),t.isScrollBody&&t.optDown.native?t.optDown.use=!1:t.optDown.native=!1,t.downHight=0,t.optDown.use&&t.optDown.inited&&setTimeout((function(){t.optDown.inited(t)}),0)},b.prototype.touchstartEvent=function(t){this.optDown.use&&(this.startPoint=this.getPoint(t),this.startTop=this.getScrollTop(),this.startAngle=0,this.lastPoint=this.startPoint,this.maxTouchmoveY=this.getBodyHeight()-this.optDown.bottomOffset,this.inTouchend=!1)},b.prototype.touchmoveEvent=function(t){if(!this.optDown.use)return;let o=this,e=o.getScrollTop(),n=o.getPoint(t);if(n.y-o.startPoint.y>0&&(o.isScrollBody&&e<=0||!o.isScrollBody&&(e<=0||e<=o.optDown.startTop&&e===o.startTop))&&!o.inTouchend&&!o.isDownScrolling&&!o.optDown.isLock&&(!o.isUpScrolling||o.isUpScrolling&&o.optUp.isBoth)){if(o.startAngle||(o.startAngle=o.getAngle(o.lastPoint,n)),o.startAngle0&&n.y>=o.maxTouchmoveY)return o.inTouchend=!0,void o.touchendEvent();o.preventDefault(t);let e=n.y-o.lastPoint.y;o.downHight0?e*o.optDown.outOffsetRate:e),o.downHight=Math.round(o.downHight);let s=o.downHight/o.optDown.offset;o.optDown.onMoving&&o.optDown.onMoving(o,s,o.downHight)}o.lastPoint=n},b.prototype.touchendEvent=function(t){if(this.optDown.use)if(this.isMoveDown)this.downHight>=this.optDown.offset?this.triggerDownScroll():(this.downHight=0,this.endDownScrollCall(this)),this.movetype=0,this.isMoveDown=!1;else if(!this.isScrollBody&&this.getScrollTop()===this.startTop){if(this.getPoint(t).y-this.startPoint.y<0){this.getAngle(this.getPoint(t),this.startPoint)>80&&this.triggerUpScroll(!0)}}},b.prototype.getPoint=function(t){return t?t.touches&&t.touches[0]?{x:t.touches[0].pageX,y:t.touches[0].pageY}:t.changedTouches&&t.changedTouches[0]?{x:t.changedTouches[0].pageX,y:t.changedTouches[0].pageY}:{x:t.clientX,y:t.clientY}:{x:0,y:0}},b.prototype.getAngle=function(t,o){let e=Math.abs(t.x-o.x),n=Math.abs(t.y-o.y),s=Math.sqrt(e*e+n*n),i=0;return 0!==s&&(i=Math.asin(n/s)/Math.PI*180),i},b.prototype.triggerDownScroll=function(){this.optDown.beforeLoading&&this.optDown.beforeLoading(this)||(this.showDownScroll(),!this.optDown.native&&this.optDown.callback&&this.optDown.callback(this))},b.prototype.showDownScroll=function(){this.isDownScrolling=!0,this.optDown.native?(t(),this.showDownLoadingCall(0)):(this.downHight=this.optDown.offset,this.showDownLoadingCall(this.downHight))},b.prototype.showDownLoadingCall=function(t){this.optDown.showLoading&&this.optDown.showLoading(this,t),this.optDown.afterLoading&&this.optDown.afterLoading(this,t)},b.prototype.onPullDownRefresh=function(){this.isDownScrolling=!0,this.showDownLoadingCall(0),this.optDown.callback&&this.optDown.callback(this)},b.prototype.endDownScroll=function(){if(this.optDown.native)return this.isDownScrolling=!1,this.endDownScrollCall(this),void o();let t=this,e=function(){t.downHight=0,t.isDownScrolling=!1,t.endDownScrollCall(t),t.isScrollBody||(t.setScrollHeight(0),t.scrollTo(0,0))},n=0;t.optDown.beforeEndDownScroll&&(n=t.optDown.beforeEndDownScroll(t),null==t.isDownEndSuccess&&(n=0)),"number"==typeof n&&n>0?setTimeout(e,n):e()},b.prototype.endDownScrollCall=function(){this.optDown.endDownScroll&&this.optDown.endDownScroll(this),this.optDown.afterEndDownScroll&&this.optDown.afterEndDownScroll(this)},b.prototype.lockDownScroll=function(t){null==t&&(t=!0),this.optDown.isLock=t},b.prototype.lockUpScroll=function(t){null==t&&(t=!0),this.optUp.isLock=t},b.prototype.initUpScroll=function(){let t=this;t.optUp=t.options.up||{use:!1},!t.optUp.textColor&&t.hasColor(t.optUp.bgColor)&&(t.optUp.textColor="#fff"),t.extendUpScroll(t.optUp),!1!==t.optUp.use&&(t.optUp.hasNext=!0,t.startNum=t.optUp.page.num+1,t.optUp.inited&&setTimeout((function(){t.optUp.inited(t)}),0))},b.prototype.onReachBottom=function(){this.isScrollBody&&!this.isUpScrolling&&!this.optUp.isLock&&this.optUp.hasNext&&this.triggerUpScroll()},b.prototype.onPageScroll=function(t){this.isScrollBody&&(this.setScrollTop(t.scrollTop),t.scrollTop>=this.optUp.toTop.offset?this.showTopBtn():this.hideTopBtn())},b.prototype.scroll=function(t,o){this.setScrollTop(t.scrollTop),this.setScrollHeight(t.scrollHeight),null==this.preScrollY&&(this.preScrollY=0),this.isScrollUp=t.scrollTop-this.preScrollY>0,this.preScrollY=t.scrollTop,this.isScrollUp&&this.triggerUpScroll(!0),t.scrollTop>=this.optUp.toTop.offset?this.showTopBtn():this.hideTopBtn(),this.optUp.onScroll&&o&&o()},b.prototype.triggerUpScroll=function(t){if(!this.isUpScrolling&&this.optUp.use&&this.optUp.callback){if(!0===t){let t=!1;if(!this.optUp.hasNext||this.optUp.isLock||this.isDownScrolling||this.getScrollBottom()<=this.optUp.offset&&(t=!0),!1===t)return}this.showUpScroll(),this.optUp.page.num++,this.isUpAutoLoad=!0,this.num=this.optUp.page.num,this.size=this.optUp.page.size,this.time=this.optUp.page.time,this.optUp.callback(this)}},b.prototype.showUpScroll=function(){this.isUpScrolling=!0,this.optUp.showLoading&&this.optUp.showLoading(this)},b.prototype.showNoMore=function(){this.optUp.hasNext=!1,this.optUp.showNoMore&&this.optUp.showNoMore(this)},b.prototype.hideUpScroll=function(){this.optUp.hideUpScroll&&this.optUp.hideUpScroll(this)},b.prototype.endUpScroll=function(t){null!=t&&(t?this.showNoMore():this.hideUpScroll()),this.isUpScrolling=!1},b.prototype.resetUpScroll=function(t){if(this.optUp&&this.optUp.use){let o=this.optUp.page;this.prePageNum=o.num,this.prePageTime=o.time,o.num=this.startNum,o.time=null,this.isDownScrolling||!1===t||(null==t?(this.removeEmpty(),this.showUpScroll()):this.showDownScroll()),this.isUpAutoLoad=!0,this.num=o.num,this.size=o.size,this.time=o.time,this.optUp.callback&&this.optUp.callback(this)}},b.prototype.setPageNum=function(t){this.optUp.page.num=t-1},b.prototype.setPageSize=function(t){this.optUp.page.size=t},b.prototype.endByPage=function(t,o,e){let n;this.optUp.use&&null!=o&&(n=this.optUp.page.numt?"number"==typeof t?t+"rpx":t:0,toTopClick(){this.$emit("input",!1),this.$emit("click")}}},[["render",function(t,o,p,c,a,h){const d=r;return h.mOption.src?(e(),n(d,{key:0,class:s(["mescroll-totop",[p.value?"mescroll-totop-in":"mescroll-totop-out",{"mescroll-totop-safearea":h.mOption.safearea}]]),style:i({"z-index":h.mOption.zIndex,left:h.left,right:h.right,bottom:h.addUnit(h.mOption.bottom),width:h.addUnit(h.mOption.width),"border-radius":h.addUnit(h.mOption.radius)}),src:h.mOption.src,mode:"widthFix",onClick:h.toTopClick},null,8,["class","style","src","onClick"])):l("",!0)}],["__scopeId","data-v-c0bf933e"]]),H={data:()=>({wxsProp:{optDown:{},scrollTop:0,bodyHeight:0,isDownScrolling:!1,isUpScrolling:!1,isScrollBody:!0,isUpBoth:!0,t:0},callProp:{callType:"",t:0}}),methods:{wxsCall(t){"setWxsProp"===t.type?this.wxsProp={optDown:this.mescroll.optDown,scrollTop:this.mescroll.getScrollTop(),bodyHeight:this.mescroll.getBodyHeight(),isDownScrolling:this.mescroll.isDownScrolling,isUpScrolling:this.mescroll.isUpScrolling,isUpBoth:this.mescroll.optUp.isBoth,isScrollBody:this.mescroll.isScrollBody,t:Date.now()}:"setLoadType"===t.type?(this.downLoadType=t.downLoadType,this.$set(this.mescroll,"downLoadType",this.downLoadType),this.$set(this.mescroll,"isDownEndSuccess",null)):"triggerDownScroll"===t.type?this.mescroll.triggerDownScroll():"endDownScroll"===t.type?this.mescroll.endDownScroll():"triggerUpScroll"===t.type&&this.mescroll.triggerUpScroll(!0)}},mounted(){this.mescroll.optDown.afterLoading=()=>{this.callProp={callType:"showLoading",t:Date.now()}},this.mescroll.optDown.afterEndDownScroll=()=>{this.callProp={callType:"endDownScroll",t:Date.now()};let t=300+(this.mescroll.optDown.beforeEndDelay||0);setTimeout((()=>{4!==this.downLoadType&&0!==this.downLoadType||(this.callProp={callType:"clearTransform",t:Date.now()}),this.$set(this.mescroll,"downLoadType",this.downLoadType)}),t)},this.wxsCall({type:"setWxsProp"})}};var P={};function O(t,o){if(P.isMoveDown)P.downHight>=P.optDown.offset?(P.downHight=P.optDown.offset,P.callMethod(o,{type:"triggerDownScroll"})):(P.downHight=0,P.callMethod(o,{type:"endDownScroll"})),P.movetype=0,P.isMoveDown=!1;else if(!P.isScrollBody&&P.getScrollTop()===P.startTop){if(P.getPoint(t).y-P.startPoint.y<0)P.getAngle(P.getPoint(t),P.startPoint)>80&&P.callMethod(o,{type:"triggerUpScroll"})}P.callMethod(o,{type:"setWxsProp"})}P.onMoving=function(t,o,e){t.requestAnimationFrame((function(){t.selectComponent(".mescroll-wxs-content").setStyle({"will-change":"transform",transform:"translateY("+e+"px)",transition:""});var n=t.selectComponent(".mescroll-wxs-progress");n&&n.setStyle({transform:"rotate("+360*o+"deg)"})}))},P.showLoading=function(t){P.downHight=P.optDown.offset,t.requestAnimationFrame((function(){t.selectComponent(".mescroll-wxs-content").setStyle({"will-change":"auto",transform:"translateY("+P.downHight+"px)",transition:"transform 300ms"})}))},P.endDownScroll=function(t){P.downHight=0,P.isDownScrolling=!1,t.requestAnimationFrame((function(){t.selectComponent(".mescroll-wxs-content").setStyle({"will-change":"auto",transform:"translateY(0)",transition:"transform 300ms"})}))},P.clearTransform=function(t){t.requestAnimationFrame((function(){t.selectComponent(".mescroll-wxs-content").setStyle({"will-change":"",transform:"",transition:""})}))},P.disabled=function(){return!P.optDown||!P.optDown.use||P.optDown.native},P.getPoint=function(t){return t?t.touches&&t.touches[0]?{x:t.touches[0].pageX,y:t.touches[0].pageY}:t.changedTouches&&t.changedTouches[0]?{x:t.changedTouches[0].pageX,y:t.changedTouches[0].pageY}:{x:t.clientX,y:t.clientY}:{x:0,y:0}},P.getAngle=function(t,o){var e=Math.abs(t.x-o.x),n=Math.abs(t.y-o.y),s=Math.sqrt(e*e+n*n),i=0;return 0!==s&&(i=Math.asin(n/s)/Math.PI*180),i},P.getScrollTop=function(){return P.scrollTop||0},P.getBodyHeight=function(){return P.bodyHeight||0},P.callMethod=function(t,o){t&&t.callMethod("wxsCall",o)};const k={propObserver:function(t){P.optDown=t.optDown,P.scrollTop=t.scrollTop,P.bodyHeight=t.bodyHeight,P.isDownScrolling=t.isDownScrolling,P.isUpScrolling=t.isUpScrolling,P.isUpBoth=t.isUpBoth,P.isScrollBody=t.isScrollBody,P.startTop=t.scrollTop},callObserver:function(t,o,e){P.disabled()||t.callType&&("showLoading"===t.callType?P.showLoading(e):"endDownScroll"===t.callType?P.endDownScroll(e):"clearTransform"===t.callType&&P.clearTransform(e))},touchstartEvent:function(t,o){P.downHight=0,P.startPoint=P.getPoint(t),P.startTop=P.getScrollTop(),P.startAngle=0,P.lastPoint=P.startPoint,P.maxTouchmoveY=P.getBodyHeight()-P.optDown.bottomOffset,P.inTouchend=!1,P.callMethod(o,{type:"setWxsProp"})},touchmoveEvent:function(t,o){var e=!0;if(P.disabled())return e;var n=P.getScrollTop(),s=P.getPoint(t);if(s.y-P.startPoint.y>0&&(P.isScrollBody&&n<=0||!P.isScrollBody&&(n<=0||n<=P.optDown.startTop&&n===P.startTop))&&!P.inTouchend&&!P.isDownScrolling&&!P.optDown.isLock&&(!P.isUpScrolling||P.isUpScrolling&&P.isUpBoth)){if(P.startAngle||(P.startAngle=P.getAngle(P.lastPoint,s)),P.startAngle0&&s.y>=P.maxTouchmoveY)return P.inTouchend=!0,O(t,o),e;e=!1;var i=s.y-P.lastPoint.y;P.downHight0?i*P.optDown.outOffsetRate:i),P.downHight=Math.round(P.downHight);var l=P.downHight/P.optDown.offset;P.onMoving(o,l,P.downHight)}return P.lastPoint=s,e},touchendEvent:O},C=t=>{t.$wxs||(t.$wxs=[]),t.$wxs.push("wxsBiz"),t.mixins||(t.mixins=[]),t.mixins.push({beforeCreate(){this.wxsBiz=k}})};var E={};function M(t){E.optDown=t.optDown,E.scrollTop=t.scrollTop,E.isDownScrolling=t.isDownScrolling,E.isUpScrolling=t.isUpScrolling,E.isUpBoth=t.isUpBoth}window&&!window.$mescrollRenderInit&&(window.$mescrollRenderInit=!0,window.addEventListener("touchstart",(function(t){E.disabled()||(E.startPoint=E.getPoint(t))}),{passive:!0}),window.addEventListener("touchmove",(function(t){if(!E.disabled()&&(!(E.getScrollTop()>0)&&E.getPoint(t).y-E.startPoint.y>0&&!E.isDownScrolling&&!E.optDown.isLock&&(!E.isUpScrolling||E.isUpScrolling&&E.isUpBoth))){for(var o=t.target,e=!1;o&&o.tagName&&"UNI-PAGE-BODY"!==o.tagName&&"BODY"!=o.tagName;){var n=o.classList;if(n&&n.contains("mescroll-render-touch")){e=!0;break}o=o.parentNode}e&&t.cancelable&&!t.defaultPrevented&&t.preventDefault()}}),{passive:!1})),E.getScrollTop=function(){return E.scrollTop||0},E.disabled=function(){return!E.optDown||!E.optDown.use||E.optDown.native},E.getPoint=function(t){return t?t.touches&&t.touches[0]?{x:t.touches[0].pageX,y:t.touches[0].pageY}:t.changedTouches&&t.changedTouches[0]?{x:t.changedTouches[0].pageX,y:t.changedTouches[0].pageY}:{x:t.clientX,y:t.clientY}:{x:0,y:0}};const N={mixins:[{data:()=>({propObserver:M})}]},z=t=>{t.$renderjs||(t.$renderjs=[]),t.$renderjs.push("renderBiz"),t.mixins||(t.mixins=[]),t.mixins.push({beforeCreate(){this.renderBiz=this},mounted(){this.$ownerInstance=this.$gcd(this,!0)}}),t.mixins.push(N)},Y={name:"mescroll-body",mixins:[H],components:{MescrollTop:L},props:{down:Object,up:Object,i18n:Object,top:[String,Number],topbar:[Boolean,String],bottom:[String,Number],safearea:Boolean,height:[String,Number],bottombar:{type:Boolean,default:!0},sticky:Boolean},data:()=>({mescroll:{optDown:{},optUp:{}},downHight:0,downRate:0,downLoadType:0,upLoadType:0,isShowEmpty:!1,isShowToTop:!1,windowHeight:0,windowBottom:0,statusBarHeight:0}),computed:{minHeight(){return this.toPx(this.height||"100%")+"px"},numTop(){return this.toPx(this.top)},padTop(){return this.numTop+"px"},numBottom(){return this.toPx(this.bottom)},padBottom(){return this.numBottom+"px"},isDownReset(){return 3===this.downLoadType||4===this.downLoadType},transition(){return this.isDownReset?"transform 300ms":""},translateY(){return this.downHight>0?"translateY("+this.downHight+"px)":""},isDownLoading(){return 3===this.downLoadType},downRotate(){return"rotate("+360*this.downRate+"deg)"},downText(){if(!this.mescroll)return"";switch(this.downLoadType){case 1:default:return this.mescroll.optDown.textInOffset;case 2:return this.mescroll.optDown.textOutOffset;case 3:return this.mescroll.optDown.textLoading;case 4:return this.mescroll.isDownEndSuccess?this.mescroll.optDown.textSuccess:0==this.mescroll.isDownEndSuccess?this.mescroll.optDown.textErr:this.mescroll.optDown.textInOffset}}},methods:{toPx(t){if("string"==typeof t)if(-1!==t.indexOf("px"))if(-1!==t.indexOf("rpx"))t=t.replace("rpx","");else{if(-1===t.indexOf("upx"))return Number(t.replace("px",""));t=t.replace("upx","")}else if(-1!==t.indexOf("%")){let o=Number(t.replace("%",""))/100;return this.windowHeight*o}return t?p(Number(t)):0},emptyClick(){this.$emit("emptyclick",this.mescroll)},toTopClick(){this.mescroll.scrollTo(0,this.mescroll.optUp.toTop.duration),this.$emit("topclick",this.mescroll)}},created(){let t=this,o={down:{inOffset(){t.downLoadType=1},outOffset(){t.downLoadType=2},onMoving(o,e,n){t.downHight=n,t.downRate=e},showLoading(o,e){t.downLoadType=3,t.downHight=e},beforeEndDownScroll:o=>(t.downLoadType=4,o.optDown.beforeEndDelay),endDownScroll(){t.downLoadType=4,t.downHight=0,t.downResetTimer&&(clearTimeout(t.downResetTimer),t.downResetTimer=null),t.downResetTimer=setTimeout((()=>{4===t.downLoadType&&(t.downLoadType=0)}),300)},callback:function(o){t.$emit("down",o)}},up:{showLoading(){t.upLoadType=1},showNoMore(){t.upLoadType=2},hideUpScroll(o){t.upLoadType=o.optUp.hasNext?0:3},empty:{onShow(o){t.isShowEmpty=o}},toTop:{onShow(o){t.isShowToTop=o}},callback:function(o){t.$emit("up",o)}}},e=B.getType(),n={type:e};b.extend(n,t.i18n),b.extend(n,v.i18n),b.extend(o,n[e]),b.extend(o,{down:v.down,up:v.up});let s=JSON.parse(JSON.stringify({down:t.down,up:t.up}));b.extend(s,o),t.mescroll=new b(s,!0),t.mescroll.i18n=n,t.$emit("init",t.mescroll);const i=c();i.windowHeight&&(t.windowHeight=i.windowHeight),i.windowBottom&&(t.windowBottom=i.windowBottom),i.statusBarHeight&&(t.statusBarHeight=i.statusBarHeight),t.mescroll.setBodyHeight(i.windowHeight),t.mescroll.resetScrollTo(((o,e)=>{"string"==typeof o?setTimeout((()=>{let n;-1==o.indexOf("#")&&-1==o.indexOf(".")?n="#"+o:(n=o,-1!=o.indexOf(">>>")&&(n=o.split(">>>")[1].trim())),a().select(n).boundingClientRect((function(o){if(o){let n=o.top;n+=t.mescroll.getScrollTop(),h({scrollTop:n,duration:e})}else console.error(n+" does not exist")})).exec()}),30):h({scrollTop:o,duration:e})})),t.up&&t.up.toTop&&null!=t.up.toTop.safearea||(t.mescroll.optUp.toTop.safearea=t.safearea),d("setMescrollGlobalOption",(o=>{if(!o)return;let e=o.i18n?o.i18n.type:null;if(e&&t.mescroll.i18n.type!=e&&(t.mescroll.i18n.type=e,B.setType(e),b.extend(o,t.mescroll.i18n[e])),o.down){let e=b.extend({},o.down);t.mescroll.optDown=b.extend(e,t.mescroll.optDown)}if(o.up){let e=b.extend({},o.up);t.mescroll.optUp=b.extend(e,t.mescroll.optUp)}}))},destroyed(){u("setMescrollGlobalOption")}};C(Y),z(Y);const A=U(Y,[["render",function(t,o,r,p,c,a){const h=x,d=w("mescroll-empty"),u=w("mescroll-top");return e(),n(h,{class:s(["mescroll-body mescroll-render-touch",{"mescorll-sticky":r.sticky}]),style:i({minHeight:a.minHeight,"padding-top":a.padTop,"padding-bottom":a.padBottom}),onTouchstart:t.wxsBiz.touchstartEvent,onTouchmove:t.wxsBiz.touchmoveEvent,onTouchend:t.wxsBiz.touchendEvent,onTouchcancel:t.wxsBiz.touchendEvent,"change:prop":t.wxsBiz.propObserver,prop:t.wxsProp},{default:g((()=>[r.topbar&&c.statusBarHeight?(e(),n(h,{key:0,class:"mescroll-topbar",style:i({height:c.statusBarHeight+"px",background:r.topbar})},null,8,["style"])):l("",!0),m(h,{class:"mescroll-body-content mescroll-wxs-content",style:i({transform:a.translateY,transition:a.transition}),"change:prop":t.wxsBiz.callObserver,prop:t.callProp},{default:g((()=>[c.mescroll.optDown.use?(e(),n(h,{key:0,class:"mescroll-downwarp",style:i({background:c.mescroll.optDown.bgColor,color:c.mescroll.optDown.textColor})},{default:g((()=>[m(h,{class:"downwarp-content"},{default:g((()=>[m(h,{class:s(["downwarp-progress mescroll-wxs-progress",{"mescroll-rotate":a.isDownLoading}]),style:i({"border-color":c.mescroll.optDown.textColor,transform:a.downRotate})},null,8,["class","style"]),m(h,{class:"downwarp-tip"},{default:g((()=>[f(y(a.downText),1)])),_:1})])),_:1})])),_:1},8,["style"])):l("",!0),S(t.$slots,"default",{},void 0,!0),c.isShowEmpty?(e(),n(d,{key:1,option:c.mescroll.optUp.empty,onEmptyclick:a.emptyClick},null,8,["option","onEmptyclick"])):l("",!0),c.mescroll.optUp.use&&!a.isDownLoading&&3!==c.upLoadType?(e(),n(h,{key:2,class:"mescroll-upwarp",style:i({background:c.mescroll.optUp.bgColor,color:c.mescroll.optUp.textColor})},{default:g((()=>[D(m(h,null,{default:g((()=>[m(h,{class:"upwarp-progress mescroll-rotate",style:i({"border-color":c.mescroll.optUp.textColor})},null,8,["style"]),m(h,{class:"upwarp-tip"},{default:g((()=>[f(y(c.mescroll.optUp.textLoading),1)])),_:1})])),_:1},512),[[T,1===c.upLoadType]]),2===c.upLoadType?(e(),n(h,{key:0,class:"upwarp-nodata"},{default:g((()=>[f(y(c.mescroll.optUp.textNoMore),1)])),_:1})):l("",!0)])),_:1},8,["style"])):l("",!0)])),_:3},8,["style","change:prop","prop"]),r.bottombar&&c.windowBottom>0?(e(),n(h,{key:1,class:"mescroll-bottombar",style:i({height:c.windowBottom+"px"})},null,8,["style"])):l("",!0),r.safearea?(e(),n(h,{key:2,class:"mescroll-safearea"})):l("",!0),m(u,{modelValue:c.isShowToTop,"onUpdate:modelValue":o[0]||(o[0]=t=>c.isShowToTop=t),option:c.mescroll.optUp.toTop,onClick:a.toTopClick},null,8,["modelValue","option","onClick"]),m(h,{"change:prop":t.renderBiz.propObserver,prop:t.wxsProp},null,8,["change:prop","prop"])])),_:3},8,["class","style","onTouchstart","onTouchmove","onTouchend","onTouchcancel","change:prop","prop"])}],["__scopeId","data-v-0e2ab920"]]);function R(t,o,e){let n=null;return e&&e((()=>{n&&n.onPullDownRefresh()})),t&&t((t=>{n&&n.onPageScroll(t)})),o&&o((()=>{n&&n.onReachBottom()})),{getMescroll:()=>n,mescrollInit:t=>{n=t},downCallback:()=>{n.optUp.use?n.resetUpScroll():setTimeout((()=>{n.endSuccess()}),500)},upCallback:()=>{setTimeout((()=>{n.endErr()}),500)}}}export{v as G,A as M,B as m,R as u}; diff --git a/niucloud/public/wap/assets/useShare.3d08f2fc.js b/niucloud/public/wap/assets/useShare.3d08f2fc.js new file mode 100644 index 000000000..f3dc95abd --- /dev/null +++ b/niucloud/public/wap/assets/useShare.3d08f2fc.js @@ -0,0 +1 @@ +import{U as e,ah as a,x as t,ai as i,aj as l,ak as r,al as n,am as s}from"./index-15eacd31.js";import{w as o}from"./wechat.56b0d350.js";const p=()=>{var p={title:"",link:""},c={};const h=()=>{s()&&o.share(p)};return{setShare:async(r={})=>{let n=e();if(await(async()=>{s()&&await o.init()})(),r&&r.wechat&&r.weapp){let e=a().params;n.info&&(e.mid=n.info.member_id);let l=[];for(let a in e)l.push(a+"="+e[a]);let s=location.origin+location.pathname+(l.length>0?"?"+l.join("&"):"");p={title:r.wechat.title||"",link:r.wechat.link||s,desc:r.wechat.desc||"",imgUrl:r.wechat.url?t(r.wechat.url):""},h(),c={title:r.weapp.title||"",query:r.weapp.path||"/"+i()+(l.length>0?"?"+l.join("&"):""),imageUrl:r.weapp.url?t(r.weapp.url):""}}else l({route:"/"+i(),params:JSON.stringify(a().params)}).then((e=>{let a=e.data,i=a.wechat;if(i){let e=location.origin+location.pathname+(a.query?"?"+a.query:"");p={link:e,title:i.title,desc:i.desc,imgUrl:i.url?t(i.url):""}}h();let l=a.weapp;l&&(c={query:a.url,title:l.title,imageUrl:l.url?t(l.url):""})}))},onShareAppMessage:(e={})=>{r((()=>({...c,...e})))},onShareTimeline:(e={})=>{n((()=>({...c,...e})))}}};export{p as u}; diff --git a/niucloud/public/wap/assets/useShare.80667d20.js b/niucloud/public/wap/assets/useShare.80667d20.js deleted file mode 100644 index d114bc8f1..000000000 --- a/niucloud/public/wap/assets/useShare.80667d20.js +++ /dev/null @@ -1 +0,0 @@ -import{U as e,ah as a,t,ai as i,aj as l,ak as r,al as n,am as s}from"./index-5bb08350.js";import{w as o}from"./wechat.eeef1e91.js";const p=()=>{var p={title:"",link:""},c={};const h=()=>{s()&&o.share(p)};return{setShare:async(r={})=>{let n=e();if(await(async()=>{s()&&await o.init()})(),r&&r.wechat&&r.weapp){let e=a().params;n.info&&(e.mid=n.info.member_id);let l=[];for(let a in e)l.push(a+"="+e[a]);let s=location.origin+location.pathname+(l.length>0?"?"+l.join("&"):"");p={title:r.wechat.title||"",link:r.wechat.link||s,desc:r.wechat.desc||"",imgUrl:r.wechat.url?t(r.wechat.url):""},h(),c={title:r.weapp.title||"",query:r.weapp.path||"/"+i()+(l.length>0?"?"+l.join("&"):""),imageUrl:r.weapp.url?t(r.weapp.url):""}}else l({route:"/"+i(),params:JSON.stringify(a().params)}).then((e=>{let a=e.data,i=a.wechat;if(i){let e=location.origin+location.pathname+(a.query?"?"+a.query:"");p={link:e,title:i.title,desc:i.desc,imgUrl:i.url?t(i.url):""}}h();let l=a.weapp;l&&(c={query:a.url,title:l.title,imageUrl:l.url?t(l.url):""})}))},onShareAppMessage:(e={})=>{r((()=>({...c,...e})))},onShareTimeline:(e={})=>{n((()=>({...c,...e})))}}};export{p as u}; diff --git a/niucloud/public/wap/assets/wechat.eeef1e91.js b/niucloud/public/wap/assets/wechat.56b0d350.js similarity index 99% rename from niucloud/public/wap/assets/wechat.eeef1e91.js rename to niucloud/public/wap/assets/wechat.56b0d350.js index c7b32a248..10b76ae3c 100644 --- a/niucloud/public/wap/assets/wechat.eeef1e91.js +++ b/niucloud/public/wap/assets/wechat.56b0d350.js @@ -1 +1 @@ -import{ay as e,ae as n}from"./index-5bb08350.js";var i,t={};i=window,{get exports(){return t},set exports(e){t=e}}.exports=function(e,n){if(!e.jWeixin){var i,t={config:"preVerifyJSAPI",onMenuShareTimeline:"menu:share:timeline",onMenuShareAppMessage:"menu:share:appmessage",onMenuShareQQ:"menu:share:qq",onMenuShareWeibo:"menu:share:weiboApp",onMenuShareQZone:"menu:share:QZone",previewImage:"imagePreview",getLocation:"geoLocation",openProductSpecificView:"openProductViewWithPid",addCard:"batchAddCard",openCard:"batchViewCard",chooseWXPay:"getBrandWCPayRequest",openEnterpriseRedPacket:"getRecevieBizHongBaoRequest",startSearchBeacons:"startMonitoringBeacons",stopSearchBeacons:"stopMonitoringBeacons",onSearchBeacons:"onBeaconsInRange",consumeAndShareCard:"consumedShareCard",openAddress:"editAddress"},o=function(){var e={};for(var n in t)e[t[n]]=n;return e}(),r=e.document,a=r.title,c=navigator.userAgent.toLowerCase(),s=navigator.platform.toLowerCase(),d=!(!s.match("mac")&&!s.match("win")),u=-1!=c.indexOf("wxdebugger"),l=-1!=c.indexOf("micromessenger"),p=-1!=c.indexOf("android"),f=-1!=c.indexOf("iphone")||-1!=c.indexOf("ipad"),g=(i=c.match(/micromessenger\/(\d+\.\d+\.\d+)/)||c.match(/micromessenger\/(\d+\.\d+)/))?i[1]:"",m={initStartTime:B(),initEndTime:0,preVerifyStartTime:0,preVerifyEndTime:0},h={version:1,appId:"",initTime:0,preVerifyTime:0,networkType:"",isPreVerifyOk:1,systemType:f?1:p?2:-1,clientVersion:g,url:encodeURIComponent(location.href)},S={},v={_completes:[]},y={state:0,data:{}};O((function(){m.initEndTime=B()}));var I=!1,w=[],_={config:function(n){L("config",S=n);var i=!1!==S.check;O((function(){if(i)M(t.config,{verifyJsApiList:C(S.jsApiList),verifyOpenTagList:C(S.openTagList)},function(){v._complete=function(e){m.preVerifyEndTime=B(),y.state=1,y.data=e},v.success=function(e){h.isPreVerifyOk=0},v.fail=function(e){v._fail?v._fail(e):y.state=-1};var e=v._completes;return e.push((function(){!function(){if(!(d||u||S.debug||g<"6.0.2"||h.systemType<0)){var e=new Image;h.appId=S.appId,h.initTime=m.initEndTime-m.initStartTime,h.preVerifyTime=m.preVerifyEndTime-m.preVerifyStartTime,_.getNetworkType({isInnerInvoke:!0,success:function(n){h.networkType=n.networkType;var i="https://open.weixin.qq.com/sdk/report?v="+h.version+"&o="+h.isPreVerifyOk+"&s="+h.systemType+"&c="+h.clientVersion+"&a="+h.appId+"&n="+h.networkType+"&i="+h.initTime+"&p="+h.preVerifyTime+"&u="+h.url;e.src=i}})}}()})),v.complete=function(n){for(var i=0,t=e.length;i{const{data:n}=e;t.config({debug:!1,appId:n.appId,timestamp:n.timestamp,nonceStr:n.nonceStr,signature:n.signature,jsApiList:["chooseWXPay","updateAppMessageShareData","updateTimelineShareData"]})}))}pay(e){t.ready((()=>{t.chooseWXPay(e)}))}share(e){t.ready((()=>{t.updateAppMessageShareData(e),t.updateTimelineShareData(e)}))}};export{o as w}; +import{ay as e,ae as n}from"./index-15eacd31.js";var i,t={};i=window,{get exports(){return t},set exports(e){t=e}}.exports=function(e,n){if(!e.jWeixin){var i,t={config:"preVerifyJSAPI",onMenuShareTimeline:"menu:share:timeline",onMenuShareAppMessage:"menu:share:appmessage",onMenuShareQQ:"menu:share:qq",onMenuShareWeibo:"menu:share:weiboApp",onMenuShareQZone:"menu:share:QZone",previewImage:"imagePreview",getLocation:"geoLocation",openProductSpecificView:"openProductViewWithPid",addCard:"batchAddCard",openCard:"batchViewCard",chooseWXPay:"getBrandWCPayRequest",openEnterpriseRedPacket:"getRecevieBizHongBaoRequest",startSearchBeacons:"startMonitoringBeacons",stopSearchBeacons:"stopMonitoringBeacons",onSearchBeacons:"onBeaconsInRange",consumeAndShareCard:"consumedShareCard",openAddress:"editAddress"},o=function(){var e={};for(var n in t)e[t[n]]=n;return e}(),r=e.document,a=r.title,c=navigator.userAgent.toLowerCase(),s=navigator.platform.toLowerCase(),d=!(!s.match("mac")&&!s.match("win")),u=-1!=c.indexOf("wxdebugger"),l=-1!=c.indexOf("micromessenger"),p=-1!=c.indexOf("android"),f=-1!=c.indexOf("iphone")||-1!=c.indexOf("ipad"),g=(i=c.match(/micromessenger\/(\d+\.\d+\.\d+)/)||c.match(/micromessenger\/(\d+\.\d+)/))?i[1]:"",m={initStartTime:B(),initEndTime:0,preVerifyStartTime:0,preVerifyEndTime:0},h={version:1,appId:"",initTime:0,preVerifyTime:0,networkType:"",isPreVerifyOk:1,systemType:f?1:p?2:-1,clientVersion:g,url:encodeURIComponent(location.href)},S={},v={_completes:[]},y={state:0,data:{}};O((function(){m.initEndTime=B()}));var I=!1,w=[],_={config:function(n){L("config",S=n);var i=!1!==S.check;O((function(){if(i)M(t.config,{verifyJsApiList:C(S.jsApiList),verifyOpenTagList:C(S.openTagList)},function(){v._complete=function(e){m.preVerifyEndTime=B(),y.state=1,y.data=e},v.success=function(e){h.isPreVerifyOk=0},v.fail=function(e){v._fail?v._fail(e):y.state=-1};var e=v._completes;return e.push((function(){!function(){if(!(d||u||S.debug||g<"6.0.2"||h.systemType<0)){var e=new Image;h.appId=S.appId,h.initTime=m.initEndTime-m.initStartTime,h.preVerifyTime=m.preVerifyEndTime-m.preVerifyStartTime,_.getNetworkType({isInnerInvoke:!0,success:function(n){h.networkType=n.networkType;var i="https://open.weixin.qq.com/sdk/report?v="+h.version+"&o="+h.isPreVerifyOk+"&s="+h.systemType+"&c="+h.clientVersion+"&a="+h.appId+"&n="+h.networkType+"&i="+h.initTime+"&p="+h.preVerifyTime+"&u="+h.url;e.src=i}})}}()})),v.complete=function(n){for(var i=0,t=e.length;i{const{data:n}=e;t.config({debug:!1,appId:n.appId,timestamp:n.timestamp,nonceStr:n.nonceStr,signature:n.signature,jsApiList:["chooseWXPay","updateAppMessageShareData","updateTimelineShareData"]})}))}pay(e){t.ready((()=>{t.chooseWXPay(e)}))}share(e){t.ready((()=>{t.updateAppMessageShareData(e),t.updateTimelineShareData(e)}))}};export{o as w}; diff --git a/niucloud/public/wap/index.html b/niucloud/public/wap/index.html index 28067798d..9a251fec0 100644 --- a/niucloud/public/wap/index.html +++ b/niucloud/public/wap/index.html @@ -14,7 +14,7 @@ - +