效果图
数据展示,可自行搭配
html
<view class="num-wrapper">
<view class="num-item" @click.stop="routerGo('跳转的地址')">
<text class="num">¥{{ 要展示的数据 || 0}}</text>
<view class="txt">余额</view>
</view>
<view class="num-item num-item-center" @click="routerGo('跳转的地址')">
<text class="num">{{ 要展示的数据 || 0}}</text>
<view class="txt">免费次数</view>
</view>
<view class="num-item" @click.stop="routerGo('跳转的地址')">
<text class="num">{{ 要展示的数据 || 0}}</text>
<view class="txt">优惠券</view>
</view>
</view>
css
.num-wrapper {
width: 690rpx;
margin: auto;
padding: 30rpx 20rpx;
border-radius: 8rpx;
background: #FFFFFF;
box-shadow: 0rpx 2rpx 4rpx 0rpx rgba(0, 0, 0, 0.05);
display: flex;
align-items: center;
justify-content: space-between;
margin-top: 22rpx;
// padding: 0 47rpx;
color: #036045;
margin-top: 30rpx;
font-family: 'MyFont';
.num-item {
width: 33.33%;
text-align: center;
&~.num-item {
position: relative;
&:before {
content: '';
position: absolute;
width: 1rpx;
height: 28rpx;
top: 50%;
margin-top: -14rpx;
// background-color: rgba(255, 255, 255, 0.4);
left: 0;
}
}
.num {
font-size: 42rpx;
font-weight: bold;
}
.txt {
margin-top: 8rpx;
font-size: 26rpx;
color: #6B7280;
font-family: 'Roboto';
}
}
.num-item-center {
border-left: 1rpx solid #F3F4F6;
border-right: 1rpx solid #F3F4F6;
}
}
需求可自行修改