From fee4fb3385fd4361473b68653944ce547c42d004 Mon Sep 17 00:00:00 2001 From: Eratosici Date: Tue, 21 Dec 2021 14:02:11 +0800 Subject: [PATCH] =?UTF-8?q?=E9=83=A8=E5=88=86=E9=A1=B5=E9=9D=A2bug?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/index/index.css | 5 +++-- pages/index/index.vue | 2 +- pages/prod/prod.vue | 16 ++++------------ pages/recent-news/recent-news.css | 8 ++++++++ pages/recent-news/recent-news.vue | 1 + 5 files changed, 17 insertions(+), 15 deletions(-) diff --git a/pages/index/index.css b/pages/index/index.css index 451ed6a..d86a114 100644 --- a/pages/index/index.css +++ b/pages/index/index.css @@ -230,10 +230,10 @@ line-height:44rpx; margin: auto; height: auto; width: calc(100% - 40rpx); - padding:0 20rpx; + /* padding:0 20rpx; */ display: flex; flex-wrap:wrap; - justify-content: space-around; + /* justify-content: space-around; */ /* padding: 10rpx 0 0 0; */ } @@ -253,6 +253,7 @@ line-height:44rpx; width: 220rpx; background: #fff; display: inline-block; + margin: 0 8rpx; margin-bottom:20rpx; box-shadow: 0rpx 6rpx 8rpx rgba(58,134,185,0.2); } diff --git a/pages/index/index.vue b/pages/index/index.vue index 53aa887..41632d5 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -43,7 +43,7 @@ - + diff --git a/pages/prod/prod.vue b/pages/prod/prod.vue index cbe2165..dedd052 100644 --- a/pages/prod/prod.vue +++ b/pages/prod/prod.vue @@ -405,19 +405,11 @@ export default { }, callBack: res => { - //console.log(res); + uni.hideLoading() if (!res) { - uni.hideLoading() - uni.showModal({ - title: '提示', - content: '商品信息异常', - showCancel: false, - confirmText: '确定', - success(res) { - // 返回上一页 - uni.navigateBack() - } - }); + setTimeout(() => { + uni.navigateBack() + }, 1000); return } var imgStrs = res.imgs; diff --git a/pages/recent-news/recent-news.css b/pages/recent-news/recent-news.css index 8d64e29..3ce42bc 100644 --- a/pages/recent-news/recent-news.css +++ b/pages/recent-news/recent-news.css @@ -31,3 +31,11 @@ margin-top: 10rpx; margin-bottom: 20rpx; } + +.recent-news .empty { + display: block; + padding-top: 200rpx; + color: #999; + font-size: 26rpx; + text-align: center; +} \ No newline at end of file diff --git a/pages/recent-news/recent-news.vue b/pages/recent-news/recent-news.vue index b4517cb..bd5ff40 100644 --- a/pages/recent-news/recent-news.vue +++ b/pages/recent-news/recent-news.vue @@ -10,6 +10,7 @@ + 暂无数据