diff --git a/common/uni.css b/common/uni.css index 4414e9b..b88f592 100644 --- a/common/uni.css +++ b/common/uni.css @@ -3,6 +3,7 @@ font-weight: normal; font-style: normal; src: url('~@/static/uni.ttf') format('truetype'); + src: url('~@/static/fonts/SourceHanSansSC-VF.ttf') format('truetype'); } /* #ifdef H5 */ diff --git a/pages/YNEduApp/index/index.vue b/pages/YNEduApp/index/index.vue index 181846b..f4a52eb 100644 --- a/pages/YNEduApp/index/index.vue +++ b/pages/YNEduApp/index/index.vue @@ -7,15 +7,10 @@ suffixIcon="search" v-model="keyword" placeholder="请输入搜索关键词" - @iconClick="toggleSearch" + @blur="toggleSearch" > - - - - {{ part.name }} - - + @@ -23,6 +18,13 @@ + + + + + {{ part.name }} + + { - console.log('🚀 ~ getMsgList ~ res:', res.data[0].noticeName) - this.text = res.data[0].noticeName - console.log('🚀 ~ getMsgList ~ this.text:', this.text) + console.log('🚀 ~ getMsgList ~ res:', res.data) + if (res.data.length > 0) { + this.text = res.data[0].noticeName + console.log('🚀 ~ getMsgList ~ this.text:', this.text) + } } }) }, @@ -243,14 +247,13 @@ export default {