diff --git a/.env.test b/.env.test index cc64482..8ce9028 100644 --- a/.env.test +++ b/.env.test @@ -1,3 +1,4 @@ NODE_ENV= test VITE_HTTP_BASE_URL= https://test-weapp-api.linyikj.com.cn/api/ +# VITE_HTTP_BASE_URL= https://weapp-api.linyikj.com.cn/api/ VITE_ACCESS_TOKEN_KEY= 'NCHL_TEST_ACCESS_TOKEN_CUSTOMER' \ No newline at end of file diff --git a/.gitignore b/.gitignore index 3c3629e..f06235c 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ node_modules +dist diff --git a/ci/project.config.json b/ci/project.config.json index aa490f9..5c89890 100644 --- a/ci/project.config.json +++ b/ci/project.config.json @@ -1,3 +1,3 @@ { - "version": "0.0.70" + "version": "0.0.78" } \ No newline at end of file diff --git a/dist/build/mp-weixin/INDEX/collection/confirm.js b/dist/build/mp-weixin/INDEX/collection/confirm.js index 045ec9a..9397c62 100644 --- a/dist/build/mp-weixin/INDEX/collection/confirm.js +++ b/dist/build/mp-weixin/INDEX/collection/confirm.js @@ -1 +1 @@ -"use strict";const o=require("../../common/vendor.js");if(!Array){(o.resolveComponent("uni-icons")+o.resolveComponent("hs-footer"))()}Math||((()=>"../../uni_modules/uni-icons/components/uni-icons/uni-icons.js")+(()=>"../../components/hs-footer/hs-footer.js"))();const e=o.defineComponent({__name:"confirm",setup(e){const n=o.ref(0),c=()=>{o.index.showModal({title:"提示",content:"该功能在当前项目暂未开放,敬请期待",confirmColor:"#0082FA",success:function(o){o.confirm?console.log("用户点击确定"):o.cancel&&console.log("用户点击取消")}})};return(e,s)=>o.e({a:1==n.value},1==n.value?{b:o.p({type:"checkbox-filled",size:"20",color:"#2A7EFB"})}:{c:o.p({type:"circle",size:"20",color:"#888"})},{d:o.o((o=>{return e=1,void(n.value=e);var e})),e:o.o(c),f:o.p({btnParimaryName:"确定"})})}}),n=o._export_sfc(e,[["__scopeId","data-v-ca2e9abd"]]);wx.createPage(n); +"use strict";const o=require("../../common/vendor.js");if(!Array){(o.resolveComponent("uni-icons")+o.resolveComponent("hs-footer"))()}Math||((()=>"../../uni_modules/uni-icons/components/uni-icons/uni-icons.js")+(()=>"../../components/hs-footer/hs-footer.js"))();const e=o.defineComponent({__name:"confirm",setup(e){const n=o.ref(0),c=()=>{o.index.showModal({title:"提示",content:"该功能在当前项目暂未开放,敬请期待",confirmColor:"#0082FA",success:function(o){o.confirm?console.log("用户点击确定"):o.cancel&&console.log("用户点击取消")}})};return(e,s)=>o.e({a:1==n.value},1==n.value?{b:o.p({type:"checkbox-filled",size:"20",color:"#2A7EFB"})}:{c:o.p({type:"circle",size:"20",color:"#888"})},{d:o.o((o=>{return e=1,void(n.value=e);var e})),e:o.o(c),f:o.p({btnParimaryName:"确定"})})}}),n=o._export_sfc(e,[["__scopeId","data-v-fb5f77bb"]]);wx.createPage(n); diff --git a/dist/build/mp-weixin/INDEX/collection/confirm.wxml b/dist/build/mp-weixin/INDEX/collection/confirm.wxml index ecca0ee..6176424 100644 --- a/dist/build/mp-weixin/INDEX/collection/confirm.wxml +++ b/dist/build/mp-weixin/INDEX/collection/confirm.wxml @@ -1 +1 @@ -请选择自动扣款方式微信支付 \ No newline at end of file +请选择自动扣款方式微信支付 \ No newline at end of file diff --git a/dist/build/mp-weixin/INDEX/collection/confirm.wxss b/dist/build/mp-weixin/INDEX/collection/confirm.wxss index c47ae1e..25a9860 100644 --- a/dist/build/mp-weixin/INDEX/collection/confirm.wxss +++ b/dist/build/mp-weixin/INDEX/collection/confirm.wxss @@ -1 +1 @@ -.collection_page.data-v-ca2e9abd{background:linear-gradient(180deg,#d8e7ff 0%,rgba(255,255,255,0) 500rpx);background-repeat:no-repeat;height:100vh}.pay_title.data-v-ca2e9abd{color:#333;font-size:40rpx;font-weight:500;padding:60rpx 30rpx 30rpx}.pay_price.data-v-ca2e9abd{font-size:50rpx;text-align:center;font-weight:600;color:#df3600}.pay_price text.data-v-ca2e9abd{font-size:30rpx}.pay_type.data-v-ca2e9abd{display:flex;align-items:center;justify-content:space-between;background-color:#fff;border-radius:10rpx;margin:30rpx 30rpx 0;padding:30rpx}.pay_type .pay_label.data-v-ca2e9abd{display:flex;align-items:center;font-size:28rpx}.pay_type .pay_label image.data-v-ca2e9abd{width:60rpx;height:60rpx}.pay_type .pay_label text.data-v-ca2e9abd{padding-left:10rpx}.footer_btn.data-v-ca2e9abd{position:fixed;bottom:0;z-index:100;background-color:#fff;padding:25rpx 30rpx;left:0;right:0;border-top-left-radius:15rpx;border-top-right-radius:15rpx;padding-bottom:calc(25rpx + constant(safe-area-inset-bottom));padding-bottom:calc(25rpx + env(safe-area-inset-bottom))} +.collection_page.data-v-fb5f77bb{background:linear-gradient(180deg,#d8e7ff 0%,rgba(255,255,255,0) 500rpx);background-repeat:no-repeat;height:100vh}.pay_title.data-v-fb5f77bb{color:#333;font-size:40rpx;font-weight:500;padding:60rpx 30rpx 30rpx}.pay_price.data-v-fb5f77bb{font-size:50rpx;text-align:center;font-weight:600;color:#df3600}.pay_price text.data-v-fb5f77bb{font-size:30rpx}.pay_type.data-v-fb5f77bb{display:flex;align-items:center;justify-content:space-between;background-color:#fff;border-radius:10rpx;margin:30rpx 30rpx 0;padding:30rpx}.pay_type .pay_label.data-v-fb5f77bb{display:flex;align-items:center;font-size:28rpx}.pay_type .pay_label image.data-v-fb5f77bb{width:60rpx;height:60rpx}.pay_type .pay_label text.data-v-fb5f77bb{padding-left:10rpx}.footer_btn.data-v-fb5f77bb{position:fixed;bottom:0;z-index:100;background-color:#fff;padding:25rpx 30rpx;left:0;right:0;border-top-left-radius:15rpx;border-top-right-radius:15rpx;padding-bottom:calc(25rpx + constant(safe-area-inset-bottom));padding-bottom:calc(25rpx + env(safe-area-inset-bottom))} diff --git a/dist/build/mp-weixin/app.json b/dist/build/mp-weixin/app.json index 546c583..1b68f9d 100644 --- a/dist/build/mp-weixin/app.json +++ b/dist/build/mp-weixin/app.json @@ -5,7 +5,7 @@ "pages/transfer/index", "pages/forward/index", "pages/me/index", - "pages/ai/index", + "pages/ai/chat", "pages/web_view/index" ], "subPackages": [ diff --git a/dist/build/mp-weixin/common/libraries/public.js b/dist/build/mp-weixin/common/libraries/public.js index 9a66e78..a944911 100644 --- a/dist/build/mp-weixin/common/libraries/public.js +++ b/dist/build/mp-weixin/common/libraries/public.js @@ -1 +1 @@ -"use strict";exports.formatPhoneNumber=function(e){return e?e.replace(/(\d{3})\d{4}(\d{4})/,"$1****$2"):""}; +"use strict";exports.formatPhoneNumber=function(e){return e?e.replace(/(\d{3})\d{4}(\d{4})/,"$1****$2"):""},exports.quickActions=[{label:"房屋缴费",message:"房屋缴费",icon:"FWJF.svg"},{label:"房屋绑定",message:"房屋绑定",icon:"bindHouer.svg"},{label:"工单查询",message:"工单查询",icon:"work.svg"},{label:"社区服务",message:"社区服务",icon:"community.svg"}]; diff --git a/dist/build/mp-weixin/common/libraries/request.js b/dist/build/mp-weixin/common/libraries/request.js index bfbc15a..f43e9dd 100644 --- a/dist/build/mp-weixin/common/libraries/request.js +++ b/dist/build/mp-weixin/common/libraries/request.js @@ -1 +1 @@ -"use strict";const e=require("../vendor.js"),r=require("../store/useWeAppAuthStore.js"),t=new e.Request;t.setConfig((e=>(e.baseURL="https://weapp-api.linyikj.com.cn/api/",e.header={...e.header},e))),t.interceptors.request.use((r=>(r.header={...r.header,Authorization:"Bearer "+e.index.getStorageSync("NCHL_PROD_ACCESS_TOKEN_CUSTOMER")},r)),(e=>Promise.reject(e))),t.interceptors.response.use((t=>{const o=t.data;if(e.index.hideLoading(),!0!==o.success){if(10001===o.errorCode){r.useWeAppAuthStore().loading=!1,e.index.showToast({title:o.errorMessage,icon:"none"})}else e.index.showToast({title:o.errorMessage,icon:"none"});return Promise.reject(t.data)}return t.data}),(e=>{console.log("error",e);return r.useWeAppAuthStore().loading=!1,Promise.reject(e)})),exports.request=function(e,r){return t.post(e,r.data)}; +"use strict";const e=require("../vendor.js"),r=require("../store/useWeAppAuthStore.js"),t=new e.Request;t.setConfig((e=>(e.baseURL="https://weapp-api.linyikj.com.cn/api/",e.header={...e.header},e))),t.interceptors.request.use((r=>(r.header={...r.header,Authorization:"Bearer "+e.index.getStorageSync("NCHL_TEST_ACCESS_TOKEN_CUSTOMER")},r)),(e=>Promise.reject(e))),t.interceptors.response.use((t=>{const o=t.data;if(e.index.hideLoading(),!0!==o.success){if(10001===o.errorCode){r.useWeAppAuthStore().loading=!1,e.index.showToast({title:o.errorMessage,icon:"none"})}else e.index.showToast({title:o.errorMessage,icon:"none"});return Promise.reject(t.data)}return t.data}),(e=>{console.log("error",e);return r.useWeAppAuthStore().loading=!1,Promise.reject(e)})),exports.request=function(e,r){return t.post(e,r.data)}; diff --git a/dist/build/mp-weixin/common/store/useWeAppAuthStore.js b/dist/build/mp-weixin/common/store/useWeAppAuthStore.js index e6c5e18..d4468bb 100644 --- a/dist/build/mp-weixin/common/store/useWeAppAuthStore.js +++ b/dist/build/mp-weixin/common/store/useWeAppAuthStore.js @@ -1 +1 @@ -"use strict";const e=require("../vendor.js"),o=require("../../gen/Apis.js"),i=require("../libraries/setTabBar.js"),u=require("../libraries/apiLoading.js"),a="wx31500e871924b903",n=e.defineStore("we_app_auth",(()=>{const n=e.ref(!1),s=e.ref(!1),t=e.ref(0),l=e.ref({user:{id:0,name:""},work_info:{session_key:"",openid:""},selected_house:{},environment:"",house_occupant:!1,house_register:!1,is_house_exist:0,config:{}});const r=(u,t)=>{o.Apis.Login.Auth.Login({code:t,app_id:a}).then((o=>{var a,t,r,v,c,g;console.log("登录",null==o?void 0:o.data),l.value.user=null==(a=o.data)?void 0:a.user,l.value.selected_house=null==(t=o.data)?void 0:t.selected_house,l.value.config=null==(r=o.data)?void 0:r.config,i.setTabBar(null==(v=null==o?void 0:o.data)?void 0:v.config),e.index.setStorageSync("NCHL_PROD_ACCESS_TOKEN_CUSTOMER",null==(g=null==(c=null==o?void 0:o.data)?void 0:c.token)?void 0:g.token),l.value.user&&d(),setTimeout((()=>{n.value=!1,s.value=!1}),300),null==u||u.appContext.config.globalProperties.$isResolve()})).catch((()=>{n.value=!1,s.value=!0}))},d=()=>{o.Apis.Archive.HouseOccupants.GetCustomerHouseIsExist().then((e=>{var o,i;l.value.house_occupant=(null==(o=e.data)?void 0:o.house_occupant)||!1,l.value.house_register=(null==(i=e.data)?void 0:i.house_register)||!1,l.value.is_house_exist=t.value+1}))};function v(e){u.getApiLoading(o.Apis.Login.Auth.Me,{}).then((o=>{var u,a,t;return l.value.user=o.data.user,l.value.config=null==(u=o.data)?void 0:u.config,l.value.selected_house=null==(a=o.data)?void 0:a.selected_house,i.setTabBar(null==(t=null==o?void 0:o.data)?void 0:t.config),console.log("me",o.data),l.value.user&&d(),setTimeout((()=>{n.value=!1,s.value=!1}),300),null==e?void 0:e()}))}return{loading:n,hasError:s,data:l,login:function(o){e.index.login({provider:"weixin",success:function(e){console.log(e),r(o,e.code)}})},me:v,handleUserLogin:async i=>{u.getApiLoading(o.Apis.Login.Auth.BindPhoneNumber,{app_id:a,...i}).then((o=>{v((()=>{e.index.navigateBack({delta:1})}))}))},getIsHouseExist:d}}));exports.useWeAppAuthStore=n; +"use strict";const e=require("../vendor.js"),o=require("../../gen/Apis.js"),i=require("../libraries/setTabBar.js"),u=require("../libraries/apiLoading.js"),a="wx31500e871924b903",n=e.defineStore("we_app_auth",(()=>{const n=e.ref(!1),s=e.ref(!1),t=e.ref(0),l=e.ref({user:{id:0,name:""},work_info:{session_key:"",openid:""},selected_house:{},environment:"",house_occupant:!1,house_register:!1,is_house_exist:0,config:{}});const r=(u,t)=>{o.Apis.Login.Auth.Login({code:t,app_id:a}).then((o=>{var a,t,r,v,c,g;console.log("登录",null==o?void 0:o.data),l.value.user=null==(a=o.data)?void 0:a.user,l.value.selected_house=null==(t=o.data)?void 0:t.selected_house,l.value.config=null==(r=o.data)?void 0:r.config,i.setTabBar(null==(v=null==o?void 0:o.data)?void 0:v.config),e.index.setStorageSync("NCHL_TEST_ACCESS_TOKEN_CUSTOMER",null==(g=null==(c=null==o?void 0:o.data)?void 0:c.token)?void 0:g.token),l.value.user&&d(),setTimeout((()=>{n.value=!1,s.value=!1}),300),null==u||u.appContext.config.globalProperties.$isResolve()})).catch((()=>{n.value=!1,s.value=!0}))},d=()=>{o.Apis.Archive.HouseOccupants.GetCustomerHouseIsExist().then((e=>{var o,i;l.value.house_occupant=(null==(o=e.data)?void 0:o.house_occupant)||!1,l.value.house_register=(null==(i=e.data)?void 0:i.house_register)||!1,l.value.is_house_exist=t.value+1}))};function v(e){u.getApiLoading(o.Apis.Login.Auth.Me,{}).then((o=>{var u,a,t;return l.value.user=o.data.user,l.value.config=null==(u=o.data)?void 0:u.config,l.value.selected_house=null==(a=o.data)?void 0:a.selected_house,i.setTabBar(null==(t=null==o?void 0:o.data)?void 0:t.config),console.log("me",o.data),l.value.user&&d(),setTimeout((()=>{n.value=!1,s.value=!1}),300),null==e?void 0:e()}))}return{loading:n,hasError:s,data:l,login:function(o){e.index.login({provider:"weixin",success:function(e){console.log(e),r(o,e.code)}})},me:v,handleUserLogin:async i=>{u.getApiLoading(o.Apis.Login.Auth.BindPhoneNumber,{app_id:a,...i}).then((o=>{v((()=>{e.index.navigateBack({delta:1})}))}))},getIsHouseExist:d}}));exports.useWeAppAuthStore=n; diff --git a/dist/build/mp-weixin/common/vendor.js b/dist/build/mp-weixin/common/vendor.js index a737ae5..f4eee6e 100644 --- a/dist/build/mp-weixin/common/vendor.js +++ b/dist/build/mp-weixin/common/vendor.js @@ -4,4 +4,4 @@ * (c) 2023 Eduardo San Martin Morote * @license MIT */ -let ha;const ga=e=>ha=e,ma=Symbol();function ya(e){return e&&"object"==typeof e&&"[object Object]"===Object.prototype.toString.call(e)&&"function"!=typeof e.toJSON}var ba,va;(va=ba||(ba={})).direct="direct",va.patchObject="patch object",va.patchFunction="patch function";const xa="undefined"!=typeof window;function Aa(){const e=An(!0),t=e.run((()=>Ro({})));let n=[],o=[];const r=zo({install(e){ga(r),r._a=e,e.provide(ma,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});return r}const wa=()=>{};function Sa(e,t,n,o=wa){e.push(t);const r=()=>{const n=e.indexOf(t);n>-1&&(e.splice(n,1),o())};return!n&&wn()&&function(e){vn&&vn.cleanups.push(e)}(r),r}function Ba(e,...t){e.slice().forEach((e=>{e(...t)}))}function Ea(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];ya(r)&&ya(o)&&e.hasOwnProperty(n)&&!Uo(o)&&!To(o)?e[n]=Ea(r,o):e[n]=o}return e}const Ca=Symbol();const{assign:ka}=Object;function Oa(e,t,n,o){const{state:r,actions:i,getters:s}=t,a=n.state.value[e];let l;return l=ja(e,(function(){a||(n.state.value[e]=r?r():{});const t=function(e){const t=v(e)?new Array(e.length):{};for(const n in e)t[n]=Jo(e,n);return t}(n.state.value[e]);return ka(t,i,Object.keys(s||{}).reduce(((t,o)=>(t[o]=zo(Ti((()=>{ga(n);const t=n._s.get(e);return s[o].call(t,t)}))),t)),{}))}),t,n,o,!0),l}function ja(e,t,n={},o,r,i){let s;const a=ka({actions:{}},n),l={deep:!0};let c,u,p,f=zo([]),d=zo([]);const h=o.state.value[e];let g;function m(t){let n;c=u=!1,"function"==typeof t?(t(o.state.value[e]),n={type:ba.patchFunction,storeId:e,events:p}):(Ea(o.state.value[e],t),n={type:ba.patchObject,payload:t,storeId:e,events:p});const r=g=Symbol();cr().then((()=>{g===r&&(c=!0)})),u=!0,Ba(f,n,o.state.value[e])}i||h||(o.state.value[e]={}),Ro({});const y=i?function(){const{state:e}=n,t=e?e():{};this.$patch((e=>{ka(e,t)}))}:wa;function b(t,n){return function(){ga(o);const r=Array.from(arguments),i=[],s=[];let a;Ba(d,{args:r,name:t,store:v,after:function(e){i.push(e)},onError:function(e){s.push(e)}});try{a=n.apply(this&&this.$id===e?this:v,r)}catch(l){throw Ba(s,l),l}return a instanceof Promise?a.then((e=>(Ba(i,e),e))).catch((e=>(Ba(s,e),Promise.reject(e)))):(Ba(i,a),a)}}const v=jo({_p:o,$id:e,$onAction:Sa.bind(null,d),$patch:m,$reset:y,$subscribe(t,n={}){const r=Sa(f,t,n.detached,(()=>i())),i=s.run((()=>Br((()=>o.state.value[e]),(o=>{("sync"===n.flush?u:c)&&t({storeId:e,type:ba.direct,events:p},o)}),ka({},l,n))));return r},$dispose:function(){s.stop(),f=[],d=[],o._s.delete(e)}});o._s.set(e,v);const x=o._e.run((()=>(s=An(),s.run((()=>t())))));for(const S in x){const t=x[S];if(Uo(t)&&(!Uo(w=t)||!w.effect)||To(t))i||(!h||ya(A=t)&&A.hasOwnProperty(Ca)||(Uo(t)?t.value=h[S]:Ea(t,h[S])),o.state.value[e][S]=t);else if("function"==typeof t){const e=b(S,t);x[S]=e,a.actions[S]=t}}var A,w;return ka(v,x),ka(Mo(v),x),Object.defineProperty(v,"$state",{get:()=>o.state.value[e],set:e=>{m((t=>{ka(t,e)}))}}),o._p.forEach((e=>{ka(v,s.run((()=>e({store:v,app:o._a,pinia:o,options:a}))))})),h&&i&&n.hydrate&&n.hydrate(v.$state,h),c=!0,u=!0,v}function Pa(e,t,n){let o,r;const i="function"==typeof t;function s(e,n){const s=Bi();(e=e||s&&wr(ma,null))&&ga(e),(e=ha)._s.has(o)||(i?ja(o,t,r,e):Oa(o,r,e));return e._s.get(o)}return"string"==typeof e?(o=e,r=i?n:t):(r=e,o=e.id),s.$id=o,s}let Ia="Store";function Ta(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(){const n=e(this.$pinia),r=t[o];return"function"==typeof r?r.call(this,n):n[r]},n)),{})}const Qa=Ta;const Na=Object.freeze(Object.defineProperty({__proto__:null,get MutationType(){return ba},PiniaVuePlugin:function(e){e.mixin({beforeCreate(){const e=this.$options;if(e.pinia){const t=e.pinia;if(!this._provided){const e={};Object.defineProperty(this,"_provided",{get:()=>e,set:t=>Object.assign(e,t)})}this._provided[ma]=t,this.$pinia||(this.$pinia=t),t._a=this,xa&&ga(t)}else!this.$pinia&&e.parent&&e.parent.$pinia&&(this.$pinia=e.parent.$pinia)},destroyed(){delete this._pStores}})},acceptHMRUpdate:function(e,t){return()=>{}},createPinia:Aa,defineStore:Pa,getActivePinia:()=>Bi()&&wr(ma)||ha,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:Qa,mapState:Ta,mapStores:function(...e){return e.reduce(((e,t)=>(e[t.$id+Ia]=function(){return t(this.$pinia)},e)),{})},mapWritableState:function(e,t){return Array.isArray(t)?t.reduce(((t,n)=>(t[n]={get(){return e(this.$pinia)[n]},set(t){return e(this.$pinia)[n]=t}},t)),{}):Object.keys(t).reduce(((n,o)=>(n[o]={get(){return e(this.$pinia)[t[o]]},set(n){return e(this.$pinia)[t[o]]=n}},n)),{})},setActivePinia:ga,setMapStoreSuffix:function(e){Ia=e},skipHydrate:function(e){return Object.defineProperty(e,Ca,{})},storeToRefs:function(e){{e=Mo(e);const t={};for(const n in e){const o=e[n];(Uo(o)||To(o))&&(t[n]=Jo(e,n))}return t}}},Symbol.toStringTag,{value:"Module"}));function Ma(e){return/^[\+-]?(\d+\.?\d*|\.\d+|\d\.\d+e\+\d+)$/.test(e)}function za(e){switch(typeof e){case"undefined":return!0;case"string":if(0==e.replace(/(^[ \t\n\r]*)|([ \t\n\r]*$)/g,"").length)return!0;break;case"boolean":if(!e)return!0;break;case"number":if(0===e||isNaN(e))return!0;break;case"object":if(null===e||0===e.length)return!0;for(const t in e)return!1;return!0}return!1}function Fa(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===Object.prototype.toString.call(e)}function Da(e){return"[object Object]"===Object.prototype.toString.call(e)}function La(e){return"function"==typeof e}const Ha={email:function(e){return/^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/.test(e)},mobile:function(e){return/^1[23456789]\d{9}$/.test(e)},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){if(!e)return!1;if("number"==typeof e)return(10===e.toString().length||13===e.toString().length)&&!isNaN(new Date(e).getTime());if("string"==typeof e){const t=Number(e);if(!isNaN(t)&&(10===t.toString().length||13===t.toString().length))return!isNaN(new Date(t).getTime());if(e.length<10||e.length>19)return!1;if(!/^\d{4}[-\/]\d{2}[-\/]\d{2}( \d{1,2}:\d{2}(:\d{2})?)?$/.test(e))return!1;const n=new Date(e);return!isNaN(n.getTime())}return!1},dateISO:function(e){return/^\d{4}[\/\-](0?[1-9]|1[012])[\/\-](0?[1-9]|[12][0-9]|3[01])$/.test(e)},number:Ma,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)},carNo:function(e){const t=/^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-Z]{1}(([0-9]{5}[DF]$)|([DF][A-HJ-NP-Z0-9][0-9]{4}$))/,n=/^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-Z]{1}[A-HJ-NP-Z0-9]{4}[A-HJ-NP-Z0-9挂学警港澳]{1}$/;return 7===e.length?n.test(e):8===e.length&&t.test(e)},amount:function(e){return/^[1-9]\d*(,\d{3})*(\.\d{1,2})?$|^0\.\d{1,2}$/.test(e)},chinese:function(e){return/^[\u4e00-\u9fa5]+$/gi.test(e)},letter:function(e){return/^[a-zA-Z]*$/.test(e)},enOrNum:function(e){return/^[0-9a-zA-Z]*$/g.test(e)},contains:function(e,t){return e.indexOf(t)>=0},range:function(e,t){return e>=t[0]&&e<=t[1]},rangeLength:function(e,t){return e.length>=t[0]&&e.length<=t[1]},empty:za,isEmpty:za,jsonString:function(e){if("string"==typeof e)try{const t=JSON.parse(e);return!("object"!=typeof t||!t)}catch(t){return!1}return!1},landline:function(e){return/^\d{3,4}-\d{7,8}(-\d{3,4})?$/.test(e)},object:Da,array:Fa,code:function(e,t=6){return new RegExp(`^\\d{${t}}$`).test(e)},func:La,promise:function(e){return Da(e)&&La(e.then)&&La(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){const t=e.split("?")[0];return/\.(jpeg|jpg|gif|png|svg|webp|jfif|bmp|dpg)/i.test(t)},regExp:function(e){return e&&"[object RegExp]"===Object.prototype.toString.call(e)},string:function(e){return"string"==typeof e}};function Ua(e,t=15){return+parseFloat(Number(e).toPrecision(t))}function Ra(e){const t=e.toString().split(/[eE]/),n=(t[0].split(".")[1]||"").length-+(t[1]||0);return n>0?n:0}function Va(e){if(-1===e.toString().indexOf("e"))return Number(e.toString().replace(".",""));const t=Ra(e);return t>0?Ua(Number(e)*Math.pow(10,t)):Number(e)}function qa(e){(e>Number.MAX_SAFE_INTEGER||e{i=t(i,e)})),i}function $a(...e){if(e.length>2)return Wa(e,$a);const[t,n]=e,o=Va(t),r=Va(n),i=Ra(t)+Ra(n),s=o*r;return qa(s),s/Math.pow(10,i)}function Ya(...e){if(e.length>2)return Wa(e,Ya);const[t,n]=e,o=Va(t),r=Va(n);return qa(o),qa(r),$a(o/r,Ua(Math.pow(10,Ra(n)-Ra(t))))}const Ja={v:"3",version:"3",type:["primary","success","info","error","warning"],color:{"u-primary":"#2979ff","u-warning":"#ff9900","u-success":"#19be6b","u-error":"#fa3534","u-info":"#909399","u-main-color":"#303133","u-content-color":"#606266","u-tips-color":"#909399","u-light-color":"#c0c4cc","up-primary":"#2979ff","up-warning":"#ff9900","up-success":"#19be6b","up-error":"#fa3534","up-info":"#909399","up-main-color":"#303133","up-content-color":"#606266","up-tips-color":"#909399","up-light-color":"#c0c4cc"},unit:"px"};function Xa(e,t=!1){return Ma(e)?t?`${e}px`:Number(e):/(rpx|upx)$/.test(e)?t?`${bn.upx2px(parseInt(e))}px`:Number(bn.upx2px(parseInt(e))):t?`${parseInt(e)}px`:parseInt(e)}function _a(e=30){return new Promise((t=>{setTimeout((()=>{t()}),e)}))}function Ka(){let e={};return e=bn.getWindowInfo(),e}function Ga(e,t){if(e>=0&&t>0&&t>=e){const n=t-e+1;return Math.floor(Math.random()*n+e)}return 0}function Za(e=void 0){let t=this.$parent;for(;t;){if(e=e.replace(/up-([a-zA-Z0-9-_]+)/g,"u-$1"),!t.$options||t.$options.name===e)return t;t=t.$parent}return!1}function el(e,t="object"){if(za(e)||"object"==typeof e&&"object"===t||"string"===t&&"string"==typeof e)return e;if("object"===t){const t=(e=al(e)).split(";"),n={};for(let e=0;e{const o=t.replace(/([A-Z])/g,"-$1").toLowerCase();n+=`${o}:${e};`})),al(n)}function tl(e="auto",t=""){return t||(t=Ja.unit||"px"),"rpx"==t&&Ma(String(e))&&(e*=2),Ma(e=String(e))?`${e}${t}`:e}function nl(e){if([null,void 0,NaN,!1].includes(e))return e;if("object"!=typeof e&&"function"!=typeof e)return e;const t=Fa(e)?[]:{};for(const n in e)e.hasOwnProperty(n)&&(t[n]="object"==typeof e[n]?nl(e[n]):e[n]);return t}function ol(e={},t={}){let n=nl(e);if("object"!=typeof n||"object"!=typeof t)return!1;for(const o in t)t.hasOwnProperty(o)&&(o in n?null==t[o]||"object"!=typeof n[o]||"object"!=typeof t[o]?n[o]=t[o]:n[o].concat&&t[o].concat?n[o]=n[o].concat(t[o]):n[o]=ol(n[o],t[o]):n[o]=t[o]);return n}function rl(e){}function il(e=[]){return e.sort((()=>Math.random()-.5))}function sl(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={y:n.getFullYear().toString(),m:(n.getMonth()+1).toString().padStart(2,"0"),d:n.getDate().toString().padStart(2,"0"),h:n.getHours().toString().padStart(2,"0"),M:n.getMinutes().toString().padStart(2,"0"),s:n.getSeconds().toString().padStart(2,"0")};for(const r in o){const[e]=new RegExp(`${r}+`).exec(t)||[];if(e){const n="y"===r&&2===e.length?2:0;t=t.replace(e,o[r].slice(n))}}return t}function al(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}function ll(e={},t=!0,n="brackets"){const o=t?"?":"",r=[];-1==["indices","brackets","repeat","comma"].indexOf(n)&&(n="brackets");for(const i in e){const t=e[i];if(!(["",void 0,null].indexOf(t)>=0))if(t.constructor===Array)switch(n){case"indices":for(let n=0;n{r.push(`${i}[]=${e}`)}));break;case"repeat":t.forEach((e=>{r.push(`${i}=${e}`)}));break;case"comma":let e="";t.forEach((t=>{e+=(e?",":"")+t})),r.push(`${i}=${e}`)}else r.push(`${i}=${t}`)}return r.length?o+r.join("&"):""}function cl(e,t=2e3){bn.showToast({title:String(e),icon:"none",duration:t})}function ul(e,t=0,n=".",o=","){e=`${e}`.replace(/[^0-9+-Ee.]/g,"");const r=isFinite(+e)?+e:0,i=isFinite(+t)?Math.abs(t):0,s=void 0===o?",":o,a=void 0===n?".":n;let l="";l=(i?function(e,t){const n=Math.pow(10,t);let o=Ya(Math.round(Math.abs($a(e,n))),n);return e<0&&0!==o&&(o=$a(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${s}$2`);return(l[1]||"").length{}),t)}function fl(){const e=getCurrentPages();return`/${e[e.length-1].route||""}`}String.prototype.padStart||(String.prototype.padStart=function(e,t=" "){if("[object String]"!==Object.prototype.toString.call(t))throw new TypeError("fillString must be String");const n=this;if(n.length>=e)return String(n);const o=e-n.length;let r=Math.ceil(o/t.length);for(;r>>=1;)t+=t,1===r&&(t+=t);return t.slice(0,o)+n});const dl={range:function(e=0,t=0,n=0){return Math.max(e,Math.min(t,Number(n)))},getPx:Xa,sleep:_a,os:function(){return bn.getDeviceInfo().platform.toLowerCase()},sys:function(){return bn.getSystemInfoSync()},getWindowInfo:Ka,random:Ga,guid:function(e=32,t=!0,n=null){const o="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split(""),r=[];if(n=n||o.length,e)for(let i=0;i=300&&n<3600:o=`${parseInt(n/60)}分钟前`;break;case n>=3600&&n<86400:o=`${parseInt(n/3600)}小时前`;break;case n>=86400&&n<2592e3:o=`${parseInt(n/86400)}天前`;break;default:o=!1===t?n>=2592e3&&n<31536e3?`${parseInt(n/2592e3)}个月前`:`${parseInt(n/31536e3)}年前`:sl(e,t)}return o},trim:al,queryParams:ll,toast:cl,type2icon:function(e="success",t=!1){-1==["primary","info","error","warning","success"].indexOf(e)&&(e="success");let n="";switch(e){case"primary":case"info":n="info-circle";break;case"error":n="close-circle";break;case"warning":n="error-circle";break;default:n="checkmark-circle"}return t&&(n+="-fill"),n},priceFormat:ul,getDuration:function(e,t=!0){const n=parseInt(e);return t?/s$/.test(e)?e:e>30?`${e}ms`:`${e}s`:/ms$/.test(e)?n:/s$/.test(e)?n>30?n:1e3*n:n},padZero:function(e){return`00${e}`.slice(-2)},formValidate:pl,getProperty:function(e,t){if("object"!=typeof e||null==e)return"";if("string"!=typeof t||""===t)return"";if(-1!==t.indexOf(".")){const n=t.split(".");let o=e[n[0]]||{};for(let e=1;e1;){const r=t[0];e[r]&&"object"==typeof e[r]||(e[r]={}),t.shift(),o(e[r],t,n)}else e[t[0]]=n};if("string"!=typeof t||""===t);else if(-1!==t.indexOf(".")){const r=t.split(".");o(e,r,n)}else e[t]=n},page:fl,pages:function(){return getCurrentPages()},getValueByPath:function(e,t){return t.split(".").reduce(((e,t)=>e&&void 0!==e[t]?e[t]:void 0),e)}};const hl=(new class{constructor(){this.config={type:"navigateTo",url:"",delta:1,params:{},animationType:"pop-in",animationDuration:300,intercept:!1},this.route=this.route.bind(this)}addRootPath(e){return"/"===e[0]?e:`/${e}`}mixinParam(e,t){e=e&&this.addRootPath(e);let n="";return/.*\/.*\?.*=.*/.test(e)?(n=ll(t,!1),e+`&${n}`):(n=ll(t),e+n)}async route(e={},t={}){let n={};if("string"==typeof e?(n.url=this.mixinParam(e,t),n.type="navigateTo"):(n=ol(this.config,e),n.url=this.mixinParam(e.url,e.params)),n.url!==fl())if(t.intercept&&(this.config.intercept=t.intercept),n.params=t,n=ol(this.config,n),"function"==typeof bn.$u.routeIntercept){await new Promise(((e,t)=>{bn.$u.routeIntercept(n,e)}))&&this.openPage(n)}else this.openPage(n)}openPage(e){const{url:t,type:n,delta:o,animationType:r,animationDuration:i}=e;"navigateTo"!=e.type&&"to"!=e.type||bn.navigateTo({url:t,animationType:r,animationDuration:i}),"redirectTo"!=e.type&&"redirect"!=e.type||bn.redirectTo({url:t}),"switchTab"!=e.type&&"tab"!=e.type||bn.switchTab({url:t}),"reLaunch"!=e.type&&"launch"!=e.type||bn.reLaunch({url:t}),"navigateBack"!=e.type&&"back"!=e.type||bn.navigateBack({delta:o})}}).route,gl={props:{customStyle:{type:[Object,String],default:()=>({})},customClass:{type:String,default:""},url:{type:String,default:""},linkType:{type:String,default:"navigateTo"}},data:()=>({}),onLoad(){this.$u.getRect=this.$uGetRect},created(){this.$u.getRect=this.$uGetRect},computed:{$u:()=>ol(bn.$u,{props:void 0,http:void 0,mixin:void 0}),bem:()=>function(e,t,n){const o=`u-${e}--`,r={};return t&&t.map((e=>{r[o+this[e]]=!0})),n&&n.map((e=>{this[e]?r[o+e]=this[e]:delete r[o+e]})),Object.keys(r)}},methods:{openPage(e="url"){const t=this[e];t&&hl({type:this.linkType,url:t})},navTo(e="",t="navigateTo"){hl({type:this.linkType,url:e})},$uGetRect(e,t){return new Promise((n=>{bn.createSelectorQuery().in(this)[t?"selectAll":"select"](e).boundingClientRect((e=>{t&&Array.isArray(e)&&e.length&&n(e),!t&&e&&n(e)})).exec()}))},getParentData(e=""){this.parent||(this.parent={}),this.parent=Za.call(this,e),this.parent.children&&-1===this.parent.children.indexOf(this)&&this.parent.children.push(this),this.parent&&this.parentData&&Object.keys(this.parentData).map((e=>{this.parentData[e]=this.parent[e]}))},preventEvent(e){e&&"function"==typeof e.stopPropagation&&e.stopPropagation()},noop(e){this.preventEvent(e)}},onReachBottom(){bn.$emit("uOnReachBottom")},beforeUnmount(){if(this.parent&&Ha.array(this.parent.children)){const e=this.parent.children;e.map(((t,n)=>{t===this&&e.splice(n,1)}))}}},ml={options:{virtualHost:!0}},{toString:yl}=Object.prototype;function bl(e){return"[object Array]"===yl.call(e)}function vl(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),bl(e))for(let n=0,o=e.length;n{null!=t&&(bl(t)?n=`${n}[]`:t=[t],vl(t,(t=>{!function(e){return"[object Date]"===yl.call(e)}(t)?function(e){return null!==e&&"object"==typeof e}(t)&&(t=JSON.stringify(t)):t=t.toISOString(),e.push(`${wl(n)}=${wl(t)}`)})))})),n=e.join("&")}var o;if(n){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+n}return e}const Bl=(e,t)=>{const n={};return e.forEach((e=>{Al(t[e])||(n[e]=t[e])})),n},El=e=>(e=>new Promise(((t,n)=>{const o=Sl((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;const s={url:o,header:e.header,complete:r=>{e.fullPath=o,r.config=e;try{"string"==typeof r.data&&(r.data=JSON.parse(r.data))}catch(i){}!function(e,t,n){const{validateStatus:o}=n.config,r=n.statusCode;!r||o&&!o(r)?t(n):e(n)}(t,n,r)}};let a;if("UPLOAD"===e.method){delete s.header["content-type"],delete s.header["Content-Type"];const t={filePath:e.filePath,name:e.name},n=["formData"];a=bn.uploadFile({...s,...t,...Bl(n,e)})}else if("DOWNLOAD"===e.method)a=bn.downloadFile(s);else{const t=["data","method","timeout","dataType","responseType"];a=bn.request({...s,...Bl(t,e)})}e.getTask&&e.getTask(a,e)})))(e);function Cl(){this.handlers=[]}Cl.prototype.use=function(e,t){return this.handlers.push({fulfilled:e,rejected:t}),this.handlers.length-1},Cl.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},Cl.prototype.forEach=function(e){this.handlers.forEach((t=>{null!==t&&e(t)}))};const kl=(e,t,n)=>{const o={};return e.forEach((e=>{Al(n[e])?Al(t[e])||(o[e]=t[e]):o[e]=n[e]})),o},Ol={baseURL:"",header:{},method:"GET",dataType:"json",responseType:"text",custom:{},timeout:6e4,validateStatus:function(e){return e>=200&&e<300}};var jl=function(){function e(e,t){return null!=t&&e instanceof t}var t,n,o;try{t=Map}catch(a){t=function(){}}try{n=Set}catch(a){n=function(){}}try{o=Promise}catch(a){o=function(){}}function r(i,a,l,c,u){"object"==typeof a&&(l=a.depth,c=a.prototype,u=a.includeNonEnumerable,a=a.circular);var p=[],f=[],d="undefined"!=typeof Buffer;return void 0===a&&(a=!0),void 0===l&&(l=1/0),function i(l,h){if(null===l)return null;if(0===h)return l;var g,m;if("object"!=typeof l)return l;if(e(l,t))g=new t;else if(e(l,n))g=new n;else if(e(l,o))g=new o((function(e,t){l.then((function(t){e(i(t,h-1))}),(function(e){t(i(e,h-1))}))}));else if(r.__isArray(l))g=[];else if(r.__isRegExp(l))g=new RegExp(l.source,s(l)),l.lastIndex&&(g.lastIndex=l.lastIndex);else if(r.__isDate(l))g=new Date(l.getTime());else{if(d&&Buffer.isBuffer(l))return Buffer.from?g=Buffer.from(l):(g=new Buffer(l.length),l.copy(g)),g;e(l,Error)?g=Object.create(l):void 0===c?(m=Object.getPrototypeOf(l),g=Object.create(m)):(g=Object.create(c),m=c)}if(a){var y=p.indexOf(l);if(-1!=y)return f[y];p.push(l),f.push(g)}for(var b in e(l,t)&&l.forEach((function(e,t){var n=i(t,h-1),o=i(e,h-1);g.set(n,o)})),e(l,n)&&l.forEach((function(e){var t=i(e,h-1);g.add(t)})),l){Object.getOwnPropertyDescriptor(l,b)&&(g[b]=i(l[b],h-1));try{if("undefined"===Object.getOwnPropertyDescriptor(l,b).set)continue;g[b]=i(l[b],h-1)}catch(B){if(B instanceof TypeError)continue;if(B instanceof ReferenceError)continue}}if(Object.getOwnPropertySymbols){var v=Object.getOwnPropertySymbols(l);for(b=0;bNumber(e)))}return e}function Tl(e){const t=e;if(/^(rgb|RGB)/.test(t)){const e=t.replace(/(?:\(|\)|rgb|RGB)*/g,"").split(",");let n="#";for(let t=0;t{const n=t.method||e.method||"GET";let o={baseURL:e.baseURL||"",method:n,url:t.url||"",params:t.params||{},custom:{...e.custom||{},...t.custom||{}},header:xl(e.header||{},t.header||{})};if(o={...o,...kl(["getTask","validateStatus"],e,t)},"DOWNLOAD"===n);else if("UPLOAD"===n)delete o.header["content-type"],delete o.header["Content-Type"],["filePath","name","formData"].forEach((e=>{Al(t[e])||(o[e]=t[e])}));else{const n=["data","timeout","dataType","responseType"];o={...o,...kl(n,e,t)}}return o})(this.config,e);const t=[El,void 0];let n=Promise.resolve(e);for(this.interceptors.request.forEach((e=>{t.unshift(e.fulfilled,e.rejected)})),this.interceptors.response.forEach((e=>{t.push(e.fulfilled,e.rejected)}));t.length;)n=n.then(t.shift(),t.shift());return n}request(e={}){return this.middleware(e)}get(e,t={}){return this.middleware({url:e,method:"GET",...t})}post(e,t,n={}){return this.middleware({url:e,data:t,method:"POST",...n})}put(e,t,n={}){return this.middleware({url:e,data:t,method:"PUT",...n})}delete(e,t,n={}){return this.middleware({url:e,data:t,method:"DELETE",...n})}connect(e,t,n={}){return this.middleware({url:e,data:t,method:"CONNECT",...n})}head(e,t,n={}){return this.middleware({url:e,data:t,method:"HEAD",...n})}options(e,t,n={}){return this.middleware({url:e,data:t,method:"OPTIONS",...n})}trace(e,t,n={}){return this.middleware({url:e,data:t,method:"TRACE",...n})}upload(e,t={}){return t.url=e,t.method="UPLOAD",this.middleware(t)}download(e,t={}){return t.url=e,t.method="DOWNLOAD",this.middleware(t)}};dl.setConfig=function(e){dl.shallowMerge(Ja,e.config||{}),dl.shallowMerge(Wl,e.props||{}),dl.shallowMerge(ql,e.color||{}),dl.shallowMerge($l,e.zIndex||{})};const Xl={route:hl,date:dl.timeFormat,colorGradient:Ql.colorGradient,hexToRgb:Ql.hexToRgb,rgbToHex:Ql.rgbToHex,colorToRgba:Ql.colorToRgba,test:Ha,type:["primary","success","error","warning","info"],http:Jl,config:Ja,zIndex:$l,debounce:function(e,t=500,n=!1){if(null!==Ml&&clearTimeout(Ml),n){const n=!Ml;Ml=setTimeout((()=>{Ml=null}),t),n&&"function"==typeof e&&e()}else Ml=setTimeout((()=>{"function"==typeof e&&e()}),t)},throttle:function(e,t=500,n=!0){n?Nl||(Nl=!0,"function"==typeof e&&e(),setTimeout((()=>{Nl=!1}),t)):Nl||(Nl=!0,setTimeout((()=>{Nl=!1,"function"==typeof e&&e()}),t))},mixin:gl,mpMixin:ml,props:Wl,...dl,color:ql,platform:"weixin"},_l={install:e=>{bn.$u=Xl,e.config.globalProperties.$u=Xl,e.mixin(gl)}},Kl=e=>(t,n=Bi())=>{!Oi&&Qr(e,t,n)},Gl=Kl(R),Zl=Kl(V),ec=Kl(q),tc=Kl(X),nc=Kl(K),oc=Kl(ne),rc=Kl(re),ic=Kl(se),sc=Kl(le);var ac=Object.prototype.toString;function lc(e){return"[object Array]"===ac.call(e)}function cc(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),lc(e))for(var n=0,o=e.length;n{let n={};return e.forEach((e=>{pc(t[e])||(n[e]=t[e])})),n},gc=e=>(e=>new Promise(((t,n)=>{let o=dc((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,e.paramsSerializer);var r,i;const s={url:o,header:e.header,complete:r=>{e.fullPath=o,r.config=e,r.rawData=r.data;try{let t=!1;const n=typeof e.forcedJSONParsing;"boolean"===n?t=e.forcedJSONParsing:"object"===n&&(t=(e.forcedJSONParsing.include||[]).includes(e.method)),t&&"string"==typeof r.data&&(r.data=JSON.parse(r.data))}catch(i){}!function(e,t,n){const o=n.config.validateStatus,r=n.statusCode;!r||o&&!o(r)?t(n):e(n)}(t,n,r)}};let a;if("UPLOAD"===e.method){delete s.header["content-type"],delete s.header["Content-Type"];let t={filePath:e.filePath,name:e.name};const n=["timeout","formData"];a=bn.uploadFile({...s,...t,...hc(n,e)})}else if("DOWNLOAD"===e.method){const t=["timeout","filePath"];a=bn.downloadFile({...s,...hc(t,e)})}else{const t=["data","method","timeout","dataType","responseType","enableHttp2","enableQuic","enableCache","enableHttpDNS","httpDNSServiceId","enableChunked","forceCellularNetwork"];a=bn.request({...s,...hc(t,e)})}e.getTask&&e.getTask(a,e)})))(e);function mc(){this.handlers=[]}mc.prototype.use=function(e,t){return this.handlers.push({fulfilled:e,rejected:t}),this.handlers.length-1},mc.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},mc.prototype.forEach=function(e){this.handlers.forEach((t=>{null!==t&&e(t)}))};const yc=(e,t,n)=>{let o={};return e.forEach((e=>{pc(n[e])?pc(t[e])||(o[e]=t[e]):o[e]=n[e]})),o},bc={baseURL:"",header:{},method:"GET",dataType:"json",paramsSerializer:null,responseType:"text",custom:{},timeout:6e4,validateStatus:function(e){return e>=200&&e<300},forcedJSONParsing:!0};var vc=function(){function e(e,t){return null!=t&&e instanceof t}var t,n,o;try{t=Map}catch(a){t=function(){}}try{n=Set}catch(a){n=function(){}}try{o=Promise}catch(a){o=function(){}}function r(i,a,l,c,u){"object"==typeof a&&(l=a.depth,c=a.prototype,u=a.includeNonEnumerable,a=a.circular);var p=[],f=[],d="undefined"!=typeof Buffer;return void 0===a&&(a=!0),void 0===l&&(l=1/0),function i(l,h){if(null===l)return null;if(0===h)return l;var g,m;if("object"!=typeof l)return l;if(e(l,t))g=new t;else if(e(l,n))g=new n;else if(e(l,o))g=new o((function(e,t){l.then((function(t){e(i(t,h-1))}),(function(e){t(i(e,h-1))}))}));else if(r.__isArray(l))g=[];else if(r.__isRegExp(l))g=new RegExp(l.source,s(l)),l.lastIndex&&(g.lastIndex=l.lastIndex);else if(r.__isDate(l))g=new Date(l.getTime());else{if(d&&Buffer.isBuffer(l))return Buffer.from?g=Buffer.from(l):(g=new Buffer(l.length),l.copy(g)),g;e(l,Error)?g=Object.create(l):void 0===c?(m=Object.getPrototypeOf(l),g=Object.create(m)):(g=Object.create(c),m=c)}if(a){var y=p.indexOf(l);if(-1!=y)return f[y];p.push(l),f.push(g)}for(var b in e(l,t)&&l.forEach((function(e,t){var n=i(t,h-1),o=i(e,h-1);g.set(n,o)})),e(l,n)&&l.forEach((function(e){var t=i(e,h-1);g.add(t)})),l){Object.getOwnPropertyDescriptor(l,b)&&(g[b]=i(l[b],h-1));try{if("undefined"===Object.getOwnPropertyDescriptor(l,b).set)continue;g[b]=i(l[b],h-1)}catch(B){if(B instanceof TypeError)continue;if(B instanceof ReferenceError)continue}}if(Object.getOwnPropertySymbols){var v=Object.getOwnPropertySymbols(l);for(b=0;b=t?e:""+Array(t+1-o.length).join(n)+e},b={s:y,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),o=Math.floor(n/60),r=n%60;return(t<=0?"+":"-")+y(o,2,"0")+":"+y(r,2,"0")},m:function e(t,n){if(t.date()1)return e(s[0])}else{var a=t.name;x[a]=t,r=a}return!o&&r&&(v=r),r||!o&&v},B=function(e,t){if(w(e))return e.clone();var n="object"==typeof t?t:{};return n.date=e,n.args=arguments,new C(n)},E=b;E.l=S,E.i=w,E.w=function(e,t){return B(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var C=function(){function m(e){this.$L=S(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[A]=!0}var y=m.prototype;return y.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(null===t)return new Date(NaN);if(E.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var o=t.match(h);if(o){var r=o[2]-1||0,i=(o[7]||"0").substring(0,3);return n?new Date(Date.UTC(o[1],r,o[3]||1,o[4]||0,o[5]||0,o[6]||0,i)):new Date(o[1],r,o[3]||1,o[4]||0,o[5]||0,o[6]||0,i)}}return new Date(t)}(e),this.init()},y.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()},y.$utils=function(){return E},y.isValid=function(){return!(this.$d.toString()===d)},y.isSame=function(e,t){var n=B(e);return this.startOf(t)<=n&&n<=this.endOf(t)},y.isAfter=function(e,t){return B(e)0,m<=g.r||!g.r){m<=1&&h>0&&(g=f[h-1]);var y=p[g.l];a&&(m=a(""+m)),c="string"==typeof y?y.replace("%d",m):y(m,o,g.l,u);break}}if(o)return c;var b=u?p.future:p.past;return"function"==typeof b?b(c):b.replace("%s",c)},o.to=function(e,t){return i(e,t,this,!0)},o.from=function(e,t){return i(e,t,this)};var s=function(e){return e.$u?n.utc():n()};o.toNow=function(e){return this.to(s(this),e)},o.fromNow=function(e){return this.from(s(this),e)}};const Sc=wc;var Bc={};({get exports(){return Bc},set exports(e){Bc=e}}).exports=function(e){function t(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var n=t(e),o={name:"zh-cn",weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"周日_周一_周二_周三_周四_周五_周六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),ordinal:function(e,t){return"W"===t?e+"周":e+"日"},weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日Ah点mm分",LLLL:"YYYY年M月D日ddddAh点mm分",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},relativeTime:{future:"%s内",past:"%s前",s:"几秒",m:"1 分钟",mm:"%d 分钟",h:"1 小时",hh:"%d 小时",d:"1 天",dd:"%d 天",M:"1 个月",MM:"%d 个月",y:"1 年",yy:"%d 年"},meridiem:function(e,t){var n=100*e+t;return n<600?"凌晨":n<900?"早上":n<1100?"上午":n<1300?"中午":n<1800?"下午":"晚上"}};return n.default.locale(o,null,!0),o}(xc);const Ec={props:{name:{type:String,default:()=>Wl.icon.name},color:{type:String,default:()=>Wl.icon.color},size:{type:[String,Number],default:()=>Wl.icon.size},bold:{type:Boolean,default:()=>Wl.icon.bold},index:{type:[String,Number],default:()=>Wl.icon.index},hoverClass:{type:String,default:()=>Wl.icon.hoverClass},customPrefix:{type:String,default:()=>Wl.icon.customPrefix},label:{type:[String,Number],default:()=>Wl.icon.label},labelPos:{type:String,default:()=>Wl.icon.labelPos},labelSize:{type:[String,Number],default:()=>Wl.icon.labelSize},labelColor:{type:String,default:()=>Wl.icon.labelColor},space:{type:[String,Number],default:()=>Wl.icon.space},imgMode:{type:String,default:()=>Wl.icon.imgMode},width:{type:[String,Number],default:()=>Wl.icon.width},height:{type:[String,Number],default:()=>Wl.icon.height},top:{type:[String,Number],default:()=>Wl.icon.top},stop:{type:Boolean,default:()=>Wl.icon.stop}}},Cc={trustTags:Tc("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:Tc("address,article,aside,body,caption,center,cite,footer,header,html,nav,pre,section"),inlineTags:Tc("abbr,b,big,code,del,em,i,ins,label,q,small,span,strong,sub,sup"),ignoreTags:Tc("area,base,canvas,embed,frame,head,iframe,input,link,map,meta,param,rp,script,source,style,textarea,title,track,wbr"),voidTags:Tc("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"}},kc={},{windowWidth:Oc}=bn.getWindowInfo(),{system:jc}=bn.getDeviceInfo(),Pc=Tc(" ,\r,\n,\t,\f");let Ic=0;function Tc(e){const t=Object.create(null),n=e.split(",");for(let o=n.length;o--;)t[n[o]]=!0;return t}function Qc(e,t){let n=e.indexOf("&");for(;-1!==n;){const o=e.indexOf(";",n+3);let r;if(-1===o)break;"#"===e[n+1]?(r=parseInt(("x"===e[n+2]?"0":"")+e.substring(n+2,o)),isNaN(r)||(e=e.substr(0,n)+String.fromCharCode(r)+e.substr(o+1))):(r=e.substring(n+1,o),(Cc.entities[r]||"amp"===r&&t)&&(e=e.substr(0,n)+(Cc.entities[r]||"&")+e.substr(o+1))),n=e.indexOf("&",n+1)}return e}function Nc(e){let t=e.length-1;for(let n=t;n>=-1;n--)(-1===n||e[n].c||!e[n].name||"div"!==e[n].name&&"p"!==e[n].name&&"h"!==e[n].name[0]||(e[n].attrs.style||"").includes("inline"))&&(t-n>=5&&e.splice(n+1,t-n,{name:"div",attrs:{},children:e.slice(n+1,t+1)}),t=n-1)}function Mc(e){this.options=e||{},this.tagStyle=Object.assign({},Cc.tagStyle,this.options.tagStyle),this.imgList=e.imgList||[],this.imgList._unloadimgs=0,this.plugins=e.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 zc(e){this.handler=e}Mc.prototype.parse=function(e){for(let t=this.plugins.length;t--;)this.plugins[t].onUpdate&&(e=this.plugins[t].onUpdate(e,Cc)||e);for(new zc(this).parse(e);this.stack.length;)this.popNode();return this.nodes.length>50&&Nc(this.nodes),this.nodes},Mc.prototype.expose=function(){for(let e=this.stack.length;e--;){const t=this.stack[e];if(t.c||"a"===t.name||"video"===t.name||"audio"===t.name)return;t.c=1}},Mc.prototype.hook=function(e){for(let t=this.plugins.length;t--;)if(this.plugins[t].onParse&&!1===this.plugins[t].onParse(e,this))return!1;return!0},Mc.prototype.getUrl=function(e){const t=this.options.domain;return"/"===e[0]?"/"===e[1]?e=(t?t.split("://")[0]:"http")+":"+e:t&&(e=t+e):e.includes("data:")||e.includes("://")||t&&(e=t+"/"+e),e},Mc.prototype.parseStyle=function(e){const t=e.attrs,n=(this.tagStyle[e.name]||"").split(";").concat((t.style||"").split(";")),o={};let r="";t.id&&!this.xml&&(this.options.useAnchor?this.expose():"img"!==e.name&&"a"!==e.name&&"video"!==e.name&&"audio"!==e.name&&(t.id=void 0)),t.width&&(o.width=parseFloat(t.width)+(t.width.includes("%")?"%":"px"),t.width=void 0),t.height&&(o.height=parseFloat(t.height)+(t.height.includes("%")?"%":"px"),t.height=void 0);for(let i=0,s=n.length;i0||s.includes("safe"))r+=`;${t}:${s}`;else if(!o[t]||s.includes("import")||!o[t].includes("import")){if(s.includes("url")){let e=s.indexOf("(")+1;if(e){for(;'"'===s[e]||"'"===s[e]||Pc[s[e]];)e++;s=s.substr(0,e)+this.getUrl(s.substr(e))}}else s.includes("rpx")&&(s=s.replace(/[0-9.]+\s*rpx/g,(e=>parseFloat(e)*Oc/750+"px")));o[t]=s}}return e.attrs.style=r,o},Mc.prototype.onTagName=function(e){this.tagName=this.xml?e:e.toLowerCase(),"svg"===this.tagName&&(this.xml=(this.xml||0)+1)},Mc.prototype.onAttrName=function(e){"data-"===(e=this.xml?e:e.toLowerCase()).substr(0,5)?"data-src"!==e||this.attrs.src?"img"===this.tagName||"a"===this.tagName?this.attrName=e:this.attrName=void 0:this.attrName="src":(this.attrName=e,this.attrs[e]="T")},Mc.prototype.onAttrVal=function(e){const t=this.attrName||"";"style"===t||"href"===t?this.attrs[t]=Qc(e,!0):t.includes("src")?this.attrs[t]=this.getUrl(Qc(e,!0)):t&&(this.attrs[t]=e)},Mc.prototype.onOpenTag=function(e){const t=Object.create(null);t.name=this.tagName,t.attrs=this.attrs,this.options.nodes.length&&(t.type="node"),this.attrs=Object.create(null);const n=t.attrs,o=this.stack[this.stack.length-1],r=o?o.children:this.nodes,i=this.xml?e:Cc.voidTags[t.name];if(kc[t.name]&&(n.class=kc[t.name]+(n.class?" "+n.class:"")),"embed"===t.name){const e=n.src||"";e.includes(".mp4")||e.includes(".3gp")||e.includes(".m3u8")||(n.type||"").includes("video")?t.name="video":(e.includes(".mp3")||e.includes(".wav")||e.includes(".aac")||e.includes(".m4a")||(n.type||"").includes("audio"))&&(t.name="audio"),n.autostart&&(n.autoplay="T"),n.controls="T"}if("video"!==t.name&&"audio"!==t.name||("video"!==t.name||n.id||(n.id="v"+Ic++),n.controls||n.autoplay||(n.controls="T"),t.src=[],n.src&&(t.src.push(n.src),n.src=void 0),this.expose()),i){if(!this.hook(t)||Cc.ignoreTags[t.name])return void("base"!==t.name||this.options.domain?"source"===t.name&&o&&("video"===o.name||"audio"===o.name)&&n.src&&o.src.push(n.src):this.options.domain=n.href);const e=this.parseStyle(t);if("img"===t.name){if(n.src&&(n.src.includes("webp")&&(t.webp="T"),n.src.includes("data:")&&!n["original-src"]&&(n.ignore="T"),!n.ignore||t.webp||n.src.includes("cloud://"))){for(let r=this.stack.length;r--;){const o=this.stack[r];"a"===o.name&&(t.a=o.attrs),"table"!==o.name||t.webp||n.src.includes("cloud://")||(!e.display||e.display.includes("inline")?t.t="inline-block":t.t=e.display,e.display=void 0);const i=o.attrs.style||"";if(!i.includes("flex:")||i.includes("flex:0")||i.includes("flex: 0")||e.width&&!(parseInt(e.width)>100))if(i.includes("flex")&&"100%"===e.width)for(let t=r+1;t.5?o[e].toUpperCase():o[e];t+=o.substr(e),o=t}}this.imgList.push(o),t.t||(this.imgList._unloadimgs+=1)}"inline"===e.display&&(e.display=""),n.ignore&&(e["max-width"]=e["max-width"]||"100%",n.style+=";-webkit-touch-callout:none"),parseInt(e.width)>Oc&&(e.height=void 0),isNaN(parseInt(e.width))||(t.w="T"),!isNaN(parseInt(e.height))&&(!e.height.includes("%")||o&&(o.attrs.style||"").includes("height"))&&(t.h="T")}else if("svg"===t.name)return r.push(t),this.stack.push(t),void this.popNode();for(const t in e)e[t]&&(n.style+=`;${t}:${e[t].replace(" !important","")}`);n.style=n.style.substr(1)||void 0,n.style||delete n.style}else("pre"===t.name||(n.style||"").includes("white-space")&&n.style.includes("pre"))&&2!==this.pre&&(this.pre=t.pre=1),t.children=[],this.stack.push(t);r.push(t)},Mc.prototype.onCloseTag=function(e){let t;for(e=this.xml?e:e.toLowerCase(),t=this.stack.length;t--&&this.stack[t].name!==e;);if(-1!==t)for(;this.stack.length>t;)this.popNode();else if("p"===e||"br"===e){(this.stack.length?this.stack[this.stack.length-1].children:this.nodes).push({name:e,attrs:{class:kc[e]||"",style:this.tagStyle[e]||""}})}},Mc.prototype.popNode=function(){const e=this.stack.pop();let t=e.attrs;const n=e.children,o=this.stack[this.stack.length-1],r=o?o.children:this.nodes;if(!this.hook(e)||Cc.ignoreTags[e.name])return"title"===e.name&&n.length&&"text"===n[0].type&&this.options.setTitle&&bn.setNavigationBarTitle({title:n[0].text}),void r.pop();if(e.pre&&2!==this.pre){this.pre=e.pre=void 0;for(let e=this.stack.length;e--;)this.stack[e].pre&&(this.pre=1)}const i={};if("svg"===e.name){if(this.xml>1)return void this.xml--;let n="";const o=t.style;return t.style="",t.xmlns="http://www.w3.org/2000/svg",function e(t){if("text"===t.type)return void(n+=t.text);const o=Cc.svgDict[t.name]||t.name;n+="<"+o;for(const r in t.attrs){const e=t.attrs[r];e&&(n+=` ${Cc.svgDict[r]||r}="${e}"`)}if(t.children){n+=">";for(let n=0;n"}else n+="/>"}(e),e.name="img",e.attrs={src:"data:image/svg+xml;utf8,"+n.replace(/#/g,"%23"),style:o,ignore:"T"},e.children=void 0,void(this.xml=!1)}if(t.align&&("table"===e.name?"center"===t.align?i["margin-inline-start"]=i["margin-inline-end"]="auto":i.float=t.align:i["text-align"]=t.align,t.align=void 0),t.dir&&(i.direction=t.dir,t.dir=void 0),"font"===e.name&&(t.color&&(i.color=t.color,t.color=void 0),t.face&&(i["font-family"]=t.face,t.face=void 0),t.size)){let e=parseInt(t.size);isNaN(e)||(e<1?e=1:e>7&&(e=7),i["font-size"]=["x-small","small","medium","large","x-large","xx-large","xxx-large"][e-1]),t.size=void 0}if((t.class||"").includes("align-center")&&(i["text-align"]="center"),Object.assign(i,this.parseStyle(e)),"table"!==e.name&&parseInt(i.width)>Oc&&(i["max-width"]="100%",i["box-sizing"]="border-box"),Cc.blockTags[e.name]?e.name="div":Cc.trustTags[e.name]||this.xml||(e.name="span"),"a"===e.name||"ad"===e.name)this.expose();else if("video"===e.name)(i.height||"").includes("auto")&&(i.height=void 0);else if("ul"!==e.name&&"ol"!==e.name||!e.c){if("table"===e.name){let o=parseFloat(t.cellpadding),r=parseFloat(t.cellspacing);const s=parseFloat(t.border),a=i["border-color"],l=i["border-style"];if(e.c&&(isNaN(o)&&(o=2),isNaN(r)&&(r=2)),s&&(t.style+=`;border:${s}px ${l||"solid"} ${a||"gray"}`),e.flag&&e.c){i.display="grid",r?(i["grid-gap"]=r+"px",i.padding=r+"px"):s&&(t.style+=";border-left:0;border-top:0");const c=[],u=[],p=[],f={};!function e(t){for(let n=0;n=50&&e.c&&!(i.display||"").includes("flex")&&Nc(n);for(const a in i)if(i[a]){const n=`;${a}:${i[a].replace(" !important","")}`;s&&(a.includes("flex")&&"flex-direction"!==a||"align-self"===a||a.includes("grid")||"-"===i[a][0]||a.includes("width")&&n.includes("%"))?(e.f+=n,"width"===a&&(t.style+=";width:100%")):t.style+=n}t.style=t.style.substr(1)||void 0;for(const a in t)t[a]||delete t[a]},Mc.prototype.onText=function(e){if(!this.pre){let t,n="";for(let o=0,r=e.length;o"===this.content[this.i]||t&&">"===this.content[this.i+1])&&(e&&this.handler[e](this.content.substring(this.start,this.i)),this.i+=t?2:1,this.start=this.i,this.handler.onOpenTag(t),"script"===this.handler.tagName?(this.i=this.content.indexOf("="a"&&e<="z"||e>="A"&&e<="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("/"===e||"!"===e||"?"===e){this.start!==this.i&&this.handler.onText(this.content.substring(this.start,this.i));const t=this.content[this.i+2];if("/"===e&&(t>="a"&&t<="z"||t>="A"&&t<="Z"))return this.i+=2,this.start=this.i,void(this.state=this.endTag);let n="--\x3e";"!"===e&&"-"===this.content[this.i+2]&&"-"===this.content[this.i+3]||(n=">"),this.i=this.content.indexOf(n,this.i),-1!==this.i&&(this.i+=n.length,this.start=this.i)}else this.i++},zc.prototype.tagName=function(){if(Pc[this.content[this.i]]){for(this.handler.onTagName(this.content.substring(this.start,this.i));Pc[this.content[++this.i]];);this.i"===e||"/"===e){if(this.handler.onCloseTag(this.content.substring(this.start,this.i)),">"!==e&&(this.i=this.content.indexOf(">",this.i),-1===this.i))return;this.start=++this.i,this.state=this.text}else this.i++};const Fc={props:{mode:{type:String,default:()=>Wl.keyboard.mode},dotDisabled:{type:Boolean,default:()=>Wl.keyboard.dotDisabled},tooltip:{type:Boolean,default:()=>Wl.keyboard.tooltip},showTips:{type:Boolean,default:()=>Wl.keyboard.showTips},tips:{type:String,default:()=>Wl.keyboard.tips},showCancel:{type:Boolean,default:()=>Wl.keyboard.showCancel},showConfirm:{type:Boolean,default:()=>Wl.keyboard.showConfirm},random:{type:Boolean,default:()=>Wl.keyboard.random},safeAreaInsetBottom:{type:Boolean,default:()=>Wl.keyboard.safeAreaInsetBottom},closeOnClickOverlay:{type:Boolean,default:()=>Wl.keyboard.closeOnClickOverlay},show:{type:Boolean,default:()=>Wl.keyboard.show},overlay:{type:Boolean,default:()=>Wl.keyboard.overlay},zIndex:{type:[String,Number],default:()=>Wl.keyboard.zIndex},cancelText:{type:String,default:()=>Wl.keyboard.cancelText},confirmText:{type:String,default:()=>Wl.keyboard.confirmText},autoChange:{type:Boolean,default:()=>Wl.keyboard.autoChange}}},Dc={props:{modelValue:{type:[String,Number],default:()=>Wl.input.value},type:{type:String,default:()=>Wl.input.type},fixed:{type:Boolean,default:()=>Wl.input.fixed},disabled:{type:Boolean,default:()=>Wl.input.disabled},disabledColor:{type:String,default:()=>Wl.input.disabledColor},clearable:{type:Boolean,default:()=>Wl.input.clearable},password:{type:Boolean,default:()=>Wl.input.password},maxlength:{type:[String,Number],default:()=>Wl.input.maxlength},placeholder:{type:String,default:()=>Wl.input.placeholder},placeholderClass:{type:String,default:()=>Wl.input.placeholderClass},placeholderStyle:{type:[String,Object],default:()=>Wl.input.placeholderStyle},showWordLimit:{type:Boolean,default:()=>Wl.input.showWordLimit},confirmType:{type:String,default:()=>Wl.input.confirmType},confirmHold:{type:Boolean,default:()=>Wl.input.confirmHold},holdKeyboard:{type:Boolean,default:()=>Wl.input.holdKeyboard},focus:{type:Boolean,default:()=>Wl.input.focus},autoBlur:{type:Boolean,default:()=>Wl.input.autoBlur},disableDefaultPadding:{type:Boolean,default:()=>Wl.input.disableDefaultPadding},cursor:{type:[String,Number],default:()=>Wl.input.cursor},cursorSpacing:{type:[String,Number],default:()=>Wl.input.cursorSpacing},selectionStart:{type:[String,Number],default:()=>Wl.input.selectionStart},selectionEnd:{type:[String,Number],default:()=>Wl.input.selectionEnd},adjustPosition:{type:Boolean,default:()=>Wl.input.adjustPosition},inputAlign:{type:String,default:()=>Wl.input.inputAlign},fontSize:{type:[String,Number],default:()=>Wl.input.fontSize},color:{type:String,default:()=>Wl.input.color},prefixIcon:{type:String,default:()=>Wl.input.prefixIcon},prefixIconStyle:{type:[String,Object],default:()=>Wl.input.prefixIconStyle},suffixIcon:{type:String,default:()=>Wl.input.suffixIcon},suffixIconStyle:{type:[String,Object],default:()=>Wl.input.suffixIconStyle},border:{type:String,default:()=>Wl.input.border},readonly:{type:Boolean,default:()=>Wl.input.readonly},shape:{type:String,default:()=>Wl.input.shape},formatter:{type:[Function,null],default:()=>Wl.input.formatter},ignoreCompositionEvent:{type:Boolean,default:!0}}},Lc={props:{name:{type:[String,Number],default:()=>Wl.numberBox.name},modelValue:{type:[String,Number],default:()=>Wl.numberBox.value},min:{type:[String,Number],default:()=>Wl.numberBox.min},max:{type:[String,Number],default:()=>Wl.numberBox.max},step:{type:[String,Number],default:()=>Wl.numberBox.step},integer:{type:Boolean,default:()=>Wl.numberBox.integer},disabled:{type:Boolean,default:()=>Wl.numberBox.disabled},disabledInput:{type:Boolean,default:()=>Wl.numberBox.disabledInput},asyncChange:{type:Boolean,default:()=>Wl.numberBox.asyncChange},inputWidth:{type:[String,Number],default:()=>Wl.numberBox.inputWidth},showMinus:{type:Boolean,default:()=>Wl.numberBox.showMinus},showPlus:{type:Boolean,default:()=>Wl.numberBox.showPlus},decimalLength:{type:[String,Number,null],default:()=>Wl.numberBox.decimalLength},longPress:{type:Boolean,default:()=>Wl.numberBox.longPress},color:{type:String,default:()=>Wl.numberBox.color},buttonSize:{type:[String,Number],default:()=>Wl.numberBox.buttonSize},bgColor:{type:String,default:()=>Wl.numberBox.bgColor},cursorSpacing:{type:[String,Number],default:()=>Wl.numberBox.cursorSpacing},disablePlus:{type:Boolean,default:()=>Wl.numberBox.disablePlus},disableMinus:{type:Boolean,default:()=>Wl.numberBox.disableMinus},iconStyle:{type:[Object,String],default:()=>Wl.numberBox.iconStyle}}},Hc={props:{src:{type:String,default:()=>Wl.avatar.src},shape:{type:String,default:()=>Wl.avatar.shape},size:{type:[String,Number],default:()=>Wl.avatar.size},mode:{type:String,default:()=>Wl.avatar.mode},text:{type:String,default:()=>Wl.avatar.text},bgColor:{type:String,default:()=>Wl.avatar.bgColor},color:{type:String,default:()=>Wl.avatar.color},fontSize:{type:[String,Number],default:()=>Wl.avatar.fontSize},icon:{type:String,default:()=>Wl.avatar.icon},mpAvatar:{type:Boolean,default:()=>Wl.avatar.mpAvatar},randomBgColor:{type:Boolean,default:()=>Wl.avatar.randomBgColor},defaultUrl:{type:String,default:()=>Wl.avatar.defaultUrl},colorIndex:{type:[String,Number],validator:e=>Ha.range(e,[0,19])||""===e,default:()=>Wl.avatar.colorIndex},name:{type:String,default:()=>Wl.avatar.name}}},Uc={props:{dashed:{type:Boolean,default:()=>Wl.divider.dashed},hairline:{type:Boolean,default:()=>Wl.divider.hairline},dot:{type:Boolean,default:()=>Wl.divider.dot},textPosition:{type:String,default:()=>Wl.divider.textPosition},text:{type:[String,Number],default:()=>Wl.divider.text},textSize:{type:[String,Number],default:()=>Wl.divider.textSize},textColor:{type:String,default:()=>Wl.divider.textColor},lineColor:{type:String,default:()=>Wl.divider.lineColor}}},Rc={props:{title:{type:[String,Number],default:()=>Wl.stepsItem.title},desc:{type:[String,Number],default:()=>Wl.stepsItem.desc},iconSize:{type:[String,Number],default:()=>Wl.stepsItem.iconSize},error:{type:Boolean,default:()=>Wl.stepsItem.error},itemStyle:{type:[Object],default:{}}}},Vc={props:{direction:{type:String,default:()=>Wl.steps.direction},current:{type:[String,Number],default:()=>Wl.steps.current},activeColor:{type:String,default:()=>Wl.steps.activeColor},inactiveColor:{type:String,default:()=>Wl.steps.inactiveColor},activeIcon:{type:String,default:()=>Wl.steps.activeIcon},inactiveIcon:{type:String,default:()=>Wl.steps.inactiveIcon},dot:{type:Boolean,default:()=>Wl.steps.dot}}},qc={props:{show:{type:Boolean,default:()=>Wl.loadingIcon.show},color:{type:String,default:()=>Wl.loadingIcon.color},textColor:{type:String,default:()=>Wl.loadingIcon.textColor},vertical:{type:Boolean,default:()=>Wl.loadingIcon.vertical},mode:{type:String,default:()=>Wl.loadingIcon.mode},size:{type:[String,Number],default:()=>Wl.loadingIcon.size},textSize:{type:[String,Number],default:()=>Wl.loadingIcon.textSize},text:{type:[String,Number],default:()=>Wl.loadingIcon.text},timingFunction:{type:String,default:()=>Wl.loadingIcon.timingFunction},duration:{type:[String,Number],default:()=>Wl.loadingIcon.duration},inactiveColor:{type:String,default:()=>Wl.loadingIcon.inactiveColor}}},Wc={props:{show:{type:Boolean,default:()=>Wl.popup.show},overlay:{type:Boolean,default:()=>Wl.popup.overlay},mode:{type:String,default:()=>Wl.popup.mode},duration:{type:[String,Number],default:()=>Wl.popup.duration},closeable:{type:Boolean,default:()=>Wl.popup.closeable},overlayStyle:{type:[Object,String],default:()=>Wl.popup.overlayStyle},closeOnClickOverlay:{type:Boolean,default:()=>Wl.popup.closeOnClickOverlay},zIndex:{type:[String,Number],default:()=>Wl.popup.zIndex},safeAreaInsetBottom:{type:Boolean,default:()=>Wl.popup.safeAreaInsetBottom},safeAreaInsetTop:{type:Boolean,default:()=>Wl.popup.safeAreaInsetTop},closeIconPos:{type:String,default:()=>Wl.popup.closeIconPos},round:{type:[Boolean,String,Number],default:()=>Wl.popup.round},zoom:{type:Boolean,default:()=>Wl.popup.zoom},bgColor:{type:String,default:()=>Wl.popup.bgColor},overlayOpacity:{type:[Number,String],default:()=>Wl.popup.overlayOpacity}}},$c={props:{mode:{type:String,default:()=>Wl.numberKeyboard.value},dotDisabled:{type:Boolean,default:()=>Wl.numberKeyboard.dotDisabled},random:{type:Boolean,default:()=>Wl.numberKeyboard.random}}},Yc={props:{random:{type:Boolean,default:!1},autoChange:{type:Boolean,default:!1}}},Jc={props:{duration:{type:Number,default:()=>Wl.tabs.duration},list:{type:Array,default:()=>Wl.tabs.list},lineColor:{type:String,default:()=>Wl.tabs.lineColor},activeStyle:{type:[String,Object],default:()=>Wl.tabs.activeStyle},inactiveStyle:{type:[String,Object],default:()=>Wl.tabs.inactiveStyle},lineWidth:{type:[String,Number],default:()=>Wl.tabs.lineWidth},lineHeight:{type:[String,Number],default:()=>Wl.tabs.lineHeight},lineBgSize:{type:String,default:()=>Wl.tabs.lineBgSize},itemStyle:{type:[String,Object],default:()=>Wl.tabs.itemStyle},scrollable:{type:Boolean,default:()=>Wl.tabs.scrollable},current:{type:[Number,String],default:()=>Wl.tabs.current},keyName:{type:String,default:()=>Wl.tabs.keyName}}},Xc={props:{type:{type:String,default:()=>Wl.text.type},show:{type:Boolean,default:()=>Wl.text.show},text:{type:[String,Number],default:()=>Wl.text.text},prefixIcon:{type:String,default:()=>Wl.text.prefixIcon},suffixIcon:{type:String,default:()=>Wl.text.suffixIcon},mode:{type:String,default:()=>Wl.text.mode},href:{type:String,default:()=>Wl.text.href},format:{type:[String,Function],default:()=>Wl.text.format},call:{type:Boolean,default:()=>Wl.text.call},openType:{type:String,default:()=>Wl.text.openType},bold:{type:Boolean,default:()=>Wl.text.bold},block:{type:Boolean,default:()=>Wl.text.block},lines:{type:[String,Number],default:()=>Wl.text.lines},color:{type:String,default:()=>Wl.text.color},size:{type:[String,Number],default:()=>Wl.text.size},iconStyle:{type:[Object,String],default:()=>Wl.text.iconStyle},decoration:{tepe:String,default:()=>Wl.text.decoration},margin:{type:[Object,String,Number],default:()=>Wl.text.margin},lineHeight:{type:[String,Number],default:()=>Wl.text.lineHeight},align:{type:String,default:()=>Wl.text.align},wordWrap:{type:String,default:()=>Wl.text.wordWrap},flex1:{type:Boolean,default:()=>Wl.text.flex1}}},_c={computed:{value(){const{text:e,mode:t,format:n,href:o}=this;return"price"===t?Ha.func(n)?n(e):ul(e,2):"date"===t?(Ha.date(e),Ha.func(n)?n(e):sl(e,n||"yyyy-mm-dd")):"phone"===t?Ha.func(n)?n(e):"encrypt"===n?`${e.substr(0,3)}****${e.substr(7)}`:e:"name"===t?Ha.func(n)?n(e):"encrypt"===n?this.formatName(e):e:"link"===t?(Ha.url(o),e):e}},methods:{formatName(e){let t="";if(2===e.length)t=e.substr(0,1)+"*";else if(e.length>2){let n="";for(let t=0,o=e.length-2;tWl.line.color},length:{type:[String,Number],default:()=>Wl.line.length},direction:{type:String,default:()=>Wl.line.direction},hairline:{type:Boolean,default:()=>Wl.line.hairline},margin:{type:[String,Number],default:()=>Wl.line.margin},dashed:{type:Boolean,default:()=>Wl.line.dashed}}},eu={props:{show:{type:Boolean,default:()=>Wl.overlay.show},zIndex:{type:[String,Number],default:()=>Wl.overlay.zIndex},duration:{type:[String,Number],default:()=>Wl.overlay.duration},opacity:{type:[String,Number],default:()=>Wl.overlay.opacity}}},tu={props:{bgColor:{type:String,default:()=>Wl.statusBar.bgColor}}},nu={props:{}},ou={props:{show:{type:Boolean,default:()=>Wl.transition.show},mode:{type:String,default:()=>Wl.transition.mode},duration:{type:[String,Number],default:()=>Wl.transition.duration},timingFunction:{type:String,default:()=>Wl.transition.timingFunction}}},ru=e=>({enter:`u-${e}-enter u-${e}-enter-active`,"enter-to":`u-${e}-enter-to u-${e}-enter-active`,leave:`u-${e}-leave u-${e}-leave-active`,"leave-to":`u-${e}-leave-to u-${e}-leave-active`}),iu={methods:{clickHandler(){this.$emit("click")},async vueEnter(){const e=ru(this.mode);this.status="enter",this.$emit("beforeEnter"),this.inited=!0,this.display=!0,this.classes=e.enter,await cr(),await _a(20),this.$emit("enter"),this.transitionEnded=!1,this.$emit("afterEnter"),this.classes=e["enter-to"]},async vueLeave(){if(!this.display)return;const e=ru(this.mode);this.status="leave",this.$emit("beforeLeave"),this.classes=e.leave,await cr(),this.transitionEnded=!1,this.$emit("leave"),setTimeout(this.onTransitionEnd,this.duration),this.classes=e["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))}}},su={props:{isDot:{type:Boolean,default:()=>Wl.badge.isDot},value:{type:[Number,String],default:()=>Wl.badge.value},modelValue:{type:[Number,String],default:()=>Wl.badge.modelValue},show:{type:Boolean,default:()=>Wl.badge.show},max:{type:[Number,String],default:()=>Wl.badge.max},type:{type:String,default:()=>Wl.badge.type},showZero:{type:Boolean,default:()=>Wl.badge.showZero},bgColor:{type:[String,null],default:()=>Wl.badge.bgColor},color:{type:[String,null],default:()=>Wl.badge.color},shape:{type:String,default:()=>Wl.badge.shape},numberType:{type:String,default:()=>Wl.badge.numberType},offset:{type:Array,default:()=>Wl.badge.offset},inverted:{type:Boolean,default:()=>Wl.badge.inverted},absolute:{type:Boolean,default:()=>Wl.badge.absolute}}},au={props:{color:{type:String,default:()=>Wl.link.color},fontSize:{type:[String,Number],default:()=>Wl.link.fontSize},underLine:{type:Boolean,default:()=>Wl.link.underLine},href:{type:String,default:()=>Wl.link.href},mpTips:{type:String,default:()=>Wl.link.mpTips},lineColor:{type:String,default:()=>Wl.link.lineColor},text:{type:String,default:()=>Wl.link.text}}};exports.Parser=Mc,exports.Pinia=Na,exports.Request=class{constructor(e={}){var t;t=e,"[object Object]"!==Object.prototype.toString.call(t)&&(e={},console.warn("设置全局参数必须接收一个Object")),this.config=vc({...bc,...e}),this.interceptors={request:new mc,response:new mc}}setConfig(e){this.config=e(this.config)}middleware(e){e=((e,t={})=>{const n=t.method||e.method||"GET";let o={baseURL:t.baseURL||e.baseURL||"",method:n,url:t.url||"",params:t.params||{},custom:{...e.custom||{},...t.custom||{}},header:uc(e.header||{},t.header||{})};if(o={...o,...yc(["getTask","validateStatus","paramsSerializer","forcedJSONParsing"],e,t)},"DOWNLOAD"===n){const n=["timeout","filePath"];o={...o,...yc(n,e,t)}}else if("UPLOAD"===n)delete o.header["content-type"],delete o.header["Content-Type"],["filePath","name","timeout","formData"].forEach((e=>{pc(t[e])||(o[e]=t[e])})),pc(o.timeout)&&!pc(e.timeout)&&(o.timeout=e.timeout);else{const n=["data","timeout","dataType","responseType","enableHttp2","enableQuic","enableCache","enableHttpDNS","httpDNSServiceId","enableChunked","forceCellularNetwork"];o={...o,...yc(n,e,t)}}return o})(this.config,e);let t=[gc,void 0],n=Promise.resolve(e);for(this.interceptors.request.forEach((function(e){t.unshift(e.fulfilled,e.rejected)})),this.interceptors.response.forEach((function(e){t.push(e.fulfilled,e.rejected)}));t.length;)n=n.then(t.shift(),t.shift());return n}request(e={}){return this.middleware(e)}get(e,t={}){return this.middleware({url:e,method:"GET",...t})}post(e,t,n={}){return this.middleware({url:e,data:t,method:"POST",...n})}put(e,t,n={}){return this.middleware({url:e,data:t,method:"PUT",...n})}delete(e,t,n={}){return this.middleware({url:e,data:t,method:"DELETE",...n})}connect(e,t,n={}){return this.middleware({url:e,data:t,method:"CONNECT",...n})}head(e,t,n={}){return this.middleware({url:e,data:t,method:"HEAD",...n})}options(e,t,n={}){return this.middleware({url:e,data:t,method:"OPTIONS",...n})}trace(e,t,n={}){return this.middleware({url:e,data:t,method:"TRACE",...n})}upload(e,t={}){return t.url=e,t.method="UPLOAD",this.middleware(t)}download(e,t={}){return t.url=e,t.method="DOWNLOAD",this.middleware(t)}get version(){return"3.1.0"}},exports._export_sfc=(e,t)=>{const n=e.__vccOpts||e;for(const[o,r]of t)n[o]=r;return n},exports.addStyle=el,exports.addUnit=tl,exports.buttonMixin=Kc,exports.color=ql,exports.colorGradient=Pl,exports.config=Ja,exports.createPinia=Aa,exports.createSSRApp=Es,exports.dayjs=Ac,exports.deepMerge=ol,exports.defProps=Wl,exports.defineComponent=function(e){return w(e)?{setup:e,name:e.name}:e},exports.defineStore=Pa,exports.e=(e,...t)=>g(e,...t),exports.error=rl,exports.f=(e,t)=>function(e,t){let n;if(v(e)||S(e)){n=new Array(e.length);for(let o=0,r=e.length;ot(e,n,n)));else{const o=Object.keys(e);n=new Array(o.length);for(let r=0,i=o.length;rs(e),exports.o=(e,t)=>As(e,t),exports.onHide=Zl,exports.onLaunch=ec,exports.onLoad=tc,exports.onMounted=zr,exports.onPageScroll=oc,exports.onReachBottom=rc,exports.onShareAppMessage=sc,exports.onShareTimeline=ic,exports.onShow=Gl,exports.onUnload=nc,exports.openType=Gc,exports.p=e=>function(e){const{uid:t,__counter:n}=Bi();return t+","+((ys[t]||(ys[t]=[])).push(vi(e))-1)+","+n}(e),exports.props=Ec,exports.props$1=Fc,exports.props$10=$c,exports.props$11=Yc,exports.props$12=Jc,exports.props$13=Xc,exports.props$14=Zc,exports.props$15=eu,exports.props$16=tu,exports.props$17=nu,exports.props$18=ou,exports.props$19=su,exports.props$2=Dc,exports.props$20=au,exports.props$3=Lc,exports.props$4=Hc,exports.props$5=Uc,exports.props$6=Rc,exports.props$7=Vc,exports.props$8=qc,exports.props$9=Wc,exports.r=(e,t,n)=>Ss(e,t,n),exports.random=Ga,exports.randomArray=il,exports.reactive=jo,exports.ref=Ro,exports.relativeTime=Sc,exports.resolveComponent=function(e,t){return function(e,t,n=!0,o=!1){const r=xr||Si;if(r){const n=r.type;if(e===Wr){const e=function(e,t=!0){return w(e)?e.displayName||e.name:e.name||t&&e.__name}(n,!1);if(e&&(e===t||e===N(t)||e===F(N(t))))return n}const i=$r(r[e]||n[e],t)||$r(r.appContext[e],t);return!i&&o?n:i}}(Wr,e,!0,t)||e},exports.s=e=>Bs(e),exports.sleep=_a,exports.sr=(e,t,n)=>function(e,t,n={}){const{$templateRefs:o}=Bi();o.push({i:t,r:e,k:n.k,f:n.f})}(e,t,n),exports.t=e=>(e=>S(e)?e:null==e?"":v(e)||E(e)&&(e.toString===k||!w(e.toString))?JSON.stringify(e,a,2):String(e))(e),exports.test=Ha,exports.toast=cl,exports.transitionMixin=iu,exports.unref=qo,exports.uviewPlus=_l,exports.value=_c,exports.watch=Br; +let ha;const ga=e=>ha=e,ma=Symbol();function ya(e){return e&&"object"==typeof e&&"[object Object]"===Object.prototype.toString.call(e)&&"function"!=typeof e.toJSON}var ba,va;(va=ba||(ba={})).direct="direct",va.patchObject="patch object",va.patchFunction="patch function";const xa="undefined"!=typeof window;function Aa(){const e=An(!0),t=e.run((()=>Ro({})));let n=[],o=[];const r=zo({install(e){ga(r),r._a=e,e.provide(ma,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});return r}const wa=()=>{};function Sa(e,t,n,o=wa){e.push(t);const r=()=>{const n=e.indexOf(t);n>-1&&(e.splice(n,1),o())};return!n&&wn()&&function(e){vn&&vn.cleanups.push(e)}(r),r}function Ba(e,...t){e.slice().forEach((e=>{e(...t)}))}function Ea(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];ya(r)&&ya(o)&&e.hasOwnProperty(n)&&!Uo(o)&&!To(o)?e[n]=Ea(r,o):e[n]=o}return e}const Ca=Symbol();const{assign:ka}=Object;function Oa(e,t,n,o){const{state:r,actions:i,getters:s}=t,a=n.state.value[e];let l;return l=ja(e,(function(){a||(n.state.value[e]=r?r():{});const t=function(e){const t=v(e)?new Array(e.length):{};for(const n in e)t[n]=Jo(e,n);return t}(n.state.value[e]);return ka(t,i,Object.keys(s||{}).reduce(((t,o)=>(t[o]=zo(Ti((()=>{ga(n);const t=n._s.get(e);return s[o].call(t,t)}))),t)),{}))}),t,n,o,!0),l}function ja(e,t,n={},o,r,i){let s;const a=ka({actions:{}},n),l={deep:!0};let c,u,p,f=zo([]),d=zo([]);const h=o.state.value[e];let g;function m(t){let n;c=u=!1,"function"==typeof t?(t(o.state.value[e]),n={type:ba.patchFunction,storeId:e,events:p}):(Ea(o.state.value[e],t),n={type:ba.patchObject,payload:t,storeId:e,events:p});const r=g=Symbol();cr().then((()=>{g===r&&(c=!0)})),u=!0,Ba(f,n,o.state.value[e])}i||h||(o.state.value[e]={}),Ro({});const y=i?function(){const{state:e}=n,t=e?e():{};this.$patch((e=>{ka(e,t)}))}:wa;function b(t,n){return function(){ga(o);const r=Array.from(arguments),i=[],s=[];let a;Ba(d,{args:r,name:t,store:v,after:function(e){i.push(e)},onError:function(e){s.push(e)}});try{a=n.apply(this&&this.$id===e?this:v,r)}catch(l){throw Ba(s,l),l}return a instanceof Promise?a.then((e=>(Ba(i,e),e))).catch((e=>(Ba(s,e),Promise.reject(e)))):(Ba(i,a),a)}}const v=jo({_p:o,$id:e,$onAction:Sa.bind(null,d),$patch:m,$reset:y,$subscribe(t,n={}){const r=Sa(f,t,n.detached,(()=>i())),i=s.run((()=>Br((()=>o.state.value[e]),(o=>{("sync"===n.flush?u:c)&&t({storeId:e,type:ba.direct,events:p},o)}),ka({},l,n))));return r},$dispose:function(){s.stop(),f=[],d=[],o._s.delete(e)}});o._s.set(e,v);const x=o._e.run((()=>(s=An(),s.run((()=>t())))));for(const S in x){const t=x[S];if(Uo(t)&&(!Uo(w=t)||!w.effect)||To(t))i||(!h||ya(A=t)&&A.hasOwnProperty(Ca)||(Uo(t)?t.value=h[S]:Ea(t,h[S])),o.state.value[e][S]=t);else if("function"==typeof t){const e=b(S,t);x[S]=e,a.actions[S]=t}}var A,w;return ka(v,x),ka(Mo(v),x),Object.defineProperty(v,"$state",{get:()=>o.state.value[e],set:e=>{m((t=>{ka(t,e)}))}}),o._p.forEach((e=>{ka(v,s.run((()=>e({store:v,app:o._a,pinia:o,options:a}))))})),h&&i&&n.hydrate&&n.hydrate(v.$state,h),c=!0,u=!0,v}function Pa(e,t,n){let o,r;const i="function"==typeof t;function s(e,n){const s=Bi();(e=e||s&&wr(ma,null))&&ga(e),(e=ha)._s.has(o)||(i?ja(o,t,r,e):Oa(o,r,e));return e._s.get(o)}return"string"==typeof e?(o=e,r=i?n:t):(r=e,o=e.id),s.$id=o,s}let Ia="Store";function Ta(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(){const n=e(this.$pinia),r=t[o];return"function"==typeof r?r.call(this,n):n[r]},n)),{})}const Qa=Ta;const Na=Object.freeze(Object.defineProperty({__proto__:null,get MutationType(){return ba},PiniaVuePlugin:function(e){e.mixin({beforeCreate(){const e=this.$options;if(e.pinia){const t=e.pinia;if(!this._provided){const e={};Object.defineProperty(this,"_provided",{get:()=>e,set:t=>Object.assign(e,t)})}this._provided[ma]=t,this.$pinia||(this.$pinia=t),t._a=this,xa&&ga(t)}else!this.$pinia&&e.parent&&e.parent.$pinia&&(this.$pinia=e.parent.$pinia)},destroyed(){delete this._pStores}})},acceptHMRUpdate:function(e,t){return()=>{}},createPinia:Aa,defineStore:Pa,getActivePinia:()=>Bi()&&wr(ma)||ha,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:Qa,mapState:Ta,mapStores:function(...e){return e.reduce(((e,t)=>(e[t.$id+Ia]=function(){return t(this.$pinia)},e)),{})},mapWritableState:function(e,t){return Array.isArray(t)?t.reduce(((t,n)=>(t[n]={get(){return e(this.$pinia)[n]},set(t){return e(this.$pinia)[n]=t}},t)),{}):Object.keys(t).reduce(((n,o)=>(n[o]={get(){return e(this.$pinia)[t[o]]},set(n){return e(this.$pinia)[t[o]]=n}},n)),{})},setActivePinia:ga,setMapStoreSuffix:function(e){Ia=e},skipHydrate:function(e){return Object.defineProperty(e,Ca,{})},storeToRefs:function(e){{e=Mo(e);const t={};for(const n in e){const o=e[n];(Uo(o)||To(o))&&(t[n]=Jo(e,n))}return t}}},Symbol.toStringTag,{value:"Module"}));function Ma(e){return/^[\+-]?(\d+\.?\d*|\.\d+|\d\.\d+e\+\d+)$/.test(e)}function za(e){switch(typeof e){case"undefined":return!0;case"string":if(0==e.replace(/(^[ \t\n\r]*)|([ \t\n\r]*$)/g,"").length)return!0;break;case"boolean":if(!e)return!0;break;case"number":if(0===e||isNaN(e))return!0;break;case"object":if(null===e||0===e.length)return!0;for(const t in e)return!1;return!0}return!1}function Fa(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===Object.prototype.toString.call(e)}function Da(e){return"[object Object]"===Object.prototype.toString.call(e)}function La(e){return"function"==typeof e}const Ha={email:function(e){return/^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/.test(e)},mobile:function(e){return/^1[23456789]\d{9}$/.test(e)},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){if(!e)return!1;if("number"==typeof e)return(10===e.toString().length||13===e.toString().length)&&!isNaN(new Date(e).getTime());if("string"==typeof e){const t=Number(e);if(!isNaN(t)&&(10===t.toString().length||13===t.toString().length))return!isNaN(new Date(t).getTime());if(e.length<10||e.length>19)return!1;if(!/^\d{4}[-\/]\d{2}[-\/]\d{2}( \d{1,2}:\d{2}(:\d{2})?)?$/.test(e))return!1;const n=new Date(e);return!isNaN(n.getTime())}return!1},dateISO:function(e){return/^\d{4}[\/\-](0?[1-9]|1[012])[\/\-](0?[1-9]|[12][0-9]|3[01])$/.test(e)},number:Ma,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)},carNo:function(e){const t=/^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-Z]{1}(([0-9]{5}[DF]$)|([DF][A-HJ-NP-Z0-9][0-9]{4}$))/,n=/^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-Z]{1}[A-HJ-NP-Z0-9]{4}[A-HJ-NP-Z0-9挂学警港澳]{1}$/;return 7===e.length?n.test(e):8===e.length&&t.test(e)},amount:function(e){return/^[1-9]\d*(,\d{3})*(\.\d{1,2})?$|^0\.\d{1,2}$/.test(e)},chinese:function(e){return/^[\u4e00-\u9fa5]+$/gi.test(e)},letter:function(e){return/^[a-zA-Z]*$/.test(e)},enOrNum:function(e){return/^[0-9a-zA-Z]*$/g.test(e)},contains:function(e,t){return e.indexOf(t)>=0},range:function(e,t){return e>=t[0]&&e<=t[1]},rangeLength:function(e,t){return e.length>=t[0]&&e.length<=t[1]},empty:za,isEmpty:za,jsonString:function(e){if("string"==typeof e)try{const t=JSON.parse(e);return!("object"!=typeof t||!t)}catch(t){return!1}return!1},landline:function(e){return/^\d{3,4}-\d{7,8}(-\d{3,4})?$/.test(e)},object:Da,array:Fa,code:function(e,t=6){return new RegExp(`^\\d{${t}}$`).test(e)},func:La,promise:function(e){return Da(e)&&La(e.then)&&La(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){const t=e.split("?")[0];return/\.(jpeg|jpg|gif|png|svg|webp|jfif|bmp|dpg)/i.test(t)},regExp:function(e){return e&&"[object RegExp]"===Object.prototype.toString.call(e)},string:function(e){return"string"==typeof e}};function Ua(e,t=15){return+parseFloat(Number(e).toPrecision(t))}function Ra(e){const t=e.toString().split(/[eE]/),n=(t[0].split(".")[1]||"").length-+(t[1]||0);return n>0?n:0}function Va(e){if(-1===e.toString().indexOf("e"))return Number(e.toString().replace(".",""));const t=Ra(e);return t>0?Ua(Number(e)*Math.pow(10,t)):Number(e)}function qa(e){(e>Number.MAX_SAFE_INTEGER||e{i=t(i,e)})),i}function $a(...e){if(e.length>2)return Wa(e,$a);const[t,n]=e,o=Va(t),r=Va(n),i=Ra(t)+Ra(n),s=o*r;return qa(s),s/Math.pow(10,i)}function Ya(...e){if(e.length>2)return Wa(e,Ya);const[t,n]=e,o=Va(t),r=Va(n);return qa(o),qa(r),$a(o/r,Ua(Math.pow(10,Ra(n)-Ra(t))))}const Ja={v:"3",version:"3",type:["primary","success","info","error","warning"],color:{"u-primary":"#2979ff","u-warning":"#ff9900","u-success":"#19be6b","u-error":"#fa3534","u-info":"#909399","u-main-color":"#303133","u-content-color":"#606266","u-tips-color":"#909399","u-light-color":"#c0c4cc","up-primary":"#2979ff","up-warning":"#ff9900","up-success":"#19be6b","up-error":"#fa3534","up-info":"#909399","up-main-color":"#303133","up-content-color":"#606266","up-tips-color":"#909399","up-light-color":"#c0c4cc"},unit:"px"};function Xa(e,t=!1){return Ma(e)?t?`${e}px`:Number(e):/(rpx|upx)$/.test(e)?t?`${bn.upx2px(parseInt(e))}px`:Number(bn.upx2px(parseInt(e))):t?`${parseInt(e)}px`:parseInt(e)}function _a(e=30){return new Promise((t=>{setTimeout((()=>{t()}),e)}))}function Ka(){let e={};return e=bn.getWindowInfo(),e}function Ga(e,t){if(e>=0&&t>0&&t>=e){const n=t-e+1;return Math.floor(Math.random()*n+e)}return 0}function Za(e=void 0){let t=this.$parent;for(;t;){if(e=e.replace(/up-([a-zA-Z0-9-_]+)/g,"u-$1"),!t.$options||t.$options.name===e)return t;t=t.$parent}return!1}function el(e,t="object"){if(za(e)||"object"==typeof e&&"object"===t||"string"===t&&"string"==typeof e)return e;if("object"===t){const t=(e=al(e)).split(";"),n={};for(let e=0;e{const o=t.replace(/([A-Z])/g,"-$1").toLowerCase();n+=`${o}:${e};`})),al(n)}function tl(e="auto",t=""){return t||(t=Ja.unit||"px"),"rpx"==t&&Ma(String(e))&&(e*=2),Ma(e=String(e))?`${e}${t}`:e}function nl(e){if([null,void 0,NaN,!1].includes(e))return e;if("object"!=typeof e&&"function"!=typeof e)return e;const t=Fa(e)?[]:{};for(const n in e)e.hasOwnProperty(n)&&(t[n]="object"==typeof e[n]?nl(e[n]):e[n]);return t}function ol(e={},t={}){let n=nl(e);if("object"!=typeof n||"object"!=typeof t)return!1;for(const o in t)t.hasOwnProperty(o)&&(o in n?null==t[o]||"object"!=typeof n[o]||"object"!=typeof t[o]?n[o]=t[o]:n[o].concat&&t[o].concat?n[o]=n[o].concat(t[o]):n[o]=ol(n[o],t[o]):n[o]=t[o]);return n}function rl(e){}function il(e=[]){return e.sort((()=>Math.random()-.5))}function sl(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={y:n.getFullYear().toString(),m:(n.getMonth()+1).toString().padStart(2,"0"),d:n.getDate().toString().padStart(2,"0"),h:n.getHours().toString().padStart(2,"0"),M:n.getMinutes().toString().padStart(2,"0"),s:n.getSeconds().toString().padStart(2,"0")};for(const r in o){const[e]=new RegExp(`${r}+`).exec(t)||[];if(e){const n="y"===r&&2===e.length?2:0;t=t.replace(e,o[r].slice(n))}}return t}function al(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}function ll(e={},t=!0,n="brackets"){const o=t?"?":"",r=[];-1==["indices","brackets","repeat","comma"].indexOf(n)&&(n="brackets");for(const i in e){const t=e[i];if(!(["",void 0,null].indexOf(t)>=0))if(t.constructor===Array)switch(n){case"indices":for(let n=0;n{r.push(`${i}[]=${e}`)}));break;case"repeat":t.forEach((e=>{r.push(`${i}=${e}`)}));break;case"comma":let e="";t.forEach((t=>{e+=(e?",":"")+t})),r.push(`${i}=${e}`)}else r.push(`${i}=${t}`)}return r.length?o+r.join("&"):""}function cl(e,t=2e3){bn.showToast({title:String(e),icon:"none",duration:t})}function ul(e,t=0,n=".",o=","){e=`${e}`.replace(/[^0-9+-Ee.]/g,"");const r=isFinite(+e)?+e:0,i=isFinite(+t)?Math.abs(t):0,s=void 0===o?",":o,a=void 0===n?".":n;let l="";l=(i?function(e,t){const n=Math.pow(10,t);let o=Ya(Math.round(Math.abs($a(e,n))),n);return e<0&&0!==o&&(o=$a(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${s}$2`);return(l[1]||"").length{}),t)}function fl(){const e=getCurrentPages();return`/${e[e.length-1].route||""}`}String.prototype.padStart||(String.prototype.padStart=function(e,t=" "){if("[object String]"!==Object.prototype.toString.call(t))throw new TypeError("fillString must be String");const n=this;if(n.length>=e)return String(n);const o=e-n.length;let r=Math.ceil(o/t.length);for(;r>>=1;)t+=t,1===r&&(t+=t);return t.slice(0,o)+n});const dl={range:function(e=0,t=0,n=0){return Math.max(e,Math.min(t,Number(n)))},getPx:Xa,sleep:_a,os:function(){return bn.getDeviceInfo().platform.toLowerCase()},sys:function(){return bn.getSystemInfoSync()},getWindowInfo:Ka,random:Ga,guid:function(e=32,t=!0,n=null){const o="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split(""),r=[];if(n=n||o.length,e)for(let i=0;i=300&&n<3600:o=`${parseInt(n/60)}分钟前`;break;case n>=3600&&n<86400:o=`${parseInt(n/3600)}小时前`;break;case n>=86400&&n<2592e3:o=`${parseInt(n/86400)}天前`;break;default:o=!1===t?n>=2592e3&&n<31536e3?`${parseInt(n/2592e3)}个月前`:`${parseInt(n/31536e3)}年前`:sl(e,t)}return o},trim:al,queryParams:ll,toast:cl,type2icon:function(e="success",t=!1){-1==["primary","info","error","warning","success"].indexOf(e)&&(e="success");let n="";switch(e){case"primary":case"info":n="info-circle";break;case"error":n="close-circle";break;case"warning":n="error-circle";break;default:n="checkmark-circle"}return t&&(n+="-fill"),n},priceFormat:ul,getDuration:function(e,t=!0){const n=parseInt(e);return t?/s$/.test(e)?e:e>30?`${e}ms`:`${e}s`:/ms$/.test(e)?n:/s$/.test(e)?n>30?n:1e3*n:n},padZero:function(e){return`00${e}`.slice(-2)},formValidate:pl,getProperty:function(e,t){if("object"!=typeof e||null==e)return"";if("string"!=typeof t||""===t)return"";if(-1!==t.indexOf(".")){const n=t.split(".");let o=e[n[0]]||{};for(let e=1;e1;){const r=t[0];e[r]&&"object"==typeof e[r]||(e[r]={}),t.shift(),o(e[r],t,n)}else e[t[0]]=n};if("string"!=typeof t||""===t);else if(-1!==t.indexOf(".")){const r=t.split(".");o(e,r,n)}else e[t]=n},page:fl,pages:function(){return getCurrentPages()},getValueByPath:function(e,t){return t.split(".").reduce(((e,t)=>e&&void 0!==e[t]?e[t]:void 0),e)}};const hl=(new class{constructor(){this.config={type:"navigateTo",url:"",delta:1,params:{},animationType:"pop-in",animationDuration:300,intercept:!1},this.route=this.route.bind(this)}addRootPath(e){return"/"===e[0]?e:`/${e}`}mixinParam(e,t){e=e&&this.addRootPath(e);let n="";return/.*\/.*\?.*=.*/.test(e)?(n=ll(t,!1),e+`&${n}`):(n=ll(t),e+n)}async route(e={},t={}){let n={};if("string"==typeof e?(n.url=this.mixinParam(e,t),n.type="navigateTo"):(n=ol(this.config,e),n.url=this.mixinParam(e.url,e.params)),n.url!==fl())if(t.intercept&&(this.config.intercept=t.intercept),n.params=t,n=ol(this.config,n),"function"==typeof bn.$u.routeIntercept){await new Promise(((e,t)=>{bn.$u.routeIntercept(n,e)}))&&this.openPage(n)}else this.openPage(n)}openPage(e){const{url:t,type:n,delta:o,animationType:r,animationDuration:i}=e;"navigateTo"!=e.type&&"to"!=e.type||bn.navigateTo({url:t,animationType:r,animationDuration:i}),"redirectTo"!=e.type&&"redirect"!=e.type||bn.redirectTo({url:t}),"switchTab"!=e.type&&"tab"!=e.type||bn.switchTab({url:t}),"reLaunch"!=e.type&&"launch"!=e.type||bn.reLaunch({url:t}),"navigateBack"!=e.type&&"back"!=e.type||bn.navigateBack({delta:o})}}).route,gl={props:{customStyle:{type:[Object,String],default:()=>({})},customClass:{type:String,default:""},url:{type:String,default:""},linkType:{type:String,default:"navigateTo"}},data:()=>({}),onLoad(){this.$u.getRect=this.$uGetRect},created(){this.$u.getRect=this.$uGetRect},computed:{$u:()=>ol(bn.$u,{props:void 0,http:void 0,mixin:void 0}),bem:()=>function(e,t,n){const o=`u-${e}--`,r={};return t&&t.map((e=>{r[o+this[e]]=!0})),n&&n.map((e=>{this[e]?r[o+e]=this[e]:delete r[o+e]})),Object.keys(r)}},methods:{openPage(e="url"){const t=this[e];t&&hl({type:this.linkType,url:t})},navTo(e="",t="navigateTo"){hl({type:this.linkType,url:e})},$uGetRect(e,t){return new Promise((n=>{bn.createSelectorQuery().in(this)[t?"selectAll":"select"](e).boundingClientRect((e=>{t&&Array.isArray(e)&&e.length&&n(e),!t&&e&&n(e)})).exec()}))},getParentData(e=""){this.parent||(this.parent={}),this.parent=Za.call(this,e),this.parent.children&&-1===this.parent.children.indexOf(this)&&this.parent.children.push(this),this.parent&&this.parentData&&Object.keys(this.parentData).map((e=>{this.parentData[e]=this.parent[e]}))},preventEvent(e){e&&"function"==typeof e.stopPropagation&&e.stopPropagation()},noop(e){this.preventEvent(e)}},onReachBottom(){bn.$emit("uOnReachBottom")},beforeUnmount(){if(this.parent&&Ha.array(this.parent.children)){const e=this.parent.children;e.map(((t,n)=>{t===this&&e.splice(n,1)}))}}},ml={options:{virtualHost:!0}},{toString:yl}=Object.prototype;function bl(e){return"[object Array]"===yl.call(e)}function vl(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),bl(e))for(let n=0,o=e.length;n{null!=t&&(bl(t)?n=`${n}[]`:t=[t],vl(t,(t=>{!function(e){return"[object Date]"===yl.call(e)}(t)?function(e){return null!==e&&"object"==typeof e}(t)&&(t=JSON.stringify(t)):t=t.toISOString(),e.push(`${wl(n)}=${wl(t)}`)})))})),n=e.join("&")}var o;if(n){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+n}return e}const Bl=(e,t)=>{const n={};return e.forEach((e=>{Al(t[e])||(n[e]=t[e])})),n},El=e=>(e=>new Promise(((t,n)=>{const o=Sl((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;const s={url:o,header:e.header,complete:r=>{e.fullPath=o,r.config=e;try{"string"==typeof r.data&&(r.data=JSON.parse(r.data))}catch(i){}!function(e,t,n){const{validateStatus:o}=n.config,r=n.statusCode;!r||o&&!o(r)?t(n):e(n)}(t,n,r)}};let a;if("UPLOAD"===e.method){delete s.header["content-type"],delete s.header["Content-Type"];const t={filePath:e.filePath,name:e.name},n=["formData"];a=bn.uploadFile({...s,...t,...Bl(n,e)})}else if("DOWNLOAD"===e.method)a=bn.downloadFile(s);else{const t=["data","method","timeout","dataType","responseType"];a=bn.request({...s,...Bl(t,e)})}e.getTask&&e.getTask(a,e)})))(e);function Cl(){this.handlers=[]}Cl.prototype.use=function(e,t){return this.handlers.push({fulfilled:e,rejected:t}),this.handlers.length-1},Cl.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},Cl.prototype.forEach=function(e){this.handlers.forEach((t=>{null!==t&&e(t)}))};const kl=(e,t,n)=>{const o={};return e.forEach((e=>{Al(n[e])?Al(t[e])||(o[e]=t[e]):o[e]=n[e]})),o},Ol={baseURL:"",header:{},method:"GET",dataType:"json",responseType:"text",custom:{},timeout:6e4,validateStatus:function(e){return e>=200&&e<300}};var jl=function(){function e(e,t){return null!=t&&e instanceof t}var t,n,o;try{t=Map}catch(a){t=function(){}}try{n=Set}catch(a){n=function(){}}try{o=Promise}catch(a){o=function(){}}function r(i,a,l,c,u){"object"==typeof a&&(l=a.depth,c=a.prototype,u=a.includeNonEnumerable,a=a.circular);var p=[],f=[],d="undefined"!=typeof Buffer;return void 0===a&&(a=!0),void 0===l&&(l=1/0),function i(l,h){if(null===l)return null;if(0===h)return l;var g,m;if("object"!=typeof l)return l;if(e(l,t))g=new t;else if(e(l,n))g=new n;else if(e(l,o))g=new o((function(e,t){l.then((function(t){e(i(t,h-1))}),(function(e){t(i(e,h-1))}))}));else if(r.__isArray(l))g=[];else if(r.__isRegExp(l))g=new RegExp(l.source,s(l)),l.lastIndex&&(g.lastIndex=l.lastIndex);else if(r.__isDate(l))g=new Date(l.getTime());else{if(d&&Buffer.isBuffer(l))return Buffer.from?g=Buffer.from(l):(g=new Buffer(l.length),l.copy(g)),g;e(l,Error)?g=Object.create(l):void 0===c?(m=Object.getPrototypeOf(l),g=Object.create(m)):(g=Object.create(c),m=c)}if(a){var y=p.indexOf(l);if(-1!=y)return f[y];p.push(l),f.push(g)}for(var b in e(l,t)&&l.forEach((function(e,t){var n=i(t,h-1),o=i(e,h-1);g.set(n,o)})),e(l,n)&&l.forEach((function(e){var t=i(e,h-1);g.add(t)})),l){Object.getOwnPropertyDescriptor(l,b)&&(g[b]=i(l[b],h-1));try{if("undefined"===Object.getOwnPropertyDescriptor(l,b).set)continue;g[b]=i(l[b],h-1)}catch(B){if(B instanceof TypeError)continue;if(B instanceof ReferenceError)continue}}if(Object.getOwnPropertySymbols){var v=Object.getOwnPropertySymbols(l);for(b=0;bNumber(e)))}return e}function Tl(e){const t=e;if(/^(rgb|RGB)/.test(t)){const e=t.replace(/(?:\(|\)|rgb|RGB)*/g,"").split(",");let n="#";for(let t=0;t{const n=t.method||e.method||"GET";let o={baseURL:e.baseURL||"",method:n,url:t.url||"",params:t.params||{},custom:{...e.custom||{},...t.custom||{}},header:xl(e.header||{},t.header||{})};if(o={...o,...kl(["getTask","validateStatus"],e,t)},"DOWNLOAD"===n);else if("UPLOAD"===n)delete o.header["content-type"],delete o.header["Content-Type"],["filePath","name","formData"].forEach((e=>{Al(t[e])||(o[e]=t[e])}));else{const n=["data","timeout","dataType","responseType"];o={...o,...kl(n,e,t)}}return o})(this.config,e);const t=[El,void 0];let n=Promise.resolve(e);for(this.interceptors.request.forEach((e=>{t.unshift(e.fulfilled,e.rejected)})),this.interceptors.response.forEach((e=>{t.push(e.fulfilled,e.rejected)}));t.length;)n=n.then(t.shift(),t.shift());return n}request(e={}){return this.middleware(e)}get(e,t={}){return this.middleware({url:e,method:"GET",...t})}post(e,t,n={}){return this.middleware({url:e,data:t,method:"POST",...n})}put(e,t,n={}){return this.middleware({url:e,data:t,method:"PUT",...n})}delete(e,t,n={}){return this.middleware({url:e,data:t,method:"DELETE",...n})}connect(e,t,n={}){return this.middleware({url:e,data:t,method:"CONNECT",...n})}head(e,t,n={}){return this.middleware({url:e,data:t,method:"HEAD",...n})}options(e,t,n={}){return this.middleware({url:e,data:t,method:"OPTIONS",...n})}trace(e,t,n={}){return this.middleware({url:e,data:t,method:"TRACE",...n})}upload(e,t={}){return t.url=e,t.method="UPLOAD",this.middleware(t)}download(e,t={}){return t.url=e,t.method="DOWNLOAD",this.middleware(t)}};dl.setConfig=function(e){dl.shallowMerge(Ja,e.config||{}),dl.shallowMerge(Wl,e.props||{}),dl.shallowMerge(ql,e.color||{}),dl.shallowMerge($l,e.zIndex||{})};const Xl={route:hl,date:dl.timeFormat,colorGradient:Ql.colorGradient,hexToRgb:Ql.hexToRgb,rgbToHex:Ql.rgbToHex,colorToRgba:Ql.colorToRgba,test:Ha,type:["primary","success","error","warning","info"],http:Jl,config:Ja,zIndex:$l,debounce:function(e,t=500,n=!1){if(null!==Ml&&clearTimeout(Ml),n){const n=!Ml;Ml=setTimeout((()=>{Ml=null}),t),n&&"function"==typeof e&&e()}else Ml=setTimeout((()=>{"function"==typeof e&&e()}),t)},throttle:function(e,t=500,n=!0){n?Nl||(Nl=!0,"function"==typeof e&&e(),setTimeout((()=>{Nl=!1}),t)):Nl||(Nl=!0,setTimeout((()=>{Nl=!1,"function"==typeof e&&e()}),t))},mixin:gl,mpMixin:ml,props:Wl,...dl,color:ql,platform:"weixin"},_l={install:e=>{bn.$u=Xl,e.config.globalProperties.$u=Xl,e.mixin(gl)}},Kl=e=>(t,n=Bi())=>{!Oi&&Qr(e,t,n)},Gl=Kl(R),Zl=Kl(V),ec=Kl(q),tc=Kl(X),nc=Kl(K),oc=Kl(ne),rc=Kl(re),ic=Kl(ie),sc=Kl(se),ac=Kl(le);var lc=Object.prototype.toString;function cc(e){return"[object Array]"===lc.call(e)}function uc(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),cc(e))for(var n=0,o=e.length;n{let n={};return e.forEach((e=>{fc(t[e])||(n[e]=t[e])})),n},mc=e=>(e=>new Promise(((t,n)=>{let o=hc((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,e.paramsSerializer);var r,i;const s={url:o,header:e.header,complete:r=>{e.fullPath=o,r.config=e,r.rawData=r.data;try{let t=!1;const n=typeof e.forcedJSONParsing;"boolean"===n?t=e.forcedJSONParsing:"object"===n&&(t=(e.forcedJSONParsing.include||[]).includes(e.method)),t&&"string"==typeof r.data&&(r.data=JSON.parse(r.data))}catch(i){}!function(e,t,n){const o=n.config.validateStatus,r=n.statusCode;!r||o&&!o(r)?t(n):e(n)}(t,n,r)}};let a;if("UPLOAD"===e.method){delete s.header["content-type"],delete s.header["Content-Type"];let t={filePath:e.filePath,name:e.name};const n=["timeout","formData"];a=bn.uploadFile({...s,...t,...gc(n,e)})}else if("DOWNLOAD"===e.method){const t=["timeout","filePath"];a=bn.downloadFile({...s,...gc(t,e)})}else{const t=["data","method","timeout","dataType","responseType","enableHttp2","enableQuic","enableCache","enableHttpDNS","httpDNSServiceId","enableChunked","forceCellularNetwork"];a=bn.request({...s,...gc(t,e)})}e.getTask&&e.getTask(a,e)})))(e);function yc(){this.handlers=[]}yc.prototype.use=function(e,t){return this.handlers.push({fulfilled:e,rejected:t}),this.handlers.length-1},yc.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},yc.prototype.forEach=function(e){this.handlers.forEach((t=>{null!==t&&e(t)}))};const bc=(e,t,n)=>{let o={};return e.forEach((e=>{fc(n[e])?fc(t[e])||(o[e]=t[e]):o[e]=n[e]})),o},vc={baseURL:"",header:{},method:"GET",dataType:"json",paramsSerializer:null,responseType:"text",custom:{},timeout:6e4,validateStatus:function(e){return e>=200&&e<300},forcedJSONParsing:!0};var xc=function(){function e(e,t){return null!=t&&e instanceof t}var t,n,o;try{t=Map}catch(a){t=function(){}}try{n=Set}catch(a){n=function(){}}try{o=Promise}catch(a){o=function(){}}function r(i,a,l,c,u){"object"==typeof a&&(l=a.depth,c=a.prototype,u=a.includeNonEnumerable,a=a.circular);var p=[],f=[],d="undefined"!=typeof Buffer;return void 0===a&&(a=!0),void 0===l&&(l=1/0),function i(l,h){if(null===l)return null;if(0===h)return l;var g,m;if("object"!=typeof l)return l;if(e(l,t))g=new t;else if(e(l,n))g=new n;else if(e(l,o))g=new o((function(e,t){l.then((function(t){e(i(t,h-1))}),(function(e){t(i(e,h-1))}))}));else if(r.__isArray(l))g=[];else if(r.__isRegExp(l))g=new RegExp(l.source,s(l)),l.lastIndex&&(g.lastIndex=l.lastIndex);else if(r.__isDate(l))g=new Date(l.getTime());else{if(d&&Buffer.isBuffer(l))return Buffer.from?g=Buffer.from(l):(g=new Buffer(l.length),l.copy(g)),g;e(l,Error)?g=Object.create(l):void 0===c?(m=Object.getPrototypeOf(l),g=Object.create(m)):(g=Object.create(c),m=c)}if(a){var y=p.indexOf(l);if(-1!=y)return f[y];p.push(l),f.push(g)}for(var b in e(l,t)&&l.forEach((function(e,t){var n=i(t,h-1),o=i(e,h-1);g.set(n,o)})),e(l,n)&&l.forEach((function(e){var t=i(e,h-1);g.add(t)})),l){Object.getOwnPropertyDescriptor(l,b)&&(g[b]=i(l[b],h-1));try{if("undefined"===Object.getOwnPropertyDescriptor(l,b).set)continue;g[b]=i(l[b],h-1)}catch(B){if(B instanceof TypeError)continue;if(B instanceof ReferenceError)continue}}if(Object.getOwnPropertySymbols){var v=Object.getOwnPropertySymbols(l);for(b=0;b=t?e:""+Array(t+1-o.length).join(n)+e},b={s:y,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),o=Math.floor(n/60),r=n%60;return(t<=0?"+":"-")+y(o,2,"0")+":"+y(r,2,"0")},m:function e(t,n){if(t.date()1)return e(s[0])}else{var a=t.name;x[a]=t,r=a}return!o&&r&&(v=r),r||!o&&v},B=function(e,t){if(w(e))return e.clone();var n="object"==typeof t?t:{};return n.date=e,n.args=arguments,new C(n)},E=b;E.l=S,E.i=w,E.w=function(e,t){return B(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var C=function(){function m(e){this.$L=S(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[A]=!0}var y=m.prototype;return y.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(null===t)return new Date(NaN);if(E.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var o=t.match(h);if(o){var r=o[2]-1||0,i=(o[7]||"0").substring(0,3);return n?new Date(Date.UTC(o[1],r,o[3]||1,o[4]||0,o[5]||0,o[6]||0,i)):new Date(o[1],r,o[3]||1,o[4]||0,o[5]||0,o[6]||0,i)}}return new Date(t)}(e),this.init()},y.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()},y.$utils=function(){return E},y.isValid=function(){return!(this.$d.toString()===d)},y.isSame=function(e,t){var n=B(e);return this.startOf(t)<=n&&n<=this.endOf(t)},y.isAfter=function(e,t){return B(e)0,m<=g.r||!g.r){m<=1&&h>0&&(g=f[h-1]);var y=p[g.l];a&&(m=a(""+m)),c="string"==typeof y?y.replace("%d",m):y(m,o,g.l,u);break}}if(o)return c;var b=u?p.future:p.past;return"function"==typeof b?b(c):b.replace("%s",c)},o.to=function(e,t){return i(e,t,this,!0)},o.from=function(e,t){return i(e,t,this)};var s=function(e){return e.$u?n.utc():n()};o.toNow=function(e){return this.to(s(this),e)},o.fromNow=function(e){return this.from(s(this),e)}};const Bc=Sc;var Ec={};({get exports(){return Ec},set exports(e){Ec=e}}).exports=function(e){function t(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var n=t(e),o={name:"zh-cn",weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"周日_周一_周二_周三_周四_周五_周六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),ordinal:function(e,t){return"W"===t?e+"周":e+"日"},weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日Ah点mm分",LLLL:"YYYY年M月D日ddddAh点mm分",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},relativeTime:{future:"%s内",past:"%s前",s:"几秒",m:"1 分钟",mm:"%d 分钟",h:"1 小时",hh:"%d 小时",d:"1 天",dd:"%d 天",M:"1 个月",MM:"%d 个月",y:"1 年",yy:"%d 年"},meridiem:function(e,t){var n=100*e+t;return n<600?"凌晨":n<900?"早上":n<1100?"上午":n<1300?"中午":n<1800?"下午":"晚上"}};return n.default.locale(o,null,!0),o}(Ac);const Cc={props:{name:{type:String,default:()=>Wl.icon.name},color:{type:String,default:()=>Wl.icon.color},size:{type:[String,Number],default:()=>Wl.icon.size},bold:{type:Boolean,default:()=>Wl.icon.bold},index:{type:[String,Number],default:()=>Wl.icon.index},hoverClass:{type:String,default:()=>Wl.icon.hoverClass},customPrefix:{type:String,default:()=>Wl.icon.customPrefix},label:{type:[String,Number],default:()=>Wl.icon.label},labelPos:{type:String,default:()=>Wl.icon.labelPos},labelSize:{type:[String,Number],default:()=>Wl.icon.labelSize},labelColor:{type:String,default:()=>Wl.icon.labelColor},space:{type:[String,Number],default:()=>Wl.icon.space},imgMode:{type:String,default:()=>Wl.icon.imgMode},width:{type:[String,Number],default:()=>Wl.icon.width},height:{type:[String,Number],default:()=>Wl.icon.height},top:{type:[String,Number],default:()=>Wl.icon.top},stop:{type:Boolean,default:()=>Wl.icon.stop}}},kc={trustTags:Qc("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:Qc("address,article,aside,body,caption,center,cite,footer,header,html,nav,pre,section"),inlineTags:Qc("abbr,b,big,code,del,em,i,ins,label,q,small,span,strong,sub,sup"),ignoreTags:Qc("area,base,canvas,embed,frame,head,iframe,input,link,map,meta,param,rp,script,source,style,textarea,title,track,wbr"),voidTags:Qc("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"}},Oc={},{windowWidth:jc}=bn.getWindowInfo(),{system:Pc}=bn.getDeviceInfo(),Ic=Qc(" ,\r,\n,\t,\f");let Tc=0;function Qc(e){const t=Object.create(null),n=e.split(",");for(let o=n.length;o--;)t[n[o]]=!0;return t}function Nc(e,t){let n=e.indexOf("&");for(;-1!==n;){const o=e.indexOf(";",n+3);let r;if(-1===o)break;"#"===e[n+1]?(r=parseInt(("x"===e[n+2]?"0":"")+e.substring(n+2,o)),isNaN(r)||(e=e.substr(0,n)+String.fromCharCode(r)+e.substr(o+1))):(r=e.substring(n+1,o),(kc.entities[r]||"amp"===r&&t)&&(e=e.substr(0,n)+(kc.entities[r]||"&")+e.substr(o+1))),n=e.indexOf("&",n+1)}return e}function Mc(e){let t=e.length-1;for(let n=t;n>=-1;n--)(-1===n||e[n].c||!e[n].name||"div"!==e[n].name&&"p"!==e[n].name&&"h"!==e[n].name[0]||(e[n].attrs.style||"").includes("inline"))&&(t-n>=5&&e.splice(n+1,t-n,{name:"div",attrs:{},children:e.slice(n+1,t+1)}),t=n-1)}function zc(e){this.options=e||{},this.tagStyle=Object.assign({},kc.tagStyle,this.options.tagStyle),this.imgList=e.imgList||[],this.imgList._unloadimgs=0,this.plugins=e.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 Fc(e){this.handler=e}zc.prototype.parse=function(e){for(let t=this.plugins.length;t--;)this.plugins[t].onUpdate&&(e=this.plugins[t].onUpdate(e,kc)||e);for(new Fc(this).parse(e);this.stack.length;)this.popNode();return this.nodes.length>50&&Mc(this.nodes),this.nodes},zc.prototype.expose=function(){for(let e=this.stack.length;e--;){const t=this.stack[e];if(t.c||"a"===t.name||"video"===t.name||"audio"===t.name)return;t.c=1}},zc.prototype.hook=function(e){for(let t=this.plugins.length;t--;)if(this.plugins[t].onParse&&!1===this.plugins[t].onParse(e,this))return!1;return!0},zc.prototype.getUrl=function(e){const t=this.options.domain;return"/"===e[0]?"/"===e[1]?e=(t?t.split("://")[0]:"http")+":"+e:t&&(e=t+e):e.includes("data:")||e.includes("://")||t&&(e=t+"/"+e),e},zc.prototype.parseStyle=function(e){const t=e.attrs,n=(this.tagStyle[e.name]||"").split(";").concat((t.style||"").split(";")),o={};let r="";t.id&&!this.xml&&(this.options.useAnchor?this.expose():"img"!==e.name&&"a"!==e.name&&"video"!==e.name&&"audio"!==e.name&&(t.id=void 0)),t.width&&(o.width=parseFloat(t.width)+(t.width.includes("%")?"%":"px"),t.width=void 0),t.height&&(o.height=parseFloat(t.height)+(t.height.includes("%")?"%":"px"),t.height=void 0);for(let i=0,s=n.length;i0||s.includes("safe"))r+=`;${t}:${s}`;else if(!o[t]||s.includes("import")||!o[t].includes("import")){if(s.includes("url")){let e=s.indexOf("(")+1;if(e){for(;'"'===s[e]||"'"===s[e]||Ic[s[e]];)e++;s=s.substr(0,e)+this.getUrl(s.substr(e))}}else s.includes("rpx")&&(s=s.replace(/[0-9.]+\s*rpx/g,(e=>parseFloat(e)*jc/750+"px")));o[t]=s}}return e.attrs.style=r,o},zc.prototype.onTagName=function(e){this.tagName=this.xml?e:e.toLowerCase(),"svg"===this.tagName&&(this.xml=(this.xml||0)+1)},zc.prototype.onAttrName=function(e){"data-"===(e=this.xml?e:e.toLowerCase()).substr(0,5)?"data-src"!==e||this.attrs.src?"img"===this.tagName||"a"===this.tagName?this.attrName=e:this.attrName=void 0:this.attrName="src":(this.attrName=e,this.attrs[e]="T")},zc.prototype.onAttrVal=function(e){const t=this.attrName||"";"style"===t||"href"===t?this.attrs[t]=Nc(e,!0):t.includes("src")?this.attrs[t]=this.getUrl(Nc(e,!0)):t&&(this.attrs[t]=e)},zc.prototype.onOpenTag=function(e){const t=Object.create(null);t.name=this.tagName,t.attrs=this.attrs,this.options.nodes.length&&(t.type="node"),this.attrs=Object.create(null);const n=t.attrs,o=this.stack[this.stack.length-1],r=o?o.children:this.nodes,i=this.xml?e:kc.voidTags[t.name];if(Oc[t.name]&&(n.class=Oc[t.name]+(n.class?" "+n.class:"")),"embed"===t.name){const e=n.src||"";e.includes(".mp4")||e.includes(".3gp")||e.includes(".m3u8")||(n.type||"").includes("video")?t.name="video":(e.includes(".mp3")||e.includes(".wav")||e.includes(".aac")||e.includes(".m4a")||(n.type||"").includes("audio"))&&(t.name="audio"),n.autostart&&(n.autoplay="T"),n.controls="T"}if("video"!==t.name&&"audio"!==t.name||("video"!==t.name||n.id||(n.id="v"+Tc++),n.controls||n.autoplay||(n.controls="T"),t.src=[],n.src&&(t.src.push(n.src),n.src=void 0),this.expose()),i){if(!this.hook(t)||kc.ignoreTags[t.name])return void("base"!==t.name||this.options.domain?"source"===t.name&&o&&("video"===o.name||"audio"===o.name)&&n.src&&o.src.push(n.src):this.options.domain=n.href);const e=this.parseStyle(t);if("img"===t.name){if(n.src&&(n.src.includes("webp")&&(t.webp="T"),n.src.includes("data:")&&!n["original-src"]&&(n.ignore="T"),!n.ignore||t.webp||n.src.includes("cloud://"))){for(let r=this.stack.length;r--;){const o=this.stack[r];"a"===o.name&&(t.a=o.attrs),"table"!==o.name||t.webp||n.src.includes("cloud://")||(!e.display||e.display.includes("inline")?t.t="inline-block":t.t=e.display,e.display=void 0);const i=o.attrs.style||"";if(!i.includes("flex:")||i.includes("flex:0")||i.includes("flex: 0")||e.width&&!(parseInt(e.width)>100))if(i.includes("flex")&&"100%"===e.width)for(let t=r+1;t.5?o[e].toUpperCase():o[e];t+=o.substr(e),o=t}}this.imgList.push(o),t.t||(this.imgList._unloadimgs+=1)}"inline"===e.display&&(e.display=""),n.ignore&&(e["max-width"]=e["max-width"]||"100%",n.style+=";-webkit-touch-callout:none"),parseInt(e.width)>jc&&(e.height=void 0),isNaN(parseInt(e.width))||(t.w="T"),!isNaN(parseInt(e.height))&&(!e.height.includes("%")||o&&(o.attrs.style||"").includes("height"))&&(t.h="T")}else if("svg"===t.name)return r.push(t),this.stack.push(t),void this.popNode();for(const t in e)e[t]&&(n.style+=`;${t}:${e[t].replace(" !important","")}`);n.style=n.style.substr(1)||void 0,n.style||delete n.style}else("pre"===t.name||(n.style||"").includes("white-space")&&n.style.includes("pre"))&&2!==this.pre&&(this.pre=t.pre=1),t.children=[],this.stack.push(t);r.push(t)},zc.prototype.onCloseTag=function(e){let t;for(e=this.xml?e:e.toLowerCase(),t=this.stack.length;t--&&this.stack[t].name!==e;);if(-1!==t)for(;this.stack.length>t;)this.popNode();else if("p"===e||"br"===e){(this.stack.length?this.stack[this.stack.length-1].children:this.nodes).push({name:e,attrs:{class:Oc[e]||"",style:this.tagStyle[e]||""}})}},zc.prototype.popNode=function(){const e=this.stack.pop();let t=e.attrs;const n=e.children,o=this.stack[this.stack.length-1],r=o?o.children:this.nodes;if(!this.hook(e)||kc.ignoreTags[e.name])return"title"===e.name&&n.length&&"text"===n[0].type&&this.options.setTitle&&bn.setNavigationBarTitle({title:n[0].text}),void r.pop();if(e.pre&&2!==this.pre){this.pre=e.pre=void 0;for(let e=this.stack.length;e--;)this.stack[e].pre&&(this.pre=1)}const i={};if("svg"===e.name){if(this.xml>1)return void this.xml--;let n="";const o=t.style;return t.style="",t.xmlns="http://www.w3.org/2000/svg",function e(t){if("text"===t.type)return void(n+=t.text);const o=kc.svgDict[t.name]||t.name;n+="<"+o;for(const r in t.attrs){const e=t.attrs[r];e&&(n+=` ${kc.svgDict[r]||r}="${e}"`)}if(t.children){n+=">";for(let n=0;n"}else n+="/>"}(e),e.name="img",e.attrs={src:"data:image/svg+xml;utf8,"+n.replace(/#/g,"%23"),style:o,ignore:"T"},e.children=void 0,void(this.xml=!1)}if(t.align&&("table"===e.name?"center"===t.align?i["margin-inline-start"]=i["margin-inline-end"]="auto":i.float=t.align:i["text-align"]=t.align,t.align=void 0),t.dir&&(i.direction=t.dir,t.dir=void 0),"font"===e.name&&(t.color&&(i.color=t.color,t.color=void 0),t.face&&(i["font-family"]=t.face,t.face=void 0),t.size)){let e=parseInt(t.size);isNaN(e)||(e<1?e=1:e>7&&(e=7),i["font-size"]=["x-small","small","medium","large","x-large","xx-large","xxx-large"][e-1]),t.size=void 0}if((t.class||"").includes("align-center")&&(i["text-align"]="center"),Object.assign(i,this.parseStyle(e)),"table"!==e.name&&parseInt(i.width)>jc&&(i["max-width"]="100%",i["box-sizing"]="border-box"),kc.blockTags[e.name]?e.name="div":kc.trustTags[e.name]||this.xml||(e.name="span"),"a"===e.name||"ad"===e.name)this.expose();else if("video"===e.name)(i.height||"").includes("auto")&&(i.height=void 0);else if("ul"!==e.name&&"ol"!==e.name||!e.c){if("table"===e.name){let o=parseFloat(t.cellpadding),r=parseFloat(t.cellspacing);const s=parseFloat(t.border),a=i["border-color"],l=i["border-style"];if(e.c&&(isNaN(o)&&(o=2),isNaN(r)&&(r=2)),s&&(t.style+=`;border:${s}px ${l||"solid"} ${a||"gray"}`),e.flag&&e.c){i.display="grid",r?(i["grid-gap"]=r+"px",i.padding=r+"px"):s&&(t.style+=";border-left:0;border-top:0");const c=[],u=[],p=[],f={};!function e(t){for(let n=0;n=50&&e.c&&!(i.display||"").includes("flex")&&Mc(n);for(const a in i)if(i[a]){const n=`;${a}:${i[a].replace(" !important","")}`;s&&(a.includes("flex")&&"flex-direction"!==a||"align-self"===a||a.includes("grid")||"-"===i[a][0]||a.includes("width")&&n.includes("%"))?(e.f+=n,"width"===a&&(t.style+=";width:100%")):t.style+=n}t.style=t.style.substr(1)||void 0;for(const a in t)t[a]||delete t[a]},zc.prototype.onText=function(e){if(!this.pre){let t,n="";for(let o=0,r=e.length;o"===this.content[this.i]||t&&">"===this.content[this.i+1])&&(e&&this.handler[e](this.content.substring(this.start,this.i)),this.i+=t?2:1,this.start=this.i,this.handler.onOpenTag(t),"script"===this.handler.tagName?(this.i=this.content.indexOf("="a"&&e<="z"||e>="A"&&e<="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("/"===e||"!"===e||"?"===e){this.start!==this.i&&this.handler.onText(this.content.substring(this.start,this.i));const t=this.content[this.i+2];if("/"===e&&(t>="a"&&t<="z"||t>="A"&&t<="Z"))return this.i+=2,this.start=this.i,void(this.state=this.endTag);let n="--\x3e";"!"===e&&"-"===this.content[this.i+2]&&"-"===this.content[this.i+3]||(n=">"),this.i=this.content.indexOf(n,this.i),-1!==this.i&&(this.i+=n.length,this.start=this.i)}else this.i++},Fc.prototype.tagName=function(){if(Ic[this.content[this.i]]){for(this.handler.onTagName(this.content.substring(this.start,this.i));Ic[this.content[++this.i]];);this.i"===e||"/"===e){if(this.handler.onCloseTag(this.content.substring(this.start,this.i)),">"!==e&&(this.i=this.content.indexOf(">",this.i),-1===this.i))return;this.start=++this.i,this.state=this.text}else this.i++};const Dc={props:{mode:{type:String,default:()=>Wl.keyboard.mode},dotDisabled:{type:Boolean,default:()=>Wl.keyboard.dotDisabled},tooltip:{type:Boolean,default:()=>Wl.keyboard.tooltip},showTips:{type:Boolean,default:()=>Wl.keyboard.showTips},tips:{type:String,default:()=>Wl.keyboard.tips},showCancel:{type:Boolean,default:()=>Wl.keyboard.showCancel},showConfirm:{type:Boolean,default:()=>Wl.keyboard.showConfirm},random:{type:Boolean,default:()=>Wl.keyboard.random},safeAreaInsetBottom:{type:Boolean,default:()=>Wl.keyboard.safeAreaInsetBottom},closeOnClickOverlay:{type:Boolean,default:()=>Wl.keyboard.closeOnClickOverlay},show:{type:Boolean,default:()=>Wl.keyboard.show},overlay:{type:Boolean,default:()=>Wl.keyboard.overlay},zIndex:{type:[String,Number],default:()=>Wl.keyboard.zIndex},cancelText:{type:String,default:()=>Wl.keyboard.cancelText},confirmText:{type:String,default:()=>Wl.keyboard.confirmText},autoChange:{type:Boolean,default:()=>Wl.keyboard.autoChange}}},Lc={props:{modelValue:{type:[String,Number],default:()=>Wl.input.value},type:{type:String,default:()=>Wl.input.type},fixed:{type:Boolean,default:()=>Wl.input.fixed},disabled:{type:Boolean,default:()=>Wl.input.disabled},disabledColor:{type:String,default:()=>Wl.input.disabledColor},clearable:{type:Boolean,default:()=>Wl.input.clearable},password:{type:Boolean,default:()=>Wl.input.password},maxlength:{type:[String,Number],default:()=>Wl.input.maxlength},placeholder:{type:String,default:()=>Wl.input.placeholder},placeholderClass:{type:String,default:()=>Wl.input.placeholderClass},placeholderStyle:{type:[String,Object],default:()=>Wl.input.placeholderStyle},showWordLimit:{type:Boolean,default:()=>Wl.input.showWordLimit},confirmType:{type:String,default:()=>Wl.input.confirmType},confirmHold:{type:Boolean,default:()=>Wl.input.confirmHold},holdKeyboard:{type:Boolean,default:()=>Wl.input.holdKeyboard},focus:{type:Boolean,default:()=>Wl.input.focus},autoBlur:{type:Boolean,default:()=>Wl.input.autoBlur},disableDefaultPadding:{type:Boolean,default:()=>Wl.input.disableDefaultPadding},cursor:{type:[String,Number],default:()=>Wl.input.cursor},cursorSpacing:{type:[String,Number],default:()=>Wl.input.cursorSpacing},selectionStart:{type:[String,Number],default:()=>Wl.input.selectionStart},selectionEnd:{type:[String,Number],default:()=>Wl.input.selectionEnd},adjustPosition:{type:Boolean,default:()=>Wl.input.adjustPosition},inputAlign:{type:String,default:()=>Wl.input.inputAlign},fontSize:{type:[String,Number],default:()=>Wl.input.fontSize},color:{type:String,default:()=>Wl.input.color},prefixIcon:{type:String,default:()=>Wl.input.prefixIcon},prefixIconStyle:{type:[String,Object],default:()=>Wl.input.prefixIconStyle},suffixIcon:{type:String,default:()=>Wl.input.suffixIcon},suffixIconStyle:{type:[String,Object],default:()=>Wl.input.suffixIconStyle},border:{type:String,default:()=>Wl.input.border},readonly:{type:Boolean,default:()=>Wl.input.readonly},shape:{type:String,default:()=>Wl.input.shape},formatter:{type:[Function,null],default:()=>Wl.input.formatter},ignoreCompositionEvent:{type:Boolean,default:!0}}},Hc={props:{name:{type:[String,Number],default:()=>Wl.numberBox.name},modelValue:{type:[String,Number],default:()=>Wl.numberBox.value},min:{type:[String,Number],default:()=>Wl.numberBox.min},max:{type:[String,Number],default:()=>Wl.numberBox.max},step:{type:[String,Number],default:()=>Wl.numberBox.step},integer:{type:Boolean,default:()=>Wl.numberBox.integer},disabled:{type:Boolean,default:()=>Wl.numberBox.disabled},disabledInput:{type:Boolean,default:()=>Wl.numberBox.disabledInput},asyncChange:{type:Boolean,default:()=>Wl.numberBox.asyncChange},inputWidth:{type:[String,Number],default:()=>Wl.numberBox.inputWidth},showMinus:{type:Boolean,default:()=>Wl.numberBox.showMinus},showPlus:{type:Boolean,default:()=>Wl.numberBox.showPlus},decimalLength:{type:[String,Number,null],default:()=>Wl.numberBox.decimalLength},longPress:{type:Boolean,default:()=>Wl.numberBox.longPress},color:{type:String,default:()=>Wl.numberBox.color},buttonSize:{type:[String,Number],default:()=>Wl.numberBox.buttonSize},bgColor:{type:String,default:()=>Wl.numberBox.bgColor},cursorSpacing:{type:[String,Number],default:()=>Wl.numberBox.cursorSpacing},disablePlus:{type:Boolean,default:()=>Wl.numberBox.disablePlus},disableMinus:{type:Boolean,default:()=>Wl.numberBox.disableMinus},iconStyle:{type:[Object,String],default:()=>Wl.numberBox.iconStyle}}},Uc={props:{src:{type:String,default:()=>Wl.avatar.src},shape:{type:String,default:()=>Wl.avatar.shape},size:{type:[String,Number],default:()=>Wl.avatar.size},mode:{type:String,default:()=>Wl.avatar.mode},text:{type:String,default:()=>Wl.avatar.text},bgColor:{type:String,default:()=>Wl.avatar.bgColor},color:{type:String,default:()=>Wl.avatar.color},fontSize:{type:[String,Number],default:()=>Wl.avatar.fontSize},icon:{type:String,default:()=>Wl.avatar.icon},mpAvatar:{type:Boolean,default:()=>Wl.avatar.mpAvatar},randomBgColor:{type:Boolean,default:()=>Wl.avatar.randomBgColor},defaultUrl:{type:String,default:()=>Wl.avatar.defaultUrl},colorIndex:{type:[String,Number],validator:e=>Ha.range(e,[0,19])||""===e,default:()=>Wl.avatar.colorIndex},name:{type:String,default:()=>Wl.avatar.name}}},Rc={props:{dashed:{type:Boolean,default:()=>Wl.divider.dashed},hairline:{type:Boolean,default:()=>Wl.divider.hairline},dot:{type:Boolean,default:()=>Wl.divider.dot},textPosition:{type:String,default:()=>Wl.divider.textPosition},text:{type:[String,Number],default:()=>Wl.divider.text},textSize:{type:[String,Number],default:()=>Wl.divider.textSize},textColor:{type:String,default:()=>Wl.divider.textColor},lineColor:{type:String,default:()=>Wl.divider.lineColor}}},Vc={props:{title:{type:[String,Number],default:()=>Wl.stepsItem.title},desc:{type:[String,Number],default:()=>Wl.stepsItem.desc},iconSize:{type:[String,Number],default:()=>Wl.stepsItem.iconSize},error:{type:Boolean,default:()=>Wl.stepsItem.error},itemStyle:{type:[Object],default:{}}}},qc={props:{direction:{type:String,default:()=>Wl.steps.direction},current:{type:[String,Number],default:()=>Wl.steps.current},activeColor:{type:String,default:()=>Wl.steps.activeColor},inactiveColor:{type:String,default:()=>Wl.steps.inactiveColor},activeIcon:{type:String,default:()=>Wl.steps.activeIcon},inactiveIcon:{type:String,default:()=>Wl.steps.inactiveIcon},dot:{type:Boolean,default:()=>Wl.steps.dot}}},Wc={props:{show:{type:Boolean,default:()=>Wl.loadingIcon.show},color:{type:String,default:()=>Wl.loadingIcon.color},textColor:{type:String,default:()=>Wl.loadingIcon.textColor},vertical:{type:Boolean,default:()=>Wl.loadingIcon.vertical},mode:{type:String,default:()=>Wl.loadingIcon.mode},size:{type:[String,Number],default:()=>Wl.loadingIcon.size},textSize:{type:[String,Number],default:()=>Wl.loadingIcon.textSize},text:{type:[String,Number],default:()=>Wl.loadingIcon.text},timingFunction:{type:String,default:()=>Wl.loadingIcon.timingFunction},duration:{type:[String,Number],default:()=>Wl.loadingIcon.duration},inactiveColor:{type:String,default:()=>Wl.loadingIcon.inactiveColor}}},$c={props:{show:{type:Boolean,default:()=>Wl.popup.show},overlay:{type:Boolean,default:()=>Wl.popup.overlay},mode:{type:String,default:()=>Wl.popup.mode},duration:{type:[String,Number],default:()=>Wl.popup.duration},closeable:{type:Boolean,default:()=>Wl.popup.closeable},overlayStyle:{type:[Object,String],default:()=>Wl.popup.overlayStyle},closeOnClickOverlay:{type:Boolean,default:()=>Wl.popup.closeOnClickOverlay},zIndex:{type:[String,Number],default:()=>Wl.popup.zIndex},safeAreaInsetBottom:{type:Boolean,default:()=>Wl.popup.safeAreaInsetBottom},safeAreaInsetTop:{type:Boolean,default:()=>Wl.popup.safeAreaInsetTop},closeIconPos:{type:String,default:()=>Wl.popup.closeIconPos},round:{type:[Boolean,String,Number],default:()=>Wl.popup.round},zoom:{type:Boolean,default:()=>Wl.popup.zoom},bgColor:{type:String,default:()=>Wl.popup.bgColor},overlayOpacity:{type:[Number,String],default:()=>Wl.popup.overlayOpacity}}},Yc={props:{mode:{type:String,default:()=>Wl.numberKeyboard.value},dotDisabled:{type:Boolean,default:()=>Wl.numberKeyboard.dotDisabled},random:{type:Boolean,default:()=>Wl.numberKeyboard.random}}},Jc={props:{random:{type:Boolean,default:!1},autoChange:{type:Boolean,default:!1}}},Xc={props:{duration:{type:Number,default:()=>Wl.tabs.duration},list:{type:Array,default:()=>Wl.tabs.list},lineColor:{type:String,default:()=>Wl.tabs.lineColor},activeStyle:{type:[String,Object],default:()=>Wl.tabs.activeStyle},inactiveStyle:{type:[String,Object],default:()=>Wl.tabs.inactiveStyle},lineWidth:{type:[String,Number],default:()=>Wl.tabs.lineWidth},lineHeight:{type:[String,Number],default:()=>Wl.tabs.lineHeight},lineBgSize:{type:String,default:()=>Wl.tabs.lineBgSize},itemStyle:{type:[String,Object],default:()=>Wl.tabs.itemStyle},scrollable:{type:Boolean,default:()=>Wl.tabs.scrollable},current:{type:[Number,String],default:()=>Wl.tabs.current},keyName:{type:String,default:()=>Wl.tabs.keyName}}},_c={props:{type:{type:String,default:()=>Wl.text.type},show:{type:Boolean,default:()=>Wl.text.show},text:{type:[String,Number],default:()=>Wl.text.text},prefixIcon:{type:String,default:()=>Wl.text.prefixIcon},suffixIcon:{type:String,default:()=>Wl.text.suffixIcon},mode:{type:String,default:()=>Wl.text.mode},href:{type:String,default:()=>Wl.text.href},format:{type:[String,Function],default:()=>Wl.text.format},call:{type:Boolean,default:()=>Wl.text.call},openType:{type:String,default:()=>Wl.text.openType},bold:{type:Boolean,default:()=>Wl.text.bold},block:{type:Boolean,default:()=>Wl.text.block},lines:{type:[String,Number],default:()=>Wl.text.lines},color:{type:String,default:()=>Wl.text.color},size:{type:[String,Number],default:()=>Wl.text.size},iconStyle:{type:[Object,String],default:()=>Wl.text.iconStyle},decoration:{tepe:String,default:()=>Wl.text.decoration},margin:{type:[Object,String,Number],default:()=>Wl.text.margin},lineHeight:{type:[String,Number],default:()=>Wl.text.lineHeight},align:{type:String,default:()=>Wl.text.align},wordWrap:{type:String,default:()=>Wl.text.wordWrap},flex1:{type:Boolean,default:()=>Wl.text.flex1}}},Kc={computed:{value(){const{text:e,mode:t,format:n,href:o}=this;return"price"===t?Ha.func(n)?n(e):ul(e,2):"date"===t?(Ha.date(e),Ha.func(n)?n(e):sl(e,n||"yyyy-mm-dd")):"phone"===t?Ha.func(n)?n(e):"encrypt"===n?`${e.substr(0,3)}****${e.substr(7)}`:e:"name"===t?Ha.func(n)?n(e):"encrypt"===n?this.formatName(e):e:"link"===t?(Ha.url(o),e):e}},methods:{formatName(e){let t="";if(2===e.length)t=e.substr(0,1)+"*";else if(e.length>2){let n="";for(let t=0,o=e.length-2;tWl.line.color},length:{type:[String,Number],default:()=>Wl.line.length},direction:{type:String,default:()=>Wl.line.direction},hairline:{type:Boolean,default:()=>Wl.line.hairline},margin:{type:[String,Number],default:()=>Wl.line.margin},dashed:{type:Boolean,default:()=>Wl.line.dashed}}},tu={props:{show:{type:Boolean,default:()=>Wl.overlay.show},zIndex:{type:[String,Number],default:()=>Wl.overlay.zIndex},duration:{type:[String,Number],default:()=>Wl.overlay.duration},opacity:{type:[String,Number],default:()=>Wl.overlay.opacity}}},nu={props:{bgColor:{type:String,default:()=>Wl.statusBar.bgColor}}},ou={props:{}},ru={props:{show:{type:Boolean,default:()=>Wl.transition.show},mode:{type:String,default:()=>Wl.transition.mode},duration:{type:[String,Number],default:()=>Wl.transition.duration},timingFunction:{type:String,default:()=>Wl.transition.timingFunction}}},iu=e=>({enter:`u-${e}-enter u-${e}-enter-active`,"enter-to":`u-${e}-enter-to u-${e}-enter-active`,leave:`u-${e}-leave u-${e}-leave-active`,"leave-to":`u-${e}-leave-to u-${e}-leave-active`}),su={methods:{clickHandler(){this.$emit("click")},async vueEnter(){const e=iu(this.mode);this.status="enter",this.$emit("beforeEnter"),this.inited=!0,this.display=!0,this.classes=e.enter,await cr(),await _a(20),this.$emit("enter"),this.transitionEnded=!1,this.$emit("afterEnter"),this.classes=e["enter-to"]},async vueLeave(){if(!this.display)return;const e=iu(this.mode);this.status="leave",this.$emit("beforeLeave"),this.classes=e.leave,await cr(),this.transitionEnded=!1,this.$emit("leave"),setTimeout(this.onTransitionEnd,this.duration),this.classes=e["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))}}},au={props:{isDot:{type:Boolean,default:()=>Wl.badge.isDot},value:{type:[Number,String],default:()=>Wl.badge.value},modelValue:{type:[Number,String],default:()=>Wl.badge.modelValue},show:{type:Boolean,default:()=>Wl.badge.show},max:{type:[Number,String],default:()=>Wl.badge.max},type:{type:String,default:()=>Wl.badge.type},showZero:{type:Boolean,default:()=>Wl.badge.showZero},bgColor:{type:[String,null],default:()=>Wl.badge.bgColor},color:{type:[String,null],default:()=>Wl.badge.color},shape:{type:String,default:()=>Wl.badge.shape},numberType:{type:String,default:()=>Wl.badge.numberType},offset:{type:Array,default:()=>Wl.badge.offset},inverted:{type:Boolean,default:()=>Wl.badge.inverted},absolute:{type:Boolean,default:()=>Wl.badge.absolute}}},lu={props:{color:{type:String,default:()=>Wl.link.color},fontSize:{type:[String,Number],default:()=>Wl.link.fontSize},underLine:{type:Boolean,default:()=>Wl.link.underLine},href:{type:String,default:()=>Wl.link.href},mpTips:{type:String,default:()=>Wl.link.mpTips},lineColor:{type:String,default:()=>Wl.link.lineColor},text:{type:String,default:()=>Wl.link.text}}};exports.Parser=zc,exports.Pinia=Na,exports.Request=class{constructor(e={}){var t;t=e,"[object Object]"!==Object.prototype.toString.call(t)&&(e={},console.warn("设置全局参数必须接收一个Object")),this.config=xc({...vc,...e}),this.interceptors={request:new yc,response:new yc}}setConfig(e){this.config=e(this.config)}middleware(e){e=((e,t={})=>{const n=t.method||e.method||"GET";let o={baseURL:t.baseURL||e.baseURL||"",method:n,url:t.url||"",params:t.params||{},custom:{...e.custom||{},...t.custom||{}},header:pc(e.header||{},t.header||{})};if(o={...o,...bc(["getTask","validateStatus","paramsSerializer","forcedJSONParsing"],e,t)},"DOWNLOAD"===n){const n=["timeout","filePath"];o={...o,...bc(n,e,t)}}else if("UPLOAD"===n)delete o.header["content-type"],delete o.header["Content-Type"],["filePath","name","timeout","formData"].forEach((e=>{fc(t[e])||(o[e]=t[e])})),fc(o.timeout)&&!fc(e.timeout)&&(o.timeout=e.timeout);else{const n=["data","timeout","dataType","responseType","enableHttp2","enableQuic","enableCache","enableHttpDNS","httpDNSServiceId","enableChunked","forceCellularNetwork"];o={...o,...bc(n,e,t)}}return o})(this.config,e);let t=[mc,void 0],n=Promise.resolve(e);for(this.interceptors.request.forEach((function(e){t.unshift(e.fulfilled,e.rejected)})),this.interceptors.response.forEach((function(e){t.push(e.fulfilled,e.rejected)}));t.length;)n=n.then(t.shift(),t.shift());return n}request(e={}){return this.middleware(e)}get(e,t={}){return this.middleware({url:e,method:"GET",...t})}post(e,t,n={}){return this.middleware({url:e,data:t,method:"POST",...n})}put(e,t,n={}){return this.middleware({url:e,data:t,method:"PUT",...n})}delete(e,t,n={}){return this.middleware({url:e,data:t,method:"DELETE",...n})}connect(e,t,n={}){return this.middleware({url:e,data:t,method:"CONNECT",...n})}head(e,t,n={}){return this.middleware({url:e,data:t,method:"HEAD",...n})}options(e,t,n={}){return this.middleware({url:e,data:t,method:"OPTIONS",...n})}trace(e,t,n={}){return this.middleware({url:e,data:t,method:"TRACE",...n})}upload(e,t={}){return t.url=e,t.method="UPLOAD",this.middleware(t)}download(e,t={}){return t.url=e,t.method="DOWNLOAD",this.middleware(t)}get version(){return"3.1.0"}},exports._export_sfc=(e,t)=>{const n=e.__vccOpts||e;for(const[o,r]of t)n[o]=r;return n},exports.addStyle=el,exports.addUnit=tl,exports.buttonMixin=Gc,exports.color=ql,exports.colorGradient=Pl,exports.config=Ja,exports.createPinia=Aa,exports.createSSRApp=Es,exports.dayjs=wc,exports.deepMerge=ol,exports.defProps=Wl,exports.defineComponent=function(e){return w(e)?{setup:e,name:e.name}:e},exports.defineStore=Pa,exports.e=(e,...t)=>g(e,...t),exports.error=rl,exports.f=(e,t)=>function(e,t){let n;if(v(e)||S(e)){n=new Array(e.length);for(let o=0,r=e.length;ot(e,n,n)));else{const o=Object.keys(e);n=new Array(o.length);for(let r=0,i=o.length;rs(e),exports.nextTick$1=cr,exports.o=(e,t)=>As(e,t),exports.onHide=Zl,exports.onLaunch=ec,exports.onLoad=tc,exports.onMounted=zr,exports.onPageScroll=oc,exports.onPullDownRefresh=ic,exports.onReachBottom=rc,exports.onShareAppMessage=ac,exports.onShareTimeline=sc,exports.onShow=Gl,exports.onUnload=nc,exports.onUnmounted=Hr,exports.openType=Zc,exports.p=e=>function(e){const{uid:t,__counter:n}=Bi();return t+","+((ys[t]||(ys[t]=[])).push(vi(e))-1)+","+n}(e),exports.props=Cc,exports.props$1=Dc,exports.props$10=Yc,exports.props$11=Jc,exports.props$12=Xc,exports.props$13=_c,exports.props$14=eu,exports.props$15=tu,exports.props$16=nu,exports.props$17=ou,exports.props$18=ru,exports.props$19=au,exports.props$2=Lc,exports.props$20=lu,exports.props$3=Hc,exports.props$4=Uc,exports.props$5=Rc,exports.props$6=Vc,exports.props$7=qc,exports.props$8=Wc,exports.props$9=$c,exports.r=(e,t,n)=>Ss(e,t,n),exports.random=Ga,exports.randomArray=il,exports.reactive=jo,exports.ref=Ro,exports.relativeTime=Bc,exports.resolveComponent=function(e,t){return function(e,t,n=!0,o=!1){const r=xr||Si;if(r){const n=r.type;if(e===Wr){const e=function(e,t=!0){return w(e)?e.displayName||e.name:e.name||t&&e.__name}(n,!1);if(e&&(e===t||e===N(t)||e===F(N(t))))return n}const i=$r(r[e]||n[e],t)||$r(r.appContext[e],t);return!i&&o?n:i}}(Wr,e,!0,t)||e},exports.s=e=>Bs(e),exports.sleep=_a,exports.sr=(e,t,n)=>function(e,t,n={}){const{$templateRefs:o}=Bi();o.push({i:t,r:e,k:n.k,f:n.f})}(e,t,n),exports.t=e=>(e=>S(e)?e:null==e?"":v(e)||E(e)&&(e.toString===k||!w(e.toString))?JSON.stringify(e,a,2):String(e))(e),exports.test=Ha,exports.toast=cl,exports.transitionMixin=su,exports.unref=qo,exports.uviewPlus=_l,exports.value=Kc,exports.watch=Br; diff --git a/dist/build/mp-weixin/components/hs-scroll-indicator/hs-scroll-indicator.js b/dist/build/mp-weixin/components/hs-scroll-indicator/hs-scroll-indicator.js deleted file mode 100644 index 7854f14..0000000 --- a/dist/build/mp-weixin/components/hs-scroll-indicator/hs-scroll-indicator.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";const l=require("../../common/vendor.js"),o=l.defineComponent({__name:"hs-scroll-indicator",props:["scroll_view"],setup(o){const e=o;let n=l.index.getWindowInfo();const t=l.ref(0);return l.watch((()=>{var l;return null==(l=null==e?void 0:e.scroll_view)?void 0:l.scrollLeft}),(l=>{let o=null==e?void 0:e.scroll_view,r=(null==o?void 0:o.scrollWidth)-(null==n?void 0:n.windowWidth),i=(null==o?void 0:o.scrollLeft)/r*100;t.value=i/100*25})),(l,o)=>({a:`${t.value}%`})}}),e=l._export_sfc(o,[["__scopeId","data-v-808db072"]]);wx.createComponent(e); diff --git a/dist/build/mp-weixin/components/hs-scroll-indicator/hs-scroll-indicator.json b/dist/build/mp-weixin/components/hs-scroll-indicator/hs-scroll-indicator.json deleted file mode 100644 index e8cfaaf..0000000 --- a/dist/build/mp-weixin/components/hs-scroll-indicator/hs-scroll-indicator.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "component": true, - "usingComponents": {} -} \ No newline at end of file diff --git a/dist/build/mp-weixin/components/hs-scroll-indicator/hs-scroll-indicator.wxml b/dist/build/mp-weixin/components/hs-scroll-indicator/hs-scroll-indicator.wxml deleted file mode 100644 index 9312083..0000000 --- a/dist/build/mp-weixin/components/hs-scroll-indicator/hs-scroll-indicator.wxml +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/build/mp-weixin/components/hs-scroll-indicator/hs-scroll-indicator.wxss b/dist/build/mp-weixin/components/hs-scroll-indicator/hs-scroll-indicator.wxss deleted file mode 100644 index 485d100..0000000 --- a/dist/build/mp-weixin/components/hs-scroll-indicator/hs-scroll-indicator.wxss +++ /dev/null @@ -1 +0,0 @@ -.scroll_indicator_container.data-v-808db072{width:100%}.scroll_indicator.data-v-808db072{background-color:#eee;width:60rpx;margin:0 auto;margin-top:15rpx}.scroll_indicator .indicator.data-v-808db072{background-color:#304483;border-radius:100rpx;width:35rpx;height:8rpx;position:relative} diff --git a/dist/build/mp-weixin/pages/ai/chat.js b/dist/build/mp-weixin/pages/ai/chat.js index 0d80aad..d914fa0 100644 --- a/dist/build/mp-weixin/pages/ai/chat.js +++ b/dist/build/mp-weixin/pages/ai/chat.js @@ -1 +1 @@ -"use strict";const e=require("../../common/vendor.js");require("../../common/libraries/request.js");const t=require("../../common/store/useWeAppAuthStore.js");require("../../common/store/useWorkStore.js");const o=require("../../common/libraries/upload.js");if(require("../../gen/Apis.js"),require("../../common/libraries/setTabBar.js"),require("../../common/libraries/apiLoading.js"),!Array){e.resolveComponent("uni-icons")()}Math;const a=e.defineComponent({__name:"chat",setup(a){e.dayjs.extend(e.relativeTime),e.dayjs.locale("zh-cn");const s=t.useWeAppAuthStore(),n=e.ref(""),l=e.ref([]),r=e.ref(!1),i=e.ref([{role:"ai",content:"您好!我是物业客服,有什么可以帮助您的吗?",quickQuestions:[]}]),u=e.ref(!1),c=e.ref("正在输入中...");let m=null,g=e.ref(!1);const d="https://kf-api-test.linyikj.com.cn",p=e.ref(1),v=e.ref(10),y=e.ref(!0),_=e.ref(!1),f=e.ref(""),h=e.ref(0),k=e.ref([]),q=e.ref(""),S=(t,o)=>{e.index.previewImage({current:t,urls:o})},C=t=>{t?e.index.setClipboardData({data:t,success:()=>{e.index.showToast({title:"复制成功",icon:"success"})},fail:()=>{e.index.showToast({title:"复制失败",icon:"none"})}}):e.index.showToast({title:"暂无内容可复制",icon:"none"})},w=t=>{if(!t)return"";try{const o=e.dayjs(t);return o.isValid()?o.fromNow():""}catch(o){return console.error("时间格式化错误:",o),""}},A=()=>{e.nextTick$1((()=>{e.index.pageScrollTo({scrollTop:999999,duration:300})}))},x=async(t=1)=>{var o,a;const n=null==(a=null==(o=s.data)?void 0:o.user)?void 0:a.phone;if(n){if(!_.value)try{_.value=!0;const o=(t-1)*v.value;h.value=o,console.log("分页信息 - 页码:",t,"每页数量:",v.value,"计算出的offset:",o);const a=await e.index.request({url:`${d}/api/public/customer/init`,method:"POST",data:{platform:"property",platform_user_id:n,limit:v.value,offset:o}});if(200===a.statusCode){const e=a.data;let s=[];if(e.conversation&&e.conversation.id?(f.value=e.conversation.id,console.log("获取到会话ID:",f.value)):e.conversation_id?(f.value=e.conversation_id,console.log("获取到会话ID:",f.value)):e.conversations&&e.conversations.id&&(f.value=e.conversations.id,console.log("获取到会话ID:",f.value)),e.messages&&Array.isArray(e.messages)?(s=e.messages.map((e=>{const t={role:"customer"===e.sender_type?"user":"ai",content:e.message||e.content||"",created_at:e.created_at||e.timestamp||(new Date).toISOString()};e.message_type&&(t.message_type=e.message_type);let o=null;return e.image_url&&Array.isArray(e.image_url)?o=e.image_url:e.images&&Array.isArray(e.images)?o=e.images:e.metadata&&e.metadata.image_url&&Array.isArray(e.metadata.image_url)&&(o=e.metadata.image_url),o&&(t.image_url=o,t.images=o),e.metadata&&(t.metadata=e.metadata),t})),console.log("从messages字段获取到历史记录:",s.length)):e.data&&Array.isArray(e.data)?(s=e.data.map((e=>{const t={role:"customer"===e.sender_type?"user":"ai",content:e.message||e.content||"",created_at:e.created_at||e.timestamp||(new Date).toISOString()};e.message_type&&(t.message_type=e.message_type);let o=null;return e.image_url&&Array.isArray(e.image_url)?o=e.image_url:e.images&&Array.isArray(e.images)?o=e.images:e.metadata&&e.metadata.image_url&&Array.isArray(e.metadata.image_url)&&(o=e.metadata.image_url),o&&(t.image_url=o,t.images=o),e.metadata&&(t.metadata=e.metadata),t})),console.log("从data字段获取到历史记录:",s.length)):e.list&&Array.isArray(e.list)&&(s=e.list.map((e=>{const t={role:"customer"===e.sender_type?"user":"ai",content:e.message||e.content||"",created_at:e.created_at||e.timestamp||(new Date).toISOString()};e.message_type&&(t.message_type=e.message_type);let o=null;return e.image_url&&Array.isArray(e.image_url)?o=e.image_url:e.images&&Array.isArray(e.images)?o=e.images:e.metadata&&e.metadata.image_url&&Array.isArray(e.metadata.image_url)&&(o=e.metadata.image_url),o&&(t.image_url=o,t.images=o),e.metadata&&(t.metadata=e.metadata),t})),console.log("从list字段获取到历史记录:",s.length)),1===t){s.length>0?(i.value=s,console.log("第一页历史记录已加载,总共",s.length,"条消息")):(console.log("没有历史记录"),i.value=[]);const e=!y.value;Q(e)&&D(e)}else s.length>0&&setTimeout((()=>{i.value.unshift(...s),console.log("加载更多历史记录,新增",s.length,"条消息,总共",i.value.length,"条")}),300);const n=e.total||e.count||e.total_count||0;y.value=n>i.value.length,p.value=t,t>1&&!y.value&&(console.log("分页加载完成,当前页:",t,"hasMore:",y.value,"展示开场白"),setTimeout((()=>{D(!0)}),500)),console.log("第",t,"页数据加载完成,offset:",o,", limit:",v.value,", 总数据:",n,", 当前已加载:",i.value.length,", 是否有更多:",y.value),1===t&&(setTimeout((()=>{A()}),100),console.log("[Customer] 历史记录加载完成,开始建立WebSocket连接"),T())}else console.error("获取历史记录失败,状态码:",a.statusCode)}catch(l){console.error("获取历史记录异常:",l)}finally{_.value=!1}}else console.log("用户未登录,无法获取历史记录")};e.onPullDownRefresh((async()=>{if(_.value||!y.value)return console.log("正在加载或没有更多数据"),void e.index.stopPullDownRefresh();console.log("触发下拉分页,加载更多历史记录");const t=p.value+1;try{await x(t),await new Promise((e=>setTimeout(e,500)))}catch(o){console.error("加载历史记录失败:",o)}finally{e.index.stopPullDownRefresh()}}));const T=()=>{if(!m)try{const t="wss://kf-api-test.linyikj.com.cn/ws/socket.io/?EIO=4&transport=websocket";console.log("正在建立Socket.IO连接"),console.log("连接URL:",t),m=e.index.connectSocket({url:t,header:{"content-type":"application/json"}}),e.index.onSocketOpen((t=>{console.log("[Customer] WebSocket connected",t),g.value=!0;e.index.sendSocketMessage({data:'40/customer,{"jwt":""}',success:()=>{console.log("[Customer] Socket.IO连接包发送成功"),f.value&&setTimeout((()=>{const t=`42/customer,["join_conversation",{"conversation_id":"${f.value}"}]`;console.log("[Customer] 加入会话房间:",t),e.index.sendSocketMessage({data:t,success:()=>{console.log("[Customer] 成功加入会话房间")},fail:e=>{console.error("[Customer] 加入会话房间失败:",e)}})}),200)},fail:e=>{console.error("[Customer] Socket.IO连接包发送失败:",e)}})})),e.index.onSocketError((e=>{console.error("[Customer] WebSocket error:",e),g.value=!1,m=null})),e.index.onSocketClose((e=>{console.log("[Customer] WebSocket disconnected",e),g.value=!1,m=null})),e.index.onSocketMessage((t=>{console.log("收到WebSocket原始消息:",t),console.log("消息数据类型:",typeof t.data),console.log("消息内容:",t.data);const o=t.data;if("string"==typeof o)if(o.startsWith("42/customer,")){const e=o.substring(12);try{const t=JSON.parse(e);console.log("解析Socket.IO事件:",t),b(t)}catch(a){console.error("解析Socket.IO数据失败:",a,"原始数据:",e)}}else if(o.startsWith("40/customer"))console.log("Socket.IO连接确认");else if(o.startsWith("2"))e.index.sendSocketMessage({data:"3"});else if(o.startsWith("0"))console.log("Socket.IO握手成功");else try{const e=JSON.parse(o);console.log("解析JSON消息:",e),O(e)}catch(a){console.log("非JSON格式的字符串消息:",o)}else"object"==typeof o?(console.log("收到对象类型消息:",o),j(o)):console.log("收到其他类型消息,类型:",typeof o)}))}catch(t){console.error("初始化Socket.IO异常:",t),g.value=!1,m=null}},b=e=>{if(Array.isArray(e)&&e.length>=2){const t=e[0],o=e[1];console.log("[Customer] Socket.IO事件类型:",t,"事件数据:",o),"new_message"===t?W(o):"join_conversation_response"===t?console.log("[Customer] Joined room:",o):"message"===t?W(o):"typing"===t?I(o):console.log("[Customer] 未处理的Socket.IO事件类型:",t)}},O=e=>{console.log("[Customer] 处理JSON消息:",e),"message"===e.type||"new_message"===e.event?W(e.data||e):"typing"===e.type||"typing"===e.event?I(e.data||e):e.message||e.content?W(e):console.log("[Customer] 未识别的JSON消息结构:",e)},j=e=>{console.log("[Customer] 处理对象消息:",e),e.message||e.content||e.text?W(e):void 0!==e.is_typing?I(e):console.log("[Customer] 未识别的对象消息结构:",e)},I=e=>{console.log("[Customer] 处理typing指示器:",e),e.is_typing&&"staff"===e.user_type?(u.value=!0,c.value="客服正在输入..."):u.value=!1},Q=(e=!1)=>0!==k.value.length&&(0===i.value.length||!!(e&&i.value.length>0)),D=(e=!1)=>{if(0===k.value.length)return;if(!Q(e))return;if(i.value.find((e=>"ai"===e.role&&e.quickQuestions&&e.quickQuestions.length>0)))return void console.log("[Customer] 开场白已存在,跳过添加");const t={role:"ai",content:"您好!我是物业客服,有什么可以帮助您的吗?",quickQuestions:k.value,created_at:(new Date).toISOString()};console.log("[Customer] 创建开场白消息,是否最后一页:",e),0===i.value.length?(i.value=[t],console.log("[Customer] 设置开场白为第一条消息")):e&&(i.value.unshift(t),console.log("[Customer] 已加载到最后一页,在第一条消息前面插入开场白"))},W=e=>{if(console.log("[Customer] 处理消息数据:",e),"customer"===e.sender_type||"user"===e.role)return void console.log("[Customer] 过滤掉客户消息");let t="";if(t="string"==typeof e?e:e.message||e.content||e.text||e.body||"收到回复","string"==typeof t&&(t=t.replace(/↵/g,"\n").replace(/\\n/g,"\n")),console.log("[Customer] 收到新消息内容:",t),t===q.value)return console.log("[Customer] 消息与HTTP返回的消息相同,跳过显示"),void(q.value="");u.value=!1;const o={role:"ai",content:t,created_at:e.created_at||e.timestamp||e.time||(new Date).toISOString()};e.suggested_questions&&Array.isArray(e.suggested_questions)&&e.suggested_questions.length>0?o.quickQuestions=e.suggested_questions:e.quickQuestions&&Array.isArray(e.quickQuestions)&&e.quickQuestions.length>0&&(o.quickQuestions=e.quickQuestions),void 0!==e.need_confirmation&&(o.needConfirmation=e.need_confirmation),void 0!==e.confirmation_type&&(o.confirmationType=e.confirmation_type),i.value.push(o),A()},P=(e,t)=>{void 0===e.selectedConfirmation&&(e.selectedConfirmation=t,setTimeout((()=>{n.value=t,F()}),300))},z=async()=>{if(l.value.length>=9)e.index.showToast({title:"最多选择9张图片",icon:"none"});else try{const t=9-l.value.length,a=await o.upload(t,2,["image"]);if(a&&Array.isArray(a)&&a.length>0){const t=a.map((e=>e.url));l.value.push(...t),e.index.showToast({title:"图片上传成功",icon:"success"})}}catch(t){console.error("选择图片失败:",t),e.index.showToast({title:"选择图片失败",icon:"none"})}},F=async()=>{var t,o,a,r,m,p;const v=n.value.trim(),y=l.value.length>0;if(!v&&!y||u.value)return;const _=null==(o=null==(t=s.data)?void 0:t.user)?void 0:o.phone,h=null==(r=null==(a=s.data)?void 0:a.selected_house)?void 0:r.asset_projects_id,k=null==(p=null==(m=s.data)?void 0:m.selected_house)?void 0:p.full_name;if(!_||!h)return void e.index.showToast({title:"请先登录并绑定房屋",icon:"none"});g.value||(T(),await new Promise((e=>setTimeout(e,1e3))));const S=l.value;let C="text";y&&v?C="mixed":y&&!v&&(C="image");const w={role:"user",content:v||"",created_at:(new Date).toISOString(),message_type:C,image_url:S.length>0?S:void 0,images:S.length>0?S:void 0};i.value.push(w),n.value="",l.value=[],A(),v&&v.includes("查询")?c.value="正在查询中请稍后...":c.value="正在输入中...",u.value=!0;try{const t=await e.index.request({url:`${d}/api/public/chat`,method:"POST",data:{platform:"property",message:v||"",tenant_project_id:h,tenant_project_name:k||"",platform_user_id:_,conversation_id:f.value,message_type:C,image_url:S.length>0?S:void 0},header:{"Content-Type":"application/json"}});if(200!==t.statusCode)throw new Error("请求失败");{const e=t.data;console.log("[Customer] HTTP接口响应数据:",e);let o=null,a=[],s=!1,n=null;if(e.reply&&"string"==typeof e.reply?(o=e.reply,a=e.suggested_questions||[],s=e.need_confirmation||!1,n=e.confirmation_type||null):e.reply&&e.reply.message?(o=e.reply.message,a=e.reply.suggested_questions||e.suggested_questions||[],s=e.reply.need_confirmation||e.need_confirmation||!1,n=e.reply.confirmation_type||e.confirmation_type||null):e.reply&&e.reply.content?(o=e.reply.content,a=e.reply.suggested_questions||e.suggested_questions||[],s=e.reply.need_confirmation||e.need_confirmation||!1,n=e.reply.confirmation_type||e.confirmation_type||null):e.message?(o=e.message,a=e.suggested_questions||[],s=e.need_confirmation||!1,n=e.confirmation_type||null):e.content?(o=e.content,a=e.suggested_questions||[],s=e.need_confirmation||!1,n=e.confirmation_type||null):e.answer?(o=e.answer,a=e.suggested_questions||[],s=e.need_confirmation||!1,n=e.confirmation_type||null):e.response?(o=e.response,a=e.suggested_questions||[],s=e.need_confirmation||!1,n=e.confirmation_type||null):"string"==typeof e&&(o=e),o){console.log("[Customer] HTTP接口返回回答消息:",o),console.log("[Customer] 建议问题:",a),console.log("[Customer] 需要确认:",s,"确认类型:",n);let e=o;"string"==typeof e&&(e=e.replace(/↵/g,"\n").replace(/\\n/g,"\n")),q.value=e,u.value=!1,i.value.push({role:"ai",content:e,created_at:(new Date).toISOString(),quickQuestions:a.length>0?a:void 0,needConfirmation:s,confirmationType:n}),A()}else console.log("[Customer] 消息发送成功,等待WebSocket回复")}}catch(x){console.error("发送消息失败:",x),e.index.showToast({title:"发送失败,请稍后重试",icon:"none"}),i.value.push({role:"ai",content:"抱歉,网络连接出现问题,请稍后再试。"}),u.value=!1,A()}};return e.onUnmounted((()=>{(m||g.value)&&(e.index.closeSocket(),m=null,g.value=!1,console.log("页面卸载,WebSocket连接已关闭"))})),e.onLoad((async()=>{k.value=await(async()=>{try{const t=await e.index.request({url:`${d}/api/public/quick-questions`,method:"GET"});if(200===t.statusCode){const e=t.data;let o=[];return e.data&&Array.isArray(e.data)?o=e.data.map((e=>e.question||e.title||e.text||e)):e.questions&&Array.isArray(e.questions)?o=e.questions.map((e=>e.question||e.title||e.text||e)):Array.isArray(e)&&(o=e.map((e=>e.question||e.title||e.text||e))),console.log("获取到开场白按钮数据:",o),o}return console.error("获取开场白数据失败,状态码:",t.statusCode),[]}catch(t){return console.error("获取开场白数据异常:",t),[]}})(),console.log("页面加载时已获取开场白按钮数据:",k.value.length),x(1)})),(t,o)=>e.e({a:e.f(i.value,((t,o,a)=>{return e.e({a:"ai"===t.role},(t.role,{}),{b:t.image_url&&t.image_url.length>0},t.image_url&&t.image_url.length>0?{c:e.f(t.image_url,((o,a,s)=>({a:o,b:e.o((e=>S(o,t.image_url)),a),c:a}))),d:1===t.image_url.length?"widthFix":"aspectFill",e:1===t.image_url.length?1:""}:t.images&&t.images.length>0?{g:e.f(t.images,((o,a,s)=>({a:o,b:e.o((e=>S(o,t.images)),a),c:a}))),h:1===t.images.length?"widthFix":"aspectFill",i:1===t.images.length?1:""}:t.metadata&&t.metadata.image_url&&t.metadata.image_url.length>0?{k:e.f(t.metadata.image_url,((o,a,s)=>({a:o,b:e.o((e=>S(o,t.metadata.image_url)),a),c:a}))),l:1===t.metadata.image_url.length?"widthFix":"aspectFill",m:1===t.metadata.image_url.length?1:""}:{},{f:t.images&&t.images.length>0,j:t.metadata&&t.metadata.image_url&&t.metadata.image_url.length>0,n:t.content&&t.content.trim()},t.content&&t.content.trim()?{o:e.f((s=t.content,s&&"string"==typeof s?s.split("\n").filter((e=>""!==e.trim())):[""]),((t,o,a)=>({a:e.t(t),b:"text-"+o})))}:{},{p:t.quickQuestions&&t.quickQuestions.length>0},t.quickQuestions&&t.quickQuestions.length>0?{q:e.f(t.quickQuestions,((t,o,a)=>({a:e.t(t),b:o,c:e.o((e=>(e=>{n.value=e,F()})(t)),o)})))}:{},{r:t.needConfirmation},t.needConfirmation?{s:"是"===t.selectedConfirmation?1:"",t:void 0!==t.selectedConfirmation?1:"",v:e.o((e=>P(t,"是")),o),w:"否"===t.selectedConfirmation?1:"",x:void 0!==t.selectedConfirmation?1:"",y:e.o((e=>P(t,"否")),o)}:{},{z:t.created_at&&!t.quickQuestions},t.created_at&&!t.quickQuestions?e.e({A:"ai"===t.role},"ai"===t.role?{B:e.o((e=>C(t.content)),o)}:{},{C:e.t(w(t.created_at)),D:"user"===t.role},"user"===t.role?{E:e.o((e=>C(t.content)),o)}:{}):{},{F:o,G:`msg-${o}`,H:e.n("user"===t.role?"user-message":"ai-message")});var s})),b:u.value},u.value?{c:e.t(c.value)}:{},{d:l.value.length>0},l.value.length>0?e.e({e:e.f(l.value,((t,o,a)=>({a:t,b:"d335cb2c-0-"+a,c:e.o((e=>(e=>{l.value.splice(e,1)})(o)),o),d:o}))),f:e.p({type:"closeempty",size:"14",color:"#fff"}),g:l.value.length<9},l.value.length<9?{h:e.p({type:"plus",size:"30",color:"#999"}),i:e.o(z)}:{}):{},{j:e.o((e=>r.value=!0)),k:e.o((e=>r.value=!1)),l:e.o(F),m:n.value,n:e.o((e=>n.value=e.detail.value)),o:!n.value.trim()&&!r.value&&0===l.value.length},n.value.trim()||r.value||0!==l.value.length?{}:{p:e.p({type:"camera",size:"24",color:"#666"}),q:e.o(z)},{r:(n.value.trim()||r.value||l.value.length>0)&&!u.value},(n.value.trim()||r.value||l.value.length>0)&&!u.value?{s:e.p({type:"paperplane-filled",size:"20",color:"#fff"}),t:e.o(F)}:{},{v:u.value},u.value?{w:e.p({type:"spinner-cycle",size:"20",color:"#ccc"})}:{})}}),s=e._export_sfc(a,[["__scopeId","data-v-d335cb2c"]]);wx.createPage(s); +"use strict";const e=require("../../common/vendor.js");require("../../common/libraries/request.js");const t=require("../../common/store/useWeAppAuthStore.js");require("../../common/store/useWorkStore.js");const o=require("../../common/libraries/upload.js"),a=require("../../common/libraries/public.js");if(require("../../gen/Apis.js"),require("../../common/libraries/setTabBar.js"),require("../../common/libraries/apiLoading.js"),!Array){e.resolveComponent("uni-icons")()}Math;const s=e.defineComponent({__name:"chat",setup(s){e.dayjs.extend(e.relativeTime),e.dayjs.locale("zh-cn");const n=t.useWeAppAuthStore(),l=e.ref(""),r=e.ref([]),i=e.ref(!1),u=e.ref([{role:"ai",content:"您好!我是物业客服,有什么可以帮助您的吗?",quickQuestions:[]}]),c=e.ref(!1),m=e.ref("正在输入中...");let g=null,d=e.ref(!1);const p="https://kf-api-test.linyikj.com.cn",v=e.ref(1),f=e.ref(10),y=e.ref(!0),_=e.ref(!1),h=e.ref(""),k=e.ref(0),q=e.ref([]),S=e.ref(""),C=(t,o)=>{e.index.previewImage({current:t,urls:o})},w=t=>{t?e.index.setClipboardData({data:t,success:()=>{e.index.showToast({title:"复制成功",icon:"success"})},fail:()=>{e.index.showToast({title:"复制失败",icon:"none"})}}):e.index.showToast({title:"暂无内容可复制",icon:"none"})},A=t=>{if(!t)return"";try{const o=e.dayjs(t);return o.isValid()?o.fromNow():""}catch(o){return console.error("时间格式化错误:",o),""}},x=()=>{e.nextTick$1((()=>{e.index.pageScrollTo({scrollTop:999999,duration:300})}))},T=async(t=1)=>{var o,a;const s=null==(a=null==(o=n.data)?void 0:o.user)?void 0:a.phone;if(s){if(!_.value)try{_.value=!0;const o=(t-1)*f.value;k.value=o,console.log("分页信息 - 页码:",t,"每页数量:",f.value,"计算出的offset:",o);const a=await e.index.request({url:`${p}/api/public/customer/init`,method:"POST",data:{platform:"property",platform_user_id:s,limit:f.value,offset:o}});if(200===a.statusCode){const s=a.data;let n=[];s.conversation&&s.conversation.id?(h.value=s.conversation.id,console.log("获取到会话ID:",h.value)):s.conversation_id?(h.value=s.conversation_id,console.log("获取到会话ID:",h.value)):s.conversations&&s.conversations.id&&(h.value=s.conversations.id,console.log("获取到会话ID:",h.value)),s.messages&&Array.isArray(s.messages)?(n=s.messages.map((e=>{const t={role:"customer"===e.sender_type?"user":"ai",content:e.message||e.content||"",created_at:e.created_at||e.timestamp||(new Date).toISOString()};e.message_type&&(t.message_type=e.message_type);let o=null;return e.image_url&&Array.isArray(e.image_url)?o=e.image_url:e.images&&Array.isArray(e.images)?o=e.images:e.metadata&&e.metadata.image_url&&Array.isArray(e.metadata.image_url)&&(o=e.metadata.image_url),o&&(t.image_url=o,t.images=o),e.metadata&&(t.metadata=e.metadata),t})),console.log("从messages字段获取到历史记录:",n.length)):s.data&&Array.isArray(s.data)?(n=s.data.map((e=>{const t={role:"customer"===e.sender_type?"user":"ai",content:e.message||e.content||"",created_at:e.created_at||e.timestamp||(new Date).toISOString()};e.message_type&&(t.message_type=e.message_type);let o=null;return e.image_url&&Array.isArray(e.image_url)?o=e.image_url:e.images&&Array.isArray(e.images)?o=e.images:e.metadata&&e.metadata.image_url&&Array.isArray(e.metadata.image_url)&&(o=e.metadata.image_url),o&&(t.image_url=o,t.images=o),e.metadata&&(t.metadata=e.metadata),t})),console.log("从data字段获取到历史记录:",n.length)):s.list&&Array.isArray(s.list)&&(n=s.list.map((e=>{const t={role:"customer"===e.sender_type?"user":"ai",content:e.message||e.content||"",created_at:e.created_at||e.timestamp||(new Date).toISOString()};e.message_type&&(t.message_type=e.message_type);let o=null;return e.image_url&&Array.isArray(e.image_url)?o=e.image_url:e.images&&Array.isArray(e.images)?o=e.images:e.metadata&&e.metadata.image_url&&Array.isArray(e.metadata.image_url)&&(o=e.metadata.image_url),o&&(t.image_url=o,t.images=o),e.metadata&&(t.metadata=e.metadata),t})),console.log("从list字段获取到历史记录:",n.length)),1===t?(n.length>0?(u.value=n,console.log("第一页历史记录已加载,总共",n.length,"条消息")):(console.log("没有历史记录"),u.value=[]),e.nextTick$1((()=>{if(q.value.length>0){const e={role:"ai",content:"您好!我是物业客服,有什么可以帮助您的吗?",quickQuestions:q.value,created_at:(new Date).toISOString()};u.value.push(e),console.log("[Customer] 获取历史记录成功后,在历史记录后面push新开场白消息"),x()}}))):n.length>0&&setTimeout((()=>{u.value.unshift(...n),console.log("加载更多历史记录,新增",n.length,"条消息,总共",u.value.length,"条")}),300);const l=s.total||s.count||s.total_count||0;y.value=l>u.value.length,v.value=t,t>1&&!y.value&&(console.log("分页加载完成,当前页:",t,"hasMore:",y.value,"展示开场白"),setTimeout((()=>{D(!0)}),500)),console.log("第",t,"页数据加载完成,offset:",o,", limit:",f.value,", 总数据:",l,", 当前已加载:",u.value.length,", 是否有更多:",y.value),1===t&&(setTimeout((()=>{x()}),100),console.log("[Customer] 历史记录加载完成,开始建立WebSocket连接"),b())}else console.error("获取历史记录失败,状态码:",a.statusCode)}catch(l){console.error("获取历史记录异常:",l)}finally{_.value=!1}}else console.log("用户未登录,无法获取历史记录")};e.onPullDownRefresh((async()=>{if(_.value||!y.value)return console.log("正在加载或没有更多数据"),void e.index.stopPullDownRefresh();console.log("触发下拉分页,加载更多历史记录");const t=v.value+1;try{await T(t),await new Promise((e=>setTimeout(e,500)))}catch(o){console.error("加载历史记录失败:",o)}finally{e.index.stopPullDownRefresh()}}));const b=()=>{if(!g)try{const t="wss://kf-api-test.linyikj.com.cn/ws/socket.io/?EIO=4&transport=websocket";console.log("正在建立Socket.IO连接"),console.log("连接URL:",t),g=e.index.connectSocket({url:t,header:{"content-type":"application/json"}}),e.index.onSocketOpen((t=>{console.log("[Customer] WebSocket connected",t),d.value=!0;e.index.sendSocketMessage({data:'40/customer,{"jwt":""}',success:()=>{console.log("[Customer] Socket.IO连接包发送成功"),h.value&&setTimeout((()=>{const t=`42/customer,["join_conversation",{"conversation_id":"${h.value}"}]`;console.log("[Customer] 加入会话房间:",t),e.index.sendSocketMessage({data:t,success:()=>{console.log("[Customer] 成功加入会话房间")},fail:e=>{console.error("[Customer] 加入会话房间失败:",e)}})}),200)},fail:e=>{console.error("[Customer] Socket.IO连接包发送失败:",e)}})})),e.index.onSocketError((e=>{console.error("[Customer] WebSocket error:",e),d.value=!1,g=null})),e.index.onSocketClose((e=>{console.log("[Customer] WebSocket disconnected",e),d.value=!1,g=null})),e.index.onSocketMessage((t=>{console.log("收到WebSocket原始消息:",t),console.log("消息数据类型:",typeof t.data),console.log("消息内容:",t.data);const o=t.data;if("string"==typeof o)if(o.startsWith("42/customer,")){const e=o.substring(12);try{const t=JSON.parse(e);console.log("解析Socket.IO事件:",t),O(t)}catch(a){console.error("解析Socket.IO数据失败:",a,"原始数据:",e)}}else if(o.startsWith("40/customer"))console.log("Socket.IO连接确认");else if(o.startsWith("2"))e.index.sendSocketMessage({data:"3"});else if(o.startsWith("0"))console.log("Socket.IO握手成功");else try{const e=JSON.parse(o);console.log("解析JSON消息:",e),j(e)}catch(a){console.log("非JSON格式的字符串消息:",o)}else"object"==typeof o?(console.log("收到对象类型消息:",o),I(o)):console.log("收到其他类型消息,类型:",typeof o)}))}catch(t){console.error("初始化Socket.IO异常:",t),d.value=!1,g=null}},O=e=>{if(Array.isArray(e)&&e.length>=2){const t=e[0],o=e[1];console.log("[Customer] Socket.IO事件类型:",t,"事件数据:",o),"new_message"===t?W(o):"join_conversation_response"===t?console.log("[Customer] Joined room:",o):"message"===t?W(o):"typing"===t?Q(o):console.log("[Customer] 未处理的Socket.IO事件类型:",t)}},j=e=>{console.log("[Customer] 处理JSON消息:",e),"message"===e.type||"new_message"===e.event?W(e.data||e):"typing"===e.type||"typing"===e.event?Q(e.data||e):e.message||e.content?W(e):console.log("[Customer] 未识别的JSON消息结构:",e)},I=e=>{console.log("[Customer] 处理对象消息:",e),e.message||e.content||e.text?W(e):void 0!==e.is_typing?Q(e):console.log("[Customer] 未识别的对象消息结构:",e)},Q=e=>{console.log("[Customer] 处理typing指示器:",e),e.is_typing&&"staff"===e.user_type?(c.value=!0,m.value="客服正在输入..."):c.value=!1},D=(e=!1)=>{if(0===q.value.length)return;if(!(q.value.length>0))return;const t={role:"ai",content:"您好!我是物业客服,有什么可以帮助您的吗?",quickQuestions:q.value,created_at:(new Date).toISOString()};console.log("[Customer] 创建开场白消息,是否最后一页:",e),0===u.value.length?(u.value=[t],console.log("[Customer] 设置开场白为第一条消息")):(u.value.unshift(t),console.log("[Customer] 在第一条消息前面插入开场白"))},W=e=>{if(console.log("[Customer] 处理消息数据:",e),"customer"===e.sender_type||"user"===e.role)return void console.log("[Customer] 过滤掉客户消息");let t="";if(t="string"==typeof e?e:e.message||e.content||e.text||e.body||"收到回复","string"==typeof t&&(t=t.replace(/↵/g,"\n").replace(/\\n/g,"\n")),console.log("[Customer] 收到新消息内容:",t),t===S.value)return console.log("[Customer] 消息与HTTP返回的消息相同,跳过显示"),void(S.value="");c.value=!1;const o={role:"ai",content:t,created_at:e.created_at||e.timestamp||e.time||(new Date).toISOString()};e.suggested_questions&&Array.isArray(e.suggested_questions)&&e.suggested_questions.length>0?o.quickQuestions=e.suggested_questions:e.quickQuestions&&Array.isArray(e.quickQuestions)&&e.quickQuestions.length>0&&(o.quickQuestions=e.quickQuestions),void 0!==e.need_confirmation&&(o.needConfirmation=e.need_confirmation),void 0!==e.confirmation_type&&(o.confirmationType=e.confirmation_type),u.value.push(o),x()},P=e=>{l.value=e.message,J()},z=(e,t)=>{void 0===e.selectedConfirmation&&(e.selectedConfirmation=t,setTimeout((()=>{l.value=t,J()}),300))},F=async()=>{if(r.value.length>=9)e.index.showToast({title:"最多选择9张图片",icon:"none"});else try{const t=9-r.value.length,a=await o.upload(t,2,["image"]);if(a&&Array.isArray(a)&&a.length>0){const t=a.map((e=>e.url));r.value.push(...t),e.index.showToast({title:"图片上传成功",icon:"success"})}}catch(t){console.error("选择图片失败:",t),e.index.showToast({title:"选择图片失败",icon:"none"})}},J=async()=>{var t,o,a,s,i,g;const v=l.value.trim(),f=r.value.length>0;if(!v&&!f||c.value)return;const y=null==(o=null==(t=n.data)?void 0:t.user)?void 0:o.phone,_=null==(s=null==(a=n.data)?void 0:a.selected_house)?void 0:s.asset_projects_id,k=null==(g=null==(i=n.data)?void 0:i.selected_house)?void 0:g.full_name;if(!y||!_)return void e.index.showToast({title:"请先登录并绑定房屋",icon:"none"});d.value||(b(),await new Promise((e=>setTimeout(e,1e3))));const q=r.value;let C="text";f&&v?C="mixed":f&&!v&&(C="image");const w={role:"user",content:v||"",created_at:(new Date).toISOString(),message_type:C,image_url:q.length>0?q:void 0,images:q.length>0?q:void 0};u.value.push(w),l.value="",r.value=[],x(),v&&v.includes("查询")?m.value="正在查询中请稍后...":m.value="正在输入中...",c.value=!0;try{const t=await e.index.request({url:`${p}/api/public/chat`,method:"POST",data:{platform:"property",message:v||"",tenant_project_id:_,tenant_project_name:k||"",platform_user_id:y,conversation_id:h.value,message_type:C,image_url:q.length>0?q:void 0},header:{"Content-Type":"application/json"}});if(200!==t.statusCode)throw new Error("请求失败");{const e=t.data;console.log("[Customer] HTTP接口响应数据:",e);let o=null,a=[],s=!1,n=null;if(e.reply&&"string"==typeof e.reply?(o=e.reply,a=e.suggested_questions||[],s=e.need_confirmation||!1,n=e.confirmation_type||null):e.reply&&e.reply.message?(o=e.reply.message,a=e.reply.suggested_questions||e.suggested_questions||[],s=e.reply.need_confirmation||e.need_confirmation||!1,n=e.reply.confirmation_type||e.confirmation_type||null):e.reply&&e.reply.content?(o=e.reply.content,a=e.reply.suggested_questions||e.suggested_questions||[],s=e.reply.need_confirmation||e.need_confirmation||!1,n=e.reply.confirmation_type||e.confirmation_type||null):e.message?(o=e.message,a=e.suggested_questions||[],s=e.need_confirmation||!1,n=e.confirmation_type||null):e.content?(o=e.content,a=e.suggested_questions||[],s=e.need_confirmation||!1,n=e.confirmation_type||null):e.answer?(o=e.answer,a=e.suggested_questions||[],s=e.need_confirmation||!1,n=e.confirmation_type||null):e.response?(o=e.response,a=e.suggested_questions||[],s=e.need_confirmation||!1,n=e.confirmation_type||null):"string"==typeof e&&(o=e),o){console.log("[Customer] HTTP接口返回回答消息:",o),console.log("[Customer] 建议问题:",a),console.log("[Customer] 需要确认:",s,"确认类型:",n);let e=o;"string"==typeof e&&(e=e.replace(/↵/g,"\n").replace(/\\n/g,"\n")),S.value=e,c.value=!1,u.value.push({role:"ai",content:e,created_at:(new Date).toISOString(),quickQuestions:a.length>0?a:void 0,needConfirmation:s,confirmationType:n}),x()}else console.log("[Customer] 消息发送成功,等待WebSocket回复")}}catch(A){console.error("发送消息失败:",A),e.index.showToast({title:"发送失败,请稍后重试",icon:"none"}),u.value.push({role:"ai",content:"抱歉,网络连接出现问题,请稍后再试。"}),c.value=!1,x()}};return e.onUnmounted((()=>{(g||d.value)&&(e.index.closeSocket(),g=null,d.value=!1,console.log("页面卸载,WebSocket连接已关闭"))})),e.onLoad((async t=>{q.value=await(async()=>{try{const t=await e.index.request({url:`${p}/api/public/quick-questions`,method:"GET"});if(200===t.statusCode){const e=t.data;let o=[];return e.data&&Array.isArray(e.data)?o=e.data.map((e=>e.question||e.title||e.text||e)):e.questions&&Array.isArray(e.questions)?o=e.questions.map((e=>e.question||e.title||e.text||e)):Array.isArray(e)&&(o=e.map((e=>e.question||e.title||e.text||e))),console.log("获取到开场白按钮数据:",o),o}return console.error("获取开场白数据失败,状态码:",t.statusCode),[]}catch(t){return console.error("获取开场白数据异常:",t),[]}})(),console.log("页面加载时已获取开场白按钮数据:",q.value.length),T(1),(null==t?void 0:t.message)&&P(t)})),(t,o)=>e.e({a:e.f(u.value,((t,o,a)=>{return e.e({a:"ai"===t.role},(t.role,{}),{b:t.image_url&&t.image_url.length>0},t.image_url&&t.image_url.length>0?{c:e.f(t.image_url,((o,a,s)=>({a:o,b:e.o((e=>C(o,t.image_url)),a),c:a}))),d:1===t.image_url.length?"widthFix":"aspectFill",e:1===t.image_url.length?1:""}:t.images&&t.images.length>0?{g:e.f(t.images,((o,a,s)=>({a:o,b:e.o((e=>C(o,t.images)),a),c:a}))),h:1===t.images.length?"widthFix":"aspectFill",i:1===t.images.length?1:""}:t.metadata&&t.metadata.image_url&&t.metadata.image_url.length>0?{k:e.f(t.metadata.image_url,((o,a,s)=>({a:o,b:e.o((e=>C(o,t.metadata.image_url)),a),c:a}))),l:1===t.metadata.image_url.length?"widthFix":"aspectFill",m:1===t.metadata.image_url.length?1:""}:{},{f:t.images&&t.images.length>0,j:t.metadata&&t.metadata.image_url&&t.metadata.image_url.length>0,n:t.content&&t.content.trim()},t.content&&t.content.trim()?{o:e.f((s=t.content,s&&"string"==typeof s?s.split("\n").filter((e=>""!==e.trim())):[""]),((t,o,a)=>({a:e.t(t),b:"text-"+o})))}:{},{p:t.quickQuestions&&t.quickQuestions.length>0},t.quickQuestions&&t.quickQuestions.length>0?{q:e.f(t.quickQuestions,((t,o,a)=>({a:e.t(t),b:o,c:e.o((e=>(e=>{l.value=e,J()})(t)),o)})))}:{},{r:t.needConfirmation},t.needConfirmation?{s:"是"===t.selectedConfirmation?1:"",t:void 0!==t.selectedConfirmation?1:"",v:e.o((e=>z(t,"是")),o),w:"否"===t.selectedConfirmation?1:"",x:void 0!==t.selectedConfirmation?1:"",y:e.o((e=>z(t,"否")),o)}:{},{z:t.created_at&&!t.quickQuestions},t.created_at&&!t.quickQuestions?e.e({A:"ai"===t.role},"ai"===t.role?{B:e.o((e=>w(t.content)),o)}:{},{C:e.t(A(t.created_at)),D:"user"===t.role},"user"===t.role?{E:e.o((e=>w(t.content)),o)}:{}):{},{F:o,G:`msg-${o}`,H:e.n("user"===t.role?"user-message":"ai-message")});var s})),b:c.value},c.value?{c:e.t(m.value)}:{},{d:r.value.length>0},r.value.length>0?e.e({e:e.f(r.value,((t,o,a)=>({a:t,b:"f3306fff-0-"+a,c:e.o((e=>(e=>{r.value.splice(e,1)})(o)),o),d:o}))),f:e.p({type:"closeempty",size:"14",color:"#fff"}),g:r.value.length<9},r.value.length<9?{h:e.p({type:"plus",size:"30",color:"#999"}),i:e.o(F)}:{}):{},{j:e.f(e.unref(a.quickActions),((t,o,a)=>({a:e.t(t.label),b:o,c:e.o((e=>P(t)),o)}))),k:e.o((e=>i.value=!0)),l:e.o((e=>i.value=!1)),m:e.o(J),n:l.value,o:e.o((e=>l.value=e.detail.value)),p:!l.value.trim()&&!i.value&&0===r.value.length},l.value.trim()||i.value||0!==r.value.length?{}:{q:e.p({type:"camera",size:"24",color:"#666"}),r:e.o(F)},{s:(l.value.trim()||i.value||r.value.length>0)&&!c.value},(l.value.trim()||i.value||r.value.length>0)&&!c.value?{t:e.p({type:"paperplane-filled",size:"20",color:"#fff"}),v:e.o(J)}:{},{w:c.value},c.value?{x:e.p({type:"spinner-cycle",size:"20",color:"#ccc"})}:{})}}),n=e._export_sfc(s,[["__scopeId","data-v-f3306fff"]]);wx.createPage(n); diff --git a/dist/build/mp-weixin/pages/ai/chat.json b/dist/build/mp-weixin/pages/ai/chat.json index 6a4ac11..cab5d4c 100644 --- a/dist/build/mp-weixin/pages/ai/chat.json +++ b/dist/build/mp-weixin/pages/ai/chat.json @@ -1,7 +1,6 @@ { "navigationBarTitleText": "客服服务", "enablePullDownRefresh": true, - "backgroundTextStyle": "dark", "usingComponents": { "uni-icons": "../../uni_modules/uni-icons/components/uni-icons/uni-icons" } diff --git a/dist/build/mp-weixin/pages/ai/chat.wxml b/dist/build/mp-weixin/pages/ai/chat.wxml index 6187251..d70992b 100644 --- a/dist/build/mp-weixin/pages/ai/chat.wxml +++ b/dist/build/mp-weixin/pages/ai/chat.wxml @@ -1 +1 @@ -{{line.a}}{{question.a}}{{message.C}}{{c}}添加图片 \ No newline at end of file +{{line.a}}{{question.a}}{{message.C}}{{c}}添加图片{{action.a}} \ No newline at end of file diff --git a/dist/build/mp-weixin/pages/ai/chat.wxss b/dist/build/mp-weixin/pages/ai/chat.wxss index 1b3b5e0..4ed689c 100644 --- a/dist/build/mp-weixin/pages/ai/chat.wxss +++ b/dist/build/mp-weixin/pages/ai/chat.wxss @@ -1 +1 @@ -.chat-container.data-v-d335cb2c{display:flex;flex-direction:column;min-height:100vh;width:100vw;background-color:#f5f5f5}.chat-messages.data-v-d335cb2c{width:100%;padding:30rpx 20rpx;padding-bottom:calc(200rpx + env(safe-area-inset-bottom));box-sizing:border-box;flex:1}.message-item.data-v-d335cb2c{display:flex;width:100%;box-sizing:border-box;margin-bottom:30rpx;animation:fadeIn-d335cb2c .3s ease-in}.message-item.user-message.data-v-d335cb2c{justify-content:flex-end;align-items:flex-start}.message-item.user-message .message-content-wrapper.data-v-d335cb2c{align-items:flex-end}.message-item.user-message .message-content.data-v-d335cb2c{background-color:#1c64f2;color:#fff;margin-right:0;flex-shrink:0}.message-item.user-message .message-content .message-images.data-v-d335cb2c{margin-bottom:0}.message-item.user-message .message-content .message-images .message-image-item.data-v-d335cb2c{border-radius:8rpx}.message-item.user-message .message-time.data-v-d335cb2c{color:#999;font-size:22rpx;margin-top:6rpx;text-align:right;min-width:80rpx}.message-item.user-message .message-meta.data-v-d335cb2c{display:flex;align-items:center;justify-content:flex-end;margin-top:6rpx;gap:8rpx;flex-direction:row}.message-item.ai-message.data-v-d335cb2c,.message-item.ai-message .message-content-wrapper.data-v-d335cb2c{align-items:flex-start}.message-item.ai-message .message-content.data-v-d335cb2c{background-color:#fff;color:#333;margin-left:12rpx;margin-right:0;flex-shrink:0}.message-item.ai-message .message-time.data-v-d335cb2c{color:#999;font-size:22rpx;min-width:80rpx}.message-item.ai-message .message-meta.data-v-d335cb2c{display:flex;align-items:center;justify-content:flex-start;margin-top:6rpx;gap:8rpx;margin-left:12rpx;flex-direction:row}.message-item.ai-message .message-avatar.data-v-d335cb2c{margin-right:0;flex-shrink:0}@keyframes fadeIn-d335cb2c{0%{opacity:0;transform:translateY(10rpx)}to{opacity:1;transform:translateY(0)}}.message-avatar.data-v-d335cb2c{width:60rpx;height:60rpx;border-radius:50%;overflow:hidden;flex-shrink:0}.message-avatar image.data-v-d335cb2c{width:100%;height:100%}.message-avatar .user-avatar-image.data-v-d335cb2c{width:100%;height:100%;border-radius:50%}.message-avatar .user-avatar.data-v-d335cb2c{width:100%;height:100%;background:linear-gradient(135deg,#667eea 0%,#764ba2 100%);display:flex;align-items:center;justify-content:center;color:#fff;font-size:24rpx;font-weight:500}.message-content-wrapper.data-v-d335cb2c{display:flex;flex-direction:column;max-width:calc(100vw - 100rpx)}.message-content.data-v-d335cb2c{padding:20rpx 24rpx;border-radius:16rpx;font-size:28rpx;line-height:1.5;word-wrap:break-word;word-break:break-all;box-sizing:border-box}.message-content.loading.data-v-d335cb2c{opacity:.7}.message-content.data-v-d335cb2c:has(.message-images){padding:12rpx}.user-message .message-content.data-v-d335cb2c:has(.message-images){padding:8rpx;background-color:transparent}.message-content view.data-v-d335cb2c{display:block;width:100%;word-wrap:break-word;word-break:break-all}.message-content view.data-v-d335cb2c:not(:last-child){margin-bottom:8rpx}.message-content text.data-v-d335cb2c{display:inline;word-wrap:break-word;word-break:break-all}.quick-questions.data-v-d335cb2c{margin-top:16rpx;display:flex;flex-direction:column;gap:12rpx;padding-left:12rpx}.question-btn.data-v-d335cb2c{background-color:#f0f7ff;border:1px solid #d0e3ff;border-radius:12rpx;padding:16rpx 20rpx;font-size:26rpx;color:#1c64f2;line-height:1.4;transition:all .2s ease}.question-btn.data-v-d335cb2c:active{background-color:#e6f2ff;transform:scale(.98)}.question-btn text.data-v-d335cb2c{display:block;word-wrap:break-word;word-break:break-all}.confirmation-buttons.data-v-d335cb2c{margin-top:16rpx;display:flex;gap:16rpx;justify-content:flex-start;padding-left:12rpx}.confirmation-btn.data-v-d335cb2c{width:38rpx;border-radius:12rpx;padding:16rpx 32rpx;font-size:28rpx;line-height:1.4;text-align:center;transition:all .2s ease;background-color:#fff;color:#000;border:1px solid #e5e5e5}.confirmation-btn.data-v-d335cb2c:active:not(.disabled){transform:scale(.98)}.confirmation-btn.selected.data-v-d335cb2c{background-color:#1c64f2;color:#fff;border-color:#1c64f2}.confirmation-btn.disabled.data-v-d335cb2c{opacity:.6;cursor:not-allowed}.confirmation-btn text.data-v-d335cb2c{display:block;font-weight:500}.chat-input-area.data-v-d335cb2c{position:fixed;bottom:0;left:0;right:0;background-color:#fff;border-top:1px solid #e5e5e5;padding:20rpx;padding-bottom:calc(20rpx + env(safe-area-inset-bottom));z-index:100}.input-container.data-v-d335cb2c{display:flex;align-items:center;background-color:#f5f5f5;border-radius:50rpx;padding:10rpx 20rpx}.message-input.data-v-d335cb2c{flex:1;height:70rpx;font-size:28rpx;padding:0 20rpx;background-color:transparent}.send-button.data-v-d335cb2c{width:70rpx;height:70rpx;background:linear-gradient(135deg,#1c64f2 0%,#0e4aa7 100%);border-radius:50%;display:flex;align-items:center;justify-content:center;margin-left:20rpx}.send-button.disabled.data-v-d335cb2c{opacity:.5;pointer-events:none}.upload-button.data-v-d335cb2c{width:70rpx;height:70rpx;background-color:#f5f5f5;border-radius:50%;display:flex;align-items:center;justify-content:center;margin-left:20rpx}.image-preview-area.data-v-d335cb2c{margin-bottom:20rpx;padding:0 20rpx}.image-preview-list.data-v-d335cb2c{display:flex;flex-wrap:wrap;gap:16rpx}.image-preview-item.data-v-d335cb2c{position:relative;width:120rpx;height:120rpx;border-radius:12rpx;overflow:hidden}.image-preview-item.add-more-button.data-v-d335cb2c{background-color:#f5f5f5;border:2rpx dashed #ddd;display:flex;flex-direction:column;align-items:center;justify-content:center;cursor:pointer}.image-preview-item.add-more-button.data-v-d335cb2c:active{background-color:#e8e8e8}.preview-image.data-v-d335cb2c{width:100%;height:100%}.add-more-text.data-v-d335cb2c{font-size:22rpx;color:#999;margin-top:8rpx}.remove-image.data-v-d335cb2c{position:absolute;top:8rpx;right:8rpx;width:40rpx;height:40rpx;background-color:rgba(0,0,0,.6);border-radius:50%;display:flex;align-items:center;justify-content:center}.message-images.data-v-d335cb2c{display:flex;flex-wrap:wrap;gap:12rpx;margin-bottom:12rpx;max-width:500rpx}.user-message .message-images.data-v-d335cb2c{margin-bottom:0}.message-image-item.data-v-d335cb2c{border-radius:12rpx;overflow:hidden}.message-image-item.single-image.data-v-d335cb2c{max-width:500rpx;width:500rpx!important;height:auto!important}.user-message .message-image-item.single-image.data-v-d335cb2c{max-width:450rpx;width:450rpx!important}.message-image-item.data-v-d335cb2c:not(.single-image){width:200rpx;height:200rpx}.message-image.data-v-d335cb2c{width:100%;height:100%;display:block}.message-text-line.data-v-d335cb2c{margin-bottom:4rpx}.message-text-line.data-v-d335cb2c:last-child{margin-bottom:0}.copy-button.data-v-d335cb2c{width:32rpx;height:32rpx;display:flex;align-items:center;justify-content:center;border-radius:4rpx;transition:background-color .2s ease}.copy-button.data-v-d335cb2c:active{background-color:rgba(0,0,0,.05)}.copy-button .copy-icon.data-v-d335cb2c{width:26rpx;height:26rpx;opacity:.7} +.chat-container.data-v-f3306fff{display:flex;flex-direction:column;min-height:100vh;width:100vw}.chat-messages.data-v-f3306fff{width:100%;padding:30rpx 20rpx;padding-bottom:calc(220rpx + env(safe-area-inset-bottom));box-sizing:border-box;flex:1}.message-item.data-v-f3306fff{display:flex;width:100%;box-sizing:border-box;margin-bottom:30rpx;animation:fadeIn-f3306fff .3s ease-in}.ai-message.data-v-f3306fff,.ai-message .message-content-wrapper.data-v-f3306fff{align-items:flex-start}.ai-message .message-content.data-v-f3306fff{background-color:#f5f5f5;color:#333;margin-left:12rpx;margin-right:0;flex-shrink:0}.ai-message .message-time.data-v-f3306fff{color:#999;font-size:22rpx;min-width:80rpx}.ai-message .message-meta.data-v-f3306fff{display:flex;align-items:center;justify-content:flex-start;margin-top:6rpx;gap:8rpx;margin-left:12rpx;flex-direction:row}.ai-message .message-avatar.data-v-f3306fff{margin-right:0;flex-shrink:0}.user-message.data-v-f3306fff{justify-content:flex-end;align-items:flex-start}.user-message .message-content-wrapper.data-v-f3306fff{align-items:flex-end}.user-message .message-content.data-v-f3306fff{background-color:#1c64f2;color:#fff;margin-right:0;flex-shrink:0}.user-message .message-content .message-images.data-v-f3306fff{margin-bottom:20rpx}.user-message .message-content .message-images .message-image-item.data-v-f3306fff{border-radius:8rpx}.user-message .message-time.data-v-f3306fff{color:#999;font-size:22rpx;margin-top:6rpx;text-align:right;min-width:80rpx}.user-message .message-meta.data-v-f3306fff{display:flex;align-items:center;justify-content:flex-end;margin-top:6rpx;gap:8rpx;flex-direction:row}@keyframes fadeIn-f3306fff{0%{opacity:0;transform:translateY(10rpx)}to{opacity:1;transform:translateY(0)}}.message-avatar.data-v-f3306fff{width:80rpx;height:80rpx;border-radius:50%;overflow:hidden;flex-shrink:0}.message-avatar image.data-v-f3306fff{width:100%;height:100%}.message-avatar .user-avatar-image.data-v-f3306fff{width:100%;height:100%;border-radius:50%}.message-avatar .user-avatar.data-v-f3306fff{width:100%;height:100%;background:linear-gradient(135deg,#667eea 0%,#764ba2 100%);display:flex;align-items:center;justify-content:center;color:#fff;font-size:24rpx;font-weight:500}.message-content-wrapper.data-v-f3306fff{display:flex;flex-direction:column;max-width:calc(100vw - 100rpx)}.message-content.data-v-f3306fff{padding:20rpx 24rpx;border-radius:16rpx;font-size:28rpx;line-height:1.5;word-wrap:break-word;word-break:break-all;box-sizing:border-box;background-color:#1c64f2}.message-content.loading.data-v-f3306fff{opacity:.7}.message-content.data-v-f3306fff:has(.message-images){padding:12rpx}.user-message .message-content.data-v-f3306fff:has(.message-images){padding:8rpx}.message-content view.data-v-f3306fff{display:block;width:100%;word-wrap:break-word;word-break:break-all}.message-content view.data-v-f3306fff:not(:last-child){margin-bottom:8rpx}.message-content text.data-v-f3306fff{display:inline;word-wrap:break-word;word-break:break-all}.quick-questions.data-v-f3306fff{margin-top:16rpx;display:flex;flex-direction:column;gap:12rpx;padding-left:12rpx}.question-btn.data-v-f3306fff{background-color:#f0f7ff;border:1px solid #d0e3ff;border-radius:12rpx;padding:16rpx 20rpx;font-size:26rpx;color:#1c64f2;line-height:1.4;transition:all .2s ease}.question-btn.data-v-f3306fff:active{background-color:#e6f2ff;transform:scale(.98)}.question-btn text.data-v-f3306fff{display:block;word-wrap:break-word;word-break:break-all}.confirmation-buttons.data-v-f3306fff{margin-top:16rpx;display:flex;gap:16rpx;justify-content:flex-start;padding-left:12rpx}.confirmation-btn.data-v-f3306fff{width:38rpx;border-radius:10rpx;padding:16rpx 22rpx;font-size:24rpx;line-height:1.4;text-align:center;transition:all .2s ease;background-color:#fff;color:#000;border:1px solid #e5e5e5}.confirmation-btn.data-v-f3306fff:active:not(.disabled){transform:scale(.98)}.confirmation-btn.selected.data-v-f3306fff{background-color:#1c64f2;color:#fff;border-color:#1c64f2}.confirmation-btn.disabled.data-v-f3306fff{opacity:.6;cursor:not-allowed}.confirmation-btn text.data-v-f3306fff{display:block;font-weight:500}.chat-input-area.data-v-f3306fff{position:fixed;bottom:0;left:0;right:0;background-color:#f8f8f8;border-top:1px solid #eee;padding:20rpx;padding-bottom:calc(30rpx + env(safe-area-inset-bottom));z-index:100}.input-container.data-v-f3306fff{display:flex;align-items:center;background-color:#fff;border-radius:50rpx;padding:10rpx 20rpx}.message-input.data-v-f3306fff{flex:1;height:70rpx;font-size:28rpx;padding:0 20rpx;background-color:transparent}.send-button.data-v-f3306fff{width:70rpx;height:70rpx;background:linear-gradient(135deg,#1c64f2 0%,#0e4aa7 100%);border-radius:50%;display:flex;align-items:center;justify-content:center;margin-left:20rpx}.send-button.disabled.data-v-f3306fff{opacity:.5;pointer-events:none}.upload-button.data-v-f3306fff{width:70rpx;height:70rpx;background-color:#f5f5f5;border-radius:50%;display:flex;align-items:center;justify-content:center;margin-left:20rpx}.image-preview-area.data-v-f3306fff{margin-bottom:20rpx}.quick-actions-bar.data-v-f3306fff{display:flex;flex-wrap:wrap;gap:16rpx;padding:0 0 16rpx}.quick-action-btn.data-v-f3306fff{height:60rpx;padding:0 24rpx;background-color:#fff;border:1px solid #e5e5e5;border-radius:100rpx;font-size:23rpx;color:#333;display:flex;align-items:center;justify-content:center;transition:all .2s ease;white-space:nowrap}.quick-action-btn.data-v-f3306fff:active{transform:scale(.98);background-color:#f8f8f8}.quick-action-btn text.data-v-f3306fff{display:block}.image-preview-list.data-v-f3306fff{display:flex;flex-wrap:wrap;gap:16rpx}.image-preview-item.data-v-f3306fff{position:relative;width:120rpx;height:120rpx;border-radius:12rpx;overflow:hidden}.image-preview-item.add-more-button.data-v-f3306fff{background-color:#f5f5f5;border:2rpx dashed #ddd;display:flex;flex-direction:column;align-items:center;justify-content:center;cursor:pointer}.image-preview-item.add-more-button.data-v-f3306fff:active{background-color:#e8e8e8}.preview-image.data-v-f3306fff{width:100%;height:100%}.add-more-text.data-v-f3306fff{font-size:22rpx;color:#999;margin-top:8rpx}.remove-image.data-v-f3306fff{position:absolute;top:8rpx;right:8rpx;width:40rpx;height:40rpx;background-color:rgba(0,0,0,.6);border-radius:50%;display:flex;align-items:center;justify-content:center}.message-images.data-v-f3306fff{display:flex;flex-wrap:wrap;gap:12rpx;margin-bottom:12rpx;max-width:500rpx}.user-message .message-images.data-v-f3306fff{margin-bottom:0}.message-image-item.data-v-f3306fff{border-radius:12rpx;overflow:hidden}.message-image-item.single-image.data-v-f3306fff{max-width:500rpx;width:500rpx!important;height:auto!important}.user-message .message-image-item.single-image.data-v-f3306fff{max-width:450rpx;width:450rpx!important}.message-image-item.data-v-f3306fff:not(.single-image){width:200rpx;height:200rpx}.message-image.data-v-f3306fff{width:100%;height:100%;display:block}.message-text-line.data-v-f3306fff{margin-bottom:4rpx}.message-text-line.data-v-f3306fff:last-child{margin-bottom:0}.copy-button.data-v-f3306fff{width:32rpx;height:32rpx;display:flex;align-items:center;justify-content:center;border-radius:4rpx;transition:background-color .2s ease}.copy-button.data-v-f3306fff:active{background-color:rgba(0,0,0,.05)}.copy-button .copy-icon.data-v-f3306fff{width:26rpx;height:26rpx;opacity:.7} diff --git a/dist/build/mp-weixin/pages/ai/index.js b/dist/build/mp-weixin/pages/ai/index.js deleted file mode 100644 index 380601f..0000000 --- a/dist/build/mp-weixin/pages/ai/index.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";const e=require("../../common/vendor.js");require("../../common/libraries/request.js"),require("../../common/store/useWeAppAuthStore.js"),require("../../common/store/useWorkStore.js"),require("../../gen/Apis.js"),require("../../common/libraries/setTabBar.js"),require("../../common/libraries/apiLoading.js");const r=e.defineComponent({__name:"index",setup:r=>(e.onShow((async e=>{const r=getCurrentPages()[0];"function"==typeof r.getTabBar&&r.getTabBar()&&r.getTabBar().setData({selected:1})})),(e,r)=>({}))});wx.createPage(r); diff --git a/dist/build/mp-weixin/pages/ai/index.json b/dist/build/mp-weixin/pages/ai/index.json deleted file mode 100644 index ca79faf..0000000 --- a/dist/build/mp-weixin/pages/ai/index.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "navigationBarTitleText": "智能管家", - "usingComponents": {} -} \ No newline at end of file diff --git a/dist/build/mp-weixin/pages/ai/index.wxml b/dist/build/mp-weixin/pages/ai/index.wxml deleted file mode 100644 index 9966095..0000000 --- a/dist/build/mp-weixin/pages/ai/index.wxml +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/build/mp-weixin/pages/ai/index.wxss b/dist/build/mp-weixin/pages/ai/index.wxss deleted file mode 100644 index dcfac8f..0000000 --- a/dist/build/mp-weixin/pages/ai/index.wxss +++ /dev/null @@ -1 +0,0 @@ -#dify-chatbot-bubble-button{background-color:#1c64f2!important}#dify-chatbot-bubble-window{width:24rem!important;height:40rem!important}page{background-color:#f8f8f8}.contact_btn{border:none!important;background-color:transparent;padding:0;line-height:1;color:inherit;font-size:inherit;display:inline-flex;align-items:center;justify-content:center;outline:none;box-shadow:none}button:after{border:none!important} diff --git a/dist/build/mp-weixin/pages/index/components/AiInput.js b/dist/build/mp-weixin/pages/index/components/AiInput.js index 97a79e2..455b02b 100644 --- a/dist/build/mp-weixin/pages/index/components/AiInput.js +++ b/dist/build/mp-weixin/pages/index/components/AiInput.js @@ -1 +1 @@ -"use strict";const e=require("../../../common/vendor.js"),r=require("../../../common/libraries/naviHelper.js");if(require("../../../common/libraries/getPageConfig.js"),require("../../../common/store/useWeAppAuthStore.js"),require("../../../gen/Apis.js"),require("../../../common/libraries/request.js"),require("../../../common/store/useWorkStore.js"),require("../../../common/libraries/setTabBar.js"),require("../../../common/libraries/apiLoading.js"),!Array){e.resolveComponent("uni-icons")()}Math;const o=e.defineComponent({__name:"AiInput",setup(o){const s=()=>{r.showToast("该功能在当前项目暂未开放,敬请期待!")};return(r,o)=>({a:e.o(s),b:e.p({type:"arrow-right",size:"20",color:"#666"})})}}),s=e._export_sfc(o,[["__scopeId","data-v-568fe921"]]);wx.createComponent(s); +"use strict";const e=require("../../../common/vendor.js");require("../../../common/libraries/getPageConfig.js");const r=require("../../../common/libraries/public.js");if(require("../../../common/store/useWeAppAuthStore.js"),require("../../../gen/Apis.js"),require("../../../common/libraries/request.js"),require("../../../common/store/useWorkStore.js"),require("../../../common/libraries/setTabBar.js"),require("../../../common/libraries/apiLoading.js"),!Array){e.resolveComponent("uni-icons")()}Math;const o=e.defineComponent({__name:"AiInput",setup(o){const i=()=>{e.index.navigateTo({url:"/pages/ai/chat"})};return(o,s)=>({a:e.p({type:"arrow-right",size:"20",color:"#A4A4A4"}),b:e.o(i),c:e.f(e.unref(r.quickActions),((r,o,i)=>({a:`/static/svg/${r.icon}`,b:e.t(r.label),c:`item_${o}`,d:e.o((o=>(r=>{e.index.navigateTo({url:`/pages/ai/chat?message=${null==r?void 0:r.message}`})})(r)),`item_${o}`)})))})}}),i=e._export_sfc(o,[["__scopeId","data-v-165fd657"]]);wx.createComponent(i); diff --git a/dist/build/mp-weixin/pages/index/components/AiInput.wxml b/dist/build/mp-weixin/pages/index/components/AiInput.wxml index 22776aa..670fc69 100644 --- a/dist/build/mp-weixin/pages/index/components/AiInput.wxml +++ b/dist/build/mp-weixin/pages/index/components/AiInput.wxml @@ -1 +1 @@ -HI,遇到什么问题了,可以问我哦~ 房屋缴费 工单查询 房屋绑定 钱包 \ No newline at end of file +我是客服邻邻,遇到问题了,可以问我哦~ 点击联系在线客服 {{i.b}} \ No newline at end of file diff --git a/dist/build/mp-weixin/pages/index/components/AiInput.wxss b/dist/build/mp-weixin/pages/index/components/AiInput.wxss index ce8ffe7..46e4125 100644 --- a/dist/build/mp-weixin/pages/index/components/AiInput.wxss +++ b/dist/build/mp-weixin/pages/index/components/AiInput.wxss @@ -1 +1 @@ -.ai_contents.data-v-568fe921{background-color:#fff;padding:6rpx;border-radius:20rpx;height:320rpx;margin:30rpx}.ai_contents .ai_contents_center.data-v-568fe921{border-radius:20rpx;background:linear-gradient(307deg,rgba(255,137,24,.06) -1%,rgba(255,255,255,0) 29%),linear-gradient(243deg,rgba(75,72,255,.06) 1%,rgba(255,255,255,0) 20%),linear-gradient(303deg,rgba(255,255,255,0) 71%,rgba(40,26,255,.08) 100%),linear-gradient(231deg,rgba(255,255,255,0) 76%,rgba(255,105,0,.06) 98%,rgba(255,145,68,.06) 98%);width:100%;height:100%}.ai_contents .ai_contents_center button.data-v-568fe921{padding:0;margin:0 30rpx;text-align:left;display:flex;align-items:center;background-color:transparent;height:90rpx;border-radius:100rpx;box-shadow:0 4px 10px 3px rgba(231,231,231,.3)}.ai_contents .ai_contents_header.data-v-568fe921{display:flex;align-items:center;padding:30rpx;color:#333;font-size:30rpx}.ai_contents .ai_contents_header image.data-v-568fe921{width:52rpx;height:52rpx}.ai_contents .ai_contents_header text.data-v-568fe921{padding-left:20rpx}.ai_contents .ai_contents_input.data-v-568fe921{display:flex;align-items:center;justify-content:space-between;background-color:#fff;border-radius:100rpx;padding:0 20rpx;width:100%}.ai_contents .ai_contents_input .ai_input.data-v-568fe921{flex:1;font-size:28rpx;color:#666}.ai_contents .ai_contents_input .ai_input input.data-v-568fe921{height:100%}.ai_contents .ai_footer.data-v-568fe921{padding:30rpx 0 0;white-space:nowrap}.ai_contents .ai_footer .items.data-v-568fe921{background-color:#fff;box-shadow:0 0 6px 3px rgba(199,199,199,.1);border-radius:10rpx;display:inline-block;height:70rpx;color:#3d3d3d;font-size:24rpx;padding:0 20rpx;margin-right:15rpx}.ai_contents .ai_footer .items.data-v-568fe921:first-child{margin-left:30rpx}.ai_contents .ai_footer .items.data-v-568fe921:last-child{margin-right:30rpx}.ai_contents .ai_footer .items .items_center.data-v-568fe921{display:flex;align-items:center;height:100%}.ai_contents .ai_footer .items image.data-v-568fe921{width:40rpx;height:40rpx;margin-right:10rpx} +.ai_contents.data-v-165fd657{background-color:#fff;padding:6rpx;border-radius:20rpx;height:320rpx;margin:30rpx}.ai_contents .ai_contents_center.data-v-165fd657{border-radius:20rpx;background:linear-gradient(307deg,rgba(255,137,24,.06) -1%,rgba(255,255,255,0) 29%),linear-gradient(243deg,rgba(75,72,255,.06) 1%,rgba(255,255,255,0) 20%),linear-gradient(303deg,rgba(255,255,255,0) 71%,rgba(40,26,255,.08) 100%),linear-gradient(231deg,rgba(255,255,255,0) 76%,rgba(255,105,0,.06) 98%,rgba(255,145,68,.06) 98%);width:100%;height:100%}.ai_contents .ai_contents_center button.data-v-165fd657{padding:0;margin:0 30rpx;text-align:left;display:flex;align-items:center;background-color:transparent;height:90rpx;border-radius:100rpx;box-shadow:0 4px 10px 3px rgba(231,231,231,.3)}.ai_contents .ai_contents_header.data-v-165fd657{display:flex;align-items:center;color:#333;font-size:28rpx;padding:0 0 0 50rpx}.ai_contents .ai_contents_header image.data-v-165fd657{height:130rpx;position:relative;margin-top:-22rpx}.ai_contents .ai_contents_header text.data-v-165fd657{padding:5rpx 0 0 15rpx}.ai_contents .ai_contents_input.data-v-165fd657{display:flex;align-items:center;justify-content:space-between;background-color:#fff;border-radius:10rpx;padding:15rpx 20rpx;margin:5rpx 30rpx;box-shadow:0 4px 10px rgba(231,231,231,.3)}.ai_contents .ai_contents_input .ai_input.data-v-165fd657{flex:1;font-size:28rpx;color:#666}.ai_contents .ai_contents_input .ai_input input.data-v-165fd657{height:100%}.ai_contents .ai_footer.data-v-165fd657{padding:25rpx 0 0;white-space:nowrap}.ai_contents .ai_footer .items.data-v-165fd657{background-color:#fff;box-shadow:0 0 6px 3px rgba(199,199,199,.1);border-radius:10rpx;display:inline-block;height:70rpx;color:#3d3d3d;font-size:24rpx;padding:0 20rpx;margin-right:15rpx}.ai_contents .ai_footer .items.data-v-165fd657:first-child{margin-left:30rpx}.ai_contents .ai_footer .items.data-v-165fd657:last-child{margin-right:30rpx}.ai_contents .ai_footer .items .items_center.data-v-165fd657{display:flex;align-items:center;height:100%}.ai_contents .ai_footer .items image.data-v-165fd657{width:40rpx;height:40rpx;margin-right:10rpx} diff --git a/dist/build/mp-weixin/pages/index/components/Classification.js b/dist/build/mp-weixin/pages/index/components/Classification.js index 56605b0..93d43db 100644 --- a/dist/build/mp-weixin/pages/index/components/Classification.js +++ b/dist/build/mp-weixin/pages/index/components/Classification.js @@ -1 +1 @@ -"use strict";const e=require("../../../common/vendor.js"),o=require("../../../common/libraries/IsHouseExist.js"),n=require("../model.js");require("../../../common/libraries/request.js");const i=require("../../../common/store/useWeAppAuthStore.js");require("../../../common/store/useWorkStore.js"),require("../../../gen/Apis.js"),require("../../../common/libraries/setTabBar.js"),require("../../../common/libraries/apiLoading.js");const l=e.defineComponent({__name:"Classification",setup(l){const s=i.useWeAppAuthStore(),r=e.ref({}),u=e=>{r.value=e.detail};return(i,l)=>{var r,t,c;return{a:e.f(null==(c=null==(t=null==(r=e.unref(s))?void 0:r.data)?void 0:t.config)?void 0:c.companyAction,((i,l,s)=>{var r,u,t,c,a,d,m,v;return e.e({a:null==i?void 0:i.is_show},(null==i?void 0:i.is_show)?e.e({b:(null==(u=null==(r=i.icon)?void 0:r[0])?void 0:u.url)||"",c:!l&&(null==(c=null==(t=e.unref(n.useModel))?void 0:t.countBills)?void 0:c.value)},!l&&(null==(d=null==(a=e.unref(n.useModel))?void 0:a.countBills)?void 0:d.value)?{d:e.t(null==(v=null==(m=e.unref(n.useModel))?void 0:m.countBills)?void 0:v.value)}:{},{e:e.t(i.name),f:e.o((n=>(async n=>{o.getIsHouseExist(n)&&((null==n?void 0:n.skip_url)?e.index.navigateTo({url:null==n?void 0:n.skip_url}):e.index.showModal({title:"提示",content:"该功能在当前项目暂未开放,敬请期待",confirmColor:"#0082FA",success:function(e){e.confirm?console.log("用户点击确定"):e.cancel&&console.log("用户点击取消")}}))})(i)),`items_${l}`)}):{},{g:`items_${l}`})})),b:e.o(u)}}}}),s=e._export_sfc(l,[["__scopeId","data-v-fea27a57"]]);wx.createComponent(s); +"use strict";const e=require("../../../common/vendor.js"),o=require("../../../common/libraries/IsHouseExist.js"),n=require("../model.js");require("../../../common/libraries/request.js");const i=require("../../../common/store/useWeAppAuthStore.js");require("../../../common/store/useWorkStore.js"),require("../../../gen/Apis.js"),require("../../../common/libraries/setTabBar.js"),require("../../../common/libraries/apiLoading.js");const l=e.defineComponent({__name:"Classification",setup(l){const s=i.useWeAppAuthStore(),r=e.ref({}),u=e=>{r.value=e.detail};return(i,l)=>{var r,t,c;return{a:e.f(null==(c=null==(t=null==(r=e.unref(s))?void 0:r.data)?void 0:t.config)?void 0:c.companyAction,((i,l,s)=>{var r,u,t,c,a,d,m,v;return e.e({a:null==i?void 0:i.is_show},(null==i?void 0:i.is_show)?e.e({b:(null==(u=null==(r=i.icon)?void 0:r[0])?void 0:u.url)||"",c:!l&&(null==(c=null==(t=e.unref(n.useModel))?void 0:t.countBills)?void 0:c.value)},!l&&(null==(d=null==(a=e.unref(n.useModel))?void 0:a.countBills)?void 0:d.value)?{d:e.t(null==(v=null==(m=e.unref(n.useModel))?void 0:m.countBills)?void 0:v.value)}:{},{e:e.t(i.name),f:e.o((n=>(async n=>{o.getIsHouseExist(n)&&((null==n?void 0:n.skip_url)?e.index.navigateTo({url:null==n?void 0:n.skip_url}):e.index.showModal({title:"提示",content:"该功能在当前项目暂未开放,敬请期待",confirmColor:"#0082FA",success:function(e){e.confirm?console.log("用户点击确定"):e.cancel&&console.log("用户点击取消")}}))})(i)),`items_${l}`)}):{},{g:`items_${l}`})})),b:e.o(u)}}}}),s=e._export_sfc(l,[["__scopeId","data-v-c966f7e1"]]);wx.createComponent(s); diff --git a/dist/build/mp-weixin/pages/index/components/Classification.wxml b/dist/build/mp-weixin/pages/index/components/Classification.wxml index 322f332..3f2c31a 100644 --- a/dist/build/mp-weixin/pages/index/components/Classification.wxml +++ b/dist/build/mp-weixin/pages/index/components/Classification.wxml @@ -1 +1 @@ -{{i.d}}{{i.e}} \ No newline at end of file +{{i.d}}{{i.e}} \ No newline at end of file diff --git a/dist/build/mp-weixin/pages/index/components/Classification.wxss b/dist/build/mp-weixin/pages/index/components/Classification.wxss index 80e4c3c..c675f9b 100644 --- a/dist/build/mp-weixin/pages/index/components/Classification.wxss +++ b/dist/build/mp-weixin/pages/index/components/Classification.wxss @@ -1 +1 @@ -.class_ification.data-v-fea27a57{color:#3d3d3d;margin:0 30rpx;border-radius:12rpx;white-space:nowrap}.class_ification .class_ification_scroll.data-v-fea27a57{padding-top:30rpx}.class_ification .items.data-v-fea27a57{text-align:center;font-size:24rpx;display:inline-block;color:#333;width:20%}.class_ification .items .icon_image.data-v-fea27a57{width:100rpx;height:100rpx;border-radius:28rpx;margin:0 auto;position:relative}.class_ification .items .icon_image .badge.data-v-fea27a57{position:absolute;background-color:#f5222d;color:#fff;padding:3rpx;border-radius:100rpx;top:-15rpx;min-width:35rpx;right:-15rpx;font-size:23rpx}.class_ification .items image.data-v-fea27a57{width:100%;height:100%}.class_ification .items .label.data-v-fea27a57{padding:15rpx 0 0} +.class_ification.data-v-c966f7e1{color:#3d3d3d;margin:0 30rpx;border-radius:12rpx;white-space:nowrap}.class_ification .class_ification_scroll.data-v-c966f7e1{padding-top:30rpx}.class_ification .items.data-v-c966f7e1{text-align:center;font-size:24rpx;display:inline-block;color:#333;width:20%}.class_ification .items .icon_image.data-v-c966f7e1{width:100rpx;height:100rpx;border-radius:28rpx;margin:0 auto;position:relative}.class_ification .items .icon_image .badge.data-v-c966f7e1{position:absolute;background-color:#f5222d;color:#fff;padding:3rpx;border-radius:100rpx;top:-15rpx;min-width:35rpx;right:-15rpx;font-size:23rpx}.class_ification .items image.data-v-c966f7e1{width:100%;height:100%}.class_ification .items .label.data-v-c966f7e1{padding:15rpx 0 0} diff --git a/dist/build/mp-weixin/pages/me/components/AreaFunctional.js b/dist/build/mp-weixin/pages/me/components/AreaFunctional.js index c2ba0ed..a1b8405 100644 --- a/dist/build/mp-weixin/pages/me/components/AreaFunctional.js +++ b/dist/build/mp-weixin/pages/me/components/AreaFunctional.js @@ -1 +1 @@ -"use strict";const e=require("../../../common/vendor.js"),o=require("../model.js"),n=require("../../../common/libraries/IsHouseExist.js");require("../../../common/libraries/request.js"),require("../../../common/store/useWeAppAuthStore.js"),require("../../../gen/Apis.js"),require("../../../common/store/useWorkStore.js"),require("../../../common/libraries/setTabBar.js"),require("../../../common/libraries/apiLoading.js"),Math||i();const i=()=>"./ContactButler.js",l=e.defineComponent({__name:"AreaFunctional",setup(i){const l=[{label:"我的事项",icon:"IconReview",url:"/INDEX/owner_audit_list/index"},{label:"我的活动",icon:"IconEvent",url:"/ME/activities_list/index"},{label:"关于我们",icon:"AboutUs",url:"https://mp.weixin.qq.com/s/g-l92Xrzb5pRlGcyS99M3Q",type:"H5"},{label:"意见反馈",icon:"Feedback",url:"/ME/feedback/index"}],r=o=>{n.getIsHouseExist()&&e.index.navigateTo({url:o})};return(i,t)=>{var u,s,a,c,d,v;return{a:e.f(l,((o,i,l)=>({a:`/static/svg/${(null==o?void 0:o.icon)||""}.svg`,b:e.t((null==o?void 0:o.label)||""),c:`items_${i}`,d:e.o((i=>{return l=o,void(n.getIsHouseExist()&&("H5"===(null==l?void 0:l.type)&&(null==l?void 0:l.url)?e.index.navigateTo({url:`/pages/web_view/index?web_url=${encodeURIComponent(null==l?void 0:l.url)}`}):(null==l?void 0:l.url)?e.index.navigateTo({url:null==l?void 0:l.url}):e.index.showModal({title:"提示",content:"该功能在当前项目暂未开放,敬请期待",confirmColor:"#0082FA",success:function(e){e.confirm?console.log("用户点击确定"):e.cancel&&console.log("用户点击取消")}})));var l}),`items_${i}`)}))),b:e.t((null==(a=null==(s=null==(u=e.unref(o.useModel))?void 0:u.countHouseData)?void 0:s.value)?void 0:a.house_count)||0),c:e.o((e=>r("/INDEX/archive_houses/index"))),d:e.t((null==(v=null==(d=null==(c=e.unref(o.useModel))?void 0:c.countHouseData)?void 0:d.value)?void 0:v.prepayment_house_count)||0),e:e.o((e=>r("/ME/payment_pre_stored/index")))}}}}),r=e._export_sfc(l,[["__scopeId","data-v-6009f5b9"]]);wx.createComponent(r); +"use strict";const e=require("../../../common/vendor.js"),o=require("../model.js"),n=require("../../../common/libraries/IsHouseExist.js");require("../../../common/libraries/request.js"),require("../../../common/store/useWeAppAuthStore.js"),require("../../../gen/Apis.js"),require("../../../common/store/useWorkStore.js"),require("../../../common/libraries/setTabBar.js"),require("../../../common/libraries/apiLoading.js"),Math||i();const i=()=>"./ContactButler.js",l=e.defineComponent({__name:"AreaFunctional",setup(i){const l=[{label:"我的事项",icon:"IconReview",url:"/INDEX/owner_audit_list/index"},{label:"我的活动",icon:"IconEvent",url:"/ME/activities_list/index"},{label:"关于我们",icon:"AboutUs",url:"https://mp.weixin.qq.com/s/g-l92Xrzb5pRlGcyS99M3Q",type:"H5"},{label:"意见反馈",icon:"Feedback",url:"/ME/feedback/index"}],r=o=>{n.getIsHouseExist()&&e.index.navigateTo({url:o})};return(i,t)=>{var u,s,a,c,d,v;return{a:e.f(l,((o,i,l)=>({a:`/static/svg/${(null==o?void 0:o.icon)||""}.svg`,b:e.t((null==o?void 0:o.label)||""),c:`items_${i}`,d:e.o((i=>{return l=o,void(n.getIsHouseExist()&&("H5"===(null==l?void 0:l.type)&&(null==l?void 0:l.url)?e.index.navigateTo({url:`/pages/web_view/index?web_url=${encodeURIComponent(null==l?void 0:l.url)}`}):(null==l?void 0:l.url)?e.index.navigateTo({url:null==l?void 0:l.url}):e.index.showModal({title:"提示",content:"该功能在当前项目暂未开放,敬请期待",confirmColor:"#0082FA",success:function(e){e.confirm?console.log("用户点击确定"):e.cancel&&console.log("用户点击取消")}})));var l}),`items_${i}`)}))),b:e.t((null==(a=null==(s=null==(u=e.unref(o.useModel))?void 0:u.countHouseData)?void 0:s.value)?void 0:a.house_count)||0),c:e.o((e=>r("/INDEX/archive_houses/index"))),d:e.t((null==(v=null==(d=null==(c=e.unref(o.useModel))?void 0:c.countHouseData)?void 0:d.value)?void 0:v.prepayment_house_count)||0),e:e.o((e=>r("/ME/payment_pre_stored/index")))}}}}),r=e._export_sfc(l,[["__scopeId","data-v-f3536146"]]);wx.createComponent(r); diff --git a/dist/build/mp-weixin/pages/me/components/AreaFunctional.wxml b/dist/build/mp-weixin/pages/me/components/AreaFunctional.wxml index ed39382..3e6c4eb 100644 --- a/dist/build/mp-weixin/pages/me/components/AreaFunctional.wxml +++ b/dist/build/mp-weixin/pages/me/components/AreaFunctional.wxml @@ -1 +1 @@ -{{i.b}}房屋管理 已绑定{{b}}个房屋 房屋预缴 已开通{{d}}个房屋 \ No newline at end of file +{{i.b}}房屋管理 已绑定{{b}}个房屋 房屋预缴 已开通{{d}}个房屋 \ No newline at end of file diff --git a/dist/build/mp-weixin/pages/me/components/AreaFunctional.wxss b/dist/build/mp-weixin/pages/me/components/AreaFunctional.wxss index 7fc5bde..ebc3719 100644 --- a/dist/build/mp-weixin/pages/me/components/AreaFunctional.wxss +++ b/dist/build/mp-weixin/pages/me/components/AreaFunctional.wxss @@ -1 +1 @@ -.area_functional.data-v-6009f5b9{background-color:#fff;display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;margin:30rpx;border-radius:20rpx;color:#3d3d3d;font-size:24rpx;padding:10rpx 0 40rpx}.area_functional .item.data-v-6009f5b9{text-align:center;position:relative;padding-top:30rpx;width:25%}.area_functional .item .icon.data-v-6009f5b9{width:100%;height:42rpx}.area_functional .item .icon image.data-v-6009f5b9{height:42rpx}.area_functional .item .label.data-v-6009f5b9{padding-top:10rpx}.house_wallet.data-v-6009f5b9{display:flex;align-items:center;justify-content:space-between;margin:0 30rpx;padding-bottom:30rpx}.house_wallet .item.data-v-6009f5b9{background-color:#fff;border-radius:20rpx;width:330rpx;height:140rpx;display:flex;align-items:center;justify-content:space-between}.house_wallet .item .content.data-v-6009f5b9{padding:0 0 0 30rpx}.house_wallet .item .title.data-v-6009f5b9{color:#3d3d3d;font-size:28rpx;font-weight:500;padding-bottom:10rpx}.house_wallet .item image.data-v-6009f5b9{width:80rpx;height:80rpx;margin-right:30rpx}.house_wallet .item .value.data-v-6009f5b9{color:#999;font-size:24rpx}.house_wallet .item .value text.data-v-6009f5b9{color:#c45656} +.area_functional.data-v-f3536146{background-color:#fff;display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;margin:30rpx;border-radius:20rpx;color:#3d3d3d;font-size:24rpx;padding:10rpx 0 40rpx}.area_functional .item.data-v-f3536146{text-align:center;position:relative;padding-top:30rpx;width:25%}.area_functional .item .icon.data-v-f3536146{width:100%;height:42rpx}.area_functional .item .icon image.data-v-f3536146{height:42rpx}.area_functional .item .label.data-v-f3536146{padding-top:10rpx}.house_wallet.data-v-f3536146{display:flex;align-items:center;justify-content:space-between;margin:0 30rpx;padding-bottom:30rpx}.house_wallet .item.data-v-f3536146{background-color:#fff;border-radius:20rpx;width:330rpx;height:140rpx;display:flex;align-items:center;justify-content:space-between}.house_wallet .item .content.data-v-f3536146{padding:0 0 0 30rpx}.house_wallet .item .title.data-v-f3536146{color:#3d3d3d;font-size:28rpx;font-weight:500;padding-bottom:10rpx}.house_wallet .item image.data-v-f3536146{width:80rpx;height:80rpx;margin-right:30rpx}.house_wallet .item .value.data-v-f3536146{color:#999;font-size:24rpx}.house_wallet .item .value text.data-v-f3536146{color:#c45656} diff --git a/dist/build/mp-weixin/static/images/IconHouse.png b/dist/build/mp-weixin/static/images/IconHouse.png deleted file mode 100644 index 1594547..0000000 Binary files a/dist/build/mp-weixin/static/images/IconHouse.png and /dev/null differ diff --git a/dist/build/mp-weixin/static/images/IconWallet.png b/dist/build/mp-weixin/static/images/IconWallet.png deleted file mode 100644 index c04c6fb..0000000 Binary files a/dist/build/mp-weixin/static/images/IconWallet.png and /dev/null differ diff --git a/dist/build/mp-weixin/static/images/zhifubao.png b/dist/build/mp-weixin/static/images/zhifubao.png deleted file mode 100644 index fad8133..0000000 Binary files a/dist/build/mp-weixin/static/images/zhifubao.png and /dev/null differ diff --git a/dist/build/mp-weixin/static/svg/QBGL.svg b/dist/build/mp-weixin/static/svg/QBGL.svg deleted file mode 100644 index 08b2ac5..0000000 --- a/dist/build/mp-weixin/static/svg/QBGL.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/build/mp-weixin/static/svg/functionalIcon1.svg b/dist/build/mp-weixin/static/svg/functionalIcon1.svg deleted file mode 100644 index 399bea6..0000000 --- a/dist/build/mp-weixin/static/svg/functionalIcon1.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/build/mp-weixin/static/svg/functionalIcon2.svg b/dist/build/mp-weixin/static/svg/functionalIcon2.svg deleted file mode 100644 index d612e31..0000000 --- a/dist/build/mp-weixin/static/svg/functionalIcon2.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/build/mp-weixin/static/svg/functionalIcon3.svg b/dist/build/mp-weixin/static/svg/functionalIcon3.svg deleted file mode 100644 index e5ce85e..0000000 --- a/dist/build/mp-weixin/static/svg/functionalIcon3.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/build/mp-weixin/static/svg/functionalIcon4.svg b/dist/build/mp-weixin/static/svg/functionalIcon4.svg deleted file mode 100644 index f592f35..0000000 --- a/dist/build/mp-weixin/static/svg/functionalIcon4.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/build/mp-weixin/static/svg/functionalIcon5.svg b/dist/build/mp-weixin/static/svg/functionalIcon5.svg deleted file mode 100644 index f7db5e1..0000000 --- a/dist/build/mp-weixin/static/svg/functionalIcon5.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/build/mp-weixin/static/svg/functionalIcon6.svg b/dist/build/mp-weixin/static/svg/functionalIcon6.svg deleted file mode 100644 index 315b24c..0000000 --- a/dist/build/mp-weixin/static/svg/functionalIcon6.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/build/mp-weixin/static/svg/functionalIcon7.svg b/dist/build/mp-weixin/static/svg/functionalIcon7.svg deleted file mode 100644 index 7ccf839..0000000 --- a/dist/build/mp-weixin/static/svg/functionalIcon7.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/build/mp-weixin/static/svg/jingang_icon1.svg b/dist/build/mp-weixin/static/svg/jingang_icon1.svg deleted file mode 100644 index ba2125b..0000000 --- a/dist/build/mp-weixin/static/svg/jingang_icon1.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/build/mp-weixin/static/svg/jingang_icon2.svg b/dist/build/mp-weixin/static/svg/jingang_icon2.svg deleted file mode 100644 index e18dbe6..0000000 --- a/dist/build/mp-weixin/static/svg/jingang_icon2.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/build/mp-weixin/static/svg/jingang_icon3.svg b/dist/build/mp-weixin/static/svg/jingang_icon3.svg deleted file mode 100644 index b40eec3..0000000 --- a/dist/build/mp-weixin/static/svg/jingang_icon3.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/build/mp-weixin/static/svg/jingang_icon4.svg b/dist/build/mp-weixin/static/svg/jingang_icon4.svg deleted file mode 100644 index 2f65d8f..0000000 --- a/dist/build/mp-weixin/static/svg/jingang_icon4.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/build/mp-weixin/static/svg/jingang_icon5.svg b/dist/build/mp-weixin/static/svg/jingang_icon5.svg deleted file mode 100644 index 4a04e1a..0000000 --- a/dist/build/mp-weixin/static/svg/jingang_icon5.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/build/mp-weixin/static/svg/jingang_icon8.svg b/dist/build/mp-weixin/static/svg/jingang_icon8.svg deleted file mode 100644 index 5c67ed6..0000000 --- a/dist/build/mp-weixin/static/svg/jingang_icon8.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/build/mp-weixin/static/svg/jingang_icon9.svg b/dist/build/mp-weixin/static/svg/jingang_icon9.svg deleted file mode 100644 index 61ee8b3..0000000 --- a/dist/build/mp-weixin/static/svg/jingang_icon9.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/dev/mp-weixin/common/libraries/public.js b/dist/dev/mp-weixin/common/libraries/public.js index 28e8931..18444de 100644 --- a/dist/dev/mp-weixin/common/libraries/public.js +++ b/dist/dev/mp-weixin/common/libraries/public.js @@ -3,10 +3,10 @@ function formatPhoneNumber(phone) { return phone ? phone.replace(/(\d{3})\d{4}(\d{4})/, "$1****$2") : ""; } const quickActions = [ - { label: "我的账单", message: "请帮我查询我的账单信息", icon: "FWJF.svg" }, - { label: "我要报修", message: "我要报修", icon: "FWJF.svg" }, - { label: "工单查询", message: "请帮我查询我的工单", icon: "GDCX.svg" }, - { label: "社区服务", message: "请提供社区服务信息", icon: "QBGL.svg" } + { label: "房屋缴费", message: "房屋缴费", icon: "FWJF.svg" }, + { label: "房屋绑定", message: "房屋绑定", icon: "bindHouer.svg" }, + { label: "工单查询", message: "工单查询", icon: "work.svg" }, + { label: "社区服务", message: "社区服务", icon: "community.svg" } ]; exports.formatPhoneNumber = formatPhoneNumber; exports.quickActions = quickActions; diff --git a/dist/dev/mp-weixin/common/vendor.js b/dist/dev/mp-weixin/common/vendor.js index d0a79b6..4a194b1 100644 --- a/dist/dev/mp-weixin/common/vendor.js +++ b/dist/dev/mp-weixin/common/vendor.js @@ -11680,305 +11680,316 @@ class Request2 { } } var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {}; -var dayjs_minExports = {}; +function getDefaultExportFromCjs(x) { + return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x; +} +var dayjs_minExports$1 = {}; var dayjs_min = { get exports() { - return dayjs_minExports; + return dayjs_minExports$1; }, set exports(v) { - dayjs_minExports = v; + dayjs_minExports$1 = v; } }; -(function(module2, exports2) { - !function(t2, e2) { - module2.exports = e2(); - }(commonjsGlobal, function() { - var t2 = 1e3, e2 = 6e4, n2 = 36e5, r2 = "millisecond", i = "second", s2 = "minute", u = "hour", a = "day", o2 = "week", c = "month", f2 = "quarter", h = "year", d = "date", l = "Invalid Date", $ = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, y = /\[([^\]]+)]|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, M = { 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(t3) { - var e3 = ["th", "st", "nd", "rd"], n3 = t3 % 100; - return "[" + t3 + (e3[(n3 - 20) % 10] || e3[n3] || e3[0]) + "]"; - } }, m = function(t3, e3, n3) { - var r3 = String(t3); - return !r3 || r3.length >= e3 ? t3 : "" + Array(e3 + 1 - r3.length).join(n3) + t3; - }, v = { s: m, z: function(t3) { - var e3 = -t3.utcOffset(), n3 = Math.abs(e3), r3 = Math.floor(n3 / 60), i2 = n3 % 60; - return (e3 <= 0 ? "+" : "-") + m(r3, 2, "0") + ":" + m(i2, 2, "0"); - }, m: function t3(e3, n3) { - if (e3.date() < n3.date()) - return -t3(n3, e3); - var r3 = 12 * (n3.year() - e3.year()) + (n3.month() - e3.month()), i2 = e3.clone().add(r3, c), s3 = n3 - i2 < 0, u2 = e3.clone().add(r3 + (s3 ? -1 : 1), c); - return +(-(r3 + (n3 - i2) / (s3 ? i2 - u2 : u2 - i2)) || 0); - }, a: function(t3) { - return t3 < 0 ? Math.ceil(t3) || 0 : Math.floor(t3); - }, p: function(t3) { - return { M: c, y: h, w: o2, d: a, D: d, h: u, m: s2, s: i, ms: r2, Q: f2 }[t3] || String(t3 || "").toLowerCase().replace(/s$/, ""); - }, u: function(t3) { - return void 0 === t3; - } }, g = "en", D = {}; - D[g] = M; - var p2 = "$isDayjsObject", S = function(t3) { - return t3 instanceof _ || !(!t3 || !t3[p2]); - }, w = function t3(e3, n3, r3) { - var i2; - if (!e3) - return g; - if ("string" == typeof e3) { - var s3 = e3.toLowerCase(); - D[s3] && (i2 = s3), n3 && (D[s3] = n3, i2 = s3); - var u2 = e3.split("-"); - if (!i2 && u2.length > 1) - return t3(u2[0]); - } else { - var a2 = e3.name; - D[a2] = e3, i2 = a2; - } - return !r3 && i2 && (g = i2), i2 || !r3 && g; - }, O = function(t3, e3) { - if (S(t3)) - return t3.clone(); - var n3 = "object" == typeof e3 ? e3 : {}; - return n3.date = t3, n3.args = arguments, new _(n3); - }, b = v; - b.l = w, b.i = S, b.w = function(t3, e3) { - return O(t3, { locale: e3.$L, utc: e3.$u, x: e3.$x, $offset: e3.$offset }); - }; - var _ = function() { - function M2(t3) { - this.$L = w(t3.locale, null, true), this.parse(t3), this.$x = this.$x || t3.x || {}, this[p2] = true; - } - var m2 = M2.prototype; - return m2.parse = function(t3) { - this.$d = function(t4) { - var e3 = t4.date, n3 = t4.utc; - if (null === e3) - return new Date(NaN); - if (b.u(e3)) - return new Date(); - if (e3 instanceof Date) - return new Date(e3); - if ("string" == typeof e3 && !/Z$/i.test(e3)) { - var r3 = e3.match($); - if (r3) { - var i2 = r3[2] - 1 || 0, s3 = (r3[7] || "0").substring(0, 3); - return n3 ? new Date(Date.UTC(r3[1], i2, r3[3] || 1, r3[4] || 0, r3[5] || 0, r3[6] || 0, s3)) : new Date(r3[1], i2, r3[3] || 1, r3[4] || 0, r3[5] || 0, r3[6] || 0, s3); - } - } - return new Date(e3); - }(t3), this.init(); - }, m2.init = function() { - var t3 = this.$d; - this.$y = t3.getFullYear(), this.$M = t3.getMonth(), this.$D = t3.getDate(), this.$W = t3.getDay(), this.$H = t3.getHours(), this.$m = t3.getMinutes(), this.$s = t3.getSeconds(), this.$ms = t3.getMilliseconds(); - }, m2.$utils = function() { - return b; - }, m2.isValid = function() { - return !(this.$d.toString() === l); - }, m2.isSame = function(t3, e3) { - var n3 = O(t3); - return this.startOf(e3) <= n3 && n3 <= this.endOf(e3); - }, m2.isAfter = function(t3, e3) { - return O(t3) < this.startOf(e3); - }, m2.isBefore = function(t3, e3) { - return this.endOf(e3) < O(t3); - }, m2.$g = function(t3, e3, n3) { - return b.u(t3) ? this[e3] : this.set(n3, t3); - }, m2.unix = function() { - return Math.floor(this.valueOf() / 1e3); - }, m2.valueOf = function() { - return this.$d.getTime(); - }, m2.startOf = function(t3, e3) { - var n3 = this, r3 = !!b.u(e3) || e3, f3 = b.p(t3), l2 = function(t4, e4) { - var i2 = b.w(n3.$u ? Date.UTC(n3.$y, e4, t4) : new Date(n3.$y, e4, t4), n3); - return r3 ? i2 : i2.endOf(a); - }, $2 = function(t4, e4) { - return b.w(n3.toDate()[t4].apply(n3.toDate("s"), (r3 ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(e4)), n3); - }, y2 = this.$W, M3 = this.$M, m3 = this.$D, v2 = "set" + (this.$u ? "UTC" : ""); - switch (f3) { - case h: - return r3 ? l2(1, 0) : l2(31, 11); - case c: - return r3 ? l2(1, M3) : l2(0, M3 + 1); - case o2: - var g2 = this.$locale().weekStart || 0, D2 = (y2 < g2 ? y2 + 7 : y2) - g2; - return l2(r3 ? m3 - D2 : m3 + (6 - D2), M3); - case a: - case d: - return $2(v2 + "Hours", 0); - case u: - return $2(v2 + "Minutes", 1); - case s2: - return $2(v2 + "Seconds", 2); - case i: - return $2(v2 + "Milliseconds", 3); - default: - return this.clone(); +var hasRequiredDayjs_min; +function requireDayjs_min() { + if (hasRequiredDayjs_min) + return dayjs_minExports$1; + hasRequiredDayjs_min = 1; + (function(module2, exports2) { + !function(t2, e2) { + module2.exports = e2(); + }(commonjsGlobal, function() { + var t2 = 1e3, e2 = 6e4, n2 = 36e5, r2 = "millisecond", i = "second", s2 = "minute", u = "hour", a = "day", o2 = "week", c = "month", f2 = "quarter", h = "year", d = "date", l = "Invalid Date", $ = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, y = /\[([^\]]+)]|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, M = { 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(t3) { + var e3 = ["th", "st", "nd", "rd"], n3 = t3 % 100; + return "[" + t3 + (e3[(n3 - 20) % 10] || e3[n3] || e3[0]) + "]"; + } }, m = function(t3, e3, n3) { + var r3 = String(t3); + return !r3 || r3.length >= e3 ? t3 : "" + Array(e3 + 1 - r3.length).join(n3) + t3; + }, v = { s: m, z: function(t3) { + var e3 = -t3.utcOffset(), n3 = Math.abs(e3), r3 = Math.floor(n3 / 60), i2 = n3 % 60; + return (e3 <= 0 ? "+" : "-") + m(r3, 2, "0") + ":" + m(i2, 2, "0"); + }, m: function t3(e3, n3) { + if (e3.date() < n3.date()) + return -t3(n3, e3); + var r3 = 12 * (n3.year() - e3.year()) + (n3.month() - e3.month()), i2 = e3.clone().add(r3, c), s3 = n3 - i2 < 0, u2 = e3.clone().add(r3 + (s3 ? -1 : 1), c); + return +(-(r3 + (n3 - i2) / (s3 ? i2 - u2 : u2 - i2)) || 0); + }, a: function(t3) { + return t3 < 0 ? Math.ceil(t3) || 0 : Math.floor(t3); + }, p: function(t3) { + return { M: c, y: h, w: o2, d: a, D: d, h: u, m: s2, s: i, ms: r2, Q: f2 }[t3] || String(t3 || "").toLowerCase().replace(/s$/, ""); + }, u: function(t3) { + return void 0 === t3; + } }, g = "en", D = {}; + D[g] = M; + var p2 = "$isDayjsObject", S = function(t3) { + return t3 instanceof _ || !(!t3 || !t3[p2]); + }, w = function t3(e3, n3, r3) { + var i2; + if (!e3) + return g; + if ("string" == typeof e3) { + var s3 = e3.toLowerCase(); + D[s3] && (i2 = s3), n3 && (D[s3] = n3, i2 = s3); + var u2 = e3.split("-"); + if (!i2 && u2.length > 1) + return t3(u2[0]); + } else { + var a2 = e3.name; + D[a2] = e3, i2 = a2; } - }, m2.endOf = function(t3) { - return this.startOf(t3, false); - }, m2.$set = function(t3, e3) { - var n3, o3 = b.p(t3), f3 = "set" + (this.$u ? "UTC" : ""), l2 = (n3 = {}, n3[a] = f3 + "Date", n3[d] = f3 + "Date", n3[c] = f3 + "Month", n3[h] = f3 + "FullYear", n3[u] = f3 + "Hours", n3[s2] = f3 + "Minutes", n3[i] = f3 + "Seconds", n3[r2] = f3 + "Milliseconds", n3)[o3], $2 = o3 === a ? this.$D + (e3 - this.$W) : e3; - if (o3 === c || o3 === h) { - var y2 = this.clone().set(d, 1); - y2.$d[l2]($2), y2.init(), this.$d = y2.set(d, Math.min(this.$D, y2.daysInMonth())).$d; - } else - l2 && this.$d[l2]($2); - return this.init(), this; - }, m2.set = function(t3, e3) { - return this.clone().$set(t3, e3); - }, m2.get = function(t3) { - return this[b.p(t3)](); - }, m2.add = function(r3, f3) { - var d2, l2 = this; - r3 = Number(r3); - var $2 = b.p(f3), y2 = function(t3) { - var e3 = O(l2); - return b.w(e3.date(e3.date() + Math.round(t3 * r3)), l2); - }; - if ($2 === c) - return this.set(c, this.$M + r3); - if ($2 === h) - return this.set(h, this.$y + r3); - if ($2 === a) - return y2(1); - if ($2 === o2) - return y2(7); - var M3 = (d2 = {}, d2[s2] = e2, d2[u] = n2, d2[i] = t2, d2)[$2] || 1, m3 = this.$d.getTime() + r3 * M3; - return b.w(m3, this); - }, m2.subtract = function(t3, e3) { - return this.add(-1 * t3, e3); - }, m2.format = function(t3) { - var e3 = this, n3 = this.$locale(); - if (!this.isValid()) - return n3.invalidDate || l; - var r3 = t3 || "YYYY-MM-DDTHH:mm:ssZ", i2 = b.z(this), s3 = this.$H, u2 = this.$m, a2 = this.$M, o3 = n3.weekdays, c2 = n3.months, f3 = n3.meridiem, h2 = function(t4, n4, i3, s4) { - return t4 && (t4[n4] || t4(e3, r3)) || i3[n4].slice(0, s4); - }, d2 = function(t4) { - return b.s(s3 % 12 || 12, t4, "0"); - }, $2 = f3 || function(t4, e4, n4) { - var r4 = t4 < 12 ? "AM" : "PM"; - return n4 ? r4.toLowerCase() : r4; - }; - return r3.replace(y, function(t4, r4) { - return r4 || function(t5) { - switch (t5) { - case "YY": - return String(e3.$y).slice(-2); - case "YYYY": - return b.s(e3.$y, 4, "0"); - case "M": - return a2 + 1; - case "MM": - return b.s(a2 + 1, 2, "0"); - case "MMM": - return h2(n3.monthsShort, a2, c2, 3); - case "MMMM": - return h2(c2, a2); - case "D": - return e3.$D; - case "DD": - return b.s(e3.$D, 2, "0"); - case "d": - return String(e3.$W); - case "dd": - return h2(n3.weekdaysMin, e3.$W, o3, 2); - case "ddd": - return h2(n3.weekdaysShort, e3.$W, o3, 3); - case "dddd": - return o3[e3.$W]; - case "H": - return String(s3); - case "HH": - return b.s(s3, 2, "0"); - case "h": - return d2(1); - case "hh": - return d2(2); - case "a": - return $2(s3, u2, true); - case "A": - return $2(s3, u2, false); - case "m": - return String(u2); - case "mm": - return b.s(u2, 2, "0"); - case "s": - return String(e3.$s); - case "ss": - return b.s(e3.$s, 2, "0"); - case "SSS": - return b.s(e3.$ms, 3, "0"); - case "Z": - return i2; - } - return null; - }(t4) || i2.replace(":", ""); - }); - }, m2.utcOffset = function() { - return 15 * -Math.round(this.$d.getTimezoneOffset() / 15); - }, m2.diff = function(r3, d2, l2) { - var $2, y2 = this, M3 = b.p(d2), m3 = O(r3), v2 = (m3.utcOffset() - this.utcOffset()) * e2, g2 = this - m3, D2 = function() { - return b.m(y2, m3); - }; - switch (M3) { - case h: - $2 = D2() / 12; - break; - case c: - $2 = D2(); - break; - case f2: - $2 = D2() / 3; - break; - case o2: - $2 = (g2 - v2) / 6048e5; - break; - case a: - $2 = (g2 - v2) / 864e5; - break; - case u: - $2 = g2 / n2; - break; - case s2: - $2 = g2 / e2; - break; - case i: - $2 = g2 / t2; - break; - default: - $2 = g2; - } - return l2 ? $2 : b.a($2); - }, m2.daysInMonth = function() { - return this.endOf(c).$D; - }, m2.$locale = function() { - return D[this.$L]; - }, m2.locale = function(t3, e3) { - if (!t3) - return this.$L; - var n3 = this.clone(), r3 = w(t3, e3, true); - return r3 && (n3.$L = r3), n3; - }, m2.clone = function() { - return b.w(this.$d, this); - }, m2.toDate = function() { - return new Date(this.valueOf()); - }, m2.toJSON = function() { - return this.isValid() ? this.toISOString() : null; - }, m2.toISOString = function() { - return this.$d.toISOString(); - }, m2.toString = function() { - return this.$d.toUTCString(); - }, M2; - }(), k = _.prototype; - return O.prototype = k, [["$ms", r2], ["$s", i], ["$m", s2], ["$H", u], ["$W", a], ["$M", c], ["$y", h], ["$D", d]].forEach(function(t3) { - k[t3[1]] = function(e3) { - return this.$g(e3, t3[0], t3[1]); + return !r3 && i2 && (g = i2), i2 || !r3 && g; + }, O = function(t3, e3) { + if (S(t3)) + return t3.clone(); + var n3 = "object" == typeof e3 ? e3 : {}; + return n3.date = t3, n3.args = arguments, new _(n3); + }, b = v; + b.l = w, b.i = S, b.w = function(t3, e3) { + return O(t3, { locale: e3.$L, utc: e3.$u, x: e3.$x, $offset: e3.$offset }); }; - }), O.extend = function(t3, e3) { - return t3.$i || (t3(e3, _, O), t3.$i = true), O; - }, O.locale = w, O.isDayjs = S, O.unix = function(t3) { - return O(1e3 * t3); - }, O.en = D[g], O.Ls = D, O.p = {}, O; - }); -})(dayjs_min); -const dayjs = dayjs_minExports; + var _ = function() { + function M2(t3) { + this.$L = w(t3.locale, null, true), this.parse(t3), this.$x = this.$x || t3.x || {}, this[p2] = true; + } + var m2 = M2.prototype; + return m2.parse = function(t3) { + this.$d = function(t4) { + var e3 = t4.date, n3 = t4.utc; + if (null === e3) + return new Date(NaN); + if (b.u(e3)) + return new Date(); + if (e3 instanceof Date) + return new Date(e3); + if ("string" == typeof e3 && !/Z$/i.test(e3)) { + var r3 = e3.match($); + if (r3) { + var i2 = r3[2] - 1 || 0, s3 = (r3[7] || "0").substring(0, 3); + return n3 ? new Date(Date.UTC(r3[1], i2, r3[3] || 1, r3[4] || 0, r3[5] || 0, r3[6] || 0, s3)) : new Date(r3[1], i2, r3[3] || 1, r3[4] || 0, r3[5] || 0, r3[6] || 0, s3); + } + } + return new Date(e3); + }(t3), this.init(); + }, m2.init = function() { + var t3 = this.$d; + this.$y = t3.getFullYear(), this.$M = t3.getMonth(), this.$D = t3.getDate(), this.$W = t3.getDay(), this.$H = t3.getHours(), this.$m = t3.getMinutes(), this.$s = t3.getSeconds(), this.$ms = t3.getMilliseconds(); + }, m2.$utils = function() { + return b; + }, m2.isValid = function() { + return !(this.$d.toString() === l); + }, m2.isSame = function(t3, e3) { + var n3 = O(t3); + return this.startOf(e3) <= n3 && n3 <= this.endOf(e3); + }, m2.isAfter = function(t3, e3) { + return O(t3) < this.startOf(e3); + }, m2.isBefore = function(t3, e3) { + return this.endOf(e3) < O(t3); + }, m2.$g = function(t3, e3, n3) { + return b.u(t3) ? this[e3] : this.set(n3, t3); + }, m2.unix = function() { + return Math.floor(this.valueOf() / 1e3); + }, m2.valueOf = function() { + return this.$d.getTime(); + }, m2.startOf = function(t3, e3) { + var n3 = this, r3 = !!b.u(e3) || e3, f3 = b.p(t3), l2 = function(t4, e4) { + var i2 = b.w(n3.$u ? Date.UTC(n3.$y, e4, t4) : new Date(n3.$y, e4, t4), n3); + return r3 ? i2 : i2.endOf(a); + }, $2 = function(t4, e4) { + return b.w(n3.toDate()[t4].apply(n3.toDate("s"), (r3 ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(e4)), n3); + }, y2 = this.$W, M3 = this.$M, m3 = this.$D, v2 = "set" + (this.$u ? "UTC" : ""); + switch (f3) { + case h: + return r3 ? l2(1, 0) : l2(31, 11); + case c: + return r3 ? l2(1, M3) : l2(0, M3 + 1); + case o2: + var g2 = this.$locale().weekStart || 0, D2 = (y2 < g2 ? y2 + 7 : y2) - g2; + return l2(r3 ? m3 - D2 : m3 + (6 - D2), M3); + case a: + case d: + return $2(v2 + "Hours", 0); + case u: + return $2(v2 + "Minutes", 1); + case s2: + return $2(v2 + "Seconds", 2); + case i: + return $2(v2 + "Milliseconds", 3); + default: + return this.clone(); + } + }, m2.endOf = function(t3) { + return this.startOf(t3, false); + }, m2.$set = function(t3, e3) { + var n3, o3 = b.p(t3), f3 = "set" + (this.$u ? "UTC" : ""), l2 = (n3 = {}, n3[a] = f3 + "Date", n3[d] = f3 + "Date", n3[c] = f3 + "Month", n3[h] = f3 + "FullYear", n3[u] = f3 + "Hours", n3[s2] = f3 + "Minutes", n3[i] = f3 + "Seconds", n3[r2] = f3 + "Milliseconds", n3)[o3], $2 = o3 === a ? this.$D + (e3 - this.$W) : e3; + if (o3 === c || o3 === h) { + var y2 = this.clone().set(d, 1); + y2.$d[l2]($2), y2.init(), this.$d = y2.set(d, Math.min(this.$D, y2.daysInMonth())).$d; + } else + l2 && this.$d[l2]($2); + return this.init(), this; + }, m2.set = function(t3, e3) { + return this.clone().$set(t3, e3); + }, m2.get = function(t3) { + return this[b.p(t3)](); + }, m2.add = function(r3, f3) { + var d2, l2 = this; + r3 = Number(r3); + var $2 = b.p(f3), y2 = function(t3) { + var e3 = O(l2); + return b.w(e3.date(e3.date() + Math.round(t3 * r3)), l2); + }; + if ($2 === c) + return this.set(c, this.$M + r3); + if ($2 === h) + return this.set(h, this.$y + r3); + if ($2 === a) + return y2(1); + if ($2 === o2) + return y2(7); + var M3 = (d2 = {}, d2[s2] = e2, d2[u] = n2, d2[i] = t2, d2)[$2] || 1, m3 = this.$d.getTime() + r3 * M3; + return b.w(m3, this); + }, m2.subtract = function(t3, e3) { + return this.add(-1 * t3, e3); + }, m2.format = function(t3) { + var e3 = this, n3 = this.$locale(); + if (!this.isValid()) + return n3.invalidDate || l; + var r3 = t3 || "YYYY-MM-DDTHH:mm:ssZ", i2 = b.z(this), s3 = this.$H, u2 = this.$m, a2 = this.$M, o3 = n3.weekdays, c2 = n3.months, f3 = n3.meridiem, h2 = function(t4, n4, i3, s4) { + return t4 && (t4[n4] || t4(e3, r3)) || i3[n4].slice(0, s4); + }, d2 = function(t4) { + return b.s(s3 % 12 || 12, t4, "0"); + }, $2 = f3 || function(t4, e4, n4) { + var r4 = t4 < 12 ? "AM" : "PM"; + return n4 ? r4.toLowerCase() : r4; + }; + return r3.replace(y, function(t4, r4) { + return r4 || function(t5) { + switch (t5) { + case "YY": + return String(e3.$y).slice(-2); + case "YYYY": + return b.s(e3.$y, 4, "0"); + case "M": + return a2 + 1; + case "MM": + return b.s(a2 + 1, 2, "0"); + case "MMM": + return h2(n3.monthsShort, a2, c2, 3); + case "MMMM": + return h2(c2, a2); + case "D": + return e3.$D; + case "DD": + return b.s(e3.$D, 2, "0"); + case "d": + return String(e3.$W); + case "dd": + return h2(n3.weekdaysMin, e3.$W, o3, 2); + case "ddd": + return h2(n3.weekdaysShort, e3.$W, o3, 3); + case "dddd": + return o3[e3.$W]; + case "H": + return String(s3); + case "HH": + return b.s(s3, 2, "0"); + case "h": + return d2(1); + case "hh": + return d2(2); + case "a": + return $2(s3, u2, true); + case "A": + return $2(s3, u2, false); + case "m": + return String(u2); + case "mm": + return b.s(u2, 2, "0"); + case "s": + return String(e3.$s); + case "ss": + return b.s(e3.$s, 2, "0"); + case "SSS": + return b.s(e3.$ms, 3, "0"); + case "Z": + return i2; + } + return null; + }(t4) || i2.replace(":", ""); + }); + }, m2.utcOffset = function() { + return 15 * -Math.round(this.$d.getTimezoneOffset() / 15); + }, m2.diff = function(r3, d2, l2) { + var $2, y2 = this, M3 = b.p(d2), m3 = O(r3), v2 = (m3.utcOffset() - this.utcOffset()) * e2, g2 = this - m3, D2 = function() { + return b.m(y2, m3); + }; + switch (M3) { + case h: + $2 = D2() / 12; + break; + case c: + $2 = D2(); + break; + case f2: + $2 = D2() / 3; + break; + case o2: + $2 = (g2 - v2) / 6048e5; + break; + case a: + $2 = (g2 - v2) / 864e5; + break; + case u: + $2 = g2 / n2; + break; + case s2: + $2 = g2 / e2; + break; + case i: + $2 = g2 / t2; + break; + default: + $2 = g2; + } + return l2 ? $2 : b.a($2); + }, m2.daysInMonth = function() { + return this.endOf(c).$D; + }, m2.$locale = function() { + return D[this.$L]; + }, m2.locale = function(t3, e3) { + if (!t3) + return this.$L; + var n3 = this.clone(), r3 = w(t3, e3, true); + return r3 && (n3.$L = r3), n3; + }, m2.clone = function() { + return b.w(this.$d, this); + }, m2.toDate = function() { + return new Date(this.valueOf()); + }, m2.toJSON = function() { + return this.isValid() ? this.toISOString() : null; + }, m2.toISOString = function() { + return this.$d.toISOString(); + }, m2.toString = function() { + return this.$d.toUTCString(); + }, M2; + }(), k = _.prototype; + return O.prototype = k, [["$ms", r2], ["$s", i], ["$m", s2], ["$H", u], ["$W", a], ["$M", c], ["$y", h], ["$D", d]].forEach(function(t3) { + k[t3[1]] = function(e3) { + return this.$g(e3, t3[0], t3[1]); + }; + }), O.extend = function(t3, e3) { + return t3.$i || (t3(e3, _, O), t3.$i = true), O; + }, O.locale = w, O.isDayjs = S, O.unix = function(t3) { + return O(1e3 * t3); + }, O.en = D[g], O.Ls = D, O.p = {}, O; + }); + })(dayjs_min); + return dayjs_minExports$1; +} +var dayjs_minExports = requireDayjs_min(); +const dayjs = /* @__PURE__ */ getDefaultExportFromCjs(dayjs_minExports); var relativeTimeExports = {}; var relativeTime$1 = { get exports() { @@ -12042,7 +12053,7 @@ var zhCn = { }; (function(module2, exports2) { !function(e2, _) { - module2.exports = _(dayjs_minExports); + module2.exports = _(requireDayjs_min()); }(commonjsGlobal, function(e2) { function _(e3) { return e3 && "object" == typeof e3 && "default" in e3 ? e3 : { default: e3 }; diff --git a/dist/dev/mp-weixin/pages/ai/chat.js b/dist/dev/mp-weixin/pages/ai/chat.js index a70cd8c..cf60264 100644 --- a/dist/dev/mp-weixin/pages/ai/chat.js +++ b/dist/dev/mp-weixin/pages/ai/chat.js @@ -267,10 +267,19 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({ console.log("没有历史记录"); messages.value = []; } - const isFirstPageLastPage = !hasMore.value; - if (checkShouldShowQuickQuestions(isFirstPageLastPage)) { - addQuickQuestionsToFirstAIMessage(isFirstPageLastPage); - } + common_vendor.nextTick$1(() => { + if (quickQuestionsData.value.length > 0) { + const welcomeMessage = { + role: "ai", + content: "您好!我是物业客服,有什么可以帮助您的吗?", + quickQuestions: quickQuestionsData.value, + created_at: new Date().toISOString() + }; + messages.value.push(welcomeMessage); + console.log("[Customer] 获取历史记录成功后,在历史记录后面push新开场白消息"); + scrollToBottom(); + } + }); } else { if (historyMessages.length > 0) { setTimeout(() => { @@ -489,16 +498,7 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({ } }; const checkShouldShowQuickQuestions = (isLastPage = false) => { - if (quickQuestionsData.value.length === 0) { - return false; - } - if (messages.value.length === 0) { - return true; - } - if (isLastPage && messages.value.length > 0) { - return true; - } - return false; + return quickQuestionsData.value.length > 0; }; const addQuickQuestionsToFirstAIMessage = (isLastPage = false) => { if (quickQuestionsData.value.length === 0) { @@ -507,13 +507,6 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({ if (!checkShouldShowQuickQuestions(isLastPage)) { return; } - const existingWelcomeMessage = messages.value.find( - (msg) => msg.role === "ai" && msg.quickQuestions && msg.quickQuestions.length > 0 - ); - if (existingWelcomeMessage) { - console.log("[Customer] 开场白已存在,跳过添加"); - return; - } const welcomeMessage = { role: "ai", content: "您好!我是物业客服,有什么可以帮助您的吗?", @@ -524,9 +517,9 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({ if (messages.value.length === 0) { messages.value = [welcomeMessage]; console.log("[Customer] 设置开场白为第一条消息"); - } else if (isLastPage) { + } else { messages.value.unshift(welcomeMessage); - console.log("[Customer] 已加载到最后一页,在第一条消息前面插入开场白"); + console.log("[Customer] 在第一条消息前面插入开场白"); } }; const processMessage = (messageData) => { @@ -877,7 +870,7 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({ e: common_vendor.f(selectedImages.value, (image, index, i0) => { return { a: image, - b: "b15798f7-0-" + i0, + b: "25c36616-0-" + i0, c: common_vendor.o(($event) => removeImage(index), index), d: index }; @@ -937,5 +930,5 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({ }; } }); -const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-b15798f7"], ["__file", "/Users/zsq/Sources/github/2025property-pay/pay-customer/src/pages/ai/chat.vue"]]); +const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__file", "/Users/zsq/Sources/github/2025property-pay/pay-customer/src/pages/ai/chat.vue"]]); wx.createPage(MiniProgramPage); diff --git a/dist/dev/mp-weixin/pages/ai/chat.wxml b/dist/dev/mp-weixin/pages/ai/chat.wxml index 0e73b6b..6a2d067 100644 --- a/dist/dev/mp-weixin/pages/ai/chat.wxml +++ b/dist/dev/mp-weixin/pages/ai/chat.wxml @@ -1 +1 @@ -{{line.a}}{{question.a}}{{message.C}}{{c}}添加图片{{action.a}} \ No newline at end of file + 我是管家-邻邻,有什么可以帮助您的吗? 房屋绑定 物业缴费 工单报事 社区服务 访客邀请 房屋管理 {{line.a}}{{question.a}}{{message.C}}{{c}}添加图片{{action.a}} \ No newline at end of file diff --git a/dist/dev/mp-weixin/pages/ai/chat.wxss b/dist/dev/mp-weixin/pages/ai/chat.wxss index a77eb3c..2f9ab8f 100644 --- a/dist/dev/mp-weixin/pages/ai/chat.wxss +++ b/dist/dev/mp-weixin/pages/ai/chat.wxss @@ -1,42 +1,57 @@ -.chat-container.data-v-b15798f7 { +.chat_container_linear_gradient { + position: fixed; + z-index: 1; + top: 0; + left: 0; + width: 100%; + height: 100vh; + background: linear-gradient(180deg, rgba(208, 229, 255, 0.44) 0%, rgba(255, 255, 255, 0) 600rpx), linear-gradient(159deg, #d3d7ff 0%, rgba(255, 255, 255, 0) 400rpx), linear-gradient(188deg, #dffff3 -8%, #f7f7f7 600rpx); + background-repeat: no-repeat; +} +.chat_messages_body { + position: relative; + z-index: 100; +} +.chat-container { display: flex; flex-direction: column; min-height: 100vh; width: 100vw; } -.chat-messages.data-v-b15798f7 { +.chat-messages { width: 100%; - padding: 30rpx 20rpx; + padding: 0 30rpx; + padding-top: 314rpx; padding-bottom: calc(220rpx + env(safe-area-inset-bottom)); box-sizing: border-box; flex: 1; } -.message-item.data-v-b15798f7 { +.message-item { display: flex; width: 100%; box-sizing: border-box; margin-bottom: 30rpx; - animation: fadeIn-b15798f7 0.3s ease-in; + animation: fadeIn 0.3s ease-in; } -.ai-message.data-v-b15798f7 { +.ai-message { align-items: flex-start; } -.ai-message .message-content-wrapper.data-v-b15798f7 { +.ai-message .message-content-wrapper { align-items: flex-start; } -.ai-message .message-content.data-v-b15798f7 { - background-color: #f5f5f5; +.ai-message .message-content { + background-color: #fff; color: #333; margin-left: 12rpx; margin-right: 0; flex-shrink: 0; } -.ai-message .message-time.data-v-b15798f7 { +.ai-message .message-time { color: #999; font-size: 22rpx; min-width: 80rpx; } -.ai-message .message-meta.data-v-b15798f7 { +.ai-message .message-meta { display: flex; align-items: center; justify-content: flex-start; @@ -45,37 +60,37 @@ margin-left: 12rpx; flex-direction: row; } -.ai-message .message-avatar.data-v-b15798f7 { +.ai-message .message-avatar { margin-right: 0; flex-shrink: 0; } -.user-message.data-v-b15798f7 { +.user-message { justify-content: flex-end; align-items: flex-start; } -.user-message .message-content-wrapper.data-v-b15798f7 { +.user-message .message-content-wrapper { align-items: flex-end; } -.user-message .message-content.data-v-b15798f7 { +.user-message .message-content { background-color: #1c64f2; color: #fff; margin-right: 0; flex-shrink: 0; } -.user-message .message-content .message-images.data-v-b15798f7 { +.user-message .message-content .message-images { margin-bottom: 20rpx; } -.user-message .message-content .message-images .message-image-item.data-v-b15798f7 { +.user-message .message-content .message-images .message-image-item { border-radius: 8rpx; } -.user-message .message-time.data-v-b15798f7 { +.user-message .message-time { color: #999; font-size: 22rpx; margin-top: 6rpx; text-align: right; min-width: 80rpx; } -.user-message .message-meta.data-v-b15798f7 { +.user-message .message-meta { display: flex; align-items: center; justify-content: flex-end; @@ -83,7 +98,7 @@ gap: 8rpx; flex-direction: row; } -@keyframes fadeIn-b15798f7 { +@keyframes fadeIn { from { opacity: 0; transform: translateY(10rpx); @@ -93,23 +108,23 @@ to { transform: translateY(0); } } -.message-avatar.data-v-b15798f7 { +.message-avatar { width: 80rpx; height: 80rpx; border-radius: 50%; overflow: hidden; flex-shrink: 0; } -.message-avatar image.data-v-b15798f7 { +.message-avatar image { width: 100%; height: 100%; } -.message-avatar .user-avatar-image.data-v-b15798f7 { +.message-avatar .user-avatar-image { width: 100%; height: 100%; border-radius: 50%; } -.message-avatar .user-avatar.data-v-b15798f7 { +.message-avatar .user-avatar { width: 100%; height: 100%; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); @@ -120,12 +135,12 @@ to { font-size: 24rpx; font-weight: 500; } -.message-content-wrapper.data-v-b15798f7 { +.message-content-wrapper { display: flex; flex-direction: column; max-width: calc(100vw - 100rpx); } -.message-content.data-v-b15798f7 { +.message-content { padding: 20rpx 24rpx; border-radius: 16rpx; font-size: 28rpx; @@ -135,37 +150,37 @@ to { box-sizing: border-box; background-color: #1c64f2; } -.message-content.loading.data-v-b15798f7 { +.message-content.loading { opacity: 0.7; } -.message-content.data-v-b15798f7:has(.message-images) { +.message-content:has(.message-images) { padding: 12rpx; } -.user-message .message-content.data-v-b15798f7:has(.message-images) { +.user-message .message-content:has(.message-images) { padding: 8rpx; } -.message-content view.data-v-b15798f7 { +.message-content view { display: block; width: 100%; word-wrap: break-word; word-break: break-all; } -.message-content view.data-v-b15798f7:not(:last-child) { +.message-content view:not(:last-child) { margin-bottom: 8rpx; } -.message-content text.data-v-b15798f7 { +.message-content text { display: inline; word-wrap: break-word; word-break: break-all; } -.quick-questions.data-v-b15798f7 { +.quick-questions { margin-top: 16rpx; display: flex; flex-direction: column; gap: 12rpx; padding-left: 12rpx; } -.question-btn.data-v-b15798f7 { +.question-btn { background-color: #f0f7ff; border: 1px solid #d0e3ff; border-radius: 12rpx; @@ -175,23 +190,23 @@ to { line-height: 1.4; transition: all 0.2s ease; } -.question-btn.data-v-b15798f7:active { +.question-btn:active { background-color: #e6f2ff; transform: scale(0.98); } -.question-btn text.data-v-b15798f7 { +.question-btn text { display: block; word-wrap: break-word; word-break: break-all; } -.confirmation-buttons.data-v-b15798f7 { +.confirmation-buttons { margin-top: 16rpx; display: flex; gap: 16rpx; justify-content: flex-start; padding-left: 12rpx; } -.confirmation-btn.data-v-b15798f7 { +.confirmation-btn { width: 38rpx; border-radius: 10rpx; padding: 16rpx 22rpx; @@ -203,48 +218,48 @@ to { color: #000; border: 1px solid #e5e5e5; } -.confirmation-btn.data-v-b15798f7:active:not(.disabled) { +.confirmation-btn:active:not(.disabled) { transform: scale(0.98); } -.confirmation-btn.selected.data-v-b15798f7 { +.confirmation-btn.selected { background-color: #1c64f2; color: #fff; border-color: #1c64f2; } -.confirmation-btn.disabled.data-v-b15798f7 { +.confirmation-btn.disabled { opacity: 0.6; cursor: not-allowed; } -.confirmation-btn text.data-v-b15798f7 { +.confirmation-btn text { display: block; font-weight: 500; } -.chat-input-area.data-v-b15798f7 { +.chat-input-area { position: fixed; bottom: 0; left: 0; right: 0; - background-color: #f8f8f8; - border-top: 1px solid #eee; + background-color: #fff; + border-top: 1px solid #f8f8f8; padding: 20rpx 20rpx; padding-bottom: calc(30rpx + env(safe-area-inset-bottom)); z-index: 100; } -.input-container.data-v-b15798f7 { +.input-container { display: flex; align-items: center; - background-color: #fff; + background-color: #f7f7f7; border-radius: 50rpx; padding: 10rpx 20rpx; } -.message-input.data-v-b15798f7 { +.message-input { flex: 1; height: 70rpx; font-size: 28rpx; padding: 0 20rpx; background-color: transparent; } -.send-button.data-v-b15798f7 { +.send-button { width: 70rpx; height: 70rpx; background: linear-gradient(135deg, #1c64f2 0%, #0e4aa7 100%); @@ -254,30 +269,30 @@ to { justify-content: center; margin-left: 20rpx; } -.send-button.disabled.data-v-b15798f7 { +.send-button.disabled { opacity: 0.5; pointer-events: none; } -.upload-button.data-v-b15798f7 { +.upload-button { width: 70rpx; height: 70rpx; - background-color: #f5f5f5; + background-color: #f7f7f7; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-left: 20rpx; } -.image-preview-area.data-v-b15798f7 { +.image-preview-area { margin-bottom: 20rpx; } -.quick-actions-bar.data-v-b15798f7 { +.quick-actions-bar { display: flex; flex-wrap: wrap; gap: 16rpx; padding: 0 0 16rpx 0; } -.quick-action-btn.data-v-b15798f7 { +.quick-action-btn { height: 60rpx; padding: 0 24rpx; background-color: #ffffff; @@ -291,26 +306,26 @@ to { transition: all 0.2s ease; white-space: nowrap; } -.quick-action-btn.data-v-b15798f7:active { +.quick-action-btn:active { transform: scale(0.98); background-color: #f8f8f8; } -.quick-action-btn text.data-v-b15798f7 { +.quick-action-btn text { display: block; } -.image-preview-list.data-v-b15798f7 { +.image-preview-list { display: flex; flex-wrap: wrap; gap: 16rpx; } -.image-preview-item.data-v-b15798f7 { +.image-preview-item { position: relative; width: 120rpx; height: 120rpx; border-radius: 12rpx; overflow: hidden; } -.image-preview-item.add-more-button.data-v-b15798f7 { +.image-preview-item.add-more-button { background-color: #f5f5f5; border: 2rpx dashed #ddd; display: flex; @@ -319,19 +334,19 @@ to { justify-content: center; cursor: pointer; } -.image-preview-item.add-more-button.data-v-b15798f7:active { +.image-preview-item.add-more-button:active { background-color: #e8e8e8; } -.preview-image.data-v-b15798f7 { +.preview-image { width: 100%; height: 100%; } -.add-more-text.data-v-b15798f7 { +.add-more-text { font-size: 22rpx; color: #999; margin-top: 8rpx; } -.remove-image.data-v-b15798f7 { +.remove-image { position: absolute; top: 8rpx; right: 8rpx; @@ -343,45 +358,45 @@ to { align-items: center; justify-content: center; } -.message-images.data-v-b15798f7 { +.message-images { display: flex; flex-wrap: wrap; gap: 12rpx; margin-bottom: 12rpx; max-width: 500rpx; } -.user-message .message-images.data-v-b15798f7 { +.user-message .message-images { margin-bottom: 0; } -.message-image-item.data-v-b15798f7 { +.message-image-item { border-radius: 12rpx; overflow: hidden; } -.message-image-item.single-image.data-v-b15798f7 { +.message-image-item.single-image { max-width: 500rpx; width: 500rpx !important; height: auto !important; } -.user-message .message-image-item.single-image.data-v-b15798f7 { +.user-message .message-image-item.single-image { max-width: 450rpx; width: 450rpx !important; } -.message-image-item.data-v-b15798f7:not(.single-image) { +.message-image-item:not(.single-image) { width: 200rpx; height: 200rpx; } -.message-image.data-v-b15798f7 { +.message-image { width: 100%; height: 100%; display: block; } -.message-text-line.data-v-b15798f7 { +.message-text-line { margin-bottom: 4rpx; } -.message-text-line.data-v-b15798f7:last-child { +.message-text-line:last-child { margin-bottom: 0; } -.copy-button.data-v-b15798f7 { +.copy-button { width: 32rpx; height: 32rpx; display: flex; @@ -390,11 +405,78 @@ to { border-radius: 4rpx; transition: background-color 0.2s ease; } -.copy-button.data-v-b15798f7:active { +.copy-button:active { background-color: rgba(0, 0, 0, 0.05); } -.copy-button .copy-icon.data-v-b15798f7 { +.copy-button .copy-icon { width: 26rpx; height: 26rpx; opacity: 0.7; +} +.opening_remarks { + padding: 30rpx; + z-index: 1000; + position: fixed; + top: 0; + left: 0; + right: 0; + background: linear-gradient(180deg, rgba(208, 229, 255, 0.44) 0%, rgba(255, 255, 255, 0) 600rpx), linear-gradient(159deg, #d3d7ff 0%, rgba(255, 255, 255, 0) 400rpx), linear-gradient(188deg, #dffff3 -8%, #f7f7f7 600rpx); +} +.opening_remarks .opening_remarks_body { + height: 254rpx; + border-radius: 20rpx; + border: 1px solid #ffffff; + -webkit-backdrop-filter: blur(10px); + backdrop-filter: blur(10px); + display: flex; + align-items: center; + justify-content: center; + background: linear-gradient(58deg, #e3faff 1%, rgba(255, 255, 255, 0) 24%), linear-gradient(221deg, #dbe3ff 0%, rgba(255, 255, 255, 0) 19%), rgba(255, 255, 255, 0.5); +} +.opening_remarks .opening_remarks_body .opening_remarks_server_img { + width: 56rpx; + height: 224rpx; + margin: 0 40rpx; +} +.opening_remarks .opening_remarks_body .opening_remarks_server_img image { + width: 56rpx; + height: 224rpx; +} +.opening_remarks .opening_remarks_body .opening_remarks_server_info { + flex: 1; + padding-right: 30rpx; +} +.opening_remarks .opening_remarks_body .label { + font-size: 28rpx; + color: #333; + overflow: hidden; + white-space: nowrap; + width: 0; + display: inline-block; + animation: typing 3s steps(30, end) forwards, blink 0.75s step-end infinite; +} +.opening_remarks .opening_remarks_body .group_btn { + display: flex; + align-items: center; + flex-wrap: wrap; +} +.opening_remarks .opening_remarks_body .group_btn_item { + background-color: #fff; + border-radius: 100rpx; + font-size: 24rpx; + color: #333333; + padding: 15rpx 25rpx; + margin-top: 15rpx; + margin-right: 30rpx; +} +.opening_remarks .opening_remarks_body .group_btn_item:nth-child(3n) { + margin-right: 0; +} +@keyframes typing { +from { + width: 0; +} +to { + width: 100%; +} } \ No newline at end of file diff --git a/dist/dev/mp-weixin/pages/index/components/AiInput.js b/dist/dev/mp-weixin/pages/index/components/AiInput.js index e57fc63..7e192bf 100644 --- a/dist/dev/mp-weixin/pages/index/components/AiInput.js +++ b/dist/dev/mp-weixin/pages/index/components/AiInput.js @@ -34,7 +34,7 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({ a: common_vendor.p({ type: "arrow-right", size: "20", - color: "#666" + color: "#A4A4A4" }), b: common_vendor.o(handleInputChange), c: common_vendor.f(common_vendor.unref(common_libraries_public.quickActions), (i, index, i0) => { diff --git a/dist/dev/mp-weixin/pages/index/components/AiInput.wxml b/dist/dev/mp-weixin/pages/index/components/AiInput.wxml index 780508a..f6217f9 100644 --- a/dist/dev/mp-weixin/pages/index/components/AiInput.wxml +++ b/dist/dev/mp-weixin/pages/index/components/AiInput.wxml @@ -1 +1 @@ -HI,遇到什么问题了,可以问我哦~ 点击联系在线客服 {{i.b}} \ No newline at end of file +我是客服邻邻,遇到问题了,可以问我哦~ 点击联系在线客服 {{i.b}} \ No newline at end of file diff --git a/dist/dev/mp-weixin/pages/index/components/AiInput.wxss b/dist/dev/mp-weixin/pages/index/components/AiInput.wxss index f96e216..b1b6efb 100644 --- a/dist/dev/mp-weixin/pages/index/components/AiInput.wxss +++ b/dist/dev/mp-weixin/pages/index/components/AiInput.wxss @@ -25,25 +25,28 @@ .ai_contents .ai_contents_header.data-v-b68fefb8 { display: flex; align-items: center; - padding: 30rpx; color: #333; - font-size: 30rpx; + font-size: 28rpx; + padding: 0 0 0 50rpx; } .ai_contents .ai_contents_header image.data-v-b68fefb8 { - width: 52rpx; - height: 52rpx; + width: 56rpx; + height: 130rpx; + position: relative; + margin-top: -22rpx; } .ai_contents .ai_contents_header text.data-v-b68fefb8 { - padding-left: 20rpx; + padding: 5rpx 0 0 15rpx; } .ai_contents .ai_contents_input.data-v-b68fefb8 { display: flex; align-items: center; justify-content: space-between; background-color: #fff; - border-radius: 100rpx; + border-radius: 10rpx; padding: 15rpx 20rpx; margin: 5rpx 30rpx; + box-shadow: 0px 4px 10px 0px rgba(231, 231, 231, 0.3); } .ai_contents .ai_contents_input .ai_input.data-v-b68fefb8 { flex: 1; @@ -54,7 +57,7 @@ height: 100%; } .ai_contents .ai_footer.data-v-b68fefb8 { - padding: 30rpx 0 0 0; + padding: 25rpx 0 0 0; white-space: nowrap; } .ai_contents .ai_footer .items.data-v-b68fefb8 { diff --git a/dist/dev/mp-weixin/pages/index/components/ModalServer.js b/dist/dev/mp-weixin/pages/index/components/ModalServer.js index 74778d4..e555106 100644 --- a/dist/dev/mp-weixin/pages/index/components/ModalServer.js +++ b/dist/dev/mp-weixin/pages/index/components/ModalServer.js @@ -21,6 +21,7 @@ if (!Math) { const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({ __name: "ModalServer", setup(__props) { + const audit_status = common_vendor.ref(false); const auth = common_store_useWeAppAuthStore.useWeAppAuthStore(); const show_bangding_house = common_vendor.ref(false); const show_review_house = common_vendor.ref(false); @@ -37,9 +38,12 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({ handleClosePopup(); }); const handleSelectResidentialRelation = () => { + if (audit_status.value) + return; common_libraries_apiLoading.getApiLoading(gen_Apis.Apis.Archive.HouseRegisters.GetOwnerIsAudit, {}).then((res) => { if (res == null ? void 0 : res.data) { show_review_house.value = true; + audit_status.value = true; } console.log(res); }); diff --git a/dist/dev/mp-weixin/pages/me/components/AreaFunctional.wxml b/dist/dev/mp-weixin/pages/me/components/AreaFunctional.wxml index f0873e0..5220ee6 100644 --- a/dist/dev/mp-weixin/pages/me/components/AreaFunctional.wxml +++ b/dist/dev/mp-weixin/pages/me/components/AreaFunctional.wxml @@ -1 +1 @@ -{{i.b}}房屋管理 已绑定{{b}}个房屋 房屋预缴 已开通{{d}}个房屋 \ No newline at end of file +{{i.b}}房屋管理 已绑定{{b}}个房屋 房屋预缴 已开通{{d}}个房屋 \ No newline at end of file diff --git a/dist/dev/mp-weixin/project.private.config.json b/dist/dev/mp-weixin/project.private.config.json index 70425d0..3c11075 100644 --- a/dist/dev/mp-weixin/project.private.config.json +++ b/dist/dev/mp-weixin/project.private.config.json @@ -19,5 +19,8 @@ ] } }, - "libVersion": "3.13.2" + "libVersion": "3.13.2", + "setting": { + "bigPackageSizeSupport": false + } } \ No newline at end of file diff --git a/dist/dev/mp-weixin/static/images/IconHouse.png b/dist/dev/mp-weixin/static/images/IconHouse.png deleted file mode 100644 index 1594547..0000000 Binary files a/dist/dev/mp-weixin/static/images/IconHouse.png and /dev/null differ diff --git a/dist/dev/mp-weixin/static/images/IconWallet.png b/dist/dev/mp-weixin/static/images/IconWallet.png deleted file mode 100644 index c04c6fb..0000000 Binary files a/dist/dev/mp-weixin/static/images/IconWallet.png and /dev/null differ diff --git a/dist/dev/mp-weixin/static/images/zhifubao.png b/dist/dev/mp-weixin/static/images/zhifubao.png deleted file mode 100644 index fad8133..0000000 Binary files a/dist/dev/mp-weixin/static/images/zhifubao.png and /dev/null differ diff --git a/dist/dev/mp-weixin/static/svg/QBGL.svg b/dist/dev/mp-weixin/static/svg/QBGL.svg deleted file mode 100644 index 08b2ac5..0000000 --- a/dist/dev/mp-weixin/static/svg/QBGL.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/dev/mp-weixin/static/svg/ai_avatar.svg b/dist/dev/mp-weixin/static/svg/ai_avatar.svg deleted file mode 100644 index 7d7d81e..0000000 --- a/dist/dev/mp-weixin/static/svg/ai_avatar.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/dev/mp-weixin/static/svg/functionalIcon1.svg b/dist/dev/mp-weixin/static/svg/functionalIcon1.svg deleted file mode 100644 index 399bea6..0000000 --- a/dist/dev/mp-weixin/static/svg/functionalIcon1.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/dev/mp-weixin/static/svg/functionalIcon2.svg b/dist/dev/mp-weixin/static/svg/functionalIcon2.svg deleted file mode 100644 index d612e31..0000000 --- a/dist/dev/mp-weixin/static/svg/functionalIcon2.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/dev/mp-weixin/static/svg/functionalIcon3.svg b/dist/dev/mp-weixin/static/svg/functionalIcon3.svg deleted file mode 100644 index e5ce85e..0000000 --- a/dist/dev/mp-weixin/static/svg/functionalIcon3.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/dev/mp-weixin/static/svg/functionalIcon4.svg b/dist/dev/mp-weixin/static/svg/functionalIcon4.svg deleted file mode 100644 index f592f35..0000000 --- a/dist/dev/mp-weixin/static/svg/functionalIcon4.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/dev/mp-weixin/static/svg/functionalIcon5.svg b/dist/dev/mp-weixin/static/svg/functionalIcon5.svg deleted file mode 100644 index f7db5e1..0000000 --- a/dist/dev/mp-weixin/static/svg/functionalIcon5.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/dev/mp-weixin/static/svg/functionalIcon6.svg b/dist/dev/mp-weixin/static/svg/functionalIcon6.svg deleted file mode 100644 index 315b24c..0000000 --- a/dist/dev/mp-weixin/static/svg/functionalIcon6.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/dev/mp-weixin/static/svg/functionalIcon7.svg b/dist/dev/mp-weixin/static/svg/functionalIcon7.svg deleted file mode 100644 index 7ccf839..0000000 --- a/dist/dev/mp-weixin/static/svg/functionalIcon7.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/dev/mp-weixin/static/svg/jingang_icon1.svg b/dist/dev/mp-weixin/static/svg/jingang_icon1.svg deleted file mode 100644 index ba2125b..0000000 --- a/dist/dev/mp-weixin/static/svg/jingang_icon1.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/dev/mp-weixin/static/svg/jingang_icon2.svg b/dist/dev/mp-weixin/static/svg/jingang_icon2.svg deleted file mode 100644 index e18dbe6..0000000 --- a/dist/dev/mp-weixin/static/svg/jingang_icon2.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/dev/mp-weixin/static/svg/jingang_icon3.svg b/dist/dev/mp-weixin/static/svg/jingang_icon3.svg deleted file mode 100644 index b40eec3..0000000 --- a/dist/dev/mp-weixin/static/svg/jingang_icon3.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/dev/mp-weixin/static/svg/jingang_icon4.svg b/dist/dev/mp-weixin/static/svg/jingang_icon4.svg deleted file mode 100644 index 2f65d8f..0000000 --- a/dist/dev/mp-weixin/static/svg/jingang_icon4.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/dev/mp-weixin/static/svg/jingang_icon5.svg b/dist/dev/mp-weixin/static/svg/jingang_icon5.svg deleted file mode 100644 index 4a04e1a..0000000 --- a/dist/dev/mp-weixin/static/svg/jingang_icon5.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/dev/mp-weixin/static/svg/jingang_icon8.svg b/dist/dev/mp-weixin/static/svg/jingang_icon8.svg deleted file mode 100644 index 5c67ed6..0000000 --- a/dist/dev/mp-weixin/static/svg/jingang_icon8.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/dev/mp-weixin/static/svg/jingang_icon9.svg b/dist/dev/mp-weixin/static/svg/jingang_icon9.svg deleted file mode 100644 index 61ee8b3..0000000 --- a/dist/dev/mp-weixin/static/svg/jingang_icon9.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/src/INDEX/collection/confirm.vue b/src/INDEX/collection/confirm.vue index d51bd2c..e609e87 100644 --- a/src/INDEX/collection/confirm.vue +++ b/src/INDEX/collection/confirm.vue @@ -11,7 +11,7 @@ - - - - - - - - - - - - - - - - - - - - - - - {{ line }} + + + + + + + + + 我是管家-邻邻,有什么可以帮助您的吗? + + 房屋绑定 + 物业缴费 + 工单报事 + 社区服务 + 访客邀请 + 房屋管理 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + {{ line }} + + + + + {{ question }} + + + + + + + + + + + + + + + + + {{ formatTime(message.created_at) }} + + + + + + + + + + + + + {{ loadingText }} + + + + + + + + + + + + + + + + + + + 添加图片 + + + + + + - - {{ question }} - - - - - - - - - - - - - - - - - {{ formatTime(message.created_at) }} - - - + {{ action.label }} - - - - - - - {{ loadingText }} - - - + + - - - - - - - - - - - - + - - 添加图片 + - - - - - - {{ action.label }} - - + + + + - - - - - - - - - - - - - - - - + + + + @@ -229,7 +257,7 @@ import dayjs from 'dayjs' import relativeTime from 'dayjs/plugin/relativeTime' import 'dayjs/locale/zh-cn' import { upload } from '@/common/libraries/upload' -import { quickActions,QuickAction } from '@/common/libraries/public' +import { quickActions, QuickAction } from '@/common/libraries/public' // 配置dayjs dayjs.extend(relativeTime) @@ -252,7 +280,6 @@ interface Message { } } - const auth = useWeAppAuthStore() const inputMessage = ref('') const selectedImages = ref([]) // 选中的图片 @@ -283,8 +310,6 @@ const currentOffset = ref(0) // 当前偏移量 const quickQuestionsData = ref([]) // 存储开场白数据 const lastMessageContent = ref('') // 用于防止重复显示相同的消息 - - // 获取开场白按钮数据 const getQuickQuestions = async () => { try { @@ -1260,7 +1285,7 @@ onUnmounted(() => { }) // 页面加载时获取历史记录和开场白 -onLoad(async (op) => { +onLoad(async op => { // 始终获取开场白数据 quickQuestionsData.value = await getQuickQuestions() console.log('页面加载时已获取开场白按钮数据:', quickQuestionsData.value.length) @@ -1268,487 +1293,11 @@ onLoad(async (op) => { // 获取历史记录(如果有历史记录,会在接口返回成功后自动在最前方插入开场白) getHistoryMessages(1) - if(op?.message){ + if (op?.message) { handleQuickAction(op as QuickAction) } }) - - diff --git a/src/pages/ai/index.vue b/src/pages/ai/index.vue deleted file mode 100644 index 78d7881..0000000 --- a/src/pages/ai/index.vue +++ /dev/null @@ -1,29 +0,0 @@ - - - - diff --git a/src/pages/ai/style.scss b/src/pages/ai/style.scss index e534acc..6d9618c 100644 --- a/src/pages/ai/style.scss +++ b/src/pages/ai/style.scss @@ -1,20 +1,565 @@ -page { - background-color: #f8f8f8; +.chat_container_linear_gradient { + position: fixed; + z-index: 1; + top: 0; + left: 0; + width: 100%; + height: 100vh; + background: + linear-gradient(180deg, rgba(208, 229, 255, 0.44) 0%, rgba(255, 255, 255, 0) 600rpx), + linear-gradient(159deg, #d3d7ff 0%, rgba(255, 255, 255, 0) 400rpx), + linear-gradient(188deg, #dffff3 -8%, #f7f7f7 600rpx); + background-repeat: no-repeat; +} +.chat_messages_body { + position: relative; + z-index: 100; +} +.chat-container { + display: flex; + flex-direction: column; + min-height: 100vh; + width: 100vw; + // background-color: #f5f5f5; } -.contact_btn { - border: none !important; /* 去掉边框 */ - background-color: transparent; /* 去掉背景色 */ - padding: 0; /* 去掉内边距 */ - line-height: 1; /* 设置行高 */ - color: inherit; /* 继承父元素的颜色 */ - font-size: inherit; /* 继承父元素的字体大小 */ - display: inline-flex; /* 设置为行内弹性盒子,以便更好地控制布局 */ - align-items: center; /* 垂直居中 */ - justify-content: center; /* 水平居中 */ - outline: none; /* 去掉轮廓 */ - box-shadow: none; /* 去掉阴影 */ +.chat-messages { + width: 100%; + padding: 0 30rpx; + padding-top: 314rpx; + padding-bottom: calc(220rpx + env(safe-area-inset-bottom)); + box-sizing: border-box; + flex: 1; } -button:after { - border: none !important; /* 去掉边框 */ + +.message-item { + display: flex; + width: 100%; + box-sizing: border-box; + margin-bottom: 30rpx; + animation: fadeIn 0.3s ease-in; +} +.ai-message { + align-items: flex-start; + + .message-content-wrapper { + align-items: flex-start; + } + + .message-content { + background-color: #fff; + color: #333; + margin-left: 12rpx; + margin-right: 0; + flex-shrink: 0; + } + + .message-time { + color: #999; + font-size: 22rpx; + min-width: 80rpx; + } + + .message-meta { + display: flex; + align-items: center; + justify-content: flex-start; + margin-top: 6rpx; + gap: 8rpx; + margin-left: 12rpx; + flex-direction: row; + } + + .message-avatar { + margin-right: 0; + flex-shrink: 0; + } +} + +.user-message { + justify-content: flex-end; + align-items: flex-start; + + .message-content-wrapper { + align-items: flex-end; + } + + .message-content { + background-color: #1c64f2; + color: #fff; + margin-right: 0; + flex-shrink: 0; + + // 用户消息中的图片显示优化 + .message-images { + margin-bottom: 20rpx; + + .message-image-item { + border-radius: 8rpx; + } + } + } + + .message-time { + color: #999; + font-size: 22rpx; + margin-top: 6rpx; + text-align: right; + min-width: 80rpx; + } + + .message-meta { + display: flex; + align-items: center; + justify-content: flex-end; + margin-top: 6rpx; + gap: 8rpx; + flex-direction: row; + } +} + +@keyframes fadeIn { + from { + opacity: 0; + transform: translateY(10rpx); + } + to { + opacity: 1; + transform: translateY(0); + } +} + +.message-avatar { + width: 80rpx; + height: 80rpx; + border-radius: 50%; + overflow: hidden; + flex-shrink: 0; + + image { + width: 100%; + height: 100%; + } + + .user-avatar-image { + width: 100%; + height: 100%; + border-radius: 50%; + } + + .user-avatar { + width: 100%; + height: 100%; + background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); + display: flex; + align-items: center; + justify-content: center; + color: #fff; + font-size: 24rpx; + font-weight: 500; + } +} + +.message-content-wrapper { + display: flex; + flex-direction: column; + max-width: calc(100vw - 100rpx); +} + +.message-content { + padding: 20rpx 24rpx; + border-radius: 16rpx; + font-size: 28rpx; + line-height: 1.5; + word-wrap: break-word; + word-break: break-all; + box-sizing: border-box; + background-color: #1c64f2; + &.loading { + opacity: 0.7; + } + + // 纯图片消息的样式优化 + &:has(.message-images) { + padding: 12rpx; + + .user-message & { + padding: 8rpx; + } + } + + view { + display: block; + width: 100%; + word-wrap: break-word; + word-break: break-all; + + &:not(:last-child) { + margin-bottom: 8rpx; + } + } + + text { + display: inline; + word-wrap: break-word; + word-break: break-all; + } +} + +.quick-questions { + margin-top: 16rpx; + display: flex; + flex-direction: column; + gap: 12rpx; + padding-left: 12rpx; +} + +.question-btn { + background-color: #f0f7ff; + border: 1px solid #d0e3ff; + border-radius: 12rpx; + padding: 16rpx 20rpx; + font-size: 26rpx; + color: #1c64f2; + line-height: 1.4; + transition: all 0.2s ease; + + &:active { + background-color: #e6f2ff; + transform: scale(0.98); + } + + text { + display: block; + word-wrap: break-word; + word-break: break-all; + } +} + +.confirmation-buttons { + margin-top: 16rpx; + display: flex; + gap: 16rpx; + justify-content: flex-start; + padding-left: 12rpx; +} + +.confirmation-btn { + width: 38rpx; + border-radius: 10rpx; + padding: 16rpx 22rpx; + font-size: 24rpx; + line-height: 1.4; + text-align: center; + transition: all 0.2s ease; + background-color: #fff; + color: #000; + border: 1px solid #e5e5e5; + + &:active:not(.disabled) { + transform: scale(0.98); + } + + &.selected { + background-color: #1c64f2; + color: #fff; + border-color: #1c64f2; + } + + &.disabled { + opacity: 0.6; + cursor: not-allowed; + } + + text { + display: block; + font-weight: 500; + } +} + +.chat-input-area { + position: fixed; + bottom: 0; + left: 0; + right: 0; + background-color: #fff; + border-top: 1px solid #f8f8f8; + padding: 20rpx 20rpx; + padding-bottom: calc(30rpx + env(safe-area-inset-bottom)); + z-index: 100; +} + +.input-container { + display: flex; + align-items: center; + background-color: #f7f7f7; + border-radius: 50rpx; + padding: 10rpx 20rpx; +} + +.message-input { + flex: 1; + height: 70rpx; + font-size: 28rpx; + padding: 0 20rpx; + background-color: transparent; +} + +.send-button { + width: 70rpx; + height: 70rpx; + background: linear-gradient(135deg, #1c64f2 0%, #0e4aa7 100%); + border-radius: 50%; + display: flex; + align-items: center; + justify-content: center; + margin-left: 20rpx; + + &.disabled { + opacity: 0.5; + pointer-events: none; + } +} + +.upload-button { + width: 70rpx; + height: 70rpx; + background-color: #f7f7f7; + border-radius: 50%; + display: flex; + align-items: center; + justify-content: center; + margin-left: 20rpx; +} + +.image-preview-area { + margin-bottom: 20rpx; +} + +// 快捷按钮栏样式 +.quick-actions-bar { + display: flex; + flex-wrap: wrap; + gap: 16rpx; + padding: 0 0 16rpx 0; +} + +.quick-action-btn { + height: 60rpx; + padding: 0 24rpx; + background-color: #ffffff; + border: 1px solid #e5e5e5; + border-radius: 100rpx; + font-size: 23rpx; + color: #333333; + display: flex; + align-items: center; + justify-content: center; + transition: all 0.2s ease; + white-space: nowrap; + + &:active { + transform: scale(0.98); + background-color: #f8f8f8; + } + + text { + display: block; + } +} + +.image-preview-list { + display: flex; + flex-wrap: wrap; + gap: 16rpx; +} + +.image-preview-item { + position: relative; + width: 120rpx; + height: 120rpx; + border-radius: 12rpx; + overflow: hidden; + + &.add-more-button { + background-color: #f5f5f5; + border: 2rpx dashed #ddd; + display: flex; + flex-direction: column; + align-items: center; + justify-content: center; + cursor: pointer; + + &:active { + background-color: #e8e8e8; + } + } +} + +.preview-image { + width: 100%; + height: 100%; +} + +.add-more-text { + font-size: 22rpx; + color: #999; + margin-top: 8rpx; +} + +.remove-image { + position: absolute; + top: 8rpx; + right: 8rpx; + width: 40rpx; + height: 40rpx; + background-color: rgba(0, 0, 0, 0.6); + border-radius: 50%; + display: flex; + align-items: center; + justify-content: center; +} + +.message-images { + display: flex; + flex-wrap: wrap; + gap: 12rpx; + margin-bottom: 12rpx; + max-width: 500rpx; + + // 用户消息中的图片样式优化 + .user-message & { + margin-bottom: 0; + } +} + +.message-image-item { + border-radius: 12rpx; + overflow: hidden; + + &.single-image { + max-width: 500rpx; + width: 500rpx !important; + height: auto !important; + + // 用户消息单张图片的样式 + .user-message & { + max-width: 450rpx; + width: 450rpx !important; + } + } + + &:not(.single-image) { + width: 200rpx; + height: 200rpx; + } +} + +.message-image { + width: 100%; + height: 100%; + display: block; +} + +.message-text-line { + margin-bottom: 4rpx; + + &:last-child { + margin-bottom: 0; + } +} + +.copy-button { + width: 32rpx; + height: 32rpx; + display: flex; + align-items: center; + justify-content: center; + border-radius: 4rpx; + transition: background-color 0.2s ease; + + &:active { + background-color: rgba(0, 0, 0, 0.05); + } + + .copy-icon { + width: 26rpx; + height: 26rpx; + opacity: 0.7; + } +} + +.opening_remarks { + padding: 30rpx; + z-index: 1000; + position: fixed; + top: 0; + left: 0; + right: 0; + background: + linear-gradient(180deg, rgba(208, 229, 255, 0.44) 0%, rgba(255, 255, 255, 0) 600rpx), + linear-gradient(159deg, #d3d7ff 0%, rgba(255, 255, 255, 0) 400rpx), + linear-gradient(188deg, #dffff3 -8%, #f7f7f7 600rpx); + .opening_remarks_body { + height: 254rpx; + border-radius: 20rpx; + border: 1px solid #ffffff; + backdrop-filter: blur(10px); + display: flex; + align-items: center; + justify-content: center; + background: + linear-gradient(58deg, #e3faff 1%, rgba(255, 255, 255, 0) 24%), + linear-gradient(221deg, #dbe3ff 0%, rgba(255, 255, 255, 0) 19%), rgba(255, 255, 255, 0.5); + .opening_remarks_server_img { + width: 56rpx; + height: 224rpx; + margin: 0 40rpx; + image { + width: 56rpx; + height: 224rpx; + } + } + .opening_remarks_server_info { + flex: 1; + padding-right: 30rpx; + } + .label { + font-size: 28rpx; + color: #333; + overflow: hidden; + white-space: nowrap; + width: 0; + display: inline-block; + animation: + typing 3s steps(30, end) forwards, + blink 0.75s step-end infinite; + } + .group_btn { + display: flex; + align-items: center; + flex-wrap: wrap; + &_item { + background-color: #fff; + border-radius: 100rpx; + font-size: 24rpx; + color: #333333; + padding: 15rpx 25rpx; + margin-top: 15rpx; + margin-right: 30rpx; + &:nth-child(3n) { + margin-right: 0; + } + } + } + } +} + +@keyframes typing { + from { + width: 0; + } + to { + width: 100%; + } } diff --git a/src/pages/index/components/AiInput.vue b/src/pages/index/components/AiInput.vue index c943fa4..cf40dc4 100644 --- a/src/pages/index/components/AiInput.vue +++ b/src/pages/index/components/AiInput.vue @@ -2,22 +2,24 @@ - - HI,遇到什么问题了,可以问我哦~ + + 我是客服邻邻,遇到问题了,可以问我哦~ - - - 点击联系在线客服 - - + + 点击联系在线客服 + - + {{ i.label }} @@ -50,8 +52,9 @@