style: 商户折扣页名称单行撑满省略,地址与距离合并为同一模块
This commit is contained in:
@@ -22,13 +22,16 @@
|
|||||||
<view class="card-info">
|
<view class="card-info">
|
||||||
<text class="card-name">{{ item.name }}</text>
|
<text class="card-name">{{ item.name }}</text>
|
||||||
<text class="card-category">{{ item.category }}</text>
|
<text class="card-category">{{ item.category }}</text>
|
||||||
|
<!-- xuchao: 地址与距离同属一个模块 -->
|
||||||
|
<view class="card-address-row">
|
||||||
<text class="card-address">{{ item.address }}</text>
|
<text class="card-address">{{ item.address }}</text>
|
||||||
</view>
|
|
||||||
<view class="card-distance" v-if="item.distance !== null">
|
<view class="card-distance" v-if="item.distance !== null">
|
||||||
<u-icon name="map" color="#999999" size="24"></u-icon>
|
<u-icon name="map" color="#999999" size="24"></u-icon>
|
||||||
<text class="distance-text">{{ item.distance < 1 ? Math.round(item.distance * 1000) + 'm' : Math.round(item.distance) + 'km' }}</text>
|
<text class="distance-text">{{ item.distance < 1 ? Math.round(item.distance * 1000) + 'm' : Math.round(item.distance) + 'km' }}</text>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
<view v-if="hasScrolled" class="nomore-area">
|
<view v-if="hasScrolled" class="nomore-area">
|
||||||
<u-loadmore :status="loadStatus" :loading-text="'加载中...'" :loadmore-text="''" :nomore-text="'我也是有底线的'" />
|
<u-loadmore :status="loadStatus" :loading-text="'加载中...'" :loadmore-text="''" :nomore-text="'我也是有底线的'" />
|
||||||
</view>
|
</view>
|
||||||
@@ -218,6 +221,10 @@ export default {
|
|||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
color: #000000;
|
color: #000000;
|
||||||
|
width: 100%;
|
||||||
|
overflow: hidden;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
white-space: nowrap;
|
||||||
}
|
}
|
||||||
|
|
||||||
.card-category {
|
.card-category {
|
||||||
@@ -226,14 +233,21 @@ export default {
|
|||||||
margin-top: 8px;
|
margin-top: 8px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.card-address-row {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
gap: 8px;
|
||||||
|
width: 100%;
|
||||||
|
margin-top: 8px;
|
||||||
|
}
|
||||||
|
|
||||||
.card-address {
|
.card-address {
|
||||||
|
flex: 1;
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
color: #727272;
|
color: #727272;
|
||||||
margin-top: 8px;
|
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
text-overflow: ellipsis;
|
text-overflow: ellipsis;
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
max-width: 200px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.card-distance {
|
.card-distance {
|
||||||
|
|||||||
Reference in New Issue
Block a user