| | |
| | | v-for="(item ,index) in noticeList" |
| | | > |
| | | <div class="time"> |
| | | <span>{{ item.date }}</span> |
| | | <span>{{ item.years }}</span> |
| | | <span>{{ item.categoryId }}</span> |
| | | <span>{{ item.contypeId }}</span> |
| | | </div> |
| | | <div class="title" @click="toNoticeMsg(item.title)">{{ item.title }}</div> |
| | | <div class="title" @click="toNoticeMsg(item.title)"> |
| | | {{ item.title }} |
| | | </div> |
| | | </li> |
| | | </ul> |
| | | </div> |
| | |
| | | name:'notice', |
| | | data(){ |
| | | return{ |
| | | noticeList:[ |
| | | {years:'2021',date:'11-2',title:'我是标题1'}, |
| | | {years:'2021',date:'11-2',title:'我是标题2'}, |
| | | {years:'2021',date:'11-2',title:'我是标题3'}, |
| | | {years:'2021',date:'11-2',title:'我是标题4'}, |
| | | {years:'2021',date:'11-2',title:'我是标题5'}, |
| | | |
| | | ] |
| | | noticeList: |
| | | // {years:'2021',date:'11-2',title:'我是标题1'}, |
| | | // {years:'2021',date:'11-2',title:'我是标题2'}, |
| | | // {years:'2021',date:'11-2',title:'我是标题3'}, |
| | | // {years:'2021',date:'11-2',title:'我是标题4'}, |
| | | // {years:'2021',date:'11-2',title:'我是标题5'}, |
| | | { |
| | | categoryId: 1, |
| | | contypeId: 2, |
| | | coverPath: '13', |
| | | dataString: '123', |
| | | title:"12" |
| | | } |
| | | } |
| | | }, |
| | | created(){ |
| | | // getnews() { |
| | | // const res = this.$http.post('newsTheme/insert',this.noticeList) |
| | | // console.log(res); |
| | | // } |
| | | }, |
| | | methods:{ |
| | | toNoticeMsg(t){ |
| | |
| | | this.$router.push({ |
| | | path:'/home/moreMessage', |
| | | query:{ |
| | | type:val, |
| | | type: val |
| | | } |
| | | }) |
| | | } |