From 9be3c348728c67e1f7c5537a8b658982410ec181 Mon Sep 17 00:00:00 2001 From: From-wh Date: Tue, 28 Mar 2023 14:13:07 +0800 Subject: [PATCH] =?UTF-8?q?improve:=20=E6=A0=B7=E5=BC=8F=E5=8F=8A=E6=96=B9?= =?UTF-8?q?=E6=B3=95=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../uni-app/components/goodList/index.vue | 329 +++---- .../goods_comment_con/lottery_comment.vue | 807 ++++++++-------- .../visualization/components/goodList.vue | 572 ++++++------ .../visualization/components/recommend.vue | 10 +- .../pages/points_mall/integral_goods_list.vue | 884 +++++++++--------- template/uni-app/utils/util.js | 18 +- 6 files changed, 1325 insertions(+), 1295 deletions(-) diff --git a/template/uni-app/components/goodList/index.vue b/template/uni-app/components/goodList/index.vue index b70061e16..f066953f7 100644 --- a/template/uni-app/components/goodList/index.vue +++ b/template/uni-app/components/goodList/index.vue @@ -1,165 +1,166 @@ - - - - - diff --git a/template/uni-app/pages/goods/goods_comment_con/lottery_comment.vue b/template/uni-app/pages/goods/goods_comment_con/lottery_comment.vue index 2033b89b5..3cd5c4001 100644 --- a/template/uni-app/pages/goods/goods_comment_con/lottery_comment.vue +++ b/template/uni-app/pages/goods/goods_comment_con/lottery_comment.vue @@ -1,403 +1,406 @@ - - - - - diff --git a/template/uni-app/pages/index/visualization/components/goodList.vue b/template/uni-app/pages/index/visualization/components/goodList.vue index 9f31b20dc..e961a1424 100644 --- a/template/uni-app/pages/index/visualization/components/goodList.vue +++ b/template/uni-app/pages/index/visualization/components/goodList.vue @@ -1,285 +1,289 @@ - - - - - diff --git a/template/uni-app/pages/index/visualization/components/recommend.vue b/template/uni-app/pages/index/visualization/components/recommend.vue index fbf680814..3430b8a0c 100644 --- a/template/uni-app/pages/index/visualization/components/recommend.vue +++ b/template/uni-app/pages/index/visualization/components/recommend.vue @@ -359,15 +359,15 @@ .productList .item .text .vip .vip-money { font-size: 24rpx; color: #282828; - font-weight: bold; - display: flex; + font-weight: bold; + display: flex; align-items: center; } .productList .item .text .vip .vip-money image { - width: 46rpx; - height: 21rpx; - margin-left: 4rpx; + width: 64rpx; + height: 26rpx; + margin-left: 4rpx; margin-top: 4rpx; } diff --git a/template/uni-app/pages/points_mall/integral_goods_list.vue b/template/uni-app/pages/points_mall/integral_goods_list.vue index dd438f345..9a0ca7269 100644 --- a/template/uni-app/pages/points_mall/integral_goods_list.vue +++ b/template/uni-app/pages/points_mall/integral_goods_list.vue @@ -1,440 +1,446 @@ - - - - - diff --git a/template/uni-app/utils/util.js b/template/uni-app/utils/util.js index 06007ebb9..7844fcb22 100644 --- a/template/uni-app/utils/util.js +++ b/template/uni-app/utils/util.js @@ -746,6 +746,22 @@ export default { } return 0 + }, + /* + * 获取当前时间 + */ + getNowTime() { + let today = new Date(); + let year = today.getFullYear(); // 获取当前年份 + let month = today.getMonth() + 1; // 获取当前月份(注意:月份从 0 开始计数,所以需要加 1) + let day = today.getDate(); // 获取当前日(几号) + let hour = today.getHours(); // 获取当前小时 + let minute = today.getMinutes(); // 获取当前分钟 + let second = today.getSeconds(); // 获取当前秒钟 + + // 格式化输出当前时间 + let nowTime = year + '/' + month + '/' + day + ' ' + hour + ':' + minute + ':' + second; + return nowTime }, /** * 处理服务器扫码带进来的参数 @@ -981,4 +997,4 @@ export default { }, } -} +}