This commit is contained in:
zmr900709
2020-08-20 14:23:21 +08:00
parent 30539ddf64
commit c81ee7e961
10 changed files with 50 additions and 20 deletions

View File

@@ -1,5 +1,5 @@
<template>
<view class="notice">
<view class="notice" :style="{height : height + 'px'}">
<view v-for="(item,index) in notice" :key="index" @click="gotoInfo(index)">
<view class="time_notice">{{ item.addtime }}</view>
<view class="notice_view">
@@ -36,6 +36,7 @@
margin: 0 auto;
text-align: left;
line-height: 40rpx;
letter-spacing: 2rpx;
}
.notice_view > view:nth-child(3){
height: 84rpx;
@@ -77,7 +78,8 @@
props: ['list'],
data() {
return {
notice : []
notice : [],
height : ''
};
},
watch: {
@@ -86,6 +88,8 @@
this.notice = newVal;
}
},
onLoad() {
},
methods: {
gotoInfo(index) {
console.log(index);