页面优化

This commit is contained in:
Eratosici
2022-03-08 09:15:57 +08:00
parent b8417b052b
commit 0f3ffebd9e
4 changed files with 22 additions and 7 deletions

View File

@@ -256,8 +256,9 @@ checkbox .wx-checkbox-input.wx-checkbox-input-checked::before {
/* 购物车为空 */
.empty {
font-size: 28rpx;
color: #666;
font-size: 26rpx;
color: #aaa;
padding-top: 200rpx;
}
.empty .txt {

View File

@@ -231,7 +231,14 @@ page {
.cont-item.empty {
display: block;
font-size: 24rpx;
margin-top: 80rpx;
padding-top: 400rpx;
color: #aaa;
text-align: center;
}
.leftmenu .ca-empty {
padding-top: 400rpx;
text-align: center;
color: #aaa;
font-size: 24rpx;
}

View File

@@ -21,13 +21,14 @@
{{item.categoryName}}
</view>
</block>
<view v-if="!categoryList || !categoryList.length" class="ca-empty">暂无分类</view>
</scroll-view>
<!-- 左侧菜单end -->
<!-- 右侧内容start -->
<scroll-view scroll-y="true" class="rightcontent">
<!-- <block wx:for='{{ productList}}' wx:key=''> -->
<view class="adver-map">
<view v-if="categoryImg" class="adver-map">
<view class="item-a">
<image :src="categoryImg" mode="widthFix"></image>
</view>
@@ -49,7 +50,7 @@
</block>
</view>
<view v-if="!productList.length" class="cont-item empty">该分类下暂无商品</view>
<view v-if="!productList.length" class="cont-item empty">{{categoryList && categoryList.length ? '该分类下暂无商品' : '暂无商品'}}</view>
<!-- </block> -->
</scroll-view>
<!-- 右侧内容end -->

View File

@@ -81,12 +81,12 @@
<view v-else class="num">--</view>
<view class="tit">我的收藏</view>
</view>
<view class="col-item">
<view class="col-item" @tap="handleTips">
<view v-if="loginResult" class="num">5</view>
<view v-else class="num">--</view>
<view class="tit">我的消息</view>
</view>
<view class="col-item">
<view class="col-item" @tap="handleTips">
<view v-if="loginResult" class="num">3</view>
<view v-else class="num">--</view>
<view class="tit">我的足迹</view>
@@ -247,6 +247,12 @@
title: '该功能未开源'
});
},
handleTips: function() {
uni.showToast({
icon: "none",
title: '该功能未开源'
});
},
toAddressList: function() {
uni.navigateTo({
url: '/pages/delivery-address/delivery-address'