From 312666c186adbb2cdb256ffbe1a5847f4edc7296 Mon Sep 17 00:00:00 2001 From: luojie Date: Mon, 30 Oct 2023 20:06:48 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BD=97=E4=B8=96=E6=9D=B0=EF=BC=9Afeat?= =?UTF-8?q?=EF=BC=9A=E9=80=9A=E7=9F=A5=E6=9D=A1=E5=88=9D=E5=A7=8B=E5=8C=96?= =?UTF-8?q?=E3=80=81=E5=AF=BC=E8=88=AA=E5=8D=A1=E7=89=87=E5=AE=8C=E6=88=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/index/childComps/HomeHeader.vue | 27 +++++++-- pages/index/index.vue | 80 +++++++++++++++++++++++++-- 2 files changed, 95 insertions(+), 12 deletions(-) diff --git a/pages/index/childComps/HomeHeader.vue b/pages/index/childComps/HomeHeader.vue index e4b5465..6a3e041 100644 --- a/pages/index/childComps/HomeHeader.vue +++ b/pages/index/childComps/HomeHeader.vue @@ -27,21 +27,36 @@ export default{ name: "HomeHeader", props: { - + hotSearchWord:{ + type: String, + default() { + return '热门关键词' + } + }, + headerBgList:{ + type: Array, + default() { + return ["https://alifei01.cfp.cn/creative/vcg/800/new/VCG41175510742.jpg","https://alifei01.cfp.cn/creative/vcg/800/new/VCG41175510742.jpg"] + } + }, + position:{ + type: String, + default() { + return '定位中' + } + } }, data() { return { - hotSearchWord:'热门关键词', - headerBgList:["https://alifei01.cfp.cn/creative/vcg/800/new/VCG41175510742.jpg"] + // hotSearchWord:'', + // headerBgList:[] } }, options: { styleIsolation: 'shared' // 解除样式隔离 }, computed:{ - position(){ - return '定位中...' - } + } } diff --git a/pages/index/index.vue b/pages/index/index.vue index 5626c1d..e70bd26 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -1,18 +1,65 @@ \ No newline at end of file