diff --git a/.env.development b/.env.development index 1dbb09d..d441a32 100644 --- a/.env.development +++ b/.env.development @@ -1,5 +1,5 @@ NODE_ENV= development -# VITE_HTTP_BASE_URL = http://10.39.13.78:8001/api/ -VITE_HTTP_BASE_URL = https://test-weapp-api.linyikj.com.cn/api/ +VITE_HTTP_BASE_URL = http://10.39.13.78:8001/api/ +# 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= 'ACCESS_TOKEN_CUSTOMER' \ No newline at end of file +VITE_ACCESS_TOKEN_KEY= 'ACCESS_TOKEN_CUSTOMER' diff --git a/.prettierrc b/.prettierrc index bedb2fe..61ae1be 100644 --- a/.prettierrc +++ b/.prettierrc @@ -4,7 +4,36 @@ "tabWidth": 2, "trailingComma": "none", "printWidth": 100, + "htmlWhitespaceSensitivity": "ignore", + "vueIndentScriptAndStyle": true, + "endOfLine": "auto", + + // SCSS/CSS 格式化规则 + "cssWhitespaceSensitivity": "ignore", "bracketSpacing": true, + "bracketSameLine": false, "arrowParens": "avoid", - "endOfLine": "auto" -} \ No newline at end of file + + // 强制 CSS 属性排序 + "cssDeclarationSorterOrder": "alphabetical", + + // SCSS 特定配置 + "scssBracketSameLine": false, + + // 嵌套规则格式化 + "cssSingleLine": false, + + // 属性格式化 + "attributeGroups": [ + "$ANGULAR_STRUCTURAL_DIRECTIVE", + "$ANGULAR_ELEMENT_REF", + "$ID", + "$CLASS", + "$DEFAULT", + "$ANGULAR_ANIMATION", + "$ANGULAR_ANIMATION_INPUT", + "$ANGULAR_INPUT", + "$ANGULAR_TWO_WAY_BINDING", + "$ANGULAR_OUTPUT" + ] +} diff --git a/.vscode/settings.json b/.vscode/settings.json index 9250881..7d9ab9f 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,17 +1,94 @@ { + // 全局保存时格式化 "editor.formatOnSave": true, - "editor.defaultFormatter": "esbenp.prettier-vscode", - "[vue]": { - "editor.defaultFormatter": "esbenp.prettier-vscode" + + // 保存时执行的操作 + "editor.codeActionsOnSave": { + "source.fixAll.eslint": "explicit", + "source.fixAll.stylelint": "explicit", + "source.organizeImports": "explicit" }, + + // 指定不同文件的格式化工具 + "[vue]": { + "editor.defaultFormatter": "Vue.volar" + }, + "[javascript]": { "editor.defaultFormatter": "esbenp.prettier-vscode" }, + "[typescript]": { "editor.defaultFormatter": "esbenp.prettier-vscode" }, + "[json]": { "editor.defaultFormatter": "esbenp.prettier-vscode" }, - "prettier.requireConfig": true -} \ No newline at end of file + + // SCSS/Sass 文件格式化 + "[scss]": { + "editor.defaultFormatter": "esbenp.prettier-vscode", + "editor.formatOnSave": true + }, + + "[sass]": { + "editor.defaultFormatter": "sass.sass-indented", + "editor.formatOnSave": true + }, + + "[css]": { + "editor.defaultFormatter": "esbenp.prettier-vscode", + "editor.formatOnSave": true + }, + + // Vue 文件内部的语言格式化 + "volar.format.defaultFormatter.scss": "prettier", + "volar.format.defaultFormatter.sass": "sass-formatter", + "volar.format.defaultFormatter.css": "prettier", + "volar.format.defaultFormatter.less": "prettier", + "volar.format.defaultFormatter.stylus": "prettier", + "volar.format.defaultFormatter.js": "prettier", + "volar.format.defaultFormatter.ts": "prettier", + "volar.format.defaultFormatter.json": "prettier", + + // Prettier 详细配置 + "prettier.enable": true, + "prettier.requireConfig": true, + "prettier.withNodeModules": false, + + // Stylelint 配置 + "stylelint.enable": true, + "stylelint.validate": ["css", "scss", "vue", "sass"], + "css.validate": false, + "scss.validate": false, + "less.validate": false, + + // 缩进和空格设置 + "editor.tabSize": 2, + "editor.insertSpaces": true, + "editor.detectIndentation": false, + "editor.trimAutoWhitespace": true, + "files.trimTrailingWhitespace": true, + "files.insertFinalNewline": true, + + // 禁用 Vetur(如果安装了) + "vetur.format.enable": false, + "vetur.validation.template": false, + + // Volar 配置 + "volar.format.enable": true, + "volar.format.initialIndent": true, + "volar.format.options.tabSize": 2, + "volar.format.options.useTabs": false, + "volar.codeLens.pugTools": false, + + // Uniapp 配置 + "uni-app-vue.disable-auto-install": false, + "files.associations": { + "pages.json": "json", + "manifest.json": "json", + "*.scss": "scss", + "*.sass": "sass" + } +} diff --git a/ci/ci.js b/ci/ci.js index 505b19d..0478b4a 100644 --- a/ci/ci.js +++ b/ci/ci.js @@ -32,7 +32,7 @@ const privateList = fs.readdirSync(`${projectPath}/ci/privateKey`) const uploadInfo = { version: projectConfig.version, desc: CI_DESC === 'test' ? '测试环境' : CI_DESC === 'prod' ? '生产环境' : '开发环境', - robot: 1 + robot: CI_DESC === 'test' ? 2: 1, } const command = process.argv.slice(2)[0] console.log('privateList', privateList) diff --git a/ci/project.config.json b/ci/project.config.json index e556d5f..5acfa97 100644 --- a/ci/project.config.json +++ b/ci/project.config.json @@ -1,3 +1,3 @@ { - "version": "0.0.28" + "version": "0.0.47" } \ No newline at end of file diff --git a/dist/build/mp-weixin/BILL/collection_record/index/index.js b/dist/build/mp-weixin/BILL/collection_record/index/index.js index 579086f..8effb04 100644 --- a/dist/build/mp-weixin/BILL/collection_record/index/index.js +++ b/dist/build/mp-weixin/BILL/collection_record/index/index.js @@ -1 +1 @@ -"use strict";const e=require("../../../common/vendor.js"),o=require("./model.js"),n=require("./method.js"),s=require("../../../gen/Enums.js");if(require("../../../common/libraries/day.js"),require("../../../common/libraries/apiLoading.js"),require("../../../gen/Apis.js"),require("../../../common/libraries/request.js"),require("../../../common/store/useWeAppAuthStore.js"),require("../../../common/store/useWorkStore.js"),!Array){(e.resolveComponent("hs-tabs")+e.resolveComponent("uni-icons")+e.resolveComponent("up-icon")+e.resolveComponent("hs-enum-tag")+e.resolveComponent("cc-scroll-loading"))()}Math||((()=>"../../../components/hs-tabs/hs-tabs.js")+(()=>"../../../uni_modules/uni-icons/components/uni-icons/uni-icons.js")+(()=>"../../../node-modules/uview-plus/components/u-icon/u-icon.js")+(()=>"../../../components/hs-enum-tag/hs-enum-tag.js")+(()=>"../../../common/components/cc-scroll-loading/cc-scroll-loading.js"))();const l=e.defineComponent({__name:"index",setup(l){const t=[{label:"全部",value:""},{label:"已完成",value:"Completed"},{label:"进行中",value:"Processing"}];return e.onLoad((async()=>{var s,l;await(null==(s=e.getCurrentInstance())?void 0:s.appContext.config.globalProperties.$onLaunched),o.useModel.dataList.value=[],null==(l=n.method)||l.getList()})),(l,u)=>{var r,i,a,c,m,d,v,p;return{a:e.o(null==(r=e.unref(n.method))?void 0:r.changeTab),b:e.p({list:t,current:null==(a=null==(i=e.unref(o.useModel))?void 0:i.tabCurrent)?void 0:a.value}),c:e.f(null==(m=null==(c=e.unref(o.useModel))?void 0:c.dataList)?void 0:m.value,((o,l,t)=>{var u;return e.e({a:e.t(null==o?void 0:o.task_name),b:"Processing"===(null==o?void 0:o.status)},"Processing"===(null==o?void 0:o.status)?{c:"9447b322-2-"+t+",9447b322-1",d:e.p({type:"refreshempty",size:"14",color:"#0082fa"})}:{},{e:"9447b322-3-"+t+",9447b322-1",f:e.t(null==(u=null==o?void 0:o.company_employee)?void 0:u.name),g:"9447b322-4-"+t+",9447b322-1",h:e.t(null==o?void 0:o.created_at),i:"9447b322-5-"+t+",9447b322-1",j:e.p({value:null==o?void 0:o.status,Enums:e.unref(s.HouseCollectionTasksStatusEnum)}),k:"9447b322-6-"+t+",9447b322-1",l:e.p({type:"right",size:"15",color:"Processing"===(null==o?void 0:o.status)?"#0082fa":"#67C23A"}),m:e.n(`status status_${null==o?void 0:o.status}`),n:`items_${l}`,o:e.n(`collection_record_item items_${null==o?void 0:o.status}`),p:e.o((s=>{var l;return null==(l=e.unref(n.method))?void 0:l.goDetail(o)}),`items_${l}`)})})),d:e.p({type:"person",size:"15",color:"#C4C4C4"}),e:e.p({name:"clock",size:"15",color:"#C4C4C4"}),f:e.o(null==(d=e.unref(n.method))?void 0:d.load),g:e.p({meta:null==(p=null==(v=e.unref(o.useModel))?void 0:v.meta)?void 0:p.value})}}}});wx.createPage(l); +"use strict";const e=require("../../../common/vendor.js"),o=require("./model.js"),n=require("./method.js"),s=require("../../../gen/Enums.js");if(require("../../../common/libraries/day.js"),require("../../../common/libraries/apiLoading.js"),require("../../../gen/Apis.js"),require("../../../common/libraries/request.js"),require("../../../common/store/useWeAppAuthStore.js"),require("../../../common/store/useWatermarkStore.js"),require("../../../common/store/useWorkStore.js"),!Array){(e.resolveComponent("hs-tabs")+e.resolveComponent("uni-icons")+e.resolveComponent("up-icon")+e.resolveComponent("hs-enum-tag")+e.resolveComponent("cc-scroll-loading"))()}Math||((()=>"../../../components/hs-tabs/hs-tabs.js")+(()=>"../../../uni_modules/uni-icons/components/uni-icons/uni-icons.js")+(()=>"../../../node-modules/uview-plus/components/u-icon/u-icon.js")+(()=>"../../../components/hs-enum-tag/hs-enum-tag.js")+(()=>"../../../common/components/cc-scroll-loading/cc-scroll-loading.js"))();const t=e.defineComponent({__name:"index",setup(t){const l=[{label:"全部",value:""},{label:"已完成",value:"Completed"},{label:"进行中",value:"Processing"}];return e.onLoad((async()=>{var s,t;await(null==(s=e.getCurrentInstance())?void 0:s.appContext.config.globalProperties.$onLaunched),o.useModel.dataList.value=[],null==(t=n.method)||t.getList()})),(t,u)=>{var r,i,a,c,m,d,v,p;return{a:e.o(null==(r=e.unref(n.method))?void 0:r.changeTab),b:e.p({list:l,current:null==(a=null==(i=e.unref(o.useModel))?void 0:i.tabCurrent)?void 0:a.value}),c:e.f(null==(m=null==(c=e.unref(o.useModel))?void 0:c.dataList)?void 0:m.value,((o,t,l)=>{var u;return e.e({a:e.t(null==o?void 0:o.task_name),b:"Processing"===(null==o?void 0:o.status)},"Processing"===(null==o?void 0:o.status)?{c:"9447b322-2-"+l+",9447b322-1",d:e.p({type:"refreshempty",size:"14",color:"#0082fa"})}:{},{e:"9447b322-3-"+l+",9447b322-1",f:e.t(null==(u=null==o?void 0:o.company_employee)?void 0:u.name),g:"9447b322-4-"+l+",9447b322-1",h:e.t(null==o?void 0:o.created_at),i:"9447b322-5-"+l+",9447b322-1",j:e.p({value:null==o?void 0:o.status,Enums:e.unref(s.HouseCollectionTasksStatusEnum)}),k:"9447b322-6-"+l+",9447b322-1",l:e.p({type:"right",size:"15",color:"Processing"===(null==o?void 0:o.status)?"#0082fa":"#67C23A"}),m:e.n(`status status_${null==o?void 0:o.status}`),n:`items_${t}`,o:e.n(`collection_record_item items_${null==o?void 0:o.status}`),p:e.o((s=>{var t;return null==(t=e.unref(n.method))?void 0:t.goDetail(o)}),`items_${t}`)})})),d:e.p({type:"person",size:"15",color:"#C4C4C4"}),e:e.p({name:"clock",size:"15",color:"#C4C4C4"}),f:e.o(null==(d=e.unref(n.method))?void 0:d.load),g:e.p({meta:null==(p=null==(v=e.unref(o.useModel))?void 0:v.meta)?void 0:p.value})}}}});wx.createPage(t); diff --git a/dist/build/mp-weixin/BILL/collection_record/show/index.js b/dist/build/mp-weixin/BILL/collection_record/show/index.js index e2be48a..2eb549f 100644 --- a/dist/build/mp-weixin/BILL/collection_record/show/index.js +++ b/dist/build/mp-weixin/BILL/collection_record/show/index.js @@ -1 +1 @@ -"use strict";const e=require("../../../common/vendor.js"),o=require("./model.js"),l=require("./method.js"),n=require("../../../gen/Enums.js");if(require("../../../common/libraries/day.js"),require("../../../common/libraries/apiLoading.js"),require("../../../gen/Apis.js"),require("../../../common/libraries/request.js"),require("../../../common/store/useWeAppAuthStore.js"),require("../../../common/store/useWorkStore.js"),!Array){(e.resolveComponent("hs-cell")+e.resolveComponent("hs-enum-tag")+e.resolveComponent("uni-icons")+e.resolveComponent("hs-refresh"))()}Math||((()=>"../../../components/hs-cell/hs-cell.js")+(()=>"../../../components/hs-enum-tag/hs-enum-tag.js")+(()=>"../../../uni_modules/uni-icons/components/uni-icons/uni-icons.js")+(()=>"../../../components/hs-refresh/hs-refresh.js"))();const u=e.defineComponent({__name:"index",setup:u=>(e.onLoad((e=>{var o;null==(o=l.method)||o.getShow(null==e?void 0:e.id)})),(u,s)=>{var i,t,r,a,d,v,c,m,h,p,f,j,b,_,g,w,q,C,M,y,D,T,k,S,A;return{a:e.p({title:"催缴类型",borderTop:!0,value:null==(r=null==(t=null==(i=e.unref(o.useModel))?void 0:i.showData)?void 0:t.value)?void 0:r.task_name}),b:e.p({value:null==(v=null==(d=null==(a=e.unref(o.useModel))?void 0:a.showData)?void 0:d.value)?void 0:v.status,Enums:e.unref(n.HouseCollectionTasksStatusEnum)}),c:e.n(`status_tag_${null==(h=null==(m=null==(c=e.unref(o.useModel))?void 0:c.showData)?void 0:m.value)?void 0:h.status}`),d:e.p({title:"状态",borderTop:!0}),e:e.p({title:"发起人",borderTop:!0,value:null==(b=null==(j=null==(f=null==(p=e.unref(o.useModel))?void 0:p.showData)?void 0:f.value)?void 0:j.company_employee)?void 0:b.name}),f:e.t(null==(q=e.unref(l.method))?void 0:q.getShowChannel(null==(w=null==(g=null==(_=e.unref(o.useModel))?void 0:_.showData)?void 0:g.value)?void 0:w.channel)),g:e.p({title:"通知方式",borderTop:!0}),h:e.p({title:"创建时间",borderTop:!0,value:null==(y=null==(M=null==(C=e.unref(o.useModel))?void 0:C.showData)?void 0:M.value)?void 0:y.created_at}),i:e.f(null==(k=null==(T=null==(D=e.unref(o.useModel))?void 0:D.showData)?void 0:T.value)?void 0:k.channel,((o,l,u)=>({a:"0647cc96-6-"+u,b:e.p({value:o,Enums:e.unref(n.HouseCollectionTasksChannelEnum)}),c:`h_td_${l}`}))),j:e.f(null==(A=null==(S=e.unref(o.useModel))?void 0:S.showDataTable)?void 0:A.value,((o,l,n)=>({a:e.t(null==o?void 0:o.full_name),b:e.f(null==o?void 0:o.notify_info,((o,l,u)=>e.e({a:"Notified"===(null==o?void 0:o.status)},"Notified"===(null==o?void 0:o.status)?{b:"0647cc96-7-"+n+"-"+u,c:e.p({type:"checkbox",color:"#67C23A",size:"20"})}:"Failed"===(null==o?void 0:o.status)?{e:"0647cc96-8-"+n+"-"+u,f:e.p({type:"close",color:"#F89898",size:"20"})}:{g:"0647cc96-9-"+n+"-"+u,h:e.p({type:"spinner-cycle",color:"#999",size:"20"})},{d:"Failed"===(null==o?void 0:o.status),i:`td_${l}`}))),c:`tr_${l}`}))),k:e.o((n=>{var u,s,i;return e.unref(l.method).getShow(null==(i=null==(s=null==(u=e.unref(o.useModel))?void 0:u.showData)?void 0:s.value)?void 0:i.id)}))}})});wx.createPage(u); +"use strict";const e=require("../../../common/vendor.js"),o=require("./model.js"),l=require("./method.js"),n=require("../../../gen/Enums.js");if(require("../../../common/libraries/day.js"),require("../../../common/libraries/apiLoading.js"),require("../../../gen/Apis.js"),require("../../../common/libraries/request.js"),require("../../../common/store/useWeAppAuthStore.js"),require("../../../common/store/useWatermarkStore.js"),require("../../../common/store/useWorkStore.js"),!Array){(e.resolveComponent("hs-cell")+e.resolveComponent("hs-enum-tag")+e.resolveComponent("uni-icons")+e.resolveComponent("hs-refresh"))()}Math||((()=>"../../../components/hs-cell/hs-cell.js")+(()=>"../../../components/hs-enum-tag/hs-enum-tag.js")+(()=>"../../../uni_modules/uni-icons/components/uni-icons/uni-icons.js")+(()=>"../../../components/hs-refresh/hs-refresh.js"))();const u=e.defineComponent({__name:"index",setup:u=>(e.onLoad((e=>{var o;null==(o=l.method)||o.getShow(null==e?void 0:e.id)})),(u,s)=>{var i,r,t,a,d,v,c,m,h,p,f,j,b,_,g,w,q,C,M,y,D,T,k,S,A;return{a:e.p({title:"催缴类型",borderTop:!0,value:null==(t=null==(r=null==(i=e.unref(o.useModel))?void 0:i.showData)?void 0:r.value)?void 0:t.task_name}),b:e.p({value:null==(v=null==(d=null==(a=e.unref(o.useModel))?void 0:a.showData)?void 0:d.value)?void 0:v.status,Enums:e.unref(n.HouseCollectionTasksStatusEnum)}),c:e.n(`status_tag_${null==(h=null==(m=null==(c=e.unref(o.useModel))?void 0:c.showData)?void 0:m.value)?void 0:h.status}`),d:e.p({title:"状态",borderTop:!0}),e:e.p({title:"发起人",borderTop:!0,value:null==(b=null==(j=null==(f=null==(p=e.unref(o.useModel))?void 0:p.showData)?void 0:f.value)?void 0:j.company_employee)?void 0:b.name}),f:e.t(null==(q=e.unref(l.method))?void 0:q.getShowChannel(null==(w=null==(g=null==(_=e.unref(o.useModel))?void 0:_.showData)?void 0:g.value)?void 0:w.channel)),g:e.p({title:"通知方式",borderTop:!0}),h:e.p({title:"创建时间",borderTop:!0,value:null==(y=null==(M=null==(C=e.unref(o.useModel))?void 0:C.showData)?void 0:M.value)?void 0:y.created_at}),i:e.f(null==(k=null==(T=null==(D=e.unref(o.useModel))?void 0:D.showData)?void 0:T.value)?void 0:k.channel,((o,l,u)=>({a:"0647cc96-6-"+u,b:e.p({value:o,Enums:e.unref(n.HouseCollectionTasksChannelEnum)}),c:`h_td_${l}`}))),j:e.f(null==(A=null==(S=e.unref(o.useModel))?void 0:S.showDataTable)?void 0:A.value,((o,l,n)=>({a:e.t(null==o?void 0:o.full_name),b:e.f(null==o?void 0:o.notify_info,((o,l,u)=>e.e({a:"Notified"===(null==o?void 0:o.status)},"Notified"===(null==o?void 0:o.status)?{b:"0647cc96-7-"+n+"-"+u,c:e.p({type:"checkbox",color:"#67C23A",size:"20"})}:"Failed"===(null==o?void 0:o.status)?{e:"0647cc96-8-"+n+"-"+u,f:e.p({type:"close",color:"#F89898",size:"20"})}:{g:"0647cc96-9-"+n+"-"+u,h:e.p({type:"spinner-cycle",color:"#999",size:"20"})},{d:"Failed"===(null==o?void 0:o.status),i:`td_${l}`}))),c:`tr_${l}`}))),k:e.o((n=>{var u,s,i;return e.unref(l.method).getShow(null==(i=null==(s=null==(u=e.unref(o.useModel))?void 0:u.showData)?void 0:s.value)?void 0:i.id)}))}})});wx.createPage(u); diff --git a/dist/build/mp-weixin/BILL/information_template/components/PopupSubmitTemplate.js b/dist/build/mp-weixin/BILL/information_template/components/PopupSubmitTemplate.js index 2a80838..2f739c7 100644 --- a/dist/build/mp-weixin/BILL/information_template/components/PopupSubmitTemplate.js +++ b/dist/build/mp-weixin/BILL/information_template/components/PopupSubmitTemplate.js @@ -1 +1 @@ -"use strict";const e=require("../../../common/vendor.js"),o=require("../../../common/libraries/apiLoading.js"),t=require("../../../gen/Apis.js");if(require("../../../common/libraries/request.js"),require("../../../common/store/useWeAppAuthStore.js"),require("../../../common/store/useWorkStore.js"),!Array){(e.resolveComponent("hs-button")+e.resolveComponent("hs-popup")+e.resolveComponent("hs-footer"))()}Math||((()=>"../../../components/hs-button/hs-button.js")+(()=>"../../../components/hs-popup/hs-popup.js")+(()=>"../../../components/hs-footer/hs-footer.js"))();const n=e.defineComponent({__name:"PopupSubmitTemplate",props:["formData","type"],setup(n){const r=n,s=e.ref(!1),l=e.ref(!1),p=()=>{var o;console.log(null==r?void 0:r.type,"type"),(null==(o=null==r?void 0:r.type)?void 0:o.length)?s.value=!s.value:e.index.showToast({title:"请选择通知方式!",icon:"none"})},a=()=>{e.index.navigateBack({delta:1})},i=()=>{o.getApiLoading(t.Apis.Collection.HouseCollectionTasks.Store,{...r.formData,channel:r.type}).then((e=>{s.value=!1,l.value=!0}))},u=()=>{e.index.redirectTo({url:"/BILL/collection_record/index/index"})};return(o,t)=>{var n,m;return{a:e.t(null==(m=null==(n=null==r?void 0:r.formData)?void 0:n.houses)?void 0:m.length),b:e.o(i),c:e.p({label:"确认提交",size:"md",type:"primary"}),d:e.o(p),e:e.p({show:s.value,mode:"center",round:15,closeable:!0}),f:e.o(p),g:e.p({btnParimaryName:"提交"}),h:e.o(a),i:e.p({label:"返回欠费列表",size:"md",type:"default"}),j:e.o(u),k:e.p({label:"查看任务详情",size:"md"}),l:e.p({show:l.value,mode:"center",round:15})}}}}),r=e._export_sfc(n,[["__scopeId","data-v-7c88a356"]]);wx.createComponent(r); +"use strict";const e=require("../../../common/vendor.js"),o=require("../../../common/libraries/apiLoading.js"),t=require("../../../gen/Apis.js");if(require("../../../common/libraries/request.js"),require("../../../common/store/useWeAppAuthStore.js"),require("../../../common/store/useWatermarkStore.js"),require("../../../common/store/useWorkStore.js"),!Array){(e.resolveComponent("hs-button")+e.resolveComponent("hs-popup")+e.resolveComponent("hs-footer"))()}Math||((()=>"../../../components/hs-button/hs-button.js")+(()=>"../../../components/hs-popup/hs-popup.js")+(()=>"../../../components/hs-footer/hs-footer.js"))();const r=e.defineComponent({__name:"PopupSubmitTemplate",props:["formData","type"],setup(r){const n=r,s=e.ref(!1),l=e.ref(!1),a=()=>{var o;console.log(null==n?void 0:n.type,"type"),(null==(o=null==n?void 0:n.type)?void 0:o.length)?s.value=!s.value:e.index.showToast({title:"请选择通知方式!",icon:"none"})},i=()=>{e.index.navigateBack({delta:1})},p=()=>{o.getApiLoading(t.Apis.Collection.HouseCollectionTasks.Store,{...n.formData,channel:n.type}).then((e=>{s.value=!1,l.value=!0}))},u=()=>{e.index.redirectTo({url:"/BILL/collection_record/index/index"})};return(o,t)=>{var r,m;return{a:e.t(null==(m=null==(r=null==n?void 0:n.formData)?void 0:r.houses)?void 0:m.length),b:e.o(p),c:e.p({label:"确认提交",size:"md",type:"primary"}),d:e.o(a),e:e.p({show:s.value,mode:"center",round:15,closeable:!0}),f:e.o(a),g:e.p({btnParimaryName:"提交"}),h:e.o(i),i:e.p({label:"返回欠费列表",size:"md",type:"default"}),j:e.o(u),k:e.p({label:"查看任务详情",size:"md"}),l:e.p({show:l.value,mode:"center",round:15})}}}}),n=e._export_sfc(r,[["__scopeId","data-v-7c88a356"]]);wx.createComponent(n); diff --git a/dist/build/mp-weixin/BILL/outstanding_fee/add/index.js b/dist/build/mp-weixin/BILL/outstanding_fee/add/index.js index e44961f..098902d 100644 --- a/dist/build/mp-weixin/BILL/outstanding_fee/add/index.js +++ b/dist/build/mp-weixin/BILL/outstanding_fee/add/index.js @@ -1 +1 @@ -"use strict";const e=require("../../../common/vendor.js"),o=require("../../../common/libraries/naviHelper.js"),n=require("./model.js"),l=require("../../../common/libraries/apiLoading.js"),t=require("../../../gen/Apis.js");if(require("../../../common/libraries/day.js"),require("../../../common/libraries/request.js"),require("../../../common/store/useWeAppAuthStore.js"),require("../../../common/store/useWorkStore.js"),!Array){(e.resolveComponent("up-icon")+e.resolveComponent("uni-icons")+e.resolveComponent("hs-footer"))()}Math||(i+(()=>"../../../node-modules/uview-plus/components/u-icon/u-icon.js")+(()=>"../../../uni_modules/uni-icons/components/uni-icons/uni-icons.js")+u+(()=>"../../../components/hs-footer/hs-footer.js"))();const i=()=>"../components/CollectionMethods.js",u=()=>"../components/CollectionResult.js",r=e.defineComponent({__name:"index",setup(i){const u=o=>{e.index.showToast({title:o||"",icon:"none"})},r=e=>{var o;n.useModel.formData.value.notified_time=null==(o=null==e?void 0:e.detail)?void 0:o.value,console.log(e)},s=()=>{let e=n.useModel.formData.value;return(null==e?void 0:e.channel)?(null==e?void 0:e.notified_time)?(null==e?void 0:e.collection_result)?(l.getApiLoading(t.Apis.Collection.HouseCollectionRecords.Store,n.useModel.formData.value).then((e=>{o.showToastBack("提交成功",1,!0)})),void console.log(e)):u("请选择催缴结果!"):u("请选择催缴时间!"):u("请选择催缴方式!")};return e.onLoad((e=>{n.useModel.formData.value={total_unpaid_amount:null==e?void 0:e.amount,asset_houses_id:null==e?void 0:e.id}})),(o,l)=>e.e({a:e.o((o=>e.unref(n.useModel).formData.value.channel=o)),b:e.p({valueModel:e.unref(n.useModel).formData.value.channel}),c:e.p({name:"calendar",color:"#C4C4C4",size:"26"}),d:e.unref(n.useModel).formData.value.notified_time},e.unref(n.useModel).formData.value.notified_time?{e:e.t(e.unref(n.useModel).formData.value.notified_time||"请选择通知时间")}:{},{f:e.p({type:"right",size:"15",color:"#333"}),g:e.o(r),h:e.o((o=>e.unref(n.useModel).formData.value.collection_result=o)),i:e.p({valueModel:e.unref(n.useModel).formData.value.collection_result}),j:e.unref(n.useModel).formData.value.collection_content,k:e.o((o=>e.unref(n.useModel).formData.value.collection_content=o.detail.value)),l:e.o(s),m:e.p({btnParimaryName:"提交"})})}});wx.createPage(r); +"use strict";const e=require("../../../common/vendor.js"),o=require("../../../common/libraries/naviHelper.js"),n=require("./model.js"),l=require("../../../common/libraries/apiLoading.js"),t=require("../../../gen/Apis.js");if(require("../../../common/libraries/day.js"),require("../../../common/libraries/request.js"),require("../../../common/store/useWeAppAuthStore.js"),require("../../../common/store/useWatermarkStore.js"),require("../../../common/store/useWorkStore.js"),!Array){(e.resolveComponent("up-icon")+e.resolveComponent("uni-icons")+e.resolveComponent("hs-footer"))()}Math||(r+(()=>"../../../node-modules/uview-plus/components/u-icon/u-icon.js")+(()=>"../../../uni_modules/uni-icons/components/uni-icons/uni-icons.js")+i+(()=>"../../../components/hs-footer/hs-footer.js"))();const r=()=>"../components/CollectionMethods.js",i=()=>"../components/CollectionResult.js",u=e.defineComponent({__name:"index",setup(r){const i=o=>{e.index.showToast({title:o||"",icon:"none"})},u=e=>{var o;n.useModel.formData.value.notified_time=null==(o=null==e?void 0:e.detail)?void 0:o.value,console.log(e)},s=()=>{let e=n.useModel.formData.value;return(null==e?void 0:e.channel)?(null==e?void 0:e.notified_time)?(null==e?void 0:e.collection_result)?(l.getApiLoading(t.Apis.Collection.HouseCollectionRecords.Store,n.useModel.formData.value).then((e=>{o.showToastBack("提交成功",1,!0)})),void console.log(e)):i("请选择催缴结果!"):i("请选择催缴时间!"):i("请选择催缴方式!")};return e.onLoad((e=>{n.useModel.formData.value={total_unpaid_amount:null==e?void 0:e.amount,asset_houses_id:null==e?void 0:e.id}})),(o,l)=>e.e({a:e.o((o=>e.unref(n.useModel).formData.value.channel=o)),b:e.p({valueModel:e.unref(n.useModel).formData.value.channel}),c:e.p({name:"calendar",color:"#C4C4C4",size:"26"}),d:e.unref(n.useModel).formData.value.notified_time},e.unref(n.useModel).formData.value.notified_time?{e:e.t(e.unref(n.useModel).formData.value.notified_time||"请选择通知时间")}:{},{f:e.p({type:"right",size:"15",color:"#333"}),g:e.o(u),h:e.o((o=>e.unref(n.useModel).formData.value.collection_result=o)),i:e.p({valueModel:e.unref(n.useModel).formData.value.collection_result}),j:e.unref(n.useModel).formData.value.collection_content,k:e.o((o=>e.unref(n.useModel).formData.value.collection_content=o.detail.value)),l:e.o(s),m:e.p({btnParimaryName:"提交"})})}});wx.createPage(u); diff --git a/dist/build/mp-weixin/BILL/outstanding_fee/components/HeadSearchBtn.js b/dist/build/mp-weixin/BILL/outstanding_fee/components/HeadSearchBtn.js index 4f3da31..6ef02d1 100644 --- a/dist/build/mp-weixin/BILL/outstanding_fee/components/HeadSearchBtn.js +++ b/dist/build/mp-weixin/BILL/outstanding_fee/components/HeadSearchBtn.js @@ -1 +1 @@ -"use strict";const e=require("../../../common/vendor.js"),r=require("../index/model.js"),o=require("../index/method.js");require("../../../common/libraries/day.js"),require("../../../common/libraries/sendWxWork.js"),require("../../../common/libraries/naviHelper.js"),require("../../../gen/Apis.js"),require("../../../common/libraries/request.js"),require("../../../common/store/useWeAppAuthStore.js"),require("../../../common/libraries/apiLoading.js"),require("../../../common/store/useWorkStore.js");const a=e.defineComponent({__name:"HeadSearchBtn",setup(a){const l=[{label:"1天未催缴",value:"1"},{label:"3天未催缴",value:"3"},{label:"7天未催缴",value:"7"},{label:"15天未催缴",value:"15"}];return(a,u)=>({a:e.f(l,((a,l,u)=>({a:e.t(null==a?void 0:a.label),b:`item_${l}`,c:e.n("item_btn "+(e.unref(r.useModel).formData.value.uncollected_days===(null==a?void 0:a.value)?"active":"")),d:e.o((e=>{return l=a,r.useModel.formData.value.uncollected_days===(null==l?void 0:l.value)?r.useModel.formData.value.uncollected_days=void 0:r.useModel.formData.value.uncollected_days=null==l?void 0:l.value,void o.method.handleSearch();var l}))})))})}}),l=e._export_sfc(a,[["__scopeId","data-v-45802562"]]);wx.createComponent(l); +"use strict";const e=require("../../../common/vendor.js"),r=require("../index/model.js"),o=require("../index/method.js");require("../../../common/libraries/day.js"),require("../../../common/libraries/sendWxWork.js"),require("../../../common/libraries/naviHelper.js"),require("../../../common/libraries/apiLoading.js"),require("../../../gen/Apis.js"),require("../../../common/libraries/request.js"),require("../../../common/store/useWeAppAuthStore.js"),require("../../../common/store/useWatermarkStore.js"),require("../../../common/store/useWorkStore.js");const a=e.defineComponent({__name:"HeadSearchBtn",setup(a){const l=[{label:"1天未催缴",value:"1"},{label:"3天未催缴",value:"3"},{label:"7天未催缴",value:"7"},{label:"15天未催缴",value:"15"}];return(a,u)=>({a:e.f(l,((a,l,u)=>({a:e.t(null==a?void 0:a.label),b:`item_${l}`,c:e.n("item_btn "+(e.unref(r.useModel).formData.value.uncollected_days===(null==a?void 0:a.value)?"active":"")),d:e.o((e=>{return l=a,r.useModel.formData.value.uncollected_days===(null==l?void 0:l.value)?r.useModel.formData.value.uncollected_days=void 0:r.useModel.formData.value.uncollected_days=null==l?void 0:l.value,void o.method.handleSearch();var l}))})))})}}),l=e._export_sfc(a,[["__scopeId","data-v-45802562"]]);wx.createComponent(l); diff --git a/dist/build/mp-weixin/BILL/outstanding_fee/components/HeaderSearch.js b/dist/build/mp-weixin/BILL/outstanding_fee/components/HeaderSearch.js index 4ffd47a..d2408f0 100644 --- a/dist/build/mp-weixin/BILL/outstanding_fee/components/HeaderSearch.js +++ b/dist/build/mp-weixin/BILL/outstanding_fee/components/HeaderSearch.js @@ -1 +1 @@ -"use strict";const e=require("../../../common/vendor.js"),r=require("../index/method.js"),o=require("../index/model.js");if(require("../../../common/libraries/sendWxWork.js"),require("../../../common/libraries/naviHelper.js"),require("../../../gen/Apis.js"),require("../../../common/libraries/request.js"),require("../../../common/store/useWeAppAuthStore.js"),require("../../../common/libraries/apiLoading.js"),require("../../../common/store/useWorkStore.js"),require("../../../common/libraries/day.js"),!Array){e.resolveComponent("up-search")()}Math;const s=e.defineComponent({__name:"HeaderSearch",setup:s=>(s,n)=>{var a;return{a:e.o(null==(a=e.unref(r.method))?void 0:a.handleSearch),b:e.o((r=>e.unref(o.useModel).formData.value.full_name=r)),c:e.p({placeholder:"请输入小区名称",showAction:!1,modelValue:e.unref(o.useModel).formData.value.full_name})}}}),n=e._export_sfc(s,[["__scopeId","data-v-0dc1b32e"]]);wx.createComponent(n); +"use strict";const e=require("../../../common/vendor.js"),r=require("../index/method.js"),o=require("../index/model.js");if(require("../../../common/libraries/sendWxWork.js"),require("../../../common/libraries/naviHelper.js"),require("../../../common/libraries/apiLoading.js"),require("../../../gen/Apis.js"),require("../../../common/libraries/request.js"),require("../../../common/store/useWeAppAuthStore.js"),require("../../../common/store/useWatermarkStore.js"),require("../../../common/store/useWorkStore.js"),require("../../../common/libraries/day.js"),!Array){e.resolveComponent("up-search")()}Math;const s=e.defineComponent({__name:"HeaderSearch",setup:s=>(s,n)=>{var a;return{a:e.o(null==(a=e.unref(r.method))?void 0:a.handleSearch),b:e.o((r=>e.unref(o.useModel).formData.value.full_name=r)),c:e.p({placeholder:"请输入小区名称",showAction:!1,modelValue:e.unref(o.useModel).formData.value.full_name})}}}),n=e._export_sfc(s,[["__scopeId","data-v-0dc1b32e"]]);wx.createComponent(n); diff --git a/dist/build/mp-weixin/BILL/outstanding_fee/index/index.js b/dist/build/mp-weixin/BILL/outstanding_fee/index/index.js index 4613231..a868e6e 100644 --- a/dist/build/mp-weixin/BILL/outstanding_fee/index/index.js +++ b/dist/build/mp-weixin/BILL/outstanding_fee/index/index.js @@ -1 +1 @@ -"use strict";const e=require("../../../common/vendor.js"),o=require("./method.js"),l=require("./model.js"),n=require("../../../common/libraries/day.js");if(require("../../../common/libraries/sendWxWork.js"),require("../../../common/libraries/naviHelper.js"),require("../../../gen/Apis.js"),require("../../../common/libraries/request.js"),require("../../../common/store/useWeAppAuthStore.js"),require("../../../common/libraries/apiLoading.js"),require("../../../common/store/useWorkStore.js"),!Array){(e.resolveComponent("up-tabs")+e.resolveComponent("uni-icons")+e.resolveComponent("cc-scroll-loading")+e.resolveComponent("cc-root-view"))()}Math||((()=>"../../../node-modules/uview-plus/components/u-tabs/u-tabs.js")+i+t+(()=>"../../../uni_modules/uni-icons/components/uni-icons/uni-icons.js")+(()=>"../../../common/components/cc-scroll-loading/cc-scroll-loading.js")+u+(()=>"../../../common/components/cc-root-view/cc-root-view.js"))();const t=()=>"../components/HeadSearchBtn.js",u=()=>"../components/NoticeAlert.js",i=()=>"../components/HeaderSearch.js",r=e.defineComponent({__name:"index",setup:t=>(e.onLoad((async()=>{var n,t,u;await(null==(n=e.getCurrentInstance())?void 0:n.appContext.config.globalProperties.$onLaunched),l.useModel.dataList.value=[],null==(t=o.method)||t.init(),null==(u=o.method)||u.getList()})),(t,u)=>{var i,r,s,d,a,c,v,m,p,h,f,b,j,g,_,S,q,L,M,A;return e.e({a:null==(s=null==(r=null==(i=e.unref(l.useModel))?void 0:i.headTabsList)?void 0:r.value)?void 0:s.length},(null==(c=null==(a=null==(d=e.unref(l.useModel))?void 0:d.headTabsList)?void 0:a.value)?void 0:c.length)?{b:e.o(null==(v=e.unref(o.method))?void 0:v.handleListTabsChange),c:e.p({list:null==(p=null==(m=e.unref(l.useModel))?void 0:m.headTabsList)?void 0:p.value,current:null==(f=null==(h=e.unref(l.useModel))?void 0:h.current)?void 0:f.value})}:{},{d:e.f(null==(j=null==(b=e.unref(l.useModel))?void 0:b.dataList)?void 0:j.value,((l,t,u)=>e.e({a:null==l?void 0:l.is_select},(null==l?void 0:l.is_select)?{b:"17d5eb04-5-"+u+",17d5eb04-4",c:e.p({type:"checkbox-filled",size:"18",color:"#0082FA"})}:{d:"17d5eb04-6-"+u+",17d5eb04-4",e:e.p({type:"circle",size:"18",color:"#666"})},{f:e.t(null==l?void 0:l.full_name),g:e.o((l=>{var n;return null==(n=e.unref(o.method))?void 0:n.handleSelect(t)}),`item_${t}`),h:e.t(null==l?void 0:l.total_overdue_amount),i:e.t(null==l?void 0:l.last_overdue_date),j:e.t(e.unref(n.ShowLastTime)(null==l?void 0:l.last_collection_time)),k:e.o((n=>{var t;return null==(t=e.unref(o.method))?void 0:t.toDetail(l)}),`item_${t}`),l:`item_${t}`}))),e:e.o(null==(g=e.unref(o.method))?void 0:g.handleLoad),f:e.p({meta:null==(S=null==(_=e.unref(l.useModel))?void 0:_.meta)?void 0:S.value}),g:null==(L=null==(q=e.unref(l.useModel))?void 0:q.allSelectStatus)?void 0:L.value},(null==(A=null==(M=e.unref(l.useModel))?void 0:M.allSelectStatus)?void 0:A.value)?{h:e.p({type:"checkbox-filled",size:"20",color:"#0082FA"})}:{i:e.p({type:"circle",size:"20",color:"#666"})},{j:e.o(((...l)=>{var n,t;return(null==(n=e.unref(o.method))?void 0:n.handleAllSelect)&&(null==(t=e.unref(o.method))?void 0:t.handleAllSelect(...l))})),k:e.o(((...l)=>{var n,t;return(null==(n=e.unref(o.method))?void 0:n.toInformationTemplate)&&(null==(t=e.unref(o.method))?void 0:t.toInformationTemplate(...l))})),l:e.o(((...l)=>{var n,t;return(null==(n=e.unref(o.method))?void 0:n.toMassSending)&&(null==(t=e.unref(o.method))?void 0:t.toMassSending(...l))}))})})});wx.createPage(r); +"use strict";const e=require("../../../common/vendor.js"),o=require("./method.js"),l=require("./model.js"),n=require("../../../common/libraries/day.js");if(require("../../../common/libraries/sendWxWork.js"),require("../../../common/libraries/naviHelper.js"),require("../../../common/libraries/apiLoading.js"),require("../../../gen/Apis.js"),require("../../../common/libraries/request.js"),require("../../../common/store/useWeAppAuthStore.js"),require("../../../common/store/useWatermarkStore.js"),require("../../../common/store/useWorkStore.js"),!Array){(e.resolveComponent("up-tabs")+e.resolveComponent("uni-icons")+e.resolveComponent("cc-scroll-loading")+e.resolveComponent("cc-root-view"))()}Math||((()=>"../../../node-modules/uview-plus/components/u-tabs/u-tabs.js")+u+t+(()=>"../../../uni_modules/uni-icons/components/uni-icons/uni-icons.js")+(()=>"../../../common/components/cc-scroll-loading/cc-scroll-loading.js")+r+(()=>"../../../common/components/cc-root-view/cc-root-view.js"))();const t=()=>"../components/HeadSearchBtn.js",r=()=>"../components/NoticeAlert.js",u=()=>"../components/HeaderSearch.js",i=e.defineComponent({__name:"index",setup:t=>(e.onLoad((async()=>{var n,t,r;await(null==(n=e.getCurrentInstance())?void 0:n.appContext.config.globalProperties.$onLaunched),l.useModel.dataList.value=[],null==(t=o.method)||t.init(),null==(r=o.method)||r.getList()})),(t,r)=>{var u,i,s,d,a,c,m,v,p,h,f,b,j,g,S,_,q,L,M,A;return e.e({a:null==(s=null==(i=null==(u=e.unref(l.useModel))?void 0:u.headTabsList)?void 0:i.value)?void 0:s.length},(null==(c=null==(a=null==(d=e.unref(l.useModel))?void 0:d.headTabsList)?void 0:a.value)?void 0:c.length)?{b:e.o(null==(m=e.unref(o.method))?void 0:m.handleListTabsChange),c:e.p({list:null==(p=null==(v=e.unref(l.useModel))?void 0:v.headTabsList)?void 0:p.value,current:null==(f=null==(h=e.unref(l.useModel))?void 0:h.current)?void 0:f.value})}:{},{d:e.f(null==(j=null==(b=e.unref(l.useModel))?void 0:b.dataList)?void 0:j.value,((l,t,r)=>e.e({a:null==l?void 0:l.is_select},(null==l?void 0:l.is_select)?{b:"17d5eb04-5-"+r+",17d5eb04-4",c:e.p({type:"checkbox-filled",size:"18",color:"#0082FA"})}:{d:"17d5eb04-6-"+r+",17d5eb04-4",e:e.p({type:"circle",size:"18",color:"#666"})},{f:e.t(null==l?void 0:l.full_name),g:e.o((l=>{var n;return null==(n=e.unref(o.method))?void 0:n.handleSelect(t)}),`item_${t}`),h:e.t(null==l?void 0:l.total_overdue_amount),i:e.t(null==l?void 0:l.last_overdue_date),j:e.t(e.unref(n.ShowLastTime)(null==l?void 0:l.last_collection_time)),k:e.o((n=>{var t;return null==(t=e.unref(o.method))?void 0:t.toDetail(l)}),`item_${t}`),l:`item_${t}`}))),e:e.o(null==(g=e.unref(o.method))?void 0:g.handleLoad),f:e.p({meta:null==(_=null==(S=e.unref(l.useModel))?void 0:S.meta)?void 0:_.value}),g:null==(L=null==(q=e.unref(l.useModel))?void 0:q.allSelectStatus)?void 0:L.value},(null==(A=null==(M=e.unref(l.useModel))?void 0:M.allSelectStatus)?void 0:A.value)?{h:e.p({type:"checkbox-filled",size:"20",color:"#0082FA"})}:{i:e.p({type:"circle",size:"20",color:"#666"})},{j:e.o(((...l)=>{var n,t;return(null==(n=e.unref(o.method))?void 0:n.handleAllSelect)&&(null==(t=e.unref(o.method))?void 0:t.handleAllSelect(...l))})),k:e.o(((...l)=>{var n,t;return(null==(n=e.unref(o.method))?void 0:n.toInformationTemplate)&&(null==(t=e.unref(o.method))?void 0:t.toInformationTemplate(...l))})),l:e.o(((...l)=>{var n,t;return(null==(n=e.unref(o.method))?void 0:n.toMassSending)&&(null==(t=e.unref(o.method))?void 0:t.toMassSending(...l))}))})})});wx.createPage(i); diff --git a/dist/build/mp-weixin/BILL/outstanding_fee/index/method.js b/dist/build/mp-weixin/BILL/outstanding_fee/index/method.js index 1481bd4..6d64a91 100644 --- a/dist/build/mp-weixin/BILL/outstanding_fee/index/method.js +++ b/dist/build/mp-weixin/BILL/outstanding_fee/index/method.js @@ -1 +1 @@ -"use strict";const e=require("../../../common/vendor.js"),l=require("../../../common/libraries/sendWxWork.js"),a=require("../../../gen/Apis.js"),t=require("./model.js");require("../../../common/libraries/request.js");const o=require("../../../common/store/useWeAppAuthStore.js");require("../../../common/store/useWorkStore.js");const s=o.useWeAppAuthStore(),u=()=>{var e,l;a.Apis.Bill.HouseBills.HouseList(null==(l=null==(e=t.useModel)?void 0:e.formData)?void 0:l.value).then((e=>{var l;null==(l=null==e?void 0:e.data)||l.map((e=>{e.is_select=t.useModel.allSelectStatus.value})),t.useModel.dataList.value=[...t.useModel.dataList.value,...null==e?void 0:e.data],t.useModel.meta.value=null==e?void 0:e.meta,console.log("登录",null==e?void 0:e.data)}))},i={init(){t.useModel.headTabsList.value=[{name:"全部欠费",value:[]},{name:"欠费1个月以内",value:[0,1]},{name:"欠费1-3个月",value:[1,3]},{name:"欠费4-6个月",value:[4,6]},{name:"欠费6-9个月",value:[6,9]},{name:"欠费9个月以上",value:[9,30]}]},getList:u,handleSearch(){t.useModel.formData.value.page=1,t.useModel.dataList.value=[],u()},handleLoad(e){t.useModel.formData.value.page=e,u()},handleListTabsChange(e){var l,a,o;t.useModel.formData.value.page=1,t.useModel.formData.value.overdue_months_range=(null==e?void 0:e.index)?null==(o=null==(a=null==(l=t.useModel)?void 0:l.headTabsList)?void 0:a.value[null==e?void 0:e.index])?void 0:o.value:void 0,t.useModel.dataList.value=[],u(),console.log("e",e)},handleSelect(e){var l;let a=!0,o=t.useModel.dataList.value[e].is_select;t.useModel.dataList.value[e].is_select=!o,null==(l=t.useModel.dataList.value)||l.map((e=>{e.is_select||(a=!1)})),t.useModel.allSelectStatus.value=a},handleAllSelect(){var e,l,a;t.useModel.allSelectStatus.value=!(null==(l=null==(e=t.useModel)?void 0:e.allSelectStatus)?void 0:l.value),null==(a=t.useModel.dataList.value)||a.map((e=>{e.is_select=t.useModel.allSelectStatus.value}))},toInformationTemplate(){var l,a,o;let s=[];null==(o=null==(a=null==(l=t.useModel)?void 0:l.dataList)?void 0:a.value)||o.map((e=>{(null==e?void 0:e.is_select)&&s.push({asset_houses_id:null==e?void 0:e.id,total_unpaid_amount:parseFloat((null==e?void 0:e.total_overdue_amount)||0)})})),(null==s?void 0:s.length)?e.index.navigateTo({url:`/BILL/information_template/index?data=${JSON.stringify(s)}`}):e.index.showToast({title:"请至少选择一个!",icon:"none"})},toDetail(l){e.index.navigateTo({url:`/BILL/outstanding_fee/show/index?id=${null==l?void 0:l.id}`})},toMassSending(){var e;"wxwork"===(null==(e=null==s?void 0:s.data)?void 0:e.environment)?l.shareToExternalContact({externalUserIds:[],page:"/INDEX/bill/list/index",title:"分享给您物业账单",imgUrl:"https://pay-prod-1369486729.cos.ap-guangzhou.myqcloud.com/uploads/cs-test/01K5B5RY2TQQAJ1GT2RZSK426V.jpg"}):l.navigateToMiniProgram({path:"/pages/forward/index?source=OutstandingFeeList",envVersion:"develop",extraData:{source:"OutstandingFeeList"}})}};exports.method=i; +"use strict";const e=require("../../../common/vendor.js"),l=require("../../../common/libraries/sendWxWork.js"),a=require("../../../gen/Apis.js"),t=require("./model.js");require("../../../common/libraries/request.js"),require("../../../common/store/useWatermarkStore.js");const o=require("../../../common/store/useWeAppAuthStore.js");require("../../../common/store/useWorkStore.js");const s=o.useWeAppAuthStore(),u=()=>{var e,l;a.Apis.Bill.HouseBills.HouseList(null==(l=null==(e=t.useModel)?void 0:e.formData)?void 0:l.value).then((e=>{var l;null==(l=null==e?void 0:e.data)||l.map((e=>{e.is_select=t.useModel.allSelectStatus.value})),t.useModel.dataList.value=[...t.useModel.dataList.value,...null==e?void 0:e.data],t.useModel.meta.value=null==e?void 0:e.meta,console.log("登录",null==e?void 0:e.data)}))},i={init(){t.useModel.headTabsList.value=[{name:"全部欠费",value:[]},{name:"欠费1个月以内",value:[0,1]},{name:"欠费1-3个月",value:[1,3]},{name:"欠费4-6个月",value:[4,6]},{name:"欠费6-9个月",value:[6,9]},{name:"欠费9个月以上",value:[9,30]}]},getList:u,handleSearch(){t.useModel.formData.value.page=1,t.useModel.dataList.value=[],u()},handleLoad(e){t.useModel.formData.value.page=e,u()},handleListTabsChange(e){var l,a,o;t.useModel.formData.value.page=1,t.useModel.formData.value.overdue_months_range=(null==e?void 0:e.index)?null==(o=null==(a=null==(l=t.useModel)?void 0:l.headTabsList)?void 0:a.value[null==e?void 0:e.index])?void 0:o.value:void 0,t.useModel.dataList.value=[],u(),console.log("e",e)},handleSelect(e){var l;let a=!0,o=t.useModel.dataList.value[e].is_select;t.useModel.dataList.value[e].is_select=!o,null==(l=t.useModel.dataList.value)||l.map((e=>{e.is_select||(a=!1)})),t.useModel.allSelectStatus.value=a},handleAllSelect(){var e,l,a;t.useModel.allSelectStatus.value=!(null==(l=null==(e=t.useModel)?void 0:e.allSelectStatus)?void 0:l.value),null==(a=t.useModel.dataList.value)||a.map((e=>{e.is_select=t.useModel.allSelectStatus.value}))},toInformationTemplate(){var l,a,o;let s=[];null==(o=null==(a=null==(l=t.useModel)?void 0:l.dataList)?void 0:a.value)||o.map((e=>{(null==e?void 0:e.is_select)&&s.push({asset_houses_id:null==e?void 0:e.id,total_unpaid_amount:parseFloat((null==e?void 0:e.total_overdue_amount)||0)})})),(null==s?void 0:s.length)?e.index.navigateTo({url:`/BILL/information_template/index?data=${JSON.stringify(s)}`}):e.index.showToast({title:"请至少选择一个!",icon:"none"})},toDetail(l){e.index.navigateTo({url:`/BILL/outstanding_fee/show/index?id=${null==l?void 0:l.id}`})},toMassSending(){var e;"wxwork"===(null==(e=null==s?void 0:s.data)?void 0:e.environment)?l.shareToExternalContact({externalUserIds:[],page:"/INDEX/bill/list/index",title:"分享给您物业账单",imgUrl:"https://pay-prod-1369486729.cos.ap-guangzhou.myqcloud.com/uploads/cs-test/01K5B5RY2TQQAJ1GT2RZSK426V.jpg"}):l.navigateToMiniProgram({path:"/pages/forward/index?source=OutstandingFeeList",envVersion:"develop",extraData:{source:"OutstandingFeeList"}})}};exports.method=i; diff --git a/dist/build/mp-weixin/BILL/outstanding_fee/show/components/BillItem.js b/dist/build/mp-weixin/BILL/outstanding_fee/show/components/BillItem.js index 549b0c2..979b2a0 100644 --- a/dist/build/mp-weixin/BILL/outstanding_fee/show/components/BillItem.js +++ b/dist/build/mp-weixin/BILL/outstanding_fee/show/components/BillItem.js @@ -1 +1 @@ -"use strict";const e=require("../../../../common/vendor.js"),l=require("../../../../gen/Enums.js"),o=require("../model.js"),i=require("../method.js");if(require("../../../../common/libraries/day.js"),require("../../../../common/libraries/apiLoading.js"),require("../../../../gen/Apis.js"),require("../../../../common/libraries/request.js"),require("../../../../common/store/useWeAppAuthStore.js"),require("../../../../common/store/useWorkStore.js"),require("../../../../common/libraries/sendWxWork.js"),require("../../../../common/libraries/naviHelper.js"),!Array){(e.resolveComponent("uni-icons")+e.resolveComponent("hs-enum-tag"))()}Math||((()=>"../../../../uni_modules/uni-icons/components/uni-icons/uni-icons.js")+(()=>"../../../../components/hs-enum-tag/hs-enum-tag.js"))();const n=e.defineComponent({__name:"BillItem",props:["item","index"],setup(n){const u=n,s=e.ref(!1),d=()=>{var e,l,n,s,d,r;let t=null==(e=null==u?void 0:u.item)?void 0:e.checked;o.useModel.houseBillsData.value[null==u?void 0:u.index].checked=!t,null==(d=null==(s=null==(n=null==(l=o.useModel)?void 0:l.houseBillsData)?void 0:n.value[null==u?void 0:u.index])?void 0:s.bills)||d.map((e=>{e.checked=!t})),null==(r=i.method)||r.setCalculateTotalPrice()};return(n,r)=>{var t,c,a,v,m;return e.e({a:null==(t=null==u?void 0:u.item)?void 0:t.checked},(null==(c=null==u?void 0:u.item)?void 0:c.checked)?{b:e.p({type:"checkbox-filled",size:"20",color:"#2A7EFB"})}:{c:e.p({type:"circle",size:"20",color:"#888"})},{d:e.t(null==(a=null==u?void 0:u.item)?void 0:a.display_text),e:e.o(d),f:e.t(null==(v=null==u?void 0:u.item)?void 0:v.pending_amount),g:e.p({type:"down",size:"15",color:"#666"}),h:e.o((e=>s.value=!s.value)),i:s.value},s.value?{j:e.f(null==(m=null==u?void 0:u.item)?void 0:m.bills,((n,s,d)=>e.e({a:null==n?void 0:n.checked},(null==n?void 0:n.checked)?{b:"8b74a834-3-"+d,c:e.p({type:"checkbox-filled",size:"20",color:"#2A7EFB"})}:{d:"8b74a834-4-"+d,e:e.p({type:"circle",size:"20",color:"#888"})},{f:"8b74a834-5-"+d,g:e.p({value:null==n?void 0:n.type,Enums:e.unref(l.HouseBillsTypeEnum)}),h:e.o((e=>((e,l)=>{var n,s;let d=null==e?void 0:e.checked;if(o.useModel.houseBillsData.value[null==u?void 0:u.index].bills[l].checked=!d,d)o.useModel.houseBillsData.value[null==u?void 0:u.index].checked=!1;else{let e=null==(n=o.useModel.houseBillsData.value[null==u?void 0:u.index].bills)?void 0:n.every((e=>null==e?void 0:e.checked));o.useModel.houseBillsData.value[null==u?void 0:u.index].checked=e,console.log(e)}null==(s=i.method)||s.setCalculateTotalPrice()})(n,s)),`fid_items_${s}`),i:e.t(null==n?void 0:n.total_payable_amount),j:`fid_items_${s}`})))}:{})}}}),u=e._export_sfc(n,[["__scopeId","data-v-8b74a834"]]);wx.createComponent(u); +"use strict";const e=require("../../../../common/vendor.js"),l=require("../../../../gen/Enums.js"),o=require("../model.js"),i=require("../method.js");if(require("../../../../common/libraries/day.js"),require("../../../../common/libraries/request.js"),require("../../../../common/store/useWeAppAuthStore.js"),require("../../../../gen/Apis.js"),require("../../../../common/store/useWatermarkStore.js"),require("../../../../common/store/useWorkStore.js"),require("../../../../common/libraries/apiLoading.js"),require("../../../../common/libraries/naviHelper.js"),require("../../../../common/libraries/sendWxWork.js"),!Array){(e.resolveComponent("uni-icons")+e.resolveComponent("hs-enum-tag"))()}Math||((()=>"../../../../uni_modules/uni-icons/components/uni-icons/uni-icons.js")+(()=>"../../../../components/hs-enum-tag/hs-enum-tag.js"))();const n=e.defineComponent({__name:"BillItem",props:["item","index"],setup(n){const u=n,s=e.ref(!1),r=()=>{var e,l,n,s,r,d;let t=null==(e=null==u?void 0:u.item)?void 0:e.checked;o.useModel.houseBillsData.value[null==u?void 0:u.index].checked=!t,null==(r=null==(s=null==(n=null==(l=o.useModel)?void 0:l.houseBillsData)?void 0:n.value[null==u?void 0:u.index])?void 0:s.bills)||r.map((e=>{e.checked=!t})),null==(d=i.method)||d.setCalculateTotalPrice()};return(n,d)=>{var t,c,a,m,v;return e.e({a:null==(t=null==u?void 0:u.item)?void 0:t.checked},(null==(c=null==u?void 0:u.item)?void 0:c.checked)?{b:e.p({type:"checkbox-filled",size:"20",color:"#2A7EFB"})}:{c:e.p({type:"circle",size:"20",color:"#888"})},{d:e.t(null==(a=null==u?void 0:u.item)?void 0:a.display_text),e:e.o(r),f:e.t(null==(m=null==u?void 0:u.item)?void 0:m.pending_amount),g:e.p({type:"down",size:"15",color:"#666"}),h:e.o((e=>s.value=!s.value)),i:s.value},s.value?{j:e.f(null==(v=null==u?void 0:u.item)?void 0:v.bills,((n,s,r)=>e.e({a:null==n?void 0:n.checked},(null==n?void 0:n.checked)?{b:"8b74a834-3-"+r,c:e.p({type:"checkbox-filled",size:"20",color:"#2A7EFB"})}:{d:"8b74a834-4-"+r,e:e.p({type:"circle",size:"20",color:"#888"})},{f:"8b74a834-5-"+r,g:e.p({value:null==n?void 0:n.type,Enums:e.unref(l.HouseBillsTypeEnum)}),h:e.o((e=>((e,l)=>{var n,s;let r=null==e?void 0:e.checked;if(o.useModel.houseBillsData.value[null==u?void 0:u.index].bills[l].checked=!r,r)o.useModel.houseBillsData.value[null==u?void 0:u.index].checked=!1;else{let e=null==(n=o.useModel.houseBillsData.value[null==u?void 0:u.index].bills)?void 0:n.every((e=>null==e?void 0:e.checked));o.useModel.houseBillsData.value[null==u?void 0:u.index].checked=e,console.log(e)}null==(s=i.method)||s.setCalculateTotalPrice()})(n,s)),`fid_items_${s}`),i:e.t(null==n?void 0:n.total_payable_amount),j:`fid_items_${s}`})))}:{})}}}),u=e._export_sfc(n,[["__scopeId","data-v-8b74a834"]]);wx.createComponent(u); diff --git a/dist/build/mp-weixin/BILL/outstanding_fee/show/components/PageFooter.js b/dist/build/mp-weixin/BILL/outstanding_fee/show/components/PageFooter.js index 4c4067b..b1eaccd 100644 --- a/dist/build/mp-weixin/BILL/outstanding_fee/show/components/PageFooter.js +++ b/dist/build/mp-weixin/BILL/outstanding_fee/show/components/PageFooter.js @@ -1 +1 @@ -"use strict";const e=require("../../../../common/vendor.js"),r=require("../method.js"),o=require("../model.js");if(require("../../../../common/libraries/apiLoading.js"),require("../../../../gen/Apis.js"),require("../../../../common/libraries/request.js"),require("../../../../common/store/useWeAppAuthStore.js"),require("../../../../common/store/useWorkStore.js"),require("../../../../common/libraries/sendWxWork.js"),require("../../../../common/libraries/naviHelper.js"),require("../../../../common/libraries/day.js"),!Array){e.resolveComponent("hs-button")()}Math;const l=e.defineComponent({__name:"PageFooter",setup:l=>(l,u)=>{var n,s,t,i,a,d,m,v,p,c;return e.e({a:e.unref(o.useModel).tabsCurrent.value<1},e.unref(o.useModel).tabsCurrent.value<1?e.e({b:0===e.unref(o.useModel).tabsCurrent.value},0===e.unref(o.useModel).tabsCurrent.value?e.e({c:null==(t=null==(s=null==(n=e.unref(o.useModel))?void 0:n.houseBillsData)?void 0:s.value)?void 0:t.length},(null==(d=null==(a=null==(i=e.unref(o.useModel))?void 0:i.houseBillsData)?void 0:a.value)?void 0:d.length)?{d:e.t((null==(v=null==(m=e.unref(o.useModel))?void 0:m.total_amount)?void 0:v.value)||"0.00"),e:e.o(null==(p=e.unref(r.method))?void 0:p.handleQRCode),f:e.p({label:"二维码收款",size:"md",type:"ghost"}),g:e.o(null==(c=e.unref(r.method))?void 0:c.handleSelectExternalContact),h:e.p({type:"primary",size:"md",label:"分享账单"})}:{i:e.p({label:"分享托收",size:"md",type:"ghost"}),j:e.p({type:"primary",size:"md",label:"分享预缴"})}):{}):{})}}),u=e._export_sfc(l,[["__scopeId","data-v-5db077a5"]]);wx.createComponent(u); +"use strict";const e=require("../../../../common/vendor.js"),r=require("../method.js"),o=require("../model.js");if(require("../../../../common/libraries/request.js"),require("../../../../common/store/useWeAppAuthStore.js"),require("../../../../gen/Apis.js"),require("../../../../common/store/useWatermarkStore.js"),require("../../../../common/store/useWorkStore.js"),require("../../../../common/libraries/apiLoading.js"),require("../../../../common/libraries/naviHelper.js"),require("../../../../common/libraries/sendWxWork.js"),require("../../../../common/libraries/day.js"),!Array){e.resolveComponent("hs-button")()}Math;const l=e.defineComponent({__name:"PageFooter",setup:l=>(l,u)=>{var n,s,t,a,i,d,m,v,p,c;return e.e({a:e.unref(o.useModel).tabsCurrent.value<1},e.unref(o.useModel).tabsCurrent.value<1?e.e({b:0===e.unref(o.useModel).tabsCurrent.value},0===e.unref(o.useModel).tabsCurrent.value?e.e({c:null==(t=null==(s=null==(n=e.unref(o.useModel))?void 0:n.houseBillsData)?void 0:s.value)?void 0:t.length},(null==(d=null==(i=null==(a=e.unref(o.useModel))?void 0:a.houseBillsData)?void 0:i.value)?void 0:d.length)?{d:e.t((null==(v=null==(m=e.unref(o.useModel))?void 0:m.total_amount)?void 0:v.value)||"0.00"),e:e.o(null==(p=e.unref(r.method))?void 0:p.handleQRCode),f:e.p({label:"二维码收款",size:"md",type:"ghost"}),g:e.o(null==(c=e.unref(r.method))?void 0:c.handleSelectExternalContact),h:e.p({type:"primary",size:"md",label:"分享账单"})}:{i:e.p({label:"分享托收",size:"md",type:"ghost"}),j:e.p({type:"primary",size:"md",label:"分享预缴"})}):{}):{})}}),u=e._export_sfc(l,[["__scopeId","data-v-5db077a5"]]);wx.createComponent(u); diff --git a/dist/build/mp-weixin/BILL/outstanding_fee/show/components/PageHeader.js b/dist/build/mp-weixin/BILL/outstanding_fee/show/components/PageHeader.js index 12e4b74..e3f27ff 100644 --- a/dist/build/mp-weixin/BILL/outstanding_fee/show/components/PageHeader.js +++ b/dist/build/mp-weixin/BILL/outstanding_fee/show/components/PageHeader.js @@ -1 +1 @@ -"use strict";const l=require("../../../../common/vendor.js"),e=require("../../../../gen/Enums.js");require("../../../../common/libraries/day.js");const u=require("../model.js");if(require("../method.js"),require("../../../../common/libraries/apiLoading.js"),require("../../../../gen/Apis.js"),require("../../../../common/libraries/request.js"),require("../../../../common/store/useWeAppAuthStore.js"),require("../../../../common/store/useWorkStore.js"),require("../../../../common/libraries/sendWxWork.js"),require("../../../../common/libraries/naviHelper.js"),!Array){l.resolveComponent("hs-enum-tag")()}Math;const o=l.defineComponent({__name:"PageHeader",setup:o=>(o,n)=>{var s,a,i,d,t,v,r,h,m,_,f,w,M,D,p,g,c,q,j,b,E,A,H,y,k,x,W,C,S,L,O,P,R,U,z,B,F,G,I,J,K,N,Q,T,V,X,Y,Z,$,ll,el,ul,ol,nl,sl,al,il,dl,tl,vl,rl,hl,ml,_l,fl,wl,Ml,Dl,pl,gl,cl,ql,jl,bl,El,Al,Hl,yl,kl,xl,Wl,Cl;return l.e({a:l.t((null==(i=null==(a=null==(s=l.unref(u.useModel))?void 0:s.showData)?void 0:a.value)?void 0:i.full_name)||"-"),b:l.t((null==(v=null==(t=null==(d=l.unref(u.useModel))?void 0:d.showData)?void 0:t.value)?void 0:v.total_pending_amount)?"欠费":"结清"),c:l.n("type_text type_text_"+((null==(m=null==(h=null==(r=l.unref(u.useModel))?void 0:r.showData)?void 0:h.value)?void 0:m.total_pending_amount)?"red":"green")),d:null==(w=null==(f=null==(_=l.unref(u.useModel))?void 0:_.showData)?void 0:f.value)?void 0:w.total_pending_amount},(null==(p=null==(D=null==(M=l.unref(u.useModel))?void 0:M.showData)?void 0:D.value)?void 0:p.total_pending_amount)?{e:l.t((null==(q=null==(c=null==(g=l.unref(u.useModel))?void 0:g.showData)?void 0:c.value)?void 0:q.total_pending_amount)||"-")}:{},{f:l.t((null==(A=null==(E=null==(b=null==(j=l.unref(u.useModel))?void 0:j.showData)?void 0:b.value)?void 0:E.asset_house)?void 0:A.built_area)||"-"),g:l.t((null==(x=null==(k=null==(y=null==(H=l.unref(u.useModel))?void 0:H.showData)?void 0:y.value)?void 0:k.asset_house)?void 0:x.room)||""),h:l.t((null==(L=null==(S=null==(C=null==(W=l.unref(u.useModel))?void 0:W.showData)?void 0:C.value)?void 0:S.asset_house)?void 0:L.hall)||""),i:l.t((null==(U=null==(R=null==(P=null==(O=l.unref(u.useModel))?void 0:O.showData)?void 0:P.value)?void 0:R.asset_house)?void 0:U.bathroom)||""),j:l.t((null==(G=null==(F=null==(B=null==(z=l.unref(u.useModel))?void 0:z.showData)?void 0:B.value)?void 0:F.asset_house)?void 0:G.kitchen)||""),k:l.t((null==(N=null==(K=null==(J=null==(I=l.unref(u.useModel))?void 0:I.showData)?void 0:J.value)?void 0:K.asset_house)?void 0:N.balcony)||""),l:l.t((null==(X=null==(V=null==(T=null==(Q=l.unref(u.useModel))?void 0:Q.showData)?void 0:T.value)?void 0:V.asset_house)?void 0:X.ownership_term)||"-"),m:null==(ll=null==($=null==(Z=null==(Y=l.unref(u.useModel))?void 0:Y.showData)?void 0:Z.value)?void 0:$.asset_house)?void 0:ll.status},(null==(nl=null==(ol=null==(ul=null==(el=l.unref(u.useModel))?void 0:el.showData)?void 0:ul.value)?void 0:ol.asset_house)?void 0:nl.status)?{n:l.p({Enums:l.unref(e.HouseRegistersHouseStatusEnum),value:null==(dl=null==(il=null==(al=null==(sl=l.unref(u.useModel))?void 0:sl.showData)?void 0:al.value)?void 0:il.asset_house)?void 0:dl.status})}:{},{o:null==(hl=null==(rl=null==(vl=null==(tl=l.unref(u.useModel))?void 0:tl.showData)?void 0:vl.value)?void 0:rl.asset_house)?void 0:hl.orientation},(null==(wl=null==(fl=null==(_l=null==(ml=l.unref(u.useModel))?void 0:ml.showData)?void 0:_l.value)?void 0:fl.asset_house)?void 0:wl.orientation)?{p:l.p({Enums:l.unref(e.AssetHousesOrientationEnum),value:null==(gl=null==(pl=null==(Dl=null==(Ml=l.unref(u.useModel))?void 0:Ml.showData)?void 0:Dl.value)?void 0:pl.asset_house)?void 0:gl.orientation})}:{},{q:null==(bl=null==(jl=null==(ql=null==(cl=l.unref(u.useModel))?void 0:cl.showData)?void 0:ql.value)?void 0:jl.asset_house)?void 0:bl.usage},(null==(yl=null==(Hl=null==(Al=null==(El=l.unref(u.useModel))?void 0:El.showData)?void 0:Al.value)?void 0:Hl.asset_house)?void 0:yl.usage)?{r:l.p({Enums:l.unref(e.AssetHousesUsageEnum),value:null==(Cl=null==(Wl=null==(xl=null==(kl=l.unref(u.useModel))?void 0:kl.showData)?void 0:xl.value)?void 0:Wl.asset_house)?void 0:Cl.usage})}:{})}});wx.createComponent(o); +"use strict";const l=require("../../../../common/vendor.js"),e=require("../../../../gen/Enums.js");require("../../../../common/libraries/day.js");const u=require("../model.js");if(require("../method.js"),require("../../../../common/libraries/request.js"),require("../../../../common/store/useWeAppAuthStore.js"),require("../../../../gen/Apis.js"),require("../../../../common/store/useWatermarkStore.js"),require("../../../../common/store/useWorkStore.js"),require("../../../../common/libraries/apiLoading.js"),require("../../../../common/libraries/naviHelper.js"),require("../../../../common/libraries/sendWxWork.js"),!Array){l.resolveComponent("hs-enum-tag")()}Math;const o=l.defineComponent({__name:"PageHeader",setup:o=>(o,n)=>{var s,a,i,d,t,v,r,h,m,_,f,w,M,D,p,c,g,q,j,b,E,A,H,k,y,W,x,S,C,L,O,P,R,U,z,B,F,G,I,J,K,N,Q,T,V,X,Y,Z,$,ll,el,ul,ol,nl,sl,al,il,dl,tl,vl,rl,hl,ml,_l,fl,wl,Ml,Dl,pl,cl,gl,ql,jl,bl,El,Al,Hl,kl,yl,Wl,xl,Sl;return l.e({a:l.t((null==(i=null==(a=null==(s=l.unref(u.useModel))?void 0:s.showData)?void 0:a.value)?void 0:i.full_name)||"-"),b:l.t((null==(v=null==(t=null==(d=l.unref(u.useModel))?void 0:d.showData)?void 0:t.value)?void 0:v.total_pending_amount)?"欠费":"结清"),c:l.n("type_text type_text_"+((null==(m=null==(h=null==(r=l.unref(u.useModel))?void 0:r.showData)?void 0:h.value)?void 0:m.total_pending_amount)?"red":"green")),d:null==(w=null==(f=null==(_=l.unref(u.useModel))?void 0:_.showData)?void 0:f.value)?void 0:w.total_pending_amount},(null==(p=null==(D=null==(M=l.unref(u.useModel))?void 0:M.showData)?void 0:D.value)?void 0:p.total_pending_amount)?{e:l.t((null==(q=null==(g=null==(c=l.unref(u.useModel))?void 0:c.showData)?void 0:g.value)?void 0:q.total_pending_amount)||"-")}:{},{f:l.t((null==(A=null==(E=null==(b=null==(j=l.unref(u.useModel))?void 0:j.showData)?void 0:b.value)?void 0:E.asset_house)?void 0:A.built_area)||"-"),g:l.t((null==(W=null==(y=null==(k=null==(H=l.unref(u.useModel))?void 0:H.showData)?void 0:k.value)?void 0:y.asset_house)?void 0:W.room)||""),h:l.t((null==(L=null==(C=null==(S=null==(x=l.unref(u.useModel))?void 0:x.showData)?void 0:S.value)?void 0:C.asset_house)?void 0:L.hall)||""),i:l.t((null==(U=null==(R=null==(P=null==(O=l.unref(u.useModel))?void 0:O.showData)?void 0:P.value)?void 0:R.asset_house)?void 0:U.bathroom)||""),j:l.t((null==(G=null==(F=null==(B=null==(z=l.unref(u.useModel))?void 0:z.showData)?void 0:B.value)?void 0:F.asset_house)?void 0:G.kitchen)||""),k:l.t((null==(N=null==(K=null==(J=null==(I=l.unref(u.useModel))?void 0:I.showData)?void 0:J.value)?void 0:K.asset_house)?void 0:N.balcony)||""),l:l.t((null==(X=null==(V=null==(T=null==(Q=l.unref(u.useModel))?void 0:Q.showData)?void 0:T.value)?void 0:V.asset_house)?void 0:X.ownership_term)||"-"),m:null==(ll=null==($=null==(Z=null==(Y=l.unref(u.useModel))?void 0:Y.showData)?void 0:Z.value)?void 0:$.asset_house)?void 0:ll.status},(null==(nl=null==(ol=null==(ul=null==(el=l.unref(u.useModel))?void 0:el.showData)?void 0:ul.value)?void 0:ol.asset_house)?void 0:nl.status)?{n:l.p({Enums:l.unref(e.HouseRegistersHouseStatusEnum),value:null==(dl=null==(il=null==(al=null==(sl=l.unref(u.useModel))?void 0:sl.showData)?void 0:al.value)?void 0:il.asset_house)?void 0:dl.status})}:{},{o:null==(hl=null==(rl=null==(vl=null==(tl=l.unref(u.useModel))?void 0:tl.showData)?void 0:vl.value)?void 0:rl.asset_house)?void 0:hl.orientation},(null==(wl=null==(fl=null==(_l=null==(ml=l.unref(u.useModel))?void 0:ml.showData)?void 0:_l.value)?void 0:fl.asset_house)?void 0:wl.orientation)?{p:l.p({Enums:l.unref(e.AssetHousesOrientationEnum),value:null==(cl=null==(pl=null==(Dl=null==(Ml=l.unref(u.useModel))?void 0:Ml.showData)?void 0:Dl.value)?void 0:pl.asset_house)?void 0:cl.orientation})}:{},{q:null==(bl=null==(jl=null==(ql=null==(gl=l.unref(u.useModel))?void 0:gl.showData)?void 0:ql.value)?void 0:jl.asset_house)?void 0:bl.usage},(null==(kl=null==(Hl=null==(Al=null==(El=l.unref(u.useModel))?void 0:El.showData)?void 0:Al.value)?void 0:Hl.asset_house)?void 0:kl.usage)?{r:l.p({Enums:l.unref(e.AssetHousesUsageEnum),value:null==(Sl=null==(xl=null==(Wl=null==(yl=l.unref(u.useModel))?void 0:yl.showData)?void 0:Wl.value)?void 0:xl.asset_house)?void 0:Sl.usage})}:{})}});wx.createComponent(o); diff --git a/dist/build/mp-weixin/BILL/outstanding_fee/show/components/PersonnelList.js b/dist/build/mp-weixin/BILL/outstanding_fee/show/components/PersonnelList.js index 98bfd8a..4299545 100644 --- a/dist/build/mp-weixin/BILL/outstanding_fee/show/components/PersonnelList.js +++ b/dist/build/mp-weixin/BILL/outstanding_fee/show/components/PersonnelList.js @@ -1 +1 @@ -"use strict";const e=require("../../../../common/vendor.js"),n=require("../../../../gen/Enums.js");require("../../../../common/libraries/request.js"),require("../../../../common/store/useWeAppAuthStore.js"),require("../../../../common/store/useWorkStore.js");const o=require("../model.js");if(require("../../../../gen/Apis.js"),require("../../../../common/libraries/apiLoading.js"),require("../../../../common/libraries/day.js"),!Array){(e.resolveComponent("hs-enum-tag")+e.resolveComponent("uni-icons"))()}Math||((()=>"../../../../components/hs-enum-tag/hs-enum-tag.js")+(()=>"../../../../uni_modules/uni-icons/components/uni-icons/uni-icons.js"))();const i=e.defineComponent({__name:"PersonnelList",setup:i=>(i,s)=>({a:e.f(e.unref(o.useModel).listData.value,((o,i,s)=>{var l,r;return e.e({a:null==(l=null==o?void 0:o.list)?void 0:l.length},(null==(r=null==o?void 0:o.list)?void 0:r.length)?{b:e.t(null==o?void 0:o.label),c:e.f(null==o?void 0:o.list,((o,i,l)=>e.e({a:e.t(null==o?void 0:o.name),b:e.t(null==o?void 0:o.phone),c:"Owner"===(null==o?void 0:o.house_relation)},"Owner"===(null==o?void 0:o.house_relation)?{}:{d:"a7d6367c-0-"+s+"-"+l,e:e.p({Enums:e.unref(n.HouseOccupantsResidentialRelationEnum),value:null==o?void 0:o.residential_relation})},{f:"a7d6367c-1-"+s+"-"+l,g:e.o((n=>{var i;(i=null==o?void 0:o.phone)&&e.index.makePhoneCall({phoneNumber:i})}),`personnel_${i}`),h:e.o((n=>{return i=null==o?void 0:o.phone,void e.index.setClipboardData({data:i,success(n){setTimeout((()=>{e.index.qy.navigateToAddCustomer({success:function(){}})}),1e3)}});var i}),`personnel_${i}`),i:`personnel_${i}`}))),d:e.p({type:"star-filled",size:"20",color:(null==o?void 0:o.is_contact)?"#FFD666":"#DCDFE6"}),e:e.t((null==o?void 0:o.is_contact)?"常用联系人":"设为常用")}:{},{f:`item_${i}`})}))})}),s=e._export_sfc(i,[["__scopeId","data-v-a7d6367c"]]);wx.createComponent(s); +"use strict";const e=require("../../../../common/vendor.js"),n=require("../../../../gen/Enums.js"),o=require("../model.js");if(require("../../../../common/libraries/day.js"),!Array){(e.resolveComponent("hs-enum-tag")+e.resolveComponent("uni-icons"))()}Math||((()=>"../../../../components/hs-enum-tag/hs-enum-tag.js")+(()=>"../../../../uni_modules/uni-icons/components/uni-icons/uni-icons.js"))();const l=e.defineComponent({__name:"PersonnelList",setup:l=>(l,i)=>({a:e.f(e.unref(o.useModel).listData.value,((o,i,t)=>{var s,u;return e.e({a:null==(s=null==o?void 0:o.list)?void 0:s.length},(null==(u=null==o?void 0:o.list)?void 0:u.length)?{b:e.t(null==o?void 0:o.label),c:e.f(null==o?void 0:o.list,((o,i,s)=>e.e({a:e.t(null==o?void 0:o.name),b:e.t(null==o?void 0:o.phone),c:"Owner"===(null==o?void 0:o.house_relation)},"Owner"===(null==o?void 0:o.house_relation)?{}:{d:"9e55057e-0-"+t+"-"+s,e:e.p({Enums:e.unref(n.HouseOccupantsResidentialRelationEnum),value:null==o?void 0:o.residential_relation})},{f:"9e55057e-1-"+t+"-"+s,g:e.o((e=>{var n;return null==(n=l.method)?void 0:n.handleSetContact(o)}),`personnel_${i}`),h:e.o((n=>{var l;(l=null==o?void 0:o.phone)&&e.index.makePhoneCall({phoneNumber:l})}),`personnel_${i}`),i:e.o((n=>{return l=null==o?void 0:o.phone,void e.index.setClipboardData({data:l,success(n){setTimeout((()=>{e.index.qy.navigateToAddCustomer({success:function(){}})}),1e3)}});var l}),`personnel_${i}`),j:e.o((n=>{return l=null==o?void 0:o.id,void e.index.navigateTo({url:`/CUSTOMER/show/index?id=${l}`});var l}),`personnel_${i}`),k:`personnel_${i}`}))),d:e.p({type:"star-filled",size:"20",color:(null==o?void 0:o.is_contact)?"#FFD666":"#DCDFE6"}),e:e.t((null==o?void 0:o.is_contact)?"常用联系人":"设为常用")}:{},{f:`item_${i}`})}))})}),i=e._export_sfc(l,[["__scopeId","data-v-9e55057e"]]);wx.createComponent(i); diff --git a/dist/build/mp-weixin/BILL/outstanding_fee/show/components/PersonnelList.wxml b/dist/build/mp-weixin/BILL/outstanding_fee/show/components/PersonnelList.wxml index a77e192..d659a63 100644 --- a/dist/build/mp-weixin/BILL/outstanding_fee/show/components/PersonnelList.wxml +++ b/dist/build/mp-weixin/BILL/outstanding_fee/show/components/PersonnelList.wxml @@ -1 +1 @@ -{{i.b}}{{j.a}}{{j.b}} 产权人 {{i.e}} 拨打电话 +微信 查看详情 \ No newline at end of file +{{i.b}}{{j.a}}{{j.b}} 产权人 {{i.e}} 拨打电话 +微信 查看详情 \ No newline at end of file diff --git a/dist/build/mp-weixin/BILL/outstanding_fee/show/components/PersonnelList.wxss b/dist/build/mp-weixin/BILL/outstanding_fee/show/components/PersonnelList.wxss index 20fafdf..0371d56 100644 --- a/dist/build/mp-weixin/BILL/outstanding_fee/show/components/PersonnelList.wxss +++ b/dist/build/mp-weixin/BILL/outstanding_fee/show/components/PersonnelList.wxss @@ -1 +1 @@ -.personnel_list.data-v-a7d6367c{padding:0 30rpx}.personnel_list .title.data-v-a7d6367c{font-size:28rpx;font-weight:500;color:#333;padding:30rpx 0}.personnel_list .personnel_item.data-v-a7d6367c{background-color:#f9fafb;border-radius:20rpx}.personnel_list .personnel_item .personnel_item_type.data-v-a7d6367c{color:#606266;font-size:24rpx;border:1px solid #c3c3c3;border-radius:100rpx;padding:5rpx 22rpx;background-color:#fff;display:inline-block;margin-top:5rpx}.personnel_list .personnel_item_header.data-v-a7d6367c{display:flex;align-items:center;justify-content:space-between;padding:30rpx 30rpx 20rpx}.personnel_list .personnel_item_header_left.data-v-a7d6367c{color:#3d3d3d;font-size:28rpx;font-weight:500;flex:1}.personnel_list .personnel_item_header_left text.data-v-a7d6367c{font-weight:400;padding-left:6rpx}.personnel_list .personnel_item_header_right.data-v-a7d6367c{font-size:24rpx;text-align:center;color:#b1b3b8}.personnel_list .personnel_item_header_right .label.data-v-a7d6367c{padding-top:7rpx}.personnel_list .personnel_item_footer.data-v-a7d6367c{display:flex;align-items:center;justify-content:space-between;text-align:center;padding:20rpx 0;border-top:1rpx solid #ededed}.personnel_list .personnel_item_footer .btn.data-v-a7d6367c{flex:1;color:#333;font-size:28rpx;padding:10rpx 0}.personnel_list .personnel_item_footer .btn.data-v-a7d6367c:first-child{color:#0082fa}.personnel_list .personnel_item_footer .btn.data-v-a7d6367c:nth-child(2){border-left:1rpx solid #ededed;border-right:1rpx solid #ededed} +.personnel_list.data-v-9e55057e{padding:0 30rpx}.personnel_list .title.data-v-9e55057e{font-size:28rpx;font-weight:500;color:#333;padding:30rpx 0}.personnel_list .personnel_item.data-v-9e55057e{background-color:#f9fafb;border-radius:20rpx}.personnel_list .personnel_item .personnel_item_type.data-v-9e55057e{color:#606266;font-size:24rpx;border:1px solid #c3c3c3;border-radius:100rpx;padding:5rpx 22rpx;background-color:#fff;display:inline-block;margin-top:5rpx}.personnel_list .personnel_item_header.data-v-9e55057e{display:flex;align-items:center;justify-content:space-between;padding:30rpx 30rpx 20rpx}.personnel_list .personnel_item_header_left.data-v-9e55057e{color:#3d3d3d;font-size:28rpx;font-weight:500;flex:1}.personnel_list .personnel_item_header_left text.data-v-9e55057e{font-weight:400;padding-left:6rpx}.personnel_list .personnel_item_header_right.data-v-9e55057e{font-size:24rpx;text-align:center;color:#b1b3b8}.personnel_list .personnel_item_header_right .label.data-v-9e55057e{padding-top:7rpx}.personnel_list .personnel_item_footer.data-v-9e55057e{display:flex;align-items:center;justify-content:space-between;text-align:center;padding:20rpx 0;border-top:1rpx solid #ededed}.personnel_list .personnel_item_footer .btn.data-v-9e55057e{flex:1;color:#333;font-size:28rpx;padding:10rpx 0}.personnel_list .personnel_item_footer .btn.data-v-9e55057e:first-child{color:#0082fa}.personnel_list .personnel_item_footer .btn.data-v-9e55057e:nth-child(2){border-left:1rpx solid #ededed;border-right:1rpx solid #ededed} diff --git a/dist/build/mp-weixin/BILL/outstanding_fee/show/components/WorkOrderList.js b/dist/build/mp-weixin/BILL/outstanding_fee/show/components/WorkOrderList.js index 001fbc7..5432c82 100644 --- a/dist/build/mp-weixin/BILL/outstanding_fee/show/components/WorkOrderList.js +++ b/dist/build/mp-weixin/BILL/outstanding_fee/show/components/WorkOrderList.js @@ -1 +1 @@ -"use strict";const e=require("../../../../common/vendor.js"),l=require("../../../../gen/Enums.js"),o=require("../model.js"),n=require("../../../../common/libraries/day.js"),u=require("../method.js");if(require("../../../../common/libraries/apiLoading.js"),require("../../../../gen/Apis.js"),require("../../../../common/libraries/request.js"),require("../../../../common/store/useWeAppAuthStore.js"),require("../../../../common/store/useWorkStore.js"),require("../../../../common/libraries/sendWxWork.js"),require("../../../../common/libraries/naviHelper.js"),!Array){(e.resolveComponent("hs-enum-tag")+e.resolveComponent("hs-level")+e.resolveComponent("up-icon"))()}Math||((()=>"../../../../components/hs-enum-tag/hs-enum-tag.js")+(()=>"../../../../components/hs-level/hs-level.js")+(()=>"../../../../node-modules/uview-plus/components/u-icon/u-icon.js"))();const t=e.defineComponent({__name:"WorkOrderList",setup(t){let s=[{label:"全部",value:void 0},{label:"待处理",value:"Pending"},{label:"处理中",value:"Processing"},{label:"已完成",value:"Completed"}];return(t,r)=>{var i,a;return{a:e.f(e.unref(s),((l,n,t)=>{var s,r,i;return{a:e.t(null==l?void 0:l.label),b:`tab_${n}`,c:e.n("items "+((null==(i=null==(r=null==(s=e.unref(o.useModel))?void 0:s.formData)?void 0:r.value)?void 0:i.status)===(null==l?void 0:l.value)?"active":"")),d:e.o((e=>(e=>{var l;o.useModel.formData.value.status=null==e?void 0:e.value,o.useModel.listData.value=[],null==(l=u.method)||l.loadMore(1)})(l)),`tab_${n}`)}})),b:e.f(null==(a=null==(i=e.unref(o.useModel))?void 0:i.listData)?void 0:a.value,((o,u,t)=>{var s,r,i,a,d;return e.e({a:"08c86bd8-0-"+t,b:e.p({value:null==o?void 0:o.type,Enums:e.unref(l.HouseWorkOrdersTypeEnum)}),c:"08c86bd8-1-"+t,d:e.p({level:null==o?void 0:o.level}),e:"08c86bd8-2-"+t,f:e.p({value:null==o?void 0:o.status,Enums:e.unref(l.HouseWorkOrdersStatusEnum)}),g:e.n(`btn_status status_${null==o?void 0:o.status}`),h:e.t(null==(s=null==o?void 0:o.asset_house)?void 0:s.full_name),i:e.t(null==o?void 0:o.content),j:e.f(null==o?void 0:o.attachments,((e,l,o)=>({a:null==e?void 0:e.url,b:`img_${l}`}))),k:"Pending"===(null==o?void 0:o.status)},"Pending"===(null==o?void 0:o.status)?{l:"08c86bd8-3-"+t,m:e.p({name:"clock",color:(null==(r=e.unref(n.getTimeStatus)(null==o?void 0:o.expect_end_time))?void 0:r.color)||"#000",size:"14"}),n:e.t(null==(i=e.unref(n.getTimeStatus)(null==o?void 0:o.expect_end_time))?void 0:i.label),o:e.n(`todo_done_card_footer status_${null==(a=e.unref(n.getTimeStatus)(null==o?void 0:o.expect_end_time))?void 0:a.status}`)}:{},{p:e.t(null==o?void 0:o.created_at),q:`items_${u}`,r:e.o((l=>{return n=o,void e.index.navigateTo({url:`/WORKORDER/show/index?id=${null==n?void 0:n.id}`});var n}),`items_${u}`),s:e.n("todo_done_card "+("Pending"===(null==o?void 0:o.status)?`card_status_${null==(d=e.unref(n.getTimeStatus)(null==o?void 0:o.expect_end_time))?void 0:d.status}`:""))})}))}}}}),s=e._export_sfc(t,[["__scopeId","data-v-08c86bd8"]]);wx.createComponent(s); +"use strict";const e=require("../../../../common/vendor.js"),o=require("../../../../gen/Enums.js"),l=require("../model.js"),n=require("../../../../common/libraries/day.js"),u=require("../method.js");if(require("../../../../common/libraries/request.js"),require("../../../../common/store/useWeAppAuthStore.js"),require("../../../../gen/Apis.js"),require("../../../../common/store/useWatermarkStore.js"),require("../../../../common/store/useWorkStore.js"),require("../../../../common/libraries/apiLoading.js"),require("../../../../common/libraries/naviHelper.js"),require("../../../../common/libraries/sendWxWork.js"),!Array){(e.resolveComponent("hs-enum-tag")+e.resolveComponent("hs-level")+e.resolveComponent("up-icon"))()}Math||((()=>"../../../../components/hs-enum-tag/hs-enum-tag.js")+(()=>"../../../../components/hs-level/hs-level.js")+(()=>"../../../../node-modules/uview-plus/components/u-icon/u-icon.js"))();const t=e.defineComponent({__name:"WorkOrderList",setup(t){let s=[{label:"全部",value:void 0},{label:"待处理",value:"Pending"},{label:"处理中",value:"Processing"},{label:"已完成",value:"Completed"}];return(t,r)=>{var i,a;return{a:e.f(e.unref(s),((o,n,t)=>{var s,r,i;return{a:e.t(null==o?void 0:o.label),b:`tab_${n}`,c:e.n("items "+((null==(i=null==(r=null==(s=e.unref(l.useModel))?void 0:s.formData)?void 0:r.value)?void 0:i.status)===(null==o?void 0:o.value)?"active":"")),d:e.o((e=>(e=>{var o;l.useModel.formData.value.status=null==e?void 0:e.value,l.useModel.listData.value=[],null==(o=u.method)||o.loadMore(1)})(o)),`tab_${n}`)}})),b:e.f(null==(a=null==(i=e.unref(l.useModel))?void 0:i.listData)?void 0:a.value,((l,u,t)=>{var s,r,i,a,d;return e.e({a:"08c86bd8-0-"+t,b:e.p({value:null==l?void 0:l.type,Enums:e.unref(o.HouseWorkOrdersTypeEnum)}),c:"08c86bd8-1-"+t,d:e.p({level:null==l?void 0:l.level}),e:"08c86bd8-2-"+t,f:e.p({value:null==l?void 0:l.status,Enums:e.unref(o.HouseWorkOrdersStatusEnum)}),g:e.n(`btn_status status_${null==l?void 0:l.status}`),h:e.t(null==(s=null==l?void 0:l.asset_house)?void 0:s.full_name),i:e.t(null==l?void 0:l.content),j:e.f(null==l?void 0:l.attachments,((e,o,l)=>({a:null==e?void 0:e.url,b:`img_${o}`}))),k:"Pending"===(null==l?void 0:l.status)},"Pending"===(null==l?void 0:l.status)?{l:"08c86bd8-3-"+t,m:e.p({name:"clock",color:(null==(r=e.unref(n.getTimeStatus)(null==l?void 0:l.expect_end_time))?void 0:r.color)||"#000",size:"14"}),n:e.t(null==(i=e.unref(n.getTimeStatus)(null==l?void 0:l.expect_end_time))?void 0:i.label),o:e.n(`todo_done_card_footer status_${null==(a=e.unref(n.getTimeStatus)(null==l?void 0:l.expect_end_time))?void 0:a.status}`)}:{},{p:e.t(null==l?void 0:l.created_at),q:`items_${u}`,r:e.o((o=>{return n=l,void e.index.navigateTo({url:`/WORKORDER/show/index?id=${null==n?void 0:n.id}`});var n}),`items_${u}`),s:e.n("todo_done_card "+("Pending"===(null==l?void 0:l.status)?`card_status_${null==(d=e.unref(n.getTimeStatus)(null==l?void 0:l.expect_end_time))?void 0:d.status}`:""))})}))}}}}),s=e._export_sfc(t,[["__scopeId","data-v-08c86bd8"]]);wx.createComponent(s); diff --git a/dist/build/mp-weixin/BILL/outstanding_fee/show/index.js b/dist/build/mp-weixin/BILL/outstanding_fee/show/index.js index 5a8352e..52352d6 100644 --- a/dist/build/mp-weixin/BILL/outstanding_fee/show/index.js +++ b/dist/build/mp-weixin/BILL/outstanding_fee/show/index.js @@ -1 +1 @@ -"use strict";const e=require("../../../common/vendor.js"),o=require("./model.js"),l=require("./method.js");if(require("../../../common/libraries/day.js"),require("../../../common/libraries/apiLoading.js"),require("../../../gen/Apis.js"),require("../../../common/libraries/request.js"),require("../../../common/store/useWeAppAuthStore.js"),require("../../../common/store/useWorkStore.js"),require("../../../common/libraries/sendWxWork.js"),require("../../../common/libraries/naviHelper.js"),!Array){(e.resolveComponent("hs-tabs")+e.resolveComponent("cc-scroll-loading"))()}Math||(s+(()=>"../../../components/hs-tabs/hs-tabs.js")+r+n+u+t+(()=>"../../../common/components/cc-scroll-loading/cc-scroll-loading.js")+a)();const n=()=>"./components/BillItem.js",s=()=>"./components/PageHeader.js",a=()=>"./components/PageFooter.js",r=()=>"./components/BillRecord.js",u=()=>"./components/WorkOrderList.js",t=()=>"./components/PersonnelList.js",i=e.defineComponent({__name:"index",setup(n){const s=[{label:"房屋账单"},{label:"房屋工单"},{label:"房屋人员"}];return e.onShow((async()=>{var n,s,a,r,u;await(null==(n=e.getCurrentInstance())?void 0:n.appContext.config.globalProperties.$onLaunched),(null==(r=null==(a=null==(s=o.useModel)?void 0:s.showData)?void 0:a.value)?void 0:r.id)&&(o.useModel.houseBillsData.value=[],o.useModel.collectionList.value=[],null==(u=l.method)||u.handleTabsChange(o.useModel.tabsCurrent.value))})),e.onUnload((()=>{o.useModel.showData.value=void 0,o.useModel.houseBillsData.value=[],o.useModel.collectionList.value=[],o.useModel.total_amount.value=0})),e.onLoad((async n=>{var s,a,r;o.useModel.tabsCurrent.value=0,await(null==(s=e.getCurrentInstance())?void 0:s.appContext.config.globalProperties.$onLaunched),o.useModel.formData.value.asset_houses_id=null==n?void 0:n.id,null==(a=l.method)||a.getShow(null==n?void 0:n.id),null==(r=l.method)||r.getHouseBills(1)})),(n,a)=>{var r,u,t,i,d,c;return e.e({a:e.o(null==(r=e.unref(l.method))?void 0:r.handleTabsChange),b:e.p({list:s,current:e.unref(o.useModel).tabsCurrent.value}),c:0===e.unref(o.useModel).tabsCurrent.value},0===e.unref(o.useModel).tabsCurrent.value?{d:e.f(null==(t=null==(u=e.unref(o.useModel))?void 0:u.houseBillsData)?void 0:t.value,((o,l,n)=>({a:`items_${l}`,b:"e72aaab2-4-"+n+",e72aaab2-2",c:e.p({item:o,index:l})})))}:{},{e:1===e.unref(o.useModel).tabsCurrent.value},(e.unref(o.useModel).tabsCurrent.value,{}),{f:2===e.unref(o.useModel).tabsCurrent.value},(e.unref(o.useModel).tabsCurrent.value,{}),{g:e.o(null==(i=e.unref(l.method))?void 0:i.loadMore),h:e.p({meta:null==(c=null==(d=e.unref(o.useModel))?void 0:d.metaData)?void 0:c.value}),i:e.n(`show_container_${e.unref(o.useModel).tabsCurrent.value}`)})}}});wx.createPage(i); +"use strict";const e=require("../../../common/vendor.js"),o=require("./model.js"),l=require("./method.js");if(require("../../../common/libraries/day.js"),require("../../../common/libraries/request.js"),require("../../../common/store/useWeAppAuthStore.js"),require("../../../gen/Apis.js"),require("../../../common/store/useWatermarkStore.js"),require("../../../common/store/useWorkStore.js"),require("../../../common/libraries/apiLoading.js"),require("../../../common/libraries/naviHelper.js"),require("../../../common/libraries/sendWxWork.js"),!Array){(e.resolveComponent("hs-tabs")+e.resolveComponent("cc-scroll-loading"))()}Math||(s+(()=>"../../../components/hs-tabs/hs-tabs.js")+a+n+u+t+(()=>"../../../common/components/cc-scroll-loading/cc-scroll-loading.js")+r)();const n=()=>"./components/BillItem.js",s=()=>"./components/PageHeader.js",r=()=>"./components/PageFooter.js",a=()=>"./components/BillRecord.js",u=()=>"./components/WorkOrderList.js",t=()=>"./components/PersonnelList.js",i=e.defineComponent({__name:"index",setup(n){const s=[{label:"房屋账单"},{label:"房屋工单"},{label:"房屋人员"}];return e.onShow((async()=>{var n,s,r,a,u;await(null==(n=e.getCurrentInstance())?void 0:n.appContext.config.globalProperties.$onLaunched),(null==(a=null==(r=null==(s=o.useModel)?void 0:s.showData)?void 0:r.value)?void 0:a.id)&&(o.useModel.houseBillsData.value=[],o.useModel.collectionList.value=[],null==(u=l.method)||u.handleTabsChange(o.useModel.tabsCurrent.value))})),e.onUnload((()=>{o.useModel.showData.value=void 0,o.useModel.houseBillsData.value=[],o.useModel.collectionList.value=[],o.useModel.total_amount.value=0})),e.onLoad((async n=>{var s,r,a;o.useModel.tabsCurrent.value=0,await(null==(s=e.getCurrentInstance())?void 0:s.appContext.config.globalProperties.$onLaunched),o.useModel.formData.value.asset_houses_id=null==n?void 0:n.id,null==(r=l.method)||r.getShow(null==n?void 0:n.id),null==(a=l.method)||a.getHouseBills(1)})),(n,r)=>{var a,u,t,i,d,c;return e.e({a:e.o(null==(a=e.unref(l.method))?void 0:a.handleTabsChange),b:e.p({list:s,current:e.unref(o.useModel).tabsCurrent.value}),c:0===e.unref(o.useModel).tabsCurrent.value},0===e.unref(o.useModel).tabsCurrent.value?{d:e.f(null==(t=null==(u=e.unref(o.useModel))?void 0:u.houseBillsData)?void 0:t.value,((o,l,n)=>({a:`items_${l}`,b:"e72aaab2-4-"+n+",e72aaab2-2",c:e.p({item:o,index:l})})))}:{},{e:1===e.unref(o.useModel).tabsCurrent.value},(e.unref(o.useModel).tabsCurrent.value,{}),{f:2===e.unref(o.useModel).tabsCurrent.value},(e.unref(o.useModel).tabsCurrent.value,{}),{g:e.o(null==(i=e.unref(l.method))?void 0:i.loadMore),h:e.p({meta:null==(c=null==(d=e.unref(o.useModel))?void 0:d.metaData)?void 0:c.value}),i:e.n(`show_container_${e.unref(o.useModel).tabsCurrent.value}`)})}}});wx.createPage(i); diff --git a/dist/build/mp-weixin/BILL/outstanding_fee/show/method.js b/dist/build/mp-weixin/BILL/outstanding_fee/show/method.js index 573675c..4361fdc 100644 --- a/dist/build/mp-weixin/BILL/outstanding_fee/show/method.js +++ b/dist/build/mp-weixin/BILL/outstanding_fee/show/method.js @@ -1 +1 @@ -"use strict";const e=require("../../../common/vendor.js"),l=require("../../../common/libraries/apiLoading.js"),a=require("../../../gen/Apis.js"),o=require("./model.js"),u=require("../../../common/libraries/sendWxWork.js");require("../../../common/libraries/request.js");const t=require("../../../common/store/useWeAppAuthStore.js");require("../../../common/store/useWorkStore.js");const i=require("../../../common/libraries/naviHelper.js"),s=t.useWeAppAuthStore(),n=()=>{var e,l,a;let u=0;null==(a=null==(l=null==(e=o.useModel)?void 0:e.houseBillsData)?void 0:l.value)||a.map((e=>{var l;null==(l=null==e?void 0:e.bills)||l.map((e=>{(null==e?void 0:e.checked)&&(u+=parseFloat(e.amount||0))}))})),o.useModel.total_amount.value=parseFloat(null==u?void 0:u.toFixed(2))},d=e=>{var u,t;l.getApiLoading(a.Apis.Bill.HouseBills.List,{...null==(t=null==(u=o.useModel)?void 0:u.formData)?void 0:t.value,type:e}).then((e=>{var l;console.log(null==e?void 0:e.data,"res"),null==(l=null==e?void 0:e.data)||l.map((e=>{var l;e.checked=!0,null==(l=null==e?void 0:e.bills)||l.map((e=>{e.checked=!0}))})),o.useModel.houseBillsData.value=[...o.useModel.houseBillsData.value,...null==e?void 0:e.data],o.useModel.metaData.value=null==e?void 0:e.meta,n()}))},r=()=>{var e,u;l.getApiLoading(a.Apis.WorkOrder.HouseWorkOrders.GetHouseWorkOrders,null==(u=null==(e=o.useModel)?void 0:e.formData)?void 0:u.value).then((e=>{o.useModel.listData.value=[...o.useModel.listData.value,...null==e?void 0:e.data],o.useModel.metaData.value=null==e?void 0:e.meta}))},v=()=>{var e,l,a;let u=[];return null==(a=null==(l=null==(e=o.useModel)?void 0:e.houseBillsData)?void 0:l.value)||a.map((e=>{var l,a;(null==(l=null==e?void 0:e.bills)?void 0:l.length)&&(null==(a=null==e?void 0:e.bills)||a.map((e=>{(null==e?void 0:e.checked)&&(null==u||u.push(null==e?void 0:e.id))})))})),(null==u?void 0:u.length)?u:(i.showToast("请至少选择一个月账单!"),!1)},m=()=>{var e,u;let t=[],i=[];l.getApiLoading(a.Apis.Archive.HouseOccupants.List,null==(u=null==(e=o.useModel)?void 0:e.formData)?void 0:u.value).then((e=>{var l;null==(l=e.data)||l.map((e=>{"Owner"===(null==e?void 0:e.house_relation)?null==t||t.push(e):null==i||i.push(e)})),o.useModel.listData.value=[{label:"产权人",list:t},{label:"非产权人",list:i}]}))},p={getShow:e=>{l.getApiLoading(a.Apis.Bill.HouseBills.HouseArrearageAmount,{asset_houses_id:e}).then((e=>{o.useModel.showData.value=null==e?void 0:e.data}))},getHouseBills:d,loadMore(e){o.useModel.formData.value.page=e,0===o.useModel.tabsCurrent.value&&d(1),1===o.useModel.tabsCurrent.value&&r(),2===o.useModel.tabsCurrent.value&&m()},handleTabsChange(e){o.useModel.tabsCurrent.value=e,o.useModel.formData.value.page=1,0===e&&(o.useModel.houseBillsData.value=[],d(1)),1===e&&(o.useModel.listData.value=[],r()),2===e&&(o.useModel.listData.value=[],m())},handleQRCode(){var u,t,i,s;let n=v()||[];(null==n?void 0:n.length)&&l.getApiLoading(a.Apis.HouseOrder.HouseOrders.Store,{bill_ids:n||[],total_payable_amount:null==(t=null==(u=o.useModel)?void 0:u.total_amount)?void 0:t.value,amount:null==(s=null==(i=o.useModel)?void 0:i.total_amount)?void 0:s.value}).then((l=>{var a,u,t,i,s,n,d,r,v,m,p;e.index.navigateTo({url:`/BILL/poster/index?id=${null==(u=null==(a=o.useModel.showData)?void 0:a.value)?void 0:u.id}&order_id=${null==(t=null==l?void 0:l.data)?void 0:t.id}&time=${null==(i=null==l?void 0:l.data)?void 0:i.created_at}&name=${null==(n=null==(s=o.useModel.showData)?void 0:s.value)?void 0:n.full_name}&amount=${(null==(r=null==(d=o.useModel)?void 0:d.total_amount)?void 0:r.value)||(null==(p=null==(m=null==(v=o.useModel)?void 0:v.showData)?void 0:m.value)?void 0:p.total_pending_amount)}`})}))},handleNotice(l){let a=[{asset_houses_id:null==l?void 0:l.id,total_unpaid_amount:parseFloat(null==l?void 0:l.total_pending_amount)}];e.index.navigateTo({url:`/BILL/information_template/index?data=${JSON.stringify(a)}`})},setCalculateTotalPrice:n,handleSelectExternalContact(){var l;let a=v()||[];if(console.log(a,"bill_ids"),!(null==a?void 0:a.length))return!1;"wxwork"===(null==(l=null==s?void 0:s.data)?void 0:l.environment)?e.index.qy.getContext({success:function(e){var l,t,i;"single_chat_tools"===e.entry?u.sendChatMessage({page:`/INDEX/bill_order/index.html?bill_ids=${JSON.stringify(a)}&house_id=${o.useModel.formData.value.asset_houses_id}`,title:`分享给您${null==(i=null==(t=null==(l=o.useModel)?void 0:l.showData)?void 0:t.value)?void 0:i.full_name}物业账单`,imgUrl:"https://pay-prod-1369486729.cos.ap-guangzhou.myqcloud.com/uploads/cs-test/01K5B5RY2TQQAJ1GT2RZSK426V.jpg"}):u.navigateToMiniProgram({path:"/pages/forward/index?source=OutstandingFeeList",envVersion:"develop",extraData:{source:"OutstandingFeeList"}})}}):u.navigateToMiniProgram({path:"/pages/forward/index?source=OutstandingFeeList",envVersion:"develop",extraData:{source:"OutstandingFeeList"}})}};exports.method=p; +"use strict";const e=require("../../../common/vendor.js");require("../../../common/libraries/request.js"),require("../../../common/store/useWatermarkStore.js");const l=require("../../../common/store/useWeAppAuthStore.js");require("../../../common/store/useWorkStore.js");const a=require("../../../common/libraries/apiLoading.js"),o=require("../../../common/libraries/naviHelper.js"),u=require("../../../common/libraries/sendWxWork.js"),t=require("../../../gen/Apis.js"),i=require("./model.js"),n=l.useWeAppAuthStore(),s=()=>{var e,l,a;let o=0;null==(a=null==(l=null==(e=i.useModel)?void 0:e.houseBillsData)?void 0:l.value)||a.map((e=>{var l;null==(l=null==e?void 0:e.bills)||l.map((e=>{(null==e?void 0:e.checked)&&(o+=parseFloat(e.amount||0))}))})),i.useModel.total_amount.value=parseFloat(null==o?void 0:o.toFixed(2))},d=e=>{var l,o;a.getApiLoading(t.Apis.Bill.HouseBills.List,{...null==(o=null==(l=i.useModel)?void 0:l.formData)?void 0:o.value,type:e}).then((e=>{var l;console.log(null==e?void 0:e.data,"res"),null==(l=null==e?void 0:e.data)||l.map((e=>{var l;e.checked=!0,null==(l=null==e?void 0:e.bills)||l.map((e=>{e.checked=!0}))})),i.useModel.houseBillsData.value=[...i.useModel.houseBillsData.value,...null==e?void 0:e.data],i.useModel.metaData.value=null==e?void 0:e.meta,s()}))},r=()=>{var e,l;a.getApiLoading(t.Apis.WorkOrder.HouseWorkOrders.GetHouseWorkOrders,null==(l=null==(e=i.useModel)?void 0:e.formData)?void 0:l.value).then((e=>{i.useModel.listData.value=[...i.useModel.listData.value,...null==e?void 0:e.data],i.useModel.metaData.value=null==e?void 0:e.meta}))},v=()=>{var e,l,a;let u=[];return null==(a=null==(l=null==(e=i.useModel)?void 0:e.houseBillsData)?void 0:l.value)||a.map((e=>{var l,a;(null==(l=null==e?void 0:e.bills)?void 0:l.length)&&(null==(a=null==e?void 0:e.bills)||a.map((e=>{(null==e?void 0:e.checked)&&(null==u||u.push(null==e?void 0:e.id))})))})),(null==u?void 0:u.length)?u:(o.showToast("请至少选择一个月账单!"),!1)},m=()=>{var e,l;let o=[],u=[];a.getApiLoading(t.Apis.Archive.HouseOccupants.List,null==(l=null==(e=i.useModel)?void 0:e.formData)?void 0:l.value).then((e=>{var l;null==(l=e.data)||l.map((e=>{"Owner"===(null==e?void 0:e.house_relation)?null==o||o.push(e):null==u||u.push(e)})),i.useModel.listData.value=[{label:"产权人",list:o},{label:"非产权人",list:u}]}))},p={getShow:e=>{a.getApiLoading(t.Apis.Bill.HouseBills.HouseArrearageAmount,{asset_houses_id:e}).then((e=>{i.useModel.showData.value=null==e?void 0:e.data}))},getHouseBills:d,loadMore(e){i.useModel.formData.value.page=e,0===i.useModel.tabsCurrent.value&&d(1),1===i.useModel.tabsCurrent.value&&r(),2===i.useModel.tabsCurrent.value&&m()},handleTabsChange(e){i.useModel.tabsCurrent.value=e,i.useModel.formData.value.page=1,0===e&&(i.useModel.houseBillsData.value=[],d(1)),1===e&&(i.useModel.listData.value=[],r()),2===e&&(i.useModel.listData.value=[],m())},handleQRCode(){var l,o,u,n;let s=v()||[];(null==s?void 0:s.length)&&a.getApiLoading(t.Apis.HouseOrder.HouseOrders.Store,{bill_ids:s||[],total_payable_amount:null==(o=null==(l=i.useModel)?void 0:l.total_amount)?void 0:o.value,amount:null==(n=null==(u=i.useModel)?void 0:u.total_amount)?void 0:n.value}).then((l=>{var a,o,u,t,n,s,d,r,v,m,p;e.index.navigateTo({url:`/BILL/poster/index?id=${null==(o=null==(a=i.useModel.showData)?void 0:a.value)?void 0:o.id}&order_id=${null==(u=null==l?void 0:l.data)?void 0:u.id}&time=${null==(t=null==l?void 0:l.data)?void 0:t.created_at}&name=${null==(s=null==(n=i.useModel.showData)?void 0:n.value)?void 0:s.full_name}&amount=${(null==(r=null==(d=i.useModel)?void 0:d.total_amount)?void 0:r.value)||(null==(p=null==(m=null==(v=i.useModel)?void 0:v.showData)?void 0:m.value)?void 0:p.total_pending_amount)}`})}))},handleSetContact(e){var l,o,u;a.getApiLoading(null==(u=null==(o=null==(l=t.Apis)?void 0:l.Archive)?void 0:o.HouseOccupants)?void 0:u.ChangeContact,{house_occupants_id:null==e?void 0:e.id,is_contact:!(null==e?void 0:e.is_contact)}).then((e=>{i.useModel.listData.value=[],m()}))},handleNotice(l){let a=[{asset_houses_id:null==l?void 0:l.id,total_unpaid_amount:parseFloat(null==l?void 0:l.total_pending_amount)}];e.index.navigateTo({url:`/BILL/information_template/index?data=${JSON.stringify(a)}`})},setCalculateTotalPrice:s,handleSelectExternalContact(){var l;let a=v()||[];if(console.log(a,"bill_ids"),!(null==a?void 0:a.length))return!1;"wxwork"===(null==(l=null==n?void 0:n.data)?void 0:l.environment)?e.index.qy.getContext({success:function(e){var l,o,t;"single_chat_tools"===e.entry?u.sendChatMessage({page:`/INDEX/bill_order/index.html?bill_ids=${JSON.stringify(a)}&house_id=${i.useModel.formData.value.asset_houses_id}`,title:`分享给您${null==(t=null==(o=null==(l=i.useModel)?void 0:l.showData)?void 0:o.value)?void 0:t.full_name}物业账单`,imgUrl:"https://pay-prod-1369486729.cos.ap-guangzhou.myqcloud.com/uploads/cs-test/01K5B5RY2TQQAJ1GT2RZSK426V.jpg"}):u.navigateToMiniProgram({path:"/pages/forward/index?source=OutstandingFeeList",envVersion:"develop",extraData:{source:"OutstandingFeeList"}})}}):u.navigateToMiniProgram({path:"/pages/forward/index?source=OutstandingFeeList",envVersion:"develop",extraData:{source:"OutstandingFeeList"}})}};exports.method=p; diff --git a/dist/build/mp-weixin/BILL/poster/index.js b/dist/build/mp-weixin/BILL/poster/index.js index b34891a..4483b60 100644 --- a/dist/build/mp-weixin/BILL/poster/index.js +++ b/dist/build/mp-weixin/BILL/poster/index.js @@ -1 +1 @@ -"use strict";const e=require("../../common/vendor.js"),o=require("./method.js");require("./model.js"),require("../../gen/Apis.js"),require("../../common/libraries/request.js"),require("../../common/store/useWeAppAuthStore.js"),require("../../common/libraries/apiLoading.js"),require("../../common/store/useWorkStore.js");const r=e.defineComponent({__name:"index",setup:r=>(e.onLoad((e=>{o.method.setCanvas(e)})),(r,s)=>({a:e.o(((...r)=>e.unref(o.method).onDownloadPosters&&e.unref(o.method).onDownloadPosters(...r)))}))}),s=e._export_sfc(r,[["__scopeId","data-v-b54158fc"]]);wx.createPage(s); +"use strict";const e=require("../../common/vendor.js"),o=require("./method.js");require("./model.js"),require("../../gen/Apis.js"),require("../../common/libraries/request.js"),require("../../common/store/useWeAppAuthStore.js"),require("../../common/libraries/apiLoading.js"),require("../../common/store/useWatermarkStore.js"),require("../../common/store/useWorkStore.js");const r=e.defineComponent({__name:"index",setup:r=>(e.onLoad((e=>{o.method.setCanvas(e)})),(r,s)=>({a:e.o(((...r)=>e.unref(o.method).onDownloadPosters&&e.unref(o.method).onDownloadPosters(...r)))}))}),s=e._export_sfc(r,[["__scopeId","data-v-b54158fc"]]);wx.createPage(s); diff --git a/dist/build/mp-weixin/BILL/record/payment/index.js b/dist/build/mp-weixin/BILL/record/payment/index.js index 663f4be..88c8ede 100644 --- a/dist/build/mp-weixin/BILL/record/payment/index.js +++ b/dist/build/mp-weixin/BILL/record/payment/index.js @@ -1 +1 @@ -"use strict";const e=require("../../../common/vendor.js"),o=require("../../../gen/Enums.js"),n=require("./method.js"),l=require("./model.js");if(require("../../../common/libraries/apiLoading.js"),require("../../../gen/Apis.js"),require("../../../common/libraries/request.js"),require("../../../common/store/useWeAppAuthStore.js"),require("../../../common/store/useWorkStore.js"),!Array){(e.resolveComponent("uni-icons")+e.resolveComponent("hs-enum-tag")+e.resolveComponent("cc-scroll-loading"))()}Math||((()=>"../../../uni_modules/uni-icons/components/uni-icons/uni-icons.js")+(()=>"../../../components/hs-enum-tag/hs-enum-tag.js")+(()=>"../../../common/components/cc-scroll-loading/cc-scroll-loading.js"))();const s=e.defineComponent({__name:"index",setup(s){const u=e.ref(!1);return e.onLoad((e=>{var o;console.log(e,"e"),l.useModel.formData.value.asset_houses_id=null==e?void 0:e.asset_houses_id,null==(o=n.method)||o.getHouseBills()})),(s,i)=>{var t,r,a,m,c;return{a:e.f(null==(r=null==(t=e.unref(l.useModel))?void 0:t.listData)?void 0:r.value,((n,l,s)=>e.e({a:e.t((null==n?void 0:n.display_text)||"-"),b:e.t(null==n?void 0:n.total_paid_amount_monthly),c:"410f6c84-1-"+s+",410f6c84-0",d:e.o((e=>u.value=!u.value),`items_${l}`)},u.value?{e:e.f(null==n?void 0:n.bills,((n,u,i)=>({a:"410f6c84-2-"+s+"-"+i+",410f6c84-0",b:e.p({value:null==n?void 0:n.type,Enums:e.unref(o.HouseBillsTypeEnum)}),c:e.t(null==n?void 0:n.total_payable_amount),d:`bills_${l}_${u}`})))}:{},{f:`items_${l}`}))),b:e.p({type:"down",size:"15",color:"#666"}),c:u.value,d:e.o(null==(a=e.unref(n.method))?void 0:a.loadMore),e:e.p({meta:null==(c=null==(m=e.unref(l.useModel))?void 0:m.metaData)?void 0:c.value})}}}});wx.createPage(s); +"use strict";const e=require("../../../common/vendor.js"),o=require("../../../gen/Enums.js"),n=require("./method.js"),s=require("./model.js");if(require("../../../common/libraries/apiLoading.js"),require("../../../gen/Apis.js"),require("../../../common/libraries/request.js"),require("../../../common/store/useWeAppAuthStore.js"),require("../../../common/store/useWatermarkStore.js"),require("../../../common/store/useWorkStore.js"),!Array){(e.resolveComponent("uni-icons")+e.resolveComponent("hs-enum-tag")+e.resolveComponent("cc-scroll-loading"))()}Math||((()=>"../../../uni_modules/uni-icons/components/uni-icons/uni-icons.js")+(()=>"../../../components/hs-enum-tag/hs-enum-tag.js")+(()=>"../../../common/components/cc-scroll-loading/cc-scroll-loading.js"))();const l=e.defineComponent({__name:"index",setup(l){const u=e.ref(!1);return e.onLoad((e=>{var o;console.log(e,"e"),s.useModel.formData.value.asset_houses_id=null==e?void 0:e.asset_houses_id,null==(o=n.method)||o.getHouseBills()})),(l,r)=>{var t,i,a,m,c;return{a:e.f(null==(i=null==(t=e.unref(s.useModel))?void 0:t.listData)?void 0:i.value,((n,s,l)=>e.e({a:e.t((null==n?void 0:n.display_text)||"-"),b:e.t(null==n?void 0:n.total_paid_amount_monthly),c:"410f6c84-1-"+l+",410f6c84-0",d:e.o((e=>u.value=!u.value),`items_${s}`)},u.value?{e:e.f(null==n?void 0:n.bills,((n,u,r)=>({a:"410f6c84-2-"+l+"-"+r+",410f6c84-0",b:e.p({value:null==n?void 0:n.type,Enums:e.unref(o.HouseBillsTypeEnum)}),c:e.t(null==n?void 0:n.total_payable_amount),d:`bills_${s}_${u}`})))}:{},{f:`items_${s}`}))),b:e.p({type:"down",size:"15",color:"#666"}),c:u.value,d:e.o(null==(a=e.unref(n.method))?void 0:a.loadMore),e:e.p({meta:null==(c=null==(m=e.unref(s.useModel))?void 0:m.metaData)?void 0:c.value})}}}});wx.createPage(l); diff --git a/dist/build/mp-weixin/BILL/record/urge_payment/index.js b/dist/build/mp-weixin/BILL/record/urge_payment/index.js index e4a7c3f..ba28d37 100644 --- a/dist/build/mp-weixin/BILL/record/urge_payment/index.js +++ b/dist/build/mp-weixin/BILL/record/urge_payment/index.js @@ -1 +1 @@ -"use strict";const e=require("../../../common/vendor.js"),o=require("../../../gen/Enums.js"),l=require("./method.js"),n=require("./model.js");if(require("../../../common/libraries/apiLoading.js"),require("../../../gen/Apis.js"),require("../../../common/libraries/request.js"),require("../../../common/store/useWeAppAuthStore.js"),require("../../../common/store/useWorkStore.js"),!Array){(e.resolveComponent("hs-enum-tag")+e.resolveComponent("up-steps-item")+e.resolveComponent("up-steps")+e.resolveComponent("cc-scroll-loading")+e.resolveComponent("hs-footer"))()}Math||((()=>"../../../components/hs-enum-tag/hs-enum-tag.js")+(()=>"../../../node-modules/uview-plus/components/u-steps-item/u-steps-item.js")+(()=>"../../../node-modules/uview-plus/components/u-steps/u-steps.js")+(()=>"../../../common/components/cc-scroll-loading/cc-scroll-loading.js")+(()=>"../../../components/hs-footer/hs-footer.js"))();const t=e.defineComponent({__name:"index",setup(t){const u=()=>{var o,l,t,u,s,a;e.index.navigateTo({url:`/BILL/outstanding_fee/add/index?amount=${null==(t=null==(l=null==(o=n.useModel)?void 0:o.formData)?void 0:l.value)?void 0:t.total_pending_amount}&id=${null==(a=null==(s=null==(u=n.useModel)?void 0:u.formData)?void 0:s.value)?void 0:a.asset_houses_id}`})};return e.onShow((()=>{var e,o,t,u;(null==(t=null==(o=null==(e=n.useModel)?void 0:e.listData)?void 0:o.value)?void 0:t.length)&&(n.useModel.listData.value=[],null==(u=l.method)||u.loadMore(1))})),e.onLoad((e=>{var o;console.log(e,"e"),n.useModel.formData.value={asset_houses_id:null==e?void 0:e.asset_houses_id,total_pending_amount:null==e?void 0:e.total_pending_amount,page:1},null==(o=l.method)||o.getHouseCollectionRecords()})),e.onUnload((()=>{n.useModel.listData.value=[]})),(t,s)=>{var a,i,d,r,m,c,v,p;return{a:e.f(null==(i=null==(a=e.unref(n.useModel))?void 0:a.listData)?void 0:i.value,((l,n,t)=>{var u;return e.e({a:e.t(null==l?void 0:l.created_at),b:e.t(null==(u=null==l?void 0:l.company_employee)?void 0:u.name),c:e.t(null==l?void 0:l.total_unpaid_amount),d:null==l?void 0:l.collection_result},(null==l?void 0:l.collection_result)?{e:"30ebd59a-3-"+t+",30ebd59a-2-"+t,f:e.p({value:null==l?void 0:l.collection_result,Enums:e.unref(o.HouseCollectionRecordsCollectionResultEnum)}),g:e.n(`tag_${null==l?void 0:l.collection_result}`)}:{},{h:"30ebd59a-4-"+t+",30ebd59a-2-"+t,i:e.p({value:null==l?void 0:l.channel,Enums:e.unref(o.HouseCollectionTasksChannelEnum)}),j:null==l?void 0:l.collection_content},(null==l?void 0:l.collection_content)?{k:e.t(null==l?void 0:l.collection_content)}:{},{l:`pay_item_${n}`,m:"30ebd59a-2-"+t+",30ebd59a-1"})})),b:e.p({direction:"column",dot:!0,current:(null==(m=null==(r=null==(d=e.unref(n.useModel))?void 0:d.listData)?void 0:r.value)?void 0:m.length)-1}),c:e.o(null==(c=e.unref(l.method))?void 0:c.loadMore),d:e.p({meta:null==(p=null==(v=e.unref(n.useModel))?void 0:v.metaData)?void 0:p.value}),e:e.o(u),f:e.p({btnParimaryName:"新增催缴记录"})}}}});wx.createPage(t); +"use strict";const e=require("../../../common/vendor.js"),o=require("../../../gen/Enums.js"),l=require("./method.js"),n=require("./model.js");if(require("../../../common/libraries/apiLoading.js"),require("../../../gen/Apis.js"),require("../../../common/libraries/request.js"),require("../../../common/store/useWeAppAuthStore.js"),require("../../../common/store/useWatermarkStore.js"),require("../../../common/store/useWorkStore.js"),!Array){(e.resolveComponent("hs-enum-tag")+e.resolveComponent("up-steps-item")+e.resolveComponent("up-steps")+e.resolveComponent("cc-scroll-loading")+e.resolveComponent("hs-footer"))()}Math||((()=>"../../../components/hs-enum-tag/hs-enum-tag.js")+(()=>"../../../node-modules/uview-plus/components/u-steps-item/u-steps-item.js")+(()=>"../../../node-modules/uview-plus/components/u-steps/u-steps.js")+(()=>"../../../common/components/cc-scroll-loading/cc-scroll-loading.js")+(()=>"../../../components/hs-footer/hs-footer.js"))();const t=e.defineComponent({__name:"index",setup(t){const u=()=>{var o,l,t,u,s,a;e.index.navigateTo({url:`/BILL/outstanding_fee/add/index?amount=${null==(t=null==(l=null==(o=n.useModel)?void 0:o.formData)?void 0:l.value)?void 0:t.total_pending_amount}&id=${null==(a=null==(s=null==(u=n.useModel)?void 0:u.formData)?void 0:s.value)?void 0:a.asset_houses_id}`})};return e.onShow((()=>{var e,o,t,u;(null==(t=null==(o=null==(e=n.useModel)?void 0:e.listData)?void 0:o.value)?void 0:t.length)&&(n.useModel.listData.value=[],null==(u=l.method)||u.loadMore(1))})),e.onLoad((e=>{var o;console.log(e,"e"),n.useModel.formData.value={asset_houses_id:null==e?void 0:e.asset_houses_id,total_pending_amount:null==e?void 0:e.total_pending_amount,page:1},null==(o=l.method)||o.getHouseCollectionRecords()})),e.onUnload((()=>{n.useModel.listData.value=[]})),(t,s)=>{var a,i,d,r,m,c,v,p;return{a:e.f(null==(i=null==(a=e.unref(n.useModel))?void 0:a.listData)?void 0:i.value,((l,n,t)=>{var u;return e.e({a:e.t(null==l?void 0:l.created_at),b:e.t(null==(u=null==l?void 0:l.company_employee)?void 0:u.name),c:e.t(null==l?void 0:l.total_unpaid_amount),d:null==l?void 0:l.collection_result},(null==l?void 0:l.collection_result)?{e:"30ebd59a-3-"+t+",30ebd59a-2-"+t,f:e.p({value:null==l?void 0:l.collection_result,Enums:e.unref(o.HouseCollectionRecordsCollectionResultEnum)}),g:e.n(`tag_${null==l?void 0:l.collection_result}`)}:{},{h:"30ebd59a-4-"+t+",30ebd59a-2-"+t,i:e.p({value:null==l?void 0:l.channel,Enums:e.unref(o.HouseCollectionTasksChannelEnum)}),j:null==l?void 0:l.collection_content},(null==l?void 0:l.collection_content)?{k:e.t(null==l?void 0:l.collection_content)}:{},{l:`pay_item_${n}`,m:"30ebd59a-2-"+t+",30ebd59a-1"})})),b:e.p({direction:"column",dot:!0,current:(null==(m=null==(r=null==(d=e.unref(n.useModel))?void 0:d.listData)?void 0:r.value)?void 0:m.length)-1}),c:e.o(null==(c=e.unref(l.method))?void 0:c.loadMore),d:e.p({meta:null==(p=null==(v=e.unref(n.useModel))?void 0:v.metaData)?void 0:p.value}),e:e.o(u),f:e.p({btnParimaryName:"新增催缴记录"})}}}});wx.createPage(t); diff --git a/dist/build/mp-weixin/BILL/send_bill/components/pickerSelectHouse.js b/dist/build/mp-weixin/BILL/send_bill/components/pickerSelectHouse.js index 32d7362..d28fd24 100644 --- a/dist/build/mp-weixin/BILL/send_bill/components/pickerSelectHouse.js +++ b/dist/build/mp-weixin/BILL/send_bill/components/pickerSelectHouse.js @@ -1 +1 @@ -"use strict";const e=require("../../../common/vendor.js"),r=require("../method.js"),o=require("../model.js");if(require("../../../common/libraries/naviHelper.js"),require("../../../gen/Apis.js"),require("../../../common/libraries/request.js"),require("../../../common/store/useWeAppAuthStore.js"),require("../../../common/libraries/apiLoading.js"),require("../../../common/store/useWorkStore.js"),require("../../../common/libraries/userUserLogin.js"),require("../../../common/libraries/sendWxWork.js"),!Array){e.resolveComponent("uni-icons")()}Math;const n=e.defineComponent({__name:"pickerSelectHouse",props:["data"],setup(n){const i=n;return(n,s)=>{var u,t,l,a;return{a:e.t((null==(l=null==(t=null==(u=e.unref(o.useModel))?void 0:u.currentHouses)?void 0:t.value)?void 0:l.name)||""),b:e.p({type:"right",size:"12"}),c:null==(a=null==i?void 0:i.data)?void 0:a.houseList,d:e.o(((...o)=>{var n,i;return(null==(n=e.unref(r.method))?void 0:n.handleChange)&&(null==(i=e.unref(r.method))?void 0:i.handleChange(...o))}))}}}});wx.createComponent(n); +"use strict";const e=require("../../../common/vendor.js"),r=require("../method.js"),o=require("../model.js");if(require("../../../common/libraries/naviHelper.js"),require("../../../gen/Apis.js"),require("../../../common/libraries/request.js"),require("../../../common/store/useWeAppAuthStore.js"),require("../../../common/libraries/apiLoading.js"),require("../../../common/store/useWatermarkStore.js"),require("../../../common/store/useWorkStore.js"),require("../../../common/libraries/userUserLogin.js"),require("../../../common/libraries/sendWxWork.js"),!Array){e.resolveComponent("uni-icons")()}Math;const n=e.defineComponent({__name:"pickerSelectHouse",props:["data"],setup(n){const s=n;return(n,i)=>{var u,t,m,a;return{a:e.t((null==(m=null==(t=null==(u=e.unref(o.useModel))?void 0:u.currentHouses)?void 0:t.value)?void 0:m.name)||""),b:e.p({type:"right",size:"12"}),c:null==(a=null==s?void 0:s.data)?void 0:a.houseList,d:e.o(((...o)=>{var n,s;return(null==(n=e.unref(r.method))?void 0:n.handleChange)&&(null==(s=e.unref(r.method))?void 0:s.handleChange(...o))}))}}}});wx.createComponent(n); diff --git a/dist/build/mp-weixin/BILL/send_bill/index.js b/dist/build/mp-weixin/BILL/send_bill/index.js index 8f065a2..fe8aec4 100644 --- a/dist/build/mp-weixin/BILL/send_bill/index.js +++ b/dist/build/mp-weixin/BILL/send_bill/index.js @@ -1 +1 @@ -"use strict";const e=require("../../common/vendor.js"),o=require("../../gen/Enums.js"),l=require("../../common/libraries/userUserLogin.js"),n=require("./model.js"),i=require("./method.js");if(require("../../common/libraries/request.js"),require("../../common/store/useWeAppAuthStore.js"),require("../../gen/Apis.js"),require("../../common/store/useWorkStore.js"),require("../../common/libraries/apiLoading.js"),require("../../common/libraries/naviHelper.js"),require("../../common/libraries/sendWxWork.js"),!Array){(e.resolveComponent("hs-empty")+e.resolveComponent("uni-icons")+e.resolveComponent("hs-enum-tag")+e.resolveComponent("hs-footer"))()}Math||(u+(()=>"../../components/hs-empty/hs-empty.js")+(()=>"../../uni_modules/uni-icons/components/uni-icons/uni-icons.js")+(()=>"../../components/hs-enum-tag/hs-enum-tag.js")+(()=>"../../components/hs-footer/hs-footer.js"))();const u=()=>"./components/pickerSelectHouse.js",s=e.defineComponent({__name:"index",setup:u=>(e.onShow((async()=>{var o,u;await(null==(o=e.getCurrentInstance())?void 0:o.appContext.config.globalProperties.$onLaunched),n.useModel.listData.value=[],n.useModel.showData.value={},n.useModel.currentHouses.value={id:"",name:""},(null==(u=l.getUser)?void 0:u.onBindPhone())&&e.index.qy.getCurExternalContact({success:function(e){var o;n.useModel.formData.value.external_userid=null==e?void 0:e.userId,null==(o=i.method)||o.getList()},fail:function(e){var o;null==(o=i.method)||o.getList()}})})),e.onUnload((()=>{n.useModel.currentHouses.value={id:"",name:""}})),(l,u)=>{var s,t,r,a,d,m,v,c,h,p,f,g,j,y,S,b,_,q,w,M;return e.e({a:null==(a=null==(r=null==(t=null==(s=e.unref(n.useModel))?void 0:s.showData)?void 0:t.value)?void 0:r.houseList)?void 0:a.length},(null==(c=null==(v=null==(m=null==(d=e.unref(n.useModel))?void 0:d.showData)?void 0:m.value)?void 0:v.houseList)?void 0:c.length)?{b:e.p({data:null==(p=null==(h=e.unref(n.useModel))?void 0:h.showData)?void 0:p.value})}:{},{c:!(null==(j=null==(g=null==(f=e.unref(n.useModel))?void 0:f.listData)?void 0:g.value)?void 0:j.length)},(null==(b=null==(S=null==(y=e.unref(n.useModel))?void 0:y.listData)?void 0:S.value)||b.length,{}),{d:e.f(null==(q=null==(_=e.unref(n.useModel))?void 0:_.listData)?void 0:q.value,((l,n,u)=>e.e({a:null==l?void 0:l.isSelect},(null==l?void 0:l.isSelect)?{b:"68f75638-2-"+u,c:e.p({type:"checkbox-filled",size:"18",color:"#0082FA"})}:{d:"68f75638-3-"+u,e:e.p({type:"circle",size:"18",color:"#666"})},{f:e.t(null==l?void 0:l.display_text),g:e.o((o=>{var l;return null==(l=e.unref(i.method))?void 0:l.handleSelect(n)}),`items_${n}`),h:e.t(null==l?void 0:l.display_amount),i:"68f75638-4-"+u,j:e.p({type:(null==l?void 0:l.isShow)?"down":"right",color:"#999999",size:"14"}),k:e.o((e=>l.isShow=!l.isShow),`items_${n}`),l:null==l?void 0:l.isShow},(null==l?void 0:l.isShow)?{m:e.f(null==l?void 0:l.bills,((l,s,t)=>e.e({a:null==l?void 0:l.isSelect},(null==l?void 0:l.isSelect)?{b:"68f75638-5-"+u+"-"+t,c:e.p({type:"checkbox-filled",size:"18",color:"#0082FA"})}:{d:"68f75638-6-"+u+"-"+t,e:e.p({type:"circle",size:"18",color:"#666"})},{f:"68f75638-7-"+u+"-"+t,g:e.p({Enums:e.unref(o.HouseBillsTypeEnum),value:null==l?void 0:l.type}),h:e.t(null==l?void 0:l.amount),i:`item_f_${n}_${s}`,j:e.o((o=>{var u;return null==(u=e.unref(i.method))?void 0:u.handleFindSelect(l,n,s)}),`item_f_${n}_${s}`)})))}:{},{n:`items_${n}`}))),e:e.o(null==(w=e.unref(i.method))?void 0:w.handleParmaryClick),f:e.o(null==(M=e.unref(i.method))?void 0:M.handleQRCode),g:e.p({btnParimaryName:"分享账单",btnOtherName:"二维码收款",btnOtherShow:!0})})})});wx.createPage(s); +"use strict";const e=require("../../common/vendor.js"),o=require("../../gen/Enums.js"),l=require("../../common/libraries/userUserLogin.js"),n=require("./model.js"),i=require("./method.js");if(require("../../common/libraries/request.js"),require("../../common/store/useWeAppAuthStore.js"),require("../../gen/Apis.js"),require("../../common/store/useWatermarkStore.js"),require("../../common/store/useWorkStore.js"),require("../../common/libraries/apiLoading.js"),require("../../common/libraries/naviHelper.js"),require("../../common/libraries/sendWxWork.js"),!Array){(e.resolveComponent("hs-empty")+e.resolveComponent("uni-icons")+e.resolveComponent("hs-enum-tag")+e.resolveComponent("hs-footer"))()}Math||(u+(()=>"../../components/hs-empty/hs-empty.js")+(()=>"../../uni_modules/uni-icons/components/uni-icons/uni-icons.js")+(()=>"../../components/hs-enum-tag/hs-enum-tag.js")+(()=>"../../components/hs-footer/hs-footer.js"))();const u=()=>"./components/pickerSelectHouse.js",s=e.defineComponent({__name:"index",setup:u=>(e.onShow((async()=>{var o,u;await(null==(o=e.getCurrentInstance())?void 0:o.appContext.config.globalProperties.$onLaunched),n.useModel.listData.value=[],n.useModel.showData.value={},n.useModel.currentHouses.value={id:"",name:""},(null==(u=l.getUser)?void 0:u.onBindPhone())&&e.index.qy.getCurExternalContact({success:function(e){var o;n.useModel.formData.value.external_userid=null==e?void 0:e.userId,null==(o=i.method)||o.getList()},fail:function(e){var o;null==(o=i.method)||o.getList()}})})),e.onUnload((()=>{n.useModel.currentHouses.value={id:"",name:""}})),(l,u)=>{var s,t,r,a,d,m,v,c,h,p,f,g,j,y,S,b,q,_,w,M;return e.e({a:null==(a=null==(r=null==(t=null==(s=e.unref(n.useModel))?void 0:s.showData)?void 0:t.value)?void 0:r.houseList)?void 0:a.length},(null==(c=null==(v=null==(m=null==(d=e.unref(n.useModel))?void 0:d.showData)?void 0:m.value)?void 0:v.houseList)?void 0:c.length)?{b:e.p({data:null==(p=null==(h=e.unref(n.useModel))?void 0:h.showData)?void 0:p.value})}:{},{c:!(null==(j=null==(g=null==(f=e.unref(n.useModel))?void 0:f.listData)?void 0:g.value)?void 0:j.length)},(null==(b=null==(S=null==(y=e.unref(n.useModel))?void 0:y.listData)?void 0:S.value)||b.length,{}),{d:e.f(null==(_=null==(q=e.unref(n.useModel))?void 0:q.listData)?void 0:_.value,((l,n,u)=>e.e({a:null==l?void 0:l.isSelect},(null==l?void 0:l.isSelect)?{b:"68f75638-2-"+u,c:e.p({type:"checkbox-filled",size:"18",color:"#0082FA"})}:{d:"68f75638-3-"+u,e:e.p({type:"circle",size:"18",color:"#666"})},{f:e.t(null==l?void 0:l.display_text),g:e.o((o=>{var l;return null==(l=e.unref(i.method))?void 0:l.handleSelect(n)}),`items_${n}`),h:e.t(null==l?void 0:l.display_amount),i:"68f75638-4-"+u,j:e.p({type:(null==l?void 0:l.isShow)?"down":"right",color:"#999999",size:"14"}),k:e.o((e=>l.isShow=!l.isShow),`items_${n}`),l:null==l?void 0:l.isShow},(null==l?void 0:l.isShow)?{m:e.f(null==l?void 0:l.bills,((l,s,t)=>e.e({a:null==l?void 0:l.isSelect},(null==l?void 0:l.isSelect)?{b:"68f75638-5-"+u+"-"+t,c:e.p({type:"checkbox-filled",size:"18",color:"#0082FA"})}:{d:"68f75638-6-"+u+"-"+t,e:e.p({type:"circle",size:"18",color:"#666"})},{f:"68f75638-7-"+u+"-"+t,g:e.p({Enums:e.unref(o.HouseBillsTypeEnum),value:null==l?void 0:l.type}),h:e.t(null==l?void 0:l.amount),i:`item_f_${n}_${s}`,j:e.o((o=>{var u;return null==(u=e.unref(i.method))?void 0:u.handleFindSelect(l,n,s)}),`item_f_${n}_${s}`)})))}:{},{n:`items_${n}`}))),e:e.o(null==(w=e.unref(i.method))?void 0:w.handleParmaryClick),f:e.o(null==(M=e.unref(i.method))?void 0:M.handleQRCode),g:e.p({btnParimaryName:"分享账单",btnOtherName:"二维码收款",btnOtherShow:!0})})})});wx.createPage(s); diff --git a/dist/build/mp-weixin/CUSTOMER/assets/index.js b/dist/build/mp-weixin/CUSTOMER/assets/index.js index 778de03..8c1c733 100644 --- a/dist/build/mp-weixin/CUSTOMER/assets/index.js +++ b/dist/build/mp-weixin/CUSTOMER/assets/index.js @@ -1 +1 @@ -"use strict";const e=require("../../common/vendor.js"),n=require("../../gen/Enums.js"),o=require("./method.js"),i=require("./model.js");if(require("../../gen/Apis.js"),require("../../common/libraries/request.js"),require("../../common/store/useWeAppAuthStore.js"),require("../../common/libraries/apiLoading.js"),require("../../common/store/useWorkStore.js"),!Array){(e.resolveComponent("uni-icons")+e.resolveComponent("hs-enum-tag"))()}Math||((()=>"../../uni_modules/uni-icons/components/uni-icons/uni-icons.js")+(()=>"../../components/hs-enum-tag/hs-enum-tag.js"))();const u=e.defineComponent({__name:"index",setup:u=>(e.onLoad((e=>{var n;i.useModel.formData.value=e,null==(n=o.method)||n.getUserHoueInfo(null==e?void 0:e.phone),console.log(e)})),(u,l)=>{var s,r;return{a:e.f(null==(r=null==(s=e.unref(i.useModel))?void 0:s.userHouse)?void 0:r.value,((i,u,l)=>{var s,r,t,a;return e.e({a:e.t(null==(s=null==i?void 0:i.asset_project)?void 0:s.name),b:e.t(null==(r=null==i?void 0:i.asset_building)?void 0:r.name),c:e.t(null==(t=null==i?void 0:i.asset_unit)?void 0:t.name),d:e.t(null==(a=null==i?void 0:i.asset_house)?void 0:a.name),e:"40156cf0-0-"+l,f:e.o((n=>{return o=`/BILL/outstanding_fee/show/index?id=${null==i?void 0:i.asset_houses_id}`,void e.index.navigateTo({url:o});var o}),`item_${u}`),g:"Owner"===(null==i?void 0:i.house_relation)},(null==i||i.house_relation,{}),{h:null==i?void 0:i.is_contact},(null==i||i.is_contact,{}),{i:null==i?void 0:i.residential_relation},(null==i?void 0:i.residential_relation)?{j:"40156cf0-1-"+l,k:e.p({Enums:e.unref(n.HouseOccupantsResidentialRelationEnum),value:null==i?void 0:i.residential_relation})}:{},{l:"Owner"!==(null==i?void 0:i.house_relation)},"Owner"!==(null==i?void 0:i.house_relation)?{m:e.o((n=>e.unref(o.method).handleUnbind(i)),`item_${u}`)}:{},{n:`item_${u}`})})),b:e.p({type:"right",size:"13",color:"#999"}),c:e.p({type:"plus",size:"20"}),d:e.o(((...n)=>{var i,u;return(null==(i=e.unref(o.method))?void 0:i.handleBindHouse)&&(null==(u=e.unref(o.method))?void 0:u.handleBindHouse(...n))}))}})});wx.createPage(u); +"use strict";const e=require("../../common/vendor.js"),n=require("../../gen/Enums.js"),o=require("./method.js"),i=require("./model.js");if(require("../../gen/Apis.js"),require("../../common/libraries/request.js"),require("../../common/store/useWeAppAuthStore.js"),require("../../common/libraries/apiLoading.js"),require("../../common/store/useWatermarkStore.js"),require("../../common/store/useWorkStore.js"),!Array){(e.resolveComponent("uni-icons")+e.resolveComponent("hs-enum-tag"))()}Math||((()=>"../../uni_modules/uni-icons/components/uni-icons/uni-icons.js")+(()=>"../../components/hs-enum-tag/hs-enum-tag.js"))();const u=e.defineComponent({__name:"index",setup:u=>(e.onLoad((e=>{var n;i.useModel.formData.value=e,null==(n=o.method)||n.getUserHoueInfo(null==e?void 0:e.phone),console.log(e)})),(u,l)=>{var r,s;return{a:e.f(null==(s=null==(r=e.unref(i.useModel))?void 0:r.userHouse)?void 0:s.value,((i,u,l)=>{var r,s,t,a;return e.e({a:e.t(null==(r=null==i?void 0:i.asset_project)?void 0:r.name),b:e.t(null==(s=null==i?void 0:i.asset_building)?void 0:s.name),c:e.t(null==(t=null==i?void 0:i.asset_unit)?void 0:t.name),d:e.t(null==(a=null==i?void 0:i.asset_house)?void 0:a.name),e:"40156cf0-0-"+l,f:e.o((n=>{return o=`/BILL/outstanding_fee/show/index?id=${null==i?void 0:i.asset_houses_id}`,void e.index.navigateTo({url:o});var o}),`item_${u}`),g:"Owner"===(null==i?void 0:i.house_relation)},(null==i||i.house_relation,{}),{h:null==i?void 0:i.is_contact},(null==i||i.is_contact,{}),{i:null==i?void 0:i.residential_relation},(null==i?void 0:i.residential_relation)?{j:"40156cf0-1-"+l,k:e.p({Enums:e.unref(n.HouseOccupantsResidentialRelationEnum),value:null==i?void 0:i.residential_relation})}:{},{l:"Owner"!==(null==i?void 0:i.house_relation)},"Owner"!==(null==i?void 0:i.house_relation)?{m:e.o((n=>e.unref(o.method).handleUnbind(i)),`item_${u}`)}:{},{n:`item_${u}`})})),b:e.p({type:"right",size:"13",color:"#999"}),c:e.p({type:"plus",size:"20"}),d:e.o(((...n)=>{var i,u;return(null==(i=e.unref(o.method))?void 0:i.handleBindHouse)&&(null==(u=e.unref(o.method))?void 0:u.handleBindHouse(...n))}))}})});wx.createPage(u); diff --git a/dist/build/mp-weixin/CUSTOMER/bind_house/index.js b/dist/build/mp-weixin/CUSTOMER/bind_house/index.js index 8c11c49..3d909ba 100644 --- a/dist/build/mp-weixin/CUSTOMER/bind_house/index.js +++ b/dist/build/mp-weixin/CUSTOMER/bind_house/index.js @@ -1 +1 @@ -"use strict";const e=require("../../common/vendor.js"),o=require("./method.js"),n=require("./model.js"),l=require("../../gen/Enums.js");require("../../common/libraries/request.js");const u=require("../../common/store/useWeAppAuthStore.js");if(require("../../common/store/useWorkStore.js"),require("../../common/libraries/naviHelper.js"),require("../../gen/Apis.js"),require("../../common/libraries/apiLoading.js"),require("../../common/libraries/userUserLogin.js"),require("../../common/libraries/sendWxWork.js"),!Array){(e.resolveComponent("hs-input")+e.resolveComponent("hs-cell")+e.resolveComponent("hs-footer")+e.resolveComponent("hs-empty")+e.resolveComponent("hs-enum-tag")+e.resolveComponent("uni-icons"))()}Math||((()=>"../../components/hs-input/hs-input.js")+(()=>"../../components/hs-cell/hs-cell.js")+(()=>"../../components/hs-footer/hs-footer.js")+(()=>"../../components/hs-empty/hs-empty.js")+(()=>"../../components/hs-enum-tag/hs-enum-tag.js")+(()=>"../../uni_modules/uni-icons/components/uni-icons/uni-icons.js"))();const r=e.defineComponent({__name:"index",setup(r){const s=u.useWeAppAuthStore();return e.onLoad((async l=>{var u,r,i;await(null==(u=e.getCurrentInstance())?void 0:u.appContext.config.globalProperties.$onLaunched),(null==l?void 0:l.phone)&&(n.useModel.bindPhone.value=!0,n.useModel.formData.value=l,null==(r=o.method)||r.nextStep("phone")),"wxwork"===(null==(i=null==s?void 0:s.data)?void 0:i.environment)&&e.index.qy.getCurExternalContact({success:function(e){n.useModel.formData.value.external_userid=null==e?void 0:e.userId,console.log("开始2",e)}})})),e.onUnload((()=>{n.useModel.bindHouseSelectPage.value=!1,n.useModel.bindHouseFormPage.value=!0,n.useModel.formData.value={}})),(u,r)=>{var s,i,t,a,d,m,v,c,p,h,f,b,g,j,M,q,x,_,C,H,P,S;return e.e({a:null==(i=null==(s=e.unref(n.useModel))?void 0:s.bindHouseFormPage)?void 0:i.value},(null==(a=null==(t=e.unref(n.useModel))?void 0:t.bindHouseFormPage)?void 0:a.value)?{b:e.o((o=>e.unref(n.useModel).formData.value.name=o)),c:e.p({textAlign:"right",valueModel:e.unref(n.useModel).formData.value.name}),d:e.p({title:"客户姓名",required:!0,borderTop:!0}),e:e.o((o=>e.unref(n.useModel).formData.value.phone=o)),f:e.p({maxLength:"11",type:"number",textAlign:"right",valueModel:e.unref(n.useModel).formData.value.phone}),g:e.p({title:"手机号",required:!0,borderTop:!0}),h:e.o(null==(d=e.unref(o.method))?void 0:d.nextStep),i:e.o(null==(m=e.unref(o.method))?void 0:m.handleInviteCustomer),j:e.p({btnParimaryName:"下一步",btnOtherName:"邀请客户绑定",btnOtherShow:!0})}:{},{k:null==(c=null==(v=e.unref(n.useModel))?void 0:v.bindHouseSelectPage)?void 0:c.value},(null==(h=null==(p=e.unref(n.useModel))?void 0:p.bindHouseSelectPage)?void 0:h.value)?e.e({l:!(null==(g=null==(b=null==(f=e.unref(n.useModel))?void 0:f.listData)?void 0:b.value)?void 0:g.length)},(null==(q=null==(M=null==(j=e.unref(n.useModel))?void 0:j.listData)?void 0:M.value)||q.length,{}),{m:e.f(null==(_=null==(x=e.unref(n.useModel))?void 0:x.listData)?void 0:_.value,((n,u,r)=>{var s,i,t,a;return e.e({a:e.t(null==(s=null==n?void 0:n.asset_project)?void 0:s.name),b:e.t(null==(i=null==n?void 0:n.asset_building)?void 0:i.name),c:e.t(null==(t=null==n?void 0:n.asset_unit)?void 0:t.name),d:e.t(null==(a=null==n?void 0:n.asset_house)?void 0:a.name),e:"d9cb103a-6-"+r,f:e.p({value:null==n?void 0:n.house_relation,size:"md",Enums:e.unref(l.HouseOccupantsHouseRelationEnum)}),g:null==n?void 0:n.residential_relation},(null==n?void 0:n.residential_relation)?{h:"d9cb103a-7-"+r,i:e.p({value:null==n?void 0:n.residential_relation,size:"md",Enums:e.unref(l.HouseOccupantsResidentialRelationEnum)})}:{},{j:null==n?void 0:n.isSelect},(null==n?void 0:n.isSelect)?{k:"d9cb103a-8-"+r,l:e.p({type:"checkbox-filled",size:"18",color:"#0082FA"})}:{m:"d9cb103a-9-"+r,n:e.p({type:"circle",size:"18",color:"#666"})},{o:`house_${u}`,p:e.o((l=>{var r;return null==(r=e.unref(o.method))?void 0:r.selectHouse(n,u)}),`house_${u}`)})})),n:e.o(null==(C=e.unref(o.method))?void 0:C.handleBindHouse),o:e.o(null==(H=e.unref(o.method))?void 0:H.handleBack),p:e.p({btnParimaryName:"绑定房屋",btnOtherShow:!0,btnOtherName:(null==(S=null==(P=e.unref(n.useModel))?void 0:P.bindPhone)?void 0:S.value)?"绑定其他房屋":"上一步"})}):{})}}});wx.createPage(r); +"use strict";const e=require("../../common/vendor.js");require("../../common/libraries/request.js"),require("../../common/store/useWatermarkStore.js");const o=require("../../common/store/useWeAppAuthStore.js");require("../../common/store/useWorkStore.js");const n=require("../../gen/Enums.js"),l=require("./method.js"),u=require("./model.js");if(require("../../gen/Apis.js"),require("../../common/libraries/apiLoading.js"),require("../../common/libraries/naviHelper.js"),require("../../common/libraries/sendWxWork.js"),require("../../common/libraries/userUserLogin.js"),!Array){(e.resolveComponent("hs-input")+e.resolveComponent("hs-cell")+e.resolveComponent("hs-footer")+e.resolveComponent("hs-empty")+e.resolveComponent("hs-enum-tag")+e.resolveComponent("uni-icons"))()}Math||((()=>"../../components/hs-input/hs-input.js")+(()=>"../../components/hs-cell/hs-cell.js")+(()=>"../../components/hs-footer/hs-footer.js")+(()=>"../../components/hs-empty/hs-empty.js")+(()=>"../../components/hs-enum-tag/hs-enum-tag.js")+(()=>"../../uni_modules/uni-icons/components/uni-icons/uni-icons.js"))();const r=e.defineComponent({__name:"index",setup(r){const s=o.useWeAppAuthStore();return e.onLoad((async o=>{var n,r,t;await(null==(n=e.getCurrentInstance())?void 0:n.appContext.config.globalProperties.$onLaunched),(null==o?void 0:o.phone)&&(u.useModel.bindPhone.value=!0,u.useModel.formData.value=o,null==(r=l.method)||r.nextStep("phone")),"wxwork"===(null==(t=null==s?void 0:s.data)?void 0:t.environment)&&e.index.qy.getCurExternalContact({success:function(e){u.useModel.formData.value.external_userid=null==e?void 0:e.userId,console.log("开始2",e)}})})),e.onUnload((()=>{u.useModel.bindHouseSelectPage.value=!1,u.useModel.bindHouseFormPage.value=!0,u.useModel.formData.value={}})),(o,r)=>{var s,t,i,a,d,m,v,c,p,h,f,b,g,j,M,q,x,_,S,C,H,P;return e.e({a:null==(t=null==(s=e.unref(u.useModel))?void 0:s.bindHouseFormPage)?void 0:t.value},(null==(a=null==(i=e.unref(u.useModel))?void 0:i.bindHouseFormPage)?void 0:a.value)?{b:e.o((o=>e.unref(u.useModel).formData.value.name=o)),c:e.p({textAlign:"right",valueModel:e.unref(u.useModel).formData.value.name}),d:e.p({title:"客户姓名",required:!0,borderTop:!0}),e:e.o((o=>e.unref(u.useModel).formData.value.phone=o)),f:e.p({maxLength:"11",type:"number",textAlign:"right",valueModel:e.unref(u.useModel).formData.value.phone}),g:e.p({title:"手机号",required:!0,borderTop:!0}),h:e.o(null==(d=e.unref(l.method))?void 0:d.nextStep),i:e.o(null==(m=e.unref(l.method))?void 0:m.handleInviteCustomer),j:e.p({btnParimaryName:"下一步",btnOtherName:"邀请客户绑定",btnOtherShow:!0})}:{},{k:null==(c=null==(v=e.unref(u.useModel))?void 0:v.bindHouseSelectPage)?void 0:c.value},(null==(h=null==(p=e.unref(u.useModel))?void 0:p.bindHouseSelectPage)?void 0:h.value)?e.e({l:!(null==(g=null==(b=null==(f=e.unref(u.useModel))?void 0:f.listData)?void 0:b.value)?void 0:g.length)},(null==(q=null==(M=null==(j=e.unref(u.useModel))?void 0:j.listData)?void 0:M.value)||q.length,{}),{m:e.f(null==(_=null==(x=e.unref(u.useModel))?void 0:x.listData)?void 0:_.value,((o,u,r)=>{var s,t,i,a;return e.e({a:e.t(null==(s=null==o?void 0:o.asset_project)?void 0:s.name),b:e.t(null==(t=null==o?void 0:o.asset_building)?void 0:t.name),c:e.t(null==(i=null==o?void 0:o.asset_unit)?void 0:i.name),d:e.t(null==(a=null==o?void 0:o.asset_house)?void 0:a.name),e:"d9cb103a-6-"+r,f:e.p({value:null==o?void 0:o.house_relation,size:"md",Enums:e.unref(n.HouseOccupantsHouseRelationEnum)}),g:null==o?void 0:o.residential_relation},(null==o?void 0:o.residential_relation)?{h:"d9cb103a-7-"+r,i:e.p({value:null==o?void 0:o.residential_relation,size:"md",Enums:e.unref(n.HouseOccupantsResidentialRelationEnum)})}:{},{j:null==o?void 0:o.isSelect},(null==o?void 0:o.isSelect)?{k:"d9cb103a-8-"+r,l:e.p({type:"checkbox-filled",size:"18",color:"#0082FA"})}:{m:"d9cb103a-9-"+r,n:e.p({type:"circle",size:"18",color:"#666"})},{o:`house_${u}`,p:e.o((n=>{var r;return null==(r=e.unref(l.method))?void 0:r.selectHouse(o,u)}),`house_${u}`)})})),n:e.o(null==(S=e.unref(l.method))?void 0:S.handleBindHouse),o:e.o(null==(C=e.unref(l.method))?void 0:C.handleBack),p:e.p({btnParimaryName:"绑定房屋",btnOtherShow:!0,btnOtherName:(null==(P=null==(H=e.unref(u.useModel))?void 0:H.bindPhone)?void 0:P.value)?"绑定其他房屋":"上一步"})}):{})}}});wx.createPage(r); diff --git a/dist/build/mp-weixin/CUSTOMER/bind_house/method.js b/dist/build/mp-weixin/CUSTOMER/bind_house/method.js index 15c1c7c..aa14285 100644 --- a/dist/build/mp-weixin/CUSTOMER/bind_house/method.js +++ b/dist/build/mp-weixin/CUSTOMER/bind_house/method.js @@ -1 +1 @@ -"use strict";const e=require("../../common/vendor.js"),o=require("./model.js"),l=require("../../common/libraries/naviHelper.js"),i=require("../../gen/Apis.js"),n=require("../../common/libraries/apiLoading.js"),s=require("../../common/libraries/userUserLogin.js"),u=require("../../common/libraries/sendWxWork.js");require("../../common/libraries/request.js");const a=require("../../common/store/useWeAppAuthStore.js");require("../../common/store/useWorkStore.js");const r=a.useWeAppAuthStore(),t={nextStep(u){var a,r,t;let d=null==(r=null==(a=o.useModel)?void 0:a.formData)?void 0:r.value;if(!(null==(t=s.getUser)?void 0:t.toPageLogin()))return(null==d?void 0:d.phone)&&(null==d?void 0:d.name)?void n.getApiLoading(i.Apis.Archive.HouseOccupants.GetCustomerHouse,{phone:null==d?void 0:d.phone}).then((l=>{var i;(null==(i=null==l?void 0:l.data)?void 0:i.length)?(o.useModel.bindHouseSelectPage.value=!0,o.useModel.bindHouseFormPage.value=!1,o.useModel.listData.value=null==l?void 0:l.data):"phone"===u?e.index.redirectTo({url:"/CUSTOMER/house_select/index"}):e.index.navigateTo({url:"/CUSTOMER/house_select/index"}),console.log(l)})):l.showToast("请填写姓名/手机号")},selectHouse(e,l){var i,n,s;let u=null==(s=null==(n=null==(i=o.useModel)?void 0:i.listData)?void 0:n.value[l])?void 0:s.isSelect;o.useModel.listData.value[l].isSelect=!u},handleBack(){var l,i,n,s,u,a,r,t;(null==(i=null==(l=o.useModel)?void 0:l.bindPhone)?void 0:i.value)?e.index.navigateTo({url:`/CUSTOMER/house_select/index?phone=${null==(u=null==(s=null==(n=o.useModel)?void 0:n.formData)?void 0:s.value)?void 0:u.phone}&name=${null==(t=null==(r=null==(a=o.useModel)?void 0:a.formData)?void 0:r.value)?void 0:t.name}`}):(o.useModel.bindHouseSelectPage.value=!1,o.useModel.bindHouseFormPage.value=!0)},handleBindHouse(){var s,u,a,r;let t=null==(u=null==(s=o.useModel)?void 0:s.formData)?void 0:u.value,d=[];if(null==(r=null==(a=o.useModel)?void 0:a.listData)||r.value.map((e=>{(null==e?void 0:e.isSelect)&&d.push({asset_houses_id:null==e?void 0:e.asset_houses_id,residential_relation:null==e?void 0:e.residential_relation})})),!(null==d?void 0:d.length))return l.showToast("请至少选择一套房屋!");console.log(d),n.getApiLoading(i.Apis.Archive.HouseRegisters.Store,{...t,house_info:d}).then((o=>{l.showToastBack("绑定成功",1,!1,(()=>{e.index.reLaunch({url:"/CUSTOMER/house_list/index"})})),console.log(o)}))},handleInviteCustomer(){var e;"wxwork"===(null==(e=null==r?void 0:r.data)?void 0:e.environment)?u.sendChatMessage({page:"/INDEX/binding/index.html",title:"邀请你绑定房屋"}):u.navigateToMiniProgram({path:"/pages/forward/index?source=HouseholdRegistration",envVersion:"develop",extraData:{source:"HouseholdRegistration"}})}};exports.method=t; +"use strict";const e=require("../../common/vendor.js");require("../../common/libraries/request.js"),require("../../common/store/useWatermarkStore.js");const o=require("../../common/store/useWeAppAuthStore.js");require("../../common/store/useWorkStore.js");const l=require("../../common/libraries/apiLoading.js"),n=require("../../common/libraries/naviHelper.js"),i=require("../../common/libraries/sendWxWork.js"),u=require("../../common/libraries/userUserLogin.js"),s=require("../../gen/Apis.js"),a=require("./model.js"),r=o.useWeAppAuthStore(),d={nextStep(o){var i,r,d;let t=null==(r=null==(i=a.useModel)?void 0:i.formData)?void 0:r.value;if(!(null==(d=u.getUser)?void 0:d.toPageLogin()))return(null==t?void 0:t.phone)&&(null==t?void 0:t.name)?void l.getApiLoading(s.Apis.Archive.HouseOccupants.GetCustomerHouse,{phone:null==t?void 0:t.phone}).then((l=>{var n,i,u,s,r,d,t,v,m,h,c,g,p;(null==(n=null==l?void 0:l.data)?void 0:n.length)?(a.useModel.bindHouseSelectPage.value=!0,a.useModel.bindHouseFormPage.value=!1,a.useModel.listData.value=null==l?void 0:l.data):"phone"===o?e.index.redirectTo({url:`/CUSTOMER/house_select/index?phone=${null==(s=null==(u=null==(i=a.useModel)?void 0:i.formData)?void 0:u.value)?void 0:s.phone}&name=${null==(t=null==(d=null==(r=a.useModel)?void 0:r.formData)?void 0:d.value)?void 0:t.name}`}):e.index.navigateTo({url:`/CUSTOMER/house_select/index?phone=${null==(h=null==(m=null==(v=a.useModel)?void 0:v.formData)?void 0:m.value)?void 0:h.phone}&name=${null==(p=null==(g=null==(c=a.useModel)?void 0:c.formData)?void 0:g.value)?void 0:p.name}`}),console.log(l)})):n.showToast("请填写姓名/手机号")},selectHouse(e,o){var l,n,i;let u=null==(i=null==(n=null==(l=a.useModel)?void 0:l.listData)?void 0:n.value[o])?void 0:i.isSelect;a.useModel.listData.value[o].isSelect=!u},handleBack(){var o,l,n,i,u,s,r,d;(null==(l=null==(o=a.useModel)?void 0:o.bindPhone)?void 0:l.value)?e.index.navigateTo({url:`/CUSTOMER/house_select/index?phone=${null==(u=null==(i=null==(n=a.useModel)?void 0:n.formData)?void 0:i.value)?void 0:u.phone}&name=${null==(d=null==(r=null==(s=a.useModel)?void 0:s.formData)?void 0:r.value)?void 0:d.name}`}):(a.useModel.bindHouseSelectPage.value=!1,a.useModel.bindHouseFormPage.value=!0)},handleBindHouse(){var o,i,u,r;let d=null==(i=null==(o=a.useModel)?void 0:o.formData)?void 0:i.value,t=[];if(null==(r=null==(u=a.useModel)?void 0:u.listData)||r.value.map((e=>{(null==e?void 0:e.isSelect)&&t.push({asset_houses_id:null==e?void 0:e.asset_houses_id,residential_relation:null==e?void 0:e.residential_relation})})),!(null==t?void 0:t.length))return n.showToast("请至少选择一套房屋!");console.log(t),l.getApiLoading(s.Apis.Archive.HouseRegisters.Store,{...d,house_info:t}).then((o=>{n.showToastBack("绑定成功",1,!1,(()=>{e.index.reLaunch({url:"/CUSTOMER/house_list/index"})})),console.log(o)}))},handleInviteCustomer(){var e;"wxwork"===(null==(e=null==r?void 0:r.data)?void 0:e.environment)?i.sendChatMessage({page:"/INDEX/binding/index.html",title:"邀请你绑定房屋"}):i.navigateToMiniProgram({path:"/pages/forward/index?source=HouseholdRegistration",envVersion:"develop",extraData:{source:"HouseholdRegistration"}})}};exports.method=d; diff --git a/dist/build/mp-weixin/CUSTOMER/bind_house_form/index.js b/dist/build/mp-weixin/CUSTOMER/bind_house_form/index.js index e9eb2c0..f54e740 100644 --- a/dist/build/mp-weixin/CUSTOMER/bind_house_form/index.js +++ b/dist/build/mp-weixin/CUSTOMER/bind_house_form/index.js @@ -1 +1 @@ -"use strict";const e=require("../../common/vendor.js"),o=require("./model.js"),r=require("./method.js");if(require("../../common/libraries/naviHelper.js"),require("../../gen/Apis.js"),require("../../common/libraries/request.js"),require("../../common/store/useWeAppAuthStore.js"),require("../../common/libraries/apiLoading.js"),require("../../common/store/useWorkStore.js"),!Array){(e.resolveComponent("hs-input")+e.resolveComponent("hs-cell")+e.resolveComponent("hs-upload-id-card")+e.resolveComponent("hs-upload")+e.resolveComponent("hs-footer"))()}Math||((()=>"../../components/hs-input/hs-input.js")+(()=>"../../components/hs-cell/hs-cell.js")+(()=>"../../components/hs-upload-id-card/hs-upload-id-card.js")+(()=>"../../components/hs-upload/hs-upload.js")+(()=>"../../components/hs-footer/hs-footer.js"))();const a=e.defineComponent({__name:"index",setup:a=>(e.onLoad((r=>{o.useModel.formData.value.asset_houses_id=null==r?void 0:r.asset_houses_id,e.index.qy.getCurExternalContact({success:function(e){o.useModel.formData.value.external_userid=null==e?void 0:e.userId},fail:function(e){}})})),e.onUnload((()=>{o.useModel.formData.value={type:"AddOwner",card_type:"MainlandID",house_relation:"Owner"}})),(a,n)=>{var u,l,s;return{a:e.o((r=>e.unref(o.useModel).formData.value.name=r)),b:e.p({textAlign:"right",valueModel:e.unref(o.useModel).formData.value.name}),c:e.p({title:"真实姓名",required:!0,borderTop:!0}),d:e.o((r=>e.unref(o.useModel).formData.value.phone=r)),e:e.p({maxLength:"11",textAlign:"right",type:"number",valueModel:e.unref(o.useModel).formData.value.phone}),f:e.p({title:"手机号",required:!0,borderTop:!0}),g:e.o((r=>e.unref(o.useModel).formData.value.id_card=r)),h:e.p({maxLength:"18",textAlign:"right",valueModel:e.unref(o.useModel).formData.value.id_card}),i:e.p({title:"身份证号",required:!0,borderTop:!0}),j:e.o((r=>e.unref(o.useModel).formData.value.card_front_image=r)),k:e.o((r=>e.unref(o.useModel).formData.value.card_back_image=r)),l:e.p({required:!0,valueFrontModel:e.unref(o.useModel).formData.value.card_front_image,valueBackModel:e.unref(o.useModel).formData.value.card_back_image}),m:e.o((r=>e.unref(o.useModel).formData.value.ownership_info=r)),n:e.p({title:"上传房产证",count:10,size:4,required:!0,borderTop:!0,valueModel:e.unref(o.useModel).formData.value.ownership_info}),o:e.o(null==(u=e.unref(r.method))?void 0:u.handleSubmit),p:e.p({btnParimaryName:"绑定房屋",loading:null==(s=null==(l=e.unref(o.useModel))?void 0:l.loading)?void 0:s.value})}})});wx.createPage(a); +"use strict";const e=require("../../common/vendor.js"),o=require("./method.js"),r=require("./model.js");if(require("../../common/libraries/naviHelper.js"),require("../../gen/Apis.js"),require("../../common/libraries/request.js"),require("../../common/store/useWeAppAuthStore.js"),require("../../common/libraries/apiLoading.js"),require("../../common/store/useWatermarkStore.js"),require("../../common/store/useWorkStore.js"),!Array){(e.resolveComponent("hs-cell")+e.resolveComponent("hs-radio-cell-picker")+e.resolveComponent("hs-input")+e.resolveComponent("hs-upload-id-card")+e.resolveComponent("hs-upload")+e.resolveComponent("hs-footer"))()}Math||((()=>"../../components/hs-cell/hs-cell.js")+(()=>"../../components/hs-radio-cell-picker/hs-radio-cell-picker.js")+(()=>"../../components/hs-input/hs-input.js")+(()=>"../../components/hs-upload-id-card/hs-upload-id-card.js")+(()=>"../../components/hs-upload/hs-upload.js")+(()=>"../../components/hs-footer/hs-footer.js"))();const a=e.defineComponent({__name:"index",setup(a){const l={AddOccupant:{text:"添加住户",value:"AddOccupant"},AddOwner:{text:"添加产权人",value:"AddOwner"}},u={Tenant:{text:"租客",color:"#fa8c16",value:"Tenant"},Resident:{text:"住户",color:"#2db7f5",value:"Resident"},PrimaryTenant:{text:"主租人",color:"#87d068",value:"PrimaryTenant"}};return e.onLoad((e=>{r.useModel.formData.value.asset_houses_id=null==e?void 0:e.asset_houses_id,console.log(e,"222")})),e.onShow((()=>{var e;null==(e=o.method)||e.init()})),e.onUnload((()=>{r.useModel.formData.value={type:"AddOwner",card_type:"MainlandID",house_relation:"Owner"}})),(a,n)=>{var t,d,s,i,m,p,f;return e.e({a:e.o(null==(t=e.unref(o.method))?void 0:t.handleToSelectHouse),b:e.p({title:"选择房屋",required:!0,borderTop:!0,isLink:!0,value:null==(i=null==(s=null==(d=e.unref(r.useModel))?void 0:d.formData)?void 0:s.value)?void 0:i.full_name,isPlaceholder:"请选择房屋"}),c:e.o((o=>e.unref(r.useModel).formData.value.type=o)),d:e.p({Enums:l,title:"类型",borderTop:!0,required:!0,valueModel:e.unref(r.useModel).formData.value.type}),e:"AddOccupant"===e.unref(r.useModel).formData.value.type},"AddOccupant"===e.unref(r.useModel).formData.value.type?{f:e.o((o=>e.unref(r.useModel).formData.value.residential_relation=o)),g:e.p({Enums:u,title:"居住关系",borderTop:!0,required:!0,valueModel:e.unref(r.useModel).formData.value.residential_relation})}:{},{h:e.o((o=>e.unref(r.useModel).formData.value.name=o)),i:e.p({textAlign:"right",valueModel:e.unref(r.useModel).formData.value.name}),j:e.p({title:"真实姓名",required:!0,borderTop:!0}),k:e.o((o=>e.unref(r.useModel).formData.value.phone=o)),l:e.p({maxLength:"11",textAlign:"right",type:"number",valueModel:e.unref(r.useModel).formData.value.phone}),m:e.p({title:"手机号",required:!0,borderTop:!0}),n:e.o((o=>e.unref(r.useModel).formData.value.id_card=o)),o:e.p({maxLength:"18",textAlign:"right",valueModel:e.unref(r.useModel).formData.value.id_card}),p:e.p({title:"身份证号",required:!0,borderTop:!0}),q:e.o((o=>e.unref(r.useModel).formData.value.card_front_image=o)),r:e.o((o=>e.unref(r.useModel).formData.value.card_back_image=o)),s:e.p({required:!0,valueFrontModel:e.unref(r.useModel).formData.value.card_front_image,valueBackModel:e.unref(r.useModel).formData.value.card_back_image}),t:"AddOwner"===e.unref(r.useModel).formData.value.type},"AddOwner"===e.unref(r.useModel).formData.value.type?{v:e.o((o=>e.unref(r.useModel).formData.value.ownership_info=o)),w:e.p({title:"上传房产证",count:10,size:4,required:!0,borderTop:!0,valueModel:e.unref(r.useModel).formData.value.ownership_info})}:{},{x:e.o(null==(m=e.unref(o.method))?void 0:m.handleSubmit),y:e.p({btnParimaryName:"绑定房屋",loading:null==(f=null==(p=e.unref(r.useModel))?void 0:p.loading)?void 0:f.value})})}}});wx.createPage(a); diff --git a/dist/build/mp-weixin/CUSTOMER/bind_house_form/index.json b/dist/build/mp-weixin/CUSTOMER/bind_house_form/index.json index 7f3c536..0aa558a 100644 --- a/dist/build/mp-weixin/CUSTOMER/bind_house_form/index.json +++ b/dist/build/mp-weixin/CUSTOMER/bind_house_form/index.json @@ -1,8 +1,9 @@ { "navigationBarTitleText": "绑定产权人", "usingComponents": { - "hs-input": "../../components/hs-input/hs-input", "hs-cell": "../../components/hs-cell/hs-cell", + "hs-radio-cell-picker": "../../components/hs-radio-cell-picker/hs-radio-cell-picker", + "hs-input": "../../components/hs-input/hs-input", "hs-upload-id-card": "../../components/hs-upload-id-card/hs-upload-id-card", "hs-upload": "../../components/hs-upload/hs-upload", "hs-footer": "../../components/hs-footer/hs-footer" diff --git a/dist/build/mp-weixin/CUSTOMER/bind_house_form/index.wxml b/dist/build/mp-weixin/CUSTOMER/bind_house_form/index.wxml index e32aeb4..c5d7180 100644 --- a/dist/build/mp-weixin/CUSTOMER/bind_house_form/index.wxml +++ b/dist/build/mp-weixin/CUSTOMER/bind_house_form/index.wxml @@ -1 +1 @@ - 个人信息 \ No newline at end of file + 个人信息 \ No newline at end of file diff --git a/dist/build/mp-weixin/CUSTOMER/bind_house_form/method.js b/dist/build/mp-weixin/CUSTOMER/bind_house_form/method.js index 750f034..73f3cc6 100644 --- a/dist/build/mp-weixin/CUSTOMER/bind_house_form/method.js +++ b/dist/build/mp-weixin/CUSTOMER/bind_house_form/method.js @@ -1 +1 @@ -"use strict";const o=require("../../common/vendor.js"),e=require("../../common/libraries/naviHelper.js"),i=require("./model.js"),l=require("../../gen/Apis.js"),s=require("../../common/libraries/apiLoading.js"),n={handleSubmit(){var n,r,u,d,t;let a=null==(r=null==(n=i.useModel)?void 0:n.formData)?void 0:r.value;return(null==a?void 0:a.name)?(null==a?void 0:a.phone)?(null==a?void 0:a.id_card)?(null==(u=null==a?void 0:a.card_front_image)?void 0:u.length)&&(null==(d=null==a?void 0:a.card_back_image)?void 0:d.length)?(null==(t=null==a?void 0:a.ownership_info)?void 0:t.length)?void s.getApiLoading(l.Apis.Archive.HouseRegisters.RegisterHouse,{...a,customer_info:[a]}).then((e=>{o.index.redirectTo({url:"/CUSTOMER/bind_house_form/success"}),console.log(e)})):e.showToast("请上传房产证"):e.showToast("请上传身份证正反面"):e.showToast("请填写身份证号"):e.showToast("请填写手机号"):e.showToast("请填写姓名")}};exports.method=n; +"use strict";const e=require("../../common/vendor.js"),o=require("../../common/libraries/naviHelper.js"),l=require("./model.js"),s=require("../../gen/Apis.js"),r=require("../../common/libraries/apiLoading.js");require("../../common/libraries/request.js"),require("../../common/store/useWatermarkStore.js"),require("../../common/store/useWeAppAuthStore.js");const i=require("../../common/store/useWorkStore.js").useWorkStore(),u={init(){var e,o,s;console.log("init",null==i?void 0:i.selectWorkHouse),l.useModel.formData.value={...l.useModel.formData.value},(null==(e=null==i?void 0:i.selectWorkHouse)?void 0:e.value)&&(l.useModel.formData.value={...l.useModel.formData.value,asset_houses_id:null==(o=null==i?void 0:i.selectWorkHouse)?void 0:o.value,full_name:null==(s=null==i?void 0:i.selectWorkHouse)?void 0:s.label})},handleSubmit(){var i,u,n,t,a;let d=null==(u=null==(i=l.useModel)?void 0:i.formData)?void 0:u.value;return(null==d?void 0:d.asset_houses_id)?(null==d?void 0:d.type)?("AddOwner"===d.type?(d.house_relation="Owner",d.residential_relation="PropertyOwner"):d.house_relation="Owner",(null==d?void 0:d.residential_relation)?(null==d?void 0:d.name)?(null==d?void 0:d.phone)?(null==d?void 0:d.id_card)?(null==(n=null==d?void 0:d.card_front_image)?void 0:n.length)&&(null==(t=null==d?void 0:d.card_back_image)?void 0:t.length)?"AddOwner"!==d.type||(null==(a=null==d?void 0:d.ownership_info)?void 0:a.length)?void r.getApiLoading(s.Apis.Archive.HouseRegisters.RegisterHouse,{...d,customer_info:[d]}).then((o=>{e.index.redirectTo({url:"/CUSTOMER/bind_house_form/success"}),console.log(o)})):o.showToast("请上传房产证"):o.showToast("请上传身份证正反面"):o.showToast("请填写身份证号"):o.showToast("请填写手机号"):o.showToast("请填写姓名"):o.showToast("请选择居住关系")):o.showToast("请选择类型"):o.showToast("请选择房屋")},handleToSelectHouse(){e.index.navigateTo({url:"/pages/public/asset_houses/index?type=work_add"})}};exports.method=u; diff --git a/dist/build/mp-weixin/CUSTOMER/bind_house_form/model.js b/dist/build/mp-weixin/CUSTOMER/bind_house_form/model.js index 635c17e..709282d 100644 --- a/dist/build/mp-weixin/CUSTOMER/bind_house_form/model.js +++ b/dist/build/mp-weixin/CUSTOMER/bind_house_form/model.js @@ -1 +1 @@ -"use strict";const e=require("../../common/vendor.js"),r={formData:e.ref({type:"AddOwner",card_type:"MainlandID",house_relation:"Owner"}),loading:e.ref(!1)};exports.useModel=r; +"use strict";const e=require("../../common/vendor.js"),r={formData:e.ref({card_type:"MainlandID"}),loading:e.ref(!1)};exports.useModel=r; diff --git a/dist/build/mp-weixin/CUSTOMER/bind_house_form/success.js b/dist/build/mp-weixin/CUSTOMER/bind_house_form/success.js index 3581555..85502f0 100644 --- a/dist/build/mp-weixin/CUSTOMER/bind_house_form/success.js +++ b/dist/build/mp-weixin/CUSTOMER/bind_house_form/success.js @@ -1 +1 @@ -"use strict";const e=require("../../common/vendor.js");if(!Array){(e.resolveComponent("uni-icons")+e.resolveComponent("hs-button"))()}Math||((()=>"../../uni_modules/uni-icons/components/uni-icons/uni-icons.js")+(()=>"../../components/hs-button/hs-button.js"))();const o=e.defineComponent({__name:"success",setup:o=>(o,n)=>({a:e.p({type:"checkbox-filled",size:"50",color:"#0082fa"}),b:e.o((o=>{e.index.exitMiniProgram()})),c:e.p({label:"返回聊天页",type:"primary",size:"md"})})}),n=e._export_sfc(o,[["__scopeId","data-v-1455fe69"]]);wx.createPage(n); +"use strict";const e=require("../../common/vendor.js");if(!Array){(e.resolveComponent("uni-icons")+e.resolveComponent("hs-button"))()}Math||((()=>"../../uni_modules/uni-icons/components/uni-icons/uni-icons.js")+(()=>"../../components/hs-button/hs-button.js"))();const n=e.defineComponent({__name:"success",setup:n=>(n,o)=>({a:e.p({type:"checkbox-filled",size:"50",color:"#0082fa"}),b:e.o((n=>{e.index.switchTab({url:"/pages/index/index"})})),c:e.p({label:"返回首页",type:"primary",size:"md"})})}),o=e._export_sfc(n,[["__scopeId","data-v-c81c2027"]]);wx.createPage(o); diff --git a/dist/build/mp-weixin/CUSTOMER/bind_house_form/success.wxml b/dist/build/mp-weixin/CUSTOMER/bind_house_form/success.wxml index 69f6165..5538ed6 100644 --- a/dist/build/mp-weixin/CUSTOMER/bind_house_form/success.wxml +++ b/dist/build/mp-weixin/CUSTOMER/bind_house_form/success.wxml @@ -1 +1 @@ - 提交成功 已提交至后台审核,请耐心等待 \ No newline at end of file + 提交成功 已提交至后台审核,请耐心等待 \ No newline at end of file diff --git a/dist/build/mp-weixin/CUSTOMER/bind_house_form/success.wxss b/dist/build/mp-weixin/CUSTOMER/bind_house_form/success.wxss index 1f1ad49..576027f 100644 --- a/dist/build/mp-weixin/CUSTOMER/bind_house_form/success.wxss +++ b/dist/build/mp-weixin/CUSTOMER/bind_house_form/success.wxss @@ -1 +1 @@ -.success_page.data-v-1455fe69{width:100%;height:100vh;background:linear-gradient(180deg,#d8e7ff 0%,rgba(255,255,255,0) 400rpx)}.success_page .success_header.data-v-1455fe69{display:flex;align-items:center;justify-content:center;font-size:44rpx;color:#333;padding:280rpx 0 60rpx;font-weight:500}.success_page .success_header text.data-v-1455fe69{padding-left:10rpx}.success_page .success_des.data-v-1455fe69{font-size:28rpx;color:#333;text-align:center;line-height:60rpx}.success_page .success_des text.data-v-1455fe69{color:#0082fa}.success_page .success_fooer.data-v-1455fe69{text-align:center;padding:40rpx 200rpx 0} +.success_page.data-v-c81c2027{width:100%;height:100vh;background:linear-gradient(180deg,#d8e7ff 0%,rgba(255,255,255,0) 400rpx)}.success_page .success_header.data-v-c81c2027{display:flex;align-items:center;justify-content:center;font-size:44rpx;color:#333;padding:280rpx 0 60rpx;font-weight:500}.success_page .success_header text.data-v-c81c2027{padding-left:10rpx}.success_page .success_des.data-v-c81c2027{font-size:28rpx;color:#333;text-align:center;line-height:60rpx}.success_page .success_des text.data-v-c81c2027{color:#0082fa}.success_page .success_fooer.data-v-c81c2027{text-align:center;padding:40rpx 200rpx 0} diff --git a/dist/build/mp-weixin/CUSTOMER/house_Identity/index.js b/dist/build/mp-weixin/CUSTOMER/house_Identity/index.js index 0819e8c..319a805 100644 --- a/dist/build/mp-weixin/CUSTOMER/house_Identity/index.js +++ b/dist/build/mp-weixin/CUSTOMER/house_Identity/index.js @@ -1 +1 @@ -"use strict";const e=require("../../common/vendor.js"),o=require("./model.js"),n=require("./method.js");require("../../common/libraries/userUserLogin.js");const l=require("../../gen/Enums.js");require("../../common/libraries/request.js");const r=require("../../common/store/useWeAppAuthStore.js");if(require("../../common/store/useWorkStore.js"),require("../../common/libraries/naviHelper.js"),require("../../gen/Apis.js"),require("../../common/libraries/apiLoading.js"),require("../../common/libraries/sendWxWork.js"),!Array){(e.resolveComponent("hs-radio")+e.resolveComponent("uni-icons")+e.resolveComponent("hs-footer"))()}Math||((()=>"../../components/hs-radio/hs-radio.js")+(()=>"../../uni_modules/uni-icons/components/uni-icons/uni-icons.js")+(()=>"../../components/hs-footer/hs-footer.js"))();const i=e.defineComponent({__name:"index",setup(i){const s=r.useWeAppAuthStore();return e.onLoad((async n=>{var l,r;await(null==(l=e.getCurrentInstance())?void 0:l.appContext.config.globalProperties.$onLaunched),o.useModel.formData.value=n,"wxwork"===(null==(r=null==s?void 0:s.data)?void 0:r.environment)&&e.index.qy.getCurExternalContact({success:function(e){o.useModel.formData.value={external_userid:null==e?void 0:e.userId,...n},console.log("开始2",e)},fail:function(e){o.useModel.formData.value=n,console.log("失败",e)}})})),(r,i)=>{var s,u,a,t,d;return{a:e.t(null==(a=null==(u=null==(s=e.unref(o.useModel))?void 0:s.formData)?void 0:u.value)?void 0:a.full_name),b:e.o((n=>e.unref(o.useModel).formData.value.residential_relation=n)),c:e.p({Enums:e.unref(l.HouseOccupantsResidentialRelationEnum),valueModel:e.unref(o.useModel).formData.value.residential_relation}),d:e.f(null==(d=null==(t=e.unref(o.useModel))?void 0:t.collapse_list)?void 0:d.value,((o,l,r)=>e.e({a:e.t(null==o?void 0:o.label),b:e.t((null==o?void 0:o.isShow)?"收起":"展开"),c:"5fd4d2bc-1-"+r,d:e.p({type:(null==o?void 0:o.isShow)?"down":"right",size:"13",color:"#999"}),e:e.o((e=>o.isShow=!o.isShow),`collapse_${l}`),f:null==o?void 0:o.isShow},(null==o?void 0:o.isShow)?{g:e.f(null==o?void 0:o.children,((o,i,s)=>e.e({a:e.t(null==o?void 0:o.label),b:null==o?void 0:o.btnName},(null==o?void 0:o.btnName)?{c:e.t(null==o?void 0:o.btnName),d:"5fd4d2bc-2-"+r+"-"+s,e:e.p({type:"right",size:"13",color:"#0082FA"}),f:e.o((l=>{var r;return null==(r=e.unref(n.method))?void 0:r.handleFindLinkClick(o)}),`collapse_${l}_${i}`)}:{},{g:`collapse_${l}_${i}`})))}:{},{h:`collapse_${l}`}))),e:e.o(e.unref(n.method).handleBindHouse),f:e.p({btnParimaryName:"绑定新房屋"})}}}});wx.createPage(i); +"use strict";const e=require("../../common/vendor.js");require("../../common/libraries/request.js"),require("../../common/store/useWatermarkStore.js");const o=require("../../common/store/useWeAppAuthStore.js");require("../../common/store/useWorkStore.js");const n=require("../../gen/Enums.js"),l=require("./method.js"),r=require("./model.js");if(require("../../gen/Apis.js"),require("../../common/libraries/apiLoading.js"),require("../../common/libraries/naviHelper.js"),require("../../common/libraries/sendWxWork.js"),!Array){(e.resolveComponent("hs-radio")+e.resolveComponent("uni-icons")+e.resolveComponent("hs-footer"))()}Math||((()=>"../../components/hs-radio/hs-radio.js")+(()=>"../../uni_modules/uni-icons/components/uni-icons/uni-icons.js")+(()=>"../../components/hs-footer/hs-footer.js"))();const i=e.defineComponent({__name:"index",setup(i){const s=o.useWeAppAuthStore();return e.onLoad((async o=>{var n,l;await(null==(n=e.getCurrentInstance())?void 0:n.appContext.config.globalProperties.$onLaunched),r.useModel.formData.value=o,console.log(o,"eee"),"wxwork"===(null==(l=null==s?void 0:s.data)?void 0:l.environment)&&e.index.qy.getCurExternalContact({success:function(e){r.useModel.formData.value={external_userid:null==e?void 0:e.userId,...o},console.log("开始2",e)},fail:function(e){r.useModel.formData.value=o,console.log("失败",e)}})})),(o,i)=>{var s,u,a,t,d;return{a:e.t(null==(a=null==(u=null==(s=e.unref(r.useModel))?void 0:s.formData)?void 0:u.value)?void 0:a.full_name),b:e.o((o=>e.unref(r.useModel).formData.value.residential_relation=o)),c:e.p({Enums:e.unref(n.HouseOccupantsResidentialRelationEnum),valueModel:e.unref(r.useModel).formData.value.residential_relation}),d:e.f(null==(d=null==(t=e.unref(r.useModel))?void 0:t.collapse_list)?void 0:d.value,((o,n,r)=>e.e({a:e.t(null==o?void 0:o.label),b:e.t((null==o?void 0:o.isShow)?"收起":"展开"),c:"5fd4d2bc-1-"+r,d:e.p({type:(null==o?void 0:o.isShow)?"down":"right",size:"13",color:"#999"}),e:e.o((e=>o.isShow=!o.isShow),`collapse_${n}`),f:null==o?void 0:o.isShow},(null==o?void 0:o.isShow)?{g:e.f(null==o?void 0:o.children,((o,i,s)=>e.e({a:e.t(null==o?void 0:o.label),b:null==o?void 0:o.btnName},(null==o?void 0:o.btnName)?{c:e.t(null==o?void 0:o.btnName),d:"5fd4d2bc-2-"+r+"-"+s,e:e.p({type:"right",size:"13",color:"#0082FA"}),f:e.o((n=>{var r;return null==(r=e.unref(l.method))?void 0:r.handleFindLinkClick(o)}),`collapse_${n}_${i}`)}:{},{g:`collapse_${n}_${i}`})))}:{},{h:`collapse_${n}`}))),e:e.o(e.unref(l.method).handleBindHouse),f:e.p({btnParimaryName:"绑定新房屋"})}}}});wx.createPage(i); diff --git a/dist/build/mp-weixin/CUSTOMER/house_Identity/method.js b/dist/build/mp-weixin/CUSTOMER/house_Identity/method.js index ef5292c..ab4b432 100644 --- a/dist/build/mp-weixin/CUSTOMER/house_Identity/method.js +++ b/dist/build/mp-weixin/CUSTOMER/house_Identity/method.js @@ -1 +1 @@ -"use strict";const e=require("../../common/vendor.js"),i=require("./model.js"),s=require("../../common/libraries/naviHelper.js"),o=require("../../gen/Apis.js"),n=require("../../common/libraries/apiLoading.js");require("../../common/libraries/userUserLogin.js");const l=require("../../common/libraries/sendWxWork.js"),r={handleBindHouse(){var l,r;let u=null==(r=null==(l=i.useModel)?void 0:l.formData)?void 0:r.value;if(!(null==u?void 0:u.residential_relation))return s.showToast("请选择身份!");let a=[{asset_houses_id:null==u?void 0:u.asset_houses_id,residential_relation:null==u?void 0:u.residential_relation}];n.getApiLoading(o.Apis.Archive.HouseRegisters.Store,{...u,house_info:a}).then((i=>{e.index.reLaunch({url:`/CUSTOMER/house_Identity/success?asset_houses_id=${null==u?void 0:u.asset_houses_id}&name=${null==u?void 0:u.name}&phone=${null==u?void 0:u.phone}}`}),console.log(i)}))},handleFindLinkClick(s){var o;"link"===(null==s?void 0:s.type)&&e.index.navigateTo({url:`${null==s?void 0:s.url}?asset_houses_id=${null==(o=i.useModel.formData.value)?void 0:o.asset_houses_id}`}),"invitation"===(null==s?void 0:s.type)&&l.sendChatMessage({page:"/INDEX/binding/index.html",title:"邀请你绑定房屋"}),console.log(s,"eee")}};exports.method=r; +"use strict";const e=require("../../common/vendor.js"),i=require("../../common/libraries/apiLoading.js"),o=require("../../common/libraries/naviHelper.js"),s=require("../../common/libraries/sendWxWork.js"),l=require("../../gen/Apis.js"),n=require("./model.js"),a={handleBindHouse(){var s,a;let u=null==(a=null==(s=n.useModel)?void 0:s.formData)?void 0:a.value;if(!(null==u?void 0:u.residential_relation))return o.showToast("请选择身份!");let r=[{asset_houses_id:null==u?void 0:u.asset_houses_id,residential_relation:null==u?void 0:u.residential_relation}];i.getApiLoading(l.Apis.Archive.HouseRegisters.Store,{...u,house_info:r}).then((i=>{e.index.reLaunch({url:`/CUSTOMER/house_Identity/success?asset_houses_id=${null==u?void 0:u.asset_houses_id}&name=${null==u?void 0:u.name}&phone=${null==u?void 0:u.phone}}`}),console.log(i)}))},handleFindLinkClick(i){var o,l,a;"link"===(null==i?void 0:i.type)&&e.index.navigateTo({url:`${null==i?void 0:i.url}?asset_houses_id=${null==(o=n.useModel.formData.value)?void 0:o.asset_houses_id}&name=${null==(l=n.useModel.formData.value)?void 0:l.name}&phone=${null==(a=n.useModel.formData.value)?void 0:a.phone}`}),"invitation"===(null==i?void 0:i.type)&&s.sendChatMessage({page:"/INDEX/binding/index.html",title:"邀请你绑定房屋"}),console.log(i,"eee")}};exports.method=a; diff --git a/dist/build/mp-weixin/CUSTOMER/house_Identity/success.js b/dist/build/mp-weixin/CUSTOMER/house_Identity/success.js index 24ed0ab..0bee735 100644 --- a/dist/build/mp-weixin/CUSTOMER/house_Identity/success.js +++ b/dist/build/mp-weixin/CUSTOMER/house_Identity/success.js @@ -1 +1 @@ -"use strict";const e=require("../../common/vendor.js");if(!Array){(e.resolveComponent("uni-icons")+e.resolveComponent("hs-button"))()}Math||((()=>"../../uni_modules/uni-icons/components/uni-icons/uni-icons.js")+(()=>"../../components/hs-button/hs-button.js"))();const n=e.defineComponent({__name:"success",setup(n){const o=e.ref({});return e.onLoad((e=>{o.value=e})),(n,s)=>({a:e.p({type:"checkbox-filled",size:"50",color:"#0082fa"}),b:e.o((n=>{var s,i;e.index.reLaunch({url:`/CUSTOMER/house_select/index?name=${null==(s=o.value)?void 0:s.name}&phone=${null==(i=o.value)?void 0:i.phone}`})})),c:e.p({label:"继续绑定房屋",type:"primary",size:"md"}),d:e.o((n=>{e.index.exitMiniProgram()})),e:e.p({label:"返回聊天页",type:"display",size:"md"})})}}),o=e._export_sfc(n,[["__scopeId","data-v-0c687386"]]);wx.createPage(o); +"use strict";const e=require("../../common/vendor.js");if(!Array){(e.resolveComponent("uni-icons")+e.resolveComponent("hs-button"))()}Math||((()=>"../../uni_modules/uni-icons/components/uni-icons/uni-icons.js")+(()=>"../../components/hs-button/hs-button.js"))();const n=e.defineComponent({__name:"success",setup(n){const o=e.ref({});return e.onLoad((e=>{o.value=e})),(n,s)=>({a:e.p({type:"checkbox-filled",size:"50",color:"#0082fa"}),b:e.o((n=>{var s,i;e.index.reLaunch({url:`/CUSTOMER/house_select/index?name=${null==(s=o.value)?void 0:s.name}&phone=${null==(i=o.value)?void 0:i.phone}`})})),c:e.p({label:"继续绑定房屋",type:"primary",size:"md"}),d:e.o((n=>{e.index.exitMiniProgram()})),e:e.p({label:"返回",type:"display",size:"md"})})}}),o=e._export_sfc(n,[["__scopeId","data-v-cdb63d97"]]);wx.createPage(o); diff --git a/dist/build/mp-weixin/CUSTOMER/house_Identity/success.wxml b/dist/build/mp-weixin/CUSTOMER/house_Identity/success.wxml index 9935cd5..67125bd 100644 --- a/dist/build/mp-weixin/CUSTOMER/house_Identity/success.wxml +++ b/dist/build/mp-weixin/CUSTOMER/house_Identity/success.wxml @@ -1 +1 @@ - 提交成功 已给产权人发送审核申请 请您同步提醒产权人进行审核操作 产权人信息可点击前往【房屋管理】查看 \ No newline at end of file + 提交成功 已给产权人发送审核申请 请您同步提醒产权人进行审核操作 产权人信息可点击前往【房屋管理】查看 \ No newline at end of file diff --git a/dist/build/mp-weixin/CUSTOMER/house_Identity/success.wxss b/dist/build/mp-weixin/CUSTOMER/house_Identity/success.wxss index 4e6032f..f57e042 100644 --- a/dist/build/mp-weixin/CUSTOMER/house_Identity/success.wxss +++ b/dist/build/mp-weixin/CUSTOMER/house_Identity/success.wxss @@ -1 +1 @@ -.success_page.data-v-0c687386{width:100%;height:100vh;background:linear-gradient(180deg,#d8e7ff 0%,rgba(255,255,255,0) 400rpx)}.success_page .success_header.data-v-0c687386{display:flex;align-items:center;justify-content:center;font-size:44rpx;color:#333;padding:280rpx 0 50rpx;font-weight:500}.success_page .success_header text.data-v-0c687386{padding-left:10rpx}.success_page .success_des.data-v-0c687386{font-size:28rpx;color:#333;text-align:center;line-height:65rpx}.success_page .success_des text.data-v-0c687386{color:#0082fa}.success_page .success_fooer.data-v-0c687386{text-align:center;padding:40rpx 200rpx 0}.success_page .success_fooer .last_btn.data-v-0c687386{padding-top:30rpx} +.success_page.data-v-cdb63d97{width:100%;height:100vh;background:linear-gradient(180deg,#d8e7ff 0%,rgba(255,255,255,0) 400rpx)}.success_page .success_header.data-v-cdb63d97{display:flex;align-items:center;justify-content:center;font-size:44rpx;color:#333;padding:280rpx 0 50rpx;font-weight:500}.success_page .success_header text.data-v-cdb63d97{padding-left:10rpx}.success_page .success_des.data-v-cdb63d97{font-size:28rpx;color:#333;text-align:center;line-height:65rpx}.success_page .success_des text.data-v-cdb63d97{color:#0082fa}.success_page .success_fooer.data-v-cdb63d97{text-align:center;padding:40rpx 200rpx 0}.success_page .success_fooer .last_btn.data-v-cdb63d97{padding-top:30rpx} diff --git a/dist/build/mp-weixin/CUSTOMER/house_list/components/unBindpopup.js b/dist/build/mp-weixin/CUSTOMER/house_list/components/unBindpopup.js index f490949..7556d3a 100644 --- a/dist/build/mp-weixin/CUSTOMER/house_list/components/unBindpopup.js +++ b/dist/build/mp-weixin/CUSTOMER/house_list/components/unBindpopup.js @@ -1 +1 @@ -"use strict";const e=require("../../../common/vendor.js"),o=require("../../../gen/Apis.js"),s=require("../../../common/libraries/apiLoading.js"),t=require("../../../common/libraries/naviHelper.js");if(require("../../../common/libraries/request.js"),require("../../../common/store/useWeAppAuthStore.js"),require("../../../common/store/useWorkStore.js"),!Array){(e.resolveComponent("hs-button")+e.resolveComponent("hs-popup-custom"))()}Math||((()=>"../../../components/hs-button/hs-button.js")+(()=>"../../../components/hs-popup-custom/hs-popup-custom.js"))();const r=e.defineComponent({__name:"unBindpopup",props:["data"],emits:["success"],setup(r,{emit:n}){const u=r,i=e.ref(!1),a=()=>{var e,r;s.getApiLoading(o.Apis.Archive.HouseRegisters.Unbind,{external_userid:null==(e=null==u?void 0:u.data)?void 0:e.external_userid,asset_houses_id:null==(r=null==u?void 0:u.data)?void 0:r.asset_houses_id}).then((e=>{t.showToast("解除成功!"),n("success"),console.log(e)}))};return(o,s)=>{var t,r;return{a:e.o((e=>i.value=!0)),b:e.t(null==(r=null==(t=null==u?void 0:u.data)?void 0:t.asset_house)?void 0:r.full_name),c:e.o(a),d:e.p({label:"确认解绑",type:"primary",size:"md"}),e:e.o((e=>i.value=!1)),f:e.p({label:"点错了,返回",size:"md"}),g:e.o((e=>i.value=!1)),h:e.p({show:i.value,mode:"center",title:"再次确认"})}}}}),n=e._export_sfc(r,[["__scopeId","data-v-131c3109"]]);wx.createComponent(n); +"use strict";const e=require("../../../common/vendor.js"),o=require("../../../gen/Apis.js"),s=require("../../../common/libraries/apiLoading.js"),r=require("../../../common/libraries/naviHelper.js");if(require("../../../common/libraries/request.js"),require("../../../common/store/useWeAppAuthStore.js"),require("../../../common/store/useWatermarkStore.js"),require("../../../common/store/useWorkStore.js"),!Array){(e.resolveComponent("hs-button")+e.resolveComponent("hs-popup-custom"))()}Math||((()=>"../../../components/hs-button/hs-button.js")+(()=>"../../../components/hs-popup-custom/hs-popup-custom.js"))();const t=e.defineComponent({__name:"unBindpopup",props:["data"],emits:["success"],setup(t,{emit:n}){const u=t,i=e.ref(!1),a=()=>{var e,t;s.getApiLoading(o.Apis.Archive.HouseRegisters.Unbind,{external_userid:null==(e=null==u?void 0:u.data)?void 0:e.external_userid,asset_houses_id:null==(t=null==u?void 0:u.data)?void 0:t.asset_houses_id}).then((e=>{r.showToast("解除成功!"),n("success"),console.log(e)}))};return(o,s)=>{var r,t;return{a:e.o((e=>i.value=!0)),b:e.t(null==(t=null==(r=null==u?void 0:u.data)?void 0:r.asset_house)?void 0:t.full_name),c:e.o(a),d:e.p({label:"确认解绑",type:"primary",size:"md"}),e:e.o((e=>i.value=!1)),f:e.p({label:"点错了,返回",size:"md"}),g:e.o((e=>i.value=!1)),h:e.p({show:i.value,mode:"center",title:"再次确认"})}}}}),n=e._export_sfc(t,[["__scopeId","data-v-131c3109"]]);wx.createComponent(n); diff --git a/dist/build/mp-weixin/CUSTOMER/house_list/index.js b/dist/build/mp-weixin/CUSTOMER/house_list/index.js index 36f4dc2..1efd3df 100644 --- a/dist/build/mp-weixin/CUSTOMER/house_list/index.js +++ b/dist/build/mp-weixin/CUSTOMER/house_list/index.js @@ -1 +1 @@ -"use strict";const e=require("../../common/vendor.js"),o=require("../../common/libraries/userUserLogin.js"),n=require("./model.js"),l=require("./method.js"),u=require("../../gen/Enums.js");if(require("../../common/libraries/request.js"),require("../../common/store/useWeAppAuthStore.js"),require("../../gen/Apis.js"),require("../../common/store/useWorkStore.js"),require("../../common/libraries/apiLoading.js"),!Array){(e.resolveComponent("hs-cell")+e.resolveComponent("hs-empty")+e.resolveComponent("hs-enum-tag")+e.resolveComponent("hs-footer"))()}Math||((()=>"../../components/hs-cell/hs-cell.js")+(()=>"../../components/hs-empty/hs-empty.js")+(()=>"../../components/hs-enum-tag/hs-enum-tag.js")+s+(()=>"../../components/hs-footer/hs-footer.js"))();const s=()=>"./components/unBindpopup.js",i=e.defineComponent({__name:"index",setup:s=>(e.onShow((async u=>{var s,i;await(null==(s=e.getCurrentInstance())?void 0:s.appContext.config.globalProperties.$onLaunched),(null==(i=o.getUser)?void 0:i.onBindPhone())&&(console.log("onShow_21"),e.index.qy.getCurExternalContact({success:function(e){var o;n.useModel.showData.value={},n.useModel.formData.value.external_userid=null==e?void 0:e.userId,null==(o=l.method)||o.getList(),console.log("开始2",e)},fail:function(e){var o;null==(o=l.method)||o.getList(),console.log("失败",e)}}))})),(o,s)=>{var i,r,t,a,d,v,m,c,h,p,f,g,_,j,w,q,M,b,C,L,x,D,y,E;return e.e({a:null==(r=null==(i=e.unref(n.useModel))?void 0:i.loading)?void 0:r.value},(null==(a=null==(t=e.unref(n.useModel))?void 0:t.loading)?void 0:a.value)?e.e({b:e.t((null==(c=null==(m=null==(v=null==(d=e.unref(n.useModel))?void 0:d.showData)?void 0:v.value)?void 0:m.customer)?void 0:c.customer_name)||"请补充姓名"),c:e.p({title:"手机号",value:null==(g=null==(f=null==(p=null==(h=e.unref(n.useModel))?void 0:h.showData)?void 0:p.value)?void 0:f.customer)?void 0:g.customer_phone}),d:!(null==(q=null==(w=null==(j=null==(_=e.unref(n.useModel))?void 0:_.showData)?void 0:j.value)?void 0:w.houseList)?void 0:q.length)},(null==(L=null==(C=null==(b=null==(M=e.unref(n.useModel))?void 0:M.showData)?void 0:b.value)?void 0:C.houseList)||L.length,{}),{e:e.f(null==(y=null==(D=null==(x=e.unref(n.useModel))?void 0:x.showData)?void 0:D.value)?void 0:y.houseList,((o,s,i)=>{var r,t,a,d,v;return e.e({a:e.t(null==(r=null==o?void 0:o.asset_house)?void 0:r.full_name),b:"Owner"===(null==o?void 0:o.house_relation)},"Owner"===(null==o?void 0:o.house_relation)?{c:"199b823c-2-"+i,d:e.p({value:null==o?void 0:o.house_relation,size:"md",Enums:e.unref(u.HouseOccupantsHouseRelationEnum)})}:{e:"199b823c-3-"+i,f:e.p({value:null==o?void 0:o.residential_relation,size:"md",Enums:e.unref(u.HouseOccupantsResidentialRelationEnum)})},{g:"Owner"!==(null==o?void 0:o.house_relation)},"Owner"!==(null==o?void 0:o.house_relation)?{h:e.o(null==(t=e.unref(l.method))?void 0:t.getList,`iten_${s}`),i:"199b823c-4-"+i,j:e.p({data:{...o,external_userid:null==(v=null==(d=null==(a=e.unref(n.useModel))?void 0:a.formData)?void 0:d.value)?void 0:v.external_userid}})}:{},{k:`iten_${s}`})})),f:e.o(null==(E=e.unref(l.method))?void 0:E.handleBindHouse),g:e.p({btnParimaryName:"绑定新房屋"})}):{})})});wx.createPage(i); +"use strict";const e=require("../../common/vendor.js"),o=require("../../common/libraries/userUserLogin.js"),n=require("./model.js"),l=require("./method.js"),u=require("../../gen/Enums.js");if(require("../../common/libraries/request.js"),require("../../common/store/useWeAppAuthStore.js"),require("../../gen/Apis.js"),require("../../common/store/useWatermarkStore.js"),require("../../common/store/useWorkStore.js"),require("../../common/libraries/apiLoading.js"),!Array){(e.resolveComponent("hs-cell")+e.resolveComponent("hs-empty")+e.resolveComponent("hs-enum-tag")+e.resolveComponent("hs-footer"))()}Math||((()=>"../../components/hs-cell/hs-cell.js")+(()=>"../../components/hs-empty/hs-empty.js")+(()=>"../../components/hs-enum-tag/hs-enum-tag.js")+s+(()=>"../../components/hs-footer/hs-footer.js"))();const s=()=>"./components/unBindpopup.js",r=e.defineComponent({__name:"index",setup:s=>(e.onShow((async u=>{var s,r;await(null==(s=e.getCurrentInstance())?void 0:s.appContext.config.globalProperties.$onLaunched),(null==(r=o.getUser)?void 0:r.onBindPhone())&&(console.log("onShow_21"),e.index.qy.getCurExternalContact({success:function(e){var o;n.useModel.showData.value={},n.useModel.formData.value.external_userid=null==e?void 0:e.userId,null==(o=l.method)||o.getList(),console.log("开始2",e)},fail:function(e){var o;null==(o=l.method)||o.getList(),console.log("失败",e)}}))})),(o,s)=>{var r,i,t,a,d,v,m,c,h,p,f,g,_,j,w,q,M,b,C,L,x,D,y,E;return e.e({a:null==(i=null==(r=e.unref(n.useModel))?void 0:r.loading)?void 0:i.value},(null==(a=null==(t=e.unref(n.useModel))?void 0:t.loading)?void 0:a.value)?e.e({b:e.t((null==(c=null==(m=null==(v=null==(d=e.unref(n.useModel))?void 0:d.showData)?void 0:v.value)?void 0:m.customer)?void 0:c.customer_name)||"请补充姓名"),c:e.p({title:"手机号",value:null==(g=null==(f=null==(p=null==(h=e.unref(n.useModel))?void 0:h.showData)?void 0:p.value)?void 0:f.customer)?void 0:g.customer_phone}),d:!(null==(q=null==(w=null==(j=null==(_=e.unref(n.useModel))?void 0:_.showData)?void 0:j.value)?void 0:w.houseList)?void 0:q.length)},(null==(L=null==(C=null==(b=null==(M=e.unref(n.useModel))?void 0:M.showData)?void 0:b.value)?void 0:C.houseList)||L.length,{}),{e:e.f(null==(y=null==(D=null==(x=e.unref(n.useModel))?void 0:x.showData)?void 0:D.value)?void 0:y.houseList,((o,s,r)=>{var i,t,a,d,v;return e.e({a:e.t(null==(i=null==o?void 0:o.asset_house)?void 0:i.full_name),b:"Owner"===(null==o?void 0:o.house_relation)},"Owner"===(null==o?void 0:o.house_relation)?{c:"199b823c-2-"+r,d:e.p({value:null==o?void 0:o.house_relation,size:"md",Enums:e.unref(u.HouseOccupantsHouseRelationEnum)})}:{e:"199b823c-3-"+r,f:e.p({value:null==o?void 0:o.residential_relation,size:"md",Enums:e.unref(u.HouseOccupantsResidentialRelationEnum)})},{g:"Owner"!==(null==o?void 0:o.house_relation)},"Owner"!==(null==o?void 0:o.house_relation)?{h:e.o(null==(t=e.unref(l.method))?void 0:t.getList,`iten_${s}`),i:"199b823c-4-"+r,j:e.p({data:{...o,external_userid:null==(v=null==(d=null==(a=e.unref(n.useModel))?void 0:a.formData)?void 0:d.value)?void 0:v.external_userid}})}:{},{k:`iten_${s}`})})),f:e.o(null==(E=e.unref(l.method))?void 0:E.handleBindHouse),g:e.p({btnParimaryName:"绑定新房屋"})}):{})})});wx.createPage(r); diff --git a/dist/build/mp-weixin/CUSTOMER/house_select/index.js b/dist/build/mp-weixin/CUSTOMER/house_select/index.js index cc1afe9..01b2236 100644 --- a/dist/build/mp-weixin/CUSTOMER/house_select/index.js +++ b/dist/build/mp-weixin/CUSTOMER/house_select/index.js @@ -1 +1 @@ -"use strict";const e=require("../../common/vendor.js"),o=require("./model.js"),n=require("./method.js");if(require("../../gen/Apis.js"),require("../../common/libraries/request.js"),require("../../common/store/useWeAppAuthStore.js"),require("../../common/libraries/apiLoading.js"),require("../../common/store/useWorkStore.js"),!Array){(e.resolveComponent("up-search")+e.resolveComponent("hs-empty")+e.resolveComponent("uni-icons"))()}Math||((()=>"../../node-modules/uview-plus/components/u-search/u-search.js")+(()=>"../../components/hs-empty/hs-empty.js")+(()=>"../../uni_modules/uni-icons/components/uni-icons/uni-icons.js"))();const l=e.defineComponent({__name:"index",setup:l=>(e.onLoad((e=>{var l;o.useModel.pageFormData.value=e,null==(l=n.method)||l.handleSearch()})),(l,u)=>{var r,s,a,i,t,d,m,c,v;return e.e({a:e.o(null==(r=e.unref(n.method))?void 0:r.handleSearch),b:e.o((n=>e.unref(o.useModel).formData.value.name=n)),c:e.p({showAction:!1,placeholder:"请输入房屋名称搜索",modelValue:e.unref(o.useModel).formData.value.name}),d:!(null==(i=null==(a=null==(s=e.unref(o.useModel))?void 0:s.listData)?void 0:a.value)?void 0:i.length)},(null==(m=null==(d=null==(t=e.unref(o.useModel))?void 0:t.listData)?void 0:d.value)||m.length,{}),{e:e.f(null==(v=null==(c=e.unref(o.useModel))?void 0:c.listData)?void 0:v.value,((o,l,u)=>({a:e.t(null==o?void 0:o.label),b:"2c60df80-2-"+u,c:`item_${l}`,d:e.o((l=>{var u;return null==(u=e.unref(n.method))?void 0:u.handleSelect(o)}),`item_${l}`)}))),f:e.p({type:"right",size:"13"})})})});wx.createPage(l); +"use strict";const e=require("../../common/vendor.js"),o=require("./method.js"),n=require("./model.js");if(require("../../gen/Apis.js"),require("../../common/libraries/request.js"),require("../../common/store/useWeAppAuthStore.js"),require("../../common/libraries/apiLoading.js"),require("../../common/store/useWatermarkStore.js"),require("../../common/store/useWorkStore.js"),!Array){(e.resolveComponent("up-search")+e.resolveComponent("hs-empty")+e.resolveComponent("uni-icons"))()}Math||((()=>"../../node-modules/uview-plus/components/u-search/u-search.js")+(()=>"../../components/hs-empty/hs-empty.js")+(()=>"../../uni_modules/uni-icons/components/uni-icons/uni-icons.js"))();const r=e.defineComponent({__name:"index",setup:r=>(e.onLoad((e=>{var r;n.useModel.pageFormData.value=e,console.log(e,"eee"),null==(r=o.method)||r.handleSearch()})),(r,l)=>{var u,s,t,a,i,m,d,c,v;return e.e({a:e.o(null==(u=e.unref(o.method))?void 0:u.handleSearch),b:e.o((o=>e.unref(n.useModel).formData.value.name=o)),c:e.p({showAction:!1,placeholder:"请输入房屋名称搜索",modelValue:e.unref(n.useModel).formData.value.name}),d:!(null==(a=null==(t=null==(s=e.unref(n.useModel))?void 0:s.listData)?void 0:t.value)?void 0:a.length)},(null==(d=null==(m=null==(i=e.unref(n.useModel))?void 0:i.listData)?void 0:m.value)||d.length,{}),{e:e.f(null==(v=null==(c=e.unref(n.useModel))?void 0:c.listData)?void 0:v.value,((n,r,l)=>({a:e.t(null==n?void 0:n.label),b:"2c60df80-2-"+l,c:`item_${r}`,d:e.o((r=>{var l;return null==(l=e.unref(o.method))?void 0:l.handleSelect(n)}),`item_${r}`)}))),f:e.p({type:"right",size:"13"})})})});wx.createPage(r); diff --git a/dist/build/mp-weixin/CUSTOMER/list_bill/index.js b/dist/build/mp-weixin/CUSTOMER/list_bill/index.js index ecebfd5..3cca969 100644 --- a/dist/build/mp-weixin/CUSTOMER/list_bill/index.js +++ b/dist/build/mp-weixin/CUSTOMER/list_bill/index.js @@ -1 +1 @@ -"use strict";const e=require("../../common/vendor.js"),o=require("./method.js"),l=require("./model.js"),n=require("../../gen/Enums.js"),i=require("../../common/libraries/userUserLogin.js");if(require("../../common/libraries/apiLoading.js"),require("../../gen/Apis.js"),require("../../common/libraries/request.js"),require("../../common/store/useWeAppAuthStore.js"),require("../../common/store/useWorkStore.js"),require("../../common/libraries/sendWxWork.js"),require("../../common/libraries/naviHelper.js"),!Array){(e.resolveComponent("hs-empty")+e.resolveComponent("uni-icons")+e.resolveComponent("hs-enum-tag")+e.resolveComponent("hs-button"))()}Math||((()=>"../../components/hs-empty/hs-empty.js")+(()=>"../../uni_modules/uni-icons/components/uni-icons/uni-icons.js")+(()=>"../../components/hs-enum-tag/hs-enum-tag.js")+(()=>"../../components/hs-button/hs-button.js"))();const t=e.defineComponent({__name:"index",setup:t=>(e.onLoad((async n=>{var t,u,r;await(null==(t=e.getCurrentInstance())?void 0:t.appContext.config.globalProperties.$onLaunched),l.useModel.formData.value=n,(null==(u=i.getUser)?void 0:u.getLoginStatus())&&(l.useModel.items.value=[],null==(r=o.method)||r.handleGetList())})),(i,t)=>{var u,r,s,d,a,m,c,v,p,h,f,g,b;return e.e({a:e.t(null==(s=null==(r=null==(u=e.unref(l.useModel))?void 0:u.formData)?void 0:r.value)?void 0:s.name),b:!(null==(m=null==(a=null==(d=e.unref(l.useModel))?void 0:d.items)?void 0:a.value)?void 0:m.length)},(null==(p=null==(v=null==(c=e.unref(l.useModel))?void 0:c.items)?void 0:v.value)?void 0:p.length)?{}:{c:e.p({text:"无账单"})},{d:e.f(null==(f=null==(h=e.unref(l.useModel))?void 0:h.items)?void 0:f.value,((l,i,t)=>e.e({a:null==l?void 0:l.checked},(null==l?void 0:l.checked)?{b:"1712258e-1-"+t,c:e.p({type:"checkbox-filled",size:"20",color:"#2A7EFB"})}:{d:"1712258e-2-"+t,e:e.p({type:"circle",size:"20",color:"#888"})},{f:e.t((null==l?void 0:l.display_text)||""),g:e.o((n=>{var t;return null==(t=e.unref(o.method))?void 0:t.handleCollapseAllCheckedBtn(i,l)}),`items_${i}`),h:e.t((null==l?void 0:l.pending_amount)||"0.00"),i:"1712258e-3-"+t,j:e.o((n=>{var t;return null==(t=e.unref(o.method))?void 0:t.handleCollapseClick(i,l)}),`items_${i}`),k:null==l?void 0:l.show},(null==l?void 0:l.show)?{l:e.f(null==l?void 0:l.bills,((l,u,r)=>e.e({a:null==l?void 0:l.checked},(null==l?void 0:l.checked)?{b:"1712258e-4-"+t+"-"+r,c:e.p({type:"checkbox-filled",size:"20",color:"#2A7EFB"})}:{d:"1712258e-5-"+t+"-"+r,e:e.p({type:"circle",size:"20",color:"#888"})},{f:"1712258e-6-"+t+"-"+r,g:e.p({Enums:e.unref(n.HouseBillsTypeEnum),value:null==l?void 0:l.type,objStyle:{color:"#555",fontSize:"28rpx"}}),h:e.t((null==l?void 0:l.total_payable_amount)||"-"),i:`ks_${i}_${u}`,j:e.o((n=>{var t;return null==(t=e.unref(o.method))?void 0:t.handleCalculatePrice(i,u,l)}),`ks_${i}_${u}`)})))}:{},{m:`items_${i}`}))),e:e.p({type:"down",size:"15",color:"#999"}),f:e.o(null==(g=e.unref(o.method))?void 0:g.handleQRCode),g:e.p({label:"二维码收款",size:"md",type:"ghost"}),h:e.o(null==(b=e.unref(o.method))?void 0:b.handleSelectExternalContact),i:e.p({type:"primary",size:"md",label:"分享账单"})})})});wx.createPage(t); +"use strict";const e=require("../../common/vendor.js"),o=require("./method.js"),l=require("./model.js"),n=require("../../gen/Enums.js"),i=require("../../common/libraries/userUserLogin.js");if(require("../../common/libraries/apiLoading.js"),require("../../gen/Apis.js"),require("../../common/libraries/request.js"),require("../../common/store/useWeAppAuthStore.js"),require("../../common/store/useWatermarkStore.js"),require("../../common/store/useWorkStore.js"),require("../../common/libraries/sendWxWork.js"),require("../../common/libraries/naviHelper.js"),!Array){(e.resolveComponent("hs-empty")+e.resolveComponent("uni-icons")+e.resolveComponent("hs-enum-tag")+e.resolveComponent("hs-button"))()}Math||((()=>"../../components/hs-empty/hs-empty.js")+(()=>"../../uni_modules/uni-icons/components/uni-icons/uni-icons.js")+(()=>"../../components/hs-enum-tag/hs-enum-tag.js")+(()=>"../../components/hs-button/hs-button.js"))();const r=e.defineComponent({__name:"index",setup:r=>(e.onLoad((async n=>{var r,t,u;await(null==(r=e.getCurrentInstance())?void 0:r.appContext.config.globalProperties.$onLaunched),l.useModel.formData.value=n,(null==(t=i.getUser)?void 0:t.getLoginStatus())&&(l.useModel.items.value=[],null==(u=o.method)||u.handleGetList())})),(i,r)=>{var t,u,s,d,a,m,c,v,p,h,f,g,j;return e.e({a:e.t(null==(s=null==(u=null==(t=e.unref(l.useModel))?void 0:t.formData)?void 0:u.value)?void 0:s.name),b:!(null==(m=null==(a=null==(d=e.unref(l.useModel))?void 0:d.items)?void 0:a.value)?void 0:m.length)},(null==(p=null==(v=null==(c=e.unref(l.useModel))?void 0:c.items)?void 0:v.value)?void 0:p.length)?{}:{c:e.p({text:"无账单"})},{d:e.f(null==(f=null==(h=e.unref(l.useModel))?void 0:h.items)?void 0:f.value,((l,i,r)=>e.e({a:null==l?void 0:l.checked},(null==l?void 0:l.checked)?{b:"1712258e-1-"+r,c:e.p({type:"checkbox-filled",size:"20",color:"#2A7EFB"})}:{d:"1712258e-2-"+r,e:e.p({type:"circle",size:"20",color:"#888"})},{f:e.t((null==l?void 0:l.display_text)||""),g:e.o((n=>{var r;return null==(r=e.unref(o.method))?void 0:r.handleCollapseAllCheckedBtn(i,l)}),`items_${i}`),h:e.t((null==l?void 0:l.pending_amount)||"0.00"),i:"1712258e-3-"+r,j:e.o((n=>{var r;return null==(r=e.unref(o.method))?void 0:r.handleCollapseClick(i,l)}),`items_${i}`),k:null==l?void 0:l.show},(null==l?void 0:l.show)?{l:e.f(null==l?void 0:l.bills,((l,t,u)=>e.e({a:null==l?void 0:l.checked},(null==l?void 0:l.checked)?{b:"1712258e-4-"+r+"-"+u,c:e.p({type:"checkbox-filled",size:"20",color:"#2A7EFB"})}:{d:"1712258e-5-"+r+"-"+u,e:e.p({type:"circle",size:"20",color:"#888"})},{f:"1712258e-6-"+r+"-"+u,g:e.p({Enums:e.unref(n.HouseBillsTypeEnum),value:null==l?void 0:l.type,objStyle:{color:"#555",fontSize:"28rpx"}}),h:e.t((null==l?void 0:l.total_payable_amount)||"-"),i:`ks_${i}_${t}`,j:e.o((n=>{var r;return null==(r=e.unref(o.method))?void 0:r.handleCalculatePrice(i,t,l)}),`ks_${i}_${t}`)})))}:{},{m:`items_${i}`}))),e:e.p({type:"down",size:"15",color:"#999"}),f:e.o(null==(g=e.unref(o.method))?void 0:g.handleQRCode),g:e.p({label:"二维码收款",size:"md",type:"ghost"}),h:e.o(null==(j=e.unref(o.method))?void 0:j.handleSelectExternalContact),i:e.p({type:"primary",size:"md",label:"分享账单"})})})});wx.createPage(r); diff --git a/dist/build/mp-weixin/CUSTOMER/list_bill/method.js b/dist/build/mp-weixin/CUSTOMER/list_bill/method.js index 615baef..7746374 100644 --- a/dist/build/mp-weixin/CUSTOMER/list_bill/method.js +++ b/dist/build/mp-weixin/CUSTOMER/list_bill/method.js @@ -1 +1 @@ -"use strict";const l=require("../../common/vendor.js"),e=require("./model.js"),o=require("../../common/libraries/apiLoading.js"),u=require("../../gen/Apis.js"),i=require("../../common/libraries/sendWxWork.js");require("../../common/libraries/request.js");const a=require("../../common/store/useWeAppAuthStore.js");require("../../common/store/useWorkStore.js");const d=require("../../common/libraries/naviHelper.js"),n=a.useWeAppAuthStore(),t=()=>{var l,i;o.getApiLoading(u.Apis.Bill.HouseBills.List,{...null==(i=null==(l=e.useModel)?void 0:l.formData)?void 0:i.value,type:1}).then((l=>{var o;null==(o=null==l?void 0:l.data)||o.map((l=>{var e;l.checked=!0,null==(e=null==l?void 0:l.bills)||e.map((l=>{l.checked=!0}))})),e.useModel.items.value=[...e.useModel.items.value,...null==l?void 0:l.data]}))},s=()=>{var l,o,u;let i=[];return null==(u=null==(o=null==(l=e.useModel)?void 0:l.items)?void 0:o.value)||u.map((l=>{var e,o;(null==(e=null==l?void 0:l.bills)?void 0:e.length)&&(null==(o=null==l?void 0:l.bills)||o.map((l=>{(null==l?void 0:l.checked)&&(null==i||i.push(null==l?void 0:l.id))})))})),(null==i?void 0:i.length)?(v(),i):(d.showToast("请至少选择一个月账单!"),!1)},v=()=>{var l,o,u;let i=0;null==(u=null==(o=null==(l=e.useModel)?void 0:l.items)?void 0:o.value)||u.map((l=>{var e;null==(e=null==l?void 0:l.bills)||e.map((l=>{(null==l?void 0:l.checked)&&(i+=parseFloat(l.amount||0))}))})),e.useModel.total_amount.value=i},r={handleGetList:t,handleCollapseClick:(l,o)=>{var u,i,a;let d=null==(a=null==(i=null==(u=e.useModel)?void 0:u.items)?void 0:i.value[l])?void 0:a.show;e.useModel.items.value[l].show=!d},hanldeSearch:l=>{var o,u;e.useModel.items.value=[],e.useModel.formData.value={...null==(u=null==(o=e.useModel)?void 0:o.formData)?void 0:u.value,...l,page:1},t()},handleCalculatePrice(l,o,u){var i;let a=null==u?void 0:u.checked;if(e.useModel.items.value[l].bills[o].checked=!a,a)e.useModel.items.value[l].checked=!1;else{let o=null==(i=e.useModel.items.value[l].bills)?void 0:i.every((l=>null==l?void 0:l.checked));e.useModel.items.value[l].checked=o,console.log(o)}},handleCollapseAllCheckedBtn:async(l,o)=>{var u,i,a,d;let n=null==o?void 0:o.checked;e.useModel.items.value[l].checked=!n,null==(d=null==(a=null==(i=null==(u=e.useModel)?void 0:u.items)?void 0:i.value[l])?void 0:a.bills)||d.map((l=>{l.checked=!n}))},handleQuery(e){l.index.navigateTo({url:`/INDEX/bill/show/index?asset_houses_id=${null==e?void 0:e.asset_houses_id}&month=${null==e?void 0:e.month}`}),console.log(e,"res")},handleSubmitOrder(){var i,a,n,t,s,v,r;let m=[];null==(n=null==(a=null==(i=e.useModel)?void 0:i.items)?void 0:a.value)||n.map((l=>{var e;null==(e=null==l?void 0:l.bills)||e.map((l=>{var e;null==(e=null==l?void 0:l.details)||e.map((e=>{(null==l?void 0:l.checked)&&m.push(null==e?void 0:e.id)}))}))})),(null==m?void 0:m.length)?o.getApiLoading(u.Apis.HouseOrder.HouseOrders.Store,{bill_ids:m,amount:null==(s=null==(t=e.useModel)?void 0:t.total_amount)?void 0:s.value,total_payable_amount:null==(r=null==(v=e.useModel)?void 0:v.total_amount)?void 0:r.value}).then((e=>{var o;l.index.navigateTo({url:`/INDEX/pay/index?id=${null==(o=null==e?void 0:e.data)?void 0:o.id}`})})):d.showToast("至少选择一个账单!")},handleQRCode(){var i,a,d,n;let t=s()||[];(null==t?void 0:t.length)&&o.getApiLoading(u.Apis.HouseOrder.HouseOrders.Store,{bill_ids:t||[],total_payable_amount:null==(a=null==(i=e.useModel)?void 0:i.total_amount)?void 0:a.value,amount:null==(n=null==(d=e.useModel)?void 0:d.total_amount)?void 0:n.value}).then((o=>{var u,i,a,d,n,t,s,v,r,m;l.index.navigateTo({url:`/BILL/poster/index?id=${null==(i=null==(u=e.useModel.formData)?void 0:u.value)?void 0:i.asset_houses_id}&order_id=${null==(a=null==o?void 0:o.data)?void 0:a.id}&time=${null==(d=null==o?void 0:o.data)?void 0:d.created_at}&name=${null==(t=null==(n=e.useModel.formData)?void 0:n.value)?void 0:t.name}&amount=${(null==(v=null==(s=e.useModel)?void 0:s.total_amount)?void 0:v.value)||(null==(m=null==(r=e.useModel)?void 0:r.total_amount)?void 0:m.value)}`})}))},handleSelectExternalContact(){var o;let u=s()||[];if(console.log(u,"bill_ids"),!(null==u?void 0:u.length))return!1;"wxwork"===(null==(o=null==n?void 0:n.data)?void 0:o.environment)?l.index.qy.getContext({success:function(l){var o,a,d;"single_chat_tools"===l.entry?i.sendChatMessage({page:`/INDEX/bill_order/index.html?bill_ids=${JSON.stringify(u)}&house_id=${e.useModel.formData.value.asset_houses_id}`,title:`分享给您${null==(d=null==(a=null==(o=e.useModel)?void 0:o.formData)?void 0:a.value)?void 0:d.name}物业账单`,imgUrl:"https://pay-prod-1369486729.cos.ap-guangzhou.myqcloud.com/uploads/cs-test/01K5B5RY2TQQAJ1GT2RZSK426V.jpg"}):i.navigateToMiniProgram({path:"/pages/forward/index?source=OutstandingFeeList",envVersion:"develop",extraData:{source:"OutstandingFeeList"}})}}):i.navigateToMiniProgram({path:"/pages/forward/index?source=OutstandingFeeList",envVersion:"develop",extraData:{source:"OutstandingFeeList"}})}};exports.method=r; +"use strict";const l=require("../../common/vendor.js"),e=require("./model.js"),o=require("../../common/libraries/apiLoading.js"),u=require("../../gen/Apis.js"),a=require("../../common/libraries/sendWxWork.js");require("../../common/libraries/request.js"),require("../../common/store/useWatermarkStore.js");const i=require("../../common/store/useWeAppAuthStore.js");require("../../common/store/useWorkStore.js");const n=require("../../common/libraries/naviHelper.js"),d=i.useWeAppAuthStore(),t=()=>{var l,a;o.getApiLoading(u.Apis.Bill.HouseBills.List,{...null==(a=null==(l=e.useModel)?void 0:l.formData)?void 0:a.value,type:1}).then((l=>{var o;null==(o=null==l?void 0:l.data)||o.map((l=>{var e;l.checked=!0,null==(e=null==l?void 0:l.bills)||e.map((l=>{l.checked=!0}))})),e.useModel.items.value=[...e.useModel.items.value,...null==l?void 0:l.data]}))},s=()=>{var l,o,u;let a=[];return null==(u=null==(o=null==(l=e.useModel)?void 0:l.items)?void 0:o.value)||u.map((l=>{var e,o;(null==(e=null==l?void 0:l.bills)?void 0:e.length)&&(null==(o=null==l?void 0:l.bills)||o.map((l=>{(null==l?void 0:l.checked)&&(null==a||a.push(null==l?void 0:l.id))})))})),(null==a?void 0:a.length)?(v(),a):(n.showToast("请至少选择一个月账单!"),!1)},v=()=>{var l,o,u;let a=0;null==(u=null==(o=null==(l=e.useModel)?void 0:l.items)?void 0:o.value)||u.map((l=>{var e;null==(e=null==l?void 0:l.bills)||e.map((l=>{(null==l?void 0:l.checked)&&(a+=parseFloat(l.amount||0))}))})),e.useModel.total_amount.value=a},r={handleGetList:t,handleCollapseClick:(l,o)=>{var u,a,i;let n=null==(i=null==(a=null==(u=e.useModel)?void 0:u.items)?void 0:a.value[l])?void 0:i.show;e.useModel.items.value[l].show=!n},hanldeSearch:l=>{var o,u;e.useModel.items.value=[],e.useModel.formData.value={...null==(u=null==(o=e.useModel)?void 0:o.formData)?void 0:u.value,...l,page:1},t()},handleCalculatePrice(l,o,u){var a;let i=null==u?void 0:u.checked;if(e.useModel.items.value[l].bills[o].checked=!i,i)e.useModel.items.value[l].checked=!1;else{let o=null==(a=e.useModel.items.value[l].bills)?void 0:a.every((l=>null==l?void 0:l.checked));e.useModel.items.value[l].checked=o,console.log(o)}},handleCollapseAllCheckedBtn:async(l,o)=>{var u,a,i,n;let d=null==o?void 0:o.checked;e.useModel.items.value[l].checked=!d,null==(n=null==(i=null==(a=null==(u=e.useModel)?void 0:u.items)?void 0:a.value[l])?void 0:i.bills)||n.map((l=>{l.checked=!d}))},handleQuery(e){l.index.navigateTo({url:`/INDEX/bill/show/index?asset_houses_id=${null==e?void 0:e.asset_houses_id}&month=${null==e?void 0:e.month}`}),console.log(e,"res")},handleSubmitOrder(){var a,i,d,t,s,v,r;let m=[];null==(d=null==(i=null==(a=e.useModel)?void 0:a.items)?void 0:i.value)||d.map((l=>{var e;null==(e=null==l?void 0:l.bills)||e.map((l=>{var e;null==(e=null==l?void 0:l.details)||e.map((e=>{(null==l?void 0:l.checked)&&m.push(null==e?void 0:e.id)}))}))})),(null==m?void 0:m.length)?o.getApiLoading(u.Apis.HouseOrder.HouseOrders.Store,{bill_ids:m,amount:null==(s=null==(t=e.useModel)?void 0:t.total_amount)?void 0:s.value,total_payable_amount:null==(r=null==(v=e.useModel)?void 0:v.total_amount)?void 0:r.value}).then((e=>{var o;l.index.navigateTo({url:`/INDEX/pay/index?id=${null==(o=null==e?void 0:e.data)?void 0:o.id}`})})):n.showToast("至少选择一个账单!")},handleQRCode(){var a,i,n,d;let t=s()||[];(null==t?void 0:t.length)&&o.getApiLoading(u.Apis.HouseOrder.HouseOrders.Store,{bill_ids:t||[],total_payable_amount:null==(i=null==(a=e.useModel)?void 0:a.total_amount)?void 0:i.value,amount:null==(d=null==(n=e.useModel)?void 0:n.total_amount)?void 0:d.value}).then((o=>{var u,a,i,n,d,t,s,v,r,m;l.index.navigateTo({url:`/BILL/poster/index?id=${null==(a=null==(u=e.useModel.formData)?void 0:u.value)?void 0:a.asset_houses_id}&order_id=${null==(i=null==o?void 0:o.data)?void 0:i.id}&time=${null==(n=null==o?void 0:o.data)?void 0:n.created_at}&name=${null==(t=null==(d=e.useModel.formData)?void 0:d.value)?void 0:t.name}&amount=${(null==(v=null==(s=e.useModel)?void 0:s.total_amount)?void 0:v.value)||(null==(m=null==(r=e.useModel)?void 0:r.total_amount)?void 0:m.value)}`})}))},handleSelectExternalContact(){var o;let u=s()||[];if(console.log(u,"bill_ids"),!(null==u?void 0:u.length))return!1;"wxwork"===(null==(o=null==d?void 0:d.data)?void 0:o.environment)?l.index.qy.getContext({success:function(l){var o,i,n;"single_chat_tools"===l.entry?a.sendChatMessage({page:`/INDEX/bill_order/index.html?bill_ids=${JSON.stringify(u)}&house_id=${e.useModel.formData.value.asset_houses_id}`,title:`分享给您${null==(n=null==(i=null==(o=e.useModel)?void 0:o.formData)?void 0:i.value)?void 0:n.name}物业账单`,imgUrl:"https://pay-prod-1369486729.cos.ap-guangzhou.myqcloud.com/uploads/cs-test/01K5B5RY2TQQAJ1GT2RZSK426V.jpg"}):a.navigateToMiniProgram({path:"/pages/forward/index?source=OutstandingFeeList",envVersion:"develop",extraData:{source:"OutstandingFeeList"}})}}):a.navigateToMiniProgram({path:"/pages/forward/index?source=OutstandingFeeList",envVersion:"develop",extraData:{source:"OutstandingFeeList"}})}};exports.method=r; diff --git a/dist/build/mp-weixin/CUSTOMER/list_house/components/SearchBox.js b/dist/build/mp-weixin/CUSTOMER/list_house/components/SearchBox.js index dfb5593..cb59148 100644 --- a/dist/build/mp-weixin/CUSTOMER/list_house/components/SearchBox.js +++ b/dist/build/mp-weixin/CUSTOMER/list_house/components/SearchBox.js @@ -1 +1 @@ -"use strict";const e=require("../../../common/vendor.js"),o=require("../method.js"),n=require("../model.js");if(require("../../../gen/Apis.js"),require("../../../common/libraries/request.js"),require("../../../common/store/useWeAppAuthStore.js"),require("../../../common/libraries/apiLoading.js"),require("../../../common/store/useWorkStore.js"),require("../../../common/libraries/userUserLogin.js"),!Array){(e.resolveComponent("up-search")+e.resolveComponent("uni-icons")+e.resolveComponent("hs-popup"))()}Math||((()=>"../../../node-modules/uview-plus/components/u-search/u-search.js")+(()=>"../../../uni_modules/uni-icons/components/uni-icons/uni-icons.js")+(()=>"../../../components/hs-popup/hs-popup.js"))();const r=e.defineComponent({__name:"SearchBox",setup(r){const s=e.ref(!1);return(r,u)=>{var i,a,l;return{a:e.o(null==(i=e.unref(o.method))?void 0:i.handleSearch),b:e.o((o=>e.unref(n.useModel).formData.value.name=o)),c:e.p({placeholder:"请输入房号",showAction:!1,modelValue:e.unref(n.useModel).formData.value.name}),d:e.f(null==(l=null==(a=e.unref(n.useModel))?void 0:a.buildingData)?void 0:l.value,((r,s,u)=>({a:e.t(null==r?void 0:r.name),b:`items_${s}`,c:e.n("tab_item "+(e.unref(n.useModel).formData.value.asset_buildings_id===(null==r?void 0:r.id)?"tab_active":"")),d:e.o((n=>{var s;return null==(s=e.unref(o.method))?void 0:s.handleChangeBuilding(r)}),`items_${s}`)}))),e:e.p({type:"help",size:"20",color:"#666"}),f:e.o((e=>s.value=!0)),g:e.o((e=>s.value=!1)),h:e.p({show:s.value,mode:"bottom",closeable:!0,round:20})}}}}),s=e._export_sfc(r,[["__scopeId","data-v-e0d750a4"]]);wx.createComponent(s); +"use strict";const e=require("../../../common/vendor.js"),o=require("../method.js"),r=require("../model.js");if(require("../../../gen/Apis.js"),require("../../../common/libraries/request.js"),require("../../../common/store/useWeAppAuthStore.js"),require("../../../common/libraries/apiLoading.js"),require("../../../common/store/useWatermarkStore.js"),require("../../../common/store/useWorkStore.js"),require("../../../common/libraries/userUserLogin.js"),!Array){(e.resolveComponent("up-search")+e.resolveComponent("uni-icons")+e.resolveComponent("hs-popup"))()}Math||((()=>"../../../node-modules/uview-plus/components/u-search/u-search.js")+(()=>"../../../uni_modules/uni-icons/components/uni-icons/uni-icons.js")+(()=>"../../../components/hs-popup/hs-popup.js"))();const n=e.defineComponent({__name:"SearchBox",setup(n){const s=e.ref(!1);return(n,u)=>{var i,a,t;return{a:e.o(null==(i=e.unref(o.method))?void 0:i.handleSearch),b:e.o((o=>e.unref(r.useModel).formData.value.name=o)),c:e.p({placeholder:"请输入房号",showAction:!1,modelValue:e.unref(r.useModel).formData.value.name}),d:e.f(null==(t=null==(a=e.unref(r.useModel))?void 0:a.buildingData)?void 0:t.value,((n,s,u)=>({a:e.t(null==n?void 0:n.name),b:`items_${s}`,c:e.n("tab_item "+(e.unref(r.useModel).formData.value.asset_buildings_id===(null==n?void 0:n.id)?"tab_active":"")),d:e.o((r=>{var s;return null==(s=e.unref(o.method))?void 0:s.handleChangeBuilding(n)}),`items_${s}`)}))),e:e.p({type:"help",size:"20",color:"#666"}),f:e.o((e=>s.value=!0)),g:e.o((e=>s.value=!1)),h:e.p({show:s.value,mode:"bottom",closeable:!0,round:20})}}}}),s=e._export_sfc(n,[["__scopeId","data-v-e0d750a4"]]);wx.createComponent(s); diff --git a/dist/build/mp-weixin/CUSTOMER/list_house/index.js b/dist/build/mp-weixin/CUSTOMER/list_house/index.js index 93724ac..d22c9cf 100644 --- a/dist/build/mp-weixin/CUSTOMER/list_house/index.js +++ b/dist/build/mp-weixin/CUSTOMER/list_house/index.js @@ -1 +1 @@ -"use strict";const e=require("../../common/vendor.js"),o=require("./model.js"),r=require("./method.js");if(require("../../gen/Apis.js"),require("../../common/libraries/request.js"),require("../../common/store/useWeAppAuthStore.js"),require("../../common/libraries/apiLoading.js"),require("../../common/store/useWorkStore.js"),require("../../common/libraries/userUserLogin.js"),!Array){e.resolveComponent("hs-empty")()}Math||(n+(()=>"../../components/hs-empty/hs-empty.js"))();const n=()=>"./components/SearchBox.js",s=e.defineComponent({__name:"index",setup:n=>(e.onLoad((()=>{r.method.getGridAssetBuilding()})),(n,s)=>{var l,t,i,u,a,d,m,v;return e.e({a:!(null==(i=null==(t=null==(l=e.unref(o.useModel))?void 0:l.listData)?void 0:t.value)?void 0:i.length)},(null==(d=null==(a=null==(u=e.unref(o.useModel))?void 0:u.listData)?void 0:a.value)||d.length,{}),{b:e.f(null==(v=null==(m=e.unref(o.useModel))?void 0:m.listData)?void 0:v.value,((o,n,s)=>({a:e.t(null==o?void 0:o.floor),b:e.f(null==o?void 0:o.houses,((o,s,l)=>({a:e.t(null==o?void 0:o.name),b:e.t((null==o?void 0:o.has_arrear)?"欠费":"结清"),c:e.n(`status status_${null==o?void 0:o.has_arrear}`),d:`item_${n}_${s}`,e:e.o((n=>{var s;return null==(s=e.unref(r.method))?void 0:s.toDetaile(o)}),`item_${n}_${s}`)}))),c:`item_${n}`})))})})});wx.createPage(s); +"use strict";const e=require("../../common/vendor.js"),o=require("./model.js"),r=require("./method.js");if(require("../../gen/Apis.js"),require("../../common/libraries/request.js"),require("../../common/store/useWeAppAuthStore.js"),require("../../common/libraries/apiLoading.js"),require("../../common/store/useWatermarkStore.js"),require("../../common/store/useWorkStore.js"),require("../../common/libraries/userUserLogin.js"),!Array){e.resolveComponent("hs-empty")()}Math||(s+(()=>"../../components/hs-empty/hs-empty.js"))();const s=()=>"./components/SearchBox.js",n=e.defineComponent({__name:"index",setup:s=>(e.onLoad((()=>{r.method.getGridAssetBuilding()})),(s,n)=>{var t,u,i,l,a,m,d,v;return e.e({a:!(null==(i=null==(u=null==(t=e.unref(o.useModel))?void 0:t.listData)?void 0:u.value)?void 0:i.length)},(null==(m=null==(a=null==(l=e.unref(o.useModel))?void 0:l.listData)?void 0:a.value)||m.length,{}),{b:e.f(null==(v=null==(d=e.unref(o.useModel))?void 0:d.listData)?void 0:v.value,((o,s,n)=>({a:e.t(null==o?void 0:o.floor),b:e.f(null==o?void 0:o.houses,((o,n,t)=>({a:e.t(null==o?void 0:o.name),b:e.t((null==o?void 0:o.has_arrear)?"欠费":"结清"),c:e.n(`status status_${null==o?void 0:o.has_arrear}`),d:`item_${s}_${n}`,e:e.o((s=>{var n;return null==(n=e.unref(r.method))?void 0:n.toDetaile(o)}),`item_${s}_${n}`)}))),c:`item_${s}`})))})})});wx.createPage(n); diff --git a/dist/build/mp-weixin/CUSTOMER/list_user/index.js b/dist/build/mp-weixin/CUSTOMER/list_user/index.js index c644246..3d413da 100644 --- a/dist/build/mp-weixin/CUSTOMER/list_user/index.js +++ b/dist/build/mp-weixin/CUSTOMER/list_user/index.js @@ -1 +1 @@ -"use strict";const e=require("../../common/vendor.js"),o=require("./model.js"),n=require("./method.js"),l=require("../../gen/Enums.js");if(require("../../gen/Apis.js"),require("../../common/libraries/request.js"),require("../../common/store/useWeAppAuthStore.js"),require("../../common/libraries/apiLoading.js"),require("../../common/store/useWorkStore.js"),!Array){(e.resolveComponent("up-search")+e.resolveComponent("up-avatar")+e.resolveComponent("hs-enum-tag")+e.resolveComponent("uni-icons")+e.resolveComponent("cc-scroll-loading"))()}Math||((()=>"../../node-modules/uview-plus/components/u-search/u-search.js")+(()=>"../../node-modules/uview-plus/components/u-avatar/u-avatar.js")+(()=>"../../components/hs-enum-tag/hs-enum-tag.js")+(()=>"../../uni_modules/uni-icons/components/uni-icons/uni-icons.js")+(()=>"../../common/components/cc-scroll-loading/cc-scroll-loading.js"))();const u=e.defineComponent({__name:"index",setup:u=>(e.onLoad((()=>{var e;null==(e=n.method)||e.getList()})),e.onUnload((()=>{o.useModel.listData.value=[]})),(u,i)=>{var s,r,a,d,t,c;return{a:e.o(null==(s=e.unref(n.method))?void 0:s.handleSearch),b:e.o((n=>e.unref(o.useModel).formData.value.keyword=n)),c:e.p({placeholder:"搜索房号/手机号/姓名",showAction:!1,modelValue:e.unref(o.useModel).formData.value.keyword}),d:e.f(null==(a=null==(r=e.unref(o.useModel))?void 0:r.listData)?void 0:a.value,((o,n,u)=>({a:e.t(null==o?void 0:o.house_name),b:e.f(null==o?void 0:o.occupants,((n,i,s)=>e.e({a:"508bcffd-2-"+u+"-"+s+",508bcffd-1",b:e.t(null==n?void 0:n.name),c:e.t(null==n?void 0:n.phone),d:"Owner"===(null==n?void 0:n.house_relation)},(null==n||n.house_relation,{}),(null==o||o.is_contact,{}),{e:null==n?void 0:n.residential_relation},(null==n?void 0:n.residential_relation)?{f:"508bcffd-3-"+u+"-"+s+",508bcffd-1",g:e.p({Enums:e.unref(l.HouseOccupantsResidentialRelationEnum),value:null==n?void 0:n.residential_relation})}:{},{h:"508bcffd-4-"+u+"-"+s+",508bcffd-1",i:e.o((o=>{return l=n,void e.index.navigateTo({url:`/CUSTOMER/show/index?id=${null==l?void 0:l.id}`});var l}),null==o?void 0:o.index)}))),c:null==o?void 0:o.is_contact,d:null==o?void 0:o.index,e:`customer_${null==o?void 0:o.index}`}))),e:e.p({type:"right",size:"13",color:"#999"}),f:e.o(null==(d=e.unref(n.method))?void 0:d.handleLoad),g:e.p({meta:null==(c=null==(t=e.unref(o.useModel))?void 0:t.metaData)?void 0:c.value})}})});wx.createPage(u); +"use strict";const e=require("../../common/vendor.js"),o=require("../../gen/Enums.js"),n=require("./method.js"),l=require("./model.js");if(require("../../gen/Apis.js"),require("../../common/libraries/request.js"),require("../../common/store/useWeAppAuthStore.js"),require("../../common/libraries/apiLoading.js"),require("../../common/store/useWatermarkStore.js"),require("../../common/store/useWorkStore.js"),!Array){(e.resolveComponent("up-search")+e.resolveComponent("up-avatar")+e.resolveComponent("hs-enum-tag")+e.resolveComponent("uni-icons")+e.resolveComponent("cc-scroll-loading"))()}Math||((()=>"../../node-modules/uview-plus/components/u-search/u-search.js")+(()=>"../../node-modules/uview-plus/components/u-avatar/u-avatar.js")+(()=>"../../components/hs-enum-tag/hs-enum-tag.js")+(()=>"../../uni_modules/uni-icons/components/uni-icons/uni-icons.js")+(()=>"../../common/components/cc-scroll-loading/cc-scroll-loading.js"))();const u=e.defineComponent({__name:"index",setup:u=>(e.onLoad((()=>{var e;null==(e=n.method)||e.getList()})),e.onUnload((()=>{l.useModel.listData.value=[]})),(u,i)=>{var r,s,a,t,d,c;return{a:e.o(null==(r=e.unref(n.method))?void 0:r.handleSearch),b:e.o((o=>e.unref(l.useModel).formData.value.keyword=o)),c:e.p({placeholder:"搜索房号/手机号/姓名",showAction:!1,modelValue:e.unref(l.useModel).formData.value.keyword}),d:e.f(null==(a=null==(s=e.unref(l.useModel))?void 0:s.listData)?void 0:a.value,((n,l,u)=>({a:e.t(null==n?void 0:n.house_name),b:e.f(null==n?void 0:n.occupants,((l,i,r)=>e.e({a:"508bcffd-2-"+u+"-"+r+",508bcffd-1",b:e.t(null==l?void 0:l.name),c:e.t(null==l?void 0:l.phone),d:"Owner"===(null==l?void 0:l.house_relation)},(null==l||l.house_relation,{}),(null==n||n.is_contact,{}),{e:"NonOwner"===(null==l?void 0:l.house_relation)&&(null==l?void 0:l.residential_relation)},"NonOwner"===(null==l?void 0:l.house_relation)&&(null==l?void 0:l.residential_relation)?{f:"508bcffd-3-"+u+"-"+r+",508bcffd-1",g:e.p({Enums:e.unref(o.HouseOccupantsResidentialRelationEnum),value:null==l?void 0:l.residential_relation})}:{},{h:"508bcffd-4-"+u+"-"+r+",508bcffd-1",i:e.o((o=>{return n=l,void e.index.navigateTo({url:`/CUSTOMER/show/index?id=${null==n?void 0:n.id}`});var n}),null==n?void 0:n.index)}))),c:null==n?void 0:n.is_contact,d:null==n?void 0:n.index,e:`customer_${null==n?void 0:n.index}`}))),e:e.p({type:"right",size:"13",color:"#999"}),f:e.o(null==(t=e.unref(n.method))?void 0:t.handleLoad),g:e.p({meta:null==(c=null==(d=e.unref(l.useModel))?void 0:d.metaData)?void 0:c.value})}})});wx.createPage(u); diff --git a/dist/build/mp-weixin/CUSTOMER/list_user/index.json b/dist/build/mp-weixin/CUSTOMER/list_user/index.json index 6f9b42e..f0e9862 100644 --- a/dist/build/mp-weixin/CUSTOMER/list_user/index.json +++ b/dist/build/mp-weixin/CUSTOMER/list_user/index.json @@ -1,5 +1,5 @@ { - "navigationBarTitleText": "用户列表", + "navigationBarTitleText": "客户列表", "usingComponents": { "up-search": "../../node-modules/uview-plus/components/u-search/u-search", "up-avatar": "../../node-modules/uview-plus/components/u-avatar/u-avatar", diff --git a/dist/build/mp-weixin/CUSTOMER/show/index.js b/dist/build/mp-weixin/CUSTOMER/show/index.js index fb57d75..3d82e84 100644 --- a/dist/build/mp-weixin/CUSTOMER/show/index.js +++ b/dist/build/mp-weixin/CUSTOMER/show/index.js @@ -1 +1 @@ -"use strict";const e=require("../../common/vendor.js"),o=require("./method.js"),n=require("./model.js"),l=require("../../gen/Enums.js");if(require("../../gen/Apis.js"),require("../../common/libraries/request.js"),require("../../common/store/useWeAppAuthStore.js"),require("../../common/libraries/apiLoading.js"),require("../../common/store/useWorkStore.js"),require("../../common/libraries/sendWxWork.js"),require("../../common/libraries/naviHelper.js"),!Array){(e.resolveComponent("up-avatar")+e.resolveComponent("hs-cell")+e.resolveComponent("hs-enum-tag")+e.resolveComponent("uni-icons")+e.resolveComponent("hs-empty")+e.resolveComponent("hs-footer"))()}Math||((()=>"../../node-modules/uview-plus/components/u-avatar/u-avatar.js")+(()=>"../../components/hs-cell/hs-cell.js")+(()=>"../../components/hs-enum-tag/hs-enum-tag.js")+(()=>"../../uni_modules/uni-icons/components/uni-icons/uni-icons.js")+(()=>"../../components/hs-empty/hs-empty.js")+(()=>"../../components/hs-footer/hs-footer.js"))();const u=e.defineComponent({__name:"index",setup(u){const s=o=>{e.index.navigateTo({url:o})};return e.onLoad((async n=>{var l,u;await(null==(l=e.getCurrentInstance())?void 0:l.appContext.config.globalProperties.$onLaunched),null==(u=o.method)||u.getShow(null==n?void 0:n.id)})),(u,i)=>{var r,a,t,d,v,m,h,p,c,_,f,g,j,b,q,C;return e.e({a:e.p({size:"50px"}),b:e.t((null==(t=null==(a=null==(r=e.unref(n.useModel))?void 0:r.showData)?void 0:a.value)?void 0:t.name)||"请补充姓名"),c:e.p({title:"手机号",placeholder:"手机号码信息缺失",value:null==(m=null==(v=null==(d=e.unref(n.useModel))?void 0:d.showData)?void 0:v.value)?void 0:m.phone}),d:e.o((o=>{var l,u,i,r,a,t;return s(`/CUSTOMER/assets/index?name=${null==(i=null==(u=null==(l=e.unref(n.useModel))?void 0:l.showData)?void 0:u.value)?void 0:i.name}&phone=${null==(t=null==(a=null==(r=e.unref(n.useModel))?void 0:r.showData)?void 0:a.value)?void 0:t.phone}`)})),e:e.f(null==(p=null==(h=e.unref(n.useModel))?void 0:h.userHouse)?void 0:p.value,((o,n,u)=>{var i,r,a,t;return e.e({a:e.t(null==(i=null==o?void 0:o.asset_project)?void 0:i.name),b:e.t(null==(r=null==o?void 0:o.asset_building)?void 0:r.name),c:e.t(null==(a=null==o?void 0:o.asset_unit)?void 0:a.name),d:e.t(null==(t=null==o?void 0:o.asset_house)?void 0:t.name),e:"Owner"===(null==o?void 0:o.house_relation)},"Owner"===(null==o?void 0:o.house_relation)?{}:{f:"9c5679fc-2-"+u,g:e.p({Enums:e.unref(l.HouseOccupantsResidentialRelationEnum),value:null==o?void 0:o.residential_relation})},{h:"9c5679fc-3-"+u,i:`items_${n}`,j:e.o((e=>s(`/BILL/outstanding_fee/show/index?id=${null==o?void 0:o.asset_houses_id}`)),`items_${n}`)})})),f:e.p({type:"right",size:"13",color:"#999"}),g:!(null==(f=null==(_=null==(c=e.unref(n.useModel))?void 0:c.arrearageHouses)?void 0:_.value)?void 0:f.length)},(null==(b=null==(j=null==(g=e.unref(n.useModel))?void 0:g.arrearageHouses)?void 0:j.value)?void 0:b.length)?{}:{h:e.p({baseStyle:{height:"200rpx",padding:"30rpx 0"}})},{i:e.f(null==(C=null==(q=e.unref(n.useModel))?void 0:q.arrearageHouses)?void 0:C.value,((n,l,u)=>({a:e.t(null==n?void 0:n.full_name),b:e.t(null==n?void 0:n.total_overdue_amount),c:e.o((e=>s(`/CUSTOMER/list_bill/index?asset_houses_id=${null==n?void 0:n.asset_houses_id}&name=${null==n?void 0:n.full_name}`)),`items_${l}`),d:e.o((n=>{var l;return null==(l=e.unref(o.method))?void 0:l.shareBill()}),`items_${l}`),e:`items_${l}`}))),j:e.o((n=>{var l;return null==(l=e.unref(o.method))?void 0:l.handleMakePhoneCall()})),k:e.p({btnParimaryName:"拨打电话"})})}}});wx.createPage(u); +"use strict";const e=require("../../common/vendor.js"),o=require("./method.js"),n=require("./model.js"),l=require("../../gen/Enums.js");if(require("../../gen/Apis.js"),require("../../common/libraries/request.js"),require("../../common/store/useWeAppAuthStore.js"),require("../../common/libraries/apiLoading.js"),require("../../common/store/useWatermarkStore.js"),require("../../common/store/useWorkStore.js"),require("../../common/libraries/sendWxWork.js"),require("../../common/libraries/naviHelper.js"),!Array){(e.resolveComponent("up-avatar")+e.resolveComponent("hs-cell")+e.resolveComponent("hs-enum-tag")+e.resolveComponent("uni-icons")+e.resolveComponent("hs-empty")+e.resolveComponent("hs-footer"))()}Math||((()=>"../../node-modules/uview-plus/components/u-avatar/u-avatar.js")+(()=>"../../components/hs-cell/hs-cell.js")+(()=>"../../components/hs-enum-tag/hs-enum-tag.js")+(()=>"../../uni_modules/uni-icons/components/uni-icons/uni-icons.js")+(()=>"../../components/hs-empty/hs-empty.js")+(()=>"../../components/hs-footer/hs-footer.js"))();const u=e.defineComponent({__name:"index",setup(u){const s=o=>{e.index.navigateTo({url:o})};return e.onLoad((async n=>{var l,u;await(null==(l=e.getCurrentInstance())?void 0:l.appContext.config.globalProperties.$onLaunched),null==(u=o.method)||u.getShow(null==n?void 0:n.id)})),(u,i)=>{var r,a,t,d,v,m,h,p,c,_,f,g,j,q,b,C;return e.e({a:e.p({size:"50px"}),b:e.t((null==(t=null==(a=null==(r=e.unref(n.useModel))?void 0:r.showData)?void 0:a.value)?void 0:t.name)||"请补充姓名"),c:e.p({title:"手机号",placeholder:"手机号码信息缺失",value:null==(m=null==(v=null==(d=e.unref(n.useModel))?void 0:d.showData)?void 0:v.value)?void 0:m.phone}),d:e.o((o=>{var l,u,i,r,a,t;return s(`/CUSTOMER/assets/index?name=${null==(i=null==(u=null==(l=e.unref(n.useModel))?void 0:l.showData)?void 0:u.value)?void 0:i.name}&phone=${null==(t=null==(a=null==(r=e.unref(n.useModel))?void 0:r.showData)?void 0:a.value)?void 0:t.phone}`)})),e:e.f(null==(p=null==(h=e.unref(n.useModel))?void 0:h.userHouse)?void 0:p.value,((o,n,u)=>{var i,r,a,t;return e.e({a:e.t(null==(i=null==o?void 0:o.asset_project)?void 0:i.name),b:e.t(null==(r=null==o?void 0:o.asset_building)?void 0:r.name),c:e.t(null==(a=null==o?void 0:o.asset_unit)?void 0:a.name),d:e.t(null==(t=null==o?void 0:o.asset_house)?void 0:t.name),e:"Owner"===(null==o?void 0:o.house_relation)},"Owner"===(null==o?void 0:o.house_relation)?{}:{f:"9c5679fc-2-"+u,g:e.p({Enums:e.unref(l.HouseOccupantsResidentialRelationEnum),value:null==o?void 0:o.residential_relation})},{h:"9c5679fc-3-"+u,i:`items_${n}`,j:e.o((e=>s(`/BILL/outstanding_fee/show/index?id=${null==o?void 0:o.asset_houses_id}`)),`items_${n}`)})})),f:e.p({type:"right",size:"13",color:"#999"}),g:!(null==(f=null==(_=null==(c=e.unref(n.useModel))?void 0:c.arrearageHouses)?void 0:_.value)?void 0:f.length)},(null==(q=null==(j=null==(g=e.unref(n.useModel))?void 0:g.arrearageHouses)?void 0:j.value)?void 0:q.length)?{}:{h:e.p({baseStyle:{height:"200rpx",padding:"30rpx 0"}})},{i:e.f(null==(C=null==(b=e.unref(n.useModel))?void 0:b.arrearageHouses)?void 0:C.value,((n,l,u)=>({a:e.t(null==n?void 0:n.full_name),b:e.t(null==n?void 0:n.total_overdue_amount),c:e.o((e=>s(`/CUSTOMER/list_bill/index?asset_houses_id=${null==n?void 0:n.asset_houses_id}&name=${null==n?void 0:n.full_name}`)),`items_${l}`),d:e.o((n=>{var l;return null==(l=e.unref(o.method))?void 0:l.shareBill()}),`items_${l}`),e:`items_${l}`}))),j:e.o((n=>{var l;return null==(l=e.unref(o.method))?void 0:l.handleMakePhoneCall()})),k:e.p({btnParimaryName:"拨打电话"})})}}});wx.createPage(u); diff --git a/dist/build/mp-weixin/CUSTOMER/update/index.js b/dist/build/mp-weixin/CUSTOMER/update/index.js index 561076e..6a1a806 100644 --- a/dist/build/mp-weixin/CUSTOMER/update/index.js +++ b/dist/build/mp-weixin/CUSTOMER/update/index.js @@ -1 +1 @@ -"use strict";const e=require("../../common/vendor.js"),o=require("./model.js");if(require("../../common/libraries/request.js"),require("../../common/store/useWeAppAuthStore.js"),require("../../common/store/useWorkStore.js"),require("../../gen/Apis.js"),require("../../common/libraries/apiLoading.js"),!Array){(e.resolveComponent("hs-input")+e.resolveComponent("hs-cell")+e.resolveComponent("hs-footer"))()}Math||((()=>"../../components/hs-input/hs-input.js")+(()=>"../../components/hs-cell/hs-cell.js")+(()=>"../../components/hs-footer/hs-footer.js"))();const r=e.defineComponent({__name:"index",setup:r=>(e.onLoad((e=>{console.log(e),o.useModel.formData.value=e})),(r,t)=>({a:e.o((r=>e.unref(o.useModel).formData.value.name=r)),b:e.p({type:"text",textAlign:"right",valueModel:e.unref(o.useModel).formData.value.name}),c:e.p({title:"客户姓名",required:!0,borderTop:!0}),d:e.o((r=>e.unref(o.useModel).formData.value.phone=r)),e:e.p({maxLength:"11",type:"number",textAlign:"right",disabled:!0,valueModel:e.unref(o.useModel).formData.value.phone}),f:e.p({title:"手机号码",required:!0,borderTop:!0}),g:e.p({btnParimaryName:"保存"})}))});wx.createPage(r); +"use strict";const e=require("../../common/vendor.js"),o=require("./model.js");if(require("../../common/libraries/request.js"),require("../../common/store/useWatermarkStore.js"),require("../../common/store/useWeAppAuthStore.js"),require("../../common/store/useWorkStore.js"),require("../../gen/Apis.js"),require("../../common/libraries/apiLoading.js"),!Array){(e.resolveComponent("hs-input")+e.resolveComponent("hs-cell")+e.resolveComponent("hs-footer"))()}Math||((()=>"../../components/hs-input/hs-input.js")+(()=>"../../components/hs-cell/hs-cell.js")+(()=>"../../components/hs-footer/hs-footer.js"))();const r=e.defineComponent({__name:"index",setup:r=>(e.onLoad((e=>{console.log(e),o.useModel.formData.value=e})),(r,t)=>({a:e.o((r=>e.unref(o.useModel).formData.value.name=r)),b:e.p({type:"text",textAlign:"right",valueModel:e.unref(o.useModel).formData.value.name}),c:e.p({title:"客户姓名",required:!0,borderTop:!0}),d:e.o((r=>e.unref(o.useModel).formData.value.phone=r)),e:e.p({maxLength:"11",type:"number",textAlign:"right",disabled:!0,valueModel:e.unref(o.useModel).formData.value.phone}),f:e.p({title:"手机号码",required:!0,borderTop:!0}),g:e.p({btnParimaryName:"保存"})}))});wx.createPage(r); diff --git a/dist/build/mp-weixin/INDEX/pass/index.js b/dist/build/mp-weixin/INDEX/pass/index.js new file mode 100644 index 0000000..186efb3 --- /dev/null +++ b/dist/build/mp-weixin/INDEX/pass/index.js @@ -0,0 +1 @@ +"use strict";const e=require("../../common/vendor.js"),l=require("../../gen/Enums.js"),o=require("./method.js"),u=require("./model.js");if(require("../../common/libraries/apiLoading.js"),require("../../common/libraries/day.js"),require("../../common/libraries/naviHelper.js"),require("../../gen/Apis.js"),require("../../common/libraries/request.js"),require("../../common/store/useWeAppAuthStore.js"),require("../../common/store/useWatermarkStore.js"),require("../../common/store/useWorkStore.js"),!Array){(e.resolveComponent("uni-icons")+e.resolveComponent("u-avatar")+e.resolveComponent("hs-footer"))()}Math||((()=>"../../uni_modules/uni-icons/components/uni-icons/uni-icons.js")+(()=>"../../node-modules/uview-plus/components/u-avatar/u-avatar.js")+(()=>"../../components/hs-footer/hs-footer.js"))();const n=e.defineComponent({__name:"index",setup:n=>(e.onLoad((e=>{var l;null==(l=o.method)||l.getShow(e),console.log(e)})),(n,i)=>{var r,s,d,v,a,t,m,p,f,h,c,M,w,j,_,q,D,x,b,k,E,S,g,A,y,C,F,W,z,I,L,N,O,P,H,V,$,B,G,J,K,Q,R,T,U,X,Y,Z,ee,le,oe,ue,ne,ie,re,se,de,ve,ae;return e.e({a:null==(s=null==(r=e.unref(u.useModel))?void 0:r.isExpired)?void 0:s.value},(null==(v=null==(d=e.unref(u.useModel))?void 0:d.isExpired)?void 0:v.value)?{b:e.p({type:"info",size:"50",color:"#FF4D4F"})}:{c:e.p({src:(null==(m=null==(t=null==(a=e.unref(u.useModel))?void 0:a.userInfo)?void 0:t.value)?void 0:m.worker_photo)&&(null==(c=null==(h=null==(f=null==(p=e.unref(u.useModel))?void 0:p.userInfo)?void 0:f.value)?void 0:h.worker_photo[0])?void 0:c.url),size:"70"}),d:e.t((null==(j=null==(w=null==(M=e.unref(u.useModel))?void 0:M.showData)?void 0:w.value)?void 0:j.visitor_name)||"-"),e:e.t((null==(D=null==(q=null==(_=e.unref(u.useModel))?void 0:_.showData)?void 0:q.value)?void 0:D.visitor_phone)||"-")},{f:e.t((null==(E=null==(k=null==(b=null==(x=e.unref(u.useModel))?void 0:x.showData)?void 0:b.value)?void 0:k.asset_house)?void 0:E.full_name)||"-"),g:null==(g=null==(S=e.unref(u.useModel))?void 0:S.isExpired)?void 0:g.value},(null==(y=null==(A=e.unref(u.useModel))?void 0:A.isExpired)?void 0:y.value)?{}:{h:e.t(null==(z=e.unref(l.VisitorAppliesStatusEnum)[null==(W=null==(F=null==(C=e.unref(u.useModel))?void 0:C.showData)?void 0:F.value)?void 0:W.status])?void 0:z.text),i:e.n(`value status_${null==(N=null==(L=null==(I=e.unref(u.useModel))?void 0:I.showData)?void 0:L.value)?void 0:N.status}`)},{j:null==(H=null==(P=null==(O=e.unref(u.useModel))?void 0:O.showData)?void 0:P.value)?void 0:H.remark},(null==(B=null==($=null==(V=e.unref(u.useModel))?void 0:V.showData)?void 0:$.value)?void 0:B.remark)?{k:e.t((null==(K=null==(J=null==(G=e.unref(u.useModel))?void 0:G.showData)?void 0:J.value)?void 0:K.remark)||"-")}:{},{l:e.t((null==(U=null==(T=null==(R=null==(Q=e.unref(u.useModel))?void 0:Q.showData)?void 0:R.value)?void 0:T.last_enter_record)?void 0:U.enter_time)||"-"),m:e.t((null==(ee=null==(Z=null==(Y=null==(X=e.unref(u.useModel))?void 0:X.showData)?void 0:Y.value)?void 0:Z.last_exit_record)?void 0:ee.exit_time)||"-"),n:"Approved"===(null==(ue=null==(oe=null==(le=e.unref(u.useModel))?void 0:le.showData)?void 0:oe.value)?void 0:ue.status)&&!(null==(ie=null==(ne=e.unref(u.useModel))?void 0:ne.isExpired)?void 0:ie.value)},"Approved"!==(null==(de=null==(se=null==(re=e.unref(u.useModel))?void 0:re.showData)?void 0:se.value)?void 0:de.status)||(null==(ae=null==(ve=e.unref(u.useModel))?void 0:ve.isExpired)?void 0:ae.value)?{}:{o:e.o((l=>{var u;return null==(u=e.unref(o.method))?void 0:u.handleSubmit("enter")})),p:e.o((l=>{var u;return null==(u=e.unref(o.method))?void 0:u.handleSubmit("exit")})),q:e.p({btnParimaryName:"进入小区",btnOtherShow:!0,btnOtherName:"离开小区"})})})});wx.createPage(n); diff --git a/dist/build/mp-weixin/INDEX/pass/index.json b/dist/build/mp-weixin/INDEX/pass/index.json new file mode 100644 index 0000000..30891d6 --- /dev/null +++ b/dist/build/mp-weixin/INDEX/pass/index.json @@ -0,0 +1,8 @@ +{ + "navigationBarTitleText": "出入管理", + "usingComponents": { + "uni-icons": "../../uni_modules/uni-icons/components/uni-icons/uni-icons", + "u-avatar": "../../node-modules/uview-plus/components/u-avatar/u-avatar", + "hs-footer": "../../components/hs-footer/hs-footer" + } +} \ No newline at end of file diff --git a/dist/build/mp-weixin/INDEX/pass/index.wxml b/dist/build/mp-weixin/INDEX/pass/index.wxml new file mode 100644 index 0000000..61a5893 --- /dev/null +++ b/dist/build/mp-weixin/INDEX/pass/index.wxml @@ -0,0 +1 @@ + 通行证已失效 该二维码已失效,请和客户确认出入信息 关联房屋 {{f}} 状态 已失效 {{h}} 事项 {{k}} 上次进入时间 {{l}} 上次离开时间 {{m}} \ No newline at end of file diff --git a/dist/build/mp-weixin/INDEX/pass/index.wxss b/dist/build/mp-weixin/INDEX/pass/index.wxss new file mode 100644 index 0000000..9a76c6f --- /dev/null +++ b/dist/build/mp-weixin/INDEX/pass/index.wxss @@ -0,0 +1 @@ +page{background-color:#f8f8f8}.release_items_page{padding:40rpx 0;padding-bottom:calc(130rpx + constant(safe-area-inset-bottom));padding-bottom:calc(130rpx + env(safe-area-inset-bottom))}.expired{text-align:center}.expired .des{padding:15rpx 0 10rpx;font-size:28rpx}.expired .sub_des{color:#333;font-size:23rpx;padding-top:5rpx}.release_content{background-color:#fff;border-radius:20rpx;margin:0 30rpx;overflow:hidden;padding:50rpx 0 30rpx}.release_content .user_info{color:#3d3d3d;font-size:26rpx;text-align:center}.release_content .user_info .name{font-size:32rpx;font-weight:700;padding:18rpx 0 6rpx}.release_content .avatar{display:flex;align-items:center;justify-content:center;margin:0 auto}.outer_info{font-size:28rpx;border-top:1rpx solid #eee;margin:30rpx 30rpx 0}.outer_info .cell_items{display:flex;align-items:center;justify-content:space-between;padding-top:25rpx}.outer_info .cell_items .label{font-size:30rpx;color:#666}.status_Approved{color:#55c51d}.status_expired{color:#cf1322} diff --git a/dist/build/mp-weixin/INDEX/pass/method.js b/dist/build/mp-weixin/INDEX/pass/method.js new file mode 100644 index 0000000..4f2ba7e --- /dev/null +++ b/dist/build/mp-weixin/INDEX/pass/method.js @@ -0,0 +1 @@ +"use strict";const o=require("../../common/libraries/apiLoading.js"),e=require("../../common/libraries/day.js"),i=require("../../common/libraries/naviHelper.js"),l=require("../../gen/Apis.js"),d=require("./model.js"),a=i=>{o.getApiLoading(l.Apis.Visitor.VisitorApplies.Show,i).then((o=>{var i,l,a,s,n,r;d.useModel.showData.value=null==o?void 0:o.data,(null==(l=null==(i=null==o?void 0:o.data)?void 0:i.renovation_workers)?void 0:l.length)&&(d.useModel.userInfo.value=null==(s=null==(a=null==o?void 0:o.data)?void 0:a.renovation_workers)?void 0:s[0]),(null==(n=null==o?void 0:o.data)?void 0:n.code_expired_at)&&(d.useModel.isExpired.value=e.isDatePassed(null==(r=null==o?void 0:o.data)?void 0:r.code_expired_at)),console.log(o)}))},s={getShow:a,handleSubmit(e){var s,n,r;o.getApiLoading(l.Apis.Visitor.VisitorApplies.Scan,{code:null==(r=null==(n=null==(s=d.useModel)?void 0:s.showData)?void 0:n.value)?void 0:r.visitor_code,scan_type:e}).then((o=>{i.showToast("操作成功!",(()=>{var o,e,i;a({id:null==(i=null==(e=null==(o=d.useModel)?void 0:o.showData)?void 0:e.value)?void 0:i.id})})),console.log(o)}))}};exports.method=s; diff --git a/dist/build/mp-weixin/INDEX/pass/model.js b/dist/build/mp-weixin/INDEX/pass/model.js new file mode 100644 index 0000000..d2dfa2b --- /dev/null +++ b/dist/build/mp-weixin/INDEX/pass/model.js @@ -0,0 +1 @@ +"use strict";const e=require("../../common/vendor.js"),r={formData:e.ref({}),showData:e.ref([]),arrearageHouses:e.ref([]),isExpired:e.ref(!1),userInfo:e.ref({})};exports.useModel=r; diff --git a/dist/build/mp-weixin/INDEX/release_items/index.js b/dist/build/mp-weixin/INDEX/release_items/index.js new file mode 100644 index 0000000..447858f --- /dev/null +++ b/dist/build/mp-weixin/INDEX/release_items/index.js @@ -0,0 +1 @@ +"use strict";const e=require("../../common/vendor.js"),l=require("../../gen/Enums.js"),u=require("./method.js"),o=require("./model.js");if(require("../../gen/Apis.js"),require("../../common/libraries/request.js"),require("../../common/store/useWeAppAuthStore.js"),require("../../common/libraries/apiLoading.js"),require("../../common/store/useWatermarkStore.js"),require("../../common/store/useWorkStore.js"),require("../../common/libraries/naviHelper.js"),require("../../common/libraries/day.js"),!Array){e.resolveComponent("hs-footer")()}Math;const n=e.defineComponent({__name:"index",setup:n=>(e.onLoad((e=>{var l;null==(l=u.method)||l.getShow(e),console.log(e)})),(n,d)=>{var s,i,r,a,v,t,m,f,p,h,M,c,w,j,q,D,b,g,_,x,k,E,y,A,S,P,W,C,G,L,R,$,H,N,T,z,B,F,I,J,K,O,Q,U,V,X,Y,Z;return e.e({a:e.t((null==(a=null==(r=null==(i=null==(s=e.unref(o.useModel))?void 0:s.showData)?void 0:i.value)?void 0:r.asset_house)?void 0:a.full_name)||"-"),b:e.t(null==(f=e.unref(l.GoodsReleasesPassedTypeEnum)[null==(m=null==(t=null==(v=e.unref(o.useModel))?void 0:v.showData)?void 0:t.value)?void 0:m.passed_type])?void 0:f.text),c:e.t(null==(M=null==(h=null==(p=e.unref(o.useModel))?void 0:p.showData)?void 0:h.value)?void 0:M.passed_time),d:e.t(null==(j=null==(w=null==(c=e.unref(o.useModel))?void 0:c.showData)?void 0:w.value)?void 0:j.apply_name),e:null==(D=null==(q=e.unref(o.useModel))?void 0:q.isExpired)?void 0:D.value},(null==(g=null==(b=e.unref(o.useModel))?void 0:b.isExpired)?void 0:g.value)?{}:{f:e.t(null==(E=e.unref(l.GoodsReleasesStatusEnum)[null==(k=null==(x=null==(_=e.unref(o.useModel))?void 0:_.showData)?void 0:x.value)?void 0:k.status])?void 0:E.text),g:e.n(`value status_${null==(S=null==(A=null==(y=e.unref(o.useModel))?void 0:y.showData)?void 0:A.value)?void 0:S.status}`)},{h:e.f(null==(C=null==(W=null==(P=e.unref(o.useModel))?void 0:P.showData)?void 0:W.value)?void 0:C.goods,((l,u,o)=>({a:e.t(null==l?void 0:l.name),b:e.t(null==l?void 0:l.number),c:e.t(null==l?void 0:l.remark),d:`goods_${u}`}))),i:null==(R=null==(L=null==(G=e.unref(o.useModel))?void 0:G.showData)?void 0:L.value)?void 0:R.remark},(null==(N=null==(H=null==($=e.unref(o.useModel))?void 0:$.showData)?void 0:H.value)?void 0:N.remark)?{j:e.t(null==(B=null==(z=null==(T=e.unref(o.useModel))?void 0:T.showData)?void 0:z.value)?void 0:B.remark)}:{},{k:"Approved"===(null==(J=null==(I=null==(F=e.unref(o.useModel))?void 0:F.showData)?void 0:I.value)?void 0:J.status)&&!(null==(O=null==(K=e.unref(o.useModel))?void 0:K.isExpired)?void 0:O.value)},"Approved"!==(null==(V=null==(U=null==(Q=e.unref(o.useModel))?void 0:Q.showData)?void 0:U.value)?void 0:V.status)||(null==(Y=null==(X=e.unref(o.useModel))?void 0:X.isExpired)?void 0:Y.value)?{}:{l:e.o(null==(Z=e.unref(u.method))?void 0:Z.handleSubmit),m:e.p({btnParimaryName:"确认放行"})})})});wx.createPage(n); diff --git a/dist/build/mp-weixin/INDEX/release_items/index.json b/dist/build/mp-weixin/INDEX/release_items/index.json new file mode 100644 index 0000000..79d1a94 --- /dev/null +++ b/dist/build/mp-weixin/INDEX/release_items/index.json @@ -0,0 +1,6 @@ +{ + "navigationBarTitleText": "出入登记", + "usingComponents": { + "hs-footer": "../../components/hs-footer/hs-footer" + } +} \ No newline at end of file diff --git a/dist/build/mp-weixin/INDEX/release_items/index.wxml b/dist/build/mp-weixin/INDEX/release_items/index.wxml new file mode 100644 index 0000000..df8b19c --- /dev/null +++ b/dist/build/mp-weixin/INDEX/release_items/index.wxml @@ -0,0 +1 @@ + 物品放行 关联房屋 {{a}} 通行缘由 {{b}} 放行时间 {{c}} 申请人 {{d}} 放行状态 放行码已过期 {{f}} 物品信息 {{i.a}} x{{i.b}}{{i.c}} 备注:{{j}} \ No newline at end of file diff --git a/dist/build/mp-weixin/INDEX/release_items/index.wxss b/dist/build/mp-weixin/INDEX/release_items/index.wxss new file mode 100644 index 0000000..7f8153a --- /dev/null +++ b/dist/build/mp-weixin/INDEX/release_items/index.wxss @@ -0,0 +1 @@ +page{background-color:#f8f8f8}.release_items_page{padding:40rpx 0;padding-bottom:calc(130rpx + constant(safe-area-inset-bottom));padding-bottom:calc(130rpx + env(safe-area-inset-bottom))}.release_content{background-color:#fff;border-radius:20rpx;margin:0 30rpx;overflow:hidden}.release_content_title{font-size:32rpx;font-weight:700;color:#0082fa;border-bottom:1rpx solid #eee;padding:25rpx 0;text-align:center}.release_content_title text{color:red}.release_content .cell_content{padding:0 30rpx;font-size:28rpx}.release_content .cell_content .cell_items{display:flex;align-items:center;justify-content:space-between;padding-top:25rpx}.release_content .cell_content .cell_items .label{font-size:30rpx;color:#666}.goods_info{margin:30rpx;border-top:1rpx solid #eee}.goods_info .title{padding:30rpx 0;font-size:30rpx;font-weight:700;color:#3d3d3d}.goods_info .items_list{background-color:#f5f6f9;padding:0 30rpx;font-size:28rpx}.goods_info .items_list .label{padding:20rpx 0 0;display:flex;align-items:center;justify-content:space-between}.goods_info .items_list .des{color:#666;padding:10rpx 0 20rpx}.status_Released,.status_Approved{color:#55c51d}.status_Pending{color:#f90}.remark{padding:0 30rpx 30rpx;color:#333;font-size:28rpx}.status_expired{color:#cf1322} diff --git a/dist/build/mp-weixin/INDEX/release_items/method.js b/dist/build/mp-weixin/INDEX/release_items/method.js new file mode 100644 index 0000000..6fa0bdf --- /dev/null +++ b/dist/build/mp-weixin/INDEX/release_items/method.js @@ -0,0 +1 @@ +"use strict";const e=require("../../common/vendor.js"),o=require("../../gen/Apis.js"),s=require("../../common/libraries/apiLoading.js"),l=require("./model.js"),a=require("../../common/libraries/naviHelper.js"),i=require("../../common/libraries/day.js"),d=e=>{s.getApiLoading(o.Apis.GoodsReleases.GoodsReleases.Show,e).then((e=>{var o,s;l.useModel.showData.value=null==e?void 0:e.data,(null==(o=null==e?void 0:e.data)?void 0:o.passed_time)&&(l.useModel.isExpired.value=i.isDatePassed(null==(s=null==e?void 0:e.data)?void 0:s.passed_time)),console.log(e)}))},n={getShow:d,handleSubmit(){e.index.showModal({title:"提示",content:"确定放行?",success:function(e){var i;e.confirm?(s.getApiLoading(o.Apis.GoodsReleases.GoodsReleases.ScanRelease,{code:null==(i=l.useModel.showData.value)?void 0:i.code}).then((e=>{var o,s;a.showToast("放行成功!"),d(null==(s=null==(o=l.useModel)?void 0:o.showData)?void 0:s.value),console.log(e)})),console.log("用户点击确定")):e.cancel&&console.log("用户点击取消")}})}};exports.method=n; diff --git a/dist/build/mp-weixin/INDEX/release_items/model.js b/dist/build/mp-weixin/INDEX/release_items/model.js new file mode 100644 index 0000000..37f7d42 --- /dev/null +++ b/dist/build/mp-weixin/INDEX/release_items/model.js @@ -0,0 +1 @@ +"use strict";const e=require("../../common/vendor.js"),r={formData:e.ref({}),showData:e.ref([]),isExpired:e.ref(!1)};exports.useModel=r; diff --git a/dist/build/mp-weixin/INDEX/task/list/index.js b/dist/build/mp-weixin/INDEX/task/list/index.js new file mode 100644 index 0000000..8836b1b --- /dev/null +++ b/dist/build/mp-weixin/INDEX/task/list/index.js @@ -0,0 +1 @@ +"use strict";const e=require("../../../common/vendor.js"),o=require("./model.js"),n=require("./method.js"),l=require("../../../gen/Enums.js"),s=require("../../../common/libraries/day.js");if(require("../../../common/libraries/apiLoading.js"),require("../../../gen/Apis.js"),require("../../../common/libraries/request.js"),require("../../../common/store/useWeAppAuthStore.js"),require("../../../common/store/useWatermarkStore.js"),require("../../../common/store/useWorkStore.js"),!Array){(e.resolveComponent("hs-enum-tag")+e.resolveComponent("hs-level")+e.resolveComponent("cc-scroll-loading"))()}Math||((()=>"../../../components/hs-enum-tag/hs-enum-tag.js")+(()=>"../../../components/hs-level/hs-level.js")+(()=>"../../../common/components/cc-scroll-loading/cc-scroll-loading.js"))();const u=e.defineComponent({__name:"index",setup:u=>(e.onShow((()=>{var e;o.useModel.formData.value.page=1,o.useModel.listData.value=[],null==(e=n.method)||e.getList()})),(u,r)=>{var t,a,i,m,d;return{a:e.f(null==(a=null==(t=e.unref(o.useModel))?void 0:t.listData)?void 0:a.value,((o,u,r)=>{var t,a;return e.e({a:"3377f082-1-"+r+",3377f082-0",b:e.p({value:null==o?void 0:o.type,Enums:e.unref(l.HouseWorkOrdersTypeEnum)}),c:null==o?void 0:o.location},(null==o?void 0:o.location)?{d:"3377f082-2-"+r+",3377f082-0",e:e.p({value:null==o?void 0:o.location,Enums:e.unref(l.HouseWorkOrdersLocationEnum)})}:{},{f:"Processing"===(null==o?void 0:o.status)},"Processing"===(null==o?void 0:o.status)?{g:"3377f082-3-"+r+",3377f082-0",h:e.p({level:null==o?void 0:o.level})}:{},{i:"3377f082-4-"+r+",3377f082-0",j:e.p({value:null==o?void 0:o.status,Enums:e.unref(l.HouseWorkOrdersStatusEnum)}),k:e.n(`btn_status status_${null==o?void 0:o.status}`),l:e.t((null==(t=null==o?void 0:o.asset_house)?void 0:t.full_name)||(null==(a=null==o?void 0:o.asset_project)?void 0:a.name)),m:e.t(null==o?void 0:o.content),n:e.t(e.unref(s.getDayTime)(null==o?void 0:o.expect_start_time)),o:e.t(e.unref(s.getDayTime)(null==o?void 0:o.created_at)),p:`items_${u}`,q:e.o((l=>{var s;return null==(s=e.unref(n.method))?void 0:s.handleToDetail(o)}),`items_${u}`)})})),b:e.o(null==(i=e.unref(n.method))?void 0:i.handleLoad),c:e.p({meta:null==(d=null==(m=e.unref(o.useModel))?void 0:m.metaData)?void 0:d.value})}})});wx.createPage(u); diff --git a/dist/build/mp-weixin/INDEX/task/list/index.json b/dist/build/mp-weixin/INDEX/task/list/index.json new file mode 100644 index 0000000..d089af0 --- /dev/null +++ b/dist/build/mp-weixin/INDEX/task/list/index.json @@ -0,0 +1,8 @@ +{ + "navigationBarTitleText": "任务中心", + "usingComponents": { + "hs-enum-tag": "../../../components/hs-enum-tag/hs-enum-tag", + "hs-level": "../../../components/hs-level/hs-level", + "cc-scroll-loading": "../../../common/components/cc-scroll-loading/cc-scroll-loading" + } +} \ No newline at end of file diff --git a/dist/build/mp-weixin/INDEX/task/list/index.wxml b/dist/build/mp-weixin/INDEX/task/list/index.wxml new file mode 100644 index 0000000..6dade2c --- /dev/null +++ b/dist/build/mp-weixin/INDEX/task/list/index.wxml @@ -0,0 +1 @@ +{{i.l}}{{i.m}} 预计上门时间:{{i.n}}(2个小时内) 工单创建时间:{{i.o}} \ No newline at end of file diff --git a/dist/build/mp-weixin/INDEX/task/list/index.wxss b/dist/build/mp-weixin/INDEX/task/list/index.wxss new file mode 100644 index 0000000..20afefc --- /dev/null +++ b/dist/build/mp-weixin/INDEX/task/list/index.wxss @@ -0,0 +1 @@ +page{background-color:#f8f8f8}.work_contents{padding:0 0 30rpx}.work_contents .work_item{background-color:#fff;border-radius:10rpx;margin:30rpx 30rpx 0;border-radius:15rpx;padding:0 30rpx 30rpx}.work_contents .work_item .work_item_header{display:flex;align-items:center;justify-content:space-between;padding:25rpx 0}.work_contents .work_item .work_item_header .group_btn{display:flex;align-items:center}.work_contents .work_item .work_item_header .btn_type{border:1rpx solid #eee;font-size:28rpx;padding:7rpx 19rpx;border-radius:100rpx;margin-right:10rpx}.work_contents .work_item .work_item_header .btn_status{border-radius:100rpx;font-size:28rpx;padding:7rpx 19rpx}.work_contents .work_item .work_item_header .status_Pending{color:#f97316;background-color:#fff7ed}.work_contents .work_item .work_item_header .status_Processing,.work_contents .work_item .work_item_header .status_PendingAcceptance{color:#0082fa;background-color:#edf4ff}.work_contents .work_item .work_item_header .status_PendingPayment{color:#cf1322;background-color:#ffeded}.work_contents .work_item .work_item_header .status_Completed{color:#22c55e;background-color:#f0fdf4}.work_contents .work_item .work_item_header .status_Closed{color:#909399;background-color:#f3f3f4}.work_contents .work_item .full_name{font-size:28rpx}.work_contents .work_item .work_item_cell{display:flex;align-items:center;font-size:30rpx;color:#666;padding-top:20rpx}.work_contents .work_item .work_item_cell text{color:#333}.work_contents .work_item .work_item_images{display:flex;align-items:center;flex-wrap:wrap}.work_contents .work_item .work_item_images .item{width:140rpx;height:140rpx;border-radius:10rpx;background-color:#f8f8f8;margin-top:25rpx;margin-right:25rpx;overflow:hidden}.work_contents .work_item .work_item_images .item:nth-child(4n){margin-right:0}.work_contents .work_item .work_item_images .item image{width:100%;height:100%}.work_contents .work_item .work_code{font-size:25rpx}.work_item_time_footer{margin-top:30rpx}.work_item_time_footer .todo_done_card_footer{color:#666;font-size:28rpx;padding:12rpx 20rpx;border-radius:10rpx;color:#24bc21;background:linear-gradient(90deg,#edffed 0%,rgba(232,255,231,0) 103%);display:flex;align-items:center;margin:25rpx 0 0}.work_item_time_footer .status_1{color:#24bc21;background:linear-gradient(90deg,#edffed 0%,rgba(232,255,231,0) 103%)}.work_item_time_footer .status_2{color:#0082fa;background:linear-gradient(90deg,#eff7ff 0%,rgba(231,241,255,0) 103%)}.work_item_time_footer .status_3{color:#f97316;background:linear-gradient(90deg,#fff4ef 0%,rgba(255,237,231,0) 103%)}.work_item_time_footer .status_4{color:#ea0000;background:linear-gradient(90deg,#ffe5e5 0%,rgba(255,255,255,0) 103%)}.work_item_time_footer .expected_time{padding:20rpx 0 0;color:#333;font-size:28rpx}.work_item_btn_group_footer{border-top:1rpx solid #eee;margin-top:25rpx;padding-top:25rpx;font-size:28rpx;color:#666}.card_status_4{border-top:6px solid #ef4444} diff --git a/dist/build/mp-weixin/INDEX/task/list/method.js b/dist/build/mp-weixin/INDEX/task/list/method.js new file mode 100644 index 0000000..7d7757e --- /dev/null +++ b/dist/build/mp-weixin/INDEX/task/list/method.js @@ -0,0 +1 @@ +"use strict";const e=require("../../../common/vendor.js"),a=require("./model.js"),o=require("../../../common/libraries/apiLoading.js"),i=require("../../../gen/Apis.js"),l=()=>{var e,l;o.getApiLoading(i.Apis.WorkOrder.HouseWorkOrders.UnassignedList,null==(l=null==(e=a.useModel)?void 0:e.formData)?void 0:l.value).then((e=>{a.useModel.listData.value=[...a.useModel.listData.value,...null==e?void 0:e.data],a.useModel.metaData.value=null==e?void 0:e.meta}))},d={getList:l,handleLoad(e){a.useModel.formData.value.page=null==e?void 0:e.page,l()},handleToDetail(a){e.index.navigateTo({url:`/INDEX/task/show/index?id=${null==a?void 0:a.id}`})}};exports.method=d; diff --git a/dist/build/mp-weixin/INDEX/task/list/model.js b/dist/build/mp-weixin/INDEX/task/list/model.js new file mode 100644 index 0000000..a9d4f80 --- /dev/null +++ b/dist/build/mp-weixin/INDEX/task/list/model.js @@ -0,0 +1 @@ +"use strict";const e=require("../../../common/vendor.js"),r={currentTabs:e.ref(0),formData:e.ref({page:1}),listData:e.ref([]),metaData:e.ref({})};exports.useModel=r; diff --git a/dist/build/mp-weixin/INDEX/task/show/components/ProcessLogs.js b/dist/build/mp-weixin/INDEX/task/show/components/ProcessLogs.js new file mode 100644 index 0000000..fea188d --- /dev/null +++ b/dist/build/mp-weixin/INDEX/task/show/components/ProcessLogs.js @@ -0,0 +1 @@ +"use strict";const e=require("../../../../common/vendor.js"),o=require("../../../../gen/Enums.js"),n=require("../model.js");if(!Array){(e.resolveComponent("hs-empty")+e.resolveComponent("hs-enum-tag")+e.resolveComponent("up-steps-item")+e.resolveComponent("up-steps"))()}Math||((()=>"../../../../components/hs-empty/hs-empty.js")+(()=>"../../../../components/hs-enum-tag/hs-enum-tag.js")+(()=>"../../../../node-modules/uview-plus/components/u-steps-item/u-steps-item.js")+(()=>"../../../../node-modules/uview-plus/components/u-steps/u-steps.js"))();const s=e.defineComponent({__name:"ProcessLogs",setup:s=>(s,t)=>{var l,u,a,d,r,m,i,p,v,c,g;return e.e({a:!(null==(a=null==(u=null==(l=e.unref(n.useModel))?void 0:l.logsData)?void 0:u.value)?void 0:a.length)},(null==(m=null==(r=null==(d=e.unref(n.useModel))?void 0:d.logsData)?void 0:r.value)||m.length,{}),{b:e.f(null==(p=null==(i=e.unref(n.useModel))?void 0:i.logsData)?void 0:p.value,((n,s,t)=>({a:"4da58264-3-"+t+",4da58264-2-"+t,b:e.p({value:null==n?void 0:n.status,Enums:e.unref(o.HouseWorkOrdersStatusEnum)}),c:e.t(null==n?void 0:n.description),d:e.f(null==n?void 0:n.attachments,((e,o,n)=>({a:null==e?void 0:e.url,b:`attachment_${o}`}))),e:e.t(null==n?void 0:n.created_at),f:`log_item_${s}`,g:"4da58264-2-"+t+",4da58264-1"}))),c:e.p({direction:"column",dot:!0,current:(null==(g=null==(c=null==(v=e.unref(n.useModel))?void 0:v.logsData)?void 0:c.value)?void 0:g.length)-1})})}}),t=e._export_sfc(s,[["__scopeId","data-v-4da58264"]]);wx.createComponent(t); diff --git a/dist/build/mp-weixin/INDEX/task/show/components/ProcessLogs.json b/dist/build/mp-weixin/INDEX/task/show/components/ProcessLogs.json new file mode 100644 index 0000000..b4f5e7b --- /dev/null +++ b/dist/build/mp-weixin/INDEX/task/show/components/ProcessLogs.json @@ -0,0 +1,9 @@ +{ + "component": true, + "usingComponents": { + "hs-empty": "../../../../components/hs-empty/hs-empty", + "hs-enum-tag": "../../../../components/hs-enum-tag/hs-enum-tag", + "up-steps-item": "../../../../node-modules/uview-plus/components/u-steps-item/u-steps-item", + "up-steps": "../../../../node-modules/uview-plus/components/u-steps/u-steps" + } +} \ No newline at end of file diff --git a/dist/build/mp-weixin/INDEX/task/show/components/ProcessLogs.wxml b/dist/build/mp-weixin/INDEX/task/show/components/ProcessLogs.wxml new file mode 100644 index 0000000..afafd9c --- /dev/null +++ b/dist/build/mp-weixin/INDEX/task/show/components/ProcessLogs.wxml @@ -0,0 +1 @@ + 处理日志 工单进度:{{i.c}}{{i.e}} \ No newline at end of file diff --git a/dist/build/mp-weixin/INDEX/task/show/components/ProcessLogs.wxss b/dist/build/mp-weixin/INDEX/task/show/components/ProcessLogs.wxss new file mode 100644 index 0000000..3f8b735 --- /dev/null +++ b/dist/build/mp-weixin/INDEX/task/show/components/ProcessLogs.wxss @@ -0,0 +1 @@ +.desc_title.data-v-4da58264{color:#333;font-size:28rpx;display:flex;align-items:center;justify-content:space-between}.desc_content.data-v-4da58264{color:#666;font-size:28rpx;padding:10rpx 0 0}.attachments.data-v-4da58264{display:flex;align-items:center;flex-wrap:wrap;padding:20rpx 0 0}.attachments .attachment_item.data-v-4da58264{width:140rpx;height:140rpx;overflow:hidden;border-radius:15rpx}.attachments image.data-v-4da58264{width:100%;height:100%;border-radius:15rpx}.created_at.data-v-4da58264{padding:10rpx 0 30rpx;color:#999;font-size:24rpx} diff --git a/dist/build/mp-weixin/INDEX/task/show/index.js b/dist/build/mp-weixin/INDEX/task/show/index.js new file mode 100644 index 0000000..a9432f8 --- /dev/null +++ b/dist/build/mp-weixin/INDEX/task/show/index.js @@ -0,0 +1 @@ +"use strict";const l=require("../../../common/vendor.js"),e=require("../../../common/libraries/day.js"),o=require("./method.js"),u=require("./model.js"),n=require("../../../gen/Enums.js");if(require("../../../common/libraries/apiLoading.js"),require("../../../gen/Apis.js"),require("../../../common/libraries/request.js"),require("../../../common/store/useWeAppAuthStore.js"),require("../../../common/store/useWatermarkStore.js"),require("../../../common/store/useWorkStore.js"),!Array){(l.resolveComponent("hs-enum-tag")+l.resolveComponent("hs-level")+l.resolveComponent("up-icon")+l.resolveComponent("hs-footer"))()}Math||((()=>"../../../components/hs-enum-tag/hs-enum-tag.js")+(()=>"../../../components/hs-level/hs-level.js")+(()=>"../../../node-modules/uview-plus/components/u-icon/u-icon.js")+d+(()=>"../../../components/hs-footer/hs-footer.js"))();const d=()=>"./components/ProcessLogs.js",a=l.defineComponent({__name:"index",setup:d=>(l.onLoad((l=>{var e,n;u.useModel.dataShow.value={},null==(e=o.method)||e.getShow(null==l?void 0:l.id),null==(n=o.method)||n.getHouseWorkLogs(null==l?void 0:l.id)})),l.onShow((()=>{var l,e,n,d,a,i,v,t,s,r,m;(null==(n=null==(e=null==(l=u.useModel)?void 0:l.dataShow)?void 0:e.value)?void 0:n.id)&&(null==(v=o.method)||v.getShow(null==(i=null==(a=null==(d=u.useModel)?void 0:d.dataShow)?void 0:a.value)?void 0:i.id),null==(m=o.method)||m.getHouseWorkLogs(null==(r=null==(s=null==(t=u.useModel)?void 0:t.dataShow)?void 0:s.value)?void 0:r.id))})),l.onUnload((()=>{u.useModel.logsData.value=[]})),(d,a)=>{var i,v,t,s,r,m,h,f,c,p,S,w,M,g,_,j,y,q,P,b,k,x,W,A,E,H,L,R,C,I,O,T,$,U,z,D,N,B,F,G,J,K,Q,V,X,Y,Z,ll,el,ol,ul,nl,dl,al,il,vl,tl,sl,rl,ml,hl,fl,cl,pl,Sl,wl,Ml,gl,_l,jl,yl,ql,Pl,bl,kl,xl,Wl,Al,El,Hl,Ll,Rl,Cl,Il,Ol,Tl,$l,Ul,zl,Dl,Nl,Bl,Fl,Gl,Jl,Kl,Ql,Vl,Xl,Yl,Zl,le,ee,oe,ue,ne,de,ae,ie,ve,te,se,re,me,he,fe,ce,pe,Se,we,Me,ge,_e,je,ye,qe,Pe,be,ke,xe,We,Ae,Ee;return l.e({a:l.p({value:null==(t=null==(v=null==(i=l.unref(u.useModel))?void 0:i.dataShow)?void 0:v.value)?void 0:t.type,Enums:l.unref(n.HouseWorkOrdersTypeEnum)}),b:null==(m=null==(r=null==(s=l.unref(u.useModel))?void 0:s.dataShow)?void 0:r.value)?void 0:m.location},(null==(c=null==(f=null==(h=l.unref(u.useModel))?void 0:h.dataShow)?void 0:f.value)?void 0:c.location)?{c:l.p({value:null==(w=null==(S=null==(p=l.unref(u.useModel))?void 0:p.dataShow)?void 0:S.value)?void 0:w.location,Enums:l.unref(n.HouseWorkOrdersLocationEnum)})}:{},{d:"Processing"==(null==(_=null==(g=null==(M=l.unref(u.useModel))?void 0:M.dataShow)?void 0:g.value)?void 0:_.status)},"Processing"==(null==(q=null==(y=null==(j=l.unref(u.useModel))?void 0:j.dataShow)?void 0:y.value)?void 0:q.status)?{e:l.p({level:null==(k=null==(b=null==(P=l.unref(u.useModel))?void 0:P.dataShow)?void 0:b.value)?void 0:k.level})}:{},{f:l.p({value:null==(A=null==(W=null==(x=l.unref(u.useModel))?void 0:x.dataShow)?void 0:W.value)?void 0:A.status,Enums:l.unref(n.HouseWorkOrdersStatusEnum)}),g:l.n(`btn_status status_${null==(L=null==(H=null==(E=l.unref(u.useModel))?void 0:E.dataShow)?void 0:H.value)?void 0:L.status}`),h:(null==(I=null==(C=null==(R=l.unref(u.useModel))?void 0:R.dataShow)?void 0:C.value)?void 0:I.expect_end_time)&&"Pending"===(null==($=null==(T=null==(O=l.unref(u.useModel))?void 0:O.dataShow)?void 0:T.value)?void 0:$.status)&&"MyHome"===(null==(D=null==(z=null==(U=l.unref(u.useModel))?void 0:U.dataShow)?void 0:z.value)?void 0:D.location)},(null==(F=null==(B=null==(N=l.unref(u.useModel))?void 0:N.dataShow)?void 0:B.value)?void 0:F.expect_end_time)&&"Pending"===(null==(K=null==(J=null==(G=l.unref(u.useModel))?void 0:G.dataShow)?void 0:J.value)?void 0:K.status)&&"MyHome"===(null==(X=null==(V=null==(Q=l.unref(u.useModel))?void 0:Q.dataShow)?void 0:V.value)?void 0:X.location)?{i:l.p({name:"clock",color:(null==(el=l.unref(e.getTimeStatus)(null==(ll=null==(Z=null==(Y=l.unref(u.useModel))?void 0:Y.dataShow)?void 0:Z.value)?void 0:ll.expect_end_time))?void 0:el.color)||"#000",size:"14"}),j:l.t(null==(dl=l.unref(e.getTimeStatus)(null==(nl=null==(ul=null==(ol=l.unref(u.useModel))?void 0:ol.dataShow)?void 0:ul.value)?void 0:nl.expect_end_time))?void 0:dl.label),k:l.n(`time_status status_${null==(tl=l.unref(e.getTimeStatus)(null==(vl=null==(il=null==(al=l.unref(u.useModel))?void 0:al.dataShow)?void 0:il.value)?void 0:vl.expect_end_time))?void 0:tl.status}`)}:{},{l:"Repair"===(null==(ml=null==(rl=null==(sl=l.unref(u.useModel))?void 0:sl.dataShow)?void 0:rl.value)?void 0:ml.type)||"Incident"===(null==(cl=null==(fl=null==(hl=l.unref(u.useModel))?void 0:hl.dataShow)?void 0:fl.value)?void 0:cl.type)},"Repair"===(null==(wl=null==(Sl=null==(pl=l.unref(u.useModel))?void 0:pl.dataShow)?void 0:Sl.value)?void 0:wl.type)||"Incident"===(null==(_l=null==(gl=null==(Ml=l.unref(u.useModel))?void 0:Ml.dataShow)?void 0:gl.value)?void 0:_l.type)?{m:l.t((null==(Pl=null==(ql=null==(yl=null==(jl=l.unref(u.useModel))?void 0:jl.dataShow)?void 0:yl.value)?void 0:ql.asset_house)?void 0:Pl.full_name)||(null==(Wl=null==(xl=null==(kl=null==(bl=l.unref(u.useModel))?void 0:bl.dataShow)?void 0:kl.value)?void 0:xl.asset_project)?void 0:Wl.name)),n:l.t(null==(Hl=null==(El=null==(Al=l.unref(u.useModel))?void 0:Al.dataShow)?void 0:El.value)?void 0:Hl.title)}:{},{o:l.t(null==(Cl=null==(Rl=null==(Ll=l.unref(u.useModel))?void 0:Ll.dataShow)?void 0:Rl.value)?void 0:Cl.content),p:l.f(null==(Tl=null==(Ol=null==(Il=l.unref(u.useModel))?void 0:Il.dataShow)?void 0:Ol.value)?void 0:Tl.attachments,((e,u,n)=>({a:null==e?void 0:e.url,b:`img_${u}`,c:l.o((e=>{var n;return null==(n=l.unref(o.method))?void 0:n.handlePreviewImage(u)}),`img_${u}`)}))),q:l.t(null==(zl=null==(Ul=null==($l=l.unref(u.useModel))?void 0:$l.dataShow)?void 0:Ul.value)?void 0:zl.code),r:"RenovationInspection"!==(null==(Bl=null==(Nl=null==(Dl=l.unref(u.useModel))?void 0:Dl.dataShow)?void 0:Nl.value)?void 0:Bl.type)&&"RenovationAcceptance"!==(null==(Jl=null==(Gl=null==(Fl=l.unref(u.useModel))?void 0:Fl.dataShow)?void 0:Gl.value)?void 0:Jl.type)},"RenovationInspection"!==(null==(Vl=null==(Ql=null==(Kl=l.unref(u.useModel))?void 0:Kl.dataShow)?void 0:Ql.value)?void 0:Vl.type)&&"RenovationAcceptance"!==(null==(Zl=null==(Yl=null==(Xl=l.unref(u.useModel))?void 0:Xl.dataShow)?void 0:Yl.value)?void 0:Zl.type)?{s:l.t((null==(ue=null==(oe=null==(ee=null==(le=l.unref(u.useModel))?void 0:le.dataShow)?void 0:ee.value)?void 0:oe.customer)?void 0:ue.name)||(null==(ie=null==(ae=null==(de=null==(ne=l.unref(u.useModel))?void 0:ne.dataShow)?void 0:de.value)?void 0:ae.company_employee)?void 0:ie.name))}:{},{t:null==(se=null==(te=null==(ve=l.unref(u.useModel))?void 0:ve.dataShow)?void 0:te.value)?void 0:se.reporter_name},(null==(he=null==(me=null==(re=l.unref(u.useModel))?void 0:re.dataShow)?void 0:me.value)?void 0:he.reporter_name)?{v:l.t(null==(pe=null==(ce=null==(fe=l.unref(u.useModel))?void 0:fe.dataShow)?void 0:ce.value)?void 0:pe.reporter_name),w:l.t(null==(Me=null==(we=null==(Se=l.unref(u.useModel))?void 0:Se.dataShow)?void 0:we.value)?void 0:Me.reporter_phone)}:{},{x:l.t(null==(je=null==(_e=null==(ge=l.unref(u.useModel))?void 0:ge.dataShow)?void 0:_e.value)?void 0:je.created_at),y:"Pending"===(null==(Pe=null==(qe=null==(ye=l.unref(u.useModel))?void 0:ye.dataShow)?void 0:qe.value)?void 0:Pe.status)},"Pending"===(null==(xe=null==(ke=null==(be=l.unref(u.useModel))?void 0:be.dataShow)?void 0:ke.value)?void 0:xe.status)?{z:l.o((e=>{var u;return null==(u=l.unref(o.method))?void 0:u.toPageUpdate("领取工单")})),A:l.o((e=>{var u;return null==(u=l.unref(o.method))?void 0:u.toPageUpdate("指派工单")})),B:l.p({btnParimaryName:"领取工单",btnOtherShow:null==(Ee=null==(Ae=null==(We=l.unref(u.useModel))?void 0:We.assignPermissionData)?void 0:Ae.value)?void 0:Ee.permission,btnOtherName:"指派工单"})}:{})})});wx.createPage(a); diff --git a/dist/build/mp-weixin/INDEX/task/show/index.json b/dist/build/mp-weixin/INDEX/task/show/index.json new file mode 100644 index 0000000..d2f1553 --- /dev/null +++ b/dist/build/mp-weixin/INDEX/task/show/index.json @@ -0,0 +1,10 @@ +{ + "navigationBarTitleText": "任务详情", + "usingComponents": { + "hs-enum-tag": "../../../components/hs-enum-tag/hs-enum-tag", + "hs-level": "../../../components/hs-level/hs-level", + "up-icon": "../../../node-modules/uview-plus/components/u-icon/u-icon", + "hs-footer": "../../../components/hs-footer/hs-footer", + "my-process-logs": "./components/ProcessLogs" + } +} \ No newline at end of file diff --git a/dist/build/mp-weixin/INDEX/task/show/index.wxml b/dist/build/mp-weixin/INDEX/task/show/index.wxml new file mode 100644 index 0000000..d6f2084 --- /dev/null +++ b/dist/build/mp-weixin/INDEX/task/show/index.wxml @@ -0,0 +1 @@ +{{j}}{{m}}{{n}} 工单编号 {{q}} 提报人 {{s}} 客户信息 {{v}} {{w}} 工单创建时间 {{x}} \ No newline at end of file diff --git a/dist/build/mp-weixin/INDEX/task/show/index.wxss b/dist/build/mp-weixin/INDEX/task/show/index.wxss new file mode 100644 index 0000000..d4b191e --- /dev/null +++ b/dist/build/mp-weixin/INDEX/task/show/index.wxss @@ -0,0 +1 @@ +page{background-color:#f8f8f8}.work_page{padding-bottom:calc(150rpx + constant(safe-area-inset-bottom));padding-bottom:calc(150rpx + env(safe-area-inset-bottom))}.show_card{margin:30rpx;background-color:#fff;border-radius:16rpx;padding:0 30rpx}.show_card .card_header_type_status{display:flex;align-items:center;justify-content:space-between;padding:25rpx 0}.show_card .card_header_type_status .group_type_btn{display:flex;align-items:center}.show_card .card_header_type_status .btn_type{border:1rpx solid #eee;font-size:28rpx;padding:7rpx 19rpx;border-radius:100rpx;margin-right:20rpx}.show_card .card_header_type_status .btn_status{border-radius:100rpx;font-size:28rpx;padding:7rpx 19rpx}.show_card .card_header_type_status .status_Pending{color:#f97316;background-color:#fff7ed}.show_card .card_header_type_status .status_Processing,.show_card .card_header_type_status .status_PendingAcceptance{color:#0082fa;background-color:#edf4ff}.show_card .card_header_type_status .status_Completed{color:#22c55e;background-color:#f0fdf4}.show_card .card_header_type_status .status_PendingPayment{color:#cf1322;background-color:#ffeded}.show_card .card_header_type_status .status_Closed{color:#909399;background-color:#f3f3f4}.show_card .time_status{color:#666;font-size:28rpx;padding:12rpx 20rpx;border-radius:10rpx;display:flex;align-items:center;margin:0 0 25rpx}.show_card .status_1{color:#24bc21;background:linear-gradient(90deg,#edffed 0%,rgba(232,255,231,0) 103%)}.show_card .status_2{color:#0082fa;background:linear-gradient(90deg,#eff7ff 0%,rgba(231,241,255,0) 103%)}.show_card .status_3{color:#f97316;background:linear-gradient(90deg,#fff4ef 0%,rgba(255,237,231,0) 103%)}.show_card .status_4{color:#ea0000;background:linear-gradient(90deg,#ffe5e5 0%,rgba(255,255,255,0) 103%)}.show_card .card_header_huse_info{display:flex;align-items:center;font-size:28rpx}.show_card .card_header_huse_info text{display:inline-block;height:28rpx;line-height:28rpx}.show_card .card_header_huse_info text:last-child{margin-left:15rpx;border-left:1rpx solid #eee;padding-left:15rpx}.show_card .card_header_content_info{font-size:30rpx;color:#444;padding:15rpx 0 0}.show_card .card_header_imgs{display:flex;align-items:center;flex-wrap:wrap;padding-bottom:30rpx}.show_card .card_header_imgs .item{width:140rpx;height:140rpx;border-radius:10rpx;background-color:#f8f8f8;margin-top:25rpx;margin-right:25rpx;overflow:hidden}.show_card .card_header_imgs .item:nth-child(4n){margin-right:0}.show_card .card_header_imgs .item image{width:100%;height:100%}.show_card .show_card_footer{border-top:1rpx solid #eee}.work_item_cell{display:flex;align-items:center;justify-content:space-between;font-size:30rpx;color:#666;padding-top:25rpx}.work_item_cell:last-child{padding-bottom:25rpx}.work_item_cell text{color:#333}.work_amount_cell{color:#cf1322}.work_amount_cell text{color:#cf1322}.show_card_title{font-size:28rpx;padding:30rpx 0;font-weight:500}.card_status_4{border-top:6px solid #ef4444} diff --git a/dist/build/mp-weixin/INDEX/task/show/method.js b/dist/build/mp-weixin/INDEX/task/show/method.js new file mode 100644 index 0000000..0e529d1 --- /dev/null +++ b/dist/build/mp-weixin/INDEX/task/show/method.js @@ -0,0 +1 @@ +"use strict";const e=require("../../../common/vendor.js"),o=require("./model.js"),l=require("../../../common/libraries/apiLoading.js"),d=require("../../../gen/Apis.js"),n={getShow(e){l.getApiLoading(d.Apis.WorkOrder.HouseWorkOrders.Show,{id:e}).then((e=>{var n;o.useModel.dataShow.value=null==e?void 0:e.data,(e=>{l.getApiLoading(d.Apis.WorkOrder.HouseWorkOrders.GetAssignPermission,{id:e}).then((e=>{o.useModel.assignPermissionData.value=null==e?void 0:e.data}))})(null==(n=null==e?void 0:e.data)?void 0:n.id)}))},getHouseWorkLogs(e){l.getApiLoading(d.Apis.WorkOrder.HouseWorkLogs.List,{house_work_orders_id:e}).then((e=>{o.useModel.logsData.value=null==e?void 0:e.data}))},toPageUpdate(l){var d,n,i;e.index.navigateTo({url:`/INDEX/task/update/index?id=${null==(i=null==(n=null==(d=o.useModel)?void 0:d.dataShow)?void 0:n.value)?void 0:i.id}&type=${l}`})},handlePreviewImage(l){var d,n,i,a;let u=(null==(a=null==(i=null==(n=null==(d=o.useModel)?void 0:d.dataShow)?void 0:n.value)?void 0:i.attachments)?void 0:a.map((e=>null==e?void 0:e.url)))||[];e.index.previewImage({urls:u,current:l})},handlePendingPaymentQrCode(e){},handleCopyPhone(){var l,d,n,i,a,u,r,t,s,v,h,p;(null==(n=null==(d=null==(l=o.useModel)?void 0:l.dataShow)?void 0:d.value)?void 0:n.contact_phone)?e.index.makePhoneCall({phoneNumber:null==(u=null==(a=null==(i=o.useModel)?void 0:i.dataShow)?void 0:a.value)?void 0:u.contact_phone}):(null==(s=null==(t=null==(r=o.useModel)?void 0:r.dataShow)?void 0:t.value)?void 0:s.reporter_phone)?e.index.makePhoneCall({phoneNumber:null==(p=null==(h=null==(v=o.useModel)?void 0:v.dataShow)?void 0:h.value)?void 0:p.reporter_phone}):e.index.showToast({title:"暂无电话号码",icon:"none"})}};exports.method=n; diff --git a/dist/build/mp-weixin/INDEX/task/show/model.js b/dist/build/mp-weixin/INDEX/task/show/model.js new file mode 100644 index 0000000..bc5f9fa --- /dev/null +++ b/dist/build/mp-weixin/INDEX/task/show/model.js @@ -0,0 +1 @@ +"use strict";const e=require("../../../common/vendor.js"),s={dataShow:e.ref({}),logsData:e.ref([]),assignPermissionData:e.ref({})};exports.useModel=s; diff --git a/dist/build/mp-weixin/INDEX/task/update/index.js b/dist/build/mp-weixin/INDEX/task/update/index.js new file mode 100644 index 0000000..d703c12 --- /dev/null +++ b/dist/build/mp-weixin/INDEX/task/update/index.js @@ -0,0 +1 @@ +"use strict";const e=require("../../../common/vendor.js"),o=require("../../../gen/Enums.js"),r=require("./method.js"),l=require("./model.js");if(require("../../../common/libraries/request.js"),require("../../../common/store/useWeAppAuthStore.js"),require("../../../gen/Apis.js"),require("../../../common/store/useWatermarkStore.js"),require("../../../common/store/useWorkStore.js"),require("../../../common/libraries/apiLoading.js"),require("../../../common/libraries/naviHelper.js"),!Array){(e.resolveComponent("hs-radio")+e.resolveComponent("hs-cell")+e.resolveComponent("hs-popup-employees")+e.resolveComponent("hs-day-picker")+e.resolveComponent("hs-cell-textarea")+e.resolveComponent("hs-footer"))()}Math||((()=>"../../../components/hs-radio/hs-radio.js")+(()=>"../../../components/hs-cell/hs-cell.js")+(()=>"../../../components/hs-popup-employees/hs-popup-employees.js")+(()=>"../../../components/hs-day-picker/hs-day-picker.js")+(()=>"../../../components/hs-cell-textarea/hs-cell-textarea.js")+(()=>"../../../components/hs-footer/hs-footer.js"))();const s=e.defineComponent({__name:"index",setup:s=>(e.onLoad((e=>{var o;null==(o=r.method)||o.init(e)})),(s,n)=>{var a,u,t,i,m,p,d,v,c,f,h;return e.e({a:e.o((o=>e.unref(l.useModel).formData.value.level=o)),b:e.p({Enums:e.unref(o.HouseWorkOrdersLevelEnum),valueModel:e.unref(l.useModel).formData.value.level}),c:e.p({title:"优先级",required:!0}),d:"领取工单"===(null==(t=null==(u=null==(a=e.unref(l.useModel))?void 0:a.formData)?void 0:u.value)?void 0:t.pageType)},"领取工单"===(null==(p=null==(m=null==(i=e.unref(l.useModel))?void 0:i.formData)?void 0:m.value)?void 0:p.pageType)?{e:e.t(null==(f=null==(c=null==(v=null==(d=e.unref(l.useModel))?void 0:d.formData)?void 0:v.value)?void 0:c.assign_employees)?void 0:f.name),f:e.p({title:"处理人",required:!0,borderTop:!0})}:{g:e.o((o=>e.unref(l.useModel).formData.value.assign_employees_id=o)),h:e.p({title:"处理人",valueModel:e.unref(l.useModel).formData.value.assign_employees_id})},{i:e.o((o=>e.unref(l.useModel).formData.value.predict_complete_at=o)),j:e.p({valueModel:e.unref(l.useModel).formData.value.predict_complete_at}),k:e.p({title:"预计完成时间",required:!0,borderTop:!0,isLink:!0}),l:e.o((o=>e.unref(l.useModel).formData.value.assign_remark=o)),m:e.p({title:"备注说明",placeholder:"请输入备注",valueModel:e.unref(l.useModel).formData.value.assign_remark}),n:e.o(null==(h=e.unref(r.method))?void 0:h.handleSubmit),o:e.p({btnParimaryName:"提交"})})})});wx.createPage(s); diff --git a/dist/build/mp-weixin/INDEX/task/update/index.json b/dist/build/mp-weixin/INDEX/task/update/index.json new file mode 100644 index 0000000..699d4df --- /dev/null +++ b/dist/build/mp-weixin/INDEX/task/update/index.json @@ -0,0 +1,11 @@ +{ + "navigationBarTitleText": "领取工单", + "usingComponents": { + "hs-radio": "../../../components/hs-radio/hs-radio", + "hs-cell": "../../../components/hs-cell/hs-cell", + "hs-popup-employees": "../../../components/hs-popup-employees/hs-popup-employees", + "hs-day-picker": "../../../components/hs-day-picker/hs-day-picker", + "hs-cell-textarea": "../../../components/hs-cell-textarea/hs-cell-textarea", + "hs-footer": "../../../components/hs-footer/hs-footer" + } +} \ No newline at end of file diff --git a/dist/build/mp-weixin/INDEX/task/update/index.wxml b/dist/build/mp-weixin/INDEX/task/update/index.wxml new file mode 100644 index 0000000..05a12e4 --- /dev/null +++ b/dist/build/mp-weixin/INDEX/task/update/index.wxml @@ -0,0 +1 @@ +{{e}} \ No newline at end of file diff --git a/dist/build/mp-weixin/INDEX/task/update/index.wxss b/dist/build/mp-weixin/INDEX/task/update/index.wxss new file mode 100644 index 0000000..7fe30a7 --- /dev/null +++ b/dist/build/mp-weixin/INDEX/task/update/index.wxss @@ -0,0 +1 @@ +page{background-color:#f8f8f8}.card_form{background-color:#fff;padding:0 30rpx;margin-bottom:30rpx}.handler_label{padding:10rpx 0} diff --git a/dist/build/mp-weixin/INDEX/task/update/method.js b/dist/build/mp-weixin/INDEX/task/update/method.js new file mode 100644 index 0000000..9e7d2ce --- /dev/null +++ b/dist/build/mp-weixin/INDEX/task/update/method.js @@ -0,0 +1 @@ +"use strict";const e=require("../../../common/vendor.js");require("../../../common/libraries/request.js"),require("../../../common/store/useWatermarkStore.js");const o=require("../../../common/store/useWeAppAuthStore.js");require("../../../common/store/useWorkStore.js");const r=require("./model.js"),s=require("../../../gen/Apis.js"),i=require("../../../common/libraries/apiLoading.js"),l=require("../../../common/libraries/naviHelper.js"),u=o.useWeAppAuthStore(),n={init(o){var s;e.index.setNavigationBarTitle({title:null==o?void 0:o.type}),console.log("init",null==u?void 0:u.data),r.useModel.formData.value={...o,pageType:null==o?void 0:o.type,assign_employees:null==(s=null==u?void 0:u.data)?void 0:s.user,house_work_orders_id:null==o?void 0:o.id}},handleSubmit(){var e,o;console.log("handleSubmit",r.useModel.formData.value);let u=null==(o=null==(e=r.useModel)?void 0:e.formData)?void 0:o.value;return(null==u?void 0:u.level)?"指派工单"!==(null==u?void 0:u.pageType)||(null==u?void 0:u.assign_employees_id)?void i.getApiLoading("指派工单"===(null==u?void 0:u.pageType)?s.Apis.WorkOrder.HouseWorkOrders.Assign:s.Apis.WorkOrder.HouseWorkOrders.Receive,u).then((e=>{l.showToastBack("指派工单"===(null==u?void 0:u.pageType)?"提交成功!":"领取成功!",1,!0),console.log(e)})):l.showToast("请先选择处理人!"):l.showToast("请先选择优先级!")}};exports.method=n; diff --git a/dist/build/mp-weixin/INDEX/task/update/model.js b/dist/build/mp-weixin/INDEX/task/update/model.js new file mode 100644 index 0000000..f135e3a --- /dev/null +++ b/dist/build/mp-weixin/INDEX/task/update/model.js @@ -0,0 +1 @@ +"use strict";const e=require("../../../common/vendor.js"),r={formData:e.ref({}),HouseWorkOrdersStatusItemEnum:e.ref(),HouseWorkOrdersCostEnum:e.ref()};exports.useModel=r; diff --git a/dist/build/mp-weixin/INDEX/watermark_camera/index.js b/dist/build/mp-weixin/INDEX/watermark_camera/index.js new file mode 100644 index 0000000..dfada6a --- /dev/null +++ b/dist/build/mp-weixin/INDEX/watermark_camera/index.js @@ -0,0 +1 @@ +"use strict";const e=require("../../common/vendor.js"),r=require("../../common/libraries/map.js"),o=require("./method.js"),u=require("./model.js");require("../../common/libraries/request.js"),require("../../common/store/useWeAppAuthStore.js"),require("../../gen/Apis.js"),require("../../common/store/useWatermarkStore.js"),require("../../common/store/useWorkStore.js"),require("../../common/libraries/apiLoading.js"),require("../../common/libraries/day.js"),require("../../common/libraries/naviHelper.js"),require("../../common/libraries/upload.js");const l=e.defineComponent({__name:"index",setup:l=>(e.onLoad((e=>{let o=r.getMapAddress();u.useModel.source.value=(null==e?void 0:e.source)||"save",o.then((e=>{u.useModel.address.value=e,console.log(e,"地址")}))})),(r,l)=>{var n,i,s,d,a,t,m,v,c,h,q,f,j,p;return{a:e.t(null==(i=null==(n=e.unref(u.useModel))?void 0:n.time)?void 0:i.value),b:e.t((null==(a=null==(d=null==(s=e.unref(u.useModel))?void 0:s.userInfo)?void 0:d.value)?void 0:a.name)||""),c:e.t(null==(m=null==(t=e.unref(u.useModel))?void 0:t.day)?void 0:m.value),d:e.t(null==(c=null==(v=e.unref(u.useModel))?void 0:v.weekDay)?void 0:c.value),e:e.t((null==(f=null==(q=null==(h=e.unref(u.useModel))?void 0:h.address)?void 0:q.value)?void 0:f.address)||""),f:null==(p=null==(j=e.unref(u.useModel))?void 0:j.devicePosition)?void 0:p.value,g:e.o(((...r)=>{var u,l;return(null==(u=e.unref(o.method))?void 0:u.takePhoto)&&(null==(l=e.unref(o.method))?void 0:l.takePhoto(...r))})),h:e.o(((...r)=>{var u,l;return(null==(u=e.unref(o.method))?void 0:u.handleWatermarkCameraSwitch)&&(null==(l=e.unref(o.method))?void 0:l.handleWatermarkCameraSwitch(...r))}))}})});wx.createPage(l); diff --git a/dist/build/mp-weixin/INDEX/watermark_camera/index.json b/dist/build/mp-weixin/INDEX/watermark_camera/index.json new file mode 100644 index 0000000..f9ac2a5 --- /dev/null +++ b/dist/build/mp-weixin/INDEX/watermark_camera/index.json @@ -0,0 +1,4 @@ +{ + "navigationBarTitleText": "水印相机", + "usingComponents": {} +} \ No newline at end of file diff --git a/dist/build/mp-weixin/INDEX/watermark_camera/index.wxml b/dist/build/mp-weixin/INDEX/watermark_camera/index.wxml new file mode 100644 index 0000000..5a445c3 --- /dev/null +++ b/dist/build/mp-weixin/INDEX/watermark_camera/index.wxml @@ -0,0 +1 @@ +{{a}}{{b}}{{c}} {{d}}{{e}} 切换 \ No newline at end of file diff --git a/dist/build/mp-weixin/INDEX/watermark_camera/index.wxss b/dist/build/mp-weixin/INDEX/watermark_camera/index.wxss new file mode 100644 index 0000000..e53f22a --- /dev/null +++ b/dist/build/mp-weixin/INDEX/watermark_camera/index.wxss @@ -0,0 +1 @@ +page{background-color:#f8f8f8}.camera_container{position:relative;height:82vh}.footer_btn_group{display:flex;justify-content:center;padding-top:30rpx}.footer_btn_group .take_photo_btn{width:135rpx;height:135rpx;display:flex;align-items:center;justify-content:center;font-size:30rpx;border-radius:100rpx;border:15rpx solid #0082fa;background-color:#fff;color:#000}.watermark_preview{position:absolute;bottom:0;left:30rpx;z-index:100}.watermark_preview .watermark_date{display:flex;align-items:center;color:#fff}.watermark_preview .watermark_date .watermark_item{font-size:76rpx;font-weight:550;line-height:50rpx}.watermark_preview .watermark_date .watermark_item_separator{margin:0 20rpx;background-color:#ff7105;width:5rpx;height:50rpx}.watermark_preview .watermark_date .watermark_item_info{font-size:28rpx;line-height:30rpx}.watermark_preview .watermark_date .watermark_item_info .watermark_week{font-size:24rpx;padding-top:5rpx}.watermark_preview .watermark_address{color:#fff;font-size:26rpx;padding:20rpx 0 25rpx}.watermark_camera_witch_btn{position:absolute;right:100rpx;z-index:100;height:165rpx;display:flex;align-items:center}.watermark_camera_witch_btn .watermark_camera_witch_btn_content{height:80rpx;text-align:center;line-height:40rpx}.watermark_camera_witch_btn .watermark_camera_witch_btn_content .watermark_camera_witch_btn_img{width:60rpx;height:55rpx;line-height:40rpx}.watermark_camera_witch_btn .watermark_camera_witch_btn_content image{width:60rpx;height:60rpx}.watermark_camera_witch_btn .watermark_camera_witch_btn_content .watermark_camera_witch_text{font-size:24rpx;color:#333;font-weight:500}#watermark_camera{position:fixed;top:0;left:-1000px} diff --git a/dist/build/mp-weixin/INDEX/watermark_camera/method.js b/dist/build/mp-weixin/INDEX/watermark_camera/method.js new file mode 100644 index 0000000..f1c2f68 --- /dev/null +++ b/dist/build/mp-weixin/INDEX/watermark_camera/method.js @@ -0,0 +1 @@ +"use strict";const e=require("../../common/vendor.js");require("../../common/libraries/request.js");const l=require("../../common/store/useWatermarkStore.js");require("../../common/store/useWeAppAuthStore.js"),require("../../common/store/useWorkStore.js");const o=require("../../common/libraries/day.js"),a=require("../../common/libraries/naviHelper.js"),s=require("../../common/libraries/upload.js"),i=require("./model.js"),t=l.useWatermarkStore(),n={handleWatermarkCameraSwitch(){i.useModel.devicePosition.value="back"===i.useModel.devicePosition.value?"front":"back"},takePhoto(){const l=e.index.createCameraContext(),n=e.index.getSystemInfoSync();let u=.82*(null==n?void 0:n.windowHeight);console.log(n,"systemInfo"),l.takePhoto({quality:"high",success:l=>{var n,r;e.index.showLoading({title:"save"===(null==(r=null==(n=i.useModel)?void 0:n.source)?void 0:r.value)?"正在保存...":"正在上传...",mask:!0});let d=e.index.createCanvasContext("watermark_camera");e.index.getImageInfo({src:null==l?void 0:l.tempImagePath,success:n=>{var r,c,v,m,h,f,g,x,k,p;const{width:I,height:M}=n;console.log(n,"img");const w=430*M/I;i.useModel.time.value=o.showCurrentTime(),d.drawImage((null==l?void 0:l.tempImagePath)||"",0,0,430,w),d.setFillStyle("rgba(0, 0, 0, 0.2)"),d.fillRect(0,u-100,430,100),d.setFillStyle("#ff7105"),d.fillRect(131,u-75,2,28),d.fillStyle="#fff",d.font="500 16px Arial",d.fillText((null==(v=null==(c=null==(r=i.useModel)?void 0:r.address)?void 0:c.value)?void 0:v.address)||"",15,u-17),d.fillText((null==(f=null==(h=null==(m=i.useModel)?void 0:m.userInfo)?void 0:h.value)?void 0:f.name)||"没有登录",141,u-64),d.font="500 12px Arial",d.fillText(`${(null==(g=i.useModel)?void 0:g.day.value)||""} ${(null==(x=i.useModel)?void 0:x.weekDay.value)||""}`,141,u-49),d.setLineWidth(3),d.setStrokeStyle("#fff"),d.font="900 45px Arial",d.fillText((null==(k=i.useModel)?void 0:k.time.value)||"",12,u-45),d.strokeText((null==(p=i.useModel)?void 0:p.time.value)||"",12,u-45),d.stroke(),d.draw(!1,(()=>{e.index.canvasToTempFilePath({canvasId:"watermark_camera",success:l=>{var o,n,u,r,d,c,v,m;console.log(l,"nImg"),"current"===(null==(n=null==(o=i.useModel)?void 0:o.source)?void 0:n.value)&&s.uploadImgWatermark({path:null==l?void 0:l.tempFilePath,name:`${(null==(d=null==(r=null==(u=i.useModel)?void 0:u.userInfo)?void 0:r.value)?void 0:d.name)||"未登录"}-打卡-${(null==(c=i.useModel)?void 0:c.day.value)||""}`}).then((l=>{console.log(l,"uploadRes"),t.watermarkInfo.value=l?[l]:[],e.index.navigateBack({delta:1}),e.index.hideLoading()})).catch((l=>{console.log(l,"err"),e.index.hideLoading()})),"save"===(null==(m=null==(v=i.useModel)?void 0:v.source)?void 0:m.value)&&e.index.saveImageToPhotosAlbum({filePath:null==l?void 0:l.tempFilePath,success:function(){a.showToast("保存成功"),console.log("save success")}})}})}))}}),console.log(l)}})}};exports.method=n; diff --git a/dist/build/mp-weixin/INDEX/watermark_camera/model.js b/dist/build/mp-weixin/INDEX/watermark_camera/model.js new file mode 100644 index 0000000..d38681b --- /dev/null +++ b/dist/build/mp-weixin/INDEX/watermark_camera/model.js @@ -0,0 +1 @@ +"use strict";var e;require("../../common/libraries/request.js"),require("../../common/store/useWatermarkStore.js");const r=require("../../common/store/useWeAppAuthStore.js");require("../../common/store/useWorkStore.js");const o=require("../../common/libraries/day.js"),s=require("../../common/vendor.js"),t=r.useWeAppAuthStore(),u={devicePosition:s.ref("back"),time:s.ref(o.showCurrentTime()),day:s.ref(o.getDay()),weekDay:s.ref(o.showWeekDay()),address:s.ref({address:"暂无地址"}),userInfo:s.ref(null==(e=null==t?void 0:t.data)?void 0:e.user),source:s.ref("save")};exports.useModel=u; diff --git a/dist/build/mp-weixin/ME/announcement/list/index.js b/dist/build/mp-weixin/ME/announcement/list/index.js new file mode 100644 index 0000000..e2bef9b --- /dev/null +++ b/dist/build/mp-weixin/ME/announcement/list/index.js @@ -0,0 +1 @@ +"use strict";const e=require("../../../common/vendor.js"),o=require("./model.js"),n=require("./method.js"),r=require("../../../common/libraries/day.js");if(require("../../../common/libraries/apiLoading.js"),require("../../../gen/Apis.js"),require("../../../common/libraries/request.js"),require("../../../common/store/useWeAppAuthStore.js"),require("../../../common/store/useWatermarkStore.js"),require("../../../common/store/useWorkStore.js"),!Array){(e.resolveComponent("uni-icons")+e.resolveComponent("cc-scroll-loading"))()}Math||((()=>"../../../uni_modules/uni-icons/components/uni-icons/uni-icons.js")+(()=>"../../../common/components/cc-scroll-loading/cc-scroll-loading.js"))();const i=e.defineComponent({__name:"index",setup:i=>(e.onLoad((()=>{n.method.getList()})),e.onUnload((()=>{o.useModel.listData.value=[]})),(i,s)=>{var l,t,u,a,d;return{a:e.f(null==(t=null==(l=e.unref(o.useModel))?void 0:l.listData)?void 0:t.value,((o,i,s)=>({a:e.t((null==o?void 0:o.title)||""),b:e.t(e.unref(r.showDay)(null==o?void 0:o.publish_at)),c:null==o?void 0:o.content,d:"2ef6a311-1-"+s+",2ef6a311-0",e:`news_${i}`,f:e.o((r=>{var i;return null==(i=e.unref(n.method))?void 0:i.toDetaile(o)}),`news_${i}`)}))),b:e.p({type:"right",size:"15"}),c:e.o(null==(u=e.unref(n.method))?void 0:u.loadMore),d:e.p({meta:null==(d=null==(a=e.unref(o.useModel))?void 0:a.metaData)?void 0:d.value})}})});wx.createPage(i); diff --git a/dist/build/mp-weixin/ME/announcement/list/index.json b/dist/build/mp-weixin/ME/announcement/list/index.json new file mode 100644 index 0000000..3821c13 --- /dev/null +++ b/dist/build/mp-weixin/ME/announcement/list/index.json @@ -0,0 +1,7 @@ +{ + "navigationBarTitleText": "公告列表", + "usingComponents": { + "uni-icons": "../../../uni_modules/uni-icons/components/uni-icons/uni-icons", + "cc-scroll-loading": "../../../common/components/cc-scroll-loading/cc-scroll-loading" + } +} \ No newline at end of file diff --git a/dist/build/mp-weixin/ME/announcement/list/index.wxml b/dist/build/mp-weixin/ME/announcement/list/index.wxml new file mode 100644 index 0000000..6466270 --- /dev/null +++ b/dist/build/mp-weixin/ME/announcement/list/index.wxml @@ -0,0 +1 @@ +{{i.a}}{{i.b}} 查看详情 \ No newline at end of file diff --git a/dist/build/mp-weixin/ME/announcement/list/index.wxss b/dist/build/mp-weixin/ME/announcement/list/index.wxss new file mode 100644 index 0000000..eab7ced --- /dev/null +++ b/dist/build/mp-weixin/ME/announcement/list/index.wxss @@ -0,0 +1 @@ +page{background-color:#f8f8f8}.message_center{padding:0 30rpx}.message_center .message_center_items{background-color:#fff;border-radius:20rpx;padding:0 30rpx;margin-top:30rpx}.message_center .message_center_items .title{color:#333;font-size:28rpx;font-weight:500;padding:30rpx 0 10rpx}.message_center .message_center_items .time{color:#999;font-size:24rpx;padding:0 0 10rpx}.message_center .message_center_items .contents_des{color:#666;font-size:28rpx;line-height:40rpx;height:80rpx;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}.message_center .message_center_items .footer{display:flex;align-items:center;justify-content:space-between;padding:25rpx 0;margin-top:20rpx;border-top:1rpx solid #f5f5f5;color:#333;font-size:28rpx} diff --git a/dist/build/mp-weixin/ME/announcement/list/method.js b/dist/build/mp-weixin/ME/announcement/list/method.js new file mode 100644 index 0000000..21c976c --- /dev/null +++ b/dist/build/mp-weixin/ME/announcement/list/method.js @@ -0,0 +1 @@ +"use strict";const e=require("../../../common/vendor.js"),o=require("../../../common/libraries/apiLoading.js"),r=require("../../../gen/Apis.js"),s=require("./model.js");require("../../../common/libraries/request.js"),require("../../../common/store/useWatermarkStore.js");const t=require("../../../common/store/useWeAppAuthStore.js");require("../../../common/store/useWorkStore.js"),t.useWeAppAuthStore();const i=()=>{var e,t;o.getApiLoading(r.Apis.Msg.MsgPropertyAnnouncements.List,null==(t=null==(e=s.useModel)?void 0:e.formData)?void 0:t.value).then((e=>{s.useModel.listData.value=[...s.useModel.listData.value,...null==e?void 0:e.data],s.useModel.metaData.value=null==e?void 0:e.meta,console.log(e)}))},u={getList:i,loadMore(e){s.useModel.formData.value.page=null==e?void 0:e.page,i()},toDetaile(o){e.index.navigateTo({url:`/ME/announcement/show/index?id=${null==o?void 0:o.id}`})}};exports.method=u; diff --git a/dist/build/mp-weixin/ME/announcement/list/model.js b/dist/build/mp-weixin/ME/announcement/list/model.js new file mode 100644 index 0000000..5cf4a24 --- /dev/null +++ b/dist/build/mp-weixin/ME/announcement/list/model.js @@ -0,0 +1 @@ +"use strict";const e=require("../../../common/vendor.js"),r={listData:e.ref([]),formData:e.ref({page:1}),metaData:e.ref({})};exports.useModel=r; diff --git a/dist/build/mp-weixin/ME/announcement/show/index.js b/dist/build/mp-weixin/ME/announcement/show/index.js new file mode 100644 index 0000000..e926589 --- /dev/null +++ b/dist/build/mp-weixin/ME/announcement/show/index.js @@ -0,0 +1 @@ +"use strict";const e=require("../../../common/vendor.js"),o=require("./model.js"),u=require("./method.js"),l=require("../../../common/libraries/day.js");require("../../../common/libraries/apiLoading.js"),require("../../../gen/Apis.js"),require("../../../common/libraries/request.js"),require("../../../common/store/useWeAppAuthStore.js"),require("../../../common/store/useWatermarkStore.js"),require("../../../common/store/useWorkStore.js");const r=e.defineComponent({__name:"index",setup:r=>(e.onLoad((e=>{u.method.getShow(null==e?void 0:e.id)})),(u,r)=>{var i,n,s,t,a,d,v,m,c,h,q,j,p,w,b;return e.e({a:e.t((null==(s=null==(n=null==(i=e.unref(o.useModel))?void 0:i.showData)?void 0:n.value)?void 0:s.title)||"无标题"),b:null==(d=null==(a=null==(t=e.unref(o.useModel))?void 0:t.showData)?void 0:a.value)?void 0:d.publish_at},(null==(c=null==(m=null==(v=e.unref(o.useModel))?void 0:v.showData)?void 0:m.value)?void 0:c.publish_at)?{c:e.t(e.unref(l.showDay)((null==(j=null==(q=null==(h=e.unref(o.useModel))?void 0:h.showData)?void 0:q.value)?void 0:j.publish_at)||""))}:{},{d:null==(b=null==(w=null==(p=e.unref(o.useModel))?void 0:p.showData)?void 0:w.value)?void 0:b.content})})});wx.createPage(r); diff --git a/dist/build/mp-weixin/ME/announcement/show/index.json b/dist/build/mp-weixin/ME/announcement/show/index.json new file mode 100644 index 0000000..cdf1a41 --- /dev/null +++ b/dist/build/mp-weixin/ME/announcement/show/index.json @@ -0,0 +1,4 @@ +{ + "navigationBarTitleText": "公告详情", + "usingComponents": {} +} \ No newline at end of file diff --git a/dist/build/mp-weixin/ME/announcement/show/index.wxml b/dist/build/mp-weixin/ME/announcement/show/index.wxml new file mode 100644 index 0000000..58385a5 --- /dev/null +++ b/dist/build/mp-weixin/ME/announcement/show/index.wxml @@ -0,0 +1 @@ +{{a}}{{c}} \ No newline at end of file diff --git a/dist/build/mp-weixin/ME/announcement/show/index.wxss b/dist/build/mp-weixin/ME/announcement/show/index.wxss new file mode 100644 index 0000000..b2f406a --- /dev/null +++ b/dist/build/mp-weixin/ME/announcement/show/index.wxss @@ -0,0 +1 @@ +.news_show{padding:0 30rpx;border-top:1px solid #f8f8f8}.news_show .title{font-size:32rpx;font-weight:500;height:30rpx;line-height:30rpx;padding:30rpx 0 15rpx;color:#333}.news_show .time{color:#999;font-size:26rpx}.news_show .contents{line-height:43rpx;font-size:28rpx;color:#333;padding:30rpx 0} diff --git a/dist/build/mp-weixin/ME/announcement/show/method.js b/dist/build/mp-weixin/ME/announcement/show/method.js new file mode 100644 index 0000000..1236078 --- /dev/null +++ b/dist/build/mp-weixin/ME/announcement/show/method.js @@ -0,0 +1 @@ +"use strict";const e=require("../../../common/libraries/apiLoading.js"),o=require("../../../gen/Apis.js"),r=require("./model.js");require("../../../common/libraries/request.js"),require("../../../common/store/useWatermarkStore.js");const s=require("../../../common/store/useWeAppAuthStore.js");require("../../../common/store/useWorkStore.js"),s.useWeAppAuthStore();const t={getShow(s){e.getApiLoading(o.Apis.Msg.MsgPropertyAnnouncements.Show,{id:s}).then((e=>{r.useModel.showData.value=null==e?void 0:e.data,console.log(e)}))}};exports.method=t; diff --git a/dist/build/mp-weixin/ME/announcement/show/model.js b/dist/build/mp-weixin/ME/announcement/show/model.js new file mode 100644 index 0000000..62c5316 --- /dev/null +++ b/dist/build/mp-weixin/ME/announcement/show/model.js @@ -0,0 +1 @@ +"use strict";const e={showData:require("../../../common/vendor.js").ref([])};exports.useModel=e; diff --git a/dist/build/mp-weixin/ME/feedback/index.js b/dist/build/mp-weixin/ME/feedback/index.js index 1b11a03..f0fc443 100644 --- a/dist/build/mp-weixin/ME/feedback/index.js +++ b/dist/build/mp-weixin/ME/feedback/index.js @@ -1 +1 @@ -"use strict";const e=require("../../common/vendor.js"),o=require("./model.js"),n=require("./method.js");if(require("../../common/libraries/apiLoading.js"),require("../../gen/Apis.js"),require("../../common/libraries/request.js"),require("../../common/store/useWeAppAuthStore.js"),require("../../common/store/useWorkStore.js"),require("../../common/libraries/naviHelper.js"),!Array){(e.resolveComponent("uni-icons")+e.resolveComponent("hs-upload")+e.resolveComponent("hs-footer"))()}Math||((()=>"../../uni_modules/uni-icons/components/uni-icons/uni-icons.js")+(()=>"../../components/hs-upload/hs-upload.js")+(()=>"../../components/hs-footer/hs-footer.js"))();const r=e.defineComponent({__name:"index",setup:r=>(e.onUnload((()=>{o.useModel.formData.value={}})),(r,u)=>{var l;return{a:e.o(((...o)=>{var r,u;return(null==(r=e.unref(n.method))?void 0:r.toWorkOrder)&&(null==(u=e.unref(n.method))?void 0:u.toWorkOrder(...o))})),b:e.f(null==(l=e.unref(o.useModel))?void 0:l.typeList,((r,u,l)=>{var t,i,a,s,d,m;return{a:"330eb960-0-"+l,b:e.p({type:null==r?void 0:r.icon,size:"20",color:(null==r?void 0:r.value)===(null==(a=null==(i=null==(t=e.unref(o.useModel))?void 0:t.formData)?void 0:i.value)?void 0:a.type)?"#2a7efb":"#999"}),c:e.t(null==r?void 0:r.label),d:`item_${u}`,e:e.n("feedback_page_type_item_btn "+((null==r?void 0:r.value)===(null==(m=null==(d=null==(s=e.unref(o.useModel))?void 0:s.formData)?void 0:d.value)?void 0:m.type)?"active":"")),f:e.o((o=>e.unref(n.method).handleSelectType(r)),`item_${u}`)}})),c:e.unref(o.useModel).formData.value.content,d:e.o((n=>e.unref(o.useModel).formData.value.content=n.detail.value)),e:e.o((n=>e.unref(o.useModel).formData.value.images=n)),f:e.p({title:"问题页面截图,最多五张(选填)",count:5,size:4,valueModel:e.unref(o.useModel).formData.value.images}),g:e.o(e.unref(n.method).handleSubmit),h:e.p({handleParmaryClick:"提交"})}})});wx.createPage(r); +"use strict";const e=require("../../common/vendor.js"),o=require("./model.js"),r=require("./method.js");if(require("../../common/libraries/apiLoading.js"),require("../../gen/Apis.js"),require("../../common/libraries/request.js"),require("../../common/store/useWeAppAuthStore.js"),require("../../common/store/useWatermarkStore.js"),require("../../common/store/useWorkStore.js"),require("../../common/libraries/naviHelper.js"),!Array){(e.resolveComponent("uni-icons")+e.resolveComponent("hs-upload")+e.resolveComponent("hs-footer"))()}Math||((()=>"../../uni_modules/uni-icons/components/uni-icons/uni-icons.js")+(()=>"../../components/hs-upload/hs-upload.js")+(()=>"../../components/hs-footer/hs-footer.js"))();const n=e.defineComponent({__name:"index",setup:n=>(e.onUnload((()=>{o.useModel.formData.value={}})),(n,u)=>{var l;return{a:e.o(((...o)=>{var n,u;return(null==(n=e.unref(r.method))?void 0:n.toWorkOrder)&&(null==(u=e.unref(r.method))?void 0:u.toWorkOrder(...o))})),b:e.f(null==(l=e.unref(o.useModel))?void 0:l.typeList,((n,u,l)=>{var t,a,i,s,d,m;return{a:"330eb960-0-"+l,b:e.p({type:null==n?void 0:n.icon,size:"20",color:(null==n?void 0:n.value)===(null==(i=null==(a=null==(t=e.unref(o.useModel))?void 0:t.formData)?void 0:a.value)?void 0:i.type)?"#2a7efb":"#999"}),c:e.t(null==n?void 0:n.label),d:`item_${u}`,e:e.n("feedback_page_type_item_btn "+((null==n?void 0:n.value)===(null==(m=null==(d=null==(s=e.unref(o.useModel))?void 0:s.formData)?void 0:d.value)?void 0:m.type)?"active":"")),f:e.o((o=>e.unref(r.method).handleSelectType(n)),`item_${u}`)}})),c:e.unref(o.useModel).formData.value.content,d:e.o((r=>e.unref(o.useModel).formData.value.content=r.detail.value)),e:e.o((r=>e.unref(o.useModel).formData.value.images=r)),f:e.p({title:"问题页面截图,最多五张(选填)",count:5,size:4,valueModel:e.unref(o.useModel).formData.value.images}),g:e.o(e.unref(r.method).handleSubmit),h:e.p({handleParmaryClick:"提交"})}})});wx.createPage(n); diff --git a/dist/build/mp-weixin/ME/feedback/method.js b/dist/build/mp-weixin/ME/feedback/method.js index df1fd1a..6a331b6 100644 --- a/dist/build/mp-weixin/ME/feedback/method.js +++ b/dist/build/mp-weixin/ME/feedback/method.js @@ -1 +1 @@ -"use strict";const e=require("../../common/vendor.js"),o=require("../../common/libraries/apiLoading.js"),r=require("../../gen/Apis.js"),s=require("./model.js"),i=require("../../common/libraries/naviHelper.js");require("../../common/libraries/request.js");const l=require("../../common/store/useWeAppAuthStore.js");require("../../common/store/useWorkStore.js"),l.useWeAppAuthStore();const u={handleSelectType(e){s.useModel.formData.value.type=null==e?void 0:e.value},handleSubmit(){var e,l,u,t,n,a,d,m;return(null==(u=null==(l=null==(e=s.useModel)?void 0:e.formData)?void 0:l.value)?void 0:u.type)?(null==(a=null==(n=null==(t=s.useModel)?void 0:t.formData)?void 0:n.value)?void 0:a.type)?void o.getApiLoading(r.Apis.Customer.CustomerOpinions.Store,null==(m=null==(d=s.useModel)?void 0:d.formData)?void 0:m.value).then((e=>{i.showToastBack("提交成功",1,!0),console.log(e)})):i.showToast("请输入反馈建议!"):i.showToast("请选择反馈类型!")},toWorkOrder(){e.index.navigateTo({url:"/WORKORDER/list/index"})}};exports.method=u; +"use strict";const e=require("../../common/vendor.js"),o=require("../../common/libraries/apiLoading.js"),r=require("../../gen/Apis.js"),s=require("./model.js"),i=require("../../common/libraries/naviHelper.js");require("../../common/libraries/request.js"),require("../../common/store/useWatermarkStore.js");const u=require("../../common/store/useWeAppAuthStore.js");require("../../common/store/useWorkStore.js"),u.useWeAppAuthStore();const l={handleSelectType(e){s.useModel.formData.value.type=null==e?void 0:e.value},handleSubmit(){var e,u,l,t,n,a,d,m;return(null==(l=null==(u=null==(e=s.useModel)?void 0:e.formData)?void 0:u.value)?void 0:l.type)?(null==(a=null==(n=null==(t=s.useModel)?void 0:t.formData)?void 0:n.value)?void 0:a.type)?void o.getApiLoading(r.Apis.Customer.CustomerOpinions.Store,null==(m=null==(d=s.useModel)?void 0:d.formData)?void 0:m.value).then((e=>{i.showToastBack("提交成功",1,!0),console.log(e)})):i.showToast("请输入反馈建议!"):i.showToast("请选择反馈类型!")},toWorkOrder(){e.index.navigateTo({url:"/WORKORDER/list/index"})}};exports.method=l; diff --git a/dist/build/mp-weixin/ME/instrument/add/index.js b/dist/build/mp-weixin/ME/instrument/add/index.js new file mode 100644 index 0000000..d84f79b --- /dev/null +++ b/dist/build/mp-weixin/ME/instrument/add/index.js @@ -0,0 +1 @@ +"use strict";const e=require("../../../common/vendor.js"),o=require("../../../common/libraries/day.js"),l=require("./method.js"),u=require("./model.js");if(require("../../../common/libraries/apiLoading.js"),require("../../../common/libraries/naviHelper.js"),require("../../../gen/Apis.js"),require("../../../common/libraries/request.js"),require("../../../common/store/useWeAppAuthStore.js"),require("../../../common/store/useWatermarkStore.js"),require("../../../common/store/useWorkStore.js"),!Array){(e.resolveComponent("hs-upload")+e.resolveComponent("hs-cell-textarea")+e.resolveComponent("hs-footer"))()}Math||((()=>"../../../components/hs-upload/hs-upload.js")+(()=>"../../../components/hs-cell-textarea/hs-cell-textarea.js")+(()=>"../../../components/hs-footer/hs-footer.js"))();const a=e.defineComponent({__name:"index",setup:a=>(e.onLoad((e=>{var o,u;null==(o=l.method)||o.init(e),null==(u=l.method)||u.getShow(e)})),e.onUnload((()=>{u.useModel.formData.value={is_anonymous:!1}})),(a,r)=>{var n,t,s,i,d,m,v,f,h,c,p,M,D,_,j,g,q,w,y,b,k,x,S,A,C;return e.e({a:"WaterMeter"===(null==(s=null==(t=null==(n=e.unref(u.useModel))?void 0:n.showData)?void 0:t.value)?void 0:s.usage_type)},(null==(m=null==(d=null==(i=e.unref(u.useModel))?void 0:i.showData)?void 0:d.value)||m.usage_type,{}),{b:"ElectricMeter"===(null==(h=null==(f=null==(v=e.unref(u.useModel))?void 0:v.showData)?void 0:f.value)?void 0:h.usage_type)},(null==(M=null==(p=null==(c=e.unref(u.useModel))?void 0:c.showData)?void 0:p.value)||M.usage_type,{}),{c:e.f(null==(j=null==(_=null==(D=e.unref(u.useModel))?void 0:D.showData)?void 0:_.value)?void 0:j.house_meter_has_houses,((o,l,u)=>({a:e.t(null==o?void 0:o.full_name),b:`house_${l}`}))),d:e.t((null==(w=null==(q=null==(g=e.unref(u.useModel))?void 0:g.showData)?void 0:q.value)?void 0:w.name)||"-"),e:e.t((null==(k=null==(b=null==(y=e.unref(u.useModel))?void 0:y.showData)?void 0:b.value)?void 0:k.latest_value)||"-"),f:e.t(e.unref(o.showDay)(null==(A=null==(S=null==(x=e.unref(u.useModel))?void 0:x.showData)?void 0:S.value)?void 0:A.latest_time)),g:e.t(e.unref(o.getDay)()),h:e.unref(u.useModel).formData.value.current_reading,i:e.o((o=>e.unref(u.useModel).formData.value.current_reading=o.detail.value)),j:e.o((o=>e.unref(u.useModel).formData.value.image=o)),k:e.p({title:"上传图片",count:6,valueModel:e.unref(u.useModel).formData.value.image}),l:e.o((o=>e.unref(u.useModel).formData.value.remark=o)),m:e.p({borderTop:!0,title:"备注(选填)",placeholder:"请输入此次抄表的备注,选填",valueModel:e.unref(u.useModel).formData.value.remark}),n:e.o(null==(C=e.unref(l.method))?void 0:C.handleSubmit),o:e.p({btnParimaryName:"提交"})})})});wx.createPage(a); diff --git a/dist/build/mp-weixin/ME/instrument/add/index.json b/dist/build/mp-weixin/ME/instrument/add/index.json new file mode 100644 index 0000000..f1d0acf --- /dev/null +++ b/dist/build/mp-weixin/ME/instrument/add/index.json @@ -0,0 +1,8 @@ +{ + "navigationBarTitleText": "抄表", + "usingComponents": { + "hs-upload": "../../../components/hs-upload/hs-upload", + "hs-cell-textarea": "../../../components/hs-cell-textarea/hs-cell-textarea", + "hs-footer": "../../../components/hs-footer/hs-footer" + } +} \ No newline at end of file diff --git a/dist/build/mp-weixin/ME/instrument/add/index.wxml b/dist/build/mp-weixin/ME/instrument/add/index.wxml new file mode 100644 index 0000000..35ef4a6 --- /dev/null +++ b/dist/build/mp-weixin/ME/instrument/add/index.wxml @@ -0,0 +1 @@ + 水表 电表{{res.a}} 仪表名称:{{d}} 上次读数:{{e}} 上次抄表:{{f}} 本期读数 更新时间:{{g}} \ No newline at end of file diff --git a/dist/build/mp-weixin/ME/instrument/add/index.wxss b/dist/build/mp-weixin/ME/instrument/add/index.wxss new file mode 100644 index 0000000..1cfb70b --- /dev/null +++ b/dist/build/mp-weixin/ME/instrument/add/index.wxss @@ -0,0 +1 @@ +page{background-color:#f8f8f8}.add_page{padding-bottom:calc(150rpx + constant(safe-area-inset-bottom));padding-bottom:calc(150rpx + env(safe-area-inset-bottom))}.add_page_header{background-color:#fff;padding:20rpx 30rpx 30rpx}.add_page_header .header_cell{display:flex;align-items:center;color:#666;font-size:28rpx;padding-top:15rpx}.hande_name_info{display:flex;align-items:center}.hande_name_info .name{color:#333;font-size:28rpx;font-weight:500;padding:0 30rpx 0 0}.hande_name_info .name text{padding-left:20rpx}.hande_name_info .table_tab{display:flex;align-items:center;padding:6rpx 16rpx;border-radius:8rpx;font-size:24rpx}.hande_name_info .table_tab image{width:18rpx;height:24rpx;margin-right:5rpx}.hande_name_info .water{background-color:#f0f8ff;color:#0082fa}.hande_name_info .electricity{background-color:#fff8f0;color:#ffb30f}.add_page_form_content{padding:30rpx}.card_form{background-color:#fff;padding:0 30rpx;margin-bottom:30rpx;border-radius:20rpx}.report_repair{padding:10rpx 0;color:#999}.current_reading{padding:30rpx 0 0;border-bottom:1px solid #eee}.current_reading .title{color:#3d3d3d;font-size:32rpx;font-weight:600;display:flex;align-items:center;justify-content:space-between}.current_reading .title .time{color:#999;font-size:25rpx;font-weight:400}.current_reading .input_reading{color:#3d3d3d;font-size:36rpx;font-weight:600}.current_reading .input_reading input{height:90rpx} diff --git a/dist/build/mp-weixin/ME/instrument/add/method.js b/dist/build/mp-weixin/ME/instrument/add/method.js new file mode 100644 index 0000000..e9b5667 --- /dev/null +++ b/dist/build/mp-weixin/ME/instrument/add/method.js @@ -0,0 +1 @@ +"use strict";const e=require("../../../common/vendor.js"),o=require("../../../common/libraries/apiLoading.js"),a=require("../../../common/libraries/day.js"),i=require("../../../common/libraries/naviHelper.js"),l=require("../../../gen/Apis.js"),s=require("./model.js"),r={init(e){s.useModel.formData.value={house_meters_id:null==e?void 0:e.id}},handleSubmit(){var e,r,n;if(console.log("handleSubmit",s.useModel.formData.value),!(null==(n=null==(r=null==(e=s.useModel)?void 0:e.formData)?void 0:r.value)?void 0:n.current_reading))return i.showToast("请设置本次读数!");o.getApiLoading(l.Apis.Meter.HouseMeterReadings.Store,{...s.useModel.formData.value,reading_time:a.getTime()}).then((e=>{i.showToastBack("提交成功!",1,!0),console.log(e)}))},handleToSelectHouse(){e.index.navigateTo({url:"/pages/public/asset_houses/index?type=work_add"})},handleSwitchChange(e){var o;s.useModel.formData.value.is_anonymous=null==(o=null==e?void 0:e.detail)?void 0:o.value,console.log(e,"e")},getShow(e){o.getApiLoading(l.Apis.Meter.HouseMeters.Show,e).then((e=>{s.useModel.showData.value=null==e?void 0:e.data,console.log(e)}))}};exports.method=r; diff --git a/dist/build/mp-weixin/ME/instrument/add/model.js b/dist/build/mp-weixin/ME/instrument/add/model.js new file mode 100644 index 0000000..f3f2ae8 --- /dev/null +++ b/dist/build/mp-weixin/ME/instrument/add/model.js @@ -0,0 +1 @@ +"use strict";const e=require("../../../common/vendor.js"),o={formData:e.ref({}),showData:e.ref({})};exports.useModel=o; diff --git a/dist/build/mp-weixin/ME/instrument/list/index.js b/dist/build/mp-weixin/ME/instrument/list/index.js new file mode 100644 index 0000000..b1e556a --- /dev/null +++ b/dist/build/mp-weixin/ME/instrument/list/index.js @@ -0,0 +1 @@ +"use strict";const e=require("../../../common/vendor.js"),o=require("./method.js"),n=require("./model.js");if(require("../../../common/libraries/apiLoading.js"),require("../../../gen/Apis.js"),require("../../../common/libraries/request.js"),require("../../../common/store/useWeAppAuthStore.js"),require("../../../common/store/useWatermarkStore.js"),require("../../../common/store/useWorkStore.js"),!Array){(e.resolveComponent("hs-tabs")+e.resolveComponent("uni-icons")+e.resolveComponent("up-search")+e.resolveComponent("hs-popup-project")+e.resolveComponent("hs-popup-building")+e.resolveComponent("hs-radio-picker-enum")+e.resolveComponent("hs-button")+e.resolveComponent("cc-scroll-loading"))()}Math||((()=>"../../../components/hs-tabs/hs-tabs.js")+(()=>"../../../uni_modules/uni-icons/components/uni-icons/uni-icons.js")+(()=>"../../../node-modules/uview-plus/components/u-search/u-search.js")+(()=>"../../../components/hs-popup-project/hs-popup-project.js")+(()=>"../../../components/hs-popup-building/hs-popup-building.js")+(()=>"../../../components/hs-radio-picker-enum/hs-radio-picker-enum.js")+(()=>"../../../components/hs-button/hs-button.js")+(()=>"../../../common/components/cc-scroll-loading/cc-scroll-loading.js"))();const l=e.defineComponent({__name:"index",setup(l){const u=[{label:"住户仪表",value:"HouseMeter"},{label:"公共仪表",value:"CommonMeter"}],r=[{name:"全部",value:void 0},{name:"已抄表",value:"read"},{name:"未抄表",value:"unread"}];return e.onShow((()=>{var e;n.useModel.formData.value.page=1,n.useModel.listData.value=[],null==(e=o.method)||e.getList()})),e.onUnload((()=>{n.useModel.formData.value={page:1,keyword:"",meter_type:"HouseMeter"}})),(l,s)=>{var t,a,i,d,m,p,c,h,v,f,g,j;return{a:e.o(null==(t=e.unref(o.method))?void 0:t.handleChangeTabs),b:e.p({list:u,current:null==(i=null==(a=e.unref(n.useModel))?void 0:a.currentTabs)?void 0:i.value}),c:e.p({type:"right",size:"13",color:"#333"}),d:e.o((n=>{var l;return null==(l=e.unref(o.method))?void 0:l.handleToLog()})),e:e.o(null==(d=e.unref(o.method))?void 0:d.handleSearch),f:e.o((o=>e.unref(n.useModel).formData.value.keyword=o)),g:e.p({"show-action":!1,placeholder:"搜索房屋名称/仪表名称",modelValue:e.unref(n.useModel).formData.value.keyword}),h:e.o(null==(m=e.unref(o.method))?void 0:m.handleChangeFilter),i:e.o(null==(p=e.unref(o.method))?void 0:p.handleChangeFilter),j:e.p({params:e.unref(n.useModel).formData.value}),k:e.o(null==(c=e.unref(o.method))?void 0:c.handleChangeFilterReadingStatus),l:e.p({Enums:r,title:"抄表状态"}),m:e.f(null==(v=null==(h=e.unref(n.useModel))?void 0:h.listData)?void 0:v.value,((n,l,u)=>e.e({a:"WaterMeter"===(null==n?void 0:n.usage_type)},(null==n||n.usage_type,{}),{b:"ElectricMeter"===(null==n?void 0:n.usage_type)},(null==n||n.usage_type,{}),{c:e.f(null==n?void 0:n.house_meter_has_houses,((o,n,l)=>({a:e.t(null==o?void 0:o.full_name),b:`house_${n}`}))),d:e.t(null==n?void 0:n.name),e:e.t(null==n?void 0:n.latest_value),f:e.t(null==n?void 0:n.latest_time),g:e.o((l=>{var u;return null==(u=e.unref(o.method))?void 0:u.handleToAdd(n)}),`items_${l}`),h:"7f08fc71-7-"+u+",7f08fc71-6",i:`items_${l}`}))),n:e.p({type:"primary",label:"抄表"}),o:e.o(null==(f=e.unref(o.method))?void 0:f.handleLoad),p:e.p({meta:null==(j=null==(g=e.unref(n.useModel))?void 0:g.metaData)?void 0:j.value})}}}});wx.createPage(l); diff --git a/dist/build/mp-weixin/ME/instrument/list/index.json b/dist/build/mp-weixin/ME/instrument/list/index.json new file mode 100644 index 0000000..0a05626 --- /dev/null +++ b/dist/build/mp-weixin/ME/instrument/list/index.json @@ -0,0 +1,13 @@ +{ + "navigationBarTitleText": "仪表抄表", + "usingComponents": { + "hs-tabs": "../../../components/hs-tabs/hs-tabs", + "uni-icons": "../../../uni_modules/uni-icons/components/uni-icons/uni-icons", + "up-search": "../../../node-modules/uview-plus/components/u-search/u-search", + "hs-popup-project": "../../../components/hs-popup-project/hs-popup-project", + "hs-popup-building": "../../../components/hs-popup-building/hs-popup-building", + "hs-radio-picker-enum": "../../../components/hs-radio-picker-enum/hs-radio-picker-enum", + "hs-button": "../../../components/hs-button/hs-button", + "cc-scroll-loading": "../../../common/components/cc-scroll-loading/cc-scroll-loading" + } +} \ No newline at end of file diff --git a/dist/build/mp-weixin/ME/instrument/list/index.wxml b/dist/build/mp-weixin/ME/instrument/list/index.wxml new file mode 100644 index 0000000..3645062 --- /dev/null +++ b/dist/build/mp-weixin/ME/instrument/list/index.wxml @@ -0,0 +1 @@ + 抄表记录 水表 电表{{res.a}} 仪表名称:{{i.d}} 上次读数:{{i.e}} 更新时间:{{i.f}} \ No newline at end of file diff --git a/dist/build/mp-weixin/ME/instrument/list/index.wxss b/dist/build/mp-weixin/ME/instrument/list/index.wxss new file mode 100644 index 0000000..c48fda0 --- /dev/null +++ b/dist/build/mp-weixin/ME/instrument/list/index.wxss @@ -0,0 +1 @@ +page{background-color:#f8f8f8}.header{background-color:#fff;position:fixed;left:0;top:0;right:0;height:280rpx;z-index:100;box-shadow:0 3px 7px rgba(206,206,206,.25)}.header .header_tabs{display:flex;align-items:center;justify-content:space-between;padding:0 30rpx}.header .header_tabs .meter_reading_record{color:#333;font-size:28rpx;display:flex;align-items:center}.header .search{padding:20rpx 30rpx 0}.header .filter{display:flex;align-items:center;justify-content:space-between;padding:16rpx 30rpx 0}.work_contents{padding:280rpx 0 30rpx}.work_contents .work_item{background-color:#fff;border-radius:10rpx;margin:30rpx 30rpx 0;border-radius:15rpx;padding:0 30rpx 10rpx}.work_contents .work_item .work_item_header{display:flex;align-items:self-start;padding:25rpx 0}.work_contents .work_item .work_item_header .name{color:#333;font-size:28rpx;font-weight:500;padding:0 30rpx 0 20rpx;flex:1}.work_contents .work_item .work_item_header .name text{padding-right:20rpx}.work_contents .work_item .work_item_header .table_tab{display:flex;align-items:center;padding:6rpx 16rpx;border-radius:8rpx;font-size:24rpx}.work_contents .work_item .work_item_header .table_tab image{width:18rpx;height:24rpx;margin-right:5rpx}.work_contents .work_item .work_item_header .water{background-color:#f0f8ff;color:#0082fa}.work_contents .work_item .work_item_header .electricity{background-color:#fff8f0;color:#ffb30f}.work_contents .work_item .work_item_cell{display:flex;align-items:center;justify-content:space-between;font-size:30rpx;color:#666;padding-bottom:20rpx}.work_contents .work_item .work_item_cell text{color:#333}.work_contents .work_item .footer_item{padding:0 0 20rpx}.card_status_4{border-top:6px solid #ef4444} diff --git a/dist/build/mp-weixin/ME/instrument/list/method.js b/dist/build/mp-weixin/ME/instrument/list/method.js new file mode 100644 index 0000000..2a242f9 --- /dev/null +++ b/dist/build/mp-weixin/ME/instrument/list/method.js @@ -0,0 +1 @@ +"use strict";const e=require("../../../common/vendor.js"),a=require("../../../common/libraries/apiLoading.js"),l=require("../../../gen/Apis.js"),u=require("./model.js"),d=()=>{var e,d;a.getApiLoading(l.Apis.Meter.HouseMeters.List,null==(d=null==(e=u.useModel)?void 0:e.formData)?void 0:d.value).then((e=>{u.useModel.listData.value=[...u.useModel.listData.value,...null==e?void 0:e.data],u.useModel.metaData.value=null==e?void 0:e.meta}))},o=()=>{u.useModel.formData.value.page=1,u.useModel.listData.value=[],d()},t={getList:d,handleSearch(){o()},handleChangeFilter(e){u.useModel.formData.value={...u.useModel.formData.value,...e,pahe:1},u.useModel.listData.value=[],d()},handleChangeFilterReadingStatus(e){u.useModel.formData.value={...u.useModel.formData.value,reading_status:(null==e?void 0:e.value)||void 0},u.useModel.listData.value=[],d()},handleChangeTabs(e,a){u.useModel.currentTabs.value=e,u.useModel.formData.value.meter_type=null==a?void 0:a.value,o()},handleLoad(e){u.useModel.formData.value.page=e,d()},handleToAdd(a){e.index.navigateTo({url:`/ME/instrument/add/index?id=${null==a?void 0:a.id}`})},handleToLog(){e.index.navigateTo({url:"/ME/instrument/log/index?id="})}};exports.method=t; diff --git a/dist/build/mp-weixin/ME/instrument/list/model.js b/dist/build/mp-weixin/ME/instrument/list/model.js new file mode 100644 index 0000000..92b0cbd --- /dev/null +++ b/dist/build/mp-weixin/ME/instrument/list/model.js @@ -0,0 +1 @@ +"use strict";const e=require("../../../common/vendor.js"),r={currentTabs:e.ref(0),formData:e.ref({page:1,keyword:"",meter_type:"HouseMeter"}),listData:e.ref([]),metaData:e.ref({})};exports.useModel=r; diff --git a/dist/build/mp-weixin/ME/instrument/log/index.js b/dist/build/mp-weixin/ME/instrument/log/index.js new file mode 100644 index 0000000..4e58f86 --- /dev/null +++ b/dist/build/mp-weixin/ME/instrument/log/index.js @@ -0,0 +1 @@ +"use strict";const e=require("../../../common/vendor.js"),o=require("./method.js"),l=require("./model.js");if(require("../../../common/libraries/apiLoading.js"),require("../../../gen/Apis.js"),require("../../../common/libraries/request.js"),require("../../../common/store/useWeAppAuthStore.js"),require("../../../common/store/useWatermarkStore.js"),require("../../../common/store/useWorkStore.js"),!Array){(e.resolveComponent("hs-tabs")+e.resolveComponent("up-search")+e.resolveComponent("hs-popup-project")+e.resolveComponent("hs-popup-building")+e.resolveComponent("cc-scroll-loading"))()}Math||((()=>"../../../components/hs-tabs/hs-tabs.js")+(()=>"../../../node-modules/uview-plus/components/u-search/u-search.js")+(()=>"../../../components/hs-popup-project/hs-popup-project.js")+(()=>"../../../components/hs-popup-building/hs-popup-building.js")+(()=>"../../../common/components/cc-scroll-loading/cc-scroll-loading.js"))();const u=e.defineComponent({__name:"index",setup(u){const n=[{label:"住户仪表",value:"HouseMeter"},{label:"公共仪表",value:"CommonMeter"}];return e.onLoad((()=>{var e;l.useModel.formData.value.page=1,l.useModel.listData.value=[],null==(e=o.method)||e.getList()})),(u,r)=>{var s,t,a,i,d,m,p,v,h,c,f;return{a:e.o(null==(s=e.unref(o.method))?void 0:s.handleChangeTabs),b:e.p({list:n,current:null==(a=null==(t=e.unref(l.useModel))?void 0:t.currentTabs)?void 0:a.value}),c:e.o(null==(i=e.unref(o.method))?void 0:i.handleSearch),d:e.o((o=>e.unref(l.useModel).formData.value.keyword=o)),e:e.p({"show-action":!1,placeholder:"搜索房屋名称/仪表名称",modelValue:e.unref(l.useModel).formData.value.keyword}),f:e.o(null==(d=e.unref(o.method))?void 0:d.handleChangeFilter),g:e.o(null==(m=e.unref(o.method))?void 0:m.handleChangeFilter),h:e.p({params:e.unref(l.useModel).formData.value}),i:e.f(null==(v=null==(p=e.unref(l.useModel))?void 0:p.listData)?void 0:v.value,((l,u,n)=>{var r,s,t,a,i,d,m;return e.e({a:"WaterMeter"===(null==(r=null==l?void 0:l.house_meter)?void 0:r.usage_type)},(null==(s=null==l?void 0:l.house_meter)||s.usage_type,{}),{b:"ElectricMeter"===(null==(t=null==l?void 0:l.house_meter)?void 0:t.usage_type)},(null==(a=null==l?void 0:l.house_meter)||a.usage_type,{}),{c:e.f(null==(i=null==l?void 0:l.house_meter)?void 0:i.house_meter_has_houses,((o,l,u)=>({a:e.t(null==o?void 0:o.full_name),b:`house_${l}`}))),d:e.t(null==(d=null==l?void 0:l.house_meter)?void 0:d.name),e:e.t(null==l?void 0:l.current_reading),f:e.t(null==l?void 0:l.reading_time),g:e.t(null==(m=null==l?void 0:l.company_employee)?void 0:m.name),h:`items_${u}`,i:e.o((u=>{var n;return null==(n=e.unref(o.method))?void 0:n.handleToDetail(l)}),`items_${u}`)})})),j:e.o(null==(h=e.unref(o.method))?void 0:h.handleLoad),k:e.p({meta:null==(f=null==(c=e.unref(l.useModel))?void 0:c.metaData)?void 0:f.value})}}}});wx.createPage(u); diff --git a/dist/build/mp-weixin/ME/instrument/log/index.json b/dist/build/mp-weixin/ME/instrument/log/index.json new file mode 100644 index 0000000..f18222c --- /dev/null +++ b/dist/build/mp-weixin/ME/instrument/log/index.json @@ -0,0 +1,10 @@ +{ + "navigationBarTitleText": "抄表记录", + "usingComponents": { + "hs-tabs": "../../../components/hs-tabs/hs-tabs", + "up-search": "../../../node-modules/uview-plus/components/u-search/u-search", + "hs-popup-project": "../../../components/hs-popup-project/hs-popup-project", + "hs-popup-building": "../../../components/hs-popup-building/hs-popup-building", + "cc-scroll-loading": "../../../common/components/cc-scroll-loading/cc-scroll-loading" + } +} \ No newline at end of file diff --git a/dist/build/mp-weixin/ME/instrument/log/index.wxml b/dist/build/mp-weixin/ME/instrument/log/index.wxml new file mode 100644 index 0000000..8f989cf --- /dev/null +++ b/dist/build/mp-weixin/ME/instrument/log/index.wxml @@ -0,0 +1 @@ + 水表 电表{{res.a}} 仪表名称:{{i.d}} 抄表读数:{{i.e}} 抄表时间:{{i.f}} 抄表人:{{i.g}} \ No newline at end of file diff --git a/dist/build/mp-weixin/ME/instrument/log/index.wxss b/dist/build/mp-weixin/ME/instrument/log/index.wxss new file mode 100644 index 0000000..c48fda0 --- /dev/null +++ b/dist/build/mp-weixin/ME/instrument/log/index.wxss @@ -0,0 +1 @@ +page{background-color:#f8f8f8}.header{background-color:#fff;position:fixed;left:0;top:0;right:0;height:280rpx;z-index:100;box-shadow:0 3px 7px rgba(206,206,206,.25)}.header .header_tabs{display:flex;align-items:center;justify-content:space-between;padding:0 30rpx}.header .header_tabs .meter_reading_record{color:#333;font-size:28rpx;display:flex;align-items:center}.header .search{padding:20rpx 30rpx 0}.header .filter{display:flex;align-items:center;justify-content:space-between;padding:16rpx 30rpx 0}.work_contents{padding:280rpx 0 30rpx}.work_contents .work_item{background-color:#fff;border-radius:10rpx;margin:30rpx 30rpx 0;border-radius:15rpx;padding:0 30rpx 10rpx}.work_contents .work_item .work_item_header{display:flex;align-items:self-start;padding:25rpx 0}.work_contents .work_item .work_item_header .name{color:#333;font-size:28rpx;font-weight:500;padding:0 30rpx 0 20rpx;flex:1}.work_contents .work_item .work_item_header .name text{padding-right:20rpx}.work_contents .work_item .work_item_header .table_tab{display:flex;align-items:center;padding:6rpx 16rpx;border-radius:8rpx;font-size:24rpx}.work_contents .work_item .work_item_header .table_tab image{width:18rpx;height:24rpx;margin-right:5rpx}.work_contents .work_item .work_item_header .water{background-color:#f0f8ff;color:#0082fa}.work_contents .work_item .work_item_header .electricity{background-color:#fff8f0;color:#ffb30f}.work_contents .work_item .work_item_cell{display:flex;align-items:center;justify-content:space-between;font-size:30rpx;color:#666;padding-bottom:20rpx}.work_contents .work_item .work_item_cell text{color:#333}.work_contents .work_item .footer_item{padding:0 0 20rpx}.card_status_4{border-top:6px solid #ef4444} diff --git a/dist/build/mp-weixin/ME/instrument/log/method.js b/dist/build/mp-weixin/ME/instrument/log/method.js new file mode 100644 index 0000000..41a558c --- /dev/null +++ b/dist/build/mp-weixin/ME/instrument/log/method.js @@ -0,0 +1 @@ +"use strict";const e=require("../../../common/vendor.js"),a=require("../../../common/libraries/apiLoading.js"),l=require("../../../gen/Apis.js"),o=require("./model.js"),u=()=>{var e,u;a.getApiLoading(l.Apis.Meter.HouseMeterReadings.List,null==(u=null==(e=o.useModel)?void 0:e.formData)?void 0:u.value).then((e=>{o.useModel.listData.value=[...o.useModel.listData.value,...null==e?void 0:e.data],o.useModel.metaData.value=null==e?void 0:e.meta}))},t=()=>{o.useModel.formData.value.page=1,o.useModel.listData.value=[],u()},d={getList:u,handleSearch(){t()},handleChangeTabs(e,a){o.useModel.currentTabs.value=e,o.useModel.formData.value.meter_type=null==a?void 0:a.value,t()},handleLoad(e){o.useModel.formData.value.page=e,u()},handleChangeFilter(e){o.useModel.formData.value={...o.useModel.formData.value,...e,pahe:1},o.useModel.listData.value=[],u()},handleToDetail(a){e.index.navigateTo({url:`/ME/instrument/log_show/index?id=${null==a?void 0:a.id}`})}};exports.method=d; diff --git a/dist/build/mp-weixin/ME/instrument/log/model.js b/dist/build/mp-weixin/ME/instrument/log/model.js new file mode 100644 index 0000000..92b0cbd --- /dev/null +++ b/dist/build/mp-weixin/ME/instrument/log/model.js @@ -0,0 +1 @@ +"use strict";const e=require("../../../common/vendor.js"),r={currentTabs:e.ref(0),formData:e.ref({page:1,keyword:"",meter_type:"HouseMeter"}),listData:e.ref([]),metaData:e.ref({})};exports.useModel=r; diff --git a/dist/build/mp-weixin/ME/instrument/log_show/index.js b/dist/build/mp-weixin/ME/instrument/log_show/index.js new file mode 100644 index 0000000..537ab08 --- /dev/null +++ b/dist/build/mp-weixin/ME/instrument/log_show/index.js @@ -0,0 +1 @@ +"use strict";const e=require("../../../common/vendor.js"),l=require("./method.js"),u=require("./model.js");require("../../../common/libraries/apiLoading.js"),require("../../../gen/Apis.js"),require("../../../common/libraries/request.js"),require("../../../common/store/useWeAppAuthStore.js"),require("../../../common/store/useWatermarkStore.js"),require("../../../common/store/useWorkStore.js");const o=e.defineComponent({__name:"index",setup:o=>(e.onLoad((e=>{var u;null==(u=l.method)||u.getShow(e)})),(o,n)=>{var r,a,d,i,s,v,t,m,h,_,f,c,w,M,D,g,p,j,q,y,b,k,S,W,A,$,x,L,P,C,E,z,B,F,G,H,I,J,K,N,O,Q,R,T,U,V;return e.e({a:"WaterMeter"===(null==(i=null==(d=null==(a=null==(r=e.unref(u.useModel))?void 0:r.showData)?void 0:a.value)?void 0:d.house_meter)?void 0:i.usage_type)},(null==(m=null==(t=null==(v=null==(s=e.unref(u.useModel))?void 0:s.showData)?void 0:v.value)?void 0:t.house_meter)||m.usage_type,{}),{b:"ElectricMeter"===(null==(c=null==(f=null==(_=null==(h=e.unref(u.useModel))?void 0:h.showData)?void 0:_.value)?void 0:f.house_meter)?void 0:c.usage_type)},(null==(g=null==(D=null==(M=null==(w=e.unref(u.useModel))?void 0:w.showData)?void 0:M.value)?void 0:D.house_meter)||g.usage_type,{}),{c:e.f(null==(y=null==(q=null==(j=null==(p=e.unref(u.useModel))?void 0:p.showData)?void 0:j.value)?void 0:q.house_meter)?void 0:y.house_meter_has_houses,((l,u,o)=>({a:e.t(null==l?void 0:l.full_name),b:`house_${u}`}))),d:e.t((null==(W=null==(S=null==(k=null==(b=e.unref(u.useModel))?void 0:b.showData)?void 0:k.value)?void 0:S.house_meter)?void 0:W.name)||"-"),e:e.t((null==(x=null==($=null==(A=e.unref(u.useModel))?void 0:A.showData)?void 0:$.value)?void 0:x.current_reading)||"-"),f:e.t(null==(C=null==(P=null==(L=e.unref(u.useModel))?void 0:L.showData)?void 0:P.value)?void 0:C.reading_time),g:e.t((null==(F=null==(B=null==(z=null==(E=e.unref(u.useModel))?void 0:E.showData)?void 0:z.value)?void 0:B.company_employee)?void 0:F.name)||"-"),h:e.f(null==(I=null==(H=null==(G=e.unref(u.useModel))?void 0:G.showData)?void 0:H.value)?void 0:I.images,((u,o,n)=>({a:null==u?void 0:u.url,b:`attachment_${o}`,c:e.o((u=>{var n;return null==(n=e.unref(l.method))?void 0:n.handlePreview(o)}),`attachment_${o}`)}))),i:null==(N=null==(K=null==(J=e.unref(u.useModel))?void 0:J.showData)?void 0:K.value)?void 0:N.remark},(null==(R=null==(Q=null==(O=e.unref(u.useModel))?void 0:O.showData)?void 0:Q.value)?void 0:R.remark)?{j:e.t((null==(V=null==(U=null==(T=e.unref(u.useModel))?void 0:T.showData)?void 0:U.value)?void 0:V.remark)||"-")}:{})})});wx.createPage(o); diff --git a/dist/build/mp-weixin/ME/instrument/log_show/index.json b/dist/build/mp-weixin/ME/instrument/log_show/index.json new file mode 100644 index 0000000..6b26bfa --- /dev/null +++ b/dist/build/mp-weixin/ME/instrument/log_show/index.json @@ -0,0 +1,4 @@ +{ + "navigationBarTitleText": "抄表记录详情", + "usingComponents": {} +} \ No newline at end of file diff --git a/dist/build/mp-weixin/ME/instrument/log_show/index.wxml b/dist/build/mp-weixin/ME/instrument/log_show/index.wxml new file mode 100644 index 0000000..40809e4 --- /dev/null +++ b/dist/build/mp-weixin/ME/instrument/log_show/index.wxml @@ -0,0 +1 @@ + 水表 电表{{res.a}} 仪表名称:{{d}} 抄表读数:{{e}} 抄表时间:{{f}} 抄表人:{{g}} 抄表附件 备注:{{j}} \ No newline at end of file diff --git a/dist/build/mp-weixin/ME/instrument/log_show/index.wxss b/dist/build/mp-weixin/ME/instrument/log_show/index.wxss new file mode 100644 index 0000000..06c138a --- /dev/null +++ b/dist/build/mp-weixin/ME/instrument/log_show/index.wxss @@ -0,0 +1 @@ +page{background-color:#f8f8f8}.show_header{margin:30rpx;background-color:#fff;border-radius:15rpx;padding:30rpx}.show_header .header_cell{display:flex;align-items:center;color:#666;font-size:28rpx;padding-top:15rpx}.show_header .hande_name_info{display:flex;align-items:self-start}.show_header .hande_name_info .name{color:#333;font-size:28rpx;font-weight:500;padding:0 30rpx 0 20rpx;flex:1}.show_header .hande_name_info .name text{padding-right:20rpx}.show_header .hande_name_info .table_tab{display:flex;align-items:center;padding:6rpx 16rpx;border-radius:8rpx;font-size:24rpx}.show_header .hande_name_info .table_tab image{width:18rpx;height:24rpx;margin-right:5rpx}.show_header .hande_name_info .water{background-color:#f0f8ff;color:#0082fa}.show_header .hande_name_info .electricity{background-color:#fff8f0;color:#ffb30f}.attachment_img{margin:30rpx;background-color:#fff;padding:30rpx;border-radius:15rpx}.attachment_img .title{font-size:30rpx;font-weight:600}.attachment_img .img_list{display:flex;align-items:center;justify-content:flex-start;flex-wrap:wrap;padding-top:20rpx}.attachment_img .img_list .attachment_img_item{margin-right:20rpx}.attachment_img .img_list .attachment_img_item:last-child{margin-right:0}.attachment_img .img_list image{width:160rpx;height:160rpx}.attachment_img .remark_info{font-size:26rpx;color:#666} diff --git a/dist/build/mp-weixin/ME/instrument/log_show/method.js b/dist/build/mp-weixin/ME/instrument/log_show/method.js new file mode 100644 index 0000000..057c8d3 --- /dev/null +++ b/dist/build/mp-weixin/ME/instrument/log_show/method.js @@ -0,0 +1 @@ +"use strict";const e=require("../../../common/vendor.js"),o=require("../../../common/libraries/apiLoading.js"),i=require("../../../gen/Apis.js"),l=require("./model.js"),r={handlePreview(o){var i,r,s,n;e.index.previewImage({urls:null==(n=null==(s=null==(r=null==(i=l.useModel)?void 0:i.showData)?void 0:r.value)?void 0:s.images)?void 0:n.map((e=>(null==e?void 0:e.url)||"")),current:o})},getShow(e){o.getApiLoading(i.Apis.Meter.HouseMeterReadings.Show,e).then((e=>{l.useModel.showData.value=null==e?void 0:e.data,console.log(e)}))}};exports.method=r; diff --git a/dist/build/mp-weixin/ME/instrument/log_show/model.js b/dist/build/mp-weixin/ME/instrument/log_show/model.js new file mode 100644 index 0000000..bc8f901 --- /dev/null +++ b/dist/build/mp-weixin/ME/instrument/log_show/model.js @@ -0,0 +1 @@ +"use strict";const e={showData:require("../../../common/vendor.js").ref({})};exports.useModel=e; diff --git a/dist/build/mp-weixin/ME/knowledge_qa/index.js b/dist/build/mp-weixin/ME/knowledge_qa/index.js index 739cdbe..c661fa0 100644 --- a/dist/build/mp-weixin/ME/knowledge_qa/index.js +++ b/dist/build/mp-weixin/ME/knowledge_qa/index.js @@ -1 +1 @@ -"use strict";const e=require("../../common/vendor.js"),o=require("./model.js"),r=require("./method.js");if(require("../../common/libraries/request.js"),require("../../common/store/useWeAppAuthStore.js"),require("../../gen/Apis.js"),require("../../common/store/useWorkStore.js"),require("../../common/libraries/apiLoading.js"),!Array){(e.resolveComponent("hs-tabs")+e.resolveComponent("uni-icons"))()}Math||((()=>"../../components/hs-tabs/hs-tabs.js")+(()=>"../../uni_modules/uni-icons/components/uni-icons/uni-icons.js"))();const n=e.defineComponent({__name:"index",setup(n){const s=[{label:"住户服务类",value:"1"},{label:"工单处理类",value:"2"},{label:"催缴费用类",value:"3"}];return(n,i)=>{var u,l,t;return{a:e.o(null==(u=e.unref(r.method))?void 0:u.handleChangeTabs),b:e.p({list:s,current:null==(t=null==(l=e.unref(o.useModel))?void 0:l.currentTabs)?void 0:t.value}),c:e.p({type:"arrow-right",size:"13",color:"#0082FA"}),d:e.o(((...o)=>{var n,s;return(null==(n=e.unref(r.method))?void 0:n.handleShowDetail)&&(null==(s=e.unref(r.method))?void 0:s.handleShowDetail(...o))})),e:e.p({type:"arrow-right",size:"13",color:"#0082FA"}),f:e.o(((...o)=>{var n,s;return(null==(n=e.unref(r.method))?void 0:n.handleShowDetail)&&(null==(s=e.unref(r.method))?void 0:s.handleShowDetail(...o))}))}}}});wx.createPage(n); +"use strict";const e=require("../../common/vendor.js"),o=require("./model.js"),r=require("./method.js");if(require("../../common/libraries/request.js"),require("../../common/store/useWeAppAuthStore.js"),require("../../gen/Apis.js"),require("../../common/store/useWatermarkStore.js"),require("../../common/store/useWorkStore.js"),require("../../common/libraries/apiLoading.js"),!Array){(e.resolveComponent("hs-tabs")+e.resolveComponent("uni-icons"))()}Math||((()=>"../../components/hs-tabs/hs-tabs.js")+(()=>"../../uni_modules/uni-icons/components/uni-icons/uni-icons.js"))();const n=e.defineComponent({__name:"index",setup(n){const s=[{label:"住户服务类",value:"1"},{label:"工单处理类",value:"2"},{label:"催缴费用类",value:"3"}];return(n,t)=>{var u,i,l;return{a:e.o(null==(u=e.unref(r.method))?void 0:u.handleChangeTabs),b:e.p({list:s,current:null==(l=null==(i=e.unref(o.useModel))?void 0:i.currentTabs)?void 0:l.value}),c:e.p({type:"arrow-right",size:"13",color:"#0082FA"}),d:e.o(((...o)=>{var n,s;return(null==(n=e.unref(r.method))?void 0:n.handleShowDetail)&&(null==(s=e.unref(r.method))?void 0:s.handleShowDetail(...o))})),e:e.p({type:"arrow-right",size:"13",color:"#0082FA"}),f:e.o(((...o)=>{var n,s;return(null==(n=e.unref(r.method))?void 0:n.handleShowDetail)&&(null==(s=e.unref(r.method))?void 0:s.handleShowDetail(...o))}))}}}});wx.createPage(n); diff --git a/dist/build/mp-weixin/ME/knowledge_qa/method.js b/dist/build/mp-weixin/ME/knowledge_qa/method.js index eedec63..534a382 100644 --- a/dist/build/mp-weixin/ME/knowledge_qa/method.js +++ b/dist/build/mp-weixin/ME/knowledge_qa/method.js @@ -1 +1 @@ -"use strict";const e=require("../../common/vendor.js");require("../../common/libraries/request.js");const o=require("../../common/store/useWeAppAuthStore.js");require("../../common/store/useWorkStore.js");const s=require("./model.js");o.useWeAppAuthStore();const r={handleChangeTabs(e){s.useModel.currentTabs.value=e,console.log(e)},handleShowDetail(){e.index.showModal({title:"提示",showCancel:!1,content:"内容还在编辑中,请稍微再访问...",success:function(e){e.confirm?console.log("用户点击确定"):e.cancel&&console.log("用户点击取消")}})}};exports.method=r; +"use strict";const e=require("../../common/vendor.js");require("../../common/libraries/request.js"),require("../../common/store/useWatermarkStore.js");const o=require("../../common/store/useWeAppAuthStore.js");require("../../common/store/useWorkStore.js");const s=require("./model.js");o.useWeAppAuthStore();const r={handleChangeTabs(e){s.useModel.currentTabs.value=e,console.log(e)},handleShowDetail(){e.index.showModal({title:"提示",showCancel:!1,content:"内容还在编辑中,请稍微再访问...",success:function(e){e.confirm?console.log("用户点击确定"):e.cancel&&console.log("用户点击取消")}})}};exports.method=r; diff --git a/dist/build/mp-weixin/ME/push_show/index.js b/dist/build/mp-weixin/ME/push_show/index.js index cc09be2..4efea2e 100644 --- a/dist/build/mp-weixin/ME/push_show/index.js +++ b/dist/build/mp-weixin/ME/push_show/index.js @@ -1 +1 @@ -"use strict";const e=require("../../common/vendor.js"),r={};if(!Array){e.resolveComponent("hs-footer")()}Math;const o=e._export_sfc(r,[["render",function(r,o){return{a:e.p({btnParimaryName:"发送客户朋友圈"})}}]]);wx.createPage(o); +"use strict";const l=require("../../common/vendor.js"),e=require("./model.js"),o=require("./method.js");require("../../common/libraries/request.js"),require("../../common/store/useWatermarkStore.js");const u=require("../../common/store/useWeAppAuthStore.js");if(require("../../common/store/useWorkStore.js"),require("../../common/libraries/day.js"),require("../../common/libraries/apiLoading.js"),require("../../gen/Apis.js"),require("../../common/libraries/naviHelper.js"),require("../../common/libraries/sendWxWork.js"),!Array){l.resolveComponent("hs-footer")()}Math;const n=l.defineComponent({__name:"index",setup(n){const d=u.useWeAppAuthStore();return l.onShow((()=>{var l,u,n,d,i,a,r;(null==(n=null==(u=null==(l=e.useModel)?void 0:l.showData)?void 0:u.value)?void 0:n.id)&&(null==(r=o.method)||r.getCustomerMomentsShow(null==(a=null==(i=null==(d=e.useModel)?void 0:d.showData)?void 0:i.value)?void 0:a.id))})),l.onLoad((l=>{var u;e.useModel.formData.value={customer_moments_id:null==l?void 0:l.model_id,company_employee_backlogs_id:null==l?void 0:l.id},null==(u=o.method)||u.getCustomerMomentsShow(null==l?void 0:l.data_id)})),(u,n)=>{var i,a,r,t,v,s,m,h,c,p,f,M,D,w,_,y,C,b,g,q,S,j,k,A,P,W,x,L,G,N,$,I,V,H,z,B,E,F,J,K,O,Q,R,T,U,X,Y,Z,ll,el,ol,ul,nl,dl,il,al,rl,tl,vl,sl,ml,hl,cl,pl,fl,Ml,Dl,wl,_l,yl,Cl,bl,gl,ql,Sl,jl,kl,Al,Pl,Wl,xl,Ll,Gl,Nl,$l,Il,Vl,Hl;return l.e({a:null==(v=null==(t=null==(r=null==(a=null==(i=l.unref(d))?void 0:i.data)?void 0:a.user)?void 0:r.avatar)?void 0:t[0])?void 0:v.url,b:l.t((null==(h=null==(m=null==(s=l.unref(d))?void 0:s.data)?void 0:m.user)?void 0:h.name)||"员工名称"),c:l.t(null==(f=null==(p=null==(c=l.unref(e.useModel))?void 0:c.showData)?void 0:p.value)?void 0:f.title),d:l.t("Sent"===(null==(D=null==(M=l.unref(e.useModel))?void 0:M.status)?void 0:D.value)?"已发送":"待发送"),e:l.n(`status status_${null==(_=null==(w=l.unref(e.useModel))?void 0:w.status)?void 0:_.value}`),f:"Image"===(null==(b=null==(C=null==(y=l.unref(e.useModel))?void 0:y.showData)?void 0:C.value)?void 0:b.content_type)},"Image"===(null==(S=null==(q=null==(g=l.unref(e.useModel))?void 0:g.showData)?void 0:q.value)?void 0:S.content_type)?{g:l.f(null==(A=null==(k=null==(j=l.unref(e.useModel))?void 0:j.showData)?void 0:k.value)?void 0:A.attachments,((l,e,o)=>({a:`img_${e}`,b:l.url})))}:{},{h:"Link"===(null==(x=null==(W=null==(P=l.unref(e.useModel))?void 0:P.showData)?void 0:W.value)?void 0:x.content_type)},"Link"===(null==(N=null==(G=null==(L=l.unref(e.useModel))?void 0:L.showData)?void 0:G.value)?void 0:N.content_type)?{i:l.f(null==(V=null==(I=null==($=l.unref(e.useModel))?void 0:$.showData)?void 0:I.value)?void 0:V.cover_image,((l,e,o)=>({a:`img_${e}`,b:l.url}))),j:l.t(null==(B=null==(z=null==(H=l.unref(e.useModel))?void 0:H.showData)?void 0:z.value)?void 0:B.content)}:{},{k:"Video"===(null==(J=null==(F=null==(E=l.unref(e.useModel))?void 0:E.showData)?void 0:F.value)?void 0:J.content_type)},"Video"===(null==(Q=null==(O=null==(K=l.unref(e.useModel))?void 0:K.showData)?void 0:O.value)?void 0:Q.content_type)?{l:null==(Y=null==(X=null==(U=null==(T=null==(R=l.unref(e.useModel))?void 0:R.showData)?void 0:T.value)?void 0:U.attachments)?void 0:X[0])?void 0:Y.url}:{},{m:"MiniProgram"===(null==(el=null==(ll=null==(Z=l.unref(e.useModel))?void 0:Z.showData)?void 0:ll.value)?void 0:el.content_type)},"MiniProgram"===(null==(nl=null==(ul=null==(ol=l.unref(e.useModel))?void 0:ol.showData)?void 0:ul.value)?void 0:nl.content_type)?{n:l.t(null==(al=null==(il=null==(dl=l.unref(e.useModel))?void 0:dl.showData)?void 0:il.value)?void 0:al.content),o:null==(ml=null==(sl=null==(vl=null==(tl=null==(rl=l.unref(e.useModel))?void 0:rl.showData)?void 0:tl.value)?void 0:vl.cover_image)?void 0:sl[0])?void 0:ml.url}:{},{p:"MomentCorp"===(null==(pl=null==(cl=null==(hl=l.unref(e.useModel))?void 0:hl.showData)?void 0:cl.value)?void 0:pl.channel)},"MomentCorp"===(null==(Dl=null==(Ml=null==(fl=l.unref(e.useModel))?void 0:fl.showData)?void 0:Ml.value)?void 0:Dl.channel)?{q:l.o(null==(wl=l.unref(o.method))?void 0:wl.handleMomentCorpSend),r:l.p({btnParimaryName:"发送客户朋友圈",parimaryDisabled:"Sent"===(null==(yl=null==(_l=l.unref(e.useModel))?void 0:_l.status)?void 0:yl.value)})}:{},{s:"CustomerDirectCorp"===(null==(gl=null==(bl=null==(Cl=l.unref(e.useModel))?void 0:Cl.showData)?void 0:bl.value)?void 0:gl.channel)},"CustomerDirectCorp"===(null==(jl=null==(Sl=null==(ql=l.unref(e.useModel))?void 0:ql.showData)?void 0:Sl.value)?void 0:jl.channel)?{t:l.o(null==(kl=l.unref(o.method))?void 0:kl.handleCustomerDirectCorpSend),v:l.p({btnParimaryName:"1对1群发客户",parimaryDisabled:"Sent"===(null==(Pl=null==(Al=l.unref(e.useModel))?void 0:Al.status)?void 0:Pl.value)})}:{},{w:"CustomerGroupCorp"===(null==(Ll=null==(xl=null==(Wl=l.unref(e.useModel))?void 0:Wl.showData)?void 0:xl.value)?void 0:Ll.channel)},"CustomerGroupCorp"===(null==($l=null==(Nl=null==(Gl=l.unref(e.useModel))?void 0:Gl.showData)?void 0:Nl.value)?void 0:$l.channel)?{x:l.o(null==(Il=l.unref(o.method))?void 0:Il.handleCustomerGroupCorpSend),y:l.p({btnParimaryName:"群发客户群",parimaryDisabled:"Sent"===(null==(Hl=null==(Vl=l.unref(e.useModel))?void 0:Vl.status)?void 0:Hl.value)})}:{})}}});wx.createPage(n); diff --git a/dist/build/mp-weixin/ME/push_show/index.wxml b/dist/build/mp-weixin/ME/push_show/index.wxml index 819621b..f8d00b2 100644 --- a/dist/build/mp-weixin/ME/push_show/index.wxml +++ b/dist/build/mp-weixin/ME/push_show/index.wxml @@ -1 +1 @@ - \ No newline at end of file +{{b}}{{c}}{{d}}{{j}}{{n}} \ No newline at end of file diff --git a/dist/build/mp-weixin/ME/push_show/index.wxss b/dist/build/mp-weixin/ME/push_show/index.wxss index 3e3ef12..491357b 100644 --- a/dist/build/mp-weixin/ME/push_show/index.wxss +++ b/dist/build/mp-weixin/ME/push_show/index.wxss @@ -1 +1 @@ -page{background-color:#f8f8f8} +page{background-color:#f8f8f8}.push_content{padding:30rpx;background-color:#fff;margin:30rpx}.push_content .image_content{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;padding:10rpx 0 30rpx}.push_content .image_content image{width:190rpx;height:190rpx;margin-top:30rpx}.push_content .Link_content{background-color:#f8f8f8;display:flex;align-items:center;padding:20rpx;margin:30rpx 0 0}.push_content .Link_content .cover{width:100rpx;height:100rpx}.push_content .Link_content .cover image{width:100rpx;height:100rpx}.push_content .Link_content .content{flex:1;padding:0 30rpx;font-size:28rpx;color:#333}.push_content .video_content{padding:50rpx 0 30rpx;display:flex;align-items:center;justify-content:center}.push_content .miniProgram_content{background-color:#fff;border-radius:10rpx;padding:20rpx;width:280rpx;margin-top:30rpx;border:1rpx solid #eee}.push_content .miniProgram_content .miniProgram_title{font-size:28rpx}.push_content .miniProgram_content .miniProgram_cover{width:200rpx;height:200rpx;margin-top:10rpx}.push_content .miniProgram_content .miniProgram_cover image{width:200rpx;height:200rpx}.push_header{display:flex;align-items:self-start;border-bottom:1rpx solid #eee;padding-bottom:30rpx}.push_header .avatar{width:100rpx;height:100rpx;background-color:#f8f8f8}.push_header .avatar image{width:100rpx;height:100rpx;border-radius:12rpx}.push_header .employee_info{flex:1;padding-left:20rpx;color:#3d3d3d;font-size:28rpx;height:100rpx}.push_header .employee_info .des{padding-top:10rpx}.push_header .status{border-radius:100rpx;font-size:28rpx;padding:7rpx 17rpx;font-weight:500}.push_header .status_Sent{color:#0082fa;background-color:#edf4ff}.push_header .status_NotSent{color:#f97316;background-color:#fff7ed} diff --git a/dist/build/mp-weixin/ME/push_show/method.js b/dist/build/mp-weixin/ME/push_show/method.js new file mode 100644 index 0000000..5d150a2 --- /dev/null +++ b/dist/build/mp-weixin/ME/push_show/method.js @@ -0,0 +1 @@ +"use strict";const l=require("../../common/vendor.js"),e=require("../../common/libraries/apiLoading.js"),o=require("../../gen/Apis.js"),n=require("./model.js");require("../../common/libraries/request.js"),require("../../common/store/useWatermarkStore.js");const u=require("../../common/store/useWeAppAuthStore.js");require("../../common/store/useWorkStore.js");const i=require("../../common/libraries/naviHelper.js"),a=require("../../common/libraries/sendWxWork.js"),d=u.useWeAppAuthStore(),t={getCustomerMomentsShow(l){e.getApiLoading(o.Apis.Customer.CustomerMoments.Show,{id:l}).then((l=>{var e,o,u,i;(null==(o=null==(e=null==l?void 0:l.data)?void 0:e.customer_moment_tasks)?void 0:o.length)&&(n.useModel.status.value=null==(i=null==(u=null==l?void 0:l.data)?void 0:u.customer_moment_tasks[0])?void 0:i.status),n.useModel.showData.value=l.data,console.log(l)}))},async handleMomentCorpSend(){var e,o,u,t,v,s,r,m,h,c,p,M,w,g,D,_,k,x,T,y,f,C,L,q,E,j,S,A,W,U,b,I,V,P,G,H,z,B,F,J,K,N,O,Q,R,X,Y;if("wxwork"===(null==(e=null==d?void 0:d.data)?void 0:e.environment)){if("MomentCorp"===(null==(t=null==(u=null==(o=n.useModel)?void 0:o.showData)?void 0:u.value)?void 0:t.channel)){if("Link"===(null==(r=null==(s=null==(v=n.useModel)?void 0:v.showData)?void 0:s.value)?void 0:r.content_type))return a.shareToExternalMoments({content:null==(c=null==(h=null==(m=n.useModel)?void 0:m.showData)?void 0:h.value)?void 0:c.content,attachments:[{msgtype:"link",link:{title:null==(w=null==(M=null==(p=n.useModel)?void 0:p.showData)?void 0:M.value)?void 0:w.title,imgUrl:null==(x=null==(k=null==(_=null==(D=null==(g=n.useModel)?void 0:g.showData)?void 0:D.value)?void 0:_.cover_image)?void 0:k[0])?void 0:x.url,url:null==(f=null==(y=null==(T=n.useModel)?void 0:T.showData)?void 0:y.value)?void 0:f.skip_url}}]},null==(L=null==(C=n.useModel)?void 0:C.formData)?void 0:L.value),!1;if("Image"===(null==(j=null==(E=null==(q=n.useModel)?void 0:q.showData)?void 0:E.value)?void 0:j.content_type)){l.index.showLoading({title:"准备资料中...",mask:!0});let e=[];return null==(U=null==(W=null==(A=null==(S=n.useModel)?void 0:S.showData)?void 0:A.value)?void 0:W.attachments_media)||U.map((l=>{null==e||e.push({msgtype:"image",image:{mediaid:null==l?void 0:l.media_id}})})),a.shareToExternalMoments({content:null==(V=null==(I=null==(b=n.useModel)?void 0:b.showData)?void 0:I.value)?void 0:V.content,attachments:e},null==(G=null==(P=n.useModel)?void 0:P.formData)?void 0:G.value),setTimeout((()=>{l.index.hideLoading()}),1e3),!1}if("Video"===(null==(B=null==(z=null==(H=n.useModel)?void 0:H.showData)?void 0:z.value)?void 0:B.content_type)){l.index.showLoading({title:"准备资料中...",mask:!0});let e=[];return null==(N=null==(K=null==(J=null==(F=n.useModel)?void 0:F.showData)?void 0:J.value)?void 0:K.attachments_media)||N.map((l=>{null==e||e.push({msgtype:"video",video:{mediaid:null==l?void 0:l.media_id}})})),a.shareToExternalMoments({content:null==(R=null==(Q=null==(O=n.useModel)?void 0:O.showData)?void 0:Q.value)?void 0:R.content,attachments:e},null==(Y=null==(X=n.useModel)?void 0:X.formData)?void 0:Y.value),setTimeout((()=>{l.index.hideLoading()}),1e3),!1}}}else i.showToast("请在企业微信中操作!")},async handleCustomerDirectCorpSend(){var e,o,u,t,v,s,r,m,h,c,p,M,w,g,D,_,k,x,T,y,f,C,L,q,E,j,S,A,W,U,b,I,V,P,G,H,z,B,F,J,K,N,O,Q,R,X,Y,Z,$,ll,el,ol,nl,ul,il,al,dl,tl,vl,sl,rl,ml,hl,cl,pl,Ml;if("wxwork"===(null==(e=null==d?void 0:d.data)?void 0:e.environment)){if("MiniProgram"===(null==(t=null==(u=null==(o=n.useModel)?void 0:o.showData)?void 0:u.value)?void 0:t.content_type)&&a.shareToExternalContactTask({content:null==(r=null==(s=null==(v=n.useModel)?void 0:v.showData)?void 0:s.value)?void 0:r.content,attachments:[{msgtype:"miniprogram",miniprogram:{appid:null==(c=null==(h=null==(m=n.useModel)?void 0:m.showData)?void 0:h.value)?void 0:c.mini_program_app_id,title:null==(w=null==(M=null==(p=n.useModel)?void 0:p.showData)?void 0:M.value)?void 0:w.title,imgUrl:null==(x=null==(k=null==(_=null==(D=null==(g=n.useModel)?void 0:g.showData)?void 0:D.value)?void 0:_.cover_image)?void 0:k[0])?void 0:x.url,page:null==(f=null==(y=null==(T=n.useModel)?void 0:T.showData)?void 0:y.value)?void 0:f.skip_url}}]},null==(L=null==(C=n.useModel)?void 0:C.formData)?void 0:L.value),"Link"===(null==(j=null==(E=null==(q=n.useModel)?void 0:q.showData)?void 0:E.value)?void 0:j.content_type)&&a.shareToExternalContactTask({content:null==(W=null==(A=null==(S=n.useModel)?void 0:S.showData)?void 0:A.value)?void 0:W.content,attachments:[{msgtype:"link",link:{title:null==(I=null==(b=null==(U=n.useModel)?void 0:U.showData)?void 0:b.value)?void 0:I.title,imgUrl:null==(z=null==(H=null==(G=null==(P=null==(V=n.useModel)?void 0:V.showData)?void 0:P.value)?void 0:G.cover_image)?void 0:H[0])?void 0:z.url,url:null==(J=null==(F=null==(B=n.useModel)?void 0:B.showData)?void 0:F.value)?void 0:J.skip_url}}]},null==(N=null==(K=n.useModel)?void 0:K.formData)?void 0:N.value),"Image"===(null==(R=null==(Q=null==(O=n.useModel)?void 0:O.showData)?void 0:Q.value)?void 0:R.content_type)){l.index.showLoading({title:"准备资料中...",mask:!0});let e=[];return null==($=null==(Z=null==(Y=null==(X=n.useModel)?void 0:X.showData)?void 0:Y.value)?void 0:Z.attachments_media)||$.map((l=>{null==e||e.push({msgtype:"image",image:{mediaid:null==l?void 0:l.media_id}})})),a.shareToExternalContactTask({content:null==(ol=null==(el=null==(ll=n.useModel)?void 0:ll.showData)?void 0:el.value)?void 0:ol.content,attachments:e},null==(ul=null==(nl=n.useModel)?void 0:nl.formData)?void 0:ul.value),setTimeout((()=>{l.index.hideLoading()}),1e3),!1}if("Video"===(null==(dl=null==(al=null==(il=n.useModel)?void 0:il.showData)?void 0:al.value)?void 0:dl.content_type)){l.index.showLoading({title:"准备资料中...",mask:!0});let e=[];return null==(rl=null==(sl=null==(vl=null==(tl=n.useModel)?void 0:tl.showData)?void 0:vl.value)?void 0:sl.attachments_media)||rl.map((l=>{null==e||e.push({msgtype:"video",video:{mediaid:null==l?void 0:l.media_id}})})),a.shareToExternalContactTask({content:null==(cl=null==(hl=null==(ml=n.useModel)?void 0:ml.showData)?void 0:hl.value)?void 0:cl.content,attachments:e},null==(Ml=null==(pl=n.useModel)?void 0:pl.formData)?void 0:Ml.value),setTimeout((()=>{l.index.hideLoading()}),1e3),!1}}else i.showToast("请在企业微信中操作!")},async handleCustomerGroupCorpSend(){var e,o,u,t,v,s,r,m,h,c,p,M,w,g,D,_,k,x,T,y,f,C,L,q,E,j,S,A,W,U,b,I,V,P,G,H,z,B,F,J,K,N,O,Q,R,X,Y,Z,$,ll,el,ol,nl,ul,il,al,dl,tl,vl,sl,rl,ml,hl,cl,pl,Ml;if("wxwork"===(null==(e=null==d?void 0:d.data)?void 0:e.environment)){if("MiniProgram"===(null==(t=null==(u=null==(o=n.useModel)?void 0:o.showData)?void 0:u.value)?void 0:t.content_type)&&a.shareToExternalChatTask({content:null==(r=null==(s=null==(v=n.useModel)?void 0:v.showData)?void 0:s.value)?void 0:r.content,attachments:[{msgtype:"miniprogram",miniprogram:{appid:null==(c=null==(h=null==(m=n.useModel)?void 0:m.showData)?void 0:h.value)?void 0:c.mini_program_app_id,title:null==(w=null==(M=null==(p=n.useModel)?void 0:p.showData)?void 0:M.value)?void 0:w.title,imgUrl:null==(x=null==(k=null==(_=null==(D=null==(g=n.useModel)?void 0:g.showData)?void 0:D.value)?void 0:_.cover_image)?void 0:k[0])?void 0:x.url,page:null==(f=null==(y=null==(T=n.useModel)?void 0:T.showData)?void 0:y.value)?void 0:f.skip_url}}]},null==(L=null==(C=n.useModel)?void 0:C.formData)?void 0:L.value),"Link"===(null==(j=null==(E=null==(q=n.useModel)?void 0:q.showData)?void 0:E.value)?void 0:j.content_type)&&a.shareToExternalChatTask({content:null==(W=null==(A=null==(S=n.useModel)?void 0:S.showData)?void 0:A.value)?void 0:W.content,attachments:[{msgtype:"link",link:{title:null==(I=null==(b=null==(U=n.useModel)?void 0:U.showData)?void 0:b.value)?void 0:I.title,imgUrl:null==(z=null==(H=null==(G=null==(P=null==(V=n.useModel)?void 0:V.showData)?void 0:P.value)?void 0:G.cover_image)?void 0:H[0])?void 0:z.url,url:null==(J=null==(F=null==(B=n.useModel)?void 0:B.showData)?void 0:F.value)?void 0:J.skip_url}}]},null==(N=null==(K=n.useModel)?void 0:K.formData)?void 0:N.value),"Image"===(null==(R=null==(Q=null==(O=n.useModel)?void 0:O.showData)?void 0:Q.value)?void 0:R.content_type)){l.index.showLoading({title:"准备资料中...",mask:!0});let e=[];return null==($=null==(Z=null==(Y=null==(X=n.useModel)?void 0:X.showData)?void 0:Y.value)?void 0:Z.attachments_media)||$.map((l=>{null==e||e.push({msgtype:"image",image:{mediaid:null==l?void 0:l.media_id}})})),a.shareToExternalChatTask({content:null==(ol=null==(el=null==(ll=n.useModel)?void 0:ll.showData)?void 0:el.value)?void 0:ol.content,attachments:e},null==(ul=null==(nl=n.useModel)?void 0:nl.formData)?void 0:ul.value),setTimeout((()=>{l.index.hideLoading()}),1e3),!1}if("Video"===(null==(dl=null==(al=null==(il=n.useModel)?void 0:il.showData)?void 0:al.value)?void 0:dl.content_type)){l.index.showLoading({title:"准备资料中...",mask:!0});let e=[];return null==(rl=null==(sl=null==(vl=null==(tl=n.useModel)?void 0:tl.showData)?void 0:vl.value)?void 0:sl.attachments_media)||rl.map((l=>{null==e||e.push({msgtype:"video",video:{mediaid:null==l?void 0:l.media_id}})})),a.shareToExternalChatTask({content:null==(cl=null==(hl=null==(ml=n.useModel)?void 0:ml.showData)?void 0:hl.value)?void 0:cl.content,attachments:e},null==(Ml=null==(pl=n.useModel)?void 0:pl.formData)?void 0:Ml.value),setTimeout((()=>{l.index.hideLoading()}),1e3),!1}}else i.showToast("请在企业微信中操作!")}};exports.method=t; diff --git a/dist/build/mp-weixin/ME/push_show/model.js b/dist/build/mp-weixin/ME/push_show/model.js new file mode 100644 index 0000000..9b2aa1e --- /dev/null +++ b/dist/build/mp-weixin/ME/push_show/model.js @@ -0,0 +1 @@ +"use strict";const e=require("../../common/vendor.js");require("../../common/libraries/day.js");const r={formData:e.ref({}),listData:e.ref([]),metaData:e.ref({}),showData:e.ref({}),parimaryDisabled:e.ref(!1),status:e.ref("")};exports.useModel=r; diff --git a/dist/build/mp-weixin/ME/update/index.js b/dist/build/mp-weixin/ME/update/index.js index aedbf9d..1ff7251 100644 --- a/dist/build/mp-weixin/ME/update/index.js +++ b/dist/build/mp-weixin/ME/update/index.js @@ -1 +1 @@ -"use strict";const e=require("../../common/vendor.js"),o=require("./method.js"),r=require("./model.js");if(require("../../common/libraries/request.js"),require("../../common/store/useWeAppAuthStore.js"),require("../../gen/Apis.js"),require("../../common/store/useWorkStore.js"),require("../../common/libraries/apiLoading.js"),require("../../common/libraries/naviHelper.js"),require("../../common/libraries/upload.js"),!Array){(e.resolveComponent("up-avatar")+e.resolveComponent("hs-cell")+e.resolveComponent("hs-footer"))()}Math||((()=>"../../node-modules/uview-plus/components/u-avatar/u-avatar.js")+(()=>"../../components/hs-cell/hs-cell.js")+(()=>"../../components/hs-footer/hs-footer.js"))();const a=e.defineComponent({__name:"index",setup:a=>(e.onLoad((()=>{var e;null==(e=o.method)||e.init()})),(a,l)=>{var n,u,t,s,i,d,v,m,p,c,f;return e.e({a:null==(t=null==(u=null==(n=e.unref(r.useModel))?void 0:n.formData)?void 0:u.value)?void 0:t.avatar},(null==(d=null==(i=null==(s=e.unref(r.useModel))?void 0:s.formData)?void 0:i.value)?void 0:d.avatar)?{b:e.f(null==(p=null==(m=null==(v=e.unref(r.useModel))?void 0:v.formData)?void 0:m.value)?void 0:p.avatar,((o,r,a)=>({a:"7053b0d8-1-"+a+",7053b0d8-0",b:e.p({size:"50",src:null==o?void 0:o.url}),c:`avatar_${r}`})))}:{c:e.p({size:"50"})},{d:e.o(((...r)=>{var a,l;return(null==(a=e.unref(o.method))?void 0:a.handleChooseAvatar)&&(null==(l=e.unref(o.method))?void 0:l.handleChooseAvatar(...r))})),e:e.p({title:"头像",borderTop:!0}),f:e.p({title:"姓名",borderTop:!0,value:null==(c=e.unref(r.useModel).formData.value)?void 0:c.name}),g:e.p({title:"手机号",borderTop:!0,value:null==(f=e.unref(r.useModel).formData.value)?void 0:f.phone}),h:e.o((r=>{var a;return null==(a=e.unref(o.method))?void 0:a.handleLogout()})),i:e.p({btnParimaryName:"退出登录"})})})});wx.createPage(a); +"use strict";const e=require("../../common/vendor.js"),o=require("./method.js"),r=require("./model.js");if(require("../../common/libraries/request.js"),require("../../common/store/useWeAppAuthStore.js"),require("../../gen/Apis.js"),require("../../common/store/useWatermarkStore.js"),require("../../common/store/useWorkStore.js"),require("../../common/libraries/apiLoading.js"),require("../../common/libraries/naviHelper.js"),require("../../common/libraries/upload.js"),!Array){(e.resolveComponent("up-avatar")+e.resolveComponent("hs-cell")+e.resolveComponent("hs-footer"))()}Math||((()=>"../../node-modules/uview-plus/components/u-avatar/u-avatar.js")+(()=>"../../components/hs-cell/hs-cell.js")+(()=>"../../components/hs-footer/hs-footer.js"))();const a=e.defineComponent({__name:"index",setup:a=>(e.onLoad((()=>{var e;null==(e=o.method)||e.init()})),(a,l)=>{var n,u,t,s,i,d,v,m,p,c,f;return e.e({a:null==(t=null==(u=null==(n=e.unref(r.useModel))?void 0:n.formData)?void 0:u.value)?void 0:t.avatar},(null==(d=null==(i=null==(s=e.unref(r.useModel))?void 0:s.formData)?void 0:i.value)?void 0:d.avatar)?{b:e.f(null==(p=null==(m=null==(v=e.unref(r.useModel))?void 0:v.formData)?void 0:m.value)?void 0:p.avatar,((o,r,a)=>({a:"7053b0d8-1-"+a+",7053b0d8-0",b:e.p({size:"50",src:null==o?void 0:o.url}),c:`avatar_${r}`})))}:{c:e.p({size:"50"})},{d:e.o(((...r)=>{var a,l;return(null==(a=e.unref(o.method))?void 0:a.handleChooseAvatar)&&(null==(l=e.unref(o.method))?void 0:l.handleChooseAvatar(...r))})),e:e.p({title:"头像",borderTop:!0}),f:e.p({title:"姓名",borderTop:!0,value:null==(c=e.unref(r.useModel).formData.value)?void 0:c.name}),g:e.p({title:"手机号",borderTop:!0,value:null==(f=e.unref(r.useModel).formData.value)?void 0:f.phone}),h:e.o((r=>{var a;return null==(a=e.unref(o.method))?void 0:a.handleLogout()})),i:e.p({btnParimaryName:"退出登录"})})})});wx.createPage(a); diff --git a/dist/build/mp-weixin/ME/update/method.js b/dist/build/mp-weixin/ME/update/method.js index c3ccefe..59e33de 100644 --- a/dist/build/mp-weixin/ME/update/method.js +++ b/dist/build/mp-weixin/ME/update/method.js @@ -1 +1 @@ -"use strict";const e=require("../../common/vendor.js");require("../../common/libraries/request.js");const o=require("../../common/store/useWeAppAuthStore.js");require("../../common/store/useWorkStore.js");const a=require("../../common/libraries/apiLoading.js"),r=require("../../common/libraries/naviHelper.js"),i=require("./model.js"),s=require("../../gen/Apis.js"),t=require("../../common/libraries/upload.js"),l=o.useWeAppAuthStore(),n=o=>{a.getApiLoading(s.Apis.Login.Auth.ChangeAvatar,o).then((a=>{l.data.user={...l.data.user,...o},i.useModel.formData.value={...l.data.user,...o},e.index.showToast({icon:"success",title:"编辑成功!",duration:2e3}),console.log(a)}))},u={init(){var e;i.useModel.formData.value=(null==(e=null==l?void 0:l.data)?void 0:e.user)||{}},handleChooseAvatar:async e=>{var o,a;if(null==(o=null==e?void 0:e.detail)?void 0:o.avatarUrl){let o=await t.avatarUpload(null==(a=null==e?void 0:e.detail)?void 0:a.avatarUrl);n({avatar:o}),console.log(o,"filePath")}console.log(e,"eeeee")},handleConfirm(e){n({name:e}),console.log(e,"eeeee")},handleLogout(){a.getApiLoading(s.Apis.Login.Auth.Logout,{}).then((e=>{l.data={user:void 0},r.showToastBack("退出成功!",1,!0),console.log(e)}))}};exports.method=u; +"use strict";const e=require("../../common/vendor.js");require("../../common/libraries/request.js"),require("../../common/store/useWatermarkStore.js");const o=require("../../common/store/useWeAppAuthStore.js");require("../../common/store/useWorkStore.js");const a=require("../../common/libraries/apiLoading.js"),r=require("../../common/libraries/naviHelper.js"),s=require("./model.js"),i=require("../../gen/Apis.js"),t=require("../../common/libraries/upload.js"),l=o.useWeAppAuthStore(),n=o=>{a.getApiLoading(i.Apis.Login.Auth.ChangeAvatar,o).then((a=>{l.data.user={...l.data.user,...o},s.useModel.formData.value={...l.data.user,...o},e.index.showToast({icon:"success",title:"编辑成功!",duration:2e3}),console.log(a)}))},u={init(){var e;s.useModel.formData.value=(null==(e=null==l?void 0:l.data)?void 0:e.user)||{}},handleChooseAvatar:async e=>{var o,a;if(null==(o=null==e?void 0:e.detail)?void 0:o.avatarUrl){let o=await t.avatarUpload(null==(a=null==e?void 0:e.detail)?void 0:a.avatarUrl);n({avatar:o}),console.log(o,"filePath")}console.log(e,"eeeee")},handleConfirm(e){n({name:e}),console.log(e,"eeeee")},handleLogout(){a.getApiLoading(i.Apis.Login.Auth.Logout,{}).then((e=>{l.data={user:void 0},r.showToastBack("退出成功!",1,!0),console.log(e)}))}};exports.method=u; diff --git a/dist/build/mp-weixin/ME/work_order_home/index.js b/dist/build/mp-weixin/ME/work_order_home/index.js new file mode 100644 index 0000000..f38a1e2 --- /dev/null +++ b/dist/build/mp-weixin/ME/work_order_home/index.js @@ -0,0 +1 @@ +"use strict";const o=require("../../common/vendor.js");if(!Array){(o.resolveComponent("uni-icons")+o.resolveComponent("hs-popup"))()}Math||((()=>"../../uni_modules/uni-icons/components/uni-icons/uni-icons.js")+(()=>"../../components/hs-popup/hs-popup.js"))();const e=o.defineComponent({__name:"index",setup(e){const n=o.ref(!1),t=o.ref(""),p=e=>{o.index.navigateTo({url:e})},a=()=>{n.value=!1},i=[{label:"报修类",des:"设备、设施等出现故障,需维修处理",type:"Repair",icon:"https://pay-prod-1369486729.cos.ap-guangzhou.myqcloud.com/uploads/cs-test/01K84V91E3TZ6BPP6VH3MV0A2C.png"},{label:"报事类",des:"噪音/公共卫生等事件需物业处理",type:"Incident",icon:"https://pay-prod-1369486729.cos.ap-guangzhou.myqcloud.com/uploads/cs-test/01K84V9RGS3HS1G43RWFFTC4FZ.png"}],l=[{label:"公共区域报修",type:"CommonArea",icon:"https://pay-prod-1369486729.cos.ap-guangzhou.myqcloud.com/uploads/cs-test/01K84WNKS9GNHQEV2EQ3N3HWW8.png"},{label:"房屋区域报修",type:"MyHome",icon:"https://pay-prod-1369486729.cos.ap-guangzhou.myqcloud.com/uploads/cs-test/01K84XQQGNN7B30Q8S6RJMJGPS.png"}];return o.onHide((()=>{n.value=!1})),(e,s)=>({a:o.o((o=>p("/WORKORDER/list_log/index"))),b:o.o((o=>p("/WORKORDER/list/index"))),c:o.f(i,((e,p,a)=>({a:e.icon,b:o.t(e.label),c:o.t(e.des),d:"090f2c6e-0-"+a,e:`item_${p}`,f:o.o((p=>{return a=e,t.value=(null==a?void 0:a.type)||"",void("报修类"!==(null==a?void 0:a.label)?o.index.navigateTo({url:`/WORKORDER/add/index?type=${null==a?void 0:a.type}&location=CommonArea`}):n.value=!0);var a}),`item_${p}`)}))),d:o.p({type:"right",color:"#999",size:"16"}),e:o.f(l,((e,n,p)=>({a:e.icon,b:o.t(e.label),c:"090f2c6e-2-"+p+",090f2c6e-1",d:`item_${n}`,e:o.o((n=>{return p=e,void o.index.navigateTo({url:`/WORKORDER/add/index?type=${t.value}&location=${null==p?void 0:p.type}`});var p}),`item_${n}`)}))),f:o.p({type:"right",color:"#999",size:"16"}),g:o.o(a),h:o.p({show:n.value,mode:"bottom",closeable:!0,round:20})})}});wx.createPage(e); diff --git a/dist/build/mp-weixin/ME/work_order_home/index.json b/dist/build/mp-weixin/ME/work_order_home/index.json new file mode 100644 index 0000000..4bf9a5f --- /dev/null +++ b/dist/build/mp-weixin/ME/work_order_home/index.json @@ -0,0 +1,7 @@ +{ + "navigationBarTitleText": "工单提报", + "usingComponents": { + "uni-icons": "../../uni_modules/uni-icons/components/uni-icons/uni-icons", + "hs-popup": "../../components/hs-popup/hs-popup" + } +} \ No newline at end of file diff --git a/dist/build/mp-weixin/ME/work_order_home/index.wxml b/dist/build/mp-weixin/ME/work_order_home/index.wxml new file mode 100644 index 0000000..30acb90 --- /dev/null +++ b/dist/build/mp-weixin/ME/work_order_home/index.wxml @@ -0,0 +1 @@ + 工单处理中心 提报记录 工单任务 选择新增工单类型 {{i.b}}{{i.c}} 点击联系及时沟通 选择报修区域 {{i.b}} \ No newline at end of file diff --git a/dist/build/mp-weixin/ME/work_order_home/index.wxss b/dist/build/mp-weixin/ME/work_order_home/index.wxss new file mode 100644 index 0000000..348c4a8 --- /dev/null +++ b/dist/build/mp-weixin/ME/work_order_home/index.wxss @@ -0,0 +1 @@ +page{background-color:#f8f8f8}.work_order_header{padding:70rpx 30rpx 0;background:linear-gradient(180deg,#e7f1ff 0%,#f8f8f8 200rpx);display:flex;align-items:center;justify-content:space-between}.work_order_header_left{width:60%}.work_order_header_left .work_label{font-size:45rpx;font-weight:500;color:#333}.work_order_header_right{width:40%;text-align:center}.work_order_header_right image{height:200rpx}.work_order_jinganqu{display:flex;align-items:center;justify-content:space-between;padding:40rpx 30rpx;font-size:31rpx;font-weight:500;color:#333}.work_order_jinganqu .item{border-radius:20rpx;display:flex;align-items:center;height:140rpx;flex:1;padding:0 30rpx;border:1px solid #fff}.work_order_jinganqu .item:first-child{background:linear-gradient(180deg,#f0f7ff 0%,#ffffff 42%)}.work_order_jinganqu .item:last-child{background:linear-gradient(180deg,#fff6eb 0%,#ffffff 42%);margin-left:30rpx}.work_order_jinganqu .item image{width:80rpx;height:80rpx}.work_order_jinganqu .item text{padding-left:30rpx}.work_order_type_title{padding:0 30rpx;font-size:33rpx;font-weight:500;color:#333}.work_order_item_content{padding:30rpx}.work_order_item_content .work_order_item{display:flex;align-items:center;justify-content:space-between;background-color:#fff;padding:30rpx;border-radius:15rpx;margin-bottom:30rpx}.work_order_item_content .work_order_item .icon{width:80rpx;height:80rpx}.work_order_item_content .work_order_item .icon image{width:80rpx;height:80rpx}.work_order_item_content .work_order_item .info{flex:1;padding:0 20rpx}.work_order_item_content .work_order_item .info .label{color:#333}.work_order_item_content .work_order_item .info .des{font-size:26rpx;color:#999;padding:5rpx 0 0}.report_repair_popup .title{color:#3d3d3d;font-size:32rpx;font-weight:500;line-height:100rpx;text-align:center}.report_repair_popup .report_repair_body{padding:0 0 50rpx}.report_repair_popup .report_repair_item{display:flex;align-items:center;padding:30rpx;background-color:#fff;margin:0 30rpx 30rpx;border-radius:15rpx}.report_repair_popup .report_repair_item .icon{width:80rpx;height:80rpx}.report_repair_popup .report_repair_item .icon image{width:80rpx;height:80rpx}.report_repair_popup .report_repair_item .des{flex:1;padding:0 20rpx;color:#3d3d3d;font-size:32rpx;font-weight:500}.work_order_footer{display:flex;align-items:center;justify-content:center;position:fixed;left:0;bottom:50rpx;right:0;font-size:27rpx;color:#999}.work_order_footer button{padding:0;margin:0;font-size:27rpx;background-color:transparent}.work_order_footer text{color:#2a7efb}button:after{border:none!important} diff --git a/dist/build/mp-weixin/WORKORDER/add/index.js b/dist/build/mp-weixin/WORKORDER/add/index.js index 1846fe9..9b19ee5 100644 --- a/dist/build/mp-weixin/WORKORDER/add/index.js +++ b/dist/build/mp-weixin/WORKORDER/add/index.js @@ -1 +1 @@ -"use strict";const e=require("../../common/vendor.js"),o=require("./method.js"),r=require("./model.js"),t=require("../../gen/Enums.js");if(require("../../common/libraries/request.js"),require("../../common/store/useWeAppAuthStore.js"),require("../../gen/Apis.js"),require("../../common/store/useWorkStore.js"),require("../../common/libraries/apiLoading.js"),require("../../common/libraries/naviHelper.js"),!Array){(e.resolveComponent("hs-radio")+e.resolveComponent("hs-cell")+e.resolveComponent("hs-radio-cell-picker")+e.resolveComponent("hs-input")+e.resolveComponent("hs-cell-textarea")+e.resolveComponent("hs-upload")+e.resolveComponent("hs-reservation-picker")+e.resolveComponent("hs-footer"))()}Math||((()=>"../../components/hs-radio/hs-radio.js")+(()=>"../../components/hs-cell/hs-cell.js")+(()=>"../../components/hs-radio-cell-picker/hs-radio-cell-picker.js")+(()=>"../../components/hs-input/hs-input.js")+(()=>"../../components/hs-cell-textarea/hs-cell-textarea.js")+(()=>"../../components/hs-upload/hs-upload.js")+(()=>"../../components/hs-reservation-picker/hs-reservation-picker.js")+(()=>"../../components/hs-footer/hs-footer.js"))();const a=e.defineComponent({__name:"index",setup(a){const l=e.ref({});return e.onShow((()=>{var e,r;null==(e=t.HouseWorkOrdersTypeEnum)||delete e.Complaint,l.value=t.HouseWorkOrdersTypeEnum,t.HouseWorkOrdersLocationEnum.MyHome.text="房屋",null==(r=o.method)||r.init()})),e.onUnload((()=>{r.useModel.formData.value={is_anonymous:!1}})),(a,u)=>{var n,s,m,i,d;return e.e({a:e.o((o=>e.unref(r.useModel).formData.value.type=o)),b:e.p({Enums:l.value,valueModel:e.unref(r.useModel).formData.value.type}),c:e.p({title:"工单类型",required:!0}),d:"Complaint"===e.unref(r.useModel).formData.value.type},"Complaint"===e.unref(r.useModel).formData.value.type?{e:e.o((o=>e.unref(r.useModel).formData.value.complaint_type=o)),f:e.p({Enums:e.unref(t.HouseWorkOrdersComplaintTypeEnum),title:"投诉类型",required:!0,valueModel:e.unref(r.useModel).formData.value.complaint_type})}:{},{g:"Complaint"!==e.unref(r.useModel).formData.value.type},"Complaint"!==e.unref(r.useModel).formData.value.type?{h:e.o((o=>e.unref(r.useModel).formData.value.location=o)),i:e.p({Enums:e.unref(t.HouseWorkOrdersLocationEnum),valueModel:e.unref(r.useModel).formData.value.location}),j:e.p({title:"报事位置",required:!0})}:{},{k:"MyHome"===e.unref(r.useModel).formData.value.location},"MyHome"===e.unref(r.useModel).formData.value.location?{l:e.o(null==(n=e.unref(o.method))?void 0:n.handleToSelectHouse),m:e.p({title:"房屋信息",required:!0,borderTop:!0,isLink:!0,value:null==(i=null==(m=null==(s=e.unref(r.useModel))?void 0:s.formData)?void 0:m.value)?void 0:i.full_name,isPlaceholder:"请选择房屋"}),n:e.o((o=>e.unref(r.useModel).formData.value.contact_phone=o)),o:e.p({maxLength:"11",textAlign:"right",valueModel:e.unref(r.useModel).formData.value.contact_phone}),p:e.p({title:"联系电话",required:!0,borderTop:!0})}:{},{q:e.o((o=>e.unref(r.useModel).formData.value.content=o)),r:e.p({borderTop:!0,required:!0,title:"问题描述",placeholder:"请详细描述问题情况,包括具体位置现象等",valueModel:e.unref(r.useModel).formData.value.content}),s:e.o((o=>e.unref(r.useModel).formData.value.attachments=o)),t:e.p({borderTop:!0,title:"上传图片",count:6,valueModel:e.unref(r.useModel).formData.value.attachments}),v:"MyHome"===e.unref(r.useModel).formData.value.location},"MyHome"===e.unref(r.useModel).formData.value.location?{w:e.o((o=>e.unref(r.useModel).formData.value.expect_start_time=o)),x:e.o((o=>e.unref(r.useModel).formData.value.expect_end_time=o)),y:e.p({title:"期望上门时间",required:!0,valueExpectStartTime:e.unref(r.useModel).formData.value.expect_start_time,valueExpectEndTime:e.unref(r.useModel).formData.value.expect_end_time})}:{},{z:e.o(null==(d=e.unref(o.method))?void 0:d.handleSubmit),A:e.p({btnParimaryName:"提交"})})}}});wx.createPage(a); +"use strict";const e=require("../../common/vendor.js"),o=require("../../gen/Enums.js"),r=require("./method.js"),t=require("./model.js");if(require("../../common/libraries/request.js"),require("../../common/store/useWeAppAuthStore.js"),require("../../gen/Apis.js"),require("../../common/store/useWatermarkStore.js"),require("../../common/store/useWorkStore.js"),require("../../common/libraries/apiLoading.js"),require("../../common/libraries/naviHelper.js"),!Array){(e.resolveComponent("hs-cell")+e.resolveComponent("hs-input")+e.resolveComponent("hs-cell-textarea")+e.resolveComponent("hs-upload")+e.resolveComponent("hs-reservation-picker")+e.resolveComponent("hs-footer"))()}Math||((()=>"../../components/hs-cell/hs-cell.js")+(()=>"../../components/hs-input/hs-input.js")+(()=>"../../components/hs-cell-textarea/hs-cell-textarea.js")+(()=>"../../components/hs-upload/hs-upload.js")+(()=>"../../components/hs-reservation-picker/hs-reservation-picker.js")+(()=>"../../components/hs-footer/hs-footer.js"))();const a=e.defineComponent({__name:"index",setup(a){const l=e.ref({});return e.onLoad((e=>{t.useModel.formData.value.type=(null==e?void 0:e.type)||"",t.useModel.formData.value.location=(null==e?void 0:e.location)||"",console.log(e,"2222")})),e.onShow((()=>{var e;let t=JSON.parse(JSON.stringify(o.HouseWorkOrdersTypeEnum));null==t||delete t.Complaint,l.value=t,o.HouseWorkOrdersLocationEnum.MyHome.text="房屋",null==(e=r.method)||e.init()})),e.onUnload((()=>{t.useModel.formData.value={is_anonymous:!1}})),(o,a)=>{var l,u,n,s,i,m,d;return e.e({a:"MyHome"!==e.unref(t.useModel).formData.value.location},"MyHome"!==e.unref(t.useModel).formData.value.location?{b:e.p({title:"选择项目",required:!0,borderTop:!0,isLink:!0,value:null==(n=null==(u=null==(l=e.unref(t.useModel))?void 0:l.formData)?void 0:u.value)?void 0:n.project_name,isPlaceholder:"请选择项目",url:"/pages/public/select_project/index?source=work_add"})}:{},{c:"MyHome"===e.unref(t.useModel).formData.value.location},"MyHome"===e.unref(t.useModel).formData.value.location?{d:e.p({title:"房屋信息",required:!0,borderTop:!0,isLink:!0,value:null==(m=null==(i=null==(s=e.unref(t.useModel))?void 0:s.formData)?void 0:i.value)?void 0:m.full_name,isPlaceholder:"请选择房屋",url:"/pages/public/asset_houses/index?type=work_add"}),e:e.o((o=>e.unref(t.useModel).formData.value.reporter_name=o)),f:e.p({textAlign:"right",valueModel:e.unref(t.useModel).formData.value.reporter_name}),g:e.p({title:"客户姓名",required:!0,borderTop:!0}),h:e.o((o=>e.unref(t.useModel).formData.value.reporter_phone=o)),i:e.p({maxLength:"11",textAlign:"right",valueModel:e.unref(t.useModel).formData.value.reporter_phone}),j:e.p({title:"客户电话",required:!0,borderTop:!0}),k:e.o((o=>e.unref(t.useModel).formData.value.contact_phone=o)),l:e.p({maxLength:"11",textAlign:"right",valueModel:e.unref(t.useModel).formData.value.contact_phone}),m:e.p({title:"备用联系电话",borderTop:!0})}:{},{n:e.o((o=>e.unref(t.useModel).formData.value.content=o)),o:e.p({borderTop:!0,required:!0,title:"问题描述",placeholder:"请详细描述问题情况,包括具体位置现象等",valueModel:e.unref(t.useModel).formData.value.content}),p:e.o((o=>e.unref(t.useModel).formData.value.attachments=o)),q:e.p({borderTop:!0,title:"上传图片",count:6,valueModel:e.unref(t.useModel).formData.value.attachments}),r:"MyHome"===e.unref(t.useModel).formData.value.location},"MyHome"===e.unref(t.useModel).formData.value.location?{s:e.o((o=>e.unref(t.useModel).formData.value.expect_start_time=o)),t:e.o((o=>e.unref(t.useModel).formData.value.expect_end_time=o)),v:e.p({title:"期望上门时间",required:!0,valueExpectStartTime:e.unref(t.useModel).formData.value.expect_start_time,valueExpectEndTime:e.unref(t.useModel).formData.value.expect_end_time})}:{},{w:e.o(null==(d=e.unref(r.method))?void 0:d.handleSubmit),x:e.p({btnParimaryName:"提交"})})}}});wx.createPage(a); diff --git a/dist/build/mp-weixin/WORKORDER/add/index.json b/dist/build/mp-weixin/WORKORDER/add/index.json index f941856..7436305 100644 --- a/dist/build/mp-weixin/WORKORDER/add/index.json +++ b/dist/build/mp-weixin/WORKORDER/add/index.json @@ -1,9 +1,7 @@ { "navigationBarTitleText": "新增工单", "usingComponents": { - "hs-radio": "../../components/hs-radio/hs-radio", "hs-cell": "../../components/hs-cell/hs-cell", - "hs-radio-cell-picker": "../../components/hs-radio-cell-picker/hs-radio-cell-picker", "hs-input": "../../components/hs-input/hs-input", "hs-cell-textarea": "../../components/hs-cell-textarea/hs-cell-textarea", "hs-upload": "../../components/hs-upload/hs-upload", diff --git a/dist/build/mp-weixin/WORKORDER/add/index.wxml b/dist/build/mp-weixin/WORKORDER/add/index.wxml index e6fe9c2..2914e5f 100644 --- a/dist/build/mp-weixin/WORKORDER/add/index.wxml +++ b/dist/build/mp-weixin/WORKORDER/add/index.wxml @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/dist/build/mp-weixin/WORKORDER/add/method.js b/dist/build/mp-weixin/WORKORDER/add/method.js index 5b217d3..e5b013b 100644 --- a/dist/build/mp-weixin/WORKORDER/add/method.js +++ b/dist/build/mp-weixin/WORKORDER/add/method.js @@ -1 +1 @@ -"use strict";const e=require("../../common/vendor.js");require("../../common/libraries/request.js");const o=require("../../common/store/useWeAppAuthStore.js"),l=require("../../common/store/useWorkStore.js"),u=require("./model.js"),a=require("../../gen/Apis.js"),s=require("../../common/libraries/apiLoading.js"),r=require("../../common/libraries/naviHelper.js"),n=o.useWeAppAuthStore(),t=l.useWorkStore(),i={init(){var e,o,l,a,s,r,i;console.log("init",null==t?void 0:t.selectWorkHouse),u.useModel.formData.value={...u.useModel.formData.value,reporter_phone:u.useModel.formData.value.reporter_phone||(null==(o=null==(e=null==n?void 0:n.data)?void 0:e.user)?void 0:o.phone)||"",reporter_name:u.useModel.formData.value.reporter_name||(null==(a=null==(l=null==n?void 0:n.data)?void 0:l.user)?void 0:a.name)||""},(null==(s=null==t?void 0:t.selectWorkHouse)?void 0:s.value)&&(u.useModel.formData.value={...u.useModel.formData.value,asset_houses_id:null==(r=null==t?void 0:t.selectWorkHouse)?void 0:r.value,full_name:null==(i=null==t?void 0:t.selectWorkHouse)?void 0:i.label})},handleSubmit(){var e,o,l,n,t,i,d,v,m,c,p,h,M,f,D,_,g,k,H,W,q,w;return console.log("handleSubmit",u.useModel.formData.value),(null==(l=null==(o=null==(e=u.useModel)?void 0:e.formData)?void 0:o.value)?void 0:l.type)?"Complaint"===(null==(i=null==(t=null==(n=u.useModel)?void 0:n.formData)?void 0:t.value)?void 0:i.type)||(null==(v=null==(d=u.useModel)?void 0:d.formData.value)?void 0:v.location)?"MyHome"!==(null==(p=null==(c=null==(m=u.useModel)?void 0:m.formData)?void 0:c.value)?void 0:p.location)||u.useModel.formData.value.asset_houses_id?"MyHome"!==(null==(f=null==(M=null==(h=u.useModel)?void 0:h.formData)?void 0:M.value)?void 0:f.location)||(null==(_=null==(D=u.useModel)?void 0:D.formData.value)?void 0:_.contact_phone)?(null==(H=null==(k=null==(g=u.useModel)?void 0:g.formData)?void 0:k.value)?void 0:H.content)?"MyHome"!==(null==(w=null==(q=null==(W=u.useModel)?void 0:W.formData)?void 0:q.value)?void 0:w.location)||u.useModel.formData.value.expect_start_time?void s.getApiLoading(a.Apis.WorkOrder.HouseWorkOrders.Store,u.useModel.formData.value).then((e=>{r.showToastBack("提交成功!",1,!0),console.log(e)})):r.showToast("请选择上门时间!"):r.showToast("请输入问题描述!"):r.showToast("请输入联系人电话!"):r.showToast("请选择房屋!"):r.showToast("请选择报事位置!"):r.showToast("请选择工单类型!")},handleToSelectHouse(){e.index.navigateTo({url:"/pages/public/asset_houses/index?type=work_add"})},handleSwitchChange(e){var o;u.useModel.formData.value.is_anonymous=null==(o=null==e?void 0:e.detail)?void 0:o.value,console.log(e,"e")}};exports.method=i; +"use strict";require("../../common/libraries/request.js"),require("../../common/store/useWatermarkStore.js");const o=require("../../common/store/useWeAppAuthStore.js"),e=require("../../common/store/useWorkStore.js"),l=require("../../common/libraries/apiLoading.js"),u=require("../../common/libraries/naviHelper.js"),a=require("../../gen/Apis.js"),s=require("./model.js");o.useWeAppAuthStore();const r=e.useWorkStore(),i={init(){var o,e,l,u,a,i,t,d,n,v,m,c;console.log("init",null==r?void 0:r.selectWorkProject),s.useModel.formData.value={...null==(e=null==(o=s.useModel)?void 0:o.formData)?void 0:e.value},(null==(l=null==r?void 0:r.selectWorkHouse)?void 0:l.value)&&(s.useModel.formData.value={...null==(a=null==(u=s.useModel)?void 0:u.formData)?void 0:a.value,asset_houses_id:null==(i=null==r?void 0:r.selectWorkHouse)?void 0:i.value,full_name:null==(t=null==r?void 0:r.selectWorkHouse)?void 0:t.label}),(null==(d=null==r?void 0:r.selectWorkProject)?void 0:d.id)&&(s.useModel.formData.value={...null==(v=null==(n=s.useModel)?void 0:n.formData)?void 0:v.value,project_name:null==(m=null==r?void 0:r.selectWorkProject)?void 0:m.name,asset_projects_id:null==(c=null==r?void 0:r.selectWorkProject)?void 0:c.id})},handleSubmit(){var o,e,r,i,t,d,n,v,m,c,M,f,h,D,p,j,W,_,k,g;return console.log("handleSubmit",s.useModel.formData.value),(null==(r=null==(e=null==(o=s.useModel)?void 0:o.formData)?void 0:e.value)?void 0:r.type)?"MyHome"===(null==(d=null==(t=null==(i=s.useModel)?void 0:i.formData)?void 0:t.value)?void 0:d.location)||s.useModel.formData.value.asset_projects_id?"MyHome"!==(null==(m=null==(v=null==(n=s.useModel)?void 0:n.formData)?void 0:v.value)?void 0:m.location)||s.useModel.formData.value.asset_houses_id?"MyHome"!==(null==(f=null==(M=null==(c=s.useModel)?void 0:c.formData)?void 0:M.value)?void 0:f.location)||(null==(D=null==(h=s.useModel)?void 0:h.formData.value)?void 0:D.reporter_phone)?(null==(W=null==(j=null==(p=s.useModel)?void 0:p.formData)?void 0:j.value)?void 0:W.content)?"MyHome"!==(null==(g=null==(k=null==(_=s.useModel)?void 0:_.formData)?void 0:k.value)?void 0:g.location)||s.useModel.formData.value.expect_start_time?void l.getApiLoading(a.Apis.WorkOrder.HouseWorkOrders.Store,s.useModel.formData.value).then((o=>{u.showToastBack("提交成功!",1,!0),console.log(o)})):u.showToast("请选择上门时间!"):u.showToast("请输入问题描述!"):u.showToast("请输入联系人电话!"):u.showToast("请选择房屋!"):u.showToast("请选择项目!"):u.showToast("请选择工单类型!")},handleSwitchChange(o){var e;s.useModel.formData.value.is_anonymous=null==(e=null==o?void 0:o.detail)?void 0:e.value,console.log(o,"e")}};exports.method=i; diff --git a/dist/build/mp-weixin/WORKORDER/add/model.js b/dist/build/mp-weixin/WORKORDER/add/model.js index e689779..ba311ea 100644 --- a/dist/build/mp-weixin/WORKORDER/add/model.js +++ b/dist/build/mp-weixin/WORKORDER/add/model.js @@ -1 +1 @@ -"use strict";const o={formData:require("../../common/vendor.js").ref({is_anonymous:!1})};exports.useModel=o; +"use strict";const s={formData:require("../../common/vendor.js").ref({is_anonymous:!1,is_self:"0"})};exports.useModel=s; diff --git a/dist/build/mp-weixin/WORKORDER/list/index.js b/dist/build/mp-weixin/WORKORDER/list/index.js index 6d2f16e..8a5a8e2 100644 --- a/dist/build/mp-weixin/WORKORDER/list/index.js +++ b/dist/build/mp-weixin/WORKORDER/list/index.js @@ -1 +1 @@ -"use strict";const e=require("../../common/vendor.js"),o=require("./model.js"),l=require("./method.js"),n=require("../../common/libraries/day.js"),u=require("../../gen/Enums.js");if(require("../../common/libraries/apiLoading.js"),require("../../gen/Apis.js"),require("../../common/libraries/request.js"),require("../../common/store/useWeAppAuthStore.js"),require("../../common/store/useWorkStore.js"),!Array){(e.resolveComponent("hs-tabs")+e.resolveComponent("hs-enum-tag")+e.resolveComponent("hs-level")+e.resolveComponent("up-icon")+e.resolveComponent("cc-scroll-loading"))()}Math||((()=>"../../components/hs-tabs/hs-tabs.js")+(()=>"../../components/hs-enum-tag/hs-enum-tag.js")+(()=>"../../components/hs-level/hs-level.js")+(()=>"../../node-modules/uview-plus/components/u-icon/u-icon.js")+(()=>"../../common/components/cc-scroll-loading/cc-scroll-loading.js"))();const t=e.defineComponent({__name:"index",setup(t){const s=[{label:"待处理",value:"Pending"},{label:"处理中",value:"Processing"},{label:"已完成",value:"Completed"},{label:"已关闭",value:"Closed"}];return e.onLoad((()=>{var e;o.useModel.formData.value.page=1,o.useModel.listData.value=[],null==(e=l.method)||e.getList()})),(t,r)=>{var a,i,d,m,v,c,p,_;return{a:e.o(null==(a=e.unref(l.method))?void 0:a.handleChangeTabs),b:e.p({list:s,current:null==(d=null==(i=e.unref(o.useModel))?void 0:i.currentTabs)?void 0:d.value}),c:e.f(null==(v=null==(m=e.unref(o.useModel))?void 0:m.listData)?void 0:v.value,((o,t,s)=>{var r,a,i,d,m;return e.e({a:"16520412-2-"+s+",16520412-1",b:e.p({value:null==o?void 0:o.type,Enums:e.unref(u.HouseWorkOrdersTypeEnum)}),c:"16520412-3-"+s+",16520412-1",d:e.p({value:null==o?void 0:o.location,Enums:e.unref(u.HouseWorkOrdersLocationEnum)}),e:"16520412-4-"+s+",16520412-1",f:e.p({level:null==o?void 0:o.level}),g:"16520412-5-"+s+",16520412-1",h:e.p({value:null==o?void 0:o.status,Enums:e.unref(u.HouseWorkOrdersStatusEnum)}),i:e.n(`btn_status status_${null==o?void 0:o.status}`),j:e.t((null==(r=null==o?void 0:o.asset_house)?void 0:r.full_name)||""),k:e.t(null==o?void 0:o.content),l:e.f(null==o?void 0:o.attachments,((e,o,l)=>({a:null==e?void 0:e.url,b:`img_${t}_${o}`}))),m:"Pending"===(null==o?void 0:o.status)},"Pending"===(null==o?void 0:o.status)?{n:"16520412-6-"+s+",16520412-1",o:e.p({name:"clock",color:(null==(a=e.unref(n.getTimeStatus)(null==o?void 0:o.expect_end_time))?void 0:a.color)||"#000",size:"14"}),p:e.t(null==(i=e.unref(n.getTimeStatus)(null==o?void 0:o.expect_end_time))?void 0:i.label),q:e.n(`todo_done_card_footer status_${null==(d=e.unref(n.getTimeStatus)(null==o?void 0:o.expect_end_time))?void 0:d.status}`)}:{},{r:e.t(null==o?void 0:o.created_at),s:`items_${t}`,t:e.o((n=>{var u;return null==(u=e.unref(l.method))?void 0:u.handleToDetail(o)}),`items_${t}`),v:e.n("work_item "+("Pending"===(null==o?void 0:o.status)?`card_status_${null==(m=e.unref(n.getTimeStatus)(null==o?void 0:o.expect_end_time))?void 0:m.status}`:""))})})),d:e.o(null==(c=e.unref(l.method))?void 0:c.handleLoad),e:e.p({meta:null==(_=null==(p=e.unref(o.useModel))?void 0:p.metaData)?void 0:_.value})}}}});wx.createPage(t); +"use strict";const e=require("../../common/vendor.js"),o=require("../../common/libraries/day.js"),l=require("../../gen/Enums.js"),n=require("./method.js"),t=require("./model.js");if(require("../../common/libraries/apiLoading.js"),require("../../gen/Apis.js"),require("../../common/libraries/request.js"),require("../../common/store/useWeAppAuthStore.js"),require("../../common/store/useWatermarkStore.js"),require("../../common/store/useWorkStore.js"),!Array){(e.resolveComponent("hs-tabs")+e.resolveComponent("hs-enum-tag")+e.resolveComponent("hs-level")+e.resolveComponent("up-icon")+e.resolveComponent("hs-up-rate")+e.resolveComponent("cc-scroll-loading"))()}Math||((()=>"../../components/hs-tabs/hs-tabs.js")+(()=>"../../components/hs-enum-tag/hs-enum-tag.js")+(()=>"../../components/hs-level/hs-level.js")+(()=>"../../node-modules/uview-plus/components/u-icon/u-icon.js")+(()=>"../../components/hs-up-rate/hs-up-rate.js")+(()=>"../../common/components/cc-scroll-loading/cc-scroll-loading.js"))();const u=e.defineComponent({__name:"index",setup(u){const s=[{label:"处理中",value:"Processing"},{label:"待支付",value:"PendingPayment"},{label:"待验收",value:"PendingAcceptance"},{label:"已完成",value:"Completed"},{label:"已关闭",value:"Closed"}];return e.onShow((()=>{var e;t.useModel.formData.value.page=1,t.useModel.listData.value=[],null==(e=n.method)||e.getList()})),(u,i)=>{var a,d,r,v,m,c,p,h;return{a:e.o(null==(a=e.unref(n.method))?void 0:a.handleChangeTabs),b:e.p({list:s,current:null==(r=null==(d=e.unref(t.useModel))?void 0:d.currentTabs)?void 0:r.value}),c:e.f(null==(m=null==(v=e.unref(t.useModel))?void 0:v.listData)?void 0:m.value,((t,u,s)=>{var i,a,d,r,v;return e.e({a:"16520412-2-"+s+",16520412-1",b:e.p({value:null==t?void 0:t.type,Enums:e.unref(l.HouseWorkOrdersTypeEnum)}),c:null==t?void 0:t.location},(null==t?void 0:t.location)?{d:"16520412-3-"+s+",16520412-1",e:e.p({value:null==t?void 0:t.location,Enums:e.unref(l.HouseWorkOrdersLocationEnum)})}:{},{f:"Repair"===(null==t?void 0:t.type)||"Incident"===(null==t?void 0:t.type)||"Complaint"===(null==t?void 0:t.type)},"Repair"===(null==t?void 0:t.type)||"Incident"===(null==t?void 0:t.type)||"Complaint"===(null==t?void 0:t.type)?e.e({g:"Processing"===(null==t?void 0:t.status)},"Processing"===(null==t?void 0:t.status)?{h:"16520412-4-"+s+",16520412-1",i:e.p({level:null==t?void 0:t.level})}:{}):{},{j:"16520412-5-"+s+",16520412-1",k:e.p({value:null==t?void 0:t.status,Enums:e.unref(l.HouseWorkOrdersStatusEnum)}),l:e.n(`btn_status status_${null==t?void 0:t.status}`),m:e.t((null==(i=null==t?void 0:t.asset_house)?void 0:i.full_name)||(null==(a=null==t?void 0:t.asset_project)?void 0:a.name)),n:e.t(null==t?void 0:t.content),o:"Processing"===(null==t?void 0:t.status)},"Processing"===(null==t?void 0:t.status)?e.e({p:"Completed"!==(null==t?void 0:t.status)&&"Closed"!==(null==t?void 0:t.status)&&"MyHome"===(null==t?void 0:t.location)},"Completed"!==(null==t?void 0:t.status)&&"Closed"!==(null==t?void 0:t.status)&&"MyHome"===(null==t?void 0:t.location)?{q:"16520412-6-"+s+",16520412-1",r:e.p({name:"clock",color:(null==(d=e.unref(o.getTimeStatus)(null==t?void 0:t.expect_end_time))?void 0:d.color)||"#000",size:"14"}),s:e.t(null==(r=e.unref(o.getTimeStatus)(null==t?void 0:t.expect_end_time))?void 0:r.label),t:e.n(`todo_done_card_footer status_${null==(v=e.unref(o.getTimeStatus)(null==t?void 0:t.expect_end_time))?void 0:v.status}`)}:{}):{},{v:"Completed"===(null==t?void 0:t.status)&&(null==t?void 0:t.accept_time)},"Completed"===(null==t?void 0:t.status)&&(null==t?void 0:t.accept_time)?{w:e.t(null==t?void 0:t.accept_time)}:{},{x:null==t?void 0:t.evaluation_score},(null==t?void 0:t.evaluation_score)?{y:"16520412-7-"+s+",16520412-1",z:e.p({valueModel:null==t?void 0:t.evaluation_score})}:{},{A:e.o((o=>{var l;return null==(l=e.unref(n.method))?void 0:l.handleToDetail(t)}),`items_${u}`),B:"SecurityInspection"===(null==t?void 0:t.type)},"SecurityInspection"===(null==t?void 0:t.type)?{C:e.o((o=>{var l;return null==(l=e.unref(n.method))?void 0:l.handleUpdateSetp(t)}),`items_${u}`)}:e.e({D:"Completed"!==(null==t?void 0:t.status)&&"Closed"!==(null==t?void 0:t.status)},"Completed"!==(null==t?void 0:t.status)&&"Closed"!==(null==t?void 0:t.status)?e.e({E:"RenovationInspection"!==(null==t?void 0:t.type)&&"RenovationAcceptance"!==(null==t?void 0:t.type)},"RenovationInspection"!==(null==t?void 0:t.type)&&"RenovationAcceptance"!==(null==t?void 0:t.type)?{F:e.o((o=>{var l;return null==(l=e.unref(n.method))?void 0:l.handleCopyPhone(t)}),`items_${u}`)}:{},{G:"Processing"===(null==t?void 0:t.status)},"Processing"===(null==t?void 0:t.status)?{H:e.o((o=>{var l;return null==(l=e.unref(n.method))?void 0:l.handleUpdateSetp(t)}),`items_${u}`)}:{},{I:"PendingPayment"===(null==t?void 0:t.status)},"PendingPayment"===(null==t?void 0:t.status)?{J:e.o((o=>{var l;return null==(l=e.unref(n.method))?void 0:l.handlePendingPaymentQrCode(t)}),`items_${u}`)}:{}):{}),{K:`items_${u}`})})),d:e.o(null==(c=e.unref(n.method))?void 0:c.handleLoad),e:e.p({meta:null==(h=null==(p=e.unref(t.useModel))?void 0:p.metaData)?void 0:h.value})}}}});wx.createPage(u); diff --git a/dist/build/mp-weixin/WORKORDER/list/index.json b/dist/build/mp-weixin/WORKORDER/list/index.json index a8b328b..6a27bc4 100644 --- a/dist/build/mp-weixin/WORKORDER/list/index.json +++ b/dist/build/mp-weixin/WORKORDER/list/index.json @@ -5,6 +5,7 @@ "hs-enum-tag": "../../components/hs-enum-tag/hs-enum-tag", "hs-level": "../../components/hs-level/hs-level", "up-icon": "../../node-modules/uview-plus/components/u-icon/u-icon", + "hs-up-rate": "../../components/hs-up-rate/hs-up-rate", "cc-scroll-loading": "../../common/components/cc-scroll-loading/cc-scroll-loading" } } \ No newline at end of file diff --git a/dist/build/mp-weixin/WORKORDER/list/index.wxml b/dist/build/mp-weixin/WORKORDER/list/index.wxml index 6a607ac..751a721 100644 --- a/dist/build/mp-weixin/WORKORDER/list/index.wxml +++ b/dist/build/mp-weixin/WORKORDER/list/index.wxml @@ -1 +1 @@ -{{i.j}}{{i.k}}{{i.p}}提报时间: {{i.r}} \ No newline at end of file +{{i.m}}{{i.n}}{{i.s}} 工单完成时间:{{i.w}} 客户评价: 前往完成 联系提报人 更新进度 出示付款二维码 \ No newline at end of file diff --git a/dist/build/mp-weixin/WORKORDER/list/index.wxss b/dist/build/mp-weixin/WORKORDER/list/index.wxss index b44c6ea..81db1fc 100644 --- a/dist/build/mp-weixin/WORKORDER/list/index.wxss +++ b/dist/build/mp-weixin/WORKORDER/list/index.wxss @@ -1 +1 @@ -page{background-color:#f8f8f8}.header{background-color:#fff;position:fixed;left:0;top:0;right:0;z-index:100;box-shadow:0 3px 7px rgba(206,206,206,.25)}.work_contents{padding:100rpx 0 30rpx}.work_contents .work_item{background-color:#fff;border-radius:10rpx;margin:30rpx 30rpx 0;border-radius:15rpx;padding:0 30rpx 30rpx}.work_contents .work_item .work_item_header{display:flex;align-items:center;justify-content:space-between;padding:25rpx 0}.work_contents .work_item .work_item_header .group_btn{display:flex;align-items:center}.work_contents .work_item .work_item_header .btn_type{border:1rpx solid #eee;font-size:28rpx;padding:7rpx 19rpx;border-radius:100rpx;margin-right:10rpx}.work_contents .work_item .work_item_header .btn_status{border-radius:100rpx;font-size:28rpx;padding:7rpx 19rpx}.work_contents .work_item .work_item_header .status_Pending{color:#f97316;background-color:#fff7ed}.work_contents .work_item .work_item_header .status_Processing{color:#0082fa;background-color:#edf4ff}.work_contents .work_item .work_item_header .status_Completed{color:#22c55e;background-color:#f0fdf4}.work_contents .work_item .work_item_header .status_Closed{color:#909399;background-color:#f3f3f4}.work_contents .work_item .full_name{font-size:28rpx}.work_contents .work_item .work_item_cell{display:flex;align-items:center;justify-content:space-between;font-size:30rpx;color:#666;padding-top:20rpx}.work_contents .work_item .work_item_cell text{color:#333}.work_contents .work_item .work_item_images{display:flex;align-items:center;flex-wrap:wrap}.work_contents .work_item .work_item_images .item{width:140rpx;height:140rpx;border-radius:10rpx;background-color:#f8f8f8;margin-top:25rpx;margin-right:25rpx;overflow:hidden}.work_contents .work_item .work_item_images .item:nth-child(4n){margin-right:0}.work_contents .work_item .work_item_images .item image{width:100%;height:100%}.work_contents .work_item .work_code{font-size:25rpx}.work_item_footer{border-top:1rpx solid #eee;margin-top:30rpx}.work_item_footer .todo_done_card_footer{color:#666;font-size:28rpx;padding:12rpx 20rpx;border-radius:10rpx;color:#24bc21;background:linear-gradient(90deg,#edffed 0%,rgba(232,255,231,0) 103%);display:flex;align-items:center;margin:25rpx 0 0}.work_item_footer .status_1{color:#24bc21;background:linear-gradient(90deg,#edffed 0%,rgba(232,255,231,0) 103%)}.work_item_footer .status_2{color:#0082fa;background:linear-gradient(90deg,#eff7ff 0%,rgba(231,241,255,0) 103%)}.work_item_footer .status_3{color:#f97316;background:linear-gradient(90deg,#fff4ef 0%,rgba(255,237,231,0) 103%)}.work_item_footer .status_4{color:#ea0000;background:linear-gradient(90deg,#ffe5e5 0%,rgba(255,255,255,0) 103%)}.work_item_footer .expected_time{padding:20rpx 0 0;color:#333;font-size:28rpx}.card_status_4{border-top:6px solid #ef4444} +page{background-color:#f8f8f8}.header{background-color:#fff;position:fixed;left:0;top:0;right:0;z-index:100;box-shadow:0 3px 7px rgba(206,206,206,.25)}.work_contents{padding:100rpx 0 30rpx}.work_contents .work_item{background-color:#fff;border-radius:10rpx;margin:30rpx 30rpx 0;border-radius:15rpx;padding:0 30rpx 30rpx}.work_contents .work_item .work_item_header{display:flex;align-items:center;justify-content:space-between;padding:25rpx 0}.work_contents .work_item .work_item_header .group_btn{display:flex;align-items:center}.work_contents .work_item .work_item_header .btn_type{border:1rpx solid #eee;font-size:28rpx;padding:7rpx 19rpx;border-radius:100rpx;margin-right:10rpx}.work_contents .work_item .work_item_header .btn_status{border-radius:100rpx;font-size:28rpx;padding:7rpx 19rpx}.work_contents .work_item .work_item_header .status_Pending{color:#f97316;background-color:#fff7ed}.work_contents .work_item .work_item_header .status_Processing,.work_contents .work_item .work_item_header .status_PendingAcceptance{color:#0082fa;background-color:#edf4ff}.work_contents .work_item .work_item_header .status_PendingPayment{color:#cf1322;background-color:#ffeded}.work_contents .work_item .work_item_header .status_Completed{color:#22c55e;background-color:#f0fdf4}.work_contents .work_item .work_item_header .status_Closed{color:#909399;background-color:#f3f3f4}.work_contents .work_item .full_name{font-size:28rpx}.work_contents .work_item .work_item_cell{display:flex;align-items:center;font-size:30rpx;color:#666;padding-top:20rpx}.work_contents .work_item .work_item_cell text{color:#333}.work_contents .work_item .work_item_images{display:flex;align-items:center;flex-wrap:wrap}.work_contents .work_item .work_item_images .item{width:140rpx;height:140rpx;border-radius:10rpx;background-color:#f8f8f8;margin-top:25rpx;margin-right:25rpx;overflow:hidden}.work_contents .work_item .work_item_images .item:nth-child(4n){margin-right:0}.work_contents .work_item .work_item_images .item image{width:100%;height:100%}.work_contents .work_item .work_code{font-size:25rpx}.work_item_time_footer{margin-top:30rpx}.work_item_time_footer .todo_done_card_footer{color:#666;font-size:28rpx;padding:12rpx 20rpx;border-radius:10rpx;color:#24bc21;background:linear-gradient(90deg,#edffed 0%,rgba(232,255,231,0) 103%);display:flex;align-items:center;margin:25rpx 0 0}.work_item_time_footer .status_1{color:#24bc21;background:linear-gradient(90deg,#edffed 0%,rgba(232,255,231,0) 103%)}.work_item_time_footer .status_2{color:#0082fa;background:linear-gradient(90deg,#eff7ff 0%,rgba(231,241,255,0) 103%)}.work_item_time_footer .status_3{color:#f97316;background:linear-gradient(90deg,#fff4ef 0%,rgba(255,237,231,0) 103%)}.work_item_time_footer .status_4{color:#ea0000;background:linear-gradient(90deg,#ffe5e5 0%,rgba(255,255,255,0) 103%)}.work_item_time_footer .expected_time{padding:20rpx 0 0;color:#333;font-size:28rpx}.work_item_btn_group_footer{border-top:1rpx solid #eee;margin-top:25rpx;display:flex;align-items:center;justify-content:space-between;padding-top:25rpx;text-align:center}.work_item_btn_group_footer .btn{padding:17rpx 20rpx;font-size:28rpx;flex:1;color:#0082fa;border:1px solid #0082fa;border-radius:100rpx}.work_item_btn_group_footer .btn:first-child{margin-right:30rpx}.work_item_btn_group_footer .btn:last-child{background-color:#0082fa;color:#fff;margin-right:0}.card_status_4{border-top:6px solid #ef4444} diff --git a/dist/build/mp-weixin/WORKORDER/list/method.js b/dist/build/mp-weixin/WORKORDER/list/method.js index 494c689..2f834a8 100644 --- a/dist/build/mp-weixin/WORKORDER/list/method.js +++ b/dist/build/mp-weixin/WORKORDER/list/method.js @@ -1 +1 @@ -"use strict";const e=require("../../common/vendor.js"),a=require("./model.js"),l=require("../../common/libraries/apiLoading.js"),o=require("../../gen/Apis.js"),u=()=>{var e,u;l.getApiLoading(o.Apis.WorkOrder.HouseWorkOrders.List,null==(u=null==(e=a.useModel)?void 0:e.formData)?void 0:u.value).then((e=>{a.useModel.listData.value=[...a.useModel.listData.value,...null==e?void 0:e.data],a.useModel.metaData.value=null==e?void 0:e.meta}))},s={getList:u,handleChangeTabs(e,l){a.useModel.currentTabs.value=e,a.useModel.formData.value.status=null==l?void 0:l.value,a.useModel.formData.value.page=1,a.useModel.listData.value=[],u()},handleLoad(e){a.useModel.formData.value.page=e,u()},handleToDetail(a){e.index.navigateTo({url:`/WORKORDER/show/index?id=${null==a?void 0:a.id}`})}};exports.method=s; +"use strict";const e=require("../../common/vendor.js"),o=require("../../common/libraries/apiLoading.js"),l=require("../../gen/Apis.js"),n=require("./model.js"),a=()=>{var e,a;o.getApiLoading(l.Apis.WorkOrder.HouseWorkOrders.List,null==(a=null==(e=n.useModel)?void 0:e.formData)?void 0:a.value).then((e=>{n.useModel.listData.value=[...n.useModel.listData.value,...null==e?void 0:e.data],n.useModel.metaData.value=null==e?void 0:e.meta}))},i={getList:a,handleChangeTabs(e,o){n.useModel.currentTabs.value=e,n.useModel.formData.value.status=null==o?void 0:o.value,n.useModel.formData.value.page=1,n.useModel.listData.value=[],a()},handleLoad(e){n.useModel.formData.value.page=e,a()},handleCopyPhone(o){(null==o?void 0:o.contact_phone)?e.index.makePhoneCall({phoneNumber:null==o?void 0:o.contact_phone}):(null==o?void 0:o.reporter_phone)?e.index.makePhoneCall({phoneNumber:null==o?void 0:o.reporter_phone}):e.index.showToast({title:"暂无电话号码",icon:"none"})},handleUpdateSetp(o){"SecurityInspection"!==(null==o?void 0:o.type)?"RenovationInspection"!==(null==o?void 0:o.type)&&"RenovationAcceptance"!==(null==o?void 0:o.type)?e.index.navigateTo({url:`/WORKORDER/update/index?id=${null==o?void 0:o.id}&projects_id=${null==o?void 0:o.asset_projects_id}&location=${null==o?void 0:o.location}`}):e.index.navigateTo({url:`/WORKORDER/patrol_update/index?id=${null==o?void 0:o.id}&type=${null==o?void 0:o.type}`}):e.index.navigateTo({url:`/WORKORDER/show_patrol_task_locations/index?id=${null==o?void 0:o.id}`})},handleToDetail(o){e.index.navigateTo({url:`/WORKORDER/show/index?id=${null==o?void 0:o.id}`})},handlePendingPaymentQrCode(o){var l;e.index.navigateTo({url:`/WORKORDER/poster/index?id=${null==o?void 0:o.id}&full_name=${null==(l=null==o?void 0:o.asset_house)?void 0:l.full_name}&amount=${null==o?void 0:o.amount}`})}};exports.method=i; diff --git a/dist/build/mp-weixin/WORKORDER/list/model.js b/dist/build/mp-weixin/WORKORDER/list/model.js index ade94e7..ae00b1d 100644 --- a/dist/build/mp-weixin/WORKORDER/list/model.js +++ b/dist/build/mp-weixin/WORKORDER/list/model.js @@ -1 +1 @@ -"use strict";const e=require("../../common/vendor.js"),r={currentTabs:e.ref(0),formData:e.ref({page:1,status:"Pending"}),listData:e.ref([]),metaData:e.ref({})};exports.useModel=r; +"use strict";const e=require("../../common/vendor.js"),r={currentTabs:e.ref(0),formData:e.ref({page:1,status:"Processing"}),listData:e.ref([]),metaData:e.ref({})};exports.useModel=r; diff --git a/dist/build/mp-weixin/WORKORDER/list_log/components/header.js b/dist/build/mp-weixin/WORKORDER/list_log/components/header.js new file mode 100644 index 0000000..c409d7d --- /dev/null +++ b/dist/build/mp-weixin/WORKORDER/list_log/components/header.js @@ -0,0 +1 @@ +"use strict";const e=require("../../../common/vendor.js"),r=require("../method.js"),l=require("../model.js");if(require("../../../common/libraries/apiLoading.js"),require("../../../gen/Apis.js"),require("../../../common/libraries/request.js"),require("../../../common/store/useWeAppAuthStore.js"),require("../../../common/store/useWatermarkStore.js"),require("../../../common/store/useWorkStore.js"),!Array){e.resolveComponent("hs-tabs")()}Math;const n=e.defineComponent({__name:"header",setup(n){const a=[{label:"报修类",value:"Repair"},{label:"报事类",value:"Incident"}],o=[{label:"全部",value:""},{label:"待处理",value:"Pending"},{label:"处理中",value:"Processing"},{label:"待支付",value:"PendingPayment"},{label:"待验收",value:"PendingAcceptance"},{label:"已完成",value:"Completed"},{label:"已关闭",value:"Closed"}];return(n,u)=>{var t,s,i;return{a:e.o(null==(t=e.unref(r.method))?void 0:t.handleChangeTabs),b:e.p({list:a,current:null==(i=null==(s=e.unref(l.useModel))?void 0:s.currentTabs)?void 0:i.value}),c:e.f(o,((n,a,o)=>{var u,t,s;return{a:e.t(null==n?void 0:n.label),b:`items_${a}`,c:e.n("item_btn "+((null==(s=null==(t=null==(u=e.unref(l.useModel))?void 0:u.formData)?void 0:t.value)?void 0:s.status)===(null==n?void 0:n.value)?"active_btn":"")),d:e.o((l=>{var a;return null==(a=e.unref(r.method))?void 0:a.handleChangeStatus(n)}),`items_${a}`)}}))}}}}),a=e._export_sfc(n,[["__scopeId","data-v-a2bee378"]]);wx.createComponent(a); diff --git a/dist/build/mp-weixin/WORKORDER/list_log/components/header.json b/dist/build/mp-weixin/WORKORDER/list_log/components/header.json new file mode 100644 index 0000000..76990db --- /dev/null +++ b/dist/build/mp-weixin/WORKORDER/list_log/components/header.json @@ -0,0 +1,6 @@ +{ + "component": true, + "usingComponents": { + "hs-tabs": "../../../components/hs-tabs/hs-tabs" + } +} \ No newline at end of file diff --git a/dist/build/mp-weixin/WORKORDER/list_log/components/header.wxml b/dist/build/mp-weixin/WORKORDER/list_log/components/header.wxml new file mode 100644 index 0000000..868239d --- /dev/null +++ b/dist/build/mp-weixin/WORKORDER/list_log/components/header.wxml @@ -0,0 +1 @@ +{{i.a}} \ No newline at end of file diff --git a/dist/build/mp-weixin/WORKORDER/list_log/components/header.wxss b/dist/build/mp-weixin/WORKORDER/list_log/components/header.wxss new file mode 100644 index 0000000..a76ea94 --- /dev/null +++ b/dist/build/mp-weixin/WORKORDER/list_log/components/header.wxss @@ -0,0 +1 @@ +.header.data-v-a2bee378{background-color:#fff;position:fixed;left:0;top:0;right:0;z-index:100;box-shadow:0 3px 7px rgba(206,206,206,.25)}.header_status.data-v-a2bee378{white-space:nowrap;padding:20rpx 0 30rpx}.header_status .item_btn.data-v-a2bee378{display:inline-block;margin-left:30rpx;padding:8rpx 25rpx;font-size:28rpx;border:1px solid #ccc;border-radius:100rpx;color:#999}.header_status .item_btn.data-v-a2bee378:last-child{margin-right:30rpx}.header_status .active_btn.data-v-a2bee378{color:#2a7efb;border:1px solid #2a7efb} diff --git a/dist/build/mp-weixin/WORKORDER/list_log/index.js b/dist/build/mp-weixin/WORKORDER/list_log/index.js new file mode 100644 index 0000000..85a0931 --- /dev/null +++ b/dist/build/mp-weixin/WORKORDER/list_log/index.js @@ -0,0 +1 @@ +"use strict";const e=require("../../common/vendor.js"),o=require("../../gen/Enums.js"),t=require("./method.js"),l=require("./model.js");if(require("../../common/libraries/apiLoading.js"),require("../../gen/Apis.js"),require("../../common/libraries/request.js"),require("../../common/store/useWeAppAuthStore.js"),require("../../common/store/useWatermarkStore.js"),require("../../common/store/useWorkStore.js"),!Array){(e.resolveComponent("hs-enum-tag")+e.resolveComponent("hs-up-rate")+e.resolveComponent("hs-button")+e.resolveComponent("cc-scroll-loading"))()}Math||(n+(()=>"../../components/hs-enum-tag/hs-enum-tag.js")+(()=>"../../components/hs-up-rate/hs-up-rate.js")+(()=>"../../components/hs-button/hs-button.js")+(()=>"../../common/components/cc-scroll-loading/cc-scroll-loading.js"))();const n=()=>"./components/header.js",u=e.defineComponent({__name:"index",setup:n=>(e.onShow((()=>{var e;l.useModel.formData.value.page=1,l.useModel.dataList.value=[],null==(e=t.method)||e.getList()})),(n,u)=>{var s,a,r,i,d;return{a:e.f(null==(a=null==(s=e.unref(l.useModel))?void 0:s.dataList)?void 0:a.value,((l,n,u)=>{var s,a;return e.e({a:"9ec83e52-2-"+u+",9ec83e52-1",b:e.p({value:null==l?void 0:l.type,Enums:e.unref(o.HouseWorkOrdersTypeEnum)}),c:null==l?void 0:l.location},(null==l?void 0:l.location)?{d:"9ec83e52-3-"+u+",9ec83e52-1",e:e.p({value:null==l?void 0:l.location,Enums:e.unref(o.HouseWorkOrdersLocationEnum)})}:{},{f:"9ec83e52-4-"+u+",9ec83e52-1",g:e.p({value:null==l?void 0:l.status,Enums:e.unref(o.HouseWorkOrdersStatusEnum)}),h:e.n(`btn_status btn_status_${null==l?void 0:l.status}`),i:e.t((null==(s=null==l?void 0:l.asset_house)?void 0:s.full_name)||(null==(a=null==l?void 0:l.asset_project)?void 0:a.name)),j:e.t(null==l?void 0:l.content),k:(null==l?void 0:l.expect_start_time)&&"Closed"!==(null==l?void 0:l.status)&&"Completed"!==(null==l?void 0:l.status)},(null==l?void 0:l.expect_start_time)&&"Closed"!==(null==l?void 0:l.status)&&"Completed"!==(null==l?void 0:l.status)?{l:e.t(null==l?void 0:l.expect_start_time)}:{},{m:"Completed"===(null==l?void 0:l.status)&&!(null==l?void 0:l.accept_time)},"Completed"!==(null==l?void 0:l.status)||(null==l?void 0:l.accept_time)?{o:e.t(null==l?void 0:l.created_at)}:{n:e.t(null==l?void 0:l.accept_time)},{p:null==l?void 0:l.evaluation_score},(null==l?void 0:l.evaluation_score)?{q:"9ec83e52-5-"+u+",9ec83e52-1",r:e.p({valueModel:null==l?void 0:l.evaluation_score})}:{},{s:e.o((o=>{var n;return null==(n=e.unref(t.method))?void 0:n.handleToDetail(l)}),`items_${n}`),t:"MyHome"!==(null==l?void 0:l.location)&&"PendingAcceptance"===(null==l?void 0:l.status)},"MyHome"!==(null==l?void 0:l.location)&&"PendingAcceptance"===(null==l?void 0:l.status)?{v:e.o((o=>{var n;return null==(n=e.unref(t.method))?void 0:n.handleAssignEmployee(l)}),`items_${n}`),w:"9ec83e52-6-"+u+",9ec83e52-1",x:e.p({type:"ghost",label:"验收工单"})}:{},{y:`items_${n}`})})),b:e.o(null==(r=e.unref(t.method))?void 0:r.handleLoad),c:e.p({meta:null==(d=null==(i=e.unref(l.useModel))?void 0:i.meta)?void 0:d.value})}})});wx.createPage(u); diff --git a/dist/build/mp-weixin/WORKORDER/list_log/index.json b/dist/build/mp-weixin/WORKORDER/list_log/index.json new file mode 100644 index 0000000..72dd4fe --- /dev/null +++ b/dist/build/mp-weixin/WORKORDER/list_log/index.json @@ -0,0 +1,10 @@ +{ + "navigationBarTitleText": "提报记录", + "usingComponents": { + "hs-enum-tag": "../../components/hs-enum-tag/hs-enum-tag", + "hs-up-rate": "../../components/hs-up-rate/hs-up-rate", + "hs-button": "../../components/hs-button/hs-button", + "cc-scroll-loading": "../../common/components/cc-scroll-loading/cc-scroll-loading", + "my-header": "./components/header" + } +} \ No newline at end of file diff --git a/dist/build/mp-weixin/WORKORDER/list_log/index.wxml b/dist/build/mp-weixin/WORKORDER/list_log/index.wxml new file mode 100644 index 0000000..a736f95 --- /dev/null +++ b/dist/build/mp-weixin/WORKORDER/list_log/index.wxml @@ -0,0 +1 @@ +{{i.i}} {{i.j}} 期望处理时间:{{i.l}}(两小时内) 工单完成时间: {{i.n}} 工单创建时间: {{i.o}} 客户评价: \ No newline at end of file diff --git a/dist/build/mp-weixin/WORKORDER/list_log/index.wxss b/dist/build/mp-weixin/WORKORDER/list_log/index.wxss new file mode 100644 index 0000000..492006d --- /dev/null +++ b/dist/build/mp-weixin/WORKORDER/list_log/index.wxss @@ -0,0 +1 @@ +page{background-color:#f8f8f8}.work_contents{padding:220rpx 0 0}.work_contents .work_item{background-color:#fff;border-radius:10rpx;margin:30rpx 30rpx 0;border-radius:15rpx;padding:0 30rpx 30rpx}.work_contents .work_item .work_item_header{display:flex;align-items:center;justify-content:space-between;padding:25rpx 0;font-size:24rpx;color:#3d3d3d}.work_contents .work_item .work_item_header .btn_type{border:1rpx solid #eee;padding:7rpx 19rpx;border-radius:100rpx}.work_contents .work_item .work_item_header .btn_status{border-radius:100rpx;padding:7rpx 19rpx}.work_contents .work_item .work_item_header .btn_status_Pending{color:#f97316;background-color:#fff7ed}.work_contents .work_item .work_item_header .btn_status_Processing,.work_contents .work_item .work_item_header .btn_status_PendingAcceptance{color:#0082fa;background-color:#edf4ff}.work_contents .work_item .work_item_header .btn_status_PendingPayment{color:#cf1322;background-color:#ffeded}.work_contents .work_item .work_item_header .btn_status_Completed{color:#22c55e;background-color:#f0fdf4}.work_contents .work_item .work_item_header .btn_status_Closed{color:#909399;background-color:#f3f3f4}.work_contents .work_item .work_item_header .work_item_header_left{display:flex;align-items:center}.work_contents .work_item .work_item_header .work_item_header_left .btn_type{margin-right:30rpx}.work_contents .work_item .work_item_houses{display:flex;align-items:center;font-size:28rpx;font-weight:500}.work_contents .work_item .work_item_houses .item{height:30rpx;line-height:30rpx}.work_contents .work_item .work_item_houses .item:last-child{border-left:1rpx solid #eee;padding-left:15rpx;margin-left:15rpx}.work_contents .work_item .work_item_des{color:#444;font-size:28rpx;padding:12rpx 0 10rpx}.work_contents .work_item .work_item_cell{color:#666;font-size:26rpx;padding-top:15rpx;display:flex;align-items:center}.work_contents .work_item .work_item_footer{border-top:1rpx solid #eee;padding:25rpx 0 0;margin-top:25rpx;display:flex;justify-content:flex-end;align-items:center}.work_contents .work_item .work_item_images{display:flex;align-items:center;flex-wrap:wrap}.work_contents .work_item .work_item_images .item{width:140rpx;height:140rpx;border-radius:10rpx;background-color:#f8f8f8;margin-top:25rpx;margin-right:25rpx;overflow:hidden}.work_contents .work_item .work_item_images .item:nth-child(4n){margin-right:0}.work_contents .work_item .work_item_images .item image{width:100%;height:100%} diff --git a/dist/build/mp-weixin/WORKORDER/list_log/method.js b/dist/build/mp-weixin/WORKORDER/list_log/method.js new file mode 100644 index 0000000..3bb05be --- /dev/null +++ b/dist/build/mp-weixin/WORKORDER/list_log/method.js @@ -0,0 +1 @@ +"use strict";const e=require("../../common/vendor.js"),a=require("./model.js"),l=require("../../common/libraries/apiLoading.js"),d=require("../../gen/Apis.js"),o=()=>{var e,o;l.getApiLoading(d.Apis.WorkOrder.HouseWorkOrders.MySubmitList,null==(o=null==(e=a.useModel)?void 0:e.formData)?void 0:o.value).then((e=>{var l,d;a.useModel.dataList.value=[...null==(d=null==(l=a.useModel)?void 0:l.dataList)?void 0:d.value,...null==e?void 0:e.data],a.useModel.meta.value=null==e?void 0:e.meta}))},u=()=>{a.useModel.formData.value.page=1,a.useModel.dataList.value=[],o()},i={getList:o,handleToDetail(a){e.index.navigateTo({url:`/WORKORDER/show_log/index?id=${null==a?void 0:a.id}`})},handleAdd(){e.index.navigateTo({url:"/WORKORDER/add/index"})},handleChangeTabs(e,l){a.useModel.currentTabs.value=e,a.useModel.formData.value.type=null==l?void 0:l.value,u()},handleAssignEmployee(a){if("PendingAcceptance"===(null==a?void 0:a.status))return e.index.navigateTo({url:`/WORKORDER/acceptance/index?id=${null==a?void 0:a.id}`}),!1;console.log(a,"eee")},handleChangeStatus(e){a.useModel.formData.value.status=null==e?void 0:e.value,u()},handleLoad(e){a.useModel.formData.value.page=e,o()}};exports.method=i; diff --git a/dist/build/mp-weixin/WORKORDER/list_log/model.js b/dist/build/mp-weixin/WORKORDER/list_log/model.js new file mode 100644 index 0000000..175b990 --- /dev/null +++ b/dist/build/mp-weixin/WORKORDER/list_log/model.js @@ -0,0 +1 @@ +"use strict";const e=require("../../common/vendor.js"),r={dataList:e.ref([]),currentTabs:e.ref(0),meta:e.ref({}),showEvaluate:e.ref(!1),evaluateParams:e.ref({}),formData:e.ref({page:1,status:"",type:"Repair"})};exports.useModel=r; diff --git a/dist/build/mp-weixin/WORKORDER/poster/index.js b/dist/build/mp-weixin/WORKORDER/poster/index.js new file mode 100644 index 0000000..49e8b80 --- /dev/null +++ b/dist/build/mp-weixin/WORKORDER/poster/index.js @@ -0,0 +1 @@ +"use strict";const e=require("../../common/vendor.js"),o=require("./method.js");require("../../common/libraries/apiLoading.js"),require("../../gen/Apis.js"),require("../../common/libraries/request.js"),require("../../common/store/useWeAppAuthStore.js"),require("../../common/store/useWatermarkStore.js"),require("../../common/store/useWorkStore.js"),require("./model.js");const r=e.defineComponent({__name:"index",setup:r=>(e.onLoad((e=>{o.method.setCanvas(e)})),(r,s)=>({a:e.o(((...r)=>e.unref(o.method).onDownloadPosters&&e.unref(o.method).onDownloadPosters(...r)))}))}),s=e._export_sfc(r,[["__scopeId","data-v-7e11e6cb"]]);wx.createPage(s); diff --git a/dist/build/mp-weixin/WORKORDER/poster/index.json b/dist/build/mp-weixin/WORKORDER/poster/index.json new file mode 100644 index 0000000..38f4bf1 --- /dev/null +++ b/dist/build/mp-weixin/WORKORDER/poster/index.json @@ -0,0 +1,4 @@ +{ + "navigationBarTitleText": "工单收款码", + "usingComponents": {} +} \ No newline at end of file diff --git a/dist/build/mp-weixin/WORKORDER/poster/index.wxml b/dist/build/mp-weixin/WORKORDER/poster/index.wxml new file mode 100644 index 0000000..78f1620 --- /dev/null +++ b/dist/build/mp-weixin/WORKORDER/poster/index.wxml @@ -0,0 +1 @@ +下载收款码 \ No newline at end of file diff --git a/dist/build/mp-weixin/WORKORDER/poster/index.wxss b/dist/build/mp-weixin/WORKORDER/poster/index.wxss new file mode 100644 index 0000000..0ab1eb3 --- /dev/null +++ b/dist/build/mp-weixin/WORKORDER/poster/index.wxss @@ -0,0 +1 @@ +.poster_main.data-v-7e11e6cb{width:100vw;height:100vh;background-color:#f1f2f5}.poster_canvas.data-v-7e11e6cb{padding-top:30rpx;height:534px}#poster_firstCanvas.data-v-7e11e6cb{margin:0 auto}.poster_func.data-v-7e11e6cb{margin-top:40rpx;display:flex;flex-direction:column;align-items:center}.poster_func_choice.data-v-7e11e6cb{font-size:28rpx;font-weight:400;color:#0082fa;text-decoration:underline}.poster_func_download.data-v-7e11e6cb,.poster_func_link.data-v-7e11e6cb{width:500rpx;height:80rpx;font-size:28rpx;border-radius:66rpx;display:flex;justify-content:center;align-items:center;background-color:#0082fa;margin-top:30rpx;color:#fff}.poster_func_link.data-v-7e11e6cb{background-color:#fff}.image_popup.data-v-7e11e6cb{display:flex;justify-content:center;align-items:center}.image_popup_card.data-v-7e11e6cb{width:90vw;z-index:200}.image_popup_card_title.data-v-7e11e6cb{text-align:center;font-size:36rpx;font-weight:600}.image_popup_card_title_text.data-v-7e11e6cb{margin:20rpx 0 60rpx}.image_popup_card_enter.data-v-7e11e6cb{margin:100rpx 0 20rpx}.image_popup_card_swiper_item.data-v-7e11e6cb{display:flex;justify-content:center}.image_popup_card_swiper_image.data-v-7e11e6cb{width:480rpx;height:320rpx} diff --git a/dist/build/mp-weixin/WORKORDER/poster/method.js b/dist/build/mp-weixin/WORKORDER/poster/method.js new file mode 100644 index 0000000..8d092ff --- /dev/null +++ b/dist/build/mp-weixin/WORKORDER/poster/method.js @@ -0,0 +1 @@ +"use strict";const e=require("../../common/vendor.js"),o=require("../../common/libraries/apiLoading.js"),i=require("../../gen/Apis.js"),l=require("./model.js"),t={getHouseDetail(e){},setCanvas(l){console.log(l,"data");const t=e.index.createCanvasContext("poster_firstCanvas");((l,t)=>{o.getApiLoading(i.Apis.WorkOrder.HouseWorkOrders.GetWorkOrderPayQrCode,{id:null==l?void 0:l.id}).then((o=>{var i;const l=e.index.getFileSystemManager();let s=(new Date).getTime(),n=e.wx$1.env.USER_DATA_PATH+"/"+s+".png";console.log(n,"二维码路径"),l.writeFile({filePath:n,data:null==(i=null==o?void 0:o.data)?void 0:i.qr_code.slice(22),encoding:"base64",success:()=>null==t?void 0:t(n)})}))})(l,(o=>{e.index.downloadFile({url:"https://pay-prod-1369486729.cos.ap-guangzhou.myqcloud.com/uploads/cs-test/01KFYRR5Y37PR2C1EDJYZYCDJK.png",success(e){t.drawImage(e.tempFilePath,0,0,345,504),t.font="bold 18px Arial",t.fillStyle="#3D3D3D",t.setTextAlign("center"),t.fillText((null==l?void 0:l.full_name)||"-",172.5,45),t.font="bold 20px Arial",t.fillStyle="#3D3D3D",t.fillText(`¥${(null==l?void 0:l.amount)||"-"}元`,172.5,85),t.font="12px Arial",t.fillStyle="#666",t.fillText("待支付",172.5,110),t.font="14px Arial",t.fillStyle="#00C800",t.fillText("请使用微信扫码支付",172.5,450),setTimeout((()=>{t.drawImage(o,72.5,150,200,200),t.restore(),t.draw()}),500)}}),console.log(o,"二维码路径")}))},onDownloadPosters(){e.index.showLoading({title:"正在保存中..."}),e.index.canvasToTempFilePath({x:0,y:0,width:345,height:504,destWidth:1380,destHeight:2016,canvasId:"poster_firstCanvas",success:function(o){console.log(o,"res"),e.index.saveImageToPhotosAlbum({filePath:o.tempFilePath,success:function(){console.log("save success"),e.index.hideLoading()},fail(){e.index.hideLoading()}}),console.log(o.tempFilePath)},fail(o){console.log(o,"err"),e.index.hideLoading()}})},initActualImages:async e=>{},choiceImgPopControl(){var e;this.initActualImages(null==(e=l.useModel.houseDetail.value)?void 0:e.id)},copyLink(){}};exports.method=t; diff --git a/dist/build/mp-weixin/WORKORDER/poster/model.js b/dist/build/mp-weixin/WORKORDER/poster/model.js new file mode 100644 index 0000000..184a374 --- /dev/null +++ b/dist/build/mp-weixin/WORKORDER/poster/model.js @@ -0,0 +1 @@ +"use strict";const o=require("../../common/vendor.js"),e={coverBgImg:"https://jyw-1322946948.cos.ap-guangzhou.myqcloud.com/upload/gjEDA6cmTu5FnMCWzyGSE.png",coverImg:o.ref(""),houseDetail:o.ref({}),qrCodeByBase64:o.ref(""),choiceImgShow:o.ref(!1),posterStyle:{background:"url('https://jyw-1322946948.cos.ap-guangzhou.myqcloud.com/upload/jgKWriyfZrPSIBuHrlfNG.png')",backgroundSize:"100% 100%",marginTop:"30rpx",padding:"30rpx"},houseActualImages:o.ref([]),posterImage:o.ref("")};exports.useModel=e; diff --git a/dist/build/mp-weixin/WORKORDER/show/index.js b/dist/build/mp-weixin/WORKORDER/show/index.js index c805c09..6d7279d 100644 --- a/dist/build/mp-weixin/WORKORDER/show/index.js +++ b/dist/build/mp-weixin/WORKORDER/show/index.js @@ -1 +1 @@ -"use strict";const l=require("../../common/vendor.js"),e=require("../../common/libraries/day.js"),o=require("./method.js"),u=require("./model.js"),n=require("../../gen/Enums.js");if(require("../../common/libraries/apiLoading.js"),require("../../gen/Apis.js"),require("../../common/libraries/request.js"),require("../../common/store/useWeAppAuthStore.js"),require("../../common/store/useWorkStore.js"),!Array){(l.resolveComponent("hs-enum-tag")+l.resolveComponent("hs-level")+l.resolveComponent("up-icon")+l.resolveComponent("hs-footer"))()}Math||((()=>"../../components/hs-enum-tag/hs-enum-tag.js")+(()=>"../../components/hs-level/hs-level.js")+(()=>"../../node-modules/uview-plus/components/u-icon/u-icon.js")+d+(()=>"../../components/hs-footer/hs-footer.js"))();const d=()=>"./components/ProcessLogs.js",t=l.defineComponent({__name:"index",setup:d=>(l.onLoad((l=>{var e,n;u.useModel.dataShow.value={},null==(e=o.method)||e.getShow(null==l?void 0:l.id),null==(n=o.method)||n.getHouseWorkLogs(null==l?void 0:l.id)})),l.onShow((()=>{var l,e,n,d,t,a,i,v,s,r,m;(null==(n=null==(e=null==(l=u.useModel)?void 0:l.dataShow)?void 0:e.value)?void 0:n.id)&&(null==(i=o.method)||i.getShow(null==(a=null==(t=null==(d=u.useModel)?void 0:d.dataShow)?void 0:t.value)?void 0:a.id),null==(m=o.method)||m.getHouseWorkLogs(null==(r=null==(s=null==(v=u.useModel)?void 0:v.dataShow)?void 0:s.value)?void 0:r.id))})),(d,t)=>{var a,i,v,s,r,m,h,c,f,S,w,p,M,g,_,j,q,b,y,H,k,P,E,L,W,x,C,A,O,T,$,N,z,B,D,F,G,I,J,K,Q,R,U,V,X,Y,Z,ll,el,ol,ul,nl,dl,tl,al,il,vl,sl,rl,ml,hl,cl,fl,Sl,wl,pl,Ml,gl,_l,jl,ql,bl,yl,Hl,kl;return l.e({a:l.p({value:null==(v=null==(i=null==(a=l.unref(u.useModel))?void 0:a.dataShow)?void 0:i.value)?void 0:v.type,Enums:l.unref(n.HouseWorkOrdersTypeEnum)}),b:l.p({value:null==(m=null==(r=null==(s=l.unref(u.useModel))?void 0:s.dataShow)?void 0:r.value)?void 0:m.location,Enums:l.unref(n.HouseWorkOrdersLocationEnum)}),c:l.p({level:null==(f=null==(c=null==(h=l.unref(u.useModel))?void 0:h.dataShow)?void 0:c.value)?void 0:f.level}),d:l.p({value:null==(p=null==(w=null==(S=l.unref(u.useModel))?void 0:S.dataShow)?void 0:w.value)?void 0:p.status,Enums:l.unref(n.HouseWorkOrdersStatusEnum)}),e:l.n(`btn_status status_${null==(_=null==(g=null==(M=l.unref(u.useModel))?void 0:M.dataShow)?void 0:g.value)?void 0:_.status}`),f:"Pending"===(null==(b=null==(q=null==(j=l.unref(u.useModel))?void 0:j.dataShow)?void 0:q.value)?void 0:b.status)&&"MyHome"===(null==(k=null==(H=null==(y=l.unref(u.useModel))?void 0:y.dataShow)?void 0:H.value)?void 0:k.location)},"Pending"===(null==(L=null==(E=null==(P=l.unref(u.useModel))?void 0:P.dataShow)?void 0:E.value)?void 0:L.status)&&"MyHome"===(null==(C=null==(x=null==(W=l.unref(u.useModel))?void 0:W.dataShow)?void 0:x.value)?void 0:C.location)?{g:l.p({name:"clock",color:(null==($=l.unref(e.getTimeStatus)(null==(T=null==(O=null==(A=l.unref(u.useModel))?void 0:A.dataShow)?void 0:O.value)?void 0:T.expect_end_time))?void 0:$.color)||"#000",size:"14"}),h:l.t(null==(D=l.unref(e.getTimeStatus)(null==(B=null==(z=null==(N=l.unref(u.useModel))?void 0:N.dataShow)?void 0:z.value)?void 0:B.expect_end_time))?void 0:D.label),i:l.n(`time_status status_${null==(J=l.unref(e.getTimeStatus)(null==(I=null==(G=null==(F=l.unref(u.useModel))?void 0:F.dataShow)?void 0:G.value)?void 0:I.expect_end_time))?void 0:J.status}`)}:{},{j:"MyHome"===(null==(R=null==(Q=null==(K=l.unref(u.useModel))?void 0:K.dataShow)?void 0:Q.value)?void 0:R.location)},"MyHome"===(null==(X=null==(V=null==(U=l.unref(u.useModel))?void 0:U.dataShow)?void 0:V.value)?void 0:X.location)?{k:l.t(null==(el=null==(ll=null==(Z=null==(Y=l.unref(u.useModel))?void 0:Y.dataShow)?void 0:Z.value)?void 0:ll.asset_house)?void 0:el.full_name),l:l.t(null==(nl=null==(ul=null==(ol=l.unref(u.useModel))?void 0:ol.dataShow)?void 0:ul.value)?void 0:nl.title)}:{},{m:l.t(null==(al=null==(tl=null==(dl=l.unref(u.useModel))?void 0:dl.dataShow)?void 0:tl.value)?void 0:al.content),n:l.f(null==(sl=null==(vl=null==(il=l.unref(u.useModel))?void 0:il.dataShow)?void 0:vl.value)?void 0:sl.attachments,((l,e,o)=>({a:null==l?void 0:l.url,b:`img_${e}`}))),o:l.t(null==(hl=null==(ml=null==(rl=l.unref(u.useModel))?void 0:rl.dataShow)?void 0:ml.value)?void 0:hl.code),p:l.t(null==(Sl=null==(fl=null==(cl=l.unref(u.useModel))?void 0:cl.dataShow)?void 0:fl.value)?void 0:Sl.reporter_phone),q:l.t(null==(Ml=null==(pl=null==(wl=l.unref(u.useModel))?void 0:wl.dataShow)?void 0:pl.value)?void 0:Ml.created_at),r:l.n("show_card "+("Pending"===(null==(jl=null==(_l=null==(gl=l.unref(u.useModel))?void 0:gl.dataShow)?void 0:_l.value)?void 0:jl.status)?`card_status_${null==(Hl=l.unref(e.getTimeStatus)(null==(yl=null==(bl=null==(ql=l.unref(u.useModel))?void 0:ql.dataShow)?void 0:bl.value)?void 0:yl.expect_end_time))?void 0:Hl.status}`:"")),s:l.o(null==(kl=l.unref(o.method))?void 0:kl.toPageAddLogs),t:l.o((e=>{var n,d,t,a;return null==(a=l.unref(o.method))?void 0:a.handleCopyPhone(null==(t=null==(d=null==(n=l.unref(u.useModel))?void 0:n.dataShow)?void 0:d.value)?void 0:t.contact_phone)})),v:l.p({btnOtherShow:!0,btnParimaryName:"更新进度",btnOtherName:"联系客户"})})})});wx.createPage(t); +"use strict";const l=require("../../common/vendor.js"),e=require("../../common/libraries/day.js"),o=require("../../gen/Enums.js"),u=require("./method.js"),n=require("./model.js");if(require("../../common/libraries/apiLoading.js"),require("../../gen/Apis.js"),require("../../common/libraries/request.js"),require("../../common/store/useWeAppAuthStore.js"),require("../../common/store/useWatermarkStore.js"),require("../../common/store/useWorkStore.js"),!Array){(l.resolveComponent("hs-enum-tag")+l.resolveComponent("hs-level")+l.resolveComponent("up-icon")+l.resolveComponent("hs-up-rate")+l.resolveComponent("hs-footer"))()}Math||((()=>"../../components/hs-enum-tag/hs-enum-tag.js")+(()=>"../../components/hs-level/hs-level.js")+(()=>"../../node-modules/uview-plus/components/u-icon/u-icon.js")+(()=>"../../components/hs-up-rate/hs-up-rate.js")+d+(()=>"../../components/hs-footer/hs-footer.js"))();const d=()=>"./components/ProcessLogs.js",a=l.defineComponent({__name:"index",setup:d=>(l.onLoad((l=>{var e,o;n.useModel.dataShow.value={},null==(e=u.method)||e.getShow(null==l?void 0:l.id),null==(o=u.method)||o.getHouseWorkLogs(null==l?void 0:l.id)})),l.onShow((()=>{var l,e,o,d,a,v,i,t,s,r,h;(null==(o=null==(e=null==(l=n.useModel)?void 0:l.dataShow)?void 0:e.value)?void 0:o.id)&&(null==(i=u.method)||i.getShow(null==(v=null==(a=null==(d=n.useModel)?void 0:d.dataShow)?void 0:a.value)?void 0:v.id),null==(h=u.method)||h.getHouseWorkLogs(null==(r=null==(s=null==(t=n.useModel)?void 0:t.dataShow)?void 0:s.value)?void 0:r.id))})),l.onUnload((()=>{n.useModel.logsData.value=[]})),(d,a)=>{var v,i,t,s,r,h,m,f,S,p,w,c,M,g,y,_,P,j,q,b,I,A,C,R,k,E,H,L,W,x,O,T,$,N,z,D,B,F,G,J,K,U,Q,V,X,Y,Z,ll,el,ol,ul,nl,dl,al,vl,il,tl,sl,rl,hl,ml,fl,Sl,pl,wl,cl,Ml,gl,yl,_l,Pl,jl,ql,bl,Il,Al,Cl,Rl,kl,El,Hl,Ll,Wl,xl,Ol,Tl,$l,Nl,zl,Dl,Bl,Fl,Gl,Jl,Kl,Ul,Ql,Vl,Xl,Yl,Zl,le,ee,oe,ue,ne,de,ae,ve,ie,te,se,re,he,me,fe,Se,pe,we,ce,Me,ge,ye,_e,Pe,je,qe,be,Ie,Ae,Ce,Re,ke,Ee,He,Le,We,xe,Oe,Te,$e,Ne,ze,De,Be,Fe,Ge,Je,Ke,Ue,Qe,Ve,Xe,Ye,Ze,lo,eo,oo,uo,no,ao,vo,io,to,so,ro,ho,mo,fo,So,po,wo,co,Mo,go,yo,_o,Po,jo,qo,bo,Io,Ao,Co,Ro,ko,Eo,Ho,Lo,Wo,xo,Oo,To,$o,No,zo,Do,Bo,Fo,Go,Jo,Ko,Uo,Qo,Vo,Xo;return l.e({a:l.p({value:null==(t=null==(i=null==(v=l.unref(n.useModel))?void 0:v.dataShow)?void 0:i.value)?void 0:t.type,Enums:l.unref(o.HouseWorkOrdersTypeEnum)}),b:null==(h=null==(r=null==(s=l.unref(n.useModel))?void 0:s.dataShow)?void 0:r.value)?void 0:h.location},(null==(S=null==(f=null==(m=l.unref(n.useModel))?void 0:m.dataShow)?void 0:f.value)?void 0:S.location)?{c:l.p({value:null==(c=null==(w=null==(p=l.unref(n.useModel))?void 0:p.dataShow)?void 0:w.value)?void 0:c.location,Enums:l.unref(o.HouseWorkOrdersLocationEnum)})}:{},{d:"Repair"===(null==(y=null==(g=null==(M=l.unref(n.useModel))?void 0:M.dataShow)?void 0:g.value)?void 0:y.type)||"Incident"===(null==(j=null==(P=null==(_=l.unref(n.useModel))?void 0:_.dataShow)?void 0:P.value)?void 0:j.type)||"Complaint"===(null==(I=null==(b=null==(q=l.unref(n.useModel))?void 0:q.dataShow)?void 0:b.value)?void 0:I.type)},"Repair"===(null==(R=null==(C=null==(A=l.unref(n.useModel))?void 0:A.dataShow)?void 0:C.value)?void 0:R.type)||"Incident"===(null==(H=null==(E=null==(k=l.unref(n.useModel))?void 0:k.dataShow)?void 0:E.value)?void 0:H.type)||"Complaint"===(null==(x=null==(W=null==(L=l.unref(n.useModel))?void 0:L.dataShow)?void 0:W.value)?void 0:x.type)?l.e({e:"Processing"==(null==($=null==(T=null==(O=l.unref(n.useModel))?void 0:O.dataShow)?void 0:T.value)?void 0:$.status)},"Processing"==(null==(D=null==(z=null==(N=l.unref(n.useModel))?void 0:N.dataShow)?void 0:z.value)?void 0:D.status)?{f:l.p({level:null==(G=null==(F=null==(B=l.unref(n.useModel))?void 0:B.dataShow)?void 0:F.value)?void 0:G.level})}:{}):{},{g:l.p({value:null==(U=null==(K=null==(J=l.unref(n.useModel))?void 0:J.dataShow)?void 0:K.value)?void 0:U.status,Enums:l.unref(o.HouseWorkOrdersStatusEnum)}),h:l.n(`btn_status status_${null==(X=null==(V=null==(Q=l.unref(n.useModel))?void 0:Q.dataShow)?void 0:V.value)?void 0:X.status}`),i:"Pending"===(null==(ll=null==(Z=null==(Y=l.unref(n.useModel))?void 0:Y.dataShow)?void 0:Z.value)?void 0:ll.status)&&"MyHome"===(null==(ul=null==(ol=null==(el=l.unref(n.useModel))?void 0:el.dataShow)?void 0:ol.value)?void 0:ul.location)},"Pending"===(null==(al=null==(dl=null==(nl=l.unref(n.useModel))?void 0:nl.dataShow)?void 0:dl.value)?void 0:al.status)&&"MyHome"===(null==(tl=null==(il=null==(vl=l.unref(n.useModel))?void 0:vl.dataShow)?void 0:il.value)?void 0:tl.location)?{j:l.p({name:"clock",color:(null==(ml=l.unref(e.getTimeStatus)(null==(hl=null==(rl=null==(sl=l.unref(n.useModel))?void 0:sl.dataShow)?void 0:rl.value)?void 0:hl.expect_end_time))?void 0:ml.color)||"#000",size:"14"}),k:l.t(null==(wl=l.unref(e.getTimeStatus)(null==(pl=null==(Sl=null==(fl=l.unref(n.useModel))?void 0:fl.dataShow)?void 0:Sl.value)?void 0:pl.expect_end_time))?void 0:wl.label),l:l.n(`time_status status_${null==(yl=l.unref(e.getTimeStatus)(null==(gl=null==(Ml=null==(cl=l.unref(n.useModel))?void 0:cl.dataShow)?void 0:Ml.value)?void 0:gl.expect_end_time))?void 0:yl.status}`)}:{},{m:"Repair"===(null==(jl=null==(Pl=null==(_l=l.unref(n.useModel))?void 0:_l.dataShow)?void 0:Pl.value)?void 0:jl.type)||"Incident"===(null==(Il=null==(bl=null==(ql=l.unref(n.useModel))?void 0:ql.dataShow)?void 0:bl.value)?void 0:Il.type)},"Repair"===(null==(Rl=null==(Cl=null==(Al=l.unref(n.useModel))?void 0:Al.dataShow)?void 0:Cl.value)?void 0:Rl.type)||"Incident"===(null==(Hl=null==(El=null==(kl=l.unref(n.useModel))?void 0:kl.dataShow)?void 0:El.value)?void 0:Hl.type)?{n:l.t((null==(Ol=null==(xl=null==(Wl=null==(Ll=l.unref(n.useModel))?void 0:Ll.dataShow)?void 0:Wl.value)?void 0:xl.asset_house)?void 0:Ol.full_name)||(null==(zl=null==(Nl=null==($l=null==(Tl=l.unref(n.useModel))?void 0:Tl.dataShow)?void 0:$l.value)?void 0:Nl.asset_project)?void 0:zl.name)),o:l.t(null==(Fl=null==(Bl=null==(Dl=l.unref(n.useModel))?void 0:Dl.dataShow)?void 0:Bl.value)?void 0:Fl.title)}:{},{p:l.t(null==(Kl=null==(Jl=null==(Gl=l.unref(n.useModel))?void 0:Gl.dataShow)?void 0:Jl.value)?void 0:Kl.content),q:l.f(null==(Vl=null==(Ql=null==(Ul=l.unref(n.useModel))?void 0:Ul.dataShow)?void 0:Ql.value)?void 0:Vl.attachments,((e,o,n)=>({a:null==e?void 0:e.url,b:`img_${o}`,c:l.o((e=>{var n;return null==(n=l.unref(u.method))?void 0:n.handlePreviewImage(o)}),`img_${o}`)}))),r:l.t(null==(Zl=null==(Yl=null==(Xl=l.unref(n.useModel))?void 0:Xl.dataShow)?void 0:Yl.value)?void 0:Zl.code),s:"RenovationInspection"!==(null==(oe=null==(ee=null==(le=l.unref(n.useModel))?void 0:le.dataShow)?void 0:ee.value)?void 0:oe.type)&&"RenovationAcceptance"!==(null==(de=null==(ne=null==(ue=l.unref(n.useModel))?void 0:ue.dataShow)?void 0:ne.value)?void 0:de.type)},"RenovationInspection"!==(null==(ie=null==(ve=null==(ae=l.unref(n.useModel))?void 0:ae.dataShow)?void 0:ve.value)?void 0:ie.type)&&"RenovationAcceptance"!==(null==(re=null==(se=null==(te=l.unref(n.useModel))?void 0:te.dataShow)?void 0:se.value)?void 0:re.type)?{t:l.t((null==(Se=null==(fe=null==(me=null==(he=l.unref(n.useModel))?void 0:he.dataShow)?void 0:me.value)?void 0:fe.customer)?void 0:Se.name)||(null==(Me=null==(ce=null==(we=null==(pe=l.unref(n.useModel))?void 0:pe.dataShow)?void 0:we.value)?void 0:ce.company_employee)?void 0:Me.name))}:{},{v:null==(_e=null==(ye=null==(ge=l.unref(n.useModel))?void 0:ge.dataShow)?void 0:ye.value)?void 0:_e.reporter_name},(null==(qe=null==(je=null==(Pe=l.unref(n.useModel))?void 0:Pe.dataShow)?void 0:je.value)?void 0:qe.reporter_name)?{w:l.t(null==(Ae=null==(Ie=null==(be=l.unref(n.useModel))?void 0:be.dataShow)?void 0:Ie.value)?void 0:Ae.reporter_name),x:l.t(null==(ke=null==(Re=null==(Ce=l.unref(n.useModel))?void 0:Ce.dataShow)?void 0:Re.value)?void 0:ke.reporter_phone)}:{},{y:l.t(null==(Le=null==(He=null==(Ee=l.unref(n.useModel))?void 0:Ee.dataShow)?void 0:He.value)?void 0:Le.created_at),z:"PendingPayment"===(null==(Oe=null==(xe=null==(We=l.unref(n.useModel))?void 0:We.dataShow)?void 0:xe.value)?void 0:Oe.status)&&(null==(Ne=null==($e=null==(Te=l.unref(n.useModel))?void 0:Te.dataShow)?void 0:$e.value)?void 0:Ne.amount)},"PendingPayment"===(null==(Be=null==(De=null==(ze=l.unref(n.useModel))?void 0:ze.dataShow)?void 0:De.value)?void 0:Be.status)&&(null==(Je=null==(Ge=null==(Fe=l.unref(n.useModel))?void 0:Fe.dataShow)?void 0:Ge.value)?void 0:Je.amount)?{A:l.t(null==(Qe=null==(Ue=null==(Ke=l.unref(n.useModel))?void 0:Ke.dataShow)?void 0:Ue.value)?void 0:Qe.amount)}:{},{B:null==(Ye=null==(Xe=null==(Ve=l.unref(n.useModel))?void 0:Ve.dataShow)?void 0:Xe.value)?void 0:Ye.evaluation_score},(null==(eo=null==(lo=null==(Ze=l.unref(n.useModel))?void 0:Ze.dataShow)?void 0:lo.value)?void 0:eo.evaluation_score)?{C:l.p({valueModel:null==(no=null==(uo=null==(oo=l.unref(n.useModel))?void 0:oo.dataShow)?void 0:uo.value)?void 0:no.evaluation_score})}:{},{D:l.n("show_card "+("Pending"===(null==(io=null==(vo=null==(ao=l.unref(n.useModel))?void 0:ao.dataShow)?void 0:vo.value)?void 0:io.status)?`card_status_${null==(ho=l.unref(e.getTimeStatus)(null==(ro=null==(so=null==(to=l.unref(n.useModel))?void 0:to.dataShow)?void 0:so.value)?void 0:ro.expect_end_time))?void 0:ho.status}`:"")),E:"SecurityInspection"===(null==(So=null==(fo=null==(mo=l.unref(n.useModel))?void 0:mo.dataShow)?void 0:fo.value)?void 0:So.type)&&"Processing"===(null==(co=null==(wo=null==(po=l.unref(n.useModel))?void 0:po.dataShow)?void 0:wo.value)?void 0:co.status)},"SecurityInspection"===(null==(yo=null==(go=null==(Mo=l.unref(n.useModel))?void 0:Mo.dataShow)?void 0:go.value)?void 0:yo.type)&&"Processing"===(null==(jo=null==(Po=null==(_o=l.unref(n.useModel))?void 0:_o.dataShow)?void 0:Po.value)?void 0:jo.status)?{F:l.o(null==(qo=l.unref(u.method))?void 0:qo.toPageAddLogs),G:l.p({btnParimaryName:"前往完成"})}:l.e({H:"Processing"===(null==(Ao=null==(Io=null==(bo=l.unref(n.useModel))?void 0:bo.dataShow)?void 0:Io.value)?void 0:Ao.status)||"PendingPayment"===(null==(ko=null==(Ro=null==(Co=l.unref(n.useModel))?void 0:Co.dataShow)?void 0:Ro.value)?void 0:ko.status)},"Processing"===(null==(Lo=null==(Ho=null==(Eo=l.unref(n.useModel))?void 0:Eo.dataShow)?void 0:Ho.value)?void 0:Lo.status)||"PendingPayment"===(null==(Oo=null==(xo=null==(Wo=l.unref(n.useModel))?void 0:Wo.dataShow)?void 0:xo.value)?void 0:Oo.status)?{I:l.o(null==(To=l.unref(u.method))?void 0:To.toPageAddLogs),J:l.o(null==($o=l.unref(u.method))?void 0:$o.handleCopyPhone),K:l.p({btnOtherShow:"RenovationInspection"!==(null==(Do=null==(zo=null==(No=l.unref(n.useModel))?void 0:No.dataShow)?void 0:zo.value)?void 0:Do.type)&&"RenovationAcceptance"!==(null==(Go=null==(Fo=null==(Bo=l.unref(n.useModel))?void 0:Bo.dataShow)?void 0:Fo.value)?void 0:Go.type),btnParimaryName:"Processing"===(null==(Uo=null==(Ko=null==(Jo=l.unref(n.useModel))?void 0:Jo.dataShow)?void 0:Ko.value)?void 0:Uo.status)?"更新进度":"PendingPayment"===(null==(Xo=null==(Vo=null==(Qo=l.unref(n.useModel))?void 0:Qo.dataShow)?void 0:Vo.value)?void 0:Xo.status)?"出示付款二维码":"",btnOtherName:"联系提报人"})}:{}))})});wx.createPage(a); diff --git a/dist/build/mp-weixin/WORKORDER/show/index.json b/dist/build/mp-weixin/WORKORDER/show/index.json index 1e4ffc3..b39e0ff 100644 --- a/dist/build/mp-weixin/WORKORDER/show/index.json +++ b/dist/build/mp-weixin/WORKORDER/show/index.json @@ -4,6 +4,7 @@ "hs-enum-tag": "../../components/hs-enum-tag/hs-enum-tag", "hs-level": "../../components/hs-level/hs-level", "up-icon": "../../node-modules/uview-plus/components/u-icon/u-icon", + "hs-up-rate": "../../components/hs-up-rate/hs-up-rate", "hs-footer": "../../components/hs-footer/hs-footer", "my-process-logs": "./components/ProcessLogs" } diff --git a/dist/build/mp-weixin/WORKORDER/show/index.wxml b/dist/build/mp-weixin/WORKORDER/show/index.wxml index b0007e0..15e0e79 100644 --- a/dist/build/mp-weixin/WORKORDER/show/index.wxml +++ b/dist/build/mp-weixin/WORKORDER/show/index.wxml @@ -1 +1 @@ -{{h}}{{k}}{{l}} 工单编号 {{o}} 联系电话 {{p}} 提报时间 {{q}} \ No newline at end of file +{{k}}{{n}}{{o}} 工单编号 {{r}} 提报人 {{t}} 客户信息 {{w}} {{x}} 工单创建时间 {{y}} 支付金额 {{A}}元 客户评价: \ No newline at end of file diff --git a/dist/build/mp-weixin/WORKORDER/show/index.wxss b/dist/build/mp-weixin/WORKORDER/show/index.wxss index b9c56bc..d4b191e 100644 --- a/dist/build/mp-weixin/WORKORDER/show/index.wxss +++ b/dist/build/mp-weixin/WORKORDER/show/index.wxss @@ -1 +1 @@ -page{background-color:#f8f8f8}.work_page{padding-bottom:calc(150rpx + constant(safe-area-inset-bottom));padding-bottom:calc(150rpx + env(safe-area-inset-bottom))}.show_card{margin:30rpx;background-color:#fff;border-radius:16rpx;padding:0 30rpx}.show_card .card_header_type_status{display:flex;align-items:center;justify-content:space-between;padding:25rpx 0}.show_card .card_header_type_status .group_type_btn{display:flex;align-items:center}.show_card .card_header_type_status .btn_type{border:1rpx solid #eee;font-size:28rpx;padding:7rpx 19rpx;border-radius:100rpx;margin-right:20rpx}.show_card .card_header_type_status .btn_status{border-radius:100rpx;font-size:28rpx;padding:7rpx 19rpx}.show_card .card_header_type_status .status_Pending{color:#f97316;background-color:#fff7ed}.show_card .card_header_type_status .status_Processing{color:#0082fa;background-color:#edf4ff}.show_card .card_header_type_status .status_Completed{color:#22c55e;background-color:#f0fdf4}.show_card .card_header_type_status .status_Closed{color:#909399;background-color:#f3f3f4}.show_card .time_status{color:#666;font-size:28rpx;padding:12rpx 20rpx;border-radius:10rpx;display:flex;align-items:center;margin:0 0 25rpx}.show_card .status_1{color:#24bc21;background:linear-gradient(90deg,#edffed 0%,rgba(232,255,231,0) 103%)}.show_card .status_2{color:#0082fa;background:linear-gradient(90deg,#eff7ff 0%,rgba(231,241,255,0) 103%)}.show_card .status_3{color:#f97316;background:linear-gradient(90deg,#fff4ef 0%,rgba(255,237,231,0) 103%)}.show_card .status_4{color:#ea0000;background:linear-gradient(90deg,#ffe5e5 0%,rgba(255,255,255,0) 103%)}.show_card .card_header_huse_info{display:flex;align-items:center;font-size:28rpx}.show_card .card_header_huse_info text{display:inline-block;height:28rpx;line-height:28rpx}.show_card .card_header_huse_info text:last-child{margin-left:15rpx;border-left:1rpx solid #eee;padding-left:15rpx}.show_card .card_header_content_info{font-size:30rpx;color:#444;padding:15rpx 0 0}.show_card .card_header_imgs{display:flex;align-items:center;flex-wrap:wrap;padding-bottom:30rpx}.show_card .card_header_imgs .item{width:140rpx;height:140rpx;border-radius:10rpx;background-color:#f8f8f8;margin-top:25rpx;margin-right:25rpx;overflow:hidden}.show_card .card_header_imgs .item:nth-child(4n){margin-right:0}.show_card .card_header_imgs .item image{width:100%;height:100%}.show_card .show_card_footer{border-top:1rpx solid #eee}.work_item_cell{display:flex;align-items:center;justify-content:space-between;font-size:30rpx;color:#666;padding-top:25rpx}.work_item_cell:last-child{padding-bottom:25rpx}.work_item_cell text{color:#333}.show_card_title{font-size:28rpx;padding:30rpx 0;font-weight:500}.card_status_4{border-top:6px solid #ef4444} +page{background-color:#f8f8f8}.work_page{padding-bottom:calc(150rpx + constant(safe-area-inset-bottom));padding-bottom:calc(150rpx + env(safe-area-inset-bottom))}.show_card{margin:30rpx;background-color:#fff;border-radius:16rpx;padding:0 30rpx}.show_card .card_header_type_status{display:flex;align-items:center;justify-content:space-between;padding:25rpx 0}.show_card .card_header_type_status .group_type_btn{display:flex;align-items:center}.show_card .card_header_type_status .btn_type{border:1rpx solid #eee;font-size:28rpx;padding:7rpx 19rpx;border-radius:100rpx;margin-right:20rpx}.show_card .card_header_type_status .btn_status{border-radius:100rpx;font-size:28rpx;padding:7rpx 19rpx}.show_card .card_header_type_status .status_Pending{color:#f97316;background-color:#fff7ed}.show_card .card_header_type_status .status_Processing,.show_card .card_header_type_status .status_PendingAcceptance{color:#0082fa;background-color:#edf4ff}.show_card .card_header_type_status .status_Completed{color:#22c55e;background-color:#f0fdf4}.show_card .card_header_type_status .status_PendingPayment{color:#cf1322;background-color:#ffeded}.show_card .card_header_type_status .status_Closed{color:#909399;background-color:#f3f3f4}.show_card .time_status{color:#666;font-size:28rpx;padding:12rpx 20rpx;border-radius:10rpx;display:flex;align-items:center;margin:0 0 25rpx}.show_card .status_1{color:#24bc21;background:linear-gradient(90deg,#edffed 0%,rgba(232,255,231,0) 103%)}.show_card .status_2{color:#0082fa;background:linear-gradient(90deg,#eff7ff 0%,rgba(231,241,255,0) 103%)}.show_card .status_3{color:#f97316;background:linear-gradient(90deg,#fff4ef 0%,rgba(255,237,231,0) 103%)}.show_card .status_4{color:#ea0000;background:linear-gradient(90deg,#ffe5e5 0%,rgba(255,255,255,0) 103%)}.show_card .card_header_huse_info{display:flex;align-items:center;font-size:28rpx}.show_card .card_header_huse_info text{display:inline-block;height:28rpx;line-height:28rpx}.show_card .card_header_huse_info text:last-child{margin-left:15rpx;border-left:1rpx solid #eee;padding-left:15rpx}.show_card .card_header_content_info{font-size:30rpx;color:#444;padding:15rpx 0 0}.show_card .card_header_imgs{display:flex;align-items:center;flex-wrap:wrap;padding-bottom:30rpx}.show_card .card_header_imgs .item{width:140rpx;height:140rpx;border-radius:10rpx;background-color:#f8f8f8;margin-top:25rpx;margin-right:25rpx;overflow:hidden}.show_card .card_header_imgs .item:nth-child(4n){margin-right:0}.show_card .card_header_imgs .item image{width:100%;height:100%}.show_card .show_card_footer{border-top:1rpx solid #eee}.work_item_cell{display:flex;align-items:center;justify-content:space-between;font-size:30rpx;color:#666;padding-top:25rpx}.work_item_cell:last-child{padding-bottom:25rpx}.work_item_cell text{color:#333}.work_amount_cell{color:#cf1322}.work_amount_cell text{color:#cf1322}.show_card_title{font-size:28rpx;padding:30rpx 0;font-weight:500}.card_status_4{border-top:6px solid #ef4444} diff --git a/dist/build/mp-weixin/WORKORDER/show/method.js b/dist/build/mp-weixin/WORKORDER/show/method.js index 57bce5a..ab00e5a 100644 --- a/dist/build/mp-weixin/WORKORDER/show/method.js +++ b/dist/build/mp-weixin/WORKORDER/show/method.js @@ -1 +1 @@ -"use strict";const e=require("../../common/vendor.js"),o=require("./model.js"),d=require("../../common/libraries/apiLoading.js"),l=require("../../gen/Apis.js"),i={getShow(e){d.getApiLoading(l.Apis.WorkOrder.HouseWorkOrders.Show,{id:e}).then((e=>{o.useModel.dataShow.value=null==e?void 0:e.data}))},getHouseWorkLogs(e){d.getApiLoading(l.Apis.WorkOrder.HouseWorkLogs.List,{house_work_orders_id:e}).then((e=>{o.useModel.logsData.value=null==e?void 0:e.data}))},toPageAddLogs(){var d,l,i,u,a,r,n,s,t;e.index.navigateTo({url:`/WORKORDER/update/index?id=${null==(i=null==(l=null==(d=o.useModel)?void 0:d.dataShow)?void 0:l.value)?void 0:i.id}&code=${null==(r=null==(a=null==(u=o.useModel)?void 0:u.dataShow)?void 0:a.value)?void 0:r.code}&title=${null==(t=null==(s=null==(n=o.useModel)?void 0:n.dataShow)?void 0:s.value)?void 0:t.title}`})},handleCopyPhone(o){o&&e.index.makePhoneCall({phoneNumber:o})}};exports.method=i; +"use strict";const l=require("../../common/vendor.js"),o=require("../../common/libraries/apiLoading.js"),e=require("../../gen/Apis.js"),d=require("./model.js"),u={getShow(l){o.getApiLoading(e.Apis.WorkOrder.HouseWorkOrders.Show,{id:l}).then((l=>{d.useModel.dataShow.value=null==l?void 0:l.data}))},getHouseWorkLogs(l){o.getApiLoading(e.Apis.WorkOrder.HouseWorkLogs.List,{house_work_orders_id:l}).then((l=>{d.useModel.logsData.value=null==l?void 0:l.data}))},toPageAddLogs(){var o,e,u,n,i,a,v,t,s,r,h,p,w,c,S,g,M,m,_,R,x,O,P,k,y,W,$,A,L,j,D,T,q,C,E,I,K,b,f,H,N,Q,z;if("SecurityInspection"!==(null==(u=null==(e=null==(o=d.useModel)?void 0:o.dataShow)?void 0:e.value)?void 0:u.type))return"RenovationInspection"===(null==(s=null==(t=null==(v=d.useModel)?void 0:v.dataShow)?void 0:t.value)?void 0:s.type)||"RenovationAcceptance"===(null==(p=null==(h=null==(r=d.useModel)?void 0:r.dataShow)?void 0:h.value)?void 0:p.type)?(l.index.navigateTo({url:`/WORKORDER/patrol_update/index?id=${null==(S=null==(c=null==(w=d.useModel)?void 0:w.dataShow)?void 0:c.value)?void 0:S.id}&type=${null==(m=null==(M=null==(g=d.useModel)?void 0:g.dataShow)?void 0:M.value)?void 0:m.type}`}),!1):void("PendingPayment"!==(null==(x=null==(R=null==(_=d.useModel)?void 0:_.dataShow)?void 0:R.value)?void 0:x.status)?"Processing"===(null==(C=null==(q=null==(T=d.useModel)?void 0:T.dataShow)?void 0:q.value)?void 0:C.status)&&l.index.navigateTo({url:`/WORKORDER/update/index?id=${null==(K=null==(I=null==(E=d.useModel)?void 0:E.dataShow)?void 0:I.value)?void 0:K.id}&projects_id=${null==(H=null==(f=null==(b=d.useModel)?void 0:b.dataShow)?void 0:f.value)?void 0:H.asset_projects_id}&location=${null==(z=null==(Q=null==(N=d.useModel)?void 0:N.dataShow)?void 0:Q.value)?void 0:z.location}`}):l.index.navigateTo({url:`/WORKORDER/poster/index?id=${null==(k=null==(P=null==(O=d.useModel)?void 0:O.dataShow)?void 0:P.value)?void 0:k.id}&full_name=${null==(A=null==($=null==(W=null==(y=d.useModel)?void 0:y.dataShow)?void 0:W.value)?void 0:$.asset_house)?void 0:A.full_name}&amount=${null==(D=null==(j=null==(L=d.useModel)?void 0:L.dataShow)?void 0:j.value)?void 0:D.amount}`}));l.index.navigateTo({url:`/WORKORDER/show_patrol_task_locations/index?id=${null==(a=null==(i=null==(n=d.useModel)?void 0:n.dataShow)?void 0:i.value)?void 0:a.id}`})},handlePreviewImage(o){var e,u,n,i;let a=(null==(i=null==(n=null==(u=null==(e=d.useModel)?void 0:e.dataShow)?void 0:u.value)?void 0:n.attachments)?void 0:i.map((l=>null==l?void 0:l.url)))||[];l.index.previewImage({urls:a,current:o})},handlePendingPaymentQrCode(l){},handleCopyPhone(){var o,e,u,n,i,a,v,t,s,r,h,p;(null==(u=null==(e=null==(o=d.useModel)?void 0:o.dataShow)?void 0:e.value)?void 0:u.contact_phone)?l.index.makePhoneCall({phoneNumber:null==(a=null==(i=null==(n=d.useModel)?void 0:n.dataShow)?void 0:i.value)?void 0:a.contact_phone}):(null==(s=null==(t=null==(v=d.useModel)?void 0:v.dataShow)?void 0:t.value)?void 0:s.reporter_phone)?l.index.makePhoneCall({phoneNumber:null==(p=null==(h=null==(r=d.useModel)?void 0:r.dataShow)?void 0:h.value)?void 0:p.reporter_phone}):l.index.showToast({title:"暂无电话号码",icon:"none"})}};exports.method=u; diff --git a/dist/build/mp-weixin/WORKORDER/show_log/components/ProcessLogs.js b/dist/build/mp-weixin/WORKORDER/show_log/components/ProcessLogs.js new file mode 100644 index 0000000..bc25e78 --- /dev/null +++ b/dist/build/mp-weixin/WORKORDER/show_log/components/ProcessLogs.js @@ -0,0 +1 @@ +"use strict";const e=require("../../../common/vendor.js"),o=require("../../../gen/Enums.js"),n=require("../model.js");if(!Array){(e.resolveComponent("hs-empty")+e.resolveComponent("hs-enum-tag")+e.resolveComponent("up-steps-item")+e.resolveComponent("up-steps"))()}Math||((()=>"../../../components/hs-empty/hs-empty.js")+(()=>"../../../components/hs-enum-tag/hs-enum-tag.js")+(()=>"../../../node-modules/uview-plus/components/u-steps-item/u-steps-item.js")+(()=>"../../../node-modules/uview-plus/components/u-steps/u-steps.js"))();const s=e.defineComponent({__name:"ProcessLogs",setup:s=>(s,t)=>{var l,u,a,d,r,m,i,p,v,c,g;return e.e({a:!(null==(a=null==(u=null==(l=e.unref(n.useModel))?void 0:l.logsData)?void 0:u.value)?void 0:a.length)},(null==(m=null==(r=null==(d=e.unref(n.useModel))?void 0:d.logsData)?void 0:r.value)||m.length,{}),{b:e.f(null==(p=null==(i=e.unref(n.useModel))?void 0:i.logsData)?void 0:p.value,((n,s,t)=>({a:"a4eee7b6-3-"+t+",a4eee7b6-2-"+t,b:e.p({value:null==n?void 0:n.status,Enums:e.unref(o.HouseWorkOrdersStatusEnum)}),c:e.t(null==n?void 0:n.description),d:e.f(null==n?void 0:n.attachments,((e,o,n)=>({a:null==e?void 0:e.url,b:`attachment_${o}`}))),e:e.t(null==n?void 0:n.created_at),f:`log_item_${s}`,g:"a4eee7b6-2-"+t+",a4eee7b6-1"}))),c:e.p({direction:"column",dot:!0,current:(null==(g=null==(c=null==(v=e.unref(n.useModel))?void 0:v.logsData)?void 0:c.value)?void 0:g.length)-1})})}}),t=e._export_sfc(s,[["__scopeId","data-v-a4eee7b6"]]);wx.createComponent(t); diff --git a/dist/build/mp-weixin/WORKORDER/show_log/components/ProcessLogs.json b/dist/build/mp-weixin/WORKORDER/show_log/components/ProcessLogs.json new file mode 100644 index 0000000..98e603e --- /dev/null +++ b/dist/build/mp-weixin/WORKORDER/show_log/components/ProcessLogs.json @@ -0,0 +1,9 @@ +{ + "component": true, + "usingComponents": { + "hs-empty": "../../../components/hs-empty/hs-empty", + "hs-enum-tag": "../../../components/hs-enum-tag/hs-enum-tag", + "up-steps-item": "../../../node-modules/uview-plus/components/u-steps-item/u-steps-item", + "up-steps": "../../../node-modules/uview-plus/components/u-steps/u-steps" + } +} \ No newline at end of file diff --git a/dist/build/mp-weixin/WORKORDER/show_log/components/ProcessLogs.wxml b/dist/build/mp-weixin/WORKORDER/show_log/components/ProcessLogs.wxml new file mode 100644 index 0000000..d9ced4c --- /dev/null +++ b/dist/build/mp-weixin/WORKORDER/show_log/components/ProcessLogs.wxml @@ -0,0 +1 @@ + 处理日志 工单进度:{{i.c}}{{i.e}} \ No newline at end of file diff --git a/dist/build/mp-weixin/WORKORDER/show_log/components/ProcessLogs.wxss b/dist/build/mp-weixin/WORKORDER/show_log/components/ProcessLogs.wxss new file mode 100644 index 0000000..f39d636 --- /dev/null +++ b/dist/build/mp-weixin/WORKORDER/show_log/components/ProcessLogs.wxss @@ -0,0 +1 @@ +.desc_title.data-v-a4eee7b6{color:#333;font-size:28rpx;display:flex;align-items:center;justify-content:space-between}.desc_content.data-v-a4eee7b6{color:#666;font-size:28rpx;padding:10rpx 0 0}.attachments.data-v-a4eee7b6{display:flex;align-items:center;flex-wrap:wrap;padding:20rpx 0 0}.attachments .attachment_item.data-v-a4eee7b6{width:140rpx;height:140rpx;overflow:hidden;border-radius:15rpx}.attachments image.data-v-a4eee7b6{width:140rpx;height:140rpx;border-radius:15rpx}.created_at.data-v-a4eee7b6{padding:10rpx 0 30rpx;color:#999;font-size:24rpx} diff --git a/dist/build/mp-weixin/WORKORDER/show_log/index.js b/dist/build/mp-weixin/WORKORDER/show_log/index.js new file mode 100644 index 0000000..77de3e0 --- /dev/null +++ b/dist/build/mp-weixin/WORKORDER/show_log/index.js @@ -0,0 +1 @@ +"use strict";const l=require("../../common/vendor.js"),e=require("../../common/libraries/day.js"),o=require("./method.js"),u=require("./model.js"),n=require("../../gen/Enums.js");if(require("../../common/libraries/apiLoading.js"),require("../../gen/Apis.js"),require("../../common/libraries/request.js"),require("../../common/store/useWeAppAuthStore.js"),require("../../common/store/useWatermarkStore.js"),require("../../common/store/useWorkStore.js"),!Array){(l.resolveComponent("hs-enum-tag")+l.resolveComponent("hs-level")+l.resolveComponent("up-icon")+l.resolveComponent("hs-up-rate")+l.resolveComponent("hs-footer"))()}Math||((()=>"../../components/hs-enum-tag/hs-enum-tag.js")+(()=>"../../components/hs-level/hs-level.js")+(()=>"../../node-modules/uview-plus/components/u-icon/u-icon.js")+(()=>"../../components/hs-up-rate/hs-up-rate.js")+d+(()=>"../../components/hs-footer/hs-footer.js"))();const d=()=>"./components/ProcessLogs.js",a=l.defineComponent({__name:"index",setup:d=>(l.onLoad((l=>{var e,n;u.useModel.dataShow.value={},null==(e=o.method)||e.getShow(null==l?void 0:l.id),null==(n=o.method)||n.getHouseWorkLogs(null==l?void 0:l.id)})),l.onShow((()=>{var l,e,n,d,a,v,i,t,s,r,m;(null==(n=null==(e=null==(l=u.useModel)?void 0:l.dataShow)?void 0:e.value)?void 0:n.id)&&(null==(i=o.method)||i.getShow(null==(v=null==(a=null==(d=u.useModel)?void 0:d.dataShow)?void 0:a.value)?void 0:v.id),null==(m=o.method)||m.getHouseWorkLogs(null==(r=null==(s=null==(t=u.useModel)?void 0:t.dataShow)?void 0:s.value)?void 0:r.id))})),l.onUnload((()=>{u.useModel.logsData.value=[]})),(d,a)=>{var v,i,t,s,r,m,h,f,S,c,w,M,p,g,_,j,y,P,q,H,b,k,A,C,E,W,x,L,T,$,O,z,D,I,N,R,B,F,G,U,J,K,Q,V,X,Y,Z,ll,el,ol,ul,nl,dl,al,vl,il,tl,sl,rl,ml,hl,fl,Sl,cl,wl,Ml,pl,gl,_l,jl,yl,Pl,ql,Hl,bl,kl,Al,Cl,El,Wl,xl,Ll,Tl,$l,Ol,zl,Dl,Il,Nl,Rl,Bl,Fl,Gl,Ul,Jl,Kl,Ql,Vl,Xl,Yl,Zl,le,ee,oe,ue,ne,de,ae,ve,ie,te,se,re,me,he,fe,Se,ce,we,Me,pe,ge,_e,je,ye,Pe,qe,He,be,ke,Ae,Ce,Ee,We,xe,Le,Te,$e,Oe,ze,De,Ie,Ne,Re,Be,Fe,Ge,Ue,Je,Ke,Qe;return l.e({a:l.p({value:null==(t=null==(i=null==(v=l.unref(u.useModel))?void 0:v.dataShow)?void 0:i.value)?void 0:t.type,Enums:l.unref(n.HouseWorkOrdersTypeEnum)}),b:null==(m=null==(r=null==(s=l.unref(u.useModel))?void 0:s.dataShow)?void 0:r.value)?void 0:m.location},(null==(S=null==(f=null==(h=l.unref(u.useModel))?void 0:h.dataShow)?void 0:f.value)?void 0:S.location)?{c:l.p({value:null==(M=null==(w=null==(c=l.unref(u.useModel))?void 0:c.dataShow)?void 0:w.value)?void 0:M.location,Enums:l.unref(n.HouseWorkOrdersLocationEnum)})}:{},{d:l.p({level:null==(_=null==(g=null==(p=l.unref(u.useModel))?void 0:p.dataShow)?void 0:g.value)?void 0:_.level}),e:l.p({value:null==(P=null==(y=null==(j=l.unref(u.useModel))?void 0:j.dataShow)?void 0:y.value)?void 0:P.status,Enums:l.unref(n.HouseWorkOrdersStatusEnum)}),f:l.n(`btn_status status_${null==(b=null==(H=null==(q=l.unref(u.useModel))?void 0:q.dataShow)?void 0:H.value)?void 0:b.status}`),g:"Pending"===(null==(C=null==(A=null==(k=l.unref(u.useModel))?void 0:k.dataShow)?void 0:A.value)?void 0:C.status)&&"MyHome"===(null==(x=null==(W=null==(E=l.unref(u.useModel))?void 0:E.dataShow)?void 0:W.value)?void 0:x.location)},"Pending"===(null==($=null==(T=null==(L=l.unref(u.useModel))?void 0:L.dataShow)?void 0:T.value)?void 0:$.status)&&"MyHome"===(null==(D=null==(z=null==(O=l.unref(u.useModel))?void 0:O.dataShow)?void 0:z.value)?void 0:D.location)?{h:l.p({name:"clock",color:(null==(B=l.unref(e.getTimeStatus)(null==(R=null==(N=null==(I=l.unref(u.useModel))?void 0:I.dataShow)?void 0:N.value)?void 0:R.expect_end_time))?void 0:B.color)||"#000",size:"14"}),i:l.t(null==(J=l.unref(e.getTimeStatus)(null==(U=null==(G=null==(F=l.unref(u.useModel))?void 0:F.dataShow)?void 0:G.value)?void 0:U.expect_end_time))?void 0:J.label),j:l.n(`time_status status_${null==(X=l.unref(e.getTimeStatus)(null==(V=null==(Q=null==(K=l.unref(u.useModel))?void 0:K.dataShow)?void 0:Q.value)?void 0:V.expect_end_time))?void 0:X.status}`)}:{},{k:"Repair"===(null==(ll=null==(Z=null==(Y=l.unref(u.useModel))?void 0:Y.dataShow)?void 0:Z.value)?void 0:ll.type)||"Incident"===(null==(ul=null==(ol=null==(el=l.unref(u.useModel))?void 0:el.dataShow)?void 0:ol.value)?void 0:ul.type)},"Repair"===(null==(al=null==(dl=null==(nl=l.unref(u.useModel))?void 0:nl.dataShow)?void 0:dl.value)?void 0:al.type)||"Incident"===(null==(tl=null==(il=null==(vl=l.unref(u.useModel))?void 0:vl.dataShow)?void 0:il.value)?void 0:tl.type)?{l:l.t((null==(hl=null==(ml=null==(rl=null==(sl=l.unref(u.useModel))?void 0:sl.dataShow)?void 0:rl.value)?void 0:ml.asset_house)?void 0:hl.full_name)||(null==(wl=null==(cl=null==(Sl=null==(fl=l.unref(u.useModel))?void 0:fl.dataShow)?void 0:Sl.value)?void 0:cl.asset_project)?void 0:wl.name)),m:l.t(null==(gl=null==(pl=null==(Ml=l.unref(u.useModel))?void 0:Ml.dataShow)?void 0:pl.value)?void 0:gl.title)}:{},{n:l.t(null==(yl=null==(jl=null==(_l=l.unref(u.useModel))?void 0:_l.dataShow)?void 0:jl.value)?void 0:yl.content),o:l.f(null==(Hl=null==(ql=null==(Pl=l.unref(u.useModel))?void 0:Pl.dataShow)?void 0:ql.value)?void 0:Hl.attachments,((l,e,o)=>({a:null==l?void 0:l.url,b:`img_${e}`}))),p:l.t(null==(Al=null==(kl=null==(bl=l.unref(u.useModel))?void 0:bl.dataShow)?void 0:kl.value)?void 0:Al.code),q:l.t((null==(xl=null==(Wl=null==(El=null==(Cl=l.unref(u.useModel))?void 0:Cl.dataShow)?void 0:El.value)?void 0:Wl.customer)?void 0:xl.name)||(null==(Ol=null==($l=null==(Tl=null==(Ll=l.unref(u.useModel))?void 0:Ll.dataShow)?void 0:Tl.value)?void 0:$l.company_employee)?void 0:Ol.name)),r:null==(Il=null==(Dl=null==(zl=l.unref(u.useModel))?void 0:zl.dataShow)?void 0:Dl.value)?void 0:Il.reporter_name},(null==(Bl=null==(Rl=null==(Nl=l.unref(u.useModel))?void 0:Nl.dataShow)?void 0:Rl.value)?void 0:Bl.reporter_name)?{s:l.t(null==(Ul=null==(Gl=null==(Fl=l.unref(u.useModel))?void 0:Fl.dataShow)?void 0:Gl.value)?void 0:Ul.reporter_name),t:l.t(null==(Ql=null==(Kl=null==(Jl=l.unref(u.useModel))?void 0:Jl.dataShow)?void 0:Kl.value)?void 0:Ql.reporter_phone)}:{},{v:l.t(null==(Yl=null==(Xl=null==(Vl=l.unref(u.useModel))?void 0:Vl.dataShow)?void 0:Xl.value)?void 0:Yl.created_at),w:"PendingPayment"===(null==(ee=null==(le=null==(Zl=l.unref(u.useModel))?void 0:Zl.dataShow)?void 0:le.value)?void 0:ee.status)&&(null==(ne=null==(ue=null==(oe=l.unref(u.useModel))?void 0:oe.dataShow)?void 0:ue.value)?void 0:ne.amount)},"PendingPayment"===(null==(ve=null==(ae=null==(de=l.unref(u.useModel))?void 0:de.dataShow)?void 0:ae.value)?void 0:ve.status)&&(null==(se=null==(te=null==(ie=l.unref(u.useModel))?void 0:ie.dataShow)?void 0:te.value)?void 0:se.amount)?{x:l.t(null==(he=null==(me=null==(re=l.unref(u.useModel))?void 0:re.dataShow)?void 0:me.value)?void 0:he.amount)}:{},{y:null==(ce=null==(Se=null==(fe=l.unref(u.useModel))?void 0:fe.dataShow)?void 0:Se.value)?void 0:ce.evaluation_score},(null==(pe=null==(Me=null==(we=l.unref(u.useModel))?void 0:we.dataShow)?void 0:Me.value)?void 0:pe.evaluation_score)?{z:l.p({valueModel:null==(je=null==(_e=null==(ge=l.unref(u.useModel))?void 0:ge.dataShow)?void 0:_e.value)?void 0:je.evaluation_score})}:{},{A:l.n("show_card "+("Pending"===(null==(qe=null==(Pe=null==(ye=l.unref(u.useModel))?void 0:ye.dataShow)?void 0:Pe.value)?void 0:qe.status)?`card_status_${null==(Ae=l.unref(e.getTimeStatus)(null==(ke=null==(be=null==(He=l.unref(u.useModel))?void 0:He.dataShow)?void 0:be.value)?void 0:ke.expect_end_time))?void 0:Ae.status}`:"")),B:"MyHome"!==(null==(We=null==(Ee=null==(Ce=l.unref(u.useModel))?void 0:Ce.dataShow)?void 0:Ee.value)?void 0:We.location)},"MyHome"!==(null==(Te=null==(Le=null==(xe=l.unref(u.useModel))?void 0:xe.dataShow)?void 0:Le.value)?void 0:Te.location)?l.e({C:"Pending"===(null==(ze=null==(Oe=null==($e=l.unref(u.useModel))?void 0:$e.dataShow)?void 0:Oe.value)?void 0:ze.status)},"Pending"===(null==(Ne=null==(Ie=null==(De=l.unref(u.useModel))?void 0:De.dataShow)?void 0:Ie.value)?void 0:Ne.status)?{D:l.o(null==(Re=l.unref(o.method))?void 0:Re.handleClosed),E:l.p({btnParimaryName:"关闭工单"})}:{},{F:"PendingAcceptance"===(null==(Ge=null==(Fe=null==(Be=l.unref(u.useModel))?void 0:Be.dataShow)?void 0:Fe.value)?void 0:Ge.status)},"PendingAcceptance"===(null==(Ke=null==(Je=null==(Ue=l.unref(u.useModel))?void 0:Ue.dataShow)?void 0:Je.value)?void 0:Ke.status)?{G:l.o(null==(Qe=l.unref(o.method))?void 0:Qe.toPageAddLogs),H:l.p({btnParimaryName:"验收工单"})}:{}):{})})});wx.createPage(a); diff --git a/dist/build/mp-weixin/WORKORDER/show_log/index.json b/dist/build/mp-weixin/WORKORDER/show_log/index.json new file mode 100644 index 0000000..a6591a3 --- /dev/null +++ b/dist/build/mp-weixin/WORKORDER/show_log/index.json @@ -0,0 +1,11 @@ +{ + "navigationBarTitleText": "提报工单详情", + "usingComponents": { + "hs-enum-tag": "../../components/hs-enum-tag/hs-enum-tag", + "hs-level": "../../components/hs-level/hs-level", + "up-icon": "../../node-modules/uview-plus/components/u-icon/u-icon", + "hs-up-rate": "../../components/hs-up-rate/hs-up-rate", + "hs-footer": "../../components/hs-footer/hs-footer", + "my-process-logs": "./components/ProcessLogs" + } +} \ No newline at end of file diff --git a/dist/build/mp-weixin/WORKORDER/show_log/index.wxml b/dist/build/mp-weixin/WORKORDER/show_log/index.wxml new file mode 100644 index 0000000..0be502a --- /dev/null +++ b/dist/build/mp-weixin/WORKORDER/show_log/index.wxml @@ -0,0 +1 @@ +{{i}}{{l}}{{m}} 工单编号 {{p}} 提报人 {{q}} 客户信息 {{s}} {{t}} 工单创建时间 {{v}} 支付金额 {{x}}元 客户评价: \ No newline at end of file diff --git a/dist/build/mp-weixin/WORKORDER/show_log/index.wxss b/dist/build/mp-weixin/WORKORDER/show_log/index.wxss new file mode 100644 index 0000000..d4b191e --- /dev/null +++ b/dist/build/mp-weixin/WORKORDER/show_log/index.wxss @@ -0,0 +1 @@ +page{background-color:#f8f8f8}.work_page{padding-bottom:calc(150rpx + constant(safe-area-inset-bottom));padding-bottom:calc(150rpx + env(safe-area-inset-bottom))}.show_card{margin:30rpx;background-color:#fff;border-radius:16rpx;padding:0 30rpx}.show_card .card_header_type_status{display:flex;align-items:center;justify-content:space-between;padding:25rpx 0}.show_card .card_header_type_status .group_type_btn{display:flex;align-items:center}.show_card .card_header_type_status .btn_type{border:1rpx solid #eee;font-size:28rpx;padding:7rpx 19rpx;border-radius:100rpx;margin-right:20rpx}.show_card .card_header_type_status .btn_status{border-radius:100rpx;font-size:28rpx;padding:7rpx 19rpx}.show_card .card_header_type_status .status_Pending{color:#f97316;background-color:#fff7ed}.show_card .card_header_type_status .status_Processing,.show_card .card_header_type_status .status_PendingAcceptance{color:#0082fa;background-color:#edf4ff}.show_card .card_header_type_status .status_Completed{color:#22c55e;background-color:#f0fdf4}.show_card .card_header_type_status .status_PendingPayment{color:#cf1322;background-color:#ffeded}.show_card .card_header_type_status .status_Closed{color:#909399;background-color:#f3f3f4}.show_card .time_status{color:#666;font-size:28rpx;padding:12rpx 20rpx;border-radius:10rpx;display:flex;align-items:center;margin:0 0 25rpx}.show_card .status_1{color:#24bc21;background:linear-gradient(90deg,#edffed 0%,rgba(232,255,231,0) 103%)}.show_card .status_2{color:#0082fa;background:linear-gradient(90deg,#eff7ff 0%,rgba(231,241,255,0) 103%)}.show_card .status_3{color:#f97316;background:linear-gradient(90deg,#fff4ef 0%,rgba(255,237,231,0) 103%)}.show_card .status_4{color:#ea0000;background:linear-gradient(90deg,#ffe5e5 0%,rgba(255,255,255,0) 103%)}.show_card .card_header_huse_info{display:flex;align-items:center;font-size:28rpx}.show_card .card_header_huse_info text{display:inline-block;height:28rpx;line-height:28rpx}.show_card .card_header_huse_info text:last-child{margin-left:15rpx;border-left:1rpx solid #eee;padding-left:15rpx}.show_card .card_header_content_info{font-size:30rpx;color:#444;padding:15rpx 0 0}.show_card .card_header_imgs{display:flex;align-items:center;flex-wrap:wrap;padding-bottom:30rpx}.show_card .card_header_imgs .item{width:140rpx;height:140rpx;border-radius:10rpx;background-color:#f8f8f8;margin-top:25rpx;margin-right:25rpx;overflow:hidden}.show_card .card_header_imgs .item:nth-child(4n){margin-right:0}.show_card .card_header_imgs .item image{width:100%;height:100%}.show_card .show_card_footer{border-top:1rpx solid #eee}.work_item_cell{display:flex;align-items:center;justify-content:space-between;font-size:30rpx;color:#666;padding-top:25rpx}.work_item_cell:last-child{padding-bottom:25rpx}.work_item_cell text{color:#333}.work_amount_cell{color:#cf1322}.work_amount_cell text{color:#cf1322}.show_card_title{font-size:28rpx;padding:30rpx 0;font-weight:500}.card_status_4{border-top:6px solid #ef4444} diff --git a/dist/build/mp-weixin/WORKORDER/show_log/method.js b/dist/build/mp-weixin/WORKORDER/show_log/method.js new file mode 100644 index 0000000..0037abc --- /dev/null +++ b/dist/build/mp-weixin/WORKORDER/show_log/method.js @@ -0,0 +1 @@ +"use strict";const e=require("../../common/vendor.js"),o=require("../../common/libraries/apiLoading.js"),l=require("../../common/libraries/day.js"),d=require("../../gen/Apis.js"),i=require("./model.js"),n=e=>{o.getApiLoading(d.Apis.WorkOrder.HouseWorkOrders.Show,{id:e}).then((e=>{i.useModel.dataShow.value=null==e?void 0:e.data}))},a=e=>{o.getApiLoading(d.Apis.WorkOrder.HouseWorkLogs.List,{house_work_orders_id:e}).then((e=>{i.useModel.logsData.value=null==e?void 0:e.data}))},u={getShow:n,getHouseWorkLogs:a,toPageAddLogs(){var o,l,d,n,a,u;"PendingAcceptance"===(null==(d=null==(l=null==(o=i.useModel)?void 0:o.dataShow)?void 0:l.value)?void 0:d.status)&&e.index.navigateTo({url:`/WORKORDER/acceptance/index?id=${null==(u=null==(a=null==(n=i.useModel)?void 0:n.dataShow)?void 0:a.value)?void 0:u.id}`})},handleClosed(){var u,s,t,r,v,c;if((null==(t=null==(s=null==(u=i.useModel)?void 0:u.dataShow)?void 0:s.value)?void 0:t.expect_start_time)&&l.specificTime(null==(c=null==(v=null==(r=i.useModel)?void 0:r.dataShow)?void 0:v.value)?void 0:c.expect_start_time))return e.index.showModal({title:"提示",content:"距离工单开始时间小于2小时,无法关闭工单!若需取消,请联系处理人员操作。",cancelText:"点错了",success:function(e){e.confirm?console.log("用户点击确定"):e.cancel&&console.log("用户点击取消")}}),!1;e.index.showModal({title:"提示",content:"关闭工单后无法继续操作,如需继续需要重新提交,您是否确认关闭",cancelText:"点错了",success:function(e){var l,u,s;e.confirm?(o.getApiLoading(d.Apis.WorkOrder.HouseWorkOrders.Close,{id:null==(s=null==(u=null==(l=i.useModel)?void 0:l.dataShow)?void 0:u.value)?void 0:s.id}).then((e=>{var o,l,d,u,s,t;n(null==(d=null==(l=null==(o=i.useModel)?void 0:o.dataShow)?void 0:l.value)?void 0:d.id),a(null==(t=null==(s=null==(u=i.useModel)?void 0:u.dataShow)?void 0:s.value)?void 0:t.id)})),console.log("用户点击确定")):e.cancel&&console.log("用户点击取消")}})},handlePendingPaymentQrCode(e){},handleCopyPhone(o){o&&e.index.makePhoneCall({phoneNumber:o})}};exports.method=u; diff --git a/dist/build/mp-weixin/WORKORDER/show_log/model.js b/dist/build/mp-weixin/WORKORDER/show_log/model.js new file mode 100644 index 0000000..af1f59e --- /dev/null +++ b/dist/build/mp-weixin/WORKORDER/show_log/model.js @@ -0,0 +1 @@ +"use strict";const e=require("../../common/vendor.js"),o={dataShow:e.ref({}),logsData:e.ref([])};exports.useModel=o; diff --git a/dist/build/mp-weixin/WORKORDER/update/index.js b/dist/build/mp-weixin/WORKORDER/update/index.js index 816231e..612fc24 100644 --- a/dist/build/mp-weixin/WORKORDER/update/index.js +++ b/dist/build/mp-weixin/WORKORDER/update/index.js @@ -1 +1 @@ -"use strict";const e=require("../../common/vendor.js"),o=require("./method.js"),r=require("./model.js"),s=require("../../gen/Enums.js");if(require("../../common/libraries/request.js"),require("../../common/store/useWeAppAuthStore.js"),require("../../gen/Apis.js"),require("../../common/store/useWorkStore.js"),require("../../common/libraries/apiLoading.js"),require("../../common/libraries/naviHelper.js"),!Array){(e.resolveComponent("hs-radio-cell-picker")+e.resolveComponent("hs-cell-textarea")+e.resolveComponent("hs-upload")+e.resolveComponent("hs-footer"))()}Math||((()=>"../../components/hs-radio-cell-picker/hs-radio-cell-picker.js")+(()=>"../../components/hs-cell-textarea/hs-cell-textarea.js")+(()=>"../../components/hs-upload/hs-upload.js")+(()=>"../../components/hs-footer/hs-footer.js"))();const t=e.defineComponent({__name:"index",setup:t=>(e.onLoad((e=>{var r;null==(r=o.method)||r.init(e)})),(t,a)=>{var n;return{a:e.o((o=>e.unref(r.useModel).formData.value.status=o)),b:e.p({Enums:e.unref(s.HouseWorkOrdersStatusEnum),title:"工单状态",borderTop:!0,required:!0,valueModel:e.unref(r.useModel).formData.value.status}),c:e.o((o=>e.unref(r.useModel).formData.value.description=o)),d:e.p({borderTop:!0,title:"进度说明",placeholder:"请输入进度说明",valueModel:e.unref(r.useModel).formData.value.description}),e:e.o((o=>e.unref(r.useModel).formData.value.attachments=o)),f:e.p({borderTop:!0,title:"上传图片",count:6,valueModel:e.unref(r.useModel).formData.value.attachments}),g:e.o(null==(n=e.unref(o.method))?void 0:n.handleSubmit),h:e.p({btnParimaryName:"提交"})}})});wx.createPage(t); +"use strict";const e=require("../../common/vendor.js"),o=require("./method.js"),r=require("./model.js");if(require("../../common/libraries/request.js"),require("../../common/store/useWeAppAuthStore.js"),require("../../gen/Apis.js"),require("../../common/store/useWatermarkStore.js"),require("../../common/store/useWorkStore.js"),require("../../common/libraries/apiLoading.js"),require("../../common/libraries/naviHelper.js"),!Array){(e.resolveComponent("hs-radio-cell-picker")+e.resolveComponent("hs-cell-textarea")+e.resolveComponent("hs-upload")+e.resolveComponent("hs-radio")+e.resolveComponent("hs-cell")+e.resolveComponent("hs-input")+e.resolveComponent("hs-radio-picker-accounts")+e.resolveComponent("hs-footer"))()}Math||((()=>"../../components/hs-radio-cell-picker/hs-radio-cell-picker.js")+(()=>"../../components/hs-cell-textarea/hs-cell-textarea.js")+(()=>"../../components/hs-upload/hs-upload.js")+(()=>"../../components/hs-radio/hs-radio.js")+(()=>"../../components/hs-cell/hs-cell.js")+(()=>"../../components/hs-input/hs-input.js")+(()=>"../../components/hs-radio-picker-accounts/hs-radio-picker-accounts.js")+(()=>"../../components/hs-footer/hs-footer.js"))();const a=e.defineComponent({__name:"index",setup:a=>(e.onLoad((e=>{var r;null==(r=o.method)||r.init(e)})),(a,u)=>{var t,s,l,n,m;return e.e({a:e.o((o=>e.unref(r.useModel).formData.value.status=o)),b:e.p({Enums:null==(s=null==(t=e.unref(r.useModel))?void 0:t.HouseWorkOrdersStatusItemEnum)?void 0:s.value,title:"工单状态",borderTop:!0,required:!0,valueModel:e.unref(r.useModel).formData.value.status}),c:e.o((o=>e.unref(r.useModel).formData.value.description=o)),d:e.p({borderTop:!0,title:"Completed"===e.unref(r.useModel).formData.value.status?"备注说明":"进度说明",required:!0,placeholder:"Completed"===e.unref(r.useModel).formData.value.status?"请详细描述情况,包括具体位置现象等":"请输入进度说明",valueModel:e.unref(r.useModel).formData.value.description}),e:e.o((o=>e.unref(r.useModel).formData.value.attachments=o)),f:e.p({borderTop:!0,title:"Completed"===e.unref(r.useModel).formData.value.status?"完工图片":"上传图片",required:"Completed"===e.unref(r.useModel).formData.value.status,count:6,valueModel:e.unref(r.useModel).formData.value.attachments}),g:"Completed"===e.unref(r.useModel).formData.value.status&&"MyHome"===e.unref(r.useModel).formData.value.location},"Completed"===e.unref(r.useModel).formData.value.status&&"MyHome"===e.unref(r.useModel).formData.value.location?e.e({h:e.o((o=>e.unref(r.useModel).formData.value.is_fee=o)),i:e.p({Enums:null==(n=null==(l=e.unref(r.useModel))?void 0:l.HouseWorkOrdersCostEnum)?void 0:n.value,valueModel:e.unref(r.useModel).formData.value.is_fee}),j:e.p({title:"是否产生费用",required:!0}),k:"1"===e.unref(r.useModel).formData.value.is_fee},"1"===e.unref(r.useModel).formData.value.is_fee?{l:e.o((o=>e.unref(r.useModel).formData.value.amount=o)),m:e.p({type:"number",placeholder:"请输入费用金额",textAlign:"right",suffix:"元",valueModel:e.unref(r.useModel).formData.value.amount}),n:e.p({title:"费用金额",required:!0,borderTop:!0}),o:e.o((o=>e.unref(r.useModel).formData.value.company_project_receipt_accounts_id=o)),p:e.p({title:"收款账号",required:!0,borderTop:!0,params:e.unref(r.useModel).formData.value,valueModel:e.unref(r.useModel).formData.value.company_project_receipt_accounts_id})}:{}):{},{q:e.o(null==(m=e.unref(o.method))?void 0:m.handleSubmit),r:e.p({btnParimaryName:"提交"})})})});wx.createPage(a); diff --git a/dist/build/mp-weixin/WORKORDER/update/index.json b/dist/build/mp-weixin/WORKORDER/update/index.json index a5b4daf..73d5183 100644 --- a/dist/build/mp-weixin/WORKORDER/update/index.json +++ b/dist/build/mp-weixin/WORKORDER/update/index.json @@ -4,6 +4,10 @@ "hs-radio-cell-picker": "../../components/hs-radio-cell-picker/hs-radio-cell-picker", "hs-cell-textarea": "../../components/hs-cell-textarea/hs-cell-textarea", "hs-upload": "../../components/hs-upload/hs-upload", + "hs-radio": "../../components/hs-radio/hs-radio", + "hs-cell": "../../components/hs-cell/hs-cell", + "hs-input": "../../components/hs-input/hs-input", + "hs-radio-picker-accounts": "../../components/hs-radio-picker-accounts/hs-radio-picker-accounts", "hs-footer": "../../components/hs-footer/hs-footer" } } \ No newline at end of file diff --git a/dist/build/mp-weixin/WORKORDER/update/index.wxml b/dist/build/mp-weixin/WORKORDER/update/index.wxml index 0ef26ab..6005205 100644 --- a/dist/build/mp-weixin/WORKORDER/update/index.wxml +++ b/dist/build/mp-weixin/WORKORDER/update/index.wxml @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/dist/build/mp-weixin/WORKORDER/update/method.js b/dist/build/mp-weixin/WORKORDER/update/method.js index f6fbcd0..f0a5c60 100644 --- a/dist/build/mp-weixin/WORKORDER/update/method.js +++ b/dist/build/mp-weixin/WORKORDER/update/method.js @@ -1 +1 @@ -"use strict";require("../../common/libraries/request.js");const e=require("../../common/store/useWeAppAuthStore.js");require("../../common/store/useWorkStore.js");const o=require("./model.js"),r=require("../../gen/Apis.js"),s=require("../../common/libraries/apiLoading.js"),t=require("../../common/libraries/naviHelper.js");e.useWeAppAuthStore();const i={init(e){o.useModel.formData.value={...e,house_work_orders_id:null==e?void 0:e.id}},handleSubmit(){if(console.log("handleSubmit",o.useModel.formData.value),!o.useModel.formData.value.status)return t.showToast("请先选择工单状态!");s.getApiLoading(r.Apis.WorkOrder.HouseWorkLogs.Store,o.useModel.formData.value).then((e=>{t.showToastBack("提交成功!",1,!0),console.log(e)}))}};exports.method=i; +"use strict";require("../../common/libraries/request.js"),require("../../common/store/useWatermarkStore.js");const e=require("../../common/store/useWeAppAuthStore.js");require("../../common/store/useWorkStore.js");const o=require("../../common/libraries/apiLoading.js"),s=require("../../common/libraries/naviHelper.js"),l=require("../../gen/Apis.js"),u=require("./model.js");e.useWeAppAuthStore();const a={init(e){u.useModel.HouseWorkOrdersStatusItemEnum.value={Processing:{text:"仍在处理",value:"Processing"},Completed:{text:"我已完工",value:"Completed"}},u.useModel.HouseWorkOrdersCostEnum.value={Processing2:{text:"是",value:"1"},Processing1:{text:"否",value:"0"}},u.useModel.formData.value={...e,house_work_orders_id:null==e?void 0:e.id}},handleSubmit(){var e,a,t,r,i,d,n,m,v,c,p,f,M,h,D,g;return console.log("handleSubmit",u.useModel.formData.value),u.useModel.formData.value.status?u.useModel.formData.value.description?"Completed"!==u.useModel.formData.value.status||(null==(e=u.useModel.formData.value.attachments)?void 0:e.length)?"Completed"!==(null==(r=null==(t=null==(a=u.useModel)?void 0:a.formData)?void 0:t.value)?void 0:r.status)||"MyHome"!==(null==(n=null==(d=null==(i=u.useModel)?void 0:i.formData)?void 0:d.value)?void 0:n.location)||(null==(c=null==(v=null==(m=u.useModel)?void 0:m.formData)?void 0:v.value)?void 0:c.is_fee)?"1"!==u.useModel.formData.value.is_fee||(null==(M=null==(f=null==(p=u.useModel)?void 0:p.formData)?void 0:f.value)?void 0:M.amount)?"1"!==u.useModel.formData.value.is_fee||(null==(g=null==(D=null==(h=u.useModel)?void 0:h.formData)?void 0:D.value)?void 0:g.company_project_receipt_accounts_id)?void o.getApiLoading(l.Apis.WorkOrder.HouseWorkLogs.Store,{...u.useModel.formData.value}).then((e=>{s.showToastBack("提交成功!",1,!0),console.log(e)})):s.showToast("请选择收款账号!"):s.showToast("请输入费用金额!"):s.showToast("请上选择是否产生费用!"):s.showToast("请上传完工图片!"):s.showToast("请输入备注说明/进度说明!"):s.showToast("请先选择状态!")}};exports.method=a; diff --git a/dist/build/mp-weixin/WORKORDER/update/model.js b/dist/build/mp-weixin/WORKORDER/update/model.js index 48cd70f..22265b6 100644 --- a/dist/build/mp-weixin/WORKORDER/update/model.js +++ b/dist/build/mp-weixin/WORKORDER/update/model.js @@ -1 +1 @@ -"use strict";const e={formData:require("../../common/vendor.js").ref({})};exports.useModel=e; +"use strict";const e=require("../../common/vendor.js"),r={formData:e.ref({}),HouseWorkOrdersStatusItemEnum:e.ref(),HouseWorkOrdersCostEnum:e.ref()};exports.useModel=r; diff --git a/dist/build/mp-weixin/app.js b/dist/build/mp-weixin/app.js index 8439235..5208654 100644 --- a/dist/build/mp-weixin/app.js +++ b/dist/build/mp-weixin/app.js @@ -1 +1 @@ -"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./common/vendor.js");require("./common/libraries/request.js");const o=require("./common/store/useWeAppAuthStore.js");require("./common/store/useWorkStore.js");const n=require("./common/libraries/updateManager.js");require("./gen/Apis.js"),require("./common/libraries/apiLoading.js"),Math;const r=e.defineComponent({__name:"App",setup(r){const s=o.useWeAppAuthStore();return e.onLaunch((async()=>{const o=e.getCurrentInstance();await s.login(o),console.log("App Launch"),n.CheckUpdate()})),e.onShow((async()=>{console.log("App Show")})),e.onHide((()=>{console.log("App Hide")})),()=>{}}});function s(){const o=e.createSSRApp(r);return o.use(e.uviewPlus),o.config.globalProperties.$onLaunched=new Promise((e=>{o.config.globalProperties.$isResolve=e})),o.use(e.createPinia()),{app:o,Pinia:e.Pinia}}s().app.mount("#app"),exports.createApp=s; +"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./common/vendor.js");require("./common/libraries/request.js"),require("./common/store/useWatermarkStore.js");const o=require("./common/store/useWeAppAuthStore.js");require("./common/store/useWorkStore.js");const r=require("./common/libraries/updateManager.js");require("./gen/Apis.js"),require("./common/libraries/apiLoading.js"),Math;const n=e.defineComponent({__name:"App",setup(n){const s=o.useWeAppAuthStore();return e.onLaunch((async()=>{const o=e.getCurrentInstance();await s.login(o),console.log("App Launch"),r.CheckUpdate()})),e.onShow((async()=>{console.log("App Show")})),e.onHide((()=>{console.log("App Hide")})),()=>{}}});function s(){const o=e.createSSRApp(n);return o.use(e.uviewPlus),o.config.globalProperties.$onLaunched=new Promise((e=>{o.config.globalProperties.$isResolve=e})),o.use(e.createPinia()),{app:o,Pinia:e.Pinia}}s().app.mount("#app"),exports.createApp=s; diff --git a/dist/build/mp-weixin/app.json b/dist/build/mp-weixin/app.json index 269274c..a8f31eb 100644 --- a/dist/build/mp-weixin/app.json +++ b/dist/build/mp-weixin/app.json @@ -4,27 +4,39 @@ "pages/loading", "pages/login", "pages/data_oard/index", + "pages/public/select_project/index", "pages/me/index", - "pages/public/asset_houses/index" + "pages/public/asset_houses/index", + "pages/transfer/index" ], "subPackages": [ { "root": "WORKORDER", "pages": [ "list/index", + "list_log/index", + "show_log/index", "update/index", "show/index", - "add/index" + "add/index", + "poster/index" ] }, { "root": "ME", "pages": [ + "work_order_home/index", "update/index", + "announcement/list/index", + "announcement/show/index", "feedback/index", "knowledge_qa/index", "knowledge_qa/show", - "push_show/index" + "push_show/index", + "instrument/list/index", + "instrument/add/index", + "instrument/log/index", + "instrument/log_show/index" ] }, { @@ -60,6 +72,17 @@ "collection_record/show/index", "send_bill/index" ] + }, + { + "root": "INDEX", + "pages": [ + "release_items/index", + "pass/index", + "watermark_camera/index", + "task/list/index", + "task/show/index", + "task/update/index" + ] } ], "window": { @@ -86,5 +109,14 @@ } ] }, + "permission": { + "scope.userLocation": { + "desc": "获取用户位置信息" + } + }, + "requiredPrivateInfos": [ + "getLocation", + "chooseLocation" + ], "usingComponents": {} } \ No newline at end of file diff --git a/dist/build/mp-weixin/common/components/cc-root-view/NetworkError.js b/dist/build/mp-weixin/common/components/cc-root-view/NetworkError.js index a3e7b70..d006ef3 100644 --- a/dist/build/mp-weixin/common/components/cc-root-view/NetworkError.js +++ b/dist/build/mp-weixin/common/components/cc-root-view/NetworkError.js @@ -1 +1 @@ -"use strict";const e=require("../../vendor.js"),r=require("../../store/useWeAppAuthStore.js");if(require("../../../gen/Apis.js"),require("../../libraries/request.js"),require("../../store/useWorkStore.js"),require("../../libraries/apiLoading.js"),!Array){e.resolveComponent("up-button")()}Math;const o=e.defineComponent({__name:"NetworkError",setup(o){r.useWeAppAuthStore();const t=e.ref();function n(){const r=getCurrentPages(),o=r[r.length-1];console.log("currentPage",o);const t=o.$page.fullPath;if(o.$page.options){const r=o.$page.options,n=`${t}?${Object.keys(r).map((e=>`${e}=${encodeURIComponent(r[e])}`)).join("&")}`;e.index.reLaunch({url:n}),console.log(n)}else e.index.reLaunch({url:t})}return e.onLoad((e=>{t.value=e})),(r,o)=>({a:e.o(n),b:e.p({type:"warning",text:"点击重试"})})}}),t=e._export_sfc(o,[["__scopeId","data-v-2cb842d7"]]);wx.createComponent(t); +"use strict";const e=require("../../vendor.js"),r=require("../../store/useWeAppAuthStore.js");if(require("../../../gen/Apis.js"),require("../../libraries/request.js"),require("../../store/useWatermarkStore.js"),require("../../store/useWorkStore.js"),require("../../libraries/apiLoading.js"),!Array){e.resolveComponent("up-button")()}Math;const o=e.defineComponent({__name:"NetworkError",setup(o){r.useWeAppAuthStore();const t=e.ref();function n(){const r=getCurrentPages(),o=r[r.length-1];console.log("currentPage",o);const t=o.$page.fullPath;if(o.$page.options){const r=o.$page.options,n=`${t}?${Object.keys(r).map((e=>`${e}=${encodeURIComponent(r[e])}`)).join("&")}`;e.index.reLaunch({url:n}),console.log(n)}else e.index.reLaunch({url:t})}return e.onLoad((e=>{t.value=e})),(r,o)=>({a:e.o(n),b:e.p({type:"warning",text:"点击重试"})})}}),t=e._export_sfc(o,[["__scopeId","data-v-2cb842d7"]]);wx.createComponent(t); diff --git a/dist/build/mp-weixin/common/components/cc-root-view/cc-root-view.js b/dist/build/mp-weixin/common/components/cc-root-view/cc-root-view.js index 20934d8..ba0d5c4 100644 --- a/dist/build/mp-weixin/common/components/cc-root-view/cc-root-view.js +++ b/dist/build/mp-weixin/common/components/cc-root-view/cc-root-view.js @@ -1 +1 @@ -"use strict";const e=require("../../vendor.js");require("../../libraries/request.js");const r=require("../../store/useWeAppAuthStore.js");require("../../store/useWorkStore.js"),require("../../libraries/userUserLogin.js"),require("../../../gen/Apis.js"),require("../../libraries/apiLoading.js"),Math||(o+n)();const o=()=>"./Loading.js",n=()=>"./NetworkError.js",s=e.defineComponent({__name:"cc-root-view",setup(o){const n=r.useWeAppAuthStore();return e.onLoad((async()=>{var r;console.log("cc-root-view onLoad 1",null==n?void 0:n.loading,null==n?void 0:n.hasError),await(null==(r=e.getCurrentInstance())?void 0:r.appContext.config.globalProperties.$onLaunched),console.log("cc-root-view onLoad 2")})),e.onShow((async()=>{var r;await(null==(r=e.getCurrentInstance())?void 0:r.appContext.config.globalProperties.$onLaunched)})),(r,o)=>e.e({a:e.unref(n).loading},(e.unref(n).loading||e.unref(n).hasError,{}),{b:e.unref(n).hasError})}});wx.createComponent(s); +"use strict";const e=require("../../vendor.js");require("../../libraries/request.js"),require("../../store/useWatermarkStore.js");const r=require("../../store/useWeAppAuthStore.js");require("../../store/useWorkStore.js"),require("../../libraries/userUserLogin.js"),require("../../../gen/Apis.js"),require("../../libraries/apiLoading.js"),Math||(o+n)();const o=()=>"./Loading.js",n=()=>"./NetworkError.js",s=e.defineComponent({__name:"cc-root-view",setup(o){const n=r.useWeAppAuthStore();return e.onLoad((async()=>{var r;console.log("cc-root-view onLoad 1",null==n?void 0:n.loading,null==n?void 0:n.hasError),await(null==(r=e.getCurrentInstance())?void 0:r.appContext.config.globalProperties.$onLaunched),console.log("cc-root-view onLoad 2")})),e.onShow((async()=>{var r;await(null==(r=e.getCurrentInstance())?void 0:r.appContext.config.globalProperties.$onLaunched)})),(r,o)=>e.e({a:e.unref(n).loading},(e.unref(n).loading||e.unref(n).hasError,{}),{b:e.unref(n).hasError})}});wx.createComponent(s); diff --git a/dist/build/mp-weixin/common/index.js b/dist/build/mp-weixin/common/index.js index 81ce457..c5111b4 100644 --- a/dist/build/mp-weixin/common/index.js +++ b/dist/build/mp-weixin/common/index.js @@ -1 +1 @@ -"use strict";require("./libraries/request.js"),require("./store/useWeAppAuthStore.js"),require("./store/useWorkStore.js"); +"use strict";require("./libraries/request.js"),require("./store/useWatermarkStore.js"),require("./store/useWeAppAuthStore.js"),require("./store/useWorkStore.js"); diff --git a/dist/build/mp-weixin/common/libraries/day.js b/dist/build/mp-weixin/common/libraries/day.js index 4f52b24..8e9185e 100644 --- a/dist/build/mp-weixin/common/libraries/day.js +++ b/dist/build/mp-weixin/common/libraries/day.js @@ -1 +1 @@ -"use strict";const t=require("../vendor.js");t.dayjs.locale("zh-cn"),t.dayjs.extend(t.relativeTime),exports.ShowLastTime=function(e){return e?t.dayjs(e).fromNow():"-"},exports.generateTimeSlots=function(e=null){const o=e?t.dayjs(e):t.dayjs(),r=(e?t.dayjs(e):t.dayjs()).valueOf(),s=[];let n=8;for(;n<18;){const t=Math.min(n+2,18),e=o.hour(n).minute(0).second(0),u=o.hour(t).minute(0).second(0),a=e.format("HH:mm"),l=u.format("HH:mm"),f=r>=e.valueOf()&&rr&&s.push({label:f?"两个小时内":`${a}-${l}`,str:a,end:l,isCurrent:f,date:o.format("YYYY-MM-DD"),startTimestamp:e.valueOf(),endTimestamp:u.valueOf()}),n=t}return console.log("slots",s),s},exports.getCurrentHour=function(){const t=new Date,e=t.getHours(),o=t.getMinutes();return console.log(e,o,"dayjs().hour()"),{currentHour:e,currentMinute:o}},exports.getTheFutureDay=function(e=1){return t.dayjs().add(e,"day").format("YYYY-MM-DD")},exports.getTimeStatus=function(e){const o=t.dayjs(),r=t.dayjs(e);if(r.isBefore(o)){const t=o.diff(r,"hour"),e=o.diff(r,"minute")%60;let s="上门时间已超时";return t>0&&(s+=`${t}个小时`),e>0&&(s+=`${e}分钟`),{label:s,status:"4",color:"#EA0000"}}{const t=r.diff(o,"hour"),e=r.diff(o,"minute")%60;let s,n;t>=24?(s="1",n="#24BC21"):t>=2?(s="2",n="#0082FA"):(s="3",n="#F97316");const u=Math.floor(t/24),a=t%24;let l="上门时间还剩:";return u>0&&(l+=`${u}天`),a>0&&(l+=`${a}个小时`),e>0&&(l+=`${e}分钟`),{label:l,status:s,color:n}}}; +"use strict";const t=require("../vendor.js");t.dayjs.locale("zh-cn"),t.dayjs.extend(t.relativeTime),exports.ShowLastTime=function(e){return e?t.dayjs(e).fromNow():"-"},exports.generateTimeSlots=function(e=null){const r=e?t.dayjs(e):t.dayjs(),o=(e?t.dayjs(e):t.dayjs()).valueOf(),s=[];let n=8;for(;n<18;){const t=Math.min(n+2,18),e=r.hour(n).minute(0).second(0),a=r.hour(t).minute(0).second(0),u=e.format("HH:mm"),f=a.format("HH:mm"),i=o>=e.valueOf()&&oo&&s.push({label:i?"两个小时内":`${u}-${f}`,str:u,end:f,isCurrent:i,date:r.format("YYYY-MM-DD"),startTimestamp:e.valueOf(),endTimestamp:a.valueOf()}),n=t}return console.log("slots",s),s},exports.getCurrentHour=function(){const t=new Date,e=t.getHours(),r=t.getMinutes();return console.log(e,r,"dayjs().hour()"),{currentHour:e,currentMinute:r}},exports.getDay=function(e){if(e){const r=t.dayjs().subtract(e,"day");return console.log(r.format("YYYY-MM-DD")),r.format("YYYY-MM-DD")}return t.dayjs().format("YYYY-MM-DD")},exports.getDayTime=function(e){if(e){let r=null==e?void 0:e.replace(/-/g,"/");return t.dayjs(r).format("YYYY-MM-DD HH:mm")}return t.dayjs().format("YYYY-MM-DD HH:mm")},exports.getTheFutureDay=function(e=1){return t.dayjs().add(e,"day").format("YYYY-MM-DD")},exports.getTime=function(){return t.dayjs().format("YYYY-MM-DD HH:mm:ss")},exports.getTimeStatus=function(e){const r=t.dayjs(),o=t.dayjs(e);if(o.isBefore(r)){const t=r.diff(o,"hour"),e=r.diff(o,"minute")%60;let s="已过期望处理时间:";return t>0&&(s+=`${t}个小时`),e>0&&(s+=`${e}分钟`),{label:s,status:"4",color:"#EA0000"}}{const t=o.diff(r,"hour"),e=o.diff(r,"minute")%60;let s,n;t>=24?(s="1",n="#24BC21"):t>=2?(s="2",n="#0082FA"):(s="3",n="#F97316");const a=Math.floor(t/24),u=t%24;let f="上门时间还剩:";return a>0&&(f+=`${a}天`),u>0&&(f+=`${u}个小时`),e>0&&(f+=`${e}分钟`),{label:f,status:s,color:n}}},exports.isDatePassed=function(e){return console.log(t.dayjs().isAfter(t.dayjs(e)),"dayjs().isAfter(dayjs(fixedDate))"),t.dayjs().isAfter(t.dayjs(e),"day")},exports.showCurrentTime=function(){return t.dayjs().format("HH:mm")},exports.showDay=function(e){return e?t.dayjs(e).format("YYYY-MM-DD"):"-"},exports.showWeekDay=function(){return{0:"星期日",1:"星期一",2:"星期二",3:"星期三",4:"星期四",5:"星期五",6:"星期六"}[t.dayjs().day()]},exports.specificTime=function(e){let r=null==e?void 0:e.replace(/-/g,"/");const o=t.dayjs(),s=t.dayjs(r);let n=Math.abs(s.diff(o,"hour",!0))<=2||s.isBefore(o);return console.log(n,"hoursDiff"),n}; diff --git a/dist/build/mp-weixin/common/libraries/map.js b/dist/build/mp-weixin/common/libraries/map.js new file mode 100644 index 0000000..928da6f --- /dev/null +++ b/dist/build/mp-weixin/common/libraries/map.js @@ -0,0 +1 @@ +"use strict";const e=require("../vendor.js");exports.getMapAddress=function(){return new Promise(((o,s)=>{e.index.getLocation({type:"wgs84",altitude:!0,isHighAccuracy:!0,success(s){console.log(s,"经纬度");const t=`https://api.tianditu.gov.cn/geocoder?postStr={'lon':${s.longitude},'lat':${s.latitude},'ver':2}&type=geocode&tk=4ce26ecef55ae1ec47910a72a098efc0`;e.index.request({url:t,method:"GET",success(e){var s,t;o({address:(null==(t=null==(s=null==e?void 0:e.data)?void 0:s.result)?void 0:t.formatted_address)||""}),console.log(e,"address")},fail(s){o({address:"拒绝定位"}),console.error("获取地址失败:",s),e.index.showModal({title:"提示",content:"请先允许定位!",success:function(o){o.confirm?(e.index.openSetting(),console.log("用户点击确定")):o.cancel&&console.log("用户点击取消")}})}})},fail(e){console.log("拒绝定位",e)}})}))}; diff --git a/dist/build/mp-weixin/common/libraries/naviHelper.js b/dist/build/mp-weixin/common/libraries/naviHelper.js index 2193188..d5596b5 100644 --- a/dist/build/mp-weixin/common/libraries/naviHelper.js +++ b/dist/build/mp-weixin/common/libraries/naviHelper.js @@ -1 +1 @@ -"use strict";const e=require("../vendor.js");exports.goto=function(o){e.index.navigateTo({url:o,fail:()=>e.index.switchTab({url:o})})},exports.showToast=function(o){e.index.showToast({title:o||"提交成功!",duration:1e3,icon:"none"})},exports.showToastBack=function(o,t=1,n=!0,i){e.index.showToast({title:o||"提交成功!",duration:1e3,icon:"none",success(){n?setTimeout((()=>{e.index.navigateBack({delta:t})}),1e3):setTimeout((()=>null==i?void 0:i()),1e3)}})}; +"use strict";const e=require("../vendor.js");exports.goto=function(o){e.index.navigateTo({url:o,fail:()=>e.index.switchTab({url:o})})},exports.showToast=function(o,t){e.index.showToast({title:o||"提交成功!",duration:1e3,icon:"none",success(){setTimeout((()=>null==t?void 0:t(!0)),1e3)}})},exports.showToastBack=function(o,t=1,i=!0,n){e.index.showToast({title:o||"提交成功!",duration:1e3,icon:"none",success(){i?setTimeout((()=>{e.index.navigateBack({delta:t})}),1e3):setTimeout((()=>null==n?void 0:n()),1e3)}})}; diff --git a/dist/build/mp-weixin/common/libraries/sendWxWork.js b/dist/build/mp-weixin/common/libraries/sendWxWork.js index eb5a049..9183556 100644 --- a/dist/build/mp-weixin/common/libraries/sendWxWork.js +++ b/dist/build/mp-weixin/common/libraries/sendWxWork.js @@ -1 +1 @@ -"use strict";const e=require("../vendor.js"),n=require("./naviHelper.js");exports.navigateToMiniProgram=function(n){e.index.showLoading({title:"加载中",mask:!0}),e.index.navigateToMiniProgram({appId:"wx31500e871924b903",path:(null==n?void 0:n.path)||"",extraData:(null==n?void 0:n.extraData)||{},envVersion:(null==n?void 0:n.envVersion)||"release",success(){e.index.hideLoading()},fail(){e.index.hideLoading()}})},exports.sendChatMessage=function(o){if(!(null==o?void 0:o.page))return n.showToast("请设置跳转页面路径!");e.index.showLoading({title:"加载中...",mask:!0}),e.index.qy.sendChatMessage({msgtype:(null==o?void 0:o.msgtype)||"miniprogram",enterChat:(null==o?void 0:o.enterChat)||!1,miniprogram:{appid:"wx31500e871924b903",title:(null==o?void 0:o.title)||"邀请你绑定房屋",imgUrl:(null==o?void 0:o.imgUrl)||"https://pay-prod-1369486729.cos.ap-guangzhou.myqcloud.com/uploads/cs-test/01K58GCT5DGWKBSYH0G7118XT4.jpg",page:null==o?void 0:o.page},success:function(){e.index.hideLoading(),n.showToast("发送成功!")},fail:function(o){console.log("sendChatMessage fail",o),e.index.hideLoading(),"qy__sendChatMessage:fail cancel"!==(null==o?void 0:o.errMsg)&&n.showToast((null==o?void 0:o.errMsg)||"当前操作,只能在企业微信上聊天工具栏操作")}})},exports.shareToExternalContact=function(o){if(!(null==o?void 0:o.page))return n.showToast("请设置跳转页面路径!");e.index.showLoading({title:"加载中...",mask:!0}),e.index.qy.shareToExternalContact({externalUserIds:(null==o?void 0:o.externalUserIds)||[],text:{content:(null==o?void 0:o.title)||"待缴费账单"},attachments:[{msgtype:(null==o?void 0:o.msgtype)||"miniprogram",miniprogram:{appid:"wx31500e871924b903",title:(null==o?void 0:o.title)||"待缴费账单",imgUrl:(null==o?void 0:o.imgUrl)||"https://pay-prod-1369486729.cos.ap-guangzhou.myqcloud.com/uploads/cs-test/01K58GCT5DGWKBSYH0G7118XT4.jpg",page:null==o?void 0:o.page}}],success:function(){e.index.hideLoading(),n.showToast("发送成功!")},fail:function(o){console.log("sendChatMessage fail",o),e.index.hideLoading(),"qy__sendChatMessage:fail cancel"!==(null==o?void 0:o.errMsg)&&n.showToast((null==o?void 0:o.errMsg)||"当前操作,只能在企业微信上聊天工具栏操作")}})},exports.shareToExternalMoments=function(o){console.log("shareToExternalMoments",o),e.index.qy.shareToExternalMoments({text:{content:(null==o?void 0:o.content)||""},attachments:null==o?void 0:o.attachments},(function(e){"shareToExternalMoments:ok"==e.err_msg&&n.showToast("发送成功!")}))}; +"use strict";const e=require("../vendor.js"),o=require("./naviHelper.js"),t=require("./apiLoading.js"),n=require("../../gen/Apis.js");exports.navigateToMiniProgram=function(o){e.index.showLoading({title:"加载中",mask:!0}),e.index.navigateToMiniProgram({appId:"wx31500e871924b903",path:(null==o?void 0:o.path)||"",extraData:(null==o?void 0:o.extraData)||{},envVersion:(null==o?void 0:o.envVersion)||"release",success(){e.index.hideLoading()},fail(){e.index.hideLoading()}})},exports.sendChatMessage=function(t){if(!(null==t?void 0:t.page))return o.showToast("请设置跳转页面路径!");e.index.showLoading({title:"加载中...",mask:!0}),e.index.qy.sendChatMessage({msgtype:(null==t?void 0:t.msgtype)||"miniprogram",enterChat:(null==t?void 0:t.enterChat)||!1,miniprogram:{appid:"wx31500e871924b903",title:(null==t?void 0:t.title)||"邀请你绑定房屋",imgUrl:(null==t?void 0:t.imgUrl)||"https://pay-prod-1369486729.cos.ap-guangzhou.myqcloud.com/uploads/cs-test/01K58GCT5DGWKBSYH0G7118XT4.jpg",page:null==t?void 0:t.page},success:function(){e.index.hideLoading(),o.showToast("发送成功!")},fail:function(t){console.log("sendChatMessage fail",t),e.index.hideLoading(),"qy__sendChatMessage:fail cancel"!==(null==t?void 0:t.errMsg)&&o.showToast((null==t?void 0:t.errMsg)||"当前操作,只能在企业微信上聊天工具栏操作")}})},exports.shareToExternalChatTask=function(s,a){e.index.qy.shareToExternalChat({text:{content:(null==s?void 0:s.content)||""},attachments:(null==s?void 0:s.attachments)||[],success:function(e){t.getApiLoading(n.Apis.Customer.CustomerMomentTasks.Store,a).then((e=>{o.showToast("发送成功!"),console.log(e)})),console.log("success",e)},fail(){console.log("fail")},complete(){console.log("complete")}})},exports.shareToExternalContact=function(t){if(!(null==t?void 0:t.page))return o.showToast("请设置跳转页面路径!");e.index.showLoading({title:"加载中...",mask:!0}),e.index.qy.shareToExternalContact({externalUserIds:(null==t?void 0:t.externalUserIds)||[],text:{content:(null==t?void 0:t.title)||"待缴费账单"},attachments:[{msgtype:(null==t?void 0:t.msgtype)||"miniprogram",miniprogram:{appid:"wx31500e871924b903",title:(null==t?void 0:t.title)||"待缴费账单",imgUrl:(null==t?void 0:t.imgUrl)||"https://pay-prod-1369486729.cos.ap-guangzhou.myqcloud.com/uploads/cs-test/01K58GCT5DGWKBSYH0G7118XT4.jpg",page:null==t?void 0:t.page}}],success:function(){e.index.hideLoading(),o.showToast("发送成功!")},fail:function(t){console.log("sendChatMessage fail",t),e.index.hideLoading(),"qy__sendChatMessage:fail cancel"!==(null==t?void 0:t.errMsg)&&o.showToast((null==t?void 0:t.errMsg)||"当前操作,只能在企业微信上聊天工具栏操作")}})},exports.shareToExternalContactTask=function(s,a){e.index.qy.shareToExternalContact({text:{content:(null==s?void 0:s.content)||""},attachments:(null==s?void 0:s.attachments)||[],success:function(e){console.log("shareToExternalContact",e),t.getApiLoading(n.Apis.Customer.CustomerMomentTasks.Store,a).then((e=>{o.showToast("发送成功!"),console.log(e)})),console.log("success",e)},fail(){console.log("fail")},complete(){console.log("complete")}})},exports.shareToExternalMoments=function(s,a){console.log("shareToExternalMoments",s,a),e.wx$1.qy.shareToExternalMoments({text:{content:(null==s?void 0:s.content)||""},attachments:null==s?void 0:s.attachments,success(e){"qy__shareToExternalMoments:ok"==e.errMsg&&t.getApiLoading(n.Apis.Customer.CustomerMomentTasks.Store,a).then((e=>{o.showToast("发送成功!"),console.log(e)})),console.log("分享回调结果success",e)}},(function(e){console.log("分享回调结果",e),"shareToExternalMoments:ok"==e.err_msg&&t.getApiLoading(n.Apis.Customer.CustomerMomentTasks.Store,a).then((e=>{o.showToast("发送成功!"),console.log(e)}))}))}; diff --git a/dist/build/mp-weixin/common/libraries/setTabBar.js b/dist/build/mp-weixin/common/libraries/setTabBar.js deleted file mode 100644 index 727786f..0000000 --- a/dist/build/mp-weixin/common/libraries/setTabBar.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";require("../vendor.js");const e=require("./updateMenu.js");exports.setTabBarData=function(t,s){const a=getCurrentPages(),r=a[a.length-1];if(r){const a=r.getTabBar?r.getTabBar():null;if(a){if(3===t)return"boss"===s&&a.setData({selected:3,list:e.Merchant}),"investor"===s&&a.setData({selected:3,list:e.Investor}),void("agent"===s&&a.setData({selected:3,list:e.Agent}));a.setData({selected:t})}else console.error("当前页面没有TabBar")}}; diff --git a/dist/build/mp-weixin/common/libraries/updateMenu.js b/dist/build/mp-weixin/common/libraries/updateMenu.js deleted file mode 100644 index 4258e35..0000000 --- a/dist/build/mp-weixin/common/libraries/updateMenu.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";exports.Agent=[{pagePath:"/pages/AGENT/index/index",text:"首页",iconPath:"/static/tabbar/home.png",selectedIconPath:"/static/tabbar/homeAct.png"},{pagePath:"/pages/AGENT/pay/index",text:"支付",iconPath:"/static/tabbar/pay.png",selectedIconPath:"/static/tabbar/payAct.png"},{pagePath:"/pages/AGENT/loans/index",text:"支出",iconPath:"/static/tabbar/expenses.png",selectedIconPath:"/static/tabbar/expensesAct.png"},{pagePath:"/pages/Me/index",text:"我的",iconPath:"/static/tabbar/me.png",selectedIconPath:"/static/tabbar/meAct.png"}],exports.Investor=[{pagePath:"/pages/INVESTOR/index/index",text:"首页",iconPath:"/static/tabbar/home.png",selectedIconPath:"/static/tabbar/homeAct.png"},{pagePath:"/pages/INVESTOR/loans/index",text:"分期",iconPath:"/static/tabbar/expenses.png",selectedIconPath:"/static/tabbar/expensesAct.png"},{pagePath:"/pages/INVESTOR/stages_det/index",text:"明细",iconPath:"/static/tabbar/pay.png",selectedIconPath:"/static/tabbar/payAct.png"},{pagePath:"/pages/Me/index",text:"我的",iconPath:"/static/tabbar/me.png",selectedIconPath:"/static/tabbar/meAct.png"}],exports.Merchant=[{pagePath:"/pages/MERCHANT/index/index",text:"首页",iconPath:"/static/tabbar/home.png",selectedIconPath:"/static/tabbar/homeAct.png"},{pagePath:"/pages/MERCHANT/pay/index",text:"支付",iconPath:"/static/tabbar/pay.png",selectedIconPath:"/static/tabbar/payAct.png"},{pagePath:"/pages/MERCHANT/loans/index",text:"支出",iconPath:"/static/tabbar/expenses.png",selectedIconPath:"/static/tabbar/expensesAct.png"},{pagePath:"/pages/Me/index",text:"我的",iconPath:"/static/tabbar/me.png",selectedIconPath:"/static/tabbar/meAct.png"}]; diff --git a/dist/build/mp-weixin/common/libraries/upload.js b/dist/build/mp-weixin/common/libraries/upload.js index 08653d0..b9b9ebe 100644 --- a/dist/build/mp-weixin/common/libraries/upload.js +++ b/dist/build/mp-weixin/common/libraries/upload.js @@ -1 +1 @@ -"use strict";const e=require("../vendor.js"),l=require("../../gen/Apis.js"),o=async e=>await l.Apis.Login.Auth.PreUpload(e);exports.avatarUpload=l=>new Promise(((i,s)=>{if(l.startsWith("wxfile://")){const n=l.match(/[^\/\\]+(?=\.[^\.]+$|$)/)[0],t=l;o({filename:n,alc:"public-read"}).then((l=>{if(null==l?void 0:l.success){e.index.getFileSystemManager().readFile({filePath:t,complete(e){console.log("complete",e)},success:function(o){var n,t;console.log(o,"fileRes1"),e.index.request({url:null==(n=null==l?void 0:l.data)?void 0:n.url,method:"PUT",header:{...null==(t=null==l?void 0:l.data)?void 0:t.headers,"x-amz-acl":"public-read"},data:null==o?void 0:o.data,success:function(o){var n,t;if(console.log(o,"resUpadte"),200!==o.statusCode)e.index.showToast({title:"上传失败",icon:"none"}),s();else{let e={url:null==(t=null==(n=null==l?void 0:l.data)?void 0:n.url)?void 0:t.split("?")[0],status:"done",type:"image/png",uid:Date.now()};i([e])}},fail:function(){e.index.showToast({title:"上传失败",icon:"none"}),s()}}),console.log(o,"fileRes")}})}}))}else e.index.downloadFile({url:l,success:async l=>{if(200===l.statusCode){const n=l.tempFilePath.match(/[^\/\\]+(?=\.[^\.]+$|$)/),t=l.tempFilePath,a=n[0];console.log(n[0]),o({filename:a,alc:"public-read"}).then((l=>{if(null==l?void 0:l.success){e.index.getFileSystemManager().readFile({filePath:t,complete(e){console.log("complete",e)},success:function(o){var n,t;console.log(o,"fileRes1"),e.index.request({url:null==(n=null==l?void 0:l.data)?void 0:n.url,method:"PUT",header:{...null==(t=null==l?void 0:l.data)?void 0:t.headers,"x-amz-acl":"public-read"},data:null==o?void 0:o.data,success:function(o){var n,t;if(console.log(o,"resUpadte"),200!==o.statusCode)e.index.showToast({title:"上传失败",icon:"none"}),s();else{let e={url:null==(t=null==(n=null==l?void 0:l.data)?void 0:n.url)?void 0:t.split("?")[0],status:"done",type:"image/png",uid:Date.now()};i([e])}},fail:function(){e.index.showToast({title:"上传失败",icon:"none"}),s()}}),console.log(o,"fileRes")}})}}))}else console.log(`文件下载失败,状态码: ${l.statusCode}`)},fail:e=>{}})})),exports.upload=(l=1,i=2,s=["image"])=>new Promise(((n,t)=>{let a=[];e.index.chooseMedia({count:l>9?9:l,mediaType:s,sizeType:["original","compressed"],success:async function(l){var s;console.log("filePath_i",l),null==(s=l.tempFiles)||s.map((s=>{console.log(s,"??kj");let d=s.tempFilePath.match(/[^\/\\]+(?=\.[^\.]+$|$)/);const u=s.tempFilePath,c=u.lastIndexOf("."),r=d[0];c>=-1&&u.substr(c+1);if(l.tempFiles[0].size>1048576*(i||2))return e.index.showToast({title:`${r}文件大小不能超过${i}M`,icon:"none"}),!1;o({filename:r,alc:"public-read"}).then((l=>{if(null==l?void 0:l.success){e.index.getFileSystemManager().readFile({filePath:u,complete(e){console.log("complete",e)},success:function(o){var i,d;console.log(o,"fileRes1"),e.index.request({url:null==(i=null==l?void 0:l.data)?void 0:i.url,method:"PUT",header:{...null==(d=null==l?void 0:l.data)?void 0:d.headers,"x-amz-acl":"public-read"},data:null==o?void 0:o.data,success:function(o){var i,d;if(console.log(o,"resUpadte"),200!==o.statusCode)e.index.showToast({title:"上传失败",icon:"none"}),t();else{const e=Date.now();let o={url:null==(d=null==(i=null==l?void 0:l.data)?void 0:i.url)?void 0:d.split("?")[0],status:"done",type:`${null==s?void 0:s.fileType}/${u.split(".")[1]}`,uid:e,size:null==s?void 0:s.size};null==a||a.push(o),n(a)}},fail:function(){e.index.showToast({title:"上传失败",icon:"none"}),t()}}),console.log(o,"fileRes")}})}}))}))}})})); +"use strict";const e=require("../vendor.js"),l=require("../../gen/Apis.js"),o=async e=>await l.Apis.Login.Auth.PreUpload(e);exports.avatarUpload=l=>new Promise(((n,i)=>{if(l.startsWith("wxfile://")){const t=l.match(/[^\/\\]+(?=\.[^\.]+$|$)/)[0],s=l;o({filename:t,alc:"public-read"}).then((l=>{if(null==l?void 0:l.success){e.index.getFileSystemManager().readFile({filePath:s,complete(e){console.log("complete",e)},success:function(o){var t,s;console.log(o,"fileRes1"),e.index.request({url:null==(t=null==l?void 0:l.data)?void 0:t.url,method:"PUT",header:{...null==(s=null==l?void 0:l.data)?void 0:s.headers,"x-amz-acl":"public-read"},data:null==o?void 0:o.data,success:function(o){var t,s;if(console.log(o,"resUpadte"),200!==o.statusCode)e.index.showToast({title:"上传失败",icon:"none"}),i();else{let e={url:null==(s=null==(t=null==l?void 0:l.data)?void 0:t.url)?void 0:s.split("?")[0],status:"done",type:"image/png",uid:Date.now()};n([e])}},fail:function(){e.index.showToast({title:"上传失败",icon:"none"}),i()}}),console.log(o,"fileRes")}})}}))}else e.index.downloadFile({url:l,success:async l=>{if(200===l.statusCode){const t=l.tempFilePath.match(/[^\/\\]+(?=\.[^\.]+$|$)/),s=l.tempFilePath,a=t[0];console.log(t[0]),o({filename:a,alc:"public-read"}).then((l=>{if(null==l?void 0:l.success){e.index.getFileSystemManager().readFile({filePath:s,complete(e){console.log("complete",e)},success:function(o){var t,s;console.log(o,"fileRes1"),e.index.request({url:null==(t=null==l?void 0:l.data)?void 0:t.url,method:"PUT",header:{...null==(s=null==l?void 0:l.data)?void 0:s.headers,"x-amz-acl":"public-read"},data:null==o?void 0:o.data,success:function(o){var t,s;if(console.log(o,"resUpadte"),200!==o.statusCode)e.index.showToast({title:"上传失败",icon:"none"}),i();else{let e={url:null==(s=null==(t=null==l?void 0:l.data)?void 0:t.url)?void 0:s.split("?")[0],status:"done",type:"image/png",uid:Date.now()};n([e])}},fail:function(){e.index.showToast({title:"上传失败",icon:"none"}),i()}}),console.log(o,"fileRes")}})}}))}else console.log(`文件下载失败,状态码: ${l.statusCode}`)},fail:e=>{}})})),exports.upload=(l=1,n=2,i=["image"])=>new Promise(((t,s)=>{let a=[];e.index.chooseMedia({count:l>9?9:l,mediaType:i,sizeType:["original","compressed"],success:async function(l){var i;console.log("filePath_i",l),null==(i=l.tempFiles)||i.map((i=>{console.log(i,"??kj");let d=i.tempFilePath.match(/[^\/\\]+(?=\.[^\.]+$|$)/);const u=i.tempFilePath,c=u.lastIndexOf("."),r=d[0];c>=-1&&u.substr(c+1);if(l.tempFiles[0].size>1048576*(n||2))return e.index.showToast({title:`${r}文件大小不能超过${n}M`,icon:"none"}),!1;o({filename:r,alc:"public-read"}).then((l=>{if(null==l?void 0:l.success){e.index.getFileSystemManager().readFile({filePath:u,complete(e){console.log("complete",e)},success:function(o){var n,d;console.log(o,"fileRes1"),e.index.request({url:null==(n=null==l?void 0:l.data)?void 0:n.url,method:"PUT",header:{...null==(d=null==l?void 0:l.data)?void 0:d.headers,"x-amz-acl":"public-read"},data:null==o?void 0:o.data,success:function(o){var n,d;if(console.log(o,"resUpadte"),200!==o.statusCode)e.index.showToast({title:"上传失败",icon:"none"}),s();else{const e=Date.now();let o={url:null==(d=null==(n=null==l?void 0:l.data)?void 0:n.url)?void 0:d.split("?")[0],status:"done",type:`${null==i?void 0:i.fileType}/${u.split(".")[1]}`,uid:e,size:null==i?void 0:i.size};null==a||a.push(o),t(a)}},fail:function(){e.index.showToast({title:"上传失败",icon:"none"}),s()}}),console.log(o,"fileRes")}})}}))}))}})})),exports.uploadImgWatermark=l=>new Promise(((n,i)=>{const t=Date.now(),s=null==l?void 0:l.path.lastIndexOf("."),a=s>=-1?null==l?void 0:l.path.substr(s+1):"";console.log(s,a,"fileExt"),o({filename:`${(null==l?void 0:l.name)||""}_${t}.${a}`,alc:"public-read"}).then((o=>{if(null==o?void 0:o.success){e.index.getFileSystemManager().readFile({filePath:(null==l?void 0:l.path)||"",success:function(s){var a,d;e.index.request({url:null==(a=null==o?void 0:o.data)?void 0:a.url,method:"PUT",header:{...null==(d=null==o?void 0:o.data)?void 0:d.headers,"x-amz-acl":"public-read"},data:null==s?void 0:s.data,success:function(s){200!==s.statusCode?i(new Error(`上传失败: ${s.statusCode}`)):e.index.getImageInfo({src:null==l?void 0:l.path,success:e=>{var i,s;console.log(e,"imgInfo");let a={url:null==(s=null==(i=null==o?void 0:o.data)?void 0:i.url)?void 0:s.split("?")[0],status:"done",type:null==e?void 0:e.type,uid:t,size:"",name:`${null==l?void 0:l.name}-${t}`};n(a)}})},fail:function(){i(new Error("网络请求失败"))}})},fail:function(){i(new Error("读取文件失败"))}})}else i(new Error("获取上传链接失败"))})).catch((e=>{i(e)}))})); diff --git a/dist/build/mp-weixin/common/libraries/userUserLogin.js b/dist/build/mp-weixin/common/libraries/userUserLogin.js index 47dd69d..dea4d9d 100644 --- a/dist/build/mp-weixin/common/libraries/userUserLogin.js +++ b/dist/build/mp-weixin/common/libraries/userUserLogin.js @@ -1 +1 @@ -"use strict";const e=require("../vendor.js");require("./request.js");const o=require("../store/useWeAppAuthStore.js");require("../store/useWorkStore.js");const n=o.useWeAppAuthStore(),r={onBindPhone(){var o;return console.log("auth?.userInfo:",null==n?void 0:n.data),!!(null==(o=null==n?void 0:n.data)?void 0:o.user)||(e.index.showModal({title:"登录",content:"请先登录体验更多功能!",success:function(o){o.confirm?(e.index.navigateTo({url:"/pages/login"}),console.log("用户点击确定")):o.cancel&&(e.index.exitMiniProgram(),console.log("用户点击取消"))}}),!1)},getLoginStatus(){var e;return!!(null==(e=null==n?void 0:n.data)?void 0:e.user)},toPageLogin(){var o;if(!(null==(o=null==n?void 0:n.data)?void 0:o.user))return e.index.navigateTo({url:"/pages/login"}),!0}};exports.getUser=r; +"use strict";const e=require("../vendor.js");require("./request.js"),require("../store/useWatermarkStore.js");const o=require("../store/useWeAppAuthStore.js");require("../store/useWorkStore.js");const r=o.useWeAppAuthStore(),n={onBindPhone(){var o;return console.log("auth?.userInfo:",null==r?void 0:r.data),!!(null==(o=null==r?void 0:r.data)?void 0:o.user)||(e.index.showModal({title:"登录",content:"请先登录体验更多功能!",success:function(o){o.confirm?(e.index.navigateTo({url:"/pages/login"}),console.log("用户点击确定")):o.cancel&&(e.index.exitMiniProgram(),console.log("用户点击取消"))}}),!1)},getLoginStatus(){var e;return!!(null==(e=null==r?void 0:r.data)?void 0:e.user)},toPageLogin(){var o;if(!(null==(o=null==r?void 0:r.data)?void 0:o.user))return e.index.navigateTo({url:"/pages/login"}),!0}};exports.getUser=n; diff --git a/dist/build/mp-weixin/common/store/useWatermarkStore.js b/dist/build/mp-weixin/common/store/useWatermarkStore.js new file mode 100644 index 0000000..d2431cd --- /dev/null +++ b/dist/build/mp-weixin/common/store/useWatermarkStore.js @@ -0,0 +1 @@ +"use strict";const e=require("../vendor.js"),r=e.defineStore("watermark_store",(()=>({watermarkInfo:e.ref([])})));exports.useWatermarkStore=r; diff --git a/dist/build/mp-weixin/common/store/useWeAppAuthStore.js b/dist/build/mp-weixin/common/store/useWeAppAuthStore.js index d23d7c4..3cac779 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"),n=require("../../gen/Apis.js"),o=require("../libraries/apiLoading.js"),i="wx04d2d27ca198367b",l=e.defineStore("we_app_auth",(()=>{const l=e.ref(!0),a=e.ref(!1),t=e.ref({user:{id:0,name:"",phone:""},work_info:{session_key:"",openid:""},environment:""});const d=(o,i)=>{n.Apis.Login.Auth.WorkLogin({code:i,app_id:"ww96c806131a95c739"}).then((n=>{var i,a,d,u;console.log("企业微信登录",null==n?void 0:n.data),t.value.user=null==(i=n.data)?void 0:i.user,t.value.work_info=null==(a=n.data)?void 0:a.work_info,l.value=!1,e.index.setStorageSync("NCHL_PROD_ACCESS_TOKEN_CUSTOMER",null==(u=null==(d=null==n?void 0:n.data)?void 0:d.token)?void 0:u.token),null==o||o.appContext.config.globalProperties.$isResolve()})).catch((()=>{l.value=!1,a.value=!0}))},u=(o,d)=>{n.Apis.Login.Auth.Login({code:d,app_id:i}).then((n=>{var i,a,d;console.log("登录",null==n?void 0:n.data),t.value.user=null==(i=n.data)?void 0:i.user,l.value=!1,e.index.setStorageSync("NCHL_PROD_ACCESS_TOKEN_CUSTOMER",null==(d=null==(a=null==n?void 0:n.data)?void 0:a.token)?void 0:d.token),null==o||o.appContext.config.globalProperties.$isResolve()})).catch((()=>{l.value=!1,a.value=!0}))};function s(e){o.getApiLoading(n.Apis.Login.Auth.Me,{}).then((n=>(t.value.user=n.data.user,console.log("me",n.data),l.value=!1,a.value=!1,e())))}return{loading:l,hasError:a,data:t,login:function(n){const o=e.index.getSystemInfoSync();t.value.environment=null==o?void 0:o.environment,console.log(null==o?void 0:o.environment,"res?.environment"),"wxwork"===(null==o?void 0:o.environment)?e.index.qy.login({success:function(e){console.log(e),d(n,e.code)}}):e.index.login({provider:"weixin",success:function(e){console.log(e),u(n,e.code)}})},me:s,handleUserLogin:async l=>{o.getApiLoading(n.Apis.Login.Auth.BindPhoneNumber,{app_id:i,...l}).then((n=>{s((()=>{e.index.navigateBack({delta:1})}))}))},handleUserLoginWxwork:async l=>{var a,d;o.getApiLoading(n.Apis.Login.Auth.BindWork,{app_id:i,session_key:null==(d=null==(a=null==t?void 0:t.value)?void 0:a.work_info)?void 0:d.session_key,iv:null==l?void 0:l.iv,encrypted_data:null==l?void 0:l.encryptedData}).then((n=>{s((()=>{e.index.navigateBack({delta:1})}))}))}}}));exports.useWeAppAuthStore=l; +"use strict";const e=require("../vendor.js"),n=require("../../gen/Apis.js"),o=require("../libraries/apiLoading.js"),i="wx04d2d27ca198367b",l=e.defineStore("we_app_auth",(()=>{const l=e.ref(!1),a=e.ref(!1),t=e.ref({user:{id:0,name:"",phone:""},work_info:{session_key:"",openid:""},environment:""});const d=(o,i)=>{n.Apis.Login.Auth.WorkLogin({code:i,app_id:"ww96c806131a95c739"}).then((n=>{var i,a,d,u;console.log("企业微信登录",null==n?void 0:n.data),t.value.user=null==(i=n.data)?void 0:i.user,t.value.work_info=null==(a=n.data)?void 0:a.work_info,l.value=!1,e.index.setStorageSync("NCHL_PROD_ACCESS_TOKEN_CUSTOMER",null==(u=null==(d=null==n?void 0:n.data)?void 0:d.token)?void 0:u.token),null==o||o.appContext.config.globalProperties.$isResolve()})).catch((()=>{l.value=!1,a.value=!0}))},u=(o,d)=>{n.Apis.Login.Auth.Login({code:d,app_id:i}).then((n=>{var i,a,d;console.log("登录",null==n?void 0:n.data),t.value.user=null==(i=n.data)?void 0:i.user,l.value=!1,e.index.setStorageSync("NCHL_PROD_ACCESS_TOKEN_CUSTOMER",null==(d=null==(a=null==n?void 0:n.data)?void 0:a.token)?void 0:d.token),null==o||o.appContext.config.globalProperties.$isResolve()})).catch((()=>{l.value=!1,a.value=!0}))};function s(e){o.getApiLoading(n.Apis.Login.Auth.Me,{}).then((n=>(t.value.user=n.data.user,console.log("me",n.data),l.value=!1,a.value=!1,e())))}return{loading:l,hasError:a,data:t,login:function(n){const o=e.index.getSystemInfoSync();t.value.environment=null==o?void 0:o.environment,console.log(null==o?void 0:o.environment,"res?.environment"),"wxwork"===(null==o?void 0:o.environment)?e.index.qy.login({success:function(e){console.log(e),d(n,e.code)}}):e.index.login({provider:"weixin",success:function(e){console.log(e),u(n,e.code)}})},me:s,handleUserLogin:async l=>{o.getApiLoading(n.Apis.Login.Auth.BindPhoneNumber,{app_id:i,...l}).then((n=>{s((()=>{e.index.navigateBack({delta:1})}))}))},handleUserLoginWxwork:async l=>{var a,d;o.getApiLoading(n.Apis.Login.Auth.BindWork,{app_id:i,session_key:null==(d=null==(a=null==t?void 0:t.value)?void 0:a.work_info)?void 0:d.session_key,iv:null==l?void 0:l.iv,encrypted_data:null==l?void 0:l.encryptedData}).then((n=>{s((()=>{e.index.navigateBack({delta:1})}))}))}}}));exports.useWeAppAuthStore=l; diff --git a/dist/build/mp-weixin/common/store/useWorkStore.js b/dist/build/mp-weixin/common/store/useWorkStore.js index 28a9fbd..ffd46f5 100644 --- a/dist/build/mp-weixin/common/store/useWorkStore.js +++ b/dist/build/mp-weixin/common/store/useWorkStore.js @@ -1 +1 @@ -"use strict";const e=require("../vendor.js"),o=e.defineStore("goods_store",(()=>({selectWorkHouse:e.ref({}),selectedHouse:e.ref(0)})));exports.useWorkStore=o; +"use strict";const e=require("../vendor.js"),r=e.defineStore("goods_store",(()=>({selectWorkHouse:e.ref({}),selectedHouse:e.ref(0),selectWorkProject:e.ref({})})));exports.useWorkStore=r; diff --git a/dist/build/mp-weixin/common/vendor.js b/dist/build/mp-weixin/common/vendor.js index 167aea6..cbef582 100644 --- a/dist/build/mp-weixin/common/vendor.js +++ b/dist/build/mp-weixin/common/vendor.js @@ -1,7 +1,7 @@ -"use strict";function e(e,t){const n=Object.create(null),o=e.split(",");for(let r=0;r!!n[e.toLowerCase()]:e=>!!n[e]}function t(e){if(v(e)){const n={};for(let o=0;o{if(e){const n=e.split(o);n.length>1&&(t[n[0].trim()]=n[1].trim())}})),t}function s(e){let t="";if(x(e))t=e;else if(v(e))for(let n=0;nt&&t.__v_isRef?a(e,t.value):w(t)?{[`Map(${t.size})`]:[...t.entries()].reduce(((e,[t,n])=>(e[`${t} =>`]=n,e)),{})}:S(t)?{[`Set(${t.size})`]:[...t.values()]}:!T(t)||v(t)||C(t)?t:String(t),c={},l=[],u=()=>{},f=()=>!1,p=/^on[^a-z]/,d=e=>p.test(e),h=e=>e.startsWith("onUpdate:"),g=Object.assign,m=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},y=Object.prototype.hasOwnProperty,b=(e,t)=>y.call(e,t),v=Array.isArray,w=e=>"[object Map]"===I(e),S=e=>"[object Set]"===I(e),A=e=>"function"==typeof e,x=e=>"string"==typeof e,k=e=>"symbol"==typeof e,T=e=>null!==e&&"object"==typeof e,E=e=>T(e)&&A(e.then)&&A(e.catch),P=Object.prototype.toString,I=e=>P.call(e),C=e=>"[object Object]"===I(e),_=e=>x(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,O=e(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),B=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},j=/-(\w)/g,L=B((e=>e.replace(j,((e,t)=>t?t.toUpperCase():"")))),N=/\B([A-Z])/g,D=B((e=>e.replace(N,"-$1").toLowerCase())),M=B((e=>e.charAt(0).toUpperCase()+e.slice(1))),F=B((e=>e?`on${M(e)}`:"")),U=(e,t)=>!Object.is(e,t),R=(e,t)=>{for(let n=0;n{const t=parseFloat(e);return isNaN(t)?e:t},q="onShow",z="onHide",H="onLaunch",W="onError",$="onThemeChange",V="onPageNotFound",K="onUnhandledRejection",J="onLoad",Y="onReady",G="onUnload",X="onInit",Z="onSaveExitState",ee="onResize",te="onBackPress",ne="onPageScroll",oe="onTabItemTap",re="onReachBottom",ie="onPullDownRefresh",se="onShareTimeline",ae="onAddToFavorites",ce="onShareAppMessage",le="onNavigationBarButtonTap",ue="onNavigationBarSearchInputClicked",fe="onNavigationBarSearchInputChanged",pe="onNavigationBarSearchInputConfirmed",de="onNavigationBarSearchInputFocusChanged",he=/:/g;function ge(e,t=null){let n;return(...o)=>(e&&(n=e.apply(t,o),e=null),n)}function me(e,t){if(!x(t))return;const n=(t=t.replace(/\[(\d+)\]/g,".$1")).split(".");let o=n[0];return e||(e={}),1===n.length?e[o]:me(e[o],n.slice(1).join("."))}function ye(e){let t={};return C(e)&&Object.keys(e).sort().forEach((n=>{const o=n;t[o]=e[o]})),Object.keys(t)?t:e}const be=encodeURIComponent;function ve(e,t=be){const n=e?Object.keys(e).map((n=>{let o=e[n];return void 0===typeof o||null===o?o="":C(o)&&(o=JSON.stringify(o)),t(n)+"="+t(o)})).filter((e=>e.length>0)).join("&"):null;return n?`?${n}`:""}const we=[X,J,q,z,G,te,ne,oe,re,ie,se,ce,ae,Z,le,ue,fe,pe,de];const Se=[q,z,H,W,$,V,K,X,J,Y,G,ee,te,ne,oe,re,ie,se,ae,ce,Z,le,ue,fe,pe,de],Ae=(()=>({onPageScroll:1,onShareAppMessage:2,onShareTimeline:4}))();function xe(e,t,n=!0){return!(n&&!A(t))&&(Se.indexOf(e)>-1||0===e.indexOf("on"))}let ke;const Te=[];const Ee=ge(((e,t)=>{if(A(e._component.onError))return t(e)})),Pe=function(){};Pe.prototype={on:function(e,t,n){var o=this.e||(this.e={});return(o[e]||(o[e]=[])).push({fn:t,ctx:n}),this},once:function(e,t,n){var o=this;function r(){o.off(e,r),t.apply(n,arguments)}return r._=t,this.on(e,r,n)},emit:function(e){for(var t=[].slice.call(arguments,1),n=((this.e||(this.e={}))[e]||[]).slice(),o=0,r=n.length;oNe.call(e,t),Me=new class{constructor(){this._caches=Object.create(null)}interpolate(e,t,n=Ce){if(!t)return[e];let o=this._caches[e];return o||(o=function(e,[t,n]){const o=[];let r=0,i="";for(;r-1?Be:e.indexOf("-hant")>-1?je:(n=e,["-tw","-hk","-mo","-cht"].find((e=>-1!==n.indexOf(e)))?je:Be);var n;let o=[Le,"fr","es"];t&&Object.keys(t).length>0&&(o=Object.keys(t));const r=function(e,t){return t.find((t=>0===e.indexOf(t)))}(e,o);return r||void 0}class Ue{constructor({locale:e,fallbackLocale:t,messages:n,watcher:o,formater:r}){this.locale=Le,this.fallbackLocale=Le,this.message={},this.messages={},this.watchers=[],t&&(this.fallbackLocale=t),this.formater=r||Me,this.messages=n||{},this.setLocale(e||Le),o&&this.watchLocale(o)}setLocale(e){const t=this.locale;this.locale=Fe(e,this.messages)||this.fallbackLocale,this.messages[this.locale]||(this.messages[this.locale]={}),this.message=this.messages[this.locale],t!==this.locale&&this.watchers.forEach((e=>{e(this.locale,t)}))}getLocale(){return this.locale}watchLocale(e){const t=this.watchers.push(e)-1;return()=>{this.watchers.splice(t,1)}}add(e,t,n=!0){const o=this.messages[e];o?n?Object.assign(o,t):Object.keys(t).forEach((e=>{De(o,e)||(o[e]=t[e])})):this.messages[e]=t}f(e,t,n){return this.formater.interpolate(e,t,n).join("")}t(e,t,n){let o=this.message;return"string"==typeof t?(t=Fe(t,this.messages))&&(o=this.messages[t]):n=t,De(o,e)?this.formater.interpolate(o[e],n).join(""):(console.warn(`Cannot translate the value of keypath ${e}. Use the value of keypath as default.`),e)}}function Re(e){return function(){try{return e.apply(e,arguments)}catch(Gu){console.error(Gu)}}}let Qe=1;const qe={};function ze(e,t,n){if("number"==typeof e){const o=qe[e];if(o)return o.keepAlive||delete qe[e],o.callback(t,n)}return t}const He="success",We="fail",$e="complete";function Ve(e,t={},{beforeAll:n,beforeSuccess:o}={}){C(t)||(t={});const{success:r,fail:i,complete:s}=function(e){const t={};for(const n in e){const o=e[n];A(o)&&(t[n]=Re(o),delete e[n])}return t}(t),a=A(r),c=A(i),l=A(s),u=Qe++;return function(e,t,n,o=!1){qe[e]={name:t,keepAlive:o,callback:n}}(u,e,(u=>{(u=u||{}).errMsg=function(e,t){return e&&-1!==e.indexOf(":fail")?t+e.substring(e.indexOf(":fail")):t+":ok"}(u.errMsg,e),A(n)&&n(u),u.errMsg===e+":ok"?(A(o)&&o(u,t),a&&r(u)):c&&i(u),l&&s(u)})),u}const Ke="success",Je="fail",Ye="complete",Ge={},Xe={};function Ze(e,t){return function(n){return e(n,t)||n}}function et(e,t,n){let o=!1;for(let r=0;re(t),catch(){}}}function tt(e,t={}){return[Ke,Je,Ye].forEach((n=>{const o=e[n];if(!v(o))return;const r=t[n];t[n]=function(e){et(o,e,t).then((e=>A(r)&&r(e)||e))}})),t}function nt(e,t){const n=[];v(Ge.returnValue)&&n.push(...Ge.returnValue);const o=Xe[e];return o&&v(o.returnValue)&&n.push(...o.returnValue),n.forEach((e=>{t=e(t)||t})),t}function ot(e){const t=Object.create(null);Object.keys(Ge).forEach((e=>{"returnValue"!==e&&(t[e]=Ge[e].slice())}));const n=Xe[e];return n&&Object.keys(n).forEach((e=>{"returnValue"!==e&&(t[e]=(t[e]||[]).concat(n[e]))})),t}function rt(e,t,n,o){const r=ot(e);if(r&&Object.keys(r).length){if(v(r.invoke)){return et(r.invoke,n).then((n=>t(tt(ot(e),n),...o)))}return t(tt(r,n),...o)}return t(n,...o)}function it(e,t){return(n={},...o)=>function(e){return!(!C(e)||![He,We,$e].find((t=>A(e[t]))))}(n)?nt(e,rt(e,t,n,o)):nt(e,new Promise(((r,i)=>{rt(e,t,g(n,{success:r,fail:i}),o)})))}function st(e,t,n,o){return ze(e,g({errMsg:t+":fail"+(n?" "+n:"")},o))}function at(e,t,n,o){if(o&&o.beforeInvoke){const e=o.beforeInvoke(t);if(x(e))return e}const r=function(e,t){const n=e[0];if(!t||!C(t.formatArgs)&&C(n))return;const o=t.formatArgs,r=Object.keys(o);for(let i=0;i{const r=Ve(e,n,o),i=at(0,[n],0,o);return i?st(r,e,i):t(n,{resolve:t=>function(e,t,n){return ze(e,g(n||{},{errMsg:t+":ok"}))}(r,e,t),reject:(t,n)=>st(r,e,function(e){return!e||x(e)?e:e.stack?(console.error(e.message+"\n"+e.stack),e.message):e}(t),n)})}}function lt(e,t,n,o){return function(e,t,n,o){return(...e)=>{const n=at(0,e,0,o);if(n)throw new Error(n);return t.apply(null,e)}}(0,t,0,o)}let ut=!1,ft=0,pt=0;function dt(){const{platform:e,pixelRatio:t,windowWidth:n}=wx.getSystemInfoSync();ft=n,pt=t,ut="ios"===e}const ht=lt(0,((e,t)=>{if(0===ft&&dt(),0===(e=Number(e)))return 0;let n=e/750*(t||ft);return n<0&&(n=-n),n=Math.floor(n+1e-4),0===n&&(n=1!==pt&&ut?.5:1),e<0?-n:n}));function gt(e,t){Object.keys(t).forEach((n=>{A(t[n])&&(e[n]=function(e,t){const n=t?e?e.concat(t):v(t)?t:[t]:e;return n?function(e){const t=[];for(let n=0;n{const o=e[n],r=t[n];v(o)&&A(r)&&m(o,r)}))}const yt=lt(0,((e,t)=>{x(e)&&C(t)?gt(Xe[e]||(Xe[e]={}),t):C(e)&>(Ge,e)})),bt=lt(0,((e,t)=>{x(e)?C(t)?mt(Xe[e],t):delete Xe[e]:C(e)&&mt(Ge,e)})),vt=new Ie,wt=lt(0,((e,t)=>(vt.on(e,t),()=>vt.off(e,t)))),St=lt(0,((e,t)=>(vt.once(e,t),()=>vt.off(e,t)))),At=lt(0,((e,t)=>{e?(v(e)||(e=[e]),e.forEach((e=>vt.off(e,t)))):vt.e={}})),xt=lt(0,((e,...t)=>{vt.emit(e,...t)}));let kt,Tt,Et;function Pt(e){try{return JSON.parse(e)}catch(Gu){}return e}const It=[];function Ct(e,t){It.forEach((n=>{n(e,t)})),It.length=0}const _t=it(Ot="getPushClientId",function(e,t,n,o){return ct(e,t,0,o)}(Ot,((e,{resolve:t,reject:n})=>{Promise.resolve().then((()=>{void 0===Et&&(Et=!1,kt="",Tt="uniPush is not enabled"),It.push(((e,o)=>{e?t({cid:e}):n(o)})),void 0!==kt&&Ct(kt,Tt)}))}),0,Bt));var Ot,Bt;const jt=[],Lt=/^\$|getLocale|setLocale|sendNativeEvent|restoreGlobal|requireGlobal|getCurrentSubNVue|getMenuButtonBoundingClientRect|^report|interceptors|Interceptor$|getSubNVueById|requireNativePlugin|upx2px|hideKeyboard|canIUse|^create|Sync$|Manager$|base64ToArrayBuffer|arrayBufferToBase64|getDeviceInfo|getAppBaseInfo|getWindowInfo|getSystemSetting|getAppAuthorizeSetting/,Nt=/^create|Manager$/,Dt=["createBLEConnection"],Mt=["createBLEConnection"],Ft=/^on|^off/;function Ut(e){return Nt.test(e)&&-1===Dt.indexOf(e)}function Rt(e){return Lt.test(e)&&-1===Mt.indexOf(e)}function Qt(e){return!(Ut(e)||Rt(e)||function(e){return Ft.test(e)&&"onPush"!==e}(e))}function qt(e,t){return Qt(e)&&A(t)?function(n={},...o){return A(n.success)||A(n.fail)||A(n.complete)?nt(e,rt(e,t,n,o)):nt(e,new Promise(((r,i)=>{rt(e,t,g({},n,{success:r,fail:i}),o)})))}:t}Promise.prototype.finally||(Promise.prototype.finally=function(e){const t=this.constructor;return this.then((n=>t.resolve(e&&e()).then((()=>n))),(n=>t.resolve(e&&e()).then((()=>{throw n}))))});const zt=["success","fail","cancel","complete"];const Ht=()=>{const e=A(getApp)&&getApp({allowDefault:!0});return e&&e.$vm?e.$vm.$locale:Fe(wx.getSystemInfoSync().language)||Le},Wt=[];"undefined"!=typeof global&&(global.getLocale=Ht);const $t="__DC_STAT_UUID";let Vt;function Kt(e=wx){return function(t,n){Vt=Vt||e.getStorageSync($t),Vt||(Vt=Date.now()+""+Math.floor(1e7*Math.random()),wx.setStorage({key:$t,data:Vt})),n.deviceId=Vt}}function Jt(e,t){if(e.safeArea){const n=e.safeArea;t.safeAreaInsets={top:n.top,left:n.left,right:e.windowWidth-n.right,bottom:e.screenHeight-n.bottom}}}function Yt(e,t){let n=e.deviceType||"phone";{const e={ipad:"pad",windows:"pc",mac:"pc"},o=Object.keys(e),r=t.toLocaleLowerCase();for(let t=0;t{Jt(e,t),Kt()(e,t),function(e,t){const{brand:n="",model:o="",system:r="",language:i="",theme:s,version:a,platform:c,fontSizeSetting:l,SDKVersion:u,pixelRatio:f,deviceOrientation:p}=e;let d="",h="";d=r.split(" ")[0]||"",h=r.split(" ")[1]||"";let m=a,y=Yt(e,o),b=Gt(n),v=Zt(e),w=p,S=f,A=u;const x=i.replace(/_/g,"-"),k={appId:"",appName:"",appVersion:"1.0.0",appVersionCode:"100",appLanguage:Xt(x),uniCompileVersion:"3.8.12",uniRuntimeVersion:"3.8.12",uniPlatform:"mp-weixin",deviceBrand:b,deviceModel:o,deviceType:y,devicePixelRatio:S,deviceOrientation:w,osName:d.toLocaleLowerCase(),osVersion:h,hostTheme:s,hostVersion:m,hostLanguage:x,hostName:v,hostSDKVersion:A,hostFontSizeSetting:l,windowTop:0,windowBottom:0,osLanguage:void 0,osTheme:void 0,ua:void 0,hostPackageName:void 0,browserName:void 0,browserVersion:void 0};g(t,k)}(e,t)}},tn=en,nn={args(e,t){let n=parseInt(e.current);if(isNaN(n))return;const o=e.urls;if(!v(o))return;const r=o.length;return r?(n<0?n=0:n>=r&&(n=r-1),n>0?(t.current=o[n],t.urls=o.filter(((e,t)=>!(t{const{brand:n,model:o}=e;let r=Yt(e,o),i=Gt(n);Kt()(e,t),t=ye(g(t,{deviceType:r,deviceBrand:i,deviceModel:o}))}},sn={returnValue:(e,t)=>{const{version:n,language:o,SDKVersion:r,theme:i}=e;let s=Zt(e),a=o.replace(/_/g,"-");t=ye(g(t,{hostVersion:n,hostLanguage:a,hostName:s,hostSDKVersion:r,hostTheme:i,appId:"",appName:"",appVersion:"1.0.0",appVersionCode:"100",appLanguage:Xt(a)}))}},an={returnValue:(e,t)=>{Jt(e,t),t=ye(g(t,{windowTop:0,windowBottom:0}))}},cn={$on:wt,$off:At,$once:St,$emit:xt,upx2px:ht,interceptors:{},addInterceptor:yt,removeInterceptor:bt,onCreateVueApp:function(e){if(ke)return e(ke);Te.push(e)},invokeCreateVueAppHook:function(e){ke=e,Te.forEach((t=>t(e)))},getLocale:Ht,setLocale:e=>{const t=A(getApp)&&getApp();if(!t)return!1;return t.$vm.$locale!==e&&(t.$vm.$locale=e,Wt.forEach((t=>t({locale:e}))),!0)},onLocaleChange:e=>{-1===Wt.indexOf(e)&&Wt.push(e)},getPushClientId:_t,onPushMessage:e=>{-1===jt.indexOf(e)&&jt.push(e)},offPushMessage:e=>{if(e){const t=jt.indexOf(e);t>-1&&jt.splice(t,1)}else jt.length=0},invokePushCallback:function(e){if("enabled"===e.type)Et=!0;else if("clientId"===e.type)kt=e.cid,Tt=e.errMsg,Ct(kt,e.errMsg);else if("pushMsg"===e.type){const t={type:"receive",data:Pt(e.message)};for(let e=0;e{t({type:"click",data:Pt(e.message)})}))}};const ln=["qy","env","error","version","lanDebug","cloud","serviceMarket","router","worklet","__webpack_require_UNI_MP_PLUGIN__"],un=["lanDebug","router","worklet"],fn=wx.getLaunchOptionsSync?wx.getLaunchOptionsSync():null;function pn(e){return(!fn||1154!==fn.scene||!un.includes(e))&&(ln.indexOf(e)>-1||"function"==typeof wx[e])}function dn(){const e={};for(const t in wx)pn(t)&&(e[t]=wx[t]);return"undefined"!=typeof globalThis&&"undefined"==typeof requireMiniProgram&&(globalThis.wx=e),e}const hn=["__route__","__wxExparserNodeId__","__wxWebviewId__"],gn=(mn={oauth:["weixin"],share:["weixin"],payment:["wxpay"],push:["weixin"]},function({service:e,success:t,fail:n,complete:o}){let r;mn[e]?(r={errMsg:"getProvider:ok",service:e,provider:mn[e]},A(t)&&t(r)):(r={errMsg:"getProvider:fail:服务["+e+"]不存在"},A(n)&&n(r)),A(o)&&o(r)});var mn;const yn=dn();let bn=yn.getAppBaseInfo&&yn.getAppBaseInfo();bn||(bn=yn.getSystemInfoSync());const vn=bn?bn.host:null,wn=vn&&"SAAASDK"===vn.env?yn.miniapp.shareVideoMessage:yn.shareVideoMessage;var Sn=Object.freeze({__proto__:null,createSelectorQuery:function(){const e=yn.createSelectorQuery(),t=e.in;return e.in=function(e){return t.call(this,function(e){const t=Object.create(null);return hn.forEach((n=>{t[n]=e[n]})),t}(e))},e},getProvider:gn,shareVideoMessage:wn});const An={args(e,t){e.compressedHeight&&!t.compressHeight&&(t.compressHeight=e.compressedHeight),e.compressedWidth&&!t.compressWidth&&(t.compressWidth=e.compressedWidth)}};var xn=Object.freeze({__proto__:null,compressImage:An,getAppAuthorizeSetting:{returnValue:function(e,t){const{locationReducedAccuracy:n}=e;t.locationAccuracy="unsupported",!0===n?t.locationAccuracy="reduced":!1===n&&(t.locationAccuracy="full")}},getAppBaseInfo:sn,getDeviceInfo:rn,getSystemInfo:en,getSystemInfoSync:tn,getWindowInfo:an,previewImage:nn,redirectTo:{},showActionSheet:on});const kn=dn();var Tn=function(e,t,n=wx){const o=function(e){function t(e,t,n){return function(r){return t(o(e,r,n))}}function n(e,n,o={},r={},i=!1){if(C(n)){const s=!0===i?n:{};A(o)&&(o=o(n,s)||{});for(const a in n)if(b(o,a)){let t=o[a];A(t)&&(t=t(n[a],n,s)),t?x(t)?s[t]=n[a]:C(t)&&(s[t.name?t.name:a]=t.value):console.warn(`微信小程序 ${e} 暂不支持 ${a}`)}else if(-1!==zt.indexOf(a)){const o=n[a];A(o)&&(s[a]=t(e,o,r))}else i||b(s,a)||(s[a]=n[a]);return s}return A(n)&&(n=t(e,n,r)),n}function o(t,o,r,i=!1){return A(e.returnValue)&&(o=e.returnValue(t,o)),n(t,o,r,{},i)}return function(t,r){if(!b(e,t))return r;const i=e[t];return i?function(e,r){let s=i;A(i)&&(s=i(e));const a=[e=n(t,e,s.args,s.returnValue)];void 0!==r&&a.push(r);const c=wx[s.name||t].apply(wx,a);return Rt(t)?o(t,c,s.returnValue,Ut(t)):c}:function(){console.error(`微信小程序 暂不支持${t}`)}}}(t);return new Proxy({},{get:(t,r)=>b(t,r)?t[r]:b(e,r)?qt(r,e[r]):b(cn,r)?qt(r,cn[r]):qt(r,o(r,n[r]))})}(Sn,xn,kn);let En;class Pn{constructor(e=!1){this.detached=e,this._active=!0,this.effects=[],this.cleanups=[],this.parent=En,!e&&En&&(this.index=(En.scopes||(En.scopes=[])).push(this)-1)}get active(){return this._active}run(e){if(this._active){const t=En;try{return En=this,e()}finally{En=t}}}on(){En=this}off(){En=this.parent}stop(e){if(this._active){let t,n;for(t=0,n=this.effects.length;t{const t=new Set(e);return t.w=0,t.n=0,t},On=e=>(e.w&Nn)>0,Bn=e=>(e.n&Nn)>0,jn=new WeakMap;let Ln=0,Nn=1;let Dn;const Mn=Symbol(""),Fn=Symbol("");class Un{constructor(e,t=null,n){this.fn=e,this.scheduler=t,this.active=!0,this.deps=[],this.parent=void 0,function(e,t=En){t&&t.active&&t.effects.push(e)}(this,n)}run(){if(!this.active)return this.fn();let e=Dn,t=Qn;for(;e;){if(e===this)return;e=e.parent}try{return this.parent=Dn,Dn=this,Qn=!0,Nn=1<<++Ln,Ln<=30?(({deps:e})=>{if(e.length)for(let t=0;t{const{deps:t}=e;if(t.length){let n=0;for(let o=0;o{("length"===n||n>=e)&&a.push(t)}))}else switch(void 0!==n&&a.push(s.get(n)),t){case"add":v(e)?_(n)&&a.push(s.get("length")):(a.push(s.get(Mn)),w(e)&&a.push(s.get(Fn)));break;case"delete":v(e)||(a.push(s.get(Mn)),w(e)&&a.push(s.get(Fn)));break;case"set":w(e)&&a.push(s.get(Mn))}if(1===a.length)a[0]&&Kn(a[0]);else{const e=[];for(const t of a)t&&e.push(...t);Kn(_n(e))}}function Kn(e,t){const n=v(e)?e:[...e];for(const o of n)o.computed&&Jn(o);for(const o of n)o.computed||Jn(o)}function Jn(e,t){(e!==Dn||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}const Yn=e("__proto__,__v_isRef,__isVue"),Gn=new Set(Object.getOwnPropertyNames(Symbol).filter((e=>"arguments"!==e&&"caller"!==e)).map((e=>Symbol[e])).filter(k)),Xn=ro(),Zn=ro(!1,!0),eo=ro(!0),to=no();function no(){const e={};return["includes","indexOf","lastIndexOf"].forEach((t=>{e[t]=function(...e){const n=qo(this);for(let t=0,r=this.length;t{e[t]=function(...e){zn();const n=qo(this)[t].apply(this,e);return Hn(),n}})),e}function oo(e){const t=qo(this);return Wn(t,0,e),t.hasOwnProperty(e)}function ro(e=!1,t=!1){return function(n,o,r){if("__v_isReactive"===o)return!e;if("__v_isReadonly"===o)return e;if("__v_isShallow"===o)return t;if("__v_raw"===o&&r===(e?t?Lo:jo:t?Bo:Oo).get(n))return n;const i=v(n);if(!e){if(i&&b(to,o))return Reflect.get(to,o,r);if("hasOwnProperty"===o)return oo}const s=Reflect.get(n,o,r);return(k(o)?Gn.has(o):Yn(o))?s:(e||Wn(n,0,o),t?s:Ko(s)?i&&_(o)?s:s.value:T(s)?e?Mo(s):Do(s):s)}}function io(e=!1){return function(t,n,o,r){let i=t[n];if(Ro(i)&&Ko(i)&&!Ko(o))return!1;if(!e&&(Qo(o)||Ro(o)||(i=qo(i),o=qo(o)),!v(t)&&Ko(i)&&!Ko(o)))return i.value=o,!0;const s=v(t)&&_(n)?Number(n)!0,deleteProperty:(e,t)=>!0},co=g({},so,{get:Zn,set:io(!0)}),lo=e=>e,uo=e=>Reflect.getPrototypeOf(e);function fo(e,t,n=!1,o=!1){const r=qo(e=e.__v_raw),i=qo(t);n||(t!==i&&Wn(r,0,t),Wn(r,0,i));const{has:s}=uo(r),a=o?lo:n?Wo:Ho;return s.call(r,t)?a(e.get(t)):s.call(r,i)?a(e.get(i)):void(e!==r&&e.get(t))}function po(e,t=!1){const n=this.__v_raw,o=qo(n),r=qo(e);return t||(e!==r&&Wn(o,0,e),Wn(o,0,r)),e===r?n.has(e):n.has(e)||n.has(r)}function ho(e,t=!1){return e=e.__v_raw,!t&&Wn(qo(e),0,Mn),Reflect.get(e,"size",e)}function go(e){e=qo(e);const t=qo(this);return uo(t).has.call(t,e)||(t.add(e),Vn(t,"add",e,e)),this}function mo(e,t){t=qo(t);const n=qo(this),{has:o,get:r}=uo(n);let i=o.call(n,e);i||(e=qo(e),i=o.call(n,e));const s=r.call(n,e);return n.set(e,t),i?U(t,s)&&Vn(n,"set",e,t):Vn(n,"add",e,t),this}function yo(e){const t=qo(this),{has:n,get:o}=uo(t);let r=n.call(t,e);r||(e=qo(e),r=n.call(t,e)),o&&o.call(t,e);const i=t.delete(e);return r&&Vn(t,"delete",e,void 0),i}function bo(){const e=qo(this),t=0!==e.size,n=e.clear();return t&&Vn(e,"clear",void 0,void 0),n}function vo(e,t){return function(n,o){const r=this,i=r.__v_raw,s=qo(i),a=t?lo:e?Wo:Ho;return!e&&Wn(s,0,Mn),i.forEach(((e,t)=>n.call(o,a(e),a(t),r)))}}function wo(e,t,n){return function(...o){const r=this.__v_raw,i=qo(r),s=w(i),a="entries"===e||e===Symbol.iterator&&s,c="keys"===e&&s,l=r[e](...o),u=n?lo:t?Wo:Ho;return!t&&Wn(i,0,c?Fn:Mn),{next(){const{value:e,done:t}=l.next();return t?{value:e,done:t}:{value:a?[u(e[0]),u(e[1])]:u(e),done:t}},[Symbol.iterator](){return this}}}}function So(e){return function(...t){return"delete"!==e&&this}}function Ao(){const e={get(e){return fo(this,e)},get size(){return ho(this)},has:po,add:go,set:mo,delete:yo,clear:bo,forEach:vo(!1,!1)},t={get(e){return fo(this,e,!1,!0)},get size(){return ho(this)},has:po,add:go,set:mo,delete:yo,clear:bo,forEach:vo(!1,!0)},n={get(e){return fo(this,e,!0)},get size(){return ho(this,!0)},has(e){return po.call(this,e,!0)},add:So("add"),set:So("set"),delete:So("delete"),clear:So("clear"),forEach:vo(!0,!1)},o={get(e){return fo(this,e,!0,!0)},get size(){return ho(this,!0)},has(e){return po.call(this,e,!0)},add:So("add"),set:So("set"),delete:So("delete"),clear:So("clear"),forEach:vo(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach((r=>{e[r]=wo(r,!1,!1),n[r]=wo(r,!0,!1),t[r]=wo(r,!1,!0),o[r]=wo(r,!0,!0)})),[e,n,t,o]}const[xo,ko,To,Eo]=Ao();function Po(e,t){const n=t?e?Eo:To:e?ko:xo;return(t,o,r)=>"__v_isReactive"===o?!e:"__v_isReadonly"===o?e:"__v_raw"===o?t:Reflect.get(b(n,o)&&o in t?n:t,o,r)}const Io={get:Po(!1,!1)},Co={get:Po(!1,!0)},_o={get:Po(!0,!1)},Oo=new WeakMap,Bo=new WeakMap,jo=new WeakMap,Lo=new WeakMap;function No(e){return e.__v_skip||!Object.isExtensible(e)?0:function(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}((e=>I(e).slice(8,-1))(e))}function Do(e){return Ro(e)?e:Fo(e,!1,so,Io,Oo)}function Mo(e){return Fo(e,!0,ao,_o,jo)}function Fo(e,t,n,o,r){if(!T(e))return e;if(e.__v_raw&&(!t||!e.__v_isReactive))return e;const i=r.get(e);if(i)return i;const s=No(e);if(0===s)return e;const a=new Proxy(e,2===s?o:n);return r.set(e,a),a}function Uo(e){return Ro(e)?Uo(e.__v_raw):!(!e||!e.__v_isReactive)}function Ro(e){return!(!e||!e.__v_isReadonly)}function Qo(e){return!(!e||!e.__v_isShallow)}function qo(e){const t=e&&e.__v_raw;return t?qo(t):e}function zo(e){return((e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})})(e,"__v_skip",!0),e}const Ho=e=>T(e)?Do(e):e,Wo=e=>T(e)?Mo(e):e;function $o(e){Qn&&Dn&&$n((e=qo(e)).dep||(e.dep=_n()))}function Vo(e,t){const n=(e=qo(e)).dep;n&&Kn(n)}function Ko(e){return!(!e||!0!==e.__v_isRef)}function Jo(e){return function(e,t){if(Ko(e))return e;return new Yo(e,t)}(e,!1)}class Yo{constructor(e,t){this.__v_isShallow=t,this.dep=void 0,this.__v_isRef=!0,this._rawValue=t?e:qo(e),this._value=t?e:Ho(e)}get value(){return $o(this),this._value}set value(e){const t=this.__v_isShallow||Qo(e)||Ro(e);e=t?e:qo(e),U(e,this._rawValue)&&(this._rawValue=e,this._value=t?e:Ho(e),Vo(this))}}function Go(e){return Ko(e)?e.value:e}const Xo={get:(e,t,n)=>Go(Reflect.get(e,t,n)),set:(e,t,n,o)=>{const r=e[t];return Ko(r)&&!Ko(n)?(r.value=n,!0):Reflect.set(e,t,n,o)}};function Zo(e){return Uo(e)?e:new Proxy(e,Xo)}class er{constructor(e,t,n){this._object=e,this._key=t,this._defaultValue=n,this.__v_isRef=!0}get value(){const e=this._object[this._key];return void 0===e?this._defaultValue:e}set value(e){this._object[this._key]=e}get dep(){return e=qo(this._object),t=this._key,null===(n=jn.get(e))||void 0===n?void 0:n.get(t);var e,t,n}}function tr(e,t,n){const o=e[t];return Ko(o)?o:new er(e,t,n)}var nr;class or{constructor(e,t,n,o){this._setter=t,this.dep=void 0,this.__v_isRef=!0,this[nr]=!1,this._dirty=!0,this.effect=new Un(e,(()=>{this._dirty||(this._dirty=!0,Vo(this))})),this.effect.computed=this,this.effect.active=this._cacheable=!o,this.__v_isReadonly=n}get value(){const e=qo(this);return $o(e),!e._dirty&&e._cacheable||(e._dirty=!1,e._value=e.effect.run()),e._value}set value(e){this._setter(e)}}function rr(e,t,n,o){let r;try{r=o?e(...o):e()}catch(i){sr(i,t,n)}return r}function ir(e,t,n,o){if(A(e)){const r=rr(e,t,n,o);return r&&E(r)&&r.catch((e=>{sr(e,t,n)})),r}const r=[];for(let i=0;i>>1;Sr(lr[o])null==e.id?1/0:e.id,Ar=(e,t)=>{const n=Sr(e)-Sr(t);if(0===n){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function xr(e){cr=!1,ar=!0,lr.sort(Ar);try{for(ur=0;urSr(e)-Sr(t))),dr=0;drx(e)?e.trim():e))),t&&(r=n.map(Q))}let a,l=o[a=F(t)]||o[a=F(L(t))];!l&&i&&(l=o[a=F(D(t))]),l&&ir(l,e,6,r);const u=o[a+"Once"];if(u){if(e.emitted){if(e.emitted[a])return}else e.emitted={};e.emitted[a]=!0,ir(u,e,6,r)}}function Tr(e,t,n=!1){const o=t.emitsCache,r=o.get(e);if(void 0!==r)return r;const i=e.emits;let s={},a=!1;if(!A(e)){const o=e=>{const n=Tr(e,t,!0);n&&(a=!0,g(s,n))};!n&&t.mixins.length&&t.mixins.forEach(o),e.extends&&o(e.extends),e.mixins&&e.mixins.forEach(o)}return i||a?(v(i)?i.forEach((e=>s[e]=null)):g(s,i),T(e)&&o.set(e,s),s):(T(e)&&o.set(e,null),null)}function Er(e,t){return!(!e||!d(t))&&(t=t.slice(2).replace(/Once$/,""),b(e,t[0].toLowerCase()+t.slice(1))||b(e,D(t))||b(e,t))}let Pr=null;function Ir(e){const t=Pr;return Pr=e,e&&e.type.__scopeId,t}function Cr(e,t,n=!1){const o=_i||Pr;if(o){const r=null==o.parent?o.vnode.appContext&&o.vnode.appContext.provides:o.parent.provides;if(r&&e in r)return r[e];if(arguments.length>1)return n&&A(t)?t.call(o.proxy):t}}const _r={};function Or(e,t,n){return Br(e,t,n)}function Br(e,t,{immediate:n,deep:o,flush:r,onTrack:i,onTrigger:s}=c){const a=Cn()===(null==_i?void 0:_i.scope)?_i:null;let l,f,p=!1,d=!1;if(Ko(e)?(l=()=>e.value,p=Qo(e)):Uo(e)?(l=()=>e,o=!0):v(e)?(d=!0,p=e.some((e=>Uo(e)||Qo(e))),l=()=>e.map((e=>Ko(e)?e.value:Uo(e)?Nr(e):A(e)?rr(e,a,2):void 0))):l=A(e)?t?()=>rr(e,a,2):()=>{if(!a||!a.isUnmounted)return f&&f(),ir(e,a,3,[h])}:u,t&&o){const e=l;l=()=>Nr(e())}let h=e=>{f=w.onStop=()=>{rr(e,a,4)}},g=d?new Array(e.length).fill(_r):_r;const y=()=>{if(w.active)if(t){const e=w.run();(o||p||(d?e.some(((e,t)=>U(e,g[t]))):U(e,g)))&&(f&&f(),ir(t,a,3,[e,g===_r?void 0:d&&g[0]===_r?[]:g,h]),g=e)}else w.run()};let b;y.allowRecurse=!!t,"sync"===r?b=y:"post"===r?b=()=>Ti(y,a&&a.suspense):(y.pre=!0,a&&(y.id=a.uid),b=()=>yr(y));const w=new Un(l,b);t?n?y():g=w.run():"post"===r?Ti(w.run.bind(w),a&&a.suspense):w.run();return()=>{w.stop(),a&&a.scope&&m(a.scope.effects,w)}}function jr(e,t,n){const o=this.proxy,r=x(e)?e.includes(".")?Lr(o,e):()=>o[e]:e.bind(o,o);let i;A(t)?i=t:(i=t.handler,n=t);const s=_i;Bi(this);const a=Br(r,i.bind(o),n);return s?Bi(s):ji(),a}function Lr(e,t){const n=t.split(".");return()=>{let t=e;for(let e=0;e{Nr(e,t)}));else if(C(e))for(const n in e)Nr(e[n],t);return e}function Dr(e,t){Fr(e,"a",t)}function Mr(e,t){Fr(e,"da",t)}function Fr(e,t,n=_i){const o=e.__wdc||(e.__wdc=()=>{let t=n;for(;t;){if(t.isDeactivated)return;t=t.parent}return e()});if(Rr(t,o,n),n){let e=n.parent;for(;e&&e.parent;)e.parent.vnode.type.__isKeepAlive&&Ur(o,t,n,e),e=e.parent}}function Ur(e,t,n,o){const r=Rr(t,e,o,!0);Vr((()=>{m(o[t],r)}),n)}function Rr(e,t,n=_i,o=!1){if(n){(function(e){return we.indexOf(e)>-1})(e)&&(n=n.root);const r=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...o)=>{if(n.isUnmounted)return;zn(),Bi(n);const r=ir(t,n,e,o);return ji(),Hn(),r});return o?r.unshift(i):r.push(i),i}}const Qr=e=>(t,n=_i)=>(!Ni||"sp"===e)&&Rr(e,((...e)=>t(...e)),n),qr=Qr("bm"),zr=Qr("m"),Hr=Qr("bu"),Wr=Qr("u"),$r=Qr("bum"),Vr=Qr("um"),Kr=Qr("sp"),Jr=Qr("rtg"),Yr=Qr("rtc");function Gr(e,t=_i){Rr("ec",e,t)}const Xr="components";function Zr(e,t){return e&&(e[t]||e[L(t)]||e[M(L(t))])}const ei=e=>e?Li(e)?Fi(e)||e.proxy:ei(e.parent):null,ti=g(Object.create(null),{$:e=>e,$el:e=>e.__$el||(e.__$el={}),$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>ei(e.parent),$root:e=>ei(e.root),$emit:e=>e.emit,$options:e=>ci(e),$forceUpdate:e=>e.f||(e.f=()=>yr(e.update)),$watch:e=>jr.bind(e)}),ni=(e,t)=>e!==c&&!e.__isScriptSetup&&b(e,t),oi={get({_:e},t){const{ctx:n,setupState:o,data:r,props:i,accessCache:s,type:a,appContext:l}=e;let u;if("$"!==t[0]){const a=s[t];if(void 0!==a)switch(a){case 1:return o[t];case 2:return r[t];case 4:return n[t];case 3:return i[t]}else{if(ni(o,t))return s[t]=1,o[t];if(r!==c&&b(r,t))return s[t]=2,r[t];if((u=e.propsOptions[0])&&b(u,t))return s[t]=3,i[t];if(n!==c&&b(n,t))return s[t]=4,n[t];ri&&(s[t]=0)}}const f=ti[t];let p,d;return f?("$attrs"===t&&Wn(e,0,t),f(e)):(p=a.__cssModules)&&(p=p[t])?p:n!==c&&b(n,t)?(s[t]=4,n[t]):(d=l.config.globalProperties,b(d,t)?d[t]:void 0)},set({_:e},t,n){const{data:o,setupState:r,ctx:i}=e;return ni(r,t)?(r[t]=n,!0):o!==c&&b(o,t)?(o[t]=n,!0):!b(e.props,t)&&(("$"!==t[0]||!(t.slice(1)in e))&&(i[t]=n,!0))},has({_:{data:e,setupState:t,accessCache:n,ctx:o,appContext:r,propsOptions:i}},s){let a;return!!n[s]||e!==c&&b(e,s)||ni(t,s)||(a=i[0])&&b(a,s)||b(o,s)||b(ti,s)||b(r.config.globalProperties,s)},defineProperty(e,t,n){return null!=n.get?e._.accessCache[t]=0:b(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};let ri=!0;function ii(e){const t=ci(e),n=e.proxy,o=e.ctx;ri=!1,t.beforeCreate&&si(t.beforeCreate,e,"bc");const{data:r,computed:i,methods:s,watch:a,provide:c,inject:l,created:f,beforeMount:p,mounted:d,beforeUpdate:h,updated:g,activated:m,deactivated:y,beforeDestroy:b,beforeUnmount:w,destroyed:S,unmounted:x,render:k,renderTracked:E,renderTriggered:P,errorCaptured:I,serverPrefetch:C,expose:_,inheritAttrs:O,components:B,directives:j,filters:L}=t;if(l&&function(e,t,n=u,o=!1){v(e)&&(e=pi(e));for(const r in e){const n=e[r];let i;i=T(n)?"default"in n?Cr(n.from||r,n.default,!0):Cr(n.from||r):Cr(n),Ko(i)&&o?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>i.value,set:e=>i.value=e}):t[r]=i}}(l,o,null,e.appContext.config.unwrapInjectedRef),s)for(const u in s){const e=s[u];A(e)&&(o[u]=e.bind(n))}if(r){const t=r.call(n,n);T(t)&&(e.data=Do(t))}if(ri=!0,i)for(const v in i){const e=i[v],t=A(e)?e.bind(n,n):A(e.get)?e.get.bind(n,n):u,r=!A(e)&&A(e.set)?e.set.bind(n):u,s=Ui({get:t,set:r});Object.defineProperty(o,v,{enumerable:!0,configurable:!0,get:()=>s.value,set:e=>s.value=e})}if(a)for(const u in a)ai(a[u],o,n,u);if(c){const e=A(c)?c.call(n):c;Reflect.ownKeys(e).forEach((t=>{!function(e,t){if(_i){let n=_i.provides;const o=_i.parent&&_i.parent.provides;o===n&&(n=_i.provides=Object.create(o)),n[e]=t,"app"===_i.type.mpType&&_i.appContext.app.provide(e,t)}}(t,e[t])}))}function N(e,t){v(t)?t.forEach((t=>e(t.bind(n)))):t&&e(t.bind(n))}if(f&&si(f,e,"c"),N(qr,p),N(zr,d),N(Hr,h),N(Wr,g),N(Dr,m),N(Mr,y),N(Gr,I),N(Yr,E),N(Jr,P),N($r,w),N(Vr,x),N(Kr,C),v(_))if(_.length){const t=e.exposed||(e.exposed={});_.forEach((e=>{Object.defineProperty(t,e,{get:()=>n[e],set:t=>n[e]=t})}))}else e.exposed||(e.exposed={});k&&e.render===u&&(e.render=k),null!=O&&(e.inheritAttrs=O),B&&(e.components=B),j&&(e.directives=j),e.ctx.$onApplyOptions&&e.ctx.$onApplyOptions(t,e,n)}function si(e,t,n){ir(v(e)?e.map((e=>e.bind(t.proxy))):e.bind(t.proxy),t,n)}function ai(e,t,n,o){const r=o.includes(".")?Lr(n,o):()=>n[o];if(x(e)){const n=t[e];A(n)&&Or(r,n)}else if(A(e))Or(r,e.bind(n));else if(T(e))if(v(e))e.forEach((e=>ai(e,t,n,o)));else{const o=A(e.handler)?e.handler.bind(n):t[e.handler];A(o)&&Or(r,o,e)}}function ci(e){const t=e.type,{mixins:n,extends:o}=t,{mixins:r,optionsCache:i,config:{optionMergeStrategies:s}}=e.appContext,a=i.get(t);let c;return a?c=a:r.length||n||o?(c={},r.length&&r.forEach((e=>li(c,e,s,!0))),li(c,t,s)):c=t,T(t)&&i.set(t,c),c}function li(e,t,n,o=!1){const{mixins:r,extends:i}=t;i&&li(e,i,n,!0),r&&r.forEach((t=>li(e,t,n,!0)));for(const s in t)if(o&&"expose"===s);else{const o=ui[s]||n&&n[s];e[s]=o?o(e[s],t[s]):t[s]}return e}const ui={data:fi,props:hi,emits:hi,methods:hi,computed:hi,beforeCreate:di,created:di,beforeMount:di,mounted:di,beforeUpdate:di,updated:di,beforeDestroy:di,beforeUnmount:di,destroyed:di,unmounted:di,activated:di,deactivated:di,errorCaptured:di,serverPrefetch:di,components:hi,directives:hi,watch:function(e,t){if(!e)return t;if(!t)return e;const n=g(Object.create(null),e);for(const o in t)n[o]=di(e[o],t[o]);return n},provide:fi,inject:function(e,t){return hi(pi(e),pi(t))}};function fi(e,t){return t?e?function(){return g(A(e)?e.call(this,this):e,A(t)?t.call(this,this):t)}:t:e}function pi(e){if(v(e)){const t={};for(let n=0;n{u=!0;const[n,o]=bi(e,t,!0);g(s,n),o&&a.push(...o)};!n&&t.mixins.length&&t.mixins.forEach(o),e.extends&&o(e.extends),e.mixins&&e.mixins.forEach(o)}if(!i&&!u)return T(e)&&o.set(e,l),l;if(v(i))for(let l=0;l-1,n[1]=o<0||t-1||b(n,"default"))&&a.push(e)}}}const f=[s,a];return T(e)&&o.set(e,f),f}function vi(e){return"$"!==e[0]}function wi(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:null===e?"null":""}function Si(e,t){return wi(e)===wi(t)}function Ai(e,t){return v(t)?t.findIndex((t=>Si(t,e))):A(t)&&Si(t,e)?0:-1}function xi(){return{app:null,config:{isNativeTag:f,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let ki=0;const Ti=vr;function Ei(e){return e?Uo(t=e)||Ro(t)||"__vInternal"in e?g({},e):e:null;var t}const Pi=xi();let Ii=0;function Ci(e,t,n){const o=e.type,r=(t?t.appContext:e.appContext)||Pi,i={uid:Ii++,vnode:e,type:o,parent:t,appContext:r,root:null,next:null,subTree:null,effect:null,update:null,scope:new Pn(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(r.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:bi(o,r),emitsOptions:Tr(o,r),emit:null,emitted:null,propsDefaults:c,inheritAttrs:o.inheritAttrs,ctx:c,data:c,props:c,attrs:c,slots:c,refs:c,setupState:c,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return i.ctx={_:i},i.root=t?t.root:i,i.emit=kr.bind(null,i),e.ce&&e.ce(i),i}let _i=null;const Oi=()=>_i||Pr,Bi=e=>{_i=e,e.scope.on()},ji=()=>{_i&&_i.scope.off(),_i=null};function Li(e){return 4&e.vnode.shapeFlag}let Ni=!1;function Di(e,t=!1){Ni=t;const{props:n}=e.vnode,o=Li(e);gi(e,n,o,t);const r=o?function(e){const t=e.type;e.accessCache=Object.create(null),e.proxy=zo(new Proxy(e.ctx,oi));const{setup:n}=t;if(n){const t=e.setupContext=n.length>1?function(e){const t=t=>{e.exposed=t||{}};let n;return{get attrs(){return n||(n=function(e){return new Proxy(e.attrs,{get:(t,n)=>(Wn(e,0,"$attrs"),t[n])})}(e))},slots:e.slots,emit:e.emit,expose:t}}(e):null;Bi(e),zn();const o=rr(n,e,0,[e.props,t]);Hn(),ji(),E(o)?o.then(ji,ji):function(e,t){A(t)?e.render=t:T(t)&&(e.setupState=Zo(t));Mi(e)}(e,o)}else Mi(e)}(e):void 0;return Ni=!1,r}function Mi(e,t,n){const o=e.type;e.render||(e.render=o.render||u),Bi(e),zn(),ii(e),Hn(),ji()}function Fi(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(Zo(zo(e.exposed)),{get:(t,n)=>n in t?t[n]:e.proxy[n],has:(e,t)=>t in e||t in ti}))}const Ui=(e,t)=>function(e,t,n=!1){let o,r;const i=A(e);return i?(o=e,r=u):(o=e.get,r=e.set),new or(o,r,i||!r,n)}(e,0,Ni),Ri="3.2.47";function Qi(e){return Go(e)}const qi="[object Array]",zi="[object Object]";function Hi(e,t){const n={};return Wi(e,t),$i(e,t,"",n),n}function Wi(e,t){if((e=Qi(e))===t)return;const n=I(e),o=I(t);if(n==zi&&o==zi)for(let r in t){const n=e[r];void 0===n?e[r]=null:Wi(n,t[r])}else n==qi&&o==qi&&e.length>=t.length&&t.forEach(((t,n)=>{Wi(e[n],t)}))}function $i(e,t,n,o){if((e=Qi(e))===t)return;const r=I(e),i=I(t);if(r==zi)if(i!=zi||Object.keys(e).length{$i(e,i[t],(""==n?"":n+".")+s+"["+t+"]",o)}));else if(a==zi)if(c!=zi||Object.keys(r).length{$i(e,t[r],n+"["+r+"]",o)})):Vi(o,n,e)}function Vi(e,t,n){e[t]=n}function Ki(e){const t=e.ctx.__next_tick_callbacks;if(t&&t.length){const e=t.slice(0);t.length=0;for(let t=0;t{t?rr(t.bind(e.proxy),e,14):o&&o(e.proxy)})),new Promise((e=>{o=e}))}function Yi(e,t){const n=typeof(e=Qi(e));if("object"===n&&null!==e){let n=t.get(e);if(void 0!==n)return n;if(v(e)){const o=e.length;n=new Array(o),t.set(e,n);for(let r=0;r{o[e]=n[e]})),o}(r,i));Object.keys(s).length?(o.__next_tick_pending=!0,r.setData(s,(()=>{o.__next_tick_pending=!1,Ki(e)})),wr()):Ki(e)}}function Zi(e,t,n){t.appContext.config.globalProperties.$applyOptions(e,t,n);const o=e.computed;if(o){const e=Object.keys(o);if(e.length){const n=t.ctx;n.$computedKeys||(n.$computedKeys=[]),n.$computedKeys.push(...e)}}delete t.ctx.$onApplyOptions}function es(e,t=!1){const{setupState:n,$templateRefs:o,ctx:{$scope:r,$mpPlatform:i}}=e;if("mp-alipay"===i)return;if(!o||!r)return;if(t)return o.forEach((e=>ts(e,null,n)));const s="mp-baidu"===i||"mp-toutiao"===i,a=e=>{const t=(r.selectAllComponents(".r")||[]).concat(r.selectAllComponents(".r-i-f")||[]);return e.filter((e=>{const o=function(e,t){const n=e.find((e=>e&&(e.properties||e.props).uI===t));if(n){const e=n.$vm;return e?Fi(e.$)||e:function(e){T(e)&&zo(e);return e}(n)}return null}(t,e.i);return!(!s||null!==o)||(ts(e,o,n),!1)}))},c=()=>{const t=a(o);t.length&&e.proxy&&e.proxy.$scope&&e.proxy.$scope.setData({r1:1},(()=>{a(t)}))};r._$setRef?r._$setRef(c):Ji(e,c)}function ts({r:e,f:t},n,o){if(A(e))e(n,{});else{const r=x(e),i=Ko(e);if(r||i)if(t){if(!i)return;v(e.value)||(e.value=[]);const t=e.value;if(-1===t.indexOf(n)){if(t.push(n),!n)return;$r((()=>m(t,n)),n.$)}}else r?b(o,e)&&(o[e]=n):Ko(e)&&(e.value=n)}}var ns,os;(os=ns||(ns={})).APP="app",os.PAGE="page",os.COMPONENT="component";const rs=vr;function is(e,t){const n=e.component=Ci(e,t.parentComponent,null);return n.ctx.$onApplyOptions=Zi,n.ctx.$children=[],"app"===t.mpType&&(n.render=u),t.onBeforeSetup&&t.onBeforeSetup(n,t),Di(n),t.parentComponent&&n.proxy&&t.parentComponent.ctx.$children.push(Fi(n)||n.proxy),function(e){const t=us.bind(e);e.$updateScopedSlots=()=>mr((()=>yr(t)));const n=()=>{if(e.isMounted){const{next:t,bu:n,u:o}=e;fs(e,!1),ls(),n&&R(n),fs(e,!0),Xi(e,as(e)),o&&rs(o)}else $r((()=>{es(e,!0)}),e),Xi(e,as(e))},o=e.effect=new Un(n,(()=>yr(e.update)),e.scope),r=e.update=o.run.bind(o);r.id=e.uid,fs(e,!0),r()}(n),n.proxy}const ss=e=>{let t;for(const n in e)("class"===n||"style"===n||d(n))&&((t||(t={}))[n]=e[n]);return t};function as(e){const{type:t,vnode:n,proxy:o,withProxy:r,props:i,propsOptions:[s],slots:a,attrs:c,emit:l,render:u,renderCache:f,data:p,setupState:d,ctx:h,uid:g,appContext:{app:{config:{globalProperties:{pruneComponentPropsCache:m}}}},inheritAttrs:y}=e;let b;e.$templateRefs=[],e.$ei=0,m(g),e.__counter=0===e.__counter?1:0;const v=Ir(e);try{if(4&n.shapeFlag){cs(y,i,s,c);const e=r||o;b=u.call(e,e,f,i,d,p,h)}else{cs(y,i,s,t.props?c:ss(c));const e=t;b=e.length>1?e(i,{attrs:c,slots:a,emit:l}):e(i,null)}}catch(w){sr(w,e,1),b=!1}return es(e),Ir(v),b}function cs(e,t,n,o){if(t&&o&&!1!==e){const e=Object.keys(o).filter((e=>"class"!==e&&"style"!==e));if(!e.length)return;n&&e.some(h)?e.forEach((e=>{h(e)&&e.slice(9)in n||(t[e]=o[e])})):e.forEach((e=>t[e]=o[e]))}}const ls=e=>{zn(),wr(),Hn()};function us(){const e=this.$scopedSlotsData;if(!e||0===e.length)return;const t=this.ctx.$scope,n=t.data,o=Object.create(null);e.forEach((({path:e,index:t,data:r})=>{const i=me(n,e),s=x(t)?`${e}.${t}`:`${e}[${t}]`;if(void 0===i||void 0===i[t])o[s]=r;else{const e=Hi(r,i[t]);Object.keys(e).forEach((t=>{o[s+"."+t]=e[t]}))}})),e.length=0,Object.keys(o).length&&t.setData(o)}function fs({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}const ps=function(e,t=null){A(e)||(e=Object.assign({},e)),null==t||T(t)||(t=null);const n=xi(),o=new Set,r=n.app={_uid:ki++,_component:e,_props:t,_container:null,_context:n,_instance:null,version:Ri,get config(){return n.config},set config(e){},use:(e,...t)=>(o.has(e)||(e&&A(e.install)?(o.add(e),e.install(r,...t)):A(e)&&(o.add(e),e(r,...t))),r),mixin:e=>(n.mixins.includes(e)||n.mixins.push(e),r),component:(e,t)=>t?(n.components[e]=t,r):n.components[e],directive:(e,t)=>t?(n.directives[e]=t,r):n.directives[e],mount(){},unmount(){},provide:(e,t)=>(n.provides[e]=t,r)};return r};function ds(e,t=null){("undefined"!=typeof window?window:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof my?my:void 0).__VUE__=!0;const n=ps(e,t),o=n._context;o.config.globalProperties.$nextTick=function(e){return Ji(this.$,e)};const r=e=>(e.appContext=o,e.shapeFlag=6,e),i=function(e,t){return is(r(e),t)},s=function(e){return e&&function(e){const{bum:t,scope:n,update:o,um:r}=e;t&&R(t),n.stop(),o&&(o.active=!1),r&&rs(r),rs((()=>{e.isUnmounted=!0}))}(e.$)};return n.mount=function(){e.render=u;const t=is(r({type:e}),{mpType:ns.APP,mpInstance:null,parentComponent:null,slots:[],props:null});return n._instance=t.$,t.$app=n,t.$createComponent=i,t.$destroyComponent=s,o.$appInstance=t,t},n.unmount=function(){},n}function hs(e,t,n,o){A(t)&&Rr(e,t.bind(n),o)}function gs(e,t,n){!function(e,t,n){const o=e.mpType||n.$mpType;o&&"component"!==o&&Object.keys(e).forEach((o=>{if(xe(o,e[o],!1)){const r=e[o];v(r)?r.forEach((e=>hs(o,e,n,t))):hs(o,r,n,t)}}))}(e,t,n)}function ms(e,t,n){return e[t]=n}function ys(e){return function(t,n,o){if(!n)throw t;const r=e._instance;if(!r||!r.proxy)throw t;r.proxy.$callHook(W,t)}}function bs(e,t){return e?[...new Set([].concat(e,t))]:t}let vs;const ws="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",Ss=/^(?:[A-Za-z\d+/]{4})*?(?:[A-Za-z\d+/]{2}(?:==)?|[A-Za-z\d+/]{3}=?)?$/;function As(){const e=Tn.getStorageSync("uni_id_token")||"",t=e.split(".");if(!e||3!==t.length)return{uid:null,role:[],permission:[],tokenExpired:0};let n;try{n=JSON.parse((o=t[1],decodeURIComponent(vs(o).split("").map((function(e){return"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2)})).join(""))))}catch(r){throw new Error("获取当前用户信息出错,详细错误信息为:"+r.message)}var o;return n.tokenExpired=1e3*n.exp,delete n.exp,delete n.iat,n}function xs(e){const t=e._context.config;var n;t.errorHandler=Ee(e,ys),n=t.optionMergeStrategies,Se.forEach((e=>{n[e]=bs}));const o=t.globalProperties;!function(e){e.uniIDHasRole=function(e){const{role:t}=As();return t.indexOf(e)>-1},e.uniIDHasPermission=function(e){const{permission:t}=As();return this.uniIDHasRole("admin")||t.indexOf(e)>-1},e.uniIDTokenValid=function(){const{tokenExpired:e}=As();return e>Date.now()}}(o),o.$set=ms,o.$applyOptions=gs,Tn.invokeCreateVueAppHook(e)}vs="function"!=typeof atob?function(e){if(e=String(e).replace(/[\t\n\f\r ]+/g,""),!Ss.test(e))throw new Error("Failed to execute 'atob' on 'Window': The string to be decoded is not correctly encoded.");var t;e+="==".slice(2-(3&e.length));for(var n,o,r="",i=0;i>16&255):64===o?String.fromCharCode(t>>16&255,t>>8&255):String.fromCharCode(t>>16&255,t>>8&255,255&t);return r}:atob;const ks=Object.create(null);function Ts(e){delete ks[e]}function Es(e){if(!e)return;const[t,n]=e.split(",");return ks[t]?ks[t][parseInt(n)]:void 0}var Ps={install(e){xs(e),e.config.globalProperties.pruneComponentPropsCache=Ts;const t=e.mount;e.mount=function(n){const o=t.call(e,n),r=function(){const e="createApp";if("undefined"!=typeof global)return global[e];if("undefined"!=typeof my)return my[e]}();return r?r(o):"undefined"!=typeof createMiniProgramApp&&createMiniProgramApp(o),o}}};function Is(e,t){const n=Oi(),o=n.ctx,r=void 0===t||"mp-weixin"!==o.$mpPlatform&&"mp-qq"!==o.$mpPlatform||!x(t)&&"number"!=typeof t?"":"_"+t,i="e"+n.$ei+++r,s=o.$scope;if(!e)return delete s[i],i;const a=s[i];return a?a.value=e:s[i]=function(e,t){const n=e=>{var o;(o=e).type&&o.target&&(o.preventDefault=u,o.stopPropagation=u,o.stopImmediatePropagation=u,b(o,"detail")||(o.detail={}),b(o,"markerId")&&(o.detail="object"==typeof o.detail?o.detail:{},o.detail.markerId=o.markerId),C(o.detail)&&b(o.detail,"checked")&&!b(o.detail,"value")&&(o.detail.value=o.detail.checked),C(o.detail)&&(o.target=g({},o.target,o.detail)));let r=[e];e.detail&&e.detail.__args__&&(r=e.detail.__args__);const i=n.value,s=()=>ir(function(e,t){if(v(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n&&n.call(e),e._stopped=!0},t.map((e=>t=>!t._stopped&&e(t)))}return t}(e,i),t,5,r),a=e.target,c=!!a&&(!!a.dataset&&"true"===String(a.dataset.eventsync));if(!Cs.includes(e.type)||c){const t=s();if("input"===e.type&&(v(t)||E(t)))return;return t}setTimeout(s)};return n.value=e,n}(e,n),i}const Cs=["tap","longpress","longtap","transitionend","animationstart","animationiteration","animationend","touchforcechange"];function _s(e,t={},n){const o=Oi(),{parent:r,isMounted:i,ctx:{$scope:s}}=o,a=(s.properties||s.props).uI;if(!a)return;if(!r&&!i)return void zr((()=>{_s(e,t,n)}),o);const c=function(e,t){let n=t.parent;for(;n;){const t=n.$ssi;if(t&&t[e])return t[e];n=n.parent}}(a,o);c&&c(e,t,n)}function Os(e){return x(e)?e:function(e){let t="";if(!e||x(e))return t;for(const n in e)t+=`${n.startsWith("--")?n:D(n)}:${e[n]};`;return t}(t(e))}const Bs=function(e,t=null){return e&&(e.mpType="app"),ds(e,t).use(Ps)},js=["createSelectorQuery","createIntersectionObserver","selectAllComponents","selectComponent"];function Ls(e,t){const n=e.ctx;n.mpType=t.mpType,n.$mpType=t.mpType,n.$mpPlatform="mp-weixin",n.$scope=t.mpInstance,n.$mp={},n._self={},e.slots={},v(t.slots)&&t.slots.length&&(t.slots.forEach((t=>{e.slots[t]=!0})),e.slots.d&&(e.slots.default=!0)),n.getOpenerEventChannel=function(){return t.mpInstance.getOpenerEventChannel()},n.$hasHook=Ns,n.$callHook=Ds,e.emit=function(e,t){return function(n,...o){const r=t.$scope;if(r&&n){const e={__args__:o};r.triggerEvent(n,e)}return e.apply(this,[n,...o])}}(e.emit,n)}function Ns(e){const t=this.$[e];return!(!t||!t.length)}function Ds(e,t){"mounted"===e&&(Ds.call(this,"bm"),this.$.isMounted=!0,e="m");const n=this.$[e];return n&&((e,t)=>{let n;for(let o=0;o{xe(n,e[n])&&t.add(n)}));{const{extends:n,mixins:o}=e;o&&o.forEach((e=>Fs(e,t))),n&&Fs(n,t)}}return t}function Us(e,t,n){-1!==n.indexOf(t)||b(e,t)||(e[t]=function(e){return this.$vm&&this.$vm.$callHook(t,e)})}const Rs=[Y];function Qs(e,t,n=Rs){t.forEach((t=>Us(e,t,n)))}function qs(e,t,n=Rs){Fs(t).forEach((t=>Us(e,t,n)))}const zs=ge((()=>{const e=[],t=A(getApp)&&getApp({allowDefault:!0});if(t&&t.$vm&&t.$vm.$){const n=t.$vm.$.appContext.mixins;if(v(n)){const t=Object.keys(Ae);n.forEach((n=>{t.forEach((t=>{b(n,t)&&!e.includes(t)&&e.push(t)}))}))}}return e}));const Hs=[q,z,W,$,V,K];function Ws(e,t){const n=e.$,o={globalData:e.$options&&e.$options.globalData||{},$vm:e,onLaunch(t){this.$vm=e;const o=n.ctx;this.$vm&&o.$scope||(Ls(n,{mpType:"app",mpInstance:this,slots:[]}),o.globalData=this.globalData,e.$callHook(H,t))}};!function(e){const t=Jo(Fe(wx.getSystemInfoSync().language)||Le);Object.defineProperty(e,"$locale",{get:()=>t.value,set(e){t.value=e}})}(e);const r=e.$.type;Qs(o,Hs),qs(o,r);{const e=r.methods;e&&g(o,e)}return t&&t.parse(o),o}function $s(e,t){if(A(e.onLaunch)){const t=wx.getLaunchOptionsSync&&wx.getLaunchOptionsSync();e.onLaunch(t)}A(e.onShow)&&wx.onAppShow&&wx.onAppShow((e=>{t.$callHook("onShow",e)})),A(e.onHide)&&wx.onAppHide&&wx.onAppHide((e=>{t.$callHook("onHide",e)}))}const Vs=["externalClasses"];const Ks=/_(.*)_worklet_factory_/;function Js(e,t){const n=e.$children;for(let r=n.length-1;r>=0;r--){const e=n[r];if(e.$scope._$vueId===t)return e}let o;for(let r=n.length-1;r>=0;r--)if(o=Js(n[r],t),o)return o}const Ys=["eO","uR","uRIF","uI","uT","uP","uS"];function Gs(e){e.properties||(e.properties={}),g(e.properties,function(e,t=!1){const n={};return t||(Ys.forEach((e=>{n[e]={type:null,value:""}})),n.uS={type:null,value:[],observer:function(e){const t=Object.create(null);e&&e.forEach((e=>{t[e]=!0})),this.setData({$slots:t})}}),e.behaviors&&e.behaviors.includes("wx://form-field")&&(e.properties&&e.properties.name||(n.name={type:null,value:""}),e.properties&&e.properties.value||(n.value={type:null,value:""})),n}(e),function(e){const t={};return e&&e.virtualHost&&(t.virtualHostStyle={type:null,value:""},t.virtualHostClass={type:null,value:""}),t}(e.options))}const Xs=[String,Number,Boolean,Object,Array,null];function Zs(e,t){const n=function(e){return v(e)&&1===e.length?e[0]:e}(e);return-1!==Xs.indexOf(n)?n:null}function ea(e,t){return(t?function(e){const t={};C(e)&&Object.keys(e).forEach((n=>{-1===Ys.indexOf(n)&&(t[n]=e[n])}));return t}(e):Es(e.uP))||{}}function ta(e){const t=function(){const e=this.properties.uP;e&&(this.$vm?function(e,t){const n=qo(t.props),o=Es(e)||{};na(n,o)&&(!function(e,t,n,o){const{props:r,attrs:i,vnode:{patchFlag:s}}=e,a=qo(r),[c]=e.propsOptions;let l=!1;if(!(o||s>0)||16&s){let o;mi(e,t,r,i)&&(l=!0);for(const i in a)t&&(b(t,i)||(o=D(i))!==i&&b(t,o))||(c?!n||void 0===n[i]&&void 0===n[o]||(r[i]=yi(c,a,i,void 0,e,!0)):delete r[i]);if(i!==a)for(const e in i)t&&b(t,e)||(delete i[e],l=!0)}else if(8&s){const n=e.vnode.dynamicProps;for(let o=0;o-1&&function(e){const t=lr.indexOf(e);t>ur&&lr.splice(t,1)}(t.update),t.update());var r}(e,this.$vm.$):"m"===this.properties.uT&&function(e,t){const n=t.properties,o=Es(e)||{};na(n,o,!1)&&t.setData(o)}(e,this))};e.observers||(e.observers={}),e.observers.uP=t}function na(e,t,n=!0){const o=Object.keys(t);if(n&&o.length!==Object.keys(e).length)return!0;for(let r=0;r{o.push(e.replace("uni://","wx://")),"uni://form-field"===e&&(v(n)?(n.push("name"),n.push("modelValue")):(n.name={type:String,default:""},n.modelValue={type:[String,Number,Boolean,Array,Object,Date],default:""}))})),o}(t)}function ra(e,{parse:t,mocks:n,isPage:o,initRelation:r,handleLink:i,initLifetimes:s}){e=e.default||e;const a={multipleSlots:!0,addGlobalClass:!0,pureDataPattern:/^uP$/};v(e.mixins)&&e.mixins.forEach((e=>{T(e.options)&&g(a,e.options)})),e.options&&g(a,e.options);const c={options:a,lifetimes:s({mocks:n,isPage:o,initRelation:r,vueOptions:e}),pageLifetimes:{show(){this.$vm&&this.$vm.$callHook("onPageShow")},hide(){this.$vm&&this.$vm.$callHook("onPageHide")},resize(e){this.$vm&&this.$vm.$callHook("onPageResize",e)}},methods:{__l:i}};var l,u,f,p;return oa(c,e),Gs(c),ta(c),function(e,t){Vs.forEach((n=>{b(t,n)&&(e[n]=t[n])}))}(c,e),l=c.methods,u=e.wxsCallMethods,v(u)&&u.forEach((e=>{l[e]=function(t){return this.$vm[e](t)}})),f=c.methods,(p=e.methods)&&Object.keys(p).forEach((e=>{const t=e.match(Ks);if(t){const n=t[1];f[e]=p[e],f[n]=p[n]}})),t&&t(c,{handleLink:i}),c}let ia,sa;function aa(){return getApp().$vm}function ca(e,t){const{parse:n,mocks:o,isPage:r,initRelation:i,handleLink:s,initLifetimes:a}=t,c=ra(e,{mocks:o,isPage:r,initRelation:i,handleLink:s,initLifetimes:a});!function({properties:e},t){v(t)?t.forEach((t=>{e[t]={type:String,value:""}})):C(t)&&Object.keys(t).forEach((n=>{const o=t[n];if(C(o)){let t=o.default;A(t)&&(t=t());const r=o.type;o.type=Zs(r),e[n]={type:o.type,value:t}}else e[n]={type:Zs(o)}}))}(c,(e.default||e).props);const l=c.methods;return l.onLoad=function(e){var t;return this.options=e,this.$page={fullPath:(t=this.route+ve(e),function(e){return 0===e.indexOf("/")}(t)?t:"/"+t)},this.$vm&&this.$vm.$callHook(J,e)},Qs(l,Ms),qs(l,e),function(e,t){if(!t)return;Object.keys(Ae).forEach((n=>{t&Ae[n]&&Us(e,n,[])}))}(l,e.__runtimeHooks),Qs(l,zs()),n&&n(c,{handleLink:s}),c}const la=Page,ua=Component;function fa(e){const t=e.triggerEvent,n=function(n,...o){return t.apply(e,[(r=n,L(r.replace(he,"-"))),...o]);var r};try{e.triggerEvent=n}catch(o){e._triggerEvent=n}}function pa(e,t,n){const o=t[e];t[e]=o?function(...e){return fa(this),o.apply(this,e)}:function(){fa(this)}}Page=function(e){return pa(J,e),la(e)},Component=function(e){pa("created",e);return e.properties&&e.properties.uP||(Gs(e),ta(e)),ua(e)};var da=Object.freeze({__proto__:null,handleLink:function(e){const t=e.detail||e.value,n=t.vuePid;let o;n&&(o=Js(this.$vm,n)),o||(o=this.$vm),t.parent=o},initLifetimes:function({mocks:e,isPage:t,initRelation:n,vueOptions:o}){return{attached(){let r=this.properties;!function(e,t){if(!e)return;const n=e.split(","),o=n.length;1===o?t._$vueId=n[0]:2===o&&(t._$vueId=n[0],t._$vuePid=n[1])}(r.uI,this);const i={vuePid:this._$vuePid};n(this,i);const s=this,a=t(s);let c=r;this.$vm=function(e,t){ia||(ia=aa().$createComponent);const n=ia(e,t);return Fi(n.$)||n}({type:o,props:ea(c,a)},{mpType:a?"page":"component",mpInstance:s,slots:r.uS||{},parentComponent:i.parent&&i.parent.$,onBeforeSetup(t,n){!function(e,t){Object.defineProperty(e,"refs",{get(){const e={};return function(e,t,n){e.selectAllComponents(t).forEach((e=>{const t=e.properties.uR;n[t]=e.$vm||e}))}(t,".r",e),t.selectAllComponents(".r-i-f").forEach((t=>{const n=t.properties.uR;n&&(e[n]||(e[n]=[]),e[n].push(t.$vm||t))})),e}})}(t,s),function(e,t,n){const o=e.ctx;n.forEach((n=>{b(t,n)&&(e[n]=o[n]=t[n])}))}(t,s,e),function(e,t){Ls(e,t);const n=e.ctx;js.forEach((e=>{n[e]=function(...t){const o=n.$scope;if(o&&o[e])return o[e].apply(o,t)}}))}(t,n)}}),a||function(e){const t=e.$options;v(t.behaviors)&&t.behaviors.includes("uni://form-field")&&e.$watch("modelValue",(()=>{e.$scope&&e.$scope.setData({name:e.name,value:e.modelValue})}),{immediate:!0})}(this.$vm)},ready(){this.$vm&&(this.$vm.$callHook("mounted"),this.$vm.$callHook(Y))},detached(){var e;this.$vm&&(Ts(this.$vm.$.uid),e=this.$vm,sa||(sa=aa().$destroyComponent),sa(e))}}},initRelation:function(e,t){e.triggerEvent("__l",t)},isPage:function(e){return!!e.route},mocks:["__route__","__wxExparserNodeId__","__wxWebviewId__"]});const ha=function(e){return App(Ws(e,ga))};var ga;const ma=(ya=da,function(e){return Component(ca(e,ya))});var ya;const ba=function(e){return function(t){return Component(ra(t,e))}}(da),va=function(e){return function(t){$s(Ws(t,e),t)}}(),wa=function(e){return function(t){const n=Ws(t,e),o=A(getApp)&&getApp({allowDefault:!0});if(!o)return;t.$.ctx.$scope=o;const r=o.globalData;r&&Object.keys(n.globalData).forEach((e=>{b(r,e)||(r[e]=n.globalData[e])})),Object.keys(n).forEach((e=>{b(o,e)||(o[e]=n[e])})),$s(n,t)}}();wx.createApp=global.createApp=ha,wx.createPage=ma,wx.createComponent=ba,wx.createPluginApp=global.createPluginApp=va,wx.createSubpackageApp=global.createSubpackageApp=wa; +"use strict";function e(e,t){const n=Object.create(null),o=e.split(",");for(let r=0;r!!n[e.toLowerCase()]:e=>!!n[e]}function t(e){if(v(e)){const n={};for(let o=0;o{if(e){const n=e.split(o);n.length>1&&(t[n[0].trim()]=n[1].trim())}})),t}function s(e){let t="";if(A(e))t=e;else if(v(e))for(let n=0;nt&&t.__v_isRef?a(e,t.value):w(t)?{[`Map(${t.size})`]:[...t.entries()].reduce(((e,[t,n])=>(e[`${t} =>`]=n,e)),{})}:x(t)?{[`Set(${t.size})`]:[...t.values()]}:!k(t)||v(t)||C(t)?t:String(t),c={},l=[],u=()=>{},f=()=>!1,p=/^on[^a-z]/,d=e=>p.test(e),h=e=>e.startsWith("onUpdate:"),g=Object.assign,m=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},y=Object.prototype.hasOwnProperty,b=(e,t)=>y.call(e,t),v=Array.isArray,w=e=>"[object Map]"===I(e),x=e=>"[object Set]"===I(e),S=e=>"function"==typeof e,A=e=>"string"==typeof e,T=e=>"symbol"==typeof e,k=e=>null!==e&&"object"==typeof e,E=e=>k(e)&&S(e.then)&&S(e.catch),P=Object.prototype.toString,I=e=>P.call(e),C=e=>"[object Object]"===I(e),_=e=>A(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,O=e(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),B=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},j=/-(\w)/g,L=B((e=>e.replace(j,((e,t)=>t?t.toUpperCase():"")))),N=/\B([A-Z])/g,D=B((e=>e.replace(N,"-$1").toLowerCase())),M=B((e=>e.charAt(0).toUpperCase()+e.slice(1))),F=B((e=>e?`on${M(e)}`:"")),U=(e,t)=>!Object.is(e,t),R=(e,t)=>{for(let n=0;n{const t=parseFloat(e);return isNaN(t)?e:t},q="onShow",z="onHide",H="onLaunch",W="onError",$="onThemeChange",V="onPageNotFound",K="onUnhandledRejection",J="onLoad",Y="onReady",G="onUnload",X="onInit",Z="onSaveExitState",ee="onResize",te="onBackPress",ne="onPageScroll",oe="onTabItemTap",re="onReachBottom",ie="onPullDownRefresh",se="onShareTimeline",ae="onAddToFavorites",ce="onShareAppMessage",le="onNavigationBarButtonTap",ue="onNavigationBarSearchInputClicked",fe="onNavigationBarSearchInputChanged",pe="onNavigationBarSearchInputConfirmed",de="onNavigationBarSearchInputFocusChanged",he=/:/g;function ge(e,t=null){let n;return(...o)=>(e&&(n=e.apply(t,o),e=null),n)}function me(e,t){if(!A(t))return;const n=(t=t.replace(/\[(\d+)\]/g,".$1")).split(".");let o=n[0];return e||(e={}),1===n.length?e[o]:me(e[o],n.slice(1).join("."))}function ye(e){let t={};return C(e)&&Object.keys(e).sort().forEach((n=>{const o=n;t[o]=e[o]})),Object.keys(t)?t:e}const be=encodeURIComponent;function ve(e,t=be){const n=e?Object.keys(e).map((n=>{let o=e[n];return void 0===typeof o||null===o?o="":C(o)&&(o=JSON.stringify(o)),t(n)+"="+t(o)})).filter((e=>e.length>0)).join("&"):null;return n?`?${n}`:""}const we=[X,J,q,z,G,te,ne,oe,re,ie,se,ce,ae,Z,le,ue,fe,pe,de];const xe=[q,z,H,W,$,V,K,X,J,Y,G,ee,te,ne,oe,re,ie,se,ae,ce,Z,le,ue,fe,pe,de],Se=(()=>({onPageScroll:1,onShareAppMessage:2,onShareTimeline:4}))();function Ae(e,t,n=!0){return!(n&&!S(t))&&(xe.indexOf(e)>-1||0===e.indexOf("on"))}let Te;const ke=[];const Ee=ge(((e,t)=>{if(S(e._component.onError))return t(e)})),Pe=function(){};Pe.prototype={on:function(e,t,n){var o=this.e||(this.e={});return(o[e]||(o[e]=[])).push({fn:t,ctx:n}),this},once:function(e,t,n){var o=this;function r(){o.off(e,r),t.apply(n,arguments)}return r._=t,this.on(e,r,n)},emit:function(e){for(var t=[].slice.call(arguments,1),n=((this.e||(this.e={}))[e]||[]).slice(),o=0,r=n.length;oNe.call(e,t),Me=new class{constructor(){this._caches=Object.create(null)}interpolate(e,t,n=Ce){if(!t)return[e];let o=this._caches[e];return o||(o=function(e,[t,n]){const o=[];let r=0,i="";for(;r-1?Be:e.indexOf("-hant")>-1?je:(n=e,["-tw","-hk","-mo","-cht"].find((e=>-1!==n.indexOf(e)))?je:Be);var n;let o=[Le,"fr","es"];t&&Object.keys(t).length>0&&(o=Object.keys(t));const r=function(e,t){return t.find((t=>0===e.indexOf(t)))}(e,o);return r||void 0}class Ue{constructor({locale:e,fallbackLocale:t,messages:n,watcher:o,formater:r}){this.locale=Le,this.fallbackLocale=Le,this.message={},this.messages={},this.watchers=[],t&&(this.fallbackLocale=t),this.formater=r||Me,this.messages=n||{},this.setLocale(e||Le),o&&this.watchLocale(o)}setLocale(e){const t=this.locale;this.locale=Fe(e,this.messages)||this.fallbackLocale,this.messages[this.locale]||(this.messages[this.locale]={}),this.message=this.messages[this.locale],t!==this.locale&&this.watchers.forEach((e=>{e(this.locale,t)}))}getLocale(){return this.locale}watchLocale(e){const t=this.watchers.push(e)-1;return()=>{this.watchers.splice(t,1)}}add(e,t,n=!0){const o=this.messages[e];o?n?Object.assign(o,t):Object.keys(t).forEach((e=>{De(o,e)||(o[e]=t[e])})):this.messages[e]=t}f(e,t,n){return this.formater.interpolate(e,t,n).join("")}t(e,t,n){let o=this.message;return"string"==typeof t?(t=Fe(t,this.messages))&&(o=this.messages[t]):n=t,De(o,e)?this.formater.interpolate(o[e],n).join(""):(console.warn(`Cannot translate the value of keypath ${e}. Use the value of keypath as default.`),e)}}function Re(e){return function(){try{return e.apply(e,arguments)}catch(Gu){console.error(Gu)}}}let Qe=1;const qe={};function ze(e,t,n){if("number"==typeof e){const o=qe[e];if(o)return o.keepAlive||delete qe[e],o.callback(t,n)}return t}const He="success",We="fail",$e="complete";function Ve(e,t={},{beforeAll:n,beforeSuccess:o}={}){C(t)||(t={});const{success:r,fail:i,complete:s}=function(e){const t={};for(const n in e){const o=e[n];S(o)&&(t[n]=Re(o),delete e[n])}return t}(t),a=S(r),c=S(i),l=S(s),u=Qe++;return function(e,t,n,o=!1){qe[e]={name:t,keepAlive:o,callback:n}}(u,e,(u=>{(u=u||{}).errMsg=function(e,t){return e&&-1!==e.indexOf(":fail")?t+e.substring(e.indexOf(":fail")):t+":ok"}(u.errMsg,e),S(n)&&n(u),u.errMsg===e+":ok"?(S(o)&&o(u,t),a&&r(u)):c&&i(u),l&&s(u)})),u}const Ke="success",Je="fail",Ye="complete",Ge={},Xe={};function Ze(e,t){return function(n){return e(n,t)||n}}function et(e,t,n){let o=!1;for(let r=0;re(t),catch(){}}}function tt(e,t={}){return[Ke,Je,Ye].forEach((n=>{const o=e[n];if(!v(o))return;const r=t[n];t[n]=function(e){et(o,e,t).then((e=>S(r)&&r(e)||e))}})),t}function nt(e,t){const n=[];v(Ge.returnValue)&&n.push(...Ge.returnValue);const o=Xe[e];return o&&v(o.returnValue)&&n.push(...o.returnValue),n.forEach((e=>{t=e(t)||t})),t}function ot(e){const t=Object.create(null);Object.keys(Ge).forEach((e=>{"returnValue"!==e&&(t[e]=Ge[e].slice())}));const n=Xe[e];return n&&Object.keys(n).forEach((e=>{"returnValue"!==e&&(t[e]=(t[e]||[]).concat(n[e]))})),t}function rt(e,t,n,o){const r=ot(e);if(r&&Object.keys(r).length){if(v(r.invoke)){return et(r.invoke,n).then((n=>t(tt(ot(e),n),...o)))}return t(tt(r,n),...o)}return t(n,...o)}function it(e,t){return(n={},...o)=>function(e){return!(!C(e)||![He,We,$e].find((t=>S(e[t]))))}(n)?nt(e,rt(e,t,n,o)):nt(e,new Promise(((r,i)=>{rt(e,t,g(n,{success:r,fail:i}),o)})))}function st(e,t,n,o){return ze(e,g({errMsg:t+":fail"+(n?" "+n:"")},o))}function at(e,t,n,o){if(o&&o.beforeInvoke){const e=o.beforeInvoke(t);if(A(e))return e}const r=function(e,t){const n=e[0];if(!t||!C(t.formatArgs)&&C(n))return;const o=t.formatArgs,r=Object.keys(o);for(let i=0;i{const r=Ve(e,n,o),i=at(0,[n],0,o);return i?st(r,e,i):t(n,{resolve:t=>function(e,t,n){return ze(e,g(n||{},{errMsg:t+":ok"}))}(r,e,t),reject:(t,n)=>st(r,e,function(e){return!e||A(e)?e:e.stack?(console.error(e.message+"\n"+e.stack),e.message):e}(t),n)})}}function lt(e,t,n,o){return function(e,t,n,o){return(...e)=>{const n=at(0,e,0,o);if(n)throw new Error(n);return t.apply(null,e)}}(0,t,0,o)}let ut=!1,ft=0,pt=0;function dt(){const{platform:e,pixelRatio:t,windowWidth:n}=wx.getSystemInfoSync();ft=n,pt=t,ut="ios"===e}const ht=lt(0,((e,t)=>{if(0===ft&&dt(),0===(e=Number(e)))return 0;let n=e/750*(t||ft);return n<0&&(n=-n),n=Math.floor(n+1e-4),0===n&&(n=1!==pt&&ut?.5:1),e<0?-n:n}));function gt(e,t){Object.keys(t).forEach((n=>{S(t[n])&&(e[n]=function(e,t){const n=t?e?e.concat(t):v(t)?t:[t]:e;return n?function(e){const t=[];for(let n=0;n{const o=e[n],r=t[n];v(o)&&S(r)&&m(o,r)}))}const yt=lt(0,((e,t)=>{A(e)&&C(t)?gt(Xe[e]||(Xe[e]={}),t):C(e)&>(Ge,e)})),bt=lt(0,((e,t)=>{A(e)?C(t)?mt(Xe[e],t):delete Xe[e]:C(e)&&mt(Ge,e)})),vt=new Ie,wt=lt(0,((e,t)=>(vt.on(e,t),()=>vt.off(e,t)))),xt=lt(0,((e,t)=>(vt.once(e,t),()=>vt.off(e,t)))),St=lt(0,((e,t)=>{e?(v(e)||(e=[e]),e.forEach((e=>vt.off(e,t)))):vt.e={}})),At=lt(0,((e,...t)=>{vt.emit(e,...t)}));let Tt,kt,Et;function Pt(e){try{return JSON.parse(e)}catch(Gu){}return e}const It=[];function Ct(e,t){It.forEach((n=>{n(e,t)})),It.length=0}const _t=it(Ot="getPushClientId",function(e,t,n,o){return ct(e,t,0,o)}(Ot,((e,{resolve:t,reject:n})=>{Promise.resolve().then((()=>{void 0===Et&&(Et=!1,Tt="",kt="uniPush is not enabled"),It.push(((e,o)=>{e?t({cid:e}):n(o)})),void 0!==Tt&&Ct(Tt,kt)}))}),0,Bt));var Ot,Bt;const jt=[],Lt=/^\$|getLocale|setLocale|sendNativeEvent|restoreGlobal|requireGlobal|getCurrentSubNVue|getMenuButtonBoundingClientRect|^report|interceptors|Interceptor$|getSubNVueById|requireNativePlugin|upx2px|hideKeyboard|canIUse|^create|Sync$|Manager$|base64ToArrayBuffer|arrayBufferToBase64|getDeviceInfo|getAppBaseInfo|getWindowInfo|getSystemSetting|getAppAuthorizeSetting/,Nt=/^create|Manager$/,Dt=["createBLEConnection"],Mt=["createBLEConnection"],Ft=/^on|^off/;function Ut(e){return Nt.test(e)&&-1===Dt.indexOf(e)}function Rt(e){return Lt.test(e)&&-1===Mt.indexOf(e)}function Qt(e){return!(Ut(e)||Rt(e)||function(e){return Ft.test(e)&&"onPush"!==e}(e))}function qt(e,t){return Qt(e)&&S(t)?function(n={},...o){return S(n.success)||S(n.fail)||S(n.complete)?nt(e,rt(e,t,n,o)):nt(e,new Promise(((r,i)=>{rt(e,t,g({},n,{success:r,fail:i}),o)})))}:t}Promise.prototype.finally||(Promise.prototype.finally=function(e){const t=this.constructor;return this.then((n=>t.resolve(e&&e()).then((()=>n))),(n=>t.resolve(e&&e()).then((()=>{throw n}))))});const zt=["success","fail","cancel","complete"];const Ht=()=>{const e=S(getApp)&&getApp({allowDefault:!0});return e&&e.$vm?e.$vm.$locale:Fe(wx.getSystemInfoSync().language)||Le},Wt=[];"undefined"!=typeof global&&(global.getLocale=Ht);const $t="__DC_STAT_UUID";let Vt;function Kt(e=wx){return function(t,n){Vt=Vt||e.getStorageSync($t),Vt||(Vt=Date.now()+""+Math.floor(1e7*Math.random()),wx.setStorage({key:$t,data:Vt})),n.deviceId=Vt}}function Jt(e,t){if(e.safeArea){const n=e.safeArea;t.safeAreaInsets={top:n.top,left:n.left,right:e.windowWidth-n.right,bottom:e.screenHeight-n.bottom}}}function Yt(e,t){let n=e.deviceType||"phone";{const e={ipad:"pad",windows:"pc",mac:"pc"},o=Object.keys(e),r=t.toLocaleLowerCase();for(let t=0;t{Jt(e,t),Kt()(e,t),function(e,t){const{brand:n="",model:o="",system:r="",language:i="",theme:s,version:a,platform:c,fontSizeSetting:l,SDKVersion:u,pixelRatio:f,deviceOrientation:p}=e;let d="",h="";d=r.split(" ")[0]||"",h=r.split(" ")[1]||"";let m=a,y=Yt(e,o),b=Gt(n),v=Zt(e),w=p,x=f,S=u;const A=i.replace(/_/g,"-"),T={appId:"",appName:"",appVersion:"1.0.0",appVersionCode:"100",appLanguage:Xt(A),uniCompileVersion:"3.8.12",uniRuntimeVersion:"3.8.12",uniPlatform:"mp-weixin",deviceBrand:b,deviceModel:o,deviceType:y,devicePixelRatio:x,deviceOrientation:w,osName:d.toLocaleLowerCase(),osVersion:h,hostTheme:s,hostVersion:m,hostLanguage:A,hostName:v,hostSDKVersion:S,hostFontSizeSetting:l,windowTop:0,windowBottom:0,osLanguage:void 0,osTheme:void 0,ua:void 0,hostPackageName:void 0,browserName:void 0,browserVersion:void 0};g(t,T)}(e,t)}},tn=en,nn={args(e,t){let n=parseInt(e.current);if(isNaN(n))return;const o=e.urls;if(!v(o))return;const r=o.length;return r?(n<0?n=0:n>=r&&(n=r-1),n>0?(t.current=o[n],t.urls=o.filter(((e,t)=>!(t{const{brand:n,model:o}=e;let r=Yt(e,o),i=Gt(n);Kt()(e,t),t=ye(g(t,{deviceType:r,deviceBrand:i,deviceModel:o}))}},sn={returnValue:(e,t)=>{const{version:n,language:o,SDKVersion:r,theme:i}=e;let s=Zt(e),a=o.replace(/_/g,"-");t=ye(g(t,{hostVersion:n,hostLanguage:a,hostName:s,hostSDKVersion:r,hostTheme:i,appId:"",appName:"",appVersion:"1.0.0",appVersionCode:"100",appLanguage:Xt(a)}))}},an={returnValue:(e,t)=>{Jt(e,t),t=ye(g(t,{windowTop:0,windowBottom:0}))}},cn={$on:wt,$off:St,$once:xt,$emit:At,upx2px:ht,interceptors:{},addInterceptor:yt,removeInterceptor:bt,onCreateVueApp:function(e){if(Te)return e(Te);ke.push(e)},invokeCreateVueAppHook:function(e){Te=e,ke.forEach((t=>t(e)))},getLocale:Ht,setLocale:e=>{const t=S(getApp)&&getApp();if(!t)return!1;return t.$vm.$locale!==e&&(t.$vm.$locale=e,Wt.forEach((t=>t({locale:e}))),!0)},onLocaleChange:e=>{-1===Wt.indexOf(e)&&Wt.push(e)},getPushClientId:_t,onPushMessage:e=>{-1===jt.indexOf(e)&&jt.push(e)},offPushMessage:e=>{if(e){const t=jt.indexOf(e);t>-1&&jt.splice(t,1)}else jt.length=0},invokePushCallback:function(e){if("enabled"===e.type)Et=!0;else if("clientId"===e.type)Tt=e.cid,kt=e.errMsg,Ct(Tt,e.errMsg);else if("pushMsg"===e.type){const t={type:"receive",data:Pt(e.message)};for(let e=0;e{t({type:"click",data:Pt(e.message)})}))}};const ln=["qy","env","error","version","lanDebug","cloud","serviceMarket","router","worklet","__webpack_require_UNI_MP_PLUGIN__"],un=["lanDebug","router","worklet"],fn=wx.getLaunchOptionsSync?wx.getLaunchOptionsSync():null;function pn(e){return(!fn||1154!==fn.scene||!un.includes(e))&&(ln.indexOf(e)>-1||"function"==typeof wx[e])}function dn(){const e={};for(const t in wx)pn(t)&&(e[t]=wx[t]);return"undefined"!=typeof globalThis&&"undefined"==typeof requireMiniProgram&&(globalThis.wx=e),e}const hn=["__route__","__wxExparserNodeId__","__wxWebviewId__"],gn=(mn={oauth:["weixin"],share:["weixin"],payment:["wxpay"],push:["weixin"]},function({service:e,success:t,fail:n,complete:o}){let r;mn[e]?(r={errMsg:"getProvider:ok",service:e,provider:mn[e]},S(t)&&t(r)):(r={errMsg:"getProvider:fail:服务["+e+"]不存在"},S(n)&&n(r)),S(o)&&o(r)});var mn;const yn=dn();let bn=yn.getAppBaseInfo&&yn.getAppBaseInfo();bn||(bn=yn.getSystemInfoSync());const vn=bn?bn.host:null,wn=vn&&"SAAASDK"===vn.env?yn.miniapp.shareVideoMessage:yn.shareVideoMessage;var xn=Object.freeze({__proto__:null,createSelectorQuery:function(){const e=yn.createSelectorQuery(),t=e.in;return e.in=function(e){return t.call(this,function(e){const t=Object.create(null);return hn.forEach((n=>{t[n]=e[n]})),t}(e))},e},getProvider:gn,shareVideoMessage:wn});const Sn={args(e,t){e.compressedHeight&&!t.compressHeight&&(t.compressHeight=e.compressedHeight),e.compressedWidth&&!t.compressWidth&&(t.compressWidth=e.compressedWidth)}};var An=Object.freeze({__proto__:null,compressImage:Sn,getAppAuthorizeSetting:{returnValue:function(e,t){const{locationReducedAccuracy:n}=e;t.locationAccuracy="unsupported",!0===n?t.locationAccuracy="reduced":!1===n&&(t.locationAccuracy="full")}},getAppBaseInfo:sn,getDeviceInfo:rn,getSystemInfo:en,getSystemInfoSync:tn,getWindowInfo:an,previewImage:nn,redirectTo:{},showActionSheet:on});const Tn=dn();var kn=function(e,t,n=wx){const o=function(e){function t(e,t,n){return function(r){return t(o(e,r,n))}}function n(e,n,o={},r={},i=!1){if(C(n)){const s=!0===i?n:{};S(o)&&(o=o(n,s)||{});for(const a in n)if(b(o,a)){let t=o[a];S(t)&&(t=t(n[a],n,s)),t?A(t)?s[t]=n[a]:C(t)&&(s[t.name?t.name:a]=t.value):console.warn(`微信小程序 ${e} 暂不支持 ${a}`)}else if(-1!==zt.indexOf(a)){const o=n[a];S(o)&&(s[a]=t(e,o,r))}else i||b(s,a)||(s[a]=n[a]);return s}return S(n)&&(n=t(e,n,r)),n}function o(t,o,r,i=!1){return S(e.returnValue)&&(o=e.returnValue(t,o)),n(t,o,r,{},i)}return function(t,r){if(!b(e,t))return r;const i=e[t];return i?function(e,r){let s=i;S(i)&&(s=i(e));const a=[e=n(t,e,s.args,s.returnValue)];void 0!==r&&a.push(r);const c=wx[s.name||t].apply(wx,a);return Rt(t)?o(t,c,s.returnValue,Ut(t)):c}:function(){console.error(`微信小程序 暂不支持${t}`)}}}(t);return new Proxy({},{get:(t,r)=>b(t,r)?t[r]:b(e,r)?qt(r,e[r]):b(cn,r)?qt(r,cn[r]):qt(r,o(r,n[r]))})}(xn,An,Tn);let En;class Pn{constructor(e=!1){this.detached=e,this._active=!0,this.effects=[],this.cleanups=[],this.parent=En,!e&&En&&(this.index=(En.scopes||(En.scopes=[])).push(this)-1)}get active(){return this._active}run(e){if(this._active){const t=En;try{return En=this,e()}finally{En=t}}}on(){En=this}off(){En=this.parent}stop(e){if(this._active){let t,n;for(t=0,n=this.effects.length;t{const t=new Set(e);return t.w=0,t.n=0,t},On=e=>(e.w&Nn)>0,Bn=e=>(e.n&Nn)>0,jn=new WeakMap;let Ln=0,Nn=1;let Dn;const Mn=Symbol(""),Fn=Symbol("");class Un{constructor(e,t=null,n){this.fn=e,this.scheduler=t,this.active=!0,this.deps=[],this.parent=void 0,function(e,t=En){t&&t.active&&t.effects.push(e)}(this,n)}run(){if(!this.active)return this.fn();let e=Dn,t=Qn;for(;e;){if(e===this)return;e=e.parent}try{return this.parent=Dn,Dn=this,Qn=!0,Nn=1<<++Ln,Ln<=30?(({deps:e})=>{if(e.length)for(let t=0;t{const{deps:t}=e;if(t.length){let n=0;for(let o=0;o{("length"===n||n>=e)&&a.push(t)}))}else switch(void 0!==n&&a.push(s.get(n)),t){case"add":v(e)?_(n)&&a.push(s.get("length")):(a.push(s.get(Mn)),w(e)&&a.push(s.get(Fn)));break;case"delete":v(e)||(a.push(s.get(Mn)),w(e)&&a.push(s.get(Fn)));break;case"set":w(e)&&a.push(s.get(Mn))}if(1===a.length)a[0]&&Kn(a[0]);else{const e=[];for(const t of a)t&&e.push(...t);Kn(_n(e))}}function Kn(e,t){const n=v(e)?e:[...e];for(const o of n)o.computed&&Jn(o);for(const o of n)o.computed||Jn(o)}function Jn(e,t){(e!==Dn||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}const Yn=e("__proto__,__v_isRef,__isVue"),Gn=new Set(Object.getOwnPropertyNames(Symbol).filter((e=>"arguments"!==e&&"caller"!==e)).map((e=>Symbol[e])).filter(T)),Xn=ro(),Zn=ro(!1,!0),eo=ro(!0),to=no();function no(){const e={};return["includes","indexOf","lastIndexOf"].forEach((t=>{e[t]=function(...e){const n=qo(this);for(let t=0,r=this.length;t{e[t]=function(...e){zn();const n=qo(this)[t].apply(this,e);return Hn(),n}})),e}function oo(e){const t=qo(this);return Wn(t,0,e),t.hasOwnProperty(e)}function ro(e=!1,t=!1){return function(n,o,r){if("__v_isReactive"===o)return!e;if("__v_isReadonly"===o)return e;if("__v_isShallow"===o)return t;if("__v_raw"===o&&r===(e?t?Lo:jo:t?Bo:Oo).get(n))return n;const i=v(n);if(!e){if(i&&b(to,o))return Reflect.get(to,o,r);if("hasOwnProperty"===o)return oo}const s=Reflect.get(n,o,r);return(T(o)?Gn.has(o):Yn(o))?s:(e||Wn(n,0,o),t?s:Ko(s)?i&&_(o)?s:s.value:k(s)?e?Mo(s):Do(s):s)}}function io(e=!1){return function(t,n,o,r){let i=t[n];if(Ro(i)&&Ko(i)&&!Ko(o))return!1;if(!e&&(Qo(o)||Ro(o)||(i=qo(i),o=qo(o)),!v(t)&&Ko(i)&&!Ko(o)))return i.value=o,!0;const s=v(t)&&_(n)?Number(n)!0,deleteProperty:(e,t)=>!0},co=g({},so,{get:Zn,set:io(!0)}),lo=e=>e,uo=e=>Reflect.getPrototypeOf(e);function fo(e,t,n=!1,o=!1){const r=qo(e=e.__v_raw),i=qo(t);n||(t!==i&&Wn(r,0,t),Wn(r,0,i));const{has:s}=uo(r),a=o?lo:n?Wo:Ho;return s.call(r,t)?a(e.get(t)):s.call(r,i)?a(e.get(i)):void(e!==r&&e.get(t))}function po(e,t=!1){const n=this.__v_raw,o=qo(n),r=qo(e);return t||(e!==r&&Wn(o,0,e),Wn(o,0,r)),e===r?n.has(e):n.has(e)||n.has(r)}function ho(e,t=!1){return e=e.__v_raw,!t&&Wn(qo(e),0,Mn),Reflect.get(e,"size",e)}function go(e){e=qo(e);const t=qo(this);return uo(t).has.call(t,e)||(t.add(e),Vn(t,"add",e,e)),this}function mo(e,t){t=qo(t);const n=qo(this),{has:o,get:r}=uo(n);let i=o.call(n,e);i||(e=qo(e),i=o.call(n,e));const s=r.call(n,e);return n.set(e,t),i?U(t,s)&&Vn(n,"set",e,t):Vn(n,"add",e,t),this}function yo(e){const t=qo(this),{has:n,get:o}=uo(t);let r=n.call(t,e);r||(e=qo(e),r=n.call(t,e)),o&&o.call(t,e);const i=t.delete(e);return r&&Vn(t,"delete",e,void 0),i}function bo(){const e=qo(this),t=0!==e.size,n=e.clear();return t&&Vn(e,"clear",void 0,void 0),n}function vo(e,t){return function(n,o){const r=this,i=r.__v_raw,s=qo(i),a=t?lo:e?Wo:Ho;return!e&&Wn(s,0,Mn),i.forEach(((e,t)=>n.call(o,a(e),a(t),r)))}}function wo(e,t,n){return function(...o){const r=this.__v_raw,i=qo(r),s=w(i),a="entries"===e||e===Symbol.iterator&&s,c="keys"===e&&s,l=r[e](...o),u=n?lo:t?Wo:Ho;return!t&&Wn(i,0,c?Fn:Mn),{next(){const{value:e,done:t}=l.next();return t?{value:e,done:t}:{value:a?[u(e[0]),u(e[1])]:u(e),done:t}},[Symbol.iterator](){return this}}}}function xo(e){return function(...t){return"delete"!==e&&this}}function So(){const e={get(e){return fo(this,e)},get size(){return ho(this)},has:po,add:go,set:mo,delete:yo,clear:bo,forEach:vo(!1,!1)},t={get(e){return fo(this,e,!1,!0)},get size(){return ho(this)},has:po,add:go,set:mo,delete:yo,clear:bo,forEach:vo(!1,!0)},n={get(e){return fo(this,e,!0)},get size(){return ho(this,!0)},has(e){return po.call(this,e,!0)},add:xo("add"),set:xo("set"),delete:xo("delete"),clear:xo("clear"),forEach:vo(!0,!1)},o={get(e){return fo(this,e,!0,!0)},get size(){return ho(this,!0)},has(e){return po.call(this,e,!0)},add:xo("add"),set:xo("set"),delete:xo("delete"),clear:xo("clear"),forEach:vo(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach((r=>{e[r]=wo(r,!1,!1),n[r]=wo(r,!0,!1),t[r]=wo(r,!1,!0),o[r]=wo(r,!0,!0)})),[e,n,t,o]}const[Ao,To,ko,Eo]=So();function Po(e,t){const n=t?e?Eo:ko:e?To:Ao;return(t,o,r)=>"__v_isReactive"===o?!e:"__v_isReadonly"===o?e:"__v_raw"===o?t:Reflect.get(b(n,o)&&o in t?n:t,o,r)}const Io={get:Po(!1,!1)},Co={get:Po(!1,!0)},_o={get:Po(!0,!1)},Oo=new WeakMap,Bo=new WeakMap,jo=new WeakMap,Lo=new WeakMap;function No(e){return e.__v_skip||!Object.isExtensible(e)?0:function(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}((e=>I(e).slice(8,-1))(e))}function Do(e){return Ro(e)?e:Fo(e,!1,so,Io,Oo)}function Mo(e){return Fo(e,!0,ao,_o,jo)}function Fo(e,t,n,o,r){if(!k(e))return e;if(e.__v_raw&&(!t||!e.__v_isReactive))return e;const i=r.get(e);if(i)return i;const s=No(e);if(0===s)return e;const a=new Proxy(e,2===s?o:n);return r.set(e,a),a}function Uo(e){return Ro(e)?Uo(e.__v_raw):!(!e||!e.__v_isReactive)}function Ro(e){return!(!e||!e.__v_isReadonly)}function Qo(e){return!(!e||!e.__v_isShallow)}function qo(e){const t=e&&e.__v_raw;return t?qo(t):e}function zo(e){return((e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})})(e,"__v_skip",!0),e}const Ho=e=>k(e)?Do(e):e,Wo=e=>k(e)?Mo(e):e;function $o(e){Qn&&Dn&&$n((e=qo(e)).dep||(e.dep=_n()))}function Vo(e,t){const n=(e=qo(e)).dep;n&&Kn(n)}function Ko(e){return!(!e||!0!==e.__v_isRef)}function Jo(e){return function(e,t){if(Ko(e))return e;return new Yo(e,t)}(e,!1)}class Yo{constructor(e,t){this.__v_isShallow=t,this.dep=void 0,this.__v_isRef=!0,this._rawValue=t?e:qo(e),this._value=t?e:Ho(e)}get value(){return $o(this),this._value}set value(e){const t=this.__v_isShallow||Qo(e)||Ro(e);e=t?e:qo(e),U(e,this._rawValue)&&(this._rawValue=e,this._value=t?e:Ho(e),Vo(this))}}function Go(e){return Ko(e)?e.value:e}const Xo={get:(e,t,n)=>Go(Reflect.get(e,t,n)),set:(e,t,n,o)=>{const r=e[t];return Ko(r)&&!Ko(n)?(r.value=n,!0):Reflect.set(e,t,n,o)}};function Zo(e){return Uo(e)?e:new Proxy(e,Xo)}class er{constructor(e,t,n){this._object=e,this._key=t,this._defaultValue=n,this.__v_isRef=!0}get value(){const e=this._object[this._key];return void 0===e?this._defaultValue:e}set value(e){this._object[this._key]=e}get dep(){return e=qo(this._object),t=this._key,null===(n=jn.get(e))||void 0===n?void 0:n.get(t);var e,t,n}}function tr(e,t,n){const o=e[t];return Ko(o)?o:new er(e,t,n)}var nr;class or{constructor(e,t,n,o){this._setter=t,this.dep=void 0,this.__v_isRef=!0,this[nr]=!1,this._dirty=!0,this.effect=new Un(e,(()=>{this._dirty||(this._dirty=!0,Vo(this))})),this.effect.computed=this,this.effect.active=this._cacheable=!o,this.__v_isReadonly=n}get value(){const e=qo(this);return $o(e),!e._dirty&&e._cacheable||(e._dirty=!1,e._value=e.effect.run()),e._value}set value(e){this._setter(e)}}function rr(e,t,n,o){let r;try{r=o?e(...o):e()}catch(i){sr(i,t,n)}return r}function ir(e,t,n,o){if(S(e)){const r=rr(e,t,n,o);return r&&E(r)&&r.catch((e=>{sr(e,t,n)})),r}const r=[];for(let i=0;i>>1;xr(lr[o])null==e.id?1/0:e.id,Sr=(e,t)=>{const n=xr(e)-xr(t);if(0===n){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function Ar(e){cr=!1,ar=!0,lr.sort(Sr);try{for(ur=0;urxr(e)-xr(t))),dr=0;drA(e)?e.trim():e))),t&&(r=n.map(Q))}let a,l=o[a=F(t)]||o[a=F(L(t))];!l&&i&&(l=o[a=F(D(t))]),l&&ir(l,e,6,r);const u=o[a+"Once"];if(u){if(e.emitted){if(e.emitted[a])return}else e.emitted={};e.emitted[a]=!0,ir(u,e,6,r)}}function kr(e,t,n=!1){const o=t.emitsCache,r=o.get(e);if(void 0!==r)return r;const i=e.emits;let s={},a=!1;if(!S(e)){const o=e=>{const n=kr(e,t,!0);n&&(a=!0,g(s,n))};!n&&t.mixins.length&&t.mixins.forEach(o),e.extends&&o(e.extends),e.mixins&&e.mixins.forEach(o)}return i||a?(v(i)?i.forEach((e=>s[e]=null)):g(s,i),k(e)&&o.set(e,s),s):(k(e)&&o.set(e,null),null)}function Er(e,t){return!(!e||!d(t))&&(t=t.slice(2).replace(/Once$/,""),b(e,t[0].toLowerCase()+t.slice(1))||b(e,D(t))||b(e,t))}let Pr=null;function Ir(e){const t=Pr;return Pr=e,e&&e.type.__scopeId,t}function Cr(e,t,n=!1){const o=_i||Pr;if(o){const r=null==o.parent?o.vnode.appContext&&o.vnode.appContext.provides:o.parent.provides;if(r&&e in r)return r[e];if(arguments.length>1)return n&&S(t)?t.call(o.proxy):t}}const _r={};function Or(e,t,n){return Br(e,t,n)}function Br(e,t,{immediate:n,deep:o,flush:r,onTrack:i,onTrigger:s}=c){const a=Cn()===(null==_i?void 0:_i.scope)?_i:null;let l,f,p=!1,d=!1;if(Ko(e)?(l=()=>e.value,p=Qo(e)):Uo(e)?(l=()=>e,o=!0):v(e)?(d=!0,p=e.some((e=>Uo(e)||Qo(e))),l=()=>e.map((e=>Ko(e)?e.value:Uo(e)?Nr(e):S(e)?rr(e,a,2):void 0))):l=S(e)?t?()=>rr(e,a,2):()=>{if(!a||!a.isUnmounted)return f&&f(),ir(e,a,3,[h])}:u,t&&o){const e=l;l=()=>Nr(e())}let h=e=>{f=w.onStop=()=>{rr(e,a,4)}},g=d?new Array(e.length).fill(_r):_r;const y=()=>{if(w.active)if(t){const e=w.run();(o||p||(d?e.some(((e,t)=>U(e,g[t]))):U(e,g)))&&(f&&f(),ir(t,a,3,[e,g===_r?void 0:d&&g[0]===_r?[]:g,h]),g=e)}else w.run()};let b;y.allowRecurse=!!t,"sync"===r?b=y:"post"===r?b=()=>ki(y,a&&a.suspense):(y.pre=!0,a&&(y.id=a.uid),b=()=>yr(y));const w=new Un(l,b);t?n?y():g=w.run():"post"===r?ki(w.run.bind(w),a&&a.suspense):w.run();return()=>{w.stop(),a&&a.scope&&m(a.scope.effects,w)}}function jr(e,t,n){const o=this.proxy,r=A(e)?e.includes(".")?Lr(o,e):()=>o[e]:e.bind(o,o);let i;S(t)?i=t:(i=t.handler,n=t);const s=_i;Bi(this);const a=Br(r,i.bind(o),n);return s?Bi(s):ji(),a}function Lr(e,t){const n=t.split(".");return()=>{let t=e;for(let e=0;e{Nr(e,t)}));else if(C(e))for(const n in e)Nr(e[n],t);return e}function Dr(e,t){Fr(e,"a",t)}function Mr(e,t){Fr(e,"da",t)}function Fr(e,t,n=_i){const o=e.__wdc||(e.__wdc=()=>{let t=n;for(;t;){if(t.isDeactivated)return;t=t.parent}return e()});if(Rr(t,o,n),n){let e=n.parent;for(;e&&e.parent;)e.parent.vnode.type.__isKeepAlive&&Ur(o,t,n,e),e=e.parent}}function Ur(e,t,n,o){const r=Rr(t,e,o,!0);Vr((()=>{m(o[t],r)}),n)}function Rr(e,t,n=_i,o=!1){if(n){(function(e){return we.indexOf(e)>-1})(e)&&(n=n.root);const r=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...o)=>{if(n.isUnmounted)return;zn(),Bi(n);const r=ir(t,n,e,o);return ji(),Hn(),r});return o?r.unshift(i):r.push(i),i}}const Qr=e=>(t,n=_i)=>(!Ni||"sp"===e)&&Rr(e,((...e)=>t(...e)),n),qr=Qr("bm"),zr=Qr("m"),Hr=Qr("bu"),Wr=Qr("u"),$r=Qr("bum"),Vr=Qr("um"),Kr=Qr("sp"),Jr=Qr("rtg"),Yr=Qr("rtc");function Gr(e,t=_i){Rr("ec",e,t)}const Xr="components";function Zr(e,t){return e&&(e[t]||e[L(t)]||e[M(L(t))])}const ei=e=>e?Li(e)?Fi(e)||e.proxy:ei(e.parent):null,ti=g(Object.create(null),{$:e=>e,$el:e=>e.__$el||(e.__$el={}),$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>ei(e.parent),$root:e=>ei(e.root),$emit:e=>e.emit,$options:e=>ci(e),$forceUpdate:e=>e.f||(e.f=()=>yr(e.update)),$watch:e=>jr.bind(e)}),ni=(e,t)=>e!==c&&!e.__isScriptSetup&&b(e,t),oi={get({_:e},t){const{ctx:n,setupState:o,data:r,props:i,accessCache:s,type:a,appContext:l}=e;let u;if("$"!==t[0]){const a=s[t];if(void 0!==a)switch(a){case 1:return o[t];case 2:return r[t];case 4:return n[t];case 3:return i[t]}else{if(ni(o,t))return s[t]=1,o[t];if(r!==c&&b(r,t))return s[t]=2,r[t];if((u=e.propsOptions[0])&&b(u,t))return s[t]=3,i[t];if(n!==c&&b(n,t))return s[t]=4,n[t];ri&&(s[t]=0)}}const f=ti[t];let p,d;return f?("$attrs"===t&&Wn(e,0,t),f(e)):(p=a.__cssModules)&&(p=p[t])?p:n!==c&&b(n,t)?(s[t]=4,n[t]):(d=l.config.globalProperties,b(d,t)?d[t]:void 0)},set({_:e},t,n){const{data:o,setupState:r,ctx:i}=e;return ni(r,t)?(r[t]=n,!0):o!==c&&b(o,t)?(o[t]=n,!0):!b(e.props,t)&&(("$"!==t[0]||!(t.slice(1)in e))&&(i[t]=n,!0))},has({_:{data:e,setupState:t,accessCache:n,ctx:o,appContext:r,propsOptions:i}},s){let a;return!!n[s]||e!==c&&b(e,s)||ni(t,s)||(a=i[0])&&b(a,s)||b(o,s)||b(ti,s)||b(r.config.globalProperties,s)},defineProperty(e,t,n){return null!=n.get?e._.accessCache[t]=0:b(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};let ri=!0;function ii(e){const t=ci(e),n=e.proxy,o=e.ctx;ri=!1,t.beforeCreate&&si(t.beforeCreate,e,"bc");const{data:r,computed:i,methods:s,watch:a,provide:c,inject:l,created:f,beforeMount:p,mounted:d,beforeUpdate:h,updated:g,activated:m,deactivated:y,beforeDestroy:b,beforeUnmount:w,destroyed:x,unmounted:A,render:T,renderTracked:E,renderTriggered:P,errorCaptured:I,serverPrefetch:C,expose:_,inheritAttrs:O,components:B,directives:j,filters:L}=t;if(l&&function(e,t,n=u,o=!1){v(e)&&(e=pi(e));for(const r in e){const n=e[r];let i;i=k(n)?"default"in n?Cr(n.from||r,n.default,!0):Cr(n.from||r):Cr(n),Ko(i)&&o?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>i.value,set:e=>i.value=e}):t[r]=i}}(l,o,null,e.appContext.config.unwrapInjectedRef),s)for(const u in s){const e=s[u];S(e)&&(o[u]=e.bind(n))}if(r){const t=r.call(n,n);k(t)&&(e.data=Do(t))}if(ri=!0,i)for(const v in i){const e=i[v],t=S(e)?e.bind(n,n):S(e.get)?e.get.bind(n,n):u,r=!S(e)&&S(e.set)?e.set.bind(n):u,s=Ui({get:t,set:r});Object.defineProperty(o,v,{enumerable:!0,configurable:!0,get:()=>s.value,set:e=>s.value=e})}if(a)for(const u in a)ai(a[u],o,n,u);if(c){const e=S(c)?c.call(n):c;Reflect.ownKeys(e).forEach((t=>{!function(e,t){if(_i){let n=_i.provides;const o=_i.parent&&_i.parent.provides;o===n&&(n=_i.provides=Object.create(o)),n[e]=t,"app"===_i.type.mpType&&_i.appContext.app.provide(e,t)}}(t,e[t])}))}function N(e,t){v(t)?t.forEach((t=>e(t.bind(n)))):t&&e(t.bind(n))}if(f&&si(f,e,"c"),N(qr,p),N(zr,d),N(Hr,h),N(Wr,g),N(Dr,m),N(Mr,y),N(Gr,I),N(Yr,E),N(Jr,P),N($r,w),N(Vr,A),N(Kr,C),v(_))if(_.length){const t=e.exposed||(e.exposed={});_.forEach((e=>{Object.defineProperty(t,e,{get:()=>n[e],set:t=>n[e]=t})}))}else e.exposed||(e.exposed={});T&&e.render===u&&(e.render=T),null!=O&&(e.inheritAttrs=O),B&&(e.components=B),j&&(e.directives=j),e.ctx.$onApplyOptions&&e.ctx.$onApplyOptions(t,e,n)}function si(e,t,n){ir(v(e)?e.map((e=>e.bind(t.proxy))):e.bind(t.proxy),t,n)}function ai(e,t,n,o){const r=o.includes(".")?Lr(n,o):()=>n[o];if(A(e)){const n=t[e];S(n)&&Or(r,n)}else if(S(e))Or(r,e.bind(n));else if(k(e))if(v(e))e.forEach((e=>ai(e,t,n,o)));else{const o=S(e.handler)?e.handler.bind(n):t[e.handler];S(o)&&Or(r,o,e)}}function ci(e){const t=e.type,{mixins:n,extends:o}=t,{mixins:r,optionsCache:i,config:{optionMergeStrategies:s}}=e.appContext,a=i.get(t);let c;return a?c=a:r.length||n||o?(c={},r.length&&r.forEach((e=>li(c,e,s,!0))),li(c,t,s)):c=t,k(t)&&i.set(t,c),c}function li(e,t,n,o=!1){const{mixins:r,extends:i}=t;i&&li(e,i,n,!0),r&&r.forEach((t=>li(e,t,n,!0)));for(const s in t)if(o&&"expose"===s);else{const o=ui[s]||n&&n[s];e[s]=o?o(e[s],t[s]):t[s]}return e}const ui={data:fi,props:hi,emits:hi,methods:hi,computed:hi,beforeCreate:di,created:di,beforeMount:di,mounted:di,beforeUpdate:di,updated:di,beforeDestroy:di,beforeUnmount:di,destroyed:di,unmounted:di,activated:di,deactivated:di,errorCaptured:di,serverPrefetch:di,components:hi,directives:hi,watch:function(e,t){if(!e)return t;if(!t)return e;const n=g(Object.create(null),e);for(const o in t)n[o]=di(e[o],t[o]);return n},provide:fi,inject:function(e,t){return hi(pi(e),pi(t))}};function fi(e,t){return t?e?function(){return g(S(e)?e.call(this,this):e,S(t)?t.call(this,this):t)}:t:e}function pi(e){if(v(e)){const t={};for(let n=0;n{u=!0;const[n,o]=bi(e,t,!0);g(s,n),o&&a.push(...o)};!n&&t.mixins.length&&t.mixins.forEach(o),e.extends&&o(e.extends),e.mixins&&e.mixins.forEach(o)}if(!i&&!u)return k(e)&&o.set(e,l),l;if(v(i))for(let l=0;l-1,n[1]=o<0||t-1||b(n,"default"))&&a.push(e)}}}const f=[s,a];return k(e)&&o.set(e,f),f}function vi(e){return"$"!==e[0]}function wi(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:null===e?"null":""}function xi(e,t){return wi(e)===wi(t)}function Si(e,t){return v(t)?t.findIndex((t=>xi(t,e))):S(t)&&xi(t,e)?0:-1}function Ai(){return{app:null,config:{isNativeTag:f,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let Ti=0;const ki=vr;function Ei(e){return e?Uo(t=e)||Ro(t)||"__vInternal"in e?g({},e):e:null;var t}const Pi=Ai();let Ii=0;function Ci(e,t,n){const o=e.type,r=(t?t.appContext:e.appContext)||Pi,i={uid:Ii++,vnode:e,type:o,parent:t,appContext:r,root:null,next:null,subTree:null,effect:null,update:null,scope:new Pn(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(r.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:bi(o,r),emitsOptions:kr(o,r),emit:null,emitted:null,propsDefaults:c,inheritAttrs:o.inheritAttrs,ctx:c,data:c,props:c,attrs:c,slots:c,refs:c,setupState:c,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return i.ctx={_:i},i.root=t?t.root:i,i.emit=Tr.bind(null,i),e.ce&&e.ce(i),i}let _i=null;const Oi=()=>_i||Pr,Bi=e=>{_i=e,e.scope.on()},ji=()=>{_i&&_i.scope.off(),_i=null};function Li(e){return 4&e.vnode.shapeFlag}let Ni=!1;function Di(e,t=!1){Ni=t;const{props:n}=e.vnode,o=Li(e);gi(e,n,o,t);const r=o?function(e){const t=e.type;e.accessCache=Object.create(null),e.proxy=zo(new Proxy(e.ctx,oi));const{setup:n}=t;if(n){const t=e.setupContext=n.length>1?function(e){const t=t=>{e.exposed=t||{}};let n;return{get attrs(){return n||(n=function(e){return new Proxy(e.attrs,{get:(t,n)=>(Wn(e,0,"$attrs"),t[n])})}(e))},slots:e.slots,emit:e.emit,expose:t}}(e):null;Bi(e),zn();const o=rr(n,e,0,[e.props,t]);Hn(),ji(),E(o)?o.then(ji,ji):function(e,t){S(t)?e.render=t:k(t)&&(e.setupState=Zo(t));Mi(e)}(e,o)}else Mi(e)}(e):void 0;return Ni=!1,r}function Mi(e,t,n){const o=e.type;e.render||(e.render=o.render||u),Bi(e),zn(),ii(e),Hn(),ji()}function Fi(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(Zo(zo(e.exposed)),{get:(t,n)=>n in t?t[n]:e.proxy[n],has:(e,t)=>t in e||t in ti}))}const Ui=(e,t)=>function(e,t,n=!1){let o,r;const i=S(e);return i?(o=e,r=u):(o=e.get,r=e.set),new or(o,r,i||!r,n)}(e,0,Ni),Ri="3.2.47";function Qi(e){return Go(e)}const qi="[object Array]",zi="[object Object]";function Hi(e,t){const n={};return Wi(e,t),$i(e,t,"",n),n}function Wi(e,t){if((e=Qi(e))===t)return;const n=I(e),o=I(t);if(n==zi&&o==zi)for(let r in t){const n=e[r];void 0===n?e[r]=null:Wi(n,t[r])}else n==qi&&o==qi&&e.length>=t.length&&t.forEach(((t,n)=>{Wi(e[n],t)}))}function $i(e,t,n,o){if((e=Qi(e))===t)return;const r=I(e),i=I(t);if(r==zi)if(i!=zi||Object.keys(e).length{$i(e,i[t],(""==n?"":n+".")+s+"["+t+"]",o)}));else if(a==zi)if(c!=zi||Object.keys(r).length{$i(e,t[r],n+"["+r+"]",o)})):Vi(o,n,e)}function Vi(e,t,n){e[t]=n}function Ki(e){const t=e.ctx.__next_tick_callbacks;if(t&&t.length){const e=t.slice(0);t.length=0;for(let t=0;t{t?rr(t.bind(e.proxy),e,14):o&&o(e.proxy)})),new Promise((e=>{o=e}))}function Yi(e,t){const n=typeof(e=Qi(e));if("object"===n&&null!==e){let n=t.get(e);if(void 0!==n)return n;if(v(e)){const o=e.length;n=new Array(o),t.set(e,n);for(let r=0;r{o[e]=n[e]})),o}(r,i));Object.keys(s).length?(o.__next_tick_pending=!0,r.setData(s,(()=>{o.__next_tick_pending=!1,Ki(e)})),wr()):Ki(e)}}function Zi(e,t,n){t.appContext.config.globalProperties.$applyOptions(e,t,n);const o=e.computed;if(o){const e=Object.keys(o);if(e.length){const n=t.ctx;n.$computedKeys||(n.$computedKeys=[]),n.$computedKeys.push(...e)}}delete t.ctx.$onApplyOptions}function es(e,t=!1){const{setupState:n,$templateRefs:o,ctx:{$scope:r,$mpPlatform:i}}=e;if("mp-alipay"===i)return;if(!o||!r)return;if(t)return o.forEach((e=>ts(e,null,n)));const s="mp-baidu"===i||"mp-toutiao"===i,a=e=>{const t=(r.selectAllComponents(".r")||[]).concat(r.selectAllComponents(".r-i-f")||[]);return e.filter((e=>{const o=function(e,t){const n=e.find((e=>e&&(e.properties||e.props).uI===t));if(n){const e=n.$vm;return e?Fi(e.$)||e:function(e){k(e)&&zo(e);return e}(n)}return null}(t,e.i);return!(!s||null!==o)||(ts(e,o,n),!1)}))},c=()=>{const t=a(o);t.length&&e.proxy&&e.proxy.$scope&&e.proxy.$scope.setData({r1:1},(()=>{a(t)}))};r._$setRef?r._$setRef(c):Ji(e,c)}function ts({r:e,f:t},n,o){if(S(e))e(n,{});else{const r=A(e),i=Ko(e);if(r||i)if(t){if(!i)return;v(e.value)||(e.value=[]);const t=e.value;if(-1===t.indexOf(n)){if(t.push(n),!n)return;$r((()=>m(t,n)),n.$)}}else r?b(o,e)&&(o[e]=n):Ko(e)&&(e.value=n)}}var ns,os;(os=ns||(ns={})).APP="app",os.PAGE="page",os.COMPONENT="component";const rs=vr;function is(e,t){const n=e.component=Ci(e,t.parentComponent,null);return n.ctx.$onApplyOptions=Zi,n.ctx.$children=[],"app"===t.mpType&&(n.render=u),t.onBeforeSetup&&t.onBeforeSetup(n,t),Di(n),t.parentComponent&&n.proxy&&t.parentComponent.ctx.$children.push(Fi(n)||n.proxy),function(e){const t=us.bind(e);e.$updateScopedSlots=()=>mr((()=>yr(t)));const n=()=>{if(e.isMounted){const{next:t,bu:n,u:o}=e;fs(e,!1),ls(),n&&R(n),fs(e,!0),Xi(e,as(e)),o&&rs(o)}else $r((()=>{es(e,!0)}),e),Xi(e,as(e))},o=e.effect=new Un(n,(()=>yr(e.update)),e.scope),r=e.update=o.run.bind(o);r.id=e.uid,fs(e,!0),r()}(n),n.proxy}const ss=e=>{let t;for(const n in e)("class"===n||"style"===n||d(n))&&((t||(t={}))[n]=e[n]);return t};function as(e){const{type:t,vnode:n,proxy:o,withProxy:r,props:i,propsOptions:[s],slots:a,attrs:c,emit:l,render:u,renderCache:f,data:p,setupState:d,ctx:h,uid:g,appContext:{app:{config:{globalProperties:{pruneComponentPropsCache:m}}}},inheritAttrs:y}=e;let b;e.$templateRefs=[],e.$ei=0,m(g),e.__counter=0===e.__counter?1:0;const v=Ir(e);try{if(4&n.shapeFlag){cs(y,i,s,c);const e=r||o;b=u.call(e,e,f,i,d,p,h)}else{cs(y,i,s,t.props?c:ss(c));const e=t;b=e.length>1?e(i,{attrs:c,slots:a,emit:l}):e(i,null)}}catch(w){sr(w,e,1),b=!1}return es(e),Ir(v),b}function cs(e,t,n,o){if(t&&o&&!1!==e){const e=Object.keys(o).filter((e=>"class"!==e&&"style"!==e));if(!e.length)return;n&&e.some(h)?e.forEach((e=>{h(e)&&e.slice(9)in n||(t[e]=o[e])})):e.forEach((e=>t[e]=o[e]))}}const ls=e=>{zn(),wr(),Hn()};function us(){const e=this.$scopedSlotsData;if(!e||0===e.length)return;const t=this.ctx.$scope,n=t.data,o=Object.create(null);e.forEach((({path:e,index:t,data:r})=>{const i=me(n,e),s=A(t)?`${e}.${t}`:`${e}[${t}]`;if(void 0===i||void 0===i[t])o[s]=r;else{const e=Hi(r,i[t]);Object.keys(e).forEach((t=>{o[s+"."+t]=e[t]}))}})),e.length=0,Object.keys(o).length&&t.setData(o)}function fs({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}const ps=function(e,t=null){S(e)||(e=Object.assign({},e)),null==t||k(t)||(t=null);const n=Ai(),o=new Set,r=n.app={_uid:Ti++,_component:e,_props:t,_container:null,_context:n,_instance:null,version:Ri,get config(){return n.config},set config(e){},use:(e,...t)=>(o.has(e)||(e&&S(e.install)?(o.add(e),e.install(r,...t)):S(e)&&(o.add(e),e(r,...t))),r),mixin:e=>(n.mixins.includes(e)||n.mixins.push(e),r),component:(e,t)=>t?(n.components[e]=t,r):n.components[e],directive:(e,t)=>t?(n.directives[e]=t,r):n.directives[e],mount(){},unmount(){},provide:(e,t)=>(n.provides[e]=t,r)};return r};function ds(e,t=null){("undefined"!=typeof window?window:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof my?my:void 0).__VUE__=!0;const n=ps(e,t),o=n._context;o.config.globalProperties.$nextTick=function(e){return Ji(this.$,e)};const r=e=>(e.appContext=o,e.shapeFlag=6,e),i=function(e,t){return is(r(e),t)},s=function(e){return e&&function(e){const{bum:t,scope:n,update:o,um:r}=e;t&&R(t),n.stop(),o&&(o.active=!1),r&&rs(r),rs((()=>{e.isUnmounted=!0}))}(e.$)};return n.mount=function(){e.render=u;const t=is(r({type:e}),{mpType:ns.APP,mpInstance:null,parentComponent:null,slots:[],props:null});return n._instance=t.$,t.$app=n,t.$createComponent=i,t.$destroyComponent=s,o.$appInstance=t,t},n.unmount=function(){},n}function hs(e,t,n,o){S(t)&&Rr(e,t.bind(n),o)}function gs(e,t,n){!function(e,t,n){const o=e.mpType||n.$mpType;o&&"component"!==o&&Object.keys(e).forEach((o=>{if(Ae(o,e[o],!1)){const r=e[o];v(r)?r.forEach((e=>hs(o,e,n,t))):hs(o,r,n,t)}}))}(e,t,n)}function ms(e,t,n){return e[t]=n}function ys(e){return function(t,n,o){if(!n)throw t;const r=e._instance;if(!r||!r.proxy)throw t;r.proxy.$callHook(W,t)}}function bs(e,t){return e?[...new Set([].concat(e,t))]:t}let vs;const ws="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",xs=/^(?:[A-Za-z\d+/]{4})*?(?:[A-Za-z\d+/]{2}(?:==)?|[A-Za-z\d+/]{3}=?)?$/;function Ss(){const e=kn.getStorageSync("uni_id_token")||"",t=e.split(".");if(!e||3!==t.length)return{uid:null,role:[],permission:[],tokenExpired:0};let n;try{n=JSON.parse((o=t[1],decodeURIComponent(vs(o).split("").map((function(e){return"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2)})).join(""))))}catch(r){throw new Error("获取当前用户信息出错,详细错误信息为:"+r.message)}var o;return n.tokenExpired=1e3*n.exp,delete n.exp,delete n.iat,n}function As(e){const t=e._context.config;var n;t.errorHandler=Ee(e,ys),n=t.optionMergeStrategies,xe.forEach((e=>{n[e]=bs}));const o=t.globalProperties;!function(e){e.uniIDHasRole=function(e){const{role:t}=Ss();return t.indexOf(e)>-1},e.uniIDHasPermission=function(e){const{permission:t}=Ss();return this.uniIDHasRole("admin")||t.indexOf(e)>-1},e.uniIDTokenValid=function(){const{tokenExpired:e}=Ss();return e>Date.now()}}(o),o.$set=ms,o.$applyOptions=gs,kn.invokeCreateVueAppHook(e)}vs="function"!=typeof atob?function(e){if(e=String(e).replace(/[\t\n\f\r ]+/g,""),!xs.test(e))throw new Error("Failed to execute 'atob' on 'Window': The string to be decoded is not correctly encoded.");var t;e+="==".slice(2-(3&e.length));for(var n,o,r="",i=0;i>16&255):64===o?String.fromCharCode(t>>16&255,t>>8&255):String.fromCharCode(t>>16&255,t>>8&255,255&t);return r}:atob;const Ts=Object.create(null);function ks(e){delete Ts[e]}function Es(e){if(!e)return;const[t,n]=e.split(",");return Ts[t]?Ts[t][parseInt(n)]:void 0}var Ps={install(e){As(e),e.config.globalProperties.pruneComponentPropsCache=ks;const t=e.mount;e.mount=function(n){const o=t.call(e,n),r=function(){const e="createApp";if("undefined"!=typeof global)return global[e];if("undefined"!=typeof my)return my[e]}();return r?r(o):"undefined"!=typeof createMiniProgramApp&&createMiniProgramApp(o),o}}};function Is(e,t){const n=Oi(),o=n.ctx,r=void 0===t||"mp-weixin"!==o.$mpPlatform&&"mp-qq"!==o.$mpPlatform||!A(t)&&"number"!=typeof t?"":"_"+t,i="e"+n.$ei+++r,s=o.$scope;if(!e)return delete s[i],i;const a=s[i];return a?a.value=e:s[i]=function(e,t){const n=e=>{var o;(o=e).type&&o.target&&(o.preventDefault=u,o.stopPropagation=u,o.stopImmediatePropagation=u,b(o,"detail")||(o.detail={}),b(o,"markerId")&&(o.detail="object"==typeof o.detail?o.detail:{},o.detail.markerId=o.markerId),C(o.detail)&&b(o.detail,"checked")&&!b(o.detail,"value")&&(o.detail.value=o.detail.checked),C(o.detail)&&(o.target=g({},o.target,o.detail)));let r=[e];e.detail&&e.detail.__args__&&(r=e.detail.__args__);const i=n.value,s=()=>ir(function(e,t){if(v(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n&&n.call(e),e._stopped=!0},t.map((e=>t=>!t._stopped&&e(t)))}return t}(e,i),t,5,r),a=e.target,c=!!a&&(!!a.dataset&&"true"===String(a.dataset.eventsync));if(!Cs.includes(e.type)||c){const t=s();if("input"===e.type&&(v(t)||E(t)))return;return t}setTimeout(s)};return n.value=e,n}(e,n),i}const Cs=["tap","longpress","longtap","transitionend","animationstart","animationiteration","animationend","touchforcechange"];function _s(e,t={},n){const o=Oi(),{parent:r,isMounted:i,ctx:{$scope:s}}=o,a=(s.properties||s.props).uI;if(!a)return;if(!r&&!i)return void zr((()=>{_s(e,t,n)}),o);const c=function(e,t){let n=t.parent;for(;n;){const t=n.$ssi;if(t&&t[e])return t[e];n=n.parent}}(a,o);c&&c(e,t,n)}function Os(e){return A(e)?e:function(e){let t="";if(!e||A(e))return t;for(const n in e)t+=`${n.startsWith("--")?n:D(n)}:${e[n]};`;return t}(t(e))}const Bs=function(e,t=null){return e&&(e.mpType="app"),ds(e,t).use(Ps)},js=["createSelectorQuery","createIntersectionObserver","selectAllComponents","selectComponent"];function Ls(e,t){const n=e.ctx;n.mpType=t.mpType,n.$mpType=t.mpType,n.$mpPlatform="mp-weixin",n.$scope=t.mpInstance,n.$mp={},n._self={},e.slots={},v(t.slots)&&t.slots.length&&(t.slots.forEach((t=>{e.slots[t]=!0})),e.slots.d&&(e.slots.default=!0)),n.getOpenerEventChannel=function(){return t.mpInstance.getOpenerEventChannel()},n.$hasHook=Ns,n.$callHook=Ds,e.emit=function(e,t){return function(n,...o){const r=t.$scope;if(r&&n){const e={__args__:o};r.triggerEvent(n,e)}return e.apply(this,[n,...o])}}(e.emit,n)}function Ns(e){const t=this.$[e];return!(!t||!t.length)}function Ds(e,t){"mounted"===e&&(Ds.call(this,"bm"),this.$.isMounted=!0,e="m");const n=this.$[e];return n&&((e,t)=>{let n;for(let o=0;o{Ae(n,e[n])&&t.add(n)}));{const{extends:n,mixins:o}=e;o&&o.forEach((e=>Fs(e,t))),n&&Fs(n,t)}}return t}function Us(e,t,n){-1!==n.indexOf(t)||b(e,t)||(e[t]=function(e){return this.$vm&&this.$vm.$callHook(t,e)})}const Rs=[Y];function Qs(e,t,n=Rs){t.forEach((t=>Us(e,t,n)))}function qs(e,t,n=Rs){Fs(t).forEach((t=>Us(e,t,n)))}const zs=ge((()=>{const e=[],t=S(getApp)&&getApp({allowDefault:!0});if(t&&t.$vm&&t.$vm.$){const n=t.$vm.$.appContext.mixins;if(v(n)){const t=Object.keys(Se);n.forEach((n=>{t.forEach((t=>{b(n,t)&&!e.includes(t)&&e.push(t)}))}))}}return e}));const Hs=[q,z,W,$,V,K];function Ws(e,t){const n=e.$,o={globalData:e.$options&&e.$options.globalData||{},$vm:e,onLaunch(t){this.$vm=e;const o=n.ctx;this.$vm&&o.$scope||(Ls(n,{mpType:"app",mpInstance:this,slots:[]}),o.globalData=this.globalData,e.$callHook(H,t))}};!function(e){const t=Jo(Fe(wx.getSystemInfoSync().language)||Le);Object.defineProperty(e,"$locale",{get:()=>t.value,set(e){t.value=e}})}(e);const r=e.$.type;Qs(o,Hs),qs(o,r);{const e=r.methods;e&&g(o,e)}return t&&t.parse(o),o}function $s(e,t){if(S(e.onLaunch)){const t=wx.getLaunchOptionsSync&&wx.getLaunchOptionsSync();e.onLaunch(t)}S(e.onShow)&&wx.onAppShow&&wx.onAppShow((e=>{t.$callHook("onShow",e)})),S(e.onHide)&&wx.onAppHide&&wx.onAppHide((e=>{t.$callHook("onHide",e)}))}const Vs=["externalClasses"];const Ks=/_(.*)_worklet_factory_/;function Js(e,t){const n=e.$children;for(let r=n.length-1;r>=0;r--){const e=n[r];if(e.$scope._$vueId===t)return e}let o;for(let r=n.length-1;r>=0;r--)if(o=Js(n[r],t),o)return o}const Ys=["eO","uR","uRIF","uI","uT","uP","uS"];function Gs(e){e.properties||(e.properties={}),g(e.properties,function(e,t=!1){const n={};return t||(Ys.forEach((e=>{n[e]={type:null,value:""}})),n.uS={type:null,value:[],observer:function(e){const t=Object.create(null);e&&e.forEach((e=>{t[e]=!0})),this.setData({$slots:t})}}),e.behaviors&&e.behaviors.includes("wx://form-field")&&(e.properties&&e.properties.name||(n.name={type:null,value:""}),e.properties&&e.properties.value||(n.value={type:null,value:""})),n}(e),function(e){const t={};return e&&e.virtualHost&&(t.virtualHostStyle={type:null,value:""},t.virtualHostClass={type:null,value:""}),t}(e.options))}const Xs=[String,Number,Boolean,Object,Array,null];function Zs(e,t){const n=function(e){return v(e)&&1===e.length?e[0]:e}(e);return-1!==Xs.indexOf(n)?n:null}function ea(e,t){return(t?function(e){const t={};C(e)&&Object.keys(e).forEach((n=>{-1===Ys.indexOf(n)&&(t[n]=e[n])}));return t}(e):Es(e.uP))||{}}function ta(e){const t=function(){const e=this.properties.uP;e&&(this.$vm?function(e,t){const n=qo(t.props),o=Es(e)||{};na(n,o)&&(!function(e,t,n,o){const{props:r,attrs:i,vnode:{patchFlag:s}}=e,a=qo(r),[c]=e.propsOptions;let l=!1;if(!(o||s>0)||16&s){let o;mi(e,t,r,i)&&(l=!0);for(const i in a)t&&(b(t,i)||(o=D(i))!==i&&b(t,o))||(c?!n||void 0===n[i]&&void 0===n[o]||(r[i]=yi(c,a,i,void 0,e,!0)):delete r[i]);if(i!==a)for(const e in i)t&&b(t,e)||(delete i[e],l=!0)}else if(8&s){const n=e.vnode.dynamicProps;for(let o=0;o-1&&function(e){const t=lr.indexOf(e);t>ur&&lr.splice(t,1)}(t.update),t.update());var r}(e,this.$vm.$):"m"===this.properties.uT&&function(e,t){const n=t.properties,o=Es(e)||{};na(n,o,!1)&&t.setData(o)}(e,this))};e.observers||(e.observers={}),e.observers.uP=t}function na(e,t,n=!0){const o=Object.keys(t);if(n&&o.length!==Object.keys(e).length)return!0;for(let r=0;r{o.push(e.replace("uni://","wx://")),"uni://form-field"===e&&(v(n)?(n.push("name"),n.push("modelValue")):(n.name={type:String,default:""},n.modelValue={type:[String,Number,Boolean,Array,Object,Date],default:""}))})),o}(t)}function ra(e,{parse:t,mocks:n,isPage:o,initRelation:r,handleLink:i,initLifetimes:s}){e=e.default||e;const a={multipleSlots:!0,addGlobalClass:!0,pureDataPattern:/^uP$/};v(e.mixins)&&e.mixins.forEach((e=>{k(e.options)&&g(a,e.options)})),e.options&&g(a,e.options);const c={options:a,lifetimes:s({mocks:n,isPage:o,initRelation:r,vueOptions:e}),pageLifetimes:{show(){this.$vm&&this.$vm.$callHook("onPageShow")},hide(){this.$vm&&this.$vm.$callHook("onPageHide")},resize(e){this.$vm&&this.$vm.$callHook("onPageResize",e)}},methods:{__l:i}};var l,u,f,p;return oa(c,e),Gs(c),ta(c),function(e,t){Vs.forEach((n=>{b(t,n)&&(e[n]=t[n])}))}(c,e),l=c.methods,u=e.wxsCallMethods,v(u)&&u.forEach((e=>{l[e]=function(t){return this.$vm[e](t)}})),f=c.methods,(p=e.methods)&&Object.keys(p).forEach((e=>{const t=e.match(Ks);if(t){const n=t[1];f[e]=p[e],f[n]=p[n]}})),t&&t(c,{handleLink:i}),c}let ia,sa;function aa(){return getApp().$vm}function ca(e,t){const{parse:n,mocks:o,isPage:r,initRelation:i,handleLink:s,initLifetimes:a}=t,c=ra(e,{mocks:o,isPage:r,initRelation:i,handleLink:s,initLifetimes:a});!function({properties:e},t){v(t)?t.forEach((t=>{e[t]={type:String,value:""}})):C(t)&&Object.keys(t).forEach((n=>{const o=t[n];if(C(o)){let t=o.default;S(t)&&(t=t());const r=o.type;o.type=Zs(r),e[n]={type:o.type,value:t}}else e[n]={type:Zs(o)}}))}(c,(e.default||e).props);const l=c.methods;return l.onLoad=function(e){var t;return this.options=e,this.$page={fullPath:(t=this.route+ve(e),function(e){return 0===e.indexOf("/")}(t)?t:"/"+t)},this.$vm&&this.$vm.$callHook(J,e)},Qs(l,Ms),qs(l,e),function(e,t){if(!t)return;Object.keys(Se).forEach((n=>{t&Se[n]&&Us(e,n,[])}))}(l,e.__runtimeHooks),Qs(l,zs()),n&&n(c,{handleLink:s}),c}const la=Page,ua=Component;function fa(e){const t=e.triggerEvent,n=function(n,...o){return t.apply(e,[(r=n,L(r.replace(he,"-"))),...o]);var r};try{e.triggerEvent=n}catch(o){e._triggerEvent=n}}function pa(e,t,n){const o=t[e];t[e]=o?function(...e){return fa(this),o.apply(this,e)}:function(){fa(this)}}Page=function(e){return pa(J,e),la(e)},Component=function(e){pa("created",e);return e.properties&&e.properties.uP||(Gs(e),ta(e)),ua(e)};var da=Object.freeze({__proto__:null,handleLink:function(e){const t=e.detail||e.value,n=t.vuePid;let o;n&&(o=Js(this.$vm,n)),o||(o=this.$vm),t.parent=o},initLifetimes:function({mocks:e,isPage:t,initRelation:n,vueOptions:o}){return{attached(){let r=this.properties;!function(e,t){if(!e)return;const n=e.split(","),o=n.length;1===o?t._$vueId=n[0]:2===o&&(t._$vueId=n[0],t._$vuePid=n[1])}(r.uI,this);const i={vuePid:this._$vuePid};n(this,i);const s=this,a=t(s);let c=r;this.$vm=function(e,t){ia||(ia=aa().$createComponent);const n=ia(e,t);return Fi(n.$)||n}({type:o,props:ea(c,a)},{mpType:a?"page":"component",mpInstance:s,slots:r.uS||{},parentComponent:i.parent&&i.parent.$,onBeforeSetup(t,n){!function(e,t){Object.defineProperty(e,"refs",{get(){const e={};return function(e,t,n){e.selectAllComponents(t).forEach((e=>{const t=e.properties.uR;n[t]=e.$vm||e}))}(t,".r",e),t.selectAllComponents(".r-i-f").forEach((t=>{const n=t.properties.uR;n&&(e[n]||(e[n]=[]),e[n].push(t.$vm||t))})),e}})}(t,s),function(e,t,n){const o=e.ctx;n.forEach((n=>{b(t,n)&&(e[n]=o[n]=t[n])}))}(t,s,e),function(e,t){Ls(e,t);const n=e.ctx;js.forEach((e=>{n[e]=function(...t){const o=n.$scope;if(o&&o[e])return o[e].apply(o,t)}}))}(t,n)}}),a||function(e){const t=e.$options;v(t.behaviors)&&t.behaviors.includes("uni://form-field")&&e.$watch("modelValue",(()=>{e.$scope&&e.$scope.setData({name:e.name,value:e.modelValue})}),{immediate:!0})}(this.$vm)},ready(){this.$vm&&(this.$vm.$callHook("mounted"),this.$vm.$callHook(Y))},detached(){var e;this.$vm&&(ks(this.$vm.$.uid),e=this.$vm,sa||(sa=aa().$destroyComponent),sa(e))}}},initRelation:function(e,t){e.triggerEvent("__l",t)},isPage:function(e){return!!e.route},mocks:["__route__","__wxExparserNodeId__","__wxWebviewId__"]});const ha=function(e){return App(Ws(e,ga))};var ga;const ma=(ya=da,function(e){return Component(ca(e,ya))});var ya;const ba=function(e){return function(t){return Component(ra(t,e))}}(da),va=function(e){return function(t){$s(Ws(t,e),t)}}(),wa=function(e){return function(t){const n=Ws(t,e),o=S(getApp)&&getApp({allowDefault:!0});if(!o)return;t.$.ctx.$scope=o;const r=o.globalData;r&&Object.keys(n.globalData).forEach((e=>{b(r,e)||(r[e]=n.globalData[e])})),Object.keys(n).forEach((e=>{b(o,e)||(o[e]=n[e])})),$s(n,t)}}();wx.createApp=global.createApp=ha,wx.createPage=ma,wx.createComponent=ba,wx.createPluginApp=global.createPluginApp=va,wx.createSubpackageApp=global.createSubpackageApp=wa; /*! * pinia v2.0.33 * (c) 2023 Eduardo San Martin Morote * @license MIT */ -let Sa;const Aa=e=>Sa=e,xa=Symbol();function ka(e){return e&&"object"==typeof e&&"[object Object]"===Object.prototype.toString.call(e)&&"function"!=typeof e.toJSON}var Ta,Ea;(Ea=Ta||(Ta={})).direct="direct",Ea.patchObject="patch object",Ea.patchFunction="patch function";const Pa="undefined"!=typeof window;function Ia(){const e=In(!0),t=e.run((()=>Jo({})));let n=[],o=[];const r=zo({install(e){Aa(r),r._a=e,e.provide(xa,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 Ca=()=>{};function _a(e,t,n,o=Ca){e.push(t);const r=()=>{const n=e.indexOf(t);n>-1&&(e.splice(n,1),o())};return!n&&Cn()&&function(e){En&&En.cleanups.push(e)}(r),r}function Oa(e,...t){e.slice().forEach((e=>{e(...t)}))}function Ba(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];ka(r)&&ka(o)&&e.hasOwnProperty(n)&&!Ko(o)&&!Uo(o)?e[n]=Ba(r,o):e[n]=o}return e}const ja=Symbol();const{assign:La}=Object;function Na(e,t,n,o){const{state:r,actions:i,getters:s}=t,a=n.state.value[e];let c;return c=Da(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]=tr(e,n);return t}(n.state.value[e]);return La(t,i,Object.keys(s||{}).reduce(((t,o)=>(t[o]=zo(Ui((()=>{Aa(n);const t=n._s.get(e);return s[o].call(t,t)}))),t)),{}))}),t,n,o,!0),c}function Da(e,t,n={},o,r,i){let s;const a=La({actions:{}},n),c={deep:!0};let l,u,f,p=zo([]),d=zo([]);const h=o.state.value[e];let g;function m(t){let n;l=u=!1,"function"==typeof t?(t(o.state.value[e]),n={type:Ta.patchFunction,storeId:e,events:f}):(Ba(o.state.value[e],t),n={type:Ta.patchObject,payload:t,storeId:e,events:f});const r=g=Symbol();mr().then((()=>{g===r&&(l=!0)})),u=!0,Oa(p,n,o.state.value[e])}i||h||(o.state.value[e]={}),Jo({});const y=i?function(){const{state:e}=n,t=e?e():{};this.$patch((e=>{La(e,t)}))}:Ca;function b(t,n){return function(){Aa(o);const r=Array.from(arguments),i=[],s=[];let a;Oa(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(c){throw Oa(s,c),c}return a instanceof Promise?a.then((e=>(Oa(i,e),e))).catch((e=>(Oa(s,e),Promise.reject(e)))):(Oa(i,a),a)}}const v=Do({_p:o,$id:e,$onAction:_a.bind(null,d),$patch:m,$reset:y,$subscribe(t,n={}){const r=_a(p,t,n.detached,(()=>i())),i=s.run((()=>Or((()=>o.state.value[e]),(o=>{("sync"===n.flush?u:l)&&t({storeId:e,type:Ta.direct,events:f},o)}),La({},c,n))));return r},$dispose:function(){s.stop(),p=[],d=[],o._s.delete(e)}});o._s.set(e,v);const w=o._e.run((()=>(s=In(),s.run((()=>t())))));for(const x in w){const t=w[x];if(Ko(t)&&(!Ko(A=t)||!A.effect)||Uo(t))i||(!h||ka(S=t)&&S.hasOwnProperty(ja)||(Ko(t)?t.value=h[x]:Ba(t,h[x])),o.state.value[e][x]=t);else if("function"==typeof t){const e=b(x,t);w[x]=e,a.actions[x]=t}}var S,A;return La(v,w),La(qo(v),w),Object.defineProperty(v,"$state",{get:()=>o.state.value[e],set:e=>{m((t=>{La(t,e)}))}}),o._p.forEach((e=>{La(v,s.run((()=>e({store:v,app:o._a,pinia:o,options:a}))))})),h&&i&&n.hydrate&&n.hydrate(v.$state,h),l=!0,u=!0,v}function Ma(e,t,n){let o,r;const i="function"==typeof t;function s(e,n){const s=Oi();(e=e||s&&Cr(xa,null))&&Aa(e),(e=Sa)._s.has(o)||(i?Da(o,t,r,e):Na(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 Fa="Store";function Ua(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 Ra=Ua;const Qa=Object.freeze(Object.defineProperty({__proto__:null,get MutationType(){return Ta},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[xa]=t,this.$pinia||(this.$pinia=t),t._a=this,Pa&&Aa(t)}else!this.$pinia&&e.parent&&e.parent.$pinia&&(this.$pinia=e.parent.$pinia)},destroyed(){delete this._pStores}})},acceptHMRUpdate:function(e,t){return()=>{}},createPinia:Ia,defineStore:Ma,getActivePinia:()=>Oi()&&Cr(xa)||Sa,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:Ra,mapState:Ua,mapStores:function(...e){return e.reduce(((e,t)=>(e[t.$id+Fa]=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:Aa,setMapStoreSuffix:function(e){Fa=e},skipHydrate:function(e){return Object.defineProperty(e,ja,{})},storeToRefs:function(e){{e=qo(e);const t={};for(const n in e){const o=e[n];(Ko(o)||Uo(o))&&(t[n]=tr(e,n))}return t}}},Symbol.toStringTag,{value:"Module"}));function qa(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 Ha(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===Object.prototype.toString.call(e)}function Wa(e){return"[object Object]"===Object.prototype.toString.call(e)}function $a(e){return"function"==typeof e}const Va={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:qa,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(Gu){return!1}return!1},landline:function(e){return/^\d{3,4}-\d{7,8}(-\d{3,4})?$/.test(e)},object:Wa,array:Ha,code:function(e,t=6){return new RegExp(`^\\d{${t}}$`).test(e)},func:$a,promise:function(e){return Wa(e)&&$a(e.then)&&$a(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 Ka(e,t=15){return+parseFloat(Number(e).toPrecision(t))}function Ja(e){const t=e.toString().split(/[eE]/),n=(t[0].split(".")[1]||"").length-+(t[1]||0);return n>0?n:0}function Ya(e){if(-1===e.toString().indexOf("e"))return Number(e.toString().replace(".",""));const t=Ja(e);return t>0?Ka(Number(e)*Math.pow(10,t)):Number(e)}function Ga(e){(e>Number.MAX_SAFE_INTEGER||e{i=t(i,e)})),i}function Za(...e){if(e.length>2)return Xa(e,Za);const[t,n]=e,o=Ya(t),r=Ya(n),i=Ja(t)+Ja(n),s=o*r;return Ga(s),s/Math.pow(10,i)}function ec(...e){if(e.length>2)return Xa(e,ec);const[t,n]=e,o=Ya(t),r=Ya(n);return Ga(o),Ga(r),Za(o/r,Ka(Math.pow(10,Ja(n)-Ja(t))))}const tc={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 nc(e,t=!1){return qa(e)?t?`${e}px`:Number(e):/(rpx|upx)$/.test(e)?t?`${Tn.upx2px(parseInt(e))}px`:Number(Tn.upx2px(parseInt(e))):t?`${parseInt(e)}px`:parseInt(e)}function oc(e=30){return new Promise((t=>{setTimeout((()=>{t()}),e)}))}function rc(){let e={};return e=Tn.getWindowInfo(),e}function ic(e,t){if(e>=0&&t>0&&t>=e){const n=t-e+1;return Math.floor(Math.random()*n+e)}return 0}function sc(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 ac(e,t="object"){if(za(e)||"object"==typeof e&&"object"===t||"string"===t&&"string"==typeof e)return e;if("object"===t){const t=(e=dc(e)).split(";"),n={};for(let e=0;e{const o=t.replace(/([A-Z])/g,"-$1").toLowerCase();n+=`${o}:${e};`})),dc(n)}function cc(e="auto",t=""){return t||(t=tc.unit||"px"),"rpx"==t&&qa(String(e))&&(e*=2),qa(e=String(e))?`${e}${t}`:e}function lc(e){if([null,void 0,NaN,!1].includes(e))return e;if("object"!=typeof e&&"function"!=typeof e)return e;const t=Ha(e)?[]:{};for(const n in e)e.hasOwnProperty(n)&&(t[n]="object"==typeof e[n]?lc(e[n]):e[n]);return t}function uc(e={},t={}){let n=lc(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]=uc(n[o],t[o]):n[o]=t[o]);return n}function fc(e){}function pc(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 dc(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 hc(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 gc(e,t=2e3){Tn.showToast({title:String(e),icon:"none",duration:t})}function mc(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 c="";c=(i?function(e,t){const n=Math.pow(10,t);let o=ec(Math.round(Math.abs(Za(e,n))),n);return e<0&&0!==o&&(o=Za(o,-1)),o}(r,i)+"":`${Math.round(r)}`).split(".");const l=/(-?\d+)(\d{3})/;for(;l.test(c[0]);)c[0]=c[0].replace(l,`$1${s}$2`);return(c[1]||"").length{}),t)}function bc(){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 vc={range:function(e=0,t=0,n=0){return Math.max(e,Math.min(t,Number(n)))},getPx:nc,sleep:oc,os:function(){return Tn.getDeviceInfo().platform.toLowerCase()},sys:function(){return Tn.getSystemInfoSync()},getWindowInfo:rc,random:ic,guid:function(e=32,t=!0,n=null){const o="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split(""),r=[];if(n=n||o.length,e)for(let i=0;iMath.random()-.5))},timeFormat:pc,timeFrom:function(e=null,t="yyyy-mm-dd"){null==e&&(e=Number(new Date)),10==(e=parseInt(e)).toString().length&&(e*=1e3);let n=(new Date).getTime()-e;n=parseInt(n/1e3);let o="";switch(!0){case n<300:o="刚刚";break;case n>=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)}年前`:pc(e,t)}return o},trim:dc,queryParams:hc,toast:gc,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:mc,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:yc,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:bc,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 wc=(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=hc(t,!1),e+`&${n}`):(n=hc(t),e+n)}async route(e={},t={}){let n={};if("string"==typeof e?(n.url=this.mixinParam(e,t),n.type="navigateTo"):(n=uc(this.config,e),n.url=this.mixinParam(e.url,e.params)),n.url!==bc())if(t.intercept&&(this.config.intercept=t.intercept),n.params=t,n=uc(this.config,n),"function"==typeof Tn.$u.routeIntercept){await new Promise(((e,t)=>{Tn.$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||Tn.navigateTo({url:t,animationType:r,animationDuration:i}),"redirectTo"!=e.type&&"redirect"!=e.type||Tn.redirectTo({url:t}),"switchTab"!=e.type&&"tab"!=e.type||Tn.switchTab({url:t}),"reLaunch"!=e.type&&"launch"!=e.type||Tn.reLaunch({url:t}),"navigateBack"!=e.type&&"back"!=e.type||Tn.navigateBack({delta:o})}}).route,Sc={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:()=>uc(Tn.$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&&wc({type:this.linkType,url:t})},navTo(e="",t="navigateTo"){wc({type:this.linkType,url:e})},$uGetRect(e,t){return new Promise((n=>{Tn.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=sc.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(){Tn.$emit("uOnReachBottom")},beforeUnmount(){if(this.parent&&Va.array(this.parent.children)){const e=this.parent.children;e.map(((t,n)=>{t===this&&e.splice(n,1)}))}}},Ac={options:{virtualHost:!0}},{toString:xc}=Object.prototype;function kc(e){return"[object Array]"===xc.call(e)}function Tc(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),kc(e))for(let n=0,o=e.length;n{null!=t&&(kc(t)?n=`${n}[]`:t=[t],Tc(t,(t=>{!function(e){return"[object Date]"===xc.call(e)}(t)?function(e){return null!==e&&"object"==typeof e}(t)&&(t=JSON.stringify(t)):t=t.toISOString(),e.push(`${Ic(n)}=${Ic(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 _c=(e,t)=>{const n={};return e.forEach((e=>{Pc(t[e])||(n[e]=t[e])})),n},Oc=e=>(e=>new Promise(((t,n)=>{const o=Cc((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(Gu){}!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=Tn.uploadFile({...s,...t,..._c(n,e)})}else if("DOWNLOAD"===e.method)a=Tn.downloadFile(s);else{const t=["data","method","timeout","dataType","responseType"];a=Tn.request({...s,..._c(t,e)})}e.getTask&&e.getTask(a,e)})))(e);function Bc(){this.handlers=[]}Bc.prototype.use=function(e,t){return this.handlers.push({fulfilled:e,rejected:t}),this.handlers.length-1},Bc.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},Bc.prototype.forEach=function(e){this.handlers.forEach((t=>{null!==t&&e(t)}))};const jc=(e,t,n)=>{const o={};return e.forEach((e=>{Pc(n[e])?Pc(t[e])||(o[e]=t[e]):o[e]=n[e]})),o},Lc={baseURL:"",header:{},method:"GET",dataType:"json",responseType:"text",custom:{},timeout:6e4,validateStatus:function(e){return e>=200&&e<300}};var Nc=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,c,l,u){"object"==typeof a&&(c=a.depth,l=a.prototype,u=a.includeNonEnumerable,a=a.circular);var f=[],p=[],d="undefined"!=typeof Buffer;return void 0===a&&(a=!0),void 0===c&&(c=1/0),function i(c,h){if(null===c)return null;if(0===h)return c;var g,m;if("object"!=typeof c)return c;if(e(c,t))g=new t;else if(e(c,n))g=new n;else if(e(c,o))g=new o((function(e,t){c.then((function(t){e(i(t,h-1))}),(function(e){t(i(e,h-1))}))}));else if(r.__isArray(c))g=[];else if(r.__isRegExp(c))g=new RegExp(c.source,s(c)),c.lastIndex&&(g.lastIndex=c.lastIndex);else if(r.__isDate(c))g=new Date(c.getTime());else{if(d&&Buffer.isBuffer(c))return Buffer.from?g=Buffer.from(c):(g=new Buffer(c.length),c.copy(g)),g;e(c,Error)?g=Object.create(c):void 0===l?(m=Object.getPrototypeOf(c),g=Object.create(m)):(g=Object.create(l),m=l)}if(a){var y=f.indexOf(c);if(-1!=y)return p[y];f.push(c),p.push(g)}for(var b in e(c,t)&&c.forEach((function(e,t){var n=i(t,h-1),o=i(e,h-1);g.set(n,o)})),e(c,n)&&c.forEach((function(e){var t=i(e,h-1);g.add(t)})),c){Object.getOwnPropertyDescriptor(c,b)&&(g[b]=i(c[b],h-1));try{if("undefined"===Object.getOwnPropertyDescriptor(c,b).set)continue;g[b]=i(c[b],h-1)}catch(Gu){if(Gu instanceof TypeError)continue;if(Gu instanceof ReferenceError)continue}}if(Object.getOwnPropertySymbols){var v=Object.getOwnPropertySymbols(c);for(b=0;bNumber(e)))}return e}function Fc(e){const t=e;if(/^(rgb|RGB)/.test(t)){const e=t.replace(/(?:\(|\)|rgb|RGB)*/g,"").split(",");let n="#";for(let t=0;t{Rc=!1}),t)):Rc||(Rc=!0,setTimeout((()=>{Rc=!1,"function"==typeof e&&e()}),t))}const zc={calendar:{title:"日期选择",showTitle:!0,showSubtitle:!0,mode:"single",startText:"开始",endText:"结束",customList:[],color:"#3c9cff",minDate:0,maxDate:0,defaultDate:null,maxCount:Number.MAX_SAFE_INTEGER,rowHeight:56,formatter:null,showLunar:!1,showMark:!0,confirmText:"确定",confirmDisabledText:"确定",show:!1,closeOnClickOverlay:!1,readonly:!1,showConfirm:!0,maxRange:Number.MAX_SAFE_INTEGER,rangePrompt:"",showRangePrompt:!0,allowSameDay:!1,round:0,monthNum:3}},Hc={datetimePicker:{show:!1,popupMode:"bottom",showToolbar:!0,value:"",title:"",mode:"datetime",maxDate:new Date((new Date).getFullYear()+10,0,1).getTime(),minDate:new Date((new Date).getFullYear()-10,0,1).getTime(),minHour:0,maxHour:23,minMinute:0,maxMinute:59,filter:null,formatter:null,loading:!1,itemHeight:44,cancelText:"取消",confirmText:"确认",cancelColor:"#909193",confirmColor:"#3c9cff",visibleItemCount:5,closeOnClickOverlay:!1,defaultIndex:[]}},{color:Wc}=tc,$c={icon:{name:"",color:Wc["u-content-color"],size:"16px",bold:!1,index:"",hoverClass:"",customPrefix:"uicon",label:"",labelPos:"right",labelSize:"15px",labelColor:Wc["u-content-color"],space:"3px",imgMode:"",width:"",height:"",top:0,stop:!1}},{color:Vc}=tc,Kc={link:{color:Vc["u-primary"],fontSize:15,underLine:!1,href:"",mpTips:"链接已复制,请在浏览器打开",lineColor:"",text:""}},{color:Jc}=tc,Yc={loadingIcon:{show:!0,color:Jc["u-tips-color"],textColor:Jc["u-tips-color"],vertical:!1,mode:"spinner",size:24,textSize:15,text:"",timingFunction:"ease-in-out",duration:1200,inactiveColor:""}},Gc={primary:"#3c9cff",info:"#909399",default:"#909399",warning:"#f9ae3d",error:"#f56c6c",success:"#5ac725",mainColor:"#303133",contentColor:"#606266",tipsColor:"#909399",lightColor:"#c0c4cc",borderColor:"#e4e7ed"},Xc={actionSheet:{show:!1,title:"",description:"",actions:[],index:"",cancelText:"",closeOnClickAction:!0,safeAreaInsetBottom:!0,openType:"",closeOnClickOverlay:!0,round:0,wrapMaxHeight:"600px"},album:{urls:[],keyName:"",singleSize:180,multipleSize:70,space:6,singleMode:"scaleToFill",multipleMode:"aspectFill",maxCount:9,previewFullImage:!0,rowCount:3,showMore:!0,autoWrap:!1,unit:"px",stop:!0},alert:{title:"",type:"warning",description:"",closable:!1,showIcon:!1,effect:"light",center:!1,fontSize:14},avatar:{src:"",shape:"circle",size:40,mode:"scaleToFill",text:"",bgColor:"#c0c4cc",color:"#ffffff",fontSize:18,icon:"",mpAvatar:!1,randomBgColor:!1,defaultUrl:"",colorIndex:"",name:""},avatarGroup:{urls:[],maxCount:5,shape:"circle",mode:"scaleToFill",showMore:!0,size:40,keyName:"",gap:.5,extraValue:0},backtop:{mode:"circle",icon:"arrow-upward",text:"",duration:100,scrollTop:0,top:400,bottom:100,right:20,zIndex:9,iconStyle:{color:"#909399",fontSize:"19px"}},badge:{isDot:!1,value:"",show:!0,max:999,type:"error",showZero:!1,bgColor:null,color:null,shape:"circle",numberType:"overflow",offset:[],inverted:!1,absolute:!1},button:{hairline:!1,type:"info",size:"normal",shape:"square",plain:!1,disabled:!1,loading:!1,loadingText:"",loadingMode:"spinner",loadingSize:15,openType:"",formType:"",appParameter:"",hoverStopPropagation:!0,lang:"en",sessionFrom:"",sendMessageTitle:"",sendMessagePath:"",sendMessageImg:"",showMessageCard:!1,dataName:"",throttleTime:0,hoverStartTime:0,hoverStayTime:200,text:"",icon:"",iconColor:"",color:"",stop:!0},...zc,carKeyboard:{random:!1},cell:{customClass:"",title:"",label:"",value:"",icon:"",disabled:!1,border:!0,center:!1,url:"",linkType:"navigateTo",clickable:!1,isLink:!1,required:!1,arrowDirection:"",iconStyle:{},rightIconStyle:{},rightIcon:"arrow-right",titleStyle:{},size:"",stop:!0,name:""},cellGroup:{title:"",border:!0,customStyle:{}},checkbox:{name:"",shape:"",size:"",checkbox:!1,disabled:"",activeColor:"",inactiveColor:"",iconSize:"",iconColor:"",label:"",labelSize:"",labelColor:"",labelDisabled:""},checkboxGroup:{name:"",value:[],shape:"square",disabled:!1,activeColor:"#2979ff",inactiveColor:"#c8c9cc",size:18,placement:"row",labelSize:14,labelColor:"#303133",labelDisabled:!1,iconColor:"#ffffff",iconSize:12,iconPlacement:"left",borderBottom:!1},circleProgress:{percentage:30},code:{seconds:60,startText:"获取验证码",changeText:"X秒重新获取",endText:"重新获取",keepRunning:!1,uniqueKey:""},codeInput:{adjustPosition:!0,maxlength:6,dot:!1,mode:"box",hairline:!1,space:10,value:"",focus:!1,bold:!1,color:"#606266",fontSize:18,size:35,disabledKeyboard:!1,borderColor:"#c9cacc",disabledDot:!0},col:{span:12,offset:0,justify:"start",align:"stretch",textAlign:"left"},collapse:{value:null,accordion:!1,border:!0},collapseItem:{title:"",value:"",label:"",disabled:!1,isLink:!0,clickable:!0,border:!0,align:"left",name:"",icon:"",duration:300,showRight:!0},columnNotice:{text:"",icon:"volume",mode:"",color:"#f9ae3d",bgColor:"#fdf6ec",fontSize:14,speed:80,step:!1,duration:1500,disableTouch:!0,justifyContent:"flex-start"},countDown:{time:0,format:"HH:mm:ss",autoStart:!0,millisecond:!1},countTo:{startVal:0,endVal:0,duration:2e3,autoplay:!0,decimals:0,useEasing:!0,decimal:".",color:"#606266",fontSize:22,bold:!1,separator:""},...Hc,divider:{dashed:!1,hairline:!0,dot:!1,textPosition:"center",text:"",textSize:14,textColor:"#909399",lineColor:"#dcdfe6"},empty:{icon:"",text:"",textColor:"#c0c4cc",textSize:14,iconColor:"#c0c4cc",iconSize:90,mode:"data",width:160,height:160,show:!0,marginTop:0},form:{model:{},rules:{},errorType:"message",borderBottom:!0,labelPosition:"left",labelWidth:45,labelAlign:"left",labelStyle:{}},formItem:{label:"",prop:"",rules:[],borderBottom:"",labelPosition:"",labelWidth:"",rightIcon:"",leftIcon:"",required:!1,leftIconStyle:""},gap:{bgColor:"transparent",height:20,marginTop:0,marginBottom:0,customStyle:{}},grid:{col:3,border:!1,align:"left"},gridItem:{name:null,bgColor:"transparent"},...$c,image:{src:"",mode:"aspectFill",width:"300",height:"225",shape:"square",radius:0,lazyLoad:!0,showMenuByLongpress:!0,loadingIcon:"photo",errorIcon:"error-circle",showLoading:!0,showError:!0,fade:!0,webp:!1,duration:500,bgColor:"#f3f4f6"},indexAnchor:{text:"",color:"#606266",size:14,bgColor:"#dedede",height:32},indexList:{inactiveColor:"#606266",activeColor:"#5677fc",indexList:[],sticky:!0,customNavHeight:0,safeBottomFix:!1},input:{value:"",type:"text",fixed:!1,disabled:!1,disabledColor:"#f5f7fa",clearable:!1,password:!1,maxlength:140,placeholder:null,placeholderClass:"input-placeholder",placeholderStyle:"color: #c0c4cc",showWordLimit:!1,confirmType:"done",confirmHold:!1,holdKeyboard:!1,focus:!1,autoBlur:!1,disableDefaultPadding:!1,cursor:-1,cursorSpacing:30,selectionStart:-1,selectionEnd:-1,adjustPosition:!0,inputAlign:"left",fontSize:"15px",color:"#303133",prefixIcon:"",prefixIconStyle:"",suffixIcon:"",suffixIconStyle:"",border:"surround",readonly:!1,shape:"square",formatter:null},keyboard:{mode:"number",dotDisabled:!1,tooltip:!0,showTips:!0,tips:"",showCancel:!0,showConfirm:!0,random:!1,safeAreaInsetBottom:!0,closeOnClickOverlay:!0,show:!1,overlay:!0,zIndex:10075,cancelText:"取消",confirmText:"确定",autoChange:!1},line:{color:"#d6d7d9",length:"100%",direction:"row",hairline:!0,margin:0,dashed:!1},lineProgress:{activeColor:"#19be6b",inactiveColor:"#ececec",percentage:0,showText:!0,height:12},...Kc,list:{showScrollbar:!1,lowerThreshold:50,upperThreshold:0,scrollTop:0,offsetAccuracy:10,enableFlex:!1,pagingEnabled:!1,scrollable:!0,scrollIntoView:"",scrollWithAnimation:!1,enableBackToTop:!1,height:0,width:0,preLoadScreen:1},listItem:{anchor:""},...Yc,loadingPage:{loadingText:"正在加载",image:"",loadingMode:"circle",loading:!1,bgColor:"#ffffff",color:"#C8C8C8",fontSize:19,iconSize:28,loadingColor:"#C8C8C8",zIndex:10},loadmore:{status:"loadmore",bgColor:"transparent",icon:!0,fontSize:14,iconSize:17,color:"#606266",loadingIcon:"spinner",loadmoreText:"加载更多",loadingText:"正在加载...",nomoreText:"没有更多了",isDot:!1,iconColor:"#b7b7b7",marginTop:10,marginBottom:10,height:"auto",line:!1,lineColor:"#E6E8EB",dashed:!1},modal:{show:!1,title:"",content:"",confirmText:"确认",cancelText:"取消",showConfirmButton:!0,showCancelButton:!1,confirmColor:"#2979ff",cancelColor:"#606266",buttonReverse:!1,zoom:!0,asyncClose:!1,closeOnClickOverlay:!1,negativeTop:0,width:"650rpx",confirmButtonShape:"",contentTextAlign:"left"},...{navbar:{safeAreaInsetTop:!0,placeholder:!1,fixed:!0,border:!1,leftIcon:"arrow-left",leftText:"",rightText:"",rightIcon:"",title:"",titleColor:"",bgColor:"#ffffff",titleWidth:"400rpx",height:"44px",leftIconSize:20,leftIconColor:Gc.mainColor,autoBack:!1,titleStyle:""}},noNetwork:{tips:"哎呀,网络信号丢失",zIndex:"",image:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAASwAAAEsCAYAAAB5fY51AAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAABLKADAAQAAAABAAABLAAAAADYYILnAABAAElEQVR4Ae29CZhkV3kefNeq6m2W7tn3nl0aCbHIAgmQPGB+sLCNzSID9g9PYrAf57d/+4+DiW0cy8QBJ06c2In/PLFDHJ78+MGCGNsYgyxwIwktwEijAc1ohtmnZ+2Z7p5eq6vu9r/vuXWrq25VdVV1V3dXVX9Hmj73nv285963vvOd75yraeIEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQaD8E9PbrkvRopSMwMBBYRs+5O/yJS68cPnzYXel4tFP/jXbqjPRFEAiCQNe6Bw/6gdFn9Oy9Q90LLG2DgBBW2wyldIQIPPPCte2a5q3jtR+4ff/4wuBuXotrDwSEsNpjHKUXQODppy+udYJMEUEZgbd94DvnNwlA7YGAEFZ7jOOK78Xp06eTTkq7sxwQhmXuf/754VXl4iSstRAQwmqt8ZLWlkHg0UcD49qYfUjXfLtMtOZ7npExJu4iqZWLl7DWQUAIq3XGSlpaAYHD77q8xwuCOSUoXw8Sl0eMux977DGzQjES3AIICGG1wCBJEysj8PXnz230XXdr5RQFMYbRvWnv6w8UhMhliyGwYghr4Pjg3oEXL34ey9zyC9tiD2ml5h47dr1LN7S6CMjz/A3PvHh1Z6UyJby5EVgRhKUe7Kz/JU0LfvrJo5f+Y3MPibSuFgQGBgasYSd9l6GDsup0WS/T/9RTp9fXmU2SNwECdQ92E7S57iaMeJnPQLK6ixkDLfjlb7546RfrLkQyNBcC3dsP6oHWMd9G+V3JgwPHh7rnm1/yLQ8CbU9Y33zp0j+nZFUMb/DHmB7+SHGY3LUKAk8cObtD00xlHDrfNge+Z2ozU3c9dvx4Yr5lSL6lR6CtCWvg6OAPw9z538ZhhZRl6XrwhW8du1KX/iNejtwvPQIDR8+vSRqJ/obU7GupjdNdh2gW0ZDypJBFR6BtB2rg2OVtuub9JcmpHIpBoK1xfffLzx4f7C0XL2HNiYDp6bs9z23Ypn1fC1Y/9PCFDc3ZW2lVHIG2JKzTp4Ok7nv/G6Q054MIvda+bNb74pEgKGtwGAdL7pcfAa8vOKEZ2kyjWuLr7uDh+/qvN6o8KWdxEWhLwroyeek/g4zuqwU6kNrhyZcu/UktaSXN8iNwuL9/RuvVXtJ9PbPQ1vhmcP6t9+47u9ByJP/SIdB2hDVw9MJHQFYfrQdCph84evFX68kjaZcPAZJWwjMXRFpJ2zr91tfuvrh8vZCa54NA2xGWrunvmg8QWCJ/N4ir7fCYDxatkOeBB7an501agXbygVdvv9IK/ZQ2FiPQdi9osGbH+zRNf7y4m9Xu9Me7N9nv0HXdr5ZS4psHgXpJC9P/wDRTx0Vn1TxjWG9LGrbaUm/Fi5meSvcrkxf/Cg/ow9XqAUk91v3qHT97r6471dJKfHMi8Oyzgx1Z03t1YAQVT2MwgsC3u+yXHzi0faQ5eyGtqgWBtpOw2Ol9+/TM+sTOn8L08MtzgQCy+tOHXr3jA0JWc6HU/HF5Scssr4jXcYqfP6V/T8iq+ceyWgvbUsKKOn38eJAYyl56TAuCEr2WYei//9Crd/5GlFb81kdASVopSFrerKRlaoZj9HR+700H10+0fg+lB21NWBxe2lhNHsUpDZr27mi4dV379R9+za4/iO7Fbx8ECknLCPTsTDJ17O33bJpqnx6u7J60PWFxeAcCbMV56dJfQKf1bkMLfuGh1+76zMoe9vbuPUnLsb2DtmOe5HSxvXsrvWtLBEhaTx29+Ma27Jx0ShAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQaEsEVoQdVluO3BJ06ptHL34b1XRjp4Ch6Rq24+kmjG4Nwwg+9uA9u/73EjRBqhAEihAoe3xwUQq5WTYEzp0b3ZnV/Ncf6O/9AvY9wlh/6dy3X7ncN512Zw9BVLXjuAP4np44vnQtkZoEgVkEhLBmsWiKqwsXpjbPBOn3gRfenwnc+7GBe+zsjclvonFDS9nA9Iy/u3x9+vAP3735VPk4CRUEFhcBIazFxbfm0k9fHD7k+v4nQFaPQIrx8Gmyx/GJ0J/t7ez7mw0b9MmaC2pQQgh0/ZSm4g5TwueWWtqLt0HuVy4CQljLPPYnB0depTn+b3t+8B4t0AdBUv93h2H9xc6da0aXs2m+r1WQsLRnl7NdUvfKRkAIa5nG//r1oGtsZvjTgev/kqYHF/TA+AXoqv4npJemOEiQU1Eo2l+G0movBK1UBBPU7s9E1+ILAkuNgKwSLjXiqO/khVtvARH8dxDBRkMzPrF/V+9/BlG5y9CUqlXinHv9mRPXtvuus88L9H3JPv2zD2yXExCqAicJBIFWRwAvv3Xqwq0/Pnn+lv/K+ZvfPH3p9p5W75O0fxaBp793ce3AwIDMWmYhafiVgNtwSMsXeHp4eNXJC8Nf0PAdRCiuf/XgrnWUqsqotcvnl9DmRkCdweX4b9N7+m/ih+mbMraLM14yJVwcXItKpT1VRve+ArC3Qqn+3gM7132jKEGZm6tXg86J7OhDfuA/iHwPUpfUZSfu2L59tXxEoQxeyxkEgjKeOnLxHb4RqC+NY5H3+2953d4XlrNN7Vq3ENYij+yZwbG9jpt9GkBPQ5H9zgP9607OVeWp87cOQtn9zwJf+xDMNFfj+jryPqXpxj8c2Nn7P+SXey70lidu4IXzb0DNB4tr9751+HV7zxSHyd1CERDCWiiCc+QPjUCnsaqmZ62O5IN7N/VUNP48ee7mAZDTf4Tt049iUG4Guv4ZfNLos9UIbo7qJWoJEHjy+bP7fNsoOcnW0A0/aacef8PdG28sQTNWTBVCWIs01OfPj66BpfqTmq732UnjgT1bei+Vq4pTv7HM8Ceg2/o1qLQug7T+FaaM3IqTLZdewpoHgYEjV9fphvOj+OShWa5V+CxvZtpzv/LwG/aNl4uXsPoRwI+4uEYjAJ2GmdG8L0FK2mYa+tsrkdXZy+P7x2ZuHdW14P+BLdank9q6Qwd3rf+ckFWjR6Tx5Q2cP58K9Jm3VCIr1ogt48lO237r3//96YofeG18y9q7RFklXITxPXV+5DchKb3ZDMy37Nu5tuxG4R9cHH6b42QfAzlds+3EPXu2rfrBIjRFilwkBIIR7SHoJDurFU89ZOd680Gke6JaWomvjoBIWNUxqivFD87fej0e0n8Fwvr0/t1rnyqX+QfnRz7g+8FX8Rv8vL3auF/IqhxKzR2WCPxXqKeq3krDTdj2ierpJEUtCIgOqxaUakwzNBR0D09yiqePHOjveyOkpxLr9VMXb73V97S/h3nDXx7Y2fdPkAYbncW1IgIDxy5vM7LZt/hgrnLtxyaBrJNxv/72N+6tuNhSLp+EVUZACKsyNnXHvHL+1qcgNf2KbSXu2bt9dcmS9qlzo/fARgcmCtpzB3b1/Vg5QiuslLowENyDWDn8cSjl98PgdBviu03N+rl9/WufLEwr18uDwLdevLTF1YK3xnVZ2HI1bUxrT7z5zTuXdRP78qCyeLUKYTUI25OXbm4JPO00TBj+6I7+db8ZL3ZwMOiYdG4dA1lN9HWte2iuI2NAVPapC8O/CGPR34Ip/AZIbIMo7yX8G9QMbcS09P+2b1vf5XgdrXaPfiYns9oeLLEd8D1/B7Dp0E1jGP042pXQj7RKf546cmGzp+tv1TRf6YQD35/QO3seP3xow5IfC9QqmM23naJ0ny9ysXwgq98BWc0kVhv/Nhalbqe8kd/Fr8MOSEr3zEVWrwyO3I29hl+E9LUHGf+nAXI6sGPdd8uV2YphIKnE5IyL6bLxk7cn3bdkHHefrpvJAExMZ1uBZmqeNzXtfzUzk/m/ens7LjV7Px+8d9e1579/44l0duZtge+Np5zEEw8c2pBu9na3YvtEwmrAqNE8IZvNHsep5//yjl3r/0O8yFOXbv0QCO05gP0JGIL+fjw+uj91YeRh/Dp/PtCDM7Zpfmjvjt6Xo7hW9ycmJjaYduf7Hdf/8HTGfa3rG9rYxLSWnsloPg7fijZV8oFM2Ja2a9t6EJd7bCztvHP7us4rrdD/r3/7ct9I99jEI4cOiQ3dIg2YEFYDgOUJDFj1e8TqX7cT4kImXuQr5279A4DeBEX8ayvprU4N3rovcALot/TH13T0fXDTJn0qXk4r3k9OTm4y7a6PzjjORzOOvn1kbEqbnEprPhRzwAKzwFLHk05hv6Yd6N+o3R6beG50aPSdr3qV6IJKkVp5ITIlXOCYn4Yexr0w/DO6YXymHFlR0e5r7tsM3fxgJbI6fW1ivTeT+SsYmr54cFff+5Cu5X+hb94Merp6/J/PusGvTE6724eGJ7RpSFOkKPCUZvBPBccoHBet3Rwe13rX9tw/PjXzZ5hKvr8SfhWKkeA2REAIa4GD6p0feRdWBnvxjv2PckVhVfBf4A29uG/X2i+Ui2eYn8n8NryuDr3jPfWSFV5k44UT137eshIP2K7/64cObbheqZ6lCp+Ydt8TBO7vTM5od1+/NR4SFVhoLpKKt410lnE8LTMzo3V2dLznxLkhYgQ9obiVjEDln7mVjEodfYcpw+MAsftg/7qSDbAnb97sCSb0Yei2fqOcbovVqKNnNO8HmAE9Cv3Wp+uoWjt27HpXNqH9WTKR+kBHKqEFbvo5y3N/avfu4g23R45f3WGa1k9ZicTd0zPTf/f6O7f8dT311Jp2fHzmgJlI/N70jPPe4bEZ6Kg4qw0lqlrLiNKBiLWerpTW25PUbkPXZViW62ecHz+4d8PXojTirzwEyhq8rTwYFtRjvpX/rlwJ+iSXugPbMuyKBOHo3geRJtuT7PujcmVUCuPJlhnL/9NUqvMD2eyM5sxMaIlE4n7XML907tyNjcxHQjty4sZv66Z1xEok/xNW5n4uZSf+8sT5m++vVO58wkEu5sR09pd9w/rWyET2vReujiqygrSopn/zKZN5qMeirotKeTyolm7p/+X06Wvr51ue5Gt9BISwFjiGsLl6N6SrvylXDNTK70D4mX071pwtF88w6Jd/DG/1E1u26NOV0pQL71y3/8PJVOcHMzPTWkcCH2YGOaTTaS2RTN6f1fQvvvDK1bdnbO2JZCr1SeRfn05Pa1PTU0gXJBKW+ecnzlxvCGndhFQ1NRP8bcY1/vjS9bF1V26MwHwsVKiXa3etYVw1TNhYJ3TDjQCO42jJVMcez7J+t9YyJF37ISCEtahjGjxkGDr2DJZ31D8h5vUQJL5RPkXlUMM07u3qSGidICvkzzuSlmlZb0olrK9hD9v9JCrPC196JoPMAolFg6CV+PPj54YeyWecx8Vk2v1Q0rSfhFT18LnBmzBRyNalp5qrSuq7kiAsh4SFa7oZ9M0wzI+cPHOjZPo9V1kS1z4ICGEt4lhiCvZrSa2jol7qzPXJPk6nIGbVbWfUvcr7hO9MP97ZVXpggOu6ajplYStj7l1XvbRMXbPAbp6HzSSBlkraNknrvfVCcPt2sHYi7f3pTDb47KUbYxuvKqkKpYBXKBnV869c3WgbDEixAck0FGFFfEzJzbIsO9C1TyrcymWWsLZGIHoW2rqTzdo5dXyykz0NC8l779i5vu4zwM+eHVntGP5jqVTq/6AkVc5NZ3wNH2lVxNWZNIukMSjiNd9z0+CHp5DXAdX4SAg203w8GB5IATtODHzdK8C15kEjhXvNS9rWA11dnfcMDY9prscss48RySakrOLWqODCoIKAgkuVgsS0urtD60haeV1YYVbbtjUn6/74HXvW/11huFy3PwKzT1r797Upe3jq4sib9u9Y+wxe+vh7W1N7jx49v6ZzbffnQD4/Cj1Pfjx54XiBls6GVuTUc9mQsOIO9mPQFdkIRlz4fy5JLm2ZMOqTcJaXIqpcqnixVe+rdbZ3dbc2OT0D0wZIibHSksmklslknvx+//q3PiKnXcTQae/b+LPQ3r1t0969cOL6G7o6E09qgZegdMJBpVQ1DbKCpyUt6oPKz/4NEJalCAuZFIuEVBJd+jgLh4rvAiFqUVGkhJZMWFp3Z0obGSu/d5gSnWmavuO6h+/cvYHSobgVgoAYjrb4QPMUiGtj1/79jBMkLBwiTlMASlYzTkhWCJyTrGAyMOFkst/BoYMmuIIyGJYcMXMMdNwHPhYN1qWS1t6ZLGaKZL8yzFXTr15BooLLMugHMBRNKgW+It8y9TEcJGt4rvcRFCCEVQbFdg0Swmrxkb0+cf2XOzq73kgdFieEXF2jdEUJKQH6SVWQrNjtZDKlpTPp38U58iUbthk/Ph7sN6zg/xudSGvD4xkq6otcnnjyF0XRRTflkyC0IIJE1JG0QbqGNpMNp5xFhRTcZDNoj66988SFm5vv3LX+WkGUXLYxAuXnCW3c4XbqGs9hwjv+a9lsuN+ahOJSCoLjNDAFvVUll0p1aNPp6adTweSflEszPO48oFn+4yOTmR+6enOshKyYhzWpf/jDuuf6x2aV/qNRaPG/1d0gUXWCA0uu7GhMmkqmerEc8KOVU0lMuyFQ+Ylut562YX9Sncmf7Ojo3BDZWbGLtMkiUVXSWTFNuMqWuYG530f7+/tnGFboxsfdd9mm8XdDo9O7rg6NFq0CFqZr5DWlK9qV0fZqGvZchSuPlevB2VmG/hOV4yWm3RAQwmrhEcW64qu4ykfJho52Vp3J8quBYQooqWDKADftBd6HD+5efyoKj/zR8ew/hWXY56/cnFh7a3RCTTGjuMX0SVB9qzu1qfQM+jO3dBW1g6uVSHv/qVNX10Vh4rc3AkJYLTy+WA/8ou9kJjo7bOh+DLVFZ64TEbCyBktxI5PJZj56R//Gx+NdH5vM4vuI+p8NXh9LjU1iw3EZhXc8TyPuuV9wDaaCfBjTM06N0hVWQmHBDzvSDZ5tvqYR7ZAymh8BIazmH6OKLbzv0KZvJEz3ZzEFnEolaEtV2XEaCLKadrIz//TQnk1/EU85NuH8th8Yf4j9gMZUOrNkZEVZCnsbtTU9KW18GqcKFyjh420sd2+j33pg3F8uTsLaDwEhrBYf04O7N/2t7/o/C2FoGnsIy/YGlvAwSfCvZzLOe+8oR1ZT3u/5uvHJC9dGtJlMrfqjslXVHwjpat2aLi2rjFFLjUSrFUjlO0juddXSSXx7ICCE1QbjiHO0/hofbPgwpnDTOR2V6hWNQqGUx34890noet5yaO+Gko3Y45PO7/uB/lvnrwxrWdha1absbgxo1FWtwplXqYSJY5Nn5lU3bLHQmGA/yko0plVSSjMjIITVzKNTR9sO7dv8RSeb/T9BWmMkKv4D+YzBXuljV7yxd+zfte6VeHGKrHTz4+cv38JWmyUmKzSGG5z7VndoE7kz3uPtq+Welvhwm39weVjOyaoFsBZPI4TV4gNY2Pw79mz8KyebeRIH+VEZTaX0sf27+v794TKmCxNTzr/2NOPj5wZBVjjdYSklq6jN69dyKuhqmWztivYob+RTSkPbe/xMdlMUJn77IiCE1W5jq+s4dYEO6mzsYAmvi/+CrH7LDYxPcBq4HGTFVcG1ULLT5orS1ULIkoSFI2cMHKG8obiXcteOCAhhtdmo6gaOh4EWWlkyYU9gvHswXfgV19d/7+LVkSWfBrItJJhObL/p7elQR8fUZnEV70XxPc01sM+xrzhU7toRgZIHuh07uZL6xA3LBaYB+Ar8rBsfz34YX1j+D5eu317QNGy2xPquSE4mDuXb2IujY2AgytNE67RiKFshzuwCR5s9ZSMlsK0QEMJqq+GkBKOF5yFzRoidK5BoFCeMjM/8mG+a//Xy0Li55KYLBRiTrGjwOQ1br4VMBQuKVJeQKVPxMLlvPwSEsNpsTEECmBLSgbHUpwD1YGwse59l2p+9fmuig4fiNZIowrqq/6Xeqm9Vh9JbjcOKvqFtACX7gV8kTVZvkaRoRQSEsFpx1OZoM2iKxxuHLtDcsZlgLzYZfv7m7XSv+r7fIm234XSP/8o5ktWqzqSyZr89PoXPYDTYkZvziw0NLluKayoEyq4iNVULpTF1IaDjHHZmoAW4aep9geN8fiLt998cGYdtVp7K6iqzXGJFUCAi7jdkuapsBJKcPBwgyP8YRyV7B04Q3dDbpY3jg6gupoMNla5U41BbUN9n0sr1ScKaHwEhrOYfo7paCAW0WiWknihhW/0Tabf/6tDtxpIVSIhGnz1dSXUkDL8fSHKi4/lWPId9Kp3Vxqegp8J/m9f14D6DQ/nmb281FwgkZ1Dj7bnSSFx7ICCE1R7jmO8FJJr8jCvjeNrIxFjDJBpKVaSlXhwDw384MyucBoLAGEfHI5ptO6n1YAq4FjorH9IWjUOnFlF3pj62aui3whbI33ZGQAir/UY3XCVEvzgdw/8NcSyGUhSlpVWQrFg2p39xp0JYLyIohaXxdZ2FGofG6yi85/QS32F0Asu8URgu1+2JgCjd22xcsVElPC85169Gaa1YTkRWJKpSqooBiQQzONvq9sRULKKxtzzAEJw1api2EFZjoW3K0oSwmnJY5tcoSD09HanEDztubnfO/IopyUWC6sUmZUpW5aSqkgwgK04DxxaZrFivacCaIdAuH9zaM1rSDgloOwSEsNpoSMenvU93dXb+EE5taFivKElRqd67qrNmsqIF+yjMF/i56MV2JqadYKxXMDXM6+4Wu04pf/kQEMJaPuwbWvPticwj4Il/NnTrdl7JrqaDC5wTUle1GmdWWVCw1+JotjA6PgnThsIdQrXknF8arkJi/+R355dbcrUaArU9ha3WqxXW3tHR9C5dN//T9eEJ3aGdUwP7T0V7F86Mr0VW4mF6o2NTS/ilaB2HDmb8wA2+08AuS1FNjIAQVhMPTi1NgwRkGKbxRxMz3uaJSRzVUkumOtLwo6Zc7aOkVdEhynN9NQ1cyuNqeEqD67mX9TXGyxXbJhFthYAQVosP58S0909czfqJqzdGODVqaG/IUbCWr2p0yukfp4FUtDfeir1yl8IPUGjPHFy/fqJyKolpJwSEsFp4NEfT6Z3YBvOp8MvMc0hAi9hHNQ1cBrJil5TUZxhfXsTuSdFNhoAQVpMNSD3NMTzzU1PZYAM/ProYkg3UV5rHT8lXmA7SwnwEq4FLLVkRI04HM+n0LdvzvlEPZpK2tREQwmrR8ZucCd7hePr7rw2N5PfxLUZXON1zHKz4kb0KnIttP6Njk8tyaimbwXPrsW/yq3v3bhoqaJZctjkCQlgtOMCYCnU4GedTI+NpQ32XbxH7QOmKG5nzdIWZJz8HNkKygqI9TmSL2JSiovGVn0A39c8WBcpN2yMghNWCQ4zPc0HRbr6GEs6chJFnmfl3knZO4/hmII1B6fiFG9br0s6qAeXPp2WUrhzHeXH/jr6n5pNf8rQuAkJYLTZ2kK7Wul7w6zeGx9DyUsZovOodOizosTg1TM9k1Wogpa7lIisOF+w48E/7E5B1Y/cgtdizsBKbK6c1tNioT6X9n3MDcyePOo7OoJqrC6S0+ZIYV+GSOHxvc18PJCxXG4ed13I727axqTp9yk9rX1jutkj9S4+ASFhLj/m8axwdDdbgELxfGsLpoZyqVXPVU1QugVJUV0dC27p+FaaBWWxknq6ceAljTNMiAf/BoUMbJpewWqmqSRAQCatJBqKWZpgJ731Zx9pJM4aK0hXe5vlKVFEbKFlxs3PvqpSSqpbzKztRm+gnEkktnU6/2GFMfa4wXK5XDgJCWC0y1iAR6/Z49iOjY7C5qkG6mk+3SFQGlEP8FFdnygrNFqBsn1OxP5+K5pGHbcBhqhT8fqu/v39mHkVIljZAQAirRQYx7Wj3Zj3tddQjVVJ4l50CMjHe8mqOTJCCvmoTyIrENXx7Uinbm4Gs2PZUqkObnp76i0N7N36tWl8kvn0RaGnCGhgILKPn3B3+xKVXDh8+nPseX3sOlpt13+P4uonv71WeDqLr1ampFB8S1JrulNaHc9rTMxltcpofOeWns0rTLkeIZUHRnpm5YibMf7kc9UudzYNAyyrd8ZLpWvfgQT8w+oyevXeo++bBtaEtQd9s1/ffRsV3I6eDJCp+nourgH04UZQnhIYfWm1o8xdUGCU8/E/bil89sH3dlQUVJplbHoGWJaxnXri2HTvd1nEEcCBS3z++MLi75UejQgcmJjL92ax/gNJPo6QekhVXAbdvXI3D+XQ1Bcxiu02zTAEjKFIdHTQS/S8Hd2/4YhQm/spFoCUJ6+mnL651gkwRQRmBt33gO+c3teNQYin/oG6aKX5rcKEukqqoWN+Ij5vy81v8UATDG0WGC21jlJ96K6wKPpWd8H8jChN/ZSPQcoR1+vTppJPS7iw3bIZl7n/++eFV5eJaOczX9Z2YvM1LPxWpocBHKv8qHHdMqSphGUqqahaThfj40ITBcbLnsDj6oXvu2bS4n96JVy73TYtASxHWo48GxrUx+5Cu+XY5RH3PMzLGxF0ktXLxrRoGNVPPfNtOolIrgElLGYH2wbZqcipdIFVFlDbfGhqfj9bskCaHHS/7gTt3r73Y+BqkxFZFoKUI6/C7Lu/Bl1jmlKB8PUhcHjHufuyxx/g5lbZw+BL7bX4EoiZqyS0T0uM0j1+82QSl+ua+bhxj7GjD2LicwWkLzaarigbKsmDJ7gcTmezMBw/t3ixntUfAiK8QaBmzhq8/f26j77pbaxo3w+jetPf1B5D2RE3pmzyR4/nH+Mti4Wx1dUrCHO0lSVGqskFUnakkpn6mhu086jgYHkWTW3Wbo4Tli6L5gqYHE47vfeDufVv+YflaIjU3KwItIWEdO3a9Szc0ElDNDqcLbHjmxas7a87QxAnX9ljfxcr+Mzs29ykpi1O8iJjoR/cm5o7dnUl89LRLW93dyWmVIip+Kp7pmlWqIvQ8Mga9Gslm3Efu3LX+K008HNK0ZUSgplnGMrZPGxgYsIKeXa/TA61jPu0w0+7xBx/cd3M+eZspD0wbDgWm+RXP13cODY/jWGKuGAb48jG+agNpilbqlKZoWDqDY2AyjtNUlupzYZlKpXgaxIVMNv0zd+/d+uxcaSVuZSPQ/IT13TN34QRvZW81n6HSDdMLUqmjh9tgd//Fi8OHEl3JL3Z2dh3MzGA7XU664llVWRz/QhLjNYmsmaWp/DjCjqIDdlaZTOZZ1/A+fGj7hjP5OLkQBMog0NSE9cSRszuswNhdpt31BRnazM3U9IuPHDrUuG+419eChqU+cvzqjp7u5P9KJpMPpqc51Zv9QntLkFQBEqZluVCw/7nhaP9i376+8YIouRQEyiLQtIQ1cPT8GjOw7vE8tyFtxBrb2MBXdh579FF99g0vC0nzB548ebNHT2l/aFmJj1BPBYyav9EFLaQ+jdPAVNL8/pZ13a8qiJLLOhAAjvrTRy/d0enbF+69d0tzHFhWR/vnk7Rple6mp+9uFFkRGF8LVj/08IUN8wGp2fIcPLh+4sCu9R+F3ucj0MLf4vaVVnChqYWmdaQS2jpY2vd0djh86Vqh7c3Yxm8dudTPxaW0lrn7yJEjZW0Tm7HdC2lT0xKW1xecgHE3FDWNcb7uDh6+r/96Y0prjlIO7ur7TOD5b3ayzt9ylY0Gl83qKFXZsCXrXdOlrV3djf2LBr556JOshLDmMWhPPXV6vav5O5jVxYLUhNl3iIbV8yiqpbI0bQcP85C2Xu0l3dczC0XUN4Pzb71339mFltOM+Q/0rzu5f2fvu1zH+QDOt3uZ0pbVRMRFouJK5qqeTkhVqyBdtdUmhGV5JI4cudrpd5kHiyp3tTU/8s6r+4rC2vCmaQmLWJO0Ep65INJK2tbpt75298U2HLuiLh3oX/95L+0/kHUyvwTieiUJHVEimVzy1UKeWMqv2pCoKEVFRNXT1aHawnBx80eAZj7TwcxdAc5Gi5fiaNnNT37nCk4xaV/X1IRF2B94YHt63qQVaCcfePX2K+07fMU9U7qtHev+xE/7r3cc70O+6w1gxuV0dHZiusgvJS/O7IskRXLs6KCxqj+B26t9a3uUREWi4plbQlTFYzXvu+7tB3EIUGel/L6e3TNw5NS8zYAqldss4YvzBC9C7559drAja3qvDoyg6pwCP+KBZaVOPPjazS1vMLpQKE9fuPnawDB+EqehPwzWuAuSl8LPg90WVxhJJPWQCUmPBAWTBEz1TFUGpqO3wYYvIPgr2az35a2b1/50V6f1e1NTlVcvEzB0xRekj67usu5FmS2/crvQcaol/zeeObfTSOj91dIq28PxiaOHDx9quy8LtQxhcZBqIS0Dhkl2l/3yA4e2j1Qb2JUUD1Iyz1waOQib0vsxKXsAFvH3wMB0JySwtZC+DBPTN5BOCEnhrI1BuKe9l6tIzsVCiD6E0DOabrwI2elZ09aP7N3aNxjheXvK+a1OENa0EFYEyYL9rz072Ju03ZpNQKj7Xd899cKhNrA9LASvZTY/s9GcHoK0XsrakLS8UklLxyl+/rj+/Qfu2367sJNyTS7SuZfneO7ffweBGScu3NwAqWgrTvTc5jjBZmw87tMCfRXYKQWOgula4OiBOQUZ7DZuhrAGdQXxV0zPuCaGnkv3VPGHOpPw7+QPR62OM5HhdNddGOeX2kmCbSnC4mDlSStVTFr4eLljdHV+702vWz9R66Cu5HS5h5hmHvz3QiOxwJTRo2BGgY06dm7OVhewYGAY6s75oD+ZDs4JPY9JyqSCQ7ABqftd5VFM3/j2Ja4mtsWpJQSq6ZXu5UZTKeJnsHpohiYPRqBn04nkS2+CQWW59BK2dAjwS0Y4IHDz2ERWG8Gnwm7iK9W3sFmbvrqGPzw6gW8eTmvTM07XmTPX28KYd7EQ3rjnvv1QFHbPt3zT9DcMPHd+13zzN1s+/hC2rKOo7NjeQdsxT5LEWrYjbdLw05eHtwWe9jl0542u62HZHZIVpalY/yIlP5X3MHYddLLZfy4fmYiBhNuB509vw+rG3tKY+kOwGHLi7W/cS91jS7v4s9TSnZHGLx8CICH9lXNDX+zpWfXuycnaBV2e3e567nAm4973qv0bzy1fD5qr5oEB7KXt0u7B3Loh7yhWVfypbOalh9+wr6U3mbfklLC5Hi1pDRE4ef7Wj+EEiZ+amqpvJT2bzWjJRLIPR3n9riA5i4DZg720DSIrlsrvHXSZ9p7ZGlrzSgirNcetqVp9/vz5FJTqj6JRejTdq6eBMzNpHP9s//QrF4bvrydfO6f1JrCX1mvcXlo98Kembjotr3wXwmrnp36J+pYNeh5JdqRem83O77gxkpxtW3bgOZ/g1HKJmt3U1Rw+3D+zrc89aunagnWzpq6PdxujLz388L4F78tdbtCEsJZ7BFq8/sHBoMPX/I9hyrGgnuDUUZzrnnz7yQu3HlxQQW2Ued++fZmJ1e5LoPB5k5ZpWCPXz+08du+99zrtAI0QVjuM4jL2YcIZeh+2+9wF49MFtYJSlgmHE0g/JlLWLJQPg7RmhtyXsJ18eja0tivsXhj6xy9ve/mRR5TRcG2ZmjyViN9NPkDN3Dz1FW5z9XM4i+s1ME1YcFNpUIrVLHzJzHnwjl0bn1twgW1UwPHjxxPXpztejR0HFTc+F3YXRwxdfdM9W08D0zrs4wtLaM5rkbCac1xaolWOvurhZIPIih0OdVm2haNTfqUlAFjCRnJP4HBn+iUqz6tVa2nGpTe/etsP2o2s2G8hrGqjL/FlEQC5GHghfplSUSMdvwaEA/9+4vjpa3c2stx2KIsfUek2dr+EuXNF2xEjSJx98w/tbFt7NiGsdniSl6EPp84O3W/Z1oPzXRms1GRKWdCJdeCIlJ+vlGYlh997r+70+EPH8NHJEtLCauCph+7bmj81ox1xEsJqx1Fdij4Zxi9AT2KSYBrtslgxhOD2gWOyz7AstFzx6zFHj1mGobYUYAgC9cHge3ddK5uhjQKFsNpoMJeqK6+8cm0X6noXiWUxHA8WxAdWNyQM45HFKL8dyiRpueM7jllmMGpnjO+1w9fNaxmXxiogaqlR0jQdAkeOBPjczrnOiQ6jw88ESSOA6KT7iQzOHEvavu1pZsLQg4QPP/DdZG9Xx/vWrOr+mfR03SvtNffdxleAQIgvTzjBT0w409Mpu2faufZy+vDhw5WPMa25dEnYqggIYbXqyNXY7i/jCyvdfmaVb5hdVsLp9LJGp43j1/1A7/RdvdMwPRzEboRnLVHe9vEvL3eXBOB4ZMta22H+TiqV2LJQ26u5u6Bju44Z3J7O/Lvp6cwPmBanOwQ4uNHRTWMK21bSvh1Mm642nTWCtKkH07rnTE72aOO0XZq7bIltVQSEsFp15HLthg5J/+aJE12m3tVjOPYq1/dW4cTjHnwMYhXOce8xDd3y/PJW6OpMdsTRVy4iK/rKMR/jwvz825VIHFzT3fkx13UW/dnhRy3GJyeeHEs7n1XNibUPFvY6vtGDw5vV9w0Vofn81qGhZfDhi3HX8SfQ/3HPMse9CWcCX0gel2OIFJIt+2fRH7qWRaYJG85NxldGzV4tGayFSLQ24+q9ULyu9gJfMU5ELTn6wUISTl03NHz1KzyiJLqmX657OLLdSJgoXTO7cBxyN172blier4YCvBsFdSNXV2dC35tKJrbzfPfFdjwvC/qs9MSMxxNRsSqmT6LhUDQHE+jUBE7UnATXTuLsrRn01K2l/x6+qItiR3TNG8V59KNB0DGSfNXGUXwJY2Gm+osNhpSvEBDCasIHgVLTt75/aQ0MnXpBNb2QgNYEntfr4wu/nBYpKQLtxtdwAh0SBX3VDe7nM/Ha5vf1Fb/CURS2bCTAWWuxR229qRsbQQQbUed61LfW14JVKKsTJ5sk8WUcHbtlNANyTOhgcmAGKH7p3m1FWpqtuZCu+LByVdKHVMjpKEQrBwIW9tnpXOIH+QTDSH/D9f0bmCLewDn1I4HmwtAypPDZ/oe9oXKf/aMPsWxSs/RR13FHrURiZE1gDR86tKHEdCDMKX+XCwEhrOVCvqBeHNaW6ui11/mWDtLQ1kEiWodXE4rwYgepAPssTPCMOjIdAk94TZ8pMZjch8HjDorGFUTUAwlkh64be0A9/ZCatiDZWtOyE7ClQmIdJICJFYhA+TRV4Fo5/QIHiUvrTEbkVRCxiJfsSBbfYk87OTExXxdazY5yUgiRKfpHQ1YSkONmAZY+gV4NIeVFfCXoLNA5h/Plb5LzWAyzF+IVXdNnvO/6GcsyhjC1vmWZ7s2pO3fdOqzriy9asnJxZREoerDLppDAhiIAEtCfO3F5rW0a6z1PX4/nf53nG5RqqrpieSnULEVh8cx4E7ugH78H8tG9eP/24oVezY+pkpA8b/abhPF8le75BqdsXUtaFeaTlTI2IByEoU1l8oq1mkokcZHElIRoWmpejMMCMyCvQXyy7JjjuUcgOl4tLCzCMpTHgFpcgkViX/dH/ax2Szf8m2Yqc/MN+1r7BM/C/rfCtRDWEozSkbMjq7NTY5t13dqE6dhG3wsSqlp+C9DDi0ifLrqmT1f6BgUaPjiHN0lJAGAfvpWcI4XjiHIMF6ocO/EjmMa9HeelQ1LT1PRpoce/sJwOTCQtc+kfGQp6Uxl+9JWtmL+jNEaJ0gKBgbsygR58B4sHfwV5aliVWg3vCHv6ymHcdG868IzrVsK6pnd71+/dsmXxbD3m3/W2ybn0T1/bQFe5I8euX+9ybuqbXMPbDA7ZCKV4uMOecyz+9OfmWvj9x9zEw6JW+JuOX298WhE6qtwLEV3TL1tb/AWj7sqwfqaro/sdmcyM+vBp2XzzDEzaBiQsNH+e+eeTjQ+ohwqnG0BYhfVzNYKrkOmpyauYYH8KvD8G6RPBszrC6Jq+ystl0ghzXEZjR5+O4+iZwTh+eG7Yqa5rq/3hGzzTSkXKn4YgIITVABjBP+ZzP7i8ydasrZCetuCHvIvFRs92SEdlpnCYE2LOQi12OA7RNf1yjrphHIyE9yOXPnfNMDg70DpdTf8DWDKs5rRvMVwChAWrUgh21HzllD0NrigqlxKVC7bKQuOOWeGiuI7OTkhb6T8C/Xw3xkel9cXxj6eIxiY3Hhx3X9dHsWJwDaa3l1+zd9Mt/F4tUk/ijWnP+/DBb8++LWqvnh0c7NDGta0pO7kl6zpb8AJzEUr91kYEFdeBRCt69Nm4+AsSl6jwjVGckY6VwPwUpLhLURx9xliWvxFHi/w+zB0SWCnLsVpxnoXesSI2ngp4zmRJXPgf/0IleGH51R6uwjeX5MR76qtITh7+8N9Cp4GF7Sm8Zl1s35pVXVomm/5c1vG+Wm284njHJeJq44/FjixUAld8w7uijW6+xo3MhW2S6+oIVHumqpewglJ87+LFtcFUcqur+1vxwPcZJqYPMOyhXw6GKI4+4/GwQpjCBhe+6XDIpFb06PM+np5hhS5eXzw9bLJ2pBLGv4Fe36BU4kA6IQGw8MUY6MJywVeqDs54Z69zrWdY7jI3G1ZtUiSV6zzDI3IqLLew/wu9jspl+yywrA1pEed5QceXPT3jBb/DLrA5ua5UHZ/4eMTbFx+fwvE3DJO8fANrjlctL7giJhRx9MrfR89R+VgJ1Y6currONuwd0FNsxwtV02mPlWGLy1TxlPHf6Hh8PH9xesvw9yRM+5PIRT2ZIgVKKZxWUY/PT8aTFPji0i3m4Ed1hDWV/7uY9bNGtiGqAyorJRWSqCgdkrQiR5KddrwPlsq8xfhG6efvx8dvtiQczDdmmPaldDBxSVYeZ3GJXxUMWzxq5d4fPz7Ym7X1HTAL2A7NqtJHEQ3qtCPjw3LoxB/v+OMZ5VVzR5aHWRuErYA+y4uu6fM+Xl9J/lh7bFvbY+vmv0bWos9tsXAWSLIiaSnyApHxJz6SbFSFuXTw8i86r5vVRW1m+6IHmUREAuI0lcREP5q2ztWPrO9/YK54xsXHI56+cePvj3qBfimZNS+J5FWMcrjptThsRd4dPX9+DcwEd5iQphwozfkCwJKaLv9ewHYKeicfSudwShcnJDBBOD3MTwGRO0cqLIj73jQTaejDBYaPHTBgJ/i5+HyYijd95sFhRzkzB7yL2IrCtGwezj9nOQVTUlfPwiicifnu5J0qHHd8mXHIG6ZD7JQqIk9kJK6QwAokMWRUhMaSeJ0vcfaiXNhs7PyuwpYV51Vh+EM/Pu2M9GckpyiOuZm2Wvtom+Y4me8xPbvIIujzPu6Wbvyt1ejL3U7Sv/v754ZHsORwaX3KGdwiJhO5pzY+Mivk/urVq52jTnIXlEc78LKu8qAMx/G8kHhyOicosz0ovM3IrIDKb15HSvDoOoqv+hMLYCOWI8ash0vmufryZVcqLz4u8fym3ov1xT/EVp4UDUTn4/iS0xW+sZTMojASmLqGp64iH4FRXJQ2TKj+lv7JVRTVxwQkm9APyaboGnGMzSVR6VR87ipsVT645ovOzi5tamb6zzB1/nqzjz+s9YetwLioZW5C8jq08K9+1IxS8yQsfF6ap1WL2BK8VOaJc6NbPcPrx7wJ++hmHQUPvOaQgMJ3ETtVlERDP0wVsQ19uPgcLQyt/Dc+p4jlL6k/1xa2qVyh5ApEzEoErm/DsPOTXV3de6anq36roFyRdYWVbVSshHJEMt98saIXfIu9koplYZL6m/hUz7kS/Jt0/PE8+Jj6X/Y6k+fv2tA1BKIvB/OC8WnGAmp5dpqx3XW36fjgYK/upXbhFd+BrRlqn16MfkrspkoC4hnirYjbUVWzs4rHx8uL3cerjwt0TA4RcBcsuX8Rn97q54okVsCKJJ9YkSvy1gJR4aOtnAr6OJP+L13d+BKBKMEzHhAfgDh6yzD+vqHjTDDvYpAxLqwEfVdbE9bpIEi6V27tdLP+LnzPrWS/XrRTnz5d4e79+LNY7r4kP+Z7Jv7z1LyPL0B4Tb+ci9cXLy+eJ54e8Rw//rqqcUR+HOrgYVprJbBl5E2w63oI64J7k8mUDZLGhmAXs19ucVkxP8gKQu4ptCxbMy2TW3KAGI4u1P207ztH3CDx/7bL+Cdse8h1Zy5ev7Dp8uHD7blJuy0J69TV8XW6l92Dl3cbLG6g98idbhDgdANcY1ZY9o2N4mpNr96GRf1Da3Wui0RW69F1bWslvp81LD2xDTOGu9DhQzBc7AcYfYlkAqo6A6ozqHNBYJTESGitTGShsp0qQSxT4AcoPJQw0LBlEPhBFakHDjoLvY+XgVIyg7WK77tG8n9pvpHXBbXL+OMBd7FN6KLu+uf27esbX9RHdIkLbxvCGhgYsDb3v2a7obt7YHakpKmYiqgE2ioqJbzIOszXcSov/DAzRRNehyJKvPx4+igv/ZLKEaCkoZxUFMYXE1I8f7Xyq/UHp9CkAlfbCF3NdlhS7IQguA0N2wiJYy1ktC5IISb1Okr5jSYruy2SGlYkIkKLSC3yy/WrUWGzSnjaTUX/QEhYQuNewLCdwBFKRkpOuAfr4sBnwwfDg6B0MHagORhBHNqHw5WxTwYav6lAt/42MBLfrYZXHO9w3Ftr/B0Hp0pY+tkD29ddAz5ln8NGjddSlNPyhHV8aKjbzAS7Dd3egRcvgRHJWyrHASw9Pyp+vlSxEluH0jWAGQF9VVZMpxHVRZ/xSKQU4PR5Xy0+/sLQZCFS9DN/XKtSeh5WrL2x+sMyZv+W67+vwz5eC7oDx12rm9pakNg639B68XL3Qh+2Bm94DySxHhg0daBHSQhiCbyyyMS9SDi8RhEHyYP1qD9qak0S4VGn5VYrSTRKEkKHWYYiHuQmCYb/YKYLqS+3H5LYckxJmz6qhSYJ5yNgzgtuclESpncBfN8Fj3lgJdCSGpHcGECoxrouMoHjzO+4evLLMB1VKxJV8Wyj8Q80Ix043jnTu32hlTdkh08Yn7UWcnio9Qs3pzZm0lN7LCOxIdIZxbuQ1+lAVFFxJB7aMeUIiPkiPRPjo2v6dPF4FVjHnxi/oQK0Az/bymf5uI7ayGLj6eM63nrbF5VNXzV7nv3HViQL3JAEaSV1z0iBNJIgJBCYkSKJYbdjEiSHw7a0BI5s6QBBbINUswMUsQ6E11UojZGccA9dcZDBdQY+TgyFTgkiEKYyIBvstAQzIRk8cBJ+A2j4gZFDFWAqjAp3V5IhQYYwwUJ57ByS0QINzMYK8FyrRxt3KNbXb2qG/UVNT5wDyCt6/A0boGbdqzPA4tD21SPquWihPy1FWHjQzYs3xnZkM95ePIZd8RccBx1xez/UPowp46I4+uVcLD9/8Plq0Gfy6Jp+uez5uqPyY+UtNN5DuVQc06drpv4bIDXsjtsMpdkOSC79QK4Xog3PzwF4IBNCBiIhpBSpoE8jioqWaM2KCRuOqwLXgIQItKIe0lCYD/lZjoqgGIo0+J++SsmMKA8eqQ21qHuUh2PfzQHN6vgG6vVK8GfmQhcbr3Yff+AEi3rtdCtNF8u/eIWD2ATXx4Mg0XH1Vr/hm7sDQw8PvyvTrriKWocEE0C6oM/kJRJHrAykgj6WGlq+JUifu6YfS6pu4/UVa6AgQcXKi78ApekhcWFBwMstEkTX9MvVHw+Lt2ex+4+Pg62CxgsHEwZbAdgWIJfA+ICkfDRYtyAwWWB7Ay8F8VT/KB0bOJ4Gx/CQfUKSwZGrJJs8iZHYgB0zMB+zk8hopQ8hEcEog2ERASIBAOL5fIrVIKLxXKtzKPZLgZUckvGf+/nH5HsK0+Uz3316zeAjj3D23Lwu90w0ZwNpiZ72UnvwfO/AXIFnXfLBxLOsHn6yiLqmr3oQ04LHX9hq6TFHI6txrlYWkHj98UT1lh8vryR/rIKq6aO204drdP8hRWF3itmLUw42QnW1CSTSA2IAIXkWOBYKLWw8wjVqNkEaFqjFwLQNJhWI4ZiFoiq6QX0SbsEo6HMoWVFCYprwjw6FP65BXCSoXJwiOwpnFK9A6yiWkQhRDwA9XAfpwLS/AqnqSKP7jwapquiznXFXMn6x8Yg/X/HySvLHKqiaPlZfvf0H6BloAM/v3tpzHkJwUx59Uxb4GE5Lfnt2ZGS16SX3+F5mq4llfegtwnaSR6J5EC8hPUV6IDaS6aDnoZ5DpYe6AtdgOr4pyhXLNPH0KKCo/DDP7N+S+mI6qHzbQr7AbdgW+iylWn0l5cf6E29ftfSN6L9lGl04x30tOtMHklmLhxpClW9BL4S1T+i2uNPRp+0FflD0AN9A9LHnmHGBBfJCE3QL9ALiguoJqiu+64gDzWGIIAlhzhaSDsMV/yjJi3BxyY9khP9BXBSzEMY/AFORGMmM1yyKZfmm+ZKuJf4uMHV1THEj+o+S864E7zYd/8Dliqp2MamvPbt9uw4dY/M4DnXTuMuXx/scK9iHLcbryzfKwvOJBSGNPl10Tb8WV0xYyMFymDdXXv46Kq+ueChJQI4WlSUqf8StOf5CNdXqr9afxe8/Gm6AoLAqGKyCGLSG350ACFzKM2FvaeOseEhFOsjItdQ2S6wYYmkOdl2+CfLBvmpIV55vYY2Qn6uAxAWC40zbhxSmWArcQj0TSIiSU37mx0kgVesgLereOSz8E5EWJa6Qzyh1hZEcO7xY4Ct9WLfNvwa+5xA2h6uGP6vMPxMsZ8WNf0Gf+cOCw9usq51a5+kNG9Sn1IjJsjoO0LI7EpVra/vxhPdFs7JyjYriohlbTAKGxO1C6oJEljseOLqmTxfPX66OucJK66OUNzuDjK7p05UIbGwX25I/vrj4BYrnD0uZ/Rtvfzz9fPsPIkgkbL0DZNMFRVEHFEY2ZCBTcwMLdfCsCCVN4SwpE9YG+ARNgD24IDHYSYB1yNCYDkLRFoC8oOUG40AKQx5IYyAmlQ6SF7dDoSof0hbJiApzqLs43aPc5UG+AvVQ/4T7nGQFQiJ5kdbAkmgH2Sz0FaWB4gLrad22v4nmuvPt/yzCc1+V4t0e4z93r8PYwDCvNANxLSthkai0jmCf5+jq6y6Y4SkjTfoKprgWufj9Dg3AozBmiK7pl3H8WDH3u0YfLY6u6c/HVS2vSvsxoygyTF2q/qNenEyjJ5NJPYGPRidME1M1/JYqwyoNq32Ihu4J0z5M+WA2DoqwEI9wfmEaEhQJzPNsKNOh0jJwrfRVJqbnNOrC6IGwQFzgHiKrpCuq2kE+FizrMXWE7IWCEKemg7hSiimOQchNIC3EchqpHlBO95TshQThkwF5TL9k+Mm/MZLGzVo3AlQdLzagDle1vCYd/wU9/5Z5ZcyZPnNow/J8ZHZZCGtsbKw3rdn7nIzTx42o0WfP1cPKuYJ6XPFs5q7p8zmKx5v8cdcxDeMPOR1fj+gh4X10TV/dukiC+nJPeLy8eH1hrtm/UVvpKxcrP2oL/dlcs1eQ9PCeo73wGcp+R2Xyvlp74vH19B9EkoA2CYKUlcQqJCQj6vkoyBjh/IurcJiy4Zxy2FMptRBO7sK3kClR0UYUZAX+wMqfC1ICiYHMYBsKSQsSFKaAUEqZLoiK00ASFsgpN0UEUWE6yOkiiArE6NmUb91OWwAAEuNJREFUszCNxA0c/uBoF04W86YOarWQAYjGmHBBEIkUiXEqib025hNmInWknv6zKo77Sh3/RvcfSx5Xl4O4yr5Y7NxiuEEQFT4uvs8yrF5VvosX28LLS185vsiRHkc9YPiJtrCbJIzHyx3gJdfpl80flZWPR6qIxJghus7xjSqj4E9UNn2VvN76Csqq6XIR+48OYEeGlcAaXhLfQwxNQcgQEI9IErOOxBUuCuDLz9Arm5iyOTaYy7Jty8hAb2VCm43ZmwnwQTbgFpAWyA4SGEKhaMdgYNpngKAcpeMCAfFjYGE4yAqco3RZ0LorUqOkxVkf6AgzvFBPFbISSsOUD+WRrWijpcwbmI4Gomj4yxAIv4bPVU+q9sfxk/EP36UlfP49N3vNWr/m9CZdX/zzjDDofAoW3XHVr9NPHdB8p2+uORl/mjFLUktMbBTtkSJbpLCRxYyD5OpJps/4+DJuvq5IIgoLqfi3pLzcRuloM7QSzKImsBSWG80LVKkxkSvOkFHaCjL5QvrPN9rwvaSVtEg2ICmQCNRQkGjwnlOpNktMxdds+GxcRFrIyCmhTQMEUJjl4qwtzPbAOVC8o0DUZroGiMmBpEUfRBZ4DvRUJC4/1GOpij1ML9XU0PJdFxIZGsOpJkkOQ0YdFh5CPodKl0WfRqQkVUhTIEf1iN4GkdJU4Rx/xsJfHkpfMv4cd+IAUJb1+YdkfSU7NXp6+/bti7qquKiEdfVq0Gl2TO2DonYzAcUTCv0slCB8FuGia/q8j7iAPl30aNIPHVKq55w+00MvjFLo05WmV8H5P9XLzydVF/H0xbGl9UGfjm226B98po2u6fO+0f3H9M7SbT1h+FoS00ybSmm+5/RZHxzbwWvVHtSvNuLRR4BKl0vPtHRhWh1SESUsNBkH0qjvNiAx4MA1JDBc4yBmTPmwJArJCFM+dA1SE5XsmFIqRTzKUrZYkMio78IUkauFoW6Mcbin1GWrOR8nqOEUEUQFmuK3ZdEw6NFg92s9j3XLp0CIsAuS8VdPkcKhCZ9/KAc81x/c3NdzFjy6KHZc0YPNh7VhDg9jYnh4co9n2dvx1nLalys7Rimx2xLGigfEJBQ0Xr149FkBVb04BQiTlPAFbTiDxRGKM1pJf5AgarPKG0sQu413N07hkCANO5m0fSebtCwziW5DqMISHTRMJCDF23inYbmsauNCHq+Vn1ta5dErzKN8psP/RiIXVpAegKJQ30Y06AQSEXdAIpdL0wbTNsLpoSIeCwRJHZYBpTusIFAIlPC0iqL5AxoCcmLPQkkLdITRCc0dSFqQD1A51g4pLOXmhZCwDMO2BpH9q6ZtDoU4oKQIy5yEynFnv+mzw+0+/q3Sf5yT4aYs89zq1alLIK7wYeQANcCpgW5AOaqIARzxcudrXrMTz+cuFAxBI1Rw06eLKz3xsnDikt+Mmr9mWBlXrbySeJAlTt8MXJImXHRNv0zx2GpWZ3r0KKqzXHlRHH26+fQf+mkbg56ADjppUuihMJl7BEhGtmnj+4Phj1lEUAzjaQcgJkzcqPPmlI/yjdJV8Trf/+hbeYyP0uMS0zSVF8SEaSELxkhR6a7IC1IVHkNMBWEkCljxYQ7YXgWKrDCHw2ohJDDKSkr5Tst3TANBp7DdgkTFKSOpxYMtV2i3hXQoJjwbBo3L4oibAajdXmSbCl01PEvi6x3PetMvwfi3cv+xHpPRk8GZvo6Oq5y5FvZlvtfqQZ5v5igfH7iRdHqrn/H24McyEb6ejCUxkCwqEATi8JDNKtWRIxI6wrLj+aOyQgIqLT/KTZ+OLYnCFGHE60PdSgzIgVmcfrbt5evjYkB97VeNyv8plx/UYoChElhYgB7KtD3PAUWRpejIVNzNAjNzyDuYRqnrMF5dIx4CkTrlAJQRps2FhZIX5lqYwfFLOygTBeSmkUhDEgNvIC7MR5ML6JhozoCpn+858G1utbH4j7BRT0Z9VlZzbTyOKJCKeCjkqYbkFBJh+DXCPVcKuXKIFURlm8WBoZSFOBCYmk6i33ioT+Kw1CegEMspcFfe+M8+rRySNum/YUwm9I7TPT04NWOBDg/nwtz16xMbEp3mPswIOuI6G7wBSlynz1pQWZEIP0smIcEEWN3QsfJDn+nj9FFSPh73wilgdE2f+eOumo4pPqWI2kI/LKu4RVXLq7H/kJopRUFhnkj4joNT9KC/BlZgAIVD1I+cwASVUBgCIsF1KEQxJLpGPKHGP5LYrAs5ikREnmJ61KF4K5cG1+REVS6HC1JauGroYYcOrLWUEp6MSF0UpoZgK5hV2dgEzeNLYbMBnRQZEUPnOwGMT6GOp57Kg/0WTCMYjnsQHpDmlJFTR5IcNt/alvV1PdF5NsKcLSpGG03L6QcjnWDpeIXqgFYb//A9wGi1+fMPDeqY7nae6uvT530KKp+JebkhHJyX6Fqz33X83tCgRr1d6gXBH+XnFtEwDmEVMBfAtbK7UvHxVTb1gGLQokbFVBZMDtUJHmT+dsPxmqSRU2nkrxkWxhfbOfEVwLov4sIaonSRr1qZy6vy8xliPbn+qPjYHxSm6mJwdB357DfaVtJ/BMLeW0/ayVQSR6TA5AB7h8kwmFeRrFBUSFYkJk7GsM+F5SuiCQmFBEriCskHYcxfEM9ozBjBS/yaKD//rBzndjD3BHswAcmqwFdhOWGugCw5owwpEt9sxMlVGWQEK4GlcAOi1XAcL6eLICfdcMFmNDnH7xdO/YTCHTkxM2B6EiSPbuXmHrZO5eJy4Iu6lfo2Gu8orFfA+PM9UMjnHpBIx9v+/Q9Wm8nMfcMTE1d7u7vP4Ec6fzy1wqOGP3xI63JHjgT2/rsy/boTbMP0pe78dVUWS5wjK0VUjIqNN3kA62ZYeIcfxofXDFNFUZBTT4W6m71mWBlXrb4yWSoEYWh0jVIUdJEmzA6o18mRDN7dCplCEkK8IiP4WRAU9OO8j5wimZB3SAhKYlJEphLkJCaSEP7PEdxsfVG5UWFxP6qPPngTlvBED6IWLN8dTPmg8ocFPPRXWBdlFWqqCEmLlhAgLRtKdLaAkpQNfRUM6DUQGOUiTimNEaT7FvRVw/F6K91XG4/mHf9KPaovvJ36jzfSS1mpc6mUdhnvhZL4a0GjZsKBKK+n0+kt0AHvztCAsIzjeeAeUKVPF1l101cBWCICxcGmcPalUeHRnyguIsJYej79fFnpKxdjrKhu+spVK69Ke+OW6SXlh7Xk/8b7D5umJKY6nUiQAEmp5ZKoD5Ay8kTFzcAsJIrL+ZREYCWAaU4ubXRNP8wfpuSuGubHMwCJhSuGPCiYJIMw5GV6xkfY0Wd+WoPiBAlEhvnzNluw3SKZYTkQHIQ5J1RQDg7Lw/QQGUIdFp4wcC9KgQ/7KkxjucEHROVmc3ZaCFfEjMxUvlPvBZ0WhT1Q1zG06hQKyGPA9qEh4bPRJuO/0p//WvoPyXpa77BPr9L1mn64QiJRT0vlP3jg1oyn0/th1dnN6VOkQyh8wVRuPpLUH9GHi+sckD4vLaj43NSHLwfv8cKjbGxdgc97JUpFpIRbpovKYHTUltkpHYkyEqNYf1gWfZU+Vn+JiMZERS4qKyTAMv1hmwoItLT/aL6OL9cn8A4mknhDkR5CUuh43ExhAXjnIQVxRQ9UwnU1JM73meHISINzlY/1Ir3jwNQBtui5IpU3K2mFZbEUEhgJiHlZhkqI8rws7hPFxBHlZ5romu1CGRSv2HyQEQiLPkwefJcSk2o0mU+F8Z46KswbKd8qvRUWiq7BsuoYlF/q+Jd839p4/KNnFHhw+Fbc819r/y3dHO7qsk9D2lLPBvEq59SLXC6CYSCq1OTk5F48g+FxLyQSvvyzhFK8taaYL1ACiYdkkSOg/HVO4irmAySLlR8+yHy5wnaWysTF7YmnRxdyecMXFDcxx3KjNCUEGUtb2r4Iixwh5qebxEG58v2Hkh0ERqlLp5kClNLkngLSyF8XExrZi089SYbFm9DRg1FCbEKyoxQE8sqFkTOgTwrDVIPCP/k8qpRcGrxMEXmxnpwjUeXbhjpgA2bBNsp0HPQWOiwNOnddw5YcNIdSFyzTlUKehEbrLDxDNn7osjCXPw5FO22qgPfKHn/pf8XxxxetvSvYlX8BxBVKCdGDmPPDhz0W+Oijjxof//jHt+Hh2oko/qKqFx4l0BJQmQIwS3RNn/fxZXqGFbq4nQzimI9tKFs+S1S1KJ9XoQkEfUQwtKg98fSzefMMwmx5F28/IqK2RLjM2b54/gX0H0v6+IiDZSVgHJogfYWNzDMUpCtsUkKg4pKIUJAsnNTlkjNWzfBCPMOhi8JAiCSqPBmyMFVQ1OdctQwLywNZ5cPCpDl80D6IhjzBASQF0sUeREpSJCyE4ceSpJXbEO2612AHepaTSRn/YrtEAD3n8xV/ntv4+S96nyGRO9gccQZmEPiBK3bRi5kPHcG+v2T32n2+53bxNY8oQyWIB0SR9OmqxMeTh5lm/8azx8srEbCQNSqTpUTX+eagwCiPqiWeQAXO/olHV2tPaYUFjWCxsQJjt7MV564K6iOB2Xj1adNGa3PqDMFl4XwSSnAQCUIibqFPlwtTwbiOkoSR+JvLx3KYv9BXaSrlLyifSegQBNMFTAWhiIeFArRZnoX+8Y2EzKhbnuNlYO9wFpZXkwoH5Kmj/6qOFTz+0n8+Y4Y/2pVIcJqY35+YJ6wjEN33ZzL9kPY3hWjx6Sv+RcByLIQAZZYQJSn2C944FRF/QkvjQ31XZDcV04GVPOGl+WdJEhVGbaNPV3d7Va7ZP83U/1ACgzTjkg4gjUFvHhGWkrPAPnnBLNeFSEKKfAbzOu9yBAUdVj6cZURpZuU3XOUILioD93x2IEnxxFGc9c6M+M93cHSNZVzHquBQDeMn4x898wQ2us7pgGvAbyU8/z5e5EupVEqtJirCgp4KHxVI7sbrQIYKHyKF3+yvIvEEX8FsQNk9qXwgBpgQwNo7p9OKrukzfdzF08+WTmYrV35YF+tU8bEpYImInGtLVH+8PkzZ8iQcVpjrawXCLOHH5uo/9JmWjbXHJMQcNhVW8bOklbsumnJw7Q+cgtVK2mJxAUNNKKncp54KHuzAwnjCE01B1UIHA1A80ik/IkdIfTj6mE8MXh2sSKZhdHUd+IcDykwFLj4eMv7Fv+il75c8/xEmeHaojD+jZ4LgbsPVVvO5iutg4oSAFCCiAqVp/jrUKRU8mzVexsube05ff3tiD0Q1wkP/ojrYgeiaftiheHsjLKL4GrudTxYvb0H9h94bpzeAwCD4cAqJf5SmlBjFH5D8ChVC1Q8KyIkrjtgbE64y4lqtINJHel5Hq4q4ZdsYzsWBWaU+rkFWtFzQbiNNnWciNbT/qD4+Hitq/FdE/3mWzmvQU+W4hZZPenQuRHRNfylcvfVjpUqz0Tj6dNE1/fm4euufTx1z5am3/hr6z6lj9A9ElneKwPJ3IYEVEpqKys0YFeUhoDBP4TV/+bjVIkfqKuu8/ixC/+tqR73111V4DYnrrb+G8a+h1tkk9dY/m7MxV7XUzwdP3ApBgCYG6Co+L6/+kcB4X0g0ERFFzwXjojBc5q8ZhqOKtWEoROmLEwSWBIHowVySyqSS5kIABEYhisRFEov8SgRWGD6K9OMgq8IwBIkTBBYXASGsxcW3pUoHgfF5iIiLPv9x+03kuLxMqaqsUj1KJL4gsFgICGEtFrJtUG6OwDhtJHHhqLOl+dBAG0AnXRAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBIGVhMD/D0fV/fpMMM+gAAAAAElFTkSuQmCC"},noticeBar:{text:[],direction:"row",step:!1,icon:"volume",mode:"",color:"#f9ae3d",bgColor:"#fdf6ec",speed:80,fontSize:14,duration:2e3,disableTouch:!0,url:"",linkType:"navigateTo",justifyContent:"flex-start"},notify:{top:0,type:"primary",color:"#ffffff",bgColor:"",message:"",duration:3e3,fontSize:15,safeAreaInsetTop:!1},...{numberBox:{name:"",value:0,min:1,max:Number.MAX_SAFE_INTEGER,step:1,integer:!1,disabled:!1,disabledInput:!1,asyncChange:!1,inputWidth:35,showMinus:!0,showPlus:!0,decimalLength:null,longPress:!0,color:"#323233",buttonSize:30,bgColor:"#EBECEE",cursorSpacing:100,disableMinus:!1,disablePlus:!1,iconStyle:""}},numberKeyboard:{mode:"number",dotDisabled:!1,random:!1},overlay:{show:!1,zIndex:10070,duration:300,opacity:.5},parse:{copyLink:!0,errorImg:"",lazyLoad:!1,loadingImg:"",pauseVideo:!0,previewImg:!0,setTitle:!0,showImgMenu:!0},picker:{show:!1,popupMode:"bottom",showToolbar:!0,title:"",columns:[],loading:!1,itemHeight:44,cancelText:"取消",confirmText:"确定",cancelColor:"#909193",confirmColor:"#3c9cff",visibleItemCount:5,keyName:"text",closeOnClickOverlay:!1,defaultIndex:[],immediateChange:!0,zIndex:10076},popup:{show:!1,overlay:!0,mode:"bottom",duration:300,closeable:!1,overlayStyle:{},closeOnClickOverlay:!0,zIndex:10075,safeAreaInsetBottom:!0,safeAreaInsetTop:!1,closeIconPos:"top-right",round:0,zoom:!0,bgColor:"",overlayOpacity:.5},radio:{name:"",shape:"",disabled:"",labelDisabled:"",activeColor:"",inactiveColor:"",iconSize:"",labelSize:"",label:"",labelColor:"",size:"",iconColor:"",placement:""},radioGroup:{value:"",disabled:!1,shape:"circle",activeColor:"#2979ff",inactiveColor:"#c8c9cc",name:"",size:18,placement:"row",label:"",labelColor:"#303133",labelSize:14,labelDisabled:!1,iconColor:"#ffffff",iconSize:12,borderBottom:!1,iconPlacement:"left",gap:"10px"},rate:{value:1,count:5,disabled:!1,size:18,inactiveColor:"#b2b2b2",activeColor:"#FA3534",gutter:4,minCount:1,allowHalf:!1,activeIcon:"star-fill",inactiveIcon:"star",touchable:!0},readMore:{showHeight:400,toggle:!1,closeText:"展开阅读全文",openText:"收起",color:"#2979ff",fontSize:14,textIndent:"2em",name:""},row:{gutter:0,justify:"start",align:"center"},rowNotice:{text:"",icon:"volume",mode:"",color:"#f9ae3d",bgColor:"#fdf6ec",fontSize:14,speed:80},scrollList:{indicatorWidth:50,indicatorBarWidth:20,indicator:!0,indicatorColor:"#f2f2f2",indicatorActiveColor:"#3c9cff",indicatorStyle:""},search:{shape:"round",bgColor:"#f2f2f2",placeholder:"请输入关键字",clearabled:!0,focus:!1,showAction:!0,actionStyle:{},actionText:"搜索",inputAlign:"left",inputStyle:{},disabled:!1,borderColor:"transparent",searchIconColor:"#909399",searchIconSize:22,color:"#606266",placeholderColor:"#909399",searchIcon:"search",margin:"0",animation:!1,value:"",maxlength:"-1",height:32,label:null},section:{title:"",subTitle:"更多",right:!0,fontSize:15,bold:!0,color:"#303133",subColor:"#909399",showLine:!0,lineColor:"",arrow:!0},skeleton:{loading:!0,animate:!0,rows:0,rowsWidth:"100%",rowsHeight:18,title:!0,titleWidth:"50%",titleHeight:18,avatar:!1,avatarSize:32,avatarShape:"circle"},slider:{value:0,blockSize:18,min:0,max:100,step:1,activeColor:"#2979ff",inactiveColor:"#c0c4cc",blockColor:"#ffffff",showValue:!1,disabled:!1,blockStyle:{},useNative:!1,height:"2px"},statusBar:{bgColor:"transparent"},steps:{direction:"row",current:0,activeColor:"#3c9cff",inactiveColor:"#969799",activeIcon:"",inactiveIcon:"",dot:!1},stepsItem:{title:"",desc:"",iconSize:17,error:!1},sticky:{offsetTop:0,customNavHeight:0,disabled:!1,bgColor:"transparent",zIndex:"",index:""},subsection:{list:[],current:0,activeColor:"#3c9cff",inactiveColor:"#303133",mode:"button",fontSize:12,bold:!0,bgColor:"#eeeeef",keyName:"name"},swipeAction:{autoClose:!0},swipeActionItem:{show:!1,closeOnClick:!0,name:"",disabled:!1,threshold:20,autoClose:!0,options:[],duration:300},swiper:{list:[],indicator:!1,indicatorActiveColor:"#FFFFFF",indicatorInactiveColor:"rgba(255, 255, 255, 0.35)",indicatorStyle:"",indicatorMode:"line",autoplay:!0,current:0,currentItemId:"",interval:3e3,duration:300,circular:!1,previousMargin:0,nextMargin:0,acceleration:!1,displayMultipleItems:1,easingFunction:"default",keyName:"url",imgMode:"aspectFill",height:130,bgColor:"#f3f4f6",radius:4,loading:!1,showTitle:!1},swiperIndicator:{length:0,current:0,indicatorActiveColor:"",indicatorInactiveColor:"",indicatorMode:"line"},switch:{loading:!1,disabled:!1,size:25,activeColor:"#2979ff",inactiveColor:"#ffffff",value:!1,activeValue:!0,inactiveValue:!1,asyncChange:!1,space:0},tabbar:{value:null,safeAreaInsetBottom:!0,border:!0,zIndex:1,activeColor:"#1989fa",inactiveColor:"#7d7e80",fixed:!0,placeholder:!0},tabbarItem:{name:null,icon:"",badge:null,dot:!1,text:"",badgeStyle:"top: 6px;right:2px;"},tabs:{duration:300,list:[],lineColor:"#3c9cff",activeStyle:{color:"#303133"},inactiveStyle:{color:"#606266"},lineWidth:20,lineHeight:3,lineBgSize:"cover",itemStyle:{height:"44px"},scrollable:!0,current:0,keyName:"name"},tag:{type:"primary",disabled:!1,size:"medium",shape:"square",text:"",bgColor:"",color:"",borderColor:"",closeColor:"#C6C7CB",name:"",plainFill:!1,plain:!1,closable:!1,show:!0,icon:"",iconColor:""},text:{type:"",show:!0,text:"",prefixIcon:"",suffixIcon:"",mode:"",href:"",format:"",call:!1,openType:"",bold:!1,block:!1,lines:"",color:"#303133",size:15,iconStyle:{fontSize:"15px"},decoration:"none",margin:0,lineHeight:"",align:"left",wordWrap:"normal",flex1:!0},textarea:{value:"",placeholder:"",placeholderClass:"textarea-placeholder",placeholderStyle:"color: #c0c4cc",height:70,confirmType:"done",disabled:!1,count:!1,focus:!1,autoHeight:!1,fixed:!1,cursorSpacing:0,cursor:"",showConfirmBar:!0,selectionStart:-1,selectionEnd:-1,adjustPosition:!0,disableDefaultPadding:!1,holdKeyboard:!1,maxlength:140,border:"surround",formatter:null},toast:{zIndex:10090,loading:!1,text:"",icon:"",type:"",loadingMode:"",show:"",overlay:!1,position:"center",params:{},duration:2e3,isTab:!1,url:"",callback:null,back:!1},toolbar:{show:!0,cancelText:"取消",confirmText:"确认",cancelColor:"#909193",confirmColor:"#3c9cff",title:""},tooltip:{text:"",copyText:"",size:14,color:"#606266",bgColor:"transparent",direction:"top",zIndex:10071,showCopy:!0,buttons:[],overlay:!0,showToast:!0},transition:{show:!1,mode:"fade",duration:"300",timingFunction:"ease-out"},...{upload:{accept:"image",extension:[],capture:["album","camera"],compressed:!0,camera:"back",maxDuration:60,uploadIcon:"camera-fill",uploadIconColor:"#D3D4D6",useBeforeRead:!1,previewFullImage:!0,maxCount:52,disabled:!1,imageMode:"aspectFill",name:"",sizeType:["original","compressed"],multiple:!1,deletable:!0,maxSize:Number.MAX_VALUE,fileList:[],uploadText:"",width:80,height:80,previewImage:!0}}},Zc={toast:10090,noNetwork:10080,popup:10075,mask:10070,navbar:980,topTips:975,sticky:970,indexListSticky:965};let el="none";el="vue3",el="mp",el="weixin";const tl=new class{constructor(e={}){var t;t=e,"[object Object]"!==Object.prototype.toString.call(t)&&(e={},console.warn("设置全局参数必须接收一个Object")),this.config=Nc({...Lc,...e}),this.interceptors={request:new Bc,response:new Bc}}setConfig(e){this.config=e(this.config)}middleware(e){e=((e,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:Ec(e.header||{},t.header||{})};if(o={...o,...jc(["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=>{Pc(t[e])||(o[e]=t[e])}));else{const n=["data","timeout","dataType","responseType"];o={...o,...jc(n,e,t)}}return o})(this.config,e);const t=[Oc,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)}};vc.setConfig=function(e){vc.shallowMerge(tc,e.config||{}),vc.shallowMerge(Xc,e.props||{}),vc.shallowMerge(Gc,e.color||{}),vc.shallowMerge(Zc,e.zIndex||{})};const nl={route:wc,date:vc.timeFormat,colorGradient:Uc.colorGradient,hexToRgb:Uc.hexToRgb,rgbToHex:Uc.rgbToHex,colorToRgba:Uc.colorToRgba,test:Va,type:["primary","success","error","warning","info"],http:tl,config:tc,zIndex:Zc,debounce:function(e,t=500,n=!1){if(null!==Qc&&clearTimeout(Qc),n){const n=!Qc;Qc=setTimeout((()=>{Qc=null}),t),n&&"function"==typeof e&&e()}else Qc=setTimeout((()=>{"function"==typeof e&&e()}),t)},throttle:qc,mixin:Sc,mpMixin:Ac,props:Xc,...vc,color:Gc,platform:"weixin"},ol={install:e=>{Tn.$u=nl,e.config.globalProperties.$u=nl,e.mixin(Sc)}},rl=e=>(t,n=Oi())=>{!Ni&&Rr(e,t,n)},il=rl(q),sl=rl(z),al=rl(H),cl=rl(J),ll=rl(G),ul=rl(re),fl=rl(se),pl=rl(ce);var dl=Object.prototype.toString;function hl(e){return"[object Array]"===dl.call(e)}function gl(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),hl(e))for(var n=0,o=e.length;n{let n={};return e.forEach((e=>{yl(t[e])||(n[e]=t[e])})),n},Sl=e=>(e=>new Promise(((t,n)=>{let o=vl((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(Gu){}!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=Tn.uploadFile({...s,...t,...wl(n,e)})}else if("DOWNLOAD"===e.method){const t=["timeout","filePath"];a=Tn.downloadFile({...s,...wl(t,e)})}else{const t=["data","method","timeout","dataType","responseType","enableHttp2","enableQuic","enableCache","enableHttpDNS","httpDNSServiceId","enableChunked","forceCellularNetwork"];a=Tn.request({...s,...wl(t,e)})}e.getTask&&e.getTask(a,e)})))(e);function Al(){this.handlers=[]}Al.prototype.use=function(e,t){return this.handlers.push({fulfilled:e,rejected:t}),this.handlers.length-1},Al.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},Al.prototype.forEach=function(e){this.handlers.forEach((t=>{null!==t&&e(t)}))};const xl=(e,t,n)=>{let o={};return e.forEach((e=>{yl(n[e])?yl(t[e])||(o[e]=t[e]):o[e]=n[e]})),o},kl={baseURL:"",header:{},method:"GET",dataType:"json",paramsSerializer:null,responseType:"text",custom:{},timeout:6e4,validateStatus:function(e){return e>=200&&e<300},forcedJSONParsing:!0};var Tl=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,c,l,u){"object"==typeof a&&(c=a.depth,l=a.prototype,u=a.includeNonEnumerable,a=a.circular);var f=[],p=[],d="undefined"!=typeof Buffer;return void 0===a&&(a=!0),void 0===c&&(c=1/0),function i(c,h){if(null===c)return null;if(0===h)return c;var g,m;if("object"!=typeof c)return c;if(e(c,t))g=new t;else if(e(c,n))g=new n;else if(e(c,o))g=new o((function(e,t){c.then((function(t){e(i(t,h-1))}),(function(e){t(i(e,h-1))}))}));else if(r.__isArray(c))g=[];else if(r.__isRegExp(c))g=new RegExp(c.source,s(c)),c.lastIndex&&(g.lastIndex=c.lastIndex);else if(r.__isDate(c))g=new Date(c.getTime());else{if(d&&Buffer.isBuffer(c))return Buffer.from?g=Buffer.from(c):(g=new Buffer(c.length),c.copy(g)),g;e(c,Error)?g=Object.create(c):void 0===l?(m=Object.getPrototypeOf(c),g=Object.create(m)):(g=Object.create(l),m=l)}if(a){var y=f.indexOf(c);if(-1!=y)return p[y];f.push(c),p.push(g)}for(var b in e(c,t)&&c.forEach((function(e,t){var n=i(t,h-1),o=i(e,h-1);g.set(n,o)})),e(c,n)&&c.forEach((function(e){var t=i(e,h-1);g.add(t)})),c){Object.getOwnPropertyDescriptor(c,b)&&(g[b]=i(c[b],h-1));try{if("undefined"===Object.getOwnPropertyDescriptor(c,b).set)continue;g[b]=i(c[b],h-1)}catch(Gu){if(Gu instanceof TypeError)continue;if(Gu instanceof ReferenceError)continue}}if(Object.getOwnPropertySymbols){var v=Object.getOwnPropertySymbols(c);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;w[a]=t,r=a}return!o&&r&&(v=r),r||!o&&v},k=function(e,t){if(A(e))return e.clone();var n="object"==typeof t?t:{};return n.date=e,n.args=arguments,new E(n)},T=b;T.l=x,T.i=A,T.w=function(e,t){return k(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var E=function(){function m(e){this.$L=x(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[S]=!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(T.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 T},y.isValid=function(){return!(this.$d.toString()===d)},y.isSame=function(e,t){var n=k(e);return this.startOf(t)<=n&&n<=this.endOf(t)},y.isAfter=function(e,t){return k(e)0,m<=g.r||!g.r){m<=1&&h>0&&(g=p[h-1]);var y=f[g.l];a&&(m=a(""+m)),l="string"==typeof y?y.replace("%d",m):y(m,o,g.l,u);break}}if(o)return l;var b=u?f.future:f.past;return"function"==typeof b?b(l):b.replace("%s",l)},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 Cl=Il;var _l={};({get exports(){return _l},set exports(e){_l=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}(El);const Ol={props:{src:{type:String,default:()=>Xc.avatar.src},shape:{type:String,default:()=>Xc.avatar.shape},size:{type:[String,Number],default:()=>Xc.avatar.size},mode:{type:String,default:()=>Xc.avatar.mode},text:{type:String,default:()=>Xc.avatar.text},bgColor:{type:String,default:()=>Xc.avatar.bgColor},color:{type:String,default:()=>Xc.avatar.color},fontSize:{type:[String,Number],default:()=>Xc.avatar.fontSize},icon:{type:String,default:()=>Xc.avatar.icon},mpAvatar:{type:Boolean,default:()=>Xc.avatar.mpAvatar},randomBgColor:{type:Boolean,default:()=>Xc.avatar.randomBgColor},defaultUrl:{type:String,default:()=>Xc.avatar.defaultUrl},colorIndex:{type:[String,Number],validator:e=>Va.range(e,[0,19])||""===e,default:()=>Xc.avatar.colorIndex},name:{type:String,default:()=>Xc.avatar.name}}},Bl={props:{name:{type:String,default:()=>Xc.icon.name},color:{type:String,default:()=>Xc.icon.color},size:{type:[String,Number],default:()=>Xc.icon.size},bold:{type:Boolean,default:()=>Xc.icon.bold},index:{type:[String,Number],default:()=>Xc.icon.index},hoverClass:{type:String,default:()=>Xc.icon.hoverClass},customPrefix:{type:String,default:()=>Xc.icon.customPrefix},label:{type:[String,Number],default:()=>Xc.icon.label},labelPos:{type:String,default:()=>Xc.icon.labelPos},labelSize:{type:[String,Number],default:()=>Xc.icon.labelSize},labelColor:{type:String,default:()=>Xc.icon.labelColor},space:{type:[String,Number],default:()=>Xc.icon.space},imgMode:{type:String,default:()=>Xc.icon.imgMode},width:{type:[String,Number],default:()=>Xc.icon.width},height:{type:[String,Number],default:()=>Xc.icon.height},top:{type:[String,Number],default:()=>Xc.icon.top},stop:{type:Boolean,default:()=>Xc.icon.stop}}},jl={props:{shape:{type:String,default:()=>Xc.search.shape},bgColor:{type:String,default:()=>Xc.search.bgColor},placeholder:{type:String,default:()=>Xc.search.placeholder},clearabled:{type:Boolean,default:()=>Xc.search.clearabled},focus:{type:Boolean,default:()=>Xc.search.focus},showAction:{type:Boolean,default:()=>Xc.search.showAction},actionStyle:{type:Object,default:()=>Xc.search.actionStyle},actionText:{type:String,default:()=>Xc.search.actionText},inputAlign:{type:String,default:()=>Xc.search.inputAlign},inputStyle:{type:Object,default:()=>Xc.search.inputStyle},disabled:{type:Boolean,default:()=>Xc.search.disabled},borderColor:{type:String,default:()=>Xc.search.borderColor},searchIconColor:{type:String,default:()=>Xc.search.searchIconColor},color:{type:String,default:()=>Xc.search.color},placeholderColor:{type:String,default:()=>Xc.search.placeholderColor},searchIcon:{type:String,default:()=>Xc.search.searchIcon},searchIconSize:{type:[Number,String],default:()=>Xc.search.searchIconSize},margin:{type:String,default:()=>Xc.search.margin},animation:{type:Boolean,default:()=>Xc.search.animation},modelValue:{type:String,default:()=>Xc.search.value},value:{type:String,default:()=>Xc.search.value},maxlength:{type:[String,Number],default:()=>Xc.search.maxlength},height:{type:[String,Number],default:()=>Xc.search.height},label:{type:[String,Number,null],default:()=>Xc.search.label},adjustPosition:{type:Boolean,default:()=>!0},autoBlur:{type:Boolean,default:()=>!1}}},Ll={props:{duration:{type:Number,default:()=>Xc.tabs.duration},list:{type:Array,default:()=>Xc.tabs.list},lineColor:{type:String,default:()=>Xc.tabs.lineColor},activeStyle:{type:[String,Object],default:()=>Xc.tabs.activeStyle},inactiveStyle:{type:[String,Object],default:()=>Xc.tabs.inactiveStyle},lineWidth:{type:[String,Number],default:()=>Xc.tabs.lineWidth},lineHeight:{type:[String,Number],default:()=>Xc.tabs.lineHeight},lineBgSize:{type:String,default:()=>Xc.tabs.lineBgSize},itemStyle:{type:[String,Object],default:()=>Xc.tabs.itemStyle},scrollable:{type:Boolean,default:()=>Xc.tabs.scrollable},current:{type:[Number,String],default:()=>Xc.tabs.current},keyName:{type:String,default:()=>Xc.tabs.keyName}}},Nl={props:{title:{type:[String,Number],default:()=>Xc.stepsItem.title},desc:{type:[String,Number],default:()=>Xc.stepsItem.desc},iconSize:{type:[String,Number],default:()=>Xc.stepsItem.iconSize},error:{type:Boolean,default:()=>Xc.stepsItem.error},itemStyle:{type:[Object],default:{}}}},Dl={props:{direction:{type:String,default:()=>Xc.steps.direction},current:{type:[String,Number],default:()=>Xc.steps.current},activeColor:{type:String,default:()=>Xc.steps.activeColor},inactiveColor:{type:String,default:()=>Xc.steps.inactiveColor},activeIcon:{type:String,default:()=>Xc.steps.activeIcon},inactiveIcon:{type:String,default:()=>Xc.steps.inactiveIcon},dot:{type:Boolean,default:()=>Xc.steps.dot}}},Ml={props:{show:{type:Boolean,default:()=>Xc.loadingIcon.show},color:{type:String,default:()=>Xc.loadingIcon.color},textColor:{type:String,default:()=>Xc.loadingIcon.textColor},vertical:{type:Boolean,default:()=>Xc.loadingIcon.vertical},mode:{type:String,default:()=>Xc.loadingIcon.mode},size:{type:[String,Number],default:()=>Xc.loadingIcon.size},textSize:{type:[String,Number],default:()=>Xc.loadingIcon.textSize},text:{type:[String,Number],default:()=>Xc.loadingIcon.text},timingFunction:{type:String,default:()=>Xc.loadingIcon.timingFunction},duration:{type:[String,Number],default:()=>Xc.loadingIcon.duration},inactiveColor:{type:String,default:()=>Xc.loadingIcon.inactiveColor}}},Fl={props:{name:{type:[String,Number,Boolean],default:()=>Xc.checkbox.name},shape:{type:String,default:()=>Xc.checkbox.shape},size:{type:[String,Number],default:()=>Xc.checkbox.size},checked:{type:Boolean,default:()=>Xc.checkbox.checked},disabled:{type:[String,Boolean],default:()=>Xc.checkbox.disabled},activeColor:{type:String,default:()=>Xc.checkbox.activeColor},inactiveColor:{type:String,default:()=>Xc.checkbox.inactiveColor},iconSize:{type:[String,Number],default:()=>Xc.checkbox.iconSize},iconColor:{type:String,default:()=>Xc.checkbox.iconColor},label:{type:[String,Number],default:()=>Xc.checkbox.label},labelSize:{type:[String,Number],default:()=>Xc.checkbox.labelSize},labelColor:{type:String,default:()=>Xc.checkbox.labelColor},labelDisabled:{type:[String,Boolean],default:()=>Xc.checkbox.labelDisabled},usedAlone:{type:[Boolean],default:()=>!1}}},Ul={props:{name:{type:String,default:()=>Xc.checkboxGroup.name},modelValue:{type:Array,default:()=>Xc.checkboxGroup.value},shape:{type:String,default:()=>Xc.checkboxGroup.shape},disabled:{type:Boolean,default:()=>Xc.checkboxGroup.disabled},activeColor:{type:String,default:()=>Xc.checkboxGroup.activeColor},inactiveColor:{type:String,default:()=>Xc.checkboxGroup.inactiveColor},size:{type:[String,Number],default:()=>Xc.checkboxGroup.size},placement:{type:String,default:()=>Xc.checkboxGroup.placement},labelSize:{type:[String,Number],default:()=>Xc.checkboxGroup.labelSize},labelColor:{type:[String],default:()=>Xc.checkboxGroup.labelColor},labelDisabled:{type:Boolean,default:()=>Xc.checkboxGroup.labelDisabled},iconColor:{type:String,default:()=>Xc.checkboxGroup.iconColor},iconSize:{type:[String,Number],default:()=>Xc.checkboxGroup.iconSize},iconPlacement:{type:String,default:()=>Xc.checkboxGroup.iconPlacement},borderBottom:{type:Boolean,default:()=>Xc.checkboxGroup.borderBottom}}},Rl={pages:[{path:"pages/index/index",style:{navigationBarTitleText:"首页",navigationStyle:"custom"}},{path:"pages/loading",style:{navigationBarTitleText:"加载中..."}},{path:"pages/login",style:{navigationBarTitleText:"登录/注册",navigationStyle:"custom"}},{path:"pages/data_oard/index",style:{navigationBarTitleText:"数据看板"}},{path:"pages/me/index",style:{navigationBarTitleText:"个人中心",navigationStyle:"custom"}},{path:"pages/public/asset_houses/index",style:{navigationBarTitleText:"房屋管理"}}],subPackages:[{root:"WORKORDER",pages:[{path:"list/index",style:{navigationBarTitleText:"我的工单"}},{path:"update/index",style:{navigationBarTitleText:"更新进度"}},{path:"show/index",style:{navigationBarTitleText:"工单详情"}},{path:"add/index",style:{navigationBarTitleText:"新增工单"}}]},{root:"ME",pages:[{path:"update/index",style:{navigationBarTitleText:"用户信息"}},{path:"feedback/index",style:{navigationBarTitleText:"意见反馈"}},{path:"knowledge_qa/index",style:{navigationBarTitleText:"知识问答"}},{path:"knowledge_qa/show",style:{navigationBarTitleText:"知识详情"}},{path:"push_show/index",style:{navigationBarTitleText:"任务预览"}}]},{root:"CUSTOMER",pages:[{path:"show/index",style:{navigationBarTitleText:"客户详情"}},{path:"update/index",style:{navigationBarTitleText:"客户编辑"}},{path:"assets/index",style:{navigationBarTitleText:"客户资产"}},{path:"bind_house/index",style:{navigationBarTitleText:"入户登记"}},{path:"house_list/index",style:{navigationBarTitleText:"房屋列表"}},{path:"house_select/index",style:{navigationBarTitleText:"房源列表"}},{path:"house_Identity/index",style:{navigationBarTitleText:"选择身份"}},{path:"house_Identity/success",style:{navigationBarTitleText:"绑定房屋",navigationStyle:"custom"}},{path:"bind_house_form/index",style:{navigationBarTitleText:"绑定产权人"}},{path:"bind_house_form/success",style:{navigationBarTitleText:"绑定房屋",navigationStyle:"custom"}},{path:"list_user/index",style:{navigationBarTitleText:"用户列表"}},{path:"list_house/index",style:{navigationBarTitleText:"房屋管理"}},{path:"list_bill/index",style:{navigationBarTitleText:"发送账单"}}]},{root:"BILL",pages:[{path:"outstanding_fee/index/index",style:{navigationBarTitleText:"欠费房屋"}},{path:"record/payment/index",style:{navigationBarTitleText:"缴费记录"}},{path:"record/urge_payment/index",style:{navigationBarTitleText:"催费记录"}},{path:"outstanding_fee/show/index",style:{navigationBarTitleText:"房屋详情"}},{path:"outstanding_fee/add/index",style:{navigationBarTitleText:"新增催缴记录"}},{path:"bill_details/index",style:{navigationBarTitleText:"账单详情"}},{path:"information_template/index",style:{navigationBarTitleText:"选择信息模版"}},{path:"poster/index",style:{navigationBarTitleText:"二维码收款"}},{path:"collection_record/index/index",style:{navigationBarTitleText:"催缴记录"}},{path:"collection_record/show/index",style:{navigationBarTitleText:"催缴详情"}},{path:"send_bill/index",style:{navigationBarTitleText:"账单列表"}}]}],tabBar:{color:"#3D3D3D",selectedColor:"#3D3D3D",backgroundColor:"#ffffff",borderStyle:"black",list:[{pagePath:"pages/index/index",text:"首页",iconPath:"/static/tabbar/home.png",selectedIconPath:"/static/tabbar/home_active.png"},{pagePath:"pages/me/index",text:"我的",iconPath:"/static/tabbar/me.png",selectedIconPath:"/static/tabbar/me_active.png"}]},easycom:{custom:{"^u-(.*)":"uview-plus/components/u-$1/u-$1.vue","^up-(.*)":"uview-plus/components/u-$1/u-$1.vue","^u-([^-].*)":"uview-plus/components/u-$1/u-$1.vue","^cc-(.*)":"@/common/components/cc-$1/cc-$1.vue","^nchl-(.*)":"@/components/my-$1/nchl-$1.vue"}},globalStyle:{navigationBarBackgroundColor:"#fff",navigationBarTextStyle:"black"}};function Ql(e,t,n){return e(n={path:t,exports:{},require:function(e,t){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(null==t&&n.path)}},n.exports),n.exports}var ql=Ql((function(e,t){var n;e.exports=(n=n||function(e){var t=Object.create||function(){function e(){}return function(t){var n;return e.prototype=t,n=new e,e.prototype=null,n}}(),n={},o=n.lib={},r=o.Base={extend:function(e){var n=t(this);return e&&n.mixIn(e),n.hasOwnProperty("init")&&this.init!==n.init||(n.init=function(){n.$super.init.apply(this,arguments)}),n.init.prototype=n,n.$super=this,n},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}},i=o.WordArray=r.extend({init:function(e,t){e=this.words=e||[],this.sigBytes=null!=t?t:4*e.length},toString:function(e){return(e||a).stringify(this)},concat:function(e){var t=this.words,n=e.words,o=this.sigBytes,r=e.sigBytes;if(this.clamp(),o%4)for(var i=0;i>>2]>>>24-i%4*8&255;t[o+i>>>2]|=s<<24-(o+i)%4*8}else for(i=0;i>>2]=n[i>>>2];return this.sigBytes+=r,this},clamp:function(){var t=this.words,n=this.sigBytes;t[n>>>2]&=4294967295<<32-n%4*8,t.length=e.ceil(n/4)},clone:function(){var e=r.clone.call(this);return e.words=this.words.slice(0),e},random:function(t){for(var n,o=[],r=function(t){var n=987654321,o=4294967295;return function(){var r=((n=36969*(65535&n)+(n>>16)&o)<<16)+(t=18e3*(65535&t)+(t>>16)&o)&o;return r/=4294967296,(r+=.5)*(e.random()>.5?1:-1)}},s=0;s>>2]>>>24-r%4*8&255;o.push((i>>>4).toString(16)),o.push((15&i).toString(16))}return o.join("")},parse:function(e){for(var t=e.length,n=[],o=0;o>>3]|=parseInt(e.substr(o,2),16)<<24-o%8*4;return new i.init(n,t/2)}},c=s.Latin1={stringify:function(e){for(var t=e.words,n=e.sigBytes,o=[],r=0;r>>2]>>>24-r%4*8&255;o.push(String.fromCharCode(i))}return o.join("")},parse:function(e){for(var t=e.length,n=[],o=0;o>>2]|=(255&e.charCodeAt(o))<<24-o%4*8;return new i.init(n,t)}},l=s.Utf8={stringify:function(e){try{return decodeURIComponent(escape(c.stringify(e)))}catch(t){throw new Error("Malformed UTF-8 data")}},parse:function(e){return c.parse(unescape(encodeURIComponent(e)))}},u=o.BufferedBlockAlgorithm=r.extend({reset:function(){this._data=new i.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=l.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var n=this._data,o=n.words,r=n.sigBytes,s=this.blockSize,a=r/(4*s),c=(a=t?e.ceil(a):e.max((0|a)-this._minBufferSize,0))*s,l=e.min(4*c,r);if(c){for(var u=0;u>>24)|4278255360&(r<<24|r>>>8)}var i=this._hash.words,s=e[t+0],c=e[t+1],d=e[t+2],h=e[t+3],g=e[t+4],m=e[t+5],y=e[t+6],b=e[t+7],v=e[t+8],w=e[t+9],S=e[t+10],A=e[t+11],x=e[t+12],k=e[t+13],T=e[t+14],E=e[t+15],P=i[0],I=i[1],C=i[2],_=i[3];P=l(P,I,C,_,s,7,a[0]),_=l(_,P,I,C,c,12,a[1]),C=l(C,_,P,I,d,17,a[2]),I=l(I,C,_,P,h,22,a[3]),P=l(P,I,C,_,g,7,a[4]),_=l(_,P,I,C,m,12,a[5]),C=l(C,_,P,I,y,17,a[6]),I=l(I,C,_,P,b,22,a[7]),P=l(P,I,C,_,v,7,a[8]),_=l(_,P,I,C,w,12,a[9]),C=l(C,_,P,I,S,17,a[10]),I=l(I,C,_,P,A,22,a[11]),P=l(P,I,C,_,x,7,a[12]),_=l(_,P,I,C,k,12,a[13]),C=l(C,_,P,I,T,17,a[14]),P=u(P,I=l(I,C,_,P,E,22,a[15]),C,_,c,5,a[16]),_=u(_,P,I,C,y,9,a[17]),C=u(C,_,P,I,A,14,a[18]),I=u(I,C,_,P,s,20,a[19]),P=u(P,I,C,_,m,5,a[20]),_=u(_,P,I,C,S,9,a[21]),C=u(C,_,P,I,E,14,a[22]),I=u(I,C,_,P,g,20,a[23]),P=u(P,I,C,_,w,5,a[24]),_=u(_,P,I,C,T,9,a[25]),C=u(C,_,P,I,h,14,a[26]),I=u(I,C,_,P,v,20,a[27]),P=u(P,I,C,_,k,5,a[28]),_=u(_,P,I,C,d,9,a[29]),C=u(C,_,P,I,b,14,a[30]),P=f(P,I=u(I,C,_,P,x,20,a[31]),C,_,m,4,a[32]),_=f(_,P,I,C,v,11,a[33]),C=f(C,_,P,I,A,16,a[34]),I=f(I,C,_,P,T,23,a[35]),P=f(P,I,C,_,c,4,a[36]),_=f(_,P,I,C,g,11,a[37]),C=f(C,_,P,I,b,16,a[38]),I=f(I,C,_,P,S,23,a[39]),P=f(P,I,C,_,k,4,a[40]),_=f(_,P,I,C,s,11,a[41]),C=f(C,_,P,I,h,16,a[42]),I=f(I,C,_,P,y,23,a[43]),P=f(P,I,C,_,w,4,a[44]),_=f(_,P,I,C,x,11,a[45]),C=f(C,_,P,I,E,16,a[46]),P=p(P,I=f(I,C,_,P,d,23,a[47]),C,_,s,6,a[48]),_=p(_,P,I,C,b,10,a[49]),C=p(C,_,P,I,T,15,a[50]),I=p(I,C,_,P,m,21,a[51]),P=p(P,I,C,_,x,6,a[52]),_=p(_,P,I,C,h,10,a[53]),C=p(C,_,P,I,S,15,a[54]),I=p(I,C,_,P,c,21,a[55]),P=p(P,I,C,_,v,6,a[56]),_=p(_,P,I,C,E,10,a[57]),C=p(C,_,P,I,y,15,a[58]),I=p(I,C,_,P,k,21,a[59]),P=p(P,I,C,_,g,6,a[60]),_=p(_,P,I,C,A,10,a[61]),C=p(C,_,P,I,d,15,a[62]),I=p(I,C,_,P,w,21,a[63]),i[0]=i[0]+P|0,i[1]=i[1]+I|0,i[2]=i[2]+C|0,i[3]=i[3]+_|0},_doFinalize:function(){var t=this._data,n=t.words,o=8*this._nDataBytes,r=8*t.sigBytes;n[r>>>5]|=128<<24-r%32;var i=e.floor(o/4294967296),s=o;n[15+(r+64>>>9<<4)]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8),n[14+(r+64>>>9<<4)]=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),t.sigBytes=4*(n.length+1),this._process();for(var a=this._hash,c=a.words,l=0;l<4;l++){var u=c[l];c[l]=16711935&(u<<8|u>>>24)|4278255360&(u<<24|u>>>8)}return a},clone:function(){var e=i.clone.call(this);return e._hash=this._hash.clone(),e}});function l(e,t,n,o,r,i,s){var a=e+(t&n|~t&o)+r+s;return(a<>>32-i)+t}function u(e,t,n,o,r,i,s){var a=e+(t&o|n&~o)+r+s;return(a<>>32-i)+t}function f(e,t,n,o,r,i,s){var a=e+(t^n^o)+r+s;return(a<>>32-i)+t}function p(e,t,n,o,r,i,s){var a=e+(n^(t|~o))+r+s;return(a<>>32-i)+t}t.MD5=i._createHelper(c),t.HmacMD5=i._createHmacHelper(c)}(Math),n.MD5)})),Ql((function(e,t){var n,o,r;e.exports=(o=(n=zl).lib.Base,r=n.enc.Utf8,void(n.algo.HMAC=o.extend({init:function(e,t){e=this._hasher=new e.init,"string"==typeof t&&(t=r.parse(t));var n=e.blockSize,o=4*n;t.sigBytes>o&&(t=e.finalize(t)),t.clamp();for(var i=this._oKey=t.clone(),s=this._iKey=t.clone(),a=i.words,c=s.words,l=0;l>>2]>>>24-i%4*8&255)<<16|(t[i+1>>>2]>>>24-(i+1)%4*8&255)<<8|t[i+2>>>2]>>>24-(i+2)%4*8&255,a=0;a<4&&i+.75*a>>6*(3-a)&63));var c=o.charAt(64);if(c)for(;r.length%4;)r.push(c);return r.join("")},parse:function(e){var t=e.length,n=this._map,o=this._reverseMap;if(!o){o=this._reverseMap=[];for(var i=0;i>>6-s%4*2;o[i>>>2]|=(a|c)<<24-i%4*8,i++}return r.create(o,i)}(e,t,o)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="},n.enc.Base64)}));const Vl="FUNCTION",Kl="pending",Jl="rejected";function Yl(e){return Object.prototype.toString.call(e).slice(8,-1).toLowerCase()}function Gl(e){return"object"===Yl(e)}function Xl(e){return"function"==typeof e}function Zl(e){return function(){try{return e.apply(e,arguments)}catch(t){console.error(t)}}}const eu="REJECTED",tu="NOT_PENDING";class nu{constructor({createPromise:e,retryRule:t=eu}={}){this.createPromise=e,this.status=null,this.promise=null,this.retryRule=t}get needRetry(){if(!this.status)return!0;switch(this.retryRule){case eu:return this.status===Jl;case tu:return this.status!==Kl}}exec(){return this.needRetry?(this.status=Kl,this.promise=this.createPromise().then((e=>(this.status="fullfilled",Promise.resolve(e))),(e=>(this.status=Jl,Promise.reject(e)))),this.promise):this.promise}}function ou(e){return e&&"string"==typeof e?JSON.parse(e):e}const ru=ou([]),iu="mp-weixin";ou("");const su=ou("[]")||[];let au="";try{au=""}catch(Gu){}let cu={};function lu(e,t={}){var n,o;return n=cu,o=e,Object.prototype.hasOwnProperty.call(n,o)||(cu[e]=t),cu[e]}const uu=["invoke","success","fail","complete"],fu=lu("_globalUniCloudInterceptor");function pu(e,t){fu[e]||(fu[e]={}),Gl(t)&&Object.keys(t).forEach((n=>{uu.indexOf(n)>-1&&function(e,t,n){let o=fu[e][t];o||(o=fu[e][t]=[]),-1===o.indexOf(n)&&Xl(n)&&o.push(n)}(e,n,t[n])}))}function du(e,t){fu[e]||(fu[e]={}),Gl(t)?Object.keys(t).forEach((n=>{uu.indexOf(n)>-1&&function(e,t,n){const o=fu[e][t];if(!o)return;const r=o.indexOf(n);r>-1&&o.splice(r,1)}(e,n,t[n])})):delete fu[e]}function hu(e,t){return e&&0!==e.length?e.reduce(((e,n)=>e.then((()=>n(t)))),Promise.resolve()):Promise.resolve()}function gu(e,t){return fu[e]&&fu[e][t]||[]}function mu(e){pu("callObject",e)}const yu=lu("_globalUniCloudListener"),bu="response",vu="needLogin",wu="refreshToken",Su="clientdb",Au="cloudfunction",xu="cloudobject";function ku(e){return yu[e]||(yu[e]=[]),yu[e]}function Tu(e,t){const n=ku(e);n.includes(t)||n.push(t)}function Eu(e,t){const n=ku(e),o=n.indexOf(t);-1!==o&&n.splice(o,1)}function Pu(e,t){const n=ku(e);for(let o=0;o{Cu&&e(),function t(){if("function"==typeof getCurrentPages){const t=getCurrentPages();t&&t[0]&&(Cu=!0,e())}Cu||setTimeout((()=>{t()}),30)}()})),Iu)}function Ou(e){const t={};for(const n in e){const o=e[n];Xl(o)&&(t[n]=Zl(o))}return t}class Bu extends Error{constructor(e){super(e.message),this.errMsg=e.message||e.errMsg||"unknown system error",this.code=this.errCode=e.code||e.errCode||"SYSTEM_ERROR",this.errSubject=this.subject=e.subject||e.errSubject,this.cause=e.cause,this.requestId=e.requestId}toJson(e=0){if(!(e>=10))return e++,{errCode:this.errCode,errMsg:this.errMsg,errSubject:this.errSubject,cause:this.cause&&this.cause.toJson?this.cause.toJson(e):this.cause}}}var ju={request:e=>Tn.request(e),uploadFile:e=>Tn.uploadFile(e),setStorageSync:(e,t)=>Tn.setStorageSync(e,t),getStorageSync:e=>Tn.getStorageSync(e),removeStorageSync:e=>Tn.removeStorageSync(e),clearStorageSync:()=>Tn.clearStorageSync()};function Lu(e){return e&&Lu(e.__v_raw)||e}function Nu(){return{token:ju.getStorageSync("uni_id_token")||ju.getStorageSync("uniIdToken"),tokenExpired:ju.getStorageSync("uni_id_token_expired")}}function Du({token:e,tokenExpired:t}={}){e&&ju.setStorageSync("uni_id_token",e),t&&ju.setStorageSync("uni_id_token_expired",t)}let Mu,Fu;function Uu(){return Mu||(Mu=Tn.getSystemInfoSync()),Mu}function Ru(){let e,t;try{if(Tn.getLaunchOptionsSync){if(Tn.getLaunchOptionsSync.toString().indexOf("not yet implemented")>-1)return;const{scene:n,channel:o}=Tn.getLaunchOptionsSync();e=o,t=n}}catch(n){}return{channel:e,scene:t}}function Qu(){const e=Tn.getLocale&&Tn.getLocale()||"en";if(Fu)return{...Fu,locale:e,LOCALE:e};const t=Uu(),{deviceId:n,osName:o,uniPlatform:r,appId:i}=t,s=["pixelRatio","brand","model","system","language","version","platform","host","SDKVersion","swanNativeVersion","app","AppPlatform","fontSizeSetting"];for(let a=0;a{t(Object.assign(e,{complete(e){e||(e={});const t=e.data&&e.data.header&&e.data.header["x-serverless-request-id"]||e.header&&e.header["request-id"];if(!e.statusCode||e.statusCode>=400)return o(new Bu({code:"SYS_ERR",message:e.errMsg||"request:fail",requestId:t}));const r=e.data;if(r.error)return o(new Bu({code:r.error.code,message:r.error.message,requestId:t}));r.result=r.data,r.requestId=t,delete r.data,n(r)}}))}))},Hu=function(e){return $l.stringify(Wl.parse(e))},Wu={"uniCloud.init.paramRequired":"{param} required","uniCloud.uploadFile.fileError":"filePath should be instance of File"};const{t:$u}=function(e,t={},n,o){"string"!=typeof e&&([e,t]=[t,e]),"string"!=typeof e&&(e=void 0!==Tn&&Tn.getLocale?Tn.getLocale():"undefined"!=typeof global&&global.getLocale?global.getLocale():Le),"string"!=typeof n&&(n="undefined"!=typeof __uniConfig&&__uniConfig.fallbackLocale||Le);const r=new Ue({locale:e,fallbackLocale:n,messages:t,watcher:o});let i=(e,t)=>{if("function"!=typeof getApp)i=function(e,t){return r.t(e,t)};else{let e=!1;i=function(t,n){const o=getApp().$vm;return o&&(o.$locale,e||(e=!0,function(e,t){e.$watchLocale?e.$watchLocale((e=>{t.setLocale(e)})):e.$watch((()=>e.$locale),(e=>{t.setLocale(e)}))}(o,r))),r.t(t,n)}}return i(e,t)};return{i18n:r,f:(e,t,n)=>r.f(e,t,n),t:(e,t)=>i(e,t),add:(e,t,n=!0)=>r.add(e,t,n),watch:e=>r.watchLocale(e),getLocale:()=>r.getLocale(),setLocale:e=>r.setLocale(e)}}({"zh-Hans":{"uniCloud.init.paramRequired":"缺少参数:{param}","uniCloud.uploadFile.fileError":"filePath应为File对象"},"zh-Hant":{"uniCloud.init.paramRequired":"缺少参数:{param}","uniCloud.uploadFile.fileError":"filePath应为File对象"},en:Wu,fr:{"uniCloud.init.paramRequired":"{param} required","uniCloud.uploadFile.fileError":"filePath should be instance of File"},es:{"uniCloud.init.paramRequired":"{param} required","uniCloud.uploadFile.fileError":"filePath should be instance of File"},ja:Wu},"zh-Hans");var Vu=class{constructor(e){["spaceId","clientSecret"].forEach((t=>{if(!Object.prototype.hasOwnProperty.call(e,t))throw new Error($u("uniCloud.init.paramRequired",{param:t}))})),this.config=Object.assign({},{endpoint:0===e.spaceId.indexOf("mp-")?"https://api.next.bspapp.com":"https://api.bspapp.com"},e),this.config.provider="aliyun",this.config.requestUrl=this.config.endpoint+"/client",this.config.envType=this.config.envType||"public",this.config.accessTokenKey="access_token_"+this.config.spaceId,this.adapter=ju,this._getAccessTokenPromiseHub=new nu({createPromise:()=>this.requestAuth(this.setupRequest({method:"serverless.auth.user.anonymousAuthorize",params:"{}"},"auth")).then((e=>{if(!e.result||!e.result.accessToken)throw new Bu({code:"AUTH_FAILED",message:"获取accessToken失败"});this.setAccessToken(e.result.accessToken)})),retryRule:tu})}get hasAccessToken(){return!!this.accessToken}setAccessToken(e){this.accessToken=e}requestWrapped(e){return zu(e,this.adapter.request)}requestAuth(e){return this.requestWrapped(e)}request(e,t){return Promise.resolve().then((()=>this.hasAccessToken?t?this.requestWrapped(e):this.requestWrapped(e).catch((t=>new Promise(((e,n)=>{!t||"GATEWAY_INVALID_TOKEN"!==t.code&&"InvalidParameter.InvalidToken"!==t.code?n(t):e()})).then((()=>this.getAccessToken())).then((()=>{const t=this.rebuildRequest(e);return this.request(t,!0)})))):this.getAccessToken().then((()=>{const t=this.rebuildRequest(e);return this.request(t,!0)}))))}rebuildRequest(e){const t=Object.assign({},e);return t.data.token=this.accessToken,t.header["x-basement-token"]=this.accessToken,t.header["x-serverless-sign"]=qu(t.data,this.config.clientSecret),t}setupRequest(e,t){const n=Object.assign({},e,{spaceId:this.config.spaceId,timestamp:Date.now()}),o={"Content-Type":"application/json"};return"auth"!==t&&(n.token=this.accessToken,o["x-basement-token"]=this.accessToken),o["x-serverless-sign"]=qu(n,this.config.clientSecret),{url:this.config.requestUrl,method:"POST",data:n,dataType:"json",header:o}}getAccessToken(){return this._getAccessTokenPromiseHub.exec()}async authorize(){await this.getAccessToken()}callFunction(e){const t={method:"serverless.function.runtime.invoke",params:JSON.stringify({functionTarget:e.name,functionArgs:e.data||{}})};return this.request(this.setupRequest(t))}getOSSUploadOptionsFromPath(e){const t={method:"serverless.file.resource.generateProximalSign",params:JSON.stringify(e)};return this.request(this.setupRequest(t))}uploadFileToOSS({url:e,formData:t,name:n,filePath:o,fileType:r,onUploadProgress:i}){return new Promise(((s,a)=>{const c=this.adapter.uploadFile({url:e,formData:t,name:n,filePath:o,fileType:r,header:{"X-OSS-server-side-encrpytion":"AES256"},success(e){e&&e.statusCode<400?s(e):a(new Bu({code:"UPLOAD_FAILED",message:"文件上传失败"}))},fail(e){a(new Bu({code:e.code||"UPLOAD_FAILED",message:e.message||e.errMsg||"文件上传失败"}))}});"function"==typeof i&&c&&"function"==typeof c.onProgressUpdate&&c.onProgressUpdate((e=>{i({loaded:e.totalBytesSent,total:e.totalBytesExpectedToSend})}))}))}reportOSSUpload(e){const t={method:"serverless.file.resource.report",params:JSON.stringify(e)};return this.request(this.setupRequest(t))}async uploadFile({filePath:e,cloudPath:t,fileType:n="image",cloudPathAsRealPath:o=!1,onUploadProgress:r,config:i}){if("string"!==Yl(t))throw new Bu({code:"INVALID_PARAM",message:"cloudPath必须为字符串类型"});if(!(t=t.trim()))throw new Bu({code:"INVALID_PARAM",message:"cloudPath不可为空"});if(/:\/\//.test(t))throw new Bu({code:"INVALID_PARAM",message:"cloudPath不合法"});const s=i&&i.envType||this.config.envType;if(o&&("/"!==t[0]&&(t="/"+t),t.indexOf("\\")>-1))throw new Bu({code:"INVALID_PARAM",message:"使用cloudPath作为路径时,cloudPath不可包含“\\”"});const a=(await this.getOSSUploadOptionsFromPath({env:s,filename:o?t.split("/").pop():t,fileId:o?t:void 0})).result,c="https://"+a.cdnDomain+"/"+a.ossPath,{securityToken:l,accessKeyId:u,signature:f,host:p,ossPath:d,id:h,policy:g,ossCallbackUrl:m}=a,y={"Cache-Control":"max-age=2592000","Content-Disposition":"attachment",OSSAccessKeyId:u,Signature:f,host:p,id:h,key:d,policy:g,success_action_status:200};if(l&&(y["x-oss-security-token"]=l),m){const e=JSON.stringify({callbackUrl:m,callbackBody:JSON.stringify({fileId:h,spaceId:this.config.spaceId}),callbackBodyType:"application/json"});y.callback=Hu(e)}const b={url:"https://"+a.host,formData:y,fileName:"file",name:"file",filePath:e,fileType:n};if(await this.uploadFileToOSS(Object.assign({},b,{onUploadProgress:r})),m)return{success:!0,filePath:e,fileID:c};if((await this.reportOSSUpload({id:h})).success)return{success:!0,filePath:e,fileID:c};throw new Bu({code:"UPLOAD_FAILED",message:"文件上传失败"})}getTempFileURL({fileList:e}={}){return new Promise(((t,n)=>{Array.isArray(e)&&0!==e.length||n(new Bu({code:"INVALID_PARAM",message:"fileList的元素必须是非空的字符串"})),t({fileList:e.map((e=>({fileID:e,tempFileURL:e})))})}))}async getFileInfo({fileList:e}={}){if(!Array.isArray(e)||0===e.length)throw new Bu({code:"INVALID_PARAM",message:"fileList的元素必须是非空的字符串"});const t={method:"serverless.file.resource.info",params:JSON.stringify({id:e.map((e=>e.split("?")[0])).join(",")})};return{fileList:(await this.request(this.setupRequest(t))).result}}},Ku={init(e){const t=new Vu(e),n={signInAnonymously:function(){return t.authorize()},getLoginState:function(){return Promise.resolve(!1)}};return t.auth=function(){return n},t.customAuth=t.auth,t}};const Ju="undefined"!=typeof location&&"http:"===location.protocol?"http:":"https:";var Yu,Gu;(Gu=Yu||(Yu={})).local="local",Gu.none="none",Gu.session="session";var Xu=function(){};const Zu=()=>{let e;if(!Promise){e=()=>{},e.promise={};const t=()=>{throw new Bu({message:'Your Node runtime does support ES6 Promises. Set "global.Promise" to your preferred implementation of promises.'})};return Object.defineProperty(e.promise,"then",{get:t}),Object.defineProperty(e.promise,"catch",{get:t}),e}const t=new Promise(((t,n)=>{e=(e,o)=>e?n(e):t(o)}));return e.promise=t,e};function ef(e){return void 0===e}function tf(e){return"[object Null]"===Object.prototype.toString.call(e)}var nf;!function(e){e.WEB="web",e.WX_MP="wx_mp"}(nf||(nf={}));const of={adapter:null,runtime:void 0},rf=["anonymousUuidKey"];class sf extends Xu{constructor(){super(),of.adapter.root.tcbObject||(of.adapter.root.tcbObject={})}setItem(e,t){of.adapter.root.tcbObject[e]=t}getItem(e){return of.adapter.root.tcbObject[e]}removeItem(e){delete of.adapter.root.tcbObject[e]}clear(){delete of.adapter.root.tcbObject}}function af(e,t){switch(e){case"local":return t.localStorage||new sf;case"none":return new sf;default:return t.sessionStorage||new sf}}class cf{constructor(e){if(!this._storage){this._persistence=of.adapter.primaryStorage||e.persistence,this._storage=af(this._persistence,of.adapter);const t=`access_token_${e.env}`,n=`access_token_expire_${e.env}`,o=`refresh_token_${e.env}`,r=`anonymous_uuid_${e.env}`,i=`login_type_${e.env}`,s=`user_info_${e.env}`;this.keys={accessTokenKey:t,accessTokenExpireKey:n,refreshTokenKey:o,anonymousUuidKey:r,loginTypeKey:i,userInfoKey:s}}}updatePersistence(e){if(e===this._persistence)return;const t="local"===this._persistence;this._persistence=e;const n=af(e,of.adapter);for(const o in this.keys){const e=this.keys[o];if(t&&rf.includes(o))continue;const r=this._storage.getItem(e);ef(r)||tf(r)||(n.setItem(e,r),this._storage.removeItem(e))}this._storage=n}setStore(e,t,n){if(!this._storage)return;const o={version:n||"localCachev1",content:t},r=JSON.stringify(o);try{this._storage.setItem(e,r)}catch(i){throw i}}getStore(e,t){try{if(!this._storage)return}catch(o){return""}t=t||"localCachev1";const n=this._storage.getItem(e);return n&&n.indexOf(t)>=0?JSON.parse(n).content:""}removeStore(e){this._storage.removeItem(e)}}const lf={},uf={};function ff(e){return lf[e]}class pf{constructor(e,t){this.data=t||null,this.name=e}}class df extends pf{constructor(e,t){super("error",{error:e,data:t}),this.error=e}}const hf=new class{constructor(){this._listeners={}}on(e,t){return n=e,o=t,(r=this._listeners)[n]=r[n]||[],r[n].push(o),this;var n,o,r}off(e,t){return function(e,t,n){if(n&&n[e]){const o=n[e].indexOf(t);-1!==o&&n[e].splice(o,1)}}(e,t,this._listeners),this}fire(e,t){if(e instanceof df)return console.error(e.error),this;const n="string"==typeof e?new pf(e,t||{}):e,o=n.name;if(this._listens(o)){n.target=this;const e=this._listeners[o]?[...this._listeners[o]]:[];for(const t of e)t.call(this,n)}return this}_listens(e){return this._listeners[e]&&this._listeners[e].length>0}};function gf(e,t){hf.on(e,t)}function mf(e,t={}){hf.fire(e,t)}function yf(e,t){hf.off(e,t)}const bf="loginStateChanged",vf="loginStateExpire",wf="loginTypeChanged",Sf="anonymousConverted",Af="refreshAccessToken";var xf;!function(e){e.ANONYMOUS="ANONYMOUS",e.WECHAT="WECHAT",e.WECHAT_PUBLIC="WECHAT-PUBLIC",e.WECHAT_OPEN="WECHAT-OPEN",e.CUSTOM="CUSTOM",e.EMAIL="EMAIL",e.USERNAME="USERNAME",e.NULL="NULL"}(xf||(xf={}));const kf=["auth.getJwt","auth.logout","auth.signInWithTicket","auth.signInAnonymously","auth.signIn","auth.fetchAccessTokenWithRefreshToken","auth.signUpWithEmailAndPassword","auth.activateEndUserMail","auth.sendPasswordResetEmail","auth.resetPasswordWithToken","auth.isUsernameRegistered"],Tf={"X-SDK-Version":"1.3.5"};function Ef(e,t,n){const o=e[t];e[t]=function(t){const r={},i={};n.forEach((n=>{const{data:o,headers:s}=n.call(e,t);Object.assign(r,o),Object.assign(i,s)}));const s=t.data;return s&&(()=>{var e;if(e=s,"[object FormData]"!==Object.prototype.toString.call(e))t.data={...s,...r};else for(const t in r)s.append(t,r[t])})(),t.headers={...t.headers||{},...i},o.call(e,t)}}function Pf(){const e=Math.random().toString(16).slice(2);return{data:{seqId:e},headers:{...Tf,"x-seqid":e}}}class If{constructor(e={}){var t;this.config=e,this._reqClass=new of.adapter.reqClass({timeout:this.config.timeout,timeoutMsg:`请求在${this.config.timeout/1e3}s内未完成,已中断`,restrictedMethods:["post"]}),this._cache=ff(this.config.env),this._localCache=(t=this.config.env,uf[t]),Ef(this._reqClass,"post",[Pf]),Ef(this._reqClass,"upload",[Pf]),Ef(this._reqClass,"download",[Pf])}async post(e){return await this._reqClass.post(e)}async upload(e){return await this._reqClass.upload(e)}async download(e){return await this._reqClass.download(e)}async refreshAccessToken(){let e,t;this._refreshAccessTokenPromise||(this._refreshAccessTokenPromise=this._refreshAccessToken());try{e=await this._refreshAccessTokenPromise}catch(n){t=n}if(this._refreshAccessTokenPromise=null,this._shouldRefreshAccessTokenHook=null,t)throw t;return e}async _refreshAccessToken(){const{accessTokenKey:e,accessTokenExpireKey:t,refreshTokenKey:n,loginTypeKey:o,anonymousUuidKey:r}=this._cache.keys;this._cache.removeStore(e),this._cache.removeStore(t);let i=this._cache.getStore(n);if(!i)throw new Bu({message:"未登录CloudBase"});const s={refresh_token:i},a=await this.request("auth.fetchAccessTokenWithRefreshToken",s);if(a.data.code){const{code:e}=a.data;if("SIGN_PARAM_INVALID"===e||"REFRESH_TOKEN_EXPIRED"===e||"INVALID_REFRESH_TOKEN"===e){if(this._cache.getStore(o)===xf.ANONYMOUS&&"INVALID_REFRESH_TOKEN"===e){const e=this._cache.getStore(r),t=this._cache.getStore(n),o=await this.send("auth.signInAnonymously",{anonymous_uuid:e,refresh_token:t});return this.setRefreshToken(o.refresh_token),this._refreshAccessToken()}mf(vf),this._cache.removeStore(n)}throw new Bu({code:a.data.code,message:`刷新access token失败:${a.data.code}`})}if(a.data.access_token)return mf(Af),this._cache.setStore(e,a.data.access_token),this._cache.setStore(t,a.data.access_token_expire+Date.now()),{accessToken:a.data.access_token,accessTokenExpire:a.data.access_token_expire};a.data.refresh_token&&(this._cache.removeStore(n),this._cache.setStore(n,a.data.refresh_token),this._refreshAccessToken())}async getAccessToken(){const{accessTokenKey:e,accessTokenExpireKey:t,refreshTokenKey:n}=this._cache.keys;if(!this._cache.getStore(n))throw new Bu({message:"refresh token不存在,登录状态异常"});let o=this._cache.getStore(e),r=this._cache.getStore(t),i=!0;return this._shouldRefreshAccessTokenHook&&!(await this._shouldRefreshAccessTokenHook(o,r))&&(i=!1),(!o||!r||r{e.wxOpenId&&e.wxPublicId&&(t=!0)})),{users:n,hasPrimaryUid:t}}setPrimaryUid(e){return this._request.send("auth.setPrimaryUid",{uid:e})}unlink(e){return this._request.send("auth.unlink",{platform:e})}async update(e){const{nickName:t,gender:n,avatarUrl:o,province:r,country:i,city:s}=e,{data:a}=await this._request.send("auth.updateUserInfo",{nickName:t,gender:n,avatarUrl:o,province:r,country:i,city:s});this.setLocalUserInfo(a)}async refresh(){const{data:e}=await this._request.send("auth.getUserInfo",{});return this.setLocalUserInfo(e),e}setUserInfo(){const{userInfoKey:e}=this._cache.keys,t=this._cache.getStore(e);["uid","loginType","openid","wxOpenId","wxPublicId","unionId","qqMiniOpenId","email","hasPassword","customUserId","nickName","gender","avatarUrl"].forEach((e=>{this[e]=t[e]})),this.location={country:t.country,province:t.province,city:t.city}}setLocalUserInfo(e){const{userInfoKey:t}=this._cache.keys;this._cache.setStore(t,e),this.setUserInfo()}}class jf{constructor(e){if(!e)throw new Bu({code:"PARAM_ERROR",message:"envId is not defined"});this._cache=ff(e);const{refreshTokenKey:t,accessTokenKey:n,accessTokenExpireKey:o}=this._cache.keys,r=this._cache.getStore(t),i=this._cache.getStore(n),s=this._cache.getStore(o);this.credential={refreshToken:r,accessToken:i,accessTokenExpire:s},this.user=new Bf(e)}get isAnonymousAuth(){return this.loginType===xf.ANONYMOUS}get isCustomAuth(){return this.loginType===xf.CUSTOM}get isWeixinAuth(){return this.loginType===xf.WECHAT||this.loginType===xf.WECHAT_OPEN||this.loginType===xf.WECHAT_PUBLIC}get loginType(){return this._cache.getStore(this._cache.keys.loginTypeKey)}}class Lf extends Of{async signIn(){this._cache.updatePersistence("local");const{anonymousUuidKey:e,refreshTokenKey:t}=this._cache.keys,n=this._cache.getStore(e)||void 0,o=this._cache.getStore(t)||void 0,r=await this._request.send("auth.signInAnonymously",{anonymous_uuid:n,refresh_token:o});if(r.uuid&&r.refresh_token){this._setAnonymousUUID(r.uuid),this.setRefreshToken(r.refresh_token),await this._request.refreshAccessToken(),mf(bf),mf(wf,{env:this.config.env,loginType:xf.ANONYMOUS,persistence:"local"});const e=new jf(this.config.env);return await e.user.refresh(),e}throw new Bu({message:"匿名登录失败"})}async linkAndRetrieveDataWithTicket(e){const{anonymousUuidKey:t,refreshTokenKey:n}=this._cache.keys,o=this._cache.getStore(t),r=this._cache.getStore(n),i=await this._request.send("auth.linkAndRetrieveDataWithTicket",{anonymous_uuid:o,refresh_token:r,ticket:e});if(i.refresh_token)return this._clearAnonymousUUID(),this.setRefreshToken(i.refresh_token),await this._request.refreshAccessToken(),mf(Sf,{env:this.config.env}),mf(wf,{loginType:xf.CUSTOM,persistence:"local"}),{credential:{refreshToken:i.refresh_token}};throw new Bu({message:"匿名转化失败"})}_setAnonymousUUID(e){const{anonymousUuidKey:t,loginTypeKey:n}=this._cache.keys;this._cache.removeStore(t),this._cache.setStore(t,e),this._cache.setStore(n,xf.ANONYMOUS)}_clearAnonymousUUID(){this._cache.removeStore(this._cache.keys.anonymousUuidKey)}}class Nf extends Of{async signIn(e){if("string"!=typeof e)throw new Bu({code:"PARAM_ERROR",message:"ticket must be a string"});const{refreshTokenKey:t}=this._cache.keys,n=await this._request.send("auth.signInWithTicket",{ticket:e,refresh_token:this._cache.getStore(t)||""});if(n.refresh_token)return this.setRefreshToken(n.refresh_token),await this._request.refreshAccessToken(),mf(bf),mf(wf,{env:this.config.env,loginType:xf.CUSTOM,persistence:this.config.persistence}),await this.refreshUserInfo(),new jf(this.config.env);throw new Bu({message:"自定义登录失败"})}}class Df extends Of{async signIn(e,t){if("string"!=typeof e)throw new Bu({code:"PARAM_ERROR",message:"email must be a string"});const{refreshTokenKey:n}=this._cache.keys,o=await this._request.send("auth.signIn",{loginType:"EMAIL",email:e,password:t,refresh_token:this._cache.getStore(n)||""}),{refresh_token:r,access_token:i,access_token_expire:s}=o;if(r)return this.setRefreshToken(r),i&&s?this.setAccessToken(i,s):await this._request.refreshAccessToken(),await this.refreshUserInfo(),mf(bf),mf(wf,{env:this.config.env,loginType:xf.EMAIL,persistence:this.config.persistence}),new jf(this.config.env);throw o.code?new Bu({code:o.code,message:`邮箱登录失败: ${o.message}`}):new Bu({message:"邮箱登录失败"})}async activate(e){return this._request.send("auth.activateEndUserMail",{token:e})}async resetPasswordWithToken(e,t){return this._request.send("auth.resetPasswordWithToken",{token:e,newPassword:t})}}class Mf extends Of{async signIn(e,t){if("string"!=typeof e)throw new Bu({code:"PARAM_ERROR",message:"username must be a string"});"string"!=typeof t&&(t="",console.warn("password is empty"));const{refreshTokenKey:n}=this._cache.keys,o=await this._request.send("auth.signIn",{loginType:xf.USERNAME,username:e,password:t,refresh_token:this._cache.getStore(n)||""}),{refresh_token:r,access_token_expire:i,access_token:s}=o;if(r)return this.setRefreshToken(r),s&&i?this.setAccessToken(s,i):await this._request.refreshAccessToken(),await this.refreshUserInfo(),mf(bf),mf(wf,{env:this.config.env,loginType:xf.USERNAME,persistence:this.config.persistence}),new jf(this.config.env);throw o.code?new Bu({code:o.code,message:`用户名密码登录失败: ${o.message}`}):new Bu({message:"用户名密码登录失败"})}}class Ff{constructor(e){this.config=e,this._cache=ff(e.env),this._request=_f(e.env),this._onAnonymousConverted=this._onAnonymousConverted.bind(this),this._onLoginTypeChanged=this._onLoginTypeChanged.bind(this),gf(wf,this._onLoginTypeChanged)}get currentUser(){const e=this.hasLoginState();return e&&e.user||null}get loginType(){return this._cache.getStore(this._cache.keys.loginTypeKey)}anonymousAuthProvider(){return new Lf(this.config)}customAuthProvider(){return new Nf(this.config)}emailAuthProvider(){return new Df(this.config)}usernameAuthProvider(){return new Mf(this.config)}async signInAnonymously(){return new Lf(this.config).signIn()}async signInWithEmailAndPassword(e,t){return new Df(this.config).signIn(e,t)}signInWithUsernameAndPassword(e,t){return new Mf(this.config).signIn(e,t)}async linkAndRetrieveDataWithTicket(e){return this._anonymousAuthProvider||(this._anonymousAuthProvider=new Lf(this.config)),gf(Sf,this._onAnonymousConverted),await this._anonymousAuthProvider.linkAndRetrieveDataWithTicket(e)}async signOut(){if(this.loginType===xf.ANONYMOUS)throw new Bu({message:"匿名用户不支持登出操作"});const{refreshTokenKey:e,accessTokenKey:t,accessTokenExpireKey:n}=this._cache.keys,o=this._cache.getStore(e);if(!o)return;const r=await this._request.send("auth.logout",{refresh_token:o});return this._cache.removeStore(e),this._cache.removeStore(t),this._cache.removeStore(n),mf(bf),mf(wf,{env:this.config.env,loginType:xf.NULL,persistence:this.config.persistence}),r}async signUpWithEmailAndPassword(e,t){return this._request.send("auth.signUpWithEmailAndPassword",{email:e,password:t})}async sendPasswordResetEmail(e){return this._request.send("auth.sendPasswordResetEmail",{email:e})}onLoginStateChanged(e){gf(bf,(()=>{const t=this.hasLoginState();e.call(this,t)}));const t=this.hasLoginState();e.call(this,t)}onLoginStateExpired(e){gf(vf,e.bind(this))}onAccessTokenRefreshed(e){gf(Af,e.bind(this))}onAnonymousConverted(e){gf(Sf,e.bind(this))}onLoginTypeChanged(e){gf(wf,(()=>{const t=this.hasLoginState();e.call(this,t)}))}async getAccessToken(){return{accessToken:(await this._request.getAccessToken()).accessToken,env:this.config.env}}hasLoginState(){const{refreshTokenKey:e}=this._cache.keys;return this._cache.getStore(e)?new jf(this.config.env):null}async isUsernameRegistered(e){if("string"!=typeof e)throw new Bu({code:"PARAM_ERROR",message:"username must be a string"});const{data:t}=await this._request.send("auth.isUsernameRegistered",{username:e});return t&&t.isRegistered}getLoginState(){return Promise.resolve(this.hasLoginState())}async signInWithTicket(e){return new Nf(this.config).signIn(e)}shouldRefreshAccessToken(e){this._request._shouldRefreshAccessTokenHook=e.bind(this)}getUserInfo(){return this._request.send("auth.getUserInfo",{}).then((e=>e.code?e:{...e.data,requestId:e.seqId}))}getAuthHeader(){const{refreshTokenKey:e,accessTokenKey:t}=this._cache.keys,n=this._cache.getStore(e);return{"x-cloudbase-credentials":this._cache.getStore(t)+"/@@/"+n}}_onAnonymousConverted(e){const{env:t}=e.data;t===this.config.env&&this._cache.updatePersistence(this.config.persistence)}_onLoginTypeChanged(e){const{loginType:t,persistence:n,env:o}=e.data;o===this.config.env&&(this._cache.updatePersistence(n),this._cache.setStore(this._cache.keys.loginTypeKey,t))}}const Uf=function(e,t){t=t||Zu();const n=_f(this.config.env),{cloudPath:o,filePath:r,onUploadProgress:i,fileType:s="image"}=e;return n.send("storage.getUploadMetadata",{path:o}).then((e=>{const{data:{url:a,authorization:c,token:l,fileId:u,cosFileId:f},requestId:p}=e,d={key:o,signature:c,"x-cos-meta-fileid":f,success_action_status:"201","x-cos-security-token":l};n.upload({url:a,data:d,file:r,name:o,fileType:s,onUploadProgress:i}).then((e=>{201===e.statusCode?t(null,{fileID:u,requestId:p}):t(new Bu({code:"STORAGE_REQUEST_FAIL",message:`STORAGE_REQUEST_FAIL: ${e.data}`}))})).catch((e=>{t(e)}))})).catch((e=>{t(e)})),t.promise},Rf=function(e,t){t=t||Zu();const n=_f(this.config.env),{cloudPath:o}=e;return n.send("storage.getUploadMetadata",{path:o}).then((e=>{t(null,e)})).catch((e=>{t(e)})),t.promise},Qf=function({fileList:e},t){if(t=t||Zu(),!e||!Array.isArray(e))return{code:"INVALID_PARAM",message:"fileList必须是非空的数组"};for(let o of e)if(!o||"string"!=typeof o)return{code:"INVALID_PARAM",message:"fileList的元素必须是非空的字符串"};const n={fileid_list:e};return _f(this.config.env).send("storage.batchDeleteFile",n).then((e=>{e.code?t(null,e):t(null,{fileList:e.data.delete_list,requestId:e.requestId})})).catch((e=>{t(e)})),t.promise},qf=function({fileList:e},t){t=t||Zu(),e&&Array.isArray(e)||t(null,{code:"INVALID_PARAM",message:"fileList必须是非空的数组"});let n=[];for(let r of e)"object"==typeof r?(r.hasOwnProperty("fileID")&&r.hasOwnProperty("maxAge")||t(null,{code:"INVALID_PARAM",message:"fileList的元素必须是包含fileID和maxAge的对象"}),n.push({fileid:r.fileID,max_age:r.maxAge})):"string"==typeof r?n.push({fileid:r}):t(null,{code:"INVALID_PARAM",message:"fileList的元素必须是字符串"});const o={file_list:n};return _f(this.config.env).send("storage.batchGetDownloadUrl",o).then((e=>{e.code?t(null,e):t(null,{fileList:e.data.download_list,requestId:e.requestId})})).catch((e=>{t(e)})),t.promise},zf=async function({fileID:e},t){const n=(await qf.call(this,{fileList:[{fileID:e,maxAge:600}]})).fileList[0];if("SUCCESS"!==n.code)return t?t(n):new Promise((e=>{e(n)}));const o=_f(this.config.env);let r=n.download_url;if(r=encodeURI(r),!t)return o.download({url:r});t(await o.download({url:r}))},Hf=function({name:e,data:t,query:n,parse:o,search:r},i){const s=i||Zu();let a;try{a=t?JSON.stringify(t):""}catch(l){return Promise.reject(l)}if(!e)return Promise.reject(new Bu({code:"PARAM_ERROR",message:"函数名不能为空"}));const c={inQuery:n,parse:o,search:r,function_name:e,request_data:a};return _f(this.config.env).send("functions.invokeFunction",c).then((e=>{if(e.code)s(null,e);else{let n=e.data.response_data;if(o)s(null,{result:n,requestId:e.requestId});else try{n=JSON.parse(e.data.response_data),s(null,{result:n,requestId:e.requestId})}catch(t){s(new Bu({message:"response data must be json"}))}}return s.promise})).catch((e=>{s(e)})),s.promise},Wf={timeout:15e3,persistence:"session"},$f={};class Vf{constructor(e){this.config=e||this.config,this.authObj=void 0}init(e){switch(of.adapter||(this.requestClient=new of.adapter.reqClass({timeout:e.timeout||5e3,timeoutMsg:`请求在${(e.timeout||5e3)/1e3}s内未完成,已中断`})),this.config={...Wf,...e},!0){case this.config.timeout>6e5:console.warn("timeout大于可配置上限[10分钟],已重置为上限数值"),this.config.timeout=6e5;break;case this.config.timeout<100:console.warn("timeout小于可配置下限[100ms],已重置为下限数值"),this.config.timeout=100}return new Vf(this.config)}auth({persistence:e}={}){if(this.authObj)return this.authObj;const t=e||of.adapter.primaryStorage||Wf.persistence;var n;return t!==this.config.persistence&&(this.config.persistence=t),function(e){const{env:t}=e;lf[t]=new cf(e),uf[t]=new cf({...e,persistence:"local"})}(this.config),n=this.config,Cf[n.env]=new If(n),this.authObj=new Ff(this.config),this.authObj}on(e,t){return gf.apply(this,[e,t])}off(e,t){return yf.apply(this,[e,t])}callFunction(e,t){return Hf.apply(this,[e,t])}deleteFile(e,t){return Qf.apply(this,[e,t])}getTempFileURL(e,t){return qf.apply(this,[e,t])}downloadFile(e,t){return zf.apply(this,[e,t])}uploadFile(e,t){return Uf.apply(this,[e,t])}getUploadMetadata(e,t){return Rf.apply(this,[e,t])}registerExtension(e){$f[e.name]=e}async invokeExtension(e,t){const n=$f[e];if(!n)throw new Bu({message:`扩展${e} 必须先注册`});return await n.invoke(t,this)}useAdapters(e){const{adapter:t,runtime:n}=function(e){const t=(n=e,"[object Array]"===Object.prototype.toString.call(n)?e:[e]);var n;for(const o of t){const{isMatch:e,genAdapter:t,runtime:n}=o;if(e())return{adapter:t(),runtime:n}}}(e)||{};t&&(of.adapter=t),n&&(of.runtime=n)}}var Kf=new Vf;function Jf(e,t,n){void 0===n&&(n={});var o=/\?/.test(t),r="";for(var i in n)""===r?!o&&(t+="?"):r+="&",r+=i+"="+encodeURIComponent(n[i]);return/^http(s)?:\/\//.test(t+=r)?t:""+e+t}class Yf{post(e){const{url:t,data:n,headers:o}=e;return new Promise(((e,r)=>{ju.request({url:Jf("https:",t),data:n,method:"POST",header:o,success(t){e(t)},fail(e){r(e)}})}))}upload(e){return new Promise(((t,n)=>{const{url:o,file:r,data:i,headers:s,fileType:a}=e,c=ju.uploadFile({url:Jf("https:",o),name:"file",formData:Object.assign({},i),filePath:r,fileType:a,header:s,success(e){const n={statusCode:e.statusCode,data:e.data||{}};200===e.statusCode&&i.success_action_status&&(n.statusCode=parseInt(i.success_action_status,10)),t(n)},fail(e){n(new Error(e.errMsg||"uploadFile:fail"))}});"function"==typeof e.onUploadProgress&&c&&"function"==typeof c.onProgressUpdate&&c.onProgressUpdate((t=>{e.onUploadProgress({loaded:t.totalBytesSent,total:t.totalBytesExpectedToSend})}))}))}}const Gf={setItem(e,t){ju.setStorageSync(e,t)},getItem:e=>ju.getStorageSync(e),removeItem(e){ju.removeStorageSync(e)},clear(){ju.clearStorageSync()}};var Xf={genAdapter:function(){return{root:{},reqClass:Yf,localStorage:Gf,primaryStorage:"local"}},isMatch:function(){return!0},runtime:"uni_app"};Kf.useAdapters(Xf);const Zf=Kf,ep=Zf.init;Zf.init=function(e){e.env=e.spaceId;const t=ep.call(this,e);t.config.provider="tencent",t.config.spaceId=e.spaceId;const n=t.auth;return t.auth=function(e){const t=n.call(this,e);return["linkAndRetrieveDataWithTicket","signInAnonymously","signOut","getAccessToken","getLoginState","signInWithTicket","getUserInfo"].forEach((e=>{var n;t[e]=(n=t[e],function(e){e=e||{};const{success:t,fail:o,complete:r}=Ou(e);if(!(t||o||r))return n.call(this,e);n.call(this,e).then((e=>{t&&t(e),r&&r(e)}),(e=>{o&&o(e),r&&r(e)}))}).bind(t)})),t},t.customAuth=t.auth,t};var tp=Zf,np=class extends Vu{getAccessToken(){return new Promise(((e,t)=>{const n="Anonymous_Access_token";this.setAccessToken(n),e(n)}))}setupRequest(e,t){const n=Object.assign({},e,{spaceId:this.config.spaceId,timestamp:Date.now()}),o={"Content-Type":"application/json"};"auth"!==t&&(n.token=this.accessToken,o["x-basement-token"]=this.accessToken),o["x-serverless-sign"]=qu(n,this.config.clientSecret);const r=Qu();o["x-client-info"]=encodeURIComponent(JSON.stringify(r));const{token:i}=Nu();return o["x-client-token"]=i,{url:this.config.requestUrl,method:"POST",data:n,dataType:"json",header:JSON.parse(JSON.stringify(o))}}uploadFileToOSS({url:e,formData:t,name:n,filePath:o,fileType:r,onUploadProgress:i}){return new Promise(((s,a)=>{const c=this.adapter.uploadFile({url:e,formData:t,name:n,filePath:o,fileType:r,success(e){e&&e.statusCode<400?s(e):a(new Bu({code:"UPLOAD_FAILED",message:"文件上传失败"}))},fail(e){a(new Bu({code:e.code||"UPLOAD_FAILED",message:e.message||e.errMsg||"文件上传失败"}))}});"function"==typeof i&&c&&"function"==typeof c.onProgressUpdate&&c.onProgressUpdate((e=>{i({loaded:e.totalBytesSent,total:e.totalBytesExpectedToSend})}))}))}uploadFile({filePath:e,cloudPath:t,fileType:n="image",onUploadProgress:o}){if(!t)throw new Bu({code:"CLOUDPATH_REQUIRED",message:"cloudPath不可为空"});let r;return this.getOSSUploadOptionsFromPath({cloudPath:t}).then((t=>{const{url:i,formData:s,name:a}=t.result;r=t.result.fileUrl;const c={url:i,formData:s,name:a,filePath:e,fileType:n};return this.uploadFileToOSS(Object.assign({},c,{onUploadProgress:o}))})).then((()=>this.reportOSSUpload({cloudPath:t}))).then((t=>new Promise(((n,o)=>{t.success?n({success:!0,filePath:e,fileID:r}):o(new Bu({code:"UPLOAD_FAILED",message:"文件上传失败"}))}))))}deleteFile({fileList:e}){const t={method:"serverless.file.resource.delete",params:JSON.stringify({fileList:e})};return this.request(this.setupRequest(t)).then((e=>{if(e.success)return e.result;throw new Bu({code:"DELETE_FILE_FAILED",message:"删除文件失败"})}))}getTempFileURL({fileList:e}={}){if(!Array.isArray(e)||0===e.length)throw new Bu({code:"INVALID_PARAM",message:"fileList的元素必须是非空的字符串"});const t={method:"serverless.file.resource.getTempFileURL",params:JSON.stringify({fileList:e})};return this.request(this.setupRequest(t)).then((e=>{if(e.success)return{fileList:e.result.fileList.map((e=>({fileID:e.fileID,tempFileURL:e.tempFileURL})))};throw new Bu({code:"GET_TEMP_FILE_URL_FAILED",message:"获取临时文件链接失败"})}))}},op={init(e){const t=new np(e),n={signInAnonymously:function(){return t.authorize()},getLoginState:function(){return Promise.resolve(!1)}};return t.auth=function(){return n},t.customAuth=t.auth,t}};function rp({data:e}){let t;t=Qu();const n=JSON.parse(JSON.stringify(e||{}));if(Object.assign(n,{clientInfo:t}),!n.uniIdToken){const{token:e}=Nu();e&&(n.uniIdToken=e)}return n}const ip=[{rule:/fc_function_not_found|FUNCTION_NOT_FOUND/,content:",云函数[{functionName}]在云端不存在,请检查此云函数名称是否正确以及该云函数是否已上传到服务空间",mode:"append"}];var sp=/[\\^$.*+?()[\]{}|]/g,ap=RegExp(sp.source);function cp(e,t,n){return e.replace(new RegExp((o=t)&&ap.test(o)?o.replace(sp,"\\$&"):o,"g"),n);var o}const lp=2e4,up={code:20101,message:"Invalid client"};function fp(e){const{errSubject:t,subject:n,errCode:o,errMsg:r,code:i,message:s,cause:a}=e||{};return new Bu({subject:t||n||"uni-secure-network",code:o||i||lp,message:r||s,cause:a})}let pp;function dp({secretType:e}={}){return"request"===e||"response"===e||"both"===e}function hp({functionName:e,result:t,logPvd:n}){}function gp(e){const t=e.callFunction,n=function(n){const o=n.name;n.data=rp.call(e,{data:n.data});const r={aliyun:"aliyun",tencent:"tcb",tcb:"tcb"}[this.config.provider],i=dp(n)||false;return t.call(this,n).then((e=>(e.errCode=0,!i&&hp.call(this,{functionName:o,result:e,logPvd:r}),Promise.resolve(e))),(e=>(!i&&hp.call(this,{functionName:o,result:e,logPvd:r}),e&&e.message&&(e.message=function({message:e="",extraInfo:t={},formatter:n=[]}={}){for(let o=0;on.provider===e&&n.spaceId===t));return o&&o.config}({provider:e,spaceId:t});if(!a||!a.accessControl||!a.accessControl.enable)return!1;const c=a.accessControl.function||{},l=Object.keys(c);if(0===l.length)return!0;const u=function(e,t){let n,o,r;for(let i=0;ie.trim())).indexOf(t)>-1&&(o=s):r=s:n=s}return n||o||r}(l,n);if(!u)return!1;if((c[u]||[]).find(((e={})=>e.appId===o&&(e.platform||"").toLowerCase()===s.toLowerCase())))return!0;throw console.error(`此应用[appId: ${o}, platform: ${s}]不在云端配置的允许访问的应用列表内,参考:https://uniapp.dcloud.net.cn/uniCloud/secure-network.html#verify-client`),fp(up)}({provider:o,spaceId:r,functionName:i})?new pp({secretType:t.secretType,uniCloudIns:e}).wrapVerifyClientCallFunction(n.bind(e))(t):s(t),Object.defineProperty(a,"result",{get:()=>(console.warn("当前返回结果为Promise类型,不可直接访问其result属性,详情请参考:https://uniapp.dcloud.net.cn/uniCloud/faq?id=promise"),{})}),a}}pp=class{constructor(){throw fp({message:`Platform ${iu} is not enabled, please check whether secure network module is enabled in your manifest.json`})}};const mp=Symbol("CLIENT_DB_INTERNAL");function yp(e,t){return e.then="DoNotReturnProxyWithAFunctionNamedThen",e._internalType=mp,e.inspect=null,e.__v_raw=void 0,new Proxy(e,{get(e,n,o){if("_uniClient"===n)return null;if("symbol"==typeof n)return e[n];if(n in e||"string"!=typeof n){const t=e[n];return"function"==typeof t?t.bind(e):t}return t.get(e,n,o)}})}function bp(e){return{on:(t,n)=>{e[t]=e[t]||[],e[t].indexOf(n)>-1||e[t].push(n)},off:(t,n)=>{e[t]=e[t]||[];const o=e[t].indexOf(n);-1!==o&&e[t].splice(o,1)}}}const vp=["db.Geo","db.command","command.aggregate"];function wp(e,t){return vp.indexOf(`${e}.${t}`)>-1}function Sp(e){switch(Yl(e=Lu(e))){case"array":return e.map((e=>Sp(e)));case"object":return e._internalType===mp||Object.keys(e).forEach((t=>{e[t]=Sp(e[t])})),e;case"regexp":return{$regexp:{source:e.source,flags:e.flags}};case"date":return{$date:e.toISOString()};default:return e}}function Ap(e){return e&&e.content&&e.content.$method}class xp{constructor(e,t,n){this.content=e,this.prevStage=t||null,this.udb=null,this._database=n}toJSON(){let e=this;const t=[e.content];for(;e.prevStage;)e=e.prevStage,t.push(e.content);return{$db:t.reverse().map((e=>({$method:e.$method,$param:Sp(e.$param)})))}}toString(){return JSON.stringify(this.toJSON())}getAction(){const e=this.toJSON().$db.find((e=>"action"===e.$method));return e&&e.$param&&e.$param[0]}getCommand(){return{$db:this.toJSON().$db.filter((e=>"action"!==e.$method))}}get isAggregate(){let e=this;for(;e;){const t=Ap(e),n=Ap(e.prevStage);if("aggregate"===t&&"collection"===n||"pipeline"===t)return!0;e=e.prevStage}return!1}get isCommand(){let e=this;for(;e;){if("command"===Ap(e))return!0;e=e.prevStage}return!1}get isAggregateCommand(){let e=this;for(;e;){const t=Ap(e),n=Ap(e.prevStage);if("aggregate"===t&&"command"===n)return!0;e=e.prevStage}return!1}getNextStageFn(e){const t=this;return function(){return kp({$method:e,$param:Sp(Array.from(arguments))},t,t._database)}}get count(){return this.isAggregate?this.getNextStageFn("count"):function(){return this._send("count",Array.from(arguments))}}get remove(){return this.isCommand?this.getNextStageFn("remove"):function(){return this._send("remove",Array.from(arguments))}}get(){return this._send("get",Array.from(arguments))}get add(){return this.isCommand?this.getNextStageFn("add"):function(){return this._send("add",Array.from(arguments))}}update(){return this._send("update",Array.from(arguments))}end(){return this._send("end",Array.from(arguments))}get set(){return this.isCommand?this.getNextStageFn("set"):function(){throw new Error("JQL禁止使用set方法")}}_send(e,t){const n=this.getAction(),o=this.getCommand();return o.$db.push({$method:e,$param:Sp(t)}),this._database._callCloudFunction({action:n,command:o})}}function kp(e,t,n){return yp(new xp(e,t,n),{get(e,t){let o="db";return e&&e.content&&(o=e.content.$method),wp(o,t)?kp({$method:t},e,n):function(){return kp({$method:t,$param:Sp(Array.from(arguments))},e,n)}}})}function Tp({path:e,method:t}){return class{constructor(){this.param=Array.from(arguments)}toJSON(){return{$newDb:[...e.map((e=>({$method:e}))),{$method:t,$param:this.param}]}}toString(){return JSON.stringify(this.toJSON())}}}function Ep(e,t={}){return yp(new e(t),{get:(e,t)=>wp("db",t)?kp({$method:t},null,e):function(){return kp({$method:t,$param:Sp(Array.from(arguments))},null,e)}})}class Pp extends class{constructor({uniClient:e={},isJQL:t=!1}={}){this._uniClient=e,this._authCallBacks={},this._dbCallBacks={},e._isDefault&&(this._dbCallBacks=lu("_globalUniCloudDatabaseCallback")),t||(this.auth=bp(this._authCallBacks)),this._isJQL=t,Object.assign(this,bp(this._dbCallBacks)),this.env=yp({},{get:(e,t)=>({$env:t})}),this.Geo=yp({},{get:(e,t)=>Tp({path:["Geo"],method:t})}),this.serverDate=Tp({path:[],method:"serverDate"}),this.RegExp=Tp({path:[],method:"RegExp"})}getCloudEnv(e){if("string"!=typeof e||!e.trim())throw new Error("getCloudEnv参数错误");return{$env:e.replace("$cloudEnv_","")}}_callback(e,t){const n=this._dbCallBacks;n[e]&&n[e].forEach((e=>{e(...t)}))}_callbackAuth(e,t){const n=this._authCallBacks;n[e]&&n[e].forEach((e=>{e(...t)}))}multiSend(){const e=Array.from(arguments),t=e.map((e=>{const t=e.getAction(),n=e.getCommand();if("getTemp"!==n.$db[n.$db.length-1].$method)throw new Error("multiSend只支持子命令内使用getTemp");return{action:t,command:n}}));return this._callCloudFunction({multiCommand:t,queryList:e})}}{_parseResult(e){return this._isJQL?e.result:e}_callCloudFunction({action:e,command:t,multiCommand:n,queryList:o}){function r(e,t){if(n&&o)for(let n=0;nhu(gu(s,"complete"),e))).then((()=>(r(null,e),Pu(bu,{type:Su,content:e}),Promise.reject(e))))}const c=hu(gu(s,"invoke")),l=this._uniClient;return c.then((()=>l.callFunction({name:"DCloud-clientDB",type:"CLIENT_DB",data:{action:e,command:t,multiCommand:n}}))).then((e=>{const{code:t,message:n,token:o,tokenExpired:c,systemInfo:l=[]}=e.result;if(l)for(let r=0;r(console.warn(n),o)})}}return f=e,hu(gu(s,"success"),f).then((()=>hu(gu(s,"complete"),f))).then((()=>{r(f,null);const e=i._parseResult(f);return Pu(bu,{type:Su,content:e}),Promise.resolve(e)}));var f}),(e=>(/fc_function_not_found|FUNCTION_NOT_FOUND/g.test(e.message)&&console.warn("clientDB未初始化,请在web控制台保存一次schema以开启clientDB"),a(new Bu({code:e.code||"SYSTEM_ERROR",message:e.message,requestId:e.requestId})))))}}const Ip="token无效,跳转登录页面",Cp="token过期,跳转登录页面",_p={TOKEN_INVALID_TOKEN_EXPIRED:Cp,TOKEN_INVALID_INVALID_CLIENTID:Ip,TOKEN_INVALID:Ip,TOKEN_INVALID_WRONG_TOKEN:Ip,TOKEN_INVALID_ANONYMOUS_USER:Ip},Op={"uni-id-token-expired":Cp,"uni-id-check-token-failed":Ip,"uni-id-token-not-exist":Ip,"uni-id-check-device-feature-failed":Ip};function Bp(e,t){let n="";return n=e?`${e}/${t}`:t,n.replace(/^\//,"")}function jp(e=[],t=""){const n=[],o=[];return e.forEach((e=>{!0===e.needLogin?n.push(Bp(t,e.path)):!1===e.needLogin&&o.push(Bp(t,e.path))})),{needLoginPage:n,notNeedLoginPage:o}}function Lp(e){return e.split("?")[0].replace(/^\//,"")}function Np(){return function(e){let t=e&&e.$page&&e.$page.fullPath||"";return t?("/"!==t.charAt(0)&&(t="/"+t),t):t}(function(){const e=getCurrentPages();return e[e.length-1]}())}function Dp(){return Lp(Np())}function Mp(e="",t={}){if(!e)return!1;if(!(t&&t.list&&t.list.length))return!1;const n=t.list,o=Lp(e);return n.some((e=>e.pagePath===o))}const Fp=!!Rl.uniIdRouter,{loginPage:Up,routerNeedLogin:Rp,resToLogin:Qp,needLoginPage:qp,notNeedLoginPage:zp,loginPageInTabBar:Hp}=function({pages:e=[],subPackages:t=[],uniIdRouter:n={},tabBar:o={}}=Rl){const{loginPage:r,needLogin:i=[],resToLogin:s=!0}=n,{needLoginPage:a,notNeedLoginPage:c}=jp(e),{needLoginPage:l,notNeedLoginPage:u}=function(e=[]){const t=[],n=[];return e.forEach((e=>{const{root:o,pages:r=[]}=e,{needLoginPage:i,notNeedLoginPage:s}=jp(r,o);t.push(...i),n.push(...s)})),{needLoginPage:t,notNeedLoginPage:n}}(t);return{loginPage:r,routerNeedLogin:i,resToLogin:s,needLoginPage:[...a,...l],notNeedLoginPage:[...c,...u],loginPageInTabBar:Mp(r,o)}}();if(qp.indexOf(Up)>-1)throw new Error(`Login page [${Up}] should not be "needLogin", please check your pages.json`);function Wp(e){const t=Dp();if("/"===e.charAt(0))return e;const[n,o]=e.split("?"),r=n.replace(/^\//,"").split("/"),i=t.split("/");i.pop();for(let s=0;s-1?o+`&uniIdRedirectUrl=${encodeURIComponent(r)}`:o+`?uniIdRedirectUrl=${encodeURIComponent(r)}`:o);var o,r;Hp?"navigateTo"!==e&&"redirectTo"!==e||(e="switchTab"):"switchTab"===e&&(e="navigateTo");const i={navigateTo:Tn.navigateTo,redirectTo:Tn.redirectTo,switchTab:Tn.switchTab,reLaunch:Tn.reLaunch};setTimeout((()=>{i[e]({url:n})}))}function Kp({url:e}={}){const t={abortLoginPageJump:!1,autoToLoginPage:!1},n=function(){const{token:e,tokenExpired:t}=Nu();let n;if(e){if(t-1)&&(qp.indexOf(t)>-1||Rp.some((t=>{return n=e,new RegExp(t).test(n);var n})))}(e)&&n){if(n.uniIdRedirectUrl=e,ku(vu).length>0)return setTimeout((()=>{Pu(vu,n)}),0),t.abortLoginPageJump=!0,t;t.autoToLoginPage=!0}return t}function Jp(){!function(){const e=Np(),{abortLoginPageJump:t,autoToLoginPage:n}=Kp({url:e});t||n&&Vp({api:"redirectTo",redirect:e})}();const e=["navigateTo","redirectTo","reLaunch","switchTab"];for(let t=0;t{const{type:t,content:n}=e;let o=!1;switch(t){case"cloudobject":o=function(e){if("object"!=typeof e)return!1;const{errCode:t}=e||{};return t in Op}(n);break;case"clientdb":o=function(e){if("object"!=typeof e)return!1;const{errCode:t}=e||{};return t in _p}(n)}o&&function(e={}){const t=ku(vu);_u().then((()=>{const n=Np();if(n&&$p({redirect:n}))return t.length>0?Pu(vu,Object.assign({uniIdRedirectUrl:n},e)):void(Up&&Vp({api:"navigateTo",redirect:n}))}))}(n)}))}function Gp(e){var t;(t=e).onResponse=function(e){Tu(bu,e)},t.offResponse=function(e){Eu(bu,e)},function(e){e.onNeedLogin=function(e){Tu(vu,e)},e.offNeedLogin=function(e){Eu(vu,e)},Fp&&(lu("_globalUniCloudStatus").needLoginInit||(lu("_globalUniCloudStatus").needLoginInit=!0,_u().then((()=>{Jp.call(e)})),Qp&&Yp.call(e)))}(e),function(e){e.onRefreshToken=function(e){Tu(wu,e)},e.offRefreshToken=function(e){Eu(wu,e)}}(e)}let Xp;const Zp="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",ed=/^(?:[A-Za-z\d+/]{4})*?(?:[A-Za-z\d+/]{2}(?:==)?|[A-Za-z\d+/]{3}=?)?$/;function td(){const e=Nu().token||"",t=e.split(".");if(!e||3!==t.length)return{uid:null,role:[],permission:[],tokenExpired:0};let n;try{n=JSON.parse((o=t[1],decodeURIComponent(Xp(o).split("").map((function(e){return"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2)})).join(""))))}catch(r){throw new Error("获取当前用户信息出错,详细错误信息为:"+r.message)}var o;return n.tokenExpired=1e3*n.exp,delete n.exp,delete n.iat,n}Xp="function"!=typeof atob?function(e){if(e=String(e).replace(/[\t\n\f\r ]+/g,""),!ed.test(e))throw new Error("Failed to execute 'atob' on 'Window': The string to be decoded is not correctly encoded.");var t;e+="==".slice(2-(3&e.length));for(var n,o,r="",i=0;i>16&255):64===o?String.fromCharCode(t>>16&255,t>>8&255):String.fromCharCode(t>>16&255,t>>8&255,255&t);return r}:atob;var nd=function(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}(Ql((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});const n="chooseAndUploadFile:ok",o="chooseAndUploadFile:fail";function r(e,t){return e.tempFiles.forEach(((e,n)=>{e.name||(e.name=e.path.substring(e.path.lastIndexOf("/")+1)),t&&(e.fileType=t),e.cloudPath=Date.now()+"_"+n+e.name.substring(e.name.lastIndexOf("."))})),e.tempFilePaths||(e.tempFilePaths=e.tempFiles.map((e=>e.path))),e}function i(e,t,{onChooseFile:o,onUploadProgress:r}){return t.then((e=>{if(o){const t=o(e);if(void 0!==t)return Promise.resolve(t).then((t=>void 0===t?e:t))}return e})).then((t=>!1===t?{errMsg:n,tempFilePaths:[],tempFiles:[]}:function(e,t,o=5,r){(t=Object.assign({},t)).errMsg=n;const i=t.tempFiles,s=i.length;let a=0;return new Promise((n=>{for(;a=s)return void(!i.find((e=>!e.url&&!e.errMsg))&&n(t));const l=i[o];e.uploadFile({filePath:l.path,cloudPath:l.cloudPath,fileType:l.fileType,onUploadProgress(e){e.index=o,e.tempFile=l,e.tempFilePath=l.path,r&&r(e)}}).then((e=>{l.url=e.fileID,o{l.errMsg=e.errMsg||e.message,o{Tn.chooseImage({count:t,sizeType:n,sourceType:i,extension:s,success(t){e(r(t,"image"))},fail(e){a({errMsg:e.errMsg.replace("chooseImage:fail",o)})}})}))}(t),t):"video"===t.type?i(e,function(e){const{camera:t,compressed:n,maxDuration:i,sourceType:s=["album","camera"],extension:a}=e;return new Promise(((e,c)=>{Tn.chooseVideo({camera:t,compressed:n,maxDuration:i,sourceType:s,extension:a,success(t){const{tempFilePath:n,duration:o,size:i,height:s,width:a}=t;e(r({errMsg:"chooseVideo:ok",tempFilePaths:[n],tempFiles:[{name:t.tempFile&&t.tempFile.name||"",path:n,size:i,type:t.tempFile&&t.tempFile.type||"",width:a,height:s,duration:o,fileType:"video",cloudPath:""}]},"video"))},fail(e){c({errMsg:e.errMsg.replace("chooseVideo:fail",o)})}})}))}(t),t):i(e,function(e){const{count:t,extension:n}=e;return new Promise(((e,i)=>{let s=Tn.chooseFile;if(void 0!==kn&&"function"==typeof kn.chooseMessageFile&&(s=kn.chooseMessageFile),"function"!=typeof s)return i({errMsg:o+" 请指定 type 类型,该平台仅支持选择 image 或 video。"});s({type:"all",count:t,extension:n,success(t){e(r(t))},fail(e){i({errMsg:e.errMsg.replace("chooseFile:fail",o)})}})}))}(t),t)}}})));function od(e){return{props:{localdata:{type:Array,default:()=>[]},options:{type:[Object,Array],default:()=>({})},spaceInfo:{type:Object,default:()=>({})},collection:{type:[String,Array],default:""},action:{type:String,default:""},field:{type:String,default:""},orderby:{type:String,default:""},where:{type:[String,Object],default:""},pageData:{type:String,default:"add"},pageCurrent:{type:Number,default:1},pageSize:{type:Number,default:20},getcount:{type:[Boolean,String],default:!1},gettree:{type:[Boolean,String],default:!1},gettreepath:{type:[Boolean,String],default:!1},startwith:{type:String,default:""},limitlevel:{type:Number,default:10},groupby:{type:String,default:""},groupField:{type:String,default:""},distinct:{type:[Boolean,String],default:!1},foreignKey:{type:String,default:""},loadtime:{type:String,default:"auto"},manual:{type:Boolean,default:!1}},data:()=>({mixinDatacomLoading:!1,mixinDatacomHasMore:!1,mixinDatacomResData:[],mixinDatacomErrorMessage:"",mixinDatacomPage:{}}),created(){this.mixinDatacomPage={current:this.pageCurrent,size:this.pageSize,count:0},this.$watch((()=>{var e=[];return["pageCurrent","pageSize","localdata","collection","action","field","orderby","where","getont","getcount","gettree","groupby","groupField","distinct"].forEach((t=>{e.push(this[t])})),e}),((e,t)=>{if("manual"===this.loadtime)return;let n=!1;const o=[];for(let r=2;r{this.mixinDatacomLoading=!1;const{data:o,count:r}=n.result;this.getcount&&(this.mixinDatacomPage.count=r),this.mixinDatacomHasMore=o.length{this.mixinDatacomLoading=!1,this.mixinDatacomErrorMessage=e,n&&n(e)})))},mixinDatacomGet(t={}){let n=e.database(this.spaceInfo);const o=t.action||this.action;o&&(n=n.action(o));const r=t.collection||this.collection;n=Array.isArray(r)?n.collection(...r):n.collection(r);const i=t.where||this.where;i&&Object.keys(i).length&&(n=n.where(i));const s=t.field||this.field;s&&(n=n.field(s));const a=t.foreignKey||this.foreignKey;a&&(n=n.foreignKey(a));const c=t.groupby||this.groupby;c&&(n=n.groupBy(c));const l=t.groupField||this.groupField;l&&(n=n.groupField(l)),!0===(void 0!==t.distinct?t.distinct:this.distinct)&&(n=n.distinct());const u=t.orderby||this.orderby;u&&(n=n.orderBy(u));const f=void 0!==t.pageCurrent?t.pageCurrent:this.mixinDatacomPage.current,p=void 0!==t.pageSize?t.pageSize:this.mixinDatacomPage.size,d=void 0!==t.getcount?t.getcount:this.getcount,h=void 0!==t.gettree?t.gettree:this.gettree,g=void 0!==t.gettreepath?t.gettreepath:this.gettreepath,m={getCount:d},y={limitLevel:void 0!==t.limitlevel?t.limitlevel:this.limitlevel,startWith:void 0!==t.startwith?t.startwith:this.startwith};return h&&(m.getTree=y),g&&(m.getTreePath=y),n=n.skip(p*(f-1)).limit(p).get(m),n}}}}function rd(e){return lu("_globalUniCloudSecureNetworkCache__{spaceId}".replace("{spaceId}",e.config.spaceId))}async function id({openid:e,callLoginByWeixin:t=!1}={}){const n=rd(this);if(e&&t)throw new Error("[SecureNetwork] openid and callLoginByWeixin cannot be passed at the same time");if(e)return n.mpWeixinOpenid=e,{};const o=await new Promise(((e,t)=>{Tn.login({success(t){e(t.code)},fail(e){t(new Error(e.errMsg))}})})),r=this.importObject("uni-id-co",{customUI:!0});return await r.secureNetworkHandshakeByWeixin({code:o,callLoginByWeixin:t}),n.mpWeixinCode=o,{code:o}}async function sd(e){const t=rd(this);return t.initPromise||(t.initPromise=id.call(this,e)),t.initPromise}function ad(e){const t={getSystemInfo:Tn.getSystemInfo,getPushClientId:Tn.getPushClientId};return function(n){return new Promise(((o,r)=>{t[e]({...n,success(e){o(e)},fail(e){r(e)}})}))}}class cd extends class{constructor(){this._callback={}}addListener(e,t){this._callback[e]||(this._callback[e]=[]),this._callback[e].push(t)}on(e,t){return this.addListener(e,t)}removeListener(e,t){if(!t)throw new Error('The "listener" argument must be of type function. Received undefined');const n=this._callback[e];if(!n)return;const o=function(e,t){for(let n=e.length-1;n>=0;n--)if(e[n]===t)return n;return-1}(n,t);n.splice(o,1)}off(e,t){return this.removeListener(e,t)}removeAllListener(e){delete this._callback[e]}emit(e,...t){const n=this._callback[e];if(n)for(let o=0;o{if(!e)throw new Error("Invalid appId, please check the manifest.json file");if(!t)throw new Error("Invalid push client id");this._appId=e,this._pushClientId=t,this._seqId=Date.now()+"-"+Math.floor(9e5*Math.random()+1e5),this.emit("open"),this._initMessageListener()}),(e=>{throw this.emit("error",e),this.close(),e}))}async open(){return this.init()}_isUniCloudSSE(e){if("receive"!==e.type)return!1;const t=e&&e.data&&e.data.payload;return!(!t||"UNI_CLOUD_SSE"!==t.channel||t.seqId!==this._seqId)}_receivePushMessage(e){if(!this._isUniCloudSSE(e))return;const t=e&&e.data&&e.data.payload,{action:n,messageId:o,message:r}=t;this._payloadQueue.push({action:n,messageId:o,message:r}),this._consumMessage()}_consumMessage(){for(;;){const e=this._payloadQueue.find((e=>e.messageId===this._currentMessageId+1));if(!e)break;this._currentMessageId++,this._parseMessagePayload(e)}}_parseMessagePayload(e){const{action:t,messageId:n,message:o}=e;"end"===t?this._end({messageId:n,message:o}):"message"===t&&this._appendMessage({messageId:n,message:o})}_appendMessage({messageId:e,message:t}={}){this.emit("message",t)}_end({messageId:e,message:t}={}){this.emit("end",t),this.close()}_initMessageListener(){Tn.onPushMessage(this._uniPushMessageCallback)}_destroy(){Tn.offPushMessage(this._uniPushMessageCallback)}toJSON(){return{appId:this._appId,pushClientId:this._pushClientId,seqId:this._seqId}}close(){this._destroy(),this.emit("close")}}const ld={tcb:tp,tencent:tp,aliyun:Ku,private:op};let ud=new class{init(e){let t={};const n=ld[e.provider];if(!n)throw new Error("未提供正确的provider参数");var o;return t=n.init(e),function(e){e._initPromiseHub||(e._initPromiseHub=new nu({createPromise:function(){let t=Promise.resolve();t=new Promise((e=>{setTimeout((()=>{e()}),1)}));const n=e.auth();return t.then((()=>n.getLoginState())).then((e=>e?Promise.resolve():n.signInAnonymously()))}}))}(t),gp(t),function(e){const t=e.uploadFile;e.uploadFile=function(e){return t.call(this,e)}}(t),(o=t).database=function(e){if(e&&Object.keys(e).length>0)return o.init(e).database();if(this._database)return this._database;const t=Ep(Pp,{uniClient:o});return this._database=t,t},o.databaseForJQL=function(e){if(e&&Object.keys(e).length>0)return o.init(e).databaseForJQL();if(this._databaseForJQL)return this._databaseForJQL;const t=Ep(Pp,{uniClient:o,isJQL:!0});return this._databaseForJQL=t,t},function(e){e.getCurrentUserInfo=td,e.chooseAndUploadFile=nd.initChooseAndUploadFile(e),Object.assign(e,{get mixinDatacom(){return od(e)}}),e.SSEChannel=cd,e.initSecureNetworkByWeixin=function(e){return function({openid:t,callLoginByWeixin:n=!1}={}){return sd.call(e,{openid:t,callLoginByWeixin:n})}}(e),e.importObject=function(t){return function(n,o={}){o=function(e,t={}){return e.customUI=t.customUI||e.customUI,e.parseSystemError=t.parseSystemError||e.parseSystemError,Object.assign(e.loadingOptions,t.loadingOptions),Object.assign(e.errorOptions,t.errorOptions),"object"==typeof t.secretMethods&&(e.secretMethods=t.secretMethods),e}({customUI:!1,loadingOptions:{title:"加载中...",mask:!0},errorOptions:{type:"modal",retry:!1}},o);const{customUI:r,loadingOptions:i,errorOptions:s,parseSystemError:a}=o,c=!r;return new Proxy({},{get:(r,l)=>function({fn:e,interceptorName:t,getCallbackArgs:n}={}){return async function(...o){const r=n?n({params:o}):{};let i,s;try{return await hu(gu(t,"invoke"),{...r}),i=await e(...o),await hu(gu(t,"success"),{...r,result:i}),i}catch(a){throw s=a,await hu(gu(t,"fail"),{...r,error:s}),s}finally{await hu(gu(t,"complete"),s?{...r,error:s}:{...r,result:i})}}}({fn:async function r(...u){let f;c&&Tn.showLoading({title:i.title,mask:i.mask});const p={name:n,type:"OBJECT",data:{method:l,params:u}};"object"==typeof o.secretMethods&&function(e,t){const n=t.data.method,o=e.secretMethods||{},r=o[n]||o["*"];r&&(t.secretType=r)}(o,p);let d=!1;try{f=await t.callFunction(p)}catch(e){d=!0,f={result:new Bu(e)}}const{errSubject:h,errCode:g,errMsg:m,newToken:y}=f.result||{};if(c&&Tn.hideLoading(),y&&y.token&&y.tokenExpired&&(Du(y),Pu(wu,{...y})),g){let e=m;if(d&&a&&(e=(await a({objectName:n,methodName:l,params:u,errSubject:h,errCode:g,errMsg:m})).errMsg||m),c)if("toast"===s.type)Tn.showToast({title:e,icon:"none"});else{if("modal"!==s.type)throw new Error(`Invalid errorOptions.type: ${s.type}`);{const{confirm:t}=await async function({title:e,content:t,showCancel:n,cancelText:o,confirmText:r}={}){return new Promise(((i,s)=>{Tn.showModal({title:e,content:t,showCancel:n,cancelText:o,confirmText:r,success(e){i(e)},fail(){i({confirm:!1,cancel:!0})}})}))}({title:"提示",content:e,showCancel:s.retry,cancelText:"取消",confirmText:s.retry?"重试":"确定"});if(s.retry&&t)return r(...u)}}const t=new Bu({subject:h,code:g,message:m,requestId:f.requestId});throw t.detail=f.result,Pu(bu,{type:xu,content:t}),t}return Pu(bu,{type:xu,content:f.result}),f.result},interceptorName:"callObject",getCallbackArgs:function({params:e}={}){return{objectName:n,methodName:l,params:e}}})})}}(e)}(t),["callFunction","uploadFile","deleteFile","getTempFileURL","downloadFile","chooseAndUploadFile"].forEach((e=>{if(!t[e])return;const n=t[e];var o,r;t[e]=function(){return n.apply(t,Array.from(arguments))},t[e]=(o=t[e],r=e,function(e){let t=!1;if("callFunction"===r){const n=e&&e.type||Vl;t=n!==Vl}const n="callFunction"===r&&!t,i=this._initPromiseHub.exec();e=e||{};const{success:s,fail:a,complete:c}=Ou(e),l=i.then((()=>t?Promise.resolve():hu(gu(r,"invoke"),e))).then((()=>o.call(this,e))).then((e=>t?Promise.resolve(e):hu(gu(r,"success"),e).then((()=>hu(gu(r,"complete"),e))).then((()=>(n&&Pu(bu,{type:Au,content:e}),Promise.resolve(e))))),(e=>t?Promise.reject(e):hu(gu(r,"fail"),e).then((()=>hu(gu(r,"complete"),e))).then((()=>(Pu(bu,{type:Au,content:e}),Promise.reject(e))))));if(!(s||a||c))return l;l.then((e=>{s&&s(e),c&&c(e),n&&Pu(bu,{type:Au,content:e})}),(e=>{a&&a(e),c&&c(e),n&&Pu(bu,{type:Au,content:e})}))}).bind(t)})),t.init=this.init,t}};(()=>{const e=su;let t={};if(e&&1===e.length)t=e[0],ud=ud.init(t),ud._isDefault=!0;else{const t=["auth","callFunction","uploadFile","deleteFile","getTempFileURL","downloadFile","database","getCurrentUSerInfo","importObject"];let n;n=e&&e.length>0?"应用有多个服务空间,请通过uniCloud.init方法指定要使用的服务空间":"uni-app cli项目内使用uniCloud需要使用HBuilderX的运行菜单运行项目,且需要在uniCloud目录关联服务空间",t.forEach((e=>{ud[e]=function(){return console.error(n),Promise.reject(new Bu({code:"SYS_ERR",message:n}))}}))}Object.assign(ud,{get mixinDatacom(){return od(ud)}}),Gp(ud),ud.addInterceptor=pu,ud.removeInterceptor=du,ud.interceptObject=mu})();var fd=ud;const pd={props:{type:{type:String,default:()=>Xc.text.type},show:{type:Boolean,default:()=>Xc.text.show},text:{type:[String,Number],default:()=>Xc.text.text},prefixIcon:{type:String,default:()=>Xc.text.prefixIcon},suffixIcon:{type:String,default:()=>Xc.text.suffixIcon},mode:{type:String,default:()=>Xc.text.mode},href:{type:String,default:()=>Xc.text.href},format:{type:[String,Function],default:()=>Xc.text.format},call:{type:Boolean,default:()=>Xc.text.call},openType:{type:String,default:()=>Xc.text.openType},bold:{type:Boolean,default:()=>Xc.text.bold},block:{type:Boolean,default:()=>Xc.text.block},lines:{type:[String,Number],default:()=>Xc.text.lines},color:{type:String,default:()=>Xc.text.color},size:{type:[String,Number],default:()=>Xc.text.size},iconStyle:{type:[Object,String],default:()=>Xc.text.iconStyle},decoration:{tepe:String,default:()=>Xc.text.decoration},margin:{type:[Object,String,Number],default:()=>Xc.text.margin},lineHeight:{type:[String,Number],default:()=>Xc.text.lineHeight},align:{type:String,default:()=>Xc.text.align},wordWrap:{type:String,default:()=>Xc.text.wordWrap},flex1:{type:Boolean,default:()=>Xc.text.flex1}}},dd={computed:{value(){const{text:e,mode:t,format:n,href:o}=this;return"price"===t?Va.func(n)?n(e):mc(e,2):"date"===t?(Va.date(e),Va.func(n)?n(e):pc(e,n||"yyyy-mm-dd")):"phone"===t?Va.func(n)?n(e):"encrypt"===n?`${e.substr(0,3)}****${e.substr(7)}`:e:"name"===t?Va.func(n)?n(e):"encrypt"===n?this.formatName(e):e:"link"===t?(Va.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;tXc.badge.isDot},value:{type:[Number,String],default:()=>Xc.badge.value},modelValue:{type:[Number,String],default:()=>Xc.badge.modelValue},show:{type:Boolean,default:()=>Xc.badge.show},max:{type:[Number,String],default:()=>Xc.badge.max},type:{type:String,default:()=>Xc.badge.type},showZero:{type:Boolean,default:()=>Xc.badge.showZero},bgColor:{type:[String,null],default:()=>Xc.badge.bgColor},color:{type:[String,null],default:()=>Xc.badge.color},shape:{type:String,default:()=>Xc.badge.shape},numberType:{type:String,default:()=>Xc.badge.numberType},offset:{type:Array,default:()=>Xc.badge.offset},inverted:{type:Boolean,default:()=>Xc.badge.inverted},absolute:{type:Boolean,default:()=>Xc.badge.absolute}}},yd={props:{hairline:{type:Boolean,default:()=>Xc.button.hairline},type:{type:String,default:()=>Xc.button.type},size:{type:String,default:()=>Xc.button.size},shape:{type:String,default:()=>Xc.button.shape},plain:{type:Boolean,default:()=>Xc.button.plain},disabled:{type:Boolean,default:()=>Xc.button.disabled},loading:{type:Boolean,default:()=>Xc.button.loading},loadingText:{type:[String,Number],default:()=>Xc.button.loadingText},loadingMode:{type:String,default:()=>Xc.button.loadingMode},loadingSize:{type:[String,Number],default:()=>Xc.button.loadingSize},openType:{type:String,default:()=>Xc.button.openType},formType:{type:String,default:()=>Xc.button.formType},appParameter:{type:String,default:()=>Xc.button.appParameter},hoverStopPropagation:{type:Boolean,default:()=>Xc.button.hoverStopPropagation},lang:{type:String,default:()=>Xc.button.lang},sessionFrom:{type:String,default:()=>Xc.button.sessionFrom},sendMessageTitle:{type:String,default:()=>Xc.button.sendMessageTitle},sendMessagePath:{type:String,default:()=>Xc.button.sendMessagePath},sendMessageImg:{type:String,default:()=>Xc.button.sendMessageImg},showMessageCard:{type:Boolean,default:()=>Xc.button.showMessageCard},dataName:{type:String,default:()=>Xc.button.dataName},throttleTime:{type:[String,Number],default:()=>Xc.button.throttleTime},hoverStartTime:{type:[String,Number],default:()=>Xc.button.hoverStartTime},hoverStayTime:{type:[String,Number],default:()=>Xc.button.hoverStayTime},text:{type:[String,Number],default:()=>Xc.button.text},icon:{type:String,default:()=>Xc.button.icon},iconColor:{type:String,default:()=>Xc.button.icon},color:{type:String,default:()=>Xc.button.color},stop:{type:Boolean,default:()=>Xc.button.stop}}},bd={props:{color:{type:String,default:()=>Xc.link.color},fontSize:{type:[String,Number],default:()=>Xc.link.fontSize},underLine:{type:Boolean,default:()=>Xc.link.underLine},href:{type:String,default:()=>Xc.link.href},mpTips:{type:String,default:()=>Xc.link.mpTips},lineColor:{type:String,default:()=>Xc.link.lineColor},text:{type:String,default:()=>Xc.link.text}}},vd={props:{show:{type:Boolean,default:()=>Xc.popup.show},overlay:{type:Boolean,default:()=>Xc.popup.overlay},mode:{type:String,default:()=>Xc.popup.mode},duration:{type:[String,Number],default:()=>Xc.popup.duration},closeable:{type:Boolean,default:()=>Xc.popup.closeable},overlayStyle:{type:[Object,String],default:()=>Xc.popup.overlayStyle},closeOnClickOverlay:{type:Boolean,default:()=>Xc.popup.closeOnClickOverlay},zIndex:{type:[String,Number],default:()=>Xc.popup.zIndex},safeAreaInsetBottom:{type:Boolean,default:()=>Xc.popup.safeAreaInsetBottom},safeAreaInsetTop:{type:Boolean,default:()=>Xc.popup.safeAreaInsetTop},closeIconPos:{type:String,default:()=>Xc.popup.closeIconPos},round:{type:[Boolean,String,Number],default:()=>Xc.popup.round},zoom:{type:Boolean,default:()=>Xc.popup.zoom},bgColor:{type:String,default:()=>Xc.popup.bgColor},overlayOpacity:{type:[Number,String],default:()=>Xc.popup.overlayOpacity}}},wd={props:{show:{type:Boolean,default:()=>Xc.overlay.show},zIndex:{type:[String,Number],default:()=>Xc.overlay.zIndex},duration:{type:[String,Number],default:()=>Xc.overlay.duration},opacity:{type:[String,Number],default:()=>Xc.overlay.opacity}}},Sd={props:{bgColor:{type:String,default:()=>Xc.statusBar.bgColor}}},Ad={props:{}},xd={props:{show:{type:Boolean,default:()=>Xc.transition.show},mode:{type:String,default:()=>Xc.transition.mode},duration:{type:[String,Number],default:()=>Xc.transition.duration},timingFunction:{type:String,default:()=>Xc.transition.timingFunction}}},kd=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`}),Td={methods:{clickHandler(){this.$emit("click")},async vueEnter(){const e=kd(this.mode);this.status="enter",this.$emit("beforeEnter"),this.inited=!0,this.display=!0,this.classes=e.enter,await mr(),await oc(20),this.$emit("enter"),this.transitionEnded=!1,this.$emit("afterEnter"),this.classes=e["enter-to"]},async vueLeave(){if(!this.display)return;const e=kd(this.mode);this.status="leave",this.$emit("beforeLeave"),this.classes=e.leave,await mr(),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))}}};exports.Ds=fd,exports.Pinia=Qa,exports.Request=class{constructor(e={}){var t;t=e,"[object Object]"!==Object.prototype.toString.call(t)&&(e={},console.warn("设置全局参数必须接收一个Object")),this.config=Tl({...kl,...e}),this.interceptors={request:new Al,response:new Al}}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:ml(e.header||{},t.header||{})};if(o={...o,...xl(["getTask","validateStatus","paramsSerializer","forcedJSONParsing"],e,t)},"DOWNLOAD"===n){const n=["timeout","filePath"];o={...o,...xl(n,e,t)}}else if("UPLOAD"===n)delete o.header["content-type"],delete o.header["Content-Type"],["filePath","name","timeout","formData"].forEach((e=>{yl(t[e])||(o[e]=t[e])})),yl(o.timeout)&&!yl(e.timeout)&&(o.timeout=e.timeout);else{const n=["data","timeout","dataType","responseType","enableHttp2","enableQuic","enableCache","enableHttpDNS","httpDNSServiceId","enableChunked","forceCellularNetwork"];o={...o,...xl(n,e,t)}}return o})(this.config,e);let t=[Sl,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=ac,exports.addUnit=cc,exports.buttonMixin=hd,exports.color=Gc,exports.colorGradient=Dc,exports.config=tc,exports.createPinia=Ia,exports.createSSRApp=Bs,exports.dayjs=Pl,exports.deepMerge=uc,exports.defProps=Xc,exports.defineComponent=function(e){return A(e)?{setup:e,name:e.name}:e},exports.defineStore=Ma,exports.e=(e,...t)=>g(e,...t),exports.error=fc,exports.f=(e,t)=>function(e,t){let n;if(v(e)||x(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)=>Is(e,t),exports.onHide=sl,exports.onLaunch=al,exports.onLoad=cl,exports.onMounted=zr,exports.onReachBottom=ul,exports.onShareAppMessage=pl,exports.onShareTimeline=fl,exports.onShow=il,exports.onUnload=ll,exports.openType=gd,exports.p=e=>function(e){const{uid:t,__counter:n}=Oi();return t+","+((ks[t]||(ks[t]=[])).push(Ei(e))-1)+","+n}(e),exports.props=Ol,exports.props$1=Bl,exports.props$10=md,exports.props$11=yd,exports.props$12=bd,exports.props$13=vd,exports.props$14=wd,exports.props$15=Sd,exports.props$16=Ad,exports.props$17=xd,exports.props$2=jl,exports.props$3=Ll,exports.props$4=Nl,exports.props$5=Dl,exports.props$6=Ml,exports.props$7=Fl,exports.props$8=Ul,exports.props$9=pd,exports.r=(e,t,n)=>_s(e,t,n),exports.random=ic,exports.ref=Jo,exports.relativeTime=Cl,exports.resolveComponent=function(e,t){return function(e,t,n=!0,o=!1){const r=Pr||_i;if(r){const n=r.type;if(e===Xr){const e=function(e,t=!0){return A(e)?e.displayName||e.name:e.name||t&&e.__name}(n,!1);if(e&&(e===t||e===L(t)||e===M(L(t))))return n}const i=Zr(r[e]||n[e],t)||Zr(r.appContext[e],t);return!i&&o?n:i}}(Xr,e,!0,t)||e},exports.s=e=>Os(e),exports.sleep=oc,exports.t=e=>(e=>x(e)?e:null==e?"":v(e)||T(e)&&(e.toString===P||!A(e.toString))?JSON.stringify(e,a,2):String(e))(e),exports.test=Va,exports.throttle=qc,exports.toast=gc,exports.transitionMixin=Td,exports.unref=Go,exports.uviewPlus=ol,exports.value=dd,exports.watch=Or,exports.wx$1=kn; +let xa;const Sa=e=>xa=e,Aa=Symbol();function Ta(e){return e&&"object"==typeof e&&"[object Object]"===Object.prototype.toString.call(e)&&"function"!=typeof e.toJSON}var ka,Ea;(Ea=ka||(ka={})).direct="direct",Ea.patchObject="patch object",Ea.patchFunction="patch function";const Pa="undefined"!=typeof window;function Ia(){const e=In(!0),t=e.run((()=>Jo({})));let n=[],o=[];const r=zo({install(e){Sa(r),r._a=e,e.provide(Aa,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 Ca=()=>{};function _a(e,t,n,o=Ca){e.push(t);const r=()=>{const n=e.indexOf(t);n>-1&&(e.splice(n,1),o())};return!n&&Cn()&&function(e){En&&En.cleanups.push(e)}(r),r}function Oa(e,...t){e.slice().forEach((e=>{e(...t)}))}function Ba(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];Ta(r)&&Ta(o)&&e.hasOwnProperty(n)&&!Ko(o)&&!Uo(o)?e[n]=Ba(r,o):e[n]=o}return e}const ja=Symbol();const{assign:La}=Object;function Na(e,t,n,o){const{state:r,actions:i,getters:s}=t,a=n.state.value[e];let c;return c=Da(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]=tr(e,n);return t}(n.state.value[e]);return La(t,i,Object.keys(s||{}).reduce(((t,o)=>(t[o]=zo(Ui((()=>{Sa(n);const t=n._s.get(e);return s[o].call(t,t)}))),t)),{}))}),t,n,o,!0),c}function Da(e,t,n={},o,r,i){let s;const a=La({actions:{}},n),c={deep:!0};let l,u,f,p=zo([]),d=zo([]);const h=o.state.value[e];let g;function m(t){let n;l=u=!1,"function"==typeof t?(t(o.state.value[e]),n={type:ka.patchFunction,storeId:e,events:f}):(Ba(o.state.value[e],t),n={type:ka.patchObject,payload:t,storeId:e,events:f});const r=g=Symbol();mr().then((()=>{g===r&&(l=!0)})),u=!0,Oa(p,n,o.state.value[e])}i||h||(o.state.value[e]={}),Jo({});const y=i?function(){const{state:e}=n,t=e?e():{};this.$patch((e=>{La(e,t)}))}:Ca;function b(t,n){return function(){Sa(o);const r=Array.from(arguments),i=[],s=[];let a;Oa(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(c){throw Oa(s,c),c}return a instanceof Promise?a.then((e=>(Oa(i,e),e))).catch((e=>(Oa(s,e),Promise.reject(e)))):(Oa(i,a),a)}}const v=Do({_p:o,$id:e,$onAction:_a.bind(null,d),$patch:m,$reset:y,$subscribe(t,n={}){const r=_a(p,t,n.detached,(()=>i())),i=s.run((()=>Or((()=>o.state.value[e]),(o=>{("sync"===n.flush?u:l)&&t({storeId:e,type:ka.direct,events:f},o)}),La({},c,n))));return r},$dispose:function(){s.stop(),p=[],d=[],o._s.delete(e)}});o._s.set(e,v);const w=o._e.run((()=>(s=In(),s.run((()=>t())))));for(const A in w){const t=w[A];if(Ko(t)&&(!Ko(S=t)||!S.effect)||Uo(t))i||(!h||Ta(x=t)&&x.hasOwnProperty(ja)||(Ko(t)?t.value=h[A]:Ba(t,h[A])),o.state.value[e][A]=t);else if("function"==typeof t){const e=b(A,t);w[A]=e,a.actions[A]=t}}var x,S;return La(v,w),La(qo(v),w),Object.defineProperty(v,"$state",{get:()=>o.state.value[e],set:e=>{m((t=>{La(t,e)}))}}),o._p.forEach((e=>{La(v,s.run((()=>e({store:v,app:o._a,pinia:o,options:a}))))})),h&&i&&n.hydrate&&n.hydrate(v.$state,h),l=!0,u=!0,v}function Ma(e,t,n){let o,r;const i="function"==typeof t;function s(e,n){const s=Oi();(e=e||s&&Cr(Aa,null))&&Sa(e),(e=xa)._s.has(o)||(i?Da(o,t,r,e):Na(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 Fa="Store";function Ua(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 Ra=Ua;const Qa=Object.freeze(Object.defineProperty({__proto__:null,get MutationType(){return ka},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[Aa]=t,this.$pinia||(this.$pinia=t),t._a=this,Pa&&Sa(t)}else!this.$pinia&&e.parent&&e.parent.$pinia&&(this.$pinia=e.parent.$pinia)},destroyed(){delete this._pStores}})},acceptHMRUpdate:function(e,t){return()=>{}},createPinia:Ia,defineStore:Ma,getActivePinia:()=>Oi()&&Cr(Aa)||xa,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:Ra,mapState:Ua,mapStores:function(...e){return e.reduce(((e,t)=>(e[t.$id+Fa]=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:Sa,setMapStoreSuffix:function(e){Fa=e},skipHydrate:function(e){return Object.defineProperty(e,ja,{})},storeToRefs:function(e){{e=qo(e);const t={};for(const n in e){const o=e[n];(Ko(o)||Uo(o))&&(t[n]=tr(e,n))}return t}}},Symbol.toStringTag,{value:"Module"}));function qa(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 Ha(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===Object.prototype.toString.call(e)}function Wa(e){return"[object Object]"===Object.prototype.toString.call(e)}function $a(e){return"function"==typeof e}const Va={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:qa,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(Gu){return!1}return!1},landline:function(e){return/^\d{3,4}-\d{7,8}(-\d{3,4})?$/.test(e)},object:Wa,array:Ha,code:function(e,t=6){return new RegExp(`^\\d{${t}}$`).test(e)},func:$a,promise:function(e){return Wa(e)&&$a(e.then)&&$a(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 Ka(e,t=15){return+parseFloat(Number(e).toPrecision(t))}function Ja(e){const t=e.toString().split(/[eE]/),n=(t[0].split(".")[1]||"").length-+(t[1]||0);return n>0?n:0}function Ya(e){if(-1===e.toString().indexOf("e"))return Number(e.toString().replace(".",""));const t=Ja(e);return t>0?Ka(Number(e)*Math.pow(10,t)):Number(e)}function Ga(e){(e>Number.MAX_SAFE_INTEGER||e{i=t(i,e)})),i}function Za(...e){if(e.length>2)return Xa(e,Za);const[t,n]=e,o=Ya(t),r=Ya(n),i=Ja(t)+Ja(n),s=o*r;return Ga(s),s/Math.pow(10,i)}function ec(...e){if(e.length>2)return Xa(e,ec);const[t,n]=e,o=Ya(t),r=Ya(n);return Ga(o),Ga(r),Za(o/r,Ka(Math.pow(10,Ja(n)-Ja(t))))}const tc={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 nc(e,t=!1){return qa(e)?t?`${e}px`:Number(e):/(rpx|upx)$/.test(e)?t?`${kn.upx2px(parseInt(e))}px`:Number(kn.upx2px(parseInt(e))):t?`${parseInt(e)}px`:parseInt(e)}function oc(e=30){return new Promise((t=>{setTimeout((()=>{t()}),e)}))}function rc(){let e={};return e=kn.getWindowInfo(),e}function ic(e,t){if(e>=0&&t>0&&t>=e){const n=t-e+1;return Math.floor(Math.random()*n+e)}return 0}function sc(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 ac(e,t="object"){if(za(e)||"object"==typeof e&&"object"===t||"string"===t&&"string"==typeof e)return e;if("object"===t){const t=(e=dc(e)).split(";"),n={};for(let e=0;e{const o=t.replace(/([A-Z])/g,"-$1").toLowerCase();n+=`${o}:${e};`})),dc(n)}function cc(e="auto",t=""){return t||(t=tc.unit||"px"),"rpx"==t&&qa(String(e))&&(e*=2),qa(e=String(e))?`${e}${t}`:e}function lc(e){if([null,void 0,NaN,!1].includes(e))return e;if("object"!=typeof e&&"function"!=typeof e)return e;const t=Ha(e)?[]:{};for(const n in e)e.hasOwnProperty(n)&&(t[n]="object"==typeof e[n]?lc(e[n]):e[n]);return t}function uc(e={},t={}){let n=lc(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]=uc(n[o],t[o]):n[o]=t[o]);return n}function fc(e){}function pc(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 dc(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 hc(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 gc(e,t=2e3){kn.showToast({title:String(e),icon:"none",duration:t})}function mc(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 c="";c=(i?function(e,t){const n=Math.pow(10,t);let o=ec(Math.round(Math.abs(Za(e,n))),n);return e<0&&0!==o&&(o=Za(o,-1)),o}(r,i)+"":`${Math.round(r)}`).split(".");const l=/(-?\d+)(\d{3})/;for(;l.test(c[0]);)c[0]=c[0].replace(l,`$1${s}$2`);return(c[1]||"").length{}),t)}function bc(){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 vc={range:function(e=0,t=0,n=0){return Math.max(e,Math.min(t,Number(n)))},getPx:nc,sleep:oc,os:function(){return kn.getDeviceInfo().platform.toLowerCase()},sys:function(){return kn.getSystemInfoSync()},getWindowInfo:rc,random:ic,guid:function(e=32,t=!0,n=null){const o="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split(""),r=[];if(n=n||o.length,e)for(let i=0;iMath.random()-.5))},timeFormat:pc,timeFrom:function(e=null,t="yyyy-mm-dd"){null==e&&(e=Number(new Date)),10==(e=parseInt(e)).toString().length&&(e*=1e3);let n=(new Date).getTime()-e;n=parseInt(n/1e3);let o="";switch(!0){case n<300:o="刚刚";break;case n>=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)}年前`:pc(e,t)}return o},trim:dc,queryParams:hc,toast:gc,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:mc,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:yc,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:bc,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 wc=(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=hc(t,!1),e+`&${n}`):(n=hc(t),e+n)}async route(e={},t={}){let n={};if("string"==typeof e?(n.url=this.mixinParam(e,t),n.type="navigateTo"):(n=uc(this.config,e),n.url=this.mixinParam(e.url,e.params)),n.url!==bc())if(t.intercept&&(this.config.intercept=t.intercept),n.params=t,n=uc(this.config,n),"function"==typeof kn.$u.routeIntercept){await new Promise(((e,t)=>{kn.$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||kn.navigateTo({url:t,animationType:r,animationDuration:i}),"redirectTo"!=e.type&&"redirect"!=e.type||kn.redirectTo({url:t}),"switchTab"!=e.type&&"tab"!=e.type||kn.switchTab({url:t}),"reLaunch"!=e.type&&"launch"!=e.type||kn.reLaunch({url:t}),"navigateBack"!=e.type&&"back"!=e.type||kn.navigateBack({delta:o})}}).route,xc={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:()=>uc(kn.$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&&wc({type:this.linkType,url:t})},navTo(e="",t="navigateTo"){wc({type:this.linkType,url:e})},$uGetRect(e,t){return new Promise((n=>{kn.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=sc.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(){kn.$emit("uOnReachBottom")},beforeUnmount(){if(this.parent&&Va.array(this.parent.children)){const e=this.parent.children;e.map(((t,n)=>{t===this&&e.splice(n,1)}))}}},Sc={options:{virtualHost:!0}},{toString:Ac}=Object.prototype;function Tc(e){return"[object Array]"===Ac.call(e)}function kc(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),Tc(e))for(let n=0,o=e.length;n{null!=t&&(Tc(t)?n=`${n}[]`:t=[t],kc(t,(t=>{!function(e){return"[object Date]"===Ac.call(e)}(t)?function(e){return null!==e&&"object"==typeof e}(t)&&(t=JSON.stringify(t)):t=t.toISOString(),e.push(`${Ic(n)}=${Ic(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 _c=(e,t)=>{const n={};return e.forEach((e=>{Pc(t[e])||(n[e]=t[e])})),n},Oc=e=>(e=>new Promise(((t,n)=>{const o=Cc((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(Gu){}!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=kn.uploadFile({...s,...t,..._c(n,e)})}else if("DOWNLOAD"===e.method)a=kn.downloadFile(s);else{const t=["data","method","timeout","dataType","responseType"];a=kn.request({...s,..._c(t,e)})}e.getTask&&e.getTask(a,e)})))(e);function Bc(){this.handlers=[]}Bc.prototype.use=function(e,t){return this.handlers.push({fulfilled:e,rejected:t}),this.handlers.length-1},Bc.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},Bc.prototype.forEach=function(e){this.handlers.forEach((t=>{null!==t&&e(t)}))};const jc=(e,t,n)=>{const o={};return e.forEach((e=>{Pc(n[e])?Pc(t[e])||(o[e]=t[e]):o[e]=n[e]})),o},Lc={baseURL:"",header:{},method:"GET",dataType:"json",responseType:"text",custom:{},timeout:6e4,validateStatus:function(e){return e>=200&&e<300}};var Nc=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,c,l,u){"object"==typeof a&&(c=a.depth,l=a.prototype,u=a.includeNonEnumerable,a=a.circular);var f=[],p=[],d="undefined"!=typeof Buffer;return void 0===a&&(a=!0),void 0===c&&(c=1/0),function i(c,h){if(null===c)return null;if(0===h)return c;var g,m;if("object"!=typeof c)return c;if(e(c,t))g=new t;else if(e(c,n))g=new n;else if(e(c,o))g=new o((function(e,t){c.then((function(t){e(i(t,h-1))}),(function(e){t(i(e,h-1))}))}));else if(r.__isArray(c))g=[];else if(r.__isRegExp(c))g=new RegExp(c.source,s(c)),c.lastIndex&&(g.lastIndex=c.lastIndex);else if(r.__isDate(c))g=new Date(c.getTime());else{if(d&&Buffer.isBuffer(c))return Buffer.from?g=Buffer.from(c):(g=new Buffer(c.length),c.copy(g)),g;e(c,Error)?g=Object.create(c):void 0===l?(m=Object.getPrototypeOf(c),g=Object.create(m)):(g=Object.create(l),m=l)}if(a){var y=f.indexOf(c);if(-1!=y)return p[y];f.push(c),p.push(g)}for(var b in e(c,t)&&c.forEach((function(e,t){var n=i(t,h-1),o=i(e,h-1);g.set(n,o)})),e(c,n)&&c.forEach((function(e){var t=i(e,h-1);g.add(t)})),c){Object.getOwnPropertyDescriptor(c,b)&&(g[b]=i(c[b],h-1));try{if("undefined"===Object.getOwnPropertyDescriptor(c,b).set)continue;g[b]=i(c[b],h-1)}catch(Gu){if(Gu instanceof TypeError)continue;if(Gu instanceof ReferenceError)continue}}if(Object.getOwnPropertySymbols){var v=Object.getOwnPropertySymbols(c);for(b=0;bNumber(e)))}return e}function Fc(e){const t=e;if(/^(rgb|RGB)/.test(t)){const e=t.replace(/(?:\(|\)|rgb|RGB)*/g,"").split(",");let n="#";for(let t=0;t{Rc=!1}),t)):Rc||(Rc=!0,setTimeout((()=>{Rc=!1,"function"==typeof e&&e()}),t))}const zc={calendar:{title:"日期选择",showTitle:!0,showSubtitle:!0,mode:"single",startText:"开始",endText:"结束",customList:[],color:"#3c9cff",minDate:0,maxDate:0,defaultDate:null,maxCount:Number.MAX_SAFE_INTEGER,rowHeight:56,formatter:null,showLunar:!1,showMark:!0,confirmText:"确定",confirmDisabledText:"确定",show:!1,closeOnClickOverlay:!1,readonly:!1,showConfirm:!0,maxRange:Number.MAX_SAFE_INTEGER,rangePrompt:"",showRangePrompt:!0,allowSameDay:!1,round:0,monthNum:3}},Hc={datetimePicker:{show:!1,popupMode:"bottom",showToolbar:!0,value:"",title:"",mode:"datetime",maxDate:new Date((new Date).getFullYear()+10,0,1).getTime(),minDate:new Date((new Date).getFullYear()-10,0,1).getTime(),minHour:0,maxHour:23,minMinute:0,maxMinute:59,filter:null,formatter:null,loading:!1,itemHeight:44,cancelText:"取消",confirmText:"确认",cancelColor:"#909193",confirmColor:"#3c9cff",visibleItemCount:5,closeOnClickOverlay:!1,defaultIndex:[]}},{color:Wc}=tc,$c={icon:{name:"",color:Wc["u-content-color"],size:"16px",bold:!1,index:"",hoverClass:"",customPrefix:"uicon",label:"",labelPos:"right",labelSize:"15px",labelColor:Wc["u-content-color"],space:"3px",imgMode:"",width:"",height:"",top:0,stop:!1}},{color:Vc}=tc,Kc={link:{color:Vc["u-primary"],fontSize:15,underLine:!1,href:"",mpTips:"链接已复制,请在浏览器打开",lineColor:"",text:""}},{color:Jc}=tc,Yc={loadingIcon:{show:!0,color:Jc["u-tips-color"],textColor:Jc["u-tips-color"],vertical:!1,mode:"spinner",size:24,textSize:15,text:"",timingFunction:"ease-in-out",duration:1200,inactiveColor:""}},Gc={primary:"#3c9cff",info:"#909399",default:"#909399",warning:"#f9ae3d",error:"#f56c6c",success:"#5ac725",mainColor:"#303133",contentColor:"#606266",tipsColor:"#909399",lightColor:"#c0c4cc",borderColor:"#e4e7ed"},Xc={actionSheet:{show:!1,title:"",description:"",actions:[],index:"",cancelText:"",closeOnClickAction:!0,safeAreaInsetBottom:!0,openType:"",closeOnClickOverlay:!0,round:0,wrapMaxHeight:"600px"},album:{urls:[],keyName:"",singleSize:180,multipleSize:70,space:6,singleMode:"scaleToFill",multipleMode:"aspectFill",maxCount:9,previewFullImage:!0,rowCount:3,showMore:!0,autoWrap:!1,unit:"px",stop:!0},alert:{title:"",type:"warning",description:"",closable:!1,showIcon:!1,effect:"light",center:!1,fontSize:14},avatar:{src:"",shape:"circle",size:40,mode:"scaleToFill",text:"",bgColor:"#c0c4cc",color:"#ffffff",fontSize:18,icon:"",mpAvatar:!1,randomBgColor:!1,defaultUrl:"",colorIndex:"",name:""},avatarGroup:{urls:[],maxCount:5,shape:"circle",mode:"scaleToFill",showMore:!0,size:40,keyName:"",gap:.5,extraValue:0},backtop:{mode:"circle",icon:"arrow-upward",text:"",duration:100,scrollTop:0,top:400,bottom:100,right:20,zIndex:9,iconStyle:{color:"#909399",fontSize:"19px"}},badge:{isDot:!1,value:"",show:!0,max:999,type:"error",showZero:!1,bgColor:null,color:null,shape:"circle",numberType:"overflow",offset:[],inverted:!1,absolute:!1},button:{hairline:!1,type:"info",size:"normal",shape:"square",plain:!1,disabled:!1,loading:!1,loadingText:"",loadingMode:"spinner",loadingSize:15,openType:"",formType:"",appParameter:"",hoverStopPropagation:!0,lang:"en",sessionFrom:"",sendMessageTitle:"",sendMessagePath:"",sendMessageImg:"",showMessageCard:!1,dataName:"",throttleTime:0,hoverStartTime:0,hoverStayTime:200,text:"",icon:"",iconColor:"",color:"",stop:!0},...zc,carKeyboard:{random:!1},cell:{customClass:"",title:"",label:"",value:"",icon:"",disabled:!1,border:!0,center:!1,url:"",linkType:"navigateTo",clickable:!1,isLink:!1,required:!1,arrowDirection:"",iconStyle:{},rightIconStyle:{},rightIcon:"arrow-right",titleStyle:{},size:"",stop:!0,name:""},cellGroup:{title:"",border:!0,customStyle:{}},checkbox:{name:"",shape:"",size:"",checkbox:!1,disabled:"",activeColor:"",inactiveColor:"",iconSize:"",iconColor:"",label:"",labelSize:"",labelColor:"",labelDisabled:""},checkboxGroup:{name:"",value:[],shape:"square",disabled:!1,activeColor:"#2979ff",inactiveColor:"#c8c9cc",size:18,placement:"row",labelSize:14,labelColor:"#303133",labelDisabled:!1,iconColor:"#ffffff",iconSize:12,iconPlacement:"left",borderBottom:!1},circleProgress:{percentage:30},code:{seconds:60,startText:"获取验证码",changeText:"X秒重新获取",endText:"重新获取",keepRunning:!1,uniqueKey:""},codeInput:{adjustPosition:!0,maxlength:6,dot:!1,mode:"box",hairline:!1,space:10,value:"",focus:!1,bold:!1,color:"#606266",fontSize:18,size:35,disabledKeyboard:!1,borderColor:"#c9cacc",disabledDot:!0},col:{span:12,offset:0,justify:"start",align:"stretch",textAlign:"left"},collapse:{value:null,accordion:!1,border:!0},collapseItem:{title:"",value:"",label:"",disabled:!1,isLink:!0,clickable:!0,border:!0,align:"left",name:"",icon:"",duration:300,showRight:!0},columnNotice:{text:"",icon:"volume",mode:"",color:"#f9ae3d",bgColor:"#fdf6ec",fontSize:14,speed:80,step:!1,duration:1500,disableTouch:!0,justifyContent:"flex-start"},countDown:{time:0,format:"HH:mm:ss",autoStart:!0,millisecond:!1},countTo:{startVal:0,endVal:0,duration:2e3,autoplay:!0,decimals:0,useEasing:!0,decimal:".",color:"#606266",fontSize:22,bold:!1,separator:""},...Hc,divider:{dashed:!1,hairline:!0,dot:!1,textPosition:"center",text:"",textSize:14,textColor:"#909399",lineColor:"#dcdfe6"},empty:{icon:"",text:"",textColor:"#c0c4cc",textSize:14,iconColor:"#c0c4cc",iconSize:90,mode:"data",width:160,height:160,show:!0,marginTop:0},form:{model:{},rules:{},errorType:"message",borderBottom:!0,labelPosition:"left",labelWidth:45,labelAlign:"left",labelStyle:{}},formItem:{label:"",prop:"",rules:[],borderBottom:"",labelPosition:"",labelWidth:"",rightIcon:"",leftIcon:"",required:!1,leftIconStyle:""},gap:{bgColor:"transparent",height:20,marginTop:0,marginBottom:0,customStyle:{}},grid:{col:3,border:!1,align:"left"},gridItem:{name:null,bgColor:"transparent"},...$c,image:{src:"",mode:"aspectFill",width:"300",height:"225",shape:"square",radius:0,lazyLoad:!0,showMenuByLongpress:!0,loadingIcon:"photo",errorIcon:"error-circle",showLoading:!0,showError:!0,fade:!0,webp:!1,duration:500,bgColor:"#f3f4f6"},indexAnchor:{text:"",color:"#606266",size:14,bgColor:"#dedede",height:32},indexList:{inactiveColor:"#606266",activeColor:"#5677fc",indexList:[],sticky:!0,customNavHeight:0,safeBottomFix:!1},input:{value:"",type:"text",fixed:!1,disabled:!1,disabledColor:"#f5f7fa",clearable:!1,password:!1,maxlength:140,placeholder:null,placeholderClass:"input-placeholder",placeholderStyle:"color: #c0c4cc",showWordLimit:!1,confirmType:"done",confirmHold:!1,holdKeyboard:!1,focus:!1,autoBlur:!1,disableDefaultPadding:!1,cursor:-1,cursorSpacing:30,selectionStart:-1,selectionEnd:-1,adjustPosition:!0,inputAlign:"left",fontSize:"15px",color:"#303133",prefixIcon:"",prefixIconStyle:"",suffixIcon:"",suffixIconStyle:"",border:"surround",readonly:!1,shape:"square",formatter:null},keyboard:{mode:"number",dotDisabled:!1,tooltip:!0,showTips:!0,tips:"",showCancel:!0,showConfirm:!0,random:!1,safeAreaInsetBottom:!0,closeOnClickOverlay:!0,show:!1,overlay:!0,zIndex:10075,cancelText:"取消",confirmText:"确定",autoChange:!1},line:{color:"#d6d7d9",length:"100%",direction:"row",hairline:!0,margin:0,dashed:!1},lineProgress:{activeColor:"#19be6b",inactiveColor:"#ececec",percentage:0,showText:!0,height:12},...Kc,list:{showScrollbar:!1,lowerThreshold:50,upperThreshold:0,scrollTop:0,offsetAccuracy:10,enableFlex:!1,pagingEnabled:!1,scrollable:!0,scrollIntoView:"",scrollWithAnimation:!1,enableBackToTop:!1,height:0,width:0,preLoadScreen:1},listItem:{anchor:""},...Yc,loadingPage:{loadingText:"正在加载",image:"",loadingMode:"circle",loading:!1,bgColor:"#ffffff",color:"#C8C8C8",fontSize:19,iconSize:28,loadingColor:"#C8C8C8",zIndex:10},loadmore:{status:"loadmore",bgColor:"transparent",icon:!0,fontSize:14,iconSize:17,color:"#606266",loadingIcon:"spinner",loadmoreText:"加载更多",loadingText:"正在加载...",nomoreText:"没有更多了",isDot:!1,iconColor:"#b7b7b7",marginTop:10,marginBottom:10,height:"auto",line:!1,lineColor:"#E6E8EB",dashed:!1},modal:{show:!1,title:"",content:"",confirmText:"确认",cancelText:"取消",showConfirmButton:!0,showCancelButton:!1,confirmColor:"#2979ff",cancelColor:"#606266",buttonReverse:!1,zoom:!0,asyncClose:!1,closeOnClickOverlay:!1,negativeTop:0,width:"650rpx",confirmButtonShape:"",contentTextAlign:"left"},...{navbar:{safeAreaInsetTop:!0,placeholder:!1,fixed:!0,border:!1,leftIcon:"arrow-left",leftText:"",rightText:"",rightIcon:"",title:"",titleColor:"",bgColor:"#ffffff",titleWidth:"400rpx",height:"44px",leftIconSize:20,leftIconColor:Gc.mainColor,autoBack:!1,titleStyle:""}},noNetwork:{tips:"哎呀,网络信号丢失",zIndex:"",image:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAASwAAAEsCAYAAAB5fY51AAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAABLKADAAQAAAABAAABLAAAAADYYILnAABAAElEQVR4Ae29CZhkV3kefNeq6m2W7tn3nl0aCbHIAgmQPGB+sLCNzSID9g9PYrAf57d/+4+DiW0cy8QBJ06c2In/PLFDHJ78+MGCGNsYgyxwIwktwEijAc1ohtmnZ+2Z7p5eq6vu9r/vuXWrq25VdVV1V3dXVX9Hmj73nv285963vvOd75yraeIEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQaD8E9PbrkvRopSMwMBBYRs+5O/yJS68cPnzYXel4tFP/jXbqjPRFEAiCQNe6Bw/6gdFn9Oy9Q90LLG2DgBBW2wyldIQIPPPCte2a5q3jtR+4ff/4wuBuXotrDwSEsNpjHKUXQODppy+udYJMEUEZgbd94DvnNwlA7YGAEFZ7jOOK78Xp06eTTkq7sxwQhmXuf/754VXl4iSstRAQwmqt8ZLWlkHg0UcD49qYfUjXfLtMtOZ7npExJu4iqZWLl7DWQUAIq3XGSlpaAYHD77q8xwuCOSUoXw8Sl0eMux977DGzQjES3AIICGG1wCBJEysj8PXnz230XXdr5RQFMYbRvWnv6w8UhMhliyGwYghr4Pjg3oEXL34ey9zyC9tiD2ml5h47dr1LN7S6CMjz/A3PvHh1Z6UyJby5EVgRhKUe7Kz/JU0LfvrJo5f+Y3MPibSuFgQGBgasYSd9l6GDsup0WS/T/9RTp9fXmU2SNwECdQ92E7S57iaMeJnPQLK6ixkDLfjlb7546RfrLkQyNBcC3dsP6oHWMd9G+V3JgwPHh7rnm1/yLQ8CbU9Y33zp0j+nZFUMb/DHmB7+SHGY3LUKAk8cObtD00xlHDrfNge+Z2ozU3c9dvx4Yr5lSL6lR6CtCWvg6OAPw9z538ZhhZRl6XrwhW8du1KX/iNejtwvPQIDR8+vSRqJ/obU7GupjdNdh2gW0ZDypJBFR6BtB2rg2OVtuub9JcmpHIpBoK1xfffLzx4f7C0XL2HNiYDp6bs9z23Ypn1fC1Y/9PCFDc3ZW2lVHIG2JKzTp4Ok7nv/G6Q054MIvda+bNb74pEgKGtwGAdL7pcfAa8vOKEZ2kyjWuLr7uDh+/qvN6o8KWdxEWhLwroyeek/g4zuqwU6kNrhyZcu/UktaSXN8iNwuL9/RuvVXtJ9PbPQ1vhmcP6t9+47u9ByJP/SIdB2hDVw9MJHQFYfrQdCph84evFX68kjaZcPAZJWwjMXRFpJ2zr91tfuvrh8vZCa54NA2xGWrunvmg8QWCJ/N4ir7fCYDxatkOeBB7an501agXbygVdvv9IK/ZQ2FiPQdi9osGbH+zRNf7y4m9Xu9Me7N9nv0HXdr5ZS4psHgXpJC9P/wDRTx0Vn1TxjWG9LGrbaUm/Fi5meSvcrkxf/Cg/ow9XqAUk91v3qHT97r6471dJKfHMi8Oyzgx1Z03t1YAQVT2MwgsC3u+yXHzi0faQ5eyGtqgWBtpOw2Ol9+/TM+sTOn8L08MtzgQCy+tOHXr3jA0JWc6HU/HF5Scssr4jXcYqfP6V/T8iq+ceyWgvbUsKKOn38eJAYyl56TAuCEr2WYei//9Crd/5GlFb81kdASVopSFrerKRlaoZj9HR+700H10+0fg+lB21NWBxe2lhNHsUpDZr27mi4dV379R9+za4/iO7Fbx8ECknLCPTsTDJ17O33bJpqnx6u7J60PWFxeAcCbMV56dJfQKf1bkMLfuGh1+76zMoe9vbuPUnLsb2DtmOe5HSxvXsrvWtLBEhaTx29+Ma27Jx0ShAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQaEsEVoQdVluO3BJ06ptHL34b1XRjp4Ch6Rq24+kmjG4Nwwg+9uA9u/73EjRBqhAEihAoe3xwUQq5WTYEzp0b3ZnV/Ncf6O/9AvY9wlh/6dy3X7ncN512Zw9BVLXjuAP4np44vnQtkZoEgVkEhLBmsWiKqwsXpjbPBOn3gRfenwnc+7GBe+zsjclvonFDS9nA9Iy/u3x9+vAP3735VPk4CRUEFhcBIazFxbfm0k9fHD7k+v4nQFaPQIrx8Gmyx/GJ0J/t7ez7mw0b9MmaC2pQQgh0/ZSm4g5TwueWWtqLt0HuVy4CQljLPPYnB0depTn+b3t+8B4t0AdBUv93h2H9xc6da0aXs2m+r1WQsLRnl7NdUvfKRkAIa5nG//r1oGtsZvjTgev/kqYHF/TA+AXoqv4npJemOEiQU1Eo2l+G0movBK1UBBPU7s9E1+ILAkuNgKwSLjXiqO/khVtvARH8dxDBRkMzPrF/V+9/BlG5y9CUqlXinHv9mRPXtvuus88L9H3JPv2zD2yXExCqAicJBIFWRwAvv3Xqwq0/Pnn+lv/K+ZvfPH3p9p5W75O0fxaBp793ce3AwIDMWmYhafiVgNtwSMsXeHp4eNXJC8Nf0PAdRCiuf/XgrnWUqsqotcvnl9DmRkCdweX4b9N7+m/ih+mbMraLM14yJVwcXItKpT1VRve+ArC3Qqn+3gM7132jKEGZm6tXg86J7OhDfuA/iHwPUpfUZSfu2L59tXxEoQxeyxkEgjKeOnLxHb4RqC+NY5H3+2953d4XlrNN7Vq3ENYij+yZwbG9jpt9GkBPQ5H9zgP9607OVeWp87cOQtn9zwJf+xDMNFfj+jryPqXpxj8c2Nn7P+SXey70lidu4IXzb0DNB4tr9751+HV7zxSHyd1CERDCWiiCc+QPjUCnsaqmZ62O5IN7N/VUNP48ee7mAZDTf4Tt049iUG4Guv4ZfNLos9UIbo7qJWoJEHjy+bP7fNsoOcnW0A0/aacef8PdG28sQTNWTBVCWIs01OfPj66BpfqTmq732UnjgT1bei+Vq4pTv7HM8Ceg2/o1qLQug7T+FaaM3IqTLZdewpoHgYEjV9fphvOj+OShWa5V+CxvZtpzv/LwG/aNl4uXsPoRwI+4uEYjAJ2GmdG8L0FK2mYa+tsrkdXZy+P7x2ZuHdW14P+BLdank9q6Qwd3rf+ckFWjR6Tx5Q2cP58K9Jm3VCIr1ogt48lO237r3//96YofeG18y9q7RFklXITxPXV+5DchKb3ZDMy37Nu5tuxG4R9cHH6b42QfAzlds+3EPXu2rfrBIjRFilwkBIIR7SHoJDurFU89ZOd680Gke6JaWomvjoBIWNUxqivFD87fej0e0n8Fwvr0/t1rnyqX+QfnRz7g+8FX8Rv8vL3auF/IqhxKzR2WCPxXqKeq3krDTdj2ierpJEUtCIgOqxaUakwzNBR0D09yiqePHOjveyOkpxLr9VMXb73V97S/h3nDXx7Y2fdPkAYbncW1IgIDxy5vM7LZt/hgrnLtxyaBrJNxv/72N+6tuNhSLp+EVUZACKsyNnXHvHL+1qcgNf2KbSXu2bt9dcmS9qlzo/fARgcmCtpzB3b1/Vg5QiuslLowENyDWDn8cSjl98PgdBviu03N+rl9/WufLEwr18uDwLdevLTF1YK3xnVZ2HI1bUxrT7z5zTuXdRP78qCyeLUKYTUI25OXbm4JPO00TBj+6I7+db8ZL3ZwMOiYdG4dA1lN9HWte2iuI2NAVPapC8O/CGPR34Ip/AZIbIMo7yX8G9QMbcS09P+2b1vf5XgdrXaPfiYns9oeLLEd8D1/B7Dp0E1jGP042pXQj7RKf546cmGzp+tv1TRf6YQD35/QO3seP3xow5IfC9QqmM23naJ0ny9ysXwgq98BWc0kVhv/Nhalbqe8kd/Fr8MOSEr3zEVWrwyO3I29hl+E9LUHGf+nAXI6sGPdd8uV2YphIKnE5IyL6bLxk7cn3bdkHHefrpvJAExMZ1uBZmqeNzXtfzUzk/m/ens7LjV7Px+8d9e1579/44l0duZtge+Np5zEEw8c2pBu9na3YvtEwmrAqNE8IZvNHsep5//yjl3r/0O8yFOXbv0QCO05gP0JGIL+fjw+uj91YeRh/Dp/PtCDM7Zpfmjvjt6Xo7hW9ycmJjaYduf7Hdf/8HTGfa3rG9rYxLSWnsloPg7fijZV8oFM2Ja2a9t6EJd7bCztvHP7us4rrdD/r3/7ct9I99jEI4cOiQ3dIg2YEFYDgOUJDFj1e8TqX7cT4kImXuQr5279A4DeBEX8ayvprU4N3rovcALot/TH13T0fXDTJn0qXk4r3k9OTm4y7a6PzjjORzOOvn1kbEqbnEprPhRzwAKzwFLHk05hv6Yd6N+o3R6beG50aPSdr3qV6IJKkVp5ITIlXOCYn4Yexr0w/DO6YXymHFlR0e5r7tsM3fxgJbI6fW1ivTeT+SsYmr54cFff+5Cu5X+hb94Merp6/J/PusGvTE6724eGJ7RpSFOkKPCUZvBPBccoHBet3Rwe13rX9tw/PjXzZ5hKvr8SfhWKkeA2REAIa4GD6p0feRdWBnvxjv2PckVhVfBf4A29uG/X2i+Ui2eYn8n8NryuDr3jPfWSFV5k44UT137eshIP2K7/64cObbheqZ6lCp+Ydt8TBO7vTM5od1+/NR4SFVhoLpKKt410lnE8LTMzo3V2dLznxLkhYgQ9obiVjEDln7mVjEodfYcpw+MAsftg/7qSDbAnb97sCSb0Yei2fqOcbovVqKNnNO8HmAE9Cv3Wp+uoWjt27HpXNqH9WTKR+kBHKqEFbvo5y3N/avfu4g23R45f3WGa1k9ZicTd0zPTf/f6O7f8dT311Jp2fHzmgJlI/N70jPPe4bEZ6Kg4qw0lqlrLiNKBiLWerpTW25PUbkPXZViW62ecHz+4d8PXojTirzwEyhq8rTwYFtRjvpX/rlwJ+iSXugPbMuyKBOHo3geRJtuT7PujcmVUCuPJlhnL/9NUqvMD2eyM5sxMaIlE4n7XML907tyNjcxHQjty4sZv66Z1xEok/xNW5n4uZSf+8sT5m++vVO58wkEu5sR09pd9w/rWyET2vReujiqygrSopn/zKZN5qMeirotKeTyolm7p/+X06Wvr51ue5Gt9BISwFjiGsLl6N6SrvylXDNTK70D4mX071pwtF88w6Jd/DG/1E1u26NOV0pQL71y3/8PJVOcHMzPTWkcCH2YGOaTTaS2RTN6f1fQvvvDK1bdnbO2JZCr1SeRfn05Pa1PTU0gXJBKW+ecnzlxvCGndhFQ1NRP8bcY1/vjS9bF1V26MwHwsVKiXa3etYVw1TNhYJ3TDjQCO42jJVMcez7J+t9YyJF37ISCEtahjGjxkGDr2DJZ31D8h5vUQJL5RPkXlUMM07u3qSGidICvkzzuSlmlZb0olrK9hD9v9JCrPC196JoPMAolFg6CV+PPj54YeyWecx8Vk2v1Q0rSfhFT18LnBmzBRyNalp5qrSuq7kiAsh4SFa7oZ9M0wzI+cPHOjZPo9V1kS1z4ICGEt4lhiCvZrSa2jol7qzPXJPk6nIGbVbWfUvcr7hO9MP97ZVXpggOu6ajplYStj7l1XvbRMXbPAbp6HzSSBlkraNknrvfVCcPt2sHYi7f3pTDb47KUbYxuvKqkKpYBXKBnV869c3WgbDEixAck0FGFFfEzJzbIsO9C1TyrcymWWsLZGIHoW2rqTzdo5dXyykz0NC8l779i5vu4zwM+eHVntGP5jqVTq/6AkVc5NZ3wNH2lVxNWZNIukMSjiNd9z0+CHp5DXAdX4SAg203w8GB5IATtODHzdK8C15kEjhXvNS9rWA11dnfcMDY9prscss48RySakrOLWqODCoIKAgkuVgsS0urtD60haeV1YYVbbtjUn6/74HXvW/11huFy3PwKzT1r797Upe3jq4sib9u9Y+wxe+vh7W1N7jx49v6ZzbffnQD4/Cj1Pfjx54XiBls6GVuTUc9mQsOIO9mPQFdkIRlz4fy5JLm2ZMOqTcJaXIqpcqnixVe+rdbZ3dbc2OT0D0wZIibHSksmklslknvx+//q3PiKnXcTQae/b+LPQ3r1t0969cOL6G7o6E09qgZegdMJBpVQ1DbKCpyUt6oPKz/4NEJalCAuZFIuEVBJd+jgLh4rvAiFqUVGkhJZMWFp3Z0obGSu/d5gSnWmavuO6h+/cvYHSobgVgoAYjrb4QPMUiGtj1/79jBMkLBwiTlMASlYzTkhWCJyTrGAyMOFkst/BoYMmuIIyGJYcMXMMdNwHPhYN1qWS1t6ZLGaKZL8yzFXTr15BooLLMugHMBRNKgW+It8y9TEcJGt4rvcRFCCEVQbFdg0Swmrxkb0+cf2XOzq73kgdFieEXF2jdEUJKQH6SVWQrNjtZDKlpTPp38U58iUbthk/Ph7sN6zg/xudSGvD4xkq6otcnnjyF0XRRTflkyC0IIJE1JG0QbqGNpMNp5xFhRTcZDNoj66988SFm5vv3LX+WkGUXLYxAuXnCW3c4XbqGs9hwjv+a9lsuN+ahOJSCoLjNDAFvVUll0p1aNPp6adTweSflEszPO48oFn+4yOTmR+6enOshKyYhzWpf/jDuuf6x2aV/qNRaPG/1d0gUXWCA0uu7GhMmkqmerEc8KOVU0lMuyFQ+Ylut562YX9Sncmf7Ojo3BDZWbGLtMkiUVXSWTFNuMqWuYG530f7+/tnGFboxsfdd9mm8XdDo9O7rg6NFq0CFqZr5DWlK9qV0fZqGvZchSuPlevB2VmG/hOV4yWm3RAQwmrhEcW64qu4ykfJho52Vp3J8quBYQooqWDKADftBd6HD+5efyoKj/zR8ew/hWXY56/cnFh7a3RCTTGjuMX0SVB9qzu1qfQM+jO3dBW1g6uVSHv/qVNX10Vh4rc3AkJYLTy+WA/8ou9kJjo7bOh+DLVFZ64TEbCyBktxI5PJZj56R//Gx+NdH5vM4vuI+p8NXh9LjU1iw3EZhXc8TyPuuV9wDaaCfBjTM06N0hVWQmHBDzvSDZ5tvqYR7ZAymh8BIazmH6OKLbzv0KZvJEz3ZzEFnEolaEtV2XEaCLKadrIz//TQnk1/EU85NuH8th8Yf4j9gMZUOrNkZEVZCnsbtTU9KW18GqcKFyjh420sd2+j33pg3F8uTsLaDwEhrBYf04O7N/2t7/o/C2FoGnsIy/YGlvAwSfCvZzLOe+8oR1ZT3u/5uvHJC9dGtJlMrfqjslXVHwjpat2aLi2rjFFLjUSrFUjlO0juddXSSXx7ICCE1QbjiHO0/hofbPgwpnDTOR2V6hWNQqGUx34890noet5yaO+Gko3Y45PO7/uB/lvnrwxrWdha1absbgxo1FWtwplXqYSJY5Nn5lU3bLHQmGA/yko0plVSSjMjIITVzKNTR9sO7dv8RSeb/T9BWmMkKv4D+YzBXuljV7yxd+zfte6VeHGKrHTz4+cv38JWmyUmKzSGG5z7VndoE7kz3uPtq+Welvhwm39weVjOyaoFsBZPI4TV4gNY2Pw79mz8KyebeRIH+VEZTaX0sf27+v794TKmCxNTzr/2NOPj5wZBVjjdYSklq6jN69dyKuhqmWztivYob+RTSkPbe/xMdlMUJn77IiCE1W5jq+s4dYEO6mzsYAmvi/+CrH7LDYxPcBq4HGTFVcG1ULLT5orS1ULIkoSFI2cMHKG8obiXcteOCAhhtdmo6gaOh4EWWlkyYU9gvHswXfgV19d/7+LVkSWfBrItJJhObL/p7elQR8fUZnEV70XxPc01sM+xrzhU7toRgZIHuh07uZL6xA3LBaYB+Ar8rBsfz34YX1j+D5eu317QNGy2xPquSE4mDuXb2IujY2AgytNE67RiKFshzuwCR5s9ZSMlsK0QEMJqq+GkBKOF5yFzRoidK5BoFCeMjM/8mG+a//Xy0Li55KYLBRiTrGjwOQ1br4VMBQuKVJeQKVPxMLlvPwSEsNpsTEECmBLSgbHUpwD1YGwse59l2p+9fmuig4fiNZIowrqq/6Xeqm9Vh9JbjcOKvqFtACX7gV8kTVZvkaRoRQSEsFpx1OZoM2iKxxuHLtDcsZlgLzYZfv7m7XSv+r7fIm234XSP/8o5ktWqzqSyZr89PoXPYDTYkZvziw0NLluKayoEyq4iNVULpTF1IaDjHHZmoAW4aep9geN8fiLt998cGYdtVp7K6iqzXGJFUCAi7jdkuapsBJKcPBwgyP8YRyV7B04Q3dDbpY3jg6gupoMNla5U41BbUN9n0sr1ScKaHwEhrOYfo7paCAW0WiWknihhW/0Tabf/6tDtxpIVSIhGnz1dSXUkDL8fSHKi4/lWPId9Kp3Vxqegp8J/m9f14D6DQ/nmb281FwgkZ1Dj7bnSSFx7ICCE1R7jmO8FJJr8jCvjeNrIxFjDJBpKVaSlXhwDw384MyucBoLAGEfHI5ptO6n1YAq4FjorH9IWjUOnFlF3pj62aui3whbI33ZGQAir/UY3XCVEvzgdw/8NcSyGUhSlpVWQrFg2p39xp0JYLyIohaXxdZ2FGofG6yi85/QS32F0Asu8URgu1+2JgCjd22xcsVElPC85169Gaa1YTkRWJKpSqooBiQQzONvq9sRULKKxtzzAEJw1api2EFZjoW3K0oSwmnJY5tcoSD09HanEDztubnfO/IopyUWC6sUmZUpW5aSqkgwgK04DxxaZrFivacCaIdAuH9zaM1rSDgloOwSEsNpoSMenvU93dXb+EE5taFivKElRqd67qrNmsqIF+yjMF/i56MV2JqadYKxXMDXM6+4Wu04pf/kQEMJaPuwbWvPticwj4Il/NnTrdl7JrqaDC5wTUle1GmdWWVCw1+JotjA6PgnThsIdQrXknF8arkJi/+R355dbcrUaArU9ha3WqxXW3tHR9C5dN//T9eEJ3aGdUwP7T0V7F86Mr0VW4mF6o2NTS/ilaB2HDmb8wA2+08AuS1FNjIAQVhMPTi1NgwRkGKbxRxMz3uaJSRzVUkumOtLwo6Zc7aOkVdEhynN9NQ1cyuNqeEqD67mX9TXGyxXbJhFthYAQVosP58S0909czfqJqzdGODVqaG/IUbCWr2p0yukfp4FUtDfeir1yl8IPUGjPHFy/fqJyKolpJwSEsFp4NEfT6Z3YBvOp8MvMc0hAi9hHNQ1cBrJil5TUZxhfXsTuSdFNhoAQVpMNSD3NMTzzU1PZYAM/ProYkg3UV5rHT8lXmA7SwnwEq4FLLVkRI04HM+n0LdvzvlEPZpK2tREQwmrR8ZucCd7hePr7rw2N5PfxLUZXON1zHKz4kb0KnIttP6Njk8tyaimbwXPrsW/yq3v3bhoqaJZctjkCQlgtOMCYCnU4GedTI+NpQ32XbxH7QOmKG5nzdIWZJz8HNkKygqI9TmSL2JSiovGVn0A39c8WBcpN2yMghNWCQ4zPc0HRbr6GEs6chJFnmfl3knZO4/hmII1B6fiFG9br0s6qAeXPp2WUrhzHeXH/jr6n5pNf8rQuAkJYLTZ2kK7Wul7w6zeGx9DyUsZovOodOizosTg1TM9k1Wogpa7lIisOF+w48E/7E5B1Y/cgtdizsBKbK6c1tNioT6X9n3MDcyePOo7OoJqrC6S0+ZIYV+GSOHxvc18PJCxXG4ed13I727axqTp9yk9rX1jutkj9S4+ASFhLj/m8axwdDdbgELxfGsLpoZyqVXPVU1QugVJUV0dC27p+FaaBWWxknq6ceAljTNMiAf/BoUMbJpewWqmqSRAQCatJBqKWZpgJ731Zx9pJM4aK0hXe5vlKVFEbKFlxs3PvqpSSqpbzKztRm+gnEkktnU6/2GFMfa4wXK5XDgJCWC0y1iAR6/Z49iOjY7C5qkG6mk+3SFQGlEP8FFdnygrNFqBsn1OxP5+K5pGHbcBhqhT8fqu/v39mHkVIljZAQAirRQYx7Wj3Zj3tddQjVVJ4l50CMjHe8mqOTJCCvmoTyIrENXx7Uinbm4Gs2PZUqkObnp76i0N7N36tWl8kvn0RaGnCGhgILKPn3B3+xKVXDh8+nPseX3sOlpt13+P4uonv71WeDqLr1ampFB8S1JrulNaHc9rTMxltcpofOeWns0rTLkeIZUHRnpm5YibMf7kc9UudzYNAyyrd8ZLpWvfgQT8w+oyevXeo++bBtaEtQd9s1/ffRsV3I6eDJCp+nourgH04UZQnhIYfWm1o8xdUGCU8/E/bil89sH3dlQUVJplbHoGWJaxnXri2HTvd1nEEcCBS3z++MLi75UejQgcmJjL92ax/gNJPo6QekhVXAbdvXI3D+XQ1Bcxiu02zTAEjKFIdHTQS/S8Hd2/4YhQm/spFoCUJ6+mnL651gkwRQRmBt33gO+c3teNQYin/oG6aKX5rcKEukqqoWN+Ij5vy81v8UATDG0WGC21jlJ96K6wKPpWd8H8jChN/ZSPQcoR1+vTppJPS7iw3bIZl7n/++eFV5eJaOczX9Z2YvM1LPxWpocBHKv8qHHdMqSphGUqqahaThfj40ITBcbLnsDj6oXvu2bS4n96JVy73TYtASxHWo48GxrUx+5Cu+XY5RH3PMzLGxF0ktXLxrRoGNVPPfNtOolIrgElLGYH2wbZqcipdIFVFlDbfGhqfj9bskCaHHS/7gTt3r73Y+BqkxFZFoKUI6/C7Lu/Bl1jmlKB8PUhcHjHufuyxx/g5lbZw+BL7bX4EoiZqyS0T0uM0j1+82QSl+ua+bhxj7GjD2LicwWkLzaarigbKsmDJ7gcTmezMBw/t3ixntUfAiK8QaBmzhq8/f26j77pbaxo3w+jetPf1B5D2RE3pmzyR4/nH+Mti4Wx1dUrCHO0lSVGqskFUnakkpn6mhu086jgYHkWTW3Wbo4Tli6L5gqYHE47vfeDufVv+YflaIjU3KwItIWEdO3a9Szc0ElDNDqcLbHjmxas7a87QxAnX9ljfxcr+Mzs29ykpi1O8iJjoR/cm5o7dnUl89LRLW93dyWmVIip+Kp7pmlWqIvQ8Mga9Gslm3Efu3LX+K008HNK0ZUSgplnGMrZPGxgYsIKeXa/TA61jPu0w0+7xBx/cd3M+eZspD0wbDgWm+RXP13cODY/jWGKuGAb48jG+agNpilbqlKZoWDqDY2AyjtNUlupzYZlKpXgaxIVMNv0zd+/d+uxcaSVuZSPQ/IT13TN34QRvZW81n6HSDdMLUqmjh9tgd//Fi8OHEl3JL3Z2dh3MzGA7XU664llVWRz/QhLjNYmsmaWp/DjCjqIDdlaZTOZZ1/A+fGj7hjP5OLkQBMog0NSE9cSRszuswNhdpt31BRnazM3U9IuPHDrUuG+419eChqU+cvzqjp7u5P9KJpMPpqc51Zv9QntLkFQBEqZluVCw/7nhaP9i376+8YIouRQEyiLQtIQ1cPT8GjOw7vE8tyFtxBrb2MBXdh579FF99g0vC0nzB548ebNHT2l/aFmJj1BPBYyav9EFLaQ+jdPAVNL8/pZ13a8qiJLLOhAAjvrTRy/d0enbF+69d0tzHFhWR/vnk7Rple6mp+9uFFkRGF8LVj/08IUN8wGp2fIcPLh+4sCu9R+F3ucj0MLf4vaVVnChqYWmdaQS2jpY2vd0djh86Vqh7c3Yxm8dudTPxaW0lrn7yJEjZW0Tm7HdC2lT0xKW1xecgHE3FDWNcb7uDh6+r/96Y0prjlIO7ur7TOD5b3ayzt9ylY0Gl83qKFXZsCXrXdOlrV3djf2LBr556JOshLDmMWhPPXV6vav5O5jVxYLUhNl3iIbV8yiqpbI0bQcP85C2Xu0l3dczC0XUN4Pzb71339mFltOM+Q/0rzu5f2fvu1zH+QDOt3uZ0pbVRMRFouJK5qqeTkhVqyBdtdUmhGV5JI4cudrpd5kHiyp3tTU/8s6r+4rC2vCmaQmLWJO0Ep65INJK2tbpt75298U2HLuiLh3oX/95L+0/kHUyvwTieiUJHVEimVzy1UKeWMqv2pCoKEVFRNXT1aHawnBx80eAZj7TwcxdAc5Gi5fiaNnNT37nCk4xaV/X1IRF2B94YHt63qQVaCcfePX2K+07fMU9U7qtHev+xE/7r3cc70O+6w1gxuV0dHZiusgvJS/O7IskRXLs6KCxqj+B26t9a3uUREWi4plbQlTFYzXvu+7tB3EIUGel/L6e3TNw5NS8zYAqldss4YvzBC9C7559drAja3qvDoyg6pwCP+KBZaVOPPjazS1vMLpQKE9fuPnawDB+EqehPwzWuAuSl8LPg90WVxhJJPWQCUmPBAWTBEz1TFUGpqO3wYYvIPgr2az35a2b1/50V6f1e1NTlVcvEzB0xRekj67usu5FmS2/crvQcaol/zeeObfTSOj91dIq28PxiaOHDx9quy8LtQxhcZBqIS0Dhkl2l/3yA4e2j1Qb2JUUD1Iyz1waOQib0vsxKXsAFvH3wMB0JySwtZC+DBPTN5BOCEnhrI1BuKe9l6tIzsVCiD6E0DOabrwI2elZ09aP7N3aNxjheXvK+a1OENa0EFYEyYL9rz072Ju03ZpNQKj7Xd899cKhNrA9LASvZTY/s9GcHoK0XsrakLS8UklLxyl+/rj+/Qfu2367sJNyTS7SuZfneO7ffweBGScu3NwAqWgrTvTc5jjBZmw87tMCfRXYKQWOgula4OiBOQUZ7DZuhrAGdQXxV0zPuCaGnkv3VPGHOpPw7+QPR62OM5HhdNddGOeX2kmCbSnC4mDlSStVTFr4eLljdHV+702vWz9R66Cu5HS5h5hmHvz3QiOxwJTRo2BGgY06dm7OVhewYGAY6s75oD+ZDs4JPY9JyqSCQ7ABqftd5VFM3/j2Ja4mtsWpJQSq6ZXu5UZTKeJnsHpohiYPRqBn04nkS2+CQWW59BK2dAjwS0Y4IHDz2ERWG8Gnwm7iK9W3sFmbvrqGPzw6gW8eTmvTM07XmTPX28KYd7EQ3rjnvv1QFHbPt3zT9DcMPHd+13zzN1s+/hC2rKOo7NjeQdsxT5LEWrYjbdLw05eHtwWe9jl0542u62HZHZIVpalY/yIlP5X3MHYddLLZfy4fmYiBhNuB509vw+rG3tKY+kOwGHLi7W/cS91jS7v4s9TSnZHGLx8CICH9lXNDX+zpWfXuycnaBV2e3e567nAm4973qv0bzy1fD5qr5oEB7KXt0u7B3Loh7yhWVfypbOalh9+wr6U3mbfklLC5Hi1pDRE4ef7Wj+EEiZ+amqpvJT2bzWjJRLIPR3n9riA5i4DZg720DSIrlsrvHXSZ9p7ZGlrzSgirNcetqVp9/vz5FJTqj6JRejTdq6eBMzNpHP9s//QrF4bvrydfO6f1JrCX1mvcXlo98Kembjotr3wXwmrnp36J+pYNeh5JdqRem83O77gxkpxtW3bgOZ/g1HKJmt3U1Rw+3D+zrc89aunagnWzpq6PdxujLz388L4F78tdbtCEsJZ7BFq8/sHBoMPX/I9hyrGgnuDUUZzrnnz7yQu3HlxQQW2Ued++fZmJ1e5LoPB5k5ZpWCPXz+08du+99zrtAI0QVjuM4jL2YcIZeh+2+9wF49MFtYJSlgmHE0g/JlLWLJQPg7RmhtyXsJ18eja0tivsXhj6xy9ve/mRR5TRcG2ZmjyViN9NPkDN3Dz1FW5z9XM4i+s1ME1YcFNpUIrVLHzJzHnwjl0bn1twgW1UwPHjxxPXpztejR0HFTc+F3YXRwxdfdM9W08D0zrs4wtLaM5rkbCac1xaolWOvurhZIPIih0OdVm2haNTfqUlAFjCRnJP4HBn+iUqz6tVa2nGpTe/etsP2o2s2G8hrGqjL/FlEQC5GHghfplSUSMdvwaEA/9+4vjpa3c2stx2KIsfUek2dr+EuXNF2xEjSJx98w/tbFt7NiGsdniSl6EPp84O3W/Z1oPzXRms1GRKWdCJdeCIlJ+vlGYlh997r+70+EPH8NHJEtLCauCph+7bmj81ox1xEsJqx1Fdij4Zxi9AT2KSYBrtslgxhOD2gWOyz7AstFzx6zFHj1mGobYUYAgC9cHge3ddK5uhjQKFsNpoMJeqK6+8cm0X6noXiWUxHA8WxAdWNyQM45HFKL8dyiRpueM7jllmMGpnjO+1w9fNaxmXxiogaqlR0jQdAkeOBPjczrnOiQ6jw88ESSOA6KT7iQzOHEvavu1pZsLQg4QPP/DdZG9Xx/vWrOr+mfR03SvtNffdxleAQIgvTzjBT0w409Mpu2faufZy+vDhw5WPMa25dEnYqggIYbXqyNXY7i/jCyvdfmaVb5hdVsLp9LJGp43j1/1A7/RdvdMwPRzEboRnLVHe9vEvL3eXBOB4ZMta22H+TiqV2LJQ26u5u6Bju44Z3J7O/Lvp6cwPmBanOwQ4uNHRTWMK21bSvh1Mm642nTWCtKkH07rnTE72aOO0XZq7bIltVQSEsFp15HLthg5J/+aJE12m3tVjOPYq1/dW4cTjHnwMYhXOce8xDd3y/PJW6OpMdsTRVy4iK/rKMR/jwvz825VIHFzT3fkx13UW/dnhRy3GJyeeHEs7n1XNibUPFvY6vtGDw5vV9w0Vofn81qGhZfDhi3HX8SfQ/3HPMse9CWcCX0gel2OIFJIt+2fRH7qWRaYJG85NxldGzV4tGayFSLQ24+q9ULyu9gJfMU5ELTn6wUISTl03NHz1KzyiJLqmX657OLLdSJgoXTO7cBxyN172blier4YCvBsFdSNXV2dC35tKJrbzfPfFdjwvC/qs9MSMxxNRsSqmT6LhUDQHE+jUBE7UnATXTuLsrRn01K2l/x6+qItiR3TNG8V59KNB0DGSfNXGUXwJY2Gm+osNhpSvEBDCasIHgVLTt75/aQ0MnXpBNb2QgNYEntfr4wu/nBYpKQLtxtdwAh0SBX3VDe7nM/Ha5vf1Fb/CURS2bCTAWWuxR229qRsbQQQbUed61LfW14JVKKsTJ5sk8WUcHbtlNANyTOhgcmAGKH7p3m1FWpqtuZCu+LByVdKHVMjpKEQrBwIW9tnpXOIH+QTDSH/D9f0bmCLewDn1I4HmwtAypPDZ/oe9oXKf/aMPsWxSs/RR13FHrURiZE1gDR86tKHEdCDMKX+XCwEhrOVCvqBeHNaW6ui11/mWDtLQ1kEiWodXE4rwYgepAPssTPCMOjIdAk94TZ8pMZjch8HjDorGFUTUAwlkh64be0A9/ZCatiDZWtOyE7ClQmIdJICJFYhA+TRV4Fo5/QIHiUvrTEbkVRCxiJfsSBbfYk87OTExXxdazY5yUgiRKfpHQ1YSkONmAZY+gV4NIeVFfCXoLNA5h/Plb5LzWAyzF+IVXdNnvO/6GcsyhjC1vmWZ7s2pO3fdOqzriy9asnJxZREoerDLppDAhiIAEtCfO3F5rW0a6z1PX4/nf53nG5RqqrpieSnULEVh8cx4E7ugH78H8tG9eP/24oVezY+pkpA8b/abhPF8le75BqdsXUtaFeaTlTI2IByEoU1l8oq1mkokcZHElIRoWmpejMMCMyCvQXyy7JjjuUcgOl4tLCzCMpTHgFpcgkViX/dH/ax2Szf8m2Yqc/MN+1r7BM/C/rfCtRDWEozSkbMjq7NTY5t13dqE6dhG3wsSqlp+C9DDi0ifLrqmT1f6BgUaPjiHN0lJAGAfvpWcI4XjiHIMF6ocO/EjmMa9HeelQ1LT1PRpoce/sJwOTCQtc+kfGQp6Uxl+9JWtmL+jNEaJ0gKBgbsygR58B4sHfwV5aliVWg3vCHv6ymHcdG868IzrVsK6pnd71+/dsmXxbD3m3/W2ybn0T1/bQFe5I8euX+9ybuqbXMPbDA7ZCKV4uMOecyz+9OfmWvj9x9zEw6JW+JuOX298WhE6qtwLEV3TL1tb/AWj7sqwfqaro/sdmcyM+vBp2XzzDEzaBiQsNH+e+eeTjQ+ohwqnG0BYhfVzNYKrkOmpyauYYH8KvD8G6RPBszrC6Jq+ystl0ghzXEZjR5+O4+iZwTh+eG7Yqa5rq/3hGzzTSkXKn4YgIITVABjBP+ZzP7i8ydasrZCetuCHvIvFRs92SEdlpnCYE2LOQi12OA7RNf1yjrphHIyE9yOXPnfNMDg70DpdTf8DWDKs5rRvMVwChAWrUgh21HzllD0NrigqlxKVC7bKQuOOWeGiuI7OTkhb6T8C/Xw3xkel9cXxj6eIxiY3Hhx3X9dHsWJwDaa3l1+zd9Mt/F4tUk/ijWnP+/DBb8++LWqvnh0c7NDGta0pO7kl6zpb8AJzEUr91kYEFdeBRCt69Nm4+AsSl6jwjVGckY6VwPwUpLhLURx9xliWvxFHi/w+zB0SWCnLsVpxnoXesSI2ngp4zmRJXPgf/0IleGH51R6uwjeX5MR76qtITh7+8N9Cp4GF7Sm8Zl1s35pVXVomm/5c1vG+Wm284njHJeJq44/FjixUAld8w7uijW6+xo3MhW2S6+oIVHumqpewglJ87+LFtcFUcqur+1vxwPcZJqYPMOyhXw6GKI4+4/GwQpjCBhe+6XDIpFb06PM+np5hhS5eXzw9bLJ2pBLGv4Fe36BU4kA6IQGw8MUY6MJywVeqDs54Z69zrWdY7jI3G1ZtUiSV6zzDI3IqLLew/wu9jspl+yywrA1pEed5QceXPT3jBb/DLrA5ua5UHZ/4eMTbFx+fwvE3DJO8fANrjlctL7giJhRx9MrfR89R+VgJ1Y6currONuwd0FNsxwtV02mPlWGLy1TxlPHf6Hh8PH9xesvw9yRM+5PIRT2ZIgVKKZxWUY/PT8aTFPji0i3m4Ed1hDWV/7uY9bNGtiGqAyorJRWSqCgdkrQiR5KddrwPlsq8xfhG6efvx8dvtiQczDdmmPaldDBxSVYeZ3GJXxUMWzxq5d4fPz7Ym7X1HTAL2A7NqtJHEQ3qtCPjw3LoxB/v+OMZ5VVzR5aHWRuErYA+y4uu6fM+Xl9J/lh7bFvbY+vmv0bWos9tsXAWSLIiaSnyApHxJz6SbFSFuXTw8i86r5vVRW1m+6IHmUREAuI0lcREP5q2ztWPrO9/YK54xsXHI56+cePvj3qBfimZNS+J5FWMcrjptThsRd4dPX9+DcwEd5iQphwozfkCwJKaLv9ewHYKeicfSudwShcnJDBBOD3MTwGRO0cqLIj73jQTaejDBYaPHTBgJ/i5+HyYijd95sFhRzkzB7yL2IrCtGwezj9nOQVTUlfPwiicifnu5J0qHHd8mXHIG6ZD7JQqIk9kJK6QwAokMWRUhMaSeJ0vcfaiXNhs7PyuwpYV51Vh+EM/Pu2M9GckpyiOuZm2Wvtom+Y4me8xPbvIIujzPu6Wbvyt1ejL3U7Sv/v754ZHsORwaX3KGdwiJhO5pzY+Mivk/urVq52jTnIXlEc78LKu8qAMx/G8kHhyOicosz0ovM3IrIDKb15HSvDoOoqv+hMLYCOWI8ash0vmufryZVcqLz4u8fym3ov1xT/EVp4UDUTn4/iS0xW+sZTMojASmLqGp64iH4FRXJQ2TKj+lv7JVRTVxwQkm9APyaboGnGMzSVR6VR87ipsVT645ovOzi5tamb6zzB1/nqzjz+s9YetwLioZW5C8jq08K9+1IxS8yQsfF6ap1WL2BK8VOaJc6NbPcPrx7wJ++hmHQUPvOaQgMJ3ETtVlERDP0wVsQ19uPgcLQyt/Dc+p4jlL6k/1xa2qVyh5ApEzEoErm/DsPOTXV3de6anq36roFyRdYWVbVSshHJEMt98saIXfIu9koplYZL6m/hUz7kS/Jt0/PE8+Jj6X/Y6k+fv2tA1BKIvB/OC8WnGAmp5dpqx3XW36fjgYK/upXbhFd+BrRlqn16MfkrspkoC4hnirYjbUVWzs4rHx8uL3cerjwt0TA4RcBcsuX8Rn97q54okVsCKJJ9YkSvy1gJR4aOtnAr6OJP+L13d+BKBKMEzHhAfgDh6yzD+vqHjTDDvYpAxLqwEfVdbE9bpIEi6V27tdLP+LnzPrWS/XrRTnz5d4e79+LNY7r4kP+Z7Jv7z1LyPL0B4Tb+ci9cXLy+eJ54e8Rw//rqqcUR+HOrgYVprJbBl5E2w63oI64J7k8mUDZLGhmAXs19ucVkxP8gKQu4ptCxbMy2TW3KAGI4u1P207ztH3CDx/7bL+Cdse8h1Zy5ev7Dp8uHD7blJuy0J69TV8XW6l92Dl3cbLG6g98idbhDgdANcY1ZY9o2N4mpNr96GRf1Da3Wui0RW69F1bWslvp81LD2xDTOGu9DhQzBc7AcYfYlkAqo6A6ozqHNBYJTESGitTGShsp0qQSxT4AcoPJQw0LBlEPhBFakHDjoLvY+XgVIyg7WK77tG8n9pvpHXBbXL+OMBd7FN6KLu+uf27esbX9RHdIkLbxvCGhgYsDb3v2a7obt7YHakpKmYiqgE2ioqJbzIOszXcSov/DAzRRNehyJKvPx4+igv/ZLKEaCkoZxUFMYXE1I8f7Xyq/UHp9CkAlfbCF3NdlhS7IQguA0N2wiJYy1ktC5IISb1Okr5jSYruy2SGlYkIkKLSC3yy/WrUWGzSnjaTUX/QEhYQuNewLCdwBFKRkpOuAfr4sBnwwfDg6B0MHagORhBHNqHw5WxTwYav6lAt/42MBLfrYZXHO9w3Ftr/B0Hp0pY+tkD29ddAz5ln8NGjddSlNPyhHV8aKjbzAS7Dd3egRcvgRHJWyrHASw9Pyp+vlSxEluH0jWAGQF9VVZMpxHVRZ/xSKQU4PR5Xy0+/sLQZCFS9DN/XKtSeh5WrL2x+sMyZv+W67+vwz5eC7oDx12rm9pakNg639B68XL3Qh+2Bm94DySxHhg0daBHSQhiCbyyyMS9SDi8RhEHyYP1qD9qak0S4VGn5VYrSTRKEkKHWYYiHuQmCYb/YKYLqS+3H5LYckxJmz6qhSYJ5yNgzgtuclESpncBfN8Fj3lgJdCSGpHcGECoxrouMoHjzO+4evLLMB1VKxJV8Wyj8Q80Ix043jnTu32hlTdkh08Yn7UWcnio9Qs3pzZm0lN7LCOxIdIZxbuQ1+lAVFFxJB7aMeUIiPkiPRPjo2v6dPF4FVjHnxi/oQK0Az/bymf5uI7ayGLj6eM63nrbF5VNXzV7nv3HViQL3JAEaSV1z0iBNJIgJBCYkSKJYbdjEiSHw7a0BI5s6QBBbINUswMUsQ6E11UojZGccA9dcZDBdQY+TgyFTgkiEKYyIBvstAQzIRk8cBJ+A2j4gZFDFWAqjAp3V5IhQYYwwUJ57ByS0QINzMYK8FyrRxt3KNbXb2qG/UVNT5wDyCt6/A0boGbdqzPA4tD21SPquWihPy1FWHjQzYs3xnZkM95ePIZd8RccBx1xez/UPowp46I4+uVcLD9/8Plq0Gfy6Jp+uez5uqPyY+UtNN5DuVQc06drpv4bIDXsjtsMpdkOSC79QK4Xog3PzwF4IBNCBiIhpBSpoE8jioqWaM2KCRuOqwLXgIQItKIe0lCYD/lZjoqgGIo0+J++SsmMKA8eqQ21qHuUh2PfzQHN6vgG6vVK8GfmQhcbr3Yff+AEi3rtdCtNF8u/eIWD2ATXx4Mg0XH1Vr/hm7sDQw8PvyvTrriKWocEE0C6oM/kJRJHrAykgj6WGlq+JUifu6YfS6pu4/UVa6AgQcXKi78ApekhcWFBwMstEkTX9MvVHw+Lt2ex+4+Pg62CxgsHEwZbAdgWIJfA+ICkfDRYtyAwWWB7Ay8F8VT/KB0bOJ4Gx/CQfUKSwZGrJJs8iZHYgB0zMB+zk8hopQ8hEcEog2ERASIBAOL5fIrVIKLxXKtzKPZLgZUckvGf+/nH5HsK0+Uz3316zeAjj3D23Lwu90w0ZwNpiZ72UnvwfO/AXIFnXfLBxLOsHn6yiLqmr3oQ04LHX9hq6TFHI6txrlYWkHj98UT1lh8vryR/rIKq6aO204drdP8hRWF3itmLUw42QnW1CSTSA2IAIXkWOBYKLWw8wjVqNkEaFqjFwLQNJhWI4ZiFoiq6QX0SbsEo6HMoWVFCYprwjw6FP65BXCSoXJwiOwpnFK9A6yiWkQhRDwA9XAfpwLS/AqnqSKP7jwapquiznXFXMn6x8Yg/X/HySvLHKqiaPlZfvf0H6BloAM/v3tpzHkJwUx59Uxb4GE5Lfnt2ZGS16SX3+F5mq4llfegtwnaSR6J5EC8hPUV6IDaS6aDnoZ5DpYe6AtdgOr4pyhXLNPH0KKCo/DDP7N+S+mI6qHzbQr7AbdgW+iylWn0l5cf6E29ftfSN6L9lGl04x30tOtMHklmLhxpClW9BL4S1T+i2uNPRp+0FflD0AN9A9LHnmHGBBfJCE3QL9ALiguoJqiu+64gDzWGIIAlhzhaSDsMV/yjJi3BxyY9khP9BXBSzEMY/AFORGMmM1yyKZfmm+ZKuJf4uMHV1THEj+o+S864E7zYd/8Dliqp2MamvPbt9uw4dY/M4DnXTuMuXx/scK9iHLcbryzfKwvOJBSGNPl10Tb8WV0xYyMFymDdXXv46Kq+ueChJQI4WlSUqf8StOf5CNdXqr9afxe8/Gm6AoLAqGKyCGLSG350ACFzKM2FvaeOseEhFOsjItdQ2S6wYYmkOdl2+CfLBvmpIV55vYY2Qn6uAxAWC40zbhxSmWArcQj0TSIiSU37mx0kgVesgLereOSz8E5EWJa6Qzyh1hZEcO7xY4Ct9WLfNvwa+5xA2h6uGP6vMPxMsZ8WNf0Gf+cOCw9usq51a5+kNG9Sn1IjJsjoO0LI7EpVra/vxhPdFs7JyjYriohlbTAKGxO1C6oJEljseOLqmTxfPX66OucJK66OUNzuDjK7p05UIbGwX25I/vrj4BYrnD0uZ/Rtvfzz9fPsPIkgkbL0DZNMFRVEHFEY2ZCBTcwMLdfCsCCVN4SwpE9YG+ARNgD24IDHYSYB1yNCYDkLRFoC8oOUG40AKQx5IYyAmlQ6SF7dDoSof0hbJiApzqLs43aPc5UG+AvVQ/4T7nGQFQiJ5kdbAkmgH2Sz0FaWB4gLrad22v4nmuvPt/yzCc1+V4t0e4z93r8PYwDCvNANxLSthkai0jmCf5+jq6y6Y4SkjTfoKprgWufj9Dg3AozBmiK7pl3H8WDH3u0YfLY6u6c/HVS2vSvsxoygyTF2q/qNenEyjJ5NJPYGPRidME1M1/JYqwyoNq32Ihu4J0z5M+WA2DoqwEI9wfmEaEhQJzPNsKNOh0jJwrfRVJqbnNOrC6IGwQFzgHiKrpCuq2kE+FizrMXWE7IWCEKemg7hSiimOQchNIC3EchqpHlBO95TshQThkwF5TL9k+Mm/MZLGzVo3AlQdLzagDle1vCYd/wU9/5Z5ZcyZPnNow/J8ZHZZCGtsbKw3rdn7nIzTx42o0WfP1cPKuYJ6XPFs5q7p8zmKx5v8cdcxDeMPOR1fj+gh4X10TV/dukiC+nJPeLy8eH1hrtm/UVvpKxcrP2oL/dlcs1eQ9PCeo73wGcp+R2Xyvlp74vH19B9EkoA2CYKUlcQqJCQj6vkoyBjh/IurcJiy4Zxy2FMptRBO7sK3kClR0UYUZAX+wMqfC1ICiYHMYBsKSQsSFKaAUEqZLoiK00ASFsgpN0UEUWE6yOkiiArE6NmUb91OWwAAEuNJREFUszCNxA0c/uBoF04W86YOarWQAYjGmHBBEIkUiXEqib025hNmInWknv6zKo77Sh3/RvcfSx5Xl4O4yr5Y7NxiuEEQFT4uvs8yrF5VvosX28LLS185vsiRHkc9YPiJtrCbJIzHyx3gJdfpl80flZWPR6qIxJghus7xjSqj4E9UNn2VvN76Csqq6XIR+48OYEeGlcAaXhLfQwxNQcgQEI9IErOOxBUuCuDLz9Arm5iyOTaYy7Jty8hAb2VCm43ZmwnwQTbgFpAWyA4SGEKhaMdgYNpngKAcpeMCAfFjYGE4yAqco3RZ0LorUqOkxVkf6AgzvFBPFbISSsOUD+WRrWijpcwbmI4Gomj4yxAIv4bPVU+q9sfxk/EP36UlfP49N3vNWr/m9CZdX/zzjDDofAoW3XHVr9NPHdB8p2+uORl/mjFLUktMbBTtkSJbpLCRxYyD5OpJps/4+DJuvq5IIgoLqfi3pLzcRuloM7QSzKImsBSWG80LVKkxkSvOkFHaCjL5QvrPN9rwvaSVtEg2ICmQCNRQkGjwnlOpNktMxdds+GxcRFrIyCmhTQMEUJjl4qwtzPbAOVC8o0DUZroGiMmBpEUfRBZ4DvRUJC4/1GOpij1ML9XU0PJdFxIZGsOpJkkOQ0YdFh5CPodKl0WfRqQkVUhTIEf1iN4GkdJU4Rx/xsJfHkpfMv4cd+IAUJb1+YdkfSU7NXp6+/bti7qquKiEdfVq0Gl2TO2DonYzAcUTCv0slCB8FuGia/q8j7iAPl30aNIPHVKq55w+00MvjFLo05WmV8H5P9XLzydVF/H0xbGl9UGfjm226B98po2u6fO+0f3H9M7SbT1h+FoS00ybSmm+5/RZHxzbwWvVHtSvNuLRR4BKl0vPtHRhWh1SESUsNBkH0qjvNiAx4MA1JDBc4yBmTPmwJArJCFM+dA1SE5XsmFIqRTzKUrZYkMio78IUkauFoW6Mcbin1GWrOR8nqOEUEUQFmuK3ZdEw6NFg92s9j3XLp0CIsAuS8VdPkcKhCZ9/KAc81x/c3NdzFjy6KHZc0YPNh7VhDg9jYnh4co9n2dvx1nLalys7Rimx2xLGigfEJBQ0Xr149FkBVb04BQiTlPAFbTiDxRGKM1pJf5AgarPKG0sQu413N07hkCANO5m0fSebtCwziW5DqMISHTRMJCDF23inYbmsauNCHq+Vn1ta5dErzKN8psP/RiIXVpAegKJQ30Y06AQSEXdAIpdL0wbTNsLpoSIeCwRJHZYBpTusIFAIlPC0iqL5AxoCcmLPQkkLdITRCc0dSFqQD1A51g4pLOXmhZCwDMO2BpH9q6ZtDoU4oKQIy5yEynFnv+mzw+0+/q3Sf5yT4aYs89zq1alLIK7wYeQANcCpgW5AOaqIARzxcudrXrMTz+cuFAxBI1Rw06eLKz3xsnDikt+Mmr9mWBlXrbySeJAlTt8MXJImXHRNv0zx2GpWZ3r0KKqzXHlRHH26+fQf+mkbg56ADjppUuihMJl7BEhGtmnj+4Phj1lEUAzjaQcgJkzcqPPmlI/yjdJV8Trf/+hbeYyP0uMS0zSVF8SEaSELxkhR6a7IC1IVHkNMBWEkCljxYQ7YXgWKrDCHw2ohJDDKSkr5Tst3TANBp7DdgkTFKSOpxYMtV2i3hXQoJjwbBo3L4oibAajdXmSbCl01PEvi6x3PetMvwfi3cv+xHpPRk8GZvo6Oq5y5FvZlvtfqQZ5v5igfH7iRdHqrn/H24McyEb6ejCUxkCwqEATi8JDNKtWRIxI6wrLj+aOyQgIqLT/KTZ+OLYnCFGHE60PdSgzIgVmcfrbt5evjYkB97VeNyv8plx/UYoChElhYgB7KtD3PAUWRpejIVNzNAjNzyDuYRqnrMF5dIx4CkTrlAJQRps2FhZIX5lqYwfFLOygTBeSmkUhDEgNvIC7MR5ML6JhozoCpn+858G1utbH4j7BRT0Z9VlZzbTyOKJCKeCjkqYbkFBJh+DXCPVcKuXKIFURlm8WBoZSFOBCYmk6i33ioT+Kw1CegEMspcFfe+M8+rRySNum/YUwm9I7TPT04NWOBDg/nwtz16xMbEp3mPswIOuI6G7wBSlynz1pQWZEIP0smIcEEWN3QsfJDn+nj9FFSPh73wilgdE2f+eOumo4pPqWI2kI/LKu4RVXLq7H/kJopRUFhnkj4joNT9KC/BlZgAIVD1I+cwASVUBgCIsF1KEQxJLpGPKHGP5LYrAs5ikREnmJ61KF4K5cG1+REVS6HC1JauGroYYcOrLWUEp6MSF0UpoZgK5hV2dgEzeNLYbMBnRQZEUPnOwGMT6GOp57Kg/0WTCMYjnsQHpDmlJFTR5IcNt/alvV1PdF5NsKcLSpGG03L6QcjnWDpeIXqgFYb//A9wGi1+fMPDeqY7nae6uvT530KKp+JebkhHJyX6Fqz33X83tCgRr1d6gXBH+XnFtEwDmEVMBfAtbK7UvHxVTb1gGLQokbFVBZMDtUJHmT+dsPxmqSRU2nkrxkWxhfbOfEVwLov4sIaonSRr1qZy6vy8xliPbn+qPjYHxSm6mJwdB357DfaVtJ/BMLeW0/ayVQSR6TA5AB7h8kwmFeRrFBUSFYkJk7GsM+F5SuiCQmFBEriCskHYcxfEM9ozBjBS/yaKD//rBzndjD3BHswAcmqwFdhOWGugCw5owwpEt9sxMlVGWQEK4GlcAOi1XAcL6eLICfdcMFmNDnH7xdO/YTCHTkxM2B6EiSPbuXmHrZO5eJy4Iu6lfo2Gu8orFfA+PM9UMjnHpBIx9v+/Q9Wm8nMfcMTE1d7u7vP4Ec6fzy1wqOGP3xI63JHjgT2/rsy/boTbMP0pe78dVUWS5wjK0VUjIqNN3kA62ZYeIcfxofXDFNFUZBTT4W6m71mWBlXrb4yWSoEYWh0jVIUdJEmzA6o18mRDN7dCplCEkK8IiP4WRAU9OO8j5wimZB3SAhKYlJEphLkJCaSEP7PEdxsfVG5UWFxP6qPPngTlvBED6IWLN8dTPmg8ocFPPRXWBdlFWqqCEmLlhAgLRtKdLaAkpQNfRUM6DUQGOUiTimNEaT7FvRVw/F6K91XG4/mHf9KPaovvJ36jzfSS1mpc6mUdhnvhZL4a0GjZsKBKK+n0+kt0AHvztCAsIzjeeAeUKVPF1l101cBWCICxcGmcPalUeHRnyguIsJYej79fFnpKxdjrKhu+spVK69Ke+OW6SXlh7Xk/8b7D5umJKY6nUiQAEmp5ZKoD5Ay8kTFzcAsJIrL+ZREYCWAaU4ubXRNP8wfpuSuGubHMwCJhSuGPCiYJIMw5GV6xkfY0Wd+WoPiBAlEhvnzNluw3SKZYTkQHIQ5J1RQDg7Lw/QQGUIdFp4wcC9KgQ/7KkxjucEHROVmc3ZaCFfEjMxUvlPvBZ0WhT1Q1zG06hQKyGPA9qEh4bPRJuO/0p//WvoPyXpa77BPr9L1mn64QiJRT0vlP3jg1oyn0/th1dnN6VOkQyh8wVRuPpLUH9GHi+sckD4vLaj43NSHLwfv8cKjbGxdgc97JUpFpIRbpovKYHTUltkpHYkyEqNYf1gWfZU+Vn+JiMZERS4qKyTAMv1hmwoItLT/aL6OL9cn8A4mknhDkR5CUuh43ExhAXjnIQVxRQ9UwnU1JM73meHISINzlY/1Ir3jwNQBtui5IpU3K2mFZbEUEhgJiHlZhkqI8rws7hPFxBHlZ5romu1CGRSv2HyQEQiLPkwefJcSk2o0mU+F8Z46KswbKd8qvRUWiq7BsuoYlF/q+Jd839p4/KNnFHhw+Fbc819r/y3dHO7qsk9D2lLPBvEq59SLXC6CYSCq1OTk5F48g+FxLyQSvvyzhFK8taaYL1ACiYdkkSOg/HVO4irmAySLlR8+yHy5wnaWysTF7YmnRxdyecMXFDcxx3KjNCUEGUtb2r4Iixwh5qebxEG58v2Hkh0ERqlLp5kClNLkngLSyF8XExrZi089SYbFm9DRg1FCbEKyoxQE8sqFkTOgTwrDVIPCP/k8qpRcGrxMEXmxnpwjUeXbhjpgA2bBNsp0HPQWOiwNOnddw5YcNIdSFyzTlUKehEbrLDxDNn7osjCXPw5FO22qgPfKHn/pf8XxxxetvSvYlX8BxBVKCdGDmPPDhz0W+Oijjxof//jHt+Hh2oko/qKqFx4l0BJQmQIwS3RNn/fxZXqGFbq4nQzimI9tKFs+S1S1KJ9XoQkEfUQwtKg98fSzefMMwmx5F28/IqK2RLjM2b54/gX0H0v6+IiDZSVgHJogfYWNzDMUpCtsUkKg4pKIUJAsnNTlkjNWzfBCPMOhi8JAiCSqPBmyMFVQ1OdctQwLywNZ5cPCpDl80D6IhjzBASQF0sUeREpSJCyE4ceSpJXbEO2612AHepaTSRn/YrtEAD3n8xV/ntv4+S96nyGRO9gccQZmEPiBK3bRi5kPHcG+v2T32n2+53bxNY8oQyWIB0SR9OmqxMeTh5lm/8azx8srEbCQNSqTpUTX+eagwCiPqiWeQAXO/olHV2tPaYUFjWCxsQJjt7MV564K6iOB2Xj1adNGa3PqDMFl4XwSSnAQCUIibqFPlwtTwbiOkoSR+JvLx3KYv9BXaSrlLyifSegQBNMFTAWhiIeFArRZnoX+8Y2EzKhbnuNlYO9wFpZXkwoH5Kmj/6qOFTz+0n8+Y4Y/2pVIcJqY35+YJ6wjEN33ZzL9kPY3hWjx6Sv+RcByLIQAZZYQJSn2C944FRF/QkvjQ31XZDcV04GVPOGl+WdJEhVGbaNPV3d7Va7ZP83U/1ACgzTjkg4gjUFvHhGWkrPAPnnBLNeFSEKKfAbzOu9yBAUdVj6cZURpZuU3XOUILioD93x2IEnxxFGc9c6M+M93cHSNZVzHquBQDeMn4x898wQ2us7pgGvAbyU8/z5e5EupVEqtJirCgp4KHxVI7sbrQIYKHyKF3+yvIvEEX8FsQNk9qXwgBpgQwNo7p9OKrukzfdzF08+WTmYrV35YF+tU8bEpYImInGtLVH+8PkzZ8iQcVpjrawXCLOHH5uo/9JmWjbXHJMQcNhVW8bOklbsumnJw7Q+cgtVK2mJxAUNNKKncp54KHuzAwnjCE01B1UIHA1A80ik/IkdIfTj6mE8MXh2sSKZhdHUd+IcDykwFLj4eMv7Fv+il75c8/xEmeHaojD+jZ4LgbsPVVvO5iutg4oSAFCCiAqVp/jrUKRU8mzVexsube05ff3tiD0Q1wkP/ojrYgeiaftiheHsjLKL4GrudTxYvb0H9h94bpzeAwCD4cAqJf5SmlBjFH5D8ChVC1Q8KyIkrjtgbE64y4lqtINJHel5Hq4q4ZdsYzsWBWaU+rkFWtFzQbiNNnWciNbT/qD4+Hitq/FdE/3mWzmvQU+W4hZZPenQuRHRNfylcvfVjpUqz0Tj6dNE1/fm4euufTx1z5am3/hr6z6lj9A9ElneKwPJ3IYEVEpqKys0YFeUhoDBP4TV/+bjVIkfqKuu8/ixC/+tqR73111V4DYnrrb+G8a+h1tkk9dY/m7MxV7XUzwdP3ApBgCYG6Co+L6/+kcB4X0g0ERFFzwXjojBc5q8ZhqOKtWEoROmLEwSWBIHowVySyqSS5kIABEYhisRFEov8SgRWGD6K9OMgq8IwBIkTBBYXASGsxcW3pUoHgfF5iIiLPv9x+03kuLxMqaqsUj1KJL4gsFgICGEtFrJtUG6OwDhtJHHhqLOl+dBAG0AnXRAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBAFBQBAQBAQBQUAQEAQEAUFAEBAEBIGVhMD/D0fV/fpMMM+gAAAAAElFTkSuQmCC"},noticeBar:{text:[],direction:"row",step:!1,icon:"volume",mode:"",color:"#f9ae3d",bgColor:"#fdf6ec",speed:80,fontSize:14,duration:2e3,disableTouch:!0,url:"",linkType:"navigateTo",justifyContent:"flex-start"},notify:{top:0,type:"primary",color:"#ffffff",bgColor:"",message:"",duration:3e3,fontSize:15,safeAreaInsetTop:!1},...{numberBox:{name:"",value:0,min:1,max:Number.MAX_SAFE_INTEGER,step:1,integer:!1,disabled:!1,disabledInput:!1,asyncChange:!1,inputWidth:35,showMinus:!0,showPlus:!0,decimalLength:null,longPress:!0,color:"#323233",buttonSize:30,bgColor:"#EBECEE",cursorSpacing:100,disableMinus:!1,disablePlus:!1,iconStyle:""}},numberKeyboard:{mode:"number",dotDisabled:!1,random:!1},overlay:{show:!1,zIndex:10070,duration:300,opacity:.5},parse:{copyLink:!0,errorImg:"",lazyLoad:!1,loadingImg:"",pauseVideo:!0,previewImg:!0,setTitle:!0,showImgMenu:!0},picker:{show:!1,popupMode:"bottom",showToolbar:!0,title:"",columns:[],loading:!1,itemHeight:44,cancelText:"取消",confirmText:"确定",cancelColor:"#909193",confirmColor:"#3c9cff",visibleItemCount:5,keyName:"text",closeOnClickOverlay:!1,defaultIndex:[],immediateChange:!0,zIndex:10076},popup:{show:!1,overlay:!0,mode:"bottom",duration:300,closeable:!1,overlayStyle:{},closeOnClickOverlay:!0,zIndex:10075,safeAreaInsetBottom:!0,safeAreaInsetTop:!1,closeIconPos:"top-right",round:0,zoom:!0,bgColor:"",overlayOpacity:.5},radio:{name:"",shape:"",disabled:"",labelDisabled:"",activeColor:"",inactiveColor:"",iconSize:"",labelSize:"",label:"",labelColor:"",size:"",iconColor:"",placement:""},radioGroup:{value:"",disabled:!1,shape:"circle",activeColor:"#2979ff",inactiveColor:"#c8c9cc",name:"",size:18,placement:"row",label:"",labelColor:"#303133",labelSize:14,labelDisabled:!1,iconColor:"#ffffff",iconSize:12,borderBottom:!1,iconPlacement:"left",gap:"10px"},rate:{value:1,count:5,disabled:!1,size:18,inactiveColor:"#b2b2b2",activeColor:"#FA3534",gutter:4,minCount:1,allowHalf:!1,activeIcon:"star-fill",inactiveIcon:"star",touchable:!0},readMore:{showHeight:400,toggle:!1,closeText:"展开阅读全文",openText:"收起",color:"#2979ff",fontSize:14,textIndent:"2em",name:""},row:{gutter:0,justify:"start",align:"center"},rowNotice:{text:"",icon:"volume",mode:"",color:"#f9ae3d",bgColor:"#fdf6ec",fontSize:14,speed:80},scrollList:{indicatorWidth:50,indicatorBarWidth:20,indicator:!0,indicatorColor:"#f2f2f2",indicatorActiveColor:"#3c9cff",indicatorStyle:""},search:{shape:"round",bgColor:"#f2f2f2",placeholder:"请输入关键字",clearabled:!0,focus:!1,showAction:!0,actionStyle:{},actionText:"搜索",inputAlign:"left",inputStyle:{},disabled:!1,borderColor:"transparent",searchIconColor:"#909399",searchIconSize:22,color:"#606266",placeholderColor:"#909399",searchIcon:"search",margin:"0",animation:!1,value:"",maxlength:"-1",height:32,label:null},section:{title:"",subTitle:"更多",right:!0,fontSize:15,bold:!0,color:"#303133",subColor:"#909399",showLine:!0,lineColor:"",arrow:!0},skeleton:{loading:!0,animate:!0,rows:0,rowsWidth:"100%",rowsHeight:18,title:!0,titleWidth:"50%",titleHeight:18,avatar:!1,avatarSize:32,avatarShape:"circle"},slider:{value:0,blockSize:18,min:0,max:100,step:1,activeColor:"#2979ff",inactiveColor:"#c0c4cc",blockColor:"#ffffff",showValue:!1,disabled:!1,blockStyle:{},useNative:!1,height:"2px"},statusBar:{bgColor:"transparent"},steps:{direction:"row",current:0,activeColor:"#3c9cff",inactiveColor:"#969799",activeIcon:"",inactiveIcon:"",dot:!1},stepsItem:{title:"",desc:"",iconSize:17,error:!1},sticky:{offsetTop:0,customNavHeight:0,disabled:!1,bgColor:"transparent",zIndex:"",index:""},subsection:{list:[],current:0,activeColor:"#3c9cff",inactiveColor:"#303133",mode:"button",fontSize:12,bold:!0,bgColor:"#eeeeef",keyName:"name"},swipeAction:{autoClose:!0},swipeActionItem:{show:!1,closeOnClick:!0,name:"",disabled:!1,threshold:20,autoClose:!0,options:[],duration:300},swiper:{list:[],indicator:!1,indicatorActiveColor:"#FFFFFF",indicatorInactiveColor:"rgba(255, 255, 255, 0.35)",indicatorStyle:"",indicatorMode:"line",autoplay:!0,current:0,currentItemId:"",interval:3e3,duration:300,circular:!1,previousMargin:0,nextMargin:0,acceleration:!1,displayMultipleItems:1,easingFunction:"default",keyName:"url",imgMode:"aspectFill",height:130,bgColor:"#f3f4f6",radius:4,loading:!1,showTitle:!1},swiperIndicator:{length:0,current:0,indicatorActiveColor:"",indicatorInactiveColor:"",indicatorMode:"line"},switch:{loading:!1,disabled:!1,size:25,activeColor:"#2979ff",inactiveColor:"#ffffff",value:!1,activeValue:!0,inactiveValue:!1,asyncChange:!1,space:0},tabbar:{value:null,safeAreaInsetBottom:!0,border:!0,zIndex:1,activeColor:"#1989fa",inactiveColor:"#7d7e80",fixed:!0,placeholder:!0},tabbarItem:{name:null,icon:"",badge:null,dot:!1,text:"",badgeStyle:"top: 6px;right:2px;"},tabs:{duration:300,list:[],lineColor:"#3c9cff",activeStyle:{color:"#303133"},inactiveStyle:{color:"#606266"},lineWidth:20,lineHeight:3,lineBgSize:"cover",itemStyle:{height:"44px"},scrollable:!0,current:0,keyName:"name"},tag:{type:"primary",disabled:!1,size:"medium",shape:"square",text:"",bgColor:"",color:"",borderColor:"",closeColor:"#C6C7CB",name:"",plainFill:!1,plain:!1,closable:!1,show:!0,icon:"",iconColor:""},text:{type:"",show:!0,text:"",prefixIcon:"",suffixIcon:"",mode:"",href:"",format:"",call:!1,openType:"",bold:!1,block:!1,lines:"",color:"#303133",size:15,iconStyle:{fontSize:"15px"},decoration:"none",margin:0,lineHeight:"",align:"left",wordWrap:"normal",flex1:!0},textarea:{value:"",placeholder:"",placeholderClass:"textarea-placeholder",placeholderStyle:"color: #c0c4cc",height:70,confirmType:"done",disabled:!1,count:!1,focus:!1,autoHeight:!1,fixed:!1,cursorSpacing:0,cursor:"",showConfirmBar:!0,selectionStart:-1,selectionEnd:-1,adjustPosition:!0,disableDefaultPadding:!1,holdKeyboard:!1,maxlength:140,border:"surround",formatter:null},toast:{zIndex:10090,loading:!1,text:"",icon:"",type:"",loadingMode:"",show:"",overlay:!1,position:"center",params:{},duration:2e3,isTab:!1,url:"",callback:null,back:!1},toolbar:{show:!0,cancelText:"取消",confirmText:"确认",cancelColor:"#909193",confirmColor:"#3c9cff",title:""},tooltip:{text:"",copyText:"",size:14,color:"#606266",bgColor:"transparent",direction:"top",zIndex:10071,showCopy:!0,buttons:[],overlay:!0,showToast:!0},transition:{show:!1,mode:"fade",duration:"300",timingFunction:"ease-out"},...{upload:{accept:"image",extension:[],capture:["album","camera"],compressed:!0,camera:"back",maxDuration:60,uploadIcon:"camera-fill",uploadIconColor:"#D3D4D6",useBeforeRead:!1,previewFullImage:!0,maxCount:52,disabled:!1,imageMode:"aspectFill",name:"",sizeType:["original","compressed"],multiple:!1,deletable:!0,maxSize:Number.MAX_VALUE,fileList:[],uploadText:"",width:80,height:80,previewImage:!0}}},Zc={toast:10090,noNetwork:10080,popup:10075,mask:10070,navbar:980,topTips:975,sticky:970,indexListSticky:965};let el="none";el="vue3",el="mp",el="weixin";const tl=new class{constructor(e={}){var t;t=e,"[object Object]"!==Object.prototype.toString.call(t)&&(e={},console.warn("设置全局参数必须接收一个Object")),this.config=Nc({...Lc,...e}),this.interceptors={request:new Bc,response:new Bc}}setConfig(e){this.config=e(this.config)}middleware(e){e=((e,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:Ec(e.header||{},t.header||{})};if(o={...o,...jc(["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=>{Pc(t[e])||(o[e]=t[e])}));else{const n=["data","timeout","dataType","responseType"];o={...o,...jc(n,e,t)}}return o})(this.config,e);const t=[Oc,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)}};vc.setConfig=function(e){vc.shallowMerge(tc,e.config||{}),vc.shallowMerge(Xc,e.props||{}),vc.shallowMerge(Gc,e.color||{}),vc.shallowMerge(Zc,e.zIndex||{})};const nl={route:wc,date:vc.timeFormat,colorGradient:Uc.colorGradient,hexToRgb:Uc.hexToRgb,rgbToHex:Uc.rgbToHex,colorToRgba:Uc.colorToRgba,test:Va,type:["primary","success","error","warning","info"],http:tl,config:tc,zIndex:Zc,debounce:function(e,t=500,n=!1){if(null!==Qc&&clearTimeout(Qc),n){const n=!Qc;Qc=setTimeout((()=>{Qc=null}),t),n&&"function"==typeof e&&e()}else Qc=setTimeout((()=>{"function"==typeof e&&e()}),t)},throttle:qc,mixin:xc,mpMixin:Sc,props:Xc,...vc,color:Gc,platform:"weixin"},ol={install:e=>{kn.$u=nl,e.config.globalProperties.$u=nl,e.mixin(xc)}},rl=e=>(t,n=Oi())=>{!Ni&&Rr(e,t,n)},il=rl(q),sl=rl(z),al=rl(H),cl=rl(J),ll=rl(G),ul=rl(re),fl=rl(se),pl=rl(ce);var dl=Object.prototype.toString;function hl(e){return"[object Array]"===dl.call(e)}function gl(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),hl(e))for(var n=0,o=e.length;n{let n={};return e.forEach((e=>{yl(t[e])||(n[e]=t[e])})),n},xl=e=>(e=>new Promise(((t,n)=>{let o=vl((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(Gu){}!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=kn.uploadFile({...s,...t,...wl(n,e)})}else if("DOWNLOAD"===e.method){const t=["timeout","filePath"];a=kn.downloadFile({...s,...wl(t,e)})}else{const t=["data","method","timeout","dataType","responseType","enableHttp2","enableQuic","enableCache","enableHttpDNS","httpDNSServiceId","enableChunked","forceCellularNetwork"];a=kn.request({...s,...wl(t,e)})}e.getTask&&e.getTask(a,e)})))(e);function Sl(){this.handlers=[]}Sl.prototype.use=function(e,t){return this.handlers.push({fulfilled:e,rejected:t}),this.handlers.length-1},Sl.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},Sl.prototype.forEach=function(e){this.handlers.forEach((t=>{null!==t&&e(t)}))};const Al=(e,t,n)=>{let o={};return e.forEach((e=>{yl(n[e])?yl(t[e])||(o[e]=t[e]):o[e]=n[e]})),o},Tl={baseURL:"",header:{},method:"GET",dataType:"json",paramsSerializer:null,responseType:"text",custom:{},timeout:6e4,validateStatus:function(e){return e>=200&&e<300},forcedJSONParsing:!0};var kl=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,c,l,u){"object"==typeof a&&(c=a.depth,l=a.prototype,u=a.includeNonEnumerable,a=a.circular);var f=[],p=[],d="undefined"!=typeof Buffer;return void 0===a&&(a=!0),void 0===c&&(c=1/0),function i(c,h){if(null===c)return null;if(0===h)return c;var g,m;if("object"!=typeof c)return c;if(e(c,t))g=new t;else if(e(c,n))g=new n;else if(e(c,o))g=new o((function(e,t){c.then((function(t){e(i(t,h-1))}),(function(e){t(i(e,h-1))}))}));else if(r.__isArray(c))g=[];else if(r.__isRegExp(c))g=new RegExp(c.source,s(c)),c.lastIndex&&(g.lastIndex=c.lastIndex);else if(r.__isDate(c))g=new Date(c.getTime());else{if(d&&Buffer.isBuffer(c))return Buffer.from?g=Buffer.from(c):(g=new Buffer(c.length),c.copy(g)),g;e(c,Error)?g=Object.create(c):void 0===l?(m=Object.getPrototypeOf(c),g=Object.create(m)):(g=Object.create(l),m=l)}if(a){var y=f.indexOf(c);if(-1!=y)return p[y];f.push(c),p.push(g)}for(var b in e(c,t)&&c.forEach((function(e,t){var n=i(t,h-1),o=i(e,h-1);g.set(n,o)})),e(c,n)&&c.forEach((function(e){var t=i(e,h-1);g.add(t)})),c){Object.getOwnPropertyDescriptor(c,b)&&(g[b]=i(c[b],h-1));try{if("undefined"===Object.getOwnPropertyDescriptor(c,b).set)continue;g[b]=i(c[b],h-1)}catch(Gu){if(Gu instanceof TypeError)continue;if(Gu instanceof ReferenceError)continue}}if(Object.getOwnPropertySymbols){var v=Object.getOwnPropertySymbols(c);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;w[a]=t,r=a}return!o&&r&&(v=r),r||!o&&v},T=function(e,t){if(S(e))return e.clone();var n="object"==typeof t?t:{};return n.date=e,n.args=arguments,new E(n)},k=b;k.l=A,k.i=S,k.w=function(e,t){return T(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var E=function(){function m(e){this.$L=A(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[x]=!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(k.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 k},y.isValid=function(){return!(this.$d.toString()===d)},y.isSame=function(e,t){var n=T(e);return this.startOf(t)<=n&&n<=this.endOf(t)},y.isAfter=function(e,t){return T(e)0,m<=g.r||!g.r){m<=1&&h>0&&(g=p[h-1]);var y=f[g.l];a&&(m=a(""+m)),l="string"==typeof y?y.replace("%d",m):y(m,o,g.l,u);break}}if(o)return l;var b=u?f.future:f.past;return"function"==typeof b?b(l):b.replace("%s",l)},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 _l=Cl,Ol={props:{src:{type:String,default:()=>Xc.avatar.src},shape:{type:String,default:()=>Xc.avatar.shape},size:{type:[String,Number],default:()=>Xc.avatar.size},mode:{type:String,default:()=>Xc.avatar.mode},text:{type:String,default:()=>Xc.avatar.text},bgColor:{type:String,default:()=>Xc.avatar.bgColor},color:{type:String,default:()=>Xc.avatar.color},fontSize:{type:[String,Number],default:()=>Xc.avatar.fontSize},icon:{type:String,default:()=>Xc.avatar.icon},mpAvatar:{type:Boolean,default:()=>Xc.avatar.mpAvatar},randomBgColor:{type:Boolean,default:()=>Xc.avatar.randomBgColor},defaultUrl:{type:String,default:()=>Xc.avatar.defaultUrl},colorIndex:{type:[String,Number],validator:e=>Va.range(e,[0,19])||""===e,default:()=>Xc.avatar.colorIndex},name:{type:String,default:()=>Xc.avatar.name}}},Bl={props:{name:{type:String,default:()=>Xc.icon.name},color:{type:String,default:()=>Xc.icon.color},size:{type:[String,Number],default:()=>Xc.icon.size},bold:{type:Boolean,default:()=>Xc.icon.bold},index:{type:[String,Number],default:()=>Xc.icon.index},hoverClass:{type:String,default:()=>Xc.icon.hoverClass},customPrefix:{type:String,default:()=>Xc.icon.customPrefix},label:{type:[String,Number],default:()=>Xc.icon.label},labelPos:{type:String,default:()=>Xc.icon.labelPos},labelSize:{type:[String,Number],default:()=>Xc.icon.labelSize},labelColor:{type:String,default:()=>Xc.icon.labelColor},space:{type:[String,Number],default:()=>Xc.icon.space},imgMode:{type:String,default:()=>Xc.icon.imgMode},width:{type:[String,Number],default:()=>Xc.icon.width},height:{type:[String,Number],default:()=>Xc.icon.height},top:{type:[String,Number],default:()=>Xc.icon.top},stop:{type:Boolean,default:()=>Xc.icon.stop}}},jl={props:{shape:{type:String,default:()=>Xc.search.shape},bgColor:{type:String,default:()=>Xc.search.bgColor},placeholder:{type:String,default:()=>Xc.search.placeholder},clearabled:{type:Boolean,default:()=>Xc.search.clearabled},focus:{type:Boolean,default:()=>Xc.search.focus},showAction:{type:Boolean,default:()=>Xc.search.showAction},actionStyle:{type:Object,default:()=>Xc.search.actionStyle},actionText:{type:String,default:()=>Xc.search.actionText},inputAlign:{type:String,default:()=>Xc.search.inputAlign},inputStyle:{type:Object,default:()=>Xc.search.inputStyle},disabled:{type:Boolean,default:()=>Xc.search.disabled},borderColor:{type:String,default:()=>Xc.search.borderColor},searchIconColor:{type:String,default:()=>Xc.search.searchIconColor},color:{type:String,default:()=>Xc.search.color},placeholderColor:{type:String,default:()=>Xc.search.placeholderColor},searchIcon:{type:String,default:()=>Xc.search.searchIcon},searchIconSize:{type:[Number,String],default:()=>Xc.search.searchIconSize},margin:{type:String,default:()=>Xc.search.margin},animation:{type:Boolean,default:()=>Xc.search.animation},modelValue:{type:String,default:()=>Xc.search.value},value:{type:String,default:()=>Xc.search.value},maxlength:{type:[String,Number],default:()=>Xc.search.maxlength},height:{type:[String,Number],default:()=>Xc.search.height},label:{type:[String,Number,null],default:()=>Xc.search.label},adjustPosition:{type:Boolean,default:()=>!0},autoBlur:{type:Boolean,default:()=>!1}}},Ll={props:{duration:{type:Number,default:()=>Xc.tabs.duration},list:{type:Array,default:()=>Xc.tabs.list},lineColor:{type:String,default:()=>Xc.tabs.lineColor},activeStyle:{type:[String,Object],default:()=>Xc.tabs.activeStyle},inactiveStyle:{type:[String,Object],default:()=>Xc.tabs.inactiveStyle},lineWidth:{type:[String,Number],default:()=>Xc.tabs.lineWidth},lineHeight:{type:[String,Number],default:()=>Xc.tabs.lineHeight},lineBgSize:{type:String,default:()=>Xc.tabs.lineBgSize},itemStyle:{type:[String,Object],default:()=>Xc.tabs.itemStyle},scrollable:{type:Boolean,default:()=>Xc.tabs.scrollable},current:{type:[Number,String],default:()=>Xc.tabs.current},keyName:{type:String,default:()=>Xc.tabs.keyName}}},Nl={props:{title:{type:[String,Number],default:()=>Xc.stepsItem.title},desc:{type:[String,Number],default:()=>Xc.stepsItem.desc},iconSize:{type:[String,Number],default:()=>Xc.stepsItem.iconSize},error:{type:Boolean,default:()=>Xc.stepsItem.error},itemStyle:{type:[Object],default:{}}}},Dl={props:{direction:{type:String,default:()=>Xc.steps.direction},current:{type:[String,Number],default:()=>Xc.steps.current},activeColor:{type:String,default:()=>Xc.steps.activeColor},inactiveColor:{type:String,default:()=>Xc.steps.inactiveColor},activeIcon:{type:String,default:()=>Xc.steps.activeIcon},inactiveIcon:{type:String,default:()=>Xc.steps.inactiveIcon},dot:{type:Boolean,default:()=>Xc.steps.dot}}},Ml={props:{show:{type:Boolean,default:()=>Xc.loadingIcon.show},color:{type:String,default:()=>Xc.loadingIcon.color},textColor:{type:String,default:()=>Xc.loadingIcon.textColor},vertical:{type:Boolean,default:()=>Xc.loadingIcon.vertical},mode:{type:String,default:()=>Xc.loadingIcon.mode},size:{type:[String,Number],default:()=>Xc.loadingIcon.size},textSize:{type:[String,Number],default:()=>Xc.loadingIcon.textSize},text:{type:[String,Number],default:()=>Xc.loadingIcon.text},timingFunction:{type:String,default:()=>Xc.loadingIcon.timingFunction},duration:{type:[String,Number],default:()=>Xc.loadingIcon.duration},inactiveColor:{type:String,default:()=>Xc.loadingIcon.inactiveColor}}},Fl={props:{name:{type:[String,Number,Boolean],default:()=>Xc.checkbox.name},shape:{type:String,default:()=>Xc.checkbox.shape},size:{type:[String,Number],default:()=>Xc.checkbox.size},checked:{type:Boolean,default:()=>Xc.checkbox.checked},disabled:{type:[String,Boolean],default:()=>Xc.checkbox.disabled},activeColor:{type:String,default:()=>Xc.checkbox.activeColor},inactiveColor:{type:String,default:()=>Xc.checkbox.inactiveColor},iconSize:{type:[String,Number],default:()=>Xc.checkbox.iconSize},iconColor:{type:String,default:()=>Xc.checkbox.iconColor},label:{type:[String,Number],default:()=>Xc.checkbox.label},labelSize:{type:[String,Number],default:()=>Xc.checkbox.labelSize},labelColor:{type:String,default:()=>Xc.checkbox.labelColor},labelDisabled:{type:[String,Boolean],default:()=>Xc.checkbox.labelDisabled},usedAlone:{type:[Boolean],default:()=>!1}}},Ul={props:{name:{type:String,default:()=>Xc.checkboxGroup.name},modelValue:{type:Array,default:()=>Xc.checkboxGroup.value},shape:{type:String,default:()=>Xc.checkboxGroup.shape},disabled:{type:Boolean,default:()=>Xc.checkboxGroup.disabled},activeColor:{type:String,default:()=>Xc.checkboxGroup.activeColor},inactiveColor:{type:String,default:()=>Xc.checkboxGroup.inactiveColor},size:{type:[String,Number],default:()=>Xc.checkboxGroup.size},placement:{type:String,default:()=>Xc.checkboxGroup.placement},labelSize:{type:[String,Number],default:()=>Xc.checkboxGroup.labelSize},labelColor:{type:[String],default:()=>Xc.checkboxGroup.labelColor},labelDisabled:{type:Boolean,default:()=>Xc.checkboxGroup.labelDisabled},iconColor:{type:String,default:()=>Xc.checkboxGroup.iconColor},iconSize:{type:[String,Number],default:()=>Xc.checkboxGroup.iconSize},iconPlacement:{type:String,default:()=>Xc.checkboxGroup.iconPlacement},borderBottom:{type:Boolean,default:()=>Xc.checkboxGroup.borderBottom}}},Rl={pages:[{path:"pages/index/index",style:{navigationBarTitleText:"首页",navigationStyle:"custom"}},{path:"pages/loading",style:{navigationBarTitleText:"加载中..."}},{path:"pages/login",style:{navigationBarTitleText:"登录/注册",navigationStyle:"custom"}},{path:"pages/data_oard/index",style:{navigationBarTitleText:"数据看板"}},{path:"pages/public/select_project/index",style:{navigationBarTitleText:"选择项目"}},{path:"pages/me/index",style:{navigationBarTitleText:"个人中心",navigationStyle:"custom"}},{path:"pages/public/asset_houses/index",style:{navigationBarTitleText:"房屋管理"}},{path:"pages/transfer/index",style:{navigationBarTitleText:"正在识别..."}}],subPackages:[{root:"WORKORDER",pages:[{path:"list/index",style:{navigationBarTitleText:"我的工单"}},{path:"list_log/index",style:{navigationBarTitleText:"提报记录"}},{path:"show_log/index",style:{navigationBarTitleText:"提报工单详情"}},{path:"update/index",style:{navigationBarTitleText:"更新进度"}},{path:"show/index",style:{navigationBarTitleText:"工单详情"}},{path:"add/index",style:{navigationBarTitleText:"新增工单"}},{path:"poster/index",style:{navigationBarTitleText:"工单收款码"}}]},{root:"ME",pages:[{path:"work_order_home/index",style:{navigationBarTitleText:"工单提报"}},{path:"update/index",style:{navigationBarTitleText:"用户信息"}},{path:"announcement/list/index",style:{navigationBarTitleText:"公告列表"}},{path:"announcement/show/index",style:{navigationBarTitleText:"公告详情"}},{path:"feedback/index",style:{navigationBarTitleText:"意见反馈"}},{path:"knowledge_qa/index",style:{navigationBarTitleText:"知识问答"}},{path:"knowledge_qa/show",style:{navigationBarTitleText:"知识详情"}},{path:"push_show/index",style:{navigationBarTitleText:"任务预览"}},{path:"instrument/list/index",style:{navigationBarTitleText:"仪表抄表"}},{path:"instrument/add/index",style:{navigationBarTitleText:"抄表"}},{path:"instrument/log/index",style:{navigationBarTitleText:"抄表记录"}},{path:"instrument/log_show/index",style:{navigationBarTitleText:"抄表记录详情"}}]},{root:"CUSTOMER",pages:[{path:"show/index",style:{navigationBarTitleText:"客户详情"}},{path:"update/index",style:{navigationBarTitleText:"客户编辑"}},{path:"assets/index",style:{navigationBarTitleText:"客户资产"}},{path:"bind_house/index",style:{navigationBarTitleText:"入户登记"}},{path:"house_list/index",style:{navigationBarTitleText:"房屋列表"}},{path:"house_select/index",style:{navigationBarTitleText:"房源列表"}},{path:"house_Identity/index",style:{navigationBarTitleText:"选择身份"}},{path:"house_Identity/success",style:{navigationBarTitleText:"绑定房屋",navigationStyle:"custom"}},{path:"bind_house_form/index",style:{navigationBarTitleText:"绑定产权人"}},{path:"bind_house_form/success",style:{navigationBarTitleText:"绑定房屋",navigationStyle:"custom"}},{path:"list_user/index",style:{navigationBarTitleText:"客户列表"}},{path:"list_house/index",style:{navigationBarTitleText:"房屋管理"}},{path:"list_bill/index",style:{navigationBarTitleText:"发送账单"}}]},{root:"BILL",pages:[{path:"outstanding_fee/index/index",style:{navigationBarTitleText:"欠费房屋"}},{path:"record/payment/index",style:{navigationBarTitleText:"缴费记录"}},{path:"record/urge_payment/index",style:{navigationBarTitleText:"催费记录"}},{path:"outstanding_fee/show/index",style:{navigationBarTitleText:"房屋详情"}},{path:"outstanding_fee/add/index",style:{navigationBarTitleText:"新增催缴记录"}},{path:"bill_details/index",style:{navigationBarTitleText:"账单详情"}},{path:"information_template/index",style:{navigationBarTitleText:"选择信息模版"}},{path:"poster/index",style:{navigationBarTitleText:"二维码收款"}},{path:"collection_record/index/index",style:{navigationBarTitleText:"催缴记录"}},{path:"collection_record/show/index",style:{navigationBarTitleText:"催缴详情"}},{path:"send_bill/index",style:{navigationBarTitleText:"账单列表"}}]},{root:"INDEX",pages:[{path:"release_items/index",style:{navigationBarTitleText:"出入登记"}},{path:"pass/index",style:{navigationBarTitleText:"出入管理"}},{path:"watermark_camera/index",style:{navigationBarTitleText:"水印相机"}},{path:"task/list/index",style:{navigationBarTitleText:"任务中心"}},{path:"task/show/index",style:{navigationBarTitleText:"任务详情"}},{path:"task/update/index",style:{navigationBarTitleText:"领取工单"}}]}],tabBar:{color:"#3D3D3D",selectedColor:"#3D3D3D",backgroundColor:"#ffffff",borderStyle:"black",list:[{pagePath:"pages/index/index",text:"首页",iconPath:"/static/tabbar/home.png",selectedIconPath:"/static/tabbar/home_active.png"},{pagePath:"pages/me/index",text:"我的",iconPath:"/static/tabbar/me.png",selectedIconPath:"/static/tabbar/me_active.png"}]},easycom:{custom:{"^u-(.*)":"uview-plus/components/u-$1/u-$1.vue","^up-(.*)":"uview-plus/components/u-$1/u-$1.vue","^u-([^-].*)":"uview-plus/components/u-$1/u-$1.vue","^cc-(.*)":"@/common/components/cc-$1/cc-$1.vue","^nchl-(.*)":"@/components/my-$1/nchl-$1.vue"}},globalStyle:{navigationBarBackgroundColor:"#fff",navigationBarTextStyle:"black"}};function Ql(e,t,n){return e(n={path:t,exports:{},require:function(e,t){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(null==t&&n.path)}},n.exports),n.exports}var ql=Ql((function(e,t){var n;e.exports=(n=n||function(e){var t=Object.create||function(){function e(){}return function(t){var n;return e.prototype=t,n=new e,e.prototype=null,n}}(),n={},o=n.lib={},r=o.Base={extend:function(e){var n=t(this);return e&&n.mixIn(e),n.hasOwnProperty("init")&&this.init!==n.init||(n.init=function(){n.$super.init.apply(this,arguments)}),n.init.prototype=n,n.$super=this,n},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}},i=o.WordArray=r.extend({init:function(e,t){e=this.words=e||[],this.sigBytes=null!=t?t:4*e.length},toString:function(e){return(e||a).stringify(this)},concat:function(e){var t=this.words,n=e.words,o=this.sigBytes,r=e.sigBytes;if(this.clamp(),o%4)for(var i=0;i>>2]>>>24-i%4*8&255;t[o+i>>>2]|=s<<24-(o+i)%4*8}else for(i=0;i>>2]=n[i>>>2];return this.sigBytes+=r,this},clamp:function(){var t=this.words,n=this.sigBytes;t[n>>>2]&=4294967295<<32-n%4*8,t.length=e.ceil(n/4)},clone:function(){var e=r.clone.call(this);return e.words=this.words.slice(0),e},random:function(t){for(var n,o=[],r=function(t){var n=987654321,o=4294967295;return function(){var r=((n=36969*(65535&n)+(n>>16)&o)<<16)+(t=18e3*(65535&t)+(t>>16)&o)&o;return r/=4294967296,(r+=.5)*(e.random()>.5?1:-1)}},s=0;s>>2]>>>24-r%4*8&255;o.push((i>>>4).toString(16)),o.push((15&i).toString(16))}return o.join("")},parse:function(e){for(var t=e.length,n=[],o=0;o>>3]|=parseInt(e.substr(o,2),16)<<24-o%8*4;return new i.init(n,t/2)}},c=s.Latin1={stringify:function(e){for(var t=e.words,n=e.sigBytes,o=[],r=0;r>>2]>>>24-r%4*8&255;o.push(String.fromCharCode(i))}return o.join("")},parse:function(e){for(var t=e.length,n=[],o=0;o>>2]|=(255&e.charCodeAt(o))<<24-o%4*8;return new i.init(n,t)}},l=s.Utf8={stringify:function(e){try{return decodeURIComponent(escape(c.stringify(e)))}catch(t){throw new Error("Malformed UTF-8 data")}},parse:function(e){return c.parse(unescape(encodeURIComponent(e)))}},u=o.BufferedBlockAlgorithm=r.extend({reset:function(){this._data=new i.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=l.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var n=this._data,o=n.words,r=n.sigBytes,s=this.blockSize,a=r/(4*s),c=(a=t?e.ceil(a):e.max((0|a)-this._minBufferSize,0))*s,l=e.min(4*c,r);if(c){for(var u=0;u>>24)|4278255360&(r<<24|r>>>8)}var i=this._hash.words,s=e[t+0],c=e[t+1],d=e[t+2],h=e[t+3],g=e[t+4],m=e[t+5],y=e[t+6],b=e[t+7],v=e[t+8],w=e[t+9],x=e[t+10],S=e[t+11],A=e[t+12],T=e[t+13],k=e[t+14],E=e[t+15],P=i[0],I=i[1],C=i[2],_=i[3];P=l(P,I,C,_,s,7,a[0]),_=l(_,P,I,C,c,12,a[1]),C=l(C,_,P,I,d,17,a[2]),I=l(I,C,_,P,h,22,a[3]),P=l(P,I,C,_,g,7,a[4]),_=l(_,P,I,C,m,12,a[5]),C=l(C,_,P,I,y,17,a[6]),I=l(I,C,_,P,b,22,a[7]),P=l(P,I,C,_,v,7,a[8]),_=l(_,P,I,C,w,12,a[9]),C=l(C,_,P,I,x,17,a[10]),I=l(I,C,_,P,S,22,a[11]),P=l(P,I,C,_,A,7,a[12]),_=l(_,P,I,C,T,12,a[13]),C=l(C,_,P,I,k,17,a[14]),P=u(P,I=l(I,C,_,P,E,22,a[15]),C,_,c,5,a[16]),_=u(_,P,I,C,y,9,a[17]),C=u(C,_,P,I,S,14,a[18]),I=u(I,C,_,P,s,20,a[19]),P=u(P,I,C,_,m,5,a[20]),_=u(_,P,I,C,x,9,a[21]),C=u(C,_,P,I,E,14,a[22]),I=u(I,C,_,P,g,20,a[23]),P=u(P,I,C,_,w,5,a[24]),_=u(_,P,I,C,k,9,a[25]),C=u(C,_,P,I,h,14,a[26]),I=u(I,C,_,P,v,20,a[27]),P=u(P,I,C,_,T,5,a[28]),_=u(_,P,I,C,d,9,a[29]),C=u(C,_,P,I,b,14,a[30]),P=f(P,I=u(I,C,_,P,A,20,a[31]),C,_,m,4,a[32]),_=f(_,P,I,C,v,11,a[33]),C=f(C,_,P,I,S,16,a[34]),I=f(I,C,_,P,k,23,a[35]),P=f(P,I,C,_,c,4,a[36]),_=f(_,P,I,C,g,11,a[37]),C=f(C,_,P,I,b,16,a[38]),I=f(I,C,_,P,x,23,a[39]),P=f(P,I,C,_,T,4,a[40]),_=f(_,P,I,C,s,11,a[41]),C=f(C,_,P,I,h,16,a[42]),I=f(I,C,_,P,y,23,a[43]),P=f(P,I,C,_,w,4,a[44]),_=f(_,P,I,C,A,11,a[45]),C=f(C,_,P,I,E,16,a[46]),P=p(P,I=f(I,C,_,P,d,23,a[47]),C,_,s,6,a[48]),_=p(_,P,I,C,b,10,a[49]),C=p(C,_,P,I,k,15,a[50]),I=p(I,C,_,P,m,21,a[51]),P=p(P,I,C,_,A,6,a[52]),_=p(_,P,I,C,h,10,a[53]),C=p(C,_,P,I,x,15,a[54]),I=p(I,C,_,P,c,21,a[55]),P=p(P,I,C,_,v,6,a[56]),_=p(_,P,I,C,E,10,a[57]),C=p(C,_,P,I,y,15,a[58]),I=p(I,C,_,P,T,21,a[59]),P=p(P,I,C,_,g,6,a[60]),_=p(_,P,I,C,S,10,a[61]),C=p(C,_,P,I,d,15,a[62]),I=p(I,C,_,P,w,21,a[63]),i[0]=i[0]+P|0,i[1]=i[1]+I|0,i[2]=i[2]+C|0,i[3]=i[3]+_|0},_doFinalize:function(){var t=this._data,n=t.words,o=8*this._nDataBytes,r=8*t.sigBytes;n[r>>>5]|=128<<24-r%32;var i=e.floor(o/4294967296),s=o;n[15+(r+64>>>9<<4)]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8),n[14+(r+64>>>9<<4)]=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),t.sigBytes=4*(n.length+1),this._process();for(var a=this._hash,c=a.words,l=0;l<4;l++){var u=c[l];c[l]=16711935&(u<<8|u>>>24)|4278255360&(u<<24|u>>>8)}return a},clone:function(){var e=i.clone.call(this);return e._hash=this._hash.clone(),e}});function l(e,t,n,o,r,i,s){var a=e+(t&n|~t&o)+r+s;return(a<>>32-i)+t}function u(e,t,n,o,r,i,s){var a=e+(t&o|n&~o)+r+s;return(a<>>32-i)+t}function f(e,t,n,o,r,i,s){var a=e+(t^n^o)+r+s;return(a<>>32-i)+t}function p(e,t,n,o,r,i,s){var a=e+(n^(t|~o))+r+s;return(a<>>32-i)+t}t.MD5=i._createHelper(c),t.HmacMD5=i._createHmacHelper(c)}(Math),n.MD5)})),Ql((function(e,t){var n,o,r;e.exports=(o=(n=zl).lib.Base,r=n.enc.Utf8,void(n.algo.HMAC=o.extend({init:function(e,t){e=this._hasher=new e.init,"string"==typeof t&&(t=r.parse(t));var n=e.blockSize,o=4*n;t.sigBytes>o&&(t=e.finalize(t)),t.clamp();for(var i=this._oKey=t.clone(),s=this._iKey=t.clone(),a=i.words,c=s.words,l=0;l>>2]>>>24-i%4*8&255)<<16|(t[i+1>>>2]>>>24-(i+1)%4*8&255)<<8|t[i+2>>>2]>>>24-(i+2)%4*8&255,a=0;a<4&&i+.75*a>>6*(3-a)&63));var c=o.charAt(64);if(c)for(;r.length%4;)r.push(c);return r.join("")},parse:function(e){var t=e.length,n=this._map,o=this._reverseMap;if(!o){o=this._reverseMap=[];for(var i=0;i>>6-s%4*2;o[i>>>2]|=(a|c)<<24-i%4*8,i++}return r.create(o,i)}(e,t,o)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="},n.enc.Base64)}));const Vl="FUNCTION",Kl="pending",Jl="rejected";function Yl(e){return Object.prototype.toString.call(e).slice(8,-1).toLowerCase()}function Gl(e){return"object"===Yl(e)}function Xl(e){return"function"==typeof e}function Zl(e){return function(){try{return e.apply(e,arguments)}catch(t){console.error(t)}}}const eu="REJECTED",tu="NOT_PENDING";class nu{constructor({createPromise:e,retryRule:t=eu}={}){this.createPromise=e,this.status=null,this.promise=null,this.retryRule=t}get needRetry(){if(!this.status)return!0;switch(this.retryRule){case eu:return this.status===Jl;case tu:return this.status!==Kl}}exec(){return this.needRetry?(this.status=Kl,this.promise=this.createPromise().then((e=>(this.status="fullfilled",Promise.resolve(e))),(e=>(this.status=Jl,Promise.reject(e)))),this.promise):this.promise}}function ou(e){return e&&"string"==typeof e?JSON.parse(e):e}const ru=ou([]),iu="mp-weixin";ou("");const su=ou("[]")||[];let au="";try{au=""}catch(Gu){}let cu={};function lu(e,t={}){var n,o;return n=cu,o=e,Object.prototype.hasOwnProperty.call(n,o)||(cu[e]=t),cu[e]}const uu=["invoke","success","fail","complete"],fu=lu("_globalUniCloudInterceptor");function pu(e,t){fu[e]||(fu[e]={}),Gl(t)&&Object.keys(t).forEach((n=>{uu.indexOf(n)>-1&&function(e,t,n){let o=fu[e][t];o||(o=fu[e][t]=[]),-1===o.indexOf(n)&&Xl(n)&&o.push(n)}(e,n,t[n])}))}function du(e,t){fu[e]||(fu[e]={}),Gl(t)?Object.keys(t).forEach((n=>{uu.indexOf(n)>-1&&function(e,t,n){const o=fu[e][t];if(!o)return;const r=o.indexOf(n);r>-1&&o.splice(r,1)}(e,n,t[n])})):delete fu[e]}function hu(e,t){return e&&0!==e.length?e.reduce(((e,n)=>e.then((()=>n(t)))),Promise.resolve()):Promise.resolve()}function gu(e,t){return fu[e]&&fu[e][t]||[]}function mu(e){pu("callObject",e)}const yu=lu("_globalUniCloudListener"),bu="response",vu="needLogin",wu="refreshToken",xu="clientdb",Su="cloudfunction",Au="cloudobject";function Tu(e){return yu[e]||(yu[e]=[]),yu[e]}function ku(e,t){const n=Tu(e);n.includes(t)||n.push(t)}function Eu(e,t){const n=Tu(e),o=n.indexOf(t);-1!==o&&n.splice(o,1)}function Pu(e,t){const n=Tu(e);for(let o=0;o{Cu&&e(),function t(){if("function"==typeof getCurrentPages){const t=getCurrentPages();t&&t[0]&&(Cu=!0,e())}Cu||setTimeout((()=>{t()}),30)}()})),Iu)}function Ou(e){const t={};for(const n in e){const o=e[n];Xl(o)&&(t[n]=Zl(o))}return t}class Bu extends Error{constructor(e){super(e.message),this.errMsg=e.message||e.errMsg||"unknown system error",this.code=this.errCode=e.code||e.errCode||"SYSTEM_ERROR",this.errSubject=this.subject=e.subject||e.errSubject,this.cause=e.cause,this.requestId=e.requestId}toJson(e=0){if(!(e>=10))return e++,{errCode:this.errCode,errMsg:this.errMsg,errSubject:this.errSubject,cause:this.cause&&this.cause.toJson?this.cause.toJson(e):this.cause}}}var ju={request:e=>kn.request(e),uploadFile:e=>kn.uploadFile(e),setStorageSync:(e,t)=>kn.setStorageSync(e,t),getStorageSync:e=>kn.getStorageSync(e),removeStorageSync:e=>kn.removeStorageSync(e),clearStorageSync:()=>kn.clearStorageSync()};function Lu(e){return e&&Lu(e.__v_raw)||e}function Nu(){return{token:ju.getStorageSync("uni_id_token")||ju.getStorageSync("uniIdToken"),tokenExpired:ju.getStorageSync("uni_id_token_expired")}}function Du({token:e,tokenExpired:t}={}){e&&ju.setStorageSync("uni_id_token",e),t&&ju.setStorageSync("uni_id_token_expired",t)}let Mu,Fu;function Uu(){return Mu||(Mu=kn.getSystemInfoSync()),Mu}function Ru(){let e,t;try{if(kn.getLaunchOptionsSync){if(kn.getLaunchOptionsSync.toString().indexOf("not yet implemented")>-1)return;const{scene:n,channel:o}=kn.getLaunchOptionsSync();e=o,t=n}}catch(n){}return{channel:e,scene:t}}function Qu(){const e=kn.getLocale&&kn.getLocale()||"en";if(Fu)return{...Fu,locale:e,LOCALE:e};const t=Uu(),{deviceId:n,osName:o,uniPlatform:r,appId:i}=t,s=["pixelRatio","brand","model","system","language","version","platform","host","SDKVersion","swanNativeVersion","app","AppPlatform","fontSizeSetting"];for(let a=0;a{t(Object.assign(e,{complete(e){e||(e={});const t=e.data&&e.data.header&&e.data.header["x-serverless-request-id"]||e.header&&e.header["request-id"];if(!e.statusCode||e.statusCode>=400)return o(new Bu({code:"SYS_ERR",message:e.errMsg||"request:fail",requestId:t}));const r=e.data;if(r.error)return o(new Bu({code:r.error.code,message:r.error.message,requestId:t}));r.result=r.data,r.requestId=t,delete r.data,n(r)}}))}))},Hu=function(e){return $l.stringify(Wl.parse(e))},Wu={"uniCloud.init.paramRequired":"{param} required","uniCloud.uploadFile.fileError":"filePath should be instance of File"};const{t:$u}=function(e,t={},n,o){"string"!=typeof e&&([e,t]=[t,e]),"string"!=typeof e&&(e=void 0!==kn&&kn.getLocale?kn.getLocale():"undefined"!=typeof global&&global.getLocale?global.getLocale():Le),"string"!=typeof n&&(n="undefined"!=typeof __uniConfig&&__uniConfig.fallbackLocale||Le);const r=new Ue({locale:e,fallbackLocale:n,messages:t,watcher:o});let i=(e,t)=>{if("function"!=typeof getApp)i=function(e,t){return r.t(e,t)};else{let e=!1;i=function(t,n){const o=getApp().$vm;return o&&(o.$locale,e||(e=!0,function(e,t){e.$watchLocale?e.$watchLocale((e=>{t.setLocale(e)})):e.$watch((()=>e.$locale),(e=>{t.setLocale(e)}))}(o,r))),r.t(t,n)}}return i(e,t)};return{i18n:r,f:(e,t,n)=>r.f(e,t,n),t:(e,t)=>i(e,t),add:(e,t,n=!0)=>r.add(e,t,n),watch:e=>r.watchLocale(e),getLocale:()=>r.getLocale(),setLocale:e=>r.setLocale(e)}}({"zh-Hans":{"uniCloud.init.paramRequired":"缺少参数:{param}","uniCloud.uploadFile.fileError":"filePath应为File对象"},"zh-Hant":{"uniCloud.init.paramRequired":"缺少参数:{param}","uniCloud.uploadFile.fileError":"filePath应为File对象"},en:Wu,fr:{"uniCloud.init.paramRequired":"{param} required","uniCloud.uploadFile.fileError":"filePath should be instance of File"},es:{"uniCloud.init.paramRequired":"{param} required","uniCloud.uploadFile.fileError":"filePath should be instance of File"},ja:Wu},"zh-Hans");var Vu=class{constructor(e){["spaceId","clientSecret"].forEach((t=>{if(!Object.prototype.hasOwnProperty.call(e,t))throw new Error($u("uniCloud.init.paramRequired",{param:t}))})),this.config=Object.assign({},{endpoint:0===e.spaceId.indexOf("mp-")?"https://api.next.bspapp.com":"https://api.bspapp.com"},e),this.config.provider="aliyun",this.config.requestUrl=this.config.endpoint+"/client",this.config.envType=this.config.envType||"public",this.config.accessTokenKey="access_token_"+this.config.spaceId,this.adapter=ju,this._getAccessTokenPromiseHub=new nu({createPromise:()=>this.requestAuth(this.setupRequest({method:"serverless.auth.user.anonymousAuthorize",params:"{}"},"auth")).then((e=>{if(!e.result||!e.result.accessToken)throw new Bu({code:"AUTH_FAILED",message:"获取accessToken失败"});this.setAccessToken(e.result.accessToken)})),retryRule:tu})}get hasAccessToken(){return!!this.accessToken}setAccessToken(e){this.accessToken=e}requestWrapped(e){return zu(e,this.adapter.request)}requestAuth(e){return this.requestWrapped(e)}request(e,t){return Promise.resolve().then((()=>this.hasAccessToken?t?this.requestWrapped(e):this.requestWrapped(e).catch((t=>new Promise(((e,n)=>{!t||"GATEWAY_INVALID_TOKEN"!==t.code&&"InvalidParameter.InvalidToken"!==t.code?n(t):e()})).then((()=>this.getAccessToken())).then((()=>{const t=this.rebuildRequest(e);return this.request(t,!0)})))):this.getAccessToken().then((()=>{const t=this.rebuildRequest(e);return this.request(t,!0)}))))}rebuildRequest(e){const t=Object.assign({},e);return t.data.token=this.accessToken,t.header["x-basement-token"]=this.accessToken,t.header["x-serverless-sign"]=qu(t.data,this.config.clientSecret),t}setupRequest(e,t){const n=Object.assign({},e,{spaceId:this.config.spaceId,timestamp:Date.now()}),o={"Content-Type":"application/json"};return"auth"!==t&&(n.token=this.accessToken,o["x-basement-token"]=this.accessToken),o["x-serverless-sign"]=qu(n,this.config.clientSecret),{url:this.config.requestUrl,method:"POST",data:n,dataType:"json",header:o}}getAccessToken(){return this._getAccessTokenPromiseHub.exec()}async authorize(){await this.getAccessToken()}callFunction(e){const t={method:"serverless.function.runtime.invoke",params:JSON.stringify({functionTarget:e.name,functionArgs:e.data||{}})};return this.request(this.setupRequest(t))}getOSSUploadOptionsFromPath(e){const t={method:"serverless.file.resource.generateProximalSign",params:JSON.stringify(e)};return this.request(this.setupRequest(t))}uploadFileToOSS({url:e,formData:t,name:n,filePath:o,fileType:r,onUploadProgress:i}){return new Promise(((s,a)=>{const c=this.adapter.uploadFile({url:e,formData:t,name:n,filePath:o,fileType:r,header:{"X-OSS-server-side-encrpytion":"AES256"},success(e){e&&e.statusCode<400?s(e):a(new Bu({code:"UPLOAD_FAILED",message:"文件上传失败"}))},fail(e){a(new Bu({code:e.code||"UPLOAD_FAILED",message:e.message||e.errMsg||"文件上传失败"}))}});"function"==typeof i&&c&&"function"==typeof c.onProgressUpdate&&c.onProgressUpdate((e=>{i({loaded:e.totalBytesSent,total:e.totalBytesExpectedToSend})}))}))}reportOSSUpload(e){const t={method:"serverless.file.resource.report",params:JSON.stringify(e)};return this.request(this.setupRequest(t))}async uploadFile({filePath:e,cloudPath:t,fileType:n="image",cloudPathAsRealPath:o=!1,onUploadProgress:r,config:i}){if("string"!==Yl(t))throw new Bu({code:"INVALID_PARAM",message:"cloudPath必须为字符串类型"});if(!(t=t.trim()))throw new Bu({code:"INVALID_PARAM",message:"cloudPath不可为空"});if(/:\/\//.test(t))throw new Bu({code:"INVALID_PARAM",message:"cloudPath不合法"});const s=i&&i.envType||this.config.envType;if(o&&("/"!==t[0]&&(t="/"+t),t.indexOf("\\")>-1))throw new Bu({code:"INVALID_PARAM",message:"使用cloudPath作为路径时,cloudPath不可包含“\\”"});const a=(await this.getOSSUploadOptionsFromPath({env:s,filename:o?t.split("/").pop():t,fileId:o?t:void 0})).result,c="https://"+a.cdnDomain+"/"+a.ossPath,{securityToken:l,accessKeyId:u,signature:f,host:p,ossPath:d,id:h,policy:g,ossCallbackUrl:m}=a,y={"Cache-Control":"max-age=2592000","Content-Disposition":"attachment",OSSAccessKeyId:u,Signature:f,host:p,id:h,key:d,policy:g,success_action_status:200};if(l&&(y["x-oss-security-token"]=l),m){const e=JSON.stringify({callbackUrl:m,callbackBody:JSON.stringify({fileId:h,spaceId:this.config.spaceId}),callbackBodyType:"application/json"});y.callback=Hu(e)}const b={url:"https://"+a.host,formData:y,fileName:"file",name:"file",filePath:e,fileType:n};if(await this.uploadFileToOSS(Object.assign({},b,{onUploadProgress:r})),m)return{success:!0,filePath:e,fileID:c};if((await this.reportOSSUpload({id:h})).success)return{success:!0,filePath:e,fileID:c};throw new Bu({code:"UPLOAD_FAILED",message:"文件上传失败"})}getTempFileURL({fileList:e}={}){return new Promise(((t,n)=>{Array.isArray(e)&&0!==e.length||n(new Bu({code:"INVALID_PARAM",message:"fileList的元素必须是非空的字符串"})),t({fileList:e.map((e=>({fileID:e,tempFileURL:e})))})}))}async getFileInfo({fileList:e}={}){if(!Array.isArray(e)||0===e.length)throw new Bu({code:"INVALID_PARAM",message:"fileList的元素必须是非空的字符串"});const t={method:"serverless.file.resource.info",params:JSON.stringify({id:e.map((e=>e.split("?")[0])).join(",")})};return{fileList:(await this.request(this.setupRequest(t))).result}}},Ku={init(e){const t=new Vu(e),n={signInAnonymously:function(){return t.authorize()},getLoginState:function(){return Promise.resolve(!1)}};return t.auth=function(){return n},t.customAuth=t.auth,t}};const Ju="undefined"!=typeof location&&"http:"===location.protocol?"http:":"https:";var Yu,Gu;(Gu=Yu||(Yu={})).local="local",Gu.none="none",Gu.session="session";var Xu=function(){};const Zu=()=>{let e;if(!Promise){e=()=>{},e.promise={};const t=()=>{throw new Bu({message:'Your Node runtime does support ES6 Promises. Set "global.Promise" to your preferred implementation of promises.'})};return Object.defineProperty(e.promise,"then",{get:t}),Object.defineProperty(e.promise,"catch",{get:t}),e}const t=new Promise(((t,n)=>{e=(e,o)=>e?n(e):t(o)}));return e.promise=t,e};function ef(e){return void 0===e}function tf(e){return"[object Null]"===Object.prototype.toString.call(e)}var nf;!function(e){e.WEB="web",e.WX_MP="wx_mp"}(nf||(nf={}));const of={adapter:null,runtime:void 0},rf=["anonymousUuidKey"];class sf extends Xu{constructor(){super(),of.adapter.root.tcbObject||(of.adapter.root.tcbObject={})}setItem(e,t){of.adapter.root.tcbObject[e]=t}getItem(e){return of.adapter.root.tcbObject[e]}removeItem(e){delete of.adapter.root.tcbObject[e]}clear(){delete of.adapter.root.tcbObject}}function af(e,t){switch(e){case"local":return t.localStorage||new sf;case"none":return new sf;default:return t.sessionStorage||new sf}}class cf{constructor(e){if(!this._storage){this._persistence=of.adapter.primaryStorage||e.persistence,this._storage=af(this._persistence,of.adapter);const t=`access_token_${e.env}`,n=`access_token_expire_${e.env}`,o=`refresh_token_${e.env}`,r=`anonymous_uuid_${e.env}`,i=`login_type_${e.env}`,s=`user_info_${e.env}`;this.keys={accessTokenKey:t,accessTokenExpireKey:n,refreshTokenKey:o,anonymousUuidKey:r,loginTypeKey:i,userInfoKey:s}}}updatePersistence(e){if(e===this._persistence)return;const t="local"===this._persistence;this._persistence=e;const n=af(e,of.adapter);for(const o in this.keys){const e=this.keys[o];if(t&&rf.includes(o))continue;const r=this._storage.getItem(e);ef(r)||tf(r)||(n.setItem(e,r),this._storage.removeItem(e))}this._storage=n}setStore(e,t,n){if(!this._storage)return;const o={version:n||"localCachev1",content:t},r=JSON.stringify(o);try{this._storage.setItem(e,r)}catch(i){throw i}}getStore(e,t){try{if(!this._storage)return}catch(o){return""}t=t||"localCachev1";const n=this._storage.getItem(e);return n&&n.indexOf(t)>=0?JSON.parse(n).content:""}removeStore(e){this._storage.removeItem(e)}}const lf={},uf={};function ff(e){return lf[e]}class pf{constructor(e,t){this.data=t||null,this.name=e}}class df extends pf{constructor(e,t){super("error",{error:e,data:t}),this.error=e}}const hf=new class{constructor(){this._listeners={}}on(e,t){return n=e,o=t,(r=this._listeners)[n]=r[n]||[],r[n].push(o),this;var n,o,r}off(e,t){return function(e,t,n){if(n&&n[e]){const o=n[e].indexOf(t);-1!==o&&n[e].splice(o,1)}}(e,t,this._listeners),this}fire(e,t){if(e instanceof df)return console.error(e.error),this;const n="string"==typeof e?new pf(e,t||{}):e,o=n.name;if(this._listens(o)){n.target=this;const e=this._listeners[o]?[...this._listeners[o]]:[];for(const t of e)t.call(this,n)}return this}_listens(e){return this._listeners[e]&&this._listeners[e].length>0}};function gf(e,t){hf.on(e,t)}function mf(e,t={}){hf.fire(e,t)}function yf(e,t){hf.off(e,t)}const bf="loginStateChanged",vf="loginStateExpire",wf="loginTypeChanged",xf="anonymousConverted",Sf="refreshAccessToken";var Af;!function(e){e.ANONYMOUS="ANONYMOUS",e.WECHAT="WECHAT",e.WECHAT_PUBLIC="WECHAT-PUBLIC",e.WECHAT_OPEN="WECHAT-OPEN",e.CUSTOM="CUSTOM",e.EMAIL="EMAIL",e.USERNAME="USERNAME",e.NULL="NULL"}(Af||(Af={}));const Tf=["auth.getJwt","auth.logout","auth.signInWithTicket","auth.signInAnonymously","auth.signIn","auth.fetchAccessTokenWithRefreshToken","auth.signUpWithEmailAndPassword","auth.activateEndUserMail","auth.sendPasswordResetEmail","auth.resetPasswordWithToken","auth.isUsernameRegistered"],kf={"X-SDK-Version":"1.3.5"};function Ef(e,t,n){const o=e[t];e[t]=function(t){const r={},i={};n.forEach((n=>{const{data:o,headers:s}=n.call(e,t);Object.assign(r,o),Object.assign(i,s)}));const s=t.data;return s&&(()=>{var e;if(e=s,"[object FormData]"!==Object.prototype.toString.call(e))t.data={...s,...r};else for(const t in r)s.append(t,r[t])})(),t.headers={...t.headers||{},...i},o.call(e,t)}}function Pf(){const e=Math.random().toString(16).slice(2);return{data:{seqId:e},headers:{...kf,"x-seqid":e}}}class If{constructor(e={}){var t;this.config=e,this._reqClass=new of.adapter.reqClass({timeout:this.config.timeout,timeoutMsg:`请求在${this.config.timeout/1e3}s内未完成,已中断`,restrictedMethods:["post"]}),this._cache=ff(this.config.env),this._localCache=(t=this.config.env,uf[t]),Ef(this._reqClass,"post",[Pf]),Ef(this._reqClass,"upload",[Pf]),Ef(this._reqClass,"download",[Pf])}async post(e){return await this._reqClass.post(e)}async upload(e){return await this._reqClass.upload(e)}async download(e){return await this._reqClass.download(e)}async refreshAccessToken(){let e,t;this._refreshAccessTokenPromise||(this._refreshAccessTokenPromise=this._refreshAccessToken());try{e=await this._refreshAccessTokenPromise}catch(n){t=n}if(this._refreshAccessTokenPromise=null,this._shouldRefreshAccessTokenHook=null,t)throw t;return e}async _refreshAccessToken(){const{accessTokenKey:e,accessTokenExpireKey:t,refreshTokenKey:n,loginTypeKey:o,anonymousUuidKey:r}=this._cache.keys;this._cache.removeStore(e),this._cache.removeStore(t);let i=this._cache.getStore(n);if(!i)throw new Bu({message:"未登录CloudBase"});const s={refresh_token:i},a=await this.request("auth.fetchAccessTokenWithRefreshToken",s);if(a.data.code){const{code:e}=a.data;if("SIGN_PARAM_INVALID"===e||"REFRESH_TOKEN_EXPIRED"===e||"INVALID_REFRESH_TOKEN"===e){if(this._cache.getStore(o)===Af.ANONYMOUS&&"INVALID_REFRESH_TOKEN"===e){const e=this._cache.getStore(r),t=this._cache.getStore(n),o=await this.send("auth.signInAnonymously",{anonymous_uuid:e,refresh_token:t});return this.setRefreshToken(o.refresh_token),this._refreshAccessToken()}mf(vf),this._cache.removeStore(n)}throw new Bu({code:a.data.code,message:`刷新access token失败:${a.data.code}`})}if(a.data.access_token)return mf(Sf),this._cache.setStore(e,a.data.access_token),this._cache.setStore(t,a.data.access_token_expire+Date.now()),{accessToken:a.data.access_token,accessTokenExpire:a.data.access_token_expire};a.data.refresh_token&&(this._cache.removeStore(n),this._cache.setStore(n,a.data.refresh_token),this._refreshAccessToken())}async getAccessToken(){const{accessTokenKey:e,accessTokenExpireKey:t,refreshTokenKey:n}=this._cache.keys;if(!this._cache.getStore(n))throw new Bu({message:"refresh token不存在,登录状态异常"});let o=this._cache.getStore(e),r=this._cache.getStore(t),i=!0;return this._shouldRefreshAccessTokenHook&&!(await this._shouldRefreshAccessTokenHook(o,r))&&(i=!1),(!o||!r||r{e.wxOpenId&&e.wxPublicId&&(t=!0)})),{users:n,hasPrimaryUid:t}}setPrimaryUid(e){return this._request.send("auth.setPrimaryUid",{uid:e})}unlink(e){return this._request.send("auth.unlink",{platform:e})}async update(e){const{nickName:t,gender:n,avatarUrl:o,province:r,country:i,city:s}=e,{data:a}=await this._request.send("auth.updateUserInfo",{nickName:t,gender:n,avatarUrl:o,province:r,country:i,city:s});this.setLocalUserInfo(a)}async refresh(){const{data:e}=await this._request.send("auth.getUserInfo",{});return this.setLocalUserInfo(e),e}setUserInfo(){const{userInfoKey:e}=this._cache.keys,t=this._cache.getStore(e);["uid","loginType","openid","wxOpenId","wxPublicId","unionId","qqMiniOpenId","email","hasPassword","customUserId","nickName","gender","avatarUrl"].forEach((e=>{this[e]=t[e]})),this.location={country:t.country,province:t.province,city:t.city}}setLocalUserInfo(e){const{userInfoKey:t}=this._cache.keys;this._cache.setStore(t,e),this.setUserInfo()}}class jf{constructor(e){if(!e)throw new Bu({code:"PARAM_ERROR",message:"envId is not defined"});this._cache=ff(e);const{refreshTokenKey:t,accessTokenKey:n,accessTokenExpireKey:o}=this._cache.keys,r=this._cache.getStore(t),i=this._cache.getStore(n),s=this._cache.getStore(o);this.credential={refreshToken:r,accessToken:i,accessTokenExpire:s},this.user=new Bf(e)}get isAnonymousAuth(){return this.loginType===Af.ANONYMOUS}get isCustomAuth(){return this.loginType===Af.CUSTOM}get isWeixinAuth(){return this.loginType===Af.WECHAT||this.loginType===Af.WECHAT_OPEN||this.loginType===Af.WECHAT_PUBLIC}get loginType(){return this._cache.getStore(this._cache.keys.loginTypeKey)}}class Lf extends Of{async signIn(){this._cache.updatePersistence("local");const{anonymousUuidKey:e,refreshTokenKey:t}=this._cache.keys,n=this._cache.getStore(e)||void 0,o=this._cache.getStore(t)||void 0,r=await this._request.send("auth.signInAnonymously",{anonymous_uuid:n,refresh_token:o});if(r.uuid&&r.refresh_token){this._setAnonymousUUID(r.uuid),this.setRefreshToken(r.refresh_token),await this._request.refreshAccessToken(),mf(bf),mf(wf,{env:this.config.env,loginType:Af.ANONYMOUS,persistence:"local"});const e=new jf(this.config.env);return await e.user.refresh(),e}throw new Bu({message:"匿名登录失败"})}async linkAndRetrieveDataWithTicket(e){const{anonymousUuidKey:t,refreshTokenKey:n}=this._cache.keys,o=this._cache.getStore(t),r=this._cache.getStore(n),i=await this._request.send("auth.linkAndRetrieveDataWithTicket",{anonymous_uuid:o,refresh_token:r,ticket:e});if(i.refresh_token)return this._clearAnonymousUUID(),this.setRefreshToken(i.refresh_token),await this._request.refreshAccessToken(),mf(xf,{env:this.config.env}),mf(wf,{loginType:Af.CUSTOM,persistence:"local"}),{credential:{refreshToken:i.refresh_token}};throw new Bu({message:"匿名转化失败"})}_setAnonymousUUID(e){const{anonymousUuidKey:t,loginTypeKey:n}=this._cache.keys;this._cache.removeStore(t),this._cache.setStore(t,e),this._cache.setStore(n,Af.ANONYMOUS)}_clearAnonymousUUID(){this._cache.removeStore(this._cache.keys.anonymousUuidKey)}}class Nf extends Of{async signIn(e){if("string"!=typeof e)throw new Bu({code:"PARAM_ERROR",message:"ticket must be a string"});const{refreshTokenKey:t}=this._cache.keys,n=await this._request.send("auth.signInWithTicket",{ticket:e,refresh_token:this._cache.getStore(t)||""});if(n.refresh_token)return this.setRefreshToken(n.refresh_token),await this._request.refreshAccessToken(),mf(bf),mf(wf,{env:this.config.env,loginType:Af.CUSTOM,persistence:this.config.persistence}),await this.refreshUserInfo(),new jf(this.config.env);throw new Bu({message:"自定义登录失败"})}}class Df extends Of{async signIn(e,t){if("string"!=typeof e)throw new Bu({code:"PARAM_ERROR",message:"email must be a string"});const{refreshTokenKey:n}=this._cache.keys,o=await this._request.send("auth.signIn",{loginType:"EMAIL",email:e,password:t,refresh_token:this._cache.getStore(n)||""}),{refresh_token:r,access_token:i,access_token_expire:s}=o;if(r)return this.setRefreshToken(r),i&&s?this.setAccessToken(i,s):await this._request.refreshAccessToken(),await this.refreshUserInfo(),mf(bf),mf(wf,{env:this.config.env,loginType:Af.EMAIL,persistence:this.config.persistence}),new jf(this.config.env);throw o.code?new Bu({code:o.code,message:`邮箱登录失败: ${o.message}`}):new Bu({message:"邮箱登录失败"})}async activate(e){return this._request.send("auth.activateEndUserMail",{token:e})}async resetPasswordWithToken(e,t){return this._request.send("auth.resetPasswordWithToken",{token:e,newPassword:t})}}class Mf extends Of{async signIn(e,t){if("string"!=typeof e)throw new Bu({code:"PARAM_ERROR",message:"username must be a string"});"string"!=typeof t&&(t="",console.warn("password is empty"));const{refreshTokenKey:n}=this._cache.keys,o=await this._request.send("auth.signIn",{loginType:Af.USERNAME,username:e,password:t,refresh_token:this._cache.getStore(n)||""}),{refresh_token:r,access_token_expire:i,access_token:s}=o;if(r)return this.setRefreshToken(r),s&&i?this.setAccessToken(s,i):await this._request.refreshAccessToken(),await this.refreshUserInfo(),mf(bf),mf(wf,{env:this.config.env,loginType:Af.USERNAME,persistence:this.config.persistence}),new jf(this.config.env);throw o.code?new Bu({code:o.code,message:`用户名密码登录失败: ${o.message}`}):new Bu({message:"用户名密码登录失败"})}}class Ff{constructor(e){this.config=e,this._cache=ff(e.env),this._request=_f(e.env),this._onAnonymousConverted=this._onAnonymousConverted.bind(this),this._onLoginTypeChanged=this._onLoginTypeChanged.bind(this),gf(wf,this._onLoginTypeChanged)}get currentUser(){const e=this.hasLoginState();return e&&e.user||null}get loginType(){return this._cache.getStore(this._cache.keys.loginTypeKey)}anonymousAuthProvider(){return new Lf(this.config)}customAuthProvider(){return new Nf(this.config)}emailAuthProvider(){return new Df(this.config)}usernameAuthProvider(){return new Mf(this.config)}async signInAnonymously(){return new Lf(this.config).signIn()}async signInWithEmailAndPassword(e,t){return new Df(this.config).signIn(e,t)}signInWithUsernameAndPassword(e,t){return new Mf(this.config).signIn(e,t)}async linkAndRetrieveDataWithTicket(e){return this._anonymousAuthProvider||(this._anonymousAuthProvider=new Lf(this.config)),gf(xf,this._onAnonymousConverted),await this._anonymousAuthProvider.linkAndRetrieveDataWithTicket(e)}async signOut(){if(this.loginType===Af.ANONYMOUS)throw new Bu({message:"匿名用户不支持登出操作"});const{refreshTokenKey:e,accessTokenKey:t,accessTokenExpireKey:n}=this._cache.keys,o=this._cache.getStore(e);if(!o)return;const r=await this._request.send("auth.logout",{refresh_token:o});return this._cache.removeStore(e),this._cache.removeStore(t),this._cache.removeStore(n),mf(bf),mf(wf,{env:this.config.env,loginType:Af.NULL,persistence:this.config.persistence}),r}async signUpWithEmailAndPassword(e,t){return this._request.send("auth.signUpWithEmailAndPassword",{email:e,password:t})}async sendPasswordResetEmail(e){return this._request.send("auth.sendPasswordResetEmail",{email:e})}onLoginStateChanged(e){gf(bf,(()=>{const t=this.hasLoginState();e.call(this,t)}));const t=this.hasLoginState();e.call(this,t)}onLoginStateExpired(e){gf(vf,e.bind(this))}onAccessTokenRefreshed(e){gf(Sf,e.bind(this))}onAnonymousConverted(e){gf(xf,e.bind(this))}onLoginTypeChanged(e){gf(wf,(()=>{const t=this.hasLoginState();e.call(this,t)}))}async getAccessToken(){return{accessToken:(await this._request.getAccessToken()).accessToken,env:this.config.env}}hasLoginState(){const{refreshTokenKey:e}=this._cache.keys;return this._cache.getStore(e)?new jf(this.config.env):null}async isUsernameRegistered(e){if("string"!=typeof e)throw new Bu({code:"PARAM_ERROR",message:"username must be a string"});const{data:t}=await this._request.send("auth.isUsernameRegistered",{username:e});return t&&t.isRegistered}getLoginState(){return Promise.resolve(this.hasLoginState())}async signInWithTicket(e){return new Nf(this.config).signIn(e)}shouldRefreshAccessToken(e){this._request._shouldRefreshAccessTokenHook=e.bind(this)}getUserInfo(){return this._request.send("auth.getUserInfo",{}).then((e=>e.code?e:{...e.data,requestId:e.seqId}))}getAuthHeader(){const{refreshTokenKey:e,accessTokenKey:t}=this._cache.keys,n=this._cache.getStore(e);return{"x-cloudbase-credentials":this._cache.getStore(t)+"/@@/"+n}}_onAnonymousConverted(e){const{env:t}=e.data;t===this.config.env&&this._cache.updatePersistence(this.config.persistence)}_onLoginTypeChanged(e){const{loginType:t,persistence:n,env:o}=e.data;o===this.config.env&&(this._cache.updatePersistence(n),this._cache.setStore(this._cache.keys.loginTypeKey,t))}}const Uf=function(e,t){t=t||Zu();const n=_f(this.config.env),{cloudPath:o,filePath:r,onUploadProgress:i,fileType:s="image"}=e;return n.send("storage.getUploadMetadata",{path:o}).then((e=>{const{data:{url:a,authorization:c,token:l,fileId:u,cosFileId:f},requestId:p}=e,d={key:o,signature:c,"x-cos-meta-fileid":f,success_action_status:"201","x-cos-security-token":l};n.upload({url:a,data:d,file:r,name:o,fileType:s,onUploadProgress:i}).then((e=>{201===e.statusCode?t(null,{fileID:u,requestId:p}):t(new Bu({code:"STORAGE_REQUEST_FAIL",message:`STORAGE_REQUEST_FAIL: ${e.data}`}))})).catch((e=>{t(e)}))})).catch((e=>{t(e)})),t.promise},Rf=function(e,t){t=t||Zu();const n=_f(this.config.env),{cloudPath:o}=e;return n.send("storage.getUploadMetadata",{path:o}).then((e=>{t(null,e)})).catch((e=>{t(e)})),t.promise},Qf=function({fileList:e},t){if(t=t||Zu(),!e||!Array.isArray(e))return{code:"INVALID_PARAM",message:"fileList必须是非空的数组"};for(let o of e)if(!o||"string"!=typeof o)return{code:"INVALID_PARAM",message:"fileList的元素必须是非空的字符串"};const n={fileid_list:e};return _f(this.config.env).send("storage.batchDeleteFile",n).then((e=>{e.code?t(null,e):t(null,{fileList:e.data.delete_list,requestId:e.requestId})})).catch((e=>{t(e)})),t.promise},qf=function({fileList:e},t){t=t||Zu(),e&&Array.isArray(e)||t(null,{code:"INVALID_PARAM",message:"fileList必须是非空的数组"});let n=[];for(let r of e)"object"==typeof r?(r.hasOwnProperty("fileID")&&r.hasOwnProperty("maxAge")||t(null,{code:"INVALID_PARAM",message:"fileList的元素必须是包含fileID和maxAge的对象"}),n.push({fileid:r.fileID,max_age:r.maxAge})):"string"==typeof r?n.push({fileid:r}):t(null,{code:"INVALID_PARAM",message:"fileList的元素必须是字符串"});const o={file_list:n};return _f(this.config.env).send("storage.batchGetDownloadUrl",o).then((e=>{e.code?t(null,e):t(null,{fileList:e.data.download_list,requestId:e.requestId})})).catch((e=>{t(e)})),t.promise},zf=async function({fileID:e},t){const n=(await qf.call(this,{fileList:[{fileID:e,maxAge:600}]})).fileList[0];if("SUCCESS"!==n.code)return t?t(n):new Promise((e=>{e(n)}));const o=_f(this.config.env);let r=n.download_url;if(r=encodeURI(r),!t)return o.download({url:r});t(await o.download({url:r}))},Hf=function({name:e,data:t,query:n,parse:o,search:r},i){const s=i||Zu();let a;try{a=t?JSON.stringify(t):""}catch(l){return Promise.reject(l)}if(!e)return Promise.reject(new Bu({code:"PARAM_ERROR",message:"函数名不能为空"}));const c={inQuery:n,parse:o,search:r,function_name:e,request_data:a};return _f(this.config.env).send("functions.invokeFunction",c).then((e=>{if(e.code)s(null,e);else{let n=e.data.response_data;if(o)s(null,{result:n,requestId:e.requestId});else try{n=JSON.parse(e.data.response_data),s(null,{result:n,requestId:e.requestId})}catch(t){s(new Bu({message:"response data must be json"}))}}return s.promise})).catch((e=>{s(e)})),s.promise},Wf={timeout:15e3,persistence:"session"},$f={};class Vf{constructor(e){this.config=e||this.config,this.authObj=void 0}init(e){switch(of.adapter||(this.requestClient=new of.adapter.reqClass({timeout:e.timeout||5e3,timeoutMsg:`请求在${(e.timeout||5e3)/1e3}s内未完成,已中断`})),this.config={...Wf,...e},!0){case this.config.timeout>6e5:console.warn("timeout大于可配置上限[10分钟],已重置为上限数值"),this.config.timeout=6e5;break;case this.config.timeout<100:console.warn("timeout小于可配置下限[100ms],已重置为下限数值"),this.config.timeout=100}return new Vf(this.config)}auth({persistence:e}={}){if(this.authObj)return this.authObj;const t=e||of.adapter.primaryStorage||Wf.persistence;var n;return t!==this.config.persistence&&(this.config.persistence=t),function(e){const{env:t}=e;lf[t]=new cf(e),uf[t]=new cf({...e,persistence:"local"})}(this.config),n=this.config,Cf[n.env]=new If(n),this.authObj=new Ff(this.config),this.authObj}on(e,t){return gf.apply(this,[e,t])}off(e,t){return yf.apply(this,[e,t])}callFunction(e,t){return Hf.apply(this,[e,t])}deleteFile(e,t){return Qf.apply(this,[e,t])}getTempFileURL(e,t){return qf.apply(this,[e,t])}downloadFile(e,t){return zf.apply(this,[e,t])}uploadFile(e,t){return Uf.apply(this,[e,t])}getUploadMetadata(e,t){return Rf.apply(this,[e,t])}registerExtension(e){$f[e.name]=e}async invokeExtension(e,t){const n=$f[e];if(!n)throw new Bu({message:`扩展${e} 必须先注册`});return await n.invoke(t,this)}useAdapters(e){const{adapter:t,runtime:n}=function(e){const t=(n=e,"[object Array]"===Object.prototype.toString.call(n)?e:[e]);var n;for(const o of t){const{isMatch:e,genAdapter:t,runtime:n}=o;if(e())return{adapter:t(),runtime:n}}}(e)||{};t&&(of.adapter=t),n&&(of.runtime=n)}}var Kf=new Vf;function Jf(e,t,n){void 0===n&&(n={});var o=/\?/.test(t),r="";for(var i in n)""===r?!o&&(t+="?"):r+="&",r+=i+"="+encodeURIComponent(n[i]);return/^http(s)?:\/\//.test(t+=r)?t:""+e+t}class Yf{post(e){const{url:t,data:n,headers:o}=e;return new Promise(((e,r)=>{ju.request({url:Jf("https:",t),data:n,method:"POST",header:o,success(t){e(t)},fail(e){r(e)}})}))}upload(e){return new Promise(((t,n)=>{const{url:o,file:r,data:i,headers:s,fileType:a}=e,c=ju.uploadFile({url:Jf("https:",o),name:"file",formData:Object.assign({},i),filePath:r,fileType:a,header:s,success(e){const n={statusCode:e.statusCode,data:e.data||{}};200===e.statusCode&&i.success_action_status&&(n.statusCode=parseInt(i.success_action_status,10)),t(n)},fail(e){n(new Error(e.errMsg||"uploadFile:fail"))}});"function"==typeof e.onUploadProgress&&c&&"function"==typeof c.onProgressUpdate&&c.onProgressUpdate((t=>{e.onUploadProgress({loaded:t.totalBytesSent,total:t.totalBytesExpectedToSend})}))}))}}const Gf={setItem(e,t){ju.setStorageSync(e,t)},getItem:e=>ju.getStorageSync(e),removeItem(e){ju.removeStorageSync(e)},clear(){ju.clearStorageSync()}};var Xf={genAdapter:function(){return{root:{},reqClass:Yf,localStorage:Gf,primaryStorage:"local"}},isMatch:function(){return!0},runtime:"uni_app"};Kf.useAdapters(Xf);const Zf=Kf,ep=Zf.init;Zf.init=function(e){e.env=e.spaceId;const t=ep.call(this,e);t.config.provider="tencent",t.config.spaceId=e.spaceId;const n=t.auth;return t.auth=function(e){const t=n.call(this,e);return["linkAndRetrieveDataWithTicket","signInAnonymously","signOut","getAccessToken","getLoginState","signInWithTicket","getUserInfo"].forEach((e=>{var n;t[e]=(n=t[e],function(e){e=e||{};const{success:t,fail:o,complete:r}=Ou(e);if(!(t||o||r))return n.call(this,e);n.call(this,e).then((e=>{t&&t(e),r&&r(e)}),(e=>{o&&o(e),r&&r(e)}))}).bind(t)})),t},t.customAuth=t.auth,t};var tp=Zf,np=class extends Vu{getAccessToken(){return new Promise(((e,t)=>{const n="Anonymous_Access_token";this.setAccessToken(n),e(n)}))}setupRequest(e,t){const n=Object.assign({},e,{spaceId:this.config.spaceId,timestamp:Date.now()}),o={"Content-Type":"application/json"};"auth"!==t&&(n.token=this.accessToken,o["x-basement-token"]=this.accessToken),o["x-serverless-sign"]=qu(n,this.config.clientSecret);const r=Qu();o["x-client-info"]=encodeURIComponent(JSON.stringify(r));const{token:i}=Nu();return o["x-client-token"]=i,{url:this.config.requestUrl,method:"POST",data:n,dataType:"json",header:JSON.parse(JSON.stringify(o))}}uploadFileToOSS({url:e,formData:t,name:n,filePath:o,fileType:r,onUploadProgress:i}){return new Promise(((s,a)=>{const c=this.adapter.uploadFile({url:e,formData:t,name:n,filePath:o,fileType:r,success(e){e&&e.statusCode<400?s(e):a(new Bu({code:"UPLOAD_FAILED",message:"文件上传失败"}))},fail(e){a(new Bu({code:e.code||"UPLOAD_FAILED",message:e.message||e.errMsg||"文件上传失败"}))}});"function"==typeof i&&c&&"function"==typeof c.onProgressUpdate&&c.onProgressUpdate((e=>{i({loaded:e.totalBytesSent,total:e.totalBytesExpectedToSend})}))}))}uploadFile({filePath:e,cloudPath:t,fileType:n="image",onUploadProgress:o}){if(!t)throw new Bu({code:"CLOUDPATH_REQUIRED",message:"cloudPath不可为空"});let r;return this.getOSSUploadOptionsFromPath({cloudPath:t}).then((t=>{const{url:i,formData:s,name:a}=t.result;r=t.result.fileUrl;const c={url:i,formData:s,name:a,filePath:e,fileType:n};return this.uploadFileToOSS(Object.assign({},c,{onUploadProgress:o}))})).then((()=>this.reportOSSUpload({cloudPath:t}))).then((t=>new Promise(((n,o)=>{t.success?n({success:!0,filePath:e,fileID:r}):o(new Bu({code:"UPLOAD_FAILED",message:"文件上传失败"}))}))))}deleteFile({fileList:e}){const t={method:"serverless.file.resource.delete",params:JSON.stringify({fileList:e})};return this.request(this.setupRequest(t)).then((e=>{if(e.success)return e.result;throw new Bu({code:"DELETE_FILE_FAILED",message:"删除文件失败"})}))}getTempFileURL({fileList:e}={}){if(!Array.isArray(e)||0===e.length)throw new Bu({code:"INVALID_PARAM",message:"fileList的元素必须是非空的字符串"});const t={method:"serverless.file.resource.getTempFileURL",params:JSON.stringify({fileList:e})};return this.request(this.setupRequest(t)).then((e=>{if(e.success)return{fileList:e.result.fileList.map((e=>({fileID:e.fileID,tempFileURL:e.tempFileURL})))};throw new Bu({code:"GET_TEMP_FILE_URL_FAILED",message:"获取临时文件链接失败"})}))}},op={init(e){const t=new np(e),n={signInAnonymously:function(){return t.authorize()},getLoginState:function(){return Promise.resolve(!1)}};return t.auth=function(){return n},t.customAuth=t.auth,t}};function rp({data:e}){let t;t=Qu();const n=JSON.parse(JSON.stringify(e||{}));if(Object.assign(n,{clientInfo:t}),!n.uniIdToken){const{token:e}=Nu();e&&(n.uniIdToken=e)}return n}const ip=[{rule:/fc_function_not_found|FUNCTION_NOT_FOUND/,content:",云函数[{functionName}]在云端不存在,请检查此云函数名称是否正确以及该云函数是否已上传到服务空间",mode:"append"}];var sp=/[\\^$.*+?()[\]{}|]/g,ap=RegExp(sp.source);function cp(e,t,n){return e.replace(new RegExp((o=t)&&ap.test(o)?o.replace(sp,"\\$&"):o,"g"),n);var o}const lp=2e4,up={code:20101,message:"Invalid client"};function fp(e){const{errSubject:t,subject:n,errCode:o,errMsg:r,code:i,message:s,cause:a}=e||{};return new Bu({subject:t||n||"uni-secure-network",code:o||i||lp,message:r||s,cause:a})}let pp;function dp({secretType:e}={}){return"request"===e||"response"===e||"both"===e}function hp({functionName:e,result:t,logPvd:n}){}function gp(e){const t=e.callFunction,n=function(n){const o=n.name;n.data=rp.call(e,{data:n.data});const r={aliyun:"aliyun",tencent:"tcb",tcb:"tcb"}[this.config.provider],i=dp(n)||false;return t.call(this,n).then((e=>(e.errCode=0,!i&&hp.call(this,{functionName:o,result:e,logPvd:r}),Promise.resolve(e))),(e=>(!i&&hp.call(this,{functionName:o,result:e,logPvd:r}),e&&e.message&&(e.message=function({message:e="",extraInfo:t={},formatter:n=[]}={}){for(let o=0;on.provider===e&&n.spaceId===t));return o&&o.config}({provider:e,spaceId:t});if(!a||!a.accessControl||!a.accessControl.enable)return!1;const c=a.accessControl.function||{},l=Object.keys(c);if(0===l.length)return!0;const u=function(e,t){let n,o,r;for(let i=0;ie.trim())).indexOf(t)>-1&&(o=s):r=s:n=s}return n||o||r}(l,n);if(!u)return!1;if((c[u]||[]).find(((e={})=>e.appId===o&&(e.platform||"").toLowerCase()===s.toLowerCase())))return!0;throw console.error(`此应用[appId: ${o}, platform: ${s}]不在云端配置的允许访问的应用列表内,参考:https://uniapp.dcloud.net.cn/uniCloud/secure-network.html#verify-client`),fp(up)}({provider:o,spaceId:r,functionName:i})?new pp({secretType:t.secretType,uniCloudIns:e}).wrapVerifyClientCallFunction(n.bind(e))(t):s(t),Object.defineProperty(a,"result",{get:()=>(console.warn("当前返回结果为Promise类型,不可直接访问其result属性,详情请参考:https://uniapp.dcloud.net.cn/uniCloud/faq?id=promise"),{})}),a}}pp=class{constructor(){throw fp({message:`Platform ${iu} is not enabled, please check whether secure network module is enabled in your manifest.json`})}};const mp=Symbol("CLIENT_DB_INTERNAL");function yp(e,t){return e.then="DoNotReturnProxyWithAFunctionNamedThen",e._internalType=mp,e.inspect=null,e.__v_raw=void 0,new Proxy(e,{get(e,n,o){if("_uniClient"===n)return null;if("symbol"==typeof n)return e[n];if(n in e||"string"!=typeof n){const t=e[n];return"function"==typeof t?t.bind(e):t}return t.get(e,n,o)}})}function bp(e){return{on:(t,n)=>{e[t]=e[t]||[],e[t].indexOf(n)>-1||e[t].push(n)},off:(t,n)=>{e[t]=e[t]||[];const o=e[t].indexOf(n);-1!==o&&e[t].splice(o,1)}}}const vp=["db.Geo","db.command","command.aggregate"];function wp(e,t){return vp.indexOf(`${e}.${t}`)>-1}function xp(e){switch(Yl(e=Lu(e))){case"array":return e.map((e=>xp(e)));case"object":return e._internalType===mp||Object.keys(e).forEach((t=>{e[t]=xp(e[t])})),e;case"regexp":return{$regexp:{source:e.source,flags:e.flags}};case"date":return{$date:e.toISOString()};default:return e}}function Sp(e){return e&&e.content&&e.content.$method}class Ap{constructor(e,t,n){this.content=e,this.prevStage=t||null,this.udb=null,this._database=n}toJSON(){let e=this;const t=[e.content];for(;e.prevStage;)e=e.prevStage,t.push(e.content);return{$db:t.reverse().map((e=>({$method:e.$method,$param:xp(e.$param)})))}}toString(){return JSON.stringify(this.toJSON())}getAction(){const e=this.toJSON().$db.find((e=>"action"===e.$method));return e&&e.$param&&e.$param[0]}getCommand(){return{$db:this.toJSON().$db.filter((e=>"action"!==e.$method))}}get isAggregate(){let e=this;for(;e;){const t=Sp(e),n=Sp(e.prevStage);if("aggregate"===t&&"collection"===n||"pipeline"===t)return!0;e=e.prevStage}return!1}get isCommand(){let e=this;for(;e;){if("command"===Sp(e))return!0;e=e.prevStage}return!1}get isAggregateCommand(){let e=this;for(;e;){const t=Sp(e),n=Sp(e.prevStage);if("aggregate"===t&&"command"===n)return!0;e=e.prevStage}return!1}getNextStageFn(e){const t=this;return function(){return Tp({$method:e,$param:xp(Array.from(arguments))},t,t._database)}}get count(){return this.isAggregate?this.getNextStageFn("count"):function(){return this._send("count",Array.from(arguments))}}get remove(){return this.isCommand?this.getNextStageFn("remove"):function(){return this._send("remove",Array.from(arguments))}}get(){return this._send("get",Array.from(arguments))}get add(){return this.isCommand?this.getNextStageFn("add"):function(){return this._send("add",Array.from(arguments))}}update(){return this._send("update",Array.from(arguments))}end(){return this._send("end",Array.from(arguments))}get set(){return this.isCommand?this.getNextStageFn("set"):function(){throw new Error("JQL禁止使用set方法")}}_send(e,t){const n=this.getAction(),o=this.getCommand();return o.$db.push({$method:e,$param:xp(t)}),this._database._callCloudFunction({action:n,command:o})}}function Tp(e,t,n){return yp(new Ap(e,t,n),{get(e,t){let o="db";return e&&e.content&&(o=e.content.$method),wp(o,t)?Tp({$method:t},e,n):function(){return Tp({$method:t,$param:xp(Array.from(arguments))},e,n)}}})}function kp({path:e,method:t}){return class{constructor(){this.param=Array.from(arguments)}toJSON(){return{$newDb:[...e.map((e=>({$method:e}))),{$method:t,$param:this.param}]}}toString(){return JSON.stringify(this.toJSON())}}}function Ep(e,t={}){return yp(new e(t),{get:(e,t)=>wp("db",t)?Tp({$method:t},null,e):function(){return Tp({$method:t,$param:xp(Array.from(arguments))},null,e)}})}class Pp extends class{constructor({uniClient:e={},isJQL:t=!1}={}){this._uniClient=e,this._authCallBacks={},this._dbCallBacks={},e._isDefault&&(this._dbCallBacks=lu("_globalUniCloudDatabaseCallback")),t||(this.auth=bp(this._authCallBacks)),this._isJQL=t,Object.assign(this,bp(this._dbCallBacks)),this.env=yp({},{get:(e,t)=>({$env:t})}),this.Geo=yp({},{get:(e,t)=>kp({path:["Geo"],method:t})}),this.serverDate=kp({path:[],method:"serverDate"}),this.RegExp=kp({path:[],method:"RegExp"})}getCloudEnv(e){if("string"!=typeof e||!e.trim())throw new Error("getCloudEnv参数错误");return{$env:e.replace("$cloudEnv_","")}}_callback(e,t){const n=this._dbCallBacks;n[e]&&n[e].forEach((e=>{e(...t)}))}_callbackAuth(e,t){const n=this._authCallBacks;n[e]&&n[e].forEach((e=>{e(...t)}))}multiSend(){const e=Array.from(arguments),t=e.map((e=>{const t=e.getAction(),n=e.getCommand();if("getTemp"!==n.$db[n.$db.length-1].$method)throw new Error("multiSend只支持子命令内使用getTemp");return{action:t,command:n}}));return this._callCloudFunction({multiCommand:t,queryList:e})}}{_parseResult(e){return this._isJQL?e.result:e}_callCloudFunction({action:e,command:t,multiCommand:n,queryList:o}){function r(e,t){if(n&&o)for(let n=0;nhu(gu(s,"complete"),e))).then((()=>(r(null,e),Pu(bu,{type:xu,content:e}),Promise.reject(e))))}const c=hu(gu(s,"invoke")),l=this._uniClient;return c.then((()=>l.callFunction({name:"DCloud-clientDB",type:"CLIENT_DB",data:{action:e,command:t,multiCommand:n}}))).then((e=>{const{code:t,message:n,token:o,tokenExpired:c,systemInfo:l=[]}=e.result;if(l)for(let r=0;r(console.warn(n),o)})}}return f=e,hu(gu(s,"success"),f).then((()=>hu(gu(s,"complete"),f))).then((()=>{r(f,null);const e=i._parseResult(f);return Pu(bu,{type:xu,content:e}),Promise.resolve(e)}));var f}),(e=>(/fc_function_not_found|FUNCTION_NOT_FOUND/g.test(e.message)&&console.warn("clientDB未初始化,请在web控制台保存一次schema以开启clientDB"),a(new Bu({code:e.code||"SYSTEM_ERROR",message:e.message,requestId:e.requestId})))))}}const Ip="token无效,跳转登录页面",Cp="token过期,跳转登录页面",_p={TOKEN_INVALID_TOKEN_EXPIRED:Cp,TOKEN_INVALID_INVALID_CLIENTID:Ip,TOKEN_INVALID:Ip,TOKEN_INVALID_WRONG_TOKEN:Ip,TOKEN_INVALID_ANONYMOUS_USER:Ip},Op={"uni-id-token-expired":Cp,"uni-id-check-token-failed":Ip,"uni-id-token-not-exist":Ip,"uni-id-check-device-feature-failed":Ip};function Bp(e,t){let n="";return n=e?`${e}/${t}`:t,n.replace(/^\//,"")}function jp(e=[],t=""){const n=[],o=[];return e.forEach((e=>{!0===e.needLogin?n.push(Bp(t,e.path)):!1===e.needLogin&&o.push(Bp(t,e.path))})),{needLoginPage:n,notNeedLoginPage:o}}function Lp(e){return e.split("?")[0].replace(/^\//,"")}function Np(){return function(e){let t=e&&e.$page&&e.$page.fullPath||"";return t?("/"!==t.charAt(0)&&(t="/"+t),t):t}(function(){const e=getCurrentPages();return e[e.length-1]}())}function Dp(){return Lp(Np())}function Mp(e="",t={}){if(!e)return!1;if(!(t&&t.list&&t.list.length))return!1;const n=t.list,o=Lp(e);return n.some((e=>e.pagePath===o))}const Fp=!!Rl.uniIdRouter,{loginPage:Up,routerNeedLogin:Rp,resToLogin:Qp,needLoginPage:qp,notNeedLoginPage:zp,loginPageInTabBar:Hp}=function({pages:e=[],subPackages:t=[],uniIdRouter:n={},tabBar:o={}}=Rl){const{loginPage:r,needLogin:i=[],resToLogin:s=!0}=n,{needLoginPage:a,notNeedLoginPage:c}=jp(e),{needLoginPage:l,notNeedLoginPage:u}=function(e=[]){const t=[],n=[];return e.forEach((e=>{const{root:o,pages:r=[]}=e,{needLoginPage:i,notNeedLoginPage:s}=jp(r,o);t.push(...i),n.push(...s)})),{needLoginPage:t,notNeedLoginPage:n}}(t);return{loginPage:r,routerNeedLogin:i,resToLogin:s,needLoginPage:[...a,...l],notNeedLoginPage:[...c,...u],loginPageInTabBar:Mp(r,o)}}();if(qp.indexOf(Up)>-1)throw new Error(`Login page [${Up}] should not be "needLogin", please check your pages.json`);function Wp(e){const t=Dp();if("/"===e.charAt(0))return e;const[n,o]=e.split("?"),r=n.replace(/^\//,"").split("/"),i=t.split("/");i.pop();for(let s=0;s-1?o+`&uniIdRedirectUrl=${encodeURIComponent(r)}`:o+`?uniIdRedirectUrl=${encodeURIComponent(r)}`:o);var o,r;Hp?"navigateTo"!==e&&"redirectTo"!==e||(e="switchTab"):"switchTab"===e&&(e="navigateTo");const i={navigateTo:kn.navigateTo,redirectTo:kn.redirectTo,switchTab:kn.switchTab,reLaunch:kn.reLaunch};setTimeout((()=>{i[e]({url:n})}))}function Kp({url:e}={}){const t={abortLoginPageJump:!1,autoToLoginPage:!1},n=function(){const{token:e,tokenExpired:t}=Nu();let n;if(e){if(t-1)&&(qp.indexOf(t)>-1||Rp.some((t=>{return n=e,new RegExp(t).test(n);var n})))}(e)&&n){if(n.uniIdRedirectUrl=e,Tu(vu).length>0)return setTimeout((()=>{Pu(vu,n)}),0),t.abortLoginPageJump=!0,t;t.autoToLoginPage=!0}return t}function Jp(){!function(){const e=Np(),{abortLoginPageJump:t,autoToLoginPage:n}=Kp({url:e});t||n&&Vp({api:"redirectTo",redirect:e})}();const e=["navigateTo","redirectTo","reLaunch","switchTab"];for(let t=0;t{const{type:t,content:n}=e;let o=!1;switch(t){case"cloudobject":o=function(e){if("object"!=typeof e)return!1;const{errCode:t}=e||{};return t in Op}(n);break;case"clientdb":o=function(e){if("object"!=typeof e)return!1;const{errCode:t}=e||{};return t in _p}(n)}o&&function(e={}){const t=Tu(vu);_u().then((()=>{const n=Np();if(n&&$p({redirect:n}))return t.length>0?Pu(vu,Object.assign({uniIdRedirectUrl:n},e)):void(Up&&Vp({api:"navigateTo",redirect:n}))}))}(n)}))}function Gp(e){var t;(t=e).onResponse=function(e){ku(bu,e)},t.offResponse=function(e){Eu(bu,e)},function(e){e.onNeedLogin=function(e){ku(vu,e)},e.offNeedLogin=function(e){Eu(vu,e)},Fp&&(lu("_globalUniCloudStatus").needLoginInit||(lu("_globalUniCloudStatus").needLoginInit=!0,_u().then((()=>{Jp.call(e)})),Qp&&Yp.call(e)))}(e),function(e){e.onRefreshToken=function(e){ku(wu,e)},e.offRefreshToken=function(e){Eu(wu,e)}}(e)}let Xp;const Zp="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",ed=/^(?:[A-Za-z\d+/]{4})*?(?:[A-Za-z\d+/]{2}(?:==)?|[A-Za-z\d+/]{3}=?)?$/;function td(){const e=Nu().token||"",t=e.split(".");if(!e||3!==t.length)return{uid:null,role:[],permission:[],tokenExpired:0};let n;try{n=JSON.parse((o=t[1],decodeURIComponent(Xp(o).split("").map((function(e){return"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2)})).join(""))))}catch(r){throw new Error("获取当前用户信息出错,详细错误信息为:"+r.message)}var o;return n.tokenExpired=1e3*n.exp,delete n.exp,delete n.iat,n}Xp="function"!=typeof atob?function(e){if(e=String(e).replace(/[\t\n\f\r ]+/g,""),!ed.test(e))throw new Error("Failed to execute 'atob' on 'Window': The string to be decoded is not correctly encoded.");var t;e+="==".slice(2-(3&e.length));for(var n,o,r="",i=0;i>16&255):64===o?String.fromCharCode(t>>16&255,t>>8&255):String.fromCharCode(t>>16&255,t>>8&255,255&t);return r}:atob;var nd=function(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}(Ql((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});const n="chooseAndUploadFile:ok",o="chooseAndUploadFile:fail";function r(e,t){return e.tempFiles.forEach(((e,n)=>{e.name||(e.name=e.path.substring(e.path.lastIndexOf("/")+1)),t&&(e.fileType=t),e.cloudPath=Date.now()+"_"+n+e.name.substring(e.name.lastIndexOf("."))})),e.tempFilePaths||(e.tempFilePaths=e.tempFiles.map((e=>e.path))),e}function i(e,t,{onChooseFile:o,onUploadProgress:r}){return t.then((e=>{if(o){const t=o(e);if(void 0!==t)return Promise.resolve(t).then((t=>void 0===t?e:t))}return e})).then((t=>!1===t?{errMsg:n,tempFilePaths:[],tempFiles:[]}:function(e,t,o=5,r){(t=Object.assign({},t)).errMsg=n;const i=t.tempFiles,s=i.length;let a=0;return new Promise((n=>{for(;a=s)return void(!i.find((e=>!e.url&&!e.errMsg))&&n(t));const l=i[o];e.uploadFile({filePath:l.path,cloudPath:l.cloudPath,fileType:l.fileType,onUploadProgress(e){e.index=o,e.tempFile=l,e.tempFilePath=l.path,r&&r(e)}}).then((e=>{l.url=e.fileID,o{l.errMsg=e.errMsg||e.message,o{kn.chooseImage({count:t,sizeType:n,sourceType:i,extension:s,success(t){e(r(t,"image"))},fail(e){a({errMsg:e.errMsg.replace("chooseImage:fail",o)})}})}))}(t),t):"video"===t.type?i(e,function(e){const{camera:t,compressed:n,maxDuration:i,sourceType:s=["album","camera"],extension:a}=e;return new Promise(((e,c)=>{kn.chooseVideo({camera:t,compressed:n,maxDuration:i,sourceType:s,extension:a,success(t){const{tempFilePath:n,duration:o,size:i,height:s,width:a}=t;e(r({errMsg:"chooseVideo:ok",tempFilePaths:[n],tempFiles:[{name:t.tempFile&&t.tempFile.name||"",path:n,size:i,type:t.tempFile&&t.tempFile.type||"",width:a,height:s,duration:o,fileType:"video",cloudPath:""}]},"video"))},fail(e){c({errMsg:e.errMsg.replace("chooseVideo:fail",o)})}})}))}(t),t):i(e,function(e){const{count:t,extension:n}=e;return new Promise(((e,i)=>{let s=kn.chooseFile;if(void 0!==Tn&&"function"==typeof Tn.chooseMessageFile&&(s=Tn.chooseMessageFile),"function"!=typeof s)return i({errMsg:o+" 请指定 type 类型,该平台仅支持选择 image 或 video。"});s({type:"all",count:t,extension:n,success(t){e(r(t))},fail(e){i({errMsg:e.errMsg.replace("chooseFile:fail",o)})}})}))}(t),t)}}})));function od(e){return{props:{localdata:{type:Array,default:()=>[]},options:{type:[Object,Array],default:()=>({})},spaceInfo:{type:Object,default:()=>({})},collection:{type:[String,Array],default:""},action:{type:String,default:""},field:{type:String,default:""},orderby:{type:String,default:""},where:{type:[String,Object],default:""},pageData:{type:String,default:"add"},pageCurrent:{type:Number,default:1},pageSize:{type:Number,default:20},getcount:{type:[Boolean,String],default:!1},gettree:{type:[Boolean,String],default:!1},gettreepath:{type:[Boolean,String],default:!1},startwith:{type:String,default:""},limitlevel:{type:Number,default:10},groupby:{type:String,default:""},groupField:{type:String,default:""},distinct:{type:[Boolean,String],default:!1},foreignKey:{type:String,default:""},loadtime:{type:String,default:"auto"},manual:{type:Boolean,default:!1}},data:()=>({mixinDatacomLoading:!1,mixinDatacomHasMore:!1,mixinDatacomResData:[],mixinDatacomErrorMessage:"",mixinDatacomPage:{}}),created(){this.mixinDatacomPage={current:this.pageCurrent,size:this.pageSize,count:0},this.$watch((()=>{var e=[];return["pageCurrent","pageSize","localdata","collection","action","field","orderby","where","getont","getcount","gettree","groupby","groupField","distinct"].forEach((t=>{e.push(this[t])})),e}),((e,t)=>{if("manual"===this.loadtime)return;let n=!1;const o=[];for(let r=2;r{this.mixinDatacomLoading=!1;const{data:o,count:r}=n.result;this.getcount&&(this.mixinDatacomPage.count=r),this.mixinDatacomHasMore=o.length{this.mixinDatacomLoading=!1,this.mixinDatacomErrorMessage=e,n&&n(e)})))},mixinDatacomGet(t={}){let n=e.database(this.spaceInfo);const o=t.action||this.action;o&&(n=n.action(o));const r=t.collection||this.collection;n=Array.isArray(r)?n.collection(...r):n.collection(r);const i=t.where||this.where;i&&Object.keys(i).length&&(n=n.where(i));const s=t.field||this.field;s&&(n=n.field(s));const a=t.foreignKey||this.foreignKey;a&&(n=n.foreignKey(a));const c=t.groupby||this.groupby;c&&(n=n.groupBy(c));const l=t.groupField||this.groupField;l&&(n=n.groupField(l)),!0===(void 0!==t.distinct?t.distinct:this.distinct)&&(n=n.distinct());const u=t.orderby||this.orderby;u&&(n=n.orderBy(u));const f=void 0!==t.pageCurrent?t.pageCurrent:this.mixinDatacomPage.current,p=void 0!==t.pageSize?t.pageSize:this.mixinDatacomPage.size,d=void 0!==t.getcount?t.getcount:this.getcount,h=void 0!==t.gettree?t.gettree:this.gettree,g=void 0!==t.gettreepath?t.gettreepath:this.gettreepath,m={getCount:d},y={limitLevel:void 0!==t.limitlevel?t.limitlevel:this.limitlevel,startWith:void 0!==t.startwith?t.startwith:this.startwith};return h&&(m.getTree=y),g&&(m.getTreePath=y),n=n.skip(p*(f-1)).limit(p).get(m),n}}}}function rd(e){return lu("_globalUniCloudSecureNetworkCache__{spaceId}".replace("{spaceId}",e.config.spaceId))}async function id({openid:e,callLoginByWeixin:t=!1}={}){const n=rd(this);if(e&&t)throw new Error("[SecureNetwork] openid and callLoginByWeixin cannot be passed at the same time");if(e)return n.mpWeixinOpenid=e,{};const o=await new Promise(((e,t)=>{kn.login({success(t){e(t.code)},fail(e){t(new Error(e.errMsg))}})})),r=this.importObject("uni-id-co",{customUI:!0});return await r.secureNetworkHandshakeByWeixin({code:o,callLoginByWeixin:t}),n.mpWeixinCode=o,{code:o}}async function sd(e){const t=rd(this);return t.initPromise||(t.initPromise=id.call(this,e)),t.initPromise}function ad(e){const t={getSystemInfo:kn.getSystemInfo,getPushClientId:kn.getPushClientId};return function(n){return new Promise(((o,r)=>{t[e]({...n,success(e){o(e)},fail(e){r(e)}})}))}}class cd extends class{constructor(){this._callback={}}addListener(e,t){this._callback[e]||(this._callback[e]=[]),this._callback[e].push(t)}on(e,t){return this.addListener(e,t)}removeListener(e,t){if(!t)throw new Error('The "listener" argument must be of type function. Received undefined');const n=this._callback[e];if(!n)return;const o=function(e,t){for(let n=e.length-1;n>=0;n--)if(e[n]===t)return n;return-1}(n,t);n.splice(o,1)}off(e,t){return this.removeListener(e,t)}removeAllListener(e){delete this._callback[e]}emit(e,...t){const n=this._callback[e];if(n)for(let o=0;o{if(!e)throw new Error("Invalid appId, please check the manifest.json file");if(!t)throw new Error("Invalid push client id");this._appId=e,this._pushClientId=t,this._seqId=Date.now()+"-"+Math.floor(9e5*Math.random()+1e5),this.emit("open"),this._initMessageListener()}),(e=>{throw this.emit("error",e),this.close(),e}))}async open(){return this.init()}_isUniCloudSSE(e){if("receive"!==e.type)return!1;const t=e&&e.data&&e.data.payload;return!(!t||"UNI_CLOUD_SSE"!==t.channel||t.seqId!==this._seqId)}_receivePushMessage(e){if(!this._isUniCloudSSE(e))return;const t=e&&e.data&&e.data.payload,{action:n,messageId:o,message:r}=t;this._payloadQueue.push({action:n,messageId:o,message:r}),this._consumMessage()}_consumMessage(){for(;;){const e=this._payloadQueue.find((e=>e.messageId===this._currentMessageId+1));if(!e)break;this._currentMessageId++,this._parseMessagePayload(e)}}_parseMessagePayload(e){const{action:t,messageId:n,message:o}=e;"end"===t?this._end({messageId:n,message:o}):"message"===t&&this._appendMessage({messageId:n,message:o})}_appendMessage({messageId:e,message:t}={}){this.emit("message",t)}_end({messageId:e,message:t}={}){this.emit("end",t),this.close()}_initMessageListener(){kn.onPushMessage(this._uniPushMessageCallback)}_destroy(){kn.offPushMessage(this._uniPushMessageCallback)}toJSON(){return{appId:this._appId,pushClientId:this._pushClientId,seqId:this._seqId}}close(){this._destroy(),this.emit("close")}}const ld={tcb:tp,tencent:tp,aliyun:Ku,private:op};let ud=new class{init(e){let t={};const n=ld[e.provider];if(!n)throw new Error("未提供正确的provider参数");var o;return t=n.init(e),function(e){e._initPromiseHub||(e._initPromiseHub=new nu({createPromise:function(){let t=Promise.resolve();t=new Promise((e=>{setTimeout((()=>{e()}),1)}));const n=e.auth();return t.then((()=>n.getLoginState())).then((e=>e?Promise.resolve():n.signInAnonymously()))}}))}(t),gp(t),function(e){const t=e.uploadFile;e.uploadFile=function(e){return t.call(this,e)}}(t),(o=t).database=function(e){if(e&&Object.keys(e).length>0)return o.init(e).database();if(this._database)return this._database;const t=Ep(Pp,{uniClient:o});return this._database=t,t},o.databaseForJQL=function(e){if(e&&Object.keys(e).length>0)return o.init(e).databaseForJQL();if(this._databaseForJQL)return this._databaseForJQL;const t=Ep(Pp,{uniClient:o,isJQL:!0});return this._databaseForJQL=t,t},function(e){e.getCurrentUserInfo=td,e.chooseAndUploadFile=nd.initChooseAndUploadFile(e),Object.assign(e,{get mixinDatacom(){return od(e)}}),e.SSEChannel=cd,e.initSecureNetworkByWeixin=function(e){return function({openid:t,callLoginByWeixin:n=!1}={}){return sd.call(e,{openid:t,callLoginByWeixin:n})}}(e),e.importObject=function(t){return function(n,o={}){o=function(e,t={}){return e.customUI=t.customUI||e.customUI,e.parseSystemError=t.parseSystemError||e.parseSystemError,Object.assign(e.loadingOptions,t.loadingOptions),Object.assign(e.errorOptions,t.errorOptions),"object"==typeof t.secretMethods&&(e.secretMethods=t.secretMethods),e}({customUI:!1,loadingOptions:{title:"加载中...",mask:!0},errorOptions:{type:"modal",retry:!1}},o);const{customUI:r,loadingOptions:i,errorOptions:s,parseSystemError:a}=o,c=!r;return new Proxy({},{get:(r,l)=>function({fn:e,interceptorName:t,getCallbackArgs:n}={}){return async function(...o){const r=n?n({params:o}):{};let i,s;try{return await hu(gu(t,"invoke"),{...r}),i=await e(...o),await hu(gu(t,"success"),{...r,result:i}),i}catch(a){throw s=a,await hu(gu(t,"fail"),{...r,error:s}),s}finally{await hu(gu(t,"complete"),s?{...r,error:s}:{...r,result:i})}}}({fn:async function r(...u){let f;c&&kn.showLoading({title:i.title,mask:i.mask});const p={name:n,type:"OBJECT",data:{method:l,params:u}};"object"==typeof o.secretMethods&&function(e,t){const n=t.data.method,o=e.secretMethods||{},r=o[n]||o["*"];r&&(t.secretType=r)}(o,p);let d=!1;try{f=await t.callFunction(p)}catch(e){d=!0,f={result:new Bu(e)}}const{errSubject:h,errCode:g,errMsg:m,newToken:y}=f.result||{};if(c&&kn.hideLoading(),y&&y.token&&y.tokenExpired&&(Du(y),Pu(wu,{...y})),g){let e=m;if(d&&a&&(e=(await a({objectName:n,methodName:l,params:u,errSubject:h,errCode:g,errMsg:m})).errMsg||m),c)if("toast"===s.type)kn.showToast({title:e,icon:"none"});else{if("modal"!==s.type)throw new Error(`Invalid errorOptions.type: ${s.type}`);{const{confirm:t}=await async function({title:e,content:t,showCancel:n,cancelText:o,confirmText:r}={}){return new Promise(((i,s)=>{kn.showModal({title:e,content:t,showCancel:n,cancelText:o,confirmText:r,success(e){i(e)},fail(){i({confirm:!1,cancel:!0})}})}))}({title:"提示",content:e,showCancel:s.retry,cancelText:"取消",confirmText:s.retry?"重试":"确定"});if(s.retry&&t)return r(...u)}}const t=new Bu({subject:h,code:g,message:m,requestId:f.requestId});throw t.detail=f.result,Pu(bu,{type:Au,content:t}),t}return Pu(bu,{type:Au,content:f.result}),f.result},interceptorName:"callObject",getCallbackArgs:function({params:e}={}){return{objectName:n,methodName:l,params:e}}})})}}(e)}(t),["callFunction","uploadFile","deleteFile","getTempFileURL","downloadFile","chooseAndUploadFile"].forEach((e=>{if(!t[e])return;const n=t[e];var o,r;t[e]=function(){return n.apply(t,Array.from(arguments))},t[e]=(o=t[e],r=e,function(e){let t=!1;if("callFunction"===r){const n=e&&e.type||Vl;t=n!==Vl}const n="callFunction"===r&&!t,i=this._initPromiseHub.exec();e=e||{};const{success:s,fail:a,complete:c}=Ou(e),l=i.then((()=>t?Promise.resolve():hu(gu(r,"invoke"),e))).then((()=>o.call(this,e))).then((e=>t?Promise.resolve(e):hu(gu(r,"success"),e).then((()=>hu(gu(r,"complete"),e))).then((()=>(n&&Pu(bu,{type:Su,content:e}),Promise.resolve(e))))),(e=>t?Promise.reject(e):hu(gu(r,"fail"),e).then((()=>hu(gu(r,"complete"),e))).then((()=>(Pu(bu,{type:Su,content:e}),Promise.reject(e))))));if(!(s||a||c))return l;l.then((e=>{s&&s(e),c&&c(e),n&&Pu(bu,{type:Su,content:e})}),(e=>{a&&a(e),c&&c(e),n&&Pu(bu,{type:Su,content:e})}))}).bind(t)})),t.init=this.init,t}};(()=>{const e=su;let t={};if(e&&1===e.length)t=e[0],ud=ud.init(t),ud._isDefault=!0;else{const t=["auth","callFunction","uploadFile","deleteFile","getTempFileURL","downloadFile","database","getCurrentUSerInfo","importObject"];let n;n=e&&e.length>0?"应用有多个服务空间,请通过uniCloud.init方法指定要使用的服务空间":"uni-app cli项目内使用uniCloud需要使用HBuilderX的运行菜单运行项目,且需要在uniCloud目录关联服务空间",t.forEach((e=>{ud[e]=function(){return console.error(n),Promise.reject(new Bu({code:"SYS_ERR",message:n}))}}))}Object.assign(ud,{get mixinDatacom(){return od(ud)}}),Gp(ud),ud.addInterceptor=pu,ud.removeInterceptor=du,ud.interceptObject=mu})();var fd=ud;const pd={props:{type:{type:String,default:()=>Xc.text.type},show:{type:Boolean,default:()=>Xc.text.show},text:{type:[String,Number],default:()=>Xc.text.text},prefixIcon:{type:String,default:()=>Xc.text.prefixIcon},suffixIcon:{type:String,default:()=>Xc.text.suffixIcon},mode:{type:String,default:()=>Xc.text.mode},href:{type:String,default:()=>Xc.text.href},format:{type:[String,Function],default:()=>Xc.text.format},call:{type:Boolean,default:()=>Xc.text.call},openType:{type:String,default:()=>Xc.text.openType},bold:{type:Boolean,default:()=>Xc.text.bold},block:{type:Boolean,default:()=>Xc.text.block},lines:{type:[String,Number],default:()=>Xc.text.lines},color:{type:String,default:()=>Xc.text.color},size:{type:[String,Number],default:()=>Xc.text.size},iconStyle:{type:[Object,String],default:()=>Xc.text.iconStyle},decoration:{tepe:String,default:()=>Xc.text.decoration},margin:{type:[Object,String,Number],default:()=>Xc.text.margin},lineHeight:{type:[String,Number],default:()=>Xc.text.lineHeight},align:{type:String,default:()=>Xc.text.align},wordWrap:{type:String,default:()=>Xc.text.wordWrap},flex1:{type:Boolean,default:()=>Xc.text.flex1}}},dd={computed:{value(){const{text:e,mode:t,format:n,href:o}=this;return"price"===t?Va.func(n)?n(e):mc(e,2):"date"===t?(Va.date(e),Va.func(n)?n(e):pc(e,n||"yyyy-mm-dd")):"phone"===t?Va.func(n)?n(e):"encrypt"===n?`${e.substr(0,3)}****${e.substr(7)}`:e:"name"===t?Va.func(n)?n(e):"encrypt"===n?this.formatName(e):e:"link"===t?(Va.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;tXc.popup.show},overlay:{type:Boolean,default:()=>Xc.popup.overlay},mode:{type:String,default:()=>Xc.popup.mode},duration:{type:[String,Number],default:()=>Xc.popup.duration},closeable:{type:Boolean,default:()=>Xc.popup.closeable},overlayStyle:{type:[Object,String],default:()=>Xc.popup.overlayStyle},closeOnClickOverlay:{type:Boolean,default:()=>Xc.popup.closeOnClickOverlay},zIndex:{type:[String,Number],default:()=>Xc.popup.zIndex},safeAreaInsetBottom:{type:Boolean,default:()=>Xc.popup.safeAreaInsetBottom},safeAreaInsetTop:{type:Boolean,default:()=>Xc.popup.safeAreaInsetTop},closeIconPos:{type:String,default:()=>Xc.popup.closeIconPos},round:{type:[Boolean,String,Number],default:()=>Xc.popup.round},zoom:{type:Boolean,default:()=>Xc.popup.zoom},bgColor:{type:String,default:()=>Xc.popup.bgColor},overlayOpacity:{type:[Number,String],default:()=>Xc.popup.overlayOpacity}}},yd={props:{isDot:{type:Boolean,default:()=>Xc.badge.isDot},value:{type:[Number,String],default:()=>Xc.badge.value},modelValue:{type:[Number,String],default:()=>Xc.badge.modelValue},show:{type:Boolean,default:()=>Xc.badge.show},max:{type:[Number,String],default:()=>Xc.badge.max},type:{type:String,default:()=>Xc.badge.type},showZero:{type:Boolean,default:()=>Xc.badge.showZero},bgColor:{type:[String,null],default:()=>Xc.badge.bgColor},color:{type:[String,null],default:()=>Xc.badge.color},shape:{type:String,default:()=>Xc.badge.shape},numberType:{type:String,default:()=>Xc.badge.numberType},offset:{type:Array,default:()=>Xc.badge.offset},inverted:{type:Boolean,default:()=>Xc.badge.inverted},absolute:{type:Boolean,default:()=>Xc.badge.absolute}}},bd={props:{hairline:{type:Boolean,default:()=>Xc.button.hairline},type:{type:String,default:()=>Xc.button.type},size:{type:String,default:()=>Xc.button.size},shape:{type:String,default:()=>Xc.button.shape},plain:{type:Boolean,default:()=>Xc.button.plain},disabled:{type:Boolean,default:()=>Xc.button.disabled},loading:{type:Boolean,default:()=>Xc.button.loading},loadingText:{type:[String,Number],default:()=>Xc.button.loadingText},loadingMode:{type:String,default:()=>Xc.button.loadingMode},loadingSize:{type:[String,Number],default:()=>Xc.button.loadingSize},openType:{type:String,default:()=>Xc.button.openType},formType:{type:String,default:()=>Xc.button.formType},appParameter:{type:String,default:()=>Xc.button.appParameter},hoverStopPropagation:{type:Boolean,default:()=>Xc.button.hoverStopPropagation},lang:{type:String,default:()=>Xc.button.lang},sessionFrom:{type:String,default:()=>Xc.button.sessionFrom},sendMessageTitle:{type:String,default:()=>Xc.button.sendMessageTitle},sendMessagePath:{type:String,default:()=>Xc.button.sendMessagePath},sendMessageImg:{type:String,default:()=>Xc.button.sendMessageImg},showMessageCard:{type:Boolean,default:()=>Xc.button.showMessageCard},dataName:{type:String,default:()=>Xc.button.dataName},throttleTime:{type:[String,Number],default:()=>Xc.button.throttleTime},hoverStartTime:{type:[String,Number],default:()=>Xc.button.hoverStartTime},hoverStayTime:{type:[String,Number],default:()=>Xc.button.hoverStayTime},text:{type:[String,Number],default:()=>Xc.button.text},icon:{type:String,default:()=>Xc.button.icon},iconColor:{type:String,default:()=>Xc.button.icon},color:{type:String,default:()=>Xc.button.color},stop:{type:Boolean,default:()=>Xc.button.stop}}},vd={props:{color:{type:String,default:()=>Xc.link.color},fontSize:{type:[String,Number],default:()=>Xc.link.fontSize},underLine:{type:Boolean,default:()=>Xc.link.underLine},href:{type:String,default:()=>Xc.link.href},mpTips:{type:String,default:()=>Xc.link.mpTips},lineColor:{type:String,default:()=>Xc.link.lineColor},text:{type:String,default:()=>Xc.link.text}}},wd={props:{show:{type:Boolean,default:()=>Xc.overlay.show},zIndex:{type:[String,Number],default:()=>Xc.overlay.zIndex},duration:{type:[String,Number],default:()=>Xc.overlay.duration},opacity:{type:[String,Number],default:()=>Xc.overlay.opacity}}},xd={props:{bgColor:{type:String,default:()=>Xc.statusBar.bgColor}}},Sd={props:{}},Ad={props:{show:{type:Boolean,default:()=>Xc.transition.show},mode:{type:String,default:()=>Xc.transition.mode},duration:{type:[String,Number],default:()=>Xc.transition.duration},timingFunction:{type:String,default:()=>Xc.transition.timingFunction}}},Td=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`}),kd={methods:{clickHandler(){this.$emit("click")},async vueEnter(){const e=Td(this.mode);this.status="enter",this.$emit("beforeEnter"),this.inited=!0,this.display=!0,this.classes=e.enter,await mr(),await oc(20),this.$emit("enter"),this.transitionEnded=!1,this.$emit("afterEnter"),this.classes=e["enter-to"]},async vueLeave(){if(!this.display)return;const e=Td(this.mode);this.status="leave",this.$emit("beforeLeave"),this.classes=e.leave,await mr(),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))}}};exports.Ds=fd,exports.Pinia=Qa,exports.Request=class{constructor(e={}){var t;t=e,"[object Object]"!==Object.prototype.toString.call(t)&&(e={},console.warn("设置全局参数必须接收一个Object")),this.config=kl({...Tl,...e}),this.interceptors={request:new Sl,response:new Sl}}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:ml(e.header||{},t.header||{})};if(o={...o,...Al(["getTask","validateStatus","paramsSerializer","forcedJSONParsing"],e,t)},"DOWNLOAD"===n){const n=["timeout","filePath"];o={...o,...Al(n,e,t)}}else if("UPLOAD"===n)delete o.header["content-type"],delete o.header["Content-Type"],["filePath","name","timeout","formData"].forEach((e=>{yl(t[e])||(o[e]=t[e])})),yl(o.timeout)&&!yl(e.timeout)&&(o.timeout=e.timeout);else{const n=["data","timeout","dataType","responseType","enableHttp2","enableQuic","enableCache","enableHttpDNS","httpDNSServiceId","enableChunked","forceCellularNetwork"];o={...o,...Al(n,e,t)}}return o})(this.config,e);let t=[xl,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=ac,exports.addUnit=cc,exports.buttonMixin=hd,exports.color=Gc,exports.colorGradient=Dc,exports.config=tc,exports.createPinia=Ia,exports.createSSRApp=Bs,exports.dayjs=Pl,exports.deepMerge=uc,exports.defProps=Xc,exports.defineComponent=function(e){return S(e)?{setup:e,name:e.name}:e},exports.defineStore=Ma,exports.e=(e,...t)=>g(e,...t),exports.error=fc,exports.f=(e,t)=>function(e,t){let n;if(v(e)||A(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)=>Is(e,t),exports.onHide=sl,exports.onLaunch=al,exports.onLoad=cl,exports.onMounted=zr,exports.onReachBottom=ul,exports.onShareAppMessage=pl,exports.onShareTimeline=fl,exports.onShow=il,exports.onUnload=ll,exports.openType=gd,exports.p=e=>function(e){const{uid:t,__counter:n}=Oi();return t+","+((Ts[t]||(Ts[t]=[])).push(Ei(e))-1)+","+n}(e),exports.props=Ol,exports.props$1=Bl,exports.props$10=md,exports.props$11=yd,exports.props$12=bd,exports.props$13=vd,exports.props$14=wd,exports.props$15=xd,exports.props$16=Sd,exports.props$17=Ad,exports.props$2=jl,exports.props$3=Ll,exports.props$4=Nl,exports.props$5=Dl,exports.props$6=Ml,exports.props$7=Fl,exports.props$8=Ul,exports.props$9=pd,exports.r=(e,t,n)=>_s(e,t,n),exports.random=ic,exports.ref=Jo,exports.relativeTime=_l,exports.resolveComponent=function(e,t){return function(e,t,n=!0,o=!1){const r=Pr||_i;if(r){const n=r.type;if(e===Xr){const e=function(e,t=!0){return S(e)?e.displayName||e.name:e.name||t&&e.__name}(n,!1);if(e&&(e===t||e===L(t)||e===M(L(t))))return n}const i=Zr(r[e]||n[e],t)||Zr(r.appContext[e],t);return!i&&o?n:i}}(Xr,e,!0,t)||e},exports.s=e=>Os(e),exports.sleep=oc,exports.t=e=>(e=>A(e)?e:null==e?"":v(e)||k(e)&&(e.toString===P||!S(e.toString))?JSON.stringify(e,a,2):String(e))(e),exports.test=Va,exports.throttle=qc,exports.toast=gc,exports.transitionMixin=kd,exports.unref=Go,exports.uviewPlus=ol,exports.value=dd,exports.watch=Or,exports.wx$1=Tn; diff --git a/dist/build/mp-weixin/components/hs-button/hs-button.js b/dist/build/mp-weixin/components/hs-button/hs-button.js index 706cfd1..58aed24 100644 --- a/dist/build/mp-weixin/components/hs-button/hs-button.js +++ b/dist/build/mp-weixin/components/hs-button/hs-button.js @@ -1 +1 @@ -"use strict";const o=require("../../common/vendor.js");if(!Array){o.resolveComponent("uni-icons")()}Math;const e=o.defineComponent({__name:"hs-button",props:["type","label","icon","size","openType","iconColor","buttonStyle"],emits:["click","onGetPhoneNumber"],setup(e,{emit:n}){const t=e,l=()=>{n("click")},i=o=>{var e;"getPhoneNumber:ok"===(null==(e=null==o?void 0:o.detail)?void 0:e.errMsg)&&n("onGetPhoneNumber",o)};return(e,n)=>o.e({a:null==t?void 0:t.icon},(null==t?void 0:t.icon)?{b:o.p({type:null==t?void 0:t.icon,size:"16",color:(null==t?void 0:t.iconColor)||"#0082fa"})}:{},{c:o.t((null==t?void 0:t.label)||"我是按钮"),d:o.s(t.buttonStyle),e:(null==t?void 0:t.openType)||"",f:o.n(`nchl_button ${null==t?void 0:t.type}_button ${(null==t?void 0:t.size)||"sm"}_size`),g:o.o(l),h:o.o(i)})}}),n=o._export_sfc(e,[["__scopeId","data-v-796fb882"]]);wx.createComponent(n); +"use strict";const o=require("../../common/vendor.js");if(!Array){o.resolveComponent("uni-icons")()}Math;const e=o.defineComponent({__name:"hs-button",props:["type","label","icon","size","openType","disabled","iconColor","buttonStyle"],emits:["click","onGetPhoneNumber"],setup(e,{emit:n}){const l=e,t=()=>{n("click")},i=o=>{var e;"getPhoneNumber:ok"===(null==(e=null==o?void 0:o.detail)?void 0:e.errMsg)&&n("onGetPhoneNumber",o)};return(e,n)=>o.e({a:null==l?void 0:l.icon},(null==l?void 0:l.icon)?{b:o.p({type:null==l?void 0:l.icon,size:"16",color:(null==l?void 0:l.iconColor)||"#0082fa"})}:{},{c:o.t((null==l?void 0:l.label)||"我是按钮"),d:o.s(l.buttonStyle),e:(null==l?void 0:l.openType)||"",f:o.n(`nchl_button ${null==l?void 0:l.type}_button ${(null==l?void 0:l.size)||"sm"}_size`),g:o.o(t),h:o.o(i),i:null==l?void 0:l.disabled})}}),n=o._export_sfc(e,[["__scopeId","data-v-ac93088e"]]);wx.createComponent(n); diff --git a/dist/build/mp-weixin/components/hs-button/hs-button.wxml b/dist/build/mp-weixin/components/hs-button/hs-button.wxml index e5afb71..3e6bd80 100644 --- a/dist/build/mp-weixin/components/hs-button/hs-button.wxml +++ b/dist/build/mp-weixin/components/hs-button/hs-button.wxml @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/dist/build/mp-weixin/components/hs-button/hs-button.wxss b/dist/build/mp-weixin/components/hs-button/hs-button.wxss index 084abdc..fb33384 100644 --- a/dist/build/mp-weixin/components/hs-button/hs-button.wxss +++ b/dist/build/mp-weixin/components/hs-button/hs-button.wxss @@ -1 +1 @@ -button.data-v-796fb882:after{border:none}.page_title.data-v-796fb882{font-weight:600;font-size:28rpx}.nchl_button.data-v-796fb882{padding:0 23rpx;border-radius:100rpx;font-weight:400;font-size:26rpx;text-align:center;color:#3c5b86;display:flex;background-color:#fff;align-items:center;justify-content:center}.primary_button.data-v-796fb882{background:#0082fa;color:#fff}.default_button.data-v-796fb882{background:#fff;color:#000;border:1rpx solid #eee}.display_button.data-v-796fb882{background:#f3f3f4;color:#0082fa}.delete_button.data-v-796fb882{background:#d43030;color:#fff}.ghost_button.data-v-796fb882{background:#fff;border:1rpx solid #0082fa;color:#0082fa}.sm_size.data-v-796fb882{height:60rpx;line-height:60rpx}.md_size.data-v-796fb882{height:80rpx;line-height:80rpx}.lg_size.data-v-796fb882{height:100rpx;line-height:100rpx;font-size:32rpx} +button.data-v-ac93088e:after{border:none}.page_title.data-v-ac93088e{font-weight:600;font-size:28rpx}.nchl_button.data-v-ac93088e{padding:0 23rpx;border-radius:100rpx;font-weight:400;font-size:26rpx;text-align:center;color:#3c5b86;display:flex;background-color:#fff;align-items:center;justify-content:center}.primary_button.data-v-ac93088e{background:#0082fa;color:#fff}.default_button.data-v-ac93088e{background:#fff;color:#000;border:1rpx solid #eee}.display_button.data-v-ac93088e{background:#f3f3f4;color:#0082fa}.delete_button.data-v-ac93088e{background:#d43030;color:#fff}.ghost_button.data-v-ac93088e{background:#fff;border:1rpx solid #0082fa;color:#0082fa}.sm_size.data-v-ac93088e{height:60rpx;line-height:60rpx}.md_size.data-v-ac93088e{height:80rpx;line-height:80rpx}.lg_size.data-v-ac93088e{height:100rpx;line-height:100rpx;font-size:32rpx} diff --git a/dist/build/mp-weixin/components/hs-cell/hs-cell.js b/dist/build/mp-weixin/components/hs-cell/hs-cell.js index 1e9c879..8f60658 100644 --- a/dist/build/mp-weixin/components/hs-cell/hs-cell.js +++ b/dist/build/mp-weixin/components/hs-cell/hs-cell.js @@ -1 +1 @@ -"use strict";const e=require("../../common/vendor.js"),l=require("../../common/libraries/naviHelper.js");if(!Array){e.resolveComponent("uni-icons")()}Math;const i=e.defineComponent({__name:"hs-cell",props:["title","required","borderTop","isLink","tip","value","url","isPlaceholder","padding","des","rightStyle","titleStyle"],emits:["click"],setup(i,{emit:o}){const t=i,n=()=>{(null==t?void 0:t.url)?l.goto(t.url):o("click")};return(l,o)=>e.e({a:e.t((null==t?void 0:t.title)||"标题"),b:i.required},(i.required,{}),{c:e.s(t.titleStyle),d:null==t?void 0:t.value},(null==t?void 0:t.value)?{e:e.t(null==t?void 0:t.value)}:{f:e.s(t.rightStyle)},{g:null==t?void 0:t.isLink},(null==t?void 0:t.isLink)?{h:e.t(!(null==t?void 0:t.value)&&(null==t?void 0:t.isPlaceholder)?(null==t?void 0:t.tip)||"请选择":""),i:e.p({type:"right",size:"15",color:"#333"})}:{},{j:null==t?void 0:t.des},(null==t?void 0:t.des)?{k:e.p({type:"info-filled",size:"15",color:"#999"}),l:e.t(null==t?void 0:t.des)}:{},{m:t.borderTop?"1rpx solid #eee":"",n:(null==t?void 0:t.padding)||"15rpx 0",o:e.o(n)})}}),o=e._export_sfc(i,[["__scopeId","data-v-1a9cef27"]]);wx.createComponent(o); +"use strict";const e=require("../../common/vendor.js"),l=require("../../common/libraries/naviHelper.js");if(!Array){e.resolveComponent("uni-icons")()}Math;const i=e.defineComponent({__name:"hs-cell",props:["title","required","borderTop","isLink","tip","value","url","isPlaceholder","padding","des","rightStyle","titleStyle"],emits:["click"],setup(i,{emit:o}){const t=i,n=()=>{(null==t?void 0:t.url)?l.goto(t.url):o("click")};return(l,o)=>e.e({a:e.t((null==t?void 0:t.title)||"标题"),b:i.required},(i.required,{}),{c:e.s(t.titleStyle),d:null==t?void 0:t.value},(null==t?void 0:t.value)?{e:e.t(null==t?void 0:t.value)}:{f:e.s(t.rightStyle)},{g:null==t?void 0:t.isLink},(null==t?void 0:t.isLink)?{h:e.t(!(null==t?void 0:t.value)&&(null==t?void 0:t.isPlaceholder)?(null==t?void 0:t.tip)||"请选择":""),i:e.p({type:"right",size:"15",color:"#999"})}:{},{j:null==t?void 0:t.des},(null==t?void 0:t.des)?{k:e.p({type:"info-filled",size:"15",color:"#999"}),l:e.t(null==t?void 0:t.des)}:{},{m:t.borderTop?"1rpx solid #eee":"",n:(null==t?void 0:t.padding)||"15rpx 0",o:e.o(n)})}}),o=e._export_sfc(i,[["__scopeId","data-v-5c7f1392"]]);wx.createComponent(o); diff --git a/dist/build/mp-weixin/components/hs-cell/hs-cell.wxml b/dist/build/mp-weixin/components/hs-cell/hs-cell.wxml index cbf5c9d..1f4c963 100644 --- a/dist/build/mp-weixin/components/hs-cell/hs-cell.wxml +++ b/dist/build/mp-weixin/components/hs-cell/hs-cell.wxml @@ -1 +1 @@ -{{a}} * {{e}}{{h}} {{l}} \ No newline at end of file +{{a}} * {{e}}{{h}} {{l}} \ No newline at end of file diff --git a/dist/build/mp-weixin/components/hs-cell/hs-cell.wxss b/dist/build/mp-weixin/components/hs-cell/hs-cell.wxss index 386b122..a7298bb 100644 --- a/dist/build/mp-weixin/components/hs-cell/hs-cell.wxss +++ b/dist/build/mp-weixin/components/hs-cell/hs-cell.wxss @@ -1 +1 @@ -.wl_cell.data-v-1a9cef27{padding:10rpx 0}.wl_cell .wl_cell_header.data-v-1a9cef27{display:flex;align-items:center;justify-content:space-between}.wl_cell .title.data-v-1a9cef27{color:#333;font-size:30rpx}.wl_cell .title text.data-v-1a9cef27{color:red}.wl_cell .right_value.data-v-1a9cef27{flex:1;display:flex;align-items:center;justify-content:flex-end;padding:0 0 0 10rpx;font-size:28rpx}.wl_cell .right_value_text.data-v-1a9cef27{padding:20rpx 0}.isLabelRight.data-v-1a9cef27{font-weight:400;font-size:28rpx;color:#888;display:flex;align-items:center;padding:20rpx 0}.rent_des.data-v-1a9cef27{display:flex;align-items:center;color:#999;font-size:20rpx;padding:0 0 20rpx}.rent_des text.data-v-1a9cef27{padding-left:10rpx} +.wl_cell.data-v-5c7f1392{padding:10rpx 0}.wl_cell .wl_cell_header.data-v-5c7f1392{display:flex;align-items:center;justify-content:space-between}.wl_cell .title.data-v-5c7f1392{color:#333;font-size:30rpx}.wl_cell .title text.data-v-5c7f1392{color:red}.wl_cell .right_value.data-v-5c7f1392{flex:1;display:flex;align-items:center;justify-content:flex-end;padding:0 0 0 10rpx;font-size:28rpx}.wl_cell .right_value_text.data-v-5c7f1392{padding:20rpx 0}.isLabelRight.data-v-5c7f1392{font-weight:400;font-size:26rpx;color:#ccc;display:flex;align-items:center;padding:20rpx 0}.rent_des.data-v-5c7f1392{display:flex;align-items:center;color:#999;font-size:20rpx;padding:0 0 20rpx}.rent_des text.data-v-5c7f1392{padding-left:10rpx} diff --git a/dist/build/mp-weixin/components/hs-day-picker/hs-day-picker.js b/dist/build/mp-weixin/components/hs-day-picker/hs-day-picker.js new file mode 100644 index 0000000..4613c6a --- /dev/null +++ b/dist/build/mp-weixin/components/hs-day-picker/hs-day-picker.js @@ -0,0 +1 @@ +"use strict";const e=require("../../common/vendor.js"),l=require("../../common/libraries/day.js");if(!Array){e.resolveComponent("uni-icons")()}Math;const o=e.defineComponent({__name:"hs-day-picker",props:["Enums","title","pickerIndex","value","borderTop","required","valueModel","icon","iconSize","mode"],emits:["change","update:valueModel"],setup(o,{emit:n}){const u=o,d=e.ref(""),a=e=>{var l,o,u;d.value=null==(l=null==e?void 0:e.detail)?void 0:l.value,n("update:valueModel",null==(o=null==e?void 0:e.detail)?void 0:o.value),n("change",null==(u=null==e?void 0:e.detail)?void 0:u.value)};return e.watch((()=>null==u?void 0:u.valueModel),(e=>{d.value=e})),e.onMounted((()=>{(null==u?void 0:u.valueModel)?d.value=null==u?void 0:u.valueModel:(d.value=l.getDay(),n("update:valueModel",d.value))})),(o,n)=>e.e({a:e.t(d.value),b:null==u?void 0:u.icon},(null==u?void 0:u.icon)?{c:e.p({type:null==u?void 0:u.icon,size:(null==u?void 0:u.iconSize)||19,color:"#555"})}:{},{d:(null==u?void 0:u.mode)||"date",e:e.o(a),f:e.unref(l.getDay)(-3),g:e.unref(l.getDay)()})}}),n=e._export_sfc(o,[["__scopeId","data-v-88c7e8d8"]]);wx.createComponent(n); diff --git a/dist/build/mp-weixin/components/hs-day-picker/hs-day-picker.json b/dist/build/mp-weixin/components/hs-day-picker/hs-day-picker.json new file mode 100644 index 0000000..2caa312 --- /dev/null +++ b/dist/build/mp-weixin/components/hs-day-picker/hs-day-picker.json @@ -0,0 +1,6 @@ +{ + "component": true, + "usingComponents": { + "uni-icons": "../../uni_modules/uni-icons/components/uni-icons/uni-icons" + } +} \ No newline at end of file diff --git a/dist/build/mp-weixin/components/hs-day-picker/hs-day-picker.wxml b/dist/build/mp-weixin/components/hs-day-picker/hs-day-picker.wxml new file mode 100644 index 0000000..3a60d6c --- /dev/null +++ b/dist/build/mp-weixin/components/hs-day-picker/hs-day-picker.wxml @@ -0,0 +1 @@ +{{a}} \ No newline at end of file diff --git a/dist/build/mp-weixin/components/hs-day-picker/hs-day-picker.wxss b/dist/build/mp-weixin/components/hs-day-picker/hs-day-picker.wxss new file mode 100644 index 0000000..426daff --- /dev/null +++ b/dist/build/mp-weixin/components/hs-day-picker/hs-day-picker.wxss @@ -0,0 +1 @@ +.nchl_day_picker.data-v-88c7e8d8{color:#333;font-size:28rpx;display:flex;align-items:center}.nchl_day_picker text.data-v-88c7e8d8{padding-right:10rpx} diff --git a/dist/build/mp-weixin/components/hs-footer/hs-footer.js b/dist/build/mp-weixin/components/hs-footer/hs-footer.js index 9abd82a..6009e04 100644 --- a/dist/build/mp-weixin/components/hs-footer/hs-footer.js +++ b/dist/build/mp-weixin/components/hs-footer/hs-footer.js @@ -1 +1 @@ -"use strict";const e=require("../../common/vendor.js");if(!Array){e.resolveComponent("hs-button")()}Math;const t=e.defineComponent({__name:"hs-footer",props:["btnParimaryName","btnOtherName","btnOtherShow","back"],emits:["handleParmaryClick","handleOtherClick"],setup(t,{emit:a}){const n=t,o=()=>{a("handleParmaryClick")},r=()=>{a("handleOtherClick"),(null==n?void 0:n.back)&&e.index.navigateBack({delta:1})};return(t,a)=>e.e({a:!t.$slots.default},t.$slots.default?{}:e.e({b:null==n?void 0:n.btnOtherShow},(null==n?void 0:n.btnOtherShow)?{c:e.p({label:(null==n?void 0:n.btnOtherName)||"返回",type:"ghost",size:"md"}),d:e.o(r)}:{},{e:e.p({label:(null==n?void 0:n.btnParimaryName)||"提交",type:"primary",size:"md"}),f:e.o(o)}))}}),a=e._export_sfc(t,[["__scopeId","data-v-c1651fe1"]]);wx.createComponent(a); +"use strict";const e=require("../../common/vendor.js");if(!Array){e.resolveComponent("hs-button")()}Math;const a=e.defineComponent({__name:"hs-footer",props:["btnParimaryName","btnOtherName","btnOtherShow","back","parimaryDisabled"],emits:["handleParmaryClick","handleOtherClick"],setup(a,{emit:t}){const n=a,r=()=>{t("handleParmaryClick")},l=()=>{t("handleOtherClick"),(null==n?void 0:n.back)&&e.index.navigateBack({delta:1})};return(a,t)=>e.e({a:!a.$slots.default},a.$slots.default?{}:e.e({b:null==n?void 0:n.btnOtherShow},(null==n?void 0:n.btnOtherShow)?{c:e.p({label:(null==n?void 0:n.btnOtherName)||"返回",type:"ghost",size:"md"}),d:e.o(l)}:{},{e:e.p({label:(null==n?void 0:n.btnParimaryName)||"提交",type:"primary",disabled:null==n?void 0:n.parimaryDisabled,size:"md"}),f:e.o(r)}))}}),t=e._export_sfc(a,[["__scopeId","data-v-98a9dbc3"]]);wx.createComponent(t); diff --git a/dist/build/mp-weixin/components/hs-footer/hs-footer.wxml b/dist/build/mp-weixin/components/hs-footer/hs-footer.wxml index 35f3df4..43f62d2 100644 --- a/dist/build/mp-weixin/components/hs-footer/hs-footer.wxml +++ b/dist/build/mp-weixin/components/hs-footer/hs-footer.wxml @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/dist/build/mp-weixin/components/hs-footer/hs-footer.wxss b/dist/build/mp-weixin/components/hs-footer/hs-footer.wxss index 8d242f5..d844bbf 100644 --- a/dist/build/mp-weixin/components/hs-footer/hs-footer.wxss +++ b/dist/build/mp-weixin/components/hs-footer/hs-footer.wxss @@ -1 +1 @@ -.wl_footer.data-v-c1651fe1{position:fixed;bottom:0;left:0;right:0;box-shadow:0 -3px 7px rgba(206,206,206,.25);padding:30rpx 30rpx 0;z-index:100;background-color:#fff;padding-bottom:calc(20rpx + constant(safe-area-inset-bottom));padding-bottom:calc(20rpx + env(safe-area-inset-bottom))}.wl_footer .wl_footer_contents.data-v-c1651fe1{display:flex;align-items:center;justify-content:space-between}.wl_footer .wl_footer_item.data-v-c1651fe1{flex:1}.wl_footer .first_child_btn.data-v-c1651fe1{margin-right:30rpx} +.wl_footer.data-v-98a9dbc3{position:fixed;bottom:0;left:0;right:0;box-shadow:0 -3px 7px rgba(206,206,206,.25);padding:30rpx 30rpx 0;z-index:100;background-color:#fff;padding-bottom:calc(20rpx + constant(safe-area-inset-bottom));padding-bottom:calc(20rpx + env(safe-area-inset-bottom))}.wl_footer .wl_footer_contents.data-v-98a9dbc3{display:flex;align-items:center;justify-content:space-between}.wl_footer .wl_footer_item.data-v-98a9dbc3{flex:1}.wl_footer .first_child_btn.data-v-98a9dbc3{margin-right:30rpx} diff --git a/dist/build/mp-weixin/components/hs-popup-building/hs-popup-building.js b/dist/build/mp-weixin/components/hs-popup-building/hs-popup-building.js new file mode 100644 index 0000000..fc224d9 --- /dev/null +++ b/dist/build/mp-weixin/components/hs-popup-building/hs-popup-building.js @@ -0,0 +1 @@ +"use strict";const e=require("../../common/vendor.js"),o=require("../../common/libraries/apiLoading.js"),l=require("../../common/libraries/naviHelper.js"),n=require("../../gen/Apis.js");if(require("../../common/libraries/request.js"),require("../../common/store/useWeAppAuthStore.js"),require("../../common/store/useWatermarkStore.js"),require("../../common/store/useWorkStore.js"),!Array){(e.resolveComponent("uni-icons")+e.resolveComponent("hs-popup"))()}Math||((()=>"../../uni_modules/uni-icons/components/uni-icons/uni-icons.js")+(()=>"../hs-popup/hs-popup.js"))();const i=e.defineComponent({__name:"hs-popup-building",props:["Apis","baseStyle","params"],emits:["close","change"],setup(i,{emit:s}){const a=i,u=e.ref({name:"全部楼栋",id:0}),r=e.ref({page:1}),d=e.ref([]);e.ref({});const t=e.ref(!1),v=()=>{var e;console.log(null==a?void 0:a.params,"成都市 "),!t.value&&(null==(e=null==a?void 0:a.params)?void 0:e.asset_projects_id)?(t.value=!t.value,p()):l.showToast("请先选择项目!")},p=()=>{var e,l,i;o.getApiLoading(null==(i=null==(l=null==(e=n.Apis)?void 0:e.Asset)?void 0:l.AssetHouses)?void 0:i.SelectBuilding,{...r.value,...null==a?void 0:a.params}).then((e=>{d.value=null==e?void 0:e.data,console.log(e)}))},m=()=>{t.value=!t.value},c=()=>{u.value={name:"全部楼栋",id:0},s("change",{asset_buildings_id:void 0})};return(o,l)=>{var n,i,r,p,g;return e.e({a:e.t(null==(n=u.value)?void 0:n.name),b:e.s((null==a?void 0:a.baseStyle)||{}),c:"全部楼栋"===(null==(i=u.value)?void 0:i.name)},"全部楼栋"===(null==(r=u.value)?void 0:r.name)?{d:e.p({type:"down",color:"#333",size:"12"})}:{},{e:e.o(v),f:"全部楼栋"!==(null==(p=u.value)?void 0:p.name)},"全部楼栋"!==(null==(g=u.value)?void 0:g.name)?{g:e.p({type:"close",color:"#666",size:"18"}),h:e.o(c)}:{},{i:e.f(d.value,((o,l,n)=>{var i,a;return e.e({a:e.t(null==o?void 0:o.name),b:(null==(i=u.value)?void 0:i.id)===(null==o?void 0:o.id)},(null==(a=u.value)?void 0:a.id)===(null==o?void 0:o.id)?{c:"25a60dae-3-"+n+",25a60dae-2",d:e.p({type:"checkmarkempty",size:"20",color:"#2A7EFB"})}:{},{e:`key_${l}`,f:e.o((e=>(e=>{u.value=e,s("change",{asset_buildings_id:null==e?void 0:e.id}),m()})(o)),`key_${l}`)})})),j:e.o(m),k:e.p({show:t.value,mode:"bottom",closeable:!0,round:20})})}}}),s=e._export_sfc(i,[["__scopeId","data-v-25a60dae"]]);wx.createComponent(s); diff --git a/dist/build/mp-weixin/components/hs-popup-building/hs-popup-building.json b/dist/build/mp-weixin/components/hs-popup-building/hs-popup-building.json new file mode 100644 index 0000000..18956ef --- /dev/null +++ b/dist/build/mp-weixin/components/hs-popup-building/hs-popup-building.json @@ -0,0 +1,7 @@ +{ + "component": true, + "usingComponents": { + "uni-icons": "../../uni_modules/uni-icons/components/uni-icons/uni-icons", + "hs-popup": "../hs-popup/hs-popup" + } +} \ No newline at end of file diff --git a/dist/build/mp-weixin/components/hs-popup-building/hs-popup-building.wxml b/dist/build/mp-weixin/components/hs-popup-building/hs-popup-building.wxml new file mode 100644 index 0000000..88b7b73 --- /dev/null +++ b/dist/build/mp-weixin/components/hs-popup-building/hs-popup-building.wxml @@ -0,0 +1 @@ +{{a}} 选择楼栋 {{i.a}} \ No newline at end of file diff --git a/dist/build/mp-weixin/components/hs-popup-building/hs-popup-building.wxss b/dist/build/mp-weixin/components/hs-popup-building/hs-popup-building.wxss new file mode 100644 index 0000000..3d932f1 --- /dev/null +++ b/dist/build/mp-weixin/components/hs-popup-building/hs-popup-building.wxss @@ -0,0 +1 @@ +.hs_modal_picker.data-v-25a60dae{display:flex;align-items:center;justify-content:space-between}.popup_merchant_select_body.data-v-25a60dae{background-color:#fff;padding-bottom:calc(48px + constant(safe-area-inset-bottom));padding-bottom:calc(48px + env(safe-area-inset-bottom));border-top-left-radius:20rpx;border-top-right-radius:20rpx;overflow:hidden}.popup_merchant_select_body .popup_merchant_select_title.data-v-25a60dae{text-align:center;padding:30rpx 0;font-size:30rpx;background-color:#f8f8f8;border-bottom:1rpx solid #eee}.popup_merchant_select_body .scroll-Y.data-v-25a60dae{width:100%;height:660rpx}.popup_merchant_select_body .popup_merchant_body.data-v-25a60dae{font-size:30rpx;color:#333}.popup_merchant_select_body .popup_merchant_body .merchant_item.data-v-25a60dae{padding:30rpx;border-bottom:1rpx solid #f8f8f8;display:flex;justify-content:space-between;align-items:center}.popup_merchant_select_body .popup_merchant_footer.data-v-25a60dae{display:flex;align-items:center;justify-content:space-between;padding:30rpx 50rpx}.popup_merchant_select_body .popup_merchant_footer .btn.data-v-25a60dae{flex:1}.popup_merchant_select_body .popup_merchant_footer .btn.data-v-25a60dae:last-child{margin-left:30rpx}.select_day_btn.data-v-25a60dae{display:flex;align-items:center;border-radius:50rpx;text-align:center;font-size:28rpx;padding:14rpx 0;color:#666}.select_day_btn .name.data-v-25a60dae{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding-right:10rpx;max-width:180rpx} diff --git a/dist/build/mp-weixin/components/hs-popup-employees/hs-popup-employees.js b/dist/build/mp-weixin/components/hs-popup-employees/hs-popup-employees.js new file mode 100644 index 0000000..55f9f16 --- /dev/null +++ b/dist/build/mp-weixin/components/hs-popup-employees/hs-popup-employees.js @@ -0,0 +1 @@ +"use strict";const e=require("../../common/vendor.js"),o=require("../../common/libraries/apiLoading.js"),l=require("../../gen/Apis.js");if(require("../../common/libraries/request.js"),require("../../common/store/useWeAppAuthStore.js"),require("../../common/store/useWatermarkStore.js"),require("../../common/store/useWorkStore.js"),!Array){(e.resolveComponent("hs-cell")+e.resolveComponent("uni-icons")+e.resolveComponent("hs-popup"))()}Math||((()=>"../hs-cell/hs-cell.js")+(()=>"../../uni_modules/uni-icons/components/uni-icons/uni-icons.js")+(()=>"../hs-popup/hs-popup.js"))();const u=e.defineComponent({__name:"hs-popup-employees",props:["Apis","title"],emits:["close","change","update:valueModel"],setup(u,{emit:r}){const s=e.ref({label:"",value:0}),a=e.ref([]),n=e.ref(!1),i=()=>{n.value=!n.value,n.value&&t()},t=()=>{o.getApiLoading(l.Apis.Company.CompanyEmployees.Select,{}).then((e=>{a.value=null==e?void 0:e.data,console.log(e)}))};return(o,l)=>{var t;return{a:e.o(i),b:e.p({title:u.title,value:(null==(t=s.value)?void 0:t.label)||"",isLink:!0,isPlaceholder:!0,borderTop:!0,required:!0}),c:e.f(a.value,((o,l,u)=>{var a,n;return e.e({a:e.t(null==o?void 0:o.label),b:(null==(a=s.value)?void 0:a.value)===(null==o?void 0:o.value)},(null==(n=s.value)?void 0:n.value)===(null==o?void 0:o.value)?{c:"d0c0aca0-2-"+u+",d0c0aca0-1",d:e.p({type:"checkmarkempty",size:"20",color:"#345CA1"})}:{},{e:`key_${l}`,f:e.o((e=>(e=>{s.value=e,r("change",e),r("update:valueModel",null==e?void 0:e.value),i()})(o)),`key_${l}`)})})),d:e.o(i),e:e.p({show:n.value,mode:"bottom",closeable:!0,round:20})}}}}),r=e._export_sfc(u,[["__scopeId","data-v-d0c0aca0"]]);wx.createComponent(r); diff --git a/dist/build/mp-weixin/components/hs-popup-employees/hs-popup-employees.json b/dist/build/mp-weixin/components/hs-popup-employees/hs-popup-employees.json new file mode 100644 index 0000000..80065f8 --- /dev/null +++ b/dist/build/mp-weixin/components/hs-popup-employees/hs-popup-employees.json @@ -0,0 +1,8 @@ +{ + "component": true, + "usingComponents": { + "hs-cell": "../hs-cell/hs-cell", + "uni-icons": "../../uni_modules/uni-icons/components/uni-icons/uni-icons", + "hs-popup": "../hs-popup/hs-popup" + } +} \ No newline at end of file diff --git a/dist/build/mp-weixin/components/hs-popup-employees/hs-popup-employees.wxml b/dist/build/mp-weixin/components/hs-popup-employees/hs-popup-employees.wxml new file mode 100644 index 0000000..a58f5e9 --- /dev/null +++ b/dist/build/mp-weixin/components/hs-popup-employees/hs-popup-employees.wxml @@ -0,0 +1 @@ + 选择员工 {{i.a}} \ No newline at end of file diff --git a/dist/build/mp-weixin/components/hs-popup-employees/hs-popup-employees.wxss b/dist/build/mp-weixin/components/hs-popup-employees/hs-popup-employees.wxss new file mode 100644 index 0000000..3dd4635 --- /dev/null +++ b/dist/build/mp-weixin/components/hs-popup-employees/hs-popup-employees.wxss @@ -0,0 +1 @@ +.popup_merchant_select_body.data-v-d0c0aca0{background-color:#fff;padding-bottom:calc(48px + constant(safe-area-inset-bottom));padding-bottom:calc(48px + env(safe-area-inset-bottom));border-top-left-radius:20rpx;border-top-right-radius:20rpx;overflow:hidden}.popup_merchant_select_body .popup_merchant_select_title.data-v-d0c0aca0{text-align:center;padding:30rpx 0;font-size:30rpx;background-color:#f8f8f8;border-bottom:1rpx solid #eee}.popup_merchant_select_body .scroll-Y.data-v-d0c0aca0{width:100%;height:660rpx}.popup_merchant_select_body .popup_merchant_body.data-v-d0c0aca0{font-size:30rpx;color:#333}.popup_merchant_select_body .popup_merchant_body .merchant_item.data-v-d0c0aca0{padding:30rpx;border-bottom:1rpx solid #f8f8f8;display:flex;justify-content:space-between;align-items:center}.popup_merchant_select_body .popup_merchant_footer.data-v-d0c0aca0{display:flex;align-items:center;justify-content:space-between;padding:30rpx 50rpx}.popup_merchant_select_body .popup_merchant_footer .btn.data-v-d0c0aca0{flex:1}.popup_merchant_select_body .popup_merchant_footer .btn.data-v-d0c0aca0:last-child{margin-left:30rpx}.select_day_btn.data-v-d0c0aca0{display:flex;align-items:center;background-color:#eee;border-radius:50rpx;text-align:center;font-size:28rpx;padding:14rpx 20rpx}.select_day_btn .name.data-v-d0c0aca0{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding-right:10rpx;max-width:180rpx} diff --git a/dist/build/mp-weixin/components/hs-popup-project/hs-popup-project.js b/dist/build/mp-weixin/components/hs-popup-project/hs-popup-project.js new file mode 100644 index 0000000..5873688 --- /dev/null +++ b/dist/build/mp-weixin/components/hs-popup-project/hs-popup-project.js @@ -0,0 +1 @@ +"use strict";const e=require("../../common/vendor.js"),o=require("../../common/libraries/apiLoading.js"),l=require("../../gen/Apis.js");if(require("../../common/libraries/request.js"),require("../../common/store/useWeAppAuthStore.js"),require("../../common/store/useWatermarkStore.js"),require("../../common/store/useWorkStore.js"),!Array){(e.resolveComponent("uni-icons")+e.resolveComponent("hs-scroll-view")+e.resolveComponent("hs-popup"))()}Math||((()=>"../../uni_modules/uni-icons/components/uni-icons/uni-icons.js")+(()=>"../hs-scroll-view/hs-scroll-view.js")+(()=>"../hs-popup/hs-popup.js"))();const n=e.defineComponent({__name:"hs-popup-project",props:["Apis","baseStyle"],emits:["close","change"],setup(n,{emit:s}){const u=n,i=e.ref({page:1}),a=e.ref({}),r=e.ref({name:"全部项目",id:0}),t=e.ref([]),v=e.ref(!1),d=()=>{v.value=!v.value,v.value&&(i.value.page=1,t.value=[],c())},p=e=>{i.value.page=(null==e?void 0:e.page)||1,c()},c=()=>{var e,n,s;o.getApiLoading(null==(s=null==(n=null==(e=l.Apis)?void 0:e.Asset)?void 0:n.AssetHouses)?void 0:s.SelectProject,i.value).then((e=>{t.value=[...t.value,...null==e?void 0:e.data],a.value=null==e?void 0:e.meta,console.log(e)}))},m=()=>{r.value={name:"全部项目",id:0},s("change",{asset_projects_id:void 0})};return(o,l)=>{var n,i,c,f,h;return e.e({a:e.t(null==(n=r.value)?void 0:n.name),b:e.s((null==u?void 0:u.baseStyle)||{}),c:"全部项目"===(null==(i=r.value)?void 0:i.name)},"全部项目"===(null==(c=r.value)?void 0:c.name)?{d:e.p({type:"down",color:"#333",size:"12"})}:{},{e:e.o(d),f:"全部项目"!==(null==(f=r.value)?void 0:f.name)},"全部项目"!==(null==(h=r.value)?void 0:h.name)?{g:e.p({type:"close",color:"#666",size:"18"}),h:e.o(m)}:{},{i:e.f(t.value,((o,l,n)=>{var u,i;return e.e({a:e.t(null==o?void 0:o.name),b:e.t(null==o?void 0:o.province),c:e.t(null==o?void 0:o.city),d:e.t(null==o?void 0:o.area),e:(null==(u=r.value)?void 0:u.id)===(null==o?void 0:o.id)},(null==(i=r.value)?void 0:i.id)===(null==o?void 0:o.id)?{f:"24d2ff27-4-"+n+",24d2ff27-3",g:e.p({type:"checkmarkempty",size:"20",color:"#2A7EFB"})}:{},{h:`key_${l}`,i:e.o((e=>(e=>{r.value=e,s("change",{asset_projects_id:null==e?void 0:e.id}),v.value=!v.value})(o)),`key_${l}`)})})),j:e.o(p),k:e.p({meta:a.value}),l:e.o(d),m:e.p({show:v.value,mode:"bottom",closeable:!0,round:20})})}}}),s=e._export_sfc(n,[["__scopeId","data-v-24d2ff27"]]);wx.createComponent(s); diff --git a/dist/build/mp-weixin/components/hs-popup-project/hs-popup-project.json b/dist/build/mp-weixin/components/hs-popup-project/hs-popup-project.json new file mode 100644 index 0000000..82b3ccb --- /dev/null +++ b/dist/build/mp-weixin/components/hs-popup-project/hs-popup-project.json @@ -0,0 +1,8 @@ +{ + "component": true, + "usingComponents": { + "uni-icons": "../../uni_modules/uni-icons/components/uni-icons/uni-icons", + "hs-scroll-view": "../hs-scroll-view/hs-scroll-view", + "hs-popup": "../hs-popup/hs-popup" + } +} \ No newline at end of file diff --git a/dist/build/mp-weixin/components/hs-popup-project/hs-popup-project.wxml b/dist/build/mp-weixin/components/hs-popup-project/hs-popup-project.wxml new file mode 100644 index 0000000..d83c93c --- /dev/null +++ b/dist/build/mp-weixin/components/hs-popup-project/hs-popup-project.wxml @@ -0,0 +1 @@ +{{a}} 选择项目 {{i.a}} {{i.b}}{{i.c}}{{i.d}} \ No newline at end of file diff --git a/dist/build/mp-weixin/components/hs-popup-project/hs-popup-project.wxss b/dist/build/mp-weixin/components/hs-popup-project/hs-popup-project.wxss new file mode 100644 index 0000000..9f97afa --- /dev/null +++ b/dist/build/mp-weixin/components/hs-popup-project/hs-popup-project.wxss @@ -0,0 +1 @@ +.hs_modal_picker.data-v-24d2ff27{display:flex;align-items:center;justify-content:space-between}.popup_merchant_select_body.data-v-24d2ff27{background-color:#fff;padding-bottom:calc(48px + constant(safe-area-inset-bottom));padding-bottom:calc(48px + env(safe-area-inset-bottom));border-top-left-radius:20rpx;border-top-right-radius:20rpx;overflow:hidden}.popup_merchant_select_body .popup_merchant_select_title.data-v-24d2ff27{text-align:center;padding:30rpx 0;font-size:30rpx;background-color:#f8f8f8;border-bottom:1rpx solid #eee}.popup_merchant_select_body .scroll-Y.data-v-24d2ff27{width:100%;height:660rpx}.popup_merchant_select_body .popup_merchant_body.data-v-24d2ff27{font-size:30rpx;color:#333}.popup_merchant_select_body .popup_merchant_body .merchant_item.data-v-24d2ff27{padding:30rpx;border-bottom:1rpx solid #f8f8f8;display:flex;justify-content:space-between;align-items:center}.popup_merchant_select_body .popup_merchant_body .address.data-v-24d2ff27{font-size:24rpx;color:#999}.popup_merchant_select_body .popup_merchant_footer.data-v-24d2ff27{display:flex;align-items:center;justify-content:space-between;padding:30rpx 50rpx}.popup_merchant_select_body .popup_merchant_footer .btn.data-v-24d2ff27{flex:1}.popup_merchant_select_body .popup_merchant_footer .btn.data-v-24d2ff27:last-child{margin-left:30rpx}.select_day_btn.data-v-24d2ff27{display:flex;align-items:center;border-radius:50rpx;text-align:center;font-size:28rpx;padding:14rpx 0;color:#666}.select_day_btn .name.data-v-24d2ff27{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding-right:10rpx;max-width:180rpx} diff --git a/dist/build/mp-weixin/components/hs-popup/hs-popup.js b/dist/build/mp-weixin/components/hs-popup/hs-popup.js index e566542..3b3f28d 100644 --- a/dist/build/mp-weixin/components/hs-popup/hs-popup.js +++ b/dist/build/mp-weixin/components/hs-popup/hs-popup.js @@ -1 +1 @@ -"use strict";const o=require("../../common/vendor.js");if(!Array){o.resolveComponent("up-popup")()}Math;const e=o.defineComponent({__name:"hs-popup",props:["show","mode","insetBottom","round","closeable"],emits:["close"],setup(e,{emit:t}){const n=e,s=()=>{t("close")};return(e,t)=>({a:o.o(s),b:o.p({customStyle:(null==n?void 0:n.insetBottom)?{bottom:"calc(env(safe-area-inset-bottom) + 48px)"}:{},overlayStyle:(null==n?void 0:n.insetBottom)?{bottom:"calc(env(safe-area-inset-bottom) + 48px)"}:{},show:n.show,mode:(null==n?void 0:n.mode)||"top",round:(null==n?void 0:n.round)||0,closeable:null==n?void 0:n.closeable})})}}),t=o._export_sfc(e,[["__scopeId","data-v-8c81e491"]]);wx.createComponent(t); +"use strict";const o=require("../../common/vendor.js");if(!Array){o.resolveComponent("up-popup")()}Math;const e=o.defineComponent({__name:"hs-popup",props:["show","mode","insetBottom","round","closeable"],emits:["close"],setup(e,{emit:t}){const n=e,s=()=>{t("close")};return(e,t)=>({a:o.o(s),b:o.p({customStyle:(null==n?void 0:n.insetBottom)?{bottom:"calc(env(safe-area-inset-bottom) + 48px)"}:{},overlayStyle:(null==n?void 0:n.insetBottom)?{bottom:"calc(env(safe-area-inset-bottom) + 48px)"}:{},show:n.show,mode:(null==n?void 0:n.mode)||"top",round:(null==n?void 0:n.round)||0,closeable:null==n?void 0:n.closeable})})}}),t=o._export_sfc(e,[["__scopeId","data-v-49840795"]]);wx.createComponent(t); diff --git a/dist/build/mp-weixin/components/hs-popup/hs-popup.wxml b/dist/build/mp-weixin/components/hs-popup/hs-popup.wxml index a609db4..a7c6677 100644 --- a/dist/build/mp-weixin/components/hs-popup/hs-popup.wxml +++ b/dist/build/mp-weixin/components/hs-popup/hs-popup.wxml @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/dist/build/mp-weixin/components/hs-popup/hs-popup.wxss b/dist/build/mp-weixin/components/hs-popup/hs-popup.wxss index df07345..cc1615f 100644 --- a/dist/build/mp-weixin/components/hs-popup/hs-popup.wxss +++ b/dist/build/mp-weixin/components/hs-popup/hs-popup.wxss @@ -1 +1 @@ -.data-v-8c81e491 .u-transition{padding-bottom:calc(env(safe-area-inset-bottom) + 48px)!important} +.data-v-49840795 .u-transition{padding-bottom:calc(env(safe-area-inset-bottom) + 48px)!important}.popup_slot_content.data-v-49840795{border-top-left-radius:30rpx;border-top-right-radius:30rpx;overflow:hidden;background:linear-gradient(180deg,rgba(208,229,255,.44) 0%,rgba(255,255,255,0) 46%),linear-gradient(151deg,#d3d7ff 0%,rgba(255,255,255,0) 22%),linear-gradient(199deg,#dffff3 0%,#f7f7f7 23%)} diff --git a/dist/build/mp-weixin/components/hs-radio-picker-accounts/hs-radio-picker-accounts.js b/dist/build/mp-weixin/components/hs-radio-picker-accounts/hs-radio-picker-accounts.js new file mode 100644 index 0000000..298d924 --- /dev/null +++ b/dist/build/mp-weixin/components/hs-radio-picker-accounts/hs-radio-picker-accounts.js @@ -0,0 +1 @@ +"use strict";const e=require("../../common/vendor.js"),o=require("../../common/libraries/apiLoading.js"),l=require("../../gen/Apis.js");if(require("../../common/libraries/request.js"),require("../../common/store/useWeAppAuthStore.js"),require("../../common/store/useWatermarkStore.js"),require("../../common/store/useWorkStore.js"),!Array){e.resolveComponent("uni-icons")()}Math;const i=e.defineComponent({__name:"hs-radio-picker-accounts",props:["title","required","borderTop","isLink","tip","value","url","isPlaceholder","padding","des","rightStyle","titleStyle","disabled","key","placeholder","params"],emits:["change","update:valueModel"],setup(i,{emit:n}){const r=i,t=e.ref([]),a=e.ref(""),u=e=>{let o=t.value[null==e?void 0:e.detail.value];a.value=null==o?void 0:o.name,n("update:valueModel",(null==o?void 0:o.id)||""),n("change",o)};return e.onMounted((()=>{o.getApiLoading(l.Apis.Company.CompanyProjectReceiptAccounts.List,(null==r?void 0:r.params)||{}).then((e=>{var o;null==(o=null==e?void 0:e.data)||o.map((e=>{var o,l,i,n,r;e.name=`${null==(o=null==e?void 0:e.receipt_account)?void 0:o.company_name}/${null==(l=null==e?void 0:e.receipt_account)?void 0:l.company_bank}/${(null==(i=null==e?void 0:e.receipt_account)?void 0:i.company_account)?null==(r=null==(n=null==e?void 0:e.receipt_account)?void 0:n.company_account)?void 0:r.slice(-4):""}`})),t.value=null==e?void 0:e.data,console.log(e)}))})),(o,l)=>e.e({a:e.t((null==r?void 0:r.title)||"标题"),b:i.required},(i.required,{}),{c:e.s(r.titleStyle),d:a.value},a.value?{e:e.t(a.value)}:{f:e.t((null==r?void 0:r.placeholder)||"请选择")},{g:e.p({type:"right",color:"#333",size:"12"}),h:e.s(r.rightStyle),i:r.borderTop?"1rpx solid #eee":"",j:(null==r?void 0:r.padding)||"15rpx 0",k:t.value,l:(null==r?void 0:r.key)||"name",m:null==r?void 0:r.disabled,n:e.o(u)})}}),n=e._export_sfc(i,[["__scopeId","data-v-e36feea6"]]);wx.createComponent(n); diff --git a/dist/build/mp-weixin/components/hs-radio-picker-accounts/hs-radio-picker-accounts.json b/dist/build/mp-weixin/components/hs-radio-picker-accounts/hs-radio-picker-accounts.json new file mode 100644 index 0000000..2caa312 --- /dev/null +++ b/dist/build/mp-weixin/components/hs-radio-picker-accounts/hs-radio-picker-accounts.json @@ -0,0 +1,6 @@ +{ + "component": true, + "usingComponents": { + "uni-icons": "../../uni_modules/uni-icons/components/uni-icons/uni-icons" + } +} \ No newline at end of file diff --git a/dist/build/mp-weixin/components/hs-radio-picker-accounts/hs-radio-picker-accounts.wxml b/dist/build/mp-weixin/components/hs-radio-picker-accounts/hs-radio-picker-accounts.wxml new file mode 100644 index 0000000..6a74859 --- /dev/null +++ b/dist/build/mp-weixin/components/hs-radio-picker-accounts/hs-radio-picker-accounts.wxml @@ -0,0 +1 @@ +{{a}} * {{e}}{{f}} \ No newline at end of file diff --git a/dist/build/mp-weixin/components/hs-radio-picker-accounts/hs-radio-picker-accounts.wxss b/dist/build/mp-weixin/components/hs-radio-picker-accounts/hs-radio-picker-accounts.wxss new file mode 100644 index 0000000..252e9f7 --- /dev/null +++ b/dist/build/mp-weixin/components/hs-radio-picker-accounts/hs-radio-picker-accounts.wxss @@ -0,0 +1 @@ +.picker_select_btn.data-v-e36feea6{display:flex;align-items:center;justify-content:space-between;font-size:28rpx;color:#333}.picker_select_btn .title.data-v-e36feea6{color:#333;font-size:30rpx}.picker_select_btn .title text.data-v-e36feea6{color:red}.picker_select_btn .right_value.data-v-e36feea6{flex:1;display:flex;align-items:center;justify-content:flex-end;padding:15rpx 0 15rpx 10rpx;font-size:28rpx}.picker_select_btn .right_value .placeholder_style.data-v-e36feea6{color:#ccc} diff --git a/dist/build/mp-weixin/components/hs-radio-picker-enum/hs-radio-picker-enum.js b/dist/build/mp-weixin/components/hs-radio-picker-enum/hs-radio-picker-enum.js new file mode 100644 index 0000000..db74f8a --- /dev/null +++ b/dist/build/mp-weixin/components/hs-radio-picker-enum/hs-radio-picker-enum.js @@ -0,0 +1 @@ +"use strict";const e=require("../../common/vendor.js");if(!Array){e.resolveComponent("uni-icons")()}Math;const l=e.defineComponent({__name:"hs-radio-picker-enum",props:["Enums","title","pickerIndex","value","borderTop","required","disabled","tip","key","des","padding","valueModel","placeholder"],emits:["change","update:valueModel"],setup(l,{emit:o}){const n=l,d=e.ref(""),u=e=>{console.log("e",e,null==n?void 0:n.Enums);let l=null==n?void 0:n.Enums[null==e?void 0:e.detail.value];d.value=null==l?void 0:l.name,o("update:valueModel",(null==l?void 0:l.value)||""),o("change",l)};return(l,o)=>({a:e.t(d.value||(null==n?void 0:n.title)),b:e.p({type:"down",color:"#333",size:"12"}),c:null==n?void 0:n.Enums,d:(null==n?void 0:n.key)||"name",e:null==n?void 0:n.disabled,f:e.o(u)})}}),o=e._export_sfc(l,[["__scopeId","data-v-ad7532fb"]]);wx.createComponent(o); diff --git a/dist/build/mp-weixin/components/hs-radio-picker-enum/hs-radio-picker-enum.json b/dist/build/mp-weixin/components/hs-radio-picker-enum/hs-radio-picker-enum.json new file mode 100644 index 0000000..2caa312 --- /dev/null +++ b/dist/build/mp-weixin/components/hs-radio-picker-enum/hs-radio-picker-enum.json @@ -0,0 +1,6 @@ +{ + "component": true, + "usingComponents": { + "uni-icons": "../../uni_modules/uni-icons/components/uni-icons/uni-icons" + } +} \ No newline at end of file diff --git a/dist/build/mp-weixin/components/hs-radio-picker-enum/hs-radio-picker-enum.wxml b/dist/build/mp-weixin/components/hs-radio-picker-enum/hs-radio-picker-enum.wxml new file mode 100644 index 0000000..f294812 --- /dev/null +++ b/dist/build/mp-weixin/components/hs-radio-picker-enum/hs-radio-picker-enum.wxml @@ -0,0 +1 @@ +{{a}} \ No newline at end of file diff --git a/dist/build/mp-weixin/components/hs-radio-picker-enum/hs-radio-picker-enum.wxss b/dist/build/mp-weixin/components/hs-radio-picker-enum/hs-radio-picker-enum.wxss new file mode 100644 index 0000000..8be2159 --- /dev/null +++ b/dist/build/mp-weixin/components/hs-radio-picker-enum/hs-radio-picker-enum.wxss @@ -0,0 +1 @@ +.picker_select_btn.data-v-ad7532fb{padding:14rpx 20rpx;border-radius:100rpx;text-align:center;font-size:28rpx;display:flex;align-items:center;color:#666;margin-left:30rpx}.picker_select_btn text.data-v-ad7532fb{padding-right:10rpx}.picker_select_btn .label.data-v-ad7532fb{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:100rpx;max-width:200rpx} diff --git a/dist/build/mp-weixin/components/hs-radio/hs-radio.js b/dist/build/mp-weixin/components/hs-radio/hs-radio.js index 17d71c8..b3377d9 100644 --- a/dist/build/mp-weixin/components/hs-radio/hs-radio.js +++ b/dist/build/mp-weixin/components/hs-radio/hs-radio.js @@ -1 +1 @@ -"use strict";const l=require("../../common/vendor.js"),e=l.defineComponent({__name:"hs-radio",props:["valueModel","Enums","size","radioStyle","selectStyle","disableds"],emits:["update:valueModel","onChange"],setup(e,{emit:u}){const o=e,d=l.ref("");l.watch((()=>null==o?void 0:o.valueModel),(()=>{console.log("mounted2",null==o?void 0:o.valueModel),d.value=null==o?void 0:o.valueModel}));return l.onMounted((()=>{console.log("mounted1",null==o?void 0:o.valueModel),(null==o?void 0:o.valueModel)&&(d.value=null==o?void 0:o.valueModel)})),(e,v)=>({a:l.f(Object.entries(null==o?void 0:o.Enums).map((([l,e])=>({text:e.text,value:e.value}))),((e,v,n)=>{var a;return{a:l.t(null==e?void 0:e.text),b:`item_${v}`,c:l.n(`item item_${null==o?void 0:o.size} ${(null==e?void 0:e.value)===(null==o?void 0:o.valueModel)||(null==e?void 0:e.value)===d.value?"active":""} ${(null==(a=null==o?void 0:o.disableds)?void 0:a.includes(null==e?void 0:e.value))?"disabled":""}`),d:l.s((null==e?void 0:e.value)===(null==o?void 0:o.valueModel)||(null==e?void 0:e.value)===d.value?null==o?void 0:o.selectStyle:""),e:l.o((l=>(l=>{var e;if(null==(e=null==o?void 0:o.disableds)?void 0:e.includes(null==l?void 0:l.value))return!1;d.value=null==l?void 0:l.value,u("update:valueModel",null==l?void 0:l.value),u("onChange",l)})(e)),`item_${v}`)}})),b:l.s(null==o?void 0:o.radioStyle)})}}),u=l._export_sfc(e,[["__scopeId","data-v-e32aef64"]]);wx.createComponent(u); +"use strict";const l=require("../../common/vendor.js"),e=l.defineComponent({__name:"hs-radio",props:["valueModel","Enums","size","radioStyle","selectStyle","disableds"],emits:["update:valueModel","onChange"],setup(e,{emit:u}){const o=e,d=l.ref("");l.watch((()=>null==o?void 0:o.valueModel),(()=>{console.log("mounted2",null==o?void 0:o.valueModel),d.value=null==o?void 0:o.valueModel}));return l.onMounted((()=>{console.log("mounted1",null==o?void 0:o.valueModel),(null==o?void 0:o.valueModel)&&(d.value=null==o?void 0:o.valueModel)})),(e,v)=>({a:l.f(Object.entries(null==o?void 0:o.Enums).map((([l,e])=>({text:e.text,value:e.value}))),((e,v,n)=>{var a;return{a:l.t(null==e?void 0:e.text),b:`item_${v}`,c:l.n(`item item_${null==o?void 0:o.size} ${(null==e?void 0:e.value)===(null==o?void 0:o.valueModel)||(null==e?void 0:e.value)===d.value?"active":""} ${(null==(a=null==o?void 0:o.disableds)?void 0:a.includes(null==e?void 0:e.value))?"disabled":""}`),d:l.s((null==e?void 0:e.value)===(null==o?void 0:o.valueModel)||(null==e?void 0:e.value)===d.value?null==o?void 0:o.selectStyle:""),e:l.o((l=>(l=>{var e;if(null==(e=null==o?void 0:o.disableds)?void 0:e.includes(null==l?void 0:l.value))return!1;d.value=null==l?void 0:l.value,u("update:valueModel",null==l?void 0:l.value),u("onChange",l)})(e)),`item_${v}`)}})),b:l.s(null==o?void 0:o.radioStyle)})}}),u=l._export_sfc(e,[["__scopeId","data-v-98bce090"]]);wx.createComponent(u); diff --git a/dist/build/mp-weixin/components/hs-radio/hs-radio.wxml b/dist/build/mp-weixin/components/hs-radio/hs-radio.wxml index 1f8dc5e..444af59 100644 --- a/dist/build/mp-weixin/components/hs-radio/hs-radio.wxml +++ b/dist/build/mp-weixin/components/hs-radio/hs-radio.wxml @@ -1 +1 @@ -{{i.a}} \ No newline at end of file +{{i.a}} \ No newline at end of file diff --git a/dist/build/mp-weixin/components/hs-radio/hs-radio.wxss b/dist/build/mp-weixin/components/hs-radio/hs-radio.wxss index 7463d15..bbe2ad2 100644 --- a/dist/build/mp-weixin/components/hs-radio/hs-radio.wxss +++ b/dist/build/mp-weixin/components/hs-radio/hs-radio.wxss @@ -1 +1 @@ -.radio_body.data-v-e32aef64{display:flex;align-items:center;flex-wrap:wrap}.radio_body .item.data-v-e32aef64{padding:0 27rpx;font-size:26rpx;height:60rpx;line-height:60rpx;color:#333;text-align:center;display:flex;align-items:center;justify-content:center;background-color:#f3f3f4;border-radius:6rpx;margin-right:15rpx}.radio_body .item.data-v-e32aef64:last-child{margin:0}.radio_body .active.data-v-e32aef64{color:#fff;background-color:#0082fa}.radio_body .disabled.data-v-e32aef64{opacity:.7} +.radio_body.data-v-98bce090{display:flex;align-items:center;flex-wrap:wrap;padding:5rpx 0}.radio_body .item.data-v-98bce090{padding:0 27rpx;font-size:26rpx;height:60rpx;line-height:60rpx;color:#333;text-align:center;display:flex;align-items:center;justify-content:center;background-color:#f3f3f4;border-radius:6rpx;margin-right:15rpx}.radio_body .item.data-v-98bce090:last-child{margin:0}.radio_body .active.data-v-98bce090{color:#fff;background-color:#0082fa}.radio_body .disabled.data-v-98bce090{opacity:.7} 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/components/hs-scroll-view/hs-scroll-view.js b/dist/build/mp-weixin/components/hs-scroll-view/hs-scroll-view.js new file mode 100644 index 0000000..2182b5d --- /dev/null +++ b/dist/build/mp-weixin/components/hs-scroll-view/hs-scroll-view.js @@ -0,0 +1 @@ +"use strict";const e=require("../../common/vendor.js");if(!Array){(e.resolveComponent("hs-empty")+e.resolveComponent("u-loading-icon"))()}Math||((()=>"../hs-empty/hs-empty.js")+(()=>"../../node-modules/uview-plus/components/u-loading-icon/u-loading-icon.js"))();const t=e.defineComponent({__name:"hs-scroll-view",props:{meta:{type:Object,default:{}},showLoad:{type:Boolean,default:!0}},emits:["load"],setup(t,{emit:o}){const a=t,l=e.ref(""),n=e.ref(!1),u=e.ref({page:1,perPage:20});e.watch((()=>{var e;return null==(e=null==a?void 0:a.meta)?void 0:e.total}),(()=>{const{current_page:e,last_page:t}=a.meta,o=e{const{current_page:e,last_page:t}=a.meta,s=e{n.value=!1,l.value=""}),1e3))};return(t,o)=>{var u,r;return e.e({a:!(null==(u=a.meta)?void 0:u.total)},(null==(r=a.meta)?void 0:r.total)?e.e({b:e.p({text:l.value,mode:"circle",size:"30rpx",show:n.value}),c:!n.value},n.value?{}:{d:e.t(l.value)}):{},{e:e.o(s)})}}}),o=e._export_sfc(t,[["__scopeId","data-v-94f9cb02"]]);wx.createComponent(o); diff --git a/dist/build/mp-weixin/components/hs-scroll-view/hs-scroll-view.json b/dist/build/mp-weixin/components/hs-scroll-view/hs-scroll-view.json new file mode 100644 index 0000000..9f48e48 --- /dev/null +++ b/dist/build/mp-weixin/components/hs-scroll-view/hs-scroll-view.json @@ -0,0 +1,7 @@ +{ + "component": true, + "usingComponents": { + "hs-empty": "../hs-empty/hs-empty", + "u-loading-icon": "../../node-modules/uview-plus/components/u-loading-icon/u-loading-icon" + } +} \ No newline at end of file diff --git a/dist/build/mp-weixin/components/hs-scroll-view/hs-scroll-view.wxml b/dist/build/mp-weixin/components/hs-scroll-view/hs-scroll-view.wxml new file mode 100644 index 0000000..c167e4f --- /dev/null +++ b/dist/build/mp-weixin/components/hs-scroll-view/hs-scroll-view.wxml @@ -0,0 +1 @@ +{{d}} \ No newline at end of file diff --git a/dist/build/mp-weixin/components/hs-scroll-view/hs-scroll-view.wxss b/dist/build/mp-weixin/components/hs-scroll-view/hs-scroll-view.wxss new file mode 100644 index 0000000..9577ae7 --- /dev/null +++ b/dist/build/mp-weixin/components/hs-scroll-view/hs-scroll-view.wxss @@ -0,0 +1 @@ +.scroll-Y.data-v-94f9cb02{width:100%;height:660rpx}.scrollLoadingContainer.data-v-94f9cb02{padding:30rpx 0;font-size:25rpx;color:#999}.showLoadingText.data-v-94f9cb02{text-align:center;padding-bottom:30rpx} diff --git a/dist/build/mp-weixin/components/hs-tabs/hs-tabs.wxss b/dist/build/mp-weixin/components/hs-tabs/hs-tabs.wxss index 07818b2..81de915 100644 --- a/dist/build/mp-weixin/components/hs-tabs/hs-tabs.wxss +++ b/dist/build/mp-weixin/components/hs-tabs/hs-tabs.wxss @@ -1 +1 @@ -.tabs_content{display:flex;width:100%;align-items:center;justify-content:space-between;height:50rpx;padding:30rpx 0 20rpx}.label{font-size:30rpx;flex:1;text-align:center;height:50rpx;line-height:50rpx;color:#666}.actives{color:#000}.actives .border_bottom{width:20%;height:8rpx;margin:0 auto;border-radius:8rpx;margin-top:10rpx;background-color:#0082fa} +.tabs_content{display:flex;width:100%;align-items:center;justify-content:space-between;height:50rpx;padding:30rpx 0 20rpx}.label{font-size:30rpx;flex:1;text-align:center;height:50rpx;line-height:50rpx;color:#666;margin-right:30rpx}.label:last-child{margin-right:0}.actives{color:#000}.actives .border_bottom{width:20%;height:8rpx;margin:0 auto;border-radius:8rpx;margin-top:10rpx;background-color:#0082fa} diff --git a/dist/build/mp-weixin/components/hs-up-rate/hs-up-rate.js b/dist/build/mp-weixin/components/hs-up-rate/hs-up-rate.js new file mode 100644 index 0000000..97ed212 --- /dev/null +++ b/dist/build/mp-weixin/components/hs-up-rate/hs-up-rate.js @@ -0,0 +1 @@ +"use strict";const e=require("../../common/vendor.js");if(!Array){e.resolveComponent("up-icon")()}Math;const o=e.defineComponent({__name:"hs-up-rate",props:["valueModel"],setup(o){const n=o;return(o,t)=>({a:e.f(5,((o,t,r)=>({a:t,b:"d5693b0c-0-"+r,c:e.p({name:"star-fill",size:"18",color:t<(null==n?void 0:n.valueModel)?"#FFC53D":"#F3F3F4"})})))})}}),n=e._export_sfc(o,[["__scopeId","data-v-d5693b0c"]]);wx.createComponent(n); diff --git a/dist/build/mp-weixin/components/hs-up-rate/hs-up-rate.json b/dist/build/mp-weixin/components/hs-up-rate/hs-up-rate.json new file mode 100644 index 0000000..0eae915 --- /dev/null +++ b/dist/build/mp-weixin/components/hs-up-rate/hs-up-rate.json @@ -0,0 +1,6 @@ +{ + "component": true, + "usingComponents": { + "up-icon": "../../node-modules/uview-plus/components/u-icon/u-icon" + } +} \ No newline at end of file diff --git a/dist/build/mp-weixin/components/hs-up-rate/hs-up-rate.wxml b/dist/build/mp-weixin/components/hs-up-rate/hs-up-rate.wxml new file mode 100644 index 0000000..c1fe2b9 --- /dev/null +++ b/dist/build/mp-weixin/components/hs-up-rate/hs-up-rate.wxml @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/dist/build/mp-weixin/components/hs-up-rate/hs-up-rate.wxss b/dist/build/mp-weixin/components/hs-up-rate/hs-up-rate.wxss new file mode 100644 index 0000000..26aa0b3 --- /dev/null +++ b/dist/build/mp-weixin/components/hs-up-rate/hs-up-rate.wxss @@ -0,0 +1 @@ +.data-v-d5693b0c .u-transition{padding-bottom:calc(env(safe-area-inset-bottom) + 48px)!important}.star_contents_body.data-v-d5693b0c{display:flex;flex:1;gap:10rpx;align-items:center;justify-content:center} diff --git a/dist/build/mp-weixin/components/hs-upload-id-card/hs-upload-id-card.js b/dist/build/mp-weixin/components/hs-upload-id-card/hs-upload-id-card.js index c42eb9f..e145730 100644 --- a/dist/build/mp-weixin/components/hs-upload-id-card/hs-upload-id-card.js +++ b/dist/build/mp-weixin/components/hs-upload-id-card/hs-upload-id-card.js @@ -1 +1 @@ -"use strict";const e=require("../../common/vendor.js"),o=require("../../common/assets.js"),l=require("../../common/libraries/upload.js");require("../../gen/Apis.js"),require("../../common/libraries/request.js"),require("../../common/store/useWeAppAuthStore.js"),require("../../common/libraries/apiLoading.js"),require("../../common/store/useWorkStore.js");const r=e.defineComponent({__name:"hs-upload-id-card",props:["valueFrontModel","valueBackModel","size","display","borderTop","length","required","mediaType","labelTitle","count","styles","hasCover","iconName","iconSize"],emits:["update:valueFrontModel","update:valueBackModel"],setup(r,{emit:u}){const i=r,s=e.ref({}),a=e.ref({}),n=async e=>{const o=await l.upload(1,4,(null==i?void 0:i.mediaType)||["image"]);console.log(o,"res32"),1===e&&(s.value=o[0],u("update:valueFrontModel",o)),2===e&&(a.value=o[0],u("update:valueBackModel",o))};return(l,r)=>{var u,d,t,v,p,c;return e.e({a:null==i?void 0:i.required},(null==i||i.required,{}),{b:!(null==(u=s.value)?void 0:u.url)},(null==(d=s.value)?void 0:d.url)?{d:null==(t=s.value)?void 0:t.url}:{c:o._imports_0$1},{e:e.o((e=>n(1))),f:e.s(null==i?void 0:i.styles),g:!(null==(v=a.value)?void 0:v.url)},(null==(p=a.value)?void 0:p.url)?{i:null==(c=a.value)?void 0:c.url}:{h:o._imports_1},{j:e.o((e=>n(2))),k:e.s(null==i?void 0:i.styles),l:i.borderTop?"1rpx solid #eee":""})}}}),u=e._export_sfc(r,[["__scopeId","data-v-7ef7af9e"]]);wx.createComponent(u); +"use strict";const e=require("../../common/vendor.js"),o=require("../../common/assets.js"),r=require("../../common/libraries/upload.js");require("../../gen/Apis.js"),require("../../common/libraries/request.js"),require("../../common/store/useWeAppAuthStore.js"),require("../../common/libraries/apiLoading.js"),require("../../common/store/useWatermarkStore.js"),require("../../common/store/useWorkStore.js");const l=e.defineComponent({__name:"hs-upload-id-card",props:["valueFrontModel","valueBackModel","size","display","borderTop","length","required","mediaType","labelTitle","count","styles","hasCover","iconName","iconSize"],emits:["update:valueFrontModel","update:valueBackModel"],setup(l,{emit:u}){const s=l,a=e.ref({}),i=e.ref({}),n=async e=>{const o=await r.upload(1,4,(null==s?void 0:s.mediaType)||["image"]);console.log(o,"res32"),1===e&&(a.value=o[0],u("update:valueFrontModel",o)),2===e&&(i.value=o[0],u("update:valueBackModel",o))};return(r,l)=>{var u,t,d,m,v,c;return e.e({a:null==s?void 0:s.required},(null==s||s.required,{}),{b:!(null==(u=a.value)?void 0:u.url)},(null==(t=a.value)?void 0:t.url)?{d:null==(d=a.value)?void 0:d.url}:{c:o._imports_0$1},{e:e.o((e=>n(1))),f:e.s(null==s?void 0:s.styles),g:!(null==(m=i.value)?void 0:m.url)},(null==(v=i.value)?void 0:v.url)?{i:null==(c=i.value)?void 0:c.url}:{h:o._imports_1},{j:e.o((e=>n(2))),k:e.s(null==s?void 0:s.styles),l:s.borderTop?"1rpx solid #eee":""})}}}),u=e._export_sfc(l,[["__scopeId","data-v-7ef7af9e"]]);wx.createComponent(u); diff --git a/dist/build/mp-weixin/components/hs-upload/hs-upload.js b/dist/build/mp-weixin/components/hs-upload/hs-upload.js index 34b2a41..6cef9cc 100644 --- a/dist/build/mp-weixin/components/hs-upload/hs-upload.js +++ b/dist/build/mp-weixin/components/hs-upload/hs-upload.js @@ -1 +1 @@ -"use strict";const e=require("../../common/vendor.js"),l=require("../../common/libraries/watermark.js"),o=require("../../common/libraries/upload.js");if(require("../../gen/Apis.js"),require("../../common/libraries/request.js"),require("../../common/store/useWeAppAuthStore.js"),require("../../common/libraries/apiLoading.js"),require("../../common/store/useWorkStore.js"),!Array){(e.resolveComponent("up-icon")+e.resolveComponent("uni-icons"))()}Math||((()=>"../../node-modules/uview-plus/components/u-icon/u-icon.js")+(()=>"../../uni_modules/uni-icons/components/uni-icons/uni-icons.js"))();const i=e.defineComponent({__name:"hs-upload",props:["valueModel","size","display","length","borderTop","mediaType","labelTitle","count","styles","hasCover","iconName","iconSize","required","title"],emits:["update:valueModel"],setup(i,{emit:n}){const u=i,a=e.ref([]),r=async()=>{const e=await o.upload(u.count||1,null==u?void 0:u.size,(null==u?void 0:u.mediaType)||["image"]);console.log(e,"res"),a.value=[...a.value,...e],n("update:valueModel",a.value)},s=e=>{if(null==u?void 0:u.display)return!1;a.value.splice(e,1)};e.watch((()=>null==u?void 0:u.valueModel),(()=>{u.valueModel&&(a.value=u.valueModel||[])}));return e.onMounted((()=>{u.valueModel&&(a.value=u.valueModel||[])})),(o,i)=>{var n,d,t,v;return e.e({a:e.t((null==u?void 0:u.title)||"上传"),b:null==u?void 0:u.required},(null==u||u.required,{}),{c:e.t((null==u?void 0:u.count)||1),d:e.f(a.value,((o,i,n)=>{var a,r;return e.e({a:null==(a=null==o?void 0:o.type)?void 0:a.includes("video")},(null==(r=null==o?void 0:o.type)?void 0:r.includes("video"))?{b:"f651c7a0-0-"+n,c:e.p({name:"play-circle-fill",size:"30"})}:{d:null==o?void 0:o.url,e:e.o((i=>{return n=null==o?void 0:o.url,console.log(n,"url1"),void(n&&(e.index.showLoading({title:"获取图片中...",mask:!0}),console.log(n,"url2"),e.index.downloadFile({url:n,success:e=>{const o=e.tempFilePath;console.log(o,"imagePath"),l.watermark.addWatermark(o,"仅用于内部查看,请勿外传")},fail:l=>{e.index.showToast({title:"获取失败",duration:1e3}),console.error("下载图片失败:",l)}})));var n}),i)},{f:"f651c7a0-1-"+n,g:e.o((e=>s(i)),i),h:0===i&&(null==u?void 0:u.hasCover)},0===i&&(null==u?void 0:u.hasCover)?{i:e.o((e=>s(i)),i)}:{},{j:i})})),e:e.p({type:"clear",color:"#f00",size:"25"}),f:e.s(null==u?void 0:u.styles),g:!(null==u?void 0:u.display)&&(null==(n=a.value)?void 0:n.length)<((null==u?void 0:u.count)||1)},!(null==u?void 0:u.display)&&(null==(d=a.value)?void 0:d.length)<((null==u?void 0:u.count)||1)?e.e({h:null==u?void 0:u.iconName},(null==u?void 0:u.iconName)?{i:e.p({name:null==u?void 0:u.iconName,label:u.labelTitle||"",color:"#333",size:(null==u?void 0:u.iconSize)||50})}:{j:e.p({name:(null==u?void 0:u.iconName)||"plus",label:u.labelTitle||"",labelPos:"bottom",labelSize:"20rpx",lableColor:"#666",color:"#333",size:"20",space:"6px"})},{k:e.o(r),l:e.s(null==u?void 0:u.styles)}):{},{m:(null==u?void 0:u.display)&&!(null==(t=a.value)?void 0:t.length)},((null==u?void 0:u.display)&&(null==(v=a.value)||v.length),{}),{n:u.borderTop?"1rpx solid #eee":""})}}}),n=e._export_sfc(i,[["__scopeId","data-v-f651c7a0"]]);wx.createComponent(n); +"use strict";const e=require("../../common/vendor.js"),l=require("../../common/libraries/watermark.js"),o=require("../../common/libraries/upload.js");if(require("../../gen/Apis.js"),require("../../common/libraries/request.js"),require("../../common/store/useWeAppAuthStore.js"),require("../../common/libraries/apiLoading.js"),require("../../common/store/useWatermarkStore.js"),require("../../common/store/useWorkStore.js"),!Array){(e.resolveComponent("up-icon")+e.resolveComponent("uni-icons"))()}Math||((()=>"../../node-modules/uview-plus/components/u-icon/u-icon.js")+(()=>"../../uni_modules/uni-icons/components/uni-icons/uni-icons.js"))();const i=e.defineComponent({__name:"hs-upload",props:["valueModel","size","display","length","borderTop","mediaType","labelTitle","count","styles","hasCover","iconName","iconSize","required","title"],emits:["update:valueModel"],setup(i,{emit:n}){const u=i,a=e.ref([]),r=async()=>{const e=await o.upload(u.count||1,null==u?void 0:u.size,(null==u?void 0:u.mediaType)||["image"]);console.log(e,"res"),a.value=[...a.value,...e],n("update:valueModel",a.value)},s=e=>{if(null==u?void 0:u.display)return!1;a.value.splice(e,1)};e.watch((()=>null==u?void 0:u.valueModel),(()=>{u.valueModel&&(a.value=u.valueModel||[])}));return e.onMounted((()=>{u.valueModel&&(a.value=u.valueModel||[])})),(o,i)=>{var n,d,t,v;return e.e({a:e.t((null==u?void 0:u.title)||"上传"),b:null==u?void 0:u.required},(null==u||u.required,{}),{c:e.t((null==u?void 0:u.count)||1),d:e.f(a.value,((o,i,n)=>{var a,r;return e.e({a:null==(a=null==o?void 0:o.type)?void 0:a.includes("video")},(null==(r=null==o?void 0:o.type)?void 0:r.includes("video"))?{b:"f651c7a0-0-"+n,c:e.p({name:"play-circle-fill",size:"30"})}:{d:null==o?void 0:o.url,e:e.o((i=>{return n=null==o?void 0:o.url,console.log(n,"url1"),void(n&&(e.index.showLoading({title:"获取图片中...",mask:!0}),console.log(n,"url2"),e.index.downloadFile({url:n,success:e=>{const o=e.tempFilePath;console.log(o,"imagePath"),l.watermark.addWatermark(o,"仅用于内部查看,请勿外传")},fail:l=>{e.index.showToast({title:"获取失败",duration:1e3}),console.error("下载图片失败:",l)}})));var n}),i)},{f:"f651c7a0-1-"+n,g:e.o((e=>s(i)),i),h:0===i&&(null==u?void 0:u.hasCover)},0===i&&(null==u?void 0:u.hasCover)?{i:e.o((e=>s(i)),i)}:{},{j:i})})),e:e.p({type:"clear",color:"#f00",size:"25"}),f:e.s(null==u?void 0:u.styles),g:!(null==u?void 0:u.display)&&(null==(n=a.value)?void 0:n.length)<((null==u?void 0:u.count)||1)},!(null==u?void 0:u.display)&&(null==(d=a.value)?void 0:d.length)<((null==u?void 0:u.count)||1)?e.e({h:null==u?void 0:u.iconName},(null==u?void 0:u.iconName)?{i:e.p({name:null==u?void 0:u.iconName,label:u.labelTitle||"",color:"#333",size:(null==u?void 0:u.iconSize)||50})}:{j:e.p({name:(null==u?void 0:u.iconName)||"plus",label:u.labelTitle||"",labelPos:"bottom",labelSize:"20rpx",lableColor:"#666",color:"#333",size:"20",space:"6px"})},{k:e.o(r),l:e.s(null==u?void 0:u.styles)}):{},{m:(null==u?void 0:u.display)&&!(null==(t=a.value)?void 0:t.length)},((null==u?void 0:u.display)&&(null==(v=a.value)||v.length),{}),{n:u.borderTop?"1rpx solid #eee":""})}}}),n=e._export_sfc(i,[["__scopeId","data-v-f651c7a0"]]);wx.createComponent(n); diff --git a/dist/build/mp-weixin/gen/Apis.js b/dist/build/mp-weixin/gen/Apis.js index 4f856b9..094c230 100644 --- a/dist/build/mp-weixin/gen/Apis.js +++ b/dist/build/mp-weixin/gen/Apis.js @@ -1 +1 @@ -"use strict";const e=require("../common/libraries/request.js");require("../common/store/useWeAppAuthStore.js"),require("../common/store/useWorkStore.js");const o={Archive:{HouseOccupants:{List:o=>e.request("employee/archive/house_occupants/list",{data:o}),GetCustomerHouse:o=>e.request("employee/archive/house_occupants/get_customer_house",{data:o}),GetHouseOccupants:o=>e.request("employee/archive/house_occupants/get_house_occupants",{data:o}),Show:o=>e.request("employee/archive/house_occupants/show",{data:o}),GetHouseOccupantsByPhone:o=>e.request("employee/archive/house_occupants/get_house_occupants_by_phone",{data:o})},HouseRegisters:{Store:o=>e.request("employee/archive/house_registers/store",{data:o}),RegisterHouse:o=>e.request("employee/archive/house_registers/register_house",{data:o}),Unbind:o=>e.request("employee/archive/house_registers/unbind",{data:o}),RemoveOwner:o=>e.request("employee/archive/house_registers/remove_owner",{data:o}),ChangeOccupant:o=>e.request("employee/archive/house_registers/change_occupant",{data:o})}},Asset:{AssetHouses:{SelectProject:o=>e.request("employee/asset/asset_houses/select_project",{data:o}),SelectBuilding:o=>e.request("employee/asset/asset_houses/select_building",{data:o}),SelectUnit:o=>e.request("employee/asset/asset_houses/select_unit",{data:o}),SelectHouse:o=>e.request("employee/asset/asset_houses/select_house",{data:o}),Show:o=>e.request("employee/asset/asset_houses/show",{data:o})}},Banner:{BannerSpaces:{List:o=>e.request("employee/banner/banner_spaces/list",{data:o})}},Bill:{HouseBills:{HouseList:o=>e.request("employee/bill/house_bills/house_list",{data:o}),HouseArrearageAmount:o=>e.request("employee/bill/house_bills/house_arrearage_amount",{data:o}),List:o=>e.request("employee/bill/house_bills/list",{data:o}),MonthBillDetail:o=>e.request("employee/bill/house_bills/month_bill_detail",{data:o}),BillQRCode:o=>e.request("employee/bill/house_bills/bill_q_r_code",{data:o}),GetOccupantArrearageHouses:o=>e.request("employee/bill/house_bills/get_occupant_arrearage_houses",{data:o}),Show:o=>e.request("employee/bill/house_bills/show",{data:o})}},Collection:{HouseCollectionRecords:{List:o=>e.request("employee/collection/house_collection_records/list",{data:o}),Store:o=>e.request("employee/collection/house_collection_records/store",{data:o}),Update:o=>e.request("employee/collection/house_collection_records/update",{data:o}),Show:o=>e.request("employee/collection/house_collection_records/show",{data:o}),GetTaskRecords:o=>e.request("employee/collection/house_collection_records/get_task_records",{data:o})},HouseCollectionTasks:{List:o=>e.request("employee/collection/house_collection_tasks/list",{data:o}),Store:o=>e.request("employee/collection/house_collection_tasks/store",{data:o}),Show:o=>e.request("employee/collection/house_collection_tasks/show",{data:o})}},Company:{CompanyEmployeeBacklogs:{List:o=>e.request("employee/company/company_employee_backlogs/list",{data:o}),Show:o=>e.request("employee/company/company_employee_backlogs/show",{data:o})},CompanyEmployeeCustomers:{List:o=>e.request("employee/company/company_employee_customers/list",{data:o}),Show:o=>e.request("employee/company/company_employee_customers/show",{data:o}),Delete:o=>e.request("employee/company/company_employee_customers/delete",{data:o})}},Customer:{CustomerHouses:{List:o=>e.request("employee/customer/customer_houses/list",{data:o}),Show:o=>e.request("employee/customer/customer_houses/show",{data:o}),HouseDetail:o=>e.request("employee/customer/customer_houses/house_detail",{data:o})},CustomerOpinions:{Store:o=>e.request("employee/customer/customer_opinions/store",{data:o})}},Grid:{GridRanges:{List:o=>e.request("employee/grid/grid_ranges/list",{data:o}),Show:o=>e.request("employee/grid/grid_ranges/show",{data:o})},Grids:{List:o=>e.request("employee/grid/grids/list",{data:o}),Show:o=>e.request("employee/grid/grids/show",{data:o}),CountGridHouse:()=>e.request("employee/grid/grids/count_grid_house",{}),GridAssetProject:o=>e.request("employee/grid/grids/grid_asset_project",{data:o}),GridAssetBuilding:o=>e.request("employee/grid/grids/grid_asset_building",{data:o}),GridAssetUnit:o=>e.request("employee/grid/grids/grid_asset_unit",{data:o}),GridAssetHouse:o=>e.request("employee/grid/grids/grid_asset_house",{data:o}),GridSelectHouse:o=>e.request("employee/grid/grids/grid_select_house",{data:o})}},HouseOrder:{HouseOrders:{Store:o=>e.request("employee/house_order/house_orders/store",{data:o}),Show:o=>e.request("employee/house_order/house_orders/show",{data:o}),GetPayQrCode:o=>e.request("employee/house_order/house_orders/get_pay_qr_code",{data:o})}},Login:{Auth:{Login:o=>e.request("employee/login/auth/login",{data:o}),Logout:()=>e.request("employee/login/auth/logout",{}),Me:()=>e.request("employee/login/auth/me",{}),ChangeAvatar:o=>e.request("employee/login/auth/change_avatar",{data:o}),BindPhoneNumber:o=>e.request("employee/login/auth/bind_phone_number",{data:o}),SendValidateSms:o=>e.request("employee/login/auth/send_validate_sms",{data:o}),GetAccessToken:o=>e.request("employee/login/auth/get_access_token",{data:o}),WorkLogin:o=>e.request("employee/login/auth/work_login",{data:o}),BindWork:o=>e.request("employee/login/auth/bind_work",{data:o}),GetWorkAccessToken:o=>e.request("employee/login/auth/get_work_access_token",{data:o}),PreUpload:o=>e.request("employee/login/auth/pre_upload",{data:o}),TemporaryUrl:o=>e.request("employee/login/auth/temporary_url",{data:o})}},WorkOrder:{HouseWorkLogs:{List:o=>e.request("employee/work_order/house_work_logs/list",{data:o}),Store:o=>e.request("employee/work_order/house_work_logs/store",{data:o}),Show:o=>e.request("employee/work_order/house_work_logs/show",{data:o})},HouseWorkOrders:{List:o=>e.request("employee/work_order/house_work_orders/list",{data:o}),GetHouseWorkOrders:o=>e.request("employee/work_order/house_work_orders/get_house_work_orders",{data:o}),Store:o=>e.request("employee/work_order/house_work_orders/store",{data:o}),Show:o=>e.request("employee/work_order/house_work_orders/show",{data:o})}}};exports.Apis=o; +"use strict";const e=require("../common/libraries/request.js");require("../common/store/useWatermarkStore.js"),require("../common/store/useWeAppAuthStore.js"),require("../common/store/useWorkStore.js");const o={Archive:{HouseOccupants:{List:o=>e.request("employee/archive/house_occupants/list",{data:o}),GetCustomerHouse:o=>e.request("employee/archive/house_occupants/get_customer_house",{data:o}),GetHouseOccupants:o=>e.request("employee/archive/house_occupants/get_house_occupants",{data:o}),Show:o=>e.request("employee/archive/house_occupants/show",{data:o}),GetHouseOccupantsByPhone:o=>e.request("employee/archive/house_occupants/get_house_occupants_by_phone",{data:o})},HouseRegisters:{Store:o=>e.request("employee/archive/house_registers/store",{data:o}),RegisterHouse:o=>e.request("employee/archive/house_registers/register_house",{data:o}),Unbind:o=>e.request("employee/archive/house_registers/unbind",{data:o}),RemoveOwner:o=>e.request("employee/archive/house_registers/remove_owner",{data:o}),ChangeOccupant:o=>e.request("employee/archive/house_registers/change_occupant",{data:o})}},Asset:{AssetHouses:{SelectProject:o=>e.request("employee/asset/asset_houses/select_project",{data:o}),SelectBuilding:o=>e.request("employee/asset/asset_houses/select_building",{data:o}),SelectUnit:o=>e.request("employee/asset/asset_houses/select_unit",{data:o}),SelectHouse:o=>e.request("employee/asset/asset_houses/select_house",{data:o}),Show:o=>e.request("employee/asset/asset_houses/show",{data:o})},AssetProjectAdmins:{List:o=>e.request("employee/asset/asset_project_admins/list",{data:o}),Show:o=>e.request("employee/asset/asset_project_admins/show",{data:o})}},Banner:{BannerSpaces:{List:o=>e.request("employee/banner/banner_spaces/list",{data:o})}},Bill:{HouseBills:{HouseList:o=>e.request("employee/bill/house_bills/house_list",{data:o}),HouseArrearageAmount:o=>e.request("employee/bill/house_bills/house_arrearage_amount",{data:o}),List:o=>e.request("employee/bill/house_bills/list",{data:o}),MonthBillDetail:o=>e.request("employee/bill/house_bills/month_bill_detail",{data:o}),BillQRCode:o=>e.request("employee/bill/house_bills/bill_q_r_code",{data:o}),GetOccupantArrearageHouses:o=>e.request("employee/bill/house_bills/get_occupant_arrearage_houses",{data:o}),Show:o=>e.request("employee/bill/house_bills/show",{data:o})}},Collection:{HouseCollectionRecords:{List:o=>e.request("employee/collection/house_collection_records/list",{data:o}),Store:o=>e.request("employee/collection/house_collection_records/store",{data:o}),Update:o=>e.request("employee/collection/house_collection_records/update",{data:o}),Show:o=>e.request("employee/collection/house_collection_records/show",{data:o}),GetTaskRecords:o=>e.request("employee/collection/house_collection_records/get_task_records",{data:o})},HouseCollectionTasks:{List:o=>e.request("employee/collection/house_collection_tasks/list",{data:o}),Store:o=>e.request("employee/collection/house_collection_tasks/store",{data:o}),Show:o=>e.request("employee/collection/house_collection_tasks/show",{data:o})}},Company:{CompanyEmployeeBacklogs:{List:o=>e.request("employee/company/company_employee_backlogs/list",{data:o}),Show:o=>e.request("employee/company/company_employee_backlogs/show",{data:o})},CompanyEmployeeCustomers:{List:o=>e.request("employee/company/company_employee_customers/list",{data:o}),Show:o=>e.request("employee/company/company_employee_customers/show",{data:o}),Delete:o=>e.request("employee/company/company_employee_customers/delete",{data:o})},CompanyEmployees:{Select:o=>e.request("employee/company/company_employees/select",{data:o})},CompanyProjectReceiptAccounts:{List:o=>e.request("employee/company/company_project_receipt_accounts/list",{data:o}),GetDefaultReceiptAccounts:o=>e.request("employee/company/company_project_receipt_accounts/get_default_receipt_accounts",{data:o}),Show:o=>e.request("employee/company/company_project_receipt_accounts/show",{data:o})}},Count:{CommonCount:{IndexCount:()=>e.request("employee/count/common_count/index_count",{})}},Customer:{CustomerHouses:{List:o=>e.request("employee/customer/customer_houses/list",{data:o}),Show:o=>e.request("employee/customer/customer_houses/show",{data:o}),HouseDetail:o=>e.request("employee/customer/customer_houses/house_detail",{data:o})},CustomerMomentTasks:{List:o=>e.request("employee/customer/customer_moment_tasks/list",{data:o}),Store:o=>e.request("employee/customer/customer_moment_tasks/store",{data:o}),Show:o=>e.request("employee/customer/customer_moment_tasks/show",{data:o})},CustomerMoments:{Show:o=>e.request("employee/customer/customer_moments/show",{data:o}),UploadMedia:o=>e.request("employee/customer/customer_moments/upload_media",{data:o}),UploadImage:o=>e.request("employee/customer/customer_moments/upload_image",{data:o})},CustomerOpinions:{Store:o=>e.request("employee/customer/customer_opinions/store",{data:o})}},GoodsReleases:{GoodsReleases:{ScanRelease:o=>e.request("employee/goods_releases/goods_releases/scan_release",{data:o}),Show:o=>e.request("employee/goods_releases/goods_releases/show",{data:o})}},Grid:{GridRanges:{List:o=>e.request("employee/grid/grid_ranges/list",{data:o}),Show:o=>e.request("employee/grid/grid_ranges/show",{data:o})},Grids:{List:o=>e.request("employee/grid/grids/list",{data:o}),Show:o=>e.request("employee/grid/grids/show",{data:o}),CountGridHouse:()=>e.request("employee/grid/grids/count_grid_house",{}),GridAssetProject:o=>e.request("employee/grid/grids/grid_asset_project",{data:o}),GridAssetBuilding:o=>e.request("employee/grid/grids/grid_asset_building",{data:o}),GridAssetUnit:o=>e.request("employee/grid/grids/grid_asset_unit",{data:o}),GridAssetHouse:o=>e.request("employee/grid/grids/grid_asset_house",{data:o}),GridSelectHouse:o=>e.request("employee/grid/grids/grid_select_house",{data:o})}},HouseOrder:{HouseOrders:{Store:o=>e.request("employee/house_order/house_orders/store",{data:o}),Show:o=>e.request("employee/house_order/house_orders/show",{data:o}),GetPayQrCode:o=>e.request("employee/house_order/house_orders/get_pay_qr_code",{data:o})}},Login:{Auth:{Login:o=>e.request("employee/login/auth/login",{data:o}),Logout:()=>e.request("employee/login/auth/logout",{}),Me:()=>e.request("employee/login/auth/me",{}),ChangeAvatar:o=>e.request("employee/login/auth/change_avatar",{data:o}),BindPhoneNumber:o=>e.request("employee/login/auth/bind_phone_number",{data:o}),SendValidateSms:o=>e.request("employee/login/auth/send_validate_sms",{data:o}),GetAccessToken:o=>e.request("employee/login/auth/get_access_token",{data:o}),WorkLogin:o=>e.request("employee/login/auth/work_login",{data:o}),BindWork:o=>e.request("employee/login/auth/bind_work",{data:o}),GetWorkAccessToken:o=>e.request("employee/login/auth/get_work_access_token",{data:o}),PreUpload:o=>e.request("employee/login/auth/pre_upload",{data:o}),TemporaryUrl:o=>e.request("employee/login/auth/temporary_url",{data:o})}},Meter:{HouseMeterReadings:{List:o=>e.request("employee/meter/house_meter_readings/list",{data:o}),GetMeterDetail:o=>e.request("employee/meter/house_meter_readings/get_meter_detail",{data:o}),Store:o=>e.request("employee/meter/house_meter_readings/store",{data:o}),Show:o=>e.request("employee/meter/house_meter_readings/show",{data:o})},HouseMeters:{List:o=>e.request("employee/meter/house_meters/list",{data:o}),Show:o=>e.request("employee/meter/house_meters/show",{data:o})}},Msg:{MsgPropertyAnnouncements:{List:o=>e.request("employee/msg/msg_property_announcements/list",{data:o}),Show:o=>e.request("employee/msg/msg_property_announcements/show",{data:o})}},Visitor:{VisitorApplies:{Scan:o=>e.request("employee/visitor/visitor_applies/scan",{data:o}),Show:o=>e.request("employee/visitor/visitor_applies/show",{data:o})}},WorkOrder:{HouseWorkLogs:{List:o=>e.request("employee/work_order/house_work_logs/list",{data:o}),Store:o=>e.request("employee/work_order/house_work_logs/store",{data:o}),Show:o=>e.request("employee/work_order/house_work_logs/show",{data:o})},HouseWorkOrders:{List:o=>e.request("employee/work_order/house_work_orders/list",{data:o}),MySubmitList:o=>e.request("employee/work_order/house_work_orders/my_submit_list",{data:o}),GetHouseWorkOrders:o=>e.request("employee/work_order/house_work_orders/get_house_work_orders",{data:o}),Store:o=>e.request("employee/work_order/house_work_orders/store",{data:o}),Show:o=>e.request("employee/work_order/house_work_orders/show",{data:o}),GetWorkOrderPayQrCode:o=>e.request("employee/work_order/house_work_orders/get_work_order_pay_qr_code",{data:o}),Accept:o=>e.request("employee/work_order/house_work_orders/accept",{data:o}),Close:o=>e.request("employee/work_order/house_work_orders/close",{data:o}),UnassignedList:o=>e.request("employee/work_order/house_work_orders/unassigned_list",{data:o}),Receive:o=>e.request("employee/work_order/house_work_orders/receive",{data:o}),Assign:o=>e.request("employee/work_order/house_work_orders/assign",{data:o}),GetAssignPermission:o=>e.request("employee/work_order/house_work_orders/get_assign_permission",{data:o})}}};exports.Apis=o; diff --git a/dist/build/mp-weixin/gen/Enums.js b/dist/build/mp-weixin/gen/Enums.js index 2bd8a73..fd5cc65 100644 --- a/dist/build/mp-weixin/gen/Enums.js +++ b/dist/build/mp-weixin/gen/Enums.js @@ -1 +1 @@ -"use strict";exports.AssetHousesOrientationEnum={East:{text:"东",color:"#007bff",value:"East"},South:{text:"南",color:"#28a745",value:"South"},West:{text:"西",color:"#ffc107",value:"West"},North:{text:"北",color:"#dc3545",value:"North"},Southeast:{text:"东南",color:"#20c997",value:"Southeast"},Northeast:{text:"东北",color:"#6f42c1",value:"Northeast"},Southwest:{text:"西南",color:"#fd7e14",value:"Southwest"},Northwest:{text:"西北",color:"#17a2b8",value:"Northwest"},EastWest:{text:"东西",color:"#6610f2",value:"EastWest"},SouthNorth:{text:"南北",color:"#e83e8c",value:"SouthNorth"}},exports.AssetHousesUsageEnum={Residence:{text:"住宅",color:"#007bff",value:"Residence"},Apartment:{text:"公寓",color:"#28a745",value:"Apartment"},Villa:{text:"别墅",color:"#17a2b8",value:"Villa"},Shop:{text:"商铺",color:"#ffc107",value:"Shop"},ParkingSpace:{text:"车位",color:"#6c757d",value:"ParkingSpace"},Office:{text:"写字楼",color:"#6610f2",value:"Office"},Clubhouse:{text:"会所",color:"#fd7e14",value:"Clubhouse"},PropertyRoom:{text:"物业用房",color:"#dc3545",value:"PropertyRoom"}},exports.CompanyEmployeeBacklogsTypeEnum={WorkOrder:{text:"工单",color:"#FF6600",value:"WorkOrder"},Contract:{text:"合同",color:"#2A82E4",value:"Contract"}},exports.CustomerMomentsChannelEnum={MomentCorp:{text:"朋友圈(企业)",color:"#1E90FF",value:"MomentCorp"},CustomerDirectCorp:{text:"客户1对1消息群发(企业)",color:"#FFA500",value:"CustomerDirectCorp"},CustomerGroupCorp:{text:"客户群群发(企业)",color:"#FF69B4",value:"CustomerGroupCorp"}},exports.CustomerMomentsContentTypeEnum={Image:{text:"图片消息",color:"#1E90FF",value:"Image"},Link:{text:"转载链接消息",color:"#32CD32",value:"Link"},MiniProgram:{text:"跳小程序",color:"#FFA500",value:"MiniProgram"},Video:{text:"视频消息",color:"#FF69B4",value:"Video"}},exports.HouseBillsTypeEnum={PropertyFee:{text:"物业费",color:"#3b82f6",value:"PropertyFee"},MaintenanceFund:{text:"维修基金",color:"#10b981",value:"MaintenanceFund"},WaterFee:{text:"水费",color:"#06b6d4",value:"WaterFee"},ElectricityFee:{text:"电费",color:"#f59e0b",value:"ElectricityFee"},SharedWaterFee:{text:"公摊水费",color:"#8b5cf6",value:"SharedWaterFee"},SharedElectricityFee:{text:"公摊电费",color:"#ec4899",value:"SharedElectricityFee"}},exports.HouseCollectionRecordsCollectionResultEnum={PromiseToPay:{text:"承诺缴费",color:"#4caf50",value:"PromiseToPay"},RefuseToPay:{text:"拒绝缴费",color:"#f44336",value:"RefuseToPay"},NotReached:{text:"未联系到",color:"#9e9e9e",value:"NotReached"},NeedFollowUp:{text:"需要跟进",color:"#ff9800",value:"NeedFollowUp"}},exports.HouseCollectionTasksChannelEnum={SMS:{text:"短信",color:"#1E90FF",value:"SMS"},MiniProgram:{text:"小程序",color:"#00BFFF",value:"MiniProgram"},OfficialAccount:{text:"公众号",color:"#32CD32",value:"OfficialAccount"},PhoneCall:{text:"电话催缴",color:"#FF8C00",value:"PhoneCall"},Visit:{text:"上门催缴",color:"#8B4513",value:"Visit"},WeChat:{text:"微信联系",color:"#20B2AA",value:"WeChat"},WrittenNotice:{text:"书面通知",color:"#708090",value:"WrittenNotice"}},exports.HouseCollectionTasksStatusEnum={Processing:{text:"进行中",color:"#ffcc00",value:"Processing"},Completed:{text:"已完成",color:"#00cc00",value:"Completed"},Failed:{text:"失败",color:"#ff0000",value:"Failed"}},exports.HouseOccupantsHouseRelationEnum={Owner:{text:"产权人",color:"#2db7f5",value:"Owner"},NonOwner:{text:"非产权人",color:"#fa8c16",value:"NonOwner"}},exports.HouseOccupantsResidentialRelationEnum={Resident:{text:"住户",color:"#2db7f5",value:"Resident"},PrimaryTenant:{text:"主租人",color:"#87d068",value:"PrimaryTenant"},Tenant:{text:"租客",color:"#fa8c16",value:"Tenant"}},exports.HouseRegistersHouseStatusEnum={SelfOccupied:{text:"自住",color:"#28a745",value:"SelfOccupied"},Rented:{text:"出租",color:"#007bff",value:"Rented"},Vacant:{text:"空置",color:"#dc3545",value:"Vacant"}},exports.HouseWorkOrdersComplaintTypeEnum={Hygiene:{text:"卫生环境",color:"#ff0000",value:"Hygiene"},Greening:{text:"绿植绿化",color:"#00aaff",value:"Greening"},Safety:{text:"安全问题",color:"#ffaa00",value:"Safety"},Maintenance:{text:"维修问题",color:"#aa00ff",value:"Maintenance"},PropertyService:{text:"物业服务",color:"#00aa55",value:"PropertyService"},Staff:{text:"工作人员",color:"#ff00aa",value:"Staff"},Other:{text:"其他",color:"#aaaaaa",value:"Other"}},exports.HouseWorkOrdersLevelEnum={Urgent:{text:"紧急",color:"#ff0000",value:"Urgent"},High:{text:"高",color:"#ff7f00",value:"High"},Medium:{text:"中",color:"#00cc00",value:"Medium"},Low:{text:"低",color:"#999999",value:"Low"}},exports.HouseWorkOrdersLocationEnum={CommonArea:{text:"公共区域",color:"#ff0000",value:"CommonArea"},MyHome:{text:"我家",color:"#00ff00",value:"MyHome"}},exports.HouseWorkOrdersStatusEnum={Pending:{text:"待处理",color:"#FFA500",value:"Pending"},Processing:{text:"处理中",color:"#1E90FF",value:"Processing"},Completed:{text:"已完成",color:"#28A745",value:"Completed"},Closed:{text:"已关闭",color:"#6C757D",value:"Closed"}},exports.HouseWorkOrdersTypeEnum={Repair:{text:"报修",color:"#ff0000",value:"Repair"},Incident:{text:"报事",color:"#00aaff",value:"Incident"},Complaint:{text:"投诉",color:"#aa00ff",value:"Complaint"}}; +"use strict";exports.AssetHousesOrientationEnum={East:{text:"东",color:"#007bff",value:"East"},South:{text:"南",color:"#28a745",value:"South"},West:{text:"西",color:"#ffc107",value:"West"},North:{text:"北",color:"#dc3545",value:"North"},Southeast:{text:"东南",color:"#20c997",value:"Southeast"},Northeast:{text:"东北",color:"#6f42c1",value:"Northeast"},Southwest:{text:"西南",color:"#fd7e14",value:"Southwest"},Northwest:{text:"西北",color:"#17a2b8",value:"Northwest"},EastWest:{text:"东西",color:"#6610f2",value:"EastWest"},SouthNorth:{text:"南北",color:"#e83e8c",value:"SouthNorth"}},exports.AssetHousesUsageEnum={Residence:{text:"住宅",color:"#007bff",value:"Residence"},Apartment:{text:"公寓",color:"#28a745",value:"Apartment"},Villa:{text:"别墅",color:"#17a2b8",value:"Villa"},Shop:{text:"商铺",color:"#ffc107",value:"Shop"},ParkingSpace:{text:"车位",color:"#6c757d",value:"ParkingSpace"},Office:{text:"写字楼",color:"#6610f2",value:"Office"},Clubhouse:{text:"会所",color:"#fd7e14",value:"Clubhouse"},PropertyRoom:{text:"物业用房",color:"#dc3545",value:"PropertyRoom"}},exports.CompanyEmployeeBacklogsTypeEnum={WorkOrder:{text:"工单",color:"#FF6600",value:"WorkOrder"},Contract:{text:"合同",color:"#2A82E4",value:"Contract"},MomentTask:{text:"朋友圈任务",color:"#FF6600",value:"MomentTask"}},exports.CustomerMomentsChannelEnum={MomentCorp:{text:"朋友圈(企业)",color:"#1E90FF",value:"MomentCorp"},CustomerDirectCorp:{text:"客户1对1消息群发(企业)",color:"#FFA500",value:"CustomerDirectCorp"},CustomerGroupCorp:{text:"客户群群发(企业)",color:"#FF69B4",value:"CustomerGroupCorp"}},exports.CustomerMomentsContentTypeEnum={Image:{text:"图片消息",color:"#1E90FF",value:"Image"},Link:{text:"转载链接消息",color:"#32CD32",value:"Link"},MiniProgram:{text:"跳小程序",color:"#FFA500",value:"MiniProgram"},Video:{text:"视频消息",color:"#FF69B4",value:"Video"}},exports.GoodsReleasesPassedTypeEnum={Moving:{text:"搬家",color:"#1890ff",value:"Moving"},Delivery:{text:"出货",color:"#52c41a",value:"Delivery"},Other:{text:"其他",color:"#faad14",value:"Other"}},exports.GoodsReleasesStatusEnum={Pending:{text:"待审核",color:"#faad14",value:"Pending"},OwnerApproved:{text:"业主已审",color:"#1890ff",value:"OwnerApproved"},Approved:{text:"已通过",color:"#52c41a",value:"Approved"},Rejected:{text:"已退回",color:"#ff4d4f",value:"Rejected"},Released:{text:"已放行",color:"#722ed1",value:"Released"}},exports.HouseBillsTypeEnum={PropertyFee:{text:"物业费",color:"#3b82f6",value:"PropertyFee"},MaintenanceFund:{text:"维修基金",color:"#10b981",value:"MaintenanceFund"},WaterFee:{text:"水费",color:"#06b6d4",value:"WaterFee"},ElectricityFee:{text:"电费",color:"#f59e0b",value:"ElectricityFee"},SharedWaterFee:{text:"公摊水费",color:"#8b5cf6",value:"SharedWaterFee"},SharedElectricityFee:{text:"公摊电费",color:"#ec4899",value:"SharedElectricityFee"},CarPortFee:{text:"车位费",color:"#f59e0b",value:"CarPortFee"},WorkOrderRepairFee:{text:"工单维修费",color:"#f97316",value:"WorkOrderRepairFee"}},exports.HouseCollectionRecordsCollectionResultEnum={PromiseToPay:{text:"承诺缴费",color:"#4caf50",value:"PromiseToPay"},RefuseToPay:{text:"拒绝缴费",color:"#f44336",value:"RefuseToPay"},NotReached:{text:"未联系到",color:"#9e9e9e",value:"NotReached"},NeedFollowUp:{text:"需要跟进",color:"#ff9800",value:"NeedFollowUp"}},exports.HouseCollectionTasksChannelEnum={SMS:{text:"短信",color:"#1E90FF",value:"SMS"},MiniProgram:{text:"小程序",color:"#00BFFF",value:"MiniProgram"},OfficialAccount:{text:"公众号",color:"#32CD32",value:"OfficialAccount"},PhoneCall:{text:"电话催缴",color:"#FF8C00",value:"PhoneCall"},Visit:{text:"上门催缴",color:"#8B4513",value:"Visit"},WeChat:{text:"微信联系",color:"#20B2AA",value:"WeChat"},WrittenNotice:{text:"书面通知",color:"#708090",value:"WrittenNotice"}},exports.HouseCollectionTasksStatusEnum={Processing:{text:"进行中",color:"#ffcc00",value:"Processing"},Completed:{text:"已完成",color:"#00cc00",value:"Completed"},Failed:{text:"失败",color:"#ff0000",value:"Failed"}},exports.HouseOccupantsHouseRelationEnum={Owner:{text:"产权人",color:"#2db7f5",value:"Owner"},NonOwner:{text:"非产权人",color:"#fa8c16",value:"NonOwner"}},exports.HouseOccupantsResidentialRelationEnum={PropertyOwner:{text:"产权人",color:"#722ed1",value:"PropertyOwner"},Resident:{text:"住户",color:"#2db7f5",value:"Resident"},PrimaryTenant:{text:"主租人",color:"#87d068",value:"PrimaryTenant"},Tenant:{text:"租客",color:"#fa8c16",value:"Tenant"}},exports.HouseRegistersHouseStatusEnum={SelfOccupied:{text:"自住",color:"#28a745",value:"SelfOccupied"},Rented:{text:"出租",color:"#007bff",value:"Rented"},Vacant:{text:"空置",color:"#dc3545",value:"Vacant"}},exports.HouseWorkOrdersLevelEnum={Urgent:{text:"紧急",color:"#ff0000",value:"Urgent"},High:{text:"高",color:"#ff7f00",value:"High"},Medium:{text:"中",color:"#00cc00",value:"Medium"},Low:{text:"低",color:"#999999",value:"Low"}},exports.HouseWorkOrdersLocationEnum={CommonArea:{text:"公共区域",color:"#ff0000",value:"CommonArea"},MyHome:{text:"房屋",color:"#00ff00",value:"MyHome"}},exports.HouseWorkOrdersStatusEnum={Pending:{text:"待处理",color:"#FFA500",value:"Pending"},Processing:{text:"处理中",color:"#1E90FF",value:"Processing"},PendingPayment:{text:"待支付",color:"#FF8C00",value:"PendingPayment"},PendingAcceptance:{text:"待验收",color:"#17A2B8",value:"PendingAcceptance"},Completed:{text:"已完成",color:"#28A745",value:"Completed"},Closed:{text:"已关闭",color:"#6C757D",value:"Closed"}},exports.HouseWorkOrdersTypeEnum={Repair:{text:"报修",color:"#ff0000",value:"Repair"},Incident:{text:"报事",color:"#00aaff",value:"Incident"},Complaint:{text:"投诉",color:"#aa00ff",value:"Complaint"}},exports.VisitorAppliesStatusEnum={Pending:{text:"审核中",color:"#ff9800",value:"Pending"},Approved:{text:"已通过",color:"#4caf50",value:"Approved"},Rejected:{text:"已驳回",color:"#f44336",value:"Rejected"},Expired:{text:"已失效",color:"#9e9e9e",value:"Expired"}}; diff --git a/dist/build/mp-weixin/node-modules/uview-plus/components/u-badge/u-badge.js b/dist/build/mp-weixin/node-modules/uview-plus/components/u-badge/u-badge.js index 6ec6d9a..d90bd11 100644 --- a/dist/build/mp-weixin/node-modules/uview-plus/components/u-badge/u-badge.js +++ b/dist/build/mp-weixin/node-modules/uview-plus/components/u-badge/u-badge.js @@ -1 +1 @@ -"use strict";const e=require("../../../../common/vendor.js"),t={name:"u-badge",mixins:[e.mpMixin,e.props$10,e.mixin],computed:{boxStyle:()=>({}),badgeStyle(){const t={};if(this.color&&(t.color=this.color),this.bgColor&&!this.inverted&&(t.backgroundColor=this.bgColor),this.absolute&&(t.position="absolute",this.offset.length)){const o=this.offset[0],s=this.offset[1]||o;t.top=e.addUnit(o),t.right=e.addUnit(s)}return t},showValue(){switch(this.numberType){case"overflow":return Number(this.value)>Number(this.max)?this.max+"+":this.value;case"ellipsis":return Number(this.value)>Number(this.max)?"...":this.value;case"limit":return Number(this.value)>999?Number(this.value)>=9999?Math.floor(this.value/1e4*100)/100+"w":Math.floor(this.value/1e3*100)/100+"k":this.value;default:return Number(this.value)}}},methods:{addStyle:e.addStyle}};const o=e._export_sfc(t,[["render",function(t,o,s,i,r,a){return e.e({a:t.show&&(0!==Number(t.value)||t.showZero||t.isDot)},t.show&&(0!==Number(t.value)||t.showZero||t.isDot)?{b:e.t(t.isDot?"":a.showValue),c:e.n(t.isDot?"u-badge--dot":"u-badge--not-dot"),d:e.n(t.inverted&&"u-badge--inverted"),e:e.n("horn"===t.shape&&"u-badge--horn"),f:e.n(`u-badge--${t.type}${t.inverted?"--inverted":""}`),g:e.s(a.addStyle(t.customStyle)),h:e.s(a.badgeStyle)}:{})}],["__scopeId","data-v-11c87331"]]);wx.createComponent(o); +"use strict";const e=require("../../../../common/vendor.js"),t={name:"u-badge",mixins:[e.mpMixin,e.props$11,e.mixin],computed:{boxStyle:()=>({}),badgeStyle(){const t={};if(this.color&&(t.color=this.color),this.bgColor&&!this.inverted&&(t.backgroundColor=this.bgColor),this.absolute&&(t.position="absolute",this.offset.length)){const o=this.offset[0],s=this.offset[1]||o;t.top=e.addUnit(o),t.right=e.addUnit(s)}return t},showValue(){switch(this.numberType){case"overflow":return Number(this.value)>Number(this.max)?this.max+"+":this.value;case"ellipsis":return Number(this.value)>Number(this.max)?"...":this.value;case"limit":return Number(this.value)>999?Number(this.value)>=9999?Math.floor(this.value/1e4*100)/100+"w":Math.floor(this.value/1e3*100)/100+"k":this.value;default:return Number(this.value)}}},methods:{addStyle:e.addStyle}};const o=e._export_sfc(t,[["render",function(t,o,s,i,r,a){return e.e({a:t.show&&(0!==Number(t.value)||t.showZero||t.isDot)},t.show&&(0!==Number(t.value)||t.showZero||t.isDot)?{b:e.t(t.isDot?"":a.showValue),c:e.n(t.isDot?"u-badge--dot":"u-badge--not-dot"),d:e.n(t.inverted&&"u-badge--inverted"),e:e.n("horn"===t.shape&&"u-badge--horn"),f:e.n(`u-badge--${t.type}${t.inverted?"--inverted":""}`),g:e.s(a.addStyle(t.customStyle)),h:e.s(a.badgeStyle)}:{})}],["__scopeId","data-v-11c87331"]]);wx.createComponent(o); diff --git a/dist/build/mp-weixin/node-modules/uview-plus/components/u-button/u-button.js b/dist/build/mp-weixin/node-modules/uview-plus/components/u-button/u-button.js index 2de5d1a..44edb4d 100644 --- a/dist/build/mp-weixin/node-modules/uview-plus/components/u-button/u-button.js +++ b/dist/build/mp-weixin/node-modules/uview-plus/components/u-button/u-button.js @@ -1 +1 @@ -"use strict";const e=require("../../../../common/vendor.js"),o={name:"u-button",mixins:[e.mpMixin,e.mixin,e.buttonMixin,e.openType,e.props$11],data:()=>({}),computed:{bemClass(){return this.color?this.bem("button",["shape","size"],["disabled","plain","hairline"]):this.bem("button",["type","shape","size"],["disabled","plain","hairline"])},loadingColor(){return this.plain?this.color?this.color:e.color[`u-${this.type}`]:"info"===this.type?"#c9c9c9":"rgb(200, 200, 200)"},iconColorCom(){return this.iconColor?this.iconColor:this.plain?this.color?this.color:this.type:"info"===this.type?"#000000":"#ffffff"},baseColor(){let e={};return this.color&&(e.color=this.plain?this.color:"white",this.plain||(e["background-color"]=this.color),-1!==this.color.indexOf("gradient")?(e.borderTopWidth=0,e.borderRightWidth=0,e.borderBottomWidth=0,e.borderLeftWidth=0,this.plain||(e.backgroundImage=this.color)):(e.borderColor=this.color,e.borderWidth="1px",e.borderStyle="solid")),e},nvueTextStyle(){let e={};return"info"===this.type&&(e.color="#323233"),this.color&&(e.color=this.plain?this.color:"white"),e.fontSize=this.textSize+"px",e},textSize(){let e=14,{size:o}=this;return"large"===o&&(e=16),"normal"===o&&(e=14),"small"===o&&(e=12),"mini"===o&&(e=10),e}},emits:["click","getphonenumber","getuserinfo","error","opensetting","launchapp","agreeprivacyauthorization"],methods:{addStyle:e.addStyle,clickHandler(o){this.disabled||this.loading||e.throttle((()=>{this.$emit("click",o)}),this.throttleTime),this.stop&&this.preventEvent(o)},getphonenumber(e){this.$emit("getphonenumber",e)},getuserinfo(e){this.$emit("getuserinfo",e)},error(e){this.$emit("error",e)},opensetting(e){this.$emit("opensetting",e)},launchapp(e){this.$emit("launchapp",e)},agreeprivacyauthorization(e){this.$emit("agreeprivacyauthorization",e)}}};if(!Array){(e.resolveComponent("u-loading-icon")+e.resolveComponent("u-icon"))()}Math||((()=>"../u-loading-icon/u-loading-icon.js")+(()=>"../u-icon/u-icon.js"))();const t=e._export_sfc(o,[["render",function(o,t,i,r,n,s){return e.e({a:o.loading},o.loading?{b:e.p({mode:o.loadingMode,size:1.15*o.loadingSize,color:s.loadingColor}),c:e.t(o.loadingText||o.text),d:e.s({fontSize:s.textSize+"px"})}:e.e({e:o.icon},o.icon?{f:e.p({name:o.icon,color:s.iconColorCom,size:1.35*s.textSize,customStyle:{marginRight:"2px"}})}:{},{g:e.t(o.text),h:e.s({fontSize:s.textSize+"px"})}),{i:Number(o.hoverStartTime),j:Number(o.hoverStayTime),k:o.formType,l:o.openType,m:o.appParameter,n:o.hoverStopPropagation,o:o.sendMessageTitle,p:o.sendMessagePath,q:o.lang,r:o.dataName,s:o.sessionFrom,t:o.sendMessageImg,v:o.showMessageCard,w:e.o(((...e)=>s.getphonenumber&&s.getphonenumber(...e))),x:e.o(((...e)=>s.getuserinfo&&s.getuserinfo(...e))),y:e.o(((...e)=>s.error&&s.error(...e))),z:e.o(((...e)=>s.opensetting&&s.opensetting(...e))),A:e.o(((...e)=>s.launchapp&&s.launchapp(...e))),B:e.o(((...e)=>s.agreeprivacyauthorization&&s.agreeprivacyauthorization(...e))),C:o.disabled||o.loading?"":"u-button--active",D:e.s(s.baseColor),E:e.s(s.addStyle(o.customStyle)),F:e.o(((...e)=>s.clickHandler&&s.clickHandler(...e))),G:e.n(s.bemClass)})}],["__scopeId","data-v-aa49867e"]]);wx.createComponent(t); +"use strict";const e=require("../../../../common/vendor.js"),o={name:"u-button",mixins:[e.mpMixin,e.mixin,e.buttonMixin,e.openType,e.props$12],data:()=>({}),computed:{bemClass(){return this.color?this.bem("button",["shape","size"],["disabled","plain","hairline"]):this.bem("button",["type","shape","size"],["disabled","plain","hairline"])},loadingColor(){return this.plain?this.color?this.color:e.color[`u-${this.type}`]:"info"===this.type?"#c9c9c9":"rgb(200, 200, 200)"},iconColorCom(){return this.iconColor?this.iconColor:this.plain?this.color?this.color:this.type:"info"===this.type?"#000000":"#ffffff"},baseColor(){let e={};return this.color&&(e.color=this.plain?this.color:"white",this.plain||(e["background-color"]=this.color),-1!==this.color.indexOf("gradient")?(e.borderTopWidth=0,e.borderRightWidth=0,e.borderBottomWidth=0,e.borderLeftWidth=0,this.plain||(e.backgroundImage=this.color)):(e.borderColor=this.color,e.borderWidth="1px",e.borderStyle="solid")),e},nvueTextStyle(){let e={};return"info"===this.type&&(e.color="#323233"),this.color&&(e.color=this.plain?this.color:"white"),e.fontSize=this.textSize+"px",e},textSize(){let e=14,{size:o}=this;return"large"===o&&(e=16),"normal"===o&&(e=14),"small"===o&&(e=12),"mini"===o&&(e=10),e}},emits:["click","getphonenumber","getuserinfo","error","opensetting","launchapp","agreeprivacyauthorization"],methods:{addStyle:e.addStyle,clickHandler(o){this.disabled||this.loading||e.throttle((()=>{this.$emit("click",o)}),this.throttleTime),this.stop&&this.preventEvent(o)},getphonenumber(e){this.$emit("getphonenumber",e)},getuserinfo(e){this.$emit("getuserinfo",e)},error(e){this.$emit("error",e)},opensetting(e){this.$emit("opensetting",e)},launchapp(e){this.$emit("launchapp",e)},agreeprivacyauthorization(e){this.$emit("agreeprivacyauthorization",e)}}};if(!Array){(e.resolveComponent("u-loading-icon")+e.resolveComponent("u-icon"))()}Math||((()=>"../u-loading-icon/u-loading-icon.js")+(()=>"../u-icon/u-icon.js"))();const t=e._export_sfc(o,[["render",function(o,t,i,r,n,s){return e.e({a:o.loading},o.loading?{b:e.p({mode:o.loadingMode,size:1.15*o.loadingSize,color:s.loadingColor}),c:e.t(o.loadingText||o.text),d:e.s({fontSize:s.textSize+"px"})}:e.e({e:o.icon},o.icon?{f:e.p({name:o.icon,color:s.iconColorCom,size:1.35*s.textSize,customStyle:{marginRight:"2px"}})}:{},{g:e.t(o.text),h:e.s({fontSize:s.textSize+"px"})}),{i:Number(o.hoverStartTime),j:Number(o.hoverStayTime),k:o.formType,l:o.openType,m:o.appParameter,n:o.hoverStopPropagation,o:o.sendMessageTitle,p:o.sendMessagePath,q:o.lang,r:o.dataName,s:o.sessionFrom,t:o.sendMessageImg,v:o.showMessageCard,w:e.o(((...e)=>s.getphonenumber&&s.getphonenumber(...e))),x:e.o(((...e)=>s.getuserinfo&&s.getuserinfo(...e))),y:e.o(((...e)=>s.error&&s.error(...e))),z:e.o(((...e)=>s.opensetting&&s.opensetting(...e))),A:e.o(((...e)=>s.launchapp&&s.launchapp(...e))),B:e.o(((...e)=>s.agreeprivacyauthorization&&s.agreeprivacyauthorization(...e))),C:o.disabled||o.loading?"":"u-button--active",D:e.s(s.baseColor),E:e.s(s.addStyle(o.customStyle)),F:e.o(((...e)=>s.clickHandler&&s.clickHandler(...e))),G:e.n(s.bemClass)})}],["__scopeId","data-v-aa49867e"]]);wx.createComponent(t); diff --git a/dist/build/mp-weixin/node-modules/uview-plus/components/u-link/u-link.js b/dist/build/mp-weixin/node-modules/uview-plus/components/u-link/u-link.js index 497246a..10ced1d 100644 --- a/dist/build/mp-weixin/node-modules/uview-plus/components/u-link/u-link.js +++ b/dist/build/mp-weixin/node-modules/uview-plus/components/u-link/u-link.js @@ -1 +1 @@ -"use strict";const t=require("../../../../common/vendor.js"),e={name:"u-link",mixins:[t.mpMixin,t.mixin,t.props$12],computed:{linkStyle(){return{color:this.color,fontSize:t.addUnit(this.fontSize),lineHeight:t.addUnit(t.getPx(this.fontSize)+2),textDecoration:this.underLine?"underline":"none"}}},emits:["click"],methods:{addStyle:t.addStyle,openLink(){t.index.setClipboardData({data:this.href,success:()=>{t.index.hideToast(),this.$nextTick((()=>{t.toast(this.mpTips)}))}}),this.$emit("click")}}};const i=t._export_sfc(e,[["render",function(e,i,n,o,s,d){return{a:t.t(e.text),b:t.o(((...t)=>d.openLink&&d.openLink(...t))),c:t.s(d.linkStyle),d:t.s(d.addStyle(e.customStyle))}}],["__scopeId","data-v-6b5caab7"]]);wx.createComponent(i); +"use strict";const t=require("../../../../common/vendor.js"),e={name:"u-link",mixins:[t.mpMixin,t.mixin,t.props$13],computed:{linkStyle(){return{color:this.color,fontSize:t.addUnit(this.fontSize),lineHeight:t.addUnit(t.getPx(this.fontSize)+2),textDecoration:this.underLine?"underline":"none"}}},emits:["click"],methods:{addStyle:t.addStyle,openLink(){t.index.setClipboardData({data:this.href,success:()=>{t.index.hideToast(),this.$nextTick((()=>{t.toast(this.mpTips)}))}}),this.$emit("click")}}};const i=t._export_sfc(e,[["render",function(e,i,n,o,s,d){return{a:t.t(e.text),b:t.o(((...t)=>d.openLink&&d.openLink(...t))),c:t.s(d.linkStyle),d:t.s(d.addStyle(e.customStyle))}}],["__scopeId","data-v-6b5caab7"]]);wx.createComponent(i); diff --git a/dist/build/mp-weixin/node-modules/uview-plus/components/u-popup/u-popup.js b/dist/build/mp-weixin/node-modules/uview-plus/components/u-popup/u-popup.js index c61de72..a832e2a 100644 --- a/dist/build/mp-weixin/node-modules/uview-plus/components/u-popup/u-popup.js +++ b/dist/build/mp-weixin/node-modules/uview-plus/components/u-popup/u-popup.js @@ -1 +1 @@ -"use strict";const e=require("../../../../common/vendor.js"),t={name:"u-popup",mixins:[e.mpMixin,e.mixin,e.props$13],data(){return{overlayDuration:this.duration+50}},watch:{show(e,t){if(!0===e){const e=this.$children;this.retryComputedComponentRect(e)}}},computed:{transitionStyle(){const t={zIndex:this.zIndex,position:"fixed",display:"flex"};return t[this.mode]=0,"left"===this.mode||"right"===this.mode?e.deepMerge(t,{bottom:0,top:0}):"top"===this.mode||"bottom"===this.mode?e.deepMerge(t,{left:0,right:0}):"center"===this.mode?e.deepMerge(t,{alignItems:"center","justify-content":"center",top:0,left:0,right:0,bottom:0}):void 0},contentStyle(){const t={};if(e.getWindowInfo(),"center"!==this.mode&&(t.flex=1),this.bgColor&&(t.backgroundColor=this.bgColor),this.round){const o=e.addUnit(this.round);"top"===this.mode?(t.borderBottomLeftRadius=o,t.borderBottomRightRadius=o):"bottom"===this.mode?(t.borderTopLeftRadius=o,t.borderTopRightRadius=o):"center"===this.mode&&(t.borderRadius=o)}return e.deepMerge(t,e.addStyle(this.customStyle))},position(){return"center"===this.mode?this.zoom?"fade-zoom":"fade":"left"===this.mode?"slide-left":"right"===this.mode?"slide-right":"bottom"===this.mode?"slide-up":"top"===this.mode?"slide-down":void 0}},emits:["open","close","click","update:show"],methods:{overlayClick(){this.closeOnClickOverlay&&(this.$emit("update:show",!1),this.$emit("close"))},close(e){this.$emit("update:show",!1),this.$emit("close")},afterEnter(){this.$emit("open")},clickHandler(){"center"===this.mode&&this.overlayClick(),this.$emit("click")},retryComputedComponentRect(t){const o=["u-calendar-month","u-album","u-collapse-item","u-dropdown","u-index-item","u-index-list","u-line-progress","u-list-item","u-rate","u-read-more","u-row","u-row-notice","u-scroll-list","u-skeleton","u-slider","u-steps-item","u-sticky","u-subsection","u-swipe-action-item","u-tabbar","u-tabs","u-tooltip"];for(let s=0;s{i.init()})),n.length&&this.retryComputedComponentRect(n)}}}};if(!Array){(e.resolveComponent("u-overlay")+e.resolveComponent("u-status-bar")+e.resolveComponent("u-icon")+e.resolveComponent("u-safe-bottom")+e.resolveComponent("u-transition"))()}Math||((()=>"../u-overlay/u-overlay.js")+(()=>"../u-status-bar/u-status-bar.js")+(()=>"../u-icon/u-icon.js")+(()=>"../u-safe-bottom/u-safe-bottom.js")+(()=>"../u-transition/u-transition.js"))();const o=e._export_sfc(t,[["render",function(t,o,s,i,n,r){return e.e({a:t.overlay},t.overlay?{b:e.o(r.overlayClick),c:e.p({show:t.show,zIndex:t.zIndex,duration:n.overlayDuration,customStyle:t.overlayStyle,opacity:t.overlayOpacity})}:{},{d:t.safeAreaInsetTop},(t.safeAreaInsetTop,{}),{e:t.closeable},t.closeable?{f:e.p({name:"close",color:"#909399",size:"18",bold:!0}),g:e.o(((...e)=>r.close&&r.close(...e))),h:e.n("u-popup__content__close--"+t.closeIconPos)}:{},{i:t.safeAreaInsetBottom},(t.safeAreaInsetBottom,{}),{j:e.s(r.contentStyle),k:e.o(((...e)=>t.noop&&t.noop(...e))),l:e.o(((...e)=>t.noop&&t.noop(...e))),m:e.o(r.afterEnter),n:e.o(r.clickHandler),o:e.p({show:t.show,customStyle:r.transitionStyle,mode:r.position,duration:t.duration}),p:e.n(t.customClass)})}],["__scopeId","data-v-c9ac16f0"]]);wx.createComponent(o); +"use strict";const e=require("../../../../common/vendor.js"),t={name:"u-popup",mixins:[e.mpMixin,e.mixin,e.props$10],data(){return{overlayDuration:this.duration+50}},watch:{show(e,t){if(!0===e){const e=this.$children;this.retryComputedComponentRect(e)}}},computed:{transitionStyle(){const t={zIndex:this.zIndex,position:"fixed",display:"flex"};return t[this.mode]=0,"left"===this.mode||"right"===this.mode?e.deepMerge(t,{bottom:0,top:0}):"top"===this.mode||"bottom"===this.mode?e.deepMerge(t,{left:0,right:0}):"center"===this.mode?e.deepMerge(t,{alignItems:"center","justify-content":"center",top:0,left:0,right:0,bottom:0}):void 0},contentStyle(){const t={};if(e.getWindowInfo(),"center"!==this.mode&&(t.flex=1),this.bgColor&&(t.backgroundColor=this.bgColor),this.round){const o=e.addUnit(this.round);"top"===this.mode?(t.borderBottomLeftRadius=o,t.borderBottomRightRadius=o):"bottom"===this.mode?(t.borderTopLeftRadius=o,t.borderTopRightRadius=o):"center"===this.mode&&(t.borderRadius=o)}return e.deepMerge(t,e.addStyle(this.customStyle))},position(){return"center"===this.mode?this.zoom?"fade-zoom":"fade":"left"===this.mode?"slide-left":"right"===this.mode?"slide-right":"bottom"===this.mode?"slide-up":"top"===this.mode?"slide-down":void 0}},emits:["open","close","click","update:show"],methods:{overlayClick(){this.closeOnClickOverlay&&(this.$emit("update:show",!1),this.$emit("close"))},close(e){this.$emit("update:show",!1),this.$emit("close")},afterEnter(){this.$emit("open")},clickHandler(){"center"===this.mode&&this.overlayClick(),this.$emit("click")},retryComputedComponentRect(t){const o=["u-calendar-month","u-album","u-collapse-item","u-dropdown","u-index-item","u-index-list","u-line-progress","u-list-item","u-rate","u-read-more","u-row","u-row-notice","u-scroll-list","u-skeleton","u-slider","u-steps-item","u-sticky","u-subsection","u-swipe-action-item","u-tabbar","u-tabs","u-tooltip"];for(let s=0;s{i.init()})),n.length&&this.retryComputedComponentRect(n)}}}};if(!Array){(e.resolveComponent("u-overlay")+e.resolveComponent("u-status-bar")+e.resolveComponent("u-icon")+e.resolveComponent("u-safe-bottom")+e.resolveComponent("u-transition"))()}Math||((()=>"../u-overlay/u-overlay.js")+(()=>"../u-status-bar/u-status-bar.js")+(()=>"../u-icon/u-icon.js")+(()=>"../u-safe-bottom/u-safe-bottom.js")+(()=>"../u-transition/u-transition.js"))();const o=e._export_sfc(t,[["render",function(t,o,s,i,n,r){return e.e({a:t.overlay},t.overlay?{b:e.o(r.overlayClick),c:e.p({show:t.show,zIndex:t.zIndex,duration:n.overlayDuration,customStyle:t.overlayStyle,opacity:t.overlayOpacity})}:{},{d:t.safeAreaInsetTop},(t.safeAreaInsetTop,{}),{e:t.closeable},t.closeable?{f:e.p({name:"close",color:"#909399",size:"18",bold:!0}),g:e.o(((...e)=>r.close&&r.close(...e))),h:e.n("u-popup__content__close--"+t.closeIconPos)}:{},{i:t.safeAreaInsetBottom},(t.safeAreaInsetBottom,{}),{j:e.s(r.contentStyle),k:e.o(((...e)=>t.noop&&t.noop(...e))),l:e.o(((...e)=>t.noop&&t.noop(...e))),m:e.o(r.afterEnter),n:e.o(r.clickHandler),o:e.p({show:t.show,customStyle:r.transitionStyle,mode:r.position,duration:t.duration}),p:e.n(t.customClass)})}],["__scopeId","data-v-c9ac16f0"]]);wx.createComponent(o); diff --git a/dist/build/mp-weixin/pages/index/components/Classification.js b/dist/build/mp-weixin/pages/index/components/Classification.js index ac21d4f..0355cf0 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/userUserLogin.js");if(require("../../../common/libraries/request.js"),require("../../../common/store/useWeAppAuthStore.js"),require("../../../gen/Apis.js"),require("../../../common/store/useWorkStore.js"),require("../../../common/libraries/apiLoading.js"),!Array){e.resolveComponent("hs-scroll-indicator")()}Math;const i=e.defineComponent({__name:"Classification",setup(i){e.ref(null);const n=e.ref({}),r=e=>{n.value=e.detail},s=[{label:"新增工单",icon:"workorder_icon.svg",url:"/WORKORDER/add/index"},{label:"房屋管理",icon:"house_icon.svg",url:"/CUSTOMER/list_house/index"},{label:"客户管理",icon:"user_icon.svg",url:"/CUSTOMER/list_user/index"},{label:"数据看板",icon:"performance_icon.svg",url:"/pages/data_oard/index"},{label:"知识问答",icon:"knowledge_icon.svg",url:"/ME/knowledge_qa/index"},{label:"入户登记",icon:"household_registration.svg",url:"/CUSTOMER/bind_house/index"},{label:"催缴记录",icon:"collection_icon.svg",url:"/BILL/collection_record/index/index"}];return(i,l)=>({a:e.f(s,((i,n,r)=>({a:`/static/svg/${i.icon}`,b:e.t(i.label),c:`items_${n}`,d:e.o((n=>{var r,s;(r=null==i?void 0:i.url)?e.index.navigateTo({url:(null==(s=o.getUser)?void 0:s.getLoginStatus())?r||"":"/pages/login"}):e.index.showModal({title:"提示",content:"该功能暂未开放,敬请期待",confirmColor:"#0082FA",success:function(e){e.confirm?console.log("用户点击确定"):e.cancel&&console.log("用户点击取消")}})}),`items_${n}`)}))),b:e.o(r),c:e.p({scroll_view:n.value})})}}),n=e._export_sfc(i,[["__scopeId","data-v-e95aadda"]]);wx.createComponent(n); +"use strict";const e=require("../../../common/vendor.js"),o=require("../../../common/libraries/userUserLogin.js"),n=require("../model.js");require("../../../common/libraries/request.js"),require("../../../common/store/useWeAppAuthStore.js"),require("../../../gen/Apis.js"),require("../../../common/store/useWatermarkStore.js"),require("../../../common/store/useWorkStore.js"),require("../../../common/libraries/apiLoading.js");const l=e.defineComponent({__name:"Classification",setup(l){const i=[{label:"新增工单",icon:"workorder_icon.svg",url:"/ME/work_order_home/index"},{label:"房屋管理",icon:"house_icon.svg",url:"/CUSTOMER/list_house/index"},{label:"任务中心",icon:"task_icon.svg",url:"/INDEX/task/list/index",key:"houseWorkOrderCount"},{label:"仪表抄表",icon:"meter_reading_icon.svg",url:"/ME/instrument/list/index"},{label:"水印相机",icon:"WatermarkCamera.svg",url:"/INDEX/watermark_camera/index"},{label:"客户管理",icon:"user_icon.svg",url:"/CUSTOMER/list_user/index"},{label:"数据看板",icon:"performance_icon.svg",url:"/pages/data_oard/index"},{label:"住户登记",icon:"household_registration.svg",url:"/CUSTOMER/bind_house_form/index"},{label:"催缴记录",icon:"collection_icon.svg",url:"/BILL/collection_record/index/index"},{label:"公告",icon:"announcement.svg",url:"/ME/announcement/list/index"}];return(l,r)=>({a:e.f(i,((l,i,r)=>{var s,u,t,a,c,d,v,m,_;return e.e({a:`/static/svg/${l.icon}`,b:(null==l?void 0:l.key)&&(null==(t=null==(u=null==(s=e.unref(n.useModel))?void 0:s.IndexCount)?void 0:u.value)?void 0:t[null==l?void 0:l.key])},(null==l?void 0:l.key)&&(null==(d=null==(c=null==(a=e.unref(n.useModel))?void 0:a.IndexCount)?void 0:c.value)?void 0:d[null==l?void 0:l.key])?{c:e.t((null==(_=null==(m=null==(v=e.unref(n.useModel))?void 0:v.IndexCount)?void 0:m.value)?void 0:_[null==l?void 0:l.key])||0)}:{},{d:e.t(l.label),e:`items_${i}`,f:e.o((n=>(n=>{var l;n?e.index.navigateTo({url:(null==(l=o.getUser)?void 0:l.getLoginStatus())?n||"":"/pages/login"}):e.index.showModal({title:"提示",content:"该功能暂未开放,敬请期待",confirmColor:"#0082FA",success:function(e){e.confirm?console.log("用户点击确定"):e.cancel&&console.log("用户点击取消")}})})(null==l?void 0:l.url)),`items_${i}`)})}))})}}),i=e._export_sfc(l,[["__scopeId","data-v-9f61501c"]]);wx.createComponent(i); diff --git a/dist/build/mp-weixin/pages/index/components/Classification.json b/dist/build/mp-weixin/pages/index/components/Classification.json index 64a4003..e8cfaaf 100644 --- a/dist/build/mp-weixin/pages/index/components/Classification.json +++ b/dist/build/mp-weixin/pages/index/components/Classification.json @@ -1,6 +1,4 @@ { "component": true, - "usingComponents": { - "hs-scroll-indicator": "../../../components/hs-scroll-indicator/hs-scroll-indicator" - } + "usingComponents": {} } \ No newline at end of file diff --git a/dist/build/mp-weixin/pages/index/components/Classification.wxml b/dist/build/mp-weixin/pages/index/components/Classification.wxml index 7cf6930..581189c 100644 --- a/dist/build/mp-weixin/pages/index/components/Classification.wxml +++ b/dist/build/mp-weixin/pages/index/components/Classification.wxml @@ -1 +1 @@ -{{i.b}} \ No newline at end of file +{{i.c}}{{i.d}} \ 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 993a06b..11aa021 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-e95aadda{color:#3d3d3d;margin:0 30rpx;white-space:nowrap;padding-top:20rpx}.class_ification .items.data-v-e95aadda{text-align:center;font-size:24rpx;display:inline-block;width:20%}.class_ification .items .items_icon.data-v-e95aadda{background-color:#fff;border-radius:28rpx;height:100rpx;width:100rpx;display:flex;align-items:center;justify-content:center;margin:0 auto}.class_ification .items .items_icon image.data-v-e95aadda{height:55rpx;width:55rpx}.class_ification .items .label.data-v-e95aadda{padding:15rpx 0 0} +.class_ification.data-v-9f61501c{color:#3d3d3d;padding:0 10rpx;display:flex;flex-wrap:wrap}.class_ification .items.data-v-9f61501c{text-align:center;font-size:22rpx;width:20%;padding-top:30rpx}.class_ification .items .items_icon.data-v-9f61501c{height:100rpx;width:100rpx;display:flex;align-items:center;justify-content:center;margin:0 auto;position:relative}.class_ification .items .items_icon image.data-v-9f61501c{height:100%;width:100%}.class_ification .items .items_icon .badge.data-v-9f61501c{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 .label.data-v-9f61501c{padding:15rpx 0 0} diff --git a/dist/build/mp-weixin/pages/index/components/HeaderTitle.js b/dist/build/mp-weixin/pages/index/components/HeaderTitle.js index 99898bd..5432846 100644 --- a/dist/build/mp-weixin/pages/index/components/HeaderTitle.js +++ b/dist/build/mp-weixin/pages/index/components/HeaderTitle.js @@ -1 +1 @@ -"use strict";const e=require("../../../common/vendor.js"),o=require("../model.js");require("../../../common/libraries/request.js");const n=require("../../../common/store/useWeAppAuthStore.js");require("../../../common/store/useWorkStore.js");const u=require("../../../common/libraries/userUserLogin.js");if(require("../../../common/libraries/day.js"),require("../../../gen/Apis.js"),require("../../../common/libraries/apiLoading.js"),!Array){e.resolveComponent("uni-icons")()}Math;const r=e.defineComponent({__name:"HeaderTitle",props:["title","objStyle"],setup(r){const l=r,t=e.ref("标题"),i=e.ref({}),a=n.useWeAppAuthStore(),s=e.ref({}),d=()=>{var o;e.index.navigateTo({url:(null==(o=u.getUser)?void 0:o.getLoginStatus())?"/ME/update/index":"/pages/login"})};return e.onMounted((()=>{t.value=l.title,i.value=e.index.getMenuButtonBoundingClientRect(),console.log(i.value,"capsuleRect")})),e.onShow((async()=>{var o,n;await(null==(o=e.getCurrentInstance())?void 0:o.appContext.config.globalProperties.$onLaunched),s.value=null==(n=null==a?void 0:a.data)?void 0:n.user,console.log("onShow",s.value)})),(n,u)=>{var r,t,v,c,p,m,g,h,f,j,q;return e.e({a:e.t((null==(t=null==(r=s.value)?void 0:r.company)?void 0:t.name)||"-"),b:e.s(`height:${i.value.height}px;line-height:${i.value.height}px;`),c:null==(c=null==(v=e.unref(a))?void 0:v.data)?void 0:c.user},(null==(m=null==(p=e.unref(a))?void 0:p.data)?void 0:m.user)?{d:e.t((null==(g=s.value)?void 0:g.name)||"-")}:{},{e:e.p({type:"right",size:"19",color:"#666"}),f:e.o(d),g:e.t((null==(f=null==(h=e.unref(o.useModel).userData.value)?void 0:h.position)?void 0:f.name)||"-"),h:e.t((null==(j=e.unref(o.useModel).userData.value)?void 0:j.house_num)?`${(null==(q=e.unref(o.useModel).userData.value)?void 0:q.house_num)||"-"}户房屋`:"-"),i:e.s(`padding-top:${i.value.top+10}px;${null==l?void 0:l.objStyle}`)})}}}),l=e._export_sfc(r,[["__scopeId","data-v-f620272c"]]);wx.createComponent(l); +"use strict";const e=require("../../../common/vendor.js"),o=require("../model.js");require("../../../common/libraries/request.js"),require("../../../common/store/useWatermarkStore.js");const n=require("../../../common/store/useWeAppAuthStore.js");require("../../../common/store/useWorkStore.js");const u=require("../../../common/libraries/userUserLogin.js");if(require("../../../gen/Apis.js"),require("../../../common/libraries/apiLoading.js"),!Array){e.resolveComponent("uni-icons")()}Math;const r=e.defineComponent({__name:"HeaderTitle",props:["title","objStyle"],setup(r){const t=r,l=e.ref("标题"),i=e.ref({}),a=n.useWeAppAuthStore(),s=e.ref({}),d=()=>{var o;e.index.navigateTo({url:(null==(o=u.getUser)?void 0:o.getLoginStatus())?"/ME/update/index":"/pages/login"})};return e.onMounted((()=>{l.value=t.title,i.value=e.index.getMenuButtonBoundingClientRect(),console.log(i.value,"capsuleRect")})),e.onShow((async()=>{var o,n;await(null==(o=e.getCurrentInstance())?void 0:o.appContext.config.globalProperties.$onLaunched),s.value=null==(n=null==a?void 0:a.data)?void 0:n.user,console.log("onShow",s.value)})),(n,u)=>{var r,l,v,c,p,m,g,h,f,j,q;return e.e({a:e.t((null==(l=null==(r=s.value)?void 0:r.company)?void 0:l.name)||"-"),b:e.s(`height:${i.value.height}px;line-height:${i.value.height}px;`),c:null==(c=null==(v=e.unref(a))?void 0:v.data)?void 0:c.user},(null==(m=null==(p=e.unref(a))?void 0:p.data)?void 0:m.user)?{d:e.t((null==(g=s.value)?void 0:g.name)||"-")}:{},{e:e.p({type:"right",size:"19",color:"#666"}),f:e.o(d),g:e.t((null==(f=null==(h=e.unref(o.useModel).userData.value)?void 0:h.position)?void 0:f.name)||"-"),h:e.t((null==(j=e.unref(o.useModel).userData.value)?void 0:j.house_num)?`${(null==(q=e.unref(o.useModel).userData.value)?void 0:q.house_num)||"-"}户房屋`:"-"),i:e.s(`padding-top:${i.value.top+10}px;${null==t?void 0:t.objStyle}`)})}}}),t=e._export_sfc(r,[["__scopeId","data-v-f620272c"]]);wx.createComponent(t); diff --git a/dist/build/mp-weixin/pages/index/components/ShowData.js b/dist/build/mp-weixin/pages/index/components/ShowData.js index ad8ba7c..42ad334 100644 --- a/dist/build/mp-weixin/pages/index/components/ShowData.js +++ b/dist/build/mp-weixin/pages/index/components/ShowData.js @@ -1 +1 @@ -"use strict";const e=require("../../../common/vendor.js"),r=require("../../../common/libraries/userUserLogin.js"),o=require("../model.js");if(require("../../../common/libraries/request.js"),require("../../../common/store/useWeAppAuthStore.js"),require("../../../gen/Apis.js"),require("../../../common/store/useWorkStore.js"),require("../../../common/libraries/apiLoading.js"),require("../../../common/libraries/day.js"),!Array){e.resolveComponent("uni-icons")()}Math;const n=e.defineComponent({__name:"ShowData",setup(n){const t=e.ref(!1),i=["【王三平】8栋1101,已支付10月物业费,987元","【酆志明】7栋1101,已支付10月物业费,123.81元","【滕志勇】8栋2101,已支付10月物业费,378元","【康春芳】7栋1101,已支付10月物业费,322元","【康春芳】5栋0301,已支付10月物业费,322元","【沈妹】5栋1001,已支付10月停车月卡费,600元","【袁小丽】5栋1201,已支付10月物业费,222.21元","【雷海龙】1栋1102,已支付10月物业费,762元","【黄雪松】2栋1202,已支付10月停车月卡费,600元","【孟丽华】1栋0903,已支付10月物业费,882元"],s=o=>{var n;e.index.navigateTo({url:(null==(n=r.getUser)?void 0:n.getLoginStatus())?o||"":"/pages/login"})};return e.onShow((async()=>{var o,n;await(null==(o=e.getCurrentInstance())?void 0:o.appContext.config.globalProperties.$onLaunched),t.value=null==(n=r.getUser)?void 0:n.getLoginStatus()})),(r,n)=>{var a,u;return{a:e.t(t.value?(null==(a=e.unref(o.useModel).userData.value)?void 0:a.arrearage_house_num)||"0":"-"),b:e.o((e=>s("/BILL/outstanding_fee/index/index"))),c:e.t(t.value?(null==(u=e.unref(o.useModel).userData.value)?void 0:u.work_order_num)||"0":"-"),d:e.o((e=>s("/WORKORDER/list/index"))),e:e.p({type:"notification",color:"#0082FA",size:"18"}),f:e.f(i,((r,o,n)=>({a:e.t(r),b:`items_${o}`})))}}}}),t=e._export_sfc(n,[["__scopeId","data-v-bceac857"]]);wx.createComponent(t); +"use strict";const e=require("../../../common/vendor.js"),r=require("../../../common/libraries/userUserLogin.js"),o=require("../model.js");if(require("../../../common/libraries/request.js"),require("../../../common/store/useWeAppAuthStore.js"),require("../../../gen/Apis.js"),require("../../../common/store/useWatermarkStore.js"),require("../../../common/store/useWorkStore.js"),require("../../../common/libraries/apiLoading.js"),!Array){e.resolveComponent("uni-icons")()}Math;const n=e.defineComponent({__name:"ShowData",setup(n){const t=e.ref(!1),s=["【王三平】8栋1101,已支付10月物业费,987元","【酆志明】7栋1101,已支付10月物业费,123.81元","【滕志勇】8栋2101,已支付10月物业费,378元","【康春芳】7栋1101,已支付10月物业费,322元","【康春芳】5栋0301,已支付10月物业费,322元","【沈妹】5栋1001,已支付10月停车月卡费,600元","【袁小丽】5栋1201,已支付10月物业费,222.21元","【雷海龙】1栋1102,已支付10月物业费,762元","【黄雪松】2栋1202,已支付10月停车月卡费,600元","【孟丽华】1栋0903,已支付10月物业费,882元"],i=o=>{var n;e.index.navigateTo({url:(null==(n=r.getUser)?void 0:n.getLoginStatus())?o||"":"/pages/login"})};return e.onShow((async()=>{var o,n;await(null==(o=e.getCurrentInstance())?void 0:o.appContext.config.globalProperties.$onLaunched),t.value=null==(n=r.getUser)?void 0:n.getLoginStatus()})),(r,n)=>{var a,u;return{a:e.t(t.value?(null==(a=e.unref(o.useModel).userData.value)?void 0:a.arrearage_house_num)||"0":"-"),b:e.o((e=>i("/BILL/outstanding_fee/index/index"))),c:e.t(t.value?(null==(u=e.unref(o.useModel).userData.value)?void 0:u.work_order_num)||"0":"-"),d:e.o((e=>i("/WORKORDER/list/index"))),e:e.p({type:"notification",color:"#0082FA",size:"18"}),f:e.f(s,((r,o,n)=>({a:e.t(r),b:`items_${o}`})))}}}}),t=e._export_sfc(n,[["__scopeId","data-v-dbe49e0c"]]);wx.createComponent(t); diff --git a/dist/build/mp-weixin/pages/index/components/ShowData.wxml b/dist/build/mp-weixin/pages/index/components/ShowData.wxml index a309235..a886830 100644 --- a/dist/build/mp-weixin/pages/index/components/ShowData.wxml +++ b/dist/build/mp-weixin/pages/index/components/ShowData.wxml @@ -1 +1 @@ -{{a}}欠费房屋{{c}}工单任务-托收任务-推送任务{{i.a}} \ No newline at end of file +{{a}}欠费房屋{{c}}工单任务-托收任务-推送任务{{i.a}} \ No newline at end of file diff --git a/dist/build/mp-weixin/pages/index/components/ShowData.wxss b/dist/build/mp-weixin/pages/index/components/ShowData.wxss index 8a45638..cf328cd 100644 --- a/dist/build/mp-weixin/pages/index/components/ShowData.wxss +++ b/dist/build/mp-weixin/pages/index/components/ShowData.wxss @@ -1 +1 @@ -.show_data_content.data-v-bceac857{background-color:#fff;margin:30rpx;border-radius:15rpx}.show_data_card.data-v-bceac857{display:flex;align-items:center;padding:40rpx 0 30rpx;text-align:center}.show_data_card .items.data-v-bceac857{flex:1}.show_data_card .numbers.data-v-bceac857{font-size:36rpx;font-weight:550}.show_data_card .label.data-v-bceac857{font-size:24rpx;color:#666}.notice_bar.data-v-bceac857{border-top:1rpx solid #eee;height:80rpx;line-height:80rpx;color:#333;font-size:24rpx;padding:0 30rpx;display:flex}.notice_bar .notice_content.data-v-bceac857{flex:1;padding-left:5rpx}.notice_bar swiper.data-v-bceac857{height:80rpx} +.show_data_content.data-v-dbe49e0c{background-color:#fff;margin:30rpx 30rpx 0;border-radius:15rpx}.show_data_card.data-v-dbe49e0c{display:flex;align-items:center;padding:40rpx 0 30rpx;text-align:center}.show_data_card .items.data-v-dbe49e0c{flex:1}.show_data_card .numbers.data-v-dbe49e0c{font-size:36rpx;font-weight:550}.show_data_card .label.data-v-dbe49e0c{font-size:24rpx;color:#666}.notice_bar.data-v-dbe49e0c{border-top:1rpx solid #eee;height:80rpx;line-height:80rpx;color:#333;font-size:24rpx;padding:0 30rpx;display:flex}.notice_bar .notice_content.data-v-dbe49e0c{flex:1;padding-left:5rpx}.notice_bar swiper.data-v-dbe49e0c{height:80rpx} diff --git a/dist/build/mp-weixin/pages/index/components/TemplateMomentTask.js b/dist/build/mp-weixin/pages/index/components/TemplateMomentTask.js index 517e31d..31af8fb 100644 --- a/dist/build/mp-weixin/pages/index/components/TemplateMomentTask.js +++ b/dist/build/mp-weixin/pages/index/components/TemplateMomentTask.js @@ -1 +1 @@ -"use strict";const e=require("../../../common/vendor.js"),n=require("../../../gen/Enums.js");require("../../../common/libraries/request.js");const o=require("../../../common/store/useWeAppAuthStore.js");require("../../../common/store/useWorkStore.js");const t=require("../../../common/libraries/sendWxWork.js");require("../../../common/libraries/day.js");const l=require("../../../common/libraries/naviHelper.js");if(require("../../../gen/Apis.js"),require("../../../common/libraries/apiLoading.js"),!Array){(e.resolveComponent("hs-enum-tag")+e.resolveComponent("hs-button")+e.resolveComponent("hs-popup"))()}Math||((()=>"../../../components/hs-enum-tag/hs-enum-tag.js")+(()=>"../../../components/hs-button/hs-button.js")+(()=>"../../../components/hs-popup/hs-popup.js"))();const u=e.defineComponent({__name:"TemplateMomentTask",props:["item"],setup(u){const i=u,a=e.ref(!1),s=o.useWeAppAuthStore(),r=()=>{var e,n,o,u,a,r;if("wxwork"===(null==(e=null==s?void 0:s.data)?void 0:e.environment)){let e=[];"Image"===(null==(o=null==(n=null==i?void 0:i.item)?void 0:n.data)?void 0:o.content_type)&&(null==(r=null==(a=null==(u=null==i?void 0:i.item)?void 0:u.data)?void 0:a.attachments)||r.forEach((n=>{null==e||e.push({imgUrl:null==n?void 0:n.url})}))),console.log(e,"attachments"),setTimeout((()=>{var n,o;t.shareToExternalMoments({content:null==(o=null==(n=null==i?void 0:i.item)?void 0:n.data)?void 0:o.content,attachments:[{msgtype:"image",image:e}]})}),500)}else l.showToastBack("请在企业微信中操作!")},m=()=>{a.value=!0},d=()=>{a.value=!1};return(o,t)=>{var l,u,v,p,c,h,b,g,_,j,f,q,y,C,E,k,A,T,W,w,x,M,I,S;return e.e({a:e.p({value:null==(l=null==i?void 0:i.item)?void 0:l.status,Enums:e.unref(n.HouseWorkOrdersStatusEnum)}),b:e.n(`btn_status status_${null==(u=null==i?void 0:i.item)?void 0:u.status}`),c:e.p({value:null==(p=null==(v=null==i?void 0:i.item)?void 0:v.data)?void 0:p.content_type,Enums:e.unref(n.CustomerMomentsContentTypeEnum)}),d:e.p({value:null==(h=null==(c=null==i?void 0:i.item)?void 0:c.data)?void 0:h.channel,Enums:e.unref(n.CustomerMomentsChannelEnum)}),e:e.t(null==(g=null==(b=null==i?void 0:i.item)?void 0:b.data)?void 0:g.task_end_time),f:e.t(null==(_=null==i?void 0:i.item)?void 0:_.created_at),g:e.o(m),h:e.p({type:"primary",size:"sm",label:"去完成"}),i:null==(y=null==(q=null==(f=null==(j=e.unref(s))?void 0:j.data)?void 0:f.user)?void 0:q.avatar[0])?void 0:y.url,j:e.t((null==(k=null==(E=null==(C=e.unref(s))?void 0:C.data)?void 0:E.user)?void 0:k.name)||"员工名称"),k:e.t(null==(T=null==(A=null==i?void 0:i.item)?void 0:A.data)?void 0:T.title),l:"Image"===(null==(w=null==(W=null==i?void 0:i.item)?void 0:W.data)?void 0:w.content_type)},"Image"===(null==(M=null==(x=null==i?void 0:i.item)?void 0:x.data)?void 0:M.content_type)?{m:e.f(null==(S=null==(I=null==i?void 0:i.item)?void 0:I.data)?void 0:S.attachments,((e,n,o)=>({a:`img_${n}`,b:e.url})))}:{},{n:e.o(r),o:e.p({type:"primary",size:"md",label:"发送客户朋友圈"}),p:e.o(d),q:e.p({show:a.value,mode:"bottom",closeable:!0,round:20})})}}}),i=e._export_sfc(u,[["__scopeId","data-v-be19063a"]]);wx.createComponent(i); +"use strict";const n=require("../../../common/vendor.js"),e=require("../../../gen/Enums.js");if(!Array){(n.resolveComponent("hs-enum-tag")+n.resolveComponent("hs-button"))()}Math||((()=>"../../../components/hs-enum-tag/hs-enum-tag.js")+(()=>"../../../components/hs-button/hs-button.js"))();const t=n.defineComponent({__name:"TemplateMomentTask",props:["item"],setup(t){const o=t,l=()=>{var e,t,l,u;n.index.navigateTo({url:`/ME/push_show/index?id=${null==(e=null==o?void 0:o.item)?void 0:e.id}&data_id=${null==(l=null==(t=null==o?void 0:o.item)?void 0:t.data)?void 0:l.id}&model_id=${null==(u=null==o?void 0:o.item)?void 0:u.model_id}`})};return(t,u)=>{var i,s,d,a,m,v,r,p,_;return{a:n.p({value:null==(i=null==o?void 0:o.item)?void 0:i.status,Enums:n.unref(e.HouseWorkOrdersStatusEnum)}),b:n.n(`btn_status status_${null==(s=null==o?void 0:o.item)?void 0:s.status}`),c:n.p({value:null==(a=null==(d=null==o?void 0:o.item)?void 0:d.data)?void 0:a.content_type,Enums:n.unref(e.CustomerMomentsContentTypeEnum)}),d:n.p({value:null==(v=null==(m=null==o?void 0:o.item)?void 0:m.data)?void 0:v.channel,Enums:n.unref(e.CustomerMomentsChannelEnum)}),e:n.t(null==(p=null==(r=null==o?void 0:o.item)?void 0:r.data)?void 0:p.task_end_time),f:n.t(null==(_=null==o?void 0:o.item)?void 0:_.created_at),g:n.o(l),h:n.p({type:"primary",size:"sm",label:"去完成"})}}}}),o=n._export_sfc(t,[["__scopeId","data-v-e8df8784"]]);wx.createComponent(o); diff --git a/dist/build/mp-weixin/pages/index/components/TemplateMomentTask.json b/dist/build/mp-weixin/pages/index/components/TemplateMomentTask.json index d097496..44425f3 100644 --- a/dist/build/mp-weixin/pages/index/components/TemplateMomentTask.json +++ b/dist/build/mp-weixin/pages/index/components/TemplateMomentTask.json @@ -2,7 +2,6 @@ "component": true, "usingComponents": { "hs-enum-tag": "../../../components/hs-enum-tag/hs-enum-tag", - "hs-button": "../../../components/hs-button/hs-button", - "hs-popup": "../../../components/hs-popup/hs-popup" + "hs-button": "../../../components/hs-button/hs-button" } } \ No newline at end of file diff --git a/dist/build/mp-weixin/pages/index/components/TemplateMomentTask.wxml b/dist/build/mp-weixin/pages/index/components/TemplateMomentTask.wxml index 11dd02e..0f7ea67 100644 --- a/dist/build/mp-weixin/pages/index/components/TemplateMomentTask.wxml +++ b/dist/build/mp-weixin/pages/index/components/TemplateMomentTask.wxml @@ -1 +1 @@ - 任务提醒 任务名称:【】+【 任务截止:{{e}} 创建时间:{{f}} 任务预览 {{j}}{{k}} \ No newline at end of file + 任务提醒 任务内容: 执行方式: 任务截止:{{e}} 创建时间:{{f}} \ No newline at end of file diff --git a/dist/build/mp-weixin/pages/index/components/TemplateMomentTask.wxss b/dist/build/mp-weixin/pages/index/components/TemplateMomentTask.wxss index 564ac65..7c132c4 100644 --- a/dist/build/mp-weixin/pages/index/components/TemplateMomentTask.wxss +++ b/dist/build/mp-weixin/pages/index/components/TemplateMomentTask.wxss @@ -1 +1 @@ -.todo_done_card.data-v-be19063a{background-color:#fff;border-radius:20rpx;padding:0 30rpx 30rpx;margin-top:30rpx}.todo_done_card_title.data-v-be19063a{color:#333;font-size:28rpx;font-weight:600;padding-top:30rpx;display:flex;justify-content:space-between}.todo_done_card .moment_task_content.data-v-be19063a{font-size:28rpx;color:#333;border-bottom:1rpx solid #eee;padding-top:10rpx}.todo_done_card .moment_task_cell.data-v-be19063a{display:flex;align-items:center;padding-bottom:20rpx}.todo_done_card .expected_time.data-v-be19063a{padding:20rpx 0 0;color:#333;font-size:25rpx;margin-top:10rpx;display:flex;justify-content:space-between;align-items:center}.todo_done_card .expected_time .btn_group.data-v-be19063a{width:200rpx}.popup_content.data-v-be19063a{min-height:500rpx}.popup_content .popup_title.data-v-be19063a{line-height:100rpx;text-align:center}.popup_content .popup_body.data-v-be19063a{padding:30rpx 0}.popup_content .popup_body_header.data-v-be19063a{display:flex;align-items:center;padding:0 30rpx}.popup_content .popup_body .avatar.data-v-be19063a{width:100rpx;height:100rpx;background-color:#f8f8f8}.popup_content .popup_body .avatar image.data-v-be19063a{width:100rpx;height:100rpx;border-radius:12rpx}.popup_content .popup_body .employee_info.data-v-be19063a{flex:1;padding-left:20rpx;color:#3d3d3d;font-size:28rpx}.popup_content .popup_body .employee_info .des.data-v-be19063a{padding-top:10rpx}.popup_content .popup_body .image_content.data-v-be19063a{display:flex;align-items:center;flex-wrap:wrap;padding:10rpx 0 30rpx}.popup_content .popup_body .image_content image.data-v-be19063a{width:160rpx;height:160rpx;margin-left:30rpx;margin-top:30rpx}.popup_content .popup_footer.data-v-be19063a{padding:0 30rpx 40rpx} +.todo_done_card.data-v-e8df8784{background-color:#fff;border-radius:20rpx;padding:0 30rpx 30rpx;margin-top:30rpx}.todo_done_card_title.data-v-e8df8784{color:#333;font-size:28rpx;font-weight:600;padding-top:30rpx;display:flex;justify-content:space-between}.todo_done_card .moment_task_content.data-v-e8df8784{font-size:28rpx;color:#333;border-bottom:1rpx solid #eee;padding-top:10rpx}.todo_done_card .moment_task_cell.data-v-e8df8784{display:flex;align-items:center;padding-bottom:20rpx}.todo_done_card .expected_time.data-v-e8df8784{padding:20rpx 0 0;color:#333;font-size:25rpx;margin-top:10rpx;display:flex;justify-content:space-between;align-items:center}.todo_done_card .expected_time .btn_group.data-v-e8df8784{width:200rpx}.popup_content.data-v-e8df8784{min-height:500rpx}.popup_content .popup_title.data-v-e8df8784{line-height:100rpx;text-align:center}.popup_content .popup_body.data-v-e8df8784{padding:30rpx 0}.popup_content .popup_body_header.data-v-e8df8784{display:flex;align-items:center;padding:0 30rpx}.popup_content .popup_body .avatar.data-v-e8df8784{width:100rpx;height:100rpx;background-color:#f8f8f8}.popup_content .popup_body .avatar image.data-v-e8df8784{width:100rpx;height:100rpx;border-radius:12rpx}.popup_content .popup_body .employee_info.data-v-e8df8784{flex:1;padding-left:20rpx;color:#3d3d3d;font-size:28rpx}.popup_content .popup_body .employee_info .des.data-v-e8df8784{padding-top:10rpx}.popup_content .popup_body .image_content.data-v-e8df8784{display:flex;align-items:center;flex-wrap:wrap;padding:10rpx 0 30rpx}.popup_content .popup_body .image_content image.data-v-e8df8784{width:160rpx;height:160rpx;margin-left:30rpx;margin-top:30rpx}.popup_content .popup_body .Link_content.data-v-e8df8784{background-color:#f8f8f8;display:flex;align-items:center;padding:20rpx;margin:40rpx 30rpx 30rpx}.popup_content .popup_body .Link_content .cover.data-v-e8df8784{width:100rpx;height:100rpx}.popup_content .popup_body .Link_content .cover image.data-v-e8df8784{width:100rpx;height:100rpx}.popup_content .popup_body .Link_content .content.data-v-e8df8784{flex:1;padding:0 30rpx;font-size:28rpx;color:#333}.popup_content .popup_body .video_content.data-v-e8df8784{padding:50rpx 0 30rpx;display:flex;align-items:center;justify-content:center}.popup_content .popup_footer.data-v-e8df8784{padding:0 30rpx 40rpx} diff --git a/dist/build/mp-weixin/pages/index/components/TemplateWorkorder.js b/dist/build/mp-weixin/pages/index/components/TemplateWorkorder.js index 3a6a9c7..7525eef 100644 --- a/dist/build/mp-weixin/pages/index/components/TemplateWorkorder.js +++ b/dist/build/mp-weixin/pages/index/components/TemplateWorkorder.js @@ -1 +1 @@ -"use strict";const l=require("../../../common/vendor.js"),e=require("../../../gen/Enums.js"),o=require("../../../common/libraries/day.js");if(!Array){(l.resolveComponent("hs-enum-tag")+l.resolveComponent("hs-level")+l.resolveComponent("up-icon"))()}Math||((()=>"../../../components/hs-enum-tag/hs-enum-tag.js")+(()=>"../../../components/hs-level/hs-level.js")+(()=>"../../../node-modules/uview-plus/components/u-icon/u-icon.js"))();const n=l.defineComponent({__name:"TemplateWorkorder",props:["item"],setup(n){const i=n;return(n,u)=>{var d,t,v,m,s,r,a,c,p,_,y,f,g,h,k,E,x,T,j,O,W,C,H,M,S,b,$,q,w,P,R,z,A,B,D,I,K,F,G,J,L,N,Q,U;return l.e({a:l.p({value:null==(d=null==i?void 0:i.item)?void 0:d.type,Enums:l.unref(e.CompanyEmployeeBacklogsTypeEnum)}),b:l.p({value:null==(v=null==(t=null==i?void 0:i.item)?void 0:t.model)?void 0:v.type,Enums:l.unref(e.HouseWorkOrdersTypeEnum)}),c:l.p({level:null==(s=null==(m=null==i?void 0:i.item)?void 0:m.model)?void 0:s.level}),d:l.p({value:null==(a=null==(r=null==i?void 0:i.item)?void 0:r.model)?void 0:a.status,Enums:l.unref(e.HouseWorkOrdersStatusEnum)}),e:l.n(`btn_status status_${null==(p=null==(c=null==i?void 0:i.item)?void 0:c.model)?void 0:p.status}`),f:"MyHome"===(null==(y=null==(_=null==i?void 0:i.item)?void 0:_.model)?void 0:y.location)},"MyHome"===(null==(g=null==(f=null==i?void 0:i.item)?void 0:f.model)?void 0:g.location)?{g:l.t(null==(E=null==(k=null==(h=null==i?void 0:i.item)?void 0:h.model)?void 0:k.asset_house)?void 0:E.full_name)}:{},{h:l.t(null==(T=null==(x=null==i?void 0:i.item)?void 0:x.model)?void 0:T.content),i:"WorkOrder"===(null==(j=null==i?void 0:i.item)?void 0:j.type)&&"Pending"===(null==(W=null==(O=null==i?void 0:i.item)?void 0:O.model)?void 0:W.status)&&"MyHome"===(null==(H=null==(C=null==i?void 0:i.item)?void 0:C.model)?void 0:H.location)},"WorkOrder"===(null==(M=null==i?void 0:i.item)?void 0:M.type)&&"Pending"===(null==(b=null==(S=null==i?void 0:i.item)?void 0:S.model)?void 0:b.status)&&"MyHome"===(null==(q=null==($=null==i?void 0:i.item)?void 0:$.model)?void 0:q.location)?{j:l.p({name:"clock",color:(null==(R=l.unref(o.getTimeStatus)(null==(P=null==(w=null==i?void 0:i.item)?void 0:w.model)?void 0:P.expect_end_time))?void 0:R.color)||"#000",size:"14"}),k:l.t(null==(B=l.unref(o.getTimeStatus)(null==(A=null==(z=null==i?void 0:i.item)?void 0:z.model)?void 0:A.expect_end_time))?void 0:B.label),l:l.n(`todo_done_card_footer status_${null==(K=l.unref(o.getTimeStatus)(null==(I=null==(D=null==i?void 0:i.item)?void 0:D.model)?void 0:I.expect_end_time))?void 0:K.status}`)}:{},{m:l.t(null==(F=null==i?void 0:i.item)?void 0:F.created_at),n:l.o((e=>(()=>{var e;l.index.navigateTo({url:`/WORKORDER/show/index?id=${null==(e=null==i?void 0:i.item)?void 0:e.model_id}`})})())),o:l.n("todo_done_card "+("WorkOrder"===(null==(G=null==i?void 0:i.item)?void 0:G.type)&&"Pending"===(null==(L=null==(J=null==i?void 0:i.item)?void 0:J.model)?void 0:L.status)?`card_status_${null==(U=l.unref(o.getTimeStatus)(null==(Q=null==(N=null==i?void 0:i.item)?void 0:N.model)?void 0:Q.expect_end_time))?void 0:U.status}`:""))})}}}),i=l._export_sfc(n,[["__scopeId","data-v-e085168f"]]);wx.createComponent(i); +"use strict";const l=require("../../../common/vendor.js"),e=require("../../../common/libraries/day.js"),o=require("../../../gen/Enums.js");if(!Array){(l.resolveComponent("hs-enum-tag")+l.resolveComponent("hs-level")+l.resolveComponent("up-icon"))()}Math||((()=>"../../../components/hs-enum-tag/hs-enum-tag.js")+(()=>"../../../components/hs-level/hs-level.js")+(()=>"../../../node-modules/uview-plus/components/u-icon/u-icon.js"))();const n=l.defineComponent({__name:"TemplateWorkorder",props:["item"],setup(n){const i=n;return(n,d)=>{var u,t,v,m,s,r,a,p,c,_,y,g,f,h,k,E,x,T,j,O,W,C,H,M,S,b,q,$,w,P,R,z,A,B,D,I,K,F,G,J,L,N,Q,U,V,X,Y,Z,ll,el;return l.e({a:l.p({value:null==(u=null==i?void 0:i.item)?void 0:u.type,Enums:l.unref(o.CompanyEmployeeBacklogsTypeEnum)}),b:null==(v=null==(t=null==i?void 0:i.item)?void 0:t.model)?void 0:v.type},(null==(s=null==(m=null==i?void 0:i.item)?void 0:m.model)?void 0:s.type)?{c:l.p({value:null==(a=null==(r=null==i?void 0:i.item)?void 0:r.model)?void 0:a.type,Enums:l.unref(o.HouseWorkOrdersTypeEnum)})}:{},{d:null==(c=null==(p=null==i?void 0:i.item)?void 0:p.model)?void 0:c.level},(null==(y=null==(_=null==i?void 0:i.item)?void 0:_.model)?void 0:y.level)?{e:l.p({level:null==(f=null==(g=null==i?void 0:i.item)?void 0:g.model)?void 0:f.level})}:{},{f:l.p({value:null==(h=null==i?void 0:i.item)?void 0:h.status,Enums:l.unref(o.HouseWorkOrdersStatusEnum)}),g:l.n(`btn_status status_${null==(k=null==i?void 0:i.item)?void 0:k.status}`),h:"MyHome"===(null==(x=null==(E=null==i?void 0:i.item)?void 0:E.model)?void 0:x.location)},"MyHome"===(null==(j=null==(T=null==i?void 0:i.item)?void 0:T.model)?void 0:j.location)?{i:l.t(null==(C=null==(W=null==(O=null==i?void 0:i.item)?void 0:O.model)?void 0:W.asset_house)?void 0:C.full_name)}:{},{j:l.t(null==(M=null==(H=null==i?void 0:i.item)?void 0:H.model)?void 0:M.content),k:"WorkOrder"===(null==(S=null==i?void 0:i.item)?void 0:S.type)&&"Pending"===(null==(q=null==(b=null==i?void 0:i.item)?void 0:b.model)?void 0:q.status)&&"MyHome"===(null==(w=null==($=null==i?void 0:i.item)?void 0:$.model)?void 0:w.location)},"WorkOrder"===(null==(P=null==i?void 0:i.item)?void 0:P.type)&&"Pending"===(null==(z=null==(R=null==i?void 0:i.item)?void 0:R.model)?void 0:z.status)&&"MyHome"===(null==(B=null==(A=null==i?void 0:i.item)?void 0:A.model)?void 0:B.location)?{l:l.p({name:"clock",color:(null==(K=l.unref(e.getTimeStatus)(null==(I=null==(D=null==i?void 0:i.item)?void 0:D.model)?void 0:I.expect_end_time))?void 0:K.color)||"#000",size:"14"}),m:l.t(null==(J=l.unref(e.getTimeStatus)(null==(G=null==(F=null==i?void 0:i.item)?void 0:F.model)?void 0:G.expect_end_time))?void 0:J.label),n:l.n(`todo_done_card_footer status_${null==(Q=l.unref(e.getTimeStatus)(null==(N=null==(L=null==i?void 0:i.item)?void 0:L.model)?void 0:N.expect_end_time))?void 0:Q.status}`)}:{},{o:l.t(null==(U=null==i?void 0:i.item)?void 0:U.created_at),p:l.o((e=>(()=>{var e;l.index.navigateTo({url:`/WORKORDER/show/index?id=${null==(e=null==i?void 0:i.item)?void 0:e.model_id}`})})())),q:l.n("todo_done_card "+("WorkOrder"===(null==(V=null==i?void 0:i.item)?void 0:V.type)&&"Pending"===(null==(Y=null==(X=null==i?void 0:i.item)?void 0:X.model)?void 0:Y.status)?`card_status_${null==(el=l.unref(e.getTimeStatus)(null==(ll=null==(Z=null==i?void 0:i.item)?void 0:Z.model)?void 0:ll.expect_end_time))?void 0:el.status}`:""))})}}}),i=l._export_sfc(n,[["__scopeId","data-v-289d39de"]]);wx.createComponent(i); diff --git a/dist/build/mp-weixin/pages/index/components/TemplateWorkorder.wxml b/dist/build/mp-weixin/pages/index/components/TemplateWorkorder.wxml index 9e4a33f..f573945 100644 --- a/dist/build/mp-weixin/pages/index/components/TemplateWorkorder.wxml +++ b/dist/build/mp-weixin/pages/index/components/TemplateWorkorder.wxml @@ -1 +1 @@ -{{g}} {{h}}{{k}}提报时间:{{m}} \ No newline at end of file +{{i}} {{j}}{{m}}提报时间:{{o}} \ No newline at end of file diff --git a/dist/build/mp-weixin/pages/index/components/TemplateWorkorder.wxss b/dist/build/mp-weixin/pages/index/components/TemplateWorkorder.wxss index 9d8b7c8..3f001be 100644 --- a/dist/build/mp-weixin/pages/index/components/TemplateWorkorder.wxss +++ b/dist/build/mp-weixin/pages/index/components/TemplateWorkorder.wxss @@ -1 +1 @@ -.todo_done_card.data-v-e085168f{background-color:#fff;border-radius:20rpx;padding:0 30rpx 30rpx;margin-top:30rpx}.todo_done_card .todo_done_card_header.data-v-e085168f{display:flex;align-items:center;justify-content:space-between;padding:30rpx 0 25rpx}.todo_done_card .todo_done_card_header .group_type_btn.data-v-e085168f{display:flex;align-items:center}.todo_done_card .todo_done_card_header .type_btn.data-v-e085168f{border-radius:100rpx;border:1px solid #eee;color:#3d3d3d;font-size:24rpx;padding:8rpx 20rpx;margin-right:16rpx}.todo_done_card .todo_done_card_houses_title.data-v-e085168f{display:flex;align-items:center;font-size:28rpx;font-weight:500;padding:10rpx 0}.todo_done_card .todo_done_card_houses_title .item.data-v-e085168f{height:30rpx;line-height:30rpx}.todo_done_card .todo_done_card_houses_title .item.data-v-e085168f:last-child{padding-left:20rpx;margin-left:20rpx;border-left:1rpx solid #eee}.todo_done_card .todo_done_card_content.data-v-e085168f{color:#444;font-size:28rpx;padding:5rpx 0 25rpx;border-bottom:1rpx solid #eee}.todo_done_card .todo_done_card_footer.data-v-e085168f{color:#666;font-size:28rpx;padding:12rpx 20rpx;border-radius:10rpx;color:#24bc21;background:linear-gradient(90deg,#edffed 0%,rgba(232,255,231,0) 103%);display:flex;align-items:center;margin:25rpx 0 0}.todo_done_card .status_1.data-v-e085168f{color:#24bc21;background:linear-gradient(90deg,#edffed 0%,rgba(232,255,231,0) 103%)}.todo_done_card .status_2.data-v-e085168f{color:#0082fa;background:linear-gradient(90deg,#eff7ff 0%,rgba(231,241,255,0) 103%)}.todo_done_card .status_3.data-v-e085168f{color:#f97316;background:linear-gradient(90deg,#fff4ef 0%,rgba(255,237,231,0) 103%)}.todo_done_card .status_4.data-v-e085168f{color:#ea0000;background:linear-gradient(90deg,#ffe5e5 0%,rgba(255,255,255,0) 103%)}.todo_done_card .expected_time.data-v-e085168f{padding:20rpx 0 0;color:#333;font-size:25rpx}.card_status_4.data-v-e085168f{border-top:6px solid #ef4444} +.todo_done_card.data-v-289d39de{background-color:#fff;border-radius:20rpx;padding:0 30rpx 30rpx;margin-top:30rpx}.todo_done_card .todo_done_card_header.data-v-289d39de{display:flex;align-items:center;justify-content:space-between;padding:30rpx 0 25rpx}.todo_done_card .todo_done_card_header .group_type_btn.data-v-289d39de{display:flex;align-items:center}.todo_done_card .todo_done_card_header .type_btn.data-v-289d39de{border-radius:100rpx;border:1px solid #eee;color:#3d3d3d;font-size:24rpx;padding:8rpx 20rpx;margin-right:16rpx}.todo_done_card .todo_done_card_houses_title.data-v-289d39de{display:flex;align-items:center;font-size:28rpx;font-weight:500;padding:10rpx 0}.todo_done_card .todo_done_card_houses_title .item.data-v-289d39de{height:30rpx;line-height:30rpx}.todo_done_card .todo_done_card_houses_title .item.data-v-289d39de:last-child{padding-left:20rpx;margin-left:20rpx;border-left:1rpx solid #eee}.todo_done_card .todo_done_card_content.data-v-289d39de{color:#444;font-size:28rpx;padding:5rpx 0 25rpx;border-bottom:1rpx solid #eee}.todo_done_card .todo_done_card_footer.data-v-289d39de{color:#666;font-size:28rpx;padding:12rpx 20rpx;border-radius:10rpx;color:#24bc21;background:linear-gradient(90deg,#edffed 0%,rgba(232,255,231,0) 103%);display:flex;align-items:center;margin:25rpx 0 0}.todo_done_card .status_1.data-v-289d39de{color:#24bc21;background:linear-gradient(90deg,#edffed 0%,rgba(232,255,231,0) 103%)}.todo_done_card .status_2.data-v-289d39de{color:#0082fa;background:linear-gradient(90deg,#eff7ff 0%,rgba(231,241,255,0) 103%)}.todo_done_card .status_3.data-v-289d39de{color:#f97316;background:linear-gradient(90deg,#fff4ef 0%,rgba(255,237,231,0) 103%)}.todo_done_card .status_4.data-v-289d39de{color:#ea0000;background:linear-gradient(90deg,#ffe5e5 0%,rgba(255,255,255,0) 103%)}.todo_done_card .expected_time.data-v-289d39de{padding:20rpx 0 0;color:#333;font-size:25rpx}.card_status_4.data-v-289d39de{border-top:6px solid #ef4444} diff --git a/dist/build/mp-weixin/pages/index/components/ToDeDone.js b/dist/build/mp-weixin/pages/index/components/ToDeDone.js index 360318c..f7fba72 100644 --- a/dist/build/mp-weixin/pages/index/components/ToDeDone.js +++ b/dist/build/mp-weixin/pages/index/components/ToDeDone.js @@ -1 +1 @@ -"use strict";const e=require("../../../common/vendor.js"),l=require("../model.js");require("../../../common/libraries/day.js"),Math||(o+n)();const o=()=>"./TemplateWorkorder.js",n=()=>"./TemplateMomentTask.js",t=e.defineComponent({__name:"ToDeDone",setup:o=>(o,n)=>{var t,u,i,a,d,r,s,v,m,f,p;return e.e({a:null==(i=null==(u=null==(t=e.unref(l.useModel))?void 0:t.listData)?void 0:u.value)?void 0:i.length},(null==(r=null==(d=null==(a=e.unref(l.useModel))?void 0:a.listData)?void 0:d.value)?void 0:r.length)?{b:e.t(null==(m=null==(v=null==(s=e.unref(l.useModel))?void 0:s.listData)?void 0:v.value)?void 0:m.length)}:{},{c:e.f(null==(p=null==(f=e.unref(l.useModel))?void 0:f.listData)?void 0:p.value,((l,o,n)=>e.e({a:"WorkOrder"===(null==l?void 0:l.type)},"WorkOrder"===(null==l?void 0:l.type)?{b:"11f7fa20-0-"+n,c:e.p({item:l})}:{},{d:"MomentTask"===(null==l?void 0:l.type)},"MomentTask"===(null==l?void 0:l.type)?{e:"11f7fa20-1-"+n,f:e.p({item:l})}:{},{g:`items_${o}`})))})}});wx.createComponent(t); +"use strict";const e=require("../../../common/vendor.js"),l=require("../model.js");Math||(o+n)();const o=()=>"./TemplateWorkorder.js",n=()=>"./TemplateMomentTask.js",t=e.defineComponent({__name:"ToDeDone",setup:o=>(o,n)=>{var t,u,d,i,a,r,s,v,m,f,p;return e.e({a:null==(d=null==(u=null==(t=e.unref(l.useModel))?void 0:t.listData)?void 0:u.value)?void 0:d.length},(null==(r=null==(a=null==(i=e.unref(l.useModel))?void 0:i.listData)?void 0:a.value)?void 0:r.length)?{b:e.t(null==(m=null==(v=null==(s=e.unref(l.useModel))?void 0:s.listData)?void 0:v.value)?void 0:m.length)}:{},{c:e.f(null==(p=null==(f=e.unref(l.useModel))?void 0:f.listData)?void 0:p.value,((l,o,n)=>e.e({a:"WorkOrder"===(null==l?void 0:l.type)},"WorkOrder"===(null==l?void 0:l.type)?{b:"11f7fa20-0-"+n,c:e.p({item:l})}:{},{d:"MomentTask"===(null==l?void 0:l.type)},"MomentTask"===(null==l?void 0:l.type)?{e:"11f7fa20-1-"+n,f:e.p({item:l})}:{},{g:`items_${o}`})))})}});wx.createComponent(t); diff --git a/dist/build/mp-weixin/pages/index/index.js b/dist/build/mp-weixin/pages/index/index.js index 635fca5..755ec5d 100644 --- a/dist/build/mp-weixin/pages/index/index.js +++ b/dist/build/mp-weixin/pages/index/index.js @@ -1 +1 @@ -"use strict";const e=require("../../common/vendor.js"),o=require("../../common/libraries/setTabBar.js"),r=require("./model.js"),n=require("./method.js"),s=require("../../common/libraries/userUserLogin.js");if(require("../../common/libraries/updateMenu.js"),require("../../common/libraries/day.js"),require("../../common/libraries/apiLoading.js"),require("../../gen/Apis.js"),require("../../common/libraries/request.js"),require("../../common/store/useWeAppAuthStore.js"),require("../../common/store/useWorkStore.js"),!Array){(e.resolveComponent("cc-scroll-loading")+e.resolveComponent("cc-root-view"))()}Math||(t+i+a+l+(()=>"../../common/components/cc-scroll-loading/cc-scroll-loading.js")+(()=>"../../common/components/cc-root-view/cc-root-view.js"))();const t=()=>"./components/HeaderTitle.js",a=()=>"./components/Classification.js",i=()=>"./components/ShowData.js",l=()=>"./components/ToDeDone.js",u=e.defineComponent({__name:"index",setup:t=>(e.onShow((async()=>{var t,a,i,l;o.setTabBarData(0),await(null==(t=e.getCurrentInstance())?void 0:t.appContext.config.globalProperties.$onLaunched),(null==(a=s.getUser)?void 0:a.getLoginStatus())?(r.useModel.listData.value=[],null==(i=n.method)||i.getCountGridHouse(),null==(l=n.method)||l.getCompanyEmployeeBacklogs()):(r.useModel.userData.value=void 0,r.useModel.listData.value=[],r.useModel.metaData.value={total:0})})),e.onShareAppMessage((()=>({title:"",path:"/pages/index/index"}))),e.onShareTimeline((()=>({title:"",path:"/pages/index/index"}))),(o,s)=>{var t,a,i;return{a:e.o(null==(t=e.unref(n.method))?void 0:t.loadMore),b:e.p({meta:null==(i=null==(a=e.unref(r.useModel))?void 0:a.metaData)?void 0:i.value})}})});u.__runtimeHooks=6,wx.createPage(u); +"use strict";const e=require("../../common/vendor.js"),o=require("../../common/libraries/userUserLogin.js"),n=require("./method.js"),t=require("./model.js");if(require("../../common/libraries/request.js"),require("../../common/store/useWeAppAuthStore.js"),require("../../gen/Apis.js"),require("../../common/store/useWatermarkStore.js"),require("../../common/store/useWorkStore.js"),require("../../common/libraries/apiLoading.js"),!Array){(e.resolveComponent("cc-scroll-loading")+e.resolveComponent("cc-root-view"))()}Math||(s+a+r+i+(()=>"../../common/components/cc-scroll-loading/cc-scroll-loading.js")+(()=>"../../common/components/cc-root-view/cc-root-view.js"))();const r=()=>"./components/Classification.js",s=()=>"./components/HeaderTitle.js",a=()=>"./components/ShowData.js",i=()=>"./components/ToDeDone.js",l=e.defineComponent({__name:"index",setup:r=>(e.onShow((async()=>{var r,s,a,i,l;await(null==(r=e.getCurrentInstance())?void 0:r.appContext.config.globalProperties.$onLaunched),(null==(s=o.getUser)?void 0:s.getLoginStatus())?(t.useModel.formData.value.page=1,t.useModel.listData.value=[],null==(a=n.method)||a.getCountGridHouse(),null==(i=n.method)||i.getCompanyEmployeeBacklogs(),null==(l=n.method)||l.getIndexCount()):(t.useModel.userData.value=void 0,t.useModel.listData.value=[],t.useModel.metaData.value={total:0})})),e.onShareAppMessage((()=>({title:"",path:"/pages/index/index"}))),e.onShareTimeline((()=>({title:"",path:"/pages/index/index"}))),(o,r)=>{var s,a,i;return{a:e.o(null==(s=e.unref(n.method))?void 0:s.loadMore),b:e.p({meta:null==(i=null==(a=e.unref(t.useModel))?void 0:a.metaData)?void 0:i.value})}})});l.__runtimeHooks=6,wx.createPage(l); diff --git a/dist/build/mp-weixin/pages/index/index.json b/dist/build/mp-weixin/pages/index/index.json index f5eaad8..bddde25 100644 --- a/dist/build/mp-weixin/pages/index/index.json +++ b/dist/build/mp-weixin/pages/index/index.json @@ -4,8 +4,8 @@ "usingComponents": { "cc-scroll-loading": "../../common/components/cc-scroll-loading/cc-scroll-loading", "cc-root-view": "../../common/components/cc-root-view/cc-root-view", - "my-header-title": "./components/HeaderTitle", "my-class-ification": "./components/Classification", + "my-header-title": "./components/HeaderTitle", "my-show-data": "./components/ShowData", "my-to-de-done": "./components/ToDeDone" } diff --git a/dist/build/mp-weixin/pages/index/index.wxss b/dist/build/mp-weixin/pages/index/index.wxss index c7b2de2..c06d4e5 100644 --- a/dist/build/mp-weixin/pages/index/index.wxss +++ b/dist/build/mp-weixin/pages/index/index.wxss @@ -1 +1 @@ -page{background-color:#f8f8f8}.index_content{background:linear-gradient(180deg,rgba(208,229,255,.44) 0%,rgba(255,255,255,0) 700rpx),linear-gradient(146deg,#d3d7ff 0%,rgba(255,255,255,0) 300rpx),linear-gradient(194deg,#dffff3 0%,#f7f7f7 700rpx);background-repeat:no-repeat}.btn_status{border-radius:100rpx;font-size:28rpx;padding:7rpx 19rpx;font-weight:500}.status_Pending{color:#f97316;background-color:#fff7ed}.status_Processing{color:#0082fa;background-color:#edf4ff}.status_Completed{color:#22c55e;background-color:#f0fdf4}.status_Closed{color:#909399;background-color:#f3f3f4} +page{background-color:#f8f8f8}.index_content{background:linear-gradient(180deg,rgba(208,229,255,.44) 0%,rgba(255,255,255,0) 500rpx),linear-gradient(146deg,#d3d7ff 0%,rgba(255,255,255,0) 100rpx),linear-gradient(194deg,#dffff3 0%,#f7f7f7 500rpx);background-repeat:no-repeat}.btn_status{border-radius:100rpx;font-size:28rpx;padding:7rpx 19rpx;font-weight:500}.status_Pending{color:#f97316;background-color:#fff7ed}.status_Processing{color:#0082fa;background-color:#edf4ff}.status_Completed{color:#22c55e;background-color:#f0fdf4}.status_Closed{color:#909399;background-color:#f3f3f4}.status_PendingPayment{color:#cf1322;background-color:#ffeded} diff --git a/dist/build/mp-weixin/pages/index/method.js b/dist/build/mp-weixin/pages/index/method.js index 9b6a6e8..ea24f81 100644 --- a/dist/build/mp-weixin/pages/index/method.js +++ b/dist/build/mp-weixin/pages/index/method.js @@ -1 +1 @@ -"use strict";const e=require("../../common/libraries/apiLoading.js"),o=require("../../gen/Apis.js"),a=require("./model.js");require("../../common/libraries/request.js");const l=require("../../common/store/useWeAppAuthStore.js");require("../../common/store/useWorkStore.js"),l.useWeAppAuthStore();const s=()=>{var l,s;e.getApiLoading(o.Apis.Company.CompanyEmployeeBacklogs.List,null==(s=null==(l=a.useModel)?void 0:l.formData)?void 0:s.value).then((e=>{var o,l;a.useModel.listData.value=[...null==(l=null==(o=a.useModel)?void 0:o.listData)?void 0:l.value,...null==e?void 0:e.data],a.useModel.metaData.value=null==e?void 0:e.meta,console.log(a.useModel.metaData.value,"useModel.metaData.value")}))},t={getCountGridHouse(){e.getApiLoading(o.Apis.Grid.Grids.CountGridHouse,{}).then((e=>{a.useModel.userData.value=e.data,console.log(e)}))},getCompanyEmployeeBacklogs:s,loadMore(e){a.useModel.formData.value.page=e,s()}};exports.method=t; +"use strict";require("../../common/libraries/request.js"),require("../../common/store/useWatermarkStore.js");const e=require("../../common/store/useWeAppAuthStore.js");require("../../common/store/useWorkStore.js");const o=require("../../common/libraries/apiLoading.js"),a=require("../../gen/Apis.js"),t=require("./model.js");e.useWeAppAuthStore();const u=()=>{var e,u;o.getApiLoading(a.Apis.Company.CompanyEmployeeBacklogs.List,null==(u=null==(e=t.useModel)?void 0:e.formData)?void 0:u.value).then((e=>{var o,a;t.useModel.listData.value=[...null==(a=null==(o=t.useModel)?void 0:o.listData)?void 0:a.value,...null==e?void 0:e.data],t.useModel.metaData.value=null==e?void 0:e.meta,console.log(t.useModel.metaData.value,"useModel.metaData.value")}))},l={getCountGridHouse(){o.getApiLoading(a.Apis.Grid.Grids.CountGridHouse,{}).then((e=>{t.useModel.userData.value=e.data,console.log(e)}))},getCompanyEmployeeBacklogs:u,loadMore(e){t.useModel.formData.value.page=null==e?void 0:e.page,u()},async uploadMedia(e){let o=await a.Apis.Customer.CustomerMoments.UploadMedia(e);return null==o?void 0:o.data},getIndexCount(){o.getApiLoading(a.Apis.Count.CommonCount.IndexCount,{}).then((e=>{t.useModel.IndexCount.value=e.data,console.log(e)}))}};exports.method=l; diff --git a/dist/build/mp-weixin/pages/index/model.js b/dist/build/mp-weixin/pages/index/model.js index 6bd7bc8..be334d4 100644 --- a/dist/build/mp-weixin/pages/index/model.js +++ b/dist/build/mp-weixin/pages/index/model.js @@ -1 +1 @@ -"use strict";const e=require("../../common/vendor.js");require("../../common/libraries/day.js");const r={formData:e.ref({page:1,status:"Pending"}),listData:e.ref([]),metaData:e.ref({}),userData:e.ref({})};exports.useModel=r; +"use strict";const e=require("../../common/vendor.js"),t={formData:e.ref({page:1,status:"Pending"}),listData:e.ref([]),metaData:e.ref({}),userData:e.ref({}),announcementsData:e.ref([]),IndexCount:e.ref({})};exports.useModel=t; diff --git a/dist/build/mp-weixin/pages/loading.js b/dist/build/mp-weixin/pages/loading.js index 51d882b..c7fcb3c 100644 --- a/dist/build/mp-weixin/pages/loading.js +++ b/dist/build/mp-weixin/pages/loading.js @@ -1 +1 @@ -"use strict";const e=require("../common/vendor.js");require("../common/libraries/request.js"),require("../common/store/useWeAppAuthStore.js"),require("../common/store/useWorkStore.js");const o=require("../common/libraries/userUserLogin.js");require("../gen/Apis.js"),require("../common/libraries/apiLoading.js");const r=e.defineComponent({__name:"loading",setup:r=>(e.onShow((async()=>{var r;e.index.showLoading({title:"加载中...",mask:!0}),await(null==(r=e.getCurrentInstance())?void 0:r.appContext.config.globalProperties.$onLaunched),e.index.hideLoading(),o.getUser.getLoginStatus()?e.index.navigateTo({url:"/pages/index/index"}):e.index.redirectTo({url:"/pages/login"})})),(e,o)=>({}))});wx.createPage(r); +"use strict";const e=require("../common/vendor.js");require("../common/libraries/request.js"),require("../common/store/useWatermarkStore.js"),require("../common/store/useWeAppAuthStore.js"),require("../common/store/useWorkStore.js");const r=require("../common/libraries/userUserLogin.js");require("../gen/Apis.js"),require("../common/libraries/apiLoading.js");const o=e.defineComponent({__name:"loading",setup:o=>(e.onShow((async()=>{var o;e.index.showLoading({title:"加载中...",mask:!0}),await(null==(o=e.getCurrentInstance())?void 0:o.appContext.config.globalProperties.$onLaunched),e.index.hideLoading(),r.getUser.getLoginStatus()?e.index.navigateTo({url:"/pages/index/index"}):e.index.redirectTo({url:"/pages/login"})})),(e,r)=>({}))});wx.createPage(o); diff --git a/dist/build/mp-weixin/pages/login.js b/dist/build/mp-weixin/pages/login.js index 6e0ba8f..2226cc1 100644 --- a/dist/build/mp-weixin/pages/login.js +++ b/dist/build/mp-weixin/pages/login.js @@ -1 +1 @@ -"use strict";const e=require("../common/vendor.js");require("../common/libraries/request.js");const o=require("../common/store/useWeAppAuthStore.js");if(require("../common/store/useWorkStore.js"),require("../gen/Apis.js"),require("../common/libraries/apiLoading.js"),!Array){(e.resolveComponent("uni-icons")+e.resolveComponent("hs-button")+e.resolveComponent("hs-private-policy"))()}Math||((()=>"../uni_modules/uni-icons/components/uni-icons/uni-icons.js")+(()=>"../components/hs-button/hs-button.js")+(()=>"../components/hs-private-policy/hs-private-policy.js"))();const n=e.defineComponent({__name:"login",setup(n){const t=e.ref({}),i=e.ref(""),s=o.useWeAppAuthStore();let l=e.ref(!1);const r=()=>{u()&&(e.index.showLoading({title:"正在登录...",mask:!0}),e.index.qy.getMobile({success:function(o){console.log(o,"res"),"qy__getMobile:ok"===(null==o?void 0:o.errMsg)?null==s||s.handleUserLoginWxwork(o):e.index.showToast({title:"获取手机号失败",icon:"none"})}}))},a=async o=>{if(!l.value)return!1;e.index.showLoading({title:"正在登录...",mask:!0}),null==s||s.handleUserLogin({code:o.detail.code})},u=()=>!!l.value||(e.index.showToast({title:"请阅读并勾选隐私政策!",icon:"none"}),!1),c=()=>{e.index.showLoading({title:"加载中...",mask:!0}),e.index.downloadFile({url:"https://pay-test-1369486729.cos.ap-guangzhou.myqcloud.com/uploads/cs-test/01K44N5AP6T246WQWHNB2ERQ9M.pdf",success:function(o){const n=o.tempFilePath;e.index.hideLoading(),e.index.openDocument({filePath:n,showMenu:!0})}})},p=()=>{e.index.navigateBack({delta:1})};return e.onLoad((()=>{try{const o=e.index.getSystemInfoSync();i.value=o.environment}catch(o){}})),e.onShow((()=>{t.value=e.index.getMenuButtonBoundingClientRect()})),(o,n)=>e.e({a:e.p({type:"left",size:"20"}),b:e.s(`height:${t.value.height}px;width:${t.value.height}px;`),c:e.o(p),d:e.s(`padding-top:${t.value.top}px;height:${t.value.height}px;line-height:${t.value.height}px;`),e:"wxwork"===i.value},"wxwork"===i.value?{f:e.o(r),g:e.p({label:"快捷登录",type:"primary",size:"lg"})}:{h:e.o(a),i:e.o(u),j:e.p({type:"primary",size:"lg",label:"快捷登录",openType:e.unref(l)?"getPhoneNumber":""})},{k:e.o(c),l:e.o((o=>e.isRef(l)?l.value=o:l=o)),m:e.p({policyName:"《用户协议》",isAgree:e.unref(l)})})}});wx.createPage(n); +"use strict";const e=require("../common/vendor.js");require("../common/libraries/request.js"),require("../common/store/useWatermarkStore.js");const o=require("../common/store/useWeAppAuthStore.js");if(require("../common/store/useWorkStore.js"),require("../gen/Apis.js"),require("../common/libraries/apiLoading.js"),!Array){(e.resolveComponent("uni-icons")+e.resolveComponent("hs-button")+e.resolveComponent("hs-private-policy"))()}Math||((()=>"../uni_modules/uni-icons/components/uni-icons/uni-icons.js")+(()=>"../components/hs-button/hs-button.js")+(()=>"../components/hs-private-policy/hs-private-policy.js"))();const n=e.defineComponent({__name:"login",setup(n){const t=e.ref({}),i=e.ref(""),s=o.useWeAppAuthStore();let r=e.ref(!1);const l=()=>{u()&&(e.index.showLoading({title:"正在登录...",mask:!0}),e.index.qy.getMobile({success:function(o){console.log(o,"res"),"qy__getMobile:ok"===(null==o?void 0:o.errMsg)?null==s||s.handleUserLoginWxwork(o):e.index.showToast({title:"获取手机号失败",icon:"none"})}}))},a=async o=>{if(!r.value)return!1;e.index.showLoading({title:"正在登录...",mask:!0}),null==s||s.handleUserLogin({code:o.detail.code})},u=()=>!!r.value||(e.index.showToast({title:"请阅读并勾选隐私政策!",icon:"none"}),!1),c=()=>{e.index.showLoading({title:"加载中...",mask:!0}),e.index.downloadFile({url:"https://pay-test-1369486729.cos.ap-guangzhou.myqcloud.com/uploads/cs-test/01K44N5AP6T246WQWHNB2ERQ9M.pdf",success:function(o){const n=o.tempFilePath;e.index.hideLoading(),e.index.openDocument({filePath:n,showMenu:!0})}})},p=()=>{e.index.navigateBack({delta:1})};return e.onLoad((()=>{try{const o=e.index.getSystemInfoSync();i.value=o.environment}catch(o){}})),e.onShow((()=>{t.value=e.index.getMenuButtonBoundingClientRect()})),(o,n)=>e.e({a:e.p({type:"left",size:"20"}),b:e.s(`height:${t.value.height}px;width:${t.value.height}px;`),c:e.o(p),d:e.s(`padding-top:${t.value.top}px;height:${t.value.height}px;line-height:${t.value.height}px;`),e:"wxwork"===i.value},"wxwork"===i.value?{f:e.o(l),g:e.p({label:"快捷登录",type:"primary",size:"lg"})}:{h:e.o(a),i:e.o(u),j:e.p({type:"primary",size:"lg",label:"快捷登录",openType:e.unref(r)?"getPhoneNumber":""})},{k:e.o(c),l:e.o((o=>e.isRef(r)?r.value=o:r=o)),m:e.p({policyName:"《用户协议》",isAgree:e.unref(r)})})}});wx.createPage(n); diff --git a/dist/build/mp-weixin/pages/me/index.js b/dist/build/mp-weixin/pages/me/index.js index 650ce01..ce56522 100644 --- a/dist/build/mp-weixin/pages/me/index.js +++ b/dist/build/mp-weixin/pages/me/index.js @@ -1 +1 @@ -"use strict";const e=require("../../common/vendor.js"),u=require("./method.js"),n=require("./model.js"),o=require("../../common/libraries/userUserLogin.js");if(require("../../common/libraries/request.js"),require("../../common/store/useWeAppAuthStore.js"),require("../../gen/Apis.js"),require("../../common/store/useWorkStore.js"),require("../../common/libraries/apiLoading.js"),!Array){(e.resolveComponent("up-avatar")+e.resolveComponent("uni-icons"))()}Math||((()=>"../../node-modules/uview-plus/components/u-avatar/u-avatar.js")+(()=>"../../uni_modules/uni-icons/components/uni-icons/uni-icons.js"))();const l=e.defineComponent({__name:"index",setup:l=>(e.index.getAccountInfoSync(),e.ref(""),e.onShow((async()=>{var n,l,r,i;await(null==(n=e.getCurrentInstance())?void 0:n.appContext.config.globalProperties.$onLaunched),null==(l=u.method)||l.init(),(null==(r=o.getUser)?void 0:r.getLoginStatus())&&(null==(i=u.method)||i.getCountGridHouse())})),(o,l)=>{var r,i,a,s,t,d,v,m,c,p,g,f,h,M,j,q,D,b,x,y,C,_;return e.e({a:null==(i=null==(r=e.unref(n.useModel).userData)?void 0:r.value)?void 0:i.avatar},(null==(s=null==(a=e.unref(n.useModel).userData)?void 0:a.value)?void 0:s.avatar)?{b:e.p({src:null==(v=null==(d=null==(t=e.unref(n.useModel).userData)?void 0:t.value)?void 0:d.avatar[0])?void 0:v.url,size:"120rpx"})}:{c:e.p({size:"120rpx"})},{d:null==(m=e.unref(n.useModel).userData)?void 0:m.value},(null==(c=e.unref(n.useModel).userData)?void 0:c.value)?e.e({e:null==(g=null==(p=e.unref(n.useModel).userData)?void 0:p.value)?void 0:g.name},(null==(h=null==(f=e.unref(n.useModel).userData)?void 0:f.value)?void 0:h.name)?{f:e.t(null==(j=null==(M=e.unref(n.useModel).userData)?void 0:M.value)?void 0:j.name),g:e.p({type:"right",size:"15",color:"#666"})}:{h:e.p({type:"right",size:"15",color:"#666"})},{i:e.o((n=>{var o;return null==(o=e.unref(u.method))?void 0:o.handleJinGang({url:"/ME/update/index"})}))}):{j:e.p({type:"right",size:"15",color:"#666"}),k:e.o((n=>{var o;return null==(o=e.unref(u.method))?void 0:o.handleJinGang({url:"/pages/login"})}))},{l:e.t((null==(x=null==(b=null==(D=null==(q=e.unref(n.useModel))?void 0:q.gridHouseData)?void 0:D.value)?void 0:b.position)?void 0:x.name)||"-"),m:e.t((null==(_=null==(C=null==(y=e.unref(n.useModel))?void 0:y.gridHouseData)?void 0:C.value)?void 0:_.house_num)||"-"),n:e.f(e.unref(n.useModel).list,((n,o,l)=>({a:`/static/svg/${null==n?void 0:n.icon}.svg`,b:e.t(n.label),c:`item_${o}`,d:e.o((o=>{var l;return null==(l=e.unref(u.method))?void 0:l.handleJinGang(n)}),`item_${o}`)})))})})});wx.createPage(l); +"use strict";const e=require("../../common/vendor.js"),u=require("./method.js"),n=require("./model.js"),o=require("../../common/libraries/userUserLogin.js");if(require("../../common/libraries/request.js"),require("../../common/store/useWeAppAuthStore.js"),require("../../gen/Apis.js"),require("../../common/store/useWatermarkStore.js"),require("../../common/store/useWorkStore.js"),require("../../common/libraries/apiLoading.js"),!Array){(e.resolveComponent("up-avatar")+e.resolveComponent("uni-icons"))()}Math||((()=>"../../node-modules/uview-plus/components/u-avatar/u-avatar.js")+(()=>"../../uni_modules/uni-icons/components/uni-icons/uni-icons.js"))();const r=e.defineComponent({__name:"index",setup:r=>(e.index.getAccountInfoSync(),e.ref(""),e.onShow((async()=>{var n,r,l,i;await(null==(n=e.getCurrentInstance())?void 0:n.appContext.config.globalProperties.$onLaunched),null==(r=u.method)||r.init(),(null==(l=o.getUser)?void 0:l.getLoginStatus())&&(null==(i=u.method)||i.getCountGridHouse())})),(o,r)=>{var l,i,a,s,t,d,v,m,c,p,g,f,h,j,M,q,D,b,x,y,C,S;return e.e({a:null==(i=null==(l=e.unref(n.useModel).userData)?void 0:l.value)?void 0:i.avatar},(null==(s=null==(a=e.unref(n.useModel).userData)?void 0:a.value)?void 0:s.avatar)?{b:e.p({src:null==(v=null==(d=null==(t=e.unref(n.useModel).userData)?void 0:t.value)?void 0:d.avatar[0])?void 0:v.url,size:"120rpx"})}:{c:e.p({size:"120rpx"})},{d:null==(m=e.unref(n.useModel).userData)?void 0:m.value},(null==(c=e.unref(n.useModel).userData)?void 0:c.value)?e.e({e:null==(g=null==(p=e.unref(n.useModel).userData)?void 0:p.value)?void 0:g.name},(null==(h=null==(f=e.unref(n.useModel).userData)?void 0:f.value)?void 0:h.name)?{f:e.t(null==(M=null==(j=e.unref(n.useModel).userData)?void 0:j.value)?void 0:M.name),g:e.p({type:"right",size:"15",color:"#666"})}:{h:e.p({type:"right",size:"15",color:"#666"})},{i:e.o((n=>{var o;return null==(o=e.unref(u.method))?void 0:o.handleJinGang({url:"/ME/update/index"})}))}):{j:e.p({type:"right",size:"15",color:"#666"}),k:e.o((n=>{var o;return null==(o=e.unref(u.method))?void 0:o.handleJinGang({url:"/pages/login"})}))},{l:e.t((null==(x=null==(b=null==(D=null==(q=e.unref(n.useModel))?void 0:q.gridHouseData)?void 0:D.value)?void 0:b.position)?void 0:x.name)||"-"),m:e.t((null==(S=null==(C=null==(y=e.unref(n.useModel))?void 0:y.gridHouseData)?void 0:C.value)?void 0:S.house_num)||"-"),n:e.f(e.unref(n.useModel).list,((n,o,r)=>({a:`/static/svg/${null==n?void 0:n.icon}.svg`,b:e.t(n.label),c:`item_${o}`,d:e.o((o=>{var r;return null==(r=e.unref(u.method))?void 0:r.handleJinGang(n)}),`item_${o}`)})))})})});wx.createPage(r); diff --git a/dist/build/mp-weixin/pages/me/method.js b/dist/build/mp-weixin/pages/me/method.js index 493c052..e9f370b 100644 --- a/dist/build/mp-weixin/pages/me/method.js +++ b/dist/build/mp-weixin/pages/me/method.js @@ -1 +1 @@ -"use strict";const e=require("../../common/vendor.js");require("../../common/libraries/request.js");const o=require("../../common/store/useWeAppAuthStore.js");require("../../common/store/useWorkStore.js");const i=require("../../common/libraries/apiLoading.js"),s=require("./model.js"),n=require("../../gen/Apis.js"),r=require("../../common/libraries/userUserLogin.js"),u=o.useWeAppAuthStore(),t={init(){var e;s.useModel.userData.value=(null==(e=null==u?void 0:u.data)?void 0:e.user)||void 0},getCountGridHouse(){i.getApiLoading(n.Apis.Grid.Grids.CountGridHouse,{}).then((e=>{s.useModel.gridHouseData.value=e.data,console.log(e)}))},handleJinGang(o){var i;(null==o?void 0:o.url)?e.index.navigateTo({url:(null==(i=r.getUser)?void 0:i.getLoginStatus())?(null==o?void 0:o.url)||"":"/pages/login"}):("Permission"===(null==o?void 0:o.icon)&&e.index.openSetting(),"Feedback"===(null==o?void 0:o.icon)&&(e.index.showLoading({title:"加载中...",mask:!0}),e.index.downloadFile({url:"https://pay-test-1369486729.cos.ap-guangzhou.myqcloud.com/uploads/cs-test/01K44N5AP6T246WQWHNB2ERQ9M.pdf",success:function(o){const i=o.tempFilePath;e.index.hideLoading(),e.index.openDocument({filePath:i,showMenu:!0})}})),console.log(o,"e"))}};exports.method=t; +"use strict";const e=require("../../common/vendor.js");require("../../common/libraries/request.js"),require("../../common/store/useWatermarkStore.js");const o=require("../../common/store/useWeAppAuthStore.js");require("../../common/store/useWorkStore.js");const i=require("../../common/libraries/apiLoading.js"),s=require("./model.js"),n=require("../../gen/Apis.js"),r=require("../../common/libraries/userUserLogin.js"),t=o.useWeAppAuthStore(),u={init(){var e;s.useModel.userData.value=(null==(e=null==t?void 0:t.data)?void 0:e.user)||void 0},getCountGridHouse(){i.getApiLoading(n.Apis.Grid.Grids.CountGridHouse,{}).then((e=>{s.useModel.gridHouseData.value=e.data,console.log(e)}))},handleJinGang(o){var i;(null==o?void 0:o.url)?e.index.navigateTo({url:(null==(i=r.getUser)?void 0:i.getLoginStatus())?(null==o?void 0:o.url)||"":"/pages/login"}):("Permission"===(null==o?void 0:o.icon)&&e.index.openSetting(),"Feedback"===(null==o?void 0:o.icon)&&(e.index.showLoading({title:"加载中...",mask:!0}),e.index.downloadFile({url:"https://pay-test-1369486729.cos.ap-guangzhou.myqcloud.com/uploads/cs-test/01K44N5AP6T246WQWHNB2ERQ9M.pdf",success:function(o){const i=o.tempFilePath;e.index.hideLoading(),e.index.openDocument({filePath:i,showMenu:!0})}})),console.log(o,"e"))}};exports.method=u; diff --git a/dist/build/mp-weixin/pages/public/asset_houses/components/MeHouseItem.js b/dist/build/mp-weixin/pages/public/asset_houses/components/MeHouseItem.js index 2930816..f744b51 100644 --- a/dist/build/mp-weixin/pages/public/asset_houses/components/MeHouseItem.js +++ b/dist/build/mp-weixin/pages/public/asset_houses/components/MeHouseItem.js @@ -1 +1 @@ -"use strict";const e=require("../../../../common/vendor.js"),o=require("../method.js"),n=require("../model.js");if(require("../../../../common/libraries/apiLoading.js"),require("../../../../gen/Apis.js"),require("../../../../common/libraries/request.js"),require("../../../../common/store/useWeAppAuthStore.js"),require("../../../../common/store/useWorkStore.js"),require("../../../../common/libraries/naviHelper.js"),require("../../../../common/libraries/userUserLogin.js"),!Array){(e.resolveComponent("hs-empty")+e.resolveComponent("uni-icons"))()}Math||((()=>"../../../../components/hs-empty/hs-empty.js")+(()=>"../../../../uni_modules/uni-icons/components/uni-icons/uni-icons.js"))();const l=e.defineComponent({__name:"MeHouseItem",setup:l=>(l,r)=>{var u,i,s,t,d,a,m,c;return e.e({a:!(null==(s=null==(i=null==(u=e.unref(n.useModel))?void 0:u.dataList)?void 0:i.value)?void 0:s.length)},(null==(a=null==(d=null==(t=e.unref(n.useModel))?void 0:t.dataList)?void 0:d.value)||a.length,{}),{b:e.f(null==(c=null==(m=e.unref(n.useModel))?void 0:m.dataList)?void 0:c.value,((l,r,u)=>{var i,s;return e.e({a:e.t(null==l?void 0:l.label),b:(null==l?void 0:l.value)===(null==(i=e.unref(n.useModel).selectedHouseEd.value)?void 0:i.id)},(null==l?void 0:l.value)===(null==(s=e.unref(n.useModel).selectedHouseEd.value)?void 0:s.id)?{c:"887947da-1-"+u,d:e.p({type:"checkbox-filled",size:"20",color:"#2A7EFB"})}:{e:"887947da-2-"+u,f:e.p({type:"circle",size:"20",color:"#999"})},{g:e.o((n=>{var r;return null==(r=e.unref(o.method))?void 0:r.handleSelectedHouse(l)}),`item_${r}`),h:`item_${r}`})}))})}});wx.createComponent(l); +"use strict";const e=require("../../../../common/vendor.js"),o=require("../method.js"),r=require("../model.js");if(require("../../../../common/libraries/apiLoading.js"),require("../../../../gen/Apis.js"),require("../../../../common/libraries/request.js"),require("../../../../common/store/useWeAppAuthStore.js"),require("../../../../common/store/useWatermarkStore.js"),require("../../../../common/store/useWorkStore.js"),require("../../../../common/libraries/naviHelper.js"),require("../../../../common/libraries/userUserLogin.js"),!Array){(e.resolveComponent("hs-empty")+e.resolveComponent("uni-icons"))()}Math||((()=>"../../../../components/hs-empty/hs-empty.js")+(()=>"../../../../uni_modules/uni-icons/components/uni-icons/uni-icons.js"))();const n=e.defineComponent({__name:"MeHouseItem",setup:n=>(n,u)=>{var l,i,s,t,d,a,m,c;return e.e({a:!(null==(s=null==(i=null==(l=e.unref(r.useModel))?void 0:l.dataList)?void 0:i.value)?void 0:s.length)},(null==(a=null==(d=null==(t=e.unref(r.useModel))?void 0:t.dataList)?void 0:d.value)||a.length,{}),{b:e.f(null==(c=null==(m=e.unref(r.useModel))?void 0:m.dataList)?void 0:c.value,((n,u,l)=>{var i,s;return e.e({a:e.t(null==n?void 0:n.label),b:(null==n?void 0:n.value)===(null==(i=e.unref(r.useModel).selectedHouseEd.value)?void 0:i.id)},(null==n?void 0:n.value)===(null==(s=e.unref(r.useModel).selectedHouseEd.value)?void 0:s.id)?{c:"887947da-1-"+l,d:e.p({type:"checkbox-filled",size:"20",color:"#2A7EFB"})}:{e:"887947da-2-"+l,f:e.p({type:"circle",size:"20",color:"#999"})},{g:e.o((r=>{var u;return null==(u=e.unref(o.method))?void 0:u.handleSelectedHouse(n)}),`item_${u}`),h:`item_${u}`})}))})}});wx.createComponent(n); diff --git a/dist/build/mp-weixin/pages/public/asset_houses/index.js b/dist/build/mp-weixin/pages/public/asset_houses/index.js index 5f38692..356003b 100644 --- a/dist/build/mp-weixin/pages/public/asset_houses/index.js +++ b/dist/build/mp-weixin/pages/public/asset_houses/index.js @@ -1 +1 @@ -"use strict";const e=require("../../../common/vendor.js"),r=require("./method.js"),o=require("./model.js");require("../../../common/libraries/request.js");const s=require("../../../common/store/useWeAppAuthStore.js");require("../../../common/store/useWorkStore.js"),require("../../../common/libraries/apiLoading.js"),require("../../../gen/Apis.js"),require("../../../common/libraries/naviHelper.js"),require("../../../common/libraries/userUserLogin.js"),Math||i();const i=()=>"./components/MeHouseItem.js",n=e.defineComponent({__name:"index",setup:i=>(s.useWeAppAuthStore(),e.onLoad((e=>{var s;o.useModel.dataList.value=[],o.useModel.selectType.value=null==e?void 0:e.type,null==(s=r.method)||s.handleLoadMore(1)})),(e,r)=>({}))});wx.createPage(n); +"use strict";const e=require("../../../common/vendor.js"),r=require("./method.js"),o=require("./model.js");require("../../../common/libraries/request.js"),require("../../../common/store/useWatermarkStore.js");const s=require("../../../common/store/useWeAppAuthStore.js");require("../../../common/store/useWorkStore.js"),require("../../../common/libraries/apiLoading.js"),require("../../../gen/Apis.js"),require("../../../common/libraries/naviHelper.js"),require("../../../common/libraries/userUserLogin.js"),Math||i();const i=()=>"./components/MeHouseItem.js",t=e.defineComponent({__name:"index",setup:i=>(s.useWeAppAuthStore(),e.onLoad((e=>{var s;o.useModel.dataList.value=[],o.useModel.selectType.value=null==e?void 0:e.type,null==(s=r.method)||s.handleLoadMore(1)})),(e,r)=>({}))});wx.createPage(t); diff --git a/dist/build/mp-weixin/pages/public/asset_houses/method.js b/dist/build/mp-weixin/pages/public/asset_houses/method.js index ed36c31..f9fb1e4 100644 --- a/dist/build/mp-weixin/pages/public/asset_houses/method.js +++ b/dist/build/mp-weixin/pages/public/asset_houses/method.js @@ -1 +1 @@ -"use strict";const e=require("../../../common/vendor.js"),o=require("../../../common/libraries/apiLoading.js"),s=require("../../../gen/Apis.js"),r=require("./model.js"),i=require("../../../common/libraries/naviHelper.js");require("../../../common/libraries/request.js"),require("../../../common/store/useWeAppAuthStore.js");const u=require("../../../common/store/useWorkStore.js"),l=require("../../../common/libraries/userUserLogin.js"),a=u.useWorkStore(),d=()=>{var e,i,u;(null==(e=l.getUser)?void 0:e.getLoginStatus())&&o.getApiLoading(s.Apis.Grid.Grids.GridSelectHouse,null==(u=null==(i=r.useModel)?void 0:i.formData)?void 0:u.value).then((e=>{r.useModel.dataList.value=null==e?void 0:e.data,console.log(e)}))},n={getHouseList:d,handleLoadMore(e){r.useModel.formData.value.page=e,0===r.useModel.currentTabs.value&&d()},handleSelectedHouse(e){var o,s;if(r.useModel.selectedHouseEd.value={id:null==e?void 0:e.value},"work_add"===(null==(s=null==(o=r.useModel)?void 0:o.selectType)?void 0:s.value))return a.selectWorkHouse=e,void i.showToastBack("选择成功!",1,!0)},hadnleNewBindingHouse(){var o;e.index.navigateTo({url:(null==(o=l.getUser)?void 0:o.getLoginStatus())?"/INDEX/binding/index":"/pages/login"})},handleQueryHouseArchives(o){e.index.navigateTo({url:`/INDEX/archive_houses/index?id=${null==o?void 0:o.asset_houses_id}`})}};exports.method=n; +"use strict";const e=require("../../../common/vendor.js"),o=require("../../../common/libraries/apiLoading.js"),r=require("../../../gen/Apis.js"),s=require("./model.js"),i=require("../../../common/libraries/naviHelper.js");require("../../../common/libraries/request.js"),require("../../../common/store/useWatermarkStore.js"),require("../../../common/store/useWeAppAuthStore.js");const u=require("../../../common/store/useWorkStore.js"),l=require("../../../common/libraries/userUserLogin.js"),a=u.useWorkStore(),n=()=>{var e,i,u;(null==(e=l.getUser)?void 0:e.getLoginStatus())&&o.getApiLoading(r.Apis.Grid.Grids.GridSelectHouse,null==(u=null==(i=s.useModel)?void 0:i.formData)?void 0:u.value).then((e=>{s.useModel.dataList.value=null==e?void 0:e.data,console.log(e)}))},d={getHouseList:n,handleLoadMore(e){s.useModel.formData.value.page=e,0===s.useModel.currentTabs.value&&n()},handleSelectedHouse(e){var o,r;if(s.useModel.selectedHouseEd.value={id:null==e?void 0:e.value},"work_add"===(null==(r=null==(o=s.useModel)?void 0:o.selectType)?void 0:r.value))return a.selectWorkHouse=e,void i.showToastBack("选择成功!",1,!0)},hadnleNewBindingHouse(){var o;e.index.navigateTo({url:(null==(o=l.getUser)?void 0:o.getLoginStatus())?"/INDEX/binding/index":"/pages/login"})},handleQueryHouseArchives(o){e.index.navigateTo({url:`/INDEX/archive_houses/index?id=${null==o?void 0:o.asset_houses_id}`})}};exports.method=d; diff --git a/dist/build/mp-weixin/pages/public/select_project/index.js b/dist/build/mp-weixin/pages/public/select_project/index.js new file mode 100644 index 0000000..74a0d65 --- /dev/null +++ b/dist/build/mp-weixin/pages/public/select_project/index.js @@ -0,0 +1 @@ +"use strict";const e=require("../../../common/vendor.js"),o=require("./method.js"),r=require("./model.js");if(require("../../../common/libraries/apiLoading.js"),require("../../../gen/Apis.js"),require("../../../common/libraries/request.js"),require("../../../common/store/useWeAppAuthStore.js"),require("../../../common/store/useWatermarkStore.js"),require("../../../common/store/useWorkStore.js"),require("../../../common/libraries/naviHelper.js"),require("../../../common/libraries/userUserLogin.js"),!Array){(e.resolveComponent("hs-empty")+e.resolveComponent("uni-icons"))()}Math||((()=>"../../../components/hs-empty/hs-empty.js")+(()=>"../../../uni_modules/uni-icons/components/uni-icons/uni-icons.js"))();const l=e.defineComponent({__name:"index",setup:l=>(e.onLoad((e=>{var l;r.useModel.dataList.value=[],r.useModel.source.value=(null==e?void 0:e.source)||"",null==(l=o.method)||l.handleLoadMore(1)})),(l,n)=>{var i,u,s,t,d,a,m,c;return e.e({a:!(null==(s=null==(u=null==(i=e.unref(r.useModel))?void 0:i.dataList)?void 0:u.value)?void 0:s.length)},(null==(a=null==(d=null==(t=e.unref(r.useModel))?void 0:t.dataList)?void 0:d.value)||a.length,{}),{b:e.f(null==(c=null==(m=e.unref(r.useModel))?void 0:m.dataList)?void 0:c.value,((l,n,i)=>{var u,s;return e.e({a:e.t(null==l?void 0:l.name),b:e.t(null==l?void 0:l.province),c:e.t(null==l?void 0:l.city),d:e.t(null==l?void 0:l.area),e:(null==l?void 0:l.id)===(null==(u=e.unref(r.useModel).selectedHouseEd.value)?void 0:u.id)},(null==l?void 0:l.id)===(null==(s=e.unref(r.useModel).selectedHouseEd.value)?void 0:s.id)?{f:"69571fb6-1-"+i,g:e.p({type:"checkbox-filled",size:"20",color:"#2A7EFB"})}:{h:"69571fb6-2-"+i,i:e.p({type:"circle",size:"20",color:"#999"})},{j:e.o((r=>{var n;return null==(n=e.unref(o.method))?void 0:n.handleSelectedProject(l)}),`item_${n}`),k:`item_${n}`})}))})})});wx.createPage(l); diff --git a/dist/build/mp-weixin/pages/public/select_project/index.json b/dist/build/mp-weixin/pages/public/select_project/index.json new file mode 100644 index 0000000..4830b6c --- /dev/null +++ b/dist/build/mp-weixin/pages/public/select_project/index.json @@ -0,0 +1,7 @@ +{ + "navigationBarTitleText": "选择项目", + "usingComponents": { + "hs-empty": "../../../components/hs-empty/hs-empty", + "uni-icons": "../../../uni_modules/uni-icons/components/uni-icons/uni-icons" + } +} \ No newline at end of file diff --git a/dist/build/mp-weixin/pages/public/select_project/index.wxml b/dist/build/mp-weixin/pages/public/select_project/index.wxml new file mode 100644 index 0000000..a02ca14 --- /dev/null +++ b/dist/build/mp-weixin/pages/public/select_project/index.wxml @@ -0,0 +1 @@ +{{i.a}}{{i.b}}/{{i.c}}/{{i.d}} \ No newline at end of file diff --git a/dist/build/mp-weixin/pages/public/select_project/index.wxss b/dist/build/mp-weixin/pages/public/select_project/index.wxss new file mode 100644 index 0000000..d911e77 --- /dev/null +++ b/dist/build/mp-weixin/pages/public/select_project/index.wxss @@ -0,0 +1 @@ +page{background-color:#f8f8f8}.asset_houses{padding-bottom:160rpx}.asset_houses .asset_houses_card{margin:30rpx 30rpx 0;background-color:#fff;border-radius:15rpx;padding:0 30rpx}.asset_houses .asset_houses_card .card_header{padding:30rpx 0}.asset_houses .asset_houses_card .card_header .asset_houses_name{display:flex;align-items:center;justify-content:space-between}.asset_houses .asset_houses_card .card_header .asset_houses_name .name{font-size:32rpx;color:#000}.asset_houses .asset_houses_card .card_header .asset_houses_name .address{color:#666;font-size:24rpx}.asset_houses .asset_houses_card .card_header .asset_houses_info{display:flex;align-items:center;font-size:24rpx;color:#666;padding:10rpx 0 0}.asset_houses .asset_houses_card .card_header .asset_houses_info .item{height:30rpx;line-height:30rpx;font-size:24rpx}.asset_houses .asset_houses_card .card_header .asset_houses_info .item:last-child{padding-left:20rpx;margin-left:20rpx;border-left:1rpx solid #eee} diff --git a/dist/build/mp-weixin/pages/public/select_project/method.js b/dist/build/mp-weixin/pages/public/select_project/method.js new file mode 100644 index 0000000..5e78947 --- /dev/null +++ b/dist/build/mp-weixin/pages/public/select_project/method.js @@ -0,0 +1 @@ +"use strict";const e=require("../../../common/vendor.js"),o=require("../../../common/libraries/apiLoading.js"),s=require("../../../gen/Apis.js"),i=require("./model.js"),r=require("../../../common/libraries/naviHelper.js");require("../../../common/libraries/request.js"),require("../../../common/store/useWatermarkStore.js"),require("../../../common/store/useWeAppAuthStore.js");const l=require("../../../common/store/useWorkStore.js"),a=require("../../../common/libraries/userUserLogin.js"),t=l.useWorkStore(),u=()=>{var e,r,l;(null==(e=a.getUser)?void 0:e.getLoginStatus())&&o.getApiLoading(s.Apis.Asset.AssetHouses.SelectProject,null==(l=null==(r=i.useModel)?void 0:r.formData)?void 0:l.value).then((e=>{var o,s;i.useModel.dataList.value=[...null==(s=null==(o=i.useModel)?void 0:o.dataList)?void 0:s.value,...null==e?void 0:e.data],i.useModel.metaData.value=null==e?void 0:e.meta,console.log(e)}))},n={getProjectList:u,handleLoadMore(e){i.useModel.formData.value.page=e,u()},handleSelectedProject(l){var a,u,n;"emergency_add"===(null==(u=null==(a=i.useModel)?void 0:a.source)?void 0:u.value)?(n=l,o.getApiLoading(s.Apis.Emergency.EmergencyEventTeams.GetPermission,{asset_projects_id:null==n?void 0:n.id}).then((o=>{var s;(null==(s=null==o?void 0:o.data)?void 0:s.permission)?(i.useModel.selectedHouseEd.value=n,t.selectWorkProject=n,r.showToastBack("选择成功!",1,!0)):e.index.navigateTo({url:`/pages/public/select_project/pages/permission_show?id=${null==n?void 0:n.id}`}),console.log(o)}))):(i.useModel.selectedHouseEd.value=l,t.selectWorkProject=l,r.showToastBack("选择成功!",1,!0))},hadnleNewBindingHouse(){var o;e.index.navigateTo({url:(null==(o=a.getUser)?void 0:o.getLoginStatus())?"/INDEX/binding/index":"/pages/login"})},handleQueryHouseArchives(o){e.index.navigateTo({url:`/INDEX/archive_houses/index?id=${null==o?void 0:o.asset_houses_id}`})}};exports.method=n; diff --git a/dist/build/mp-weixin/pages/public/select_project/model.js b/dist/build/mp-weixin/pages/public/select_project/model.js new file mode 100644 index 0000000..99e7786 --- /dev/null +++ b/dist/build/mp-weixin/pages/public/select_project/model.js @@ -0,0 +1 @@ +"use strict";const e=require("../../../common/vendor.js"),r={formData:e.ref({page:1}),dataList:e.ref([]),metaData:e.ref({}),selectedHouseEd:e.ref({id:""}),source:e.ref("")};exports.useModel=r; diff --git a/dist/build/mp-weixin/pages/transfer/index.js b/dist/build/mp-weixin/pages/transfer/index.js new file mode 100644 index 0000000..fbf50e5 --- /dev/null +++ b/dist/build/mp-weixin/pages/transfer/index.js @@ -0,0 +1 @@ +"use strict";const e=require("../../common/vendor.js"),o=require("../../common/libraries/userUserLogin.js");if(require("../../common/libraries/request.js"),require("../../common/store/useWeAppAuthStore.js"),require("../../gen/Apis.js"),require("../../common/store/useWatermarkStore.js"),require("../../common/store/useWorkStore.js"),require("../../common/libraries/apiLoading.js"),!Array){e.resolveComponent("hs-footer")()}Math;const r=e.defineComponent({__name:"index",setup(r){const n=e.ref(!1);return e.onShow((async()=>{var r,i,s;if(await(null==(r=e.getCurrentInstance())?void 0:r.appContext.config.globalProperties.$onLaunched),null==(i=o.getUser)?void 0:i.getLoginStatus()){const o=e.index.getEnterOptionsSync();console.log(o,"getQrcode");let r=null==o?void 0:o.query;if(null==r?void 0:r.scene){let o=null==(s=null==r?void 0:r.scene)?void 0:s.split("_");"1"===o[0]&&e.index.redirectTo({url:`/INDEX/release_items/index?id=${o[1]}`}),"2"===o[0]&&e.index.redirectTo({url:`/INDEX/pass/index?id=${o[1]}`}),"3"===o[0]&&e.index.redirectTo({url:`/INDEX/patrol_task_list/index?id=${o[1]}`})}else n.value=!0}else e.index.showModal({title:"提示",content:"检测到您还未登录,是否去登录?",confirmText:"去登录",cancelText:"返回首页",confirmColor:"#0082FA",success:function(o){o.confirm?(e.index.navigateTo({url:"/pages/login?source=transfer"}),console.log("用户点击确定")):o.cancel&&(e.index.switchTab({url:"/pages/index/index"}),console.log("用户点击取消"))}})})),(o,r)=>e.e({a:!n.value},n.value?{b:e.p({btnParimaryName:"返回首页"})}:{})}});wx.createPage(r); diff --git a/dist/build/mp-weixin/pages/transfer/index.json b/dist/build/mp-weixin/pages/transfer/index.json new file mode 100644 index 0000000..7fc74a2 --- /dev/null +++ b/dist/build/mp-weixin/pages/transfer/index.json @@ -0,0 +1,6 @@ +{ + "navigationBarTitleText": "正在识别...", + "usingComponents": { + "hs-footer": "../../components/hs-footer/hs-footer" + } +} \ No newline at end of file diff --git a/dist/build/mp-weixin/pages/transfer/index.wxml b/dist/build/mp-weixin/pages/transfer/index.wxml new file mode 100644 index 0000000..b9ed40c --- /dev/null +++ b/dist/build/mp-weixin/pages/transfer/index.wxml @@ -0,0 +1 @@ + 正在识别二维码...请稍后 二维码识别有误,请换二维码重新扫描 \ No newline at end of file diff --git a/dist/build/mp-weixin/pages/transfer/index.wxss b/dist/build/mp-weixin/pages/transfer/index.wxss new file mode 100644 index 0000000..57ac926 --- /dev/null +++ b/dist/build/mp-weixin/pages/transfer/index.wxss @@ -0,0 +1 @@ +.transfer_contents,.error_contents{text-align:center;padding:10% 0;font-size:30rpx} diff --git a/dist/build/mp-weixin/static/svg/WatermarkCamera.svg b/dist/build/mp-weixin/static/svg/WatermarkCamera.svg new file mode 100644 index 0000000..12e4a86 --- /dev/null +++ b/dist/build/mp-weixin/static/svg/WatermarkCamera.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/dist/build/mp-weixin/static/svg/WatermarkCameraSwitch.svg b/dist/build/mp-weixin/static/svg/WatermarkCameraSwitch.svg new file mode 100644 index 0000000..e724893 --- /dev/null +++ b/dist/build/mp-weixin/static/svg/WatermarkCameraSwitch.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/dist/build/mp-weixin/static/svg/announcement.svg b/dist/build/mp-weixin/static/svg/announcement.svg new file mode 100644 index 0000000..867ee91 --- /dev/null +++ b/dist/build/mp-weixin/static/svg/announcement.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/dist/build/mp-weixin/static/svg/collection_icon.svg b/dist/build/mp-weixin/static/svg/collection_icon.svg index 1048f37..ae2f720 100644 --- a/dist/build/mp-weixin/static/svg/collection_icon.svg +++ b/dist/build/mp-weixin/static/svg/collection_icon.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/dist/build/mp-weixin/static/svg/electricity_meter.svg b/dist/build/mp-weixin/static/svg/electricity_meter.svg new file mode 100644 index 0000000..be88363 --- /dev/null +++ b/dist/build/mp-weixin/static/svg/electricity_meter.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/dist/build/mp-weixin/static/svg/house_icon.svg b/dist/build/mp-weixin/static/svg/house_icon.svg index 47eec31..caac21a 100644 --- a/dist/build/mp-weixin/static/svg/house_icon.svg +++ b/dist/build/mp-weixin/static/svg/house_icon.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/dist/build/mp-weixin/static/svg/household_registration.svg b/dist/build/mp-weixin/static/svg/household_registration.svg index ed17e41..4cc27d7 100644 --- a/dist/build/mp-weixin/static/svg/household_registration.svg +++ b/dist/build/mp-weixin/static/svg/household_registration.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/dist/build/mp-weixin/static/svg/meter_reading_icon.svg b/dist/build/mp-weixin/static/svg/meter_reading_icon.svg new file mode 100644 index 0000000..bbf3013 --- /dev/null +++ b/dist/build/mp-weixin/static/svg/meter_reading_icon.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/dist/build/mp-weixin/static/svg/performance_icon.svg b/dist/build/mp-weixin/static/svg/performance_icon.svg index 0823f19..44d8bbd 100644 --- a/dist/build/mp-weixin/static/svg/performance_icon.svg +++ b/dist/build/mp-weixin/static/svg/performance_icon.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/dist/build/mp-weixin/static/svg/task_icon.svg b/dist/build/mp-weixin/static/svg/task_icon.svg new file mode 100644 index 0000000..51d6f91 --- /dev/null +++ b/dist/build/mp-weixin/static/svg/task_icon.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/dist/build/mp-weixin/static/svg/user_icon.svg b/dist/build/mp-weixin/static/svg/user_icon.svg index 196ef50..cfd4b28 100644 --- a/dist/build/mp-weixin/static/svg/user_icon.svg +++ b/dist/build/mp-weixin/static/svg/user_icon.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/dist/build/mp-weixin/static/svg/water_meter_icon.svg b/dist/build/mp-weixin/static/svg/water_meter_icon.svg new file mode 100644 index 0000000..6f414a5 --- /dev/null +++ b/dist/build/mp-weixin/static/svg/water_meter_icon.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/dist/build/mp-weixin/static/svg/workorder_icon.svg b/dist/build/mp-weixin/static/svg/workorder_icon.svg index 2e9698c..4ffa12d 100644 --- a/dist/build/mp-weixin/static/svg/workorder_icon.svg +++ b/dist/build/mp-weixin/static/svg/workorder_icon.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/dist/dev/mp-weixin/BILL/collection_record/index/index.js b/dist/dev/mp-weixin/BILL/collection_record/index/index.js index 6b182f0..de5e5b5 100644 --- a/dist/dev/mp-weixin/BILL/collection_record/index/index.js +++ b/dist/dev/mp-weixin/BILL/collection_record/index/index.js @@ -8,6 +8,7 @@ require("../../../common/libraries/apiLoading.js"); require("../../../gen/Apis.js"); require("../../../common/libraries/request.js"); require("../../../common/store/useWeAppAuthStore.js"); +require("../../../common/store/useWatermarkStore.js"); require("../../../common/store/useWorkStore.js"); if (!Array) { const _easycom_hs_tabs2 = common_vendor.resolveComponent("hs-tabs"); diff --git a/dist/dev/mp-weixin/BILL/collection_record/show/index.js b/dist/dev/mp-weixin/BILL/collection_record/show/index.js index 7d95794..b529bc1 100644 --- a/dist/dev/mp-weixin/BILL/collection_record/show/index.js +++ b/dist/dev/mp-weixin/BILL/collection_record/show/index.js @@ -8,6 +8,7 @@ require("../../../common/libraries/apiLoading.js"); require("../../../gen/Apis.js"); require("../../../common/libraries/request.js"); require("../../../common/store/useWeAppAuthStore.js"); +require("../../../common/store/useWatermarkStore.js"); require("../../../common/store/useWorkStore.js"); if (!Array) { const _easycom_hs_cell2 = common_vendor.resolveComponent("hs-cell"); diff --git a/dist/dev/mp-weixin/BILL/information_template/components/PopupSubmitTemplate.js b/dist/dev/mp-weixin/BILL/information_template/components/PopupSubmitTemplate.js index c4f7c97..02927f1 100644 --- a/dist/dev/mp-weixin/BILL/information_template/components/PopupSubmitTemplate.js +++ b/dist/dev/mp-weixin/BILL/information_template/components/PopupSubmitTemplate.js @@ -4,6 +4,7 @@ const common_libraries_apiLoading = require("../../../common/libraries/apiLoadin const gen_Apis = require("../../../gen/Apis.js"); require("../../../common/libraries/request.js"); require("../../../common/store/useWeAppAuthStore.js"); +require("../../../common/store/useWatermarkStore.js"); require("../../../common/store/useWorkStore.js"); if (!Array) { const _easycom_hs_button2 = common_vendor.resolveComponent("hs-button"); diff --git a/dist/dev/mp-weixin/BILL/outstanding_fee/add/index.js b/dist/dev/mp-weixin/BILL/outstanding_fee/add/index.js index 46afd9e..fc86ecc 100644 --- a/dist/dev/mp-weixin/BILL/outstanding_fee/add/index.js +++ b/dist/dev/mp-weixin/BILL/outstanding_fee/add/index.js @@ -7,6 +7,7 @@ const gen_Apis = require("../../../gen/Apis.js"); require("../../../common/libraries/day.js"); require("../../../common/libraries/request.js"); require("../../../common/store/useWeAppAuthStore.js"); +require("../../../common/store/useWatermarkStore.js"); require("../../../common/store/useWorkStore.js"); if (!Array) { const _easycom_up_icon2 = common_vendor.resolveComponent("up-icon"); diff --git a/dist/dev/mp-weixin/BILL/outstanding_fee/components/HeadSearchBtn.js b/dist/dev/mp-weixin/BILL/outstanding_fee/components/HeadSearchBtn.js index fc7812d..c4864df 100644 --- a/dist/dev/mp-weixin/BILL/outstanding_fee/components/HeadSearchBtn.js +++ b/dist/dev/mp-weixin/BILL/outstanding_fee/components/HeadSearchBtn.js @@ -9,6 +9,7 @@ require("../../../common/libraries/apiLoading.js"); require("../../../gen/Apis.js"); require("../../../common/libraries/request.js"); require("../../../common/store/useWeAppAuthStore.js"); +require("../../../common/store/useWatermarkStore.js"); require("../../../common/store/useWorkStore.js"); const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({ __name: "HeadSearchBtn", diff --git a/dist/dev/mp-weixin/BILL/outstanding_fee/components/HeaderSearch.js b/dist/dev/mp-weixin/BILL/outstanding_fee/components/HeaderSearch.js index 0544cfb..8a709f1 100644 --- a/dist/dev/mp-weixin/BILL/outstanding_fee/components/HeaderSearch.js +++ b/dist/dev/mp-weixin/BILL/outstanding_fee/components/HeaderSearch.js @@ -8,6 +8,7 @@ require("../../../common/libraries/apiLoading.js"); require("../../../gen/Apis.js"); require("../../../common/libraries/request.js"); require("../../../common/store/useWeAppAuthStore.js"); +require("../../../common/store/useWatermarkStore.js"); require("../../../common/store/useWorkStore.js"); require("../../../common/libraries/day.js"); if (!Array) { diff --git a/dist/dev/mp-weixin/BILL/outstanding_fee/index/index.js b/dist/dev/mp-weixin/BILL/outstanding_fee/index/index.js index 66e0d35..456b661 100644 --- a/dist/dev/mp-weixin/BILL/outstanding_fee/index/index.js +++ b/dist/dev/mp-weixin/BILL/outstanding_fee/index/index.js @@ -9,6 +9,7 @@ require("../../../common/libraries/apiLoading.js"); require("../../../gen/Apis.js"); require("../../../common/libraries/request.js"); require("../../../common/store/useWeAppAuthStore.js"); +require("../../../common/store/useWatermarkStore.js"); require("../../../common/store/useWorkStore.js"); if (!Array) { const _easycom_up_tabs2 = common_vendor.resolveComponent("up-tabs"); diff --git a/dist/dev/mp-weixin/BILL/outstanding_fee/index/method.js b/dist/dev/mp-weixin/BILL/outstanding_fee/index/method.js index a7cccda..ffb9e7f 100644 --- a/dist/dev/mp-weixin/BILL/outstanding_fee/index/method.js +++ b/dist/dev/mp-weixin/BILL/outstanding_fee/index/method.js @@ -4,6 +4,7 @@ const common_libraries_sendWxWork = require("../../../common/libraries/sendWxWor const gen_Apis = require("../../../gen/Apis.js"); const BILL_outstanding_fee_index_model = require("./model.js"); require("../../../common/libraries/request.js"); +require("../../../common/store/useWatermarkStore.js"); const common_store_useWeAppAuthStore = require("../../../common/store/useWeAppAuthStore.js"); require("../../../common/store/useWorkStore.js"); const auth = common_store_useWeAppAuthStore.useWeAppAuthStore(); diff --git a/dist/dev/mp-weixin/BILL/outstanding_fee/show/components/BillItem.js b/dist/dev/mp-weixin/BILL/outstanding_fee/show/components/BillItem.js index 79453c0..a2ec4ab 100644 --- a/dist/dev/mp-weixin/BILL/outstanding_fee/show/components/BillItem.js +++ b/dist/dev/mp-weixin/BILL/outstanding_fee/show/components/BillItem.js @@ -4,13 +4,14 @@ const gen_Enums = require("../../../../gen/Enums.js"); const BILL_outstanding_fee_show_model = require("../model.js"); const BILL_outstanding_fee_show_method = require("../method.js"); require("../../../../common/libraries/day.js"); -require("../../../../common/libraries/apiLoading.js"); -require("../../../../gen/Apis.js"); require("../../../../common/libraries/request.js"); require("../../../../common/store/useWeAppAuthStore.js"); +require("../../../../gen/Apis.js"); +require("../../../../common/store/useWatermarkStore.js"); require("../../../../common/store/useWorkStore.js"); -require("../../../../common/libraries/sendWxWork.js"); +require("../../../../common/libraries/apiLoading.js"); require("../../../../common/libraries/naviHelper.js"); +require("../../../../common/libraries/sendWxWork.js"); if (!Array) { const _easycom_uni_icons2 = common_vendor.resolveComponent("uni-icons"); const _easycom_hs_enum_tag2 = common_vendor.resolveComponent("hs-enum-tag"); diff --git a/dist/dev/mp-weixin/BILL/outstanding_fee/show/components/PageFooter.js b/dist/dev/mp-weixin/BILL/outstanding_fee/show/components/PageFooter.js index 75693c1..ab1eeb8 100644 --- a/dist/dev/mp-weixin/BILL/outstanding_fee/show/components/PageFooter.js +++ b/dist/dev/mp-weixin/BILL/outstanding_fee/show/components/PageFooter.js @@ -2,13 +2,14 @@ const common_vendor = require("../../../../common/vendor.js"); const BILL_outstanding_fee_show_method = require("../method.js"); const BILL_outstanding_fee_show_model = require("../model.js"); -require("../../../../common/libraries/apiLoading.js"); -require("../../../../gen/Apis.js"); require("../../../../common/libraries/request.js"); require("../../../../common/store/useWeAppAuthStore.js"); +require("../../../../gen/Apis.js"); +require("../../../../common/store/useWatermarkStore.js"); require("../../../../common/store/useWorkStore.js"); -require("../../../../common/libraries/sendWxWork.js"); +require("../../../../common/libraries/apiLoading.js"); require("../../../../common/libraries/naviHelper.js"); +require("../../../../common/libraries/sendWxWork.js"); require("../../../../common/libraries/day.js"); if (!Array) { const _easycom_hs_button2 = common_vendor.resolveComponent("hs-button"); diff --git a/dist/dev/mp-weixin/BILL/outstanding_fee/show/components/PageHeader.js b/dist/dev/mp-weixin/BILL/outstanding_fee/show/components/PageHeader.js index 42d6a4f..7ee0b2a 100644 --- a/dist/dev/mp-weixin/BILL/outstanding_fee/show/components/PageHeader.js +++ b/dist/dev/mp-weixin/BILL/outstanding_fee/show/components/PageHeader.js @@ -4,13 +4,14 @@ const gen_Enums = require("../../../../gen/Enums.js"); require("../../../../common/libraries/day.js"); const BILL_outstanding_fee_show_model = require("../model.js"); require("../method.js"); -require("../../../../common/libraries/apiLoading.js"); -require("../../../../gen/Apis.js"); require("../../../../common/libraries/request.js"); require("../../../../common/store/useWeAppAuthStore.js"); +require("../../../../gen/Apis.js"); +require("../../../../common/store/useWatermarkStore.js"); require("../../../../common/store/useWorkStore.js"); -require("../../../../common/libraries/sendWxWork.js"); +require("../../../../common/libraries/apiLoading.js"); require("../../../../common/libraries/naviHelper.js"); +require("../../../../common/libraries/sendWxWork.js"); if (!Array) { const _easycom_hs_enum_tag2 = common_vendor.resolveComponent("hs-enum-tag"); _easycom_hs_enum_tag2(); diff --git a/dist/dev/mp-weixin/BILL/outstanding_fee/show/components/PersonnelList.js b/dist/dev/mp-weixin/BILL/outstanding_fee/show/components/PersonnelList.js index ed87849..ae726f0 100644 --- a/dist/dev/mp-weixin/BILL/outstanding_fee/show/components/PersonnelList.js +++ b/dist/dev/mp-weixin/BILL/outstanding_fee/show/components/PersonnelList.js @@ -1,12 +1,7 @@ "use strict"; const common_vendor = require("../../../../common/vendor.js"); const gen_Enums = require("../../../../gen/Enums.js"); -require("../../../../common/libraries/request.js"); -require("../../../../common/store/useWeAppAuthStore.js"); -require("../../../../common/store/useWorkStore.js"); const BILL_outstanding_fee_show_model = require("../model.js"); -require("../../../../gen/Apis.js"); -require("../../../../common/libraries/apiLoading.js"); require("../../../../common/libraries/day.js"); if (!Array) { const _easycom_hs_enum_tag2 = common_vendor.resolveComponent("hs-enum-tag"); @@ -29,6 +24,11 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({ }); } }; + const handleNavigateToDetail = (id) => { + common_vendor.index.navigateTo({ + url: `/CUSTOMER/show/index?id=${id}` + }); + }; const handleNavigateToAddCustomer = (phone) => { common_vendor.index.setClipboardData({ data: phone, @@ -63,9 +63,14 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({ }) }, { f: "04f66b1b-1-" + i0 + "-" + i1, - g: common_vendor.o(($event) => handleCopyPhone(j == null ? void 0 : j.phone), `personnel_${index2}`), - h: common_vendor.o(($event) => handleNavigateToAddCustomer(j == null ? void 0 : j.phone), `personnel_${index2}`), - i: `personnel_${index2}` + g: common_vendor.o(($event) => { + var _a2; + return (_a2 = _ctx.method) == null ? void 0 : _a2.handleSetContact(j); + }, `personnel_${index2}`), + h: common_vendor.o(($event) => handleCopyPhone(j == null ? void 0 : j.phone), `personnel_${index2}`), + i: common_vendor.o(($event) => handleNavigateToAddCustomer(j == null ? void 0 : j.phone), `personnel_${index2}`), + j: common_vendor.o(($event) => handleNavigateToDetail(j == null ? void 0 : j.id), `personnel_${index2}`), + k: `personnel_${index2}` }); }), d: common_vendor.p({ diff --git a/dist/dev/mp-weixin/BILL/outstanding_fee/show/components/PersonnelList.wxml b/dist/dev/mp-weixin/BILL/outstanding_fee/show/components/PersonnelList.wxml index 9d1cac4..e94f1a4 100644 --- a/dist/dev/mp-weixin/BILL/outstanding_fee/show/components/PersonnelList.wxml +++ b/dist/dev/mp-weixin/BILL/outstanding_fee/show/components/PersonnelList.wxml @@ -1 +1 @@ -{{i.b}}{{j.a}}{{j.b}} 产权人 {{i.e}} 拨打电话 +微信 查看详情 \ No newline at end of file +{{i.b}}{{j.a}}{{j.b}} 产权人 {{i.e}} 拨打电话 +微信 查看详情 \ No newline at end of file diff --git a/dist/dev/mp-weixin/BILL/outstanding_fee/show/components/WorkOrderList.js b/dist/dev/mp-weixin/BILL/outstanding_fee/show/components/WorkOrderList.js index 6055ebe..07e5072 100644 --- a/dist/dev/mp-weixin/BILL/outstanding_fee/show/components/WorkOrderList.js +++ b/dist/dev/mp-weixin/BILL/outstanding_fee/show/components/WorkOrderList.js @@ -4,13 +4,14 @@ const gen_Enums = require("../../../../gen/Enums.js"); const BILL_outstanding_fee_show_model = require("../model.js"); const common_libraries_day = require("../../../../common/libraries/day.js"); const BILL_outstanding_fee_show_method = require("../method.js"); -require("../../../../common/libraries/apiLoading.js"); -require("../../../../gen/Apis.js"); require("../../../../common/libraries/request.js"); require("../../../../common/store/useWeAppAuthStore.js"); +require("../../../../gen/Apis.js"); +require("../../../../common/store/useWatermarkStore.js"); require("../../../../common/store/useWorkStore.js"); -require("../../../../common/libraries/sendWxWork.js"); +require("../../../../common/libraries/apiLoading.js"); require("../../../../common/libraries/naviHelper.js"); +require("../../../../common/libraries/sendWxWork.js"); if (!Array) { const _easycom_hs_enum_tag2 = common_vendor.resolveComponent("hs-enum-tag"); const _easycom_hs_level2 = common_vendor.resolveComponent("hs-level"); diff --git a/dist/dev/mp-weixin/BILL/outstanding_fee/show/index.js b/dist/dev/mp-weixin/BILL/outstanding_fee/show/index.js index fc26690..7d24197 100644 --- a/dist/dev/mp-weixin/BILL/outstanding_fee/show/index.js +++ b/dist/dev/mp-weixin/BILL/outstanding_fee/show/index.js @@ -3,13 +3,14 @@ const common_vendor = require("../../../common/vendor.js"); const BILL_outstanding_fee_show_model = require("./model.js"); const BILL_outstanding_fee_show_method = require("./method.js"); require("../../../common/libraries/day.js"); -require("../../../common/libraries/apiLoading.js"); -require("../../../gen/Apis.js"); require("../../../common/libraries/request.js"); require("../../../common/store/useWeAppAuthStore.js"); +require("../../../gen/Apis.js"); +require("../../../common/store/useWatermarkStore.js"); require("../../../common/store/useWorkStore.js"); -require("../../../common/libraries/sendWxWork.js"); +require("../../../common/libraries/apiLoading.js"); require("../../../common/libraries/naviHelper.js"); +require("../../../common/libraries/sendWxWork.js"); if (!Array) { const _easycom_hs_tabs2 = common_vendor.resolveComponent("hs-tabs"); const _easycom_cc_scroll_loading2 = common_vendor.resolveComponent("cc-scroll-loading"); diff --git a/dist/dev/mp-weixin/BILL/outstanding_fee/show/method.js b/dist/dev/mp-weixin/BILL/outstanding_fee/show/method.js index 6f12d5f..df44c8a 100644 --- a/dist/dev/mp-weixin/BILL/outstanding_fee/show/method.js +++ b/dist/dev/mp-weixin/BILL/outstanding_fee/show/method.js @@ -1,13 +1,14 @@ "use strict"; const common_vendor = require("../../../common/vendor.js"); -const common_libraries_apiLoading = require("../../../common/libraries/apiLoading.js"); -const gen_Apis = require("../../../gen/Apis.js"); -const BILL_outstanding_fee_show_model = require("./model.js"); -const common_libraries_sendWxWork = require("../../../common/libraries/sendWxWork.js"); require("../../../common/libraries/request.js"); +require("../../../common/store/useWatermarkStore.js"); const common_store_useWeAppAuthStore = require("../../../common/store/useWeAppAuthStore.js"); require("../../../common/store/useWorkStore.js"); +const common_libraries_apiLoading = require("../../../common/libraries/apiLoading.js"); const common_libraries_naviHelper = require("../../../common/libraries/naviHelper.js"); +const common_libraries_sendWxWork = require("../../../common/libraries/sendWxWork.js"); +const gen_Apis = require("../../../gen/Apis.js"); +const BILL_outstanding_fee_show_model = require("./model.js"); const auth = common_store_useWeAppAuthStore.useWeAppAuthStore(); const setCalculateTotalPrice = () => { var _a, _b, _c; @@ -157,6 +158,16 @@ const method = { // res.is_select = useModel.allSelectStatus.value // }) // }, + handleSetContact(res) { + var _a, _b, _c; + common_libraries_apiLoading.getApiLoading((_c = (_b = (_a = gen_Apis.Apis) == null ? void 0 : _a.Archive) == null ? void 0 : _b.HouseOccupants) == null ? void 0 : _c.ChangeContact, { + house_occupants_id: res == null ? void 0 : res.id, + is_contact: !(res == null ? void 0 : res.is_contact) + }).then((res2) => { + BILL_outstanding_fee_show_model.useModel.listData.value = []; + getHouseOccupants(); + }); + }, handleNotice(res) { let arr = [ { diff --git a/dist/dev/mp-weixin/BILL/poster/index.js b/dist/dev/mp-weixin/BILL/poster/index.js index 38e909b..404dbee 100644 --- a/dist/dev/mp-weixin/BILL/poster/index.js +++ b/dist/dev/mp-weixin/BILL/poster/index.js @@ -6,6 +6,7 @@ require("../../gen/Apis.js"); require("../../common/libraries/request.js"); require("../../common/store/useWeAppAuthStore.js"); require("../../common/libraries/apiLoading.js"); +require("../../common/store/useWatermarkStore.js"); require("../../common/store/useWorkStore.js"); const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({ __name: "index", diff --git a/dist/dev/mp-weixin/BILL/record/payment/index.js b/dist/dev/mp-weixin/BILL/record/payment/index.js index 16ae3c4..5409da3 100644 --- a/dist/dev/mp-weixin/BILL/record/payment/index.js +++ b/dist/dev/mp-weixin/BILL/record/payment/index.js @@ -7,6 +7,7 @@ require("../../../common/libraries/apiLoading.js"); require("../../../gen/Apis.js"); require("../../../common/libraries/request.js"); require("../../../common/store/useWeAppAuthStore.js"); +require("../../../common/store/useWatermarkStore.js"); require("../../../common/store/useWorkStore.js"); if (!Array) { const _easycom_uni_icons2 = common_vendor.resolveComponent("uni-icons"); diff --git a/dist/dev/mp-weixin/BILL/record/urge_payment/index.js b/dist/dev/mp-weixin/BILL/record/urge_payment/index.js index f63b95e..3110acf 100644 --- a/dist/dev/mp-weixin/BILL/record/urge_payment/index.js +++ b/dist/dev/mp-weixin/BILL/record/urge_payment/index.js @@ -7,6 +7,7 @@ require("../../../common/libraries/apiLoading.js"); require("../../../gen/Apis.js"); require("../../../common/libraries/request.js"); require("../../../common/store/useWeAppAuthStore.js"); +require("../../../common/store/useWatermarkStore.js"); require("../../../common/store/useWorkStore.js"); if (!Array) { const _easycom_hs_enum_tag2 = common_vendor.resolveComponent("hs-enum-tag"); diff --git a/dist/dev/mp-weixin/BILL/send_bill/components/pickerSelectHouse.js b/dist/dev/mp-weixin/BILL/send_bill/components/pickerSelectHouse.js index 950dcba..8790353 100644 --- a/dist/dev/mp-weixin/BILL/send_bill/components/pickerSelectHouse.js +++ b/dist/dev/mp-weixin/BILL/send_bill/components/pickerSelectHouse.js @@ -7,6 +7,7 @@ require("../../../gen/Apis.js"); require("../../../common/libraries/request.js"); require("../../../common/store/useWeAppAuthStore.js"); require("../../../common/libraries/apiLoading.js"); +require("../../../common/store/useWatermarkStore.js"); require("../../../common/store/useWorkStore.js"); require("../../../common/libraries/userUserLogin.js"); require("../../../common/libraries/sendWxWork.js"); diff --git a/dist/dev/mp-weixin/BILL/send_bill/index.js b/dist/dev/mp-weixin/BILL/send_bill/index.js index 89e4bec..e3233c0 100644 --- a/dist/dev/mp-weixin/BILL/send_bill/index.js +++ b/dist/dev/mp-weixin/BILL/send_bill/index.js @@ -7,6 +7,7 @@ const BILL_send_bill_method = require("./method.js"); require("../../common/libraries/request.js"); require("../../common/store/useWeAppAuthStore.js"); require("../../gen/Apis.js"); +require("../../common/store/useWatermarkStore.js"); require("../../common/store/useWorkStore.js"); require("../../common/libraries/apiLoading.js"); require("../../common/libraries/naviHelper.js"); diff --git a/dist/dev/mp-weixin/CUSTOMER/assets/index.js b/dist/dev/mp-weixin/CUSTOMER/assets/index.js index 39200e6..7caee76 100644 --- a/dist/dev/mp-weixin/CUSTOMER/assets/index.js +++ b/dist/dev/mp-weixin/CUSTOMER/assets/index.js @@ -7,6 +7,7 @@ require("../../gen/Apis.js"); require("../../common/libraries/request.js"); require("../../common/store/useWeAppAuthStore.js"); require("../../common/libraries/apiLoading.js"); +require("../../common/store/useWatermarkStore.js"); require("../../common/store/useWorkStore.js"); if (!Array) { const _easycom_uni_icons2 = common_vendor.resolveComponent("uni-icons"); diff --git a/dist/dev/mp-weixin/CUSTOMER/bind_house/index.js b/dist/dev/mp-weixin/CUSTOMER/bind_house/index.js index 73ef903..693d9f6 100644 --- a/dist/dev/mp-weixin/CUSTOMER/bind_house/index.js +++ b/dist/dev/mp-weixin/CUSTOMER/bind_house/index.js @@ -1,16 +1,17 @@ "use strict"; const common_vendor = require("../../common/vendor.js"); -const CUSTOMER_bind_house_method = require("./method.js"); -const CUSTOMER_bind_house_model = require("./model.js"); -const gen_Enums = require("../../gen/Enums.js"); require("../../common/libraries/request.js"); +require("../../common/store/useWatermarkStore.js"); const common_store_useWeAppAuthStore = require("../../common/store/useWeAppAuthStore.js"); require("../../common/store/useWorkStore.js"); -require("../../common/libraries/naviHelper.js"); +const gen_Enums = require("../../gen/Enums.js"); +const CUSTOMER_bind_house_method = require("./method.js"); +const CUSTOMER_bind_house_model = require("./model.js"); require("../../gen/Apis.js"); require("../../common/libraries/apiLoading.js"); -require("../../common/libraries/userUserLogin.js"); +require("../../common/libraries/naviHelper.js"); require("../../common/libraries/sendWxWork.js"); +require("../../common/libraries/userUserLogin.js"); if (!Array) { const _easycom_hs_input2 = common_vendor.resolveComponent("hs-input"); const _easycom_hs_cell2 = common_vendor.resolveComponent("hs-cell"); diff --git a/dist/dev/mp-weixin/CUSTOMER/bind_house/method.js b/dist/dev/mp-weixin/CUSTOMER/bind_house/method.js index cb835b1..ccd1837 100644 --- a/dist/dev/mp-weixin/CUSTOMER/bind_house/method.js +++ b/dist/dev/mp-weixin/CUSTOMER/bind_house/method.js @@ -1,14 +1,15 @@ "use strict"; const common_vendor = require("../../common/vendor.js"); -const CUSTOMER_bind_house_model = require("./model.js"); -const common_libraries_naviHelper = require("../../common/libraries/naviHelper.js"); -const gen_Apis = require("../../gen/Apis.js"); -const common_libraries_apiLoading = require("../../common/libraries/apiLoading.js"); -const common_libraries_userUserLogin = require("../../common/libraries/userUserLogin.js"); -const common_libraries_sendWxWork = require("../../common/libraries/sendWxWork.js"); require("../../common/libraries/request.js"); +require("../../common/store/useWatermarkStore.js"); const common_store_useWeAppAuthStore = require("../../common/store/useWeAppAuthStore.js"); require("../../common/store/useWorkStore.js"); +const common_libraries_apiLoading = require("../../common/libraries/apiLoading.js"); +const common_libraries_naviHelper = require("../../common/libraries/naviHelper.js"); +const common_libraries_sendWxWork = require("../../common/libraries/sendWxWork.js"); +const common_libraries_userUserLogin = require("../../common/libraries/userUserLogin.js"); +const gen_Apis = require("../../gen/Apis.js"); +const CUSTOMER_bind_house_model = require("./model.js"); const auth = common_store_useWeAppAuthStore.useWeAppAuthStore(); const method = { nextStep(type) { @@ -21,15 +22,15 @@ const method = { } common_libraries_apiLoading.getApiLoading(gen_Apis.Apis.Archive.HouseOccupants.GetCustomerHouse, { phone: data == null ? void 0 : data.phone }).then( (res) => { - var _a2; + var _a2, _b2, _c2, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m; if (!((_a2 = res == null ? void 0 : res.data) == null ? void 0 : _a2.length)) { if (type === "phone") { common_vendor.index.redirectTo({ - url: "/CUSTOMER/house_select/index" + url: `/CUSTOMER/house_select/index?phone=${(_d = (_c2 = (_b2 = CUSTOMER_bind_house_model.useModel) == null ? void 0 : _b2.formData) == null ? void 0 : _c2.value) == null ? void 0 : _d.phone}&name=${(_g = (_f = (_e = CUSTOMER_bind_house_model.useModel) == null ? void 0 : _e.formData) == null ? void 0 : _f.value) == null ? void 0 : _g.name}` }); } else { common_vendor.index.navigateTo({ - url: "/CUSTOMER/house_select/index" + url: `/CUSTOMER/house_select/index?phone=${(_j = (_i = (_h = CUSTOMER_bind_house_model.useModel) == null ? void 0 : _h.formData) == null ? void 0 : _i.value) == null ? void 0 : _j.phone}&name=${(_m = (_l = (_k = CUSTOMER_bind_house_model.useModel) == null ? void 0 : _k.formData) == null ? void 0 : _l.value) == null ? void 0 : _m.name}` }); } } else { diff --git a/dist/dev/mp-weixin/CUSTOMER/bind_house_form/index.js b/dist/dev/mp-weixin/CUSTOMER/bind_house_form/index.js index 23b98e5..8754ecc 100644 --- a/dist/dev/mp-weixin/CUSTOMER/bind_house_form/index.js +++ b/dist/dev/mp-weixin/CUSTOMER/bind_house_form/index.js @@ -1,103 +1,144 @@ "use strict"; const common_vendor = require("../../common/vendor.js"); -const CUSTOMER_bind_house_form_model = require("./model.js"); const CUSTOMER_bind_house_form_method = require("./method.js"); +const CUSTOMER_bind_house_form_model = require("./model.js"); require("../../common/libraries/naviHelper.js"); require("../../gen/Apis.js"); require("../../common/libraries/request.js"); require("../../common/store/useWeAppAuthStore.js"); require("../../common/libraries/apiLoading.js"); +require("../../common/store/useWatermarkStore.js"); require("../../common/store/useWorkStore.js"); if (!Array) { - const _easycom_hs_input2 = common_vendor.resolveComponent("hs-input"); const _easycom_hs_cell2 = common_vendor.resolveComponent("hs-cell"); + const _easycom_hs_radio_cell_picker2 = common_vendor.resolveComponent("hs-radio-cell-picker"); + const _easycom_hs_input2 = common_vendor.resolveComponent("hs-input"); const _easycom_hs_upload_id_card2 = common_vendor.resolveComponent("hs-upload-id-card"); const _easycom_hs_upload2 = common_vendor.resolveComponent("hs-upload"); const _easycom_hs_footer2 = common_vendor.resolveComponent("hs-footer"); - (_easycom_hs_input2 + _easycom_hs_cell2 + _easycom_hs_upload_id_card2 + _easycom_hs_upload2 + _easycom_hs_footer2)(); + (_easycom_hs_cell2 + _easycom_hs_radio_cell_picker2 + _easycom_hs_input2 + _easycom_hs_upload_id_card2 + _easycom_hs_upload2 + _easycom_hs_footer2)(); } -const _easycom_hs_input = () => "../../components/hs-input/hs-input.js"; const _easycom_hs_cell = () => "../../components/hs-cell/hs-cell.js"; +const _easycom_hs_radio_cell_picker = () => "../../components/hs-radio-cell-picker/hs-radio-cell-picker.js"; +const _easycom_hs_input = () => "../../components/hs-input/hs-input.js"; const _easycom_hs_upload_id_card = () => "../../components/hs-upload-id-card/hs-upload-id-card.js"; const _easycom_hs_upload = () => "../../components/hs-upload/hs-upload.js"; const _easycom_hs_footer = () => "../../components/hs-footer/hs-footer.js"; if (!Math) { - (_easycom_hs_input + _easycom_hs_cell + _easycom_hs_upload_id_card + _easycom_hs_upload + _easycom_hs_footer)(); + (_easycom_hs_cell + _easycom_hs_radio_cell_picker + _easycom_hs_input + _easycom_hs_upload_id_card + _easycom_hs_upload + _easycom_hs_footer)(); } const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({ __name: "index", setup(__props) { + const HouseRegistersTypeEnum = { + AddOccupant: { text: "添加住户", value: "AddOccupant" }, + AddOwner: { text: "添加产权人", value: "AddOwner" } + }; + const HouseOccupantsResidentialRelationEnum = { + Tenant: { text: "租客", color: "#fa8c16", value: "Tenant" }, + Resident: { text: "住户", color: "#2db7f5", value: "Resident" }, + PrimaryTenant: { text: "主租人", color: "#87d068", value: "PrimaryTenant" } + }; common_vendor.onLoad((e) => { CUSTOMER_bind_house_form_model.useModel.formData.value.asset_houses_id = e == null ? void 0 : e.asset_houses_id; - common_vendor.index.qy.getCurExternalContact({ - success: function(res) { - CUSTOMER_bind_house_form_model.useModel.formData.value.external_userid = res == null ? void 0 : res.userId; - }, - fail: function(res) { - } - }); + console.log(e, "222"); + }); + common_vendor.onShow(() => { + var _a; + (_a = CUSTOMER_bind_house_form_method.method) == null ? void 0 : _a.init(); }); common_vendor.onUnload(() => { CUSTOMER_bind_house_form_model.useModel.formData.value = { type: "AddOwner", card_type: "MainlandID", house_relation: "Owner" }; }); return (_ctx, _cache) => { - var _a, _b, _c; - return { - a: common_vendor.o(($event) => common_vendor.unref(CUSTOMER_bind_house_form_model.useModel).formData.value.name = $event), + var _a, _b, _c, _d, _e, _f, _g; + return common_vendor.e({ + a: common_vendor.o((_a = common_vendor.unref(CUSTOMER_bind_house_form_method.method)) == null ? void 0 : _a.handleToSelectHouse), b: common_vendor.p({ + title: "选择房屋", + required: true, + borderTop: true, + isLink: true, + value: (_d = (_c = (_b = common_vendor.unref(CUSTOMER_bind_house_form_model.useModel)) == null ? void 0 : _b.formData) == null ? void 0 : _c.value) == null ? void 0 : _d.full_name, + isPlaceholder: "请选择房屋" + }), + c: common_vendor.o(($event) => common_vendor.unref(CUSTOMER_bind_house_form_model.useModel).formData.value.type = $event), + d: common_vendor.p({ + Enums: HouseRegistersTypeEnum, + title: "类型", + borderTop: true, + required: true, + valueModel: common_vendor.unref(CUSTOMER_bind_house_form_model.useModel).formData.value.type + }), + e: common_vendor.unref(CUSTOMER_bind_house_form_model.useModel).formData.value.type === "AddOccupant" + }, common_vendor.unref(CUSTOMER_bind_house_form_model.useModel).formData.value.type === "AddOccupant" ? { + f: common_vendor.o(($event) => common_vendor.unref(CUSTOMER_bind_house_form_model.useModel).formData.value.residential_relation = $event), + g: common_vendor.p({ + Enums: HouseOccupantsResidentialRelationEnum, + title: "居住关系", + borderTop: true, + required: true, + valueModel: common_vendor.unref(CUSTOMER_bind_house_form_model.useModel).formData.value.residential_relation + }) + } : {}, { + h: common_vendor.o(($event) => common_vendor.unref(CUSTOMER_bind_house_form_model.useModel).formData.value.name = $event), + i: common_vendor.p({ textAlign: "right", valueModel: common_vendor.unref(CUSTOMER_bind_house_form_model.useModel).formData.value.name }), - c: common_vendor.p({ + j: common_vendor.p({ title: "真实姓名", required: true, borderTop: true }), - d: common_vendor.o(($event) => common_vendor.unref(CUSTOMER_bind_house_form_model.useModel).formData.value.phone = $event), - e: common_vendor.p({ + k: common_vendor.o(($event) => common_vendor.unref(CUSTOMER_bind_house_form_model.useModel).formData.value.phone = $event), + l: common_vendor.p({ maxLength: "11", textAlign: "right", type: "number", valueModel: common_vendor.unref(CUSTOMER_bind_house_form_model.useModel).formData.value.phone }), - f: common_vendor.p({ + m: common_vendor.p({ title: "手机号", required: true, borderTop: true }), - g: common_vendor.o(($event) => common_vendor.unref(CUSTOMER_bind_house_form_model.useModel).formData.value.id_card = $event), - h: common_vendor.p({ + n: common_vendor.o(($event) => common_vendor.unref(CUSTOMER_bind_house_form_model.useModel).formData.value.id_card = $event), + o: common_vendor.p({ maxLength: "18", textAlign: "right", valueModel: common_vendor.unref(CUSTOMER_bind_house_form_model.useModel).formData.value.id_card }), - i: common_vendor.p({ + p: common_vendor.p({ title: "身份证号", required: true, borderTop: true }), - j: common_vendor.o(($event) => common_vendor.unref(CUSTOMER_bind_house_form_model.useModel).formData.value.card_front_image = $event), - k: common_vendor.o(($event) => common_vendor.unref(CUSTOMER_bind_house_form_model.useModel).formData.value.card_back_image = $event), - l: common_vendor.p({ + q: common_vendor.o(($event) => common_vendor.unref(CUSTOMER_bind_house_form_model.useModel).formData.value.card_front_image = $event), + r: common_vendor.o(($event) => common_vendor.unref(CUSTOMER_bind_house_form_model.useModel).formData.value.card_back_image = $event), + s: common_vendor.p({ required: true, valueFrontModel: common_vendor.unref(CUSTOMER_bind_house_form_model.useModel).formData.value.card_front_image, valueBackModel: common_vendor.unref(CUSTOMER_bind_house_form_model.useModel).formData.value.card_back_image }), - m: common_vendor.o(($event) => common_vendor.unref(CUSTOMER_bind_house_form_model.useModel).formData.value.ownership_info = $event), - n: common_vendor.p({ + t: common_vendor.unref(CUSTOMER_bind_house_form_model.useModel).formData.value.type === "AddOwner" + }, common_vendor.unref(CUSTOMER_bind_house_form_model.useModel).formData.value.type === "AddOwner" ? { + v: common_vendor.o(($event) => common_vendor.unref(CUSTOMER_bind_house_form_model.useModel).formData.value.ownership_info = $event), + w: common_vendor.p({ title: "上传房产证", count: 10, size: 4, required: true, borderTop: true, valueModel: common_vendor.unref(CUSTOMER_bind_house_form_model.useModel).formData.value.ownership_info - }), - o: common_vendor.o((_a = common_vendor.unref(CUSTOMER_bind_house_form_method.method)) == null ? void 0 : _a.handleSubmit), - p: common_vendor.p({ - btnParimaryName: "绑定房屋", - loading: (_c = (_b = common_vendor.unref(CUSTOMER_bind_house_form_model.useModel)) == null ? void 0 : _b.loading) == null ? void 0 : _c.value }) - }; + } : {}, { + x: common_vendor.o((_e = common_vendor.unref(CUSTOMER_bind_house_form_method.method)) == null ? void 0 : _e.handleSubmit), + y: common_vendor.p({ + btnParimaryName: "绑定房屋", + loading: (_g = (_f = common_vendor.unref(CUSTOMER_bind_house_form_model.useModel)) == null ? void 0 : _f.loading) == null ? void 0 : _g.value + }) + }); }; } }); diff --git a/dist/dev/mp-weixin/CUSTOMER/bind_house_form/index.json b/dist/dev/mp-weixin/CUSTOMER/bind_house_form/index.json index 7f3c536..0aa558a 100644 --- a/dist/dev/mp-weixin/CUSTOMER/bind_house_form/index.json +++ b/dist/dev/mp-weixin/CUSTOMER/bind_house_form/index.json @@ -1,8 +1,9 @@ { "navigationBarTitleText": "绑定产权人", "usingComponents": { - "hs-input": "../../components/hs-input/hs-input", "hs-cell": "../../components/hs-cell/hs-cell", + "hs-radio-cell-picker": "../../components/hs-radio-cell-picker/hs-radio-cell-picker", + "hs-input": "../../components/hs-input/hs-input", "hs-upload-id-card": "../../components/hs-upload-id-card/hs-upload-id-card", "hs-upload": "../../components/hs-upload/hs-upload", "hs-footer": "../../components/hs-footer/hs-footer" diff --git a/dist/dev/mp-weixin/CUSTOMER/bind_house_form/index.wxml b/dist/dev/mp-weixin/CUSTOMER/bind_house_form/index.wxml index e32aeb4..c5d7180 100644 --- a/dist/dev/mp-weixin/CUSTOMER/bind_house_form/index.wxml +++ b/dist/dev/mp-weixin/CUSTOMER/bind_house_form/index.wxml @@ -1 +1 @@ - 个人信息 \ No newline at end of file + 个人信息 \ No newline at end of file diff --git a/dist/dev/mp-weixin/CUSTOMER/bind_house_form/method.js b/dist/dev/mp-weixin/CUSTOMER/bind_house_form/method.js index 363ad31..1fbb9d4 100644 --- a/dist/dev/mp-weixin/CUSTOMER/bind_house_form/method.js +++ b/dist/dev/mp-weixin/CUSTOMER/bind_house_form/method.js @@ -4,10 +4,44 @@ const common_libraries_naviHelper = require("../../common/libraries/naviHelper.j const CUSTOMER_bind_house_form_model = require("./model.js"); const gen_Apis = require("../../gen/Apis.js"); const common_libraries_apiLoading = require("../../common/libraries/apiLoading.js"); +require("../../common/libraries/request.js"); +require("../../common/store/useWatermarkStore.js"); +require("../../common/store/useWeAppAuthStore.js"); +const common_store_useWorkStore = require("../../common/store/useWorkStore.js"); +const work = common_store_useWorkStore.useWorkStore(); const method = { + init() { + var _a, _b, _c; + console.log("init", work == null ? void 0 : work.selectWorkHouse); + CUSTOMER_bind_house_form_model.useModel.formData.value = { + ...CUSTOMER_bind_house_form_model.useModel.formData.value + }; + if ((_a = work == null ? void 0 : work.selectWorkHouse) == null ? void 0 : _a.value) { + CUSTOMER_bind_house_form_model.useModel.formData.value = { + ...CUSTOMER_bind_house_form_model.useModel.formData.value, + asset_houses_id: (_b = work == null ? void 0 : work.selectWorkHouse) == null ? void 0 : _b.value, + full_name: (_c = work == null ? void 0 : work.selectWorkHouse) == null ? void 0 : _c.label + }; + } + }, handleSubmit() { var _a, _b, _c, _d, _e; let data = (_b = (_a = CUSTOMER_bind_house_form_model.useModel) == null ? void 0 : _a.formData) == null ? void 0 : _b.value; + if (!(data == null ? void 0 : data.asset_houses_id)) { + return common_libraries_naviHelper.showToast("请选择房屋"); + } + if (!(data == null ? void 0 : data.type)) { + return common_libraries_naviHelper.showToast("请选择类型"); + } + if (data.type === "AddOwner") { + data.house_relation = "Owner"; + data.residential_relation = "PropertyOwner"; + } else { + data.house_relation = "Owner"; + } + if (!(data == null ? void 0 : data.residential_relation)) { + return common_libraries_naviHelper.showToast("请选择居住关系"); + } if (!(data == null ? void 0 : data.name)) { return common_libraries_naviHelper.showToast("请填写姓名"); } @@ -20,7 +54,7 @@ const method = { if (!((_c = data == null ? void 0 : data.card_front_image) == null ? void 0 : _c.length) || !((_d = data == null ? void 0 : data.card_back_image) == null ? void 0 : _d.length)) { return common_libraries_naviHelper.showToast("请上传身份证正反面"); } - if (!((_e = data == null ? void 0 : data.ownership_info) == null ? void 0 : _e.length)) { + if (data.type === "AddOwner" && !((_e = data == null ? void 0 : data.ownership_info) == null ? void 0 : _e.length)) { return common_libraries_naviHelper.showToast("请上传房产证"); } common_libraries_apiLoading.getApiLoading(gen_Apis.Apis.Archive.HouseRegisters.RegisterHouse, { @@ -32,6 +66,11 @@ const method = { }); console.log(res); }); + }, + handleToSelectHouse() { + common_vendor.index.navigateTo({ + url: "/pages/public/asset_houses/index?type=work_add" + }); } }; exports.method = method; diff --git a/dist/dev/mp-weixin/CUSTOMER/bind_house_form/model.js b/dist/dev/mp-weixin/CUSTOMER/bind_house_form/model.js index 7378b1b..ed45b33 100644 --- a/dist/dev/mp-weixin/CUSTOMER/bind_house_form/model.js +++ b/dist/dev/mp-weixin/CUSTOMER/bind_house_form/model.js @@ -1,7 +1,7 @@ "use strict"; const common_vendor = require("../../common/vendor.js"); const useModel = { - formData: common_vendor.ref({ type: "AddOwner", card_type: "MainlandID", house_relation: "Owner" }), + formData: common_vendor.ref({ card_type: "MainlandID" }), loading: common_vendor.ref(false) }; exports.useModel = useModel; diff --git a/dist/dev/mp-weixin/CUSTOMER/bind_house_form/success.js b/dist/dev/mp-weixin/CUSTOMER/bind_house_form/success.js index 157287c..cbd9a82 100644 --- a/dist/dev/mp-weixin/CUSTOMER/bind_house_form/success.js +++ b/dist/dev/mp-weixin/CUSTOMER/bind_house_form/success.js @@ -14,7 +14,9 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({ __name: "success", setup(__props) { const handleExitMiniProgram = () => { - common_vendor.index.exitMiniProgram(); + common_vendor.index.switchTab({ + url: "/pages/index/index" + }); }; return (_ctx, _cache) => { return { @@ -25,7 +27,7 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({ }), b: common_vendor.o(($event) => handleExitMiniProgram()), c: common_vendor.p({ - label: "返回聊天页", + label: "返回首页", type: "primary", size: "md" }) diff --git a/dist/dev/mp-weixin/CUSTOMER/house_Identity/index.js b/dist/dev/mp-weixin/CUSTOMER/house_Identity/index.js index 7f8367b..11599e3 100644 --- a/dist/dev/mp-weixin/CUSTOMER/house_Identity/index.js +++ b/dist/dev/mp-weixin/CUSTOMER/house_Identity/index.js @@ -1,15 +1,15 @@ "use strict"; const common_vendor = require("../../common/vendor.js"); -const CUSTOMER_house_Identity_model = require("./model.js"); -const CUSTOMER_house_Identity_method = require("./method.js"); -require("../../common/libraries/userUserLogin.js"); -const gen_Enums = require("../../gen/Enums.js"); require("../../common/libraries/request.js"); +require("../../common/store/useWatermarkStore.js"); const common_store_useWeAppAuthStore = require("../../common/store/useWeAppAuthStore.js"); require("../../common/store/useWorkStore.js"); -require("../../common/libraries/naviHelper.js"); +const gen_Enums = require("../../gen/Enums.js"); +const CUSTOMER_house_Identity_method = require("./method.js"); +const CUSTOMER_house_Identity_model = require("./model.js"); require("../../gen/Apis.js"); require("../../common/libraries/apiLoading.js"); +require("../../common/libraries/naviHelper.js"); require("../../common/libraries/sendWxWork.js"); if (!Array) { const _easycom_hs_radio2 = common_vendor.resolveComponent("hs-radio"); @@ -31,6 +31,7 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({ var _a, _b; await ((_a = common_vendor.getCurrentInstance()) == null ? void 0 : _a.appContext.config.globalProperties.$onLaunched); CUSTOMER_house_Identity_model.useModel.formData.value = e; + console.log(e, "eee"); if (((_b = auth == null ? void 0 : auth.data) == null ? void 0 : _b.environment) === "wxwork") { common_vendor.index.qy.getCurExternalContact({ success: function(res) { diff --git a/dist/dev/mp-weixin/CUSTOMER/house_Identity/method.js b/dist/dev/mp-weixin/CUSTOMER/house_Identity/method.js index bd974ad..3eecaad 100644 --- a/dist/dev/mp-weixin/CUSTOMER/house_Identity/method.js +++ b/dist/dev/mp-weixin/CUSTOMER/house_Identity/method.js @@ -1,11 +1,10 @@ "use strict"; const common_vendor = require("../../common/vendor.js"); -const CUSTOMER_house_Identity_model = require("./model.js"); -const common_libraries_naviHelper = require("../../common/libraries/naviHelper.js"); -const gen_Apis = require("../../gen/Apis.js"); const common_libraries_apiLoading = require("../../common/libraries/apiLoading.js"); -require("../../common/libraries/userUserLogin.js"); +const common_libraries_naviHelper = require("../../common/libraries/naviHelper.js"); const common_libraries_sendWxWork = require("../../common/libraries/sendWxWork.js"); +const gen_Apis = require("../../gen/Apis.js"); +const CUSTOMER_house_Identity_model = require("./model.js"); const method = { handleBindHouse() { var _a, _b; @@ -29,10 +28,10 @@ const method = { ); }, handleFindLinkClick(e) { - var _a; + var _a, _b, _c; if ((e == null ? void 0 : e.type) === "link") { common_vendor.index.navigateTo({ - url: `${e == null ? void 0 : e.url}?asset_houses_id=${(_a = CUSTOMER_house_Identity_model.useModel.formData.value) == null ? void 0 : _a.asset_houses_id}` + url: `${e == null ? void 0 : e.url}?asset_houses_id=${(_a = CUSTOMER_house_Identity_model.useModel.formData.value) == null ? void 0 : _a.asset_houses_id}&name=${(_b = CUSTOMER_house_Identity_model.useModel.formData.value) == null ? void 0 : _b.name}&phone=${(_c = CUSTOMER_house_Identity_model.useModel.formData.value) == null ? void 0 : _c.phone}` }); } if ((e == null ? void 0 : e.type) === "invitation") { diff --git a/dist/dev/mp-weixin/CUSTOMER/house_Identity/success.js b/dist/dev/mp-weixin/CUSTOMER/house_Identity/success.js index 91b6ee5..5c90d07 100644 --- a/dist/dev/mp-weixin/CUSTOMER/house_Identity/success.js +++ b/dist/dev/mp-weixin/CUSTOMER/house_Identity/success.js @@ -41,7 +41,7 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({ }), d: common_vendor.o(($event) => handleExitMiniProgram()), e: common_vendor.p({ - label: "返回聊天页", + label: "返回", type: "display", size: "md" }) diff --git a/dist/dev/mp-weixin/CUSTOMER/house_list/components/unBindpopup.js b/dist/dev/mp-weixin/CUSTOMER/house_list/components/unBindpopup.js index 2427854..8fe6d1e 100644 --- a/dist/dev/mp-weixin/CUSTOMER/house_list/components/unBindpopup.js +++ b/dist/dev/mp-weixin/CUSTOMER/house_list/components/unBindpopup.js @@ -5,6 +5,7 @@ const common_libraries_apiLoading = require("../../../common/libraries/apiLoadin const common_libraries_naviHelper = require("../../../common/libraries/naviHelper.js"); require("../../../common/libraries/request.js"); require("../../../common/store/useWeAppAuthStore.js"); +require("../../../common/store/useWatermarkStore.js"); require("../../../common/store/useWorkStore.js"); if (!Array) { const _easycom_hs_button2 = common_vendor.resolveComponent("hs-button"); diff --git a/dist/dev/mp-weixin/CUSTOMER/house_list/index.js b/dist/dev/mp-weixin/CUSTOMER/house_list/index.js index 1f79d96..eb040f2 100644 --- a/dist/dev/mp-weixin/CUSTOMER/house_list/index.js +++ b/dist/dev/mp-weixin/CUSTOMER/house_list/index.js @@ -7,6 +7,7 @@ const gen_Enums = require("../../gen/Enums.js"); require("../../common/libraries/request.js"); require("../../common/store/useWeAppAuthStore.js"); require("../../gen/Apis.js"); +require("../../common/store/useWatermarkStore.js"); require("../../common/store/useWorkStore.js"); require("../../common/libraries/apiLoading.js"); if (!Array) { diff --git a/dist/dev/mp-weixin/CUSTOMER/house_select/index.js b/dist/dev/mp-weixin/CUSTOMER/house_select/index.js index 4c44e24..b353299 100644 --- a/dist/dev/mp-weixin/CUSTOMER/house_select/index.js +++ b/dist/dev/mp-weixin/CUSTOMER/house_select/index.js @@ -1,11 +1,12 @@ "use strict"; const common_vendor = require("../../common/vendor.js"); -const CUSTOMER_house_select_model = require("./model.js"); const CUSTOMER_house_select_method = require("./method.js"); +const CUSTOMER_house_select_model = require("./model.js"); require("../../gen/Apis.js"); require("../../common/libraries/request.js"); require("../../common/store/useWeAppAuthStore.js"); require("../../common/libraries/apiLoading.js"); +require("../../common/store/useWatermarkStore.js"); require("../../common/store/useWorkStore.js"); if (!Array) { const _easycom_up_search2 = common_vendor.resolveComponent("up-search"); @@ -25,6 +26,7 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({ common_vendor.onLoad((e) => { var _a; CUSTOMER_house_select_model.useModel.pageFormData.value = e; + console.log(e, "eee"); (_a = CUSTOMER_house_select_method.method) == null ? void 0 : _a.handleSearch(); }); return (_ctx, _cache) => { diff --git a/dist/dev/mp-weixin/CUSTOMER/list_bill/index.js b/dist/dev/mp-weixin/CUSTOMER/list_bill/index.js index 729abeb..d75c922 100644 --- a/dist/dev/mp-weixin/CUSTOMER/list_bill/index.js +++ b/dist/dev/mp-weixin/CUSTOMER/list_bill/index.js @@ -8,6 +8,7 @@ require("../../common/libraries/apiLoading.js"); require("../../gen/Apis.js"); require("../../common/libraries/request.js"); require("../../common/store/useWeAppAuthStore.js"); +require("../../common/store/useWatermarkStore.js"); require("../../common/store/useWorkStore.js"); require("../../common/libraries/sendWxWork.js"); require("../../common/libraries/naviHelper.js"); diff --git a/dist/dev/mp-weixin/CUSTOMER/list_bill/method.js b/dist/dev/mp-weixin/CUSTOMER/list_bill/method.js index 503a60d..68f9bc5 100644 --- a/dist/dev/mp-weixin/CUSTOMER/list_bill/method.js +++ b/dist/dev/mp-weixin/CUSTOMER/list_bill/method.js @@ -5,6 +5,7 @@ const common_libraries_apiLoading = require("../../common/libraries/apiLoading.j const gen_Apis = require("../../gen/Apis.js"); const common_libraries_sendWxWork = require("../../common/libraries/sendWxWork.js"); require("../../common/libraries/request.js"); +require("../../common/store/useWatermarkStore.js"); const common_store_useWeAppAuthStore = require("../../common/store/useWeAppAuthStore.js"); require("../../common/store/useWorkStore.js"); const common_libraries_naviHelper = require("../../common/libraries/naviHelper.js"); diff --git a/dist/dev/mp-weixin/CUSTOMER/list_house/components/SearchBox.js b/dist/dev/mp-weixin/CUSTOMER/list_house/components/SearchBox.js index e955429..b0139dc 100644 --- a/dist/dev/mp-weixin/CUSTOMER/list_house/components/SearchBox.js +++ b/dist/dev/mp-weixin/CUSTOMER/list_house/components/SearchBox.js @@ -6,6 +6,7 @@ require("../../../gen/Apis.js"); require("../../../common/libraries/request.js"); require("../../../common/store/useWeAppAuthStore.js"); require("../../../common/libraries/apiLoading.js"); +require("../../../common/store/useWatermarkStore.js"); require("../../../common/store/useWorkStore.js"); require("../../../common/libraries/userUserLogin.js"); if (!Array) { diff --git a/dist/dev/mp-weixin/CUSTOMER/list_house/index.js b/dist/dev/mp-weixin/CUSTOMER/list_house/index.js index 115a183..32a4977 100644 --- a/dist/dev/mp-weixin/CUSTOMER/list_house/index.js +++ b/dist/dev/mp-weixin/CUSTOMER/list_house/index.js @@ -6,6 +6,7 @@ require("../../gen/Apis.js"); require("../../common/libraries/request.js"); require("../../common/store/useWeAppAuthStore.js"); require("../../common/libraries/apiLoading.js"); +require("../../common/store/useWatermarkStore.js"); require("../../common/store/useWorkStore.js"); require("../../common/libraries/userUserLogin.js"); if (!Array) { diff --git a/dist/dev/mp-weixin/CUSTOMER/list_user/index.js b/dist/dev/mp-weixin/CUSTOMER/list_user/index.js index d95432c..e0f8538 100644 --- a/dist/dev/mp-weixin/CUSTOMER/list_user/index.js +++ b/dist/dev/mp-weixin/CUSTOMER/list_user/index.js @@ -1,12 +1,13 @@ "use strict"; const common_vendor = require("../../common/vendor.js"); -const CUSTOMER_list_user_model = require("./model.js"); -const CUSTOMER_list_user_method = require("./method.js"); const gen_Enums = require("../../gen/Enums.js"); +const CUSTOMER_list_user_method = require("./method.js"); +const CUSTOMER_list_user_model = require("./model.js"); require("../../gen/Apis.js"); require("../../common/libraries/request.js"); require("../../common/store/useWeAppAuthStore.js"); require("../../common/libraries/apiLoading.js"); +require("../../common/store/useWatermarkStore.js"); require("../../common/store/useWorkStore.js"); if (!Array) { const _easycom_up_search2 = common_vendor.resolveComponent("up-search"); @@ -59,8 +60,8 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({ c: common_vendor.t(k == null ? void 0 : k.phone), d: (k == null ? void 0 : k.house_relation) === "Owner" }, (k == null ? void 0 : k.house_relation) === "Owner" ? {} : {}, (i == null ? void 0 : i.is_contact) ? {} : {}, { - e: k == null ? void 0 : k.residential_relation - }, (k == null ? void 0 : k.residential_relation) ? { + e: (k == null ? void 0 : k.house_relation) === "NonOwner" && (k == null ? void 0 : k.residential_relation) + }, (k == null ? void 0 : k.house_relation) === "NonOwner" && (k == null ? void 0 : k.residential_relation) ? { f: "508bcffd-3-" + i0 + "-" + i1 + ",508bcffd-1", g: common_vendor.p({ Enums: common_vendor.unref(gen_Enums.HouseOccupantsResidentialRelationEnum), diff --git a/dist/dev/mp-weixin/CUSTOMER/list_user/index.json b/dist/dev/mp-weixin/CUSTOMER/list_user/index.json index 6f9b42e..f0e9862 100644 --- a/dist/dev/mp-weixin/CUSTOMER/list_user/index.json +++ b/dist/dev/mp-weixin/CUSTOMER/list_user/index.json @@ -1,5 +1,5 @@ { - "navigationBarTitleText": "用户列表", + "navigationBarTitleText": "客户列表", "usingComponents": { "up-search": "../../node-modules/uview-plus/components/u-search/u-search", "up-avatar": "../../node-modules/uview-plus/components/u-avatar/u-avatar", diff --git a/dist/dev/mp-weixin/CUSTOMER/show/index.js b/dist/dev/mp-weixin/CUSTOMER/show/index.js index b3b1112..d8cc988 100644 --- a/dist/dev/mp-weixin/CUSTOMER/show/index.js +++ b/dist/dev/mp-weixin/CUSTOMER/show/index.js @@ -7,6 +7,7 @@ require("../../gen/Apis.js"); require("../../common/libraries/request.js"); require("../../common/store/useWeAppAuthStore.js"); require("../../common/libraries/apiLoading.js"); +require("../../common/store/useWatermarkStore.js"); require("../../common/store/useWorkStore.js"); require("../../common/libraries/sendWxWork.js"); require("../../common/libraries/naviHelper.js"); diff --git a/dist/dev/mp-weixin/CUSTOMER/update/index.js b/dist/dev/mp-weixin/CUSTOMER/update/index.js index 66cca0c..eab88e0 100644 --- a/dist/dev/mp-weixin/CUSTOMER/update/index.js +++ b/dist/dev/mp-weixin/CUSTOMER/update/index.js @@ -2,6 +2,7 @@ const common_vendor = require("../../common/vendor.js"); const CUSTOMER_update_model = require("./model.js"); require("../../common/libraries/request.js"); +require("../../common/store/useWatermarkStore.js"); require("../../common/store/useWeAppAuthStore.js"); require("../../common/store/useWorkStore.js"); require("../../gen/Apis.js"); diff --git a/dist/dev/mp-weixin/INDEX/pass/index.js b/dist/dev/mp-weixin/INDEX/pass/index.js new file mode 100644 index 0000000..609e247 --- /dev/null +++ b/dist/dev/mp-weixin/INDEX/pass/index.js @@ -0,0 +1,84 @@ +"use strict"; +const common_vendor = require("../../common/vendor.js"); +const gen_Enums = require("../../gen/Enums.js"); +const INDEX_pass_method = require("./method.js"); +const INDEX_pass_model = require("./model.js"); +require("../../common/libraries/apiLoading.js"); +require("../../common/libraries/day.js"); +require("../../common/libraries/naviHelper.js"); +require("../../gen/Apis.js"); +require("../../common/libraries/request.js"); +require("../../common/store/useWeAppAuthStore.js"); +require("../../common/store/useWatermarkStore.js"); +require("../../common/store/useWorkStore.js"); +if (!Array) { + const _easycom_uni_icons2 = common_vendor.resolveComponent("uni-icons"); + const _easycom_u_avatar2 = common_vendor.resolveComponent("u-avatar"); + const _easycom_hs_footer2 = common_vendor.resolveComponent("hs-footer"); + (_easycom_uni_icons2 + _easycom_u_avatar2 + _easycom_hs_footer2)(); +} +const _easycom_uni_icons = () => "../../uni_modules/uni-icons/components/uni-icons/uni-icons.js"; +const _easycom_u_avatar = () => "../../node-modules/uview-plus/components/u-avatar/u-avatar.js"; +const _easycom_hs_footer = () => "../../components/hs-footer/hs-footer.js"; +if (!Math) { + (_easycom_uni_icons + _easycom_u_avatar + _easycom_hs_footer)(); +} +const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({ + __name: "index", + setup(__props) { + common_vendor.onLoad((e) => { + var _a; + (_a = INDEX_pass_method.method) == null ? void 0 : _a.getShow(e); + console.log(e); + }); + return (_ctx, _cache) => { + var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _A, _B, _C, _D, _E, _F, _G, _H, _I, _J, _K, _L, _M, _N, _O, _P, _Q, _R, _S, _T, _U, _V, _W, _X, _Y, _Z, __, _$, _aa, _ba, _ca, _da, _ea; + return common_vendor.e({ + a: (_b = (_a = common_vendor.unref(INDEX_pass_model.useModel)) == null ? void 0 : _a.isExpired) == null ? void 0 : _b.value + }, ((_d = (_c = common_vendor.unref(INDEX_pass_model.useModel)) == null ? void 0 : _c.isExpired) == null ? void 0 : _d.value) ? { + b: common_vendor.p({ + type: "info", + size: "50", + color: "#FF4D4F" + }) + } : { + c: common_vendor.p({ + src: ((_g = (_f = (_e = common_vendor.unref(INDEX_pass_model.useModel)) == null ? void 0 : _e.userInfo) == null ? void 0 : _f.value) == null ? void 0 : _g.worker_photo) && ((_k = (_j = (_i = (_h = common_vendor.unref(INDEX_pass_model.useModel)) == null ? void 0 : _h.userInfo) == null ? void 0 : _i.value) == null ? void 0 : _j.worker_photo[0]) == null ? void 0 : _k.url), + size: "70" + }), + d: common_vendor.t(((_n = (_m = (_l = common_vendor.unref(INDEX_pass_model.useModel)) == null ? void 0 : _l.showData) == null ? void 0 : _m.value) == null ? void 0 : _n.visitor_name) || "-"), + e: common_vendor.t(((_q = (_p = (_o = common_vendor.unref(INDEX_pass_model.useModel)) == null ? void 0 : _o.showData) == null ? void 0 : _p.value) == null ? void 0 : _q.visitor_phone) || "-") + }, { + f: common_vendor.t(((_u = (_t = (_s = (_r = common_vendor.unref(INDEX_pass_model.useModel)) == null ? void 0 : _r.showData) == null ? void 0 : _s.value) == null ? void 0 : _t.asset_house) == null ? void 0 : _u.full_name) || "-"), + g: (_w = (_v = common_vendor.unref(INDEX_pass_model.useModel)) == null ? void 0 : _v.isExpired) == null ? void 0 : _w.value + }, ((_y = (_x = common_vendor.unref(INDEX_pass_model.useModel)) == null ? void 0 : _x.isExpired) == null ? void 0 : _y.value) ? {} : { + h: common_vendor.t((_C = common_vendor.unref(gen_Enums.VisitorAppliesStatusEnum)[(_B = (_A = (_z = common_vendor.unref(INDEX_pass_model.useModel)) == null ? void 0 : _z.showData) == null ? void 0 : _A.value) == null ? void 0 : _B.status]) == null ? void 0 : _C.text), + i: common_vendor.n(`value status_${(_F = (_E = (_D = common_vendor.unref(INDEX_pass_model.useModel)) == null ? void 0 : _D.showData) == null ? void 0 : _E.value) == null ? void 0 : _F.status}`) + }, { + j: (_I = (_H = (_G = common_vendor.unref(INDEX_pass_model.useModel)) == null ? void 0 : _G.showData) == null ? void 0 : _H.value) == null ? void 0 : _I.remark + }, ((_L = (_K = (_J = common_vendor.unref(INDEX_pass_model.useModel)) == null ? void 0 : _J.showData) == null ? void 0 : _K.value) == null ? void 0 : _L.remark) ? { + k: common_vendor.t(((_O = (_N = (_M = common_vendor.unref(INDEX_pass_model.useModel)) == null ? void 0 : _M.showData) == null ? void 0 : _N.value) == null ? void 0 : _O.remark) || "-") + } : {}, { + l: common_vendor.t(((_S = (_R = (_Q = (_P = common_vendor.unref(INDEX_pass_model.useModel)) == null ? void 0 : _P.showData) == null ? void 0 : _Q.value) == null ? void 0 : _R.last_enter_record) == null ? void 0 : _S.enter_time) || "-"), + m: common_vendor.t(((_W = (_V = (_U = (_T = common_vendor.unref(INDEX_pass_model.useModel)) == null ? void 0 : _T.showData) == null ? void 0 : _U.value) == null ? void 0 : _V.last_exit_record) == null ? void 0 : _W.exit_time) || "-"), + n: ((_Z = (_Y = (_X = common_vendor.unref(INDEX_pass_model.useModel)) == null ? void 0 : _X.showData) == null ? void 0 : _Y.value) == null ? void 0 : _Z.status) === "Approved" && !((_$ = (__ = common_vendor.unref(INDEX_pass_model.useModel)) == null ? void 0 : __.isExpired) == null ? void 0 : _$.value) + }, ((_ca = (_ba = (_aa = common_vendor.unref(INDEX_pass_model.useModel)) == null ? void 0 : _aa.showData) == null ? void 0 : _ba.value) == null ? void 0 : _ca.status) === "Approved" && !((_ea = (_da = common_vendor.unref(INDEX_pass_model.useModel)) == null ? void 0 : _da.isExpired) == null ? void 0 : _ea.value) ? { + o: common_vendor.o(($event) => { + var _a2; + return (_a2 = common_vendor.unref(INDEX_pass_method.method)) == null ? void 0 : _a2.handleSubmit("enter"); + }), + p: common_vendor.o(($event) => { + var _a2; + return (_a2 = common_vendor.unref(INDEX_pass_method.method)) == null ? void 0 : _a2.handleSubmit("exit"); + }), + q: common_vendor.p({ + btnParimaryName: "进入小区", + btnOtherShow: true, + btnOtherName: "离开小区" + }) + } : {}); + }; + } +}); +const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__file", "/Users/zsq/Sources/github/2025property-pay/pay-employee/src/INDEX/pass/index.vue"]]); +wx.createPage(MiniProgramPage); diff --git a/dist/dev/mp-weixin/INDEX/pass/index.json b/dist/dev/mp-weixin/INDEX/pass/index.json new file mode 100644 index 0000000..30891d6 --- /dev/null +++ b/dist/dev/mp-weixin/INDEX/pass/index.json @@ -0,0 +1,8 @@ +{ + "navigationBarTitleText": "出入管理", + "usingComponents": { + "uni-icons": "../../uni_modules/uni-icons/components/uni-icons/uni-icons", + "u-avatar": "../../node-modules/uview-plus/components/u-avatar/u-avatar", + "hs-footer": "../../components/hs-footer/hs-footer" + } +} \ No newline at end of file diff --git a/dist/dev/mp-weixin/INDEX/pass/index.wxml b/dist/dev/mp-weixin/INDEX/pass/index.wxml new file mode 100644 index 0000000..61a5893 --- /dev/null +++ b/dist/dev/mp-weixin/INDEX/pass/index.wxml @@ -0,0 +1 @@ + 通行证已失效 该二维码已失效,请和客户确认出入信息 关联房屋 {{f}} 状态 已失效 {{h}} 事项 {{k}} 上次进入时间 {{l}} 上次离开时间 {{m}} \ No newline at end of file diff --git a/dist/dev/mp-weixin/INDEX/pass/index.wxss b/dist/dev/mp-weixin/INDEX/pass/index.wxss new file mode 100644 index 0000000..a07e730 --- /dev/null +++ b/dist/dev/mp-weixin/INDEX/pass/index.wxss @@ -0,0 +1,64 @@ +page { + background-color: #f8f8f8; +} +.release_items_page { + padding: 40rpx 0; + padding-bottom: calc(130rpx + constant(safe-area-inset-bottom)); + padding-bottom: calc(130rpx + env(safe-area-inset-bottom)); +} +.expired { + text-align: center; +} +.expired .des { + padding: 15rpx 0 10rpx 0; + font-size: 28rpx; +} +.expired .sub_des { + color: #333333; + font-size: 23rpx; + padding-top: 5rpx; +} +.release_content { + background-color: #fff; + border-radius: 20rpx; + margin: 0 30rpx; + overflow: hidden; + padding: 50rpx 0 30rpx 0; +} +.release_content .user_info { + color: #3d3d3d; + font-size: 26rpx; + text-align: center; +} +.release_content .user_info .name { + font-size: 32rpx; + font-weight: bold; + padding: 18rpx 0 6rpx 0; +} +.release_content .avatar { + display: flex; + align-items: center; + justify-content: center; + margin: 0 auto; +} +.outer_info { + font-size: 28rpx; + border-top: 1rpx solid #eee; + margin: 30rpx 30rpx 0 30rpx; +} +.outer_info .cell_items { + display: flex; + align-items: center; + justify-content: space-between; + padding-top: 25rpx; +} +.outer_info .cell_items .label { + font-size: 30rpx; + color: #666; +} +.status_Approved { + color: #55c51d; +} +.status_expired { + color: #cf1322; +} \ No newline at end of file diff --git a/dist/dev/mp-weixin/INDEX/pass/method.js b/dist/dev/mp-weixin/INDEX/pass/method.js new file mode 100644 index 0000000..ac6c9d7 --- /dev/null +++ b/dist/dev/mp-weixin/INDEX/pass/method.js @@ -0,0 +1,36 @@ +"use strict"; +const common_libraries_apiLoading = require("../../common/libraries/apiLoading.js"); +const common_libraries_day = require("../../common/libraries/day.js"); +const common_libraries_naviHelper = require("../../common/libraries/naviHelper.js"); +const gen_Apis = require("../../gen/Apis.js"); +const INDEX_pass_model = require("./model.js"); +const getShow = (data) => { + common_libraries_apiLoading.getApiLoading(gen_Apis.Apis.Visitor.VisitorApplies.Show, data).then((res) => { + var _a, _b, _c, _d, _e, _f; + INDEX_pass_model.useModel.showData.value = res == null ? void 0 : res.data; + if ((_b = (_a = res == null ? void 0 : res.data) == null ? void 0 : _a.renovation_workers) == null ? void 0 : _b.length) { + INDEX_pass_model.useModel.userInfo.value = (_d = (_c = res == null ? void 0 : res.data) == null ? void 0 : _c.renovation_workers) == null ? void 0 : _d[0]; + } + if ((_e = res == null ? void 0 : res.data) == null ? void 0 : _e.code_expired_at) { + INDEX_pass_model.useModel.isExpired.value = common_libraries_day.isDatePassed((_f = res == null ? void 0 : res.data) == null ? void 0 : _f.code_expired_at); + } + console.log(res); + }); +}; +const method = { + getShow, + handleSubmit(val) { + var _a, _b, _c; + common_libraries_apiLoading.getApiLoading(gen_Apis.Apis.Visitor.VisitorApplies.Scan, { + code: (_c = (_b = (_a = INDEX_pass_model.useModel) == null ? void 0 : _a.showData) == null ? void 0 : _b.value) == null ? void 0 : _c.visitor_code, + scan_type: val + }).then((res) => { + common_libraries_naviHelper.showToast("操作成功!", () => { + var _a2, _b2, _c2; + getShow({ id: (_c2 = (_b2 = (_a2 = INDEX_pass_model.useModel) == null ? void 0 : _a2.showData) == null ? void 0 : _b2.value) == null ? void 0 : _c2.id }); + }); + console.log(res); + }); + } +}; +exports.method = method; diff --git a/dist/dev/mp-weixin/INDEX/pass/model.js b/dist/dev/mp-weixin/INDEX/pass/model.js new file mode 100644 index 0000000..00dad53 --- /dev/null +++ b/dist/dev/mp-weixin/INDEX/pass/model.js @@ -0,0 +1,10 @@ +"use strict"; +const common_vendor = require("../../common/vendor.js"); +const useModel = { + formData: common_vendor.ref({}), + showData: common_vendor.ref([]), + arrearageHouses: common_vendor.ref([]), + isExpired: common_vendor.ref(false), + userInfo: common_vendor.ref({}) +}; +exports.useModel = useModel; diff --git a/dist/dev/mp-weixin/INDEX/release_items/index.js b/dist/dev/mp-weixin/INDEX/release_items/index.js new file mode 100644 index 0000000..0500ee9 --- /dev/null +++ b/dist/dev/mp-weixin/INDEX/release_items/index.js @@ -0,0 +1,65 @@ +"use strict"; +const common_vendor = require("../../common/vendor.js"); +const gen_Enums = require("../../gen/Enums.js"); +const INDEX_release_items_method = require("./method.js"); +const INDEX_release_items_model = require("./model.js"); +require("../../gen/Apis.js"); +require("../../common/libraries/request.js"); +require("../../common/store/useWeAppAuthStore.js"); +require("../../common/libraries/apiLoading.js"); +require("../../common/store/useWatermarkStore.js"); +require("../../common/store/useWorkStore.js"); +require("../../common/libraries/naviHelper.js"); +require("../../common/libraries/day.js"); +if (!Array) { + const _easycom_hs_footer2 = common_vendor.resolveComponent("hs-footer"); + _easycom_hs_footer2(); +} +const _easycom_hs_footer = () => "../../components/hs-footer/hs-footer.js"; +if (!Math) { + _easycom_hs_footer(); +} +const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({ + __name: "index", + setup(__props) { + common_vendor.onLoad((e) => { + var _a; + (_a = INDEX_release_items_method.method) == null ? void 0 : _a.getShow(e); + console.log(e); + }); + return (_ctx, _cache) => { + var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _A, _B, _C, _D, _E, _F, _G, _H, _I, _J, _K, _L, _M, _N, _O, _P, _Q, _R, _S, _T, _U, _V; + return common_vendor.e({ + a: common_vendor.t(((_d = (_c = (_b = (_a = common_vendor.unref(INDEX_release_items_model.useModel)) == null ? void 0 : _a.showData) == null ? void 0 : _b.value) == null ? void 0 : _c.asset_house) == null ? void 0 : _d.full_name) || "-"), + b: common_vendor.t((_h = common_vendor.unref(gen_Enums.GoodsReleasesPassedTypeEnum)[(_g = (_f = (_e = common_vendor.unref(INDEX_release_items_model.useModel)) == null ? void 0 : _e.showData) == null ? void 0 : _f.value) == null ? void 0 : _g.passed_type]) == null ? void 0 : _h.text), + c: common_vendor.t((_k = (_j = (_i = common_vendor.unref(INDEX_release_items_model.useModel)) == null ? void 0 : _i.showData) == null ? void 0 : _j.value) == null ? void 0 : _k.passed_time), + d: common_vendor.t((_n = (_m = (_l = common_vendor.unref(INDEX_release_items_model.useModel)) == null ? void 0 : _l.showData) == null ? void 0 : _m.value) == null ? void 0 : _n.apply_name), + e: (_p = (_o = common_vendor.unref(INDEX_release_items_model.useModel)) == null ? void 0 : _o.isExpired) == null ? void 0 : _p.value + }, ((_r = (_q = common_vendor.unref(INDEX_release_items_model.useModel)) == null ? void 0 : _q.isExpired) == null ? void 0 : _r.value) ? {} : { + f: common_vendor.t((_v = common_vendor.unref(gen_Enums.GoodsReleasesStatusEnum)[(_u = (_t = (_s = common_vendor.unref(INDEX_release_items_model.useModel)) == null ? void 0 : _s.showData) == null ? void 0 : _t.value) == null ? void 0 : _u.status]) == null ? void 0 : _v.text), + g: common_vendor.n(`value status_${(_y = (_x = (_w = common_vendor.unref(INDEX_release_items_model.useModel)) == null ? void 0 : _w.showData) == null ? void 0 : _x.value) == null ? void 0 : _y.status}`) + }, { + h: common_vendor.f((_B = (_A = (_z = common_vendor.unref(INDEX_release_items_model.useModel)) == null ? void 0 : _z.showData) == null ? void 0 : _A.value) == null ? void 0 : _B.goods, (i, index, i0) => { + return { + a: common_vendor.t(i == null ? void 0 : i.name), + b: common_vendor.t(i == null ? void 0 : i.number), + c: common_vendor.t(i == null ? void 0 : i.remark), + d: `goods_${index}` + }; + }), + i: (_E = (_D = (_C = common_vendor.unref(INDEX_release_items_model.useModel)) == null ? void 0 : _C.showData) == null ? void 0 : _D.value) == null ? void 0 : _E.remark + }, ((_H = (_G = (_F = common_vendor.unref(INDEX_release_items_model.useModel)) == null ? void 0 : _F.showData) == null ? void 0 : _G.value) == null ? void 0 : _H.remark) ? { + j: common_vendor.t((_K = (_J = (_I = common_vendor.unref(INDEX_release_items_model.useModel)) == null ? void 0 : _I.showData) == null ? void 0 : _J.value) == null ? void 0 : _K.remark) + } : {}, { + k: ((_N = (_M = (_L = common_vendor.unref(INDEX_release_items_model.useModel)) == null ? void 0 : _L.showData) == null ? void 0 : _M.value) == null ? void 0 : _N.status) === "Approved" && !((_P = (_O = common_vendor.unref(INDEX_release_items_model.useModel)) == null ? void 0 : _O.isExpired) == null ? void 0 : _P.value) + }, ((_S = (_R = (_Q = common_vendor.unref(INDEX_release_items_model.useModel)) == null ? void 0 : _Q.showData) == null ? void 0 : _R.value) == null ? void 0 : _S.status) === "Approved" && !((_U = (_T = common_vendor.unref(INDEX_release_items_model.useModel)) == null ? void 0 : _T.isExpired) == null ? void 0 : _U.value) ? { + l: common_vendor.o((_V = common_vendor.unref(INDEX_release_items_method.method)) == null ? void 0 : _V.handleSubmit), + m: common_vendor.p({ + btnParimaryName: "确认放行" + }) + } : {}); + }; + } +}); +const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__file", "/Users/zsq/Sources/github/2025property-pay/pay-employee/src/INDEX/release_items/index.vue"]]); +wx.createPage(MiniProgramPage); diff --git a/dist/dev/mp-weixin/INDEX/release_items/index.json b/dist/dev/mp-weixin/INDEX/release_items/index.json new file mode 100644 index 0000000..79d1a94 --- /dev/null +++ b/dist/dev/mp-weixin/INDEX/release_items/index.json @@ -0,0 +1,6 @@ +{ + "navigationBarTitleText": "出入登记", + "usingComponents": { + "hs-footer": "../../components/hs-footer/hs-footer" + } +} \ No newline at end of file diff --git a/dist/dev/mp-weixin/INDEX/release_items/index.wxml b/dist/dev/mp-weixin/INDEX/release_items/index.wxml new file mode 100644 index 0000000..df8b19c --- /dev/null +++ b/dist/dev/mp-weixin/INDEX/release_items/index.wxml @@ -0,0 +1 @@ + 物品放行 关联房屋 {{a}} 通行缘由 {{b}} 放行时间 {{c}} 申请人 {{d}} 放行状态 放行码已过期 {{f}} 物品信息 {{i.a}} x{{i.b}}{{i.c}} 备注:{{j}} \ No newline at end of file diff --git a/dist/dev/mp-weixin/INDEX/release_items/index.wxss b/dist/dev/mp-weixin/INDEX/release_items/index.wxss new file mode 100644 index 0000000..382a3e9 --- /dev/null +++ b/dist/dev/mp-weixin/INDEX/release_items/index.wxss @@ -0,0 +1,78 @@ +page { + background-color: #f8f8f8; +} +.release_items_page { + padding: 40rpx 0; + padding-bottom: calc(130rpx + constant(safe-area-inset-bottom)); + padding-bottom: calc(130rpx + env(safe-area-inset-bottom)); +} +.release_content { + background-color: #fff; + border-radius: 20rpx; + margin: 0 30rpx; + overflow: hidden; +} +.release_content_title { + font-size: 32rpx; + font-weight: bold; + color: #0082fa; + border-bottom: 1rpx solid #eee; + padding: 25rpx 0; + text-align: center; +} +.release_content_title text { + color: #f00; +} +.release_content .cell_content { + padding: 0 30rpx; + font-size: 28rpx; +} +.release_content .cell_content .cell_items { + display: flex; + align-items: center; + justify-content: space-between; + padding-top: 25rpx; +} +.release_content .cell_content .cell_items .label { + font-size: 30rpx; + color: #666; +} +.goods_info { + margin: 30rpx; + border-top: 1rpx solid #eee; +} +.goods_info .title { + padding: 30rpx 0; + font-size: 30rpx; + font-weight: bold; + color: #3d3d3d; +} +.goods_info .items_list { + background-color: #f5f6f9; + padding: 0 30rpx; + font-size: 28rpx; +} +.goods_info .items_list .label { + padding: 20rpx 0 0 0; + display: flex; + align-items: center; + justify-content: space-between; +} +.goods_info .items_list .des { + color: #666666; + padding: 10rpx 0 20rpx 0; +} +.status_Released, .status_Approved { + color: #55c51d; +} +.status_Pending { + color: #ff9900; +} +.remark { + padding: 0 30rpx 30rpx 30rpx; + color: #333333; + font-size: 28rpx; +} +.status_expired { + color: #cf1322; +} \ No newline at end of file diff --git a/dist/dev/mp-weixin/INDEX/release_items/method.js b/dist/dev/mp-weixin/INDEX/release_items/method.js new file mode 100644 index 0000000..8432b8c --- /dev/null +++ b/dist/dev/mp-weixin/INDEX/release_items/method.js @@ -0,0 +1,43 @@ +"use strict"; +const common_vendor = require("../../common/vendor.js"); +const gen_Apis = require("../../gen/Apis.js"); +const common_libraries_apiLoading = require("../../common/libraries/apiLoading.js"); +const INDEX_release_items_model = require("./model.js"); +const common_libraries_naviHelper = require("../../common/libraries/naviHelper.js"); +const common_libraries_day = require("../../common/libraries/day.js"); +const getShow = (data) => { + common_libraries_apiLoading.getApiLoading(gen_Apis.Apis.GoodsReleases.GoodsReleases.Show, data).then((res) => { + var _a, _b; + INDEX_release_items_model.useModel.showData.value = res == null ? void 0 : res.data; + if ((_a = res == null ? void 0 : res.data) == null ? void 0 : _a.passed_time) { + INDEX_release_items_model.useModel.isExpired.value = common_libraries_day.isDatePassed((_b = res == null ? void 0 : res.data) == null ? void 0 : _b.passed_time); + } + console.log(res); + }); +}; +const method = { + getShow, + handleSubmit() { + common_vendor.index.showModal({ + title: "提示", + content: "确定放行?", + success: function(res) { + var _a; + if (res.confirm) { + common_libraries_apiLoading.getApiLoading(gen_Apis.Apis.GoodsReleases.GoodsReleases.ScanRelease, { + code: (_a = INDEX_release_items_model.useModel.showData.value) == null ? void 0 : _a.code + }).then((res2) => { + var _a2, _b; + common_libraries_naviHelper.showToast("放行成功!"); + getShow((_b = (_a2 = INDEX_release_items_model.useModel) == null ? void 0 : _a2.showData) == null ? void 0 : _b.value); + console.log(res2); + }); + console.log("用户点击确定"); + } else if (res.cancel) { + console.log("用户点击取消"); + } + } + }); + } +}; +exports.method = method; diff --git a/dist/dev/mp-weixin/INDEX/release_items/model.js b/dist/dev/mp-weixin/INDEX/release_items/model.js new file mode 100644 index 0000000..691c85b --- /dev/null +++ b/dist/dev/mp-weixin/INDEX/release_items/model.js @@ -0,0 +1,8 @@ +"use strict"; +const common_vendor = require("../../common/vendor.js"); +const useModel = { + formData: common_vendor.ref({}), + showData: common_vendor.ref([]), + isExpired: common_vendor.ref(false) +}; +exports.useModel = useModel; diff --git a/dist/dev/mp-weixin/INDEX/task/list/index.js b/dist/dev/mp-weixin/INDEX/task/list/index.js new file mode 100644 index 0000000..283e51c --- /dev/null +++ b/dist/dev/mp-weixin/INDEX/task/list/index.js @@ -0,0 +1,86 @@ +"use strict"; +const common_vendor = require("../../../common/vendor.js"); +const INDEX_task_list_model = require("./model.js"); +const INDEX_task_list_method = require("./method.js"); +const gen_Enums = require("../../../gen/Enums.js"); +const common_libraries_day = require("../../../common/libraries/day.js"); +require("../../../common/libraries/apiLoading.js"); +require("../../../gen/Apis.js"); +require("../../../common/libraries/request.js"); +require("../../../common/store/useWeAppAuthStore.js"); +require("../../../common/store/useWatermarkStore.js"); +require("../../../common/store/useWorkStore.js"); +if (!Array) { + const _easycom_hs_enum_tag2 = common_vendor.resolveComponent("hs-enum-tag"); + const _easycom_hs_level2 = common_vendor.resolveComponent("hs-level"); + const _easycom_cc_scroll_loading2 = common_vendor.resolveComponent("cc-scroll-loading"); + (_easycom_hs_enum_tag2 + _easycom_hs_level2 + _easycom_cc_scroll_loading2)(); +} +const _easycom_hs_enum_tag = () => "../../../components/hs-enum-tag/hs-enum-tag.js"; +const _easycom_hs_level = () => "../../../components/hs-level/hs-level.js"; +const _easycom_cc_scroll_loading = () => "../../../common/components/cc-scroll-loading/cc-scroll-loading.js"; +if (!Math) { + (_easycom_hs_enum_tag + _easycom_hs_level + _easycom_cc_scroll_loading)(); +} +const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({ + __name: "index", + setup(__props) { + common_vendor.onShow(() => { + var _a; + INDEX_task_list_model.useModel.formData.value.page = 1; + INDEX_task_list_model.useModel.listData.value = []; + (_a = INDEX_task_list_method.method) == null ? void 0 : _a.getList(); + }); + return (_ctx, _cache) => { + var _a, _b, _c, _d, _e; + return { + a: common_vendor.f((_b = (_a = common_vendor.unref(INDEX_task_list_model.useModel)) == null ? void 0 : _a.listData) == null ? void 0 : _b.value, (i, index, i0) => { + var _a2, _b2; + return common_vendor.e({ + a: "3377f082-1-" + i0 + ",3377f082-0", + b: common_vendor.p({ + value: i == null ? void 0 : i.type, + Enums: common_vendor.unref(gen_Enums.HouseWorkOrdersTypeEnum) + }), + c: i == null ? void 0 : i.location + }, (i == null ? void 0 : i.location) ? { + d: "3377f082-2-" + i0 + ",3377f082-0", + e: common_vendor.p({ + value: i == null ? void 0 : i.location, + Enums: common_vendor.unref(gen_Enums.HouseWorkOrdersLocationEnum) + }) + } : {}, { + f: (i == null ? void 0 : i.status) === "Processing" + }, (i == null ? void 0 : i.status) === "Processing" ? { + g: "3377f082-3-" + i0 + ",3377f082-0", + h: common_vendor.p({ + level: i == null ? void 0 : i.level + }) + } : {}, { + i: "3377f082-4-" + i0 + ",3377f082-0", + j: common_vendor.p({ + value: i == null ? void 0 : i.status, + Enums: common_vendor.unref(gen_Enums.HouseWorkOrdersStatusEnum) + }), + k: common_vendor.n(`btn_status status_${i == null ? void 0 : i.status}`), + l: common_vendor.t(((_a2 = i == null ? void 0 : i.asset_house) == null ? void 0 : _a2.full_name) || ((_b2 = i == null ? void 0 : i.asset_project) == null ? void 0 : _b2.name)), + m: common_vendor.t(i == null ? void 0 : i.content), + n: common_vendor.t(common_vendor.unref(common_libraries_day.getDayTime)(i == null ? void 0 : i.expect_start_time)), + o: common_vendor.t(common_vendor.unref(common_libraries_day.getDayTime)(i == null ? void 0 : i.created_at)), + p: `items_${index}`, + q: common_vendor.o(($event) => { + var _a3; + return (_a3 = common_vendor.unref(INDEX_task_list_method.method)) == null ? void 0 : _a3.handleToDetail(i); + }, `items_${index}`) + }); + }), + b: common_vendor.o((_c = common_vendor.unref(INDEX_task_list_method.method)) == null ? void 0 : _c.handleLoad), + c: common_vendor.p({ + meta: (_e = (_d = common_vendor.unref(INDEX_task_list_model.useModel)) == null ? void 0 : _d.metaData) == null ? void 0 : _e.value + }) + }; + }; + } +}); +const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__file", "/Users/zsq/Sources/github/2025property-pay/pay-employee/src/INDEX/task/list/index.vue"]]); +wx.createPage(MiniProgramPage); diff --git a/dist/dev/mp-weixin/INDEX/task/list/index.json b/dist/dev/mp-weixin/INDEX/task/list/index.json new file mode 100644 index 0000000..d089af0 --- /dev/null +++ b/dist/dev/mp-weixin/INDEX/task/list/index.json @@ -0,0 +1,8 @@ +{ + "navigationBarTitleText": "任务中心", + "usingComponents": { + "hs-enum-tag": "../../../components/hs-enum-tag/hs-enum-tag", + "hs-level": "../../../components/hs-level/hs-level", + "cc-scroll-loading": "../../../common/components/cc-scroll-loading/cc-scroll-loading" + } +} \ No newline at end of file diff --git a/dist/dev/mp-weixin/INDEX/task/list/index.wxml b/dist/dev/mp-weixin/INDEX/task/list/index.wxml new file mode 100644 index 0000000..6dade2c --- /dev/null +++ b/dist/dev/mp-weixin/INDEX/task/list/index.wxml @@ -0,0 +1 @@ +{{i.l}}{{i.m}} 预计上门时间:{{i.n}}(2个小时内) 工单创建时间:{{i.o}} \ No newline at end of file diff --git a/dist/dev/mp-weixin/INDEX/task/list/index.wxss b/dist/dev/mp-weixin/INDEX/task/list/index.wxss new file mode 100644 index 0000000..e0d2866 --- /dev/null +++ b/dist/dev/mp-weixin/INDEX/task/list/index.wxss @@ -0,0 +1,137 @@ +page { + background-color: #f8f8f8; +} +.work_contents { + padding: 0 0 30rpx 0; +} +.work_contents .work_item { + background-color: #fff; + border-radius: 10rpx; + margin: 30rpx 30rpx 0 30rpx; + border-radius: 15rpx; + padding: 0 30rpx 30rpx 30rpx; +} +.work_contents .work_item .work_item_header { + display: flex; + align-items: center; + justify-content: space-between; + padding: 25rpx 0; +} +.work_contents .work_item .work_item_header .group_btn { + display: flex; + align-items: center; +} +.work_contents .work_item .work_item_header .btn_type { + border: 1rpx solid #eee; + font-size: 28rpx; + padding: 7rpx 19rpx; + border-radius: 100rpx; + margin-right: 10rpx; +} +.work_contents .work_item .work_item_header .btn_status { + border-radius: 100rpx; + font-size: 28rpx; + padding: 7rpx 19rpx; +} +.work_contents .work_item .work_item_header .status_Pending { + color: #f97316; + background-color: #fff7ed; +} +.work_contents .work_item .work_item_header .status_Processing, .work_contents .work_item .work_item_header .status_PendingAcceptance { + color: #0082fa; + background-color: #edf4ff; +} +.work_contents .work_item .work_item_header .status_PendingPayment { + color: #cf1322; + background-color: #ffeded; +} +.work_contents .work_item .work_item_header .status_Completed { + color: #22c55e; + background-color: #f0fdf4; +} +.work_contents .work_item .work_item_header .status_Closed { + color: #909399; + background-color: #f3f3f4; +} +.work_contents .work_item .full_name { + font-size: 28rpx; +} +.work_contents .work_item .work_item_cell { + display: flex; + align-items: center; + font-size: 30rpx; + color: #666; + padding-top: 20rpx; +} +.work_contents .work_item .work_item_cell text { + color: #333; +} +.work_contents .work_item .work_item_images { + display: flex; + align-items: center; + flex-wrap: wrap; +} +.work_contents .work_item .work_item_images .item { + width: 140rpx; + height: 140rpx; + border-radius: 10rpx; + background-color: #f8f8f8; + margin-top: 25rpx; + margin-right: 25rpx; + overflow: hidden; +} +.work_contents .work_item .work_item_images .item:nth-child(4n) { + margin-right: 0; +} +.work_contents .work_item .work_item_images .item image { + width: 100%; + height: 100%; +} +.work_contents .work_item .work_code { + font-size: 25rpx; +} +.work_item_time_footer { + margin-top: 30rpx; +} +.work_item_time_footer .todo_done_card_footer { + color: #666666; + font-size: 28rpx; + padding: 12rpx 20rpx; + border-radius: 10rpx; + color: #24bc21; + background: linear-gradient(90deg, #edffed 0%, rgba(232, 255, 231, 0) 103%); + display: flex; + align-items: center; + margin: 25rpx 0 0 0; +} +.work_item_time_footer .status_1 { + color: #24bc21; + background: linear-gradient(90deg, #edffed 0%, rgba(232, 255, 231, 0) 103%); +} +.work_item_time_footer .status_2 { + color: #0082fa; + background: linear-gradient(90deg, #eff7ff 0%, rgba(231, 241, 255, 0) 103%); +} +.work_item_time_footer .status_3 { + color: #f97316; + background: linear-gradient(90deg, #fff4ef 0%, rgba(255, 237, 231, 0) 103%); +} +.work_item_time_footer .status_4 { + color: #ea0000; + background: linear-gradient(90deg, #ffe5e5 0%, rgba(255, 255, 255, 0) 103%); +} +.work_item_time_footer .expected_time { + padding: 20rpx 0 0 0; + color: #333; + font-size: 28rpx; +} +.work_item_btn_group_footer { + border-top: 1rpx solid #eee; + margin-top: 25rpx; + padding-top: 25rpx; + font-size: 28rpx; + color: #666; +} +.card_status_4 { + border-top: 6px solid #ef4444; +} \ No newline at end of file diff --git a/dist/dev/mp-weixin/INDEX/task/list/method.js b/dist/dev/mp-weixin/INDEX/task/list/method.js new file mode 100644 index 0000000..1da989f --- /dev/null +++ b/dist/dev/mp-weixin/INDEX/task/list/method.js @@ -0,0 +1,27 @@ +"use strict"; +const common_vendor = require("../../../common/vendor.js"); +const INDEX_task_list_model = require("./model.js"); +const common_libraries_apiLoading = require("../../../common/libraries/apiLoading.js"); +const gen_Apis = require("../../../gen/Apis.js"); +const getList = () => { + var _a, _b; + common_libraries_apiLoading.getApiLoading(gen_Apis.Apis.WorkOrder.HouseWorkOrders.UnassignedList, (_b = (_a = INDEX_task_list_model.useModel) == null ? void 0 : _a.formData) == null ? void 0 : _b.value).then( + (res) => { + INDEX_task_list_model.useModel.listData.value = [...INDEX_task_list_model.useModel.listData.value, ...res == null ? void 0 : res.data]; + INDEX_task_list_model.useModel.metaData.value = res == null ? void 0 : res.meta; + } + ); +}; +const method = { + getList, + handleLoad(res) { + INDEX_task_list_model.useModel.formData.value.page = res == null ? void 0 : res.page; + getList(); + }, + handleToDetail(e) { + common_vendor.index.navigateTo({ + url: `/INDEX/task/show/index?id=${e == null ? void 0 : e.id}` + }); + } +}; +exports.method = method; diff --git a/dist/dev/mp-weixin/INDEX/task/list/model.js b/dist/dev/mp-weixin/INDEX/task/list/model.js new file mode 100644 index 0000000..27537d6 --- /dev/null +++ b/dist/dev/mp-weixin/INDEX/task/list/model.js @@ -0,0 +1,9 @@ +"use strict"; +const common_vendor = require("../../../common/vendor.js"); +const useModel = { + currentTabs: common_vendor.ref(0), + formData: common_vendor.ref({ page: 1 }), + listData: common_vendor.ref([]), + metaData: common_vendor.ref({}) +}; +exports.useModel = useModel; diff --git a/dist/dev/mp-weixin/INDEX/task/show/components/ProcessLogs.js b/dist/dev/mp-weixin/INDEX/task/show/components/ProcessLogs.js new file mode 100644 index 0000000..420397d --- /dev/null +++ b/dist/dev/mp-weixin/INDEX/task/show/components/ProcessLogs.js @@ -0,0 +1,56 @@ +"use strict"; +const common_vendor = require("../../../../common/vendor.js"); +const gen_Enums = require("../../../../gen/Enums.js"); +const INDEX_task_show_model = require("../model.js"); +if (!Array) { + const _easycom_hs_empty2 = common_vendor.resolveComponent("hs-empty"); + const _easycom_hs_enum_tag2 = common_vendor.resolveComponent("hs-enum-tag"); + const _easycom_up_steps_item2 = common_vendor.resolveComponent("up-steps-item"); + const _easycom_up_steps2 = common_vendor.resolveComponent("up-steps"); + (_easycom_hs_empty2 + _easycom_hs_enum_tag2 + _easycom_up_steps_item2 + _easycom_up_steps2)(); +} +const _easycom_hs_empty = () => "../../../../components/hs-empty/hs-empty.js"; +const _easycom_hs_enum_tag = () => "../../../../components/hs-enum-tag/hs-enum-tag.js"; +const _easycom_up_steps_item = () => "../../../../node-modules/uview-plus/components/u-steps-item/u-steps-item.js"; +const _easycom_up_steps = () => "../../../../node-modules/uview-plus/components/u-steps/u-steps.js"; +if (!Math) { + (_easycom_hs_empty + _easycom_hs_enum_tag + _easycom_up_steps_item + _easycom_up_steps)(); +} +const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({ + __name: "ProcessLogs", + setup(__props) { + return (_ctx, _cache) => { + var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k; + return common_vendor.e({ + a: !((_c = (_b = (_a = common_vendor.unref(INDEX_task_show_model.useModel)) == null ? void 0 : _a.logsData) == null ? void 0 : _b.value) == null ? void 0 : _c.length) + }, !((_f = (_e = (_d = common_vendor.unref(INDEX_task_show_model.useModel)) == null ? void 0 : _d.logsData) == null ? void 0 : _e.value) == null ? void 0 : _f.length) ? {} : {}, { + b: common_vendor.f((_h = (_g = common_vendor.unref(INDEX_task_show_model.useModel)) == null ? void 0 : _g.logsData) == null ? void 0 : _h.value, (i, index, i0) => { + return { + a: "bcbebac9-3-" + i0 + "," + ("bcbebac9-2-" + i0), + b: common_vendor.p({ + value: i == null ? void 0 : i.status, + Enums: common_vendor.unref(gen_Enums.HouseWorkOrdersStatusEnum) + }), + c: common_vendor.t(i == null ? void 0 : i.description), + d: common_vendor.f(i == null ? void 0 : i.attachments, (k, index2, i1) => { + return { + a: k == null ? void 0 : k.url, + b: `attachment_${index2}` + }; + }), + e: common_vendor.t(i == null ? void 0 : i.created_at), + f: `log_item_${index}`, + g: "bcbebac9-2-" + i0 + ",bcbebac9-1" + }; + }), + c: common_vendor.p({ + direction: "column", + dot: true, + current: ((_k = (_j = (_i = common_vendor.unref(INDEX_task_show_model.useModel)) == null ? void 0 : _i.logsData) == null ? void 0 : _j.value) == null ? void 0 : _k.length) - 1 + }) + }); + }; + } +}); +const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-bcbebac9"], ["__file", "/Users/zsq/Sources/github/2025property-pay/pay-employee/src/INDEX/task/show/components/ProcessLogs.vue"]]); +wx.createComponent(Component); diff --git a/dist/dev/mp-weixin/INDEX/task/show/components/ProcessLogs.json b/dist/dev/mp-weixin/INDEX/task/show/components/ProcessLogs.json new file mode 100644 index 0000000..b4f5e7b --- /dev/null +++ b/dist/dev/mp-weixin/INDEX/task/show/components/ProcessLogs.json @@ -0,0 +1,9 @@ +{ + "component": true, + "usingComponents": { + "hs-empty": "../../../../components/hs-empty/hs-empty", + "hs-enum-tag": "../../../../components/hs-enum-tag/hs-enum-tag", + "up-steps-item": "../../../../node-modules/uview-plus/components/u-steps-item/u-steps-item", + "up-steps": "../../../../node-modules/uview-plus/components/u-steps/u-steps" + } +} \ No newline at end of file diff --git a/dist/dev/mp-weixin/INDEX/task/show/components/ProcessLogs.wxml b/dist/dev/mp-weixin/INDEX/task/show/components/ProcessLogs.wxml new file mode 100644 index 0000000..2a5e79f --- /dev/null +++ b/dist/dev/mp-weixin/INDEX/task/show/components/ProcessLogs.wxml @@ -0,0 +1 @@ + 处理日志 工单进度:{{i.c}}{{i.e}} \ No newline at end of file diff --git a/dist/dev/mp-weixin/INDEX/task/show/components/ProcessLogs.wxss b/dist/dev/mp-weixin/INDEX/task/show/components/ProcessLogs.wxss new file mode 100644 index 0000000..b77245b --- /dev/null +++ b/dist/dev/mp-weixin/INDEX/task/show/components/ProcessLogs.wxss @@ -0,0 +1,34 @@ +.desc_title.data-v-bcbebac9 { + color: #333333; + font-size: 28rpx; + display: flex; + align-items: center; + justify-content: space-between; +} +.desc_content.data-v-bcbebac9 { + color: #666; + font-size: 28rpx; + padding: 10rpx 0 0 0; +} +.attachments.data-v-bcbebac9 { + display: flex; + align-items: center; + flex-wrap: wrap; + padding: 20rpx 0 0 0; +} +.attachments .attachment_item.data-v-bcbebac9 { + width: 140rpx; + height: 140rpx; + overflow: hidden; + border-radius: 15rpx; +} +.attachments image.data-v-bcbebac9 { + width: 100%; + height: 100%; + border-radius: 15rpx; +} +.created_at.data-v-bcbebac9 { + padding: 10rpx 0 30rpx 0; + color: #999; + font-size: 24rpx; +} \ No newline at end of file diff --git a/dist/dev/mp-weixin/INDEX/task/show/index.js b/dist/dev/mp-weixin/INDEX/task/show/index.js new file mode 100644 index 0000000..445cf2d --- /dev/null +++ b/dist/dev/mp-weixin/INDEX/task/show/index.js @@ -0,0 +1,129 @@ +"use strict"; +const common_vendor = require("../../../common/vendor.js"); +const common_libraries_day = require("../../../common/libraries/day.js"); +const INDEX_task_show_method = require("./method.js"); +const INDEX_task_show_model = require("./model.js"); +const gen_Enums = require("../../../gen/Enums.js"); +require("../../../common/libraries/apiLoading.js"); +require("../../../gen/Apis.js"); +require("../../../common/libraries/request.js"); +require("../../../common/store/useWeAppAuthStore.js"); +require("../../../common/store/useWatermarkStore.js"); +require("../../../common/store/useWorkStore.js"); +if (!Array) { + const _easycom_hs_enum_tag2 = common_vendor.resolveComponent("hs-enum-tag"); + const _easycom_hs_level2 = common_vendor.resolveComponent("hs-level"); + const _easycom_up_icon2 = common_vendor.resolveComponent("up-icon"); + const _easycom_hs_footer2 = common_vendor.resolveComponent("hs-footer"); + (_easycom_hs_enum_tag2 + _easycom_hs_level2 + _easycom_up_icon2 + _easycom_hs_footer2)(); +} +const _easycom_hs_enum_tag = () => "../../../components/hs-enum-tag/hs-enum-tag.js"; +const _easycom_hs_level = () => "../../../components/hs-level/hs-level.js"; +const _easycom_up_icon = () => "../../../node-modules/uview-plus/components/u-icon/u-icon.js"; +const _easycom_hs_footer = () => "../../../components/hs-footer/hs-footer.js"; +if (!Math) { + (_easycom_hs_enum_tag + _easycom_hs_level + _easycom_up_icon + MyProcessLogs + _easycom_hs_footer)(); +} +const MyProcessLogs = () => "./components/ProcessLogs.js"; +const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({ + __name: "index", + setup(__props) { + common_vendor.onLoad((e) => { + var _a, _b; + INDEX_task_show_model.useModel.dataShow.value = {}; + (_a = INDEX_task_show_method.method) == null ? void 0 : _a.getShow(e == null ? void 0 : e.id); + (_b = INDEX_task_show_method.method) == null ? void 0 : _b.getHouseWorkLogs(e == null ? void 0 : e.id); + }); + common_vendor.onShow(() => { + var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k; + if ((_c = (_b = (_a = INDEX_task_show_model.useModel) == null ? void 0 : _a.dataShow) == null ? void 0 : _b.value) == null ? void 0 : _c.id) { + (_g = INDEX_task_show_method.method) == null ? void 0 : _g.getShow((_f = (_e = (_d = INDEX_task_show_model.useModel) == null ? void 0 : _d.dataShow) == null ? void 0 : _e.value) == null ? void 0 : _f.id); + (_k = INDEX_task_show_method.method) == null ? void 0 : _k.getHouseWorkLogs((_j = (_i = (_h = INDEX_task_show_model.useModel) == null ? void 0 : _h.dataShow) == null ? void 0 : _i.value) == null ? void 0 : _j.id); + } + }); + common_vendor.onUnload(() => { + INDEX_task_show_model.useModel.logsData.value = []; + }); + return (_ctx, _cache) => { + var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _A, _B, _C, _D, _E, _F, _G, _H, _I, _J, _K, _L, _M, _N, _O, _P, _Q, _R, _S, _T, _U, _V, _W, _X, _Y, _Z, __, _$, _aa, _ba, _ca, _da, _ea, _fa, _ga, _ha, _ia, _ja, _ka, _la, _ma, _na, _oa, _pa, _qa, _ra, _sa, _ta, _ua, _va, _wa, _xa, _ya, _za, _Aa, _Ba, _Ca, _Da, _Ea, _Fa, _Ga, _Ha, _Ia, _Ja, _Ka, _La, _Ma, _Na, _Oa, _Pa, _Qa, _Ra, _Sa, _Ta, _Ua, _Va, _Wa, _Xa, _Ya, _Za, __a, _$a, _ab, _bb, _cb, _db, _eb, _fb, _gb, _hb, _ib, _jb, _kb, _lb, _mb, _nb, _ob, _pb, _qb, _rb, _sb, _tb, _ub, _vb, _wb, _xb, _yb; + return common_vendor.e({ + a: common_vendor.p({ + value: (_c = (_b = (_a = common_vendor.unref(INDEX_task_show_model.useModel)) == null ? void 0 : _a.dataShow) == null ? void 0 : _b.value) == null ? void 0 : _c.type, + Enums: common_vendor.unref(gen_Enums.HouseWorkOrdersTypeEnum) + }), + b: (_f = (_e = (_d = common_vendor.unref(INDEX_task_show_model.useModel)) == null ? void 0 : _d.dataShow) == null ? void 0 : _e.value) == null ? void 0 : _f.location + }, ((_i = (_h = (_g = common_vendor.unref(INDEX_task_show_model.useModel)) == null ? void 0 : _g.dataShow) == null ? void 0 : _h.value) == null ? void 0 : _i.location) ? { + c: common_vendor.p({ + value: (_l = (_k = (_j = common_vendor.unref(INDEX_task_show_model.useModel)) == null ? void 0 : _j.dataShow) == null ? void 0 : _k.value) == null ? void 0 : _l.location, + Enums: common_vendor.unref(gen_Enums.HouseWorkOrdersLocationEnum) + }) + } : {}, { + d: ((_o = (_n = (_m = common_vendor.unref(INDEX_task_show_model.useModel)) == null ? void 0 : _m.dataShow) == null ? void 0 : _n.value) == null ? void 0 : _o.status) == "Processing" + }, ((_r = (_q = (_p = common_vendor.unref(INDEX_task_show_model.useModel)) == null ? void 0 : _p.dataShow) == null ? void 0 : _q.value) == null ? void 0 : _r.status) == "Processing" ? { + e: common_vendor.p({ + level: (_u = (_t = (_s = common_vendor.unref(INDEX_task_show_model.useModel)) == null ? void 0 : _s.dataShow) == null ? void 0 : _t.value) == null ? void 0 : _u.level + }) + } : {}, { + f: common_vendor.p({ + value: (_x = (_w = (_v = common_vendor.unref(INDEX_task_show_model.useModel)) == null ? void 0 : _v.dataShow) == null ? void 0 : _w.value) == null ? void 0 : _x.status, + Enums: common_vendor.unref(gen_Enums.HouseWorkOrdersStatusEnum) + }), + g: common_vendor.n(`btn_status status_${(_A = (_z = (_y = common_vendor.unref(INDEX_task_show_model.useModel)) == null ? void 0 : _y.dataShow) == null ? void 0 : _z.value) == null ? void 0 : _A.status}`), + h: ((_D = (_C = (_B = common_vendor.unref(INDEX_task_show_model.useModel)) == null ? void 0 : _B.dataShow) == null ? void 0 : _C.value) == null ? void 0 : _D.expect_end_time) && ((_G = (_F = (_E = common_vendor.unref(INDEX_task_show_model.useModel)) == null ? void 0 : _E.dataShow) == null ? void 0 : _F.value) == null ? void 0 : _G.status) === "Pending" && ((_J = (_I = (_H = common_vendor.unref(INDEX_task_show_model.useModel)) == null ? void 0 : _H.dataShow) == null ? void 0 : _I.value) == null ? void 0 : _J.location) === "MyHome" + }, ((_M = (_L = (_K = common_vendor.unref(INDEX_task_show_model.useModel)) == null ? void 0 : _K.dataShow) == null ? void 0 : _L.value) == null ? void 0 : _M.expect_end_time) && ((_P = (_O = (_N = common_vendor.unref(INDEX_task_show_model.useModel)) == null ? void 0 : _N.dataShow) == null ? void 0 : _O.value) == null ? void 0 : _P.status) === "Pending" && ((_S = (_R = (_Q = common_vendor.unref(INDEX_task_show_model.useModel)) == null ? void 0 : _Q.dataShow) == null ? void 0 : _R.value) == null ? void 0 : _S.location) === "MyHome" ? { + i: common_vendor.p({ + name: "clock", + color: ((_W = common_vendor.unref(common_libraries_day.getTimeStatus)((_V = (_U = (_T = common_vendor.unref(INDEX_task_show_model.useModel)) == null ? void 0 : _T.dataShow) == null ? void 0 : _U.value) == null ? void 0 : _V.expect_end_time)) == null ? void 0 : _W.color) || "#000", + size: "14" + }), + j: common_vendor.t((__ = common_vendor.unref(common_libraries_day.getTimeStatus)((_Z = (_Y = (_X = common_vendor.unref(INDEX_task_show_model.useModel)) == null ? void 0 : _X.dataShow) == null ? void 0 : _Y.value) == null ? void 0 : _Z.expect_end_time)) == null ? void 0 : __.label), + k: common_vendor.n(`time_status status_${(_ca = common_vendor.unref(common_libraries_day.getTimeStatus)((_ba = (_aa = (_$ = common_vendor.unref(INDEX_task_show_model.useModel)) == null ? void 0 : _$.dataShow) == null ? void 0 : _aa.value) == null ? void 0 : _ba.expect_end_time)) == null ? void 0 : _ca.status}`) + } : {}, { + l: ((_fa = (_ea = (_da = common_vendor.unref(INDEX_task_show_model.useModel)) == null ? void 0 : _da.dataShow) == null ? void 0 : _ea.value) == null ? void 0 : _fa.type) === "Repair" || ((_ia = (_ha = (_ga = common_vendor.unref(INDEX_task_show_model.useModel)) == null ? void 0 : _ga.dataShow) == null ? void 0 : _ha.value) == null ? void 0 : _ia.type) === "Incident" + }, ((_la = (_ka = (_ja = common_vendor.unref(INDEX_task_show_model.useModel)) == null ? void 0 : _ja.dataShow) == null ? void 0 : _ka.value) == null ? void 0 : _la.type) === "Repair" || ((_oa = (_na = (_ma = common_vendor.unref(INDEX_task_show_model.useModel)) == null ? void 0 : _ma.dataShow) == null ? void 0 : _na.value) == null ? void 0 : _oa.type) === "Incident" ? { + m: common_vendor.t(((_sa = (_ra = (_qa = (_pa = common_vendor.unref(INDEX_task_show_model.useModel)) == null ? void 0 : _pa.dataShow) == null ? void 0 : _qa.value) == null ? void 0 : _ra.asset_house) == null ? void 0 : _sa.full_name) || ((_wa = (_va = (_ua = (_ta = common_vendor.unref(INDEX_task_show_model.useModel)) == null ? void 0 : _ta.dataShow) == null ? void 0 : _ua.value) == null ? void 0 : _va.asset_project) == null ? void 0 : _wa.name)), + n: common_vendor.t((_za = (_ya = (_xa = common_vendor.unref(INDEX_task_show_model.useModel)) == null ? void 0 : _xa.dataShow) == null ? void 0 : _ya.value) == null ? void 0 : _za.title) + } : {}, { + o: common_vendor.t((_Ca = (_Ba = (_Aa = common_vendor.unref(INDEX_task_show_model.useModel)) == null ? void 0 : _Aa.dataShow) == null ? void 0 : _Ba.value) == null ? void 0 : _Ca.content), + p: common_vendor.f((_Fa = (_Ea = (_Da = common_vendor.unref(INDEX_task_show_model.useModel)) == null ? void 0 : _Da.dataShow) == null ? void 0 : _Ea.value) == null ? void 0 : _Fa.attachments, (k, idx, i0) => { + return { + a: k == null ? void 0 : k.url, + b: `img_${idx}`, + c: common_vendor.o(($event) => { + var _a2; + return (_a2 = common_vendor.unref(INDEX_task_show_method.method)) == null ? void 0 : _a2.handlePreviewImage(idx); + }, `img_${idx}`) + }; + }), + q: common_vendor.t((_Ia = (_Ha = (_Ga = common_vendor.unref(INDEX_task_show_model.useModel)) == null ? void 0 : _Ga.dataShow) == null ? void 0 : _Ha.value) == null ? void 0 : _Ia.code), + r: ((_La = (_Ka = (_Ja = common_vendor.unref(INDEX_task_show_model.useModel)) == null ? void 0 : _Ja.dataShow) == null ? void 0 : _Ka.value) == null ? void 0 : _La.type) !== "RenovationInspection" && ((_Oa = (_Na = (_Ma = common_vendor.unref(INDEX_task_show_model.useModel)) == null ? void 0 : _Ma.dataShow) == null ? void 0 : _Na.value) == null ? void 0 : _Oa.type) !== "RenovationAcceptance" + }, ((_Ra = (_Qa = (_Pa = common_vendor.unref(INDEX_task_show_model.useModel)) == null ? void 0 : _Pa.dataShow) == null ? void 0 : _Qa.value) == null ? void 0 : _Ra.type) !== "RenovationInspection" && ((_Ua = (_Ta = (_Sa = common_vendor.unref(INDEX_task_show_model.useModel)) == null ? void 0 : _Sa.dataShow) == null ? void 0 : _Ta.value) == null ? void 0 : _Ua.type) !== "RenovationAcceptance" ? { + s: common_vendor.t(((_Ya = (_Xa = (_Wa = (_Va = common_vendor.unref(INDEX_task_show_model.useModel)) == null ? void 0 : _Va.dataShow) == null ? void 0 : _Wa.value) == null ? void 0 : _Xa.customer) == null ? void 0 : _Ya.name) || ((_ab = (_$a = (__a = (_Za = common_vendor.unref(INDEX_task_show_model.useModel)) == null ? void 0 : _Za.dataShow) == null ? void 0 : __a.value) == null ? void 0 : _$a.company_employee) == null ? void 0 : _ab.name)) + } : {}, { + t: (_db = (_cb = (_bb = common_vendor.unref(INDEX_task_show_model.useModel)) == null ? void 0 : _bb.dataShow) == null ? void 0 : _cb.value) == null ? void 0 : _db.reporter_name + }, ((_gb = (_fb = (_eb = common_vendor.unref(INDEX_task_show_model.useModel)) == null ? void 0 : _eb.dataShow) == null ? void 0 : _fb.value) == null ? void 0 : _gb.reporter_name) ? { + v: common_vendor.t((_jb = (_ib = (_hb = common_vendor.unref(INDEX_task_show_model.useModel)) == null ? void 0 : _hb.dataShow) == null ? void 0 : _ib.value) == null ? void 0 : _jb.reporter_name), + w: common_vendor.t((_mb = (_lb = (_kb = common_vendor.unref(INDEX_task_show_model.useModel)) == null ? void 0 : _kb.dataShow) == null ? void 0 : _lb.value) == null ? void 0 : _mb.reporter_phone) + } : {}, { + x: common_vendor.t((_pb = (_ob = (_nb = common_vendor.unref(INDEX_task_show_model.useModel)) == null ? void 0 : _nb.dataShow) == null ? void 0 : _ob.value) == null ? void 0 : _pb.created_at), + y: ((_sb = (_rb = (_qb = common_vendor.unref(INDEX_task_show_model.useModel)) == null ? void 0 : _qb.dataShow) == null ? void 0 : _rb.value) == null ? void 0 : _sb.status) === "Pending" + }, ((_vb = (_ub = (_tb = common_vendor.unref(INDEX_task_show_model.useModel)) == null ? void 0 : _tb.dataShow) == null ? void 0 : _ub.value) == null ? void 0 : _vb.status) === "Pending" ? { + z: common_vendor.o(($event) => { + var _a2; + return (_a2 = common_vendor.unref(INDEX_task_show_method.method)) == null ? void 0 : _a2.toPageUpdate("领取工单"); + }), + A: common_vendor.o(($event) => { + var _a2; + return (_a2 = common_vendor.unref(INDEX_task_show_method.method)) == null ? void 0 : _a2.toPageUpdate("指派工单"); + }), + B: common_vendor.p({ + btnParimaryName: "领取工单", + btnOtherShow: (_yb = (_xb = (_wb = common_vendor.unref(INDEX_task_show_model.useModel)) == null ? void 0 : _wb.assignPermissionData) == null ? void 0 : _xb.value) == null ? void 0 : _yb.permission, + btnOtherName: "指派工单" + }) + } : {}); + }; + } +}); +const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__file", "/Users/zsq/Sources/github/2025property-pay/pay-employee/src/INDEX/task/show/index.vue"]]); +wx.createPage(MiniProgramPage); diff --git a/dist/dev/mp-weixin/INDEX/task/show/index.json b/dist/dev/mp-weixin/INDEX/task/show/index.json new file mode 100644 index 0000000..d2f1553 --- /dev/null +++ b/dist/dev/mp-weixin/INDEX/task/show/index.json @@ -0,0 +1,10 @@ +{ + "navigationBarTitleText": "任务详情", + "usingComponents": { + "hs-enum-tag": "../../../components/hs-enum-tag/hs-enum-tag", + "hs-level": "../../../components/hs-level/hs-level", + "up-icon": "../../../node-modules/uview-plus/components/u-icon/u-icon", + "hs-footer": "../../../components/hs-footer/hs-footer", + "my-process-logs": "./components/ProcessLogs" + } +} \ No newline at end of file diff --git a/dist/dev/mp-weixin/INDEX/task/show/index.wxml b/dist/dev/mp-weixin/INDEX/task/show/index.wxml new file mode 100644 index 0000000..d6f2084 --- /dev/null +++ b/dist/dev/mp-weixin/INDEX/task/show/index.wxml @@ -0,0 +1 @@ +{{j}}{{m}}{{n}} 工单编号 {{q}} 提报人 {{s}} 客户信息 {{v}} {{w}} 工单创建时间 {{x}} \ No newline at end of file diff --git a/dist/dev/mp-weixin/INDEX/task/show/index.wxss b/dist/dev/mp-weixin/INDEX/task/show/index.wxss new file mode 100644 index 0000000..8275547 --- /dev/null +++ b/dist/dev/mp-weixin/INDEX/task/show/index.wxss @@ -0,0 +1,153 @@ +page { + background-color: #f8f8f8; +} +.work_page { + padding-bottom: calc(150rpx + constant(safe-area-inset-bottom)); + padding-bottom: calc(150rpx + env(safe-area-inset-bottom)); +} +.show_card { + margin: 30rpx; + background-color: #fff; + border-radius: 16rpx; + padding: 0 30rpx; +} +.show_card .card_header_type_status { + display: flex; + align-items: center; + justify-content: space-between; + padding: 25rpx 0; +} +.show_card .card_header_type_status .group_type_btn { + display: flex; + align-items: center; +} +.show_card .card_header_type_status .btn_type { + border: 1rpx solid #eee; + font-size: 28rpx; + padding: 7rpx 19rpx; + border-radius: 100rpx; + margin-right: 20rpx; +} +.show_card .card_header_type_status .btn_status { + border-radius: 100rpx; + font-size: 28rpx; + padding: 7rpx 19rpx; +} +.show_card .card_header_type_status .status_Pending { + color: #f97316; + background-color: #fff7ed; +} +.show_card .card_header_type_status .status_Processing, .show_card .card_header_type_status .status_PendingAcceptance { + color: #0082fa; + background-color: #edf4ff; +} +.show_card .card_header_type_status .status_Completed { + color: #22c55e; + background-color: #f0fdf4; +} +.show_card .card_header_type_status .status_PendingPayment { + color: #cf1322; + background-color: #ffeded; +} +.show_card .card_header_type_status .status_Closed { + color: #909399; + background-color: #f3f3f4; +} +.show_card .time_status { + color: #666666; + font-size: 28rpx; + padding: 12rpx 20rpx; + border-radius: 10rpx; + display: flex; + align-items: center; + margin: 0 0 25rpx 0; +} +.show_card .status_1 { + color: #24bc21; + background: linear-gradient(90deg, #edffed 0%, rgba(232, 255, 231, 0) 103%); +} +.show_card .status_2 { + color: #0082fa; + background: linear-gradient(90deg, #eff7ff 0%, rgba(231, 241, 255, 0) 103%); +} +.show_card .status_3 { + color: #f97316; + background: linear-gradient(90deg, #fff4ef 0%, rgba(255, 237, 231, 0) 103%); +} +.show_card .status_4 { + color: #ea0000; + background: linear-gradient(90deg, #ffe5e5 0%, rgba(255, 255, 255, 0) 103%); +} +.show_card .card_header_huse_info { + display: flex; + align-items: center; + font-size: 28rpx; +} +.show_card .card_header_huse_info text { + display: inline-block; + height: 28rpx; + line-height: 28rpx; +} +.show_card .card_header_huse_info text:last-child { + margin-left: 15rpx; + border-left: 1rpx solid #eee; + padding-left: 15rpx; +} +.show_card .card_header_content_info { + font-size: 30rpx; + color: #444; + padding: 15rpx 0 0 0; +} +.show_card .card_header_imgs { + display: flex; + align-items: center; + flex-wrap: wrap; + padding-bottom: 30rpx; +} +.show_card .card_header_imgs .item { + width: 140rpx; + height: 140rpx; + border-radius: 10rpx; + background-color: #f8f8f8; + margin-top: 25rpx; + margin-right: 25rpx; + overflow: hidden; +} +.show_card .card_header_imgs .item:nth-child(4n) { + margin-right: 0; +} +.show_card .card_header_imgs .item image { + width: 100%; + height: 100%; +} +.show_card .show_card_footer { + border-top: 1rpx solid #eee; +} +.work_item_cell { + display: flex; + align-items: center; + justify-content: space-between; + font-size: 30rpx; + color: #666; + padding-top: 25rpx; +} +.work_item_cell:last-child { + padding-bottom: 25rpx; +} +.work_item_cell text { + color: #333; +} +.work_amount_cell { + color: #cf1322; +} +.work_amount_cell text { + color: #cf1322; +} +.show_card_title { + font-size: 28rpx; + padding: 30rpx 0; + font-weight: 500; +} +.card_status_4 { + border-top: 6px solid #ef4444; +} \ No newline at end of file diff --git a/dist/dev/mp-weixin/INDEX/task/show/method.js b/dist/dev/mp-weixin/INDEX/task/show/method.js new file mode 100644 index 0000000..257978b --- /dev/null +++ b/dist/dev/mp-weixin/INDEX/task/show/method.js @@ -0,0 +1,62 @@ +"use strict"; +const common_vendor = require("../../../common/vendor.js"); +const INDEX_task_show_model = require("./model.js"); +const common_libraries_apiLoading = require("../../../common/libraries/apiLoading.js"); +const gen_Apis = require("../../../gen/Apis.js"); +const getAssignPermission = (id) => { + common_libraries_apiLoading.getApiLoading(gen_Apis.Apis.WorkOrder.HouseWorkOrders.GetAssignPermission, { + id + }).then((res) => { + INDEX_task_show_model.useModel.assignPermissionData.value = res == null ? void 0 : res.data; + }); +}; +const method = { + getShow(id) { + common_libraries_apiLoading.getApiLoading(gen_Apis.Apis.WorkOrder.HouseWorkOrders.Show, { id }).then((res) => { + var _a; + INDEX_task_show_model.useModel.dataShow.value = res == null ? void 0 : res.data; + getAssignPermission((_a = res == null ? void 0 : res.data) == null ? void 0 : _a.id); + }); + }, + getHouseWorkLogs(id) { + common_libraries_apiLoading.getApiLoading(gen_Apis.Apis.WorkOrder.HouseWorkLogs.List, { house_work_orders_id: id }).then((res) => { + INDEX_task_show_model.useModel.logsData.value = res == null ? void 0 : res.data; + }); + }, + toPageUpdate(type) { + var _a, _b, _c; + common_vendor.index.navigateTo({ + url: `/INDEX/task/update/index?id=${(_c = (_b = (_a = INDEX_task_show_model.useModel) == null ? void 0 : _a.dataShow) == null ? void 0 : _b.value) == null ? void 0 : _c.id}&type=${type}` + }); + }, + handlePreviewImage(idx) { + var _a, _b, _c, _d; + let urlList = ((_d = (_c = (_b = (_a = INDEX_task_show_model.useModel) == null ? void 0 : _a.dataShow) == null ? void 0 : _b.value) == null ? void 0 : _c.attachments) == null ? void 0 : _d.map((item) => item == null ? void 0 : item.url)) || []; + common_vendor.index.previewImage({ + urls: urlList, + current: idx + }); + }, + handlePendingPaymentQrCode(e) { + }, + handleCopyPhone() { + var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l; + if ((_c = (_b = (_a = INDEX_task_show_model.useModel) == null ? void 0 : _a.dataShow) == null ? void 0 : _b.value) == null ? void 0 : _c.contact_phone) { + common_vendor.index.makePhoneCall({ + phoneNumber: (_f = (_e = (_d = INDEX_task_show_model.useModel) == null ? void 0 : _d.dataShow) == null ? void 0 : _e.value) == null ? void 0 : _f.contact_phone + }); + return; + } + if ((_i = (_h = (_g = INDEX_task_show_model.useModel) == null ? void 0 : _g.dataShow) == null ? void 0 : _h.value) == null ? void 0 : _i.reporter_phone) { + common_vendor.index.makePhoneCall({ + phoneNumber: (_l = (_k = (_j = INDEX_task_show_model.useModel) == null ? void 0 : _j.dataShow) == null ? void 0 : _k.value) == null ? void 0 : _l.reporter_phone + }); + return; + } + common_vendor.index.showToast({ + title: "暂无电话号码", + icon: "none" + }); + } +}; +exports.method = method; diff --git a/dist/dev/mp-weixin/INDEX/task/show/model.js b/dist/dev/mp-weixin/INDEX/task/show/model.js new file mode 100644 index 0000000..5fa866a --- /dev/null +++ b/dist/dev/mp-weixin/INDEX/task/show/model.js @@ -0,0 +1,8 @@ +"use strict"; +const common_vendor = require("../../../common/vendor.js"); +const useModel = { + dataShow: common_vendor.ref({}), + logsData: common_vendor.ref([]), + assignPermissionData: common_vendor.ref({}) +}; +exports.useModel = useModel; diff --git a/dist/dev/mp-weixin/INDEX/task/update/index.js b/dist/dev/mp-weixin/INDEX/task/update/index.js new file mode 100644 index 0000000..7af1e26 --- /dev/null +++ b/dist/dev/mp-weixin/INDEX/task/update/index.js @@ -0,0 +1,90 @@ +"use strict"; +const common_vendor = require("../../../common/vendor.js"); +const gen_Enums = require("../../../gen/Enums.js"); +const INDEX_task_update_method = require("./method.js"); +const INDEX_task_update_model = require("./model.js"); +require("../../../common/libraries/request.js"); +require("../../../common/store/useWeAppAuthStore.js"); +require("../../../gen/Apis.js"); +require("../../../common/store/useWatermarkStore.js"); +require("../../../common/store/useWorkStore.js"); +require("../../../common/libraries/apiLoading.js"); +require("../../../common/libraries/naviHelper.js"); +if (!Array) { + const _easycom_hs_radio2 = common_vendor.resolveComponent("hs-radio"); + const _easycom_hs_cell2 = common_vendor.resolveComponent("hs-cell"); + const _easycom_hs_popup_employees2 = common_vendor.resolveComponent("hs-popup-employees"); + const _easycom_hs_day_picker2 = common_vendor.resolveComponent("hs-day-picker"); + const _easycom_hs_cell_textarea2 = common_vendor.resolveComponent("hs-cell-textarea"); + const _easycom_hs_footer2 = common_vendor.resolveComponent("hs-footer"); + (_easycom_hs_radio2 + _easycom_hs_cell2 + _easycom_hs_popup_employees2 + _easycom_hs_day_picker2 + _easycom_hs_cell_textarea2 + _easycom_hs_footer2)(); +} +const _easycom_hs_radio = () => "../../../components/hs-radio/hs-radio.js"; +const _easycom_hs_cell = () => "../../../components/hs-cell/hs-cell.js"; +const _easycom_hs_popup_employees = () => "../../../components/hs-popup-employees/hs-popup-employees.js"; +const _easycom_hs_day_picker = () => "../../../components/hs-day-picker/hs-day-picker.js"; +const _easycom_hs_cell_textarea = () => "../../../components/hs-cell-textarea/hs-cell-textarea.js"; +const _easycom_hs_footer = () => "../../../components/hs-footer/hs-footer.js"; +if (!Math) { + (_easycom_hs_radio + _easycom_hs_cell + _easycom_hs_popup_employees + _easycom_hs_day_picker + _easycom_hs_cell_textarea + _easycom_hs_footer)(); +} +const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({ + __name: "index", + setup(__props) { + common_vendor.onLoad((e) => { + var _a; + (_a = INDEX_task_update_method.method) == null ? void 0 : _a.init(e); + }); + return (_ctx, _cache) => { + var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k; + return common_vendor.e({ + a: common_vendor.o(($event) => common_vendor.unref(INDEX_task_update_model.useModel).formData.value.level = $event), + b: common_vendor.p({ + Enums: common_vendor.unref(gen_Enums.HouseWorkOrdersLevelEnum), + valueModel: common_vendor.unref(INDEX_task_update_model.useModel).formData.value.level + }), + c: common_vendor.p({ + title: "优先级", + required: true + }), + d: ((_c = (_b = (_a = common_vendor.unref(INDEX_task_update_model.useModel)) == null ? void 0 : _a.formData) == null ? void 0 : _b.value) == null ? void 0 : _c.pageType) === "领取工单" + }, ((_f = (_e = (_d = common_vendor.unref(INDEX_task_update_model.useModel)) == null ? void 0 : _d.formData) == null ? void 0 : _e.value) == null ? void 0 : _f.pageType) === "领取工单" ? { + e: common_vendor.t((_j = (_i = (_h = (_g = common_vendor.unref(INDEX_task_update_model.useModel)) == null ? void 0 : _g.formData) == null ? void 0 : _h.value) == null ? void 0 : _i.assign_employees) == null ? void 0 : _j.name), + f: common_vendor.p({ + title: "处理人", + required: true, + borderTop: true + }) + } : { + g: common_vendor.o(($event) => common_vendor.unref(INDEX_task_update_model.useModel).formData.value.assign_employees_id = $event), + h: common_vendor.p({ + title: "处理人", + valueModel: common_vendor.unref(INDEX_task_update_model.useModel).formData.value.assign_employees_id + }) + }, { + i: common_vendor.o(($event) => common_vendor.unref(INDEX_task_update_model.useModel).formData.value.predict_complete_at = $event), + j: common_vendor.p({ + valueModel: common_vendor.unref(INDEX_task_update_model.useModel).formData.value.predict_complete_at + }), + k: common_vendor.p({ + title: "预计完成时间", + required: true, + borderTop: true, + isLink: true + }), + l: common_vendor.o(($event) => common_vendor.unref(INDEX_task_update_model.useModel).formData.value.assign_remark = $event), + m: common_vendor.p({ + title: "备注说明", + placeholder: "请输入备注", + valueModel: common_vendor.unref(INDEX_task_update_model.useModel).formData.value.assign_remark + }), + n: common_vendor.o((_k = common_vendor.unref(INDEX_task_update_method.method)) == null ? void 0 : _k.handleSubmit), + o: common_vendor.p({ + btnParimaryName: "提交" + }) + }); + }; + } +}); +const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__file", "/Users/zsq/Sources/github/2025property-pay/pay-employee/src/INDEX/task/update/index.vue"]]); +wx.createPage(MiniProgramPage); diff --git a/dist/dev/mp-weixin/INDEX/task/update/index.json b/dist/dev/mp-weixin/INDEX/task/update/index.json new file mode 100644 index 0000000..699d4df --- /dev/null +++ b/dist/dev/mp-weixin/INDEX/task/update/index.json @@ -0,0 +1,11 @@ +{ + "navigationBarTitleText": "领取工单", + "usingComponents": { + "hs-radio": "../../../components/hs-radio/hs-radio", + "hs-cell": "../../../components/hs-cell/hs-cell", + "hs-popup-employees": "../../../components/hs-popup-employees/hs-popup-employees", + "hs-day-picker": "../../../components/hs-day-picker/hs-day-picker", + "hs-cell-textarea": "../../../components/hs-cell-textarea/hs-cell-textarea", + "hs-footer": "../../../components/hs-footer/hs-footer" + } +} \ No newline at end of file diff --git a/dist/dev/mp-weixin/INDEX/task/update/index.wxml b/dist/dev/mp-weixin/INDEX/task/update/index.wxml new file mode 100644 index 0000000..05a12e4 --- /dev/null +++ b/dist/dev/mp-weixin/INDEX/task/update/index.wxml @@ -0,0 +1 @@ +{{e}} \ No newline at end of file diff --git a/dist/dev/mp-weixin/INDEX/task/update/index.wxss b/dist/dev/mp-weixin/INDEX/task/update/index.wxss new file mode 100644 index 0000000..0ad41e3 --- /dev/null +++ b/dist/dev/mp-weixin/INDEX/task/update/index.wxss @@ -0,0 +1,11 @@ +page { + background-color: #f8f8f8; +} +.card_form { + background-color: #fff; + padding: 0 30rpx; + margin-bottom: 30rpx; +} +.handler_label { + padding: 10rpx 0; +} \ No newline at end of file diff --git a/dist/dev/mp-weixin/INDEX/task/update/method.js b/dist/dev/mp-weixin/INDEX/task/update/method.js new file mode 100644 index 0000000..8b27f2f --- /dev/null +++ b/dist/dev/mp-weixin/INDEX/task/update/method.js @@ -0,0 +1,45 @@ +"use strict"; +const common_vendor = require("../../../common/vendor.js"); +require("../../../common/libraries/request.js"); +require("../../../common/store/useWatermarkStore.js"); +const common_store_useWeAppAuthStore = require("../../../common/store/useWeAppAuthStore.js"); +require("../../../common/store/useWorkStore.js"); +const INDEX_task_update_model = require("./model.js"); +const gen_Apis = require("../../../gen/Apis.js"); +const common_libraries_apiLoading = require("../../../common/libraries/apiLoading.js"); +const common_libraries_naviHelper = require("../../../common/libraries/naviHelper.js"); +const auth = common_store_useWeAppAuthStore.useWeAppAuthStore(); +const method = { + init(data) { + var _a; + common_vendor.index.setNavigationBarTitle({ + title: data == null ? void 0 : data.type + }); + console.log("init", auth == null ? void 0 : auth.data); + INDEX_task_update_model.useModel.formData.value = { + ...data, + pageType: data == null ? void 0 : data.type, + assign_employees: (_a = auth == null ? void 0 : auth.data) == null ? void 0 : _a.user, + house_work_orders_id: data == null ? void 0 : data.id + }; + }, + handleSubmit() { + var _a, _b; + console.log("handleSubmit", INDEX_task_update_model.useModel.formData.value); + let data = (_b = (_a = INDEX_task_update_model.useModel) == null ? void 0 : _a.formData) == null ? void 0 : _b.value; + if (!(data == null ? void 0 : data.level)) { + return common_libraries_naviHelper.showToast("请先选择优先级!"); + } + if ((data == null ? void 0 : data.pageType) === "指派工单" && !(data == null ? void 0 : data.assign_employees_id)) { + return common_libraries_naviHelper.showToast("请先选择处理人!"); + } + common_libraries_apiLoading.getApiLoading( + (data == null ? void 0 : data.pageType) === "指派工单" ? gen_Apis.Apis.WorkOrder.HouseWorkOrders.Assign : gen_Apis.Apis.WorkOrder.HouseWorkOrders.Receive, + data + ).then((res) => { + common_libraries_naviHelper.showToastBack((data == null ? void 0 : data.pageType) === "指派工单" ? "提交成功!" : "领取成功!", 1, true); + console.log(res); + }); + } +}; +exports.method = method; diff --git a/dist/dev/mp-weixin/INDEX/task/update/model.js b/dist/dev/mp-weixin/INDEX/task/update/model.js new file mode 100644 index 0000000..6575c9c --- /dev/null +++ b/dist/dev/mp-weixin/INDEX/task/update/model.js @@ -0,0 +1,8 @@ +"use strict"; +const common_vendor = require("../../../common/vendor.js"); +const useModel = { + formData: common_vendor.ref({}), + HouseWorkOrdersStatusItemEnum: common_vendor.ref(), + HouseWorkOrdersCostEnum: common_vendor.ref() +}; +exports.useModel = useModel; diff --git a/dist/dev/mp-weixin/INDEX/watermark_camera/index.js b/dist/dev/mp-weixin/INDEX/watermark_camera/index.js new file mode 100644 index 0000000..0c8a4c0 --- /dev/null +++ b/dist/dev/mp-weixin/INDEX/watermark_camera/index.js @@ -0,0 +1,54 @@ +"use strict"; +const common_vendor = require("../../common/vendor.js"); +const common_libraries_map = require("../../common/libraries/map.js"); +const INDEX_watermark_camera_method = require("./method.js"); +const INDEX_watermark_camera_model = require("./model.js"); +require("../../common/libraries/request.js"); +require("../../common/store/useWeAppAuthStore.js"); +require("../../gen/Apis.js"); +require("../../common/store/useWatermarkStore.js"); +require("../../common/store/useWorkStore.js"); +require("../../common/libraries/apiLoading.js"); +require("../../common/libraries/day.js"); +require("../../common/libraries/naviHelper.js"); +require("../../common/libraries/upload.js"); +const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({ + __name: "index", + setup(__props) { + common_vendor.onLoad((e) => { + let address = common_libraries_map.getMapAddress(); + INDEX_watermark_camera_model.useModel.source.value = (e == null ? void 0 : e.source) || "save"; + address.then((res) => { + INDEX_watermark_camera_model.useModel.address.value = res; + console.log(res, "地址"); + }); + }); + return (_ctx, _cache) => { + var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n; + return { + a: common_vendor.t((_b = (_a = common_vendor.unref(INDEX_watermark_camera_model.useModel)) == null ? void 0 : _a.time) == null ? void 0 : _b.value), + b: common_vendor.t(((_e = (_d = (_c = common_vendor.unref(INDEX_watermark_camera_model.useModel)) == null ? void 0 : _c.userInfo) == null ? void 0 : _d.value) == null ? void 0 : _e.name) || ""), + c: common_vendor.t((_g = (_f = common_vendor.unref(INDEX_watermark_camera_model.useModel)) == null ? void 0 : _f.day) == null ? void 0 : _g.value), + d: common_vendor.t((_i = (_h = common_vendor.unref(INDEX_watermark_camera_model.useModel)) == null ? void 0 : _h.weekDay) == null ? void 0 : _i.value), + e: common_vendor.t(((_l = (_k = (_j = common_vendor.unref(INDEX_watermark_camera_model.useModel)) == null ? void 0 : _j.address) == null ? void 0 : _k.value) == null ? void 0 : _l.address) || ""), + f: (_n = (_m = common_vendor.unref(INDEX_watermark_camera_model.useModel)) == null ? void 0 : _m.devicePosition) == null ? void 0 : _n.value, + g: common_vendor.o( + //@ts-ignore + (...args) => { + var _a2, _b2; + return ((_a2 = common_vendor.unref(INDEX_watermark_camera_method.method)) == null ? void 0 : _a2.takePhoto) && ((_b2 = common_vendor.unref(INDEX_watermark_camera_method.method)) == null ? void 0 : _b2.takePhoto(...args)); + } + ), + h: common_vendor.o( + //@ts-ignore + (...args) => { + var _a2, _b2; + return ((_a2 = common_vendor.unref(INDEX_watermark_camera_method.method)) == null ? void 0 : _a2.handleWatermarkCameraSwitch) && ((_b2 = common_vendor.unref(INDEX_watermark_camera_method.method)) == null ? void 0 : _b2.handleWatermarkCameraSwitch(...args)); + } + ) + }; + }; + } +}); +const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__file", "/Users/zsq/Sources/github/2025property-pay/pay-employee/src/INDEX/watermark_camera/index.vue"]]); +wx.createPage(MiniProgramPage); diff --git a/dist/dev/mp-weixin/INDEX/watermark_camera/index.json b/dist/dev/mp-weixin/INDEX/watermark_camera/index.json new file mode 100644 index 0000000..f9ac2a5 --- /dev/null +++ b/dist/dev/mp-weixin/INDEX/watermark_camera/index.json @@ -0,0 +1,4 @@ +{ + "navigationBarTitleText": "水印相机", + "usingComponents": {} +} \ No newline at end of file diff --git a/dist/dev/mp-weixin/INDEX/watermark_camera/index.wxml b/dist/dev/mp-weixin/INDEX/watermark_camera/index.wxml new file mode 100644 index 0000000..5a445c3 --- /dev/null +++ b/dist/dev/mp-weixin/INDEX/watermark_camera/index.wxml @@ -0,0 +1 @@ +{{a}}{{b}}{{c}} {{d}}{{e}} 切换 \ No newline at end of file diff --git a/dist/dev/mp-weixin/INDEX/watermark_camera/index.wxss b/dist/dev/mp-weixin/INDEX/watermark_camera/index.wxss new file mode 100644 index 0000000..23be262 --- /dev/null +++ b/dist/dev/mp-weixin/INDEX/watermark_camera/index.wxss @@ -0,0 +1,91 @@ +page { + background-color: #f8f8f8; +} +.camera_container { + position: relative; + height: 82vh; +} +.footer_btn_group { + display: flex; + justify-content: center; + padding-top: 30rpx; +} +.footer_btn_group .take_photo_btn { + width: 135rpx; + height: 135rpx; + display: flex; + align-items: center; + justify-content: center; + font-size: 30rpx; + border-radius: 100rpx; + border: 15rpx solid #0082fa; + background-color: #fff; + color: #000; +} +.watermark_preview { + position: absolute; + bottom: 0; + left: 30rpx; + z-index: 100; +} +.watermark_preview .watermark_date { + display: flex; + align-items: center; + color: #fff; +} +.watermark_preview .watermark_date .watermark_item { + font-size: 76rpx; + font-weight: 550; + line-height: 50rpx; +} +.watermark_preview .watermark_date .watermark_item_separator { + margin: 0 20rpx; + background-color: #ff7105; + width: 5rpx; + height: 50rpx; +} +.watermark_preview .watermark_date .watermark_item_info { + font-size: 28rpx; + line-height: 30rpx; +} +.watermark_preview .watermark_date .watermark_item_info .watermark_week { + font-size: 24rpx; + padding-top: 5rpx; +} +.watermark_preview .watermark_address { + color: #fff; + font-size: 26rpx; + padding: 20rpx 0 25rpx 0; +} +.watermark_camera_witch_btn { + position: absolute; + right: 100rpx; + z-index: 100; + height: 165rpx; + display: flex; + align-items: center; +} +.watermark_camera_witch_btn .watermark_camera_witch_btn_content { + height: 80rpx; + text-align: center; + line-height: 40rpx; +} +.watermark_camera_witch_btn .watermark_camera_witch_btn_content .watermark_camera_witch_btn_img { + width: 60rpx; + height: 55rpx; + line-height: 40rpx; +} +.watermark_camera_witch_btn .watermark_camera_witch_btn_content image { + width: 60rpx; + height: 60rpx; +} +.watermark_camera_witch_btn .watermark_camera_witch_btn_content .watermark_camera_witch_text { + font-size: 24rpx; + color: #333; + font-weight: 500; +} +#watermark_camera { + position: fixed; + top: 0; + left: -1000px; +} \ No newline at end of file diff --git a/dist/dev/mp-weixin/INDEX/watermark_camera/method.js b/dist/dev/mp-weixin/INDEX/watermark_camera/method.js new file mode 100644 index 0000000..a8c4c95 --- /dev/null +++ b/dist/dev/mp-weixin/INDEX/watermark_camera/method.js @@ -0,0 +1,101 @@ +"use strict"; +const common_vendor = require("../../common/vendor.js"); +require("../../common/libraries/request.js"); +const common_store_useWatermarkStore = require("../../common/store/useWatermarkStore.js"); +require("../../common/store/useWeAppAuthStore.js"); +require("../../common/store/useWorkStore.js"); +const common_libraries_day = require("../../common/libraries/day.js"); +const common_libraries_naviHelper = require("../../common/libraries/naviHelper.js"); +const common_libraries_upload = require("../../common/libraries/upload.js"); +const INDEX_watermark_camera_model = require("./model.js"); +const watermark = common_store_useWatermarkStore.useWatermarkStore(); +const method = { + handleWatermarkCameraSwitch() { + INDEX_watermark_camera_model.useModel.devicePosition.value = INDEX_watermark_camera_model.useModel.devicePosition.value === "back" ? "front" : "back"; + }, + takePhoto() { + const ctx = common_vendor.index.createCameraContext(); + const systemInfo = common_vendor.index.getSystemInfoSync(); + let canvasTop = (systemInfo == null ? void 0 : systemInfo.windowHeight) * (82 / 100); + console.log(systemInfo, "systemInfo"); + ctx.takePhoto({ + quality: "high", + success: (res) => { + var _a, _b; + common_vendor.index.showLoading({ + title: ((_b = (_a = INDEX_watermark_camera_model.useModel) == null ? void 0 : _a.source) == null ? void 0 : _b.value) === "save" ? "正在保存..." : "正在上传...", + mask: true + }); + let ctx2 = common_vendor.index.createCanvasContext("watermark_camera"); + common_vendor.index.getImageInfo({ + src: res == null ? void 0 : res.tempImagePath, + success: (img) => { + var _a2, _b2, _c, _d, _e, _f, _g, _h, _i, _j; + const { width, height } = img; + console.log(img, "img"); + const canvasWidth = 430; + const canvasHeight = height * canvasWidth / width; + INDEX_watermark_camera_model.useModel.time.value = common_libraries_day.showCurrentTime(); + ctx2.drawImage((res == null ? void 0 : res.tempImagePath) || "", 0, 0, canvasWidth, canvasHeight); + ctx2.setFillStyle("rgba(0, 0, 0, 0.2)"); + ctx2.fillRect(0, canvasTop - 100, canvasWidth, 100); + ctx2.setFillStyle("#ff7105"); + ctx2.fillRect(131, canvasTop - 75, 2, 28); + ctx2.fillStyle = "#fff"; + ctx2.font = "500 16px Arial"; + ctx2.fillText(((_c = (_b2 = (_a2 = INDEX_watermark_camera_model.useModel) == null ? void 0 : _a2.address) == null ? void 0 : _b2.value) == null ? void 0 : _c.address) || "", 15, canvasTop - 17); + ctx2.fillText(((_f = (_e = (_d = INDEX_watermark_camera_model.useModel) == null ? void 0 : _d.userInfo) == null ? void 0 : _e.value) == null ? void 0 : _f.name) || "没有登录", 141, canvasTop - 64); + ctx2.font = "500 12px Arial"; + ctx2.fillText( + `${((_g = INDEX_watermark_camera_model.useModel) == null ? void 0 : _g.day.value) || ""} ${((_h = INDEX_watermark_camera_model.useModel) == null ? void 0 : _h.weekDay.value) || ""}`, + 141, + canvasTop - 49 + ); + ctx2.setLineWidth(3); + ctx2.setStrokeStyle("#fff"); + ctx2.font = "900 45px Arial"; + ctx2.fillText(((_i = INDEX_watermark_camera_model.useModel) == null ? void 0 : _i.time.value) || "", 12, canvasTop - 45); + ctx2.strokeText(((_j = INDEX_watermark_camera_model.useModel) == null ? void 0 : _j.time.value) || "", 12, canvasTop - 45); + ctx2.stroke(); + ctx2.draw(false, () => { + common_vendor.index.canvasToTempFilePath({ + canvasId: "watermark_camera", + success: (nImg) => { + var _a3, _b3, _c2, _d2, _e2, _f2, _g2, _h2; + console.log(nImg, "nImg"); + if (((_b3 = (_a3 = INDEX_watermark_camera_model.useModel) == null ? void 0 : _a3.source) == null ? void 0 : _b3.value) === "current") { + common_libraries_upload.uploadImgWatermark({ + path: nImg == null ? void 0 : nImg.tempFilePath, + name: `${((_e2 = (_d2 = (_c2 = INDEX_watermark_camera_model.useModel) == null ? void 0 : _c2.userInfo) == null ? void 0 : _d2.value) == null ? void 0 : _e2.name) || "未登录"}-打卡-${((_f2 = INDEX_watermark_camera_model.useModel) == null ? void 0 : _f2.day.value) || ""}` + }).then((uploadRes) => { + console.log(uploadRes, "uploadRes"); + watermark.watermarkInfo.value = uploadRes ? [uploadRes] : []; + common_vendor.index.navigateBack({ + delta: 1 + }); + common_vendor.index.hideLoading(); + }).catch((err) => { + console.log(err, "err"); + common_vendor.index.hideLoading(); + }); + } + if (((_h2 = (_g2 = INDEX_watermark_camera_model.useModel) == null ? void 0 : _g2.source) == null ? void 0 : _h2.value) === "save") { + common_vendor.index.saveImageToPhotosAlbum({ + filePath: nImg == null ? void 0 : nImg.tempFilePath, + success: function() { + common_libraries_naviHelper.showToast("保存成功"); + console.log("save success"); + } + }); + } + } + }); + }); + } + }); + console.log(res); + } + }); + } +}; +exports.method = method; diff --git a/dist/dev/mp-weixin/INDEX/watermark_camera/model.js b/dist/dev/mp-weixin/INDEX/watermark_camera/model.js new file mode 100644 index 0000000..0a6d289 --- /dev/null +++ b/dist/dev/mp-weixin/INDEX/watermark_camera/model.js @@ -0,0 +1,19 @@ +"use strict"; +var _a; +require("../../common/libraries/request.js"); +require("../../common/store/useWatermarkStore.js"); +const common_store_useWeAppAuthStore = require("../../common/store/useWeAppAuthStore.js"); +require("../../common/store/useWorkStore.js"); +const common_libraries_day = require("../../common/libraries/day.js"); +const common_vendor = require("../../common/vendor.js"); +const auth = common_store_useWeAppAuthStore.useWeAppAuthStore(); +const useModel = { + devicePosition: common_vendor.ref("back"), + time: common_vendor.ref(common_libraries_day.showCurrentTime()), + day: common_vendor.ref(common_libraries_day.getDay()), + weekDay: common_vendor.ref(common_libraries_day.showWeekDay()), + address: common_vendor.ref({ address: "暂无地址" }), + userInfo: common_vendor.ref((_a = auth == null ? void 0 : auth.data) == null ? void 0 : _a.user), + source: common_vendor.ref("save") +}; +exports.useModel = useModel; diff --git a/dist/dev/mp-weixin/ME/announcement/list/index.js b/dist/dev/mp-weixin/ME/announcement/list/index.js new file mode 100644 index 0000000..2249e28 --- /dev/null +++ b/dist/dev/mp-weixin/ME/announcement/list/index.js @@ -0,0 +1,60 @@ +"use strict"; +const common_vendor = require("../../../common/vendor.js"); +const ME_announcement_list_model = require("./model.js"); +const ME_announcement_list_method = require("./method.js"); +const common_libraries_day = require("../../../common/libraries/day.js"); +require("../../../common/libraries/apiLoading.js"); +require("../../../gen/Apis.js"); +require("../../../common/libraries/request.js"); +require("../../../common/store/useWeAppAuthStore.js"); +require("../../../common/store/useWatermarkStore.js"); +require("../../../common/store/useWorkStore.js"); +if (!Array) { + const _easycom_uni_icons2 = common_vendor.resolveComponent("uni-icons"); + const _easycom_cc_scroll_loading2 = common_vendor.resolveComponent("cc-scroll-loading"); + (_easycom_uni_icons2 + _easycom_cc_scroll_loading2)(); +} +const _easycom_uni_icons = () => "../../../uni_modules/uni-icons/components/uni-icons/uni-icons.js"; +const _easycom_cc_scroll_loading = () => "../../../common/components/cc-scroll-loading/cc-scroll-loading.js"; +if (!Math) { + (_easycom_uni_icons + _easycom_cc_scroll_loading)(); +} +const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({ + __name: "index", + setup(__props) { + common_vendor.onLoad(() => { + ME_announcement_list_method.method.getList(); + }); + common_vendor.onUnload(() => { + ME_announcement_list_model.useModel.listData.value = []; + }); + return (_ctx, _cache) => { + var _a, _b, _c, _d, _e; + return { + a: common_vendor.f((_b = (_a = common_vendor.unref(ME_announcement_list_model.useModel)) == null ? void 0 : _a.listData) == null ? void 0 : _b.value, (i, index, i0) => { + return { + a: common_vendor.t((i == null ? void 0 : i.title) || ""), + b: common_vendor.t(common_vendor.unref(common_libraries_day.showDay)(i == null ? void 0 : i.publish_at)), + c: i == null ? void 0 : i.content, + d: "2ef6a311-1-" + i0 + ",2ef6a311-0", + e: `news_${index}`, + f: common_vendor.o(($event) => { + var _a2; + return (_a2 = common_vendor.unref(ME_announcement_list_method.method)) == null ? void 0 : _a2.toDetaile(i); + }, `news_${index}`) + }; + }), + b: common_vendor.p({ + type: "right", + size: "15" + }), + c: common_vendor.o((_c = common_vendor.unref(ME_announcement_list_method.method)) == null ? void 0 : _c.loadMore), + d: common_vendor.p({ + meta: (_e = (_d = common_vendor.unref(ME_announcement_list_model.useModel)) == null ? void 0 : _d.metaData) == null ? void 0 : _e.value + }) + }; + }; + } +}); +const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__file", "/Users/zsq/Sources/github/2025property-pay/pay-employee/src/ME/announcement/list/index.vue"]]); +wx.createPage(MiniProgramPage); diff --git a/dist/dev/mp-weixin/ME/announcement/list/index.json b/dist/dev/mp-weixin/ME/announcement/list/index.json new file mode 100644 index 0000000..3821c13 --- /dev/null +++ b/dist/dev/mp-weixin/ME/announcement/list/index.json @@ -0,0 +1,7 @@ +{ + "navigationBarTitleText": "公告列表", + "usingComponents": { + "uni-icons": "../../../uni_modules/uni-icons/components/uni-icons/uni-icons", + "cc-scroll-loading": "../../../common/components/cc-scroll-loading/cc-scroll-loading" + } +} \ No newline at end of file diff --git a/dist/dev/mp-weixin/ME/announcement/list/index.wxml b/dist/dev/mp-weixin/ME/announcement/list/index.wxml new file mode 100644 index 0000000..6466270 --- /dev/null +++ b/dist/dev/mp-weixin/ME/announcement/list/index.wxml @@ -0,0 +1 @@ +{{i.a}}{{i.b}} 查看详情 \ No newline at end of file diff --git a/dist/dev/mp-weixin/ME/announcement/list/index.wxss b/dist/dev/mp-weixin/ME/announcement/list/index.wxss new file mode 100644 index 0000000..81ba1d0 --- /dev/null +++ b/dist/dev/mp-weixin/ME/announcement/list/index.wxss @@ -0,0 +1,43 @@ +page { + background-color: #f8f8f8; +} +.message_center { + padding: 0 30rpx; +} +.message_center .message_center_items { + background-color: #fff; + border-radius: 20rpx; + padding: 0 30rpx; + margin-top: 30rpx; +} +.message_center .message_center_items .title { + color: #333; + font-size: 28rpx; + font-weight: 500; + padding: 30rpx 0 10rpx 0; +} +.message_center .message_center_items .time { + color: #999999; + font-size: 24rpx; + padding: 0 0 10rpx 0; +} +.message_center .message_center_items .contents_des { + color: #666; + font-size: 28rpx; + line-height: 40rpx; + height: 80rpx; + display: -webkit-box; + -webkit-box-orient: vertical; + -webkit-line-clamp: 2; + overflow: hidden; +} +.message_center .message_center_items .footer { + display: flex; + align-items: center; + justify-content: space-between; + padding: 25rpx 0; + margin-top: 20rpx; + border-top: 1rpx solid #f5f5f5; + color: #333; + font-size: 28rpx; +} \ No newline at end of file diff --git a/dist/dev/mp-weixin/ME/announcement/list/method.js b/dist/dev/mp-weixin/ME/announcement/list/method.js new file mode 100644 index 0000000..a57fab6 --- /dev/null +++ b/dist/dev/mp-weixin/ME/announcement/list/method.js @@ -0,0 +1,31 @@ +"use strict"; +const common_vendor = require("../../../common/vendor.js"); +const common_libraries_apiLoading = require("../../../common/libraries/apiLoading.js"); +const gen_Apis = require("../../../gen/Apis.js"); +const ME_announcement_list_model = require("./model.js"); +require("../../../common/libraries/request.js"); +require("../../../common/store/useWatermarkStore.js"); +const common_store_useWeAppAuthStore = require("../../../common/store/useWeAppAuthStore.js"); +require("../../../common/store/useWorkStore.js"); +common_store_useWeAppAuthStore.useWeAppAuthStore(); +const getList = () => { + var _a, _b; + common_libraries_apiLoading.getApiLoading(gen_Apis.Apis.Msg.MsgPropertyAnnouncements.List, (_b = (_a = ME_announcement_list_model.useModel) == null ? void 0 : _a.formData) == null ? void 0 : _b.value).then((res) => { + ME_announcement_list_model.useModel.listData.value = [...ME_announcement_list_model.useModel.listData.value, ...res == null ? void 0 : res.data]; + ME_announcement_list_model.useModel.metaData.value = res == null ? void 0 : res.meta; + console.log(res); + }); +}; +const method = { + getList, + loadMore(res) { + ME_announcement_list_model.useModel.formData.value.page = res == null ? void 0 : res.page; + getList(); + }, + toDetaile(e) { + common_vendor.index.navigateTo({ + url: `/ME/announcement/show/index?id=${e == null ? void 0 : e.id}` + }); + } +}; +exports.method = method; diff --git a/dist/dev/mp-weixin/ME/announcement/list/model.js b/dist/dev/mp-weixin/ME/announcement/list/model.js new file mode 100644 index 0000000..0917f84 --- /dev/null +++ b/dist/dev/mp-weixin/ME/announcement/list/model.js @@ -0,0 +1,8 @@ +"use strict"; +const common_vendor = require("../../../common/vendor.js"); +const useModel = { + listData: common_vendor.ref([]), + formData: common_vendor.ref({ page: 1 }), + metaData: common_vendor.ref({}) +}; +exports.useModel = useModel; diff --git a/dist/dev/mp-weixin/ME/announcement/show/index.js b/dist/dev/mp-weixin/ME/announcement/show/index.js new file mode 100644 index 0000000..b6b344e --- /dev/null +++ b/dist/dev/mp-weixin/ME/announcement/show/index.js @@ -0,0 +1,32 @@ +"use strict"; +const common_vendor = require("../../../common/vendor.js"); +const ME_announcement_show_model = require("./model.js"); +const ME_announcement_show_method = require("./method.js"); +const common_libraries_day = require("../../../common/libraries/day.js"); +require("../../../common/libraries/apiLoading.js"); +require("../../../gen/Apis.js"); +require("../../../common/libraries/request.js"); +require("../../../common/store/useWeAppAuthStore.js"); +require("../../../common/store/useWatermarkStore.js"); +require("../../../common/store/useWorkStore.js"); +const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({ + __name: "index", + setup(__props) { + common_vendor.onLoad((e) => { + ME_announcement_show_method.method.getShow(e == null ? void 0 : e.id); + }); + return (_ctx, _cache) => { + var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o; + return common_vendor.e({ + a: common_vendor.t(((_c = (_b = (_a = common_vendor.unref(ME_announcement_show_model.useModel)) == null ? void 0 : _a.showData) == null ? void 0 : _b.value) == null ? void 0 : _c.title) || "无标题"), + b: (_f = (_e = (_d = common_vendor.unref(ME_announcement_show_model.useModel)) == null ? void 0 : _d.showData) == null ? void 0 : _e.value) == null ? void 0 : _f.publish_at + }, ((_i = (_h = (_g = common_vendor.unref(ME_announcement_show_model.useModel)) == null ? void 0 : _g.showData) == null ? void 0 : _h.value) == null ? void 0 : _i.publish_at) ? { + c: common_vendor.t(common_vendor.unref(common_libraries_day.showDay)(((_l = (_k = (_j = common_vendor.unref(ME_announcement_show_model.useModel)) == null ? void 0 : _j.showData) == null ? void 0 : _k.value) == null ? void 0 : _l.publish_at) || "")) + } : {}, { + d: (_o = (_n = (_m = common_vendor.unref(ME_announcement_show_model.useModel)) == null ? void 0 : _m.showData) == null ? void 0 : _n.value) == null ? void 0 : _o.content + }); + }; + } +}); +const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__file", "/Users/zsq/Sources/github/2025property-pay/pay-employee/src/ME/announcement/show/index.vue"]]); +wx.createPage(MiniProgramPage); diff --git a/dist/dev/mp-weixin/ME/announcement/show/index.json b/dist/dev/mp-weixin/ME/announcement/show/index.json new file mode 100644 index 0000000..cdf1a41 --- /dev/null +++ b/dist/dev/mp-weixin/ME/announcement/show/index.json @@ -0,0 +1,4 @@ +{ + "navigationBarTitleText": "公告详情", + "usingComponents": {} +} \ No newline at end of file diff --git a/dist/dev/mp-weixin/ME/announcement/show/index.wxml b/dist/dev/mp-weixin/ME/announcement/show/index.wxml new file mode 100644 index 0000000..58385a5 --- /dev/null +++ b/dist/dev/mp-weixin/ME/announcement/show/index.wxml @@ -0,0 +1 @@ +{{a}}{{c}} \ No newline at end of file diff --git a/dist/dev/mp-weixin/ME/announcement/show/index.wxss b/dist/dev/mp-weixin/ME/announcement/show/index.wxss new file mode 100644 index 0000000..4540432 --- /dev/null +++ b/dist/dev/mp-weixin/ME/announcement/show/index.wxss @@ -0,0 +1,22 @@ +.news_show { + padding: 0 30rpx; + border-top: 1px solid #f8f8f8; +} +.news_show .title { + font-size: 32rpx; + font-weight: 500; + height: 30rpx; + line-height: 30rpx; + padding: 30rpx 0 15rpx 0; + color: #333; +} +.news_show .time { + color: #999; + font-size: 26rpx; +} +.news_show .contents { + line-height: 43rpx; + font-size: 28rpx; + color: #333; + padding: 30rpx 0; +} \ No newline at end of file diff --git a/dist/dev/mp-weixin/ME/announcement/show/method.js b/dist/dev/mp-weixin/ME/announcement/show/method.js new file mode 100644 index 0000000..fb8eade --- /dev/null +++ b/dist/dev/mp-weixin/ME/announcement/show/method.js @@ -0,0 +1,18 @@ +"use strict"; +const common_libraries_apiLoading = require("../../../common/libraries/apiLoading.js"); +const gen_Apis = require("../../../gen/Apis.js"); +const ME_announcement_show_model = require("./model.js"); +require("../../../common/libraries/request.js"); +require("../../../common/store/useWatermarkStore.js"); +const common_store_useWeAppAuthStore = require("../../../common/store/useWeAppAuthStore.js"); +require("../../../common/store/useWorkStore.js"); +common_store_useWeAppAuthStore.useWeAppAuthStore(); +const method = { + getShow(id) { + common_libraries_apiLoading.getApiLoading(gen_Apis.Apis.Msg.MsgPropertyAnnouncements.Show, { id }).then((res) => { + ME_announcement_show_model.useModel.showData.value = res == null ? void 0 : res.data; + console.log(res); + }); + } +}; +exports.method = method; diff --git a/dist/dev/mp-weixin/ME/announcement/show/model.js b/dist/dev/mp-weixin/ME/announcement/show/model.js new file mode 100644 index 0000000..1078963 --- /dev/null +++ b/dist/dev/mp-weixin/ME/announcement/show/model.js @@ -0,0 +1,6 @@ +"use strict"; +const common_vendor = require("../../../common/vendor.js"); +const useModel = { + showData: common_vendor.ref([]) +}; +exports.useModel = useModel; diff --git a/dist/dev/mp-weixin/ME/feedback/index.js b/dist/dev/mp-weixin/ME/feedback/index.js index dacc40b..8ba5e85 100644 --- a/dist/dev/mp-weixin/ME/feedback/index.js +++ b/dist/dev/mp-weixin/ME/feedback/index.js @@ -6,6 +6,7 @@ require("../../common/libraries/apiLoading.js"); require("../../gen/Apis.js"); require("../../common/libraries/request.js"); require("../../common/store/useWeAppAuthStore.js"); +require("../../common/store/useWatermarkStore.js"); require("../../common/store/useWorkStore.js"); require("../../common/libraries/naviHelper.js"); if (!Array) { diff --git a/dist/dev/mp-weixin/ME/feedback/method.js b/dist/dev/mp-weixin/ME/feedback/method.js index 7ba11c2..5fa055f 100644 --- a/dist/dev/mp-weixin/ME/feedback/method.js +++ b/dist/dev/mp-weixin/ME/feedback/method.js @@ -5,6 +5,7 @@ const gen_Apis = require("../../gen/Apis.js"); const ME_feedback_model = require("./model.js"); const common_libraries_naviHelper = require("../../common/libraries/naviHelper.js"); require("../../common/libraries/request.js"); +require("../../common/store/useWatermarkStore.js"); const common_store_useWeAppAuthStore = require("../../common/store/useWeAppAuthStore.js"); require("../../common/store/useWorkStore.js"); common_store_useWeAppAuthStore.useWeAppAuthStore(); diff --git a/dist/dev/mp-weixin/ME/instrument/add/index.js b/dist/dev/mp-weixin/ME/instrument/add/index.js new file mode 100644 index 0000000..d6ca28f --- /dev/null +++ b/dist/dev/mp-weixin/ME/instrument/add/index.js @@ -0,0 +1,77 @@ +"use strict"; +const common_vendor = require("../../../common/vendor.js"); +const common_libraries_day = require("../../../common/libraries/day.js"); +const ME_instrument_add_method = require("./method.js"); +const ME_instrument_add_model = require("./model.js"); +require("../../../common/libraries/apiLoading.js"); +require("../../../common/libraries/naviHelper.js"); +require("../../../gen/Apis.js"); +require("../../../common/libraries/request.js"); +require("../../../common/store/useWeAppAuthStore.js"); +require("../../../common/store/useWatermarkStore.js"); +require("../../../common/store/useWorkStore.js"); +if (!Array) { + const _easycom_hs_upload2 = common_vendor.resolveComponent("hs-upload"); + const _easycom_hs_cell_textarea2 = common_vendor.resolveComponent("hs-cell-textarea"); + const _easycom_hs_footer2 = common_vendor.resolveComponent("hs-footer"); + (_easycom_hs_upload2 + _easycom_hs_cell_textarea2 + _easycom_hs_footer2)(); +} +const _easycom_hs_upload = () => "../../../components/hs-upload/hs-upload.js"; +const _easycom_hs_cell_textarea = () => "../../../components/hs-cell-textarea/hs-cell-textarea.js"; +const _easycom_hs_footer = () => "../../../components/hs-footer/hs-footer.js"; +if (!Math) { + (_easycom_hs_upload + _easycom_hs_cell_textarea + _easycom_hs_footer)(); +} +const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({ + __name: "index", + setup(__props) { + common_vendor.onLoad((e) => { + var _a, _b; + (_a = ME_instrument_add_method.method) == null ? void 0 : _a.init(e); + (_b = ME_instrument_add_method.method) == null ? void 0 : _b.getShow(e); + }); + common_vendor.onUnload(() => { + ME_instrument_add_model.useModel.formData.value = { is_anonymous: false }; + }); + return (_ctx, _cache) => { + var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y; + return common_vendor.e({ + a: ((_c = (_b = (_a = common_vendor.unref(ME_instrument_add_model.useModel)) == null ? void 0 : _a.showData) == null ? void 0 : _b.value) == null ? void 0 : _c.usage_type) === "WaterMeter" + }, ((_f = (_e = (_d = common_vendor.unref(ME_instrument_add_model.useModel)) == null ? void 0 : _d.showData) == null ? void 0 : _e.value) == null ? void 0 : _f.usage_type) === "WaterMeter" ? {} : {}, { + b: ((_i = (_h = (_g = common_vendor.unref(ME_instrument_add_model.useModel)) == null ? void 0 : _g.showData) == null ? void 0 : _h.value) == null ? void 0 : _i.usage_type) === "ElectricMeter" + }, ((_l = (_k = (_j = common_vendor.unref(ME_instrument_add_model.useModel)) == null ? void 0 : _j.showData) == null ? void 0 : _k.value) == null ? void 0 : _l.usage_type) === "ElectricMeter" ? {} : {}, { + c: common_vendor.f((_o = (_n = (_m = common_vendor.unref(ME_instrument_add_model.useModel)) == null ? void 0 : _m.showData) == null ? void 0 : _n.value) == null ? void 0 : _o.house_meter_has_houses, (res, index, i0) => { + return { + a: common_vendor.t(res == null ? void 0 : res.full_name), + b: `house_${index}` + }; + }), + d: common_vendor.t(((_r = (_q = (_p = common_vendor.unref(ME_instrument_add_model.useModel)) == null ? void 0 : _p.showData) == null ? void 0 : _q.value) == null ? void 0 : _r.name) || "-"), + e: common_vendor.t(((_u = (_t = (_s = common_vendor.unref(ME_instrument_add_model.useModel)) == null ? void 0 : _s.showData) == null ? void 0 : _t.value) == null ? void 0 : _u.latest_value) || "-"), + f: common_vendor.t(common_vendor.unref(common_libraries_day.showDay)((_x = (_w = (_v = common_vendor.unref(ME_instrument_add_model.useModel)) == null ? void 0 : _v.showData) == null ? void 0 : _w.value) == null ? void 0 : _x.latest_time)), + g: common_vendor.t(common_vendor.unref(common_libraries_day.getDay)()), + h: common_vendor.unref(ME_instrument_add_model.useModel).formData.value.current_reading, + i: common_vendor.o(($event) => common_vendor.unref(ME_instrument_add_model.useModel).formData.value.current_reading = $event.detail.value), + j: common_vendor.o(($event) => common_vendor.unref(ME_instrument_add_model.useModel).formData.value.image = $event), + k: common_vendor.p({ + title: "上传图片", + count: 6, + valueModel: common_vendor.unref(ME_instrument_add_model.useModel).formData.value.image + }), + l: common_vendor.o(($event) => common_vendor.unref(ME_instrument_add_model.useModel).formData.value.remark = $event), + m: common_vendor.p({ + borderTop: true, + title: "备注(选填)", + placeholder: "请输入此次抄表的备注,选填", + valueModel: common_vendor.unref(ME_instrument_add_model.useModel).formData.value.remark + }), + n: common_vendor.o((_y = common_vendor.unref(ME_instrument_add_method.method)) == null ? void 0 : _y.handleSubmit), + o: common_vendor.p({ + btnParimaryName: "提交" + }) + }); + }; + } +}); +const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__file", "/Users/zsq/Sources/github/2025property-pay/pay-employee/src/ME/instrument/add/index.vue"]]); +wx.createPage(MiniProgramPage); diff --git a/dist/dev/mp-weixin/ME/instrument/add/index.json b/dist/dev/mp-weixin/ME/instrument/add/index.json new file mode 100644 index 0000000..f1d0acf --- /dev/null +++ b/dist/dev/mp-weixin/ME/instrument/add/index.json @@ -0,0 +1,8 @@ +{ + "navigationBarTitleText": "抄表", + "usingComponents": { + "hs-upload": "../../../components/hs-upload/hs-upload", + "hs-cell-textarea": "../../../components/hs-cell-textarea/hs-cell-textarea", + "hs-footer": "../../../components/hs-footer/hs-footer" + } +} \ No newline at end of file diff --git a/dist/dev/mp-weixin/ME/instrument/add/index.wxml b/dist/dev/mp-weixin/ME/instrument/add/index.wxml new file mode 100644 index 0000000..35ef4a6 --- /dev/null +++ b/dist/dev/mp-weixin/ME/instrument/add/index.wxml @@ -0,0 +1 @@ + 水表 电表{{res.a}} 仪表名称:{{d}} 上次读数:{{e}} 上次抄表:{{f}} 本期读数 更新时间:{{g}} \ No newline at end of file diff --git a/dist/dev/mp-weixin/ME/instrument/add/index.wxss b/dist/dev/mp-weixin/ME/instrument/add/index.wxss new file mode 100644 index 0000000..ee214ec --- /dev/null +++ b/dist/dev/mp-weixin/ME/instrument/add/index.wxss @@ -0,0 +1,89 @@ +page { + background-color: #f8f8f8; +} +.add_page { + padding-bottom: calc(150rpx + constant(safe-area-inset-bottom)); + padding-bottom: calc(150rpx + env(safe-area-inset-bottom)); +} +.add_page_header { + background-color: #fff; + padding: 20rpx 30rpx 30rpx 30rpx; +} +.add_page_header .header_cell { + display: flex; + align-items: center; + color: #666666; + font-size: 28rpx; + padding-top: 15rpx; +} +.hande_name_info { + display: flex; + align-items: center; +} +.hande_name_info .name { + color: #333333; + font-size: 28rpx; + font-weight: 500; + padding: 0 30rpx 0 0; +} +.hande_name_info .name text { + padding-left: 20rpx; +} +.hande_name_info .table_tab { + display: flex; + align-items: center; + padding: 6rpx 16rpx; + border-radius: 8rpx; + font-size: 24rpx; +} +.hande_name_info .table_tab image { + width: 18rpx; + height: 24rpx; + margin-right: 5rpx; +} +.hande_name_info .water { + background-color: #F0F8FF; + color: #0082FA; +} +.hande_name_info .electricity { + background-color: #FFF8F0; + color: #FFB30F; +} +.add_page_form_content { + padding: 30rpx; +} +.card_form { + background-color: #fff; + padding: 0 30rpx; + margin-bottom: 30rpx; + border-radius: 20rpx; +} +.report_repair { + padding: 10rpx 0; + color: #999; +} +.current_reading { + padding: 30rpx 0 0 0; + border-bottom: 1px solid #eee; +} +.current_reading .title { + color: #3D3D3D; + font-size: 32rpx; + font-weight: 600; + display: flex; + align-items: center; + justify-content: space-between; +} +.current_reading .title .time { + color: #999; + font-size: 25rpx; + font-weight: 400; +} +.current_reading .input_reading { + color: #3D3D3D; + font-size: 36rpx; + font-weight: 600; +} +.current_reading .input_reading input { + height: 90rpx; +} \ No newline at end of file diff --git a/dist/dev/mp-weixin/ME/instrument/add/method.js b/dist/dev/mp-weixin/ME/instrument/add/method.js new file mode 100644 index 0000000..983e09d --- /dev/null +++ b/dist/dev/mp-weixin/ME/instrument/add/method.js @@ -0,0 +1,43 @@ +"use strict"; +const common_vendor = require("../../../common/vendor.js"); +const common_libraries_apiLoading = require("../../../common/libraries/apiLoading.js"); +const common_libraries_day = require("../../../common/libraries/day.js"); +const common_libraries_naviHelper = require("../../../common/libraries/naviHelper.js"); +const gen_Apis = require("../../../gen/Apis.js"); +const ME_instrument_add_model = require("./model.js"); +const method = { + init(e) { + ME_instrument_add_model.useModel.formData.value = { house_meters_id: e == null ? void 0 : e.id }; + }, + handleSubmit() { + var _a, _b, _c; + console.log("handleSubmit", ME_instrument_add_model.useModel.formData.value); + if (!((_c = (_b = (_a = ME_instrument_add_model.useModel) == null ? void 0 : _a.formData) == null ? void 0 : _b.value) == null ? void 0 : _c.current_reading)) { + return common_libraries_naviHelper.showToast("请设置本次读数!"); + } + common_libraries_apiLoading.getApiLoading(gen_Apis.Apis.Meter.HouseMeterReadings.Store, { + ...ME_instrument_add_model.useModel.formData.value, + reading_time: common_libraries_day.getTime() + }).then((res) => { + common_libraries_naviHelper.showToastBack("提交成功!", 1, true); + console.log(res); + }); + }, + handleToSelectHouse() { + common_vendor.index.navigateTo({ + url: "/pages/public/asset_houses/index?type=work_add" + }); + }, + handleSwitchChange(e) { + var _a; + ME_instrument_add_model.useModel.formData.value.is_anonymous = (_a = e == null ? void 0 : e.detail) == null ? void 0 : _a.value; + console.log(e, "e"); + }, + getShow(e) { + common_libraries_apiLoading.getApiLoading(gen_Apis.Apis.Meter.HouseMeters.Show, e).then((res) => { + ME_instrument_add_model.useModel.showData.value = res == null ? void 0 : res.data; + console.log(res); + }); + } +}; +exports.method = method; diff --git a/dist/dev/mp-weixin/ME/instrument/add/model.js b/dist/dev/mp-weixin/ME/instrument/add/model.js new file mode 100644 index 0000000..5269879 --- /dev/null +++ b/dist/dev/mp-weixin/ME/instrument/add/model.js @@ -0,0 +1,7 @@ +"use strict"; +const common_vendor = require("../../../common/vendor.js"); +const useModel = { + formData: common_vendor.ref({}), + showData: common_vendor.ref({}) +}; +exports.useModel = useModel; diff --git a/dist/dev/mp-weixin/ME/instrument/list/index.js b/dist/dev/mp-weixin/ME/instrument/list/index.js new file mode 100644 index 0000000..f6db49c --- /dev/null +++ b/dist/dev/mp-weixin/ME/instrument/list/index.js @@ -0,0 +1,133 @@ +"use strict"; +const common_vendor = require("../../../common/vendor.js"); +const ME_instrument_list_method = require("./method.js"); +const ME_instrument_list_model = require("./model.js"); +require("../../../common/libraries/apiLoading.js"); +require("../../../gen/Apis.js"); +require("../../../common/libraries/request.js"); +require("../../../common/store/useWeAppAuthStore.js"); +require("../../../common/store/useWatermarkStore.js"); +require("../../../common/store/useWorkStore.js"); +if (!Array) { + const _easycom_hs_tabs2 = common_vendor.resolveComponent("hs-tabs"); + const _easycom_uni_icons2 = common_vendor.resolveComponent("uni-icons"); + const _easycom_up_search2 = common_vendor.resolveComponent("up-search"); + const _easycom_hs_popup_project2 = common_vendor.resolveComponent("hs-popup-project"); + const _easycom_hs_popup_building2 = common_vendor.resolveComponent("hs-popup-building"); + const _easycom_hs_radio_picker_enum2 = common_vendor.resolveComponent("hs-radio-picker-enum"); + const _easycom_hs_button2 = common_vendor.resolveComponent("hs-button"); + const _easycom_cc_scroll_loading2 = common_vendor.resolveComponent("cc-scroll-loading"); + (_easycom_hs_tabs2 + _easycom_uni_icons2 + _easycom_up_search2 + _easycom_hs_popup_project2 + _easycom_hs_popup_building2 + _easycom_hs_radio_picker_enum2 + _easycom_hs_button2 + _easycom_cc_scroll_loading2)(); +} +const _easycom_hs_tabs = () => "../../../components/hs-tabs/hs-tabs.js"; +const _easycom_uni_icons = () => "../../../uni_modules/uni-icons/components/uni-icons/uni-icons.js"; +const _easycom_up_search = () => "../../../node-modules/uview-plus/components/u-search/u-search.js"; +const _easycom_hs_popup_project = () => "../../../components/hs-popup-project/hs-popup-project.js"; +const _easycom_hs_popup_building = () => "../../../components/hs-popup-building/hs-popup-building.js"; +const _easycom_hs_radio_picker_enum = () => "../../../components/hs-radio-picker-enum/hs-radio-picker-enum.js"; +const _easycom_hs_button = () => "../../../components/hs-button/hs-button.js"; +const _easycom_cc_scroll_loading = () => "../../../common/components/cc-scroll-loading/cc-scroll-loading.js"; +if (!Math) { + (_easycom_hs_tabs + _easycom_uni_icons + _easycom_up_search + _easycom_hs_popup_project + _easycom_hs_popup_building + _easycom_hs_radio_picker_enum + _easycom_hs_button + _easycom_cc_scroll_loading)(); +} +const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({ + __name: "index", + setup(__props) { + const tablist = [ + { label: "住户仪表", value: "HouseMeter" }, + { label: "公共仪表", value: "CommonMeter" } + ]; + const meterTypes = [ + { + name: "全部", + value: void 0 + }, + { + name: "已抄表", + value: "read" + }, + { + name: "未抄表", + value: "unread" + } + ]; + common_vendor.onShow(() => { + var _a; + ME_instrument_list_model.useModel.formData.value.page = 1; + ME_instrument_list_model.useModel.listData.value = []; + (_a = ME_instrument_list_method.method) == null ? void 0 : _a.getList(); + }); + common_vendor.onUnload(() => { + ME_instrument_list_model.useModel.formData.value = { page: 1, keyword: "", meter_type: "HouseMeter" }; + }); + return (_ctx, _cache) => { + var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l; + return { + a: common_vendor.o((_a = common_vendor.unref(ME_instrument_list_method.method)) == null ? void 0 : _a.handleChangeTabs), + b: common_vendor.p({ + list: tablist, + current: (_c = (_b = common_vendor.unref(ME_instrument_list_model.useModel)) == null ? void 0 : _b.currentTabs) == null ? void 0 : _c.value + }), + c: common_vendor.p({ + type: "right", + size: "13", + color: "#333" + }), + d: common_vendor.o(($event) => { + var _a2; + return (_a2 = common_vendor.unref(ME_instrument_list_method.method)) == null ? void 0 : _a2.handleToLog(); + }), + e: common_vendor.o((_d = common_vendor.unref(ME_instrument_list_method.method)) == null ? void 0 : _d.handleSearch), + f: common_vendor.o(($event) => common_vendor.unref(ME_instrument_list_model.useModel).formData.value.keyword = $event), + g: common_vendor.p({ + ["show-action"]: false, + placeholder: "搜索房屋名称/仪表名称", + modelValue: common_vendor.unref(ME_instrument_list_model.useModel).formData.value.keyword + }), + h: common_vendor.o((_e = common_vendor.unref(ME_instrument_list_method.method)) == null ? void 0 : _e.handleChangeFilter), + i: common_vendor.o((_f = common_vendor.unref(ME_instrument_list_method.method)) == null ? void 0 : _f.handleChangeFilter), + j: common_vendor.p({ + params: common_vendor.unref(ME_instrument_list_model.useModel).formData.value + }), + k: common_vendor.o((_g = common_vendor.unref(ME_instrument_list_method.method)) == null ? void 0 : _g.handleChangeFilterReadingStatus), + l: common_vendor.p({ + Enums: meterTypes, + title: "抄表状态" + }), + m: common_vendor.f((_i = (_h = common_vendor.unref(ME_instrument_list_model.useModel)) == null ? void 0 : _h.listData) == null ? void 0 : _i.value, (i, index, i0) => { + return common_vendor.e({ + a: (i == null ? void 0 : i.usage_type) === "WaterMeter" + }, (i == null ? void 0 : i.usage_type) === "WaterMeter" ? {} : {}, { + b: (i == null ? void 0 : i.usage_type) === "ElectricMeter" + }, (i == null ? void 0 : i.usage_type) === "ElectricMeter" ? {} : {}, { + c: common_vendor.f(i == null ? void 0 : i.house_meter_has_houses, (res, index2, i1) => { + return { + a: common_vendor.t(res == null ? void 0 : res.full_name), + b: `house_${index2}` + }; + }), + d: common_vendor.t(i == null ? void 0 : i.name), + e: common_vendor.t(i == null ? void 0 : i.latest_value), + f: common_vendor.t(i == null ? void 0 : i.latest_time), + g: common_vendor.o(($event) => { + var _a2; + return (_a2 = common_vendor.unref(ME_instrument_list_method.method)) == null ? void 0 : _a2.handleToAdd(i); + }, `items_${index}`), + h: "7f08fc71-7-" + i0 + ",7f08fc71-6", + i: `items_${index}` + }); + }), + n: common_vendor.p({ + type: "primary", + label: "抄表" + }), + o: common_vendor.o((_j = common_vendor.unref(ME_instrument_list_method.method)) == null ? void 0 : _j.handleLoad), + p: common_vendor.p({ + meta: (_l = (_k = common_vendor.unref(ME_instrument_list_model.useModel)) == null ? void 0 : _k.metaData) == null ? void 0 : _l.value + }) + }; + }; + } +}); +const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__file", "/Users/zsq/Sources/github/2025property-pay/pay-employee/src/ME/instrument/list/index.vue"]]); +wx.createPage(MiniProgramPage); diff --git a/dist/dev/mp-weixin/ME/instrument/list/index.json b/dist/dev/mp-weixin/ME/instrument/list/index.json new file mode 100644 index 0000000..0a05626 --- /dev/null +++ b/dist/dev/mp-weixin/ME/instrument/list/index.json @@ -0,0 +1,13 @@ +{ + "navigationBarTitleText": "仪表抄表", + "usingComponents": { + "hs-tabs": "../../../components/hs-tabs/hs-tabs", + "uni-icons": "../../../uni_modules/uni-icons/components/uni-icons/uni-icons", + "up-search": "../../../node-modules/uview-plus/components/u-search/u-search", + "hs-popup-project": "../../../components/hs-popup-project/hs-popup-project", + "hs-popup-building": "../../../components/hs-popup-building/hs-popup-building", + "hs-radio-picker-enum": "../../../components/hs-radio-picker-enum/hs-radio-picker-enum", + "hs-button": "../../../components/hs-button/hs-button", + "cc-scroll-loading": "../../../common/components/cc-scroll-loading/cc-scroll-loading" + } +} \ No newline at end of file diff --git a/dist/dev/mp-weixin/ME/instrument/list/index.wxml b/dist/dev/mp-weixin/ME/instrument/list/index.wxml new file mode 100644 index 0000000..3645062 --- /dev/null +++ b/dist/dev/mp-weixin/ME/instrument/list/index.wxml @@ -0,0 +1 @@ + 抄表记录 水表 电表{{res.a}} 仪表名称:{{i.d}} 上次读数:{{i.e}} 更新时间:{{i.f}} \ No newline at end of file diff --git a/dist/dev/mp-weixin/ME/instrument/list/index.wxss b/dist/dev/mp-weixin/ME/instrument/list/index.wxss new file mode 100644 index 0000000..4676fd0 --- /dev/null +++ b/dist/dev/mp-weixin/ME/instrument/list/index.wxss @@ -0,0 +1,96 @@ +page { + background-color: #f8f8f8; +} +.header { + background-color: #fff; + position: fixed; + left: 0; + top: 0; + right: 0; + height: 280rpx; + z-index: 100; + box-shadow: 0px 3px 7px rgba(206, 206, 206, 0.25); +} +.header .header_tabs { + display: flex; + align-items: center; + justify-content: space-between; + padding: 0 30rpx; +} +.header .header_tabs .meter_reading_record { + color: #333333; + font-size: 28rpx; + display: flex; + align-items: center; +} +.header .search { + padding: 20rpx 30rpx 0 30rpx; +} +.header .filter { + display: flex; + align-items: center; + justify-content: space-between; + padding: 16rpx 30rpx 0 30rpx; +} +.work_contents { + padding: 280rpx 0 30rpx 0; +} +.work_contents .work_item { + background-color: #fff; + border-radius: 10rpx; + margin: 30rpx 30rpx 0 30rpx; + border-radius: 15rpx; + padding: 0 30rpx 10rpx 30rpx; +} +.work_contents .work_item .work_item_header { + display: flex; + align-items: self-start; + padding: 25rpx 0; +} +.work_contents .work_item .work_item_header .name { + color: #333333; + font-size: 28rpx; + font-weight: 500; + padding: 0 30rpx 0 20rpx; + flex: 1; +} +.work_contents .work_item .work_item_header .name text { + padding-right: 20rpx; +} +.work_contents .work_item .work_item_header .table_tab { + display: flex; + align-items: center; + padding: 6rpx 16rpx; + border-radius: 8rpx; + font-size: 24rpx; +} +.work_contents .work_item .work_item_header .table_tab image { + width: 18rpx; + height: 24rpx; + margin-right: 5rpx; +} +.work_contents .work_item .work_item_header .water { + background-color: #F0F8FF; + color: #0082FA; +} +.work_contents .work_item .work_item_header .electricity { + background-color: #FFF8F0; + color: #FFB30F; +} +.work_contents .work_item .work_item_cell { + display: flex; + align-items: center; + justify-content: space-between; + font-size: 30rpx; + color: #666; + padding-bottom: 20rpx; +} +.work_contents .work_item .work_item_cell text { + color: #333; +} +.work_contents .work_item .footer_item { + padding: 0 0 20rpx 0; +} +.card_status_4 { + border-top: 6px solid #ef4444; +} \ No newline at end of file diff --git a/dist/dev/mp-weixin/ME/instrument/list/method.js b/dist/dev/mp-weixin/ME/instrument/list/method.js new file mode 100644 index 0000000..9b0a125 --- /dev/null +++ b/dist/dev/mp-weixin/ME/instrument/list/method.js @@ -0,0 +1,60 @@ +"use strict"; +const common_vendor = require("../../../common/vendor.js"); +const common_libraries_apiLoading = require("../../../common/libraries/apiLoading.js"); +const gen_Apis = require("../../../gen/Apis.js"); +const ME_instrument_list_model = require("./model.js"); +const getList = () => { + var _a, _b; + common_libraries_apiLoading.getApiLoading(gen_Apis.Apis.Meter.HouseMeters.List, (_b = (_a = ME_instrument_list_model.useModel) == null ? void 0 : _a.formData) == null ? void 0 : _b.value).then((res) => { + ME_instrument_list_model.useModel.listData.value = [...ME_instrument_list_model.useModel.listData.value, ...res == null ? void 0 : res.data]; + ME_instrument_list_model.useModel.metaData.value = res == null ? void 0 : res.meta; + }); +}; +const handleTabSearch = () => { + ME_instrument_list_model.useModel.formData.value.page = 1; + ME_instrument_list_model.useModel.listData.value = []; + getList(); +}; +const method = { + getList, + handleSearch() { + handleTabSearch(); + }, + handleChangeFilter(e) { + ME_instrument_list_model.useModel.formData.value = { + ...ME_instrument_list_model.useModel.formData.value, + ...e, + pahe: 1 + }; + ME_instrument_list_model.useModel.listData.value = []; + getList(); + }, + handleChangeFilterReadingStatus(e) { + ME_instrument_list_model.useModel.formData.value = { + ...ME_instrument_list_model.useModel.formData.value, + reading_status: (e == null ? void 0 : e.value) || void 0 + }; + ME_instrument_list_model.useModel.listData.value = []; + getList(); + }, + handleChangeTabs(idx, e) { + ME_instrument_list_model.useModel.currentTabs.value = idx; + ME_instrument_list_model.useModel.formData.value.meter_type = e == null ? void 0 : e.value; + handleTabSearch(); + }, + handleLoad(page) { + ME_instrument_list_model.useModel.formData.value.page = page; + getList(); + }, + handleToAdd(i) { + common_vendor.index.navigateTo({ + url: `/ME/instrument/add/index?id=${i == null ? void 0 : i.id}` + }); + }, + handleToLog() { + common_vendor.index.navigateTo({ + url: `/ME/instrument/log/index?id=` + }); + } +}; +exports.method = method; diff --git a/dist/dev/mp-weixin/ME/instrument/list/model.js b/dist/dev/mp-weixin/ME/instrument/list/model.js new file mode 100644 index 0000000..5e5da4d --- /dev/null +++ b/dist/dev/mp-weixin/ME/instrument/list/model.js @@ -0,0 +1,9 @@ +"use strict"; +const common_vendor = require("../../../common/vendor.js"); +const useModel = { + currentTabs: common_vendor.ref(0), + formData: common_vendor.ref({ page: 1, keyword: "", meter_type: "HouseMeter" }), + listData: common_vendor.ref([]), + metaData: common_vendor.ref({}) +}; +exports.useModel = useModel; diff --git a/dist/dev/mp-weixin/ME/instrument/log/index.js b/dist/dev/mp-weixin/ME/instrument/log/index.js new file mode 100644 index 0000000..74cf55f --- /dev/null +++ b/dist/dev/mp-weixin/ME/instrument/log/index.js @@ -0,0 +1,93 @@ +"use strict"; +const common_vendor = require("../../../common/vendor.js"); +const ME_instrument_log_method = require("./method.js"); +const ME_instrument_log_model = require("./model.js"); +require("../../../common/libraries/apiLoading.js"); +require("../../../gen/Apis.js"); +require("../../../common/libraries/request.js"); +require("../../../common/store/useWeAppAuthStore.js"); +require("../../../common/store/useWatermarkStore.js"); +require("../../../common/store/useWorkStore.js"); +if (!Array) { + const _easycom_hs_tabs2 = common_vendor.resolveComponent("hs-tabs"); + const _easycom_up_search2 = common_vendor.resolveComponent("up-search"); + const _easycom_hs_popup_project2 = common_vendor.resolveComponent("hs-popup-project"); + const _easycom_hs_popup_building2 = common_vendor.resolveComponent("hs-popup-building"); + const _easycom_cc_scroll_loading2 = common_vendor.resolveComponent("cc-scroll-loading"); + (_easycom_hs_tabs2 + _easycom_up_search2 + _easycom_hs_popup_project2 + _easycom_hs_popup_building2 + _easycom_cc_scroll_loading2)(); +} +const _easycom_hs_tabs = () => "../../../components/hs-tabs/hs-tabs.js"; +const _easycom_up_search = () => "../../../node-modules/uview-plus/components/u-search/u-search.js"; +const _easycom_hs_popup_project = () => "../../../components/hs-popup-project/hs-popup-project.js"; +const _easycom_hs_popup_building = () => "../../../components/hs-popup-building/hs-popup-building.js"; +const _easycom_cc_scroll_loading = () => "../../../common/components/cc-scroll-loading/cc-scroll-loading.js"; +if (!Math) { + (_easycom_hs_tabs + _easycom_up_search + _easycom_hs_popup_project + _easycom_hs_popup_building + _easycom_cc_scroll_loading)(); +} +const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({ + __name: "index", + setup(__props) { + const tablist = [ + { label: "住户仪表", value: "HouseMeter" }, + { label: "公共仪表", value: "CommonMeter" } + ]; + common_vendor.onLoad(() => { + var _a; + ME_instrument_log_model.useModel.formData.value.page = 1; + ME_instrument_log_model.useModel.listData.value = []; + (_a = ME_instrument_log_method.method) == null ? void 0 : _a.getList(); + }); + return (_ctx, _cache) => { + var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k; + return { + a: common_vendor.o((_a = common_vendor.unref(ME_instrument_log_method.method)) == null ? void 0 : _a.handleChangeTabs), + b: common_vendor.p({ + list: tablist, + current: (_c = (_b = common_vendor.unref(ME_instrument_log_model.useModel)) == null ? void 0 : _b.currentTabs) == null ? void 0 : _c.value + }), + c: common_vendor.o((_d = common_vendor.unref(ME_instrument_log_method.method)) == null ? void 0 : _d.handleSearch), + d: common_vendor.o(($event) => common_vendor.unref(ME_instrument_log_model.useModel).formData.value.keyword = $event), + e: common_vendor.p({ + ["show-action"]: false, + placeholder: "搜索房屋名称/仪表名称", + modelValue: common_vendor.unref(ME_instrument_log_model.useModel).formData.value.keyword + }), + f: common_vendor.o((_e = common_vendor.unref(ME_instrument_log_method.method)) == null ? void 0 : _e.handleChangeFilter), + g: common_vendor.o((_f = common_vendor.unref(ME_instrument_log_method.method)) == null ? void 0 : _f.handleChangeFilter), + h: common_vendor.p({ + params: common_vendor.unref(ME_instrument_log_model.useModel).formData.value + }), + i: common_vendor.f((_h = (_g = common_vendor.unref(ME_instrument_log_model.useModel)) == null ? void 0 : _g.listData) == null ? void 0 : _h.value, (i, index, i0) => { + var _a2, _b2, _c2, _d2, _e2, _f2, _g2; + return common_vendor.e({ + a: ((_a2 = i == null ? void 0 : i.house_meter) == null ? void 0 : _a2.usage_type) === "WaterMeter" + }, ((_b2 = i == null ? void 0 : i.house_meter) == null ? void 0 : _b2.usage_type) === "WaterMeter" ? {} : {}, { + b: ((_c2 = i == null ? void 0 : i.house_meter) == null ? void 0 : _c2.usage_type) === "ElectricMeter" + }, ((_d2 = i == null ? void 0 : i.house_meter) == null ? void 0 : _d2.usage_type) === "ElectricMeter" ? {} : {}, { + c: common_vendor.f((_e2 = i == null ? void 0 : i.house_meter) == null ? void 0 : _e2.house_meter_has_houses, (res, index2, i1) => { + return { + a: common_vendor.t(res == null ? void 0 : res.full_name), + b: `house_${index2}` + }; + }), + d: common_vendor.t((_f2 = i == null ? void 0 : i.house_meter) == null ? void 0 : _f2.name), + e: common_vendor.t(i == null ? void 0 : i.current_reading), + f: common_vendor.t(i == null ? void 0 : i.reading_time), + g: common_vendor.t((_g2 = i == null ? void 0 : i.company_employee) == null ? void 0 : _g2.name), + h: `items_${index}`, + i: common_vendor.o(($event) => { + var _a3; + return (_a3 = common_vendor.unref(ME_instrument_log_method.method)) == null ? void 0 : _a3.handleToDetail(i); + }, `items_${index}`) + }); + }), + j: common_vendor.o((_i = common_vendor.unref(ME_instrument_log_method.method)) == null ? void 0 : _i.handleLoad), + k: common_vendor.p({ + meta: (_k = (_j = common_vendor.unref(ME_instrument_log_model.useModel)) == null ? void 0 : _j.metaData) == null ? void 0 : _k.value + }) + }; + }; + } +}); +const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__file", "/Users/zsq/Sources/github/2025property-pay/pay-employee/src/ME/instrument/log/index.vue"]]); +wx.createPage(MiniProgramPage); diff --git a/dist/dev/mp-weixin/ME/instrument/log/index.json b/dist/dev/mp-weixin/ME/instrument/log/index.json new file mode 100644 index 0000000..f18222c --- /dev/null +++ b/dist/dev/mp-weixin/ME/instrument/log/index.json @@ -0,0 +1,10 @@ +{ + "navigationBarTitleText": "抄表记录", + "usingComponents": { + "hs-tabs": "../../../components/hs-tabs/hs-tabs", + "up-search": "../../../node-modules/uview-plus/components/u-search/u-search", + "hs-popup-project": "../../../components/hs-popup-project/hs-popup-project", + "hs-popup-building": "../../../components/hs-popup-building/hs-popup-building", + "cc-scroll-loading": "../../../common/components/cc-scroll-loading/cc-scroll-loading" + } +} \ No newline at end of file diff --git a/dist/dev/mp-weixin/ME/instrument/log/index.wxml b/dist/dev/mp-weixin/ME/instrument/log/index.wxml new file mode 100644 index 0000000..8f989cf --- /dev/null +++ b/dist/dev/mp-weixin/ME/instrument/log/index.wxml @@ -0,0 +1 @@ + 水表 电表{{res.a}} 仪表名称:{{i.d}} 抄表读数:{{i.e}} 抄表时间:{{i.f}} 抄表人:{{i.g}} \ No newline at end of file diff --git a/dist/dev/mp-weixin/ME/instrument/log/index.wxss b/dist/dev/mp-weixin/ME/instrument/log/index.wxss new file mode 100644 index 0000000..4676fd0 --- /dev/null +++ b/dist/dev/mp-weixin/ME/instrument/log/index.wxss @@ -0,0 +1,96 @@ +page { + background-color: #f8f8f8; +} +.header { + background-color: #fff; + position: fixed; + left: 0; + top: 0; + right: 0; + height: 280rpx; + z-index: 100; + box-shadow: 0px 3px 7px rgba(206, 206, 206, 0.25); +} +.header .header_tabs { + display: flex; + align-items: center; + justify-content: space-between; + padding: 0 30rpx; +} +.header .header_tabs .meter_reading_record { + color: #333333; + font-size: 28rpx; + display: flex; + align-items: center; +} +.header .search { + padding: 20rpx 30rpx 0 30rpx; +} +.header .filter { + display: flex; + align-items: center; + justify-content: space-between; + padding: 16rpx 30rpx 0 30rpx; +} +.work_contents { + padding: 280rpx 0 30rpx 0; +} +.work_contents .work_item { + background-color: #fff; + border-radius: 10rpx; + margin: 30rpx 30rpx 0 30rpx; + border-radius: 15rpx; + padding: 0 30rpx 10rpx 30rpx; +} +.work_contents .work_item .work_item_header { + display: flex; + align-items: self-start; + padding: 25rpx 0; +} +.work_contents .work_item .work_item_header .name { + color: #333333; + font-size: 28rpx; + font-weight: 500; + padding: 0 30rpx 0 20rpx; + flex: 1; +} +.work_contents .work_item .work_item_header .name text { + padding-right: 20rpx; +} +.work_contents .work_item .work_item_header .table_tab { + display: flex; + align-items: center; + padding: 6rpx 16rpx; + border-radius: 8rpx; + font-size: 24rpx; +} +.work_contents .work_item .work_item_header .table_tab image { + width: 18rpx; + height: 24rpx; + margin-right: 5rpx; +} +.work_contents .work_item .work_item_header .water { + background-color: #F0F8FF; + color: #0082FA; +} +.work_contents .work_item .work_item_header .electricity { + background-color: #FFF8F0; + color: #FFB30F; +} +.work_contents .work_item .work_item_cell { + display: flex; + align-items: center; + justify-content: space-between; + font-size: 30rpx; + color: #666; + padding-bottom: 20rpx; +} +.work_contents .work_item .work_item_cell text { + color: #333; +} +.work_contents .work_item .footer_item { + padding: 0 0 20rpx 0; +} +.card_status_4 { + border-top: 6px solid #ef4444; +} \ No newline at end of file diff --git a/dist/dev/mp-weixin/ME/instrument/log/method.js b/dist/dev/mp-weixin/ME/instrument/log/method.js new file mode 100644 index 0000000..e8a0bdb --- /dev/null +++ b/dist/dev/mp-weixin/ME/instrument/log/method.js @@ -0,0 +1,47 @@ +"use strict"; +const common_vendor = require("../../../common/vendor.js"); +const common_libraries_apiLoading = require("../../../common/libraries/apiLoading.js"); +const gen_Apis = require("../../../gen/Apis.js"); +const ME_instrument_log_model = require("./model.js"); +const getList = () => { + var _a, _b; + common_libraries_apiLoading.getApiLoading(gen_Apis.Apis.Meter.HouseMeterReadings.List, (_b = (_a = ME_instrument_log_model.useModel) == null ? void 0 : _a.formData) == null ? void 0 : _b.value).then((res) => { + ME_instrument_log_model.useModel.listData.value = [...ME_instrument_log_model.useModel.listData.value, ...res == null ? void 0 : res.data]; + ME_instrument_log_model.useModel.metaData.value = res == null ? void 0 : res.meta; + }); +}; +const handleTabSearch = () => { + ME_instrument_log_model.useModel.formData.value.page = 1; + ME_instrument_log_model.useModel.listData.value = []; + getList(); +}; +const method = { + getList, + handleSearch() { + handleTabSearch(); + }, + handleChangeTabs(idx, e) { + ME_instrument_log_model.useModel.currentTabs.value = idx; + ME_instrument_log_model.useModel.formData.value.meter_type = e == null ? void 0 : e.value; + handleTabSearch(); + }, + handleLoad(page) { + ME_instrument_log_model.useModel.formData.value.page = page; + getList(); + }, + handleChangeFilter(e) { + ME_instrument_log_model.useModel.formData.value = { + ...ME_instrument_log_model.useModel.formData.value, + ...e, + pahe: 1 + }; + ME_instrument_log_model.useModel.listData.value = []; + getList(); + }, + handleToDetail(e) { + common_vendor.index.navigateTo({ + url: `/ME/instrument/log_show/index?id=${e == null ? void 0 : e.id}` + }); + } +}; +exports.method = method; diff --git a/dist/dev/mp-weixin/ME/instrument/log/model.js b/dist/dev/mp-weixin/ME/instrument/log/model.js new file mode 100644 index 0000000..5e5da4d --- /dev/null +++ b/dist/dev/mp-weixin/ME/instrument/log/model.js @@ -0,0 +1,9 @@ +"use strict"; +const common_vendor = require("../../../common/vendor.js"); +const useModel = { + currentTabs: common_vendor.ref(0), + formData: common_vendor.ref({ page: 1, keyword: "", meter_type: "HouseMeter" }), + listData: common_vendor.ref([]), + metaData: common_vendor.ref({}) +}; +exports.useModel = useModel; diff --git a/dist/dev/mp-weixin/ME/instrument/log_show/index.js b/dist/dev/mp-weixin/ME/instrument/log_show/index.js new file mode 100644 index 0000000..398e937 --- /dev/null +++ b/dist/dev/mp-weixin/ME/instrument/log_show/index.js @@ -0,0 +1,53 @@ +"use strict"; +const common_vendor = require("../../../common/vendor.js"); +const ME_instrument_log_show_method = require("./method.js"); +const ME_instrument_log_show_model = require("./model.js"); +require("../../../common/libraries/apiLoading.js"); +require("../../../gen/Apis.js"); +require("../../../common/libraries/request.js"); +require("../../../common/store/useWeAppAuthStore.js"); +require("../../../common/store/useWatermarkStore.js"); +require("../../../common/store/useWorkStore.js"); +const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({ + __name: "index", + setup(__props) { + common_vendor.onLoad((e) => { + var _a; + (_a = ME_instrument_log_show_method.method) == null ? void 0 : _a.getShow(e); + }); + return (_ctx, _cache) => { + var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _A, _B, _C, _D, _E, _F, _G, _H, _I, _J, _K, _L, _M, _N, _O, _P, _Q, _R, _S, _T; + return common_vendor.e({ + a: ((_d = (_c = (_b = (_a = common_vendor.unref(ME_instrument_log_show_model.useModel)) == null ? void 0 : _a.showData) == null ? void 0 : _b.value) == null ? void 0 : _c.house_meter) == null ? void 0 : _d.usage_type) === "WaterMeter" + }, ((_h = (_g = (_f = (_e = common_vendor.unref(ME_instrument_log_show_model.useModel)) == null ? void 0 : _e.showData) == null ? void 0 : _f.value) == null ? void 0 : _g.house_meter) == null ? void 0 : _h.usage_type) === "WaterMeter" ? {} : {}, { + b: ((_l = (_k = (_j = (_i = common_vendor.unref(ME_instrument_log_show_model.useModel)) == null ? void 0 : _i.showData) == null ? void 0 : _j.value) == null ? void 0 : _k.house_meter) == null ? void 0 : _l.usage_type) === "ElectricMeter" + }, ((_p = (_o = (_n = (_m = common_vendor.unref(ME_instrument_log_show_model.useModel)) == null ? void 0 : _m.showData) == null ? void 0 : _n.value) == null ? void 0 : _o.house_meter) == null ? void 0 : _p.usage_type) === "ElectricMeter" ? {} : {}, { + c: common_vendor.f((_t = (_s = (_r = (_q = common_vendor.unref(ME_instrument_log_show_model.useModel)) == null ? void 0 : _q.showData) == null ? void 0 : _r.value) == null ? void 0 : _s.house_meter) == null ? void 0 : _t.house_meter_has_houses, (res, index, i0) => { + return { + a: common_vendor.t(res == null ? void 0 : res.full_name), + b: `house_${index}` + }; + }), + d: common_vendor.t(((_x = (_w = (_v = (_u = common_vendor.unref(ME_instrument_log_show_model.useModel)) == null ? void 0 : _u.showData) == null ? void 0 : _v.value) == null ? void 0 : _w.house_meter) == null ? void 0 : _x.name) || "-"), + e: common_vendor.t(((_A = (_z = (_y = common_vendor.unref(ME_instrument_log_show_model.useModel)) == null ? void 0 : _y.showData) == null ? void 0 : _z.value) == null ? void 0 : _A.current_reading) || "-"), + f: common_vendor.t((_D = (_C = (_B = common_vendor.unref(ME_instrument_log_show_model.useModel)) == null ? void 0 : _B.showData) == null ? void 0 : _C.value) == null ? void 0 : _D.reading_time), + g: common_vendor.t(((_H = (_G = (_F = (_E = common_vendor.unref(ME_instrument_log_show_model.useModel)) == null ? void 0 : _E.showData) == null ? void 0 : _F.value) == null ? void 0 : _G.company_employee) == null ? void 0 : _H.name) || "-"), + h: common_vendor.f((_K = (_J = (_I = common_vendor.unref(ME_instrument_log_show_model.useModel)) == null ? void 0 : _I.showData) == null ? void 0 : _J.value) == null ? void 0 : _K.images, (i, index, i0) => { + return { + a: i == null ? void 0 : i.url, + b: `attachment_${index}`, + c: common_vendor.o(($event) => { + var _a2; + return (_a2 = common_vendor.unref(ME_instrument_log_show_method.method)) == null ? void 0 : _a2.handlePreview(index); + }, `attachment_${index}`) + }; + }), + i: (_N = (_M = (_L = common_vendor.unref(ME_instrument_log_show_model.useModel)) == null ? void 0 : _L.showData) == null ? void 0 : _M.value) == null ? void 0 : _N.remark + }, ((_Q = (_P = (_O = common_vendor.unref(ME_instrument_log_show_model.useModel)) == null ? void 0 : _O.showData) == null ? void 0 : _P.value) == null ? void 0 : _Q.remark) ? { + j: common_vendor.t(((_T = (_S = (_R = common_vendor.unref(ME_instrument_log_show_model.useModel)) == null ? void 0 : _R.showData) == null ? void 0 : _S.value) == null ? void 0 : _T.remark) || "-") + } : {}); + }; + } +}); +const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__file", "/Users/zsq/Sources/github/2025property-pay/pay-employee/src/ME/instrument/log_show/index.vue"]]); +wx.createPage(MiniProgramPage); diff --git a/dist/dev/mp-weixin/ME/instrument/log_show/index.json b/dist/dev/mp-weixin/ME/instrument/log_show/index.json new file mode 100644 index 0000000..6b26bfa --- /dev/null +++ b/dist/dev/mp-weixin/ME/instrument/log_show/index.json @@ -0,0 +1,4 @@ +{ + "navigationBarTitleText": "抄表记录详情", + "usingComponents": {} +} \ No newline at end of file diff --git a/dist/dev/mp-weixin/ME/instrument/log_show/index.wxml b/dist/dev/mp-weixin/ME/instrument/log_show/index.wxml new file mode 100644 index 0000000..40809e4 --- /dev/null +++ b/dist/dev/mp-weixin/ME/instrument/log_show/index.wxml @@ -0,0 +1 @@ + 水表 电表{{res.a}} 仪表名称:{{d}} 抄表读数:{{e}} 抄表时间:{{f}} 抄表人:{{g}} 抄表附件 备注:{{j}} \ No newline at end of file diff --git a/dist/dev/mp-weixin/ME/instrument/log_show/index.wxss b/dist/dev/mp-weixin/ME/instrument/log_show/index.wxss new file mode 100644 index 0000000..a1f5d0b --- /dev/null +++ b/dist/dev/mp-weixin/ME/instrument/log_show/index.wxss @@ -0,0 +1,81 @@ +page { + background-color: #f8f8f8; +} +.show_header { + margin: 30rpx; + background-color: #fff; + border-radius: 15rpx; + padding: 30rpx; +} +.show_header .header_cell { + display: flex; + align-items: center; + color: #666666; + font-size: 28rpx; + padding-top: 15rpx; +} +.show_header .hande_name_info { + display: flex; + align-items: self-start; +} +.show_header .hande_name_info .name { + color: #333333; + font-size: 28rpx; + font-weight: 500; + padding: 0 30rpx 0 20rpx; + flex: 1; +} +.show_header .hande_name_info .name text { + padding-right: 20rpx; +} +.show_header .hande_name_info .table_tab { + display: flex; + align-items: center; + padding: 6rpx 16rpx; + border-radius: 8rpx; + font-size: 24rpx; +} +.show_header .hande_name_info .table_tab image { + width: 18rpx; + height: 24rpx; + margin-right: 5rpx; +} +.show_header .hande_name_info .water { + background-color: #F0F8FF; + color: #0082FA; +} +.show_header .hande_name_info .electricity { + background-color: #FFF8F0; + color: #FFB30F; +} +.attachment_img { + margin: 30rpx; + background-color: #fff; + padding: 30rpx; + border-radius: 15rpx; +} +.attachment_img .title { + font-size: 30rpx; + font-weight: 600; +} +.attachment_img .img_list { + display: flex; + align-items: center; + justify-content: flex-start; + flex-wrap: wrap; + padding-top: 20rpx; +} +.attachment_img .img_list .attachment_img_item { + margin-right: 20rpx; +} +.attachment_img .img_list .attachment_img_item:last-child { + margin-right: 0; +} +.attachment_img .img_list image { + width: 160rpx; + height: 160rpx; +} +.attachment_img .remark_info { + font-size: 26rpx; + color: #666; +} \ No newline at end of file diff --git a/dist/dev/mp-weixin/ME/instrument/log_show/method.js b/dist/dev/mp-weixin/ME/instrument/log_show/method.js new file mode 100644 index 0000000..a7582c4 --- /dev/null +++ b/dist/dev/mp-weixin/ME/instrument/log_show/method.js @@ -0,0 +1,21 @@ +"use strict"; +const common_vendor = require("../../../common/vendor.js"); +const common_libraries_apiLoading = require("../../../common/libraries/apiLoading.js"); +const gen_Apis = require("../../../gen/Apis.js"); +const ME_instrument_log_show_model = require("./model.js"); +const method = { + handlePreview(index) { + var _a, _b, _c, _d; + common_vendor.index.previewImage({ + urls: (_d = (_c = (_b = (_a = ME_instrument_log_show_model.useModel) == null ? void 0 : _a.showData) == null ? void 0 : _b.value) == null ? void 0 : _c.images) == null ? void 0 : _d.map((i) => (i == null ? void 0 : i.url) || ""), + current: index + }); + }, + getShow(data) { + common_libraries_apiLoading.getApiLoading(gen_Apis.Apis.Meter.HouseMeterReadings.Show, data).then((res) => { + ME_instrument_log_show_model.useModel.showData.value = res == null ? void 0 : res.data; + console.log(res); + }); + } +}; +exports.method = method; diff --git a/dist/dev/mp-weixin/ME/instrument/log_show/model.js b/dist/dev/mp-weixin/ME/instrument/log_show/model.js new file mode 100644 index 0000000..614ac2b --- /dev/null +++ b/dist/dev/mp-weixin/ME/instrument/log_show/model.js @@ -0,0 +1,6 @@ +"use strict"; +const common_vendor = require("../../../common/vendor.js"); +const useModel = { + showData: common_vendor.ref({}) +}; +exports.useModel = useModel; diff --git a/dist/dev/mp-weixin/ME/knowledge_qa/index.js b/dist/dev/mp-weixin/ME/knowledge_qa/index.js index 6858a1b..4c453a6 100644 --- a/dist/dev/mp-weixin/ME/knowledge_qa/index.js +++ b/dist/dev/mp-weixin/ME/knowledge_qa/index.js @@ -5,6 +5,7 @@ const ME_knowledge_qa_method = require("./method.js"); require("../../common/libraries/request.js"); require("../../common/store/useWeAppAuthStore.js"); require("../../gen/Apis.js"); +require("../../common/store/useWatermarkStore.js"); require("../../common/store/useWorkStore.js"); require("../../common/libraries/apiLoading.js"); if (!Array) { diff --git a/dist/dev/mp-weixin/ME/knowledge_qa/method.js b/dist/dev/mp-weixin/ME/knowledge_qa/method.js index 55e393c..067ff64 100644 --- a/dist/dev/mp-weixin/ME/knowledge_qa/method.js +++ b/dist/dev/mp-weixin/ME/knowledge_qa/method.js @@ -1,6 +1,7 @@ "use strict"; const common_vendor = require("../../common/vendor.js"); require("../../common/libraries/request.js"); +require("../../common/store/useWatermarkStore.js"); const common_store_useWeAppAuthStore = require("../../common/store/useWeAppAuthStore.js"); require("../../common/store/useWorkStore.js"); const ME_knowledge_qa_model = require("./model.js"); diff --git a/dist/dev/mp-weixin/ME/push_show/index.js b/dist/dev/mp-weixin/ME/push_show/index.js index 662fa04..c825896 100644 --- a/dist/dev/mp-weixin/ME/push_show/index.js +++ b/dist/dev/mp-weixin/ME/push_show/index.js @@ -3,6 +3,7 @@ const common_vendor = require("../../common/vendor.js"); const ME_push_show_model = require("./model.js"); const ME_push_show_method = require("./method.js"); require("../../common/libraries/request.js"); +require("../../common/store/useWatermarkStore.js"); const common_store_useWeAppAuthStore = require("../../common/store/useWeAppAuthStore.js"); require("../../common/store/useWorkStore.js"); require("../../common/libraries/day.js"); diff --git a/dist/dev/mp-weixin/ME/push_show/method.js b/dist/dev/mp-weixin/ME/push_show/method.js index a74772f..b7083ee 100644 --- a/dist/dev/mp-weixin/ME/push_show/method.js +++ b/dist/dev/mp-weixin/ME/push_show/method.js @@ -4,6 +4,7 @@ const common_libraries_apiLoading = require("../../common/libraries/apiLoading.j const gen_Apis = require("../../gen/Apis.js"); const ME_push_show_model = require("./model.js"); require("../../common/libraries/request.js"); +require("../../common/store/useWatermarkStore.js"); const common_store_useWeAppAuthStore = require("../../common/store/useWeAppAuthStore.js"); require("../../common/store/useWorkStore.js"); const common_libraries_naviHelper = require("../../common/libraries/naviHelper.js"); diff --git a/dist/dev/mp-weixin/ME/update/index.js b/dist/dev/mp-weixin/ME/update/index.js index 5820ef0..4ba01a4 100644 --- a/dist/dev/mp-weixin/ME/update/index.js +++ b/dist/dev/mp-weixin/ME/update/index.js @@ -5,6 +5,7 @@ const ME_update_model = require("./model.js"); require("../../common/libraries/request.js"); require("../../common/store/useWeAppAuthStore.js"); require("../../gen/Apis.js"); +require("../../common/store/useWatermarkStore.js"); require("../../common/store/useWorkStore.js"); require("../../common/libraries/apiLoading.js"); require("../../common/libraries/naviHelper.js"); diff --git a/dist/dev/mp-weixin/ME/update/method.js b/dist/dev/mp-weixin/ME/update/method.js index 5917c8c..9cf63ed 100644 --- a/dist/dev/mp-weixin/ME/update/method.js +++ b/dist/dev/mp-weixin/ME/update/method.js @@ -1,6 +1,7 @@ "use strict"; const common_vendor = require("../../common/vendor.js"); require("../../common/libraries/request.js"); +require("../../common/store/useWatermarkStore.js"); const common_store_useWeAppAuthStore = require("../../common/store/useWeAppAuthStore.js"); require("../../common/store/useWorkStore.js"); const common_libraries_apiLoading = require("../../common/libraries/apiLoading.js"); diff --git a/dist/dev/mp-weixin/ME/work_order_home/index.js b/dist/dev/mp-weixin/ME/work_order_home/index.js new file mode 100644 index 0000000..5775046 --- /dev/null +++ b/dist/dev/mp-weixin/ME/work_order_home/index.js @@ -0,0 +1,115 @@ +"use strict"; +const common_vendor = require("../../common/vendor.js"); +if (!Array) { + const _easycom_uni_icons2 = common_vendor.resolveComponent("uni-icons"); + const _easycom_hs_popup2 = common_vendor.resolveComponent("hs-popup"); + (_easycom_uni_icons2 + _easycom_hs_popup2)(); +} +const _easycom_uni_icons = () => "../../uni_modules/uni-icons/components/uni-icons/uni-icons.js"; +const _easycom_hs_popup = () => "../../components/hs-popup/hs-popup.js"; +if (!Math) { + (_easycom_uni_icons + _easycom_hs_popup)(); +} +const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({ + __name: "index", + setup(__props) { + const showPopup = common_vendor.ref(false); + const selectType = common_vendor.ref(""); + const handleSubmissionRecord = (url) => { + common_vendor.index.navigateTo({ + url + }); + }; + const handleClose = () => { + showPopup.value = false; + }; + const list = [ + { + label: "报修类", + des: "设备、设施等出现故障,需维修处理", + type: "Repair", + icon: "https://pay-prod-1369486729.cos.ap-guangzhou.myqcloud.com/uploads/cs-test/01K84V91E3TZ6BPP6VH3MV0A2C.png" + }, + { + label: "报事类", + des: "噪音/公共卫生等事件需物业处理", + type: "Incident", + icon: "https://pay-prod-1369486729.cos.ap-guangzhou.myqcloud.com/uploads/cs-test/01K84V9RGS3HS1G43RWFFTC4FZ.png" + } + ]; + const typeList = [ + { + label: "公共区域报修", + type: "CommonArea", + icon: "https://pay-prod-1369486729.cos.ap-guangzhou.myqcloud.com/uploads/cs-test/01K84WNKS9GNHQEV2EQ3N3HWW8.png" + }, + { + label: "房屋区域报修", + type: "MyHome", + icon: "https://pay-prod-1369486729.cos.ap-guangzhou.myqcloud.com/uploads/cs-test/01K84XQQGNN7B30Q8S6RJMJGPS.png" + } + ]; + const handleToPage = (res) => { + selectType.value = (res == null ? void 0 : res.type) || ""; + if ((res == null ? void 0 : res.label) === "报修类") { + showPopup.value = true; + return; + } + common_vendor.index.navigateTo({ + url: `/WORKORDER/add/index?type=${res == null ? void 0 : res.type}&location=CommonArea` + }); + }; + const handleSelectType = (res) => { + common_vendor.index.navigateTo({ + url: `/WORKORDER/add/index?type=${selectType.value}&location=${res == null ? void 0 : res.type}` + }); + }; + common_vendor.onHide(() => { + showPopup.value = false; + }); + return (_ctx, _cache) => { + return { + a: common_vendor.o(($event) => handleSubmissionRecord("/WORKORDER/list_log/index")), + b: common_vendor.o(($event) => handleSubmissionRecord("/WORKORDER/list/index")), + c: common_vendor.f(list, (i, index, i0) => { + return { + a: i.icon, + b: common_vendor.t(i.label), + c: common_vendor.t(i.des), + d: "090f2c6e-0-" + i0, + e: `item_${index}`, + f: common_vendor.o(($event) => handleToPage(i), `item_${index}`) + }; + }), + d: common_vendor.p({ + type: "right", + color: "#999", + size: "16" + }), + e: common_vendor.f(typeList, (i, index, i0) => { + return { + a: i.icon, + b: common_vendor.t(i.label), + c: "090f2c6e-2-" + i0 + ",090f2c6e-1", + d: `item_${index}`, + e: common_vendor.o(($event) => handleSelectType(i), `item_${index}`) + }; + }), + f: common_vendor.p({ + type: "right", + color: "#999", + size: "16" + }), + g: common_vendor.o(handleClose), + h: common_vendor.p({ + show: showPopup.value, + mode: "bottom", + closeable: true, + round: 20 + }) + }; + }; + } +}); +const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__file", "/Users/zsq/Sources/github/2025property-pay/pay-employee/src/ME/work_order_home/index.vue"]]); +wx.createPage(MiniProgramPage); diff --git a/dist/dev/mp-weixin/ME/work_order_home/index.json b/dist/dev/mp-weixin/ME/work_order_home/index.json new file mode 100644 index 0000000..4bf9a5f --- /dev/null +++ b/dist/dev/mp-weixin/ME/work_order_home/index.json @@ -0,0 +1,7 @@ +{ + "navigationBarTitleText": "工单提报", + "usingComponents": { + "uni-icons": "../../uni_modules/uni-icons/components/uni-icons/uni-icons", + "hs-popup": "../../components/hs-popup/hs-popup" + } +} \ No newline at end of file diff --git a/dist/dev/mp-weixin/ME/work_order_home/index.wxml b/dist/dev/mp-weixin/ME/work_order_home/index.wxml new file mode 100644 index 0000000..30acb90 --- /dev/null +++ b/dist/dev/mp-weixin/ME/work_order_home/index.wxml @@ -0,0 +1 @@ + 工单处理中心 提报记录 工单任务 选择新增工单类型 {{i.b}}{{i.c}} 点击联系及时沟通 选择报修区域 {{i.b}} \ No newline at end of file diff --git a/dist/dev/mp-weixin/ME/work_order_home/index.wxss b/dist/dev/mp-weixin/ME/work_order_home/index.wxss new file mode 100644 index 0000000..28051d6 --- /dev/null +++ b/dist/dev/mp-weixin/ME/work_order_home/index.wxss @@ -0,0 +1,151 @@ +page { + background-color: #f8f8f8; +} +.work_order_header { + padding: 70rpx 30rpx 0 30rpx; + background: linear-gradient(180deg, #e7f1ff 0%, #f8f8f8 200rpx); + display: flex; + align-items: center; + justify-content: space-between; +} +.work_order_header_left { + width: 60%; +} +.work_order_header_left .work_label { + font-size: 45rpx; + font-weight: 500; + color: #333; +} +.work_order_header_right { + width: 40%; + text-align: center; +} +.work_order_header_right image { + height: 200rpx; +} +.work_order_jinganqu { + display: flex; + align-items: center; + justify-content: space-between; + padding: 40rpx 30rpx; + font-size: 31rpx; + font-weight: 500; + color: #333; +} +.work_order_jinganqu .item { + border-radius: 20rpx; + display: flex; + align-items: center; + height: 140rpx; + flex: 1; + padding: 0 30rpx; + border: 1px solid #fff; +} +.work_order_jinganqu .item:first-child { + background: linear-gradient(180deg, #f0f7ff 0%, #ffffff 42%); +} +.work_order_jinganqu .item:last-child { + background: linear-gradient(180deg, #fff6eb 0%, #ffffff 42%); + margin-left: 30rpx; +} +.work_order_jinganqu .item image { + width: 80rpx; + height: 80rpx; +} +.work_order_jinganqu .item text { + padding-left: 30rpx; +} +.work_order_type_title { + padding: 0 30rpx; + font-size: 33rpx; + font-weight: 500; + color: #333; +} +.work_order_item_content { + padding: 30rpx; +} +.work_order_item_content .work_order_item { + display: flex; + align-items: center; + justify-content: space-between; + background-color: #fff; + padding: 30rpx; + border-radius: 15rpx; + margin-bottom: 30rpx; +} +.work_order_item_content .work_order_item .icon { + width: 80rpx; + height: 80rpx; +} +.work_order_item_content .work_order_item .icon image { + width: 80rpx; + height: 80rpx; +} +.work_order_item_content .work_order_item .info { + flex: 1; + padding: 0 20rpx; +} +.work_order_item_content .work_order_item .info .label { + color: #333; +} +.work_order_item_content .work_order_item .info .des { + font-size: 26rpx; + color: #999; + padding: 5rpx 0 0 0; +} +.report_repair_popup .title { + color: #3d3d3d; + font-size: 32rpx; + font-weight: 500; + line-height: 100rpx; + text-align: center; +} +.report_repair_popup .report_repair_body { + padding: 0 0 50rpx 0; +} +.report_repair_popup .report_repair_item { + display: flex; + align-items: center; + padding: 30rpx; + background-color: #fff; + margin: 0 30rpx 30rpx 30rpx; + border-radius: 15rpx; +} +.report_repair_popup .report_repair_item .icon { + width: 80rpx; + height: 80rpx; +} +.report_repair_popup .report_repair_item .icon image { + width: 80rpx; + height: 80rpx; +} +.report_repair_popup .report_repair_item .des { + flex: 1; + padding: 0 20rpx; + color: #3d3d3d; + font-size: 32rpx; + font-weight: 500; +} +.work_order_footer { + display: flex; + align-items: center; + justify-content: center; + position: fixed; + left: 0; + bottom: 50rpx; + right: 0; + font-size: 27rpx; + color: #999; +} +.work_order_footer button { + padding: 0; + margin: 0; + font-size: 27rpx; + background-color: transparent; +} +.work_order_footer text { + color: #2a7efb; +} +button:after { + border: none !important; +} \ No newline at end of file diff --git a/dist/dev/mp-weixin/WORKORDER/add/index.js b/dist/dev/mp-weixin/WORKORDER/add/index.js index f6314d9..f7ed0df 100644 --- a/dist/dev/mp-weixin/WORKORDER/add/index.js +++ b/dist/dev/mp-weixin/WORKORDER/add/index.js @@ -1,135 +1,139 @@ "use strict"; const common_vendor = require("../../common/vendor.js"); +const gen_Enums = require("../../gen/Enums.js"); const WORKORDER_add_method = require("./method.js"); const WORKORDER_add_model = require("./model.js"); -const gen_Enums = require("../../gen/Enums.js"); require("../../common/libraries/request.js"); require("../../common/store/useWeAppAuthStore.js"); require("../../gen/Apis.js"); +require("../../common/store/useWatermarkStore.js"); require("../../common/store/useWorkStore.js"); require("../../common/libraries/apiLoading.js"); require("../../common/libraries/naviHelper.js"); if (!Array) { - const _easycom_hs_radio2 = common_vendor.resolveComponent("hs-radio"); const _easycom_hs_cell2 = common_vendor.resolveComponent("hs-cell"); - const _easycom_hs_radio_cell_picker2 = common_vendor.resolveComponent("hs-radio-cell-picker"); const _easycom_hs_input2 = common_vendor.resolveComponent("hs-input"); const _easycom_hs_cell_textarea2 = common_vendor.resolveComponent("hs-cell-textarea"); const _easycom_hs_upload2 = common_vendor.resolveComponent("hs-upload"); const _easycom_hs_reservation_picker2 = common_vendor.resolveComponent("hs-reservation-picker"); const _easycom_hs_footer2 = common_vendor.resolveComponent("hs-footer"); - (_easycom_hs_radio2 + _easycom_hs_cell2 + _easycom_hs_radio_cell_picker2 + _easycom_hs_input2 + _easycom_hs_cell_textarea2 + _easycom_hs_upload2 + _easycom_hs_reservation_picker2 + _easycom_hs_footer2)(); + (_easycom_hs_cell2 + _easycom_hs_input2 + _easycom_hs_cell_textarea2 + _easycom_hs_upload2 + _easycom_hs_reservation_picker2 + _easycom_hs_footer2)(); } -const _easycom_hs_radio = () => "../../components/hs-radio/hs-radio.js"; const _easycom_hs_cell = () => "../../components/hs-cell/hs-cell.js"; -const _easycom_hs_radio_cell_picker = () => "../../components/hs-radio-cell-picker/hs-radio-cell-picker.js"; const _easycom_hs_input = () => "../../components/hs-input/hs-input.js"; const _easycom_hs_cell_textarea = () => "../../components/hs-cell-textarea/hs-cell-textarea.js"; const _easycom_hs_upload = () => "../../components/hs-upload/hs-upload.js"; const _easycom_hs_reservation_picker = () => "../../components/hs-reservation-picker/hs-reservation-picker.js"; const _easycom_hs_footer = () => "../../components/hs-footer/hs-footer.js"; if (!Math) { - (_easycom_hs_radio + _easycom_hs_cell + _easycom_hs_radio_cell_picker + _easycom_hs_input + _easycom_hs_cell_textarea + _easycom_hs_upload + _easycom_hs_reservation_picker + _easycom_hs_footer)(); + (_easycom_hs_cell + _easycom_hs_input + _easycom_hs_cell_textarea + _easycom_hs_upload + _easycom_hs_reservation_picker + _easycom_hs_footer)(); } const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({ __name: "index", setup(__props) { const HouseWorkOrdersTypeEnumList = common_vendor.ref({}); + common_vendor.onLoad((e) => { + WORKORDER_add_model.useModel.formData.value.type = (e == null ? void 0 : e.type) || ""; + WORKORDER_add_model.useModel.formData.value.location = (e == null ? void 0 : e.location) || ""; + console.log(e, "2222"); + }); common_vendor.onShow(() => { - var _a, _b; - (_a = gen_Enums.HouseWorkOrdersTypeEnum) == null ? true : delete _a.Complaint; - HouseWorkOrdersTypeEnumList.value = gen_Enums.HouseWorkOrdersTypeEnum; + var _a; + let Enums = JSON.parse(JSON.stringify(gen_Enums.HouseWorkOrdersTypeEnum)); + Enums == null ? true : delete Enums.Complaint; + HouseWorkOrdersTypeEnumList.value = Enums; gen_Enums.HouseWorkOrdersLocationEnum.MyHome.text = "房屋"; - (_b = WORKORDER_add_method.method) == null ? void 0 : _b.init(); + (_a = WORKORDER_add_method.method) == null ? void 0 : _a.init(); }); common_vendor.onUnload(() => { WORKORDER_add_model.useModel.formData.value = { is_anonymous: false }; }); return (_ctx, _cache) => { - var _a, _b, _c, _d, _e; + var _a, _b, _c, _d, _e, _f, _g; return common_vendor.e({ - a: common_vendor.o(($event) => common_vendor.unref(WORKORDER_add_model.useModel).formData.value.type = $event), + a: common_vendor.unref(WORKORDER_add_model.useModel).formData.value.location !== "MyHome" + }, common_vendor.unref(WORKORDER_add_model.useModel).formData.value.location !== "MyHome" ? { b: common_vendor.p({ - Enums: HouseWorkOrdersTypeEnumList.value, - valueModel: common_vendor.unref(WORKORDER_add_model.useModel).formData.value.type - }), - c: common_vendor.p({ - title: "工单类型", - required: true - }), - d: common_vendor.unref(WORKORDER_add_model.useModel).formData.value.type === "Complaint" - }, common_vendor.unref(WORKORDER_add_model.useModel).formData.value.type === "Complaint" ? { - e: common_vendor.o(($event) => common_vendor.unref(WORKORDER_add_model.useModel).formData.value.complaint_type = $event), - f: common_vendor.p({ - Enums: common_vendor.unref(gen_Enums.HouseWorkOrdersComplaintTypeEnum), - title: "投诉类型", + title: "选择项目", required: true, - valueModel: common_vendor.unref(WORKORDER_add_model.useModel).formData.value.complaint_type + borderTop: true, + isLink: true, + value: (_c = (_b = (_a = common_vendor.unref(WORKORDER_add_model.useModel)) == null ? void 0 : _a.formData) == null ? void 0 : _b.value) == null ? void 0 : _c.project_name, + isPlaceholder: "请选择项目", + url: "/pages/public/select_project/index?source=work_add" }) } : {}, { - g: common_vendor.unref(WORKORDER_add_model.useModel).formData.value.type !== "Complaint" - }, common_vendor.unref(WORKORDER_add_model.useModel).formData.value.type !== "Complaint" ? { - h: common_vendor.o(($event) => common_vendor.unref(WORKORDER_add_model.useModel).formData.value.location = $event), - i: common_vendor.p({ - Enums: common_vendor.unref(gen_Enums.HouseWorkOrdersLocationEnum), - valueModel: common_vendor.unref(WORKORDER_add_model.useModel).formData.value.location - }), - j: common_vendor.p({ - title: "报事位置", - required: true - }) - } : {}, { - k: common_vendor.unref(WORKORDER_add_model.useModel).formData.value.location === "MyHome" + c: common_vendor.unref(WORKORDER_add_model.useModel).formData.value.location === "MyHome" }, common_vendor.unref(WORKORDER_add_model.useModel).formData.value.location === "MyHome" ? { - l: common_vendor.o((_a = common_vendor.unref(WORKORDER_add_method.method)) == null ? void 0 : _a.handleToSelectHouse), - m: common_vendor.p({ + d: common_vendor.p({ title: "房屋信息", required: true, borderTop: true, isLink: true, - value: (_d = (_c = (_b = common_vendor.unref(WORKORDER_add_model.useModel)) == null ? void 0 : _b.formData) == null ? void 0 : _c.value) == null ? void 0 : _d.full_name, - isPlaceholder: "请选择房屋" + value: (_f = (_e = (_d = common_vendor.unref(WORKORDER_add_model.useModel)) == null ? void 0 : _d.formData) == null ? void 0 : _e.value) == null ? void 0 : _f.full_name, + isPlaceholder: "请选择房屋", + url: "/pages/public/asset_houses/index?type=work_add" }), - n: common_vendor.o(($event) => common_vendor.unref(WORKORDER_add_model.useModel).formData.value.contact_phone = $event), - o: common_vendor.p({ + e: common_vendor.o(($event) => common_vendor.unref(WORKORDER_add_model.useModel).formData.value.reporter_name = $event), + f: common_vendor.p({ + textAlign: "right", + valueModel: common_vendor.unref(WORKORDER_add_model.useModel).formData.value.reporter_name + }), + g: common_vendor.p({ + title: "客户姓名", + required: true, + borderTop: true + }), + h: common_vendor.o(($event) => common_vendor.unref(WORKORDER_add_model.useModel).formData.value.reporter_phone = $event), + i: common_vendor.p({ + maxLength: "11", + textAlign: "right", + valueModel: common_vendor.unref(WORKORDER_add_model.useModel).formData.value.reporter_phone + }), + j: common_vendor.p({ + title: "客户电话", + required: true, + borderTop: true + }), + k: common_vendor.o(($event) => common_vendor.unref(WORKORDER_add_model.useModel).formData.value.contact_phone = $event), + l: common_vendor.p({ maxLength: "11", textAlign: "right", valueModel: common_vendor.unref(WORKORDER_add_model.useModel).formData.value.contact_phone }), - p: common_vendor.p({ - title: "联系电话", - required: true, + m: common_vendor.p({ + title: "备用联系电话", borderTop: true }) } : {}, { - q: common_vendor.o(($event) => common_vendor.unref(WORKORDER_add_model.useModel).formData.value.content = $event), - r: common_vendor.p({ + n: common_vendor.o(($event) => common_vendor.unref(WORKORDER_add_model.useModel).formData.value.content = $event), + o: common_vendor.p({ borderTop: true, required: true, title: "问题描述", placeholder: "请详细描述问题情况,包括具体位置现象等", valueModel: common_vendor.unref(WORKORDER_add_model.useModel).formData.value.content }), - s: common_vendor.o(($event) => common_vendor.unref(WORKORDER_add_model.useModel).formData.value.attachments = $event), - t: common_vendor.p({ + p: common_vendor.o(($event) => common_vendor.unref(WORKORDER_add_model.useModel).formData.value.attachments = $event), + q: common_vendor.p({ borderTop: true, title: "上传图片", count: 6, valueModel: common_vendor.unref(WORKORDER_add_model.useModel).formData.value.attachments }), - v: common_vendor.unref(WORKORDER_add_model.useModel).formData.value.location === "MyHome" + r: common_vendor.unref(WORKORDER_add_model.useModel).formData.value.location === "MyHome" }, common_vendor.unref(WORKORDER_add_model.useModel).formData.value.location === "MyHome" ? { - w: common_vendor.o(($event) => common_vendor.unref(WORKORDER_add_model.useModel).formData.value.expect_start_time = $event), - x: common_vendor.o(($event) => common_vendor.unref(WORKORDER_add_model.useModel).formData.value.expect_end_time = $event), - y: common_vendor.p({ + s: common_vendor.o(($event) => common_vendor.unref(WORKORDER_add_model.useModel).formData.value.expect_start_time = $event), + t: common_vendor.o(($event) => common_vendor.unref(WORKORDER_add_model.useModel).formData.value.expect_end_time = $event), + v: common_vendor.p({ title: "期望上门时间", required: true, valueExpectStartTime: common_vendor.unref(WORKORDER_add_model.useModel).formData.value.expect_start_time, valueExpectEndTime: common_vendor.unref(WORKORDER_add_model.useModel).formData.value.expect_end_time }) } : {}, { - z: common_vendor.o((_e = common_vendor.unref(WORKORDER_add_method.method)) == null ? void 0 : _e.handleSubmit), - A: common_vendor.p({ + w: common_vendor.o((_g = common_vendor.unref(WORKORDER_add_method.method)) == null ? void 0 : _g.handleSubmit), + x: common_vendor.p({ btnParimaryName: "提交" }) }); diff --git a/dist/dev/mp-weixin/WORKORDER/add/index.json b/dist/dev/mp-weixin/WORKORDER/add/index.json index f941856..7436305 100644 --- a/dist/dev/mp-weixin/WORKORDER/add/index.json +++ b/dist/dev/mp-weixin/WORKORDER/add/index.json @@ -1,9 +1,7 @@ { "navigationBarTitleText": "新增工单", "usingComponents": { - "hs-radio": "../../components/hs-radio/hs-radio", "hs-cell": "../../components/hs-cell/hs-cell", - "hs-radio-cell-picker": "../../components/hs-radio-cell-picker/hs-radio-cell-picker", "hs-input": "../../components/hs-input/hs-input", "hs-cell-textarea": "../../components/hs-cell-textarea/hs-cell-textarea", "hs-upload": "../../components/hs-upload/hs-upload", diff --git a/dist/dev/mp-weixin/WORKORDER/add/index.wxml b/dist/dev/mp-weixin/WORKORDER/add/index.wxml index e6fe9c2..2914e5f 100644 --- a/dist/dev/mp-weixin/WORKORDER/add/index.wxml +++ b/dist/dev/mp-weixin/WORKORDER/add/index.wxml @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/dist/dev/mp-weixin/WORKORDER/add/method.js b/dist/dev/mp-weixin/WORKORDER/add/method.js index 644a685..9750e89 100644 --- a/dist/dev/mp-weixin/WORKORDER/add/method.js +++ b/dist/dev/mp-weixin/WORKORDER/add/method.js @@ -1,50 +1,55 @@ "use strict"; -const common_vendor = require("../../common/vendor.js"); require("../../common/libraries/request.js"); +require("../../common/store/useWatermarkStore.js"); const common_store_useWeAppAuthStore = require("../../common/store/useWeAppAuthStore.js"); const common_store_useWorkStore = require("../../common/store/useWorkStore.js"); -const WORKORDER_add_model = require("./model.js"); -const gen_Apis = require("../../gen/Apis.js"); const common_libraries_apiLoading = require("../../common/libraries/apiLoading.js"); const common_libraries_naviHelper = require("../../common/libraries/naviHelper.js"); -const auth = common_store_useWeAppAuthStore.useWeAppAuthStore(); +const gen_Apis = require("../../gen/Apis.js"); +const WORKORDER_add_model = require("./model.js"); +common_store_useWeAppAuthStore.useWeAppAuthStore(); const work = common_store_useWorkStore.useWorkStore(); const method = { init() { - var _a, _b, _c, _d, _e, _f, _g; - console.log("init", work == null ? void 0 : work.selectWorkHouse); + var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l; + console.log("init", work == null ? void 0 : work.selectWorkProject); WORKORDER_add_model.useModel.formData.value = { - ...WORKORDER_add_model.useModel.formData.value, - reporter_phone: WORKORDER_add_model.useModel.formData.value.reporter_phone || ((_b = (_a = auth == null ? void 0 : auth.data) == null ? void 0 : _a.user) == null ? void 0 : _b.phone) || "", - reporter_name: WORKORDER_add_model.useModel.formData.value.reporter_name || ((_d = (_c = auth == null ? void 0 : auth.data) == null ? void 0 : _c.user) == null ? void 0 : _d.name) || "" + ...(_b = (_a = WORKORDER_add_model.useModel) == null ? void 0 : _a.formData) == null ? void 0 : _b.value }; - if ((_e = work == null ? void 0 : work.selectWorkHouse) == null ? void 0 : _e.value) { + if ((_c = work == null ? void 0 : work.selectWorkHouse) == null ? void 0 : _c.value) { WORKORDER_add_model.useModel.formData.value = { - ...WORKORDER_add_model.useModel.formData.value, + ...(_e = (_d = WORKORDER_add_model.useModel) == null ? void 0 : _d.formData) == null ? void 0 : _e.value, asset_houses_id: (_f = work == null ? void 0 : work.selectWorkHouse) == null ? void 0 : _f.value, full_name: (_g = work == null ? void 0 : work.selectWorkHouse) == null ? void 0 : _g.label }; } + if ((_h = work == null ? void 0 : work.selectWorkProject) == null ? void 0 : _h.id) { + WORKORDER_add_model.useModel.formData.value = { + ...(_j = (_i = WORKORDER_add_model.useModel) == null ? void 0 : _i.formData) == null ? void 0 : _j.value, + project_name: (_k = work == null ? void 0 : work.selectWorkProject) == null ? void 0 : _k.name, + asset_projects_id: (_l = work == null ? void 0 : work.selectWorkProject) == null ? void 0 : _l.id + }; + } }, handleSubmit() { - var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u, _v; + var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t; console.log("handleSubmit", WORKORDER_add_model.useModel.formData.value); if (!((_c = (_b = (_a = WORKORDER_add_model.useModel) == null ? void 0 : _a.formData) == null ? void 0 : _b.value) == null ? void 0 : _c.type)) { return common_libraries_naviHelper.showToast("请选择工单类型!"); } - if (((_f = (_e = (_d = WORKORDER_add_model.useModel) == null ? void 0 : _d.formData) == null ? void 0 : _e.value) == null ? void 0 : _f.type) !== "Complaint" && !((_h = (_g = WORKORDER_add_model.useModel) == null ? void 0 : _g.formData.value) == null ? void 0 : _h.location)) { - return common_libraries_naviHelper.showToast("请选择报事位置!"); + if (((_f = (_e = (_d = WORKORDER_add_model.useModel) == null ? void 0 : _d.formData) == null ? void 0 : _e.value) == null ? void 0 : _f.location) !== "MyHome" && !WORKORDER_add_model.useModel.formData.value.asset_projects_id) { + return common_libraries_naviHelper.showToast("请选择项目!"); } - if (((_k = (_j = (_i = WORKORDER_add_model.useModel) == null ? void 0 : _i.formData) == null ? void 0 : _j.value) == null ? void 0 : _k.location) === "MyHome" && !WORKORDER_add_model.useModel.formData.value.asset_houses_id) { + if (((_i = (_h = (_g = WORKORDER_add_model.useModel) == null ? void 0 : _g.formData) == null ? void 0 : _h.value) == null ? void 0 : _i.location) === "MyHome" && !WORKORDER_add_model.useModel.formData.value.asset_houses_id) { return common_libraries_naviHelper.showToast("请选择房屋!"); } - if (((_n = (_m = (_l = WORKORDER_add_model.useModel) == null ? void 0 : _l.formData) == null ? void 0 : _m.value) == null ? void 0 : _n.location) === "MyHome" && !((_p = (_o = WORKORDER_add_model.useModel) == null ? void 0 : _o.formData.value) == null ? void 0 : _p.contact_phone)) { + if (((_l = (_k = (_j = WORKORDER_add_model.useModel) == null ? void 0 : _j.formData) == null ? void 0 : _k.value) == null ? void 0 : _l.location) === "MyHome" && !((_n = (_m = WORKORDER_add_model.useModel) == null ? void 0 : _m.formData.value) == null ? void 0 : _n.reporter_phone)) { return common_libraries_naviHelper.showToast("请输入联系人电话!"); } - if (!((_s = (_r = (_q = WORKORDER_add_model.useModel) == null ? void 0 : _q.formData) == null ? void 0 : _r.value) == null ? void 0 : _s.content)) { + if (!((_q = (_p = (_o = WORKORDER_add_model.useModel) == null ? void 0 : _o.formData) == null ? void 0 : _p.value) == null ? void 0 : _q.content)) { return common_libraries_naviHelper.showToast("请输入问题描述!"); } - if (((_v = (_u = (_t = WORKORDER_add_model.useModel) == null ? void 0 : _t.formData) == null ? void 0 : _u.value) == null ? void 0 : _v.location) === "MyHome" && !WORKORDER_add_model.useModel.formData.value.expect_start_time) { + if (((_t = (_s = (_r = WORKORDER_add_model.useModel) == null ? void 0 : _r.formData) == null ? void 0 : _s.value) == null ? void 0 : _t.location) === "MyHome" && !WORKORDER_add_model.useModel.formData.value.expect_start_time) { return common_libraries_naviHelper.showToast("请选择上门时间!"); } common_libraries_apiLoading.getApiLoading(gen_Apis.Apis.WorkOrder.HouseWorkOrders.Store, WORKORDER_add_model.useModel.formData.value).then((res) => { @@ -52,11 +57,6 @@ const method = { console.log(res); }); }, - handleToSelectHouse() { - common_vendor.index.navigateTo({ - url: "/pages/public/asset_houses/index?type=work_add" - }); - }, handleSwitchChange(e) { var _a; WORKORDER_add_model.useModel.formData.value.is_anonymous = (_a = e == null ? void 0 : e.detail) == null ? void 0 : _a.value; diff --git a/dist/dev/mp-weixin/WORKORDER/add/model.js b/dist/dev/mp-weixin/WORKORDER/add/model.js index e18f467..972e745 100644 --- a/dist/dev/mp-weixin/WORKORDER/add/model.js +++ b/dist/dev/mp-weixin/WORKORDER/add/model.js @@ -1,6 +1,6 @@ "use strict"; const common_vendor = require("../../common/vendor.js"); const useModel = { - formData: common_vendor.ref({ is_anonymous: false }) + formData: common_vendor.ref({ is_anonymous: false, is_self: "0" }) }; exports.useModel = useModel; diff --git a/dist/dev/mp-weixin/WORKORDER/list/index.js b/dist/dev/mp-weixin/WORKORDER/list/index.js index fc299c2..60255a2 100644 --- a/dist/dev/mp-weixin/WORKORDER/list/index.js +++ b/dist/dev/mp-weixin/WORKORDER/list/index.js @@ -1,40 +1,44 @@ "use strict"; const common_vendor = require("../../common/vendor.js"); -const WORKORDER_list_model = require("./model.js"); -const WORKORDER_list_method = require("./method.js"); const common_libraries_day = require("../../common/libraries/day.js"); const gen_Enums = require("../../gen/Enums.js"); +const WORKORDER_list_method = require("./method.js"); +const WORKORDER_list_model = require("./model.js"); require("../../common/libraries/apiLoading.js"); require("../../gen/Apis.js"); require("../../common/libraries/request.js"); require("../../common/store/useWeAppAuthStore.js"); +require("../../common/store/useWatermarkStore.js"); require("../../common/store/useWorkStore.js"); if (!Array) { const _easycom_hs_tabs2 = common_vendor.resolveComponent("hs-tabs"); const _easycom_hs_enum_tag2 = common_vendor.resolveComponent("hs-enum-tag"); const _easycom_hs_level2 = common_vendor.resolveComponent("hs-level"); const _easycom_up_icon2 = common_vendor.resolveComponent("up-icon"); + const _easycom_hs_up_rate2 = common_vendor.resolveComponent("hs-up-rate"); const _easycom_cc_scroll_loading2 = common_vendor.resolveComponent("cc-scroll-loading"); - (_easycom_hs_tabs2 + _easycom_hs_enum_tag2 + _easycom_hs_level2 + _easycom_up_icon2 + _easycom_cc_scroll_loading2)(); + (_easycom_hs_tabs2 + _easycom_hs_enum_tag2 + _easycom_hs_level2 + _easycom_up_icon2 + _easycom_hs_up_rate2 + _easycom_cc_scroll_loading2)(); } const _easycom_hs_tabs = () => "../../components/hs-tabs/hs-tabs.js"; const _easycom_hs_enum_tag = () => "../../components/hs-enum-tag/hs-enum-tag.js"; const _easycom_hs_level = () => "../../components/hs-level/hs-level.js"; const _easycom_up_icon = () => "../../node-modules/uview-plus/components/u-icon/u-icon.js"; +const _easycom_hs_up_rate = () => "../../components/hs-up-rate/hs-up-rate.js"; const _easycom_cc_scroll_loading = () => "../../common/components/cc-scroll-loading/cc-scroll-loading.js"; if (!Math) { - (_easycom_hs_tabs + _easycom_hs_enum_tag + _easycom_hs_level + _easycom_up_icon + _easycom_cc_scroll_loading)(); + (_easycom_hs_tabs + _easycom_hs_enum_tag + _easycom_hs_level + _easycom_up_icon + _easycom_hs_up_rate + _easycom_cc_scroll_loading)(); } const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({ __name: "index", setup(__props) { const tablist = [ - { label: "待处理", value: "Pending" }, { label: "处理中", value: "Processing" }, + { label: "待支付", value: "PendingPayment" }, + { label: "待验收", value: "PendingAcceptance" }, { label: "已完成", value: "Completed" }, { label: "已关闭", value: "Closed" } ]; - common_vendor.onLoad(() => { + common_vendor.onShow(() => { var _a; WORKORDER_list_model.useModel.formData.value.page = 1; WORKORDER_list_model.useModel.listData.value = []; @@ -56,47 +60,90 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({ value: i == null ? void 0 : i.type, Enums: common_vendor.unref(gen_Enums.HouseWorkOrdersTypeEnum) }), - c: "16520412-3-" + i0 + ",16520412-1", - d: common_vendor.p({ + c: i == null ? void 0 : i.location + }, (i == null ? void 0 : i.location) ? { + d: "16520412-3-" + i0 + ",16520412-1", + e: common_vendor.p({ value: i == null ? void 0 : i.location, Enums: common_vendor.unref(gen_Enums.HouseWorkOrdersLocationEnum) - }), - e: "16520412-4-" + i0 + ",16520412-1", - f: common_vendor.p({ + }) + } : {}, { + f: (i == null ? void 0 : i.type) === "Repair" || (i == null ? void 0 : i.type) === "Incident" || (i == null ? void 0 : i.type) === "Complaint" + }, (i == null ? void 0 : i.type) === "Repair" || (i == null ? void 0 : i.type) === "Incident" || (i == null ? void 0 : i.type) === "Complaint" ? common_vendor.e({ + g: (i == null ? void 0 : i.status) === "Processing" + }, (i == null ? void 0 : i.status) === "Processing" ? { + h: "16520412-4-" + i0 + ",16520412-1", + i: common_vendor.p({ level: i == null ? void 0 : i.level - }), - g: "16520412-5-" + i0 + ",16520412-1", - h: common_vendor.p({ + }) + } : {}) : {}, { + j: "16520412-5-" + i0 + ",16520412-1", + k: common_vendor.p({ value: i == null ? void 0 : i.status, Enums: common_vendor.unref(gen_Enums.HouseWorkOrdersStatusEnum) }), - i: common_vendor.n(`btn_status status_${i == null ? void 0 : i.status}`), - j: common_vendor.t(((_a2 = i == null ? void 0 : i.asset_house) == null ? void 0 : _a2.full_name) || ""), - k: common_vendor.t(i == null ? void 0 : i.content), - l: common_vendor.f(i == null ? void 0 : i.attachments, (k, idx, i1) => { - return { - a: k == null ? void 0 : k.url, - b: `img_${index}_${idx}` - }; - }), - m: (i == null ? void 0 : i.status) === "Pending" - }, (i == null ? void 0 : i.status) === "Pending" ? { - n: "16520412-6-" + i0 + ",16520412-1", - o: common_vendor.p({ + l: common_vendor.n(`btn_status status_${i == null ? void 0 : i.status}`), + m: common_vendor.t(((_a2 = i == null ? void 0 : i.asset_house) == null ? void 0 : _a2.full_name) || ((_b2 = i == null ? void 0 : i.asset_project) == null ? void 0 : _b2.name)), + n: common_vendor.t(i == null ? void 0 : i.content), + o: (i == null ? void 0 : i.status) === "Processing" + }, (i == null ? void 0 : i.status) === "Processing" ? common_vendor.e({ + p: (i == null ? void 0 : i.status) !== "Completed" && (i == null ? void 0 : i.status) !== "Closed" && (i == null ? void 0 : i.location) === "MyHome" + }, (i == null ? void 0 : i.status) !== "Completed" && (i == null ? void 0 : i.status) !== "Closed" && (i == null ? void 0 : i.location) === "MyHome" ? { + q: "16520412-6-" + i0 + ",16520412-1", + r: common_vendor.p({ name: "clock", - color: ((_b2 = common_vendor.unref(common_libraries_day.getTimeStatus)(i == null ? void 0 : i.expect_end_time)) == null ? void 0 : _b2.color) || "#000", + color: ((_c2 = common_vendor.unref(common_libraries_day.getTimeStatus)(i == null ? void 0 : i.expect_end_time)) == null ? void 0 : _c2.color) || "#000", size: "14" }), - p: common_vendor.t((_c2 = common_vendor.unref(common_libraries_day.getTimeStatus)(i == null ? void 0 : i.expect_end_time)) == null ? void 0 : _c2.label), - q: common_vendor.n(`todo_done_card_footer status_${(_d2 = common_vendor.unref(common_libraries_day.getTimeStatus)(i == null ? void 0 : i.expect_end_time)) == null ? void 0 : _d2.status}`) + s: common_vendor.t((_d2 = common_vendor.unref(common_libraries_day.getTimeStatus)(i == null ? void 0 : i.expect_end_time)) == null ? void 0 : _d2.label), + t: common_vendor.n(`todo_done_card_footer status_${(_e2 = common_vendor.unref(common_libraries_day.getTimeStatus)(i == null ? void 0 : i.expect_end_time)) == null ? void 0 : _e2.status}`) + } : {}) : {}, { + v: (i == null ? void 0 : i.status) === "Completed" && (i == null ? void 0 : i.accept_time) + }, (i == null ? void 0 : i.status) === "Completed" && (i == null ? void 0 : i.accept_time) ? { + w: common_vendor.t(i == null ? void 0 : i.accept_time) } : {}, { - r: common_vendor.t(i == null ? void 0 : i.created_at), - s: `items_${index}`, - t: common_vendor.o(($event) => { + x: i == null ? void 0 : i.evaluation_score + }, (i == null ? void 0 : i.evaluation_score) ? { + y: "16520412-7-" + i0 + ",16520412-1", + z: common_vendor.p({ + valueModel: i == null ? void 0 : i.evaluation_score + }) + } : {}, { + A: common_vendor.o(($event) => { var _a3; return (_a3 = common_vendor.unref(WORKORDER_list_method.method)) == null ? void 0 : _a3.handleToDetail(i); }, `items_${index}`), - v: common_vendor.n(`work_item ${(i == null ? void 0 : i.status) === "Pending" ? `card_status_${(_e2 = common_vendor.unref(common_libraries_day.getTimeStatus)(i == null ? void 0 : i.expect_end_time)) == null ? void 0 : _e2.status}` : ""}`) + B: (i == null ? void 0 : i.type) === "SecurityInspection" + }, (i == null ? void 0 : i.type) === "SecurityInspection" ? { + C: common_vendor.o(($event) => { + var _a3; + return (_a3 = common_vendor.unref(WORKORDER_list_method.method)) == null ? void 0 : _a3.handleUpdateSetp(i); + }, `items_${index}`) + } : common_vendor.e({ + D: (i == null ? void 0 : i.status) !== "Completed" && (i == null ? void 0 : i.status) !== "Closed" + }, (i == null ? void 0 : i.status) !== "Completed" && (i == null ? void 0 : i.status) !== "Closed" ? common_vendor.e({ + E: (i == null ? void 0 : i.type) !== "RenovationInspection" && (i == null ? void 0 : i.type) !== "RenovationAcceptance" + }, (i == null ? void 0 : i.type) !== "RenovationInspection" && (i == null ? void 0 : i.type) !== "RenovationAcceptance" ? { + F: common_vendor.o(($event) => { + var _a3; + return (_a3 = common_vendor.unref(WORKORDER_list_method.method)) == null ? void 0 : _a3.handleCopyPhone(i); + }, `items_${index}`) + } : {}, { + G: (i == null ? void 0 : i.status) === "Processing" + }, (i == null ? void 0 : i.status) === "Processing" ? { + H: common_vendor.o(($event) => { + var _a3; + return (_a3 = common_vendor.unref(WORKORDER_list_method.method)) == null ? void 0 : _a3.handleUpdateSetp(i); + }, `items_${index}`) + } : {}, { + I: (i == null ? void 0 : i.status) === "PendingPayment" + }, (i == null ? void 0 : i.status) === "PendingPayment" ? { + J: common_vendor.o(($event) => { + var _a3; + return (_a3 = common_vendor.unref(WORKORDER_list_method.method)) == null ? void 0 : _a3.handlePendingPaymentQrCode(i); + }, `items_${index}`) + } : {}) : {}), { + K: `items_${index}` }); }), d: common_vendor.o((_f = common_vendor.unref(WORKORDER_list_method.method)) == null ? void 0 : _f.handleLoad), diff --git a/dist/dev/mp-weixin/WORKORDER/list/index.json b/dist/dev/mp-weixin/WORKORDER/list/index.json index a8b328b..6a27bc4 100644 --- a/dist/dev/mp-weixin/WORKORDER/list/index.json +++ b/dist/dev/mp-weixin/WORKORDER/list/index.json @@ -5,6 +5,7 @@ "hs-enum-tag": "../../components/hs-enum-tag/hs-enum-tag", "hs-level": "../../components/hs-level/hs-level", "up-icon": "../../node-modules/uview-plus/components/u-icon/u-icon", + "hs-up-rate": "../../components/hs-up-rate/hs-up-rate", "cc-scroll-loading": "../../common/components/cc-scroll-loading/cc-scroll-loading" } } \ No newline at end of file diff --git a/dist/dev/mp-weixin/WORKORDER/list/index.wxml b/dist/dev/mp-weixin/WORKORDER/list/index.wxml index 6a607ac..751a721 100644 --- a/dist/dev/mp-weixin/WORKORDER/list/index.wxml +++ b/dist/dev/mp-weixin/WORKORDER/list/index.wxml @@ -1 +1 @@ -{{i.j}}{{i.k}}{{i.p}}提报时间: {{i.r}} \ No newline at end of file +{{i.m}}{{i.n}}{{i.s}} 工单完成时间:{{i.w}} 客户评价: 前往完成 联系提报人 更新进度 出示付款二维码 \ No newline at end of file diff --git a/dist/dev/mp-weixin/WORKORDER/list/index.wxss b/dist/dev/mp-weixin/WORKORDER/list/index.wxss index 09c5b51..230ded8 100644 --- a/dist/dev/mp-weixin/WORKORDER/list/index.wxss +++ b/dist/dev/mp-weixin/WORKORDER/list/index.wxss @@ -46,10 +46,14 @@ page { color: #f97316; background-color: #fff7ed; } -.work_contents .work_item .work_item_header .status_Processing { +.work_contents .work_item .work_item_header .status_Processing, .work_contents .work_item .work_item_header .status_PendingAcceptance { color: #0082fa; background-color: #edf4ff; } +.work_contents .work_item .work_item_header .status_PendingPayment { + color: #cf1322; + background-color: #ffeded; +} .work_contents .work_item .work_item_header .status_Completed { color: #22c55e; background-color: #f0fdf4; @@ -64,7 +68,6 @@ page { .work_contents .work_item .work_item_cell { display: flex; align-items: center; - justify-content: space-between; font-size: 30rpx; color: #666; padding-top: 20rpx; @@ -96,11 +99,10 @@ page { .work_contents .work_item .work_code { font-size: 25rpx; } -.work_item_footer { - border-top: 1rpx solid #eee; +.work_item_time_footer { margin-top: 30rpx; } -.work_item_footer .todo_done_card_footer { +.work_item_time_footer .todo_done_card_footer { color: #666666; font-size: 28rpx; padding: 12rpx 20rpx; @@ -111,27 +113,52 @@ page { align-items: center; margin: 25rpx 0 0 0; } -.work_item_footer .status_1 { +.work_item_time_footer .status_1 { color: #24bc21; background: linear-gradient(90deg, #edffed 0%, rgba(232, 255, 231, 0) 103%); } -.work_item_footer .status_2 { +.work_item_time_footer .status_2 { color: #0082fa; background: linear-gradient(90deg, #eff7ff 0%, rgba(231, 241, 255, 0) 103%); } -.work_item_footer .status_3 { +.work_item_time_footer .status_3 { color: #f97316; background: linear-gradient(90deg, #fff4ef 0%, rgba(255, 237, 231, 0) 103%); } -.work_item_footer .status_4 { +.work_item_time_footer .status_4 { color: #ea0000; background: linear-gradient(90deg, #ffe5e5 0%, rgba(255, 255, 255, 0) 103%); } -.work_item_footer .expected_time { +.work_item_time_footer .expected_time { padding: 20rpx 0 0 0; color: #333; font-size: 28rpx; } +.work_item_btn_group_footer { + border-top: 1rpx solid #eee; + margin-top: 25rpx; + display: flex; + align-items: center; + justify-content: space-between; + padding-top: 25rpx; + text-align: center; +} +.work_item_btn_group_footer .btn { + padding: 17rpx 20rpx; + font-size: 28rpx; + flex: 1; + color: #0082fa; + border: 1px solid #0082fa; + border-radius: 100rpx; +} +.work_item_btn_group_footer .btn:first-child { + margin-right: 30rpx; +} +.work_item_btn_group_footer .btn:last-child { + background-color: #0082fa; + color: #fff; + margin-right: 0; +} .card_status_4 { border-top: 6px solid #ef4444; } \ No newline at end of file diff --git a/dist/dev/mp-weixin/WORKORDER/list/method.js b/dist/dev/mp-weixin/WORKORDER/list/method.js index 278ee2f..2b9d0c3 100644 --- a/dist/dev/mp-weixin/WORKORDER/list/method.js +++ b/dist/dev/mp-weixin/WORKORDER/list/method.js @@ -1,8 +1,8 @@ "use strict"; const common_vendor = require("../../common/vendor.js"); -const WORKORDER_list_model = require("./model.js"); const common_libraries_apiLoading = require("../../common/libraries/apiLoading.js"); const gen_Apis = require("../../gen/Apis.js"); +const WORKORDER_list_model = require("./model.js"); const getList = () => { var _a, _b; common_libraries_apiLoading.getApiLoading(gen_Apis.Apis.WorkOrder.HouseWorkOrders.List, (_b = (_a = WORKORDER_list_model.useModel) == null ? void 0 : _a.formData) == null ? void 0 : _b.value).then((res) => { @@ -26,10 +26,51 @@ const method = { WORKORDER_list_model.useModel.formData.value.page = page; getList(); }, + handleCopyPhone(e) { + if (e == null ? void 0 : e.contact_phone) { + common_vendor.index.makePhoneCall({ + phoneNumber: e == null ? void 0 : e.contact_phone + }); + return; + } + if (e == null ? void 0 : e.reporter_phone) { + common_vendor.index.makePhoneCall({ + phoneNumber: e == null ? void 0 : e.reporter_phone + }); + return; + } + common_vendor.index.showToast({ + title: "暂无电话号码", + icon: "none" + }); + }, + handleUpdateSetp(e) { + if ((e == null ? void 0 : e.type) === "SecurityInspection") { + common_vendor.index.navigateTo({ + url: `/WORKORDER/show_patrol_task_locations/index?id=${e == null ? void 0 : e.id}` + }); + return; + } + if ((e == null ? void 0 : e.type) === "RenovationInspection" || (e == null ? void 0 : e.type) === "RenovationAcceptance") { + common_vendor.index.navigateTo({ + url: `/WORKORDER/patrol_update/index?id=${e == null ? void 0 : e.id}&type=${e == null ? void 0 : e.type}` + }); + return; + } + common_vendor.index.navigateTo({ + url: `/WORKORDER/update/index?id=${e == null ? void 0 : e.id}&projects_id=${e == null ? void 0 : e.asset_projects_id}&location=${e == null ? void 0 : e.location}` + }); + }, handleToDetail(e) { common_vendor.index.navigateTo({ url: `/WORKORDER/show/index?id=${e == null ? void 0 : e.id}` }); + }, + handlePendingPaymentQrCode(e) { + var _a; + common_vendor.index.navigateTo({ + url: `/WORKORDER/poster/index?id=${e == null ? void 0 : e.id}&full_name=${(_a = e == null ? void 0 : e.asset_house) == null ? void 0 : _a.full_name}&amount=${e == null ? void 0 : e.amount}` + }); } }; exports.method = method; diff --git a/dist/dev/mp-weixin/WORKORDER/list/model.js b/dist/dev/mp-weixin/WORKORDER/list/model.js index d0e0a52..b723b6f 100644 --- a/dist/dev/mp-weixin/WORKORDER/list/model.js +++ b/dist/dev/mp-weixin/WORKORDER/list/model.js @@ -2,7 +2,7 @@ const common_vendor = require("../../common/vendor.js"); const useModel = { currentTabs: common_vendor.ref(0), - formData: common_vendor.ref({ page: 1, status: "Pending" }), + formData: common_vendor.ref({ page: 1, status: "Processing" }), listData: common_vendor.ref([]), metaData: common_vendor.ref({}) }; diff --git a/dist/dev/mp-weixin/WORKORDER/list_log/components/header.js b/dist/dev/mp-weixin/WORKORDER/list_log/components/header.js new file mode 100644 index 0000000..428cdf4 --- /dev/null +++ b/dist/dev/mp-weixin/WORKORDER/list_log/components/header.js @@ -0,0 +1,60 @@ +"use strict"; +const common_vendor = require("../../../common/vendor.js"); +const WORKORDER_list_log_method = require("../method.js"); +const WORKORDER_list_log_model = require("../model.js"); +require("../../../common/libraries/apiLoading.js"); +require("../../../gen/Apis.js"); +require("../../../common/libraries/request.js"); +require("../../../common/store/useWeAppAuthStore.js"); +require("../../../common/store/useWatermarkStore.js"); +require("../../../common/store/useWorkStore.js"); +if (!Array) { + const _easycom_hs_tabs2 = common_vendor.resolveComponent("hs-tabs"); + _easycom_hs_tabs2(); +} +const _easycom_hs_tabs = () => "../../../components/hs-tabs/hs-tabs.js"; +if (!Math) { + _easycom_hs_tabs(); +} +const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({ + __name: "header", + setup(__props) { + const tabTypeList = [ + { label: "报修类", value: "Repair" }, + { label: "报事类", value: "Incident" } + ]; + const tablist = [ + { label: "全部", value: "" }, + { label: "待处理", value: "Pending" }, + { label: "处理中", value: "Processing" }, + { label: "待支付", value: "PendingPayment" }, + { label: "待验收", value: "PendingAcceptance" }, + { label: "已完成", value: "Completed" }, + { label: "已关闭", value: "Closed" } + ]; + return (_ctx, _cache) => { + var _a, _b, _c; + return { + a: common_vendor.o((_a = common_vendor.unref(WORKORDER_list_log_method.method)) == null ? void 0 : _a.handleChangeTabs), + b: common_vendor.p({ + list: tabTypeList, + current: (_c = (_b = common_vendor.unref(WORKORDER_list_log_model.useModel)) == null ? void 0 : _b.currentTabs) == null ? void 0 : _c.value + }), + c: common_vendor.f(tablist, (i, index, i0) => { + var _a2, _b2, _c2; + return { + a: common_vendor.t(i == null ? void 0 : i.label), + b: `items_${index}`, + c: common_vendor.n(`item_btn ${((_c2 = (_b2 = (_a2 = common_vendor.unref(WORKORDER_list_log_model.useModel)) == null ? void 0 : _a2.formData) == null ? void 0 : _b2.value) == null ? void 0 : _c2.status) === (i == null ? void 0 : i.value) ? "active_btn" : ""}`), + d: common_vendor.o(($event) => { + var _a3; + return (_a3 = common_vendor.unref(WORKORDER_list_log_method.method)) == null ? void 0 : _a3.handleChangeStatus(i); + }, `items_${index}`) + }; + }) + }; + }; + } +}); +const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-ecc92f0d"], ["__file", "/Users/zsq/Sources/github/2025property-pay/pay-employee/src/WORKORDER/list_log/components/header.vue"]]); +wx.createComponent(Component); diff --git a/dist/dev/mp-weixin/WORKORDER/list_log/components/header.json b/dist/dev/mp-weixin/WORKORDER/list_log/components/header.json new file mode 100644 index 0000000..76990db --- /dev/null +++ b/dist/dev/mp-weixin/WORKORDER/list_log/components/header.json @@ -0,0 +1,6 @@ +{ + "component": true, + "usingComponents": { + "hs-tabs": "../../../components/hs-tabs/hs-tabs" + } +} \ No newline at end of file diff --git a/dist/dev/mp-weixin/WORKORDER/list_log/components/header.wxml b/dist/dev/mp-weixin/WORKORDER/list_log/components/header.wxml new file mode 100644 index 0000000..7475bcb --- /dev/null +++ b/dist/dev/mp-weixin/WORKORDER/list_log/components/header.wxml @@ -0,0 +1 @@ +{{i.a}} \ No newline at end of file diff --git a/dist/dev/mp-weixin/WORKORDER/list_log/components/header.wxss b/dist/dev/mp-weixin/WORKORDER/list_log/components/header.wxss new file mode 100644 index 0000000..a480d86 --- /dev/null +++ b/dist/dev/mp-weixin/WORKORDER/list_log/components/header.wxss @@ -0,0 +1,29 @@ +.header.data-v-ecc92f0d { + background-color: #fff; + position: fixed; + left: 0; + top: 0; + right: 0; + z-index: 100; + box-shadow: 0px 3px 7px rgba(206, 206, 206, 0.25); +} +.header_status.data-v-ecc92f0d { + white-space: nowrap; + padding: 20rpx 0 30rpx 0; +} +.header_status .item_btn.data-v-ecc92f0d { + display: inline-block; + margin-left: 30rpx; + padding: 8rpx 25rpx; + font-size: 28rpx; + border: 1px solid #ccc; + border-radius: 100rpx; + color: #999; +} +.header_status .item_btn.data-v-ecc92f0d:last-child { + margin-right: 30rpx; +} +.header_status .active_btn.data-v-ecc92f0d { + color: #2a7efb; + border: 1px solid #2a7efb; +} \ No newline at end of file diff --git a/dist/dev/mp-weixin/WORKORDER/list_log/index.js b/dist/dev/mp-weixin/WORKORDER/list_log/index.js new file mode 100644 index 0000000..887b763 --- /dev/null +++ b/dist/dev/mp-weixin/WORKORDER/list_log/index.js @@ -0,0 +1,108 @@ +"use strict"; +const common_vendor = require("../../common/vendor.js"); +const gen_Enums = require("../../gen/Enums.js"); +const WORKORDER_list_log_method = require("./method.js"); +const WORKORDER_list_log_model = require("./model.js"); +require("../../common/libraries/apiLoading.js"); +require("../../gen/Apis.js"); +require("../../common/libraries/request.js"); +require("../../common/store/useWeAppAuthStore.js"); +require("../../common/store/useWatermarkStore.js"); +require("../../common/store/useWorkStore.js"); +if (!Array) { + const _easycom_hs_enum_tag2 = common_vendor.resolveComponent("hs-enum-tag"); + const _easycom_hs_up_rate2 = common_vendor.resolveComponent("hs-up-rate"); + const _easycom_hs_button2 = common_vendor.resolveComponent("hs-button"); + const _easycom_cc_scroll_loading2 = common_vendor.resolveComponent("cc-scroll-loading"); + (_easycom_hs_enum_tag2 + _easycom_hs_up_rate2 + _easycom_hs_button2 + _easycom_cc_scroll_loading2)(); +} +const _easycom_hs_enum_tag = () => "../../components/hs-enum-tag/hs-enum-tag.js"; +const _easycom_hs_up_rate = () => "../../components/hs-up-rate/hs-up-rate.js"; +const _easycom_hs_button = () => "../../components/hs-button/hs-button.js"; +const _easycom_cc_scroll_loading = () => "../../common/components/cc-scroll-loading/cc-scroll-loading.js"; +if (!Math) { + (MyHeader + _easycom_hs_enum_tag + _easycom_hs_up_rate + _easycom_hs_button + _easycom_cc_scroll_loading)(); +} +const MyHeader = () => "./components/header.js"; +const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({ + __name: "index", + setup(__props) { + common_vendor.onShow(() => { + var _a; + WORKORDER_list_log_model.useModel.formData.value.page = 1; + WORKORDER_list_log_model.useModel.dataList.value = []; + (_a = WORKORDER_list_log_method.method) == null ? void 0 : _a.getList(); + }); + return (_ctx, _cache) => { + var _a, _b, _c, _d, _e; + return { + a: common_vendor.f((_b = (_a = common_vendor.unref(WORKORDER_list_log_model.useModel)) == null ? void 0 : _a.dataList) == null ? void 0 : _b.value, (i, index, i0) => { + var _a2, _b2; + return common_vendor.e({ + a: "9ec83e52-2-" + i0 + ",9ec83e52-1", + b: common_vendor.p({ + value: i == null ? void 0 : i.type, + Enums: common_vendor.unref(gen_Enums.HouseWorkOrdersTypeEnum) + }), + c: i == null ? void 0 : i.location + }, (i == null ? void 0 : i.location) ? { + d: "9ec83e52-3-" + i0 + ",9ec83e52-1", + e: common_vendor.p({ + value: i == null ? void 0 : i.location, + Enums: common_vendor.unref(gen_Enums.HouseWorkOrdersLocationEnum) + }) + } : {}, { + f: "9ec83e52-4-" + i0 + ",9ec83e52-1", + g: common_vendor.p({ + value: i == null ? void 0 : i.status, + Enums: common_vendor.unref(gen_Enums.HouseWorkOrdersStatusEnum) + }), + h: common_vendor.n(`btn_status btn_status_${i == null ? void 0 : i.status}`), + i: common_vendor.t(((_a2 = i == null ? void 0 : i.asset_house) == null ? void 0 : _a2.full_name) || ((_b2 = i == null ? void 0 : i.asset_project) == null ? void 0 : _b2.name)), + j: common_vendor.t(i == null ? void 0 : i.content), + k: (i == null ? void 0 : i.expect_start_time) && (i == null ? void 0 : i.status) !== "Closed" && (i == null ? void 0 : i.status) !== "Completed" + }, (i == null ? void 0 : i.expect_start_time) && (i == null ? void 0 : i.status) !== "Closed" && (i == null ? void 0 : i.status) !== "Completed" ? { + l: common_vendor.t(i == null ? void 0 : i.expect_start_time) + } : {}, { + m: (i == null ? void 0 : i.status) === "Completed" && !(i == null ? void 0 : i.accept_time) + }, (i == null ? void 0 : i.status) === "Completed" && !(i == null ? void 0 : i.accept_time) ? { + n: common_vendor.t(i == null ? void 0 : i.accept_time) + } : { + o: common_vendor.t(i == null ? void 0 : i.created_at) + }, { + p: i == null ? void 0 : i.evaluation_score + }, (i == null ? void 0 : i.evaluation_score) ? { + q: "9ec83e52-5-" + i0 + ",9ec83e52-1", + r: common_vendor.p({ + valueModel: i == null ? void 0 : i.evaluation_score + }) + } : {}, { + s: common_vendor.o(($event) => { + var _a3; + return (_a3 = common_vendor.unref(WORKORDER_list_log_method.method)) == null ? void 0 : _a3.handleToDetail(i); + }, `items_${index}`), + t: (i == null ? void 0 : i.location) !== "MyHome" && (i == null ? void 0 : i.status) === "PendingAcceptance" + }, (i == null ? void 0 : i.location) !== "MyHome" && (i == null ? void 0 : i.status) === "PendingAcceptance" ? { + v: common_vendor.o(($event) => { + var _a3; + return (_a3 = common_vendor.unref(WORKORDER_list_log_method.method)) == null ? void 0 : _a3.handleAssignEmployee(i); + }, `items_${index}`), + w: "9ec83e52-6-" + i0 + ",9ec83e52-1", + x: common_vendor.p({ + type: "ghost", + label: "验收工单" + }) + } : {}, { + y: `items_${index}` + }); + }), + b: common_vendor.o((_c = common_vendor.unref(WORKORDER_list_log_method.method)) == null ? void 0 : _c.handleLoad), + c: common_vendor.p({ + meta: (_e = (_d = common_vendor.unref(WORKORDER_list_log_model.useModel)) == null ? void 0 : _d.meta) == null ? void 0 : _e.value + }) + }; + }; + } +}); +const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__file", "/Users/zsq/Sources/github/2025property-pay/pay-employee/src/WORKORDER/list_log/index.vue"]]); +wx.createPage(MiniProgramPage); diff --git a/dist/dev/mp-weixin/WORKORDER/list_log/index.json b/dist/dev/mp-weixin/WORKORDER/list_log/index.json new file mode 100644 index 0000000..72dd4fe --- /dev/null +++ b/dist/dev/mp-weixin/WORKORDER/list_log/index.json @@ -0,0 +1,10 @@ +{ + "navigationBarTitleText": "提报记录", + "usingComponents": { + "hs-enum-tag": "../../components/hs-enum-tag/hs-enum-tag", + "hs-up-rate": "../../components/hs-up-rate/hs-up-rate", + "hs-button": "../../components/hs-button/hs-button", + "cc-scroll-loading": "../../common/components/cc-scroll-loading/cc-scroll-loading", + "my-header": "./components/header" + } +} \ No newline at end of file diff --git a/dist/dev/mp-weixin/WORKORDER/list_log/index.wxml b/dist/dev/mp-weixin/WORKORDER/list_log/index.wxml new file mode 100644 index 0000000..a736f95 --- /dev/null +++ b/dist/dev/mp-weixin/WORKORDER/list_log/index.wxml @@ -0,0 +1 @@ +{{i.i}} {{i.j}} 期望处理时间:{{i.l}}(两小时内) 工单完成时间: {{i.n}} 工单创建时间: {{i.o}} 客户评价: \ No newline at end of file diff --git a/dist/dev/mp-weixin/WORKORDER/list_log/index.wxss b/dist/dev/mp-weixin/WORKORDER/list_log/index.wxss new file mode 100644 index 0000000..384676e --- /dev/null +++ b/dist/dev/mp-weixin/WORKORDER/list_log/index.wxss @@ -0,0 +1,113 @@ +page { + background-color: #f8f8f8; +} +.work_contents { + padding: 220rpx 0 0 0; +} +.work_contents .work_item { + background-color: #fff; + border-radius: 10rpx; + margin: 30rpx 30rpx 0 30rpx; + border-radius: 15rpx; + padding: 0 30rpx 30rpx 30rpx; +} +.work_contents .work_item .work_item_header { + display: flex; + align-items: center; + justify-content: space-between; + padding: 25rpx 0; + font-size: 24rpx; + color: #3d3d3d; +} +.work_contents .work_item .work_item_header .btn_type { + border: 1rpx solid #eee; + padding: 7rpx 19rpx; + border-radius: 100rpx; +} +.work_contents .work_item .work_item_header .btn_status { + border-radius: 100rpx; + padding: 7rpx 19rpx; +} +.work_contents .work_item .work_item_header .btn_status_Pending { + color: #f97316; + background-color: #fff7ed; +} +.work_contents .work_item .work_item_header .btn_status_Processing, .work_contents .work_item .work_item_header .btn_status_PendingAcceptance { + color: #0082fa; + background-color: #edf4ff; +} +.work_contents .work_item .work_item_header .btn_status_PendingPayment { + color: #cf1322; + background-color: #ffeded; +} +.work_contents .work_item .work_item_header .btn_status_Completed { + color: #22c55e; + background-color: #f0fdf4; +} +.work_contents .work_item .work_item_header .btn_status_Closed { + color: #909399; + background-color: #f3f3f4; +} +.work_contents .work_item .work_item_header .work_item_header_left { + display: flex; + align-items: center; +} +.work_contents .work_item .work_item_header .work_item_header_left .btn_type { + margin-right: 30rpx; +} +.work_contents .work_item .work_item_houses { + display: flex; + align-items: center; + font-size: 28rpx; + font-weight: 500; +} +.work_contents .work_item .work_item_houses .item { + height: 30rpx; + line-height: 30rpx; +} +.work_contents .work_item .work_item_houses .item:last-child { + border-left: 1rpx solid #eee; + padding-left: 15rpx; + margin-left: 15rpx; +} +.work_contents .work_item .work_item_des { + color: #444444; + font-size: 28rpx; + padding: 12rpx 0 10rpx 0; +} +.work_contents .work_item .work_item_cell { + color: #666666; + font-size: 26rpx; + padding-top: 15rpx; + display: flex; + align-items: center; +} +.work_contents .work_item .work_item_footer { + border-top: 1rpx solid #eee; + padding: 25rpx 0 0 0; + margin-top: 25rpx; + display: flex; + justify-content: flex-end; + align-items: center; +} +.work_contents .work_item .work_item_images { + display: flex; + align-items: center; + flex-wrap: wrap; +} +.work_contents .work_item .work_item_images .item { + width: 140rpx; + height: 140rpx; + border-radius: 10rpx; + background-color: #f8f8f8; + margin-top: 25rpx; + margin-right: 25rpx; + overflow: hidden; +} +.work_contents .work_item .work_item_images .item:nth-child(4n) { + margin-right: 0; +} +.work_contents .work_item .work_item_images .item image { + width: 100%; + height: 100%; +} \ No newline at end of file diff --git a/dist/dev/mp-weixin/WORKORDER/list_log/method.js b/dist/dev/mp-weixin/WORKORDER/list_log/method.js new file mode 100644 index 0000000..da570e5 --- /dev/null +++ b/dist/dev/mp-weixin/WORKORDER/list_log/method.js @@ -0,0 +1,56 @@ +"use strict"; +const common_vendor = require("../../common/vendor.js"); +const WORKORDER_list_log_model = require("./model.js"); +const common_libraries_apiLoading = require("../../common/libraries/apiLoading.js"); +const gen_Apis = require("../../gen/Apis.js"); +const getList = () => { + var _a, _b; + common_libraries_apiLoading.getApiLoading(gen_Apis.Apis.WorkOrder.HouseWorkOrders.MySubmitList, (_b = (_a = WORKORDER_list_log_model.useModel) == null ? void 0 : _a.formData) == null ? void 0 : _b.value).then( + (res) => { + var _a2, _b2; + WORKORDER_list_log_model.useModel.dataList.value = [...(_b2 = (_a2 = WORKORDER_list_log_model.useModel) == null ? void 0 : _a2.dataList) == null ? void 0 : _b2.value, ...res == null ? void 0 : res.data]; + WORKORDER_list_log_model.useModel.meta.value = res == null ? void 0 : res.meta; + } + ); +}; +const handleSearch = () => { + WORKORDER_list_log_model.useModel.formData.value.page = 1; + WORKORDER_list_log_model.useModel.dataList.value = []; + getList(); +}; +const method = { + getList, + handleToDetail(e) { + common_vendor.index.navigateTo({ + url: `/WORKORDER/show_log/index?id=${e == null ? void 0 : e.id}` + }); + }, + handleAdd() { + common_vendor.index.navigateTo({ + url: "/WORKORDER/add/index" + }); + }, + handleChangeTabs(idx, e) { + WORKORDER_list_log_model.useModel.currentTabs.value = idx; + WORKORDER_list_log_model.useModel.formData.value.type = e == null ? void 0 : e.value; + handleSearch(); + }, + handleAssignEmployee(e) { + if ((e == null ? void 0 : e.status) === "PendingAcceptance") { + common_vendor.index.navigateTo({ + url: `/WORKORDER/acceptance/index?id=${e == null ? void 0 : e.id}` + }); + return false; + } + console.log(e, "eee"); + }, + handleChangeStatus(e) { + WORKORDER_list_log_model.useModel.formData.value.status = e == null ? void 0 : e.value; + handleSearch(); + }, + handleLoad(page) { + WORKORDER_list_log_model.useModel.formData.value.page = page; + getList(); + } +}; +exports.method = method; diff --git a/dist/dev/mp-weixin/WORKORDER/list_log/model.js b/dist/dev/mp-weixin/WORKORDER/list_log/model.js new file mode 100644 index 0000000..daea351 --- /dev/null +++ b/dist/dev/mp-weixin/WORKORDER/list_log/model.js @@ -0,0 +1,15 @@ +"use strict"; +const common_vendor = require("../../common/vendor.js"); +const useModel = { + dataList: common_vendor.ref([]), + currentTabs: common_vendor.ref(0), + meta: common_vendor.ref({}), + showEvaluate: common_vendor.ref(false), + evaluateParams: common_vendor.ref({}), + formData: common_vendor.ref({ + page: 1, + status: "", + type: "Repair" + }) +}; +exports.useModel = useModel; diff --git a/dist/dev/mp-weixin/WORKORDER/poster/index.js b/dist/dev/mp-weixin/WORKORDER/poster/index.js new file mode 100644 index 0000000..718ce5f --- /dev/null +++ b/dist/dev/mp-weixin/WORKORDER/poster/index.js @@ -0,0 +1,28 @@ +"use strict"; +const common_vendor = require("../../common/vendor.js"); +const WORKORDER_poster_method = require("./method.js"); +require("../../common/libraries/apiLoading.js"); +require("../../gen/Apis.js"); +require("../../common/libraries/request.js"); +require("../../common/store/useWeAppAuthStore.js"); +require("../../common/store/useWatermarkStore.js"); +require("../../common/store/useWorkStore.js"); +require("./model.js"); +const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({ + __name: "index", + setup(__props) { + common_vendor.onLoad((e) => { + WORKORDER_poster_method.method.setCanvas(e); + }); + return (_ctx, _cache) => { + return { + a: common_vendor.o( + //@ts-ignore + (...args) => common_vendor.unref(WORKORDER_poster_method.method).onDownloadPosters && common_vendor.unref(WORKORDER_poster_method.method).onDownloadPosters(...args) + ) + }; + }; + } +}); +const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-d354fff4"], ["__file", "/Users/zsq/Sources/github/2025property-pay/pay-employee/src/WORKORDER/poster/index.vue"]]); +wx.createPage(MiniProgramPage); diff --git a/dist/dev/mp-weixin/WORKORDER/poster/index.json b/dist/dev/mp-weixin/WORKORDER/poster/index.json new file mode 100644 index 0000000..38f4bf1 --- /dev/null +++ b/dist/dev/mp-weixin/WORKORDER/poster/index.json @@ -0,0 +1,4 @@ +{ + "navigationBarTitleText": "工单收款码", + "usingComponents": {} +} \ No newline at end of file diff --git a/dist/dev/mp-weixin/WORKORDER/poster/index.wxml b/dist/dev/mp-weixin/WORKORDER/poster/index.wxml new file mode 100644 index 0000000..eaed811 --- /dev/null +++ b/dist/dev/mp-weixin/WORKORDER/poster/index.wxml @@ -0,0 +1 @@ +下载收款码 \ No newline at end of file diff --git a/dist/dev/mp-weixin/WORKORDER/poster/index.wxss b/dist/dev/mp-weixin/WORKORDER/poster/index.wxss new file mode 100644 index 0000000..2474f55 --- /dev/null +++ b/dist/dev/mp-weixin/WORKORDER/poster/index.wxss @@ -0,0 +1,67 @@ +.poster_main.data-v-d354fff4 { + width: 100vw; + height: 100vh; + background-color: #f1f2f5; +} +.poster_canvas.data-v-d354fff4 { + padding-top: 30rpx; + height: 534px; +} +#poster_firstCanvas.data-v-d354fff4 { + margin: 0 auto; +} +.poster_func.data-v-d354fff4 { + margin-top: 40rpx; + display: flex; + flex-direction: column; + align-items: center; +} +.poster_func_choice.data-v-d354fff4 { + font-size: 28rpx; + font-weight: 400; + color: #0082fa; + text-decoration: underline; +} +.poster_func_download.data-v-d354fff4, .poster_func_link.data-v-d354fff4 { + width: 500rpx; + height: 80rpx; + font-size: 28rpx; + border-radius: 66rpx; + display: flex; + justify-content: center; + align-items: center; + background-color: #0082fa; + margin-top: 30rpx; + color: #fff; +} +.poster_func_link.data-v-d354fff4 { + background-color: #fff; +} +.image_popup.data-v-d354fff4 { + display: flex; + justify-content: center; + align-items: center; +} +.image_popup_card.data-v-d354fff4 { + width: 90vw; + z-index: 200; +} +.image_popup_card_title.data-v-d354fff4 { + text-align: center; + font-size: 36rpx; + font-weight: 600; +} +.image_popup_card_title_text.data-v-d354fff4 { + margin: 20rpx 0 60rpx 0; +} +.image_popup_card_enter.data-v-d354fff4 { + margin: 100rpx 0 20rpx 0; +} +.image_popup_card_swiper_item.data-v-d354fff4 { + display: flex; + justify-content: center; +} +.image_popup_card_swiper_image.data-v-d354fff4 { + width: 480rpx; + height: 320rpx; +} \ No newline at end of file diff --git a/dist/dev/mp-weixin/WORKORDER/poster/method.js b/dist/dev/mp-weixin/WORKORDER/poster/method.js new file mode 100644 index 0000000..620208b --- /dev/null +++ b/dist/dev/mp-weixin/WORKORDER/poster/method.js @@ -0,0 +1,101 @@ +"use strict"; +const common_vendor = require("../../common/vendor.js"); +const common_libraries_apiLoading = require("../../common/libraries/apiLoading.js"); +const gen_Apis = require("../../gen/Apis.js"); +const WORKORDER_poster_model = require("./model.js"); +const getQrCode = (data, fun) => { + common_libraries_apiLoading.getApiLoading(gen_Apis.Apis.WorkOrder.HouseWorkOrders.GetWorkOrderPayQrCode, { + id: data == null ? void 0 : data.id + }).then((res) => { + var _a; + const fs = common_vendor.index.getFileSystemManager(); + let times = new Date().getTime(); + let codeimg = common_vendor.wx$1.env.USER_DATA_PATH + "/" + times + ".png"; + console.log(codeimg, "二维码路径"); + fs.writeFile({ + filePath: codeimg, + data: (_a = res == null ? void 0 : res.data) == null ? void 0 : _a.qr_code.slice(22), + encoding: "base64", + success: () => { + return fun == null ? void 0 : fun(codeimg); + } + }); + }); +}; +const method = { + //method + getHouseDetail(id) { + }, + setCanvas(data) { + console.log(data, "data"); + const context = common_vendor.index.createCanvasContext("poster_firstCanvas"); + getQrCode(data, (url) => { + common_vendor.index.downloadFile({ + url: "https://pay-prod-1369486729.cos.ap-guangzhou.myqcloud.com/uploads/cs-test/01KFYRR5Y37PR2C1EDJYZYCDJK.png", + success(res) { + context.drawImage(res.tempFilePath, 0, 0, 345, 504); + context.font = "bold 18px Arial"; + context.fillStyle = "#3D3D3D"; + context.setTextAlign("center"); + context.fillText((data == null ? void 0 : data.full_name) || "-", 345 / 2, 45); + context.font = "bold 20px Arial"; + context.fillStyle = "#3D3D3D"; + context.fillText(`¥${(data == null ? void 0 : data.amount) || "-"}元`, 345 / 2, 85); + context.font = "12px Arial"; + context.fillStyle = "#666"; + context.fillText("待支付", 345 / 2, 110); + context.font = "14px Arial"; + context.fillStyle = "#00C800"; + context.fillText("请使用微信扫码支付", 345 / 2, 450); + setTimeout(() => { + context.drawImage(url, 72.5, 150, 200, 200); + context.restore(); + context.draw(); + }, 500); + } + }); + console.log(url, "二维码路径"); + }); + }, + onDownloadPosters() { + common_vendor.index.showLoading({ + title: "正在保存中..." + }); + common_vendor.index.canvasToTempFilePath({ + x: 0, + y: 0, + width: 345, + height: 504, + destWidth: 345 * 4, + destHeight: 504 * 4, + canvasId: "poster_firstCanvas", + success: function(res) { + console.log(res, "res"); + common_vendor.index.saveImageToPhotosAlbum({ + filePath: res.tempFilePath, + success: function() { + console.log("save success"); + common_vendor.index.hideLoading(); + }, + fail() { + common_vendor.index.hideLoading(); + } + }); + console.log(res.tempFilePath); + }, + fail(e) { + console.log(e, "err"); + common_vendor.index.hideLoading(); + } + }); + }, + initActualImages: async (id) => { + }, + choiceImgPopControl() { + var _a; + this.initActualImages((_a = WORKORDER_poster_model.useModel.houseDetail.value) == null ? void 0 : _a.id); + }, + copyLink() { + } +}; +exports.method = method; diff --git a/dist/dev/mp-weixin/WORKORDER/poster/model.js b/dist/dev/mp-weixin/WORKORDER/poster/model.js new file mode 100644 index 0000000..e829716 --- /dev/null +++ b/dist/dev/mp-weixin/WORKORDER/poster/model.js @@ -0,0 +1,19 @@ +"use strict"; +const common_vendor = require("../../common/vendor.js"); +const useModel = { + //model + coverBgImg: "https://jyw-1322946948.cos.ap-guangzhou.myqcloud.com/upload/gjEDA6cmTu5FnMCWzyGSE.png", + coverImg: common_vendor.ref(""), + houseDetail: common_vendor.ref({}), + qrCodeByBase64: common_vendor.ref(""), + choiceImgShow: common_vendor.ref(false), + posterStyle: { + background: "url('https://jyw-1322946948.cos.ap-guangzhou.myqcloud.com/upload/jgKWriyfZrPSIBuHrlfNG.png')", + backgroundSize: "100% 100%", + marginTop: "30rpx", + padding: "30rpx" + }, + houseActualImages: common_vendor.ref([]), + posterImage: common_vendor.ref("") +}; +exports.useModel = useModel; diff --git a/dist/dev/mp-weixin/WORKORDER/show/index.js b/dist/dev/mp-weixin/WORKORDER/show/index.js index 3a4a8ea..a1e0dbc 100644 --- a/dist/dev/mp-weixin/WORKORDER/show/index.js +++ b/dist/dev/mp-weixin/WORKORDER/show/index.js @@ -1,27 +1,30 @@ "use strict"; const common_vendor = require("../../common/vendor.js"); const common_libraries_day = require("../../common/libraries/day.js"); +const gen_Enums = require("../../gen/Enums.js"); const WORKORDER_show_method = require("./method.js"); const WORKORDER_show_model = require("./model.js"); -const gen_Enums = require("../../gen/Enums.js"); require("../../common/libraries/apiLoading.js"); require("../../gen/Apis.js"); require("../../common/libraries/request.js"); require("../../common/store/useWeAppAuthStore.js"); +require("../../common/store/useWatermarkStore.js"); require("../../common/store/useWorkStore.js"); if (!Array) { const _easycom_hs_enum_tag2 = common_vendor.resolveComponent("hs-enum-tag"); const _easycom_hs_level2 = common_vendor.resolveComponent("hs-level"); const _easycom_up_icon2 = common_vendor.resolveComponent("up-icon"); + const _easycom_hs_up_rate2 = common_vendor.resolveComponent("hs-up-rate"); const _easycom_hs_footer2 = common_vendor.resolveComponent("hs-footer"); - (_easycom_hs_enum_tag2 + _easycom_hs_level2 + _easycom_up_icon2 + _easycom_hs_footer2)(); + (_easycom_hs_enum_tag2 + _easycom_hs_level2 + _easycom_up_icon2 + _easycom_hs_up_rate2 + _easycom_hs_footer2)(); } const _easycom_hs_enum_tag = () => "../../components/hs-enum-tag/hs-enum-tag.js"; const _easycom_hs_level = () => "../../components/hs-level/hs-level.js"; const _easycom_up_icon = () => "../../node-modules/uview-plus/components/u-icon/u-icon.js"; +const _easycom_hs_up_rate = () => "../../components/hs-up-rate/hs-up-rate.js"; const _easycom_hs_footer = () => "../../components/hs-footer/hs-footer.js"; if (!Math) { - (_easycom_hs_enum_tag + _easycom_hs_level + _easycom_up_icon + MyProcessLogs + _easycom_hs_footer)(); + (_easycom_hs_enum_tag + _easycom_hs_level + _easycom_up_icon + _easycom_hs_up_rate + MyProcessLogs + _easycom_hs_footer)(); } const MyProcessLogs = () => "./components/ProcessLogs.js"; const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({ @@ -40,62 +43,101 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({ (_k = WORKORDER_show_method.method) == null ? void 0 : _k.getHouseWorkLogs((_j = (_i = (_h = WORKORDER_show_model.useModel) == null ? void 0 : _h.dataShow) == null ? void 0 : _i.value) == null ? void 0 : _j.id); } }); + common_vendor.onUnload(() => { + WORKORDER_show_model.useModel.logsData.value = []; + }); return (_ctx, _cache) => { - var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _A, _B, _C, _D, _E, _F, _G, _H, _I, _J, _K, _L, _M, _N, _O, _P, _Q, _R, _S, _T, _U, _V, _W, _X, _Y, _Z, __, _$, _aa, _ba, _ca, _da, _ea, _fa, _ga, _ha, _ia, _ja, _ka, _la, _ma, _na, _oa, _pa, _qa, _ra, _sa, _ta, _ua; + var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _A, _B, _C, _D, _E, _F, _G, _H, _I, _J, _K, _L, _M, _N, _O, _P, _Q, _R, _S, _T, _U, _V, _W, _X, _Y, _Z, __, _$, _aa, _ba, _ca, _da, _ea, _fa, _ga, _ha, _ia, _ja, _ka, _la, _ma, _na, _oa, _pa, _qa, _ra, _sa, _ta, _ua, _va, _wa, _xa, _ya, _za, _Aa, _Ba, _Ca, _Da, _Ea, _Fa, _Ga, _Ha, _Ia, _Ja, _Ka, _La, _Ma, _Na, _Oa, _Pa, _Qa, _Ra, _Sa, _Ta, _Ua, _Va, _Wa, _Xa, _Ya, _Za, __a, _$a, _ab, _bb, _cb, _db, _eb, _fb, _gb, _hb, _ib, _jb, _kb, _lb, _mb, _nb, _ob, _pb, _qb, _rb, _sb, _tb, _ub, _vb, _wb, _xb, _yb, _zb, _Ab, _Bb, _Cb, _Db, _Eb, _Fb, _Gb, _Hb, _Ib, _Jb, _Kb, _Lb, _Mb, _Nb, _Ob, _Pb, _Qb, _Rb, _Sb, _Tb, _Ub, _Vb, _Wb, _Xb, _Yb, _Zb, __b, _$b, _ac, _bc, _cc, _dc, _ec, _fc, _gc, _hc, _ic, _jc, _kc, _lc, _mc, _nc, _oc, _pc, _qc, _rc, _sc, _tc, _uc, _vc, _wc, _xc, _yc, _zc, _Ac, _Bc, _Cc, _Dc, _Ec, _Fc, _Gc, _Hc, _Ic, _Jc, _Kc, _Lc, _Mc, _Nc, _Oc, _Pc, _Qc, _Rc; return common_vendor.e({ a: common_vendor.p({ value: (_c = (_b = (_a = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _a.dataShow) == null ? void 0 : _b.value) == null ? void 0 : _c.type, Enums: common_vendor.unref(gen_Enums.HouseWorkOrdersTypeEnum) }), - b: common_vendor.p({ - value: (_f = (_e = (_d = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _d.dataShow) == null ? void 0 : _e.value) == null ? void 0 : _f.location, - Enums: common_vendor.unref(gen_Enums.HouseWorkOrdersLocationEnum) - }), + b: (_f = (_e = (_d = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _d.dataShow) == null ? void 0 : _e.value) == null ? void 0 : _f.location + }, ((_i = (_h = (_g = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _g.dataShow) == null ? void 0 : _h.value) == null ? void 0 : _i.location) ? { c: common_vendor.p({ - level: (_i = (_h = (_g = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _g.dataShow) == null ? void 0 : _h.value) == null ? void 0 : _i.level - }), - d: common_vendor.p({ - value: (_l = (_k = (_j = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _j.dataShow) == null ? void 0 : _k.value) == null ? void 0 : _l.status, + value: (_l = (_k = (_j = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _j.dataShow) == null ? void 0 : _k.value) == null ? void 0 : _l.location, + Enums: common_vendor.unref(gen_Enums.HouseWorkOrdersLocationEnum) + }) + } : {}, { + d: ((_o = (_n = (_m = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _m.dataShow) == null ? void 0 : _n.value) == null ? void 0 : _o.type) === "Repair" || ((_r = (_q = (_p = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _p.dataShow) == null ? void 0 : _q.value) == null ? void 0 : _r.type) === "Incident" || ((_u = (_t = (_s = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _s.dataShow) == null ? void 0 : _t.value) == null ? void 0 : _u.type) === "Complaint" + }, ((_x = (_w = (_v = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _v.dataShow) == null ? void 0 : _w.value) == null ? void 0 : _x.type) === "Repair" || ((_A = (_z = (_y = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _y.dataShow) == null ? void 0 : _z.value) == null ? void 0 : _A.type) === "Incident" || ((_D = (_C = (_B = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _B.dataShow) == null ? void 0 : _C.value) == null ? void 0 : _D.type) === "Complaint" ? common_vendor.e({ + e: ((_G = (_F = (_E = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _E.dataShow) == null ? void 0 : _F.value) == null ? void 0 : _G.status) == "Processing" + }, ((_J = (_I = (_H = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _H.dataShow) == null ? void 0 : _I.value) == null ? void 0 : _J.status) == "Processing" ? { + f: common_vendor.p({ + level: (_M = (_L = (_K = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _K.dataShow) == null ? void 0 : _L.value) == null ? void 0 : _M.level + }) + } : {}) : {}, { + g: common_vendor.p({ + value: (_P = (_O = (_N = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _N.dataShow) == null ? void 0 : _O.value) == null ? void 0 : _P.status, Enums: common_vendor.unref(gen_Enums.HouseWorkOrdersStatusEnum) }), - e: common_vendor.n(`btn_status status_${(_o = (_n = (_m = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _m.dataShow) == null ? void 0 : _n.value) == null ? void 0 : _o.status}`), - f: ((_r = (_q = (_p = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _p.dataShow) == null ? void 0 : _q.value) == null ? void 0 : _r.status) === "Pending" && ((_u = (_t = (_s = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _s.dataShow) == null ? void 0 : _t.value) == null ? void 0 : _u.location) === "MyHome" - }, ((_x = (_w = (_v = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _v.dataShow) == null ? void 0 : _w.value) == null ? void 0 : _x.status) === "Pending" && ((_A = (_z = (_y = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _y.dataShow) == null ? void 0 : _z.value) == null ? void 0 : _A.location) === "MyHome" ? { - g: common_vendor.p({ + h: common_vendor.n(`btn_status status_${(_S = (_R = (_Q = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _Q.dataShow) == null ? void 0 : _R.value) == null ? void 0 : _S.status}`), + i: ((_V = (_U = (_T = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _T.dataShow) == null ? void 0 : _U.value) == null ? void 0 : _V.status) === "Pending" && ((_Y = (_X = (_W = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _W.dataShow) == null ? void 0 : _X.value) == null ? void 0 : _Y.location) === "MyHome" + }, ((_$ = (__ = (_Z = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _Z.dataShow) == null ? void 0 : __.value) == null ? void 0 : _$.status) === "Pending" && ((_ca = (_ba = (_aa = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _aa.dataShow) == null ? void 0 : _ba.value) == null ? void 0 : _ca.location) === "MyHome" ? { + j: common_vendor.p({ name: "clock", - color: ((_E = common_vendor.unref(common_libraries_day.getTimeStatus)((_D = (_C = (_B = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _B.dataShow) == null ? void 0 : _C.value) == null ? void 0 : _D.expect_end_time)) == null ? void 0 : _E.color) || "#000", + color: ((_ga = common_vendor.unref(common_libraries_day.getTimeStatus)((_fa = (_ea = (_da = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _da.dataShow) == null ? void 0 : _ea.value) == null ? void 0 : _fa.expect_end_time)) == null ? void 0 : _ga.color) || "#000", size: "14" }), - h: common_vendor.t((_I = common_vendor.unref(common_libraries_day.getTimeStatus)((_H = (_G = (_F = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _F.dataShow) == null ? void 0 : _G.value) == null ? void 0 : _H.expect_end_time)) == null ? void 0 : _I.label), - i: common_vendor.n(`time_status status_${(_M = common_vendor.unref(common_libraries_day.getTimeStatus)((_L = (_K = (_J = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _J.dataShow) == null ? void 0 : _K.value) == null ? void 0 : _L.expect_end_time)) == null ? void 0 : _M.status}`) + k: common_vendor.t((_ka = common_vendor.unref(common_libraries_day.getTimeStatus)((_ja = (_ia = (_ha = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _ha.dataShow) == null ? void 0 : _ia.value) == null ? void 0 : _ja.expect_end_time)) == null ? void 0 : _ka.label), + l: common_vendor.n(`time_status status_${(_oa = common_vendor.unref(common_libraries_day.getTimeStatus)((_na = (_ma = (_la = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _la.dataShow) == null ? void 0 : _ma.value) == null ? void 0 : _na.expect_end_time)) == null ? void 0 : _oa.status}`) } : {}, { - j: ((_P = (_O = (_N = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _N.dataShow) == null ? void 0 : _O.value) == null ? void 0 : _P.location) === "MyHome" - }, ((_S = (_R = (_Q = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _Q.dataShow) == null ? void 0 : _R.value) == null ? void 0 : _S.location) === "MyHome" ? { - k: common_vendor.t((_W = (_V = (_U = (_T = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _T.dataShow) == null ? void 0 : _U.value) == null ? void 0 : _V.asset_house) == null ? void 0 : _W.full_name), - l: common_vendor.t((_Z = (_Y = (_X = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _X.dataShow) == null ? void 0 : _Y.value) == null ? void 0 : _Z.title) + m: ((_ra = (_qa = (_pa = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _pa.dataShow) == null ? void 0 : _qa.value) == null ? void 0 : _ra.type) === "Repair" || ((_ua = (_ta = (_sa = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _sa.dataShow) == null ? void 0 : _ta.value) == null ? void 0 : _ua.type) === "Incident" + }, ((_xa = (_wa = (_va = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _va.dataShow) == null ? void 0 : _wa.value) == null ? void 0 : _xa.type) === "Repair" || ((_Aa = (_za = (_ya = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _ya.dataShow) == null ? void 0 : _za.value) == null ? void 0 : _Aa.type) === "Incident" ? { + n: common_vendor.t(((_Ea = (_Da = (_Ca = (_Ba = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _Ba.dataShow) == null ? void 0 : _Ca.value) == null ? void 0 : _Da.asset_house) == null ? void 0 : _Ea.full_name) || ((_Ia = (_Ha = (_Ga = (_Fa = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _Fa.dataShow) == null ? void 0 : _Ga.value) == null ? void 0 : _Ha.asset_project) == null ? void 0 : _Ia.name)), + o: common_vendor.t((_La = (_Ka = (_Ja = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _Ja.dataShow) == null ? void 0 : _Ka.value) == null ? void 0 : _La.title) } : {}, { - m: common_vendor.t((_aa = (_$ = (__ = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : __.dataShow) == null ? void 0 : _$.value) == null ? void 0 : _aa.content), - n: common_vendor.f((_da = (_ca = (_ba = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _ba.dataShow) == null ? void 0 : _ca.value) == null ? void 0 : _da.attachments, (k, idx, i0) => { + p: common_vendor.t((_Oa = (_Na = (_Ma = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _Ma.dataShow) == null ? void 0 : _Na.value) == null ? void 0 : _Oa.content), + q: common_vendor.f((_Ra = (_Qa = (_Pa = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _Pa.dataShow) == null ? void 0 : _Qa.value) == null ? void 0 : _Ra.attachments, (k, idx, i0) => { return { a: k == null ? void 0 : k.url, - b: `img_${idx}` + b: `img_${idx}`, + c: common_vendor.o(($event) => { + var _a2; + return (_a2 = common_vendor.unref(WORKORDER_show_method.method)) == null ? void 0 : _a2.handlePreviewImage(idx); + }, `img_${idx}`) }; }), - o: common_vendor.t((_ga = (_fa = (_ea = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _ea.dataShow) == null ? void 0 : _fa.value) == null ? void 0 : _ga.code), - p: common_vendor.t((_ja = (_ia = (_ha = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _ha.dataShow) == null ? void 0 : _ia.value) == null ? void 0 : _ja.reporter_phone), - q: common_vendor.t((_ma = (_la = (_ka = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _ka.dataShow) == null ? void 0 : _la.value) == null ? void 0 : _ma.created_at), - r: common_vendor.n(`show_card ${((_pa = (_oa = (_na = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _na.dataShow) == null ? void 0 : _oa.value) == null ? void 0 : _pa.status) === "Pending" ? `card_status_${(_ta = common_vendor.unref(common_libraries_day.getTimeStatus)((_sa = (_ra = (_qa = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _qa.dataShow) == null ? void 0 : _ra.value) == null ? void 0 : _sa.expect_end_time)) == null ? void 0 : _ta.status}` : ""}`), - s: common_vendor.o((_ua = common_vendor.unref(WORKORDER_show_method.method)) == null ? void 0 : _ua.toPageAddLogs), - t: common_vendor.o(($event) => { - var _a2, _b2, _c2, _d2; - return (_d2 = common_vendor.unref(WORKORDER_show_method.method)) == null ? void 0 : _d2.handleCopyPhone((_c2 = (_b2 = (_a2 = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _a2.dataShow) == null ? void 0 : _b2.value) == null ? void 0 : _c2.contact_phone); - }), - v: common_vendor.p({ - btnOtherShow: true, - btnParimaryName: "更新进度", - btnOtherName: "联系客户" + r: common_vendor.t((_Ua = (_Ta = (_Sa = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _Sa.dataShow) == null ? void 0 : _Ta.value) == null ? void 0 : _Ua.code), + s: ((_Xa = (_Wa = (_Va = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _Va.dataShow) == null ? void 0 : _Wa.value) == null ? void 0 : _Xa.type) !== "RenovationInspection" && ((__a = (_Za = (_Ya = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _Ya.dataShow) == null ? void 0 : _Za.value) == null ? void 0 : __a.type) !== "RenovationAcceptance" + }, ((_bb = (_ab = (_$a = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _$a.dataShow) == null ? void 0 : _ab.value) == null ? void 0 : _bb.type) !== "RenovationInspection" && ((_eb = (_db = (_cb = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _cb.dataShow) == null ? void 0 : _db.value) == null ? void 0 : _eb.type) !== "RenovationAcceptance" ? { + t: common_vendor.t(((_ib = (_hb = (_gb = (_fb = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _fb.dataShow) == null ? void 0 : _gb.value) == null ? void 0 : _hb.customer) == null ? void 0 : _ib.name) || ((_mb = (_lb = (_kb = (_jb = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _jb.dataShow) == null ? void 0 : _kb.value) == null ? void 0 : _lb.company_employee) == null ? void 0 : _mb.name)) + } : {}, { + v: (_pb = (_ob = (_nb = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _nb.dataShow) == null ? void 0 : _ob.value) == null ? void 0 : _pb.reporter_name + }, ((_sb = (_rb = (_qb = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _qb.dataShow) == null ? void 0 : _rb.value) == null ? void 0 : _sb.reporter_name) ? { + w: common_vendor.t((_vb = (_ub = (_tb = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _tb.dataShow) == null ? void 0 : _ub.value) == null ? void 0 : _vb.reporter_name), + x: common_vendor.t((_yb = (_xb = (_wb = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _wb.dataShow) == null ? void 0 : _xb.value) == null ? void 0 : _yb.reporter_phone) + } : {}, { + y: common_vendor.t((_Bb = (_Ab = (_zb = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _zb.dataShow) == null ? void 0 : _Ab.value) == null ? void 0 : _Bb.created_at), + z: ((_Eb = (_Db = (_Cb = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _Cb.dataShow) == null ? void 0 : _Db.value) == null ? void 0 : _Eb.status) === "PendingPayment" && ((_Hb = (_Gb = (_Fb = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _Fb.dataShow) == null ? void 0 : _Gb.value) == null ? void 0 : _Hb.amount) + }, ((_Kb = (_Jb = (_Ib = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _Ib.dataShow) == null ? void 0 : _Jb.value) == null ? void 0 : _Kb.status) === "PendingPayment" && ((_Nb = (_Mb = (_Lb = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _Lb.dataShow) == null ? void 0 : _Mb.value) == null ? void 0 : _Nb.amount) ? { + A: common_vendor.t((_Qb = (_Pb = (_Ob = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _Ob.dataShow) == null ? void 0 : _Pb.value) == null ? void 0 : _Qb.amount) + } : {}, { + B: (_Tb = (_Sb = (_Rb = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _Rb.dataShow) == null ? void 0 : _Sb.value) == null ? void 0 : _Tb.evaluation_score + }, ((_Wb = (_Vb = (_Ub = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _Ub.dataShow) == null ? void 0 : _Vb.value) == null ? void 0 : _Wb.evaluation_score) ? { + C: common_vendor.p({ + valueModel: (_Zb = (_Yb = (_Xb = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _Xb.dataShow) == null ? void 0 : _Yb.value) == null ? void 0 : _Zb.evaluation_score }) - }); + } : {}, { + D: common_vendor.n(`show_card ${((_ac = (_$b = (__b = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : __b.dataShow) == null ? void 0 : _$b.value) == null ? void 0 : _ac.status) === "Pending" ? `card_status_${(_ec = common_vendor.unref(common_libraries_day.getTimeStatus)((_dc = (_cc = (_bc = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _bc.dataShow) == null ? void 0 : _cc.value) == null ? void 0 : _dc.expect_end_time)) == null ? void 0 : _ec.status}` : ""}`), + E: ((_hc = (_gc = (_fc = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _fc.dataShow) == null ? void 0 : _gc.value) == null ? void 0 : _hc.type) === "SecurityInspection" && ((_kc = (_jc = (_ic = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _ic.dataShow) == null ? void 0 : _jc.value) == null ? void 0 : _kc.status) === "Processing" + }, ((_nc = (_mc = (_lc = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _lc.dataShow) == null ? void 0 : _mc.value) == null ? void 0 : _nc.type) === "SecurityInspection" && ((_qc = (_pc = (_oc = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _oc.dataShow) == null ? void 0 : _pc.value) == null ? void 0 : _qc.status) === "Processing" ? { + F: common_vendor.o((_rc = common_vendor.unref(WORKORDER_show_method.method)) == null ? void 0 : _rc.toPageAddLogs), + G: common_vendor.p({ + btnParimaryName: "前往完成" + }) + } : common_vendor.e({ + H: ((_uc = (_tc = (_sc = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _sc.dataShow) == null ? void 0 : _tc.value) == null ? void 0 : _uc.status) === "Processing" || ((_xc = (_wc = (_vc = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _vc.dataShow) == null ? void 0 : _wc.value) == null ? void 0 : _xc.status) === "PendingPayment" + }, ((_Ac = (_zc = (_yc = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _yc.dataShow) == null ? void 0 : _zc.value) == null ? void 0 : _Ac.status) === "Processing" || ((_Dc = (_Cc = (_Bc = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _Bc.dataShow) == null ? void 0 : _Cc.value) == null ? void 0 : _Dc.status) === "PendingPayment" ? { + I: common_vendor.o((_Ec = common_vendor.unref(WORKORDER_show_method.method)) == null ? void 0 : _Ec.toPageAddLogs), + J: common_vendor.o((_Fc = common_vendor.unref(WORKORDER_show_method.method)) == null ? void 0 : _Fc.handleCopyPhone), + K: common_vendor.p({ + btnOtherShow: ((_Ic = (_Hc = (_Gc = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _Gc.dataShow) == null ? void 0 : _Hc.value) == null ? void 0 : _Ic.type) !== "RenovationInspection" && ((_Lc = (_Kc = (_Jc = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _Jc.dataShow) == null ? void 0 : _Kc.value) == null ? void 0 : _Lc.type) !== "RenovationAcceptance", + btnParimaryName: ((_Oc = (_Nc = (_Mc = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _Mc.dataShow) == null ? void 0 : _Nc.value) == null ? void 0 : _Oc.status) === "Processing" ? "更新进度" : ((_Rc = (_Qc = (_Pc = common_vendor.unref(WORKORDER_show_model.useModel)) == null ? void 0 : _Pc.dataShow) == null ? void 0 : _Qc.value) == null ? void 0 : _Rc.status) === "PendingPayment" ? "出示付款二维码" : "", + btnOtherName: "联系提报人" + }) + } : {})); }; } }); diff --git a/dist/dev/mp-weixin/WORKORDER/show/index.json b/dist/dev/mp-weixin/WORKORDER/show/index.json index 1e4ffc3..b39e0ff 100644 --- a/dist/dev/mp-weixin/WORKORDER/show/index.json +++ b/dist/dev/mp-weixin/WORKORDER/show/index.json @@ -4,6 +4,7 @@ "hs-enum-tag": "../../components/hs-enum-tag/hs-enum-tag", "hs-level": "../../components/hs-level/hs-level", "up-icon": "../../node-modules/uview-plus/components/u-icon/u-icon", + "hs-up-rate": "../../components/hs-up-rate/hs-up-rate", "hs-footer": "../../components/hs-footer/hs-footer", "my-process-logs": "./components/ProcessLogs" } diff --git a/dist/dev/mp-weixin/WORKORDER/show/index.wxml b/dist/dev/mp-weixin/WORKORDER/show/index.wxml index b0007e0..15e0e79 100644 --- a/dist/dev/mp-weixin/WORKORDER/show/index.wxml +++ b/dist/dev/mp-weixin/WORKORDER/show/index.wxml @@ -1 +1 @@ -{{h}}{{k}}{{l}} 工单编号 {{o}} 联系电话 {{p}} 提报时间 {{q}} \ No newline at end of file +{{k}}{{n}}{{o}} 工单编号 {{r}} 提报人 {{t}} 客户信息 {{w}} {{x}} 工单创建时间 {{y}} 支付金额 {{A}}元 客户评价: \ No newline at end of file diff --git a/dist/dev/mp-weixin/WORKORDER/show/index.wxss b/dist/dev/mp-weixin/WORKORDER/show/index.wxss index de9ba33..8275547 100644 --- a/dist/dev/mp-weixin/WORKORDER/show/index.wxss +++ b/dist/dev/mp-weixin/WORKORDER/show/index.wxss @@ -37,7 +37,7 @@ page { color: #f97316; background-color: #fff7ed; } -.show_card .card_header_type_status .status_Processing { +.show_card .card_header_type_status .status_Processing, .show_card .card_header_type_status .status_PendingAcceptance { color: #0082fa; background-color: #edf4ff; } @@ -45,6 +45,10 @@ page { color: #22c55e; background-color: #f0fdf4; } +.show_card .card_header_type_status .status_PendingPayment { + color: #cf1322; + background-color: #ffeded; +} .show_card .card_header_type_status .status_Closed { color: #909399; background-color: #f3f3f4; @@ -133,6 +137,12 @@ page { .work_item_cell text { color: #333; } +.work_amount_cell { + color: #cf1322; +} +.work_amount_cell text { + color: #cf1322; +} .show_card_title { font-size: 28rpx; padding: 30rpx 0; diff --git a/dist/dev/mp-weixin/WORKORDER/show/method.js b/dist/dev/mp-weixin/WORKORDER/show/method.js index f99f304..c050b57 100644 --- a/dist/dev/mp-weixin/WORKORDER/show/method.js +++ b/dist/dev/mp-weixin/WORKORDER/show/method.js @@ -1,8 +1,8 @@ "use strict"; const common_vendor = require("../../common/vendor.js"); -const WORKORDER_show_model = require("./model.js"); const common_libraries_apiLoading = require("../../common/libraries/apiLoading.js"); const gen_Apis = require("../../gen/Apis.js"); +const WORKORDER_show_model = require("./model.js"); const method = { getShow(id) { common_libraries_apiLoading.getApiLoading(gen_Apis.Apis.WorkOrder.HouseWorkOrders.Show, { id }).then((res) => { @@ -15,18 +15,59 @@ const method = { }); }, toPageAddLogs() { - var _a, _b, _c, _d, _e, _f, _g, _h, _i; - common_vendor.index.navigateTo({ - url: `/WORKORDER/update/index?id=${(_c = (_b = (_a = WORKORDER_show_model.useModel) == null ? void 0 : _a.dataShow) == null ? void 0 : _b.value) == null ? void 0 : _c.id}&code=${(_f = (_e = (_d = WORKORDER_show_model.useModel) == null ? void 0 : _d.dataShow) == null ? void 0 : _e.value) == null ? void 0 : _f.code}&title=${(_i = (_h = (_g = WORKORDER_show_model.useModel) == null ? void 0 : _g.dataShow) == null ? void 0 : _h.value) == null ? void 0 : _i.title}` - }); - }, - handleCopyPhone(phone) { - if (phone) { - common_vendor.index.makePhoneCall({ - phoneNumber: phone - //仅为示例,并非真实的电话号码 + var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _A, _B, _C, _D, _E, _F, _G, _H, _I, _J, _K, _L, _M, _N, _O, _P, _Q; + if (((_c = (_b = (_a = WORKORDER_show_model.useModel) == null ? void 0 : _a.dataShow) == null ? void 0 : _b.value) == null ? void 0 : _c.type) === "SecurityInspection") { + common_vendor.index.navigateTo({ + url: `/WORKORDER/show_patrol_task_locations/index?id=${(_f = (_e = (_d = WORKORDER_show_model.useModel) == null ? void 0 : _d.dataShow) == null ? void 0 : _e.value) == null ? void 0 : _f.id}` + }); + return; + } + if (((_i = (_h = (_g = WORKORDER_show_model.useModel) == null ? void 0 : _g.dataShow) == null ? void 0 : _h.value) == null ? void 0 : _i.type) === "RenovationInspection" || ((_l = (_k = (_j = WORKORDER_show_model.useModel) == null ? void 0 : _j.dataShow) == null ? void 0 : _k.value) == null ? void 0 : _l.type) === "RenovationAcceptance") { + common_vendor.index.navigateTo({ + url: `/WORKORDER/patrol_update/index?id=${(_o = (_n = (_m = WORKORDER_show_model.useModel) == null ? void 0 : _m.dataShow) == null ? void 0 : _n.value) == null ? void 0 : _o.id}&type=${(_r = (_q = (_p = WORKORDER_show_model.useModel) == null ? void 0 : _p.dataShow) == null ? void 0 : _q.value) == null ? void 0 : _r.type}` + }); + return false; + } + if (((_u = (_t = (_s = WORKORDER_show_model.useModel) == null ? void 0 : _s.dataShow) == null ? void 0 : _t.value) == null ? void 0 : _u.status) === "PendingPayment") { + common_vendor.index.navigateTo({ + url: `/WORKORDER/poster/index?id=${(_x = (_w = (_v = WORKORDER_show_model.useModel) == null ? void 0 : _v.dataShow) == null ? void 0 : _w.value) == null ? void 0 : _x.id}&full_name=${(_B = (_A = (_z = (_y = WORKORDER_show_model.useModel) == null ? void 0 : _y.dataShow) == null ? void 0 : _z.value) == null ? void 0 : _A.asset_house) == null ? void 0 : _B.full_name}&amount=${(_E = (_D = (_C = WORKORDER_show_model.useModel) == null ? void 0 : _C.dataShow) == null ? void 0 : _D.value) == null ? void 0 : _E.amount}` + }); + return; + } + if (((_H = (_G = (_F = WORKORDER_show_model.useModel) == null ? void 0 : _F.dataShow) == null ? void 0 : _G.value) == null ? void 0 : _H.status) === "Processing") { + common_vendor.index.navigateTo({ + url: `/WORKORDER/update/index?id=${(_K = (_J = (_I = WORKORDER_show_model.useModel) == null ? void 0 : _I.dataShow) == null ? void 0 : _J.value) == null ? void 0 : _K.id}&projects_id=${(_N = (_M = (_L = WORKORDER_show_model.useModel) == null ? void 0 : _L.dataShow) == null ? void 0 : _M.value) == null ? void 0 : _N.asset_projects_id}&location=${(_Q = (_P = (_O = WORKORDER_show_model.useModel) == null ? void 0 : _O.dataShow) == null ? void 0 : _P.value) == null ? void 0 : _Q.location}` }); } + }, + handlePreviewImage(idx) { + var _a, _b, _c, _d; + let urlList = ((_d = (_c = (_b = (_a = WORKORDER_show_model.useModel) == null ? void 0 : _a.dataShow) == null ? void 0 : _b.value) == null ? void 0 : _c.attachments) == null ? void 0 : _d.map((item) => item == null ? void 0 : item.url)) || []; + common_vendor.index.previewImage({ + urls: urlList, + current: idx + }); + }, + handlePendingPaymentQrCode(e) { + }, + handleCopyPhone() { + var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l; + if ((_c = (_b = (_a = WORKORDER_show_model.useModel) == null ? void 0 : _a.dataShow) == null ? void 0 : _b.value) == null ? void 0 : _c.contact_phone) { + common_vendor.index.makePhoneCall({ + phoneNumber: (_f = (_e = (_d = WORKORDER_show_model.useModel) == null ? void 0 : _d.dataShow) == null ? void 0 : _e.value) == null ? void 0 : _f.contact_phone + }); + return; + } + if ((_i = (_h = (_g = WORKORDER_show_model.useModel) == null ? void 0 : _g.dataShow) == null ? void 0 : _h.value) == null ? void 0 : _i.reporter_phone) { + common_vendor.index.makePhoneCall({ + phoneNumber: (_l = (_k = (_j = WORKORDER_show_model.useModel) == null ? void 0 : _j.dataShow) == null ? void 0 : _k.value) == null ? void 0 : _l.reporter_phone + }); + return; + } + common_vendor.index.showToast({ + title: "暂无电话号码", + icon: "none" + }); } }; exports.method = method; diff --git a/dist/dev/mp-weixin/WORKORDER/show_log/components/ProcessLogs.js b/dist/dev/mp-weixin/WORKORDER/show_log/components/ProcessLogs.js new file mode 100644 index 0000000..5f3d654 --- /dev/null +++ b/dist/dev/mp-weixin/WORKORDER/show_log/components/ProcessLogs.js @@ -0,0 +1,56 @@ +"use strict"; +const common_vendor = require("../../../common/vendor.js"); +const gen_Enums = require("../../../gen/Enums.js"); +const WORKORDER_show_log_model = require("../model.js"); +if (!Array) { + const _easycom_hs_empty2 = common_vendor.resolveComponent("hs-empty"); + const _easycom_hs_enum_tag2 = common_vendor.resolveComponent("hs-enum-tag"); + const _easycom_up_steps_item2 = common_vendor.resolveComponent("up-steps-item"); + const _easycom_up_steps2 = common_vendor.resolveComponent("up-steps"); + (_easycom_hs_empty2 + _easycom_hs_enum_tag2 + _easycom_up_steps_item2 + _easycom_up_steps2)(); +} +const _easycom_hs_empty = () => "../../../components/hs-empty/hs-empty.js"; +const _easycom_hs_enum_tag = () => "../../../components/hs-enum-tag/hs-enum-tag.js"; +const _easycom_up_steps_item = () => "../../../node-modules/uview-plus/components/u-steps-item/u-steps-item.js"; +const _easycom_up_steps = () => "../../../node-modules/uview-plus/components/u-steps/u-steps.js"; +if (!Math) { + (_easycom_hs_empty + _easycom_hs_enum_tag + _easycom_up_steps_item + _easycom_up_steps)(); +} +const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({ + __name: "ProcessLogs", + setup(__props) { + return (_ctx, _cache) => { + var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k; + return common_vendor.e({ + a: !((_c = (_b = (_a = common_vendor.unref(WORKORDER_show_log_model.useModel)) == null ? void 0 : _a.logsData) == null ? void 0 : _b.value) == null ? void 0 : _c.length) + }, !((_f = (_e = (_d = common_vendor.unref(WORKORDER_show_log_model.useModel)) == null ? void 0 : _d.logsData) == null ? void 0 : _e.value) == null ? void 0 : _f.length) ? {} : {}, { + b: common_vendor.f((_h = (_g = common_vendor.unref(WORKORDER_show_log_model.useModel)) == null ? void 0 : _g.logsData) == null ? void 0 : _h.value, (i, index, i0) => { + return { + a: "b1c8346e-3-" + i0 + "," + ("b1c8346e-2-" + i0), + b: common_vendor.p({ + value: i == null ? void 0 : i.status, + Enums: common_vendor.unref(gen_Enums.HouseWorkOrdersStatusEnum) + }), + c: common_vendor.t(i == null ? void 0 : i.description), + d: common_vendor.f(i == null ? void 0 : i.attachments, (k, index2, i1) => { + return { + a: k == null ? void 0 : k.url, + b: `attachment_${index2}` + }; + }), + e: common_vendor.t(i == null ? void 0 : i.created_at), + f: `log_item_${index}`, + g: "b1c8346e-2-" + i0 + ",b1c8346e-1" + }; + }), + c: common_vendor.p({ + direction: "column", + dot: true, + current: ((_k = (_j = (_i = common_vendor.unref(WORKORDER_show_log_model.useModel)) == null ? void 0 : _i.logsData) == null ? void 0 : _j.value) == null ? void 0 : _k.length) - 1 + }) + }); + }; + } +}); +const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-b1c8346e"], ["__file", "/Users/zsq/Sources/github/2025property-pay/pay-employee/src/WORKORDER/show_log/components/ProcessLogs.vue"]]); +wx.createComponent(Component); diff --git a/dist/dev/mp-weixin/WORKORDER/show_log/components/ProcessLogs.json b/dist/dev/mp-weixin/WORKORDER/show_log/components/ProcessLogs.json new file mode 100644 index 0000000..98e603e --- /dev/null +++ b/dist/dev/mp-weixin/WORKORDER/show_log/components/ProcessLogs.json @@ -0,0 +1,9 @@ +{ + "component": true, + "usingComponents": { + "hs-empty": "../../../components/hs-empty/hs-empty", + "hs-enum-tag": "../../../components/hs-enum-tag/hs-enum-tag", + "up-steps-item": "../../../node-modules/uview-plus/components/u-steps-item/u-steps-item", + "up-steps": "../../../node-modules/uview-plus/components/u-steps/u-steps" + } +} \ No newline at end of file diff --git a/dist/dev/mp-weixin/WORKORDER/show_log/components/ProcessLogs.wxml b/dist/dev/mp-weixin/WORKORDER/show_log/components/ProcessLogs.wxml new file mode 100644 index 0000000..7f8722b --- /dev/null +++ b/dist/dev/mp-weixin/WORKORDER/show_log/components/ProcessLogs.wxml @@ -0,0 +1 @@ + 处理日志 工单进度:{{i.c}}{{i.e}} \ No newline at end of file diff --git a/dist/dev/mp-weixin/WORKORDER/show_log/components/ProcessLogs.wxss b/dist/dev/mp-weixin/WORKORDER/show_log/components/ProcessLogs.wxss new file mode 100644 index 0000000..4427aae --- /dev/null +++ b/dist/dev/mp-weixin/WORKORDER/show_log/components/ProcessLogs.wxss @@ -0,0 +1,34 @@ +.desc_title.data-v-b1c8346e { + color: #333333; + font-size: 28rpx; + display: flex; + align-items: center; + justify-content: space-between; +} +.desc_content.data-v-b1c8346e { + color: #666; + font-size: 28rpx; + padding: 10rpx 0 0 0; +} +.attachments.data-v-b1c8346e { + display: flex; + align-items: center; + flex-wrap: wrap; + padding: 20rpx 0 0 0; +} +.attachments .attachment_item.data-v-b1c8346e { + width: 140rpx; + height: 140rpx; + overflow: hidden; + border-radius: 15rpx; +} +.attachments image.data-v-b1c8346e { + width: 140rpx; + height: 140rpx; + border-radius: 15rpx; +} +.created_at.data-v-b1c8346e { + padding: 10rpx 0 30rpx 0; + color: #999; + font-size: 24rpx; +} \ No newline at end of file diff --git a/dist/dev/mp-weixin/WORKORDER/show_log/index.js b/dist/dev/mp-weixin/WORKORDER/show_log/index.js new file mode 100644 index 0000000..7420c8a --- /dev/null +++ b/dist/dev/mp-weixin/WORKORDER/show_log/index.js @@ -0,0 +1,132 @@ +"use strict"; +const common_vendor = require("../../common/vendor.js"); +const common_libraries_day = require("../../common/libraries/day.js"); +const WORKORDER_show_log_method = require("./method.js"); +const WORKORDER_show_log_model = require("./model.js"); +const gen_Enums = require("../../gen/Enums.js"); +require("../../common/libraries/apiLoading.js"); +require("../../gen/Apis.js"); +require("../../common/libraries/request.js"); +require("../../common/store/useWeAppAuthStore.js"); +require("../../common/store/useWatermarkStore.js"); +require("../../common/store/useWorkStore.js"); +if (!Array) { + const _easycom_hs_enum_tag2 = common_vendor.resolveComponent("hs-enum-tag"); + const _easycom_hs_level2 = common_vendor.resolveComponent("hs-level"); + const _easycom_up_icon2 = common_vendor.resolveComponent("up-icon"); + const _easycom_hs_up_rate2 = common_vendor.resolveComponent("hs-up-rate"); + const _easycom_hs_footer2 = common_vendor.resolveComponent("hs-footer"); + (_easycom_hs_enum_tag2 + _easycom_hs_level2 + _easycom_up_icon2 + _easycom_hs_up_rate2 + _easycom_hs_footer2)(); +} +const _easycom_hs_enum_tag = () => "../../components/hs-enum-tag/hs-enum-tag.js"; +const _easycom_hs_level = () => "../../components/hs-level/hs-level.js"; +const _easycom_up_icon = () => "../../node-modules/uview-plus/components/u-icon/u-icon.js"; +const _easycom_hs_up_rate = () => "../../components/hs-up-rate/hs-up-rate.js"; +const _easycom_hs_footer = () => "../../components/hs-footer/hs-footer.js"; +if (!Math) { + (_easycom_hs_enum_tag + _easycom_hs_level + _easycom_up_icon + _easycom_hs_up_rate + MyProcessLogs + _easycom_hs_footer)(); +} +const MyProcessLogs = () => "./components/ProcessLogs.js"; +const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({ + __name: "index", + setup(__props) { + common_vendor.onLoad((e) => { + var _a, _b; + WORKORDER_show_log_model.useModel.dataShow.value = {}; + (_a = WORKORDER_show_log_method.method) == null ? void 0 : _a.getShow(e == null ? void 0 : e.id); + (_b = WORKORDER_show_log_method.method) == null ? void 0 : _b.getHouseWorkLogs(e == null ? void 0 : e.id); + }); + common_vendor.onShow(() => { + var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k; + if ((_c = (_b = (_a = WORKORDER_show_log_model.useModel) == null ? void 0 : _a.dataShow) == null ? void 0 : _b.value) == null ? void 0 : _c.id) { + (_g = WORKORDER_show_log_method.method) == null ? void 0 : _g.getShow((_f = (_e = (_d = WORKORDER_show_log_model.useModel) == null ? void 0 : _d.dataShow) == null ? void 0 : _e.value) == null ? void 0 : _f.id); + (_k = WORKORDER_show_log_method.method) == null ? void 0 : _k.getHouseWorkLogs((_j = (_i = (_h = WORKORDER_show_log_model.useModel) == null ? void 0 : _h.dataShow) == null ? void 0 : _i.value) == null ? void 0 : _j.id); + } + }); + common_vendor.onUnload(() => { + WORKORDER_show_log_model.useModel.logsData.value = []; + }); + return (_ctx, _cache) => { + var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _A, _B, _C, _D, _E, _F, _G, _H, _I, _J, _K, _L, _M, _N, _O, _P, _Q, _R, _S, _T, _U, _V, _W, _X, _Y, _Z, __, _$, _aa, _ba, _ca, _da, _ea, _fa, _ga, _ha, _ia, _ja, _ka, _la, _ma, _na, _oa, _pa, _qa, _ra, _sa, _ta, _ua, _va, _wa, _xa, _ya, _za, _Aa, _Ba, _Ca, _Da, _Ea, _Fa, _Ga, _Ha, _Ia, _Ja, _Ka, _La, _Ma, _Na, _Oa, _Pa, _Qa, _Ra, _Sa, _Ta, _Ua, _Va, _Wa, _Xa, _Ya, _Za, __a, _$a, _ab, _bb, _cb, _db, _eb, _fb, _gb, _hb, _ib, _jb, _kb, _lb, _mb, _nb, _ob, _pb, _qb, _rb, _sb, _tb, _ub, _vb, _wb, _xb, _yb, _zb, _Ab, _Bb, _Cb, _Db, _Eb, _Fb, _Gb, _Hb, _Ib, _Jb, _Kb, _Lb, _Mb, _Nb, _Ob, _Pb, _Qb; + return common_vendor.e({ + a: common_vendor.p({ + value: (_c = (_b = (_a = common_vendor.unref(WORKORDER_show_log_model.useModel)) == null ? void 0 : _a.dataShow) == null ? void 0 : _b.value) == null ? void 0 : _c.type, + Enums: common_vendor.unref(gen_Enums.HouseWorkOrdersTypeEnum) + }), + b: (_f = (_e = (_d = common_vendor.unref(WORKORDER_show_log_model.useModel)) == null ? void 0 : _d.dataShow) == null ? void 0 : _e.value) == null ? void 0 : _f.location + }, ((_i = (_h = (_g = common_vendor.unref(WORKORDER_show_log_model.useModel)) == null ? void 0 : _g.dataShow) == null ? void 0 : _h.value) == null ? void 0 : _i.location) ? { + c: common_vendor.p({ + value: (_l = (_k = (_j = common_vendor.unref(WORKORDER_show_log_model.useModel)) == null ? void 0 : _j.dataShow) == null ? void 0 : _k.value) == null ? void 0 : _l.location, + Enums: common_vendor.unref(gen_Enums.HouseWorkOrdersLocationEnum) + }) + } : {}, { + d: common_vendor.p({ + level: (_o = (_n = (_m = common_vendor.unref(WORKORDER_show_log_model.useModel)) == null ? void 0 : _m.dataShow) == null ? void 0 : _n.value) == null ? void 0 : _o.level + }), + e: common_vendor.p({ + value: (_r = (_q = (_p = common_vendor.unref(WORKORDER_show_log_model.useModel)) == null ? void 0 : _p.dataShow) == null ? void 0 : _q.value) == null ? void 0 : _r.status, + Enums: common_vendor.unref(gen_Enums.HouseWorkOrdersStatusEnum) + }), + f: common_vendor.n(`btn_status status_${(_u = (_t = (_s = common_vendor.unref(WORKORDER_show_log_model.useModel)) == null ? void 0 : _s.dataShow) == null ? void 0 : _t.value) == null ? void 0 : _u.status}`), + g: ((_x = (_w = (_v = common_vendor.unref(WORKORDER_show_log_model.useModel)) == null ? void 0 : _v.dataShow) == null ? void 0 : _w.value) == null ? void 0 : _x.status) === "Pending" && ((_A = (_z = (_y = common_vendor.unref(WORKORDER_show_log_model.useModel)) == null ? void 0 : _y.dataShow) == null ? void 0 : _z.value) == null ? void 0 : _A.location) === "MyHome" + }, ((_D = (_C = (_B = common_vendor.unref(WORKORDER_show_log_model.useModel)) == null ? void 0 : _B.dataShow) == null ? void 0 : _C.value) == null ? void 0 : _D.status) === "Pending" && ((_G = (_F = (_E = common_vendor.unref(WORKORDER_show_log_model.useModel)) == null ? void 0 : _E.dataShow) == null ? void 0 : _F.value) == null ? void 0 : _G.location) === "MyHome" ? { + h: common_vendor.p({ + name: "clock", + color: ((_K = common_vendor.unref(common_libraries_day.getTimeStatus)((_J = (_I = (_H = common_vendor.unref(WORKORDER_show_log_model.useModel)) == null ? void 0 : _H.dataShow) == null ? void 0 : _I.value) == null ? void 0 : _J.expect_end_time)) == null ? void 0 : _K.color) || "#000", + size: "14" + }), + i: common_vendor.t((_O = common_vendor.unref(common_libraries_day.getTimeStatus)((_N = (_M = (_L = common_vendor.unref(WORKORDER_show_log_model.useModel)) == null ? void 0 : _L.dataShow) == null ? void 0 : _M.value) == null ? void 0 : _N.expect_end_time)) == null ? void 0 : _O.label), + j: common_vendor.n(`time_status status_${(_S = common_vendor.unref(common_libraries_day.getTimeStatus)((_R = (_Q = (_P = common_vendor.unref(WORKORDER_show_log_model.useModel)) == null ? void 0 : _P.dataShow) == null ? void 0 : _Q.value) == null ? void 0 : _R.expect_end_time)) == null ? void 0 : _S.status}`) + } : {}, { + k: ((_V = (_U = (_T = common_vendor.unref(WORKORDER_show_log_model.useModel)) == null ? void 0 : _T.dataShow) == null ? void 0 : _U.value) == null ? void 0 : _V.type) === "Repair" || ((_Y = (_X = (_W = common_vendor.unref(WORKORDER_show_log_model.useModel)) == null ? void 0 : _W.dataShow) == null ? void 0 : _X.value) == null ? void 0 : _Y.type) === "Incident" + }, ((_$ = (__ = (_Z = common_vendor.unref(WORKORDER_show_log_model.useModel)) == null ? void 0 : _Z.dataShow) == null ? void 0 : __.value) == null ? void 0 : _$.type) === "Repair" || ((_ca = (_ba = (_aa = common_vendor.unref(WORKORDER_show_log_model.useModel)) == null ? void 0 : _aa.dataShow) == null ? void 0 : _ba.value) == null ? void 0 : _ca.type) === "Incident" ? { + l: common_vendor.t(((_ga = (_fa = (_ea = (_da = common_vendor.unref(WORKORDER_show_log_model.useModel)) == null ? void 0 : _da.dataShow) == null ? void 0 : _ea.value) == null ? void 0 : _fa.asset_house) == null ? void 0 : _ga.full_name) || ((_ka = (_ja = (_ia = (_ha = common_vendor.unref(WORKORDER_show_log_model.useModel)) == null ? void 0 : _ha.dataShow) == null ? void 0 : _ia.value) == null ? void 0 : _ja.asset_project) == null ? void 0 : _ka.name)), + m: common_vendor.t((_na = (_ma = (_la = common_vendor.unref(WORKORDER_show_log_model.useModel)) == null ? void 0 : _la.dataShow) == null ? void 0 : _ma.value) == null ? void 0 : _na.title) + } : {}, { + n: common_vendor.t((_qa = (_pa = (_oa = common_vendor.unref(WORKORDER_show_log_model.useModel)) == null ? void 0 : _oa.dataShow) == null ? void 0 : _pa.value) == null ? void 0 : _qa.content), + o: common_vendor.f((_ta = (_sa = (_ra = common_vendor.unref(WORKORDER_show_log_model.useModel)) == null ? void 0 : _ra.dataShow) == null ? void 0 : _sa.value) == null ? void 0 : _ta.attachments, (k, idx, i0) => { + return { + a: k == null ? void 0 : k.url, + b: `img_${idx}` + }; + }), + p: common_vendor.t((_wa = (_va = (_ua = common_vendor.unref(WORKORDER_show_log_model.useModel)) == null ? void 0 : _ua.dataShow) == null ? void 0 : _va.value) == null ? void 0 : _wa.code), + q: common_vendor.t(((_Aa = (_za = (_ya = (_xa = common_vendor.unref(WORKORDER_show_log_model.useModel)) == null ? void 0 : _xa.dataShow) == null ? void 0 : _ya.value) == null ? void 0 : _za.customer) == null ? void 0 : _Aa.name) || ((_Ea = (_Da = (_Ca = (_Ba = common_vendor.unref(WORKORDER_show_log_model.useModel)) == null ? void 0 : _Ba.dataShow) == null ? void 0 : _Ca.value) == null ? void 0 : _Da.company_employee) == null ? void 0 : _Ea.name)), + r: (_Ha = (_Ga = (_Fa = common_vendor.unref(WORKORDER_show_log_model.useModel)) == null ? void 0 : _Fa.dataShow) == null ? void 0 : _Ga.value) == null ? void 0 : _Ha.reporter_name + }, ((_Ka = (_Ja = (_Ia = common_vendor.unref(WORKORDER_show_log_model.useModel)) == null ? void 0 : _Ia.dataShow) == null ? void 0 : _Ja.value) == null ? void 0 : _Ka.reporter_name) ? { + s: common_vendor.t((_Na = (_Ma = (_La = common_vendor.unref(WORKORDER_show_log_model.useModel)) == null ? void 0 : _La.dataShow) == null ? void 0 : _Ma.value) == null ? void 0 : _Na.reporter_name), + t: common_vendor.t((_Qa = (_Pa = (_Oa = common_vendor.unref(WORKORDER_show_log_model.useModel)) == null ? void 0 : _Oa.dataShow) == null ? void 0 : _Pa.value) == null ? void 0 : _Qa.reporter_phone) + } : {}, { + v: common_vendor.t((_Ta = (_Sa = (_Ra = common_vendor.unref(WORKORDER_show_log_model.useModel)) == null ? void 0 : _Ra.dataShow) == null ? void 0 : _Sa.value) == null ? void 0 : _Ta.created_at), + w: ((_Wa = (_Va = (_Ua = common_vendor.unref(WORKORDER_show_log_model.useModel)) == null ? void 0 : _Ua.dataShow) == null ? void 0 : _Va.value) == null ? void 0 : _Wa.status) === "PendingPayment" && ((_Za = (_Ya = (_Xa = common_vendor.unref(WORKORDER_show_log_model.useModel)) == null ? void 0 : _Xa.dataShow) == null ? void 0 : _Ya.value) == null ? void 0 : _Za.amount) + }, ((_ab = (_$a = (__a = common_vendor.unref(WORKORDER_show_log_model.useModel)) == null ? void 0 : __a.dataShow) == null ? void 0 : _$a.value) == null ? void 0 : _ab.status) === "PendingPayment" && ((_db = (_cb = (_bb = common_vendor.unref(WORKORDER_show_log_model.useModel)) == null ? void 0 : _bb.dataShow) == null ? void 0 : _cb.value) == null ? void 0 : _db.amount) ? { + x: common_vendor.t((_gb = (_fb = (_eb = common_vendor.unref(WORKORDER_show_log_model.useModel)) == null ? void 0 : _eb.dataShow) == null ? void 0 : _fb.value) == null ? void 0 : _gb.amount) + } : {}, { + y: (_jb = (_ib = (_hb = common_vendor.unref(WORKORDER_show_log_model.useModel)) == null ? void 0 : _hb.dataShow) == null ? void 0 : _ib.value) == null ? void 0 : _jb.evaluation_score + }, ((_mb = (_lb = (_kb = common_vendor.unref(WORKORDER_show_log_model.useModel)) == null ? void 0 : _kb.dataShow) == null ? void 0 : _lb.value) == null ? void 0 : _mb.evaluation_score) ? { + z: common_vendor.p({ + valueModel: (_pb = (_ob = (_nb = common_vendor.unref(WORKORDER_show_log_model.useModel)) == null ? void 0 : _nb.dataShow) == null ? void 0 : _ob.value) == null ? void 0 : _pb.evaluation_score + }) + } : {}, { + A: common_vendor.n(`show_card ${((_sb = (_rb = (_qb = common_vendor.unref(WORKORDER_show_log_model.useModel)) == null ? void 0 : _qb.dataShow) == null ? void 0 : _rb.value) == null ? void 0 : _sb.status) === "Pending" ? `card_status_${(_wb = common_vendor.unref(common_libraries_day.getTimeStatus)((_vb = (_ub = (_tb = common_vendor.unref(WORKORDER_show_log_model.useModel)) == null ? void 0 : _tb.dataShow) == null ? void 0 : _ub.value) == null ? void 0 : _vb.expect_end_time)) == null ? void 0 : _wb.status}` : ""}`), + B: ((_zb = (_yb = (_xb = common_vendor.unref(WORKORDER_show_log_model.useModel)) == null ? void 0 : _xb.dataShow) == null ? void 0 : _yb.value) == null ? void 0 : _zb.location) !== "MyHome" + }, ((_Cb = (_Bb = (_Ab = common_vendor.unref(WORKORDER_show_log_model.useModel)) == null ? void 0 : _Ab.dataShow) == null ? void 0 : _Bb.value) == null ? void 0 : _Cb.location) !== "MyHome" ? common_vendor.e({ + C: ((_Fb = (_Eb = (_Db = common_vendor.unref(WORKORDER_show_log_model.useModel)) == null ? void 0 : _Db.dataShow) == null ? void 0 : _Eb.value) == null ? void 0 : _Fb.status) === "Pending" + }, ((_Ib = (_Hb = (_Gb = common_vendor.unref(WORKORDER_show_log_model.useModel)) == null ? void 0 : _Gb.dataShow) == null ? void 0 : _Hb.value) == null ? void 0 : _Ib.status) === "Pending" ? { + D: common_vendor.o((_Jb = common_vendor.unref(WORKORDER_show_log_method.method)) == null ? void 0 : _Jb.handleClosed), + E: common_vendor.p({ + btnParimaryName: "关闭工单" + }) + } : {}, { + F: ((_Mb = (_Lb = (_Kb = common_vendor.unref(WORKORDER_show_log_model.useModel)) == null ? void 0 : _Kb.dataShow) == null ? void 0 : _Lb.value) == null ? void 0 : _Mb.status) === "PendingAcceptance" + }, ((_Pb = (_Ob = (_Nb = common_vendor.unref(WORKORDER_show_log_model.useModel)) == null ? void 0 : _Nb.dataShow) == null ? void 0 : _Ob.value) == null ? void 0 : _Pb.status) === "PendingAcceptance" ? { + G: common_vendor.o((_Qb = common_vendor.unref(WORKORDER_show_log_method.method)) == null ? void 0 : _Qb.toPageAddLogs), + H: common_vendor.p({ + btnParimaryName: "验收工单" + }) + } : {}) : {}); + }; + } +}); +const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__file", "/Users/zsq/Sources/github/2025property-pay/pay-employee/src/WORKORDER/show_log/index.vue"]]); +wx.createPage(MiniProgramPage); diff --git a/dist/dev/mp-weixin/WORKORDER/show_log/index.json b/dist/dev/mp-weixin/WORKORDER/show_log/index.json new file mode 100644 index 0000000..a6591a3 --- /dev/null +++ b/dist/dev/mp-weixin/WORKORDER/show_log/index.json @@ -0,0 +1,11 @@ +{ + "navigationBarTitleText": "提报工单详情", + "usingComponents": { + "hs-enum-tag": "../../components/hs-enum-tag/hs-enum-tag", + "hs-level": "../../components/hs-level/hs-level", + "up-icon": "../../node-modules/uview-plus/components/u-icon/u-icon", + "hs-up-rate": "../../components/hs-up-rate/hs-up-rate", + "hs-footer": "../../components/hs-footer/hs-footer", + "my-process-logs": "./components/ProcessLogs" + } +} \ No newline at end of file diff --git a/dist/dev/mp-weixin/WORKORDER/show_log/index.wxml b/dist/dev/mp-weixin/WORKORDER/show_log/index.wxml new file mode 100644 index 0000000..0be502a --- /dev/null +++ b/dist/dev/mp-weixin/WORKORDER/show_log/index.wxml @@ -0,0 +1 @@ +{{i}}{{l}}{{m}} 工单编号 {{p}} 提报人 {{q}} 客户信息 {{s}} {{t}} 工单创建时间 {{v}} 支付金额 {{x}}元 客户评价: \ No newline at end of file diff --git a/dist/dev/mp-weixin/WORKORDER/show_log/index.wxss b/dist/dev/mp-weixin/WORKORDER/show_log/index.wxss new file mode 100644 index 0000000..8275547 --- /dev/null +++ b/dist/dev/mp-weixin/WORKORDER/show_log/index.wxss @@ -0,0 +1,153 @@ +page { + background-color: #f8f8f8; +} +.work_page { + padding-bottom: calc(150rpx + constant(safe-area-inset-bottom)); + padding-bottom: calc(150rpx + env(safe-area-inset-bottom)); +} +.show_card { + margin: 30rpx; + background-color: #fff; + border-radius: 16rpx; + padding: 0 30rpx; +} +.show_card .card_header_type_status { + display: flex; + align-items: center; + justify-content: space-between; + padding: 25rpx 0; +} +.show_card .card_header_type_status .group_type_btn { + display: flex; + align-items: center; +} +.show_card .card_header_type_status .btn_type { + border: 1rpx solid #eee; + font-size: 28rpx; + padding: 7rpx 19rpx; + border-radius: 100rpx; + margin-right: 20rpx; +} +.show_card .card_header_type_status .btn_status { + border-radius: 100rpx; + font-size: 28rpx; + padding: 7rpx 19rpx; +} +.show_card .card_header_type_status .status_Pending { + color: #f97316; + background-color: #fff7ed; +} +.show_card .card_header_type_status .status_Processing, .show_card .card_header_type_status .status_PendingAcceptance { + color: #0082fa; + background-color: #edf4ff; +} +.show_card .card_header_type_status .status_Completed { + color: #22c55e; + background-color: #f0fdf4; +} +.show_card .card_header_type_status .status_PendingPayment { + color: #cf1322; + background-color: #ffeded; +} +.show_card .card_header_type_status .status_Closed { + color: #909399; + background-color: #f3f3f4; +} +.show_card .time_status { + color: #666666; + font-size: 28rpx; + padding: 12rpx 20rpx; + border-radius: 10rpx; + display: flex; + align-items: center; + margin: 0 0 25rpx 0; +} +.show_card .status_1 { + color: #24bc21; + background: linear-gradient(90deg, #edffed 0%, rgba(232, 255, 231, 0) 103%); +} +.show_card .status_2 { + color: #0082fa; + background: linear-gradient(90deg, #eff7ff 0%, rgba(231, 241, 255, 0) 103%); +} +.show_card .status_3 { + color: #f97316; + background: linear-gradient(90deg, #fff4ef 0%, rgba(255, 237, 231, 0) 103%); +} +.show_card .status_4 { + color: #ea0000; + background: linear-gradient(90deg, #ffe5e5 0%, rgba(255, 255, 255, 0) 103%); +} +.show_card .card_header_huse_info { + display: flex; + align-items: center; + font-size: 28rpx; +} +.show_card .card_header_huse_info text { + display: inline-block; + height: 28rpx; + line-height: 28rpx; +} +.show_card .card_header_huse_info text:last-child { + margin-left: 15rpx; + border-left: 1rpx solid #eee; + padding-left: 15rpx; +} +.show_card .card_header_content_info { + font-size: 30rpx; + color: #444; + padding: 15rpx 0 0 0; +} +.show_card .card_header_imgs { + display: flex; + align-items: center; + flex-wrap: wrap; + padding-bottom: 30rpx; +} +.show_card .card_header_imgs .item { + width: 140rpx; + height: 140rpx; + border-radius: 10rpx; + background-color: #f8f8f8; + margin-top: 25rpx; + margin-right: 25rpx; + overflow: hidden; +} +.show_card .card_header_imgs .item:nth-child(4n) { + margin-right: 0; +} +.show_card .card_header_imgs .item image { + width: 100%; + height: 100%; +} +.show_card .show_card_footer { + border-top: 1rpx solid #eee; +} +.work_item_cell { + display: flex; + align-items: center; + justify-content: space-between; + font-size: 30rpx; + color: #666; + padding-top: 25rpx; +} +.work_item_cell:last-child { + padding-bottom: 25rpx; +} +.work_item_cell text { + color: #333; +} +.work_amount_cell { + color: #cf1322; +} +.work_amount_cell text { + color: #cf1322; +} +.show_card_title { + font-size: 28rpx; + padding: 30rpx 0; + font-weight: 500; +} +.card_status_4 { + border-top: 6px solid #ef4444; +} \ No newline at end of file diff --git a/dist/dev/mp-weixin/WORKORDER/show_log/method.js b/dist/dev/mp-weixin/WORKORDER/show_log/method.js new file mode 100644 index 0000000..15cb570 --- /dev/null +++ b/dist/dev/mp-weixin/WORKORDER/show_log/method.js @@ -0,0 +1,77 @@ +"use strict"; +const common_vendor = require("../../common/vendor.js"); +const common_libraries_apiLoading = require("../../common/libraries/apiLoading.js"); +const common_libraries_day = require("../../common/libraries/day.js"); +const gen_Apis = require("../../gen/Apis.js"); +const WORKORDER_show_log_model = require("./model.js"); +const getShow = (id) => { + common_libraries_apiLoading.getApiLoading(gen_Apis.Apis.WorkOrder.HouseWorkOrders.Show, { id }).then((res) => { + WORKORDER_show_log_model.useModel.dataShow.value = res == null ? void 0 : res.data; + }); +}; +const getHouseWorkLogs = (id) => { + common_libraries_apiLoading.getApiLoading(gen_Apis.Apis.WorkOrder.HouseWorkLogs.List, { house_work_orders_id: id }).then((res) => { + WORKORDER_show_log_model.useModel.logsData.value = res == null ? void 0 : res.data; + }); +}; +const method = { + getShow, + getHouseWorkLogs, + toPageAddLogs() { + var _a, _b, _c, _d, _e, _f; + if (((_c = (_b = (_a = WORKORDER_show_log_model.useModel) == null ? void 0 : _a.dataShow) == null ? void 0 : _b.value) == null ? void 0 : _c.status) === "PendingAcceptance") { + common_vendor.index.navigateTo({ + url: `/WORKORDER/acceptance/index?id=${(_f = (_e = (_d = WORKORDER_show_log_model.useModel) == null ? void 0 : _d.dataShow) == null ? void 0 : _e.value) == null ? void 0 : _f.id}` + }); + } + }, + handleClosed() { + var _a, _b, _c, _d, _e, _f; + if (((_c = (_b = (_a = WORKORDER_show_log_model.useModel) == null ? void 0 : _a.dataShow) == null ? void 0 : _b.value) == null ? void 0 : _c.expect_start_time) && common_libraries_day.specificTime((_f = (_e = (_d = WORKORDER_show_log_model.useModel) == null ? void 0 : _d.dataShow) == null ? void 0 : _e.value) == null ? void 0 : _f.expect_start_time)) { + common_vendor.index.showModal({ + title: "提示", + content: "距离工单开始时间小于2小时,无法关闭工单!若需取消,请联系处理人员操作。", + cancelText: "点错了", + success: function(res) { + if (res.confirm) { + console.log("用户点击确定"); + } else if (res.cancel) { + console.log("用户点击取消"); + } + } + }); + return false; + } + common_vendor.index.showModal({ + title: "提示", + content: "关闭工单后无法继续操作,如需继续需要重新提交,您是否确认关闭", + cancelText: "点错了", + success: function(res) { + var _a2, _b2, _c2; + if (res.confirm) { + common_libraries_apiLoading.getApiLoading(gen_Apis.Apis.WorkOrder.HouseWorkOrders.Close, { + id: (_c2 = (_b2 = (_a2 = WORKORDER_show_log_model.useModel) == null ? void 0 : _a2.dataShow) == null ? void 0 : _b2.value) == null ? void 0 : _c2.id + }).then((res2) => { + var _a3, _b3, _c3, _d2, _e2, _f2; + getShow((_c3 = (_b3 = (_a3 = WORKORDER_show_log_model.useModel) == null ? void 0 : _a3.dataShow) == null ? void 0 : _b3.value) == null ? void 0 : _c3.id); + getHouseWorkLogs((_f2 = (_e2 = (_d2 = WORKORDER_show_log_model.useModel) == null ? void 0 : _d2.dataShow) == null ? void 0 : _e2.value) == null ? void 0 : _f2.id); + }); + console.log("用户点击确定"); + } else if (res.cancel) { + console.log("用户点击取消"); + } + } + }); + }, + handlePendingPaymentQrCode(e) { + }, + handleCopyPhone(phone) { + if (phone) { + common_vendor.index.makePhoneCall({ + phoneNumber: phone + //仅为示例,并非真实的电话号码 + }); + } + } +}; +exports.method = method; diff --git a/dist/dev/mp-weixin/WORKORDER/show_log/model.js b/dist/dev/mp-weixin/WORKORDER/show_log/model.js new file mode 100644 index 0000000..202cdbd --- /dev/null +++ b/dist/dev/mp-weixin/WORKORDER/show_log/model.js @@ -0,0 +1,7 @@ +"use strict"; +const common_vendor = require("../../common/vendor.js"); +const useModel = { + dataShow: common_vendor.ref({}), + logsData: common_vendor.ref([]) +}; +exports.useModel = useModel; diff --git a/dist/dev/mp-weixin/WORKORDER/update/index.js b/dist/dev/mp-weixin/WORKORDER/update/index.js index 7b12aa9..c0810ae 100644 --- a/dist/dev/mp-weixin/WORKORDER/update/index.js +++ b/dist/dev/mp-weixin/WORKORDER/update/index.js @@ -2,10 +2,10 @@ const common_vendor = require("../../common/vendor.js"); const WORKORDER_update_method = require("./method.js"); const WORKORDER_update_model = require("./model.js"); -const gen_Enums = require("../../gen/Enums.js"); require("../../common/libraries/request.js"); require("../../common/store/useWeAppAuthStore.js"); require("../../gen/Apis.js"); +require("../../common/store/useWatermarkStore.js"); require("../../common/store/useWorkStore.js"); require("../../common/libraries/apiLoading.js"); require("../../common/libraries/naviHelper.js"); @@ -13,15 +13,23 @@ if (!Array) { const _easycom_hs_radio_cell_picker2 = common_vendor.resolveComponent("hs-radio-cell-picker"); const _easycom_hs_cell_textarea2 = common_vendor.resolveComponent("hs-cell-textarea"); const _easycom_hs_upload2 = common_vendor.resolveComponent("hs-upload"); + const _easycom_hs_radio2 = common_vendor.resolveComponent("hs-radio"); + const _easycom_hs_cell2 = common_vendor.resolveComponent("hs-cell"); + const _easycom_hs_input2 = common_vendor.resolveComponent("hs-input"); + const _easycom_hs_radio_picker_accounts2 = common_vendor.resolveComponent("hs-radio-picker-accounts"); const _easycom_hs_footer2 = common_vendor.resolveComponent("hs-footer"); - (_easycom_hs_radio_cell_picker2 + _easycom_hs_cell_textarea2 + _easycom_hs_upload2 + _easycom_hs_footer2)(); + (_easycom_hs_radio_cell_picker2 + _easycom_hs_cell_textarea2 + _easycom_hs_upload2 + _easycom_hs_radio2 + _easycom_hs_cell2 + _easycom_hs_input2 + _easycom_hs_radio_picker_accounts2 + _easycom_hs_footer2)(); } const _easycom_hs_radio_cell_picker = () => "../../components/hs-radio-cell-picker/hs-radio-cell-picker.js"; const _easycom_hs_cell_textarea = () => "../../components/hs-cell-textarea/hs-cell-textarea.js"; const _easycom_hs_upload = () => "../../components/hs-upload/hs-upload.js"; +const _easycom_hs_radio = () => "../../components/hs-radio/hs-radio.js"; +const _easycom_hs_cell = () => "../../components/hs-cell/hs-cell.js"; +const _easycom_hs_input = () => "../../components/hs-input/hs-input.js"; +const _easycom_hs_radio_picker_accounts = () => "../../components/hs-radio-picker-accounts/hs-radio-picker-accounts.js"; const _easycom_hs_footer = () => "../../components/hs-footer/hs-footer.js"; if (!Math) { - (_easycom_hs_radio_cell_picker + _easycom_hs_cell_textarea + _easycom_hs_upload + _easycom_hs_footer)(); + (_easycom_hs_radio_cell_picker + _easycom_hs_cell_textarea + _easycom_hs_upload + _easycom_hs_radio + _easycom_hs_cell + _easycom_hs_input + _easycom_hs_radio_picker_accounts + _easycom_hs_footer)(); } const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({ __name: "index", @@ -31,11 +39,11 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({ (_a = WORKORDER_update_method.method) == null ? void 0 : _a.init(e); }); return (_ctx, _cache) => { - var _a; - return { + var _a, _b, _c, _d, _e; + return common_vendor.e({ a: common_vendor.o(($event) => common_vendor.unref(WORKORDER_update_model.useModel).formData.value.status = $event), b: common_vendor.p({ - Enums: common_vendor.unref(gen_Enums.HouseWorkOrdersStatusEnum), + Enums: (_b = (_a = common_vendor.unref(WORKORDER_update_model.useModel)) == null ? void 0 : _a.HouseWorkOrdersStatusItemEnum) == null ? void 0 : _b.value, title: "工单状态", borderTop: true, required: true, @@ -44,22 +52,59 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({ c: common_vendor.o(($event) => common_vendor.unref(WORKORDER_update_model.useModel).formData.value.description = $event), d: common_vendor.p({ borderTop: true, - title: "进度说明", - placeholder: "请输入进度说明", + title: common_vendor.unref(WORKORDER_update_model.useModel).formData.value.status === "Completed" ? "备注说明" : "进度说明", + required: true, + placeholder: common_vendor.unref(WORKORDER_update_model.useModel).formData.value.status === "Completed" ? "请详细描述情况,包括具体位置现象等" : "请输入进度说明", valueModel: common_vendor.unref(WORKORDER_update_model.useModel).formData.value.description }), e: common_vendor.o(($event) => common_vendor.unref(WORKORDER_update_model.useModel).formData.value.attachments = $event), f: common_vendor.p({ borderTop: true, - title: "上传图片", + title: common_vendor.unref(WORKORDER_update_model.useModel).formData.value.status === "Completed" ? "完工图片" : "上传图片", + required: common_vendor.unref(WORKORDER_update_model.useModel).formData.value.status === "Completed", count: 6, valueModel: common_vendor.unref(WORKORDER_update_model.useModel).formData.value.attachments }), - g: common_vendor.o((_a = common_vendor.unref(WORKORDER_update_method.method)) == null ? void 0 : _a.handleSubmit), - h: common_vendor.p({ + g: common_vendor.unref(WORKORDER_update_model.useModel).formData.value.status === "Completed" && common_vendor.unref(WORKORDER_update_model.useModel).formData.value.location === "MyHome" + }, common_vendor.unref(WORKORDER_update_model.useModel).formData.value.status === "Completed" && common_vendor.unref(WORKORDER_update_model.useModel).formData.value.location === "MyHome" ? common_vendor.e({ + h: common_vendor.o(($event) => common_vendor.unref(WORKORDER_update_model.useModel).formData.value.is_fee = $event), + i: common_vendor.p({ + Enums: (_d = (_c = common_vendor.unref(WORKORDER_update_model.useModel)) == null ? void 0 : _c.HouseWorkOrdersCostEnum) == null ? void 0 : _d.value, + valueModel: common_vendor.unref(WORKORDER_update_model.useModel).formData.value.is_fee + }), + j: common_vendor.p({ + title: "是否产生费用", + required: true + }), + k: common_vendor.unref(WORKORDER_update_model.useModel).formData.value.is_fee === "1" + }, common_vendor.unref(WORKORDER_update_model.useModel).formData.value.is_fee === "1" ? { + l: common_vendor.o(($event) => common_vendor.unref(WORKORDER_update_model.useModel).formData.value.amount = $event), + m: common_vendor.p({ + type: "number", + placeholder: "请输入费用金额", + textAlign: "right", + suffix: "元", + valueModel: common_vendor.unref(WORKORDER_update_model.useModel).formData.value.amount + }), + n: common_vendor.p({ + title: "费用金额", + required: true, + borderTop: true + }), + o: common_vendor.o(($event) => common_vendor.unref(WORKORDER_update_model.useModel).formData.value.company_project_receipt_accounts_id = $event), + p: common_vendor.p({ + title: "收款账号", + required: true, + borderTop: true, + params: common_vendor.unref(WORKORDER_update_model.useModel).formData.value, + valueModel: common_vendor.unref(WORKORDER_update_model.useModel).formData.value.company_project_receipt_accounts_id + }) + } : {}) : {}, { + q: common_vendor.o((_e = common_vendor.unref(WORKORDER_update_method.method)) == null ? void 0 : _e.handleSubmit), + r: common_vendor.p({ btnParimaryName: "提交" }) - }; + }); }; } }); diff --git a/dist/dev/mp-weixin/WORKORDER/update/index.json b/dist/dev/mp-weixin/WORKORDER/update/index.json index a5b4daf..73d5183 100644 --- a/dist/dev/mp-weixin/WORKORDER/update/index.json +++ b/dist/dev/mp-weixin/WORKORDER/update/index.json @@ -4,6 +4,10 @@ "hs-radio-cell-picker": "../../components/hs-radio-cell-picker/hs-radio-cell-picker", "hs-cell-textarea": "../../components/hs-cell-textarea/hs-cell-textarea", "hs-upload": "../../components/hs-upload/hs-upload", + "hs-radio": "../../components/hs-radio/hs-radio", + "hs-cell": "../../components/hs-cell/hs-cell", + "hs-input": "../../components/hs-input/hs-input", + "hs-radio-picker-accounts": "../../components/hs-radio-picker-accounts/hs-radio-picker-accounts", "hs-footer": "../../components/hs-footer/hs-footer" } } \ No newline at end of file diff --git a/dist/dev/mp-weixin/WORKORDER/update/index.wxml b/dist/dev/mp-weixin/WORKORDER/update/index.wxml index 0ef26ab..6005205 100644 --- a/dist/dev/mp-weixin/WORKORDER/update/index.wxml +++ b/dist/dev/mp-weixin/WORKORDER/update/index.wxml @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/dist/dev/mp-weixin/WORKORDER/update/method.js b/dist/dev/mp-weixin/WORKORDER/update/method.js index 407b8a0..53c491a 100644 --- a/dist/dev/mp-weixin/WORKORDER/update/method.js +++ b/dist/dev/mp-weixin/WORKORDER/update/method.js @@ -1,25 +1,53 @@ "use strict"; require("../../common/libraries/request.js"); +require("../../common/store/useWatermarkStore.js"); const common_store_useWeAppAuthStore = require("../../common/store/useWeAppAuthStore.js"); require("../../common/store/useWorkStore.js"); -const WORKORDER_update_model = require("./model.js"); -const gen_Apis = require("../../gen/Apis.js"); const common_libraries_apiLoading = require("../../common/libraries/apiLoading.js"); const common_libraries_naviHelper = require("../../common/libraries/naviHelper.js"); +const gen_Apis = require("../../gen/Apis.js"); +const WORKORDER_update_model = require("./model.js"); common_store_useWeAppAuthStore.useWeAppAuthStore(); const method = { init(data) { + WORKORDER_update_model.useModel.HouseWorkOrdersStatusItemEnum.value = { + Processing: { text: "仍在处理", value: "Processing" }, + Completed: { text: "我已完工", value: "Completed" } + }; + WORKORDER_update_model.useModel.HouseWorkOrdersCostEnum.value = { + Processing2: { text: "是", value: "1" }, + Processing1: { text: "否", value: "0" } + }; WORKORDER_update_model.useModel.formData.value = { ...data, house_work_orders_id: data == null ? void 0 : data.id }; }, handleSubmit() { + var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p; console.log("handleSubmit", WORKORDER_update_model.useModel.formData.value); if (!WORKORDER_update_model.useModel.formData.value.status) { - return common_libraries_naviHelper.showToast("请先选择工单状态!"); + return common_libraries_naviHelper.showToast("请先选择状态!"); } - common_libraries_apiLoading.getApiLoading(gen_Apis.Apis.WorkOrder.HouseWorkLogs.Store, WORKORDER_update_model.useModel.formData.value).then((res) => { + if (!WORKORDER_update_model.useModel.formData.value.description) { + return common_libraries_naviHelper.showToast("请输入备注说明/进度说明!"); + } + if (WORKORDER_update_model.useModel.formData.value.status === "Completed" && !((_a = WORKORDER_update_model.useModel.formData.value.attachments) == null ? void 0 : _a.length)) { + return common_libraries_naviHelper.showToast("请上传完工图片!"); + } + if (((_d = (_c = (_b = WORKORDER_update_model.useModel) == null ? void 0 : _b.formData) == null ? void 0 : _c.value) == null ? void 0 : _d.status) === "Completed" && ((_g = (_f = (_e = WORKORDER_update_model.useModel) == null ? void 0 : _e.formData) == null ? void 0 : _f.value) == null ? void 0 : _g.location) === "MyHome" && !((_j = (_i = (_h = WORKORDER_update_model.useModel) == null ? void 0 : _h.formData) == null ? void 0 : _i.value) == null ? void 0 : _j.is_fee)) { + return common_libraries_naviHelper.showToast("请上选择是否产生费用!"); + } + if (WORKORDER_update_model.useModel.formData.value.is_fee === "1" && !((_m = (_l = (_k = WORKORDER_update_model.useModel) == null ? void 0 : _k.formData) == null ? void 0 : _l.value) == null ? void 0 : _m.amount)) { + return common_libraries_naviHelper.showToast("请输入费用金额!"); + } + if (WORKORDER_update_model.useModel.formData.value.is_fee === "1" && !((_p = (_o = (_n = WORKORDER_update_model.useModel) == null ? void 0 : _n.formData) == null ? void 0 : _o.value) == null ? void 0 : _p.company_project_receipt_accounts_id)) { + return common_libraries_naviHelper.showToast("请选择收款账号!"); + } + common_libraries_apiLoading.getApiLoading(gen_Apis.Apis.WorkOrder.HouseWorkLogs.Store, { + ...WORKORDER_update_model.useModel.formData.value + // is_fee: useModel.formData.value.is_fee === '1' ? true : false + }).then((res) => { common_libraries_naviHelper.showToastBack("提交成功!", 1, true); console.log(res); }); diff --git a/dist/dev/mp-weixin/WORKORDER/update/model.js b/dist/dev/mp-weixin/WORKORDER/update/model.js index 6840b75..73e3a80 100644 --- a/dist/dev/mp-weixin/WORKORDER/update/model.js +++ b/dist/dev/mp-weixin/WORKORDER/update/model.js @@ -1,6 +1,8 @@ "use strict"; const common_vendor = require("../../common/vendor.js"); const useModel = { - formData: common_vendor.ref({}) + formData: common_vendor.ref({}), + HouseWorkOrdersStatusItemEnum: common_vendor.ref(), + HouseWorkOrdersCostEnum: common_vendor.ref() }; exports.useModel = useModel; diff --git a/dist/dev/mp-weixin/app.js b/dist/dev/mp-weixin/app.js index 8b940ac..b7ef08a 100644 --- a/dist/dev/mp-weixin/app.js +++ b/dist/dev/mp-weixin/app.js @@ -2,6 +2,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" }); const common_vendor = require("./common/vendor.js"); require("./common/libraries/request.js"); +require("./common/store/useWatermarkStore.js"); const common_store_useWeAppAuthStore = require("./common/store/useWeAppAuthStore.js"); require("./common/store/useWorkStore.js"); const common_libraries_updateManager = require("./common/libraries/updateManager.js"); @@ -12,17 +13,29 @@ if (!Math) { "./pages/loading.js"; "./pages/login.js"; "./pages/data_oard/index.js"; + "./pages/public/select_project/index.js"; "./pages/me/index.js"; "./pages/public/asset_houses/index.js"; + "./pages/transfer/index.js"; "./WORKORDER/list/index.js"; + "./WORKORDER/list_log/index.js"; + "./WORKORDER/show_log/index.js"; "./WORKORDER/update/index.js"; "./WORKORDER/show/index.js"; "./WORKORDER/add/index.js"; + "./WORKORDER/poster/index.js"; + "./ME/work_order_home/index.js"; "./ME/update/index.js"; + "./ME/announcement/list/index.js"; + "./ME/announcement/show/index.js"; "./ME/feedback/index.js"; "./ME/knowledge_qa/index.js"; "./ME/knowledge_qa/show.js"; "./ME/push_show/index.js"; + "./ME/instrument/list/index.js"; + "./ME/instrument/add/index.js"; + "./ME/instrument/log/index.js"; + "./ME/instrument/log_show/index.js"; "./CUSTOMER/show/index.js"; "./CUSTOMER/update/index.js"; "./CUSTOMER/assets/index.js"; @@ -47,6 +60,12 @@ if (!Math) { "./BILL/collection_record/index/index.js"; "./BILL/collection_record/show/index.js"; "./BILL/send_bill/index.js"; + "./INDEX/release_items/index.js"; + "./INDEX/pass/index.js"; + "./INDEX/watermark_camera/index.js"; + "./INDEX/task/list/index.js"; + "./INDEX/task/show/index.js"; + "./INDEX/task/update/index.js"; } const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({ __name: "App", diff --git a/dist/dev/mp-weixin/app.json b/dist/dev/mp-weixin/app.json index 269274c..a8f31eb 100644 --- a/dist/dev/mp-weixin/app.json +++ b/dist/dev/mp-weixin/app.json @@ -4,27 +4,39 @@ "pages/loading", "pages/login", "pages/data_oard/index", + "pages/public/select_project/index", "pages/me/index", - "pages/public/asset_houses/index" + "pages/public/asset_houses/index", + "pages/transfer/index" ], "subPackages": [ { "root": "WORKORDER", "pages": [ "list/index", + "list_log/index", + "show_log/index", "update/index", "show/index", - "add/index" + "add/index", + "poster/index" ] }, { "root": "ME", "pages": [ + "work_order_home/index", "update/index", + "announcement/list/index", + "announcement/show/index", "feedback/index", "knowledge_qa/index", "knowledge_qa/show", - "push_show/index" + "push_show/index", + "instrument/list/index", + "instrument/add/index", + "instrument/log/index", + "instrument/log_show/index" ] }, { @@ -60,6 +72,17 @@ "collection_record/show/index", "send_bill/index" ] + }, + { + "root": "INDEX", + "pages": [ + "release_items/index", + "pass/index", + "watermark_camera/index", + "task/list/index", + "task/show/index", + "task/update/index" + ] } ], "window": { @@ -86,5 +109,14 @@ } ] }, + "permission": { + "scope.userLocation": { + "desc": "获取用户位置信息" + } + }, + "requiredPrivateInfos": [ + "getLocation", + "chooseLocation" + ], "usingComponents": {} } \ No newline at end of file diff --git a/dist/dev/mp-weixin/common/components/cc-root-view/NetworkError.js b/dist/dev/mp-weixin/common/components/cc-root-view/NetworkError.js index 9fc3930..9617c02 100644 --- a/dist/dev/mp-weixin/common/components/cc-root-view/NetworkError.js +++ b/dist/dev/mp-weixin/common/components/cc-root-view/NetworkError.js @@ -3,6 +3,7 @@ const common_vendor = require("../../vendor.js"); const common_store_useWeAppAuthStore = require("../../store/useWeAppAuthStore.js"); require("../../../gen/Apis.js"); require("../../libraries/request.js"); +require("../../store/useWatermarkStore.js"); require("../../store/useWorkStore.js"); require("../../libraries/apiLoading.js"); if (!Array) { diff --git a/dist/dev/mp-weixin/common/components/cc-root-view/cc-root-view.js b/dist/dev/mp-weixin/common/components/cc-root-view/cc-root-view.js index 64d3223..b29df0a 100644 --- a/dist/dev/mp-weixin/common/components/cc-root-view/cc-root-view.js +++ b/dist/dev/mp-weixin/common/components/cc-root-view/cc-root-view.js @@ -1,6 +1,7 @@ "use strict"; const common_vendor = require("../../vendor.js"); require("../../libraries/request.js"); +require("../../store/useWatermarkStore.js"); const common_store_useWeAppAuthStore = require("../../store/useWeAppAuthStore.js"); require("../../store/useWorkStore.js"); require("../../libraries/userUserLogin.js"); diff --git a/dist/dev/mp-weixin/common/index.js b/dist/dev/mp-weixin/common/index.js index 7130a80..fcf66a0 100644 --- a/dist/dev/mp-weixin/common/index.js +++ b/dist/dev/mp-weixin/common/index.js @@ -1,4 +1,5 @@ "use strict"; require("./libraries/request.js"); +require("./store/useWatermarkStore.js"); require("./store/useWeAppAuthStore.js"); require("./store/useWorkStore.js"); diff --git a/dist/dev/mp-weixin/common/libraries/day.js b/dist/dev/mp-weixin/common/libraries/day.js index 7ef8e7c..c3b86fb 100644 --- a/dist/dev/mp-weixin/common/libraries/day.js +++ b/dist/dev/mp-weixin/common/libraries/day.js @@ -5,13 +5,27 @@ common_vendor.dayjs.extend(common_vendor.relativeTime); function ShowLastTime(time) { return time ? common_vendor.dayjs(time).fromNow() : "-"; } +function showDay(time) { + return time ? common_vendor.dayjs(time).format("YYYY-MM-DD") : "-"; +} +function getDay(num) { + if (num) { + const yesterday = common_vendor.dayjs().subtract(num, "day"); + console.log(yesterday.format("YYYY-MM-DD")); + return yesterday.format("YYYY-MM-DD"); + } + return common_vendor.dayjs().format("YYYY-MM-DD"); +} +function getTime() { + return common_vendor.dayjs().format("YYYY-MM-DD HH:mm:ss"); +} function getTimeStatus(endTime) { const now = common_vendor.dayjs(); const end = common_vendor.dayjs(endTime); if (end.isBefore(now)) { const hours = now.diff(end, "hour"); const minutes = now.diff(end, "minute") % 60; - let label = "上门时间已超时"; + let label = "已过期望处理时间:"; if (hours > 0) { label += `${hours}个小时`; } @@ -100,8 +114,51 @@ function getTheFutureDay(num = 1) { const pastFifteenDays = common_vendor.dayjs().add(num, "day"); return pastFifteenDays.format("YYYY-MM-DD"); } +function showCurrentTime() { + return common_vendor.dayjs().format("HH:mm"); +} +function isDatePassed(fixedDate) { + console.log(common_vendor.dayjs().isAfter(common_vendor.dayjs(fixedDate)), "dayjs().isAfter(dayjs(fixedDate))"); + return common_vendor.dayjs().isAfter(common_vendor.dayjs(fixedDate), "day"); +} +function showWeekDay() { + const weekMap = { + 0: "星期日", + 1: "星期一", + 2: "星期二", + 3: "星期三", + 4: "星期四", + 5: "星期五", + 6: "星期六" + }; + const today = weekMap[common_vendor.dayjs().day()]; + return today; +} +function getDayTime(time) { + if (time) { + let dataTime = time == null ? void 0 : time.replace(/-/g, "/"); + return common_vendor.dayjs(dataTime).format("YYYY-MM-DD HH:mm"); + } + return common_vendor.dayjs().format("YYYY-MM-DD HH:mm"); +} +function specificTime(targetTime) { + let dataTime = targetTime == null ? void 0 : targetTime.replace(/-/g, "/"); + const now = common_vendor.dayjs(); + const target = common_vendor.dayjs(dataTime); + let hoursDiff = Math.abs(target.diff(now, "hour", true)) <= 2 || target.isBefore(now); + console.log(hoursDiff, "hoursDiff"); + return hoursDiff; +} exports.ShowLastTime = ShowLastTime; exports.generateTimeSlots = generateTimeSlots; exports.getCurrentHour = getCurrentHour; +exports.getDay = getDay; +exports.getDayTime = getDayTime; exports.getTheFutureDay = getTheFutureDay; +exports.getTime = getTime; exports.getTimeStatus = getTimeStatus; +exports.isDatePassed = isDatePassed; +exports.showCurrentTime = showCurrentTime; +exports.showDay = showDay; +exports.showWeekDay = showWeekDay; +exports.specificTime = specificTime; diff --git a/dist/dev/mp-weixin/common/libraries/map.js b/dist/dev/mp-weixin/common/libraries/map.js new file mode 100644 index 0000000..c7134cc --- /dev/null +++ b/dist/dev/mp-weixin/common/libraries/map.js @@ -0,0 +1,45 @@ +"use strict"; +const common_vendor = require("../vendor.js"); +function getMapAddress() { + const TIANDITU_KEY = "4ce26ecef55ae1ec47910a72a098efc0"; + return new Promise((resolve, reject) => { + common_vendor.index.getLocation({ + type: "wgs84", + altitude: true, + isHighAccuracy: true, + success(res) { + console.log(res, "经纬度"); + const url = `https://api.tianditu.gov.cn/geocoder?postStr={'lon':${res.longitude},'lat':${res.latitude},'ver':2}&type=geocode&tk=${TIANDITU_KEY}`; + common_vendor.index.request({ + url, + method: "GET", + success(res2) { + var _a, _b; + resolve({ address: ((_b = (_a = res2 == null ? void 0 : res2.data) == null ? void 0 : _a.result) == null ? void 0 : _b.formatted_address) || "" }); + console.log(res2, "address"); + }, + fail(res2) { + resolve({ address: "拒绝定位" }); + console.error("获取地址失败:", res2); + common_vendor.index.showModal({ + title: "提示", + content: "请先允许定位!", + success: function(res3) { + if (res3.confirm) { + common_vendor.index.openSetting(); + console.log("用户点击确定"); + } else if (res3.cancel) { + console.log("用户点击取消"); + } + } + }); + } + }); + }, + fail(e) { + console.log("拒绝定位", e); + } + }); + }); +} +exports.getMapAddress = getMapAddress; diff --git a/dist/dev/mp-weixin/common/libraries/naviHelper.js b/dist/dev/mp-weixin/common/libraries/naviHelper.js index bc2734e..424c570 100644 --- a/dist/dev/mp-weixin/common/libraries/naviHelper.js +++ b/dist/dev/mp-weixin/common/libraries/naviHelper.js @@ -21,11 +21,16 @@ function showToastBack(label, delta = 1, back = true, backFun) { } }); } -function showToast(label) { +function showToast(label, fun) { common_vendor.index.showToast({ title: label || "提交成功!", duration: 1e3, - icon: "none" + icon: "none", + success() { + setTimeout(() => { + return fun == null ? void 0 : fun(true); + }, 1e3); + } }); } exports.goto = goto; diff --git a/dist/dev/mp-weixin/common/libraries/request.js b/dist/dev/mp-weixin/common/libraries/request.js index 16846ac..e8175b2 100644 --- a/dist/dev/mp-weixin/common/libraries/request.js +++ b/dist/dev/mp-weixin/common/libraries/request.js @@ -3,7 +3,7 @@ const common_vendor = require("../vendor.js"); const common_store_useWeAppAuthStore = require("../store/useWeAppAuthStore.js"); const http = new common_vendor.Request(); http.setConfig((config) => { - config.baseURL = "https://test-weapp-api.linyikj.com.cn/api/"; + config.baseURL = "http://10.39.13.78:8001/api/"; config.header = { ...config.header }; diff --git a/dist/dev/mp-weixin/common/libraries/setTabBar.js b/dist/dev/mp-weixin/common/libraries/setTabBar.js deleted file mode 100644 index 8d1bfec..0000000 --- a/dist/dev/mp-weixin/common/libraries/setTabBar.js +++ /dev/null @@ -1,39 +0,0 @@ -"use strict"; -require("../vendor.js"); -const common_libraries_updateMenu = require("./updateMenu.js"); -function setTabBarData(idx, type) { - const pages = getCurrentPages(); - const currentPage = pages[pages.length - 1]; - if (currentPage) { - const tabBar = currentPage.getTabBar ? currentPage.getTabBar() : null; - if (tabBar) { - if (idx === 3) { - if (type === "boss") { - tabBar.setData({ - selected: 3, - list: common_libraries_updateMenu.Merchant - }); - } - if (type === "investor") { - tabBar.setData({ - selected: 3, - list: common_libraries_updateMenu.Investor - }); - } - if (type === "agent") { - tabBar.setData({ - selected: 3, - list: common_libraries_updateMenu.Agent - }); - } - return; - } - tabBar.setData({ - selected: idx - }); - } else { - console.error("当前页面没有TabBar"); - } - } -} -exports.setTabBarData = setTabBarData; diff --git a/dist/dev/mp-weixin/common/libraries/updateMenu.js b/dist/dev/mp-weixin/common/libraries/updateMenu.js deleted file mode 100644 index 4fe477f..0000000 --- a/dist/dev/mp-weixin/common/libraries/updateMenu.js +++ /dev/null @@ -1,85 +0,0 @@ -"use strict"; -const Merchant = [ - //商户 - { - pagePath: "/pages/MERCHANT/index/index", - text: "首页", - iconPath: "/static/tabbar/home.png", - selectedIconPath: "/static/tabbar/homeAct.png" - }, - { - pagePath: "/pages/MERCHANT/pay/index", - text: "支付", - iconPath: "/static/tabbar/pay.png", - selectedIconPath: "/static/tabbar/payAct.png" - }, - { - pagePath: "/pages/MERCHANT/loans/index", - text: "支出", - iconPath: "/static/tabbar/expenses.png", - selectedIconPath: "/static/tabbar/expensesAct.png" - }, - { - pagePath: "/pages/Me/index", - text: "我的", - iconPath: "/static/tabbar/me.png", - selectedIconPath: "/static/tabbar/meAct.png" - } -]; -const Investor = [ - //投资方 - { - pagePath: "/pages/INVESTOR/index/index", - text: "首页", - iconPath: "/static/tabbar/home.png", - selectedIconPath: "/static/tabbar/homeAct.png" - }, - { - pagePath: "/pages/INVESTOR/loans/index", - text: "分期", - iconPath: "/static/tabbar/expenses.png", - selectedIconPath: "/static/tabbar/expensesAct.png" - }, - { - pagePath: "/pages/INVESTOR/stages_det/index", - text: "明细", - iconPath: "/static/tabbar/pay.png", - selectedIconPath: "/static/tabbar/payAct.png" - }, - { - pagePath: "/pages/Me/index", - text: "我的", - iconPath: "/static/tabbar/me.png", - selectedIconPath: "/static/tabbar/meAct.png" - } -]; -const Agent = [ - //代理商 - { - pagePath: "/pages/AGENT/index/index", - text: "首页", - iconPath: "/static/tabbar/home.png", - selectedIconPath: "/static/tabbar/homeAct.png" - }, - { - pagePath: "/pages/AGENT/pay/index", - text: "支付", - iconPath: "/static/tabbar/pay.png", - selectedIconPath: "/static/tabbar/payAct.png" - }, - { - pagePath: "/pages/AGENT/loans/index", - text: "支出", - iconPath: "/static/tabbar/expenses.png", - selectedIconPath: "/static/tabbar/expensesAct.png" - }, - { - pagePath: "/pages/Me/index", - text: "我的", - iconPath: "/static/tabbar/me.png", - selectedIconPath: "/static/tabbar/meAct.png" - } -]; -exports.Agent = Agent; -exports.Investor = Investor; -exports.Merchant = Merchant; diff --git a/dist/dev/mp-weixin/common/libraries/upload.js b/dist/dev/mp-weixin/common/libraries/upload.js index c29bb49..783b5cc 100644 --- a/dist/dev/mp-weixin/common/libraries/upload.js +++ b/dist/dev/mp-weixin/common/libraries/upload.js @@ -235,5 +235,71 @@ const upload = (count = 1, size = 2, mediaType = ["image"]) => { } ); }; +const uploadImgWatermark = (data) => { + return new Promise( + (fileResolve, fileReject) => { + const timestamp = Date.now(); + const extIndex = data == null ? void 0 : data.path.lastIndexOf("."); + const fileExt = extIndex >= -1 ? data == null ? void 0 : data.path.substr(extIndex + 1) : ""; + console.log(extIndex, fileExt, "fileExt"); + handlePreUpload({ + filename: `${(data == null ? void 0 : data.name) || ""}_${timestamp}.${fileExt}`, + alc: "public-read" + }).then((res) => { + if (res == null ? void 0 : res.success) { + const wxfs = common_vendor.index.getFileSystemManager(); + wxfs.readFile({ + filePath: (data == null ? void 0 : data.path) || "", + success: function(fileRes) { + var _a, _b; + common_vendor.index.request({ + url: (_a = res == null ? void 0 : res.data) == null ? void 0 : _a.url, + method: "PUT", + header: { + ...(_b = res == null ? void 0 : res.data) == null ? void 0 : _b.headers, + "x-amz-acl": "public-read" + }, + data: fileRes == null ? void 0 : fileRes.data, + success: function success(json) { + if (json.statusCode !== 200) { + fileReject(new Error(`上传失败: ${json.statusCode}`)); + } else { + common_vendor.index.getImageInfo({ + src: data == null ? void 0 : data.path, + success: (imgInfo) => { + var _a2, _b2; + console.log(imgInfo, "imgInfo"); + let imgJson = { + url: (_b2 = (_a2 = res == null ? void 0 : res.data) == null ? void 0 : _a2.url) == null ? void 0 : _b2.split("?")[0], + status: "done", + type: imgInfo == null ? void 0 : imgInfo.type, + uid: timestamp, + size: "", + name: `${data == null ? void 0 : data.name}-${timestamp}` + }; + fileResolve(imgJson); + } + }); + } + }, + fail: function fail() { + fileReject(new Error("网络请求失败")); + } + }); + }, + fail: function() { + fileReject(new Error("读取文件失败")); + } + }); + } else { + fileReject(new Error("获取上传链接失败")); + } + }).catch((err) => { + fileReject(err); + }); + } + ); +}; exports.avatarUpload = avatarUpload; exports.upload = upload; +exports.uploadImgWatermark = uploadImgWatermark; diff --git a/dist/dev/mp-weixin/common/libraries/userUserLogin.js b/dist/dev/mp-weixin/common/libraries/userUserLogin.js index b3114b9..bf20a15 100644 --- a/dist/dev/mp-weixin/common/libraries/userUserLogin.js +++ b/dist/dev/mp-weixin/common/libraries/userUserLogin.js @@ -1,6 +1,7 @@ "use strict"; const common_vendor = require("../vendor.js"); require("./request.js"); +require("../store/useWatermarkStore.js"); const common_store_useWeAppAuthStore = require("../store/useWeAppAuthStore.js"); require("../store/useWorkStore.js"); const auth = common_store_useWeAppAuthStore.useWeAppAuthStore(); diff --git a/dist/dev/mp-weixin/common/store/useWatermarkStore.js b/dist/dev/mp-weixin/common/store/useWatermarkStore.js new file mode 100644 index 0000000..983f41b --- /dev/null +++ b/dist/dev/mp-weixin/common/store/useWatermarkStore.js @@ -0,0 +1,9 @@ +"use strict"; +const common_vendor = require("../vendor.js"); +const useWatermarkStore = common_vendor.defineStore("watermark_store", () => { + const watermarkInfo = common_vendor.ref([]); + return { + watermarkInfo + }; +}); +exports.useWatermarkStore = useWatermarkStore; diff --git a/dist/dev/mp-weixin/common/store/useWeAppAuthStore.js b/dist/dev/mp-weixin/common/store/useWeAppAuthStore.js index 6ea7591..1224fe8 100644 --- a/dist/dev/mp-weixin/common/store/useWeAppAuthStore.js +++ b/dist/dev/mp-weixin/common/store/useWeAppAuthStore.js @@ -5,7 +5,7 @@ const common_libraries_apiLoading = require("../libraries/apiLoading.js"); const wxworkId = "ww96c806131a95c739"; const wxAppId = "wx04d2d27ca198367b"; const useWeAppAuthStore = common_vendor.defineStore("we_app_auth", () => { - const loading = common_vendor.ref(true); + const loading = common_vendor.ref(false); const hasError = common_vendor.ref(false); const data = common_vendor.ref({ user: { id: 0, name: "", phone: "" }, diff --git a/dist/dev/mp-weixin/common/store/useWorkStore.js b/dist/dev/mp-weixin/common/store/useWorkStore.js index 4f321c5..402ee35 100644 --- a/dist/dev/mp-weixin/common/store/useWorkStore.js +++ b/dist/dev/mp-weixin/common/store/useWorkStore.js @@ -3,9 +3,11 @@ const common_vendor = require("../vendor.js"); const useWorkStore = common_vendor.defineStore("goods_store", () => { const selectWorkHouse = common_vendor.ref({}); const selectedHouse = common_vendor.ref(0); + const selectWorkProject = common_vendor.ref({}); return { selectWorkHouse, - selectedHouse + selectedHouse, + selectWorkProject }; }); exports.useWorkStore = useWorkStore; diff --git a/dist/dev/mp-weixin/common/vendor.js b/dist/dev/mp-weixin/common/vendor.js index 84fb187..914d445 100644 --- a/dist/dev/mp-weixin/common/vendor.js +++ b/dist/dev/mp-weixin/common/vendor.js @@ -11913,316 +11913,330 @@ class Request2 { } } var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {}; -function getDefaultExportFromCjs(x2) { - return x2 && x2.__esModule && Object.prototype.hasOwnProperty.call(x2, "default") ? x2["default"] : x2; -} -var dayjs_minExports$1 = {}; +var dayjs_minExports = {}; var dayjs_min = { get exports() { - return dayjs_minExports$1; + return dayjs_minExports; }, set exports(v2) { - dayjs_minExports$1 = v2; + dayjs_minExports = v2; } }; -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", i2 = "second", s2 = "minute", u2 = "hour", a2 = "day", o2 = "week", c2 = "month", f2 = "quarter", h2 = "year", d2 = "date", l2 = "Invalid Date", $2 = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, y2 = /\[([^\]]+)]|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, M2 = { 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]) + "]"; - } }, m2 = function(t3, e3, n3) { - var r3 = String(t3); - return !r3 || r3.length >= e3 ? t3 : "" + Array(e3 + 1 - r3.length).join(n3) + t3; - }, v2 = { s: m2, z: function(t3) { - var e3 = -t3.utcOffset(), n3 = Math.abs(e3), r3 = Math.floor(n3 / 60), i3 = n3 % 60; - return (e3 <= 0 ? "+" : "-") + m2(r3, 2, "0") + ":" + m2(i3, 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()), i3 = e3.clone().add(r3, c2), s3 = n3 - i3 < 0, u3 = e3.clone().add(r3 + (s3 ? -1 : 1), c2); - return +(-(r3 + (n3 - i3) / (s3 ? i3 - u3 : u3 - i3)) || 0); - }, a: function(t3) { - return t3 < 0 ? Math.ceil(t3) || 0 : Math.floor(t3); - }, p: function(t3) { - return { M: c2, y: h2, w: o2, d: a2, D: d2, h: u2, m: s2, s: i2, ms: r2, Q: f2 }[t3] || String(t3 || "").toLowerCase().replace(/s$/, ""); - }, u: function(t3) { - return void 0 === t3; - } }, g2 = "en", D2 = {}; - D2[g2] = M2; - var p2 = "$isDayjsObject", S2 = function(t3) { - return t3 instanceof _2 || !(!t3 || !t3[p2]); - }, w2 = function t3(e3, n3, r3) { - var i3; - if (!e3) - return g2; - if ("string" == typeof e3) { - var s3 = e3.toLowerCase(); - D2[s3] && (i3 = s3), n3 && (D2[s3] = n3, i3 = s3); - var u3 = e3.split("-"); - if (!i3 && u3.length > 1) - return t3(u3[0]); - } else { - var a3 = e3.name; - D2[a3] = e3, i3 = a3; - } - return !r3 && i3 && (g2 = i3), i3 || !r3 && g2; - }, O = function(t3, e3) { - if (S2(t3)) - return t3.clone(); - var n3 = "object" == typeof e3 ? e3 : {}; - return n3.date = t3, n3.args = arguments, new _2(n3); - }, b2 = v2; - b2.l = w2, b2.i = S2, b2.w = function(t3, e3) { - return O(t3, { locale: e3.$L, utc: e3.$u, x: e3.$x, $offset: e3.$offset }); - }; - var _2 = function() { - function M3(t3) { - this.$L = w2(t3.locale, null, true), this.parse(t3), this.$x = this.$x || t3.x || {}, this[p2] = true; - } - var m3 = M3.prototype; - return m3.parse = function(t3) { - this.$d = function(t4) { - var e3 = t4.date, n3 = t4.utc; - if (null === e3) - return new Date(NaN); - if (b2.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($2); - if (r3) { - var i3 = r3[2] - 1 || 0, s3 = (r3[7] || "0").substring(0, 3); - return n3 ? new Date(Date.UTC(r3[1], i3, r3[3] || 1, r3[4] || 0, r3[5] || 0, r3[6] || 0, s3)) : new Date(r3[1], i3, r3[3] || 1, r3[4] || 0, r3[5] || 0, r3[6] || 0, s3); - } - } +(function(module2, exports2) { + !function(t2, e2) { + module2.exports = e2(); + }(commonjsGlobal, function() { + var t2 = 1e3, e2 = 6e4, n2 = 36e5, r2 = "millisecond", i2 = "second", s2 = "minute", u2 = "hour", a2 = "day", o2 = "week", c2 = "month", f2 = "quarter", h2 = "year", d2 = "date", l2 = "Invalid Date", $2 = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, y2 = /\[([^\]]+)]|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, M2 = { 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]) + "]"; + } }, m2 = function(t3, e3, n3) { + var r3 = String(t3); + return !r3 || r3.length >= e3 ? t3 : "" + Array(e3 + 1 - r3.length).join(n3) + t3; + }, v2 = { s: m2, z: function(t3) { + var e3 = -t3.utcOffset(), n3 = Math.abs(e3), r3 = Math.floor(n3 / 60), i3 = n3 % 60; + return (e3 <= 0 ? "+" : "-") + m2(r3, 2, "0") + ":" + m2(i3, 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()), i3 = e3.clone().add(r3, c2), s3 = n3 - i3 < 0, u3 = e3.clone().add(r3 + (s3 ? -1 : 1), c2); + return +(-(r3 + (n3 - i3) / (s3 ? i3 - u3 : u3 - i3)) || 0); + }, a: function(t3) { + return t3 < 0 ? Math.ceil(t3) || 0 : Math.floor(t3); + }, p: function(t3) { + return { M: c2, y: h2, w: o2, d: a2, D: d2, h: u2, m: s2, s: i2, ms: r2, Q: f2 }[t3] || String(t3 || "").toLowerCase().replace(/s$/, ""); + }, u: function(t3) { + return void 0 === t3; + } }, g2 = "en", D2 = {}; + D2[g2] = M2; + var p2 = "$isDayjsObject", S2 = function(t3) { + return t3 instanceof _2 || !(!t3 || !t3[p2]); + }, w2 = function t3(e3, n3, r3) { + var i3; + if (!e3) + return g2; + if ("string" == typeof e3) { + var s3 = e3.toLowerCase(); + D2[s3] && (i3 = s3), n3 && (D2[s3] = n3, i3 = s3); + var u3 = e3.split("-"); + if (!i3 && u3.length > 1) + return t3(u3[0]); + } else { + var a3 = e3.name; + D2[a3] = e3, i3 = a3; + } + return !r3 && i3 && (g2 = i3), i3 || !r3 && g2; + }, O = function(t3, e3) { + if (S2(t3)) + return t3.clone(); + var n3 = "object" == typeof e3 ? e3 : {}; + return n3.date = t3, n3.args = arguments, new _2(n3); + }, b2 = v2; + b2.l = w2, b2.i = S2, b2.w = function(t3, e3) { + return O(t3, { locale: e3.$L, utc: e3.$u, x: e3.$x, $offset: e3.$offset }); + }; + var _2 = function() { + function M3(t3) { + this.$L = w2(t3.locale, null, true), this.parse(t3), this.$x = this.$x || t3.x || {}, this[p2] = true; + } + var m3 = M3.prototype; + return m3.parse = function(t3) { + this.$d = function(t4) { + var e3 = t4.date, n3 = t4.utc; + if (null === e3) + return new Date(NaN); + if (b2.u(e3)) + return new Date(); + if (e3 instanceof Date) return new Date(e3); - }(t3), this.init(); - }, m3.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(); - }, m3.$utils = function() { - return b2; - }, m3.isValid = function() { - return !(this.$d.toString() === l2); - }, m3.isSame = function(t3, e3) { - var n3 = O(t3); - return this.startOf(e3) <= n3 && n3 <= this.endOf(e3); - }, m3.isAfter = function(t3, e3) { - return O(t3) < this.startOf(e3); - }, m3.isBefore = function(t3, e3) { - return this.endOf(e3) < O(t3); - }, m3.$g = function(t3, e3, n3) { - return b2.u(t3) ? this[e3] : this.set(n3, t3); - }, m3.unix = function() { - return Math.floor(this.valueOf() / 1e3); - }, m3.valueOf = function() { - return this.$d.getTime(); - }, m3.startOf = function(t3, e3) { - var n3 = this, r3 = !!b2.u(e3) || e3, f3 = b2.p(t3), l3 = function(t4, e4) { - var i3 = b2.w(n3.$u ? Date.UTC(n3.$y, e4, t4) : new Date(n3.$y, e4, t4), n3); - return r3 ? i3 : i3.endOf(a2); - }, $3 = function(t4, e4) { - return b2.w(n3.toDate()[t4].apply(n3.toDate("s"), (r3 ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(e4)), n3); - }, y3 = this.$W, M4 = this.$M, m4 = this.$D, v3 = "set" + (this.$u ? "UTC" : ""); - switch (f3) { - case h2: - return r3 ? l3(1, 0) : l3(31, 11); - case c2: - return r3 ? l3(1, M4) : l3(0, M4 + 1); - case o2: - var g3 = this.$locale().weekStart || 0, D3 = (y3 < g3 ? y3 + 7 : y3) - g3; - return l3(r3 ? m4 - D3 : m4 + (6 - D3), M4); - case a2: - case d2: - return $3(v3 + "Hours", 0); - case u2: - return $3(v3 + "Minutes", 1); - case s2: - return $3(v3 + "Seconds", 2); - case i2: - return $3(v3 + "Milliseconds", 3); - default: - return this.clone(); + if ("string" == typeof e3 && !/Z$/i.test(e3)) { + var r3 = e3.match($2); + if (r3) { + var i3 = r3[2] - 1 || 0, s3 = (r3[7] || "0").substring(0, 3); + return n3 ? new Date(Date.UTC(r3[1], i3, r3[3] || 1, r3[4] || 0, r3[5] || 0, r3[6] || 0, s3)) : new Date(r3[1], i3, r3[3] || 1, r3[4] || 0, r3[5] || 0, r3[6] || 0, s3); + } } - }, m3.endOf = function(t3) { - return this.startOf(t3, false); - }, m3.$set = function(t3, e3) { - var n3, o3 = b2.p(t3), f3 = "set" + (this.$u ? "UTC" : ""), l3 = (n3 = {}, n3[a2] = f3 + "Date", n3[d2] = f3 + "Date", n3[c2] = f3 + "Month", n3[h2] = f3 + "FullYear", n3[u2] = f3 + "Hours", n3[s2] = f3 + "Minutes", n3[i2] = f3 + "Seconds", n3[r2] = f3 + "Milliseconds", n3)[o3], $3 = o3 === a2 ? this.$D + (e3 - this.$W) : e3; - if (o3 === c2 || o3 === h2) { - var y3 = this.clone().set(d2, 1); - y3.$d[l3]($3), y3.init(), this.$d = y3.set(d2, Math.min(this.$D, y3.daysInMonth())).$d; - } else - l3 && this.$d[l3]($3); - return this.init(), this; - }, m3.set = function(t3, e3) { - return this.clone().$set(t3, e3); - }, m3.get = function(t3) { - return this[b2.p(t3)](); - }, m3.add = function(r3, f3) { - var d3, l3 = this; - r3 = Number(r3); - var $3 = b2.p(f3), y3 = function(t3) { - var e3 = O(l3); - return b2.w(e3.date(e3.date() + Math.round(t3 * r3)), l3); - }; - if ($3 === c2) - return this.set(c2, this.$M + r3); - if ($3 === h2) - return this.set(h2, this.$y + r3); - if ($3 === a2) - return y3(1); - if ($3 === o2) - return y3(7); - var M4 = (d3 = {}, d3[s2] = e2, d3[u2] = n2, d3[i2] = t2, d3)[$3] || 1, m4 = this.$d.getTime() + r3 * M4; - return b2.w(m4, this); - }, m3.subtract = function(t3, e3) { - return this.add(-1 * t3, e3); - }, m3.format = function(t3) { - var e3 = this, n3 = this.$locale(); - if (!this.isValid()) - return n3.invalidDate || l2; - var r3 = t3 || "YYYY-MM-DDTHH:mm:ssZ", i3 = b2.z(this), s3 = this.$H, u3 = this.$m, a3 = this.$M, o3 = n3.weekdays, c3 = n3.months, f3 = n3.meridiem, h3 = function(t4, n4, i4, s4) { - return t4 && (t4[n4] || t4(e3, r3)) || i4[n4].slice(0, s4); - }, d3 = function(t4) { - return b2.s(s3 % 12 || 12, t4, "0"); - }, $3 = f3 || function(t4, e4, n4) { - var r4 = t4 < 12 ? "AM" : "PM"; - return n4 ? r4.toLowerCase() : r4; - }; - return r3.replace(y2, function(t4, r4) { - return r4 || function(t5) { - switch (t5) { - case "YY": - return String(e3.$y).slice(-2); - case "YYYY": - return b2.s(e3.$y, 4, "0"); - case "M": - return a3 + 1; - case "MM": - return b2.s(a3 + 1, 2, "0"); - case "MMM": - return h3(n3.monthsShort, a3, c3, 3); - case "MMMM": - return h3(c3, a3); - case "D": - return e3.$D; - case "DD": - return b2.s(e3.$D, 2, "0"); - case "d": - return String(e3.$W); - case "dd": - return h3(n3.weekdaysMin, e3.$W, o3, 2); - case "ddd": - return h3(n3.weekdaysShort, e3.$W, o3, 3); - case "dddd": - return o3[e3.$W]; - case "H": - return String(s3); - case "HH": - return b2.s(s3, 2, "0"); - case "h": - return d3(1); - case "hh": - return d3(2); - case "a": - return $3(s3, u3, true); - case "A": - return $3(s3, u3, false); - case "m": - return String(u3); - case "mm": - return b2.s(u3, 2, "0"); - case "s": - return String(e3.$s); - case "ss": - return b2.s(e3.$s, 2, "0"); - case "SSS": - return b2.s(e3.$ms, 3, "0"); - case "Z": - return i3; - } - return null; - }(t4) || i3.replace(":", ""); - }); - }, m3.utcOffset = function() { - return 15 * -Math.round(this.$d.getTimezoneOffset() / 15); - }, m3.diff = function(r3, d3, l3) { - var $3, y3 = this, M4 = b2.p(d3), m4 = O(r3), v3 = (m4.utcOffset() - this.utcOffset()) * e2, g3 = this - m4, D3 = function() { - return b2.m(y3, m4); - }; - switch (M4) { - case h2: - $3 = D3() / 12; - break; - case c2: - $3 = D3(); - break; - case f2: - $3 = D3() / 3; - break; - case o2: - $3 = (g3 - v3) / 6048e5; - break; - case a2: - $3 = (g3 - v3) / 864e5; - break; - case u2: - $3 = g3 / n2; - break; - case s2: - $3 = g3 / e2; - break; - case i2: - $3 = g3 / t2; - break; - default: - $3 = g3; - } - return l3 ? $3 : b2.a($3); - }, m3.daysInMonth = function() { - return this.endOf(c2).$D; - }, m3.$locale = function() { - return D2[this.$L]; - }, m3.locale = function(t3, e3) { - if (!t3) - return this.$L; - var n3 = this.clone(), r3 = w2(t3, e3, true); - return r3 && (n3.$L = r3), n3; - }, m3.clone = function() { - return b2.w(this.$d, this); - }, m3.toDate = function() { - return new Date(this.valueOf()); - }, m3.toJSON = function() { - return this.isValid() ? this.toISOString() : null; - }, m3.toISOString = function() { - return this.$d.toISOString(); - }, m3.toString = function() { - return this.$d.toUTCString(); - }, M3; - }(), k2 = _2.prototype; - return O.prototype = k2, [["$ms", r2], ["$s", i2], ["$m", s2], ["$H", u2], ["$W", a2], ["$M", c2], ["$y", h2], ["$D", d2]].forEach(function(t3) { - k2[t3[1]] = function(e3) { - return this.$g(e3, t3[0], t3[1]); + return new Date(e3); + }(t3), this.init(); + }, m3.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(); + }, m3.$utils = function() { + return b2; + }, m3.isValid = function() { + return !(this.$d.toString() === l2); + }, m3.isSame = function(t3, e3) { + var n3 = O(t3); + return this.startOf(e3) <= n3 && n3 <= this.endOf(e3); + }, m3.isAfter = function(t3, e3) { + return O(t3) < this.startOf(e3); + }, m3.isBefore = function(t3, e3) { + return this.endOf(e3) < O(t3); + }, m3.$g = function(t3, e3, n3) { + return b2.u(t3) ? this[e3] : this.set(n3, t3); + }, m3.unix = function() { + return Math.floor(this.valueOf() / 1e3); + }, m3.valueOf = function() { + return this.$d.getTime(); + }, m3.startOf = function(t3, e3) { + var n3 = this, r3 = !!b2.u(e3) || e3, f3 = b2.p(t3), l3 = function(t4, e4) { + var i3 = b2.w(n3.$u ? Date.UTC(n3.$y, e4, t4) : new Date(n3.$y, e4, t4), n3); + return r3 ? i3 : i3.endOf(a2); + }, $3 = function(t4, e4) { + return b2.w(n3.toDate()[t4].apply(n3.toDate("s"), (r3 ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(e4)), n3); + }, y3 = this.$W, M4 = this.$M, m4 = this.$D, v3 = "set" + (this.$u ? "UTC" : ""); + switch (f3) { + case h2: + return r3 ? l3(1, 0) : l3(31, 11); + case c2: + return r3 ? l3(1, M4) : l3(0, M4 + 1); + case o2: + var g3 = this.$locale().weekStart || 0, D3 = (y3 < g3 ? y3 + 7 : y3) - g3; + return l3(r3 ? m4 - D3 : m4 + (6 - D3), M4); + case a2: + case d2: + return $3(v3 + "Hours", 0); + case u2: + return $3(v3 + "Minutes", 1); + case s2: + return $3(v3 + "Seconds", 2); + case i2: + return $3(v3 + "Milliseconds", 3); + default: + return this.clone(); + } + }, m3.endOf = function(t3) { + return this.startOf(t3, false); + }, m3.$set = function(t3, e3) { + var n3, o3 = b2.p(t3), f3 = "set" + (this.$u ? "UTC" : ""), l3 = (n3 = {}, n3[a2] = f3 + "Date", n3[d2] = f3 + "Date", n3[c2] = f3 + "Month", n3[h2] = f3 + "FullYear", n3[u2] = f3 + "Hours", n3[s2] = f3 + "Minutes", n3[i2] = f3 + "Seconds", n3[r2] = f3 + "Milliseconds", n3)[o3], $3 = o3 === a2 ? this.$D + (e3 - this.$W) : e3; + if (o3 === c2 || o3 === h2) { + var y3 = this.clone().set(d2, 1); + y3.$d[l3]($3), y3.init(), this.$d = y3.set(d2, Math.min(this.$D, y3.daysInMonth())).$d; + } else + l3 && this.$d[l3]($3); + return this.init(), this; + }, m3.set = function(t3, e3) { + return this.clone().$set(t3, e3); + }, m3.get = function(t3) { + return this[b2.p(t3)](); + }, m3.add = function(r3, f3) { + var d3, l3 = this; + r3 = Number(r3); + var $3 = b2.p(f3), y3 = function(t3) { + var e3 = O(l3); + return b2.w(e3.date(e3.date() + Math.round(t3 * r3)), l3); }; - }), O.extend = function(t3, e3) { - return t3.$i || (t3(e3, _2, O), t3.$i = true), O; - }, O.locale = w2, O.isDayjs = S2, O.unix = function(t3) { - return O(1e3 * t3); - }, O.en = D2[g2], O.Ls = D2, O.p = {}, O; - }); - })(dayjs_min); - return dayjs_minExports$1; -} -var dayjs_minExports = requireDayjs_min(); -const dayjs = /* @__PURE__ */ getDefaultExportFromCjs(dayjs_minExports); + if ($3 === c2) + return this.set(c2, this.$M + r3); + if ($3 === h2) + return this.set(h2, this.$y + r3); + if ($3 === a2) + return y3(1); + if ($3 === o2) + return y3(7); + var M4 = (d3 = {}, d3[s2] = e2, d3[u2] = n2, d3[i2] = t2, d3)[$3] || 1, m4 = this.$d.getTime() + r3 * M4; + return b2.w(m4, this); + }, m3.subtract = function(t3, e3) { + return this.add(-1 * t3, e3); + }, m3.format = function(t3) { + var e3 = this, n3 = this.$locale(); + if (!this.isValid()) + return n3.invalidDate || l2; + var r3 = t3 || "YYYY-MM-DDTHH:mm:ssZ", i3 = b2.z(this), s3 = this.$H, u3 = this.$m, a3 = this.$M, o3 = n3.weekdays, c3 = n3.months, f3 = n3.meridiem, h3 = function(t4, n4, i4, s4) { + return t4 && (t4[n4] || t4(e3, r3)) || i4[n4].slice(0, s4); + }, d3 = function(t4) { + return b2.s(s3 % 12 || 12, t4, "0"); + }, $3 = f3 || function(t4, e4, n4) { + var r4 = t4 < 12 ? "AM" : "PM"; + return n4 ? r4.toLowerCase() : r4; + }; + return r3.replace(y2, function(t4, r4) { + return r4 || function(t5) { + switch (t5) { + case "YY": + return String(e3.$y).slice(-2); + case "YYYY": + return b2.s(e3.$y, 4, "0"); + case "M": + return a3 + 1; + case "MM": + return b2.s(a3 + 1, 2, "0"); + case "MMM": + return h3(n3.monthsShort, a3, c3, 3); + case "MMMM": + return h3(c3, a3); + case "D": + return e3.$D; + case "DD": + return b2.s(e3.$D, 2, "0"); + case "d": + return String(e3.$W); + case "dd": + return h3(n3.weekdaysMin, e3.$W, o3, 2); + case "ddd": + return h3(n3.weekdaysShort, e3.$W, o3, 3); + case "dddd": + return o3[e3.$W]; + case "H": + return String(s3); + case "HH": + return b2.s(s3, 2, "0"); + case "h": + return d3(1); + case "hh": + return d3(2); + case "a": + return $3(s3, u3, true); + case "A": + return $3(s3, u3, false); + case "m": + return String(u3); + case "mm": + return b2.s(u3, 2, "0"); + case "s": + return String(e3.$s); + case "ss": + return b2.s(e3.$s, 2, "0"); + case "SSS": + return b2.s(e3.$ms, 3, "0"); + case "Z": + return i3; + } + return null; + }(t4) || i3.replace(":", ""); + }); + }, m3.utcOffset = function() { + return 15 * -Math.round(this.$d.getTimezoneOffset() / 15); + }, m3.diff = function(r3, d3, l3) { + var $3, y3 = this, M4 = b2.p(d3), m4 = O(r3), v3 = (m4.utcOffset() - this.utcOffset()) * e2, g3 = this - m4, D3 = function() { + return b2.m(y3, m4); + }; + switch (M4) { + case h2: + $3 = D3() / 12; + break; + case c2: + $3 = D3(); + break; + case f2: + $3 = D3() / 3; + break; + case o2: + $3 = (g3 - v3) / 6048e5; + break; + case a2: + $3 = (g3 - v3) / 864e5; + break; + case u2: + $3 = g3 / n2; + break; + case s2: + $3 = g3 / e2; + break; + case i2: + $3 = g3 / t2; + break; + default: + $3 = g3; + } + return l3 ? $3 : b2.a($3); + }, m3.daysInMonth = function() { + return this.endOf(c2).$D; + }, m3.$locale = function() { + return D2[this.$L]; + }, m3.locale = function(t3, e3) { + if (!t3) + return this.$L; + var n3 = this.clone(), r3 = w2(t3, e3, true); + return r3 && (n3.$L = r3), n3; + }, m3.clone = function() { + return b2.w(this.$d, this); + }, m3.toDate = function() { + return new Date(this.valueOf()); + }, m3.toJSON = function() { + return this.isValid() ? this.toISOString() : null; + }, m3.toISOString = function() { + return this.$d.toISOString(); + }, m3.toString = function() { + return this.$d.toUTCString(); + }, M3; + }(), k2 = _2.prototype; + return O.prototype = k2, [["$ms", r2], ["$s", i2], ["$m", s2], ["$H", u2], ["$W", a2], ["$M", c2], ["$y", h2], ["$D", d2]].forEach(function(t3) { + k2[t3[1]] = function(e3) { + return this.$g(e3, t3[0], t3[1]); + }; + }), O.extend = function(t3, e3) { + return t3.$i || (t3(e3, _2, O), t3.$i = true), O; + }, O.locale = w2, O.isDayjs = S2, O.unix = function(t3) { + return O(1e3 * t3); + }, O.en = D2[g2], O.Ls = D2, O.p = {}, O; + }); +})(dayjs_min); +const dayjs = dayjs_minExports; +var zhCnExports = {}; +var zhCn = { + get exports() { + return zhCnExports; + }, + set exports(v2) { + zhCnExports = v2; + } +}; +(function(module2, exports2) { + !function(e2, _2) { + module2.exports = _2(dayjs_minExports); + }(commonjsGlobal, function(e2) { + function _2(e3) { + return e3 && "object" == typeof e3 && "default" in e3 ? e3 : { default: e3 }; + } + var t2 = _2(e2), d2 = { 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(e3, _3) { + return "W" === _3 ? e3 + "周" : e3 + "日"; + }, 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(e3, _3) { + var t3 = 100 * e3 + _3; + return t3 < 600 ? "凌晨" : t3 < 900 ? "早上" : t3 < 1100 ? "上午" : t3 < 1300 ? "中午" : t3 < 1800 ? "下午" : "晚上"; + } }; + return t2.default.locale(d2, null, true), d2; + }); +})(zhCn); var relativeTimeExports = {}; var relativeTime$1 = { get exports() { @@ -12275,31 +12289,6 @@ var relativeTime$1 = { }); })(relativeTime$1); const relativeTime = relativeTimeExports; -var zhCnExports = {}; -var zhCn = { - get exports() { - return zhCnExports; - }, - set exports(v2) { - zhCnExports = v2; - } -}; -(function(module2, exports2) { - !function(e2, _2) { - module2.exports = _2(requireDayjs_min()); - }(commonjsGlobal, function(e2) { - function _2(e3) { - return e3 && "object" == typeof e3 && "default" in e3 ? e3 : { default: e3 }; - } - var t2 = _2(e2), d2 = { 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(e3, _3) { - return "W" === _3 ? e3 + "周" : e3 + "日"; - }, 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(e3, _3) { - var t3 = 100 * e3 + _3; - return t3 < 600 ? "凌晨" : t3 < 900 ? "早上" : t3 < 1100 ? "上午" : t3 < 1300 ? "中午" : t3 < 1800 ? "下午" : "晚上"; - } }; - return t2.default.locale(d2, null, true), d2; - }); -})(zhCn); const props$h = defineMixin({ props: { // 头像图片路径(不能为相对路径) @@ -13184,6 +13173,12 @@ const pages = [ navigationBarTitleText: "数据看板" } }, + { + path: "pages/public/select_project/index", + style: { + navigationBarTitleText: "选择项目" + } + }, { path: "pages/me/index", style: { @@ -13196,6 +13191,12 @@ const pages = [ style: { navigationBarTitleText: "房屋管理" } + }, + { + path: "pages/transfer/index", + style: { + navigationBarTitleText: "正在识别..." + } } ]; const subPackages = [ @@ -13208,6 +13209,18 @@ const subPackages = [ navigationBarTitleText: "我的工单" } }, + { + path: "list_log/index", + style: { + navigationBarTitleText: "提报记录" + } + }, + { + path: "show_log/index", + style: { + navigationBarTitleText: "提报工单详情" + } + }, { path: "update/index", style: { @@ -13225,18 +13238,42 @@ const subPackages = [ style: { navigationBarTitleText: "新增工单" } + }, + { + path: "poster/index", + style: { + navigationBarTitleText: "工单收款码" + } } ] }, { root: "ME", pages: [ + { + path: "work_order_home/index", + style: { + navigationBarTitleText: "工单提报" + } + }, { path: "update/index", style: { navigationBarTitleText: "用户信息" } }, + { + path: "announcement/list/index", + style: { + navigationBarTitleText: "公告列表" + } + }, + { + path: "announcement/show/index", + style: { + navigationBarTitleText: "公告详情" + } + }, { path: "feedback/index", style: { @@ -13260,6 +13297,30 @@ const subPackages = [ style: { navigationBarTitleText: "任务预览" } + }, + { + path: "instrument/list/index", + style: { + navigationBarTitleText: "仪表抄表" + } + }, + { + path: "instrument/add/index", + style: { + navigationBarTitleText: "抄表" + } + }, + { + path: "instrument/log/index", + style: { + navigationBarTitleText: "抄表记录" + } + }, + { + path: "instrument/log_show/index", + style: { + navigationBarTitleText: "抄表记录详情" + } } ] }, @@ -13331,7 +13392,7 @@ const subPackages = [ { path: "list_user/index", style: { - navigationBarTitleText: "用户列表" + navigationBarTitleText: "客户列表" } }, { @@ -13418,6 +13479,47 @@ const subPackages = [ } } ] + }, + { + root: "INDEX", + pages: [ + { + path: "release_items/index", + style: { + navigationBarTitleText: "出入登记" + } + }, + { + path: "pass/index", + style: { + navigationBarTitleText: "出入管理" + } + }, + { + path: "watermark_camera/index", + style: { + navigationBarTitleText: "水印相机" + } + }, + { + path: "task/list/index", + style: { + navigationBarTitleText: "任务中心" + } + }, + { + path: "task/show/index", + style: { + navigationBarTitleText: "任务详情" + } + }, + { + path: "task/update/index", + style: { + navigationBarTitleText: "领取工单" + } + } + ] } ]; const tabBar = { @@ -16201,6 +16303,85 @@ const openType = defineMixin({ } }); const props$7 = defineMixin({ + props: { + // 是否展示弹窗 + show: { + type: Boolean, + default: () => defProps.popup.show + }, + // 是否显示遮罩 + overlay: { + type: Boolean, + default: () => defProps.popup.overlay + }, + // 弹出的方向,可选值为 top bottom right left center + mode: { + type: String, + default: () => defProps.popup.mode + }, + // 动画时长,单位ms + duration: { + type: [String, Number], + default: () => defProps.popup.duration + }, + // 是否显示关闭图标 + closeable: { + type: Boolean, + default: () => defProps.popup.closeable + }, + // 自定义遮罩的样式 + overlayStyle: { + type: [Object, String], + default: () => defProps.popup.overlayStyle + }, + // 点击遮罩是否关闭弹窗 + closeOnClickOverlay: { + type: Boolean, + default: () => defProps.popup.closeOnClickOverlay + }, + // 层级 + zIndex: { + type: [String, Number], + default: () => defProps.popup.zIndex + }, + // 是否为iPhoneX留出底部安全距离 + safeAreaInsetBottom: { + type: Boolean, + default: () => defProps.popup.safeAreaInsetBottom + }, + // 是否留出顶部安全距离(状态栏高度) + safeAreaInsetTop: { + type: Boolean, + default: () => defProps.popup.safeAreaInsetTop + }, + // 自定义关闭图标位置,top-left为左上角,top-right为右上角,bottom-left为左下角,bottom-right为右下角 + closeIconPos: { + type: String, + default: () => defProps.popup.closeIconPos + }, + // 是否显示圆角 + round: { + type: [Boolean, String, Number], + default: () => defProps.popup.round + }, + // mode=center,也即中部弹出时,是否使用缩放模式 + zoom: { + type: Boolean, + default: () => defProps.popup.zoom + }, + // 弹窗背景色,设置为transparent可去除白色背景 + bgColor: { + type: String, + default: () => defProps.popup.bgColor + }, + // 遮罩的透明度,0-1之间 + overlayOpacity: { + type: [Number, String], + default: () => defProps.popup.overlayOpacity + } + } +}); +const props$6 = defineMixin({ props: { // 是否显示圆点 isDot: { @@ -16277,7 +16458,7 @@ const props$7 = defineMixin({ } } }); -const props$6 = defineMixin({ +const props$5 = defineMixin({ props: { // 是否细边框 hairline: { @@ -16434,7 +16615,7 @@ const props$6 = defineMixin({ } } }); -const props$5 = defineMixin({ +const props$4 = defineMixin({ props: { // 文字颜色 color: { @@ -16473,85 +16654,6 @@ const props$5 = defineMixin({ } } }); -const props$4 = defineMixin({ - props: { - // 是否展示弹窗 - show: { - type: Boolean, - default: () => defProps.popup.show - }, - // 是否显示遮罩 - overlay: { - type: Boolean, - default: () => defProps.popup.overlay - }, - // 弹出的方向,可选值为 top bottom right left center - mode: { - type: String, - default: () => defProps.popup.mode - }, - // 动画时长,单位ms - duration: { - type: [String, Number], - default: () => defProps.popup.duration - }, - // 是否显示关闭图标 - closeable: { - type: Boolean, - default: () => defProps.popup.closeable - }, - // 自定义遮罩的样式 - overlayStyle: { - type: [Object, String], - default: () => defProps.popup.overlayStyle - }, - // 点击遮罩是否关闭弹窗 - closeOnClickOverlay: { - type: Boolean, - default: () => defProps.popup.closeOnClickOverlay - }, - // 层级 - zIndex: { - type: [String, Number], - default: () => defProps.popup.zIndex - }, - // 是否为iPhoneX留出底部安全距离 - safeAreaInsetBottom: { - type: Boolean, - default: () => defProps.popup.safeAreaInsetBottom - }, - // 是否留出顶部安全距离(状态栏高度) - safeAreaInsetTop: { - type: Boolean, - default: () => defProps.popup.safeAreaInsetTop - }, - // 自定义关闭图标位置,top-left为左上角,top-right为右上角,bottom-left为左下角,bottom-right为右下角 - closeIconPos: { - type: String, - default: () => defProps.popup.closeIconPos - }, - // 是否显示圆角 - round: { - type: [Boolean, String, Number], - default: () => defProps.popup.round - }, - // mode=center,也即中部弹出时,是否使用缩放模式 - zoom: { - type: Boolean, - default: () => defProps.popup.zoom - }, - // 弹窗背景色,设置为transparent可去除白色背景 - bgColor: { - type: String, - default: () => defProps.popup.bgColor - }, - // 遮罩的透明度,0-1之间 - overlayOpacity: { - type: [Number, String], - default: () => defProps.popup.overlayOpacity - } - } -}); const props$3 = defineMixin({ props: { // 是否显示遮罩 diff --git a/dist/dev/mp-weixin/components/hs-cell/hs-cell.js b/dist/dev/mp-weixin/components/hs-cell/hs-cell.js index 1bc591d..385bcc0 100644 --- a/dist/dev/mp-weixin/components/hs-cell/hs-cell.js +++ b/dist/dev/mp-weixin/components/hs-cell/hs-cell.js @@ -55,7 +55,7 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({ i: common_vendor.p({ type: "right", size: "15", - color: "#333" + color: "#999" }) } : {}, { j: props == null ? void 0 : props.des diff --git a/dist/dev/mp-weixin/components/hs-cell/hs-cell.wxss b/dist/dev/mp-weixin/components/hs-cell/hs-cell.wxss index b14f07d..17fc0c9 100644 --- a/dist/dev/mp-weixin/components/hs-cell/hs-cell.wxss +++ b/dist/dev/mp-weixin/components/hs-cell/hs-cell.wxss @@ -26,8 +26,8 @@ } .isLabelRight.data-v-a47406cc { font-weight: 400; - font-size: 28rpx; - color: #888; + font-size: 26rpx; + color: #ccc; display: flex; align-items: center; padding: 20rpx 0; diff --git a/dist/dev/mp-weixin/components/hs-day-picker/hs-day-picker.js b/dist/dev/mp-weixin/components/hs-day-picker/hs-day-picker.js new file mode 100644 index 0000000..f610e70 --- /dev/null +++ b/dist/dev/mp-weixin/components/hs-day-picker/hs-day-picker.js @@ -0,0 +1,70 @@ +"use strict"; +const common_vendor = require("../../common/vendor.js"); +const common_libraries_day = require("../../common/libraries/day.js"); +if (!Array) { + const _easycom_uni_icons2 = common_vendor.resolveComponent("uni-icons"); + _easycom_uni_icons2(); +} +const _easycom_uni_icons = () => "../../uni_modules/uni-icons/components/uni-icons/uni-icons.js"; +if (!Math) { + _easycom_uni_icons(); +} +const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({ + __name: "hs-day-picker", + props: [ + "Enums", + "title", + "pickerIndex", + "value", + "borderTop", + "required", + "valueModel", + "icon", + "iconSize", + "mode" + ], + emits: ["change", "update:valueModel"], + setup(__props, { emit }) { + const props = __props; + const selectValue = common_vendor.ref(""); + const onChange = (e) => { + var _a, _b, _c; + selectValue.value = (_a = e == null ? void 0 : e.detail) == null ? void 0 : _a.value; + emit("update:valueModel", (_b = e == null ? void 0 : e.detail) == null ? void 0 : _b.value); + emit("change", (_c = e == null ? void 0 : e.detail) == null ? void 0 : _c.value); + }; + common_vendor.watch( + () => props == null ? void 0 : props.valueModel, + (val) => { + selectValue.value = val; + } + ); + common_vendor.onMounted(() => { + if (props == null ? void 0 : props.valueModel) { + selectValue.value = props == null ? void 0 : props.valueModel; + } else { + selectValue.value = common_libraries_day.getDay(); + emit("update:valueModel", selectValue.value); + } + }); + return (_ctx, _cache) => { + return common_vendor.e({ + a: common_vendor.t(selectValue.value), + b: props == null ? void 0 : props.icon + }, (props == null ? void 0 : props.icon) ? { + c: common_vendor.p({ + type: props == null ? void 0 : props.icon, + size: (props == null ? void 0 : props.iconSize) || 19, + color: "#555" + }) + } : {}, { + d: (props == null ? void 0 : props.mode) || "date", + e: common_vendor.o(onChange), + f: common_vendor.unref(common_libraries_day.getDay)(-3), + g: common_vendor.unref(common_libraries_day.getDay)() + }); + }; + } +}); +const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-7a35584e"], ["__file", "/Users/zsq/Sources/github/2025property-pay/pay-employee/src/components/hs-day-picker/hs-day-picker.vue"]]); +wx.createComponent(Component); diff --git a/dist/dev/mp-weixin/components/hs-day-picker/hs-day-picker.json b/dist/dev/mp-weixin/components/hs-day-picker/hs-day-picker.json new file mode 100644 index 0000000..2caa312 --- /dev/null +++ b/dist/dev/mp-weixin/components/hs-day-picker/hs-day-picker.json @@ -0,0 +1,6 @@ +{ + "component": true, + "usingComponents": { + "uni-icons": "../../uni_modules/uni-icons/components/uni-icons/uni-icons" + } +} \ No newline at end of file diff --git a/dist/dev/mp-weixin/components/hs-day-picker/hs-day-picker.wxml b/dist/dev/mp-weixin/components/hs-day-picker/hs-day-picker.wxml new file mode 100644 index 0000000..e497916 --- /dev/null +++ b/dist/dev/mp-weixin/components/hs-day-picker/hs-day-picker.wxml @@ -0,0 +1 @@ +{{a}} \ No newline at end of file diff --git a/dist/dev/mp-weixin/components/hs-day-picker/hs-day-picker.wxss b/dist/dev/mp-weixin/components/hs-day-picker/hs-day-picker.wxss new file mode 100644 index 0000000..ae3d912 --- /dev/null +++ b/dist/dev/mp-weixin/components/hs-day-picker/hs-day-picker.wxss @@ -0,0 +1,9 @@ +.nchl_day_picker.data-v-7a35584e { + color: #333; + font-size: 28rpx; + display: flex; + align-items: center; +} +.nchl_day_picker text.data-v-7a35584e { + padding-right: 10rpx; +} \ No newline at end of file diff --git a/dist/dev/mp-weixin/components/hs-popup-building/hs-popup-building.js b/dist/dev/mp-weixin/components/hs-popup-building/hs-popup-building.js new file mode 100644 index 0000000..d238add --- /dev/null +++ b/dist/dev/mp-weixin/components/hs-popup-building/hs-popup-building.js @@ -0,0 +1,112 @@ +"use strict"; +const common_vendor = require("../../common/vendor.js"); +const common_libraries_apiLoading = require("../../common/libraries/apiLoading.js"); +const common_libraries_naviHelper = require("../../common/libraries/naviHelper.js"); +const gen_Apis = require("../../gen/Apis.js"); +require("../../common/libraries/request.js"); +require("../../common/store/useWeAppAuthStore.js"); +require("../../common/store/useWatermarkStore.js"); +require("../../common/store/useWorkStore.js"); +if (!Array) { + const _easycom_uni_icons2 = common_vendor.resolveComponent("uni-icons"); + const _easycom_hs_popup2 = common_vendor.resolveComponent("hs-popup"); + (_easycom_uni_icons2 + _easycom_hs_popup2)(); +} +const _easycom_uni_icons = () => "../../uni_modules/uni-icons/components/uni-icons/uni-icons.js"; +const _easycom_hs_popup = () => "../hs-popup/hs-popup.js"; +if (!Math) { + (_easycom_uni_icons + _easycom_hs_popup)(); +} +const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({ + __name: "hs-popup-building", + props: ["Apis", "baseStyle", "params"], + emits: ["close", "change"], + setup(__props, { emit }) { + const props = __props; + const selectEd = common_vendor.ref({ name: "全部楼栋", id: 0 }); + const formData = common_vendor.ref({ page: 1 }); + const pickerList = common_vendor.ref([]); + common_vendor.ref({}); + const popupShow = common_vendor.ref(false); + const onPopupShow = () => { + var _a; + console.log(props == null ? void 0 : props.params, "成都市 "); + if (!popupShow.value && ((_a = props == null ? void 0 : props.params) == null ? void 0 : _a.asset_projects_id)) { + popupShow.value = !popupShow.value; + getPickerList(); + } else { + common_libraries_naviHelper.showToast("请先选择项目!"); + } + }; + const getPickerList = () => { + var _a, _b, _c; + common_libraries_apiLoading.getApiLoading((_c = (_b = (_a = gen_Apis.Apis) == null ? void 0 : _a.Asset) == null ? void 0 : _b.AssetHouses) == null ? void 0 : _c.SelectBuilding, { ...formData.value, ...props == null ? void 0 : props.params }).then((res) => { + pickerList.value = res == null ? void 0 : res.data; + console.log(res); + }); + }; + const handleonClose = () => { + popupShow.value = !popupShow.value; + }; + const onSelectMerchant = (i) => { + selectEd.value = i; + emit("change", { asset_buildings_id: i == null ? void 0 : i.id }); + handleonClose(); + }; + const handleClose = () => { + selectEd.value = { name: "全部楼栋", id: 0 }; + emit("change", { asset_buildings_id: void 0 }); + }; + return (_ctx, _cache) => { + var _a, _b, _c, _d, _e; + return common_vendor.e({ + a: common_vendor.t((_a = selectEd.value) == null ? void 0 : _a.name), + b: common_vendor.s((props == null ? void 0 : props.baseStyle) || {}), + c: ((_b = selectEd.value) == null ? void 0 : _b.name) === "全部楼栋" + }, ((_c = selectEd.value) == null ? void 0 : _c.name) === "全部楼栋" ? { + d: common_vendor.p({ + type: "down", + color: "#333", + size: "12" + }) + } : {}, { + e: common_vendor.o(onPopupShow), + f: ((_d = selectEd.value) == null ? void 0 : _d.name) !== "全部楼栋" + }, ((_e = selectEd.value) == null ? void 0 : _e.name) !== "全部楼栋" ? { + g: common_vendor.p({ + type: "close", + color: "#666", + size: "18" + }), + h: common_vendor.o(handleClose) + } : {}, { + i: common_vendor.f(pickerList.value, (i, index, i0) => { + var _a2, _b2; + return common_vendor.e({ + a: common_vendor.t(i == null ? void 0 : i.name), + b: ((_a2 = selectEd.value) == null ? void 0 : _a2.id) === (i == null ? void 0 : i.id) + }, ((_b2 = selectEd.value) == null ? void 0 : _b2.id) === (i == null ? void 0 : i.id) ? { + c: "96fc7dbc-3-" + i0 + ",96fc7dbc-2", + d: common_vendor.p({ + type: "checkmarkempty", + size: "20", + color: "#2A7EFB" + }) + } : {}, { + e: `key_${index}`, + f: common_vendor.o(($event) => onSelectMerchant(i), `key_${index}`) + }); + }), + j: common_vendor.o(handleonClose), + k: common_vendor.p({ + show: popupShow.value, + mode: "bottom", + closeable: true, + round: 20 + }) + }); + }; + } +}); +const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-96fc7dbc"], ["__file", "/Users/zsq/Sources/github/2025property-pay/pay-employee/src/components/hs-popup-building/hs-popup-building.vue"]]); +wx.createComponent(Component); diff --git a/dist/dev/mp-weixin/components/hs-popup-building/hs-popup-building.json b/dist/dev/mp-weixin/components/hs-popup-building/hs-popup-building.json new file mode 100644 index 0000000..18956ef --- /dev/null +++ b/dist/dev/mp-weixin/components/hs-popup-building/hs-popup-building.json @@ -0,0 +1,7 @@ +{ + "component": true, + "usingComponents": { + "uni-icons": "../../uni_modules/uni-icons/components/uni-icons/uni-icons", + "hs-popup": "../hs-popup/hs-popup" + } +} \ No newline at end of file diff --git a/dist/dev/mp-weixin/components/hs-popup-building/hs-popup-building.wxml b/dist/dev/mp-weixin/components/hs-popup-building/hs-popup-building.wxml new file mode 100644 index 0000000..a373be8 --- /dev/null +++ b/dist/dev/mp-weixin/components/hs-popup-building/hs-popup-building.wxml @@ -0,0 +1 @@ +{{a}} 选择楼栋 {{i.a}} \ No newline at end of file diff --git a/dist/dev/mp-weixin/components/hs-popup-building/hs-popup-building.wxss b/dist/dev/mp-weixin/components/hs-popup-building/hs-popup-building.wxss new file mode 100644 index 0000000..7dc7feb --- /dev/null +++ b/dist/dev/mp-weixin/components/hs-popup-building/hs-popup-building.wxss @@ -0,0 +1,63 @@ +.hs_modal_picker.data-v-96fc7dbc { + display: flex; + align-items: center; + justify-content: space-between; +} +.popup_merchant_select_body.data-v-96fc7dbc { + background-color: #fff; + padding-bottom: calc(48px + constant(safe-area-inset-bottom)); + padding-bottom: calc(48px + env(safe-area-inset-bottom)); + border-top-left-radius: 20rpx; + border-top-right-radius: 20rpx; + overflow: hidden; +} +.popup_merchant_select_body .popup_merchant_select_title.data-v-96fc7dbc { + text-align: center; + padding: 30rpx 0; + font-size: 30rpx; + background-color: #f8f8f8; + border-bottom: 1rpx solid #eee; +} +.popup_merchant_select_body .scroll-Y.data-v-96fc7dbc { + width: 100%; + height: 660rpx; +} +.popup_merchant_select_body .popup_merchant_body.data-v-96fc7dbc { + font-size: 30rpx; + color: #333; +} +.popup_merchant_select_body .popup_merchant_body .merchant_item.data-v-96fc7dbc { + padding: 30rpx; + border-bottom: 1rpx solid #f8f8f8; + display: flex; + justify-content: space-between; + align-items: center; +} +.popup_merchant_select_body .popup_merchant_footer.data-v-96fc7dbc { + display: flex; + align-items: center; + justify-content: space-between; + padding: 30rpx 50rpx; +} +.popup_merchant_select_body .popup_merchant_footer .btn.data-v-96fc7dbc { + flex: 1; +} +.popup_merchant_select_body .popup_merchant_footer .btn.data-v-96fc7dbc:last-child { + margin-left: 30rpx; +} +.select_day_btn.data-v-96fc7dbc { + display: flex; + align-items: center; + border-radius: 50rpx; + text-align: center; + font-size: 28rpx; + padding: 14rpx 0; + color: #666; +} +.select_day_btn .name.data-v-96fc7dbc { + white-space: nowrap; + overflow: hidden; + text-overflow: ellipsis; + padding-right: 10rpx; + max-width: 180rpx; +} \ No newline at end of file diff --git a/dist/dev/mp-weixin/components/hs-popup-employees/hs-popup-employees.js b/dist/dev/mp-weixin/components/hs-popup-employees/hs-popup-employees.js new file mode 100644 index 0000000..784fe56 --- /dev/null +++ b/dist/dev/mp-weixin/components/hs-popup-employees/hs-popup-employees.js @@ -0,0 +1,88 @@ +"use strict"; +const common_vendor = require("../../common/vendor.js"); +const common_libraries_apiLoading = require("../../common/libraries/apiLoading.js"); +const gen_Apis = require("../../gen/Apis.js"); +require("../../common/libraries/request.js"); +require("../../common/store/useWeAppAuthStore.js"); +require("../../common/store/useWatermarkStore.js"); +require("../../common/store/useWorkStore.js"); +if (!Array) { + const _easycom_hs_cell2 = common_vendor.resolveComponent("hs-cell"); + const _easycom_uni_icons2 = common_vendor.resolveComponent("uni-icons"); + const _easycom_hs_popup2 = common_vendor.resolveComponent("hs-popup"); + (_easycom_hs_cell2 + _easycom_uni_icons2 + _easycom_hs_popup2)(); +} +const _easycom_hs_cell = () => "../hs-cell/hs-cell.js"; +const _easycom_uni_icons = () => "../../uni_modules/uni-icons/components/uni-icons/uni-icons.js"; +const _easycom_hs_popup = () => "../hs-popup/hs-popup.js"; +if (!Math) { + (_easycom_hs_cell + _easycom_uni_icons + _easycom_hs_popup)(); +} +const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({ + __name: "hs-popup-employees", + props: ["Apis", "title"], + emits: ["close", "change", "update:valueModel"], + setup(__props, { emit }) { + const selectEd = common_vendor.ref({ label: "", value: 0 }); + const pickerList = common_vendor.ref([]); + const popupShow = common_vendor.ref(false); + const onPopupShow = () => { + popupShow.value = !popupShow.value; + if (popupShow.value) { + getPickerList(); + } + }; + const getPickerList = () => { + common_libraries_apiLoading.getApiLoading(gen_Apis.Apis.Company.CompanyEmployees.Select, {}).then((res) => { + pickerList.value = res == null ? void 0 : res.data; + console.log(res); + }); + }; + const onSelectMerchant = (i) => { + selectEd.value = i; + emit("change", i); + emit("update:valueModel", i == null ? void 0 : i.value); + onPopupShow(); + }; + return (_ctx, _cache) => { + var _a; + return { + a: common_vendor.o(onPopupShow), + b: common_vendor.p({ + title: __props.title, + value: ((_a = selectEd.value) == null ? void 0 : _a.label) || "", + isLink: true, + isPlaceholder: true, + borderTop: true, + required: true + }), + c: common_vendor.f(pickerList.value, (i, index, i0) => { + var _a2, _b; + return common_vendor.e({ + a: common_vendor.t(i == null ? void 0 : i.label), + b: ((_a2 = selectEd.value) == null ? void 0 : _a2.value) === (i == null ? void 0 : i.value) + }, ((_b = selectEd.value) == null ? void 0 : _b.value) === (i == null ? void 0 : i.value) ? { + c: "94efb991-2-" + i0 + ",94efb991-1", + d: common_vendor.p({ + type: "checkmarkempty", + size: "20", + color: "#345CA1" + }) + } : {}, { + e: `key_${index}`, + f: common_vendor.o(($event) => onSelectMerchant(i), `key_${index}`) + }); + }), + d: common_vendor.o(onPopupShow), + e: common_vendor.p({ + show: popupShow.value, + mode: "bottom", + closeable: true, + round: 20 + }) + }; + }; + } +}); +const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-94efb991"], ["__file", "/Users/zsq/Sources/github/2025property-pay/pay-employee/src/components/hs-popup-employees/hs-popup-employees.vue"]]); +wx.createComponent(Component); diff --git a/dist/dev/mp-weixin/components/hs-popup-employees/hs-popup-employees.json b/dist/dev/mp-weixin/components/hs-popup-employees/hs-popup-employees.json new file mode 100644 index 0000000..80065f8 --- /dev/null +++ b/dist/dev/mp-weixin/components/hs-popup-employees/hs-popup-employees.json @@ -0,0 +1,8 @@ +{ + "component": true, + "usingComponents": { + "hs-cell": "../hs-cell/hs-cell", + "uni-icons": "../../uni_modules/uni-icons/components/uni-icons/uni-icons", + "hs-popup": "../hs-popup/hs-popup" + } +} \ No newline at end of file diff --git a/dist/dev/mp-weixin/components/hs-popup-employees/hs-popup-employees.wxml b/dist/dev/mp-weixin/components/hs-popup-employees/hs-popup-employees.wxml new file mode 100644 index 0000000..7185f95 --- /dev/null +++ b/dist/dev/mp-weixin/components/hs-popup-employees/hs-popup-employees.wxml @@ -0,0 +1 @@ + 选择员工 {{i.a}} \ No newline at end of file diff --git a/dist/dev/mp-weixin/components/hs-popup-employees/hs-popup-employees.wxss b/dist/dev/mp-weixin/components/hs-popup-employees/hs-popup-employees.wxss new file mode 100644 index 0000000..c9779bf --- /dev/null +++ b/dist/dev/mp-weixin/components/hs-popup-employees/hs-popup-employees.wxss @@ -0,0 +1,58 @@ +.popup_merchant_select_body.data-v-94efb991 { + background-color: #fff; + padding-bottom: calc(48px + constant(safe-area-inset-bottom)); + padding-bottom: calc(48px + env(safe-area-inset-bottom)); + border-top-left-radius: 20rpx; + border-top-right-radius: 20rpx; + overflow: hidden; +} +.popup_merchant_select_body .popup_merchant_select_title.data-v-94efb991 { + text-align: center; + padding: 30rpx 0; + font-size: 30rpx; + background-color: #f8f8f8; + border-bottom: 1rpx solid #eee; +} +.popup_merchant_select_body .scroll-Y.data-v-94efb991 { + width: 100%; + height: 660rpx; +} +.popup_merchant_select_body .popup_merchant_body.data-v-94efb991 { + font-size: 30rpx; + color: #333; +} +.popup_merchant_select_body .popup_merchant_body .merchant_item.data-v-94efb991 { + padding: 30rpx; + border-bottom: 1rpx solid #f8f8f8; + display: flex; + justify-content: space-between; + align-items: center; +} +.popup_merchant_select_body .popup_merchant_footer.data-v-94efb991 { + display: flex; + align-items: center; + justify-content: space-between; + padding: 30rpx 50rpx; +} +.popup_merchant_select_body .popup_merchant_footer .btn.data-v-94efb991 { + flex: 1; +} +.popup_merchant_select_body .popup_merchant_footer .btn.data-v-94efb991:last-child { + margin-left: 30rpx; +} +.select_day_btn.data-v-94efb991 { + display: flex; + align-items: center; + background-color: #eee; + border-radius: 50rpx; + text-align: center; + font-size: 28rpx; + padding: 14rpx 20rpx; +} +.select_day_btn .name.data-v-94efb991 { + white-space: nowrap; + overflow: hidden; + text-overflow: ellipsis; + padding-right: 10rpx; + max-width: 180rpx; +} \ No newline at end of file diff --git a/dist/dev/mp-weixin/components/hs-popup-project/hs-popup-project.js b/dist/dev/mp-weixin/components/hs-popup-project/hs-popup-project.js new file mode 100644 index 0000000..fed4a2a --- /dev/null +++ b/dist/dev/mp-weixin/components/hs-popup-project/hs-popup-project.js @@ -0,0 +1,120 @@ +"use strict"; +const common_vendor = require("../../common/vendor.js"); +const common_libraries_apiLoading = require("../../common/libraries/apiLoading.js"); +const gen_Apis = require("../../gen/Apis.js"); +require("../../common/libraries/request.js"); +require("../../common/store/useWeAppAuthStore.js"); +require("../../common/store/useWatermarkStore.js"); +require("../../common/store/useWorkStore.js"); +if (!Array) { + const _easycom_uni_icons2 = common_vendor.resolveComponent("uni-icons"); + const _easycom_hs_scroll_view2 = common_vendor.resolveComponent("hs-scroll-view"); + const _easycom_hs_popup2 = common_vendor.resolveComponent("hs-popup"); + (_easycom_uni_icons2 + _easycom_hs_scroll_view2 + _easycom_hs_popup2)(); +} +const _easycom_uni_icons = () => "../../uni_modules/uni-icons/components/uni-icons/uni-icons.js"; +const _easycom_hs_scroll_view = () => "../hs-scroll-view/hs-scroll-view.js"; +const _easycom_hs_popup = () => "../hs-popup/hs-popup.js"; +if (!Math) { + (_easycom_uni_icons + _easycom_hs_scroll_view + _easycom_hs_popup)(); +} +const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({ + __name: "hs-popup-project", + props: ["Apis", "baseStyle"], + emits: ["close", "change"], + setup(__props, { emit }) { + const props = __props; + const formData = common_vendor.ref({ page: 1 }); + const meta = common_vendor.ref({}); + const selectEd = common_vendor.ref({ name: "全部项目", id: 0 }); + const pickerList = common_vendor.ref([]); + const popupShow = common_vendor.ref(false); + const onPopupShow = () => { + popupShow.value = !popupShow.value; + if (popupShow.value) { + formData.value.page = 1; + pickerList.value = []; + getPickerList(); + } + }; + const handleScrollLower = (e) => { + formData.value.page = (e == null ? void 0 : e.page) || 1; + getPickerList(); + }; + const getPickerList = () => { + var _a, _b, _c; + common_libraries_apiLoading.getApiLoading((_c = (_b = (_a = gen_Apis.Apis) == null ? void 0 : _a.Asset) == null ? void 0 : _b.AssetHouses) == null ? void 0 : _c.SelectProject, formData.value).then((res) => { + pickerList.value = [...pickerList.value, ...res == null ? void 0 : res.data]; + meta.value = res == null ? void 0 : res.meta; + console.log(res); + }); + }; + const onSelectMerchant = (i) => { + selectEd.value = i; + emit("change", { asset_projects_id: i == null ? void 0 : i.id }); + popupShow.value = !popupShow.value; + }; + const handleClose = () => { + selectEd.value = { name: "全部项目", id: 0 }; + emit("change", { asset_projects_id: void 0 }); + }; + return (_ctx, _cache) => { + var _a, _b, _c, _d, _e; + return common_vendor.e({ + a: common_vendor.t((_a = selectEd.value) == null ? void 0 : _a.name), + b: common_vendor.s((props == null ? void 0 : props.baseStyle) || {}), + c: ((_b = selectEd.value) == null ? void 0 : _b.name) === "全部项目" + }, ((_c = selectEd.value) == null ? void 0 : _c.name) === "全部项目" ? { + d: common_vendor.p({ + type: "down", + color: "#333", + size: "12" + }) + } : {}, { + e: common_vendor.o(onPopupShow), + f: ((_d = selectEd.value) == null ? void 0 : _d.name) !== "全部项目" + }, ((_e = selectEd.value) == null ? void 0 : _e.name) !== "全部项目" ? { + g: common_vendor.p({ + type: "close", + color: "#666", + size: "18" + }), + h: common_vendor.o(handleClose) + } : {}, { + i: common_vendor.f(pickerList.value, (i, index, i0) => { + var _a2, _b2; + return common_vendor.e({ + a: common_vendor.t(i == null ? void 0 : i.name), + b: common_vendor.t(i == null ? void 0 : i.province), + c: common_vendor.t(i == null ? void 0 : i.city), + d: common_vendor.t(i == null ? void 0 : i.area), + e: ((_a2 = selectEd.value) == null ? void 0 : _a2.id) === (i == null ? void 0 : i.id) + }, ((_b2 = selectEd.value) == null ? void 0 : _b2.id) === (i == null ? void 0 : i.id) ? { + f: "7ecd4980-4-" + i0 + ",7ecd4980-3", + g: common_vendor.p({ + type: "checkmarkempty", + size: "20", + color: "#2A7EFB" + }) + } : {}, { + h: `key_${index}`, + i: common_vendor.o(($event) => onSelectMerchant(i), `key_${index}`) + }); + }), + j: common_vendor.o(handleScrollLower), + k: common_vendor.p({ + meta: meta.value + }), + l: common_vendor.o(onPopupShow), + m: common_vendor.p({ + show: popupShow.value, + mode: "bottom", + closeable: true, + round: 20 + }) + }); + }; + } +}); +const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-7ecd4980"], ["__file", "/Users/zsq/Sources/github/2025property-pay/pay-employee/src/components/hs-popup-project/hs-popup-project.vue"]]); +wx.createComponent(Component); diff --git a/dist/dev/mp-weixin/components/hs-popup-project/hs-popup-project.json b/dist/dev/mp-weixin/components/hs-popup-project/hs-popup-project.json new file mode 100644 index 0000000..82b3ccb --- /dev/null +++ b/dist/dev/mp-weixin/components/hs-popup-project/hs-popup-project.json @@ -0,0 +1,8 @@ +{ + "component": true, + "usingComponents": { + "uni-icons": "../../uni_modules/uni-icons/components/uni-icons/uni-icons", + "hs-scroll-view": "../hs-scroll-view/hs-scroll-view", + "hs-popup": "../hs-popup/hs-popup" + } +} \ No newline at end of file diff --git a/dist/dev/mp-weixin/components/hs-popup-project/hs-popup-project.wxml b/dist/dev/mp-weixin/components/hs-popup-project/hs-popup-project.wxml new file mode 100644 index 0000000..f6b66bb --- /dev/null +++ b/dist/dev/mp-weixin/components/hs-popup-project/hs-popup-project.wxml @@ -0,0 +1 @@ +{{a}} 选择项目 {{i.a}} {{i.b}}{{i.c}}{{i.d}} \ No newline at end of file diff --git a/dist/dev/mp-weixin/components/hs-popup-project/hs-popup-project.wxss b/dist/dev/mp-weixin/components/hs-popup-project/hs-popup-project.wxss new file mode 100644 index 0000000..d78fab7 --- /dev/null +++ b/dist/dev/mp-weixin/components/hs-popup-project/hs-popup-project.wxss @@ -0,0 +1,67 @@ +.hs_modal_picker.data-v-7ecd4980 { + display: flex; + align-items: center; + justify-content: space-between; +} +.popup_merchant_select_body.data-v-7ecd4980 { + background-color: #fff; + padding-bottom: calc(48px + constant(safe-area-inset-bottom)); + padding-bottom: calc(48px + env(safe-area-inset-bottom)); + border-top-left-radius: 20rpx; + border-top-right-radius: 20rpx; + overflow: hidden; +} +.popup_merchant_select_body .popup_merchant_select_title.data-v-7ecd4980 { + text-align: center; + padding: 30rpx 0; + font-size: 30rpx; + background-color: #f8f8f8; + border-bottom: 1rpx solid #eee; +} +.popup_merchant_select_body .scroll-Y.data-v-7ecd4980 { + width: 100%; + height: 660rpx; +} +.popup_merchant_select_body .popup_merchant_body.data-v-7ecd4980 { + font-size: 30rpx; + color: #333; +} +.popup_merchant_select_body .popup_merchant_body .merchant_item.data-v-7ecd4980 { + padding: 30rpx; + border-bottom: 1rpx solid #f8f8f8; + display: flex; + justify-content: space-between; + align-items: center; +} +.popup_merchant_select_body .popup_merchant_body .address.data-v-7ecd4980 { + font-size: 24rpx; + color: #999; +} +.popup_merchant_select_body .popup_merchant_footer.data-v-7ecd4980 { + display: flex; + align-items: center; + justify-content: space-between; + padding: 30rpx 50rpx; +} +.popup_merchant_select_body .popup_merchant_footer .btn.data-v-7ecd4980 { + flex: 1; +} +.popup_merchant_select_body .popup_merchant_footer .btn.data-v-7ecd4980:last-child { + margin-left: 30rpx; +} +.select_day_btn.data-v-7ecd4980 { + display: flex; + align-items: center; + border-radius: 50rpx; + text-align: center; + font-size: 28rpx; + padding: 14rpx 0; + color: #666; +} +.select_day_btn .name.data-v-7ecd4980 { + white-space: nowrap; + overflow: hidden; + text-overflow: ellipsis; + padding-right: 10rpx; + max-width: 180rpx; +} \ No newline at end of file diff --git a/dist/dev/mp-weixin/components/hs-popup/hs-popup.wxml b/dist/dev/mp-weixin/components/hs-popup/hs-popup.wxml index 8476f4e..ce2aa5c 100644 --- a/dist/dev/mp-weixin/components/hs-popup/hs-popup.wxml +++ b/dist/dev/mp-weixin/components/hs-popup/hs-popup.wxml @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/dist/dev/mp-weixin/components/hs-popup/hs-popup.wxss b/dist/dev/mp-weixin/components/hs-popup/hs-popup.wxss index d61676d..774a75b 100644 --- a/dist/dev/mp-weixin/components/hs-popup/hs-popup.wxss +++ b/dist/dev/mp-weixin/components/hs-popup/hs-popup.wxss @@ -1,3 +1,9 @@ .data-v-775dba8e .u-transition { padding-bottom: calc(env(safe-area-inset-bottom) + 48px) !important; +} +.popup_slot_content.data-v-775dba8e { + border-top-left-radius: 30rpx; + border-top-right-radius: 30rpx; + overflow: hidden; + background: linear-gradient(180deg, rgba(208, 229, 255, 0.44) 0%, rgba(255, 255, 255, 0) 46%), linear-gradient(151deg, #d3d7ff 0%, rgba(255, 255, 255, 0) 22%), linear-gradient(199deg, #dffff3 0%, #f7f7f7 23%); } \ No newline at end of file diff --git a/dist/dev/mp-weixin/components/hs-radio-picker-accounts/hs-radio-picker-accounts.js b/dist/dev/mp-weixin/components/hs-radio-picker-accounts/hs-radio-picker-accounts.js new file mode 100644 index 0000000..e7a67de --- /dev/null +++ b/dist/dev/mp-weixin/components/hs-radio-picker-accounts/hs-radio-picker-accounts.js @@ -0,0 +1,93 @@ +"use strict"; +const common_vendor = require("../../common/vendor.js"); +const common_libraries_apiLoading = require("../../common/libraries/apiLoading.js"); +const gen_Apis = require("../../gen/Apis.js"); +require("../../common/libraries/request.js"); +require("../../common/store/useWeAppAuthStore.js"); +require("../../common/store/useWatermarkStore.js"); +require("../../common/store/useWorkStore.js"); +if (!Array) { + const _easycom_uni_icons2 = common_vendor.resolveComponent("uni-icons"); + _easycom_uni_icons2(); +} +const _easycom_uni_icons = () => "../../uni_modules/uni-icons/components/uni-icons/uni-icons.js"; +if (!Math) { + _easycom_uni_icons(); +} +const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({ + __name: "hs-radio-picker-accounts", + props: [ + "title", + "required", + "borderTop", + "isLink", + "tip", + "value", + "url", + "isPlaceholder", + "padding", + "des", + "rightStyle", + "titleStyle", + "disabled", + "key", + "placeholder", + "params" + ], + emits: ["change", "update:valueModel"], + setup(__props, { emit }) { + const props = __props; + const borderStyle = "1rpx solid #eee"; + const paddingStyle = "15rpx 0"; + const pickerList = common_vendor.ref([]); + const selectValue = common_vendor.ref(""); + const onChange = (e) => { + let selectData = pickerList.value[e == null ? void 0 : e.detail.value]; + selectValue.value = selectData == null ? void 0 : selectData.name; + emit("update:valueModel", (selectData == null ? void 0 : selectData.id) || ""); + emit("change", selectData); + }; + const getPickerList = () => { + common_libraries_apiLoading.getApiLoading(gen_Apis.Apis.Company.CompanyProjectReceiptAccounts.List, (props == null ? void 0 : props.params) || {}).then((res) => { + var _a; + (_a = res == null ? void 0 : res.data) == null ? void 0 : _a.map((i) => { + var _a2, _b, _c, _d, _e; + i.name = `${(_a2 = i == null ? void 0 : i.receipt_account) == null ? void 0 : _a2.company_name}/${(_b = i == null ? void 0 : i.receipt_account) == null ? void 0 : _b.company_bank}/${((_c = i == null ? void 0 : i.receipt_account) == null ? void 0 : _c.company_account) ? (_e = (_d = i == null ? void 0 : i.receipt_account) == null ? void 0 : _d.company_account) == null ? void 0 : _e.slice(-4) : ""}`; + }); + pickerList.value = res == null ? void 0 : res.data; + console.log(res); + }); + }; + common_vendor.onMounted(() => { + getPickerList(); + }); + return (_ctx, _cache) => { + return common_vendor.e({ + a: common_vendor.t((props == null ? void 0 : props.title) || "标题"), + b: __props.required + }, __props.required ? {} : {}, { + c: common_vendor.s(props.titleStyle), + d: selectValue.value + }, selectValue.value ? { + e: common_vendor.t(selectValue.value) + } : { + f: common_vendor.t((props == null ? void 0 : props.placeholder) || "请选择") + }, { + g: common_vendor.p({ + type: "right", + color: "#333", + size: "12" + }), + h: common_vendor.s(props.rightStyle), + i: props.borderTop ? borderStyle : "", + j: (props == null ? void 0 : props.padding) || paddingStyle, + k: pickerList.value, + l: (props == null ? void 0 : props.key) || "name", + m: props == null ? void 0 : props.disabled, + n: common_vendor.o(onChange) + }); + }; + } +}); +const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-7c4bf5a2"], ["__file", "/Users/zsq/Sources/github/2025property-pay/pay-employee/src/components/hs-radio-picker-accounts/hs-radio-picker-accounts.vue"]]); +wx.createComponent(Component); diff --git a/dist/dev/mp-weixin/components/hs-radio-picker-accounts/hs-radio-picker-accounts.json b/dist/dev/mp-weixin/components/hs-radio-picker-accounts/hs-radio-picker-accounts.json new file mode 100644 index 0000000..2caa312 --- /dev/null +++ b/dist/dev/mp-weixin/components/hs-radio-picker-accounts/hs-radio-picker-accounts.json @@ -0,0 +1,6 @@ +{ + "component": true, + "usingComponents": { + "uni-icons": "../../uni_modules/uni-icons/components/uni-icons/uni-icons" + } +} \ No newline at end of file diff --git a/dist/dev/mp-weixin/components/hs-radio-picker-accounts/hs-radio-picker-accounts.wxml b/dist/dev/mp-weixin/components/hs-radio-picker-accounts/hs-radio-picker-accounts.wxml new file mode 100644 index 0000000..e5b1ae2 --- /dev/null +++ b/dist/dev/mp-weixin/components/hs-radio-picker-accounts/hs-radio-picker-accounts.wxml @@ -0,0 +1 @@ +{{a}} * {{e}}{{f}} \ No newline at end of file diff --git a/dist/dev/mp-weixin/components/hs-radio-picker-accounts/hs-radio-picker-accounts.wxss b/dist/dev/mp-weixin/components/hs-radio-picker-accounts/hs-radio-picker-accounts.wxss new file mode 100644 index 0000000..890d8de --- /dev/null +++ b/dist/dev/mp-weixin/components/hs-radio-picker-accounts/hs-radio-picker-accounts.wxss @@ -0,0 +1,25 @@ +.picker_select_btn.data-v-7c4bf5a2 { + display: flex; + align-items: center; + justify-content: space-between; + font-size: 28rpx; + color: #333; +} +.picker_select_btn .title.data-v-7c4bf5a2 { + color: #333; + font-size: 30rpx; +} +.picker_select_btn .title text.data-v-7c4bf5a2 { + color: #f00; +} +.picker_select_btn .right_value.data-v-7c4bf5a2 { + flex: 1; + display: flex; + align-items: center; + justify-content: flex-end; + padding: 15rpx 0 15rpx 10rpx; + font-size: 28rpx; +} +.picker_select_btn .right_value .placeholder_style.data-v-7c4bf5a2 { + color: #ccc; +} \ No newline at end of file diff --git a/dist/dev/mp-weixin/components/hs-radio-picker-enum/hs-radio-picker-enum.js b/dist/dev/mp-weixin/components/hs-radio-picker-enum/hs-radio-picker-enum.js new file mode 100644 index 0000000..1c96e42 --- /dev/null +++ b/dist/dev/mp-weixin/components/hs-radio-picker-enum/hs-radio-picker-enum.js @@ -0,0 +1,56 @@ +"use strict"; +const common_vendor = require("../../common/vendor.js"); +if (!Array) { + const _easycom_uni_icons2 = common_vendor.resolveComponent("uni-icons"); + _easycom_uni_icons2(); +} +const _easycom_uni_icons = () => "../../uni_modules/uni-icons/components/uni-icons/uni-icons.js"; +if (!Math) { + _easycom_uni_icons(); +} +const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({ + __name: "hs-radio-picker-enum", + props: [ + "Enums", + "title", + "pickerIndex", + "value", + "borderTop", + "required", + "disabled", + "tip", + "key", + "des", + "padding", + "valueModel", + "placeholder" + ], + emits: ["change", "update:valueModel"], + setup(__props, { emit }) { + const props = __props; + const selectValue = common_vendor.ref(""); + const onChange = (e) => { + console.log("e", e, props == null ? void 0 : props.Enums); + let selectData = props == null ? void 0 : props.Enums[e == null ? void 0 : e.detail.value]; + selectValue.value = selectData == null ? void 0 : selectData.name; + emit("update:valueModel", (selectData == null ? void 0 : selectData.value) || ""); + emit("change", selectData); + }; + return (_ctx, _cache) => { + return { + a: common_vendor.t(selectValue.value || (props == null ? void 0 : props.title)), + b: common_vendor.p({ + type: "down", + color: "#333", + size: "12" + }), + c: props == null ? void 0 : props.Enums, + d: (props == null ? void 0 : props.key) || "name", + e: props == null ? void 0 : props.disabled, + f: common_vendor.o(onChange) + }; + }; + } +}); +const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-7dd7deb4"], ["__file", "/Users/zsq/Sources/github/2025property-pay/pay-employee/src/components/hs-radio-picker-enum/hs-radio-picker-enum.vue"]]); +wx.createComponent(Component); diff --git a/dist/dev/mp-weixin/components/hs-radio-picker-enum/hs-radio-picker-enum.json b/dist/dev/mp-weixin/components/hs-radio-picker-enum/hs-radio-picker-enum.json new file mode 100644 index 0000000..2caa312 --- /dev/null +++ b/dist/dev/mp-weixin/components/hs-radio-picker-enum/hs-radio-picker-enum.json @@ -0,0 +1,6 @@ +{ + "component": true, + "usingComponents": { + "uni-icons": "../../uni_modules/uni-icons/components/uni-icons/uni-icons" + } +} \ No newline at end of file diff --git a/dist/dev/mp-weixin/components/hs-radio-picker-enum/hs-radio-picker-enum.wxml b/dist/dev/mp-weixin/components/hs-radio-picker-enum/hs-radio-picker-enum.wxml new file mode 100644 index 0000000..89a42a8 --- /dev/null +++ b/dist/dev/mp-weixin/components/hs-radio-picker-enum/hs-radio-picker-enum.wxml @@ -0,0 +1 @@ +{{a}} \ No newline at end of file diff --git a/dist/dev/mp-weixin/components/hs-radio-picker-enum/hs-radio-picker-enum.wxss b/dist/dev/mp-weixin/components/hs-radio-picker-enum/hs-radio-picker-enum.wxss new file mode 100644 index 0000000..83006b3 --- /dev/null +++ b/dist/dev/mp-weixin/components/hs-radio-picker-enum/hs-radio-picker-enum.wxss @@ -0,0 +1,20 @@ +.picker_select_btn.data-v-7dd7deb4 { + padding: 14rpx 20rpx; + border-radius: 100rpx; + text-align: center; + font-size: 28rpx; + display: flex; + align-items: center; + color: #666; + margin-left: 30rpx; +} +.picker_select_btn text.data-v-7dd7deb4 { + padding-right: 10rpx; +} +.picker_select_btn .label.data-v-7dd7deb4 { + white-space: nowrap; + overflow: hidden; + text-overflow: ellipsis; + min-width: 100rpx; + max-width: 200rpx; +} \ No newline at end of file diff --git a/dist/dev/mp-weixin/components/hs-radio/hs-radio.wxss b/dist/dev/mp-weixin/components/hs-radio/hs-radio.wxss index 36185c0..09294e2 100644 --- a/dist/dev/mp-weixin/components/hs-radio/hs-radio.wxss +++ b/dist/dev/mp-weixin/components/hs-radio/hs-radio.wxss @@ -2,6 +2,7 @@ display: flex; align-items: center; flex-wrap: wrap; + padding: 5rpx 0; } .radio_body .item.data-v-252f0ac0 { padding: 0 27rpx; diff --git a/dist/dev/mp-weixin/components/hs-scroll-indicator/hs-scroll-indicator.js b/dist/dev/mp-weixin/components/hs-scroll-indicator/hs-scroll-indicator.js deleted file mode 100644 index 1f2e968..0000000 --- a/dist/dev/mp-weixin/components/hs-scroll-indicator/hs-scroll-indicator.js +++ /dev/null @@ -1,30 +0,0 @@ -"use strict"; -const common_vendor = require("../../common/vendor.js"); -const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({ - __name: "hs-scroll-indicator", - props: ["scroll_view"], - setup(__props) { - const props = __props; - let getWindowInfo = common_vendor.index.getWindowInfo(); - const scroll_left = common_vendor.ref(0); - common_vendor.watch( - () => { - var _a; - return (_a = props == null ? void 0 : props.scroll_view) == null ? void 0 : _a.scrollLeft; - }, - (e) => { - let res = props == null ? void 0 : props.scroll_view; - let maxScrollLeft = (res == null ? void 0 : res.scrollWidth) - (getWindowInfo == null ? void 0 : getWindowInfo.windowWidth); - let scrollPercentage = (res == null ? void 0 : res.scrollLeft) / maxScrollLeft * 100; - scroll_left.value = scrollPercentage / 100 * 25; - } - ); - return (_ctx, _cache) => { - return { - a: `${scroll_left.value}%` - }; - }; - } -}); -const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-b1b33646"], ["__file", "/Users/zsq/Sources/github/2025property-pay/pay-employee/src/components/hs-scroll-indicator/hs-scroll-indicator.vue"]]); -wx.createComponent(Component); diff --git a/dist/dev/mp-weixin/components/hs-scroll-indicator/hs-scroll-indicator.json b/dist/dev/mp-weixin/components/hs-scroll-indicator/hs-scroll-indicator.json deleted file mode 100644 index e8cfaaf..0000000 --- a/dist/dev/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/dev/mp-weixin/components/hs-scroll-indicator/hs-scroll-indicator.wxml b/dist/dev/mp-weixin/components/hs-scroll-indicator/hs-scroll-indicator.wxml deleted file mode 100644 index 3353965..0000000 --- a/dist/dev/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/dev/mp-weixin/components/hs-scroll-indicator/hs-scroll-indicator.wxss b/dist/dev/mp-weixin/components/hs-scroll-indicator/hs-scroll-indicator.wxss deleted file mode 100644 index e9c2fd3..0000000 --- a/dist/dev/mp-weixin/components/hs-scroll-indicator/hs-scroll-indicator.wxss +++ /dev/null @@ -1,16 +0,0 @@ -.scroll_indicator_container.data-v-b1b33646 { - width: 100%; -} -.scroll_indicator.data-v-b1b33646 { - background-color: #eee; - width: 60rpx; - margin: 0 auto; - margin-top: 15rpx; -} -.scroll_indicator .indicator.data-v-b1b33646 { - background-color: #304483; - border-radius: 100rpx; - width: 35rpx; - height: 8rpx; - position: relative; -} \ No newline at end of file diff --git a/dist/dev/mp-weixin/components/hs-scroll-view/hs-scroll-view.js b/dist/dev/mp-weixin/components/hs-scroll-view/hs-scroll-view.js new file mode 100644 index 0000000..17419ef --- /dev/null +++ b/dist/dev/mp-weixin/components/hs-scroll-view/hs-scroll-view.js @@ -0,0 +1,84 @@ +"use strict"; +const common_vendor = require("../../common/vendor.js"); +if (!Array) { + const _easycom_hs_empty2 = common_vendor.resolveComponent("hs-empty"); + const _easycom_u_loading_icon2 = common_vendor.resolveComponent("u-loading-icon"); + (_easycom_hs_empty2 + _easycom_u_loading_icon2)(); +} +const _easycom_hs_empty = () => "../hs-empty/hs-empty.js"; +const _easycom_u_loading_icon = () => "../../node-modules/uview-plus/components/u-loading-icon/u-loading-icon.js"; +if (!Math) { + (_easycom_hs_empty + _easycom_u_loading_icon)(); +} +const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({ + __name: "hs-scroll-view", + props: { + meta: { + type: Object, + default: {} + // 参数 + }, + showLoad: { + type: Boolean, + default: true + // 是否显示加载状态 + } + }, + emits: ["load"], + setup(__props, { emit }) { + const props = __props; + const loadingStatusTest = common_vendor.ref(""); + const loadingStatus = common_vendor.ref(false); + const params = common_vendor.ref({ + page: 1, + perPage: 20 + }); + common_vendor.watch( + () => { + var _a; + return (_a = props == null ? void 0 : props.meta) == null ? void 0 : _a.total; + }, + () => { + const { current_page, last_page } = props.meta; + const hasNextPage = current_page < last_page; + loadingStatus.value = hasNextPage; + loadingStatusTest.value = hasNextPage ? "上拉加载更多" : "已经到底啦~"; + console.log(props == null ? void 0 : props.meta, "meta数据变化"); + } + ); + const handleLoad = () => { + const { current_page, last_page } = props.meta; + const hasNextPage = current_page < last_page; + loadingStatus.value = hasNextPage; + loadingStatusTest.value = hasNextPage ? "上拉加载更多" : "已经到底啦~"; + if (hasNextPage) { + params.value.page = current_page + 1; + emit("load", params.value); + setTimeout(() => { + loadingStatus.value = false; + loadingStatusTest.value = ""; + }, 1e3); + } + }; + return (_ctx, _cache) => { + var _a, _b; + return common_vendor.e({ + a: !((_a = props.meta) == null ? void 0 : _a.total) + }, !((_b = props.meta) == null ? void 0 : _b.total) ? {} : common_vendor.e({ + b: common_vendor.p({ + text: loadingStatusTest.value, + mode: "circle", + size: "30rpx", + show: loadingStatus.value + }), + c: !loadingStatus.value + }, !loadingStatus.value ? { + d: common_vendor.t(loadingStatusTest.value) + } : {}), { + e: common_vendor.o(handleLoad) + }); + }; + } +}); +const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-6a6867ee"], ["__file", "/Users/zsq/Sources/github/2025property-pay/pay-employee/src/components/hs-scroll-view/hs-scroll-view.vue"]]); +wx.createComponent(Component); diff --git a/dist/dev/mp-weixin/components/hs-scroll-view/hs-scroll-view.json b/dist/dev/mp-weixin/components/hs-scroll-view/hs-scroll-view.json new file mode 100644 index 0000000..9f48e48 --- /dev/null +++ b/dist/dev/mp-weixin/components/hs-scroll-view/hs-scroll-view.json @@ -0,0 +1,7 @@ +{ + "component": true, + "usingComponents": { + "hs-empty": "../hs-empty/hs-empty", + "u-loading-icon": "../../node-modules/uview-plus/components/u-loading-icon/u-loading-icon" + } +} \ No newline at end of file diff --git a/dist/dev/mp-weixin/components/hs-scroll-view/hs-scroll-view.wxml b/dist/dev/mp-weixin/components/hs-scroll-view/hs-scroll-view.wxml new file mode 100644 index 0000000..c350d74 --- /dev/null +++ b/dist/dev/mp-weixin/components/hs-scroll-view/hs-scroll-view.wxml @@ -0,0 +1 @@ +{{d}} \ No newline at end of file diff --git a/dist/dev/mp-weixin/components/hs-scroll-view/hs-scroll-view.wxss b/dist/dev/mp-weixin/components/hs-scroll-view/hs-scroll-view.wxss new file mode 100644 index 0000000..e589e97 --- /dev/null +++ b/dist/dev/mp-weixin/components/hs-scroll-view/hs-scroll-view.wxss @@ -0,0 +1,13 @@ +.scroll-Y.data-v-6a6867ee { + width: 100%; + height: 660rpx; +} +.scrollLoadingContainer.data-v-6a6867ee { + padding: 30rpx 0; + font-size: 25rpx; + color: #999; +} +.showLoadingText.data-v-6a6867ee { + text-align: center; + padding-bottom: 30rpx; +} \ No newline at end of file diff --git a/dist/dev/mp-weixin/components/hs-tabs/hs-tabs.wxss b/dist/dev/mp-weixin/components/hs-tabs/hs-tabs.wxss index ce075fe..a939f08 100644 --- a/dist/dev/mp-weixin/components/hs-tabs/hs-tabs.wxss +++ b/dist/dev/mp-weixin/components/hs-tabs/hs-tabs.wxss @@ -13,6 +13,10 @@ height: 50rpx; line-height: 50rpx; color: #666; + margin-right: 30rpx; +} +.label:last-child { + margin-right: 0; } .actives { color: #000; diff --git a/dist/dev/mp-weixin/components/hs-up-rate/hs-up-rate.js b/dist/dev/mp-weixin/components/hs-up-rate/hs-up-rate.js new file mode 100644 index 0000000..524791c --- /dev/null +++ b/dist/dev/mp-weixin/components/hs-up-rate/hs-up-rate.js @@ -0,0 +1,34 @@ +"use strict"; +const common_vendor = require("../../common/vendor.js"); +if (!Array) { + const _easycom_up_icon2 = common_vendor.resolveComponent("up-icon"); + _easycom_up_icon2(); +} +const _easycom_up_icon = () => "../../node-modules/uview-plus/components/u-icon/u-icon.js"; +if (!Math) { + _easycom_up_icon(); +} +const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({ + __name: "hs-up-rate", + props: ["valueModel"], + setup(__props) { + const props = __props; + return (_ctx, _cache) => { + return { + a: common_vendor.f(5, (i, index, i0) => { + return { + a: index, + b: "dbea2f2b-0-" + i0, + c: common_vendor.p({ + name: "star-fill", + size: "18", + color: index < (props == null ? void 0 : props.valueModel) ? "#FFC53D" : "#F3F3F4" + }) + }; + }) + }; + }; + } +}); +const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-dbea2f2b"], ["__file", "/Users/zsq/Sources/github/2025property-pay/pay-employee/src/components/hs-up-rate/hs-up-rate.vue"]]); +wx.createComponent(Component); diff --git a/dist/dev/mp-weixin/components/hs-up-rate/hs-up-rate.json b/dist/dev/mp-weixin/components/hs-up-rate/hs-up-rate.json new file mode 100644 index 0000000..0eae915 --- /dev/null +++ b/dist/dev/mp-weixin/components/hs-up-rate/hs-up-rate.json @@ -0,0 +1,6 @@ +{ + "component": true, + "usingComponents": { + "up-icon": "../../node-modules/uview-plus/components/u-icon/u-icon" + } +} \ No newline at end of file diff --git a/dist/dev/mp-weixin/components/hs-up-rate/hs-up-rate.wxml b/dist/dev/mp-weixin/components/hs-up-rate/hs-up-rate.wxml new file mode 100644 index 0000000..df25658 --- /dev/null +++ b/dist/dev/mp-weixin/components/hs-up-rate/hs-up-rate.wxml @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/dist/dev/mp-weixin/components/hs-up-rate/hs-up-rate.wxss b/dist/dev/mp-weixin/components/hs-up-rate/hs-up-rate.wxss new file mode 100644 index 0000000..a535043 --- /dev/null +++ b/dist/dev/mp-weixin/components/hs-up-rate/hs-up-rate.wxss @@ -0,0 +1,10 @@ +.data-v-dbea2f2b .u-transition { + padding-bottom: calc(env(safe-area-inset-bottom) + 48px) !important; +} +.star_contents_body.data-v-dbea2f2b { + display: flex; + flex: 1; + gap: 10rpx; + align-items: center; + justify-content: center; +} \ No newline at end of file diff --git a/dist/dev/mp-weixin/components/hs-upload-id-card/hs-upload-id-card.js b/dist/dev/mp-weixin/components/hs-upload-id-card/hs-upload-id-card.js index d47e815..b2bd8c0 100644 --- a/dist/dev/mp-weixin/components/hs-upload-id-card/hs-upload-id-card.js +++ b/dist/dev/mp-weixin/components/hs-upload-id-card/hs-upload-id-card.js @@ -6,6 +6,7 @@ require("../../gen/Apis.js"); require("../../common/libraries/request.js"); require("../../common/store/useWeAppAuthStore.js"); require("../../common/libraries/apiLoading.js"); +require("../../common/store/useWatermarkStore.js"); require("../../common/store/useWorkStore.js"); const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({ __name: "hs-upload-id-card", diff --git a/dist/dev/mp-weixin/components/hs-upload/hs-upload.js b/dist/dev/mp-weixin/components/hs-upload/hs-upload.js index a064e95..31839aa 100644 --- a/dist/dev/mp-weixin/components/hs-upload/hs-upload.js +++ b/dist/dev/mp-weixin/components/hs-upload/hs-upload.js @@ -6,6 +6,7 @@ require("../../gen/Apis.js"); require("../../common/libraries/request.js"); require("../../common/store/useWeAppAuthStore.js"); require("../../common/libraries/apiLoading.js"); +require("../../common/store/useWatermarkStore.js"); require("../../common/store/useWorkStore.js"); if (!Array) { const _easycom_up_icon2 = common_vendor.resolveComponent("up-icon"); diff --git a/dist/dev/mp-weixin/gen/Apis.js b/dist/dev/mp-weixin/gen/Apis.js index 8a25a60..84be634 100644 --- a/dist/dev/mp-weixin/gen/Apis.js +++ b/dist/dev/mp-weixin/gen/Apis.js @@ -1,5 +1,6 @@ "use strict"; const common_libraries_request = require("../common/libraries/request.js"); +require("../common/store/useWatermarkStore.js"); require("../common/store/useWeAppAuthStore.js"); require("../common/store/useWorkStore.js"); const Apis = { @@ -56,6 +57,14 @@ const Apis = { Show(data) { return common_libraries_request.request("employee/asset/asset_houses/show", { data }); } + }, + AssetProjectAdmins: { + List(data) { + return common_libraries_request.request("employee/asset/asset_project_admins/list", { data }); + }, + Show(data) { + return common_libraries_request.request("employee/asset/asset_project_admins/show", { data }); + } } }, Banner: { @@ -139,6 +148,29 @@ const Apis = { Delete(data) { return common_libraries_request.request("employee/company/company_employee_customers/delete", { data }); } + }, + CompanyEmployees: { + Select(data) { + return common_libraries_request.request("employee/company/company_employees/select", { data }); + } + }, + CompanyProjectReceiptAccounts: { + List(data) { + return common_libraries_request.request("employee/company/company_project_receipt_accounts/list", { data }); + }, + GetDefaultReceiptAccounts(data) { + return common_libraries_request.request("employee/company/company_project_receipt_accounts/get_default_receipt_accounts", { data }); + }, + Show(data) { + return common_libraries_request.request("employee/company/company_project_receipt_accounts/show", { data }); + } + } + }, + Count: { + CommonCount: { + IndexCount() { + return common_libraries_request.request("employee/count/common_count/index_count", {}); + } } }, Customer: { @@ -181,6 +213,16 @@ const Apis = { } } }, + GoodsReleases: { + GoodsReleases: { + ScanRelease(data) { + return common_libraries_request.request("employee/goods_releases/goods_releases/scan_release", { data }); + }, + Show(data) { + return common_libraries_request.request("employee/goods_releases/goods_releases/show", { data }); + } + } + }, Grid: { GridRanges: { List(data) { @@ -270,6 +312,50 @@ const Apis = { } } }, + Meter: { + HouseMeterReadings: { + List(data) { + return common_libraries_request.request("employee/meter/house_meter_readings/list", { data }); + }, + GetMeterDetail(data) { + return common_libraries_request.request("employee/meter/house_meter_readings/get_meter_detail", { data }); + }, + Store(data) { + return common_libraries_request.request("employee/meter/house_meter_readings/store", { data }); + }, + Show(data) { + return common_libraries_request.request("employee/meter/house_meter_readings/show", { data }); + } + }, + HouseMeters: { + List(data) { + return common_libraries_request.request("employee/meter/house_meters/list", { data }); + }, + Show(data) { + return common_libraries_request.request("employee/meter/house_meters/show", { data }); + } + } + }, + Msg: { + MsgPropertyAnnouncements: { + List(data) { + return common_libraries_request.request("employee/msg/msg_property_announcements/list", { data }); + }, + Show(data) { + return common_libraries_request.request("employee/msg/msg_property_announcements/show", { data }); + } + } + }, + Visitor: { + VisitorApplies: { + Scan(data) { + return common_libraries_request.request("employee/visitor/visitor_applies/scan", { data }); + }, + Show(data) { + return common_libraries_request.request("employee/visitor/visitor_applies/show", { data }); + } + } + }, WorkOrder: { HouseWorkLogs: { List(data) { @@ -286,6 +372,9 @@ const Apis = { List(data) { return common_libraries_request.request("employee/work_order/house_work_orders/list", { data }); }, + MySubmitList(data) { + return common_libraries_request.request("employee/work_order/house_work_orders/my_submit_list", { data }); + }, GetHouseWorkOrders(data) { return common_libraries_request.request("employee/work_order/house_work_orders/get_house_work_orders", { data }); }, @@ -294,6 +383,27 @@ const Apis = { }, Show(data) { return common_libraries_request.request("employee/work_order/house_work_orders/show", { data }); + }, + GetWorkOrderPayQrCode(data) { + return common_libraries_request.request("employee/work_order/house_work_orders/get_work_order_pay_qr_code", { data }); + }, + Accept(data) { + return common_libraries_request.request("employee/work_order/house_work_orders/accept", { data }); + }, + Close(data) { + return common_libraries_request.request("employee/work_order/house_work_orders/close", { data }); + }, + UnassignedList(data) { + return common_libraries_request.request("employee/work_order/house_work_orders/unassigned_list", { data }); + }, + Receive(data) { + return common_libraries_request.request("employee/work_order/house_work_orders/receive", { data }); + }, + Assign(data) { + return common_libraries_request.request("employee/work_order/house_work_orders/assign", { data }); + }, + GetAssignPermission(data) { + return common_libraries_request.request("employee/work_order/house_work_orders/get_assign_permission", { data }); } } } diff --git a/dist/dev/mp-weixin/gen/Enums.js b/dist/dev/mp-weixin/gen/Enums.js index f7a771c..1e1af5a 100644 --- a/dist/dev/mp-weixin/gen/Enums.js +++ b/dist/dev/mp-weixin/gen/Enums.js @@ -37,13 +37,27 @@ const CustomerMomentsContentTypeEnum = { "MiniProgram": { "text": "跳小程序", "color": "#FFA500", "value": "MiniProgram" }, "Video": { "text": "视频消息", "color": "#FF69B4", "value": "Video" } }; +const GoodsReleasesPassedTypeEnum = { + "Moving": { "text": "搬家", "color": "#1890ff", "value": "Moving" }, + "Delivery": { "text": "出货", "color": "#52c41a", "value": "Delivery" }, + "Other": { "text": "其他", "color": "#faad14", "value": "Other" } +}; +const GoodsReleasesStatusEnum = { + "Pending": { "text": "待审核", "color": "#faad14", "value": "Pending" }, + "OwnerApproved": { "text": "业主已审", "color": "#1890ff", "value": "OwnerApproved" }, + "Approved": { "text": "已通过", "color": "#52c41a", "value": "Approved" }, + "Rejected": { "text": "已退回", "color": "#ff4d4f", "value": "Rejected" }, + "Released": { "text": "已放行", "color": "#722ed1", "value": "Released" } +}; const HouseBillsTypeEnum = { "PropertyFee": { "text": "物业费", "color": "#3b82f6", "value": "PropertyFee" }, "MaintenanceFund": { "text": "维修基金", "color": "#10b981", "value": "MaintenanceFund" }, "WaterFee": { "text": "水费", "color": "#06b6d4", "value": "WaterFee" }, "ElectricityFee": { "text": "电费", "color": "#f59e0b", "value": "ElectricityFee" }, "SharedWaterFee": { "text": "公摊水费", "color": "#8b5cf6", "value": "SharedWaterFee" }, - "SharedElectricityFee": { "text": "公摊电费", "color": "#ec4899", "value": "SharedElectricityFee" } + "SharedElectricityFee": { "text": "公摊电费", "color": "#ec4899", "value": "SharedElectricityFee" }, + "CarPortFee": { "text": "车位费", "color": "#f59e0b", "value": "CarPortFee" }, + "WorkOrderRepairFee": { "text": "工单维修费", "color": "#f97316", "value": "WorkOrderRepairFee" } }; const HouseCollectionRecordsCollectionResultEnum = { "PromiseToPay": { "text": "承诺缴费", "color": "#4caf50", "value": "PromiseToPay" }, @@ -70,6 +84,7 @@ const HouseOccupantsHouseRelationEnum = { "NonOwner": { "text": "非产权人", "color": "#fa8c16", "value": "NonOwner" } }; const HouseOccupantsResidentialRelationEnum = { + "PropertyOwner": { "text": "产权人", "color": "#722ed1", "value": "PropertyOwner" }, "Resident": { "text": "住户", "color": "#2db7f5", "value": "Resident" }, "PrimaryTenant": { "text": "主租人", "color": "#87d068", "value": "PrimaryTenant" }, "Tenant": { "text": "租客", "color": "#fa8c16", "value": "Tenant" } @@ -79,15 +94,6 @@ const HouseRegistersHouseStatusEnum = { "Rented": { "text": "出租", "color": "#007bff", "value": "Rented" }, "Vacant": { "text": "空置", "color": "#dc3545", "value": "Vacant" } }; -const HouseWorkOrdersComplaintTypeEnum = { - "Hygiene": { "text": "卫生环境", "color": "#ff0000", "value": "Hygiene" }, - "Greening": { "text": "绿植绿化", "color": "#00aaff", "value": "Greening" }, - "Safety": { "text": "安全问题", "color": "#ffaa00", "value": "Safety" }, - "Maintenance": { "text": "维修问题", "color": "#aa00ff", "value": "Maintenance" }, - "PropertyService": { "text": "物业服务", "color": "#00aa55", "value": "PropertyService" }, - "Staff": { "text": "工作人员", "color": "#ff00aa", "value": "Staff" }, - "Other": { "text": "其他", "color": "#aaaaaa", "value": "Other" } -}; const HouseWorkOrdersLevelEnum = { "Urgent": { "text": "紧急", "color": "#ff0000", "value": "Urgent" }, "High": { "text": "高", "color": "#ff7f00", "value": "High" }, @@ -96,11 +102,13 @@ const HouseWorkOrdersLevelEnum = { }; const HouseWorkOrdersLocationEnum = { "CommonArea": { "text": "公共区域", "color": "#ff0000", "value": "CommonArea" }, - "MyHome": { "text": "我家", "color": "#00ff00", "value": "MyHome" } + "MyHome": { "text": "房屋", "color": "#00ff00", "value": "MyHome" } }; const HouseWorkOrdersStatusEnum = { "Pending": { "text": "待处理", "color": "#FFA500", "value": "Pending" }, "Processing": { "text": "处理中", "color": "#1E90FF", "value": "Processing" }, + "PendingPayment": { "text": "待支付", "color": "#FF8C00", "value": "PendingPayment" }, + "PendingAcceptance": { "text": "待验收", "color": "#17A2B8", "value": "PendingAcceptance" }, "Completed": { "text": "已完成", "color": "#28A745", "value": "Completed" }, "Closed": { "text": "已关闭", "color": "#6C757D", "value": "Closed" } }; @@ -109,11 +117,19 @@ const HouseWorkOrdersTypeEnum = { "Incident": { "text": "报事", "color": "#00aaff", "value": "Incident" }, "Complaint": { "text": "投诉", "color": "#aa00ff", "value": "Complaint" } }; +const VisitorAppliesStatusEnum = { + "Pending": { "text": "审核中", "color": "#ff9800", "value": "Pending" }, + "Approved": { "text": "已通过", "color": "#4caf50", "value": "Approved" }, + "Rejected": { "text": "已驳回", "color": "#f44336", "value": "Rejected" }, + "Expired": { "text": "已失效", "color": "#9e9e9e", "value": "Expired" } +}; exports.AssetHousesOrientationEnum = AssetHousesOrientationEnum; exports.AssetHousesUsageEnum = AssetHousesUsageEnum; exports.CompanyEmployeeBacklogsTypeEnum = CompanyEmployeeBacklogsTypeEnum; exports.CustomerMomentsChannelEnum = CustomerMomentsChannelEnum; exports.CustomerMomentsContentTypeEnum = CustomerMomentsContentTypeEnum; +exports.GoodsReleasesPassedTypeEnum = GoodsReleasesPassedTypeEnum; +exports.GoodsReleasesStatusEnum = GoodsReleasesStatusEnum; exports.HouseBillsTypeEnum = HouseBillsTypeEnum; exports.HouseCollectionRecordsCollectionResultEnum = HouseCollectionRecordsCollectionResultEnum; exports.HouseCollectionTasksChannelEnum = HouseCollectionTasksChannelEnum; @@ -121,8 +137,8 @@ exports.HouseCollectionTasksStatusEnum = HouseCollectionTasksStatusEnum; exports.HouseOccupantsHouseRelationEnum = HouseOccupantsHouseRelationEnum; exports.HouseOccupantsResidentialRelationEnum = HouseOccupantsResidentialRelationEnum; exports.HouseRegistersHouseStatusEnum = HouseRegistersHouseStatusEnum; -exports.HouseWorkOrdersComplaintTypeEnum = HouseWorkOrdersComplaintTypeEnum; exports.HouseWorkOrdersLevelEnum = HouseWorkOrdersLevelEnum; exports.HouseWorkOrdersLocationEnum = HouseWorkOrdersLocationEnum; exports.HouseWorkOrdersStatusEnum = HouseWorkOrdersStatusEnum; exports.HouseWorkOrdersTypeEnum = HouseWorkOrdersTypeEnum; +exports.VisitorAppliesStatusEnum = VisitorAppliesStatusEnum; diff --git a/dist/dev/mp-weixin/node-modules/uview-plus/components/u-badge/u-badge.js b/dist/dev/mp-weixin/node-modules/uview-plus/components/u-badge/u-badge.js index ccde674..016f5fa 100644 --- a/dist/dev/mp-weixin/node-modules/uview-plus/components/u-badge/u-badge.js +++ b/dist/dev/mp-weixin/node-modules/uview-plus/components/u-badge/u-badge.js @@ -2,7 +2,7 @@ const common_vendor = require("../../../../common/vendor.js"); const _sfc_main = { name: "u-badge", - mixins: [common_vendor.mpMixin, common_vendor.props$10, common_vendor.mixin], + mixins: [common_vendor.mpMixin, common_vendor.props$11, common_vendor.mixin], computed: { // 是否将badge中心与父组件右上角重合 boxStyle() { diff --git a/dist/dev/mp-weixin/node-modules/uview-plus/components/u-button/u-button.js b/dist/dev/mp-weixin/node-modules/uview-plus/components/u-button/u-button.js index 3ed2726..fec6fb0 100644 --- a/dist/dev/mp-weixin/node-modules/uview-plus/components/u-button/u-button.js +++ b/dist/dev/mp-weixin/node-modules/uview-plus/components/u-button/u-button.js @@ -2,7 +2,7 @@ const common_vendor = require("../../../../common/vendor.js"); const _sfc_main = { name: "u-button", - mixins: [common_vendor.mpMixin, common_vendor.mixin, common_vendor.buttonMixin, common_vendor.openType, common_vendor.props$11], + mixins: [common_vendor.mpMixin, common_vendor.mixin, common_vendor.buttonMixin, common_vendor.openType, common_vendor.props$12], data() { return {}; }, diff --git a/dist/dev/mp-weixin/node-modules/uview-plus/components/u-link/u-link.js b/dist/dev/mp-weixin/node-modules/uview-plus/components/u-link/u-link.js index 368ff17..7ec03f7 100644 --- a/dist/dev/mp-weixin/node-modules/uview-plus/components/u-link/u-link.js +++ b/dist/dev/mp-weixin/node-modules/uview-plus/components/u-link/u-link.js @@ -2,7 +2,7 @@ const common_vendor = require("../../../../common/vendor.js"); const _sfc_main = { name: "u-link", - mixins: [common_vendor.mpMixin, common_vendor.mixin, common_vendor.props$12], + mixins: [common_vendor.mpMixin, common_vendor.mixin, common_vendor.props$13], computed: { linkStyle() { const style = { diff --git a/dist/dev/mp-weixin/node-modules/uview-plus/components/u-popup/u-popup.js b/dist/dev/mp-weixin/node-modules/uview-plus/components/u-popup/u-popup.js index 9c8fda0..db2b6e1 100644 --- a/dist/dev/mp-weixin/node-modules/uview-plus/components/u-popup/u-popup.js +++ b/dist/dev/mp-weixin/node-modules/uview-plus/components/u-popup/u-popup.js @@ -2,7 +2,7 @@ const common_vendor = require("../../../../common/vendor.js"); const _sfc_main = { name: "u-popup", - mixins: [common_vendor.mpMixin, common_vendor.mixin, common_vendor.props$13], + mixins: [common_vendor.mpMixin, common_vendor.mixin, common_vendor.props$10], data() { return { overlayDuration: this.duration + 50 diff --git a/dist/dev/mp-weixin/pages/index/components/Classification.js b/dist/dev/mp-weixin/pages/index/components/Classification.js index a70ef8b..eeee61b 100644 --- a/dist/dev/mp-weixin/pages/index/components/Classification.js +++ b/dist/dev/mp-weixin/pages/index/components/Classification.js @@ -1,27 +1,16 @@ "use strict"; const common_vendor = require("../../../common/vendor.js"); const common_libraries_userUserLogin = require("../../../common/libraries/userUserLogin.js"); +const pages_index_model = require("../model.js"); require("../../../common/libraries/request.js"); require("../../../common/store/useWeAppAuthStore.js"); require("../../../gen/Apis.js"); +require("../../../common/store/useWatermarkStore.js"); require("../../../common/store/useWorkStore.js"); require("../../../common/libraries/apiLoading.js"); -if (!Array) { - const _easycom_hs_scroll_indicator2 = common_vendor.resolveComponent("hs-scroll-indicator"); - _easycom_hs_scroll_indicator2(); -} -const _easycom_hs_scroll_indicator = () => "../../../components/hs-scroll-indicator/hs-scroll-indicator.js"; -if (!Math) { - _easycom_hs_scroll_indicator(); -} const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({ __name: "Classification", setup(__props) { - common_vendor.ref(null); - const scroll_view = common_vendor.ref({}); - const handleScroll = (e) => { - scroll_view.value = e.detail; - }; const goToPage = (url) => { var _a; if (url) { @@ -47,13 +36,29 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({ { label: "新增工单", icon: "workorder_icon.svg", - url: "/WORKORDER/add/index" + url: "/ME/work_order_home/index" }, { label: "房屋管理", icon: "house_icon.svg", url: "/CUSTOMER/list_house/index" }, + { + label: "任务中心", + icon: "task_icon.svg", + url: "/INDEX/task/list/index", + key: "houseWorkOrderCount" + }, + { + label: "仪表抄表", + icon: "meter_reading_icon.svg", + url: "/ME/instrument/list/index" + }, + { + label: "水印相机", + icon: "WatermarkCamera.svg", + url: "/INDEX/watermark_camera/index" + }, { label: "客户管理", icon: "user_icon.svg", @@ -70,29 +75,35 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({ // url: '/ME/knowledge_qa/index' // }, { - label: "入户登记", + label: "住户登记", icon: "household_registration.svg", - url: "/CUSTOMER/bind_house/index" + url: "/CUSTOMER/bind_house_form/index" }, { label: "催缴记录", icon: "collection_icon.svg", url: "/BILL/collection_record/index/index" + }, + { + label: "公告", + icon: "announcement.svg", + url: "/ME/announcement/list/index" } ]; return (_ctx, _cache) => { return { a: common_vendor.f(list, (i, index, i0) => { - return { + var _a, _b, _c, _d, _e, _f, _g, _h, _i; + return common_vendor.e({ a: `/static/svg/${i.icon}`, - b: common_vendor.t(i.label), - c: `items_${index}`, - d: common_vendor.o(($event) => goToPage(i == null ? void 0 : i.url), `items_${index}`) - }; - }), - b: common_vendor.o(handleScroll), - c: common_vendor.p({ - scroll_view: scroll_view.value + b: (i == null ? void 0 : i.key) && ((_c = (_b = (_a = common_vendor.unref(pages_index_model.useModel)) == null ? void 0 : _a.IndexCount) == null ? void 0 : _b.value) == null ? void 0 : _c[i == null ? void 0 : i.key]) + }, (i == null ? void 0 : i.key) && ((_f = (_e = (_d = common_vendor.unref(pages_index_model.useModel)) == null ? void 0 : _d.IndexCount) == null ? void 0 : _e.value) == null ? void 0 : _f[i == null ? void 0 : i.key]) ? { + c: common_vendor.t(((_i = (_h = (_g = common_vendor.unref(pages_index_model.useModel)) == null ? void 0 : _g.IndexCount) == null ? void 0 : _h.value) == null ? void 0 : _i[i == null ? void 0 : i.key]) || 0) + } : {}, { + d: common_vendor.t(i.label), + e: `items_${index}`, + f: common_vendor.o(($event) => goToPage(i == null ? void 0 : i.url), `items_${index}`) + }); }) }; }; diff --git a/dist/dev/mp-weixin/pages/index/components/Classification.json b/dist/dev/mp-weixin/pages/index/components/Classification.json index 64a4003..e8cfaaf 100644 --- a/dist/dev/mp-weixin/pages/index/components/Classification.json +++ b/dist/dev/mp-weixin/pages/index/components/Classification.json @@ -1,6 +1,4 @@ { "component": true, - "usingComponents": { - "hs-scroll-indicator": "../../../components/hs-scroll-indicator/hs-scroll-indicator" - } + "usingComponents": {} } \ No newline at end of file diff --git a/dist/dev/mp-weixin/pages/index/components/Classification.wxml b/dist/dev/mp-weixin/pages/index/components/Classification.wxml index 1c2a444..d459775 100644 --- a/dist/dev/mp-weixin/pages/index/components/Classification.wxml +++ b/dist/dev/mp-weixin/pages/index/components/Classification.wxml @@ -1 +1 @@ -{{i.b}} \ No newline at end of file +{{i.c}}{{i.d}} \ No newline at end of file diff --git a/dist/dev/mp-weixin/pages/index/components/Classification.wxss b/dist/dev/mp-weixin/pages/index/components/Classification.wxss index 6474643..8da1580 100644 --- a/dist/dev/mp-weixin/pages/index/components/Classification.wxss +++ b/dist/dev/mp-weixin/pages/index/components/Classification.wxss @@ -1,28 +1,38 @@ .class_ification.data-v-1833569a { color: #3d3d3d; - margin: 0 30rpx; - white-space: nowrap; - padding-top: 20rpx; + padding: 0 10rpx; + display: flex; + flex-wrap: wrap; } .class_ification .items.data-v-1833569a { text-align: center; - font-size: 24rpx; - display: inline-block; + font-size: 22rpx; width: 20%; + padding-top: 30rpx; } .class_ification .items .items_icon.data-v-1833569a { - background-color: #fff; - border-radius: 28rpx; height: 100rpx; width: 100rpx; display: flex; align-items: center; justify-content: center; margin: 0 auto; + position: relative; } .class_ification .items .items_icon image.data-v-1833569a { - height: 55rpx; - width: 55rpx; + height: 100%; + width: 100%; +} +.class_ification .items .items_icon .badge.data-v-1833569a { + 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 .label.data-v-1833569a { padding: 15rpx 0 0 0; diff --git a/dist/dev/mp-weixin/pages/index/components/HeaderTitle.js b/dist/dev/mp-weixin/pages/index/components/HeaderTitle.js index 09fc54e..d99744d 100644 --- a/dist/dev/mp-weixin/pages/index/components/HeaderTitle.js +++ b/dist/dev/mp-weixin/pages/index/components/HeaderTitle.js @@ -2,10 +2,10 @@ const common_vendor = require("../../../common/vendor.js"); const pages_index_model = require("../model.js"); require("../../../common/libraries/request.js"); +require("../../../common/store/useWatermarkStore.js"); const common_store_useWeAppAuthStore = require("../../../common/store/useWeAppAuthStore.js"); require("../../../common/store/useWorkStore.js"); const common_libraries_userUserLogin = require("../../../common/libraries/userUserLogin.js"); -require("../../../common/libraries/day.js"); require("../../../gen/Apis.js"); require("../../../common/libraries/apiLoading.js"); if (!Array) { diff --git a/dist/dev/mp-weixin/pages/index/components/ShowData.js b/dist/dev/mp-weixin/pages/index/components/ShowData.js index d1bb04b..8bb026a 100644 --- a/dist/dev/mp-weixin/pages/index/components/ShowData.js +++ b/dist/dev/mp-weixin/pages/index/components/ShowData.js @@ -5,9 +5,9 @@ const pages_index_model = require("../model.js"); require("../../../common/libraries/request.js"); require("../../../common/store/useWeAppAuthStore.js"); require("../../../gen/Apis.js"); +require("../../../common/store/useWatermarkStore.js"); require("../../../common/store/useWorkStore.js"); require("../../../common/libraries/apiLoading.js"); -require("../../../common/libraries/day.js"); if (!Array) { const _easycom_uni_icons2 = common_vendor.resolveComponent("uni-icons"); _easycom_uni_icons2(); diff --git a/dist/dev/mp-weixin/pages/index/components/ShowData.wxss b/dist/dev/mp-weixin/pages/index/components/ShowData.wxss index b3c4236..e578d43 100644 --- a/dist/dev/mp-weixin/pages/index/components/ShowData.wxss +++ b/dist/dev/mp-weixin/pages/index/components/ShowData.wxss @@ -1,6 +1,6 @@ .show_data_content.data-v-e5fbd9da { background-color: #fff; - margin: 30rpx; + margin: 30rpx 30rpx 0 30rpx; border-radius: 15rpx; } .show_data_card.data-v-e5fbd9da { diff --git a/dist/dev/mp-weixin/pages/index/components/TemplateWorkorder.js b/dist/dev/mp-weixin/pages/index/components/TemplateWorkorder.js index eacccbb..965e84c 100644 --- a/dist/dev/mp-weixin/pages/index/components/TemplateWorkorder.js +++ b/dist/dev/mp-weixin/pages/index/components/TemplateWorkorder.js @@ -1,7 +1,7 @@ "use strict"; const common_vendor = require("../../../common/vendor.js"); -const gen_Enums = require("../../../gen/Enums.js"); const common_libraries_day = require("../../../common/libraries/day.js"); +const gen_Enums = require("../../../gen/Enums.js"); if (!Array) { const _easycom_hs_enum_tag2 = common_vendor.resolveComponent("hs-enum-tag"); const _easycom_hs_level2 = common_vendor.resolveComponent("hs-level"); @@ -26,42 +26,48 @@ const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({ }); }; return (_ctx, _cache) => { - var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _A, _B, _C, _D, _E, _F, _G, _H, _I, _J, _K, _L, _M, _N, _O, _P, _Q, _R; + var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _A, _B, _C, _D, _E, _F, _G, _H, _I, _J, _K, _L, _M, _N, _O, _P, _Q, _R, _S, _T, _U, _V, _W, _X; return common_vendor.e({ a: common_vendor.p({ value: (_a = props == null ? void 0 : props.item) == null ? void 0 : _a.type, Enums: common_vendor.unref(gen_Enums.CompanyEmployeeBacklogsTypeEnum) }), - b: common_vendor.p({ - value: (_c = (_b = props == null ? void 0 : props.item) == null ? void 0 : _b.model) == null ? void 0 : _c.type, - Enums: common_vendor.unref(gen_Enums.HouseWorkOrdersTypeEnum) - }), + b: (_c = (_b = props == null ? void 0 : props.item) == null ? void 0 : _b.model) == null ? void 0 : _c.type + }, ((_e = (_d = props == null ? void 0 : props.item) == null ? void 0 : _d.model) == null ? void 0 : _e.type) ? { c: common_vendor.p({ - level: (_e = (_d = props == null ? void 0 : props.item) == null ? void 0 : _d.model) == null ? void 0 : _e.level - }), - d: common_vendor.p({ - value: (_g = (_f = props == null ? void 0 : props.item) == null ? void 0 : _f.model) == null ? void 0 : _g.status, + value: (_g = (_f = props == null ? void 0 : props.item) == null ? void 0 : _f.model) == null ? void 0 : _g.type, + Enums: common_vendor.unref(gen_Enums.HouseWorkOrdersTypeEnum) + }) + } : {}, { + d: (_i = (_h = props == null ? void 0 : props.item) == null ? void 0 : _h.model) == null ? void 0 : _i.level + }, ((_k = (_j = props == null ? void 0 : props.item) == null ? void 0 : _j.model) == null ? void 0 : _k.level) ? { + e: common_vendor.p({ + level: (_m = (_l = props == null ? void 0 : props.item) == null ? void 0 : _l.model) == null ? void 0 : _m.level + }) + } : {}, { + f: common_vendor.p({ + value: (_n = props == null ? void 0 : props.item) == null ? void 0 : _n.status, Enums: common_vendor.unref(gen_Enums.HouseWorkOrdersStatusEnum) }), - e: common_vendor.n(`btn_status status_${(_i = (_h = props == null ? void 0 : props.item) == null ? void 0 : _h.model) == null ? void 0 : _i.status}`), - f: ((_k = (_j = props == null ? void 0 : props.item) == null ? void 0 : _j.model) == null ? void 0 : _k.location) === "MyHome" - }, ((_m = (_l = props == null ? void 0 : props.item) == null ? void 0 : _l.model) == null ? void 0 : _m.location) === "MyHome" ? { - g: common_vendor.t((_p = (_o = (_n = props == null ? void 0 : props.item) == null ? void 0 : _n.model) == null ? void 0 : _o.asset_house) == null ? void 0 : _p.full_name) + g: common_vendor.n(`btn_status status_${(_o = props == null ? void 0 : props.item) == null ? void 0 : _o.status}`), + h: ((_q = (_p = props == null ? void 0 : props.item) == null ? void 0 : _p.model) == null ? void 0 : _q.location) === "MyHome" + }, ((_s = (_r = props == null ? void 0 : props.item) == null ? void 0 : _r.model) == null ? void 0 : _s.location) === "MyHome" ? { + i: common_vendor.t((_v = (_u = (_t = props == null ? void 0 : props.item) == null ? void 0 : _t.model) == null ? void 0 : _u.asset_house) == null ? void 0 : _v.full_name) } : {}, { - h: common_vendor.t((_r = (_q = props == null ? void 0 : props.item) == null ? void 0 : _q.model) == null ? void 0 : _r.content), - i: ((_s = props == null ? void 0 : props.item) == null ? void 0 : _s.type) === "WorkOrder" && ((_u = (_t = props == null ? void 0 : props.item) == null ? void 0 : _t.model) == null ? void 0 : _u.status) === "Pending" && ((_w = (_v = props == null ? void 0 : props.item) == null ? void 0 : _v.model) == null ? void 0 : _w.location) === "MyHome" - }, ((_x = props == null ? void 0 : props.item) == null ? void 0 : _x.type) === "WorkOrder" && ((_z = (_y = props == null ? void 0 : props.item) == null ? void 0 : _y.model) == null ? void 0 : _z.status) === "Pending" && ((_B = (_A = props == null ? void 0 : props.item) == null ? void 0 : _A.model) == null ? void 0 : _B.location) === "MyHome" ? { - j: common_vendor.p({ + j: common_vendor.t((_x = (_w = props == null ? void 0 : props.item) == null ? void 0 : _w.model) == null ? void 0 : _x.content), + k: ((_y = props == null ? void 0 : props.item) == null ? void 0 : _y.type) === "WorkOrder" && ((_A = (_z = props == null ? void 0 : props.item) == null ? void 0 : _z.model) == null ? void 0 : _A.status) === "Pending" && ((_C = (_B = props == null ? void 0 : props.item) == null ? void 0 : _B.model) == null ? void 0 : _C.location) === "MyHome" + }, ((_D = props == null ? void 0 : props.item) == null ? void 0 : _D.type) === "WorkOrder" && ((_F = (_E = props == null ? void 0 : props.item) == null ? void 0 : _E.model) == null ? void 0 : _F.status) === "Pending" && ((_H = (_G = props == null ? void 0 : props.item) == null ? void 0 : _G.model) == null ? void 0 : _H.location) === "MyHome" ? { + l: common_vendor.p({ name: "clock", - color: ((_E = common_vendor.unref(common_libraries_day.getTimeStatus)((_D = (_C = props == null ? void 0 : props.item) == null ? void 0 : _C.model) == null ? void 0 : _D.expect_end_time)) == null ? void 0 : _E.color) || "#000", + color: ((_K = common_vendor.unref(common_libraries_day.getTimeStatus)((_J = (_I = props == null ? void 0 : props.item) == null ? void 0 : _I.model) == null ? void 0 : _J.expect_end_time)) == null ? void 0 : _K.color) || "#000", size: "14" }), - k: common_vendor.t((_H = common_vendor.unref(common_libraries_day.getTimeStatus)((_G = (_F = props == null ? void 0 : props.item) == null ? void 0 : _F.model) == null ? void 0 : _G.expect_end_time)) == null ? void 0 : _H.label), - l: common_vendor.n(`todo_done_card_footer status_${(_K = common_vendor.unref(common_libraries_day.getTimeStatus)((_J = (_I = props == null ? void 0 : props.item) == null ? void 0 : _I.model) == null ? void 0 : _J.expect_end_time)) == null ? void 0 : _K.status}`) + m: common_vendor.t((_N = common_vendor.unref(common_libraries_day.getTimeStatus)((_M = (_L = props == null ? void 0 : props.item) == null ? void 0 : _L.model) == null ? void 0 : _M.expect_end_time)) == null ? void 0 : _N.label), + n: common_vendor.n(`todo_done_card_footer status_${(_Q = common_vendor.unref(common_libraries_day.getTimeStatus)((_P = (_O = props == null ? void 0 : props.item) == null ? void 0 : _O.model) == null ? void 0 : _P.expect_end_time)) == null ? void 0 : _Q.status}`) } : {}, { - m: common_vendor.t((_L = props == null ? void 0 : props.item) == null ? void 0 : _L.created_at), - n: common_vendor.o(($event) => toPageShow()), - o: common_vendor.n(`todo_done_card ${((_M = props == null ? void 0 : props.item) == null ? void 0 : _M.type) === "WorkOrder" && ((_O = (_N = props == null ? void 0 : props.item) == null ? void 0 : _N.model) == null ? void 0 : _O.status) === "Pending" ? `card_status_${(_R = common_vendor.unref(common_libraries_day.getTimeStatus)((_Q = (_P = props == null ? void 0 : props.item) == null ? void 0 : _P.model) == null ? void 0 : _Q.expect_end_time)) == null ? void 0 : _R.status}` : ""}`) + o: common_vendor.t((_R = props == null ? void 0 : props.item) == null ? void 0 : _R.created_at), + p: common_vendor.o(($event) => toPageShow()), + q: common_vendor.n(`todo_done_card ${((_S = props == null ? void 0 : props.item) == null ? void 0 : _S.type) === "WorkOrder" && ((_U = (_T = props == null ? void 0 : props.item) == null ? void 0 : _T.model) == null ? void 0 : _U.status) === "Pending" ? `card_status_${(_X = common_vendor.unref(common_libraries_day.getTimeStatus)((_W = (_V = props == null ? void 0 : props.item) == null ? void 0 : _V.model) == null ? void 0 : _W.expect_end_time)) == null ? void 0 : _X.status}` : ""}`) }); }; } diff --git a/dist/dev/mp-weixin/pages/index/components/TemplateWorkorder.wxml b/dist/dev/mp-weixin/pages/index/components/TemplateWorkorder.wxml index b931a69..28916a5 100644 --- a/dist/dev/mp-weixin/pages/index/components/TemplateWorkorder.wxml +++ b/dist/dev/mp-weixin/pages/index/components/TemplateWorkorder.wxml @@ -1 +1 @@ -{{g}} {{h}}{{k}}提报时间:{{m}} \ No newline at end of file +{{i}} {{j}}{{m}}提报时间:{{o}} \ No newline at end of file diff --git a/dist/dev/mp-weixin/pages/index/components/ToDeDone.js b/dist/dev/mp-weixin/pages/index/components/ToDeDone.js index d034472..ea8e79c 100644 --- a/dist/dev/mp-weixin/pages/index/components/ToDeDone.js +++ b/dist/dev/mp-weixin/pages/index/components/ToDeDone.js @@ -1,7 +1,6 @@ "use strict"; const common_vendor = require("../../../common/vendor.js"); const pages_index_model = require("../model.js"); -require("../../../common/libraries/day.js"); if (!Math) { (MyTemplateWorkorder + MyTemplateMomentTask)(); } diff --git a/dist/dev/mp-weixin/pages/index/index.js b/dist/dev/mp-weixin/pages/index/index.js index ef940d2..8a83c19 100644 --- a/dist/dev/mp-weixin/pages/index/index.js +++ b/dist/dev/mp-weixin/pages/index/index.js @@ -1,16 +1,14 @@ "use strict"; const common_vendor = require("../../common/vendor.js"); -const common_libraries_setTabBar = require("../../common/libraries/setTabBar.js"); -const pages_index_model = require("./model.js"); -const pages_index_method = require("./method.js"); const common_libraries_userUserLogin = require("../../common/libraries/userUserLogin.js"); -require("../../common/libraries/updateMenu.js"); -require("../../common/libraries/day.js"); -require("../../common/libraries/apiLoading.js"); -require("../../gen/Apis.js"); +const pages_index_method = require("./method.js"); +const pages_index_model = require("./model.js"); require("../../common/libraries/request.js"); require("../../common/store/useWeAppAuthStore.js"); +require("../../gen/Apis.js"); +require("../../common/store/useWatermarkStore.js"); require("../../common/store/useWorkStore.js"); +require("../../common/libraries/apiLoading.js"); if (!Array) { const _easycom_cc_scroll_loading2 = common_vendor.resolveComponent("cc-scroll-loading"); const _easycom_cc_root_view2 = common_vendor.resolveComponent("cc-root-view"); @@ -21,21 +19,22 @@ const _easycom_cc_root_view = () => "../../common/components/cc-root-view/cc-roo if (!Math) { (MyHeaderTitle + MyShowData + MyClassIfication + MyToDeDone + _easycom_cc_scroll_loading + _easycom_cc_root_view)(); } -const MyHeaderTitle = () => "./components/HeaderTitle.js"; const MyClassIfication = () => "./components/Classification.js"; +const MyHeaderTitle = () => "./components/HeaderTitle.js"; const MyShowData = () => "./components/ShowData.js"; const MyToDeDone = () => "./components/ToDeDone.js"; const _sfc_defineComponent = /* @__PURE__ */ common_vendor.defineComponent({ __name: "index", setup(__props) { common_vendor.onShow(async () => { - var _a, _b, _c, _d; - common_libraries_setTabBar.setTabBarData(0); + var _a, _b, _c, _d, _e; await ((_a = common_vendor.getCurrentInstance()) == null ? void 0 : _a.appContext.config.globalProperties.$onLaunched); if ((_b = common_libraries_userUserLogin.getUser) == null ? void 0 : _b.getLoginStatus()) { + pages_index_model.useModel.formData.value.page = 1; pages_index_model.useModel.listData.value = []; (_c = pages_index_method.method) == null ? void 0 : _c.getCountGridHouse(); (_d = pages_index_method.method) == null ? void 0 : _d.getCompanyEmployeeBacklogs(); + (_e = pages_index_method.method) == null ? void 0 : _e.getIndexCount(); } else { pages_index_model.useModel.userData.value = void 0; pages_index_model.useModel.listData.value = []; diff --git a/dist/dev/mp-weixin/pages/index/index.json b/dist/dev/mp-weixin/pages/index/index.json index f5eaad8..bddde25 100644 --- a/dist/dev/mp-weixin/pages/index/index.json +++ b/dist/dev/mp-weixin/pages/index/index.json @@ -4,8 +4,8 @@ "usingComponents": { "cc-scroll-loading": "../../common/components/cc-scroll-loading/cc-scroll-loading", "cc-root-view": "../../common/components/cc-root-view/cc-root-view", - "my-header-title": "./components/HeaderTitle", "my-class-ification": "./components/Classification", + "my-header-title": "./components/HeaderTitle", "my-show-data": "./components/ShowData", "my-to-de-done": "./components/ToDeDone" } diff --git a/dist/dev/mp-weixin/pages/index/index.wxss b/dist/dev/mp-weixin/pages/index/index.wxss index c9261af..4140a5e 100644 --- a/dist/dev/mp-weixin/pages/index/index.wxss +++ b/dist/dev/mp-weixin/pages/index/index.wxss @@ -26,4 +26,8 @@ page { .status_Closed { color: #909399; background-color: #f3f3f4; +} +.status_PendingPayment { + color: #cf1322; + background-color: #ffeded; } \ No newline at end of file diff --git a/dist/dev/mp-weixin/pages/index/method.js b/dist/dev/mp-weixin/pages/index/method.js index dde6216..2d676ce 100644 --- a/dist/dev/mp-weixin/pages/index/method.js +++ b/dist/dev/mp-weixin/pages/index/method.js @@ -1,10 +1,11 @@ "use strict"; +require("../../common/libraries/request.js"); +require("../../common/store/useWatermarkStore.js"); +const common_store_useWeAppAuthStore = require("../../common/store/useWeAppAuthStore.js"); +require("../../common/store/useWorkStore.js"); const common_libraries_apiLoading = require("../../common/libraries/apiLoading.js"); const gen_Apis = require("../../gen/Apis.js"); const pages_index_model = require("./model.js"); -require("../../common/libraries/request.js"); -const common_store_useWeAppAuthStore = require("../../common/store/useWeAppAuthStore.js"); -require("../../common/store/useWorkStore.js"); common_store_useWeAppAuthStore.useWeAppAuthStore(); const getCompanyEmployeeBacklogs = () => { var _a, _b; @@ -30,6 +31,12 @@ const method = { async uploadMedia(data) { let res = await gen_Apis.Apis.Customer.CustomerMoments.UploadMedia(data); return res == null ? void 0 : res.data; + }, + getIndexCount() { + common_libraries_apiLoading.getApiLoading(gen_Apis.Apis.Count.CommonCount.IndexCount, {}).then((res) => { + pages_index_model.useModel.IndexCount.value = res.data; + console.log(res); + }); } }; exports.method = method; diff --git a/dist/dev/mp-weixin/pages/index/model.js b/dist/dev/mp-weixin/pages/index/model.js index cd2e5c8..75f66ba 100644 --- a/dist/dev/mp-weixin/pages/index/model.js +++ b/dist/dev/mp-weixin/pages/index/model.js @@ -1,10 +1,11 @@ "use strict"; const common_vendor = require("../../common/vendor.js"); -require("../../common/libraries/day.js"); const useModel = { formData: common_vendor.ref({ page: 1, status: "Pending" }), listData: common_vendor.ref([]), metaData: common_vendor.ref({}), - userData: common_vendor.ref({}) + userData: common_vendor.ref({}), + announcementsData: common_vendor.ref([]), + IndexCount: common_vendor.ref({}) }; exports.useModel = useModel; diff --git a/dist/dev/mp-weixin/pages/loading.js b/dist/dev/mp-weixin/pages/loading.js index 3ac7037..0561cdc 100644 --- a/dist/dev/mp-weixin/pages/loading.js +++ b/dist/dev/mp-weixin/pages/loading.js @@ -1,6 +1,7 @@ "use strict"; const common_vendor = require("../common/vendor.js"); require("../common/libraries/request.js"); +require("../common/store/useWatermarkStore.js"); require("../common/store/useWeAppAuthStore.js"); require("../common/store/useWorkStore.js"); const common_libraries_userUserLogin = require("../common/libraries/userUserLogin.js"); diff --git a/dist/dev/mp-weixin/pages/login.js b/dist/dev/mp-weixin/pages/login.js index a67a971..2382102 100644 --- a/dist/dev/mp-weixin/pages/login.js +++ b/dist/dev/mp-weixin/pages/login.js @@ -1,6 +1,7 @@ "use strict"; const common_vendor = require("../common/vendor.js"); require("../common/libraries/request.js"); +require("../common/store/useWatermarkStore.js"); const common_store_useWeAppAuthStore = require("../common/store/useWeAppAuthStore.js"); require("../common/store/useWorkStore.js"); require("../gen/Apis.js"); diff --git a/dist/dev/mp-weixin/pages/me/index.js b/dist/dev/mp-weixin/pages/me/index.js index 28eccd6..071af55 100644 --- a/dist/dev/mp-weixin/pages/me/index.js +++ b/dist/dev/mp-weixin/pages/me/index.js @@ -6,6 +6,7 @@ const common_libraries_userUserLogin = require("../../common/libraries/userUserL require("../../common/libraries/request.js"); require("../../common/store/useWeAppAuthStore.js"); require("../../gen/Apis.js"); +require("../../common/store/useWatermarkStore.js"); require("../../common/store/useWorkStore.js"); require("../../common/libraries/apiLoading.js"); if (!Array) { diff --git a/dist/dev/mp-weixin/pages/me/method.js b/dist/dev/mp-weixin/pages/me/method.js index 229126a..774bb81 100644 --- a/dist/dev/mp-weixin/pages/me/method.js +++ b/dist/dev/mp-weixin/pages/me/method.js @@ -1,6 +1,7 @@ "use strict"; const common_vendor = require("../../common/vendor.js"); require("../../common/libraries/request.js"); +require("../../common/store/useWatermarkStore.js"); const common_store_useWeAppAuthStore = require("../../common/store/useWeAppAuthStore.js"); require("../../common/store/useWorkStore.js"); const common_libraries_apiLoading = require("../../common/libraries/apiLoading.js"); diff --git a/dist/dev/mp-weixin/pages/public/asset_houses/components/MeHouseItem.js b/dist/dev/mp-weixin/pages/public/asset_houses/components/MeHouseItem.js index 68a8719..7a85dab 100644 --- a/dist/dev/mp-weixin/pages/public/asset_houses/components/MeHouseItem.js +++ b/dist/dev/mp-weixin/pages/public/asset_houses/components/MeHouseItem.js @@ -6,6 +6,7 @@ require("../../../../common/libraries/apiLoading.js"); require("../../../../gen/Apis.js"); require("../../../../common/libraries/request.js"); require("../../../../common/store/useWeAppAuthStore.js"); +require("../../../../common/store/useWatermarkStore.js"); require("../../../../common/store/useWorkStore.js"); require("../../../../common/libraries/naviHelper.js"); require("../../../../common/libraries/userUserLogin.js"); diff --git a/dist/dev/mp-weixin/pages/public/asset_houses/index.js b/dist/dev/mp-weixin/pages/public/asset_houses/index.js index 23b0682..bb3f7d0 100644 --- a/dist/dev/mp-weixin/pages/public/asset_houses/index.js +++ b/dist/dev/mp-weixin/pages/public/asset_houses/index.js @@ -3,6 +3,7 @@ const common_vendor = require("../../../common/vendor.js"); const pages_public_asset_houses_method = require("./method.js"); const pages_public_asset_houses_model = require("./model.js"); require("../../../common/libraries/request.js"); +require("../../../common/store/useWatermarkStore.js"); const common_store_useWeAppAuthStore = require("../../../common/store/useWeAppAuthStore.js"); require("../../../common/store/useWorkStore.js"); require("../../../common/libraries/apiLoading.js"); diff --git a/dist/dev/mp-weixin/pages/public/asset_houses/method.js b/dist/dev/mp-weixin/pages/public/asset_houses/method.js index d8faf5a..063d45f 100644 --- a/dist/dev/mp-weixin/pages/public/asset_houses/method.js +++ b/dist/dev/mp-weixin/pages/public/asset_houses/method.js @@ -5,6 +5,7 @@ const gen_Apis = require("../../../gen/Apis.js"); const pages_public_asset_houses_model = require("./model.js"); const common_libraries_naviHelper = require("../../../common/libraries/naviHelper.js"); require("../../../common/libraries/request.js"); +require("../../../common/store/useWatermarkStore.js"); require("../../../common/store/useWeAppAuthStore.js"); const common_store_useWorkStore = require("../../../common/store/useWorkStore.js"); const common_libraries_userUserLogin = require("../../../common/libraries/userUserLogin.js"); diff --git a/dist/dev/mp-weixin/pages/public/select_project/index.js b/dist/dev/mp-weixin/pages/public/select_project/index.js new file mode 100644 index 0000000..d4b6639 --- /dev/null +++ b/dist/dev/mp-weixin/pages/public/select_project/index.js @@ -0,0 +1,72 @@ +"use strict"; +const common_vendor = require("../../../common/vendor.js"); +const pages_public_select_project_method = require("./method.js"); +const pages_public_select_project_model = require("./model.js"); +require("../../../common/libraries/apiLoading.js"); +require("../../../gen/Apis.js"); +require("../../../common/libraries/request.js"); +require("../../../common/store/useWeAppAuthStore.js"); +require("../../../common/store/useWatermarkStore.js"); +require("../../../common/store/useWorkStore.js"); +require("../../../common/libraries/naviHelper.js"); +require("../../../common/libraries/userUserLogin.js"); +if (!Array) { + const _easycom_hs_empty2 = common_vendor.resolveComponent("hs-empty"); + const _easycom_uni_icons2 = common_vendor.resolveComponent("uni-icons"); + (_easycom_hs_empty2 + _easycom_uni_icons2)(); +} +const _easycom_hs_empty = () => "../../../components/hs-empty/hs-empty.js"; +const _easycom_uni_icons = () => "../../../uni_modules/uni-icons/components/uni-icons/uni-icons.js"; +if (!Math) { + (_easycom_hs_empty + _easycom_uni_icons)(); +} +const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({ + __name: "index", + setup(__props) { + common_vendor.onLoad((e) => { + var _a; + pages_public_select_project_model.useModel.dataList.value = []; + pages_public_select_project_model.useModel.source.value = (e == null ? void 0 : e.source) || ""; + (_a = pages_public_select_project_method.method) == null ? void 0 : _a.handleLoadMore(1); + }); + return (_ctx, _cache) => { + var _a, _b, _c, _d, _e, _f, _g, _h; + return common_vendor.e({ + a: !((_c = (_b = (_a = common_vendor.unref(pages_public_select_project_model.useModel)) == null ? void 0 : _a.dataList) == null ? void 0 : _b.value) == null ? void 0 : _c.length) + }, !((_f = (_e = (_d = common_vendor.unref(pages_public_select_project_model.useModel)) == null ? void 0 : _d.dataList) == null ? void 0 : _e.value) == null ? void 0 : _f.length) ? {} : {}, { + b: common_vendor.f((_h = (_g = common_vendor.unref(pages_public_select_project_model.useModel)) == null ? void 0 : _g.dataList) == null ? void 0 : _h.value, (i, index, i0) => { + var _a2, _b2; + return common_vendor.e({ + a: common_vendor.t(i == null ? void 0 : i.name), + b: common_vendor.t(i == null ? void 0 : i.province), + c: common_vendor.t(i == null ? void 0 : i.city), + d: common_vendor.t(i == null ? void 0 : i.area), + e: (i == null ? void 0 : i.id) === ((_a2 = common_vendor.unref(pages_public_select_project_model.useModel).selectedHouseEd.value) == null ? void 0 : _a2.id) + }, (i == null ? void 0 : i.id) === ((_b2 = common_vendor.unref(pages_public_select_project_model.useModel).selectedHouseEd.value) == null ? void 0 : _b2.id) ? { + f: "69571fb6-1-" + i0, + g: common_vendor.p({ + type: "checkbox-filled", + size: "20", + color: "#2A7EFB" + }) + } : { + h: "69571fb6-2-" + i0, + i: common_vendor.p({ + type: "circle", + size: "20", + color: "#999" + }) + }, { + j: common_vendor.o(($event) => { + var _a3; + return (_a3 = common_vendor.unref(pages_public_select_project_method.method)) == null ? void 0 : _a3.handleSelectedProject(i); + }, `item_${index}`), + k: `item_${index}` + }); + }) + }); + }; + } +}); +const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__file", "/Users/zsq/Sources/github/2025property-pay/pay-employee/src/pages/public/select_project/index.vue"]]); +wx.createPage(MiniProgramPage); diff --git a/dist/dev/mp-weixin/pages/public/select_project/index.json b/dist/dev/mp-weixin/pages/public/select_project/index.json new file mode 100644 index 0000000..4830b6c --- /dev/null +++ b/dist/dev/mp-weixin/pages/public/select_project/index.json @@ -0,0 +1,7 @@ +{ + "navigationBarTitleText": "选择项目", + "usingComponents": { + "hs-empty": "../../../components/hs-empty/hs-empty", + "uni-icons": "../../../uni_modules/uni-icons/components/uni-icons/uni-icons" + } +} \ No newline at end of file diff --git a/dist/dev/mp-weixin/pages/public/select_project/index.wxml b/dist/dev/mp-weixin/pages/public/select_project/index.wxml new file mode 100644 index 0000000..a02ca14 --- /dev/null +++ b/dist/dev/mp-weixin/pages/public/select_project/index.wxml @@ -0,0 +1 @@ +{{i.a}}{{i.b}}/{{i.c}}/{{i.d}} \ No newline at end of file diff --git a/dist/dev/mp-weixin/pages/public/select_project/index.wxss b/dist/dev/mp-weixin/pages/public/select_project/index.wxss new file mode 100644 index 0000000..bf81d23 --- /dev/null +++ b/dist/dev/mp-weixin/pages/public/select_project/index.wxss @@ -0,0 +1,45 @@ +page { + background-color: #f8f8f8; +} +.asset_houses { + padding-bottom: 160rpx; +} +.asset_houses .asset_houses_card { + margin: 30rpx 30rpx 0 30rpx; + background-color: #fff; + border-radius: 15rpx; + padding: 0 30rpx; +} +.asset_houses .asset_houses_card .card_header { + padding: 30rpx 0; +} +.asset_houses .asset_houses_card .card_header .asset_houses_name { + display: flex; + align-items: center; + justify-content: space-between; +} +.asset_houses .asset_houses_card .card_header .asset_houses_name .name { + font-size: 32rpx; + color: #000; +} +.asset_houses .asset_houses_card .card_header .asset_houses_name .address { + color: #666; + font-size: 24rpx; +} +.asset_houses .asset_houses_card .card_header .asset_houses_info { + display: flex; + align-items: center; + font-size: 24rpx; + color: #666; + padding: 10rpx 0 0 0; +} +.asset_houses .asset_houses_card .card_header .asset_houses_info .item { + height: 30rpx; + line-height: 30rpx; + font-size: 24rpx; +} +.asset_houses .asset_houses_card .card_header .asset_houses_info .item:last-child { + padding-left: 20rpx; + margin-left: 20rpx; + border-left: 1rpx solid #eee; +} \ No newline at end of file diff --git a/dist/dev/mp-weixin/pages/public/select_project/method.js b/dist/dev/mp-weixin/pages/public/select_project/method.js new file mode 100644 index 0000000..7904153 --- /dev/null +++ b/dist/dev/mp-weixin/pages/public/select_project/method.js @@ -0,0 +1,70 @@ +"use strict"; +const common_vendor = require("../../../common/vendor.js"); +const common_libraries_apiLoading = require("../../../common/libraries/apiLoading.js"); +const gen_Apis = require("../../../gen/Apis.js"); +const pages_public_select_project_model = require("./model.js"); +const common_libraries_naviHelper = require("../../../common/libraries/naviHelper.js"); +require("../../../common/libraries/request.js"); +require("../../../common/store/useWatermarkStore.js"); +require("../../../common/store/useWeAppAuthStore.js"); +const common_store_useWorkStore = require("../../../common/store/useWorkStore.js"); +const common_libraries_userUserLogin = require("../../../common/libraries/userUserLogin.js"); +const work = common_store_useWorkStore.useWorkStore(); +const getProjectList = () => { + var _a, _b, _c; + if (!((_a = common_libraries_userUserLogin.getUser) == null ? void 0 : _a.getLoginStatus())) + return; + common_libraries_apiLoading.getApiLoading(gen_Apis.Apis.Asset.AssetHouses.SelectProject, (_c = (_b = pages_public_select_project_model.useModel) == null ? void 0 : _b.formData) == null ? void 0 : _c.value).then((res) => { + var _a2, _b2; + pages_public_select_project_model.useModel.dataList.value = [...(_b2 = (_a2 = pages_public_select_project_model.useModel) == null ? void 0 : _a2.dataList) == null ? void 0 : _b2.value, ...res == null ? void 0 : res.data]; + pages_public_select_project_model.useModel.metaData.value = res == null ? void 0 : res.meta; + console.log(res); + }); +}; +const getPermission = (data) => { + common_libraries_apiLoading.getApiLoading(gen_Apis.Apis.Emergency.EmergencyEventTeams.GetPermission, { + asset_projects_id: data == null ? void 0 : data.id + }).then((res) => { + var _a; + if ((_a = res == null ? void 0 : res.data) == null ? void 0 : _a.permission) { + pages_public_select_project_model.useModel.selectedHouseEd.value = data; + work.selectWorkProject = data; + common_libraries_naviHelper.showToastBack("选择成功!", 1, true); + } else { + common_vendor.index.navigateTo({ + url: `/pages/public/select_project/pages/permission_show?id=${data == null ? void 0 : data.id}` + }); + } + console.log(res); + }); +}; +const method = { + getProjectList, + // getHouseRegistersList, + handleLoadMore(page) { + pages_public_select_project_model.useModel.formData.value.page = page; + getProjectList(); + }, + handleSelectedProject(e) { + var _a, _b; + if (((_b = (_a = pages_public_select_project_model.useModel) == null ? void 0 : _a.source) == null ? void 0 : _b.value) === "emergency_add") { + getPermission(e); + } else { + pages_public_select_project_model.useModel.selectedHouseEd.value = e; + work.selectWorkProject = e; + common_libraries_naviHelper.showToastBack("选择成功!", 1, true); + } + }, + hadnleNewBindingHouse() { + var _a; + common_vendor.index.navigateTo({ + url: ((_a = common_libraries_userUserLogin.getUser) == null ? void 0 : _a.getLoginStatus()) ? "/INDEX/binding/index" : "/pages/login" + }); + }, + handleQueryHouseArchives(e) { + common_vendor.index.navigateTo({ + url: `/INDEX/archive_houses/index?id=${e == null ? void 0 : e.asset_houses_id}` + }); + } +}; +exports.method = method; diff --git a/dist/dev/mp-weixin/pages/public/select_project/model.js b/dist/dev/mp-weixin/pages/public/select_project/model.js new file mode 100644 index 0000000..68048ef --- /dev/null +++ b/dist/dev/mp-weixin/pages/public/select_project/model.js @@ -0,0 +1,10 @@ +"use strict"; +const common_vendor = require("../../../common/vendor.js"); +const useModel = { + formData: common_vendor.ref({ page: 1 }), + dataList: common_vendor.ref([]), + metaData: common_vendor.ref({}), + selectedHouseEd: common_vendor.ref({ id: "" }), + source: common_vendor.ref("") +}; +exports.useModel = useModel; diff --git a/dist/dev/mp-weixin/pages/transfer/index.js b/dist/dev/mp-weixin/pages/transfer/index.js new file mode 100644 index 0000000..4a0b569 --- /dev/null +++ b/dist/dev/mp-weixin/pages/transfer/index.js @@ -0,0 +1,84 @@ +"use strict"; +const common_vendor = require("../../common/vendor.js"); +const common_libraries_userUserLogin = require("../../common/libraries/userUserLogin.js"); +require("../../common/libraries/request.js"); +require("../../common/store/useWeAppAuthStore.js"); +require("../../gen/Apis.js"); +require("../../common/store/useWatermarkStore.js"); +require("../../common/store/useWorkStore.js"); +require("../../common/libraries/apiLoading.js"); +if (!Array) { + const _easycom_hs_footer2 = common_vendor.resolveComponent("hs-footer"); + _easycom_hs_footer2(); +} +const _easycom_hs_footer = () => "../../components/hs-footer/hs-footer.js"; +if (!Math) { + _easycom_hs_footer(); +} +const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({ + __name: "index", + setup(__props) { + const scanQrCode = common_vendor.ref(false); + common_vendor.onShow(async () => { + var _a, _b, _c; + await ((_a = common_vendor.getCurrentInstance()) == null ? void 0 : _a.appContext.config.globalProperties.$onLaunched); + if ((_b = common_libraries_userUserLogin.getUser) == null ? void 0 : _b.getLoginStatus()) { + const getQrcode = common_vendor.index.getEnterOptionsSync(); + console.log(getQrcode, "getQrcode"); + let qrData = getQrcode == null ? void 0 : getQrcode.query; + if (!(qrData == null ? void 0 : qrData.scene)) { + scanQrCode.value = true; + } else { + let data = (_c = qrData == null ? void 0 : qrData.scene) == null ? void 0 : _c.split("_"); + if (data[0] === "1") { + common_vendor.index.redirectTo({ + url: `/INDEX/release_items/index?id=${data[1]}` + }); + } + if (data[0] === "2") { + common_vendor.index.redirectTo({ + url: `/INDEX/pass/index?id=${data[1]}` + }); + } + if (data[0] === "3") { + common_vendor.index.redirectTo({ + url: `/INDEX/patrol_task_list/index?id=${data[1]}` + }); + } + } + } else { + common_vendor.index.showModal({ + title: "提示", + content: "检测到您还未登录,是否去登录?", + confirmText: "去登录", + cancelText: "返回首页", + confirmColor: "#0082FA", + success: function(res) { + if (res.confirm) { + common_vendor.index.navigateTo({ + url: "/pages/login?source=transfer" + }); + console.log("用户点击确定"); + } else if (res.cancel) { + common_vendor.index.switchTab({ + url: "/pages/index/index" + }); + console.log("用户点击取消"); + } + } + }); + } + }); + return (_ctx, _cache) => { + return common_vendor.e({ + a: !scanQrCode.value + }, !scanQrCode.value ? {} : { + b: common_vendor.p({ + btnParimaryName: "返回首页" + }) + }); + }; + } +}); +const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__file", "/Users/zsq/Sources/github/2025property-pay/pay-employee/src/pages/transfer/index.vue"]]); +wx.createPage(MiniProgramPage); diff --git a/dist/dev/mp-weixin/pages/transfer/index.json b/dist/dev/mp-weixin/pages/transfer/index.json new file mode 100644 index 0000000..7fc74a2 --- /dev/null +++ b/dist/dev/mp-weixin/pages/transfer/index.json @@ -0,0 +1,6 @@ +{ + "navigationBarTitleText": "正在识别...", + "usingComponents": { + "hs-footer": "../../components/hs-footer/hs-footer" + } +} \ No newline at end of file diff --git a/dist/dev/mp-weixin/pages/transfer/index.wxml b/dist/dev/mp-weixin/pages/transfer/index.wxml new file mode 100644 index 0000000..b9ed40c --- /dev/null +++ b/dist/dev/mp-weixin/pages/transfer/index.wxml @@ -0,0 +1 @@ + 正在识别二维码...请稍后 二维码识别有误,请换二维码重新扫描 \ No newline at end of file diff --git a/dist/dev/mp-weixin/pages/transfer/index.wxss b/dist/dev/mp-weixin/pages/transfer/index.wxss new file mode 100644 index 0000000..b548241 --- /dev/null +++ b/dist/dev/mp-weixin/pages/transfer/index.wxss @@ -0,0 +1,5 @@ +.transfer_contents, .error_contents { + text-align: center; + padding: 10% 0; + font-size: 30rpx; +} \ 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 8ff0b36..db2d49e 100644 --- a/dist/dev/mp-weixin/project.private.config.json +++ b/dist/dev/mp-weixin/project.private.config.json @@ -1,120 +1,18 @@ { - "description": "项目私有配置文件。此文件中的内容将覆盖 project.config.json 中的相同字段。项目的改动优先同步到此文件中。详见文档:https://developers.weixin.qq.com/miniprogram/dev/devtools/projectconfig.html", + "setting": { + "urlCheck": false + }, "condition": { "miniprogram": { "list": [ { - "name": "发送详情", - "pathName": "ME/push_show/index", - "query": "id=95&data_id=29&model_id=64", + "name": "物品放行", + "pathName": "INDEX/release_items/index", + "query": "id=3", "scene": null, "launchMode": "default" - }, - { - "name": "发送账单", - "pathName": "BILL/send_bill/index", - "query": "", - "launchMode": "default", - "scene": null - }, - { - "name": "提交成功", - "pathName": "CUSTOMER/bind_house_form/success", - "query": "", - "launchMode": "default", - "scene": null - }, - { - "name": "无登记绑定", - "pathName": "CUSTOMER/house_Identity/index", - "query": "", - "launchMode": "default", - "scene": null - }, - { - "name": "房屋列表", - "pathName": "CUSTOMER/house_list/index", - "query": "", - "launchMode": "default", - "scene": null - }, - { - "name": "绑定房屋", - "pathName": "CUSTOMER/bind_house/index", - "query": "", - "launchMode": "default", - "scene": null - }, - { - "name": "客户详情", - "pathName": "CUSTOMER/show/index", - "query": "", - "launchMode": "default", - "scene": null - }, - { - "name": "欠费账单List", - "pathName": "BILL/outstanding_fee/index/index", - "query": "", - "launchMode": "default", - "scene": null - }, - { - "name": "催缴记录", - "pathName": "BILL/collection_record/index", - "query": "", - "launchMode": "default", - "scene": null - }, - { - "name": "登录", - "pathName": "pages/login", - "query": "", - "launchMode": "default", - "scene": null - }, - { - "name": "工单详情", - "pathName": "WORKORDER/show/index", - "query": "", - "launchMode": "default", - "scene": null - }, - { - "name": "工单添加", - "pathName": "WORKORDER/add/index", - "query": "", - "launchMode": "default", - "scene": null - }, - { - "name": "工单列表", - "pathName": "WORKORDER/list/index", - "query": "", - "launchMode": "default", - "scene": null } ] } - }, - "projectname": "%E8%80%81%E6%9D%BF%E5%BC%80%E5%8F%91", - "setting": { - "compileHotReLoad": true, - "urlCheck": false, - "coverView": false, - "lazyloadPlaceholderEnable": false, - "skylineRenderEnable": false, - "preloadBackgroundData": false, - "autoAudits": false, - "useApiHook": true, - "useApiHostProcess": true, - "showShadowRootInWxmlPanel": false, - "useStaticServer": false, - "useLanDebug": false, - "showES6CompileOption": false, - "checkInvalidKey": true, - "ignoreDevUnusedFiles": true, - "bigPackageSizeSupport": true - }, - "libVersion": "3.8.9" + } } \ No newline at end of file diff --git a/dist/dev/mp-weixin/static/svg/WatermarkCamera.svg b/dist/dev/mp-weixin/static/svg/WatermarkCamera.svg new file mode 100644 index 0000000..12e4a86 --- /dev/null +++ b/dist/dev/mp-weixin/static/svg/WatermarkCamera.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/dist/dev/mp-weixin/static/svg/WatermarkCameraSwitch.svg b/dist/dev/mp-weixin/static/svg/WatermarkCameraSwitch.svg new file mode 100644 index 0000000..e724893 --- /dev/null +++ b/dist/dev/mp-weixin/static/svg/WatermarkCameraSwitch.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/dist/dev/mp-weixin/static/svg/announcement.svg b/dist/dev/mp-weixin/static/svg/announcement.svg new file mode 100644 index 0000000..867ee91 --- /dev/null +++ b/dist/dev/mp-weixin/static/svg/announcement.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/dist/dev/mp-weixin/static/svg/collection_icon.svg b/dist/dev/mp-weixin/static/svg/collection_icon.svg index 1048f37..ae2f720 100644 --- a/dist/dev/mp-weixin/static/svg/collection_icon.svg +++ b/dist/dev/mp-weixin/static/svg/collection_icon.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/dist/dev/mp-weixin/static/svg/electricity_meter.svg b/dist/dev/mp-weixin/static/svg/electricity_meter.svg new file mode 100644 index 0000000..be88363 --- /dev/null +++ b/dist/dev/mp-weixin/static/svg/electricity_meter.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/dist/dev/mp-weixin/static/svg/house_icon.svg b/dist/dev/mp-weixin/static/svg/house_icon.svg index 47eec31..caac21a 100644 --- a/dist/dev/mp-weixin/static/svg/house_icon.svg +++ b/dist/dev/mp-weixin/static/svg/house_icon.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/dist/dev/mp-weixin/static/svg/household_registration.svg b/dist/dev/mp-weixin/static/svg/household_registration.svg index ed17e41..4cc27d7 100644 --- a/dist/dev/mp-weixin/static/svg/household_registration.svg +++ b/dist/dev/mp-weixin/static/svg/household_registration.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/dist/dev/mp-weixin/static/svg/meter_reading_icon.svg b/dist/dev/mp-weixin/static/svg/meter_reading_icon.svg new file mode 100644 index 0000000..bbf3013 --- /dev/null +++ b/dist/dev/mp-weixin/static/svg/meter_reading_icon.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/dist/dev/mp-weixin/static/svg/performance_icon.svg b/dist/dev/mp-weixin/static/svg/performance_icon.svg index 0823f19..44d8bbd 100644 --- a/dist/dev/mp-weixin/static/svg/performance_icon.svg +++ b/dist/dev/mp-weixin/static/svg/performance_icon.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/dist/dev/mp-weixin/static/svg/task_icon.svg b/dist/dev/mp-weixin/static/svg/task_icon.svg new file mode 100644 index 0000000..51d6f91 --- /dev/null +++ b/dist/dev/mp-weixin/static/svg/task_icon.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/dist/dev/mp-weixin/static/svg/user_icon.svg b/dist/dev/mp-weixin/static/svg/user_icon.svg index 196ef50..cfd4b28 100644 --- a/dist/dev/mp-weixin/static/svg/user_icon.svg +++ b/dist/dev/mp-weixin/static/svg/user_icon.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/dist/dev/mp-weixin/static/svg/water_meter_icon.svg b/dist/dev/mp-weixin/static/svg/water_meter_icon.svg new file mode 100644 index 0000000..6f414a5 --- /dev/null +++ b/dist/dev/mp-weixin/static/svg/water_meter_icon.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/dist/dev/mp-weixin/static/svg/workorder_icon.svg b/dist/dev/mp-weixin/static/svg/workorder_icon.svg index 2e9698c..4ffa12d 100644 --- a/dist/dev/mp-weixin/static/svg/workorder_icon.svg +++ b/dist/dev/mp-weixin/static/svg/workorder_icon.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/src/BILL/outstanding_fee/show/components/PersonnelList.vue b/src/BILL/outstanding_fee/show/components/PersonnelList.vue index c2388f2..a1d8b19 100644 --- a/src/BILL/outstanding_fee/show/components/PersonnelList.vue +++ b/src/BILL/outstanding_fee/show/components/PersonnelList.vue @@ -1,39 +1,27 @@ diff --git a/src/CUSTOMER/list_user/index.vue b/src/CUSTOMER/list_user/index.vue index f195713..b214190 100644 --- a/src/CUSTOMER/list_user/index.vue +++ b/src/CUSTOMER/list_user/index.vue @@ -1,28 +1,15 @@ + diff --git a/src/INDEX/pass/method.ts b/src/INDEX/pass/method.ts new file mode 100644 index 0000000..56a552d --- /dev/null +++ b/src/INDEX/pass/method.ts @@ -0,0 +1,31 @@ +import { getApiLoading } from '@/common/libraries/apiLoading' +import { isDatePassed } from '@/common/libraries/day' +import { showToast } from '@/common/libraries/naviHelper' +import { Apis } from '@/gen/Apis' +import useModel from './model' +const getShow = (data: { id: string }) => { + getApiLoading(Apis.Visitor.VisitorApplies.Show, data).then(res => { + useModel.showData.value = res?.data + if (res?.data?.renovation_workers?.length) { + useModel.userInfo.value = res?.data?.renovation_workers?.[0] + } + if (res?.data?.code_expired_at) { + useModel.isExpired.value = isDatePassed(res?.data?.code_expired_at) + } + console.log(res) + }) +} +export default { + getShow, + handleSubmit(val?: string) { + getApiLoading(Apis.Visitor.VisitorApplies.Scan, { + code: useModel?.showData?.value?.visitor_code, + scan_type: val + }).then(res => { + showToast('操作成功!', () => { + getShow({ id: useModel?.showData?.value?.id }) + }) + console.log(res) + }) + } +} diff --git a/src/INDEX/pass/model.ts b/src/INDEX/pass/model.ts new file mode 100644 index 0000000..6aaf21f --- /dev/null +++ b/src/INDEX/pass/model.ts @@ -0,0 +1,9 @@ +import { ref } from 'vue' + +export default { + formData: ref({}), + showData: ref([]), + arrearageHouses: ref([]), + isExpired: ref(false), + userInfo: ref({}) +} diff --git a/src/INDEX/pass/style.scss b/src/INDEX/pass/style.scss new file mode 100644 index 0000000..500cc67 --- /dev/null +++ b/src/INDEX/pass/style.scss @@ -0,0 +1,67 @@ +page { + background-color: #f8f8f8; +} +.release_items_page { + padding: 40rpx 0; + padding-bottom: calc(130rpx + constant(safe-area-inset-bottom)); + padding-bottom: calc(130rpx + env(safe-area-inset-bottom)); +} + +.expired { + text-align: center; + .des { + padding: 15rpx 0 10rpx 0; + font-size: 28rpx; + } + .sub_des { + color: #333333; + font-size: 23rpx; + padding-top: 5rpx; + } +} + +.release_content { + background-color: #fff; + border-radius: 20rpx; + margin: 0 30rpx; + overflow: hidden; + padding: 50rpx 0 30rpx 0; + .user_info { + color: #3d3d3d; + font-size: 26rpx; + text-align: center; + .name { + font-size: 32rpx; + font-weight: bold; + padding: 18rpx 0 6rpx 0; + } + } + .avatar { + display: flex; + align-items: center; + justify-content: center; + margin: 0 auto; + } +} + +.outer_info { + font-size: 28rpx; + border-top: 1rpx solid #eee; + margin: 30rpx 30rpx 0 30rpx; + .cell_items { + display: flex; + align-items: center; + justify-content: space-between; + padding-top: 25rpx; + .label { + font-size: 30rpx; + color: #666; + } + } +} +.status_Approved { + color: #55c51d; +} +.status_expired { + color: #cf1322; +} diff --git a/src/INDEX/release_items/index.vue b/src/INDEX/release_items/index.vue new file mode 100644 index 0000000..c7981e1 --- /dev/null +++ b/src/INDEX/release_items/index.vue @@ -0,0 +1,81 @@ + + + diff --git a/src/INDEX/release_items/method.ts b/src/INDEX/release_items/method.ts new file mode 100644 index 0000000..bc5d9f7 --- /dev/null +++ b/src/INDEX/release_items/method.ts @@ -0,0 +1,38 @@ +import { Apis } from '@/gen/Apis' +import { getApiLoading } from '@/common/libraries/apiLoading' +import useModel from './model' +import { showToast } from '@/common/libraries/naviHelper' +import { isDatePassed } from '@/common/libraries/day' +const getShow = (data: { id: string }) => { + getApiLoading(Apis.GoodsReleases.GoodsReleases.Show, data).then(res => { + useModel.showData.value = res?.data + if (res?.data?.passed_time) { + useModel.isExpired.value = isDatePassed(res?.data?.passed_time) + } + console.log(res) + }) +} + +export default { + getShow, + handleSubmit() { + uni.showModal({ + title: '提示', + content: '确定放行?', + success: function (res) { + if (res.confirm) { + getApiLoading(Apis.GoodsReleases.GoodsReleases.ScanRelease, { + code: useModel.showData.value?.code + }).then(res => { + showToast('放行成功!') + getShow(useModel?.showData?.value) + console.log(res) + }) + console.log('用户点击确定') + } else if (res.cancel) { + console.log('用户点击取消') + } + } + }) + } +} diff --git a/src/INDEX/release_items/model.ts b/src/INDEX/release_items/model.ts new file mode 100644 index 0000000..1df209d --- /dev/null +++ b/src/INDEX/release_items/model.ts @@ -0,0 +1,7 @@ +import { ref } from 'vue' + +export default { + formData: ref({}), + showData: ref([]), + isExpired: ref(false) +} diff --git a/src/INDEX/release_items/style.scss b/src/INDEX/release_items/style.scss new file mode 100644 index 0000000..6656f06 --- /dev/null +++ b/src/INDEX/release_items/style.scss @@ -0,0 +1,81 @@ +page { + background-color: #f8f8f8; +} +.release_items_page { + padding: 40rpx 0; + padding-bottom: calc(130rpx + constant(safe-area-inset-bottom)); + padding-bottom: calc(130rpx + env(safe-area-inset-bottom)); +} + +.release_content { + background-color: #fff; + border-radius: 20rpx; + margin: 0 30rpx; + overflow: hidden; + &_title { + font-size: 32rpx; + font-weight: bold; + color: #0082fa; + border-bottom: 1rpx solid #eee; + padding: 25rpx 0; + text-align: center; + text { + color: #f00; + } + } + .cell_content { + padding: 0 30rpx; + font-size: 28rpx; + .cell_items { + display: flex; + align-items: center; + justify-content: space-between; + padding-top: 25rpx; + .label { + font-size: 30rpx; + color: #666; + } + } + } +} +.goods_info { + margin: 30rpx; + border-top: 1rpx solid #eee; + .title { + padding: 30rpx 0; + font-size: 30rpx; + font-weight: bold; + color: #3d3d3d; + } + .items_list { + background-color: #f5f6f9; + padding: 0 30rpx; + font-size: 28rpx; + .label { + padding: 20rpx 0 0 0; + display: flex; + align-items: center; + justify-content: space-between; + } + .des { + color: #666666; + padding: 10rpx 0 20rpx 0; + } + } +} +.status_Released,.status_Approved { + color: #55c51d; +} + +.status_Pending{ + color: #ff9900; +} + +.remark { + padding: 0 30rpx 30rpx 30rpx; + color: #333333; + font-size: 28rpx; +} +.status_expired { + color: #cf1322; +} diff --git a/src/INDEX/task/list/index.vue b/src/INDEX/task/list/index.vue new file mode 100644 index 0000000..a50b5cb --- /dev/null +++ b/src/INDEX/task/list/index.vue @@ -0,0 +1,70 @@ + + + diff --git a/src/INDEX/task/list/method.ts b/src/INDEX/task/list/method.ts new file mode 100644 index 0000000..f52513e --- /dev/null +++ b/src/INDEX/task/list/method.ts @@ -0,0 +1,25 @@ +import useModel from './model' +import { getApiLoading } from '@/common/libraries/apiLoading' +import { Apis } from '@/gen/Apis' + +const getList = () => { + getApiLoading(Apis.WorkOrder.HouseWorkOrders.UnassignedList, useModel?.formData?.value).then( + res => { + useModel.listData.value = [...useModel.listData.value, ...res?.data] + useModel.metaData.value = res?.meta + } + ) +} + +export default { + getList, + handleLoad(res: any) { + useModel.formData.value.page = res?.page + getList() + }, + handleToDetail(e: { id: string; type?: string }) { + uni.navigateTo({ + url: `/INDEX/task/show/index?id=${e?.id}` + }) + } +} diff --git a/src/INDEX/task/list/model.ts b/src/INDEX/task/list/model.ts new file mode 100644 index 0000000..04bb25a --- /dev/null +++ b/src/INDEX/task/list/model.ts @@ -0,0 +1,7 @@ +import { reactive, ref } from 'vue' +export default { + currentTabs: ref(0), + formData: ref({ page: 1 }), + listData: ref([]), + metaData: ref({}) +} diff --git a/src/INDEX/task/list/style.scss b/src/INDEX/task/list/style.scss new file mode 100644 index 0000000..f08ca75 --- /dev/null +++ b/src/INDEX/task/list/style.scss @@ -0,0 +1,139 @@ +page { + background-color: #f8f8f8; +} + +.work_contents { + padding: 0 0 30rpx 0; + .work_item { + background-color: #fff; + border-radius: 10rpx; + margin: 30rpx 30rpx 0 30rpx; + border-radius: 15rpx; + padding: 0 30rpx 30rpx 30rpx; + .work_item_header { + display: flex; + align-items: center; + justify-content: space-between; + padding: 25rpx 0; + .group_btn { + display: flex; + align-items: center; + } + .btn_type { + border: 1rpx solid #eee; + font-size: 28rpx; + padding: 7rpx 19rpx; + border-radius: 100rpx; + margin-right: 10rpx; + } + .btn_status { + border-radius: 100rpx; + font-size: 28rpx; + padding: 7rpx 19rpx; + } + .status_Pending { + color: #f97316; + background-color: #fff7ed; + } + .status_Processing, + .status_PendingAcceptance { + color: #0082fa; + background-color: #edf4ff; + } + .status_PendingPayment { + color: #cf1322; + background-color: #ffeded; + } + .status_Completed { + color: #22c55e; + background-color: #f0fdf4; + } + .status_Closed { + color: #909399; + background-color: #f3f3f4; + } + } + .full_name { + font-size: 28rpx; + } + .work_item_cell { + display: flex; + align-items: center; + font-size: 30rpx; + color: #666; + padding-top: 20rpx; + text { + color: #333; + } + } + .work_item_images { + display: flex; + align-items: center; + flex-wrap: wrap; + .item { + width: 140rpx; + height: 140rpx; + border-radius: 10rpx; + background-color: #f8f8f8; + margin-top: 25rpx; + margin-right: 25rpx; + &:nth-child(4n) { + margin-right: 0; + } + overflow: hidden; + image { + width: 100%; + height: 100%; + } + } + } + .work_code { + font-size: 25rpx; + } + } +} +.work_item_time_footer { + margin-top: 30rpx; + .todo_done_card_footer { + color: #666666; + font-size: 28rpx; + padding: 12rpx 20rpx; + border-radius: 10rpx; + color: #24bc21; + background: linear-gradient(90deg, #edffed 0%, rgba(232, 255, 231, 0) 103%); + display: flex; + align-items: center; + margin: 25rpx 0 0 0; + } + .status_1 { + color: #24bc21; + background: linear-gradient(90deg, #edffed 0%, rgba(232, 255, 231, 0) 103%); + } + .status_2 { + color: #0082fa; + background: linear-gradient(90deg, #eff7ff 0%, rgba(231, 241, 255, 0) 103%); + } + .status_3 { + color: #f97316; + background: linear-gradient(90deg, #fff4ef 0%, rgba(255, 237, 231, 0) 103%); + } + .status_4 { + color: #ea0000; + background: linear-gradient(90deg, #ffe5e5 0%, rgba(255, 255, 255, 0) 103%); + } + .expected_time { + padding: 20rpx 0 0 0; + color: #333; + font-size: 28rpx; + } +} +.work_item_btn_group_footer { + border-top: 1rpx solid #eee; + margin-top: 25rpx; + padding-top: 25rpx; + font-size: 28rpx; + color: #666; +} +.card_status_4 { + border-top: 6px solid #ef4444; +} diff --git a/src/INDEX/task/show/components/ProcessLogs.vue b/src/INDEX/task/show/components/ProcessLogs.vue new file mode 100644 index 0000000..c77238a --- /dev/null +++ b/src/INDEX/task/show/components/ProcessLogs.vue @@ -0,0 +1,73 @@ + + + diff --git a/src/INDEX/task/show/index.vue b/src/INDEX/task/show/index.vue new file mode 100644 index 0000000..5873ffd --- /dev/null +++ b/src/INDEX/task/show/index.vue @@ -0,0 +1,148 @@ + + + diff --git a/src/INDEX/task/show/method.ts b/src/INDEX/task/show/method.ts new file mode 100644 index 0000000..835dff9 --- /dev/null +++ b/src/INDEX/task/show/method.ts @@ -0,0 +1,57 @@ +import useModel from './model' +import { getApiLoading } from '@/common/libraries/apiLoading' +import { Apis } from '@/gen/Apis' + +const getAssignPermission = (id: number) => { + getApiLoading(Apis.WorkOrder.HouseWorkOrders.GetAssignPermission, { + id: id + }).then(res => { + useModel.assignPermissionData.value = res?.data + }) +} + +export default { + getShow(id: string) { + getApiLoading(Apis.WorkOrder.HouseWorkOrders.Show, { id }).then(res => { + useModel.dataShow.value = res?.data + getAssignPermission(res?.data?.id) + }) + }, + getHouseWorkLogs(id: number) { + getApiLoading(Apis.WorkOrder.HouseWorkLogs.List, { house_work_orders_id: id }).then(res => { + useModel.logsData.value = res?.data + }) + }, + toPageUpdate(type: string) { + uni.navigateTo({ + url: `/INDEX/task/update/index?id=${useModel?.dataShow?.value?.id}&type=${type}` + }) + }, + handlePreviewImage(idx: number | string) { + let urlList = useModel?.dataShow?.value?.attachments?.map((item: any) => item?.url) || [] + uni.previewImage({ + urls: urlList, + current: idx + }) + }, + handlePendingPaymentQrCode(e: any) {}, + handleCopyPhone() { + if (useModel?.dataShow?.value?.contact_phone) { + //备用联系人 + uni.makePhoneCall({ + phoneNumber: useModel?.dataShow?.value?.contact_phone + }) + return + } + if (useModel?.dataShow?.value?.reporter_phone) { + uni.makePhoneCall({ + phoneNumber: useModel?.dataShow?.value?.reporter_phone + }) + return + } + uni.showToast({ + title: '暂无电话号码', + icon: 'none' + }) + } +} diff --git a/src/INDEX/task/show/model.ts b/src/INDEX/task/show/model.ts new file mode 100644 index 0000000..8ad52de --- /dev/null +++ b/src/INDEX/task/show/model.ts @@ -0,0 +1,6 @@ +import { reactive, ref } from 'vue' +export default { + dataShow: ref({}), + logsData: ref([]), + assignPermissionData: ref({}) +} diff --git a/src/INDEX/task/show/style.scss b/src/INDEX/task/show/style.scss new file mode 100644 index 0000000..f5c3629 --- /dev/null +++ b/src/INDEX/task/show/style.scss @@ -0,0 +1,158 @@ +page { + background-color: #f8f8f8; +} +.work_page { + padding-bottom: calc(150rpx + constant(safe-area-inset-bottom)); + padding-bottom: calc(150rpx + env(safe-area-inset-bottom)); +} +.show_card { + margin: 30rpx; + background-color: #fff; + border-radius: 16rpx; + padding: 0 30rpx; + .card_header_type_status { + display: flex; + align-items: center; + justify-content: space-between; + padding: 25rpx 0; + .group_type_btn { + display: flex; + align-items: center; + } + .btn_type { + border: 1rpx solid #eee; + font-size: 28rpx; + padding: 7rpx 19rpx; + border-radius: 100rpx; + margin-right: 20rpx; + } + .btn_status { + border-radius: 100rpx; + font-size: 28rpx; + padding: 7rpx 19rpx; + } + .status_Pending { + color: #f97316; + background-color: #fff7ed; + } + .status_Processing, + .status_PendingAcceptance { + color: #0082fa; + background-color: #edf4ff; + } + .status_Completed { + color: #22c55e; + background-color: #f0fdf4; + } + .status_PendingPayment { + color: #cf1322; + background-color: #ffeded; + } + .status_Closed { + color: #909399; + background-color: #f3f3f4; + } + } + .time_status { + color: #666666; + font-size: 28rpx; + padding: 12rpx 20rpx; + border-radius: 10rpx; + display: flex; + align-items: center; + margin: 0 0 25rpx 0; + } + .status_1 { + color: #24bc21; + background: linear-gradient(90deg, #edffed 0%, rgba(232, 255, 231, 0) 103%); + } + .status_2 { + color: #0082fa; + background: linear-gradient(90deg, #eff7ff 0%, rgba(231, 241, 255, 0) 103%); + } + .status_3 { + color: #f97316; + background: linear-gradient(90deg, #fff4ef 0%, rgba(255, 237, 231, 0) 103%); + } + .status_4 { + color: #ea0000; + background: linear-gradient(90deg, #ffe5e5 0%, rgba(255, 255, 255, 0) 103%); + } + + .card_header_huse_info { + display: flex; + align-items: center; + font-size: 28rpx; + text { + display: inline-block; + height: 28rpx; + line-height: 28rpx; + &:last-child { + margin-left: 15rpx; + border-left: 1rpx solid #eee; + padding-left: 15rpx; + } + } + } + .card_header_content_info { + font-size: 30rpx; + color: #444; + padding: 15rpx 0 0 0; + } + .card_header_imgs { + display: flex; + align-items: center; + flex-wrap: wrap; + padding-bottom: 30rpx; + .item { + width: 140rpx; + height: 140rpx; + border-radius: 10rpx; + background-color: #f8f8f8; + margin-top: 25rpx; + margin-right: 25rpx; + &:nth-child(4n) { + margin-right: 0; + } + overflow: hidden; + image { + width: 100%; + height: 100%; + } + } + } + + .show_card_footer { + border-top: 1rpx solid #eee; + } +} +.work_item_cell { + display: flex; + align-items: center; + justify-content: space-between; + font-size: 30rpx; + color: #666; + padding-top: 25rpx; + &:last-child { + padding-bottom: 25rpx; + } + text { + color: #333; + } +} + +.work_amount_cell { + color: #cf1322; + text { + color: #cf1322; + } +} + +.show_card_title { + font-size: 28rpx; + padding: 30rpx 0; + font-weight: 500; +} +.card_status_4 { + border-top: 6px solid #ef4444; +} diff --git a/src/INDEX/task/update/index.vue b/src/INDEX/task/update/index.vue new file mode 100644 index 0000000..6787629 --- /dev/null +++ b/src/INDEX/task/update/index.vue @@ -0,0 +1,35 @@ + + + + + diff --git a/src/INDEX/task/update/method.ts b/src/INDEX/task/update/method.ts new file mode 100644 index 0000000..8b2f32c --- /dev/null +++ b/src/INDEX/task/update/method.ts @@ -0,0 +1,39 @@ +import { useWeAppAuthStore } from '@/common' +import useModel from './model' +import { Apis } from '@/gen/Apis' +import { getApiLoading } from '@/common/libraries/apiLoading' +const auth = useWeAppAuthStore() +import { showToastBack, showToast } from '@/common/libraries/naviHelper' +export default { + init(data: any) { + uni.setNavigationBarTitle({ + title: data?.type + }) + console.log('init', auth?.data) + useModel.formData.value = { + ...data, + pageType: data?.type, + assign_employees: auth?.data?.user, + house_work_orders_id: data?.id + } + }, + handleSubmit() { + console.log('handleSubmit', useModel.formData.value) + let data = useModel?.formData?.value + if (!data?.level) { + return showToast('请先选择优先级!') + } + if (data?.pageType === '指派工单' && !data?.assign_employees_id) { + return showToast('请先选择处理人!') + } + getApiLoading( + data?.pageType === '指派工单' + ? Apis.WorkOrder.HouseWorkOrders.Assign + : Apis.WorkOrder.HouseWorkOrders.Receive, + data + ).then(res => { + showToastBack(data?.pageType === '指派工单' ? '提交成功!' : '领取成功!', 1, true) + console.log(res) + }) + } +} diff --git a/src/INDEX/task/update/model.ts b/src/INDEX/task/update/model.ts new file mode 100644 index 0000000..b85bf74 --- /dev/null +++ b/src/INDEX/task/update/model.ts @@ -0,0 +1,6 @@ +import { reactive, ref } from 'vue' +export default { + formData: ref({}), + HouseWorkOrdersStatusItemEnum: ref(), + HouseWorkOrdersCostEnum: ref() +} diff --git a/src/INDEX/task/update/style.scss b/src/INDEX/task/update/style.scss new file mode 100644 index 0000000..12de8ca --- /dev/null +++ b/src/INDEX/task/update/style.scss @@ -0,0 +1,11 @@ +page { + background-color: #f8f8f8; +} +.card_form { + background-color: #fff; + padding: 0 30rpx; + margin-bottom: 30rpx; +} +.handler_label { + padding: 10rpx 0; +} diff --git a/src/INDEX/watermark_camera/index.vue b/src/INDEX/watermark_camera/index.vue new file mode 100644 index 0000000..587367b --- /dev/null +++ b/src/INDEX/watermark_camera/index.vue @@ -0,0 +1,50 @@ + + + diff --git a/src/INDEX/watermark_camera/method.ts b/src/INDEX/watermark_camera/method.ts new file mode 100644 index 0000000..f5079ba --- /dev/null +++ b/src/INDEX/watermark_camera/method.ts @@ -0,0 +1,99 @@ +import { useWatermarkStore } from '@/common' +import { showCurrentTime } from '@/common/libraries/day' +import { showToast } from '@/common/libraries/naviHelper' +import { uploadImgWatermark } from '@/common/libraries/upload' +import useModel from './model' +const watermark = useWatermarkStore() + +export default { + handleWatermarkCameraSwitch() { + useModel.devicePosition.value = useModel.devicePosition.value === 'back' ? 'front' : 'back' + }, + + takePhoto() { + const ctx = uni.createCameraContext() + const systemInfo = uni.getSystemInfoSync() + let canvasTop = systemInfo?.windowHeight * (82 / 100) + console.log(systemInfo, 'systemInfo') + ctx.takePhoto({ + quality: 'high', + success: (res: any) => { + uni.showLoading({ + title: useModel?.source?.value === 'save' ? '正在保存...' : '正在上传...', + mask: true + }) + let ctx = uni.createCanvasContext('watermark_camera') + uni.getImageInfo({ + src: res?.tempImagePath, + success: img => { + const { width, height } = img + console.log(img, 'img') + const canvasWidth = 430 + const canvasHeight = (height * canvasWidth) / width + useModel.time.value = showCurrentTime() + ctx.drawImage(res?.tempImagePath || '', 0, 0, canvasWidth, canvasHeight) // 这里设置绘制的大小 + ctx.setFillStyle('rgba(0, 0, 0, 0.2)') + ctx.fillRect(0, canvasTop - 100, canvasWidth, 100) + ctx.setFillStyle('#ff7105') + ctx.fillRect(131, canvasTop - 75, 2, 28) + ctx.fillStyle = '#fff' + ctx.font = '500 16px Arial' + ctx.fillText(useModel?.address?.value?.address || '', 15, canvasTop - 17) // 地址 + ctx.fillText(useModel?.userInfo?.value?.name || '没有登录', 141, canvasTop - 64) // 日期 + ctx.font = '500 12px Arial' + ctx.fillText( + `${useModel?.day.value || ''} ${useModel?.weekDay.value || ''}`, + 141, + canvasTop - 49 + ) // 周几 + ctx.setLineWidth(3) + ctx.setStrokeStyle('#fff') + ctx.font = '900 45px Arial' + ctx.fillText(useModel?.time.value || '', 12, canvasTop - 45) // 时间 + ctx.strokeText(useModel?.time.value || '', 12, canvasTop - 45) // 时间 + ctx.stroke() + ctx.draw(false, () => { + uni.canvasToTempFilePath({ + canvasId: 'watermark_camera', + success: nImg => { + console.log(nImg, 'nImg') + if (useModel?.source?.value === 'current') { + //打卡进来 + uploadImgWatermark({ + path: nImg?.tempFilePath, + name: `${useModel?.userInfo?.value?.name || '未登录'}-打卡-${useModel?.day.value || ''}` + }) + .then(uploadRes => { + console.log(uploadRes, 'uploadRes') + watermark.watermarkInfo.value = uploadRes ? [uploadRes] : [] + uni.navigateBack({ + delta: 1 + }) + uni.hideLoading() + }) + .catch(err => { + console.log(err, 'err') + uni.hideLoading() + }) + } + if (useModel?.source?.value === 'save') { + //首页水印相机 + uni.saveImageToPhotosAlbum({ + filePath: nImg?.tempFilePath, + success: function () { + showToast('保存成功') + console.log('save success') + } + }) + } + } + }) + }) + } + }) + + console.log(res) + } + }) + } +} diff --git a/src/INDEX/watermark_camera/model.ts b/src/INDEX/watermark_camera/model.ts new file mode 100644 index 0000000..dde8704 --- /dev/null +++ b/src/INDEX/watermark_camera/model.ts @@ -0,0 +1,13 @@ +import { useWeAppAuthStore } from '@/common' +import { getDay, showCurrentTime, showWeekDay } from '@/common/libraries/day' +import { ref } from 'vue' +const auth = useWeAppAuthStore() +export default { + devicePosition: ref('back'), + time: ref(showCurrentTime()), + day: ref(getDay()), + weekDay: ref(showWeekDay()), + address: ref({ address: '暂无地址' }), + userInfo: ref(auth?.data?.user), + source: ref('save') +} diff --git a/src/INDEX/watermark_camera/style.scss b/src/INDEX/watermark_camera/style.scss new file mode 100644 index 0000000..cd39e85 --- /dev/null +++ b/src/INDEX/watermark_camera/style.scss @@ -0,0 +1,92 @@ +page { + background-color: #f8f8f8; +} +.camera_container { + position: relative; + height: 82vh; +} +.footer_btn_group { + display: flex; + justify-content: center; + padding-top: 30rpx; + .take_photo_btn { + width: 135rpx; + height: 135rpx; + display: flex; + align-items: center; + justify-content: center; + font-size: 30rpx; + border-radius: 100rpx; + border: 15rpx solid #0082fa; + background-color: #fff; + color: #000; + } +} +.watermark_preview { + position: absolute; + bottom: 0; + left: 30rpx; + z-index: 100; + .watermark_date { + display: flex; + align-items: center; + color: #fff; + .watermark_item { + font-size: 76rpx; + font-weight: 550; + line-height: 50rpx; + } + .watermark_item_separator { + margin: 0 20rpx; + background-color: #ff7105; + width: 5rpx; + height: 50rpx; + } + .watermark_item_info { + font-size: 28rpx; + line-height: 30rpx; + .watermark_week { + font-size: 24rpx; + padding-top: 5rpx; + } + } + } + .watermark_address { + color: #fff; + font-size: 26rpx; + padding: 20rpx 0 25rpx 0; + } +} +.watermark_camera_witch_btn { + position: absolute; + right: 100rpx; + z-index: 100; + height: 165rpx; + display: flex; + align-items: center; + .watermark_camera_witch_btn_content { + height: 80rpx; + text-align: center; + line-height: 40rpx; + .watermark_camera_witch_btn_img { + width: 60rpx; + height: 55rpx; + line-height: 40rpx; + } + image { + width: 60rpx; + height: 60rpx; + } + .watermark_camera_witch_text { + font-size: 24rpx; + color: #333; + font-weight: 500; + } + } +} + +#watermark_camera { + position: fixed; + top: 0; + left: -1000px; +} diff --git a/src/ME/announcement/list/index.vue b/src/ME/announcement/list/index.vue new file mode 100644 index 0000000..e4e407d --- /dev/null +++ b/src/ME/announcement/list/index.vue @@ -0,0 +1,34 @@ + + + + diff --git a/src/ME/announcement/list/method.ts b/src/ME/announcement/list/method.ts new file mode 100644 index 0000000..5a05f98 --- /dev/null +++ b/src/ME/announcement/list/method.ts @@ -0,0 +1,24 @@ +import { getApiLoading } from '@/common/libraries/apiLoading' +import { Apis } from '@/gen/Apis' +import useModel from './model' +import { useWeAppAuthStore } from '@/common' +const auth = useWeAppAuthStore() +const getList = () => { + getApiLoading(Apis.Msg.MsgPropertyAnnouncements.List, useModel?.formData?.value).then(res => { + useModel.listData.value = [...useModel.listData.value, ...res?.data] + useModel.metaData.value = res?.meta + console.log(res) + }) +} +export default { + getList, + loadMore(res: any) { + useModel.formData.value.page = res?.page + getList() + }, + toDetaile(e: { id: string }) { + uni.navigateTo({ + url: `/ME/announcement/show/index?id=${e?.id}` + }) + } +} diff --git a/src/ME/announcement/list/model.ts b/src/ME/announcement/list/model.ts new file mode 100644 index 0000000..200920e --- /dev/null +++ b/src/ME/announcement/list/model.ts @@ -0,0 +1,6 @@ +import { reactive, ref } from 'vue' +export default { + listData: ref([]), + formData: ref({ page: 1 }), + metaData: ref({}) +} diff --git a/src/ME/announcement/list/style.scss b/src/ME/announcement/list/style.scss new file mode 100644 index 0000000..10511b2 --- /dev/null +++ b/src/ME/announcement/list/style.scss @@ -0,0 +1,44 @@ +page { + background-color: #f8f8f8; +} + +.message_center { + padding: 0 30rpx; + .message_center_items { + background-color: #fff; + border-radius: 20rpx; + padding: 0 30rpx; + margin-top: 30rpx; + .title { + color: #333; + font-size: 28rpx; + font-weight: 500; + padding: 30rpx 0 10rpx 0; + } + .time { + color: #999999; + font-size: 24rpx; + padding: 0 0 10rpx 0; + } + .contents_des { + color: #666; + font-size: 28rpx; + line-height: 40rpx; + height: 80rpx; + display: -webkit-box; /* 将对象作为弹性伸缩盒子模型显示 */ + -webkit-box-orient: vertical; /* 设置或检索伸缩盒对象的子元素的排列方式 */ + -webkit-line-clamp: 2; /* 限制在一个块元素显示的文本的行数 */ + overflow: hidden; /* 隐藏溢出的内容 */ + } + .footer { + display: flex; + align-items: center; + justify-content: space-between; + padding: 25rpx 0; + margin-top: 20rpx; + border-top: 1rpx solid #f5f5f5; + color: #333; + font-size: 28rpx; + } + } +} diff --git a/src/ME/announcement/show/index.vue b/src/ME/announcement/show/index.vue new file mode 100644 index 0000000..b109d89 --- /dev/null +++ b/src/ME/announcement/show/index.vue @@ -0,0 +1,25 @@ + + + diff --git a/src/ME/announcement/show/method.ts b/src/ME/announcement/show/method.ts new file mode 100644 index 0000000..8084eb4 --- /dev/null +++ b/src/ME/announcement/show/method.ts @@ -0,0 +1,13 @@ +import { getApiLoading } from '@/common/libraries/apiLoading' +import { Apis } from '@/gen/Apis' +import useModel from './model' +import { useWeAppAuthStore } from '@/common' +const auth = useWeAppAuthStore() +export default { + getShow(id: string) { + getApiLoading(Apis.Msg.MsgPropertyAnnouncements.Show, { id }).then(res => { + useModel.showData.value = res?.data + console.log(res) + }) + } +} diff --git a/src/ME/announcement/show/model.ts b/src/ME/announcement/show/model.ts new file mode 100644 index 0000000..6c2cbfb --- /dev/null +++ b/src/ME/announcement/show/model.ts @@ -0,0 +1,4 @@ +import { reactive, ref } from 'vue' +export default { + showData: ref([]) +} diff --git a/src/ME/announcement/show/style.scss b/src/ME/announcement/show/style.scss new file mode 100644 index 0000000..4102d16 --- /dev/null +++ b/src/ME/announcement/show/style.scss @@ -0,0 +1,22 @@ +.news_show { + padding: 0 30rpx; + border-top: 1px solid #f8f8f8; + .title { + font-size: 32rpx; + font-weight: 500; + height: 30rpx; + line-height: 30rpx; + padding: 30rpx 0 15rpx 0; + color: #333; + } + .time { + color: #999; + font-size: 26rpx; + } + .contents { + line-height: 43rpx; + font-size: 28rpx; + color: #333; + padding: 30rpx 0; + } +} diff --git a/src/ME/instrument/add/index.vue b/src/ME/instrument/add/index.vue new file mode 100644 index 0000000..ffd064f --- /dev/null +++ b/src/ME/instrument/add/index.vue @@ -0,0 +1,69 @@ + + + + diff --git a/src/ME/instrument/add/method.ts b/src/ME/instrument/add/method.ts new file mode 100644 index 0000000..3d2b879 --- /dev/null +++ b/src/ME/instrument/add/method.ts @@ -0,0 +1,39 @@ +import { getApiLoading } from '@/common/libraries/apiLoading' +import { getTime } from '@/common/libraries/day' +import { showToast, showToastBack } from '@/common/libraries/naviHelper' +import { Apis } from '@/gen/Apis' +import useModel from './model' + +export default { + init(e:any) { + useModel.formData.value = {house_meters_id: e?.id} + }, + handleSubmit() { + console.log('handleSubmit', useModel.formData.value) + if (!useModel?.formData?.value?.current_reading) { + return showToast('请设置本次读数!') + } + getApiLoading(Apis.Meter.HouseMeterReadings.Store, { + ...useModel.formData.value, + reading_time: getTime() + }).then(res => { + showToastBack('提交成功!', 1, true) + console.log(res) + }) + }, + handleToSelectHouse() { + uni.navigateTo({ + url: '/pages/public/asset_houses/index?type=work_add' + }) + }, + handleSwitchChange(e: any) { + useModel.formData.value.is_anonymous = e?.detail?.value + console.log(e, 'e') + }, + getShow(e:any){ + getApiLoading(Apis.Meter.HouseMeters.Show,e).then(res => { + useModel.showData.value = res?.data + console.log(res) + }) + } +} diff --git a/src/ME/instrument/add/model.ts b/src/ME/instrument/add/model.ts new file mode 100644 index 0000000..10624d0 --- /dev/null +++ b/src/ME/instrument/add/model.ts @@ -0,0 +1,5 @@ +import { ref } from 'vue' +export default { + formData: ref({}), + showData: ref({}) +} diff --git a/src/ME/instrument/add/style.scss b/src/ME/instrument/add/style.scss new file mode 100644 index 0000000..654bab8 --- /dev/null +++ b/src/ME/instrument/add/style.scss @@ -0,0 +1,93 @@ +page { + background-color: #f8f8f8; +} +.add_page { + padding-bottom: calc(150rpx + constant(safe-area-inset-bottom)); + padding-bottom: calc(150rpx + env(safe-area-inset-bottom)); +} + +.add_page_header{ + background-color: #fff; + padding:20rpx 30rpx 30rpx 30rpx; + .header_cell{ + display: flex; + align-items: center; + color:#666666; + font-size: 28rpx; + padding-top: 15rpx; + } +} +.hande_name_info{ + display: flex; + align-items: center; + .name{ + color:#333333; + font-size: 28rpx; + font-weight: 500; + padding:0 30rpx 0 0; + text{ + padding-left: 20rpx; + } + } + .table_tab{ + display: flex; + align-items: center; + padding: 6rpx 16rpx; + border-radius: 8rpx; + font-size: 24rpx; + image{ + width:18rpx; + height:24rpx; + margin-right: 5rpx; + } + } + .water{ + background-color: #F0F8FF; + color:#0082FA; + } + .electricity{ + background-color: #FFF8F0; + color:#FFB30F; + } +} + +.add_page_form_content{ + padding:30rpx; +} + +.card_form { + background-color: #fff; + padding: 0 30rpx; + margin-bottom: 30rpx; + border-radius: 20rpx; +} +.report_repair { + padding: 10rpx 0; + color: #999; +} + +.current_reading{ + padding:30rpx 0 0 0; + border-bottom: 1px solid #eee; + .title{ + color:#3D3D3D; + font-size: 32rpx; + font-weight: 600; + display: flex; + align-items: center; + justify-content: space-between; + .time{ + color:#999; + font-size:25rpx; + font-weight: 400; + } + } + .input_reading{ + color:#3D3D3D; + font-size: 36rpx; + font-weight: 600; + input{ + height:90rpx; + } + } +} diff --git a/src/ME/instrument/list/index.vue b/src/ME/instrument/list/index.vue new file mode 100644 index 0000000..bb21f54 --- /dev/null +++ b/src/ME/instrument/list/index.vue @@ -0,0 +1,99 @@ + + + diff --git a/src/ME/instrument/list/method.ts b/src/ME/instrument/list/method.ts new file mode 100644 index 0000000..25600e0 --- /dev/null +++ b/src/ME/instrument/list/method.ts @@ -0,0 +1,57 @@ +import { getApiLoading } from '@/common/libraries/apiLoading' +import { Apis } from '@/gen/Apis' +import useModel from './model' + +const getList = () => { + getApiLoading(Apis.Meter.HouseMeters.List, useModel?.formData?.value).then(res => { + useModel.listData.value = [...useModel.listData.value, ...res?.data] + useModel.metaData.value = res?.meta + }) +} +const handleTabSearch = () => { + useModel.formData.value.page = 1 + useModel.listData.value = [] + getList() +} +export default { + getList, + handleSearch(){ + handleTabSearch() + }, + handleChangeFilter(e:any){ + useModel.formData.value ={ + ...useModel.formData.value, + ...e, + pahe:1, + } + useModel.listData.value = [] + getList() + }, + handleChangeFilterReadingStatus(e:any){ + useModel.formData.value ={ + ...useModel.formData.value, + reading_status: e?.value || undefined, + } + useModel.listData.value = [] + getList() + }, + handleChangeTabs(idx: number, e: any) { + useModel.currentTabs.value = idx + useModel.formData.value.meter_type = e?.value + handleTabSearch() + }, + handleLoad(page: number) { + useModel.formData.value.page = page + getList() + }, + handleToAdd(i: any) { + uni.navigateTo({ + url: `/ME/instrument/add/index?id=${i?.id}` + }) + }, + handleToLog(){ + uni.navigateTo({ + url: `/ME/instrument/log/index?id=` + }) + } +} diff --git a/src/ME/instrument/list/model.ts b/src/ME/instrument/list/model.ts new file mode 100644 index 0000000..fbbacfd --- /dev/null +++ b/src/ME/instrument/list/model.ts @@ -0,0 +1,7 @@ +import { ref } from 'vue' +export default { + currentTabs: ref(0), + formData: ref({ page: 1,keyword:"", meter_type: 'HouseMeter' }), + listData: ref([]), + metaData: ref({}) +} diff --git a/src/ME/instrument/list/style.scss b/src/ME/instrument/list/style.scss new file mode 100644 index 0000000..db1c69e --- /dev/null +++ b/src/ME/instrument/list/style.scss @@ -0,0 +1,97 @@ +page { + background-color: #f8f8f8; +} +.header { + background-color: #fff; + position: fixed; + left: 0; + top: 0; + right: 0; + height:280rpx; + z-index: 100; + box-shadow: 0px 3px 7px rgba(206, 206, 206, 0.25); + .header_tabs{ + display: flex; + align-items: center; + justify-content: space-between; + padding:0 30rpx; + .meter_reading_record{ + color:#333333; + font-size: 28rpx; + display: flex; + align-items: center; + } + } + .search{ + padding:20rpx 30rpx 0 30rpx; + } + .filter{ + display: flex; + align-items: center; + justify-content: space-between; + padding:16rpx 30rpx 0 30rpx; + } +} +.work_contents { + padding: 280rpx 0 30rpx 0; + .work_item { + background-color: #fff; + border-radius: 10rpx; + margin: 30rpx 30rpx 0 30rpx; + border-radius: 15rpx; + padding: 0 30rpx 10rpx 30rpx; + .work_item_header { + display: flex; + align-items: self-start; + padding: 25rpx 0; + .name{ + color:#333333; + font-size: 28rpx; + font-weight: 500; + padding:0 30rpx 0 20rpx; + flex: 1; + text{ + padding-right:20rpx; + } + } + .table_tab{ + display: flex; + align-items: center; + padding: 6rpx 16rpx; + border-radius: 8rpx; + font-size: 24rpx; + image{ + width:18rpx; + height:24rpx; + margin-right: 5rpx; + } + } + .water{ + background-color: #F0F8FF; + color:#0082FA; + } + .electricity{ + background-color: #FFF8F0; + color:#FFB30F; + } + } + .work_item_cell { + display: flex; + align-items: center; + justify-content: space-between; + font-size: 30rpx; + color: #666; + padding-bottom: 20rpx; + text { + color: #333; + } + } + .footer_item{ + padding: 0 0 20rpx 0; + } + } +} + +.card_status_4 { + border-top: 6px solid #ef4444; +} diff --git a/src/ME/instrument/log/index.vue b/src/ME/instrument/log/index.vue new file mode 100644 index 0000000..70f757d --- /dev/null +++ b/src/ME/instrument/log/index.vue @@ -0,0 +1,77 @@ + + + diff --git a/src/ME/instrument/log/method.ts b/src/ME/instrument/log/method.ts new file mode 100644 index 0000000..bad7577 --- /dev/null +++ b/src/ME/instrument/log/method.ts @@ -0,0 +1,44 @@ +import { getApiLoading } from '@/common/libraries/apiLoading' +import { Apis } from '@/gen/Apis' +import useModel from './model' + +const getList = () => { + getApiLoading(Apis.Meter.HouseMeterReadings.List, useModel?.formData?.value).then(res => { + useModel.listData.value = [...useModel.listData.value, ...res?.data] + useModel.metaData.value = res?.meta + }) +} +const handleTabSearch = () => { + useModel.formData.value.page = 1 + useModel.listData.value = [] + getList() +} +export default { + getList, + handleSearch(){ + handleTabSearch() + }, + handleChangeTabs(idx: number, e: any) { + useModel.currentTabs.value = idx + useModel.formData.value.meter_type = e?.value + handleTabSearch() + }, + handleLoad(page: number) { + useModel.formData.value.page = page + getList() + }, + handleChangeFilter(e:any){ + useModel.formData.value ={ + ...useModel.formData.value, + ...e, + pahe:1, + } + useModel.listData.value = [] + getList() + }, + handleToDetail(e:any) { + uni.navigateTo({ + url: `/ME/instrument/log_show/index?id=${e?.id}` + }) + } +} diff --git a/src/ME/instrument/log/model.ts b/src/ME/instrument/log/model.ts new file mode 100644 index 0000000..ee632bc --- /dev/null +++ b/src/ME/instrument/log/model.ts @@ -0,0 +1,7 @@ +import { ref } from 'vue' +export default { + currentTabs: ref(0), + formData: ref({ page: 1,keyword:"", meter_type: 'HouseMeter' }), + listData: ref([]), + metaData: ref({}) +} diff --git a/src/ME/instrument/log/style.scss b/src/ME/instrument/log/style.scss new file mode 100644 index 0000000..db1c69e --- /dev/null +++ b/src/ME/instrument/log/style.scss @@ -0,0 +1,97 @@ +page { + background-color: #f8f8f8; +} +.header { + background-color: #fff; + position: fixed; + left: 0; + top: 0; + right: 0; + height:280rpx; + z-index: 100; + box-shadow: 0px 3px 7px rgba(206, 206, 206, 0.25); + .header_tabs{ + display: flex; + align-items: center; + justify-content: space-between; + padding:0 30rpx; + .meter_reading_record{ + color:#333333; + font-size: 28rpx; + display: flex; + align-items: center; + } + } + .search{ + padding:20rpx 30rpx 0 30rpx; + } + .filter{ + display: flex; + align-items: center; + justify-content: space-between; + padding:16rpx 30rpx 0 30rpx; + } +} +.work_contents { + padding: 280rpx 0 30rpx 0; + .work_item { + background-color: #fff; + border-radius: 10rpx; + margin: 30rpx 30rpx 0 30rpx; + border-radius: 15rpx; + padding: 0 30rpx 10rpx 30rpx; + .work_item_header { + display: flex; + align-items: self-start; + padding: 25rpx 0; + .name{ + color:#333333; + font-size: 28rpx; + font-weight: 500; + padding:0 30rpx 0 20rpx; + flex: 1; + text{ + padding-right:20rpx; + } + } + .table_tab{ + display: flex; + align-items: center; + padding: 6rpx 16rpx; + border-radius: 8rpx; + font-size: 24rpx; + image{ + width:18rpx; + height:24rpx; + margin-right: 5rpx; + } + } + .water{ + background-color: #F0F8FF; + color:#0082FA; + } + .electricity{ + background-color: #FFF8F0; + color:#FFB30F; + } + } + .work_item_cell { + display: flex; + align-items: center; + justify-content: space-between; + font-size: 30rpx; + color: #666; + padding-bottom: 20rpx; + text { + color: #333; + } + } + .footer_item{ + padding: 0 0 20rpx 0; + } + } +} + +.card_status_4 { + border-top: 6px solid #ef4444; +} diff --git a/src/ME/instrument/log_show/index.vue b/src/ME/instrument/log_show/index.vue new file mode 100644 index 0000000..067219b --- /dev/null +++ b/src/ME/instrument/log_show/index.vue @@ -0,0 +1,61 @@ + + + diff --git a/src/ME/instrument/log_show/method.ts b/src/ME/instrument/log_show/method.ts new file mode 100644 index 0000000..18f73fe --- /dev/null +++ b/src/ME/instrument/log_show/method.ts @@ -0,0 +1,19 @@ +import { getApiLoading } from '@/common/libraries/apiLoading' +import { Apis } from '@/gen/Apis' +import useModel from './model' + + +export default { + handlePreview(index?: number | string) { + uni.previewImage({ + urls: useModel?.showData?.value?.images?.map((i: { url: string }) => i?.url || ''), + current: index + }) + }, + getShow(data:any){ + getApiLoading(Apis.Meter.HouseMeterReadings.Show, data).then(res => { + useModel.showData.value = res?.data + console.log(res) + }) + }, +} diff --git a/src/ME/instrument/log_show/model.ts b/src/ME/instrument/log_show/model.ts new file mode 100644 index 0000000..9976ce6 --- /dev/null +++ b/src/ME/instrument/log_show/model.ts @@ -0,0 +1,4 @@ +import { ref } from 'vue' +export default { + showData: ref({}), +} diff --git a/src/ME/instrument/log_show/style.scss b/src/ME/instrument/log_show/style.scss new file mode 100644 index 0000000..4d07527 --- /dev/null +++ b/src/ME/instrument/log_show/style.scss @@ -0,0 +1,82 @@ +page { + background-color: #f8f8f8; +} +.show_header{ + margin:30rpx; + background-color: #fff; + border-radius: 15rpx; + padding:30rpx; + .header_cell{ + display: flex; + align-items: center; + color:#666666; + font-size: 28rpx; + padding-top: 15rpx; + } + .hande_name_info{ + display: flex; + align-items: self-start; + .name{ + color:#333333; + font-size: 28rpx; + font-weight: 500; + padding:0 30rpx 0 20rpx; + flex: 1; + text{ + padding-right:20rpx; + } + } + .table_tab{ + display: flex; + align-items: center; + padding: 6rpx 16rpx; + border-radius: 8rpx; + font-size: 24rpx; + image{ + width:18rpx; + height:24rpx; + margin-right: 5rpx; + } + } + .water{ + background-color: #F0F8FF; + color:#0082FA; + } + .electricity{ + background-color: #FFF8F0; + color:#FFB30F; + } + } +} + +.attachment_img{ + margin:30rpx; + background-color: #fff; + padding:30rpx; + border-radius: 15rpx; + .title{ + font-size:30rpx; + font-weight: 600; + } + .img_list{ + display: flex; + align-items: center; + justify-content: flex-start; + flex-wrap: wrap; + padding-top:20rpx; + .attachment_img_item{ + margin-right: 20rpx; + &:last-child{ + margin-right: 0; + } + } + image{ + width:160rpx; + height:160rpx; + } + } + .remark_info{ + font-size:26rpx; + color:#666; + } +} diff --git a/src/ME/work_order_home/index.vue b/src/ME/work_order_home/index.vue new file mode 100644 index 0000000..981d426 --- /dev/null +++ b/src/ME/work_order_home/index.vue @@ -0,0 +1,140 @@ + + + + + diff --git a/src/ME/work_order_home/style.scss b/src/ME/work_order_home/style.scss new file mode 100644 index 0000000..0a470cc --- /dev/null +++ b/src/ME/work_order_home/style.scss @@ -0,0 +1,159 @@ +page { + background-color: #f8f8f8; +} + +.work_order_header { + padding: 70rpx 30rpx 0 30rpx; + background: linear-gradient(180deg, #e7f1ff 0%, #f8f8f8 200rpx); + display: flex; + align-items: center; + justify-content: space-between; + &_left { + width: 60%; + .work_label { + font-size: 45rpx; + font-weight: 500; + color: #333; + } + } + &_right { + width: 40%; + text-align: center; + image { + height: 200rpx; + } + } +} + +.work_order_jinganqu { + display: flex; + align-items: center; + justify-content: space-between; + padding: 40rpx 30rpx; + font-size: 31rpx; + font-weight: 500; + color: #333; + .item { + border-radius: 20rpx; + display: flex; + align-items: center; + height: 140rpx; + flex: 1; + padding: 0 30rpx; + border: 1px solid #fff; + &:first-child { + background: linear-gradient(180deg, #f0f7ff 0%, #ffffff 42%); + } + &:last-child { + background: linear-gradient(180deg, #fff6eb 0%, #ffffff 42%); + margin-left: 30rpx; + } + image { + width: 80rpx; + height: 80rpx; + } + text { + padding-left: 30rpx; + } + } +} + +.work_order_type_title { + padding: 0 30rpx; + font-size: 33rpx; + font-weight: 500; + color: #333; +} + +.work_order_item_content { + padding: 30rpx; + .work_order_item { + display: flex; + align-items: center; + justify-content: space-between; + background-color: #fff; + padding: 30rpx; + border-radius: 15rpx; + margin-bottom: 30rpx; + .icon { + width: 80rpx; + height: 80rpx; + image { + width: 80rpx; + height: 80rpx; + } + } + .info { + flex: 1; + padding: 0 20rpx; + .label { + color: #333; + } + .des { + font-size: 26rpx; + color: #999; + padding: 5rpx 0 0 0; + } + } + } +} + +.report_repair_popup { + .title { + color: #3d3d3d; + font-size: 32rpx; + font-weight: 500; + line-height: 100rpx; + text-align: center; + } + .report_repair_body { + padding: 0 0 50rpx 0; + } + .report_repair_item { + display: flex; + align-items: center; + padding: 30rpx; + background-color: #fff; + margin: 0 30rpx 30rpx 30rpx; + border-radius: 15rpx; + .icon { + width: 80rpx; + height: 80rpx; + image { + width: 80rpx; + height: 80rpx; + } + } + .des { + flex: 1; + padding: 0 20rpx; + color: #3d3d3d; + font-size: 32rpx; + font-weight: 500; + } + } +} + +.work_order_footer { + display: flex; + align-items: center; + justify-content: center; + position: fixed; + left: 0; + bottom: 50rpx; + right: 0; + font-size: 27rpx; + color: #999; + button { + padding: 0; + margin: 0; + font-size: 27rpx; + background-color: transparent; + } + text { + color: #2a7efb; + } +} +button:after { + border: none !important; /* 去掉边框 */ +} diff --git a/src/WORKORDER/acceptance/index.vue b/src/WORKORDER/acceptance/index.vue new file mode 100644 index 0000000..796f564 --- /dev/null +++ b/src/WORKORDER/acceptance/index.vue @@ -0,0 +1,40 @@ + + + + + diff --git a/src/WORKORDER/acceptance/method.ts b/src/WORKORDER/acceptance/method.ts new file mode 100644 index 0000000..79b2d36 --- /dev/null +++ b/src/WORKORDER/acceptance/method.ts @@ -0,0 +1,33 @@ +import { useWeAppAuthStore } from '@/common' +import useModel from './model' +import { Apis } from '@/gen/Apis' +import { getApiLoading } from '@/common/libraries/apiLoading' +const auth = useWeAppAuthStore() +import { showToastBack, showToast } from '@/common/libraries/naviHelper' +export default { + init(data: any) { + useModel.HouseWorkOrdersAcceptResultEnum.value = { + Processing2: { text: '是', value: '1' }, + Processing1: { text: '否', value: '0' } + } + useModel.formData.value = { + ...data + } + }, + handleSubmit() { + let data = useModel?.formData?.value + if (!data?.is_completed) { + return showToast('请选择是否已经完工!') + } + if (data?.is_completed === '0' && !data?.accept_remark) { + return showToast('请先输入原因!') + } + getApiLoading(Apis.WorkOrder.HouseWorkOrders.Accept, { + ...data, + is_completed: data?.is_completed === '1' ? true : false + }).then(res => { + showToastBack('提交成功!', 1, true) + console.log(res) + }) + } +} diff --git a/src/WORKORDER/acceptance/model.ts b/src/WORKORDER/acceptance/model.ts new file mode 100644 index 0000000..7647d3e --- /dev/null +++ b/src/WORKORDER/acceptance/model.ts @@ -0,0 +1,5 @@ +import { reactive, ref } from 'vue' +export default { + formData: ref({}), + HouseWorkOrdersAcceptResultEnum: ref() +} diff --git a/src/WORKORDER/acceptance/style.scss b/src/WORKORDER/acceptance/style.scss new file mode 100644 index 0000000..3369a73 --- /dev/null +++ b/src/WORKORDER/acceptance/style.scss @@ -0,0 +1,14 @@ +page { + background-color: #f8f8f8; +} +.card_form { + background-color: #fff; + padding: 0 30rpx; + margin-bottom: 30rpx; +} +.text_gray { + font-size: 24rpx; + color: #666; + padding: 25rpx 0 30rpx 0; + border-top: 1rpx solid #eee; +} diff --git a/src/WORKORDER/add/index.vue b/src/WORKORDER/add/index.vue index 55432e0..c752636 100644 --- a/src/WORKORDER/add/index.vue +++ b/src/WORKORDER/add/index.vue @@ -1,89 +1,78 @@ + diff --git a/src/WORKORDER/list_log/index.vue b/src/WORKORDER/list_log/index.vue new file mode 100644 index 0000000..06a0b82 --- /dev/null +++ b/src/WORKORDER/list_log/index.vue @@ -0,0 +1,67 @@ + + + diff --git a/src/WORKORDER/list_log/method.ts b/src/WORKORDER/list_log/method.ts new file mode 100644 index 0000000..62a6c92 --- /dev/null +++ b/src/WORKORDER/list_log/method.ts @@ -0,0 +1,54 @@ +import useModel from './model' +import { getApiLoading } from '@/common/libraries/apiLoading' +import { Apis } from '@/gen/Apis' + +const getList = () => { + getApiLoading(Apis.WorkOrder.HouseWorkOrders.MySubmitList, useModel?.formData?.value).then( + res => { + useModel.dataList.value = [...useModel?.dataList?.value, ...res?.data] + useModel.meta.value = res?.meta + } + ) +} +const handleSearch = () => { + useModel.formData.value.page = 1 + useModel.dataList.value = [] + getList() +} +export default { + getList, + handleToDetail(e: { id: string }) { + uni.navigateTo({ + url: `/WORKORDER/show_log/index?id=${e?.id}` + }) + }, + handleAdd() { + uni.navigateTo({ + url: '/WORKORDER/add/index' + }) + }, + handleChangeTabs(idx: number, e: any) { + useModel.currentTabs.value = idx + useModel.formData.value.type = e?.value + handleSearch() + }, + + handleAssignEmployee(e: any) { + if (e?.status === 'PendingAcceptance') { + //去验收工单 + uni.navigateTo({ + url: `/WORKORDER/acceptance/index?id=${e?.id}` + }) + return false + } + console.log(e, 'eee') + }, + handleChangeStatus(e: { value: string }) { + useModel.formData.value.status = e?.value + handleSearch() + }, + handleLoad(page: number) { + useModel.formData.value.page = page + getList() + } +} diff --git a/src/WORKORDER/list_log/model.ts b/src/WORKORDER/list_log/model.ts new file mode 100644 index 0000000..37c96d2 --- /dev/null +++ b/src/WORKORDER/list_log/model.ts @@ -0,0 +1,13 @@ +import { reactive, ref } from 'vue' +export default { + dataList: ref([]), + currentTabs: ref(0), + meta: ref({}), + showEvaluate:ref(false), + evaluateParams:ref({}), + formData: ref({ + page: 1, + status: '', + type: 'Repair' + }) +} diff --git a/src/WORKORDER/list_log/style.scss b/src/WORKORDER/list_log/style.scss new file mode 100644 index 0000000..3b90f5a --- /dev/null +++ b/src/WORKORDER/list_log/style.scss @@ -0,0 +1,116 @@ +page { + background-color: #f8f8f8; +} + +.work_contents { + padding: 220rpx 0 0 0; + .work_item { + background-color: #fff; + border-radius: 10rpx; + margin: 30rpx 30rpx 0 30rpx; + border-radius: 15rpx; + padding: 0 30rpx 30rpx 30rpx; + .work_item_header { + display: flex; + align-items: center; + justify-content: space-between; + padding: 25rpx 0; + font-size: 24rpx; + color: #3d3d3d; + .btn_type { + border: 1rpx solid #eee; + padding: 7rpx 19rpx; + border-radius: 100rpx; + } + .btn_status { + border-radius: 100rpx; + padding: 7rpx 19rpx; + } + .btn_status_Pending { + color: #f97316; + background-color: #fff7ed; + } + .btn_status_Processing, + .btn_status_PendingAcceptance { + color: #0082fa; + background-color: #edf4ff; + } + .btn_status_PendingPayment { + color: #cf1322; + background-color: #ffeded; + } + .btn_status_Completed { + color: #22c55e; + background-color: #f0fdf4; + } + .btn_status_Closed { + color: #909399; + background-color: #f3f3f4; + } + .work_item_header_left { + display: flex; + align-items: center; + .btn_type { + margin-right: 30rpx; + } + } + } + .work_item_houses { + display: flex; + align-items: center; + font-size: 28rpx; + font-weight: 500; + .item { + height: 30rpx; + line-height: 30rpx; + &:last-child { + border-left: 1rpx solid #eee; + padding-left: 15rpx; + margin-left: 15rpx; + } + } + } + .work_item_des { + color: #444444; + font-size: 28rpx; + padding: 12rpx 0 10rpx 0; + } + .work_item_cell { + color: #666666; + font-size: 26rpx; + padding-top: 15rpx; + display: flex; + align-items: center; + } + .work_item_footer { + border-top: 1rpx solid #eee; + padding: 25rpx 0 0 0; + margin-top: 25rpx; + display: flex; + justify-content: flex-end; + align-items: center; + } + + .work_item_images { + display: flex; + align-items: center; + flex-wrap: wrap; + .item { + width: 140rpx; + height: 140rpx; + border-radius: 10rpx; + background-color: #f8f8f8; + margin-top: 25rpx; + margin-right: 25rpx; + &:nth-child(4n) { + margin-right: 0; + } + overflow: hidden; + image { + width: 100%; + height: 100%; + } + } + } + } +} diff --git a/src/WORKORDER/poster/index.vue b/src/WORKORDER/poster/index.vue new file mode 100644 index 0000000..01dd96d --- /dev/null +++ b/src/WORKORDER/poster/index.vue @@ -0,0 +1,26 @@ + + + + + diff --git a/src/WORKORDER/poster/method.ts b/src/WORKORDER/poster/method.ts new file mode 100644 index 0000000..3e2aee8 --- /dev/null +++ b/src/WORKORDER/poster/method.ts @@ -0,0 +1,225 @@ +import { getApiLoading } from '@/common/libraries/apiLoading' +import { Apis } from '@/gen/Apis' +import useModel from './model' +// import { handleFloors } from "@/common/libraries/public"; +type ImgInfo = { + leftNum?: number + imgWidth?: number + imgHeight?: number +} +const calculateAspectRatio = (iw: number, ih: number) => { + // 计算图片的长宽比 + let imgWidth = iw + let imgHeight = ih + const maxWidth = 300 + const maxHeight = 200 + let leftNum = 0 + let topNum = 0 // 用于垂直居中的偏移 + + // 计算等比缩放后的尺寸 + let ratio = imgWidth / imgHeight + + if (imgWidth > maxWidth || imgHeight > maxHeight) { + if (imgWidth / maxWidth > imgHeight / maxHeight) { + // 宽度超过最大宽度 + imgWidth = maxWidth + imgHeight = Math.round(imgWidth / ratio) + } else { + // 高度超过最大高度 + imgHeight = maxHeight + imgWidth = Math.round(imgHeight * ratio) + } + } + + // 如果图片宽度小于最大宽度,计算 leftNum 以使图片水平居中 + if (imgWidth < maxWidth) { + const leNum = maxWidth - imgWidth + leftNum = leNum / 2 + 22.5 + } + + // 如果图片高度小于最大高度,计算 topNum 以使图片垂直居中 + if (imgHeight < maxHeight) { + const toNum = maxHeight - imgHeight + topNum = toNum / 2 + } + return { leftNum: leftNum, topNum: topNum, imgWidth, imgHeight } +} + +const getImagesInfo = (url: string, fun: any) => { + //获取图片等比例缩放后的宽高 + uni.getImageInfo({ + src: url, + success: function (img) { + return fun(calculateAspectRatio(img.width, img.height)) + } + }) +} + +const send_code = (code: string, fun: (url: string) => void) => { + /*code是指图片base64格式数据*/ + //声明文件系统 + const fs = uni.getFileSystemManager() + //随机定义路径名称 + var times = new Date().getTime() + var codeimg = wx.env.USER_DATA_PATH + '/' + times + '.png' + + //将base64图片写入 + fs.writeFile({ + filePath: codeimg, + data: code.slice(22), + encoding: 'base64', + + success: () => { + return fun(codeimg) + } + }) +} + +const getQrCode = (data: any, fun?: (url: string) => void) => { + //获取二维码 + getApiLoading(Apis.WorkOrder.HouseWorkOrders.GetWorkOrderPayQrCode, { + id: data?.id + }).then((res: any) => { + const fs = uni.getFileSystemManager() + //随机定义路径名称 + let times = new Date().getTime() + let codeimg = wx.env.USER_DATA_PATH + '/' + times + '.png' + console.log(codeimg, '二维码路径') + // return fun?.(res?.data?.qr_code) + //将base64图片写入 + fs.writeFile({ + filePath: codeimg, + data: res?.data?.qr_code.slice(22), + encoding: 'base64', + success: () => { + return fun?.(codeimg) + } + }) + }) +} + +export default { + //method + getHouseDetail(id: number) { + // getApiLoading(Apis.SourceHouse.SourceHouses.Show, { id }).then( + // (res: any) => { + // useModel.houseDetail.value = res.data; + // this.getQrCode(res?.data); + // } + // ); + }, + + setCanvas(data: any) { + console.log(data, 'data') + const context = uni.createCanvasContext('poster_firstCanvas') + getQrCode(data, url => { + uni.downloadFile({ + url: 'https://pay-prod-1369486729.cos.ap-guangzhou.myqcloud.com/uploads/cs-test/01KFYRR5Y37PR2C1EDJYZYCDJK.png', + success(res) { + context.drawImage(res.tempFilePath, 0, 0, 345, 504) + context.font = 'bold 18px Arial' + context.fillStyle = '#3D3D3D' + context.setTextAlign('center') + context.fillText(data?.full_name || '-', 345 / 2, 45) + context.font = 'bold 20px Arial' + context.fillStyle = '#3D3D3D' + context.fillText(`¥${data?.amount || '-'}元`, 345 / 2, 85) + context.font = '12px Arial' + context.fillStyle = '#666' + context.fillText('待支付', 345 / 2, 110) + context.font = '14px Arial' + context.fillStyle = '#00C800' + context.fillText('请使用微信扫码支付', 345 / 2, 450) + + setTimeout(() => { + context.drawImage(url, 72.5, 150, 200, 200) + context.restore() + context.draw() + }, 500) + } + }) + console.log(url, '二维码路径') + }) + }, + + onDownloadPosters() { + //保存se64转图片并保存到相册 + uni.showLoading({ + title: '正在保存中...' + }) + uni.canvasToTempFilePath({ + x: 0, + y: 0, + width: 345, + height: 504, + destWidth: 345 * 4, + destHeight: 504 * 4, + canvasId: 'poster_firstCanvas', + success: function (res) { + console.log(res, 'res') + uni.saveImageToPhotosAlbum({ + filePath: res.tempFilePath, + success: function () { + console.log('save success') + uni.hideLoading() + }, + fail() { + uni.hideLoading() + } + }) + console.log(res.tempFilePath) + }, + fail(e) { + console.log(e, 'err') + uni.hideLoading() + } + }) + }, + + initActualImages: async (id: string | number) => { + const { houseActualImages, posterImage } = useModel + // clearActualImages(); + // const res = await Apis.SourceHouse.SourceHouseSurveys.List({ + // source_houses_id: Number(id), + // }); + // if (res.success) { + // if (res.data?.length) { + // useModel.choiceImgShow.value = !useModel.choiceImgShow.value; + // } else { + // uni.showToast({ + // title: "当前房源暂无图片!", + // icon: "none", + // duration: 1000, + // }); + // } + // // 接口调用成功 + // let isRejected = false; + // res.data.some((item: any) => { + // if (item.status === "Rejected" || item.status === "PendingReview") { + // // 存在未过审图片 + // isRejected = true; + // return true; + // } + // return false; + // }); + // if (!isRejected) { + // // 不存在未过审图片 + // if (!!res.data.length) { + // // 存在图片 + // houseActualImages.value = res.data; + // posterImage.value = res.data[0].image_url; + // } + // } + // } + }, + choiceImgPopControl() { + this.initActualImages(useModel.houseDetail.value?.id) + }, + copyLink() { + // getApiLoading(Apis.SourceHouse.SourceHouses.SourceHouseShortUrl, { + // id: useModel.houseDetail.value.id, + // }).then((res: any) => { + // uni.setClipboardData({ data: res.data.short_link }); + // }); + } +} diff --git a/src/WORKORDER/poster/model.ts b/src/WORKORDER/poster/model.ts new file mode 100644 index 0000000..954a29b --- /dev/null +++ b/src/WORKORDER/poster/model.ts @@ -0,0 +1,19 @@ +import { ref } from "vue"; + +export default { + //model + coverBgImg: "https://jyw-1322946948.cos.ap-guangzhou.myqcloud.com/upload/gjEDA6cmTu5FnMCWzyGSE.png", + coverImg: ref(''), + houseDetail: ref({}), + qrCodeByBase64: ref(""), + choiceImgShow: ref(false), + posterStyle: { + background: + "url('https://jyw-1322946948.cos.ap-guangzhou.myqcloud.com/upload/jgKWriyfZrPSIBuHrlfNG.png')", + backgroundSize: "100% 100%", + marginTop: "30rpx", + padding: "30rpx", + }, + houseActualImages: ref([]), + posterImage: ref(''), +}; diff --git a/src/WORKORDER/poster/style.scss b/src/WORKORDER/poster/style.scss new file mode 100644 index 0000000..30baf5c --- /dev/null +++ b/src/WORKORDER/poster/style.scss @@ -0,0 +1,86 @@ +/* 页面样式 */ +.poster_main { + width: 100vw; + height: 100vh; + background-color: #f1f2f5; +} + +.poster_canvas { + padding-top: 30rpx; + height: 534px; +} + +#poster_firstCanvas { + margin: 0 auto; +} + +.poster_func { + margin-top: 40rpx; + display: flex; + flex-direction: column; + align-items: center; + + &_choice { + font-size: 28rpx; + font-weight: 400; + color: #0082fa; + text-decoration: underline; + } + + &_download, + &_link { + width: 500rpx; + height: 80rpx; + font-size: 28rpx; + border-radius: 66rpx; + display: flex; + justify-content: center; + align-items: center; + background-color: #0082fa; + margin-top: 30rpx; + color: #fff; + } + + &_link { + background-color: #fff; + } +} + +/* 选择图片弹出层 */ + +.image_popup { + display: flex; + justify-content: center; + align-items: center; + + &_card { + width: 90vw; + z-index: 200; + + &_title { + text-align: center; + font-size: 36rpx; + font-weight: 600; + + &_text { + margin: 20rpx 0 60rpx 0; + } + } + + &_enter { + margin: 100rpx 0 20rpx 0; + } + + &_swiper { + &_item { + display: flex; + justify-content: center; + } + + &_image { + width: 480rpx; + height: 320rpx; + } + } + } +} diff --git a/src/WORKORDER/show/index.vue b/src/WORKORDER/show/index.vue index 118ea33..0550cc0 100644 --- a/src/WORKORDER/show/index.vue +++ b/src/WORKORDER/show/index.vue @@ -1,51 +1,48 @@ diff --git a/src/WORKORDER/show_log/index.vue b/src/WORKORDER/show_log/index.vue new file mode 100644 index 0000000..0b5385b --- /dev/null +++ b/src/WORKORDER/show_log/index.vue @@ -0,0 +1,153 @@ + + + diff --git a/src/WORKORDER/show_log/method.ts b/src/WORKORDER/show_log/method.ts new file mode 100644 index 0000000..981a798 --- /dev/null +++ b/src/WORKORDER/show_log/method.ts @@ -0,0 +1,75 @@ +import { getApiLoading } from '@/common/libraries/apiLoading' +import { specificTime } from '@/common/libraries/day' +import { Apis } from '@/gen/Apis' +import useModel from './model' + +const getShow = (id: string) => { + getApiLoading(Apis.WorkOrder.HouseWorkOrders.Show, { id }).then(res => { + useModel.dataShow.value = res?.data + }) +} + +const getHouseWorkLogs = (id: number) => { + getApiLoading(Apis.WorkOrder.HouseWorkLogs.List, { house_work_orders_id: id }).then(res => { + useModel.logsData.value = res?.data + }) +} + +export default { + getShow, + getHouseWorkLogs, + toPageAddLogs() { + if (useModel?.dataShow?.value?.status === 'PendingAcceptance') { + //去验收工单 + uni.navigateTo({ + url: `/WORKORDER/acceptance/index?id=${useModel?.dataShow?.value?.id}` + }) + } + }, + handleClosed() { + if ( + useModel?.dataShow?.value?.expect_start_time && + specificTime(useModel?.dataShow?.value?.expect_start_time) + ) { + uni.showModal({ + title: '提示', + content: '距离工单开始时间小于2小时,无法关闭工单!若需取消,请联系处理人员操作。', + cancelText: '点错了', + success: function (res) { + if (res.confirm) { + console.log('用户点击确定') + } else if (res.cancel) { + console.log('用户点击取消') + } + } + }) + return false + } + uni.showModal({ + title: '提示', + content: '关闭工单后无法继续操作,如需继续需要重新提交,您是否确认关闭', + cancelText: '点错了', + success: function (res) { + if (res.confirm) { + getApiLoading(Apis.WorkOrder.HouseWorkOrders.Close, { + id: useModel?.dataShow?.value?.id + }).then(res => { + getShow(useModel?.dataShow?.value?.id) + getHouseWorkLogs(useModel?.dataShow?.value?.id) + }) + console.log('用户点击确定') + } else if (res.cancel) { + console.log('用户点击取消') + } + } + }) + }, + handlePendingPaymentQrCode(e: any) {}, + handleCopyPhone(phone: string) { + if (phone) { + uni.makePhoneCall({ + phoneNumber: phone //仅为示例,并非真实的电话号码 + }) + } + } +} diff --git a/src/WORKORDER/show_log/model.ts b/src/WORKORDER/show_log/model.ts new file mode 100644 index 0000000..4b2d542 --- /dev/null +++ b/src/WORKORDER/show_log/model.ts @@ -0,0 +1,5 @@ +import { reactive, ref } from 'vue' +export default { + dataShow: ref({}), + logsData: ref([]) +} diff --git a/src/WORKORDER/show_log/style.scss b/src/WORKORDER/show_log/style.scss new file mode 100644 index 0000000..f5c3629 --- /dev/null +++ b/src/WORKORDER/show_log/style.scss @@ -0,0 +1,158 @@ +page { + background-color: #f8f8f8; +} +.work_page { + padding-bottom: calc(150rpx + constant(safe-area-inset-bottom)); + padding-bottom: calc(150rpx + env(safe-area-inset-bottom)); +} +.show_card { + margin: 30rpx; + background-color: #fff; + border-radius: 16rpx; + padding: 0 30rpx; + .card_header_type_status { + display: flex; + align-items: center; + justify-content: space-between; + padding: 25rpx 0; + .group_type_btn { + display: flex; + align-items: center; + } + .btn_type { + border: 1rpx solid #eee; + font-size: 28rpx; + padding: 7rpx 19rpx; + border-radius: 100rpx; + margin-right: 20rpx; + } + .btn_status { + border-radius: 100rpx; + font-size: 28rpx; + padding: 7rpx 19rpx; + } + .status_Pending { + color: #f97316; + background-color: #fff7ed; + } + .status_Processing, + .status_PendingAcceptance { + color: #0082fa; + background-color: #edf4ff; + } + .status_Completed { + color: #22c55e; + background-color: #f0fdf4; + } + .status_PendingPayment { + color: #cf1322; + background-color: #ffeded; + } + .status_Closed { + color: #909399; + background-color: #f3f3f4; + } + } + .time_status { + color: #666666; + font-size: 28rpx; + padding: 12rpx 20rpx; + border-radius: 10rpx; + display: flex; + align-items: center; + margin: 0 0 25rpx 0; + } + .status_1 { + color: #24bc21; + background: linear-gradient(90deg, #edffed 0%, rgba(232, 255, 231, 0) 103%); + } + .status_2 { + color: #0082fa; + background: linear-gradient(90deg, #eff7ff 0%, rgba(231, 241, 255, 0) 103%); + } + .status_3 { + color: #f97316; + background: linear-gradient(90deg, #fff4ef 0%, rgba(255, 237, 231, 0) 103%); + } + .status_4 { + color: #ea0000; + background: linear-gradient(90deg, #ffe5e5 0%, rgba(255, 255, 255, 0) 103%); + } + + .card_header_huse_info { + display: flex; + align-items: center; + font-size: 28rpx; + text { + display: inline-block; + height: 28rpx; + line-height: 28rpx; + &:last-child { + margin-left: 15rpx; + border-left: 1rpx solid #eee; + padding-left: 15rpx; + } + } + } + .card_header_content_info { + font-size: 30rpx; + color: #444; + padding: 15rpx 0 0 0; + } + .card_header_imgs { + display: flex; + align-items: center; + flex-wrap: wrap; + padding-bottom: 30rpx; + .item { + width: 140rpx; + height: 140rpx; + border-radius: 10rpx; + background-color: #f8f8f8; + margin-top: 25rpx; + margin-right: 25rpx; + &:nth-child(4n) { + margin-right: 0; + } + overflow: hidden; + image { + width: 100%; + height: 100%; + } + } + } + + .show_card_footer { + border-top: 1rpx solid #eee; + } +} +.work_item_cell { + display: flex; + align-items: center; + justify-content: space-between; + font-size: 30rpx; + color: #666; + padding-top: 25rpx; + &:last-child { + padding-bottom: 25rpx; + } + text { + color: #333; + } +} + +.work_amount_cell { + color: #cf1322; + text { + color: #cf1322; + } +} + +.show_card_title { + font-size: 28rpx; + padding: 30rpx 0; + font-weight: 500; +} +.card_status_4 { + border-top: 6px solid #ef4444; +} diff --git a/src/WORKORDER/update/index.vue b/src/WORKORDER/update/index.vue index 5f5d7d6..ea38cb9 100644 --- a/src/WORKORDER/update/index.vue +++ b/src/WORKORDER/update/index.vue @@ -3,25 +3,35 @@ - - - + + + + + + + + + + @@ -31,7 +41,6 @@ import { onLoad } from '@dcloudio/uni-app' import method from './method' import useModel from './model' -import { HouseWorkOrdersStatusEnum } from '@/gen/Enums' onLoad(e => { method?.init(e) diff --git a/src/WORKORDER/update/method.ts b/src/WORKORDER/update/method.ts index 55d666f..6705e14 100644 --- a/src/WORKORDER/update/method.ts +++ b/src/WORKORDER/update/method.ts @@ -1,11 +1,19 @@ import { useWeAppAuthStore } from '@/common' -import useModel from './model' -import { Apis } from '@/gen/Apis' import { getApiLoading } from '@/common/libraries/apiLoading' +import { showToast, showToastBack } from '@/common/libraries/naviHelper' +import { Apis } from '@/gen/Apis' +import useModel from './model' const auth = useWeAppAuthStore() -import { showToastBack, showToast } from '@/common/libraries/naviHelper' export default { init(data: any) { + useModel.HouseWorkOrdersStatusItemEnum.value = { + Processing: { text: '仍在处理', value: 'Processing' }, + Completed: { text: '我已完工', value: 'Completed' } + } + useModel.HouseWorkOrdersCostEnum.value = { + Processing2: { text: '是', value: '1' }, + Processing1: { text: '否', value: '0' } + } useModel.formData.value = { ...data, house_work_orders_id: data?.id @@ -13,10 +21,38 @@ export default { }, handleSubmit() { console.log('handleSubmit', useModel.formData.value) - if (!useModel.formData.value.status) { - return showToast('请先选择工单状态!') + if (!useModel.formData.value.status) { + return showToast('请先选择状态!') } - getApiLoading(Apis.WorkOrder.HouseWorkLogs.Store, useModel.formData.value).then(res => { + if (!useModel.formData.value.description) { + return showToast('请输入备注说明/进度说明!') + } + if ( + useModel.formData.value.status === 'Completed' && + !useModel.formData.value.attachments?.length + ) { + return showToast('请上传完工图片!') + } + if ( + useModel?.formData?.value?.status === 'Completed' && + useModel?.formData?.value?.location === 'MyHome' && + !useModel?.formData?.value?.is_fee + ) { + return showToast('请上选择是否产生费用!') + } + if (useModel.formData.value.is_fee === '1' && !useModel?.formData?.value?.amount) { + return showToast('请输入费用金额!') + } + if ( + useModel.formData.value.is_fee === '1' && + !useModel?.formData?.value?.company_project_receipt_accounts_id + ) { + return showToast('请选择收款账号!') + } + getApiLoading(Apis.WorkOrder.HouseWorkLogs.Store, { + ...useModel.formData.value, + // is_fee: useModel.formData.value.is_fee === '1' ? true : false + }).then(res => { showToastBack('提交成功!', 1, true) console.log(res) }) diff --git a/src/WORKORDER/update/model.ts b/src/WORKORDER/update/model.ts index a78e0a8..c84579c 100644 --- a/src/WORKORDER/update/model.ts +++ b/src/WORKORDER/update/model.ts @@ -1,4 +1,6 @@ -import { reactive, ref } from 'vue' +import { ref } from 'vue' export default { - formData: ref({}) + formData: ref({}), + HouseWorkOrdersStatusItemEnum: ref(), + HouseWorkOrdersCostEnum: ref() } diff --git a/src/common/index.ts b/src/common/index.ts index 143746f..2f4d511 100644 --- a/src/common/index.ts +++ b/src/common/index.ts @@ -1,6 +1,7 @@ // export * from "./libraries/pinia/auth"; // export * from "./hooks/useMyWebSocket"; export * from './libraries/request' +export * from './store/useWatermarkStore' export * from './store/useWeAppAuthStore' export * from './store/useWorkStore' // export * from "./store/auth"; diff --git a/src/common/libraries/day.ts b/src/common/libraries/day.ts index 48adff1..41932f6 100644 --- a/src/common/libraries/day.ts +++ b/src/common/libraries/day.ts @@ -1,7 +1,7 @@ import dayjs from 'dayjs' +import 'dayjs/locale/zh-cn' import relativeTime from 'dayjs/plugin/relativeTime' dayjs.locale('zh-cn') // 设置为中文 -import 'dayjs/locale/zh-cn' // 使用相对时间插件 dayjs.extend(relativeTime) export function RelativeTime(time: number) { @@ -13,7 +13,7 @@ export function ShowLastTime(time: string) { } export function showDay(time: number) { - return dayjs(time).format('YYYY-MM-DD') + return time ? dayjs(time).format('YYYY-MM-DD') : '-' } export function getDay(num?: number) { @@ -25,6 +25,10 @@ export function getDay(num?: number) { return dayjs().format('YYYY-MM-DD') } +export function getTime() { + return dayjs().format('YYYY-MM-DD HH:mm:ss') +} + export function getOverDay(num: number, type: string) { const currentDate = dayjs() const formattedCurrentDate = currentDate.format('YYYY-MM-DD') @@ -69,7 +73,7 @@ export function getTimeStatus(endTime: string) { const hours = now.diff(end, 'hour') const minutes = now.diff(end, 'minute') % 60 - let label = '上门时间已超时' + let label = '已过期望处理时间:' if (hours > 0) { label += `${hours}个小时` } @@ -177,3 +181,46 @@ export function getTheFutureDay(num = 1) { const pastFifteenDays = dayjs().add(num, 'day') return pastFifteenDays.format('YYYY-MM-DD') } + +export function showCurrentTime() { + return dayjs().format('HH:mm') +} + +export function isDatePassed(fixedDate: string) { + //判断固定日期是否已过 + console.log(dayjs().isAfter(dayjs(fixedDate)),'dayjs().isAfter(dayjs(fixedDate))') + return dayjs().isAfter(dayjs(fixedDate), 'day') +} + +export function showWeekDay() { + const weekMap = { + 0: '星期日', + 1: '星期一', + 2: '星期二', + 3: '星期三', + 4: '星期四', + 5: '星期五', + 6: '星期六' + } + const today = weekMap[dayjs().day()] + return today +} + +export function getDayTime(time?: string) { + if (time) { + let dataTime = time?.replace(/-/g, '/') + return dayjs(dataTime).format('YYYY-MM-DD HH:mm') + } + return dayjs().format('YYYY-MM-DD HH:mm') +} + + +export function specificTime(targetTime: string) { + let dataTime = targetTime?.replace(/-/g, '/') + const now = dayjs() + const target = dayjs(dataTime) + let hoursDiff = Math.abs(target.diff(now, 'hour', true)) <= 2 || target.isBefore(now) + console.log(hoursDiff, 'hoursDiff') + //是否在2小时内的 + return hoursDiff +} diff --git a/src/common/libraries/map.ts b/src/common/libraries/map.ts new file mode 100644 index 0000000..fe08f71 --- /dev/null +++ b/src/common/libraries/map.ts @@ -0,0 +1,42 @@ +export function getMapAddress() { + // 天地图配置 + const TIANDITU_KEY = '4ce26ecef55ae1ec47910a72a098efc0' + return new Promise<{ address: string }>((resolve, reject) => { + uni.getLocation({ + type: 'wgs84', + altitude: true, + isHighAccuracy: true, + success(res) { + console.log(res, '经纬度') + const url = `https://api.tianditu.gov.cn/geocoder?postStr={'lon':${res.longitude},'lat':${res.latitude},'ver':2}&type=geocode&tk=${TIANDITU_KEY}` + uni.request({ + url: url, + method: 'GET', + success(res: any) { + resolve({ address: res?.data?.result?.formatted_address || '' }) + console.log(res, 'address') + }, + fail(res) { + resolve({ address: '拒绝定位' }) + console.error('获取地址失败:', res) + uni.showModal({ + title: '提示', + content: '请先允许定位!', + success: function (res) { + if (res.confirm) { + uni.openSetting() + console.log('用户点击确定') + } else if (res.cancel) { + console.log('用户点击取消') + } + } + }) + } + }) + }, + fail(e) { + console.log('拒绝定位', e) + } + }) + }) +} diff --git a/src/common/libraries/naviHelper.ts b/src/common/libraries/naviHelper.ts index 6445991..872ce4a 100644 --- a/src/common/libraries/naviHelper.ts +++ b/src/common/libraries/naviHelper.ts @@ -21,10 +21,15 @@ export function showToastBack(label?: string, delta = 1, back = true, backFun?: }) } -export function showToast(label?: string) { +export function showToast(label?: string, fun?: (res: boolean) => void) { uni.showToast({ title: label || '提交成功!', duration: 1000, - icon: 'none' + icon: 'none', + success() { + setTimeout(() => { + return fun?.(true) + }, 1000) + } }) } diff --git a/src/common/libraries/upload.ts b/src/common/libraries/upload.ts index 55a5673..e46667f 100644 --- a/src/common/libraries/upload.ts +++ b/src/common/libraries/upload.ts @@ -242,3 +242,70 @@ export const upload = (count = 1, size = 2, mediaType = ['image']) => { } ) } + + +export const uploadImgWatermark = (data: any) => { + return new Promise<{ url: string; status: string; type: string | undefined }>( + (fileResolve, fileReject) => { + const timestamp = Date.now() + const extIndex = data?.path.lastIndexOf('.') + const fileExt = extIndex >= -1 ? data?.path.substr(extIndex + 1) : '' + console.log(extIndex, fileExt, 'fileExt') + handlePreUpload({ + filename: `${data?.name || ''}_${timestamp}.${fileExt}`, + alc: 'public-read' + }) + .then((res: any) => { + if (res?.success) { + const wxfs = uni.getFileSystemManager() + wxfs.readFile({ + filePath: data?.path || '', + success: function (fileRes) { + uni.request({ + url: res?.data?.url, + method: 'PUT', + header: { + ...res?.data?.headers, + 'x-amz-acl': 'public-read' + }, + data: fileRes?.data, + success: function success(json) { + if (json.statusCode !== 200) { + fileReject(new Error(`上传失败: ${json.statusCode}`)) + } else { + uni.getImageInfo({ + src: data?.path, + success: imgInfo => { + console.log(imgInfo, 'imgInfo') + let imgJson = { + url: res?.data?.url?.split('?')[0], + status: 'done', + type: imgInfo?.type, + uid: timestamp, + size: '', + name: `${data?.name}-${timestamp}` + } + fileResolve(imgJson) + } + }) + } + }, + fail: function fail() { + fileReject(new Error('网络请求失败')) + } + }) + }, + fail: function () { + fileReject(new Error('读取文件失败')) + } + }) + } else { + fileReject(new Error('获取上传链接失败')) + } + }) + .catch(err => { + fileReject(err) + }) + } + ) +} diff --git a/src/common/store/useWatermarkStore.ts b/src/common/store/useWatermarkStore.ts new file mode 100644 index 0000000..a6fd369 --- /dev/null +++ b/src/common/store/useWatermarkStore.ts @@ -0,0 +1,9 @@ +import { defineStore } from 'pinia' +import { ref } from 'vue' + +export const useWatermarkStore = defineStore('watermark_store', () => { + const watermarkInfo = ref([]) + return { + watermarkInfo + } +}) diff --git a/src/common/store/useWeAppAuthStore.ts b/src/common/store/useWeAppAuthStore.ts index 35a3370..94fcfbe 100644 --- a/src/common/store/useWeAppAuthStore.ts +++ b/src/common/store/useWeAppAuthStore.ts @@ -18,7 +18,7 @@ type DataType = { } export const useWeAppAuthStore = defineStore('we_app_auth', () => { - const loading = ref(true) + const loading = ref(false) const hasError = ref(false) const data = ref({ user: { id: 0, name: '', phone: '' }, diff --git a/src/common/store/useWorkStore.ts b/src/common/store/useWorkStore.ts index beac017..32cc568 100644 --- a/src/common/store/useWorkStore.ts +++ b/src/common/store/useWorkStore.ts @@ -4,8 +4,10 @@ import { ref } from 'vue' export const useWorkStore = defineStore('goods_store', () => { const selectWorkHouse = ref({}) const selectedHouse = ref(0) + const selectWorkProject = ref({}) return { selectWorkHouse, - selectedHouse + selectedHouse, + selectWorkProject } }) diff --git a/src/components/hs-cell/hs-cell.vue b/src/components/hs-cell/hs-cell.vue index b4f5bad..ba2c663 100644 --- a/src/components/hs-cell/hs-cell.vue +++ b/src/components/hs-cell/hs-cell.vue @@ -1,12 +1,8 @@ + + diff --git a/src/components/hs-popup/hs-popup.vue b/src/components/hs-popup/hs-popup.vue index 585792c..6e95cc3 100644 --- a/src/components/hs-popup/hs-popup.vue +++ b/src/components/hs-popup/hs-popup.vue @@ -8,7 +8,9 @@ :round="props?.round || 0" :closeable="props?.closeable" > - + + + @@ -25,4 +27,13 @@ const onClose = () => { :deep(.u-transition) { padding-bottom: calc(env(safe-area-inset-bottom) + 48px) !important; } +.popup_slot_content { + border-top-left-radius: 30rpx; + border-top-right-radius: 30rpx; + overflow: hidden; + background: + linear-gradient(180deg, rgba(208, 229, 255, 0.44) 0%, rgba(255, 255, 255, 0) 46%), + linear-gradient(151deg, #d3d7ff 0%, rgba(255, 255, 255, 0) 22%), + linear-gradient(199deg, #dffff3 0%, #f7f7f7 23%); +} diff --git a/src/components/hs-radio-picker-accounts/hs-radio-picker-accounts.vue b/src/components/hs-radio-picker-accounts/hs-radio-picker-accounts.vue new file mode 100644 index 0000000..29bd84c --- /dev/null +++ b/src/components/hs-radio-picker-accounts/hs-radio-picker-accounts.vue @@ -0,0 +1,116 @@ + + + + diff --git a/src/components/hs-radio-picker-enum/hs-radio-picker-enum.vue b/src/components/hs-radio-picker-enum/hs-radio-picker-enum.vue new file mode 100644 index 0000000..16f225e --- /dev/null +++ b/src/components/hs-radio-picker-enum/hs-radio-picker-enum.vue @@ -0,0 +1,64 @@ + + + + diff --git a/src/components/hs-radio/hs-radio.vue b/src/components/hs-radio/hs-radio.vue index 702f006..2b495b1 100644 --- a/src/components/hs-radio/hs-radio.vue +++ b/src/components/hs-radio/hs-radio.vue @@ -68,6 +68,7 @@ onMounted(() => { display: flex; align-items: center; flex-wrap: wrap; + padding: 5rpx 0; .item { padding: 0 27rpx; font-size: 26rpx; diff --git a/src/components/hs-scroll-view/hs-scroll-view.vue b/src/components/hs-scroll-view/hs-scroll-view.vue new file mode 100644 index 0000000..18f73b3 --- /dev/null +++ b/src/components/hs-scroll-view/hs-scroll-view.vue @@ -0,0 +1,86 @@ + + + + diff --git a/src/components/hs-tabs/hs-tabs.vue b/src/components/hs-tabs/hs-tabs.vue index 3db11d7..199c4dd 100644 --- a/src/components/hs-tabs/hs-tabs.vue +++ b/src/components/hs-tabs/hs-tabs.vue @@ -1,11 +1,7 @@