diff --git a/App.vue b/App.vue index 673d70f..8a4adcd 100644 --- a/App.vue +++ b/App.vue @@ -1,14 +1,10 @@ + + diff --git a/components/DatePicker/DatePicker.vue b/components/DatePicker/DatePicker.vue new file mode 100644 index 0000000..0834fb5 --- /dev/null +++ b/components/DatePicker/DatePicker.vue @@ -0,0 +1,232 @@ + + + + + diff --git a/components/gallery/AssetGallery.vue b/components/gallery/AssetGallery.vue new file mode 100644 index 0000000..09e33a6 --- /dev/null +++ b/components/gallery/AssetGallery.vue @@ -0,0 +1,295 @@ + + + + + diff --git a/components/navbar/customNavbar.vue b/components/navbar/customNavbar.vue index 0886ea9..f227b68 100644 --- a/components/navbar/customNavbar.vue +++ b/components/navbar/customNavbar.vue @@ -6,8 +6,8 @@ - - + + @@ -51,6 +51,14 @@ export default { type: Function, default: null, }, + showBack: { + type: Boolean, + default: true // 左侧返回按钮默认显示 + }, + showHome: { + type: Boolean, + default: true // 回首页按钮默认显示 + } }, data() { return { diff --git a/components/navbar/indexNavbar.vue b/components/navbar/indexNavbar.vue new file mode 100644 index 0000000..60ece24 --- /dev/null +++ b/components/navbar/indexNavbar.vue @@ -0,0 +1,139 @@ + + + + + diff --git a/components/searchBar/SearchBar.vue b/components/searchBar/SearchBar.vue new file mode 100644 index 0000000..4ddc495 --- /dev/null +++ b/components/searchBar/SearchBar.vue @@ -0,0 +1,99 @@ + + + + + diff --git a/main.js b/main.js index f03c12f..e375279 100644 --- a/main.js +++ b/main.js @@ -26,7 +26,6 @@ Vue.mixin(mpShare) Vue.component('customNavbar', customNavbar) Vue.component('AuthLogin', AuthLogin) Vue.component('PhoneSelect', PhoneSelect) - const app = new Vue({ store, ...App @@ -34,8 +33,9 @@ const app = new Vue({ // http拦截器,将此部分放在new Vue()和app.$mount()之间,才能App.vue中正常使用 import httpInterceptor from '@/common/http.interceptor.js'; -Vue.use(httpInterceptor, app); +// 挂载自定义 http 封装 +Vue.use(httpInterceptor, app); // 封装自定义提示框 import $mytip from 'common/utils/tip.js' Vue.prototype.$mytip = $mytip diff --git a/node_modules/.vue-global-types/vue_2.6_0.d.ts b/node_modules/.vue-global-types/vue_2.6_0.d.ts index e57e50d..feca003 100644 --- a/node_modules/.vue-global-types/vue_2.6_0.d.ts +++ b/node_modules/.vue-global-types/vue_2.6_0.d.ts @@ -1,13 +1,13 @@ // @ts-nocheck export {}; - -; declare module 'vue' { +declare module 'vue' { export interface GlobalComponents { } export interface GlobalDirectives { } } -; declare global { +declare global { + var __VLS_PROPS_FALLBACK: Record; + const __VLS_directiveBindingRestFields: { instance: null, oldValue: null, modifiers: any, dir: any }; - const __VLS_unref: typeof import('vue').unref; const __VLS_placeholder: any; const __VLS_intrinsics: globalThis.JSX.IntrinsicElements; @@ -17,7 +17,7 @@ export {}; type __VLS_IsAny = 0 extends 1 & T ? true : false; type __VLS_PickNotAny = __VLS_IsAny extends true ? B : A; type __VLS_SpreadMerge = Omit & B; - type __VLS_WithComponent = + type __VLS_WithComponent = N1 extends keyof LocalComponents ? { [K in N0]: LocalComponents[N1] } : N2 extends keyof LocalComponents ? { [K in N0]: LocalComponents[N2] } : N3 extends keyof LocalComponents ? { [K in N0]: LocalComponents[N3] } : @@ -39,7 +39,7 @@ export {}; attrs?: any; slots?: T extends { $slots: infer Slots } ? Slots : Record; emit?: T extends { $emit: infer Emit } ? Emit : {}; - props?: (T extends { $props: infer Props } ? Props : {}) & Record; + props?: typeof props; expose?: (exposed: T) => void; }; }; @@ -99,12 +99,7 @@ export {}; type __VLS_ResolveDirectives = { [K in keyof T & string as `v${Capitalize}`]: T[K]; }; - type __VLS_PrettifyGlobal = { [K in keyof T as K]: T[K]; } & {}; - type __VLS_WithDefaultsGlobal = { - [K in keyof P as K extends keyof D ? K : never]-?: P[K]; - } & { - [K in keyof P as K extends keyof D ? never : K]: P[K]; - }; + type __VLS_PrettifyGlobal = (T extends any ? { [K in keyof T]: T[K]; } : { [K in keyof T as K]: T[K]; }) & {}; type __VLS_UseTemplateRef = Readonly>; type __VLS_ProxyRefs = import('vue').ShallowUnwrapRef; diff --git a/node_modules/.vue-global-types/vue_99_0.d.ts b/node_modules/.vue-global-types/vue_99_0.d.ts index f0fe46c..96b3bd3 100644 --- a/node_modules/.vue-global-types/vue_99_0.d.ts +++ b/node_modules/.vue-global-types/vue_99_0.d.ts @@ -2,13 +2,14 @@ export {}; ; declare global { + var __VLS_PROPS_FALLBACK: Record; + const __VLS_directiveBindingRestFields: { instance: null, oldValue: null, modifiers: any, dir: any }; const __VLS_unref: typeof import('vue').unref; const __VLS_placeholder: any; + const __VLS_intrinsics: import('vue/jsx-runtime').JSX.IntrinsicElements; - type __VLS_NativeElements = __VLS_SpreadMerge; - type __VLS_IntrinsicElements = import('vue/jsx-runtime').JSX.IntrinsicElements; - type __VLS_Element = import('vue/jsx-runtime').JSX.Element; + type __VLS_Elements = __VLS_SpreadMerge; type __VLS_GlobalComponents = import('vue').GlobalComponents; type __VLS_GlobalDirectives = import('vue').GlobalDirectives; type __VLS_IsAny = 0 extends 1 & T ? true : false; @@ -31,12 +32,12 @@ export {}; ? K extends { __ctx?: { props?: infer P } } ? NonNullable

: never : T extends (props: infer P, ...args: any) => any ? P : {}; - type __VLS_FunctionalComponent = (props: (T extends { $props: infer Props } ? Props : {}) & Record, ctx?: any) => __VLS_Element & { + type __VLS_FunctionalComponent = (props: (T extends { $props: infer Props } ? Props : {}) & Record, ctx?: any) => import('vue/jsx-runtime').JSX.Element & { __ctx?: { attrs?: any; slots?: T extends { $slots: infer Slots } ? Slots : Record; emit?: T extends { $emit: infer Emit } ? Emit : {}; - props?: (T extends { $props: infer Props } ? Props : {}) & Record; + props?: typeof props; expose?: (exposed: T) => void; }; }; diff --git a/pages.json b/pages.json index d7e3393..d7c50e2 100644 --- a/pages.json +++ b/pages.json @@ -6,8 +6,8 @@ { "path": "pages/index/index", "style": { - "navigationStyle": "default" ,// 隐藏系统导航栏 - "navigationBarTitleText": "首页", + "navigationStyle": "custom" ,// 隐藏系统导航栏 + "navigationBarTitleText": "启辰资产", "enablePullDownRefresh": true, "app-plus": { "pullToRefresh": { @@ -166,7 +166,7 @@ }, { - "path" : "pages/content/content", + "path" : "pages/notice/noticeDetail", "style": { "navigationStyle": "custom" ,// 隐藏系统导航栏 "navigationBarTitleText": "资讯" @@ -226,9 +226,9 @@ "path" : "pages/search/searchList", "style" : { - "navigationBarTitleText": "房源列表", + "navigationBarTitleText": "资产列表", "enablePullDownRefresh": true, - // "navigationStyle": "custom" ,// 隐藏系统导航栏 + "navigationStyle": "custom" ,// 隐藏系统导航栏 "app-plus": { "pullToRefresh": { "support": true, @@ -354,7 +354,7 @@ "navigationBarTitleText": "我的预约", "enablePullDownRefresh": false } - } + } ], "globalStyle": { "navigationBarTextStyle": "black", diff --git a/pages/auth/company.vue b/pages/auth/company.vue new file mode 100644 index 0000000..e69de29 diff --git a/pages/auth/person.vue b/pages/auth/person.vue new file mode 100644 index 0000000..e69de29 diff --git a/pages/center/center.vue b/pages/center/center.vue index fe34ac2..628dd14 100644 --- a/pages/center/center.vue +++ b/pages/center/center.vue @@ -4,10 +4,9 @@ @@ -35,301 +34,523 @@ 超值优惠 升级立享 --> - - - - - - - - - - - - - - {{item.name}} - - - - - - - - - + + + + + + + + + + + + + + {{item.name}} + + + + + + - + + + + + + + + + + + + {{item.name}} + + + + + + + + + {{item.name}} + + + + + + + + + {{item.name}} + + + + + + + + + + + \ No newline at end of file diff --git a/pages/center/contract.vue b/pages/center/contract.vue index c3ccb8b..7934858 100644 --- a/pages/center/contract.vue +++ b/pages/center/contract.vue @@ -1,264 +1,336 @@ + + &.pending { + background: #fff8e1; + color: #ff9800; + } + + &.signed { + background: #e8f5e9; + color: #4caf50; + } + + &.expired { + background: #fbe9e7; + color: #e53935; + } + } + + .empty { + margin-top: 200rpx; + } + + .tab-wrapper { + background-color: #ffffff; + padding: 10rpx 0; + box-shadow: 0 2rpx 6rpx rgba(0, 0, 0, 0.06); + position: sticky; + top: 0; + z-index: 10; + } + + \ No newline at end of file diff --git a/pages/detail/assetsDetail.vue b/pages/detail/assetsDetail.vue index 4495660..0ab336d 100644 --- a/pages/detail/assetsDetail.vue +++ b/pages/detail/assetsDetail.vue @@ -2,40 +2,28 @@ + title="不动资产详情" ref="navbar"/> - - - - + + - - - - {{ asset.name }} - 所属小区:{{ asset.community }} - 租金:¥{{ formatMoney(asset.rent) }}/月 - - - - - 查看VR图 - - - @@ -93,17 +81,18 @@ diff --git a/pages/index/index.vue b/pages/index/index.vue index 829b78c..9cb227d 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -1,120 +1,134 @@ diff --git a/pages/message/message.vue b/pages/message/message.vue index 5b039c2..2165973 100644 --- a/pages/message/message.vue +++ b/pages/message/message.vue @@ -12,7 +12,7 @@ - + {{ msg.title }} {{ msg.desc }} diff --git a/pages/notice/notice.vue b/pages/notice/notice.vue index c401ac9..ed18f4e 100644 --- a/pages/notice/notice.vue +++ b/pages/notice/notice.vue @@ -40,27 +40,27 @@ export default { methods: { clickContent(item){ if(item.id){ - this.$u.route('/pages/content/content', { + this.$u.route('/pages/notice/noticeDetail', { id: item.id }); } }, getNoticecList(){ - let url = "/api/notice/findNoticeList"; + let url = "/notice/findNoticeList"; this.$u.get(url,{ pageNum:this.pageNum, pageSize:this.pageSize, orderByColumn:'create_time', isAsc:'desc' }).then(obj => { - let data = obj.rows + let data = obj.data.result data.filter(item=>{ this.dataList.push( { id:item.noticeId, title: item.noticeTitle, date:item.createTime, - content: item.remark, + content: item.reMark, } ) }) diff --git a/pages/content/content.vue b/pages/notice/noticeDetail.vue similarity index 100% rename from pages/content/content.vue rename to pages/notice/noticeDetail.vue diff --git a/pages/search/searchList.vue b/pages/search/searchList.vue index 4a8b079..cd92788 100644 --- a/pages/search/searchList.vue +++ b/pages/search/searchList.vue @@ -1,6 +1,7 @@