【优化】调整个人中心顶部积分与余额之间的间隙,防止因金额或积分过大导致换行的问题。

This commit is contained in:
JianWeie
2022-08-07 12:24:51 +08:00
parent 2089f9cf13
commit e8c23018d2
2 changed files with 4 additions and 3 deletions

View File

@@ -47,7 +47,7 @@
}
}
.text-border-x { margin-right: 23px; position: relative;
.text-border-x { margin-right: 12px; position: relative;
&:after { position: absolute; background: #dddddd; top: 5px; width: 1px; right: -6.5px; height: 8px; content: " "; }
}

View File

@@ -46,8 +46,8 @@
<text class="coreshop-font-12">等级{{ userInfo.gradeName }}</text>
</view>
<view class="coreshop-font-12 coreshop-flex-direction-row">
<text class="text-border-x">{{pointShowName}} {{ userInfo.point }}</text>
<text>余额 {{ userInfo.balance }}</text>
<text class="text-border-x">{{pointShowName}}{{ userInfo.point }}</text>
<text>余额{{ userInfo.balance }}</text>
</view>
</view>
<!-- #ifndef MP-WEIXIN -->
@@ -514,6 +514,7 @@
if (this.$db.get('userToken')) {
this.hasLogin = true
this.$u.api.userInfo().then(res => {
console.log(res);
if (res.status) {
_this.userInfo = res.data
// #ifdef MP-WEIXIN