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