From 3fab832c1aa02c0bf994f2ea4d192a7856d088cc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BE=90=E5=86=9B?= Date: Sat, 11 Dec 2021 15:08:01 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20+=20=E9=A6=96=E9=A1=B5=E5=B1=95?= =?UTF-8?q?=E7=A4=BA=E4=BF=A1=E6=81=AF=E9=87=8D=E6=9E=84=20#71?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- project.config.json | 6 ++-- src/components/ContentItem.vue | 9 +++--- src/components/NavBar.vue | 33 +++++++++++--------- src/pages/index/index.vue | 57 +++++++++++++++++++++++----------- src/utils/api.js | 2 +- 5 files changed, 66 insertions(+), 41 deletions(-) diff --git a/project.config.json b/project.config.json index 6579fca..6102772 100644 --- a/project.config.json +++ b/project.config.json @@ -31,15 +31,15 @@ "outputPath": "" }, "enableEngineNative": false, - "useIsolateContext": true, + "useIsolateContext": false, "userConfirmedBundleSwitch": false, "packNpmManually": false, "packNpmRelationList": [], "minifyWXSS": true, "disableUseStrict": false, + "minifyWXML": true, "showES6CompileOption": false, - "useCompilerPlugins": false, - "minifyWXML": true + "useCompilerPlugins": false }, "compileType": "miniprogram", "condition": {} diff --git a/src/components/ContentItem.vue b/src/components/ContentItem.vue index c4f64ba..00535db 100644 --- a/src/components/ContentItem.vue +++ b/src/components/ContentItem.vue @@ -51,15 +51,16 @@ function jumpToDetail() { .article_list_item { box-sizing: border-box; background: #fff; - // margin-bottom: 20rpx; + margin: 20rpx 0rpx; + border-radius: 20rpx; + border:1px solid #3333332e; .article_detail { box-sizing: border-box; display: flex; width: 100%; - justify-content: space-between; + justify-content: space-around; align-items: center; - border-bottom: 1px solid #f5f6f6; - padding: 20rpx 40rpx; + padding:20rpx; .artclie_text_msg { flex: 1; } diff --git a/src/components/NavBar.vue b/src/components/NavBar.vue index 6cdbcef..bdde163 100644 --- a/src/components/NavBar.vue +++ b/src/components/NavBar.vue @@ -1,7 +1,7 @@ @@ -25,46 +25,49 @@ import { computed, defineComponent, PropType, toRefs } from "vue"; export default defineComponent({ name: "NavBar", data() { + /** + * [{"id":5,"name":"流浪乞讨"}, + * {"id":4,"name":"其他寻人"}, + * {"id":3,"name":"海外寻亲"}, + * {"id":2,"name":"宝贝寻家"}, + * {"id":1,"name":"家寻宝贝"}] + */ return { tabList: [ { label: "家寻", - key: "newest", - // icon: "http://static.gocoder.top/unfold.png", - // activeIcon: "http://static.gocoder.top/unfold_active.png", + key: 1, }, - { label: "寻家", key: "column" }, - { label: "其他", key: "pay" }, + { label: "寻家", key: 2 }, + { label: "其他", key: 4 }, ], - activeKey: "newest" + activeKey: 1 }; }, methods: { tabChang(activeKey) { this.activeKey = activeKey; this.$emit("change", activeKey); - }, + } }, });