diff --git a/pages/YNEduApp/index/index.vue b/pages/YNEduApp/index/index.vue index eb08f12..25dc2a7 100644 --- a/pages/YNEduApp/index/index.vue +++ b/pages/YNEduApp/index/index.vue @@ -19,7 +19,7 @@ - + @@ -79,16 +79,20 @@ export default { ], imgList: [ { - image: 'https://cdn.uviewui.com/uview/swiper/1.jpg', - title: '昨夜星辰昨夜风,画楼西畔桂堂东' + image: require('../../../static/images/swiper1.png'), + title: '1' }, { - image: 'https://cdn.uviewui.com/uview/swiper/2.jpg', - title: '身无彩凤双飞翼,心有灵犀一点通' + image: require('../../../static/images/swiper2.png'), + title: '2' }, { - image: 'https://cdn.uviewui.com/uview/swiper/3.jpg', - title: '谁念西风独自凉,萧萧黄叶闭疏窗,沉思往事立残阳' + image: require('../../../static/images/swiper3.png'), + title: '3' + }, + { + image: require('../../../static/images/swiper4.png'), + title: '4' } ], taskList: [], @@ -101,7 +105,6 @@ export default { this.getMsgList() setTimeout(() => { this.$verificationToken() - }, 1000) }, methods: { @@ -169,9 +172,11 @@ export default { Authorization: uni.getStorageSync('access_token') }, success: res => { - 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) + } } }) }, diff --git a/static/images/swiper1.png b/static/images/swiper1.png new file mode 100644 index 0000000..1e53369 Binary files /dev/null and b/static/images/swiper1.png differ diff --git a/static/images/swiper2.png b/static/images/swiper2.png new file mode 100644 index 0000000..608685f Binary files /dev/null and b/static/images/swiper2.png differ diff --git a/static/images/swiper3.png b/static/images/swiper3.png new file mode 100644 index 0000000..fa03c45 Binary files /dev/null and b/static/images/swiper3.png differ diff --git a/static/images/swiper4.png b/static/images/swiper4.png new file mode 100644 index 0000000..33fd164 Binary files /dev/null and b/static/images/swiper4.png differ