Commit e9c91395 authored by lixy's avatar lixy

超长字符处理

parent fe03b493
...@@ -78,9 +78,9 @@ ...@@ -78,9 +78,9 @@
<ul class="v-ul clearfix list"> <ul class="v-ul clearfix list">
<li v-for="item in tourDetail.data" :key="item.id"> <li v-for="item in tourDetail.data" :key="item.id">
<nuxt-link :to="item.link" class="flex-aic-noc"> <nuxt-link :to="item.link" class="flex-aic-noc">
<img class="v-img-cover" :src="item.cover" alt="房车租赁" /> <img class="v-img-cover" :src="item.cover" alt="欣新房车" />
<div style="margin-left: 11px;position: relative;text-align: left;"> <div style="margin-left: 11px;position: relative;text-align: left;">
<h2 style="font-size: 18px;margin-top:10px">{{item.name}}</h2> <h2 class="ellipsis2" style="font-size: 18px;margin-top:10px;max-width: 400px;">{{item.name}}</h2>
<button class="buttonDetails" style="position: absolute;bottom:10px;left:0px;"> <button class="buttonDetails" style="position: absolute;bottom:10px;left:0px;">
旅游详情 旅游详情
<img style="position: absolute;" src="../../assets/images/r.png" /> <img style="position: absolute;" src="../../assets/images/r.png" />
...@@ -105,7 +105,7 @@ ...@@ -105,7 +105,7 @@
<nuxt-link :to="item.link" class="flex-aic-noc"> <nuxt-link :to="item.link" class="flex-aic-noc">
<img class="v-img-cover" :src="item.logo" alt="房车租赁" /> <img class="v-img-cover" :src="item.logo" alt="房车租赁" />
<div style="margin-left: 11px;position: relative;text-align: left;"> <div style="margin-left: 11px;position: relative;text-align: left;">
<h2 style="font-size: 18px;margin-top:10px">{{item.address}}</h2> <h2 class="ellipsis2" style="font-size: 18px;margin-top:10px;max-width: 400px;">{{item.address}}</h2>
<button class="buttonDetails" style="position: absolute;bottom:10px;left:0px;"> <button class="buttonDetails" style="position: absolute;bottom:10px;left:0px;">
营地详情 营地详情
<img style="position: absolute;" src="../../assets/images/r.png" /> <img style="position: absolute;" src="../../assets/images/r.png" />
...@@ -130,7 +130,7 @@ ...@@ -130,7 +130,7 @@
<nuxt-link :to="item.link" class="flex-aic-noc"> <nuxt-link :to="item.link" class="flex-aic-noc">
<img class="v-img-cover" :src="item.banner" alt="房车租赁" /> <img class="v-img-cover" :src="item.banner" alt="房车租赁" />
<div style="margin-left: 11px;position: relative;text-align: left;"> <div style="margin-left: 11px;position: relative;text-align: left;">
<h2 style="font-size: 18px;margin-top:10px">{{item.title}}</h2> <h2 class="ellipsis2" style="font-size: 18px;margin-top:10px;max-width: 400px;">{{item.title}}</h2>
<h2 style="font-size: 12px;color:#666666;margin-top:23px"> <h2 style="font-size: 12px;color:#666666;margin-top:23px">
<i class="el-icon-location"></i> <i class="el-icon-location"></i>
{{item.province}}{{item.city}}{{item.town}}{{item.address}} {{item.province}}{{item.city}}{{item.town}}{{item.address}}
...@@ -155,7 +155,7 @@ ...@@ -155,7 +155,7 @@
<nuxt-link :to="item.link" class="flex-aic-noc"> <nuxt-link :to="item.link" class="flex-aic-noc">
<img class="v-img-cover" :src="item.coverImage" alt="房车租赁" /> <img class="v-img-cover" :src="item.coverImage" alt="房车租赁" />
<div style="margin-left: 11px;position: relative;text-align: left;"> <div style="margin-left: 11px;position: relative;text-align: left;">
<h2 style="font-size: 18px;margin-top:10px">{{item.title}}</h2> <h2 class="ellipsis2" style="font-size: 18px;margin-top:10px;max-width: 400px;">{{item.title}}</h2>
<h2 style="font-size: 12px;color:#666666;margin-top:23px">{{item.addTime}}</h2> <h2 style="font-size: 12px;color:#666666;margin-top:23px">{{item.addTime}}</h2>
</div> </div>
</nuxt-link> </nuxt-link>
...@@ -178,7 +178,7 @@ ...@@ -178,7 +178,7 @@
<!-- <nuxt-link to="/" class="flex-aic-noc"> --> <!-- <nuxt-link to="/" class="flex-aic-noc"> -->
<img class="v-img-cover" :src="item.cover" alt="房车租赁" /> <img class="v-img-cover" :src="item.cover" alt="房车租赁" />
<div style="margin-left: 11px;position: relative;text-align: left;"> <div style="margin-left: 11px;position: relative;text-align: left;">
<h2 style="font-size: 18px;margin-top:10px">{{item.name}}</h2> <h2 class="ellipsis2" style="font-size: 18px;margin-top:10px;max-width: 400px;">{{item.name}}</h2>
<h2 style="font-size: 12px;color:#666666;margin-top:23px"> <h2 style="font-size: 12px;color:#666666;margin-top:23px">
<i class="el-icon-phone"></i> <i class="el-icon-phone"></i>
{{item.leaderContactInfo}} {{item.leaderContactInfo}}
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
<nuxt-link :to="item.link" class="flex-aic-noc"> <nuxt-link :to="item.link" class="flex-aic-noc">
<img class="v-img-cover" :src="item.banner" alt="房车租赁" /> <img class="v-img-cover" :src="item.banner" alt="房车租赁" />
<div style="margin-left: 11px;position: relative;text-align: left;"> <div style="margin-left: 11px;position: relative;text-align: left;">
<h2 style="font-size: 18px;margin-top:10px">{{item.title}}</h2> <h2 class="ellipsis2" style="font-size: 18px;margin-top:10px;max-width: 400px;">{{item.title}}</h2>
<h2 style="font-size: 12px;color:#666666;margin-top:23px"> <h2 style="font-size: 12px;color:#666666;margin-top:23px">
<i class="el-icon-location"></i> <i class="el-icon-location"></i>
{{item.province}}{{item.city}}{{item.town}}{{item.address}} {{item.province}}{{item.city}}{{item.town}}{{item.address}}
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
<nuxt-link :to="item.link" class="flex-aic-noc"> <nuxt-link :to="item.link" class="flex-aic-noc">
<img class="v-img-cover" :src="item.logo" alt="房车租赁" /> <img class="v-img-cover" :src="item.logo" alt="房车租赁" />
<div style="margin-left: 11px;position: relative;text-align: left;"> <div style="margin-left: 11px;position: relative;text-align: left;">
<h2 style="font-size: 18px;margin-top:10px">{{item.address}}</h2> <h2 class="ellipsis2" style="font-size: 18px;margin-top:10px;max-width: 400px;">{{item.address}}</h2>
<button class="buttonDetails" style="position: absolute;bottom:10px;left:0px;"> <button class="buttonDetails" style="position: absolute;bottom:10px;left:0px;">
营地详情 营地详情
<img style="position: absolute;" src="../../assets/images/r.png" /> <img style="position: absolute;" src="../../assets/images/r.png" />
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
<div class="flex-aic-noc"> <div class="flex-aic-noc">
<img class="v-img-cover" :src="item.cover" alt="房车租赁" /> <img class="v-img-cover" :src="item.cover" alt="房车租赁" />
<div style="margin-left: 11px;position: relative;text-align: left;"> <div style="margin-left: 11px;position: relative;text-align: left;">
<h2 style="font-size: 18px;margin-top:10px">{{item.name}}</h2> <h2 class="ellipsis2" style="font-size: 18px;margin-top:10px;max-width: 400px;">{{item.name}}</h2>
<h2 style="font-size: 12px;color:#666666;margin-top:23px"> <h2 style="font-size: 12px;color:#666666;margin-top:23px">
<i class="el-icon-phone"></i> <i class="el-icon-phone"></i>
{{item.leaderContactInfo}} {{item.leaderContactInfo}}
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
<nuxt-link :to="item.link" class="flex-aic-noc"> <nuxt-link :to="item.link" class="flex-aic-noc">
<img class="v-img-cover" :src="item.coverImage" alt="房车租赁" /> <img class="v-img-cover" :src="item.coverImage" alt="房车租赁" />
<div style="margin-left: 11px;position: relative;text-align: left;"> <div style="margin-left: 11px;position: relative;text-align: left;">
<h2 style="font-size: 18px;margin-top:10px">{{item.title}}</h2> <h2 class="ellipsis2" style="font-size: 18px;margin-top:10px;max-width: 400px;">{{item.title}}</h2>
<h2 style="font-size: 12px;color:#666666;margin-top:23px">{{item.addTime}}</h2> <h2 style="font-size: 12px;color:#666666;margin-top:23px">{{item.addTime}}</h2>
</div> </div>
</nuxt-link> </nuxt-link>
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
<nuxt-link :to="item.link" class="flex-aic-noc"> <nuxt-link :to="item.link" class="flex-aic-noc">
<img class="v-img-cover" :src="item.cover" alt="房车租赁" /> <img class="v-img-cover" :src="item.cover" alt="房车租赁" />
<div style="margin-left: 11px;position: relative;text-align: left;"> <div style="margin-left: 11px;position: relative;text-align: left;">
<h2 style="font-size: 18px;margin-top:10px">{{item.name}}</h2> <h2 class="ellipsis2" style="font-size: 18px;margin-top:10px;max-width: 400px;">{{item.name}}</h2>
<button class="buttonDetails" style="position: absolute;bottom:10px;left:0px;">旅游详情<img style="position: absolute;" src="../../assets/images/r.png"/></button> <button class="buttonDetails" style="position: absolute;bottom:10px;left:0px;">旅游详情<img style="position: absolute;" src="../../assets/images/r.png"/></button>
</div> </div>
</nuxt-link> </nuxt-link>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment