Commit 8e9ca50ba07c740e7c18d7a8a6c015fa37ee7de7

Authored by Andy
1 parent 206ce58f

add 跳转链接

Showing 1 changed file with 17 additions and 1 deletions
webintroduce/src/views/home.vue
... ... @@ -84,7 +84,7 @@
84 84 </div>
85 85 <div class="newslist">
86 86 <ul>
87   - <li v-for="(news,index) in newsLists" :key="index" @click="">
  87 + <li v-for="(news,index) in newsLists" :key="index" @click="goWXnews(news.href)">
88 88 <p class="pos-rel red-slide"> <a >{{news.newsTitle}}<span class="pos-abs" style="bottom: 0px;right: 2px;color: rgba(0,0,0,0.3);font-size: 12px">{{news.time}}</span> </a>
89 89 </p>
90 90 </li>
... ... @@ -121,42 +121,49 @@ export default {
121 121 },
122 122 newsLists:[
123 123 {
  124 + "id":"1",
124 125 "href":"https://mp.weixin.qq.com/s/NcWXfcxjy5t-sqG2yFg6JQ",
125 126 "newsTitle":"【公司要闻】中兴智能交通建设甘肃省周边“一带一路”沿线城市的智慧停车",
126 127 "img":"http://www.zte-its.com/Upload/2019-01/20190107134910953.jpg",
127 128 "time":"2019-01-06"
128 129 },
129 130 {
  131 + "id":"1",
130 132 "href":"https://mp.weixin.qq.com/s/bO_1as7-8enGR7g4sI_6lw",
131 133 "newsTitle":"【公司要闻】年度盘点丨2018,中兴智能交通铸就辉煌",
132 134 "img":"http://www.zte-its.com/Upload/2019-01/20190107120328342.jpg",
133 135 "time":"2018-12-30"
134 136 },
135 137 {
  138 + "id":"1",
136 139 "href":"https://mp.weixin.qq.com/s/ZJCdWCWCkrxtmOCep9fvwQ",
137 140 "newsTitle":"【公司要闻】中兴智能交通荣获”2018中国城市无人化停车十大创新方案”称号",
138 141 "img":"http://www.zte-its.com/Upload/2019-01/20190114111641907.jpg",
139 142 "time":"2019-01-14"
140 143 },
141 144 {
  145 + "id":"1",
142 146 "href":"https://mp.weixin.qq.com/s/ilplSVvIBUt0sDtqTgsgbw",
143 147 "newsTitle":"【公司要闻】2018年年底,赤峰智慧停车项目正式上线运营",
144 148 "img":"http://www.zte-its.com/ckfinder/userfiles/images/Snap2(34).jpg",
145 149 "time":"2018-12-26"
146 150 },
147 151 {
  152 + "id":"1",
148 153 "href":"https://mp.weixin.qq.com/s/j4FJmW-dAMAKK8WBilHSzw",
149 154 "newsTitle":"【公司要闻】中兴智能交通应邀出席“2018第三届中国物联网国际峰会”",
150 155 "img":"http://www.zte-its.com/Upload/2018-05/20180529172415999.jpg",
151 156 "time":"2018-05-15"
152 157 },
153 158 {
  159 + "id":"1",
154 160 "href":"https://mp.weixin.qq.com/s/Q3V4F0PHm0cS7a-zlXx6OA",
155 161 "newsTitle":"【行业动态】贵州机动车停放收费新规5月起试行 小区停车费由业主大会决定",
156 162 "img":"http://www.zte-its.com/Upload/2018-08/20180808173733771.jpg",
157 163 "time":"2018-04-24"
158 164 },
159 165 {
  166 + "id":"1",
160 167 "href":"https://mp.weixin.qq.com/s/BEyfUDkfrZqLokZxoKp04Q",
161 168 "newsTitle":"【行业动态】广州停车场条例10月起施行 小区停车收费标准先议价",
162 169 "img":"http://www.zte-its.com/Upload/2018-09/20180918095140370.jpg",
... ... @@ -193,6 +200,15 @@ export default {
193 200 // 然后你就可以使用当前上下文内的swiper对象去做你想做的事了
194 201 console.log('this is current swiper instance object', this.swiper)
195 202 //this.swiper(7, 1000, false)
  203 + },
  204 + methods: {
  205 +
  206 + goWXnews(data){
  207 +
  208 + window.open(data)
  209 +
  210 + }
  211 +
196 212 }
197 213 }
198 214 </script>
... ...