diff --git a/components/no-list-components/index.vue b/components/no-list-components/index.vue new file mode 100644 index 0000000..fa2f702 --- /dev/null +++ b/components/no-list-components/index.vue @@ -0,0 +1,69 @@ + + + + + diff --git a/main.js b/main.js index 11f608a..6c51a8d 100644 --- a/main.js +++ b/main.js @@ -4,7 +4,8 @@ import App from './App' import Vue from 'vue' import { router, RouterMount } from './router' import store from './store' -import uView from 'uview-ui' +import uView from 'uview-ui' +import noList from './components/no-list-components/index.vue' Vue.use(router) Vue.use(uView); Vue.config.productionTip = false @@ -12,7 +13,8 @@ Vue.prototype.$store = store App.mpType = 'app' const app = new Vue({ ...App -}) +}) +Vue.component('no-list',noList) // #ifdef H5 RouterMount(app,router,'#app') // #endif diff --git a/pages/news/detail.vue b/pages/news/detail.vue index 3b283d0..8ffa1ac 100644 --- a/pages/news/detail.vue +++ b/pages/news/detail.vue @@ -22,6 +22,7 @@ notificationsDetail, notificationsReaded } from '@/apis/interfaces/news.js' + export default { data() { return { diff --git a/pages/news/index.vue b/pages/news/index.vue index ded065a..452e1fb 100644 --- a/pages/news/index.vue +++ b/pages/news/index.vue @@ -3,9 +3,9 @@ - - - + + + {{item.name}} {{item.title || '暂无任何未读消息'}} diff --git a/static/imgs/news_1.png b/static/imgs/news_1.png new file mode 100644 index 0000000..4838c92 Binary files /dev/null and b/static/imgs/news_1.png differ diff --git a/static/imgs/news_2.png b/static/imgs/news_2.png new file mode 100644 index 0000000..dd19454 Binary files /dev/null and b/static/imgs/news_2.png differ diff --git a/static/imgs/news_2_1.png b/static/imgs/news_2_1.png new file mode 100644 index 0000000..1d12137 Binary files /dev/null and b/static/imgs/news_2_1.png differ diff --git a/static/imgs/news_3.png b/static/imgs/news_3.png new file mode 100644 index 0000000..87ab761 Binary files /dev/null and b/static/imgs/news_3.png differ diff --git a/static/imgs/news_3_1.png b/static/imgs/news_3_1.png new file mode 100644 index 0000000..a4065ce Binary files /dev/null and b/static/imgs/news_3_1.png differ