Refactor(购物车&我的):增加未登录或者登录过期显示以便微信审核

This commit is contained in:
lifizer
2025-04-16 10:01:38 +08:00
parent 2f55b0bfb8
commit 3ec0c8c29c
+30 -14
View File
@@ -16,8 +16,13 @@
class="list-wrap" class="list-wrap"
> >
<view v-if="isNoLogin" class="no-login-wrap"> <view v-if="isNoLogin" class="no-login-wrap">
<image
:src="webUrl + '/page/my/nologin.png'"
class="img"
/>
<view class="txt">您还未登录</view> <view class="txt">您还未登录</view>
<view class="btn">去登录&nbsp;→</view> <view class="desc">请注册/登录账户后重试</view>
<view class="btn">去登录</view>
</view> </view>
<view v-else> <view v-else>
<view class="v12-justify-between v12-px-2"> <view class="v12-justify-between v12-px-2">
@@ -1116,24 +1121,35 @@ view {
border-radius: 20rpx; border-radius: 20rpx;
} }
.no-login-wrap { .no-login-wrap {
display: flex; position: relative;
flex-direction: column; top: 50%;
align-items: center; text-align: center;
padding: 20vh 0; transform: translateY(-50%);
.img {
display: block;
width: 478rpx;
height: 398rpx;
margin: 0 auto;
}
.txt { .txt {
font-size: 36rpx; font-size: 36rpx;
line-height: 56rpx; line-height: 56rpx;
color: #333; color: #666;
}
.desc {
font-size: 28rpx;
line-height: 56rpx;
color: #999;
} }
.btn { .btn {
height: 60rpx; width: 320rpx;
margin: 40rpx 0 0 0; height: 80rpx;
padding: 0 30rpx; margin: 40rpx auto 0 auto;
border-radius: 8rpx; border-radius: 40rpx;
border: 1px solid #C52733; line-height: 80rpx;
line-height: 56rpx; color: #fff;
color: #C52733; font-size: 30rpx;
font-size: 28rpx; background-color: #C52733;
} }
} }
</style> </style>