Refactor(购物车&我的):增加未登录或者登录过期显示以便微信审核
This commit is contained in:
+30
-14
@@ -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">去登录 →</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>
|
||||||
Reference in New Issue
Block a user