From da74dc790dc1bf8e8a7f8b703e89f3d0acd1c3b9 Mon Sep 17 00:00:00 2001 From: RainSun Date: Sun, 22 Mar 2020 13:16:59 +0800 Subject: [PATCH] finish detail --- README.md | 4 +- src/router/index.js | 5 + src/views/Account/Account.vue | 203 +++++++++++++++++ src/views/Account/children/Created.vue | 36 ++- src/views/Account/children/Message.vue | 8 +- src/views/Home/Home.vue | 67 ++++-- src/views/Home/children/Card.vue | 25 --- src/views/Search/Search.vue | 206 ++++++++++++++++++ .../{Account/children => components}/Card.vue | 4 +- src/views/components/Detail.vue | 134 ++++++++++++ 10 files changed, 637 insertions(+), 55 deletions(-) delete mode 100644 src/views/Home/children/Card.vue create mode 100644 src/views/Search/Search.vue rename src/views/{Account/children => components}/Card.vue (83%) create mode 100644 src/views/components/Detail.vue diff --git a/README.md b/README.md index 5e9fb9a..f5b9495 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# swzl +# swzl 曳光 ## Project setup ``` @@ -16,4 +16,4 @@ npm run build ``` ### Customize configuration -See [Configuration Reference](https://cli.vuejs.org/config/). +See [Configuration Reference](https://cli.vuejs.org/config/) diff --git a/src/router/index.js b/src/router/index.js index d1ca182..0927a45 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -13,6 +13,11 @@ const routes = [ path: '/account', name: 'Account', component: () => import(/* webpackChunkName: "account" */ '../views/Account/Account.vue') + }, + { + path: '/search', + name: 'Search', + component: () => import(/* webpackChunkName: "search" */ '../views/Search/Search.vue') }, { path: '*', // 页面不存在的情况下会跳到主页 diff --git a/src/views/Account/Account.vue b/src/views/Account/Account.vue index f1d90cd..56a11c4 100644 --- a/src/views/Account/Account.vue +++ b/src/views/Account/Account.vue @@ -213,6 +213,134 @@ export default { pwd: "", openid: "", created: [ + { + title: "这是丢失的物品", + create_time: "2020-01-01", + img_url: "https://picsum.photos/1920/1080?random", + total_addr: "长理东区", + good_type: "lost", + good_id: "1111" + }, + { + title: "这是丢失的物品", + create_time: "2020-01-01", + img_url: "https://picsum.photos/1920/1080?random", + total_addr: "长理东区", + good_type: "lost", + good_id: "1111" + }, + { + title: "这是丢失的物品", + create_time: "2020-01-01", + img_url: "https://picsum.photos/1920/1080?random", + total_addr: "长理东区", + good_type: "lost", + good_id: "1111" + }, + { + title: "这是丢失的物品", + create_time: "2020-01-01", + img_url: "https://picsum.photos/1920/1080?random", + total_addr: "长理东区", + good_type: "lost", + good_id: "1111" + }, + { + title: "这是丢失的物品", + create_time: "2020-01-01", + img_url: "https://picsum.photos/1920/1080?random", + total_addr: "长理东区", + good_type: "lost", + good_id: "1111" + }, + { + title: "这是丢失的物品", + create_time: "2020-01-01", + img_url: "https://picsum.photos/1920/1080?random", + total_addr: "长理东区", + good_type: "lost", + good_id: "1111" + }, + { + title: "这是丢失的物品", + create_time: "2020-01-01", + img_url: "https://picsum.photos/1920/1080?random", + total_addr: "长理东区", + good_type: "lost", + good_id: "1111" + }, + { + title: "这是丢失的物品", + create_time: "2020-01-01", + img_url: "https://picsum.photos/1920/1080?random", + total_addr: "长理东区", + good_type: "lost", + good_id: "1111" + }, + { + title: "这是丢失的物品", + create_time: "2020-01-01", + img_url: "https://picsum.photos/1920/1080?random", + total_addr: "长理东区", + good_type: "lost", + good_id: "1111" + }, + { + title: "这是丢失的物品", + create_time: "2020-01-01", + img_url: "https://picsum.photos/1920/1080?random", + total_addr: "长理东区", + good_type: "lost", + good_id: "1111" + }, + { + title: "这是丢失的物品", + create_time: "2020-01-01", + img_url: "https://picsum.photos/1920/1080?random", + total_addr: "长理东区", + good_type: "lost", + good_id: "1111" + }, + { + title: "这是丢失的物品", + create_time: "2020-01-01", + img_url: "https://picsum.photos/1920/1080?random", + total_addr: "长理东区", + good_type: "lost", + good_id: "1111" + }, + { + title: "这是丢失的物品", + create_time: "2020-01-01", + img_url: "https://picsum.photos/1920/1080?random", + total_addr: "长理东区", + good_type: "lost", + good_id: "1111" + }, + { + title: "这是丢失的物品", + create_time: "2020-01-01", + img_url: "https://picsum.photos/1920/1080?random", + total_addr: "长理东区", + good_type: "lost", + good_id: "1111" + }, + { + title: "这是丢失的物品", + create_time: "2020-01-01", + img_url: "https://picsum.photos/1920/1080?random", + total_addr: "长理东区", + good_type: "lost", + good_id: "1111" + }, + { + title: "这是丢失的物品", + create_time: "2020-01-01", + img_url: "https://picsum.photos/1920/1080?random", + total_addr: "长理东区", + good_type: "lost", + good_id: "1111" + }, { title: "这是丢失的物品", create_time: "2020-01-01", @@ -262,6 +390,81 @@ export default { good_id: "sdsdsd", type: 3 }, + { + good_type: "lost", + good_id: "sdsdsd", + type: 4 + }, + { + good_type: "lost", + good_id: "sdsdsd", + type: 4 + }, + { + good_type: "lost", + good_id: "sdsdsd", + type: 4 + }, + { + good_type: "lost", + good_id: "sdsdsd", + type: 4 + }, + { + good_type: "lost", + good_id: "sdsdsd", + type: 4 + }, + { + good_type: "lost", + good_id: "sdsdsd", + type: 4 + }, + { + good_type: "lost", + good_id: "sdsdsd", + type: 4 + }, + { + good_type: "lost", + good_id: "sdsdsd", + type: 4 + }, + { + good_type: "lost", + good_id: "sdsdsd", + type: 4 + }, + { + good_type: "lost", + good_id: "sdsdsd", + type: 4 + }, + { + good_type: "lost", + good_id: "sdsdsd", + type: 4 + }, + { + good_type: "lost", + good_id: "sdsdsd", + type: 4 + }, + { + good_type: "lost", + good_id: "sdsdsd", + type: 4 + }, + { + good_type: "lost", + good_id: "sdsdsd", + type: 4 + }, + { + good_type: "lost", + good_id: "sdsdsd", + type: 4 + }, { good_type: "lost", good_id: "sdsdsd", diff --git a/src/views/Account/children/Created.vue b/src/views/Account/children/Created.vue index 935b8d5..3feb228 100644 --- a/src/views/Account/children/Created.vue +++ b/src/views/Account/children/Created.vue @@ -17,25 +17,40 @@ - - + + - + + + + diff --git a/src/views/Account/children/Message.vue b/src/views/Account/children/Message.vue index 87dce9a..4d4d30b 100644 --- a/src/views/Account/children/Message.vue +++ b/src/views/Account/children/Message.vue @@ -23,8 +23,8 @@ - - + + @@ -48,7 +48,9 @@ export default { name: "Message", props: ["closeBottomSheet", "list"], data: () => { - return {}; + return { + loading_switch:false, + }; }, computed: { ...mapState(["bg_img_url"]) diff --git a/src/views/Home/Home.vue b/src/views/Home/Home.vue index 1cd59c1..812e370 100644 --- a/src/views/Home/Home.vue +++ b/src/views/Home/Home.vue @@ -17,7 +17,7 @@ - + mdi-magnify @@ -68,7 +68,7 @@ 设置 - --> + --> @@ -104,7 +104,12 @@ - + @@ -113,14 +118,23 @@ - + - + + + + + @@ -135,7 +149,8 @@ diff --git a/src/views/Home/children/Card.vue b/src/views/Home/children/Card.vue deleted file mode 100644 index 11b54b7..0000000 --- a/src/views/Home/children/Card.vue +++ /dev/null @@ -1,25 +0,0 @@ - - - \ No newline at end of file diff --git a/src/views/Search/Search.vue b/src/views/Search/Search.vue new file mode 100644 index 0000000..8be7dff --- /dev/null +++ b/src/views/Search/Search.vue @@ -0,0 +1,206 @@ + + + + + \ No newline at end of file diff --git a/src/views/Account/children/Card.vue b/src/views/components/Card.vue similarity index 83% rename from src/views/Account/children/Card.vue rename to src/views/components/Card.vue index 11b54b7..fbf212a 100644 --- a/src/views/Account/children/Card.vue +++ b/src/views/components/Card.vue @@ -1,6 +1,6 @@