|
@@ -11,28 +11,10 @@
|
|
|
</el-link>
|
|
|
</el-col>
|
|
|
<ul>
|
|
|
- <li>
|
|
|
+ <li v-for="(item,index) in noticeList" :key="index">
|
|
|
<a href="#">
|
|
|
- <span>国内外参展商和广大客户的广泛好评。尤其是参展的“太阳能无线充电</span>
|
|
|
- <span class="tt">2018-02-01</span>
|
|
|
- </a>
|
|
|
- </li>
|
|
|
- <li>
|
|
|
- <a href="#">
|
|
|
- <span>国内外参展商和广大客户的广泛好评。尤其是参展的“太阳能无线充电</span>
|
|
|
- <span class="tt">2018-02-01</span>
|
|
|
- </a>
|
|
|
- </li>
|
|
|
- <li>
|
|
|
- <a href="#">
|
|
|
- <span>国内外参展商和广大客户的广泛好评。尤其是参展的“太阳能无线充电</span>
|
|
|
- <span class="tt">2018-02-11</span>
|
|
|
- </a>
|
|
|
- </li>
|
|
|
- <li>
|
|
|
- <a href="#">
|
|
|
- <span>国内外参展商和广大客户的广泛好评。尤其是参展的“太阳能无线充电</span>
|
|
|
- <span class="tt">2018-02-01</span>
|
|
|
+ <span>{{item.title}}</span>
|
|
|
+ <span class="tt">{{item.time}}</span>
|
|
|
</a>
|
|
|
</li>
|
|
|
</ul>
|
|
@@ -44,7 +26,9 @@
|
|
|
<script>
|
|
|
export default {
|
|
|
name: 'notice',
|
|
|
- props: {},
|
|
|
+ props: {
|
|
|
+ noticeList:null,
|
|
|
+ },
|
|
|
components: {},
|
|
|
data: () => ({
|
|
|
dian: require('../../../assets/dot.png'),
|
|
@@ -81,8 +65,9 @@ a {
|
|
|
height: 60px;
|
|
|
}
|
|
|
ul {
|
|
|
- padding-left: 20px;
|
|
|
+ padding: 0;
|
|
|
margin: 8px 20px;
|
|
|
+ list-style-position: inside;
|
|
|
}
|
|
|
li {
|
|
|
padding: 3px 0;
|
|
@@ -96,4 +81,11 @@ li a {
|
|
|
color: #abaab8;
|
|
|
float: right;
|
|
|
}
|
|
|
+a > span {
|
|
|
+ display: inline-block;
|
|
|
+ max-width: 230px;
|
|
|
+ overflow: hidden;
|
|
|
+ text-overflow: ellipsis;
|
|
|
+ white-space: nowrap;
|
|
|
+}
|
|
|
</style>
|