From 23ea3db2adeae8853238f76bc4009596a6252f5f Mon Sep 17 00:00:00 2001 From: HJ <2365331988@qq.com> Date: Tue, 21 Feb 2023 21:27:28 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A6=96=E9=A1=B5=E6=A0=B7=E5=BC=8Fupdate?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/post-list/post-list.vue | 32 ++++++++++++------- .../pages/square/square.vue | 2 +- .../utils/config.js | 8 ++--- 3 files changed, 26 insertions(+), 16 deletions(-) diff --git a/src/main/resources/static/linfeng-community-uniapp-ky/components/post-list/post-list.vue b/src/main/resources/static/linfeng-community-uniapp-ky/components/post-list/post-list.vue index 73260d8..d92398c 100644 --- a/src/main/resources/static/linfeng-community-uniapp-ky/components/post-list/post-list.vue +++ b/src/main/resources/static/linfeng-community-uniapp-ky/components/post-list/post-list.vue @@ -9,12 +9,17 @@ level-bg-color="#000000"> - - 官方 - {{ item.userInfo.username.substring(0, 10) }} - 置顶 - 审核中 - 已下架 + + + 官方 + {{ item.userInfo.username.substring(0, 10) }} + + + 置顶 + 审核中 + 已下架 + + {{ item.createTime}} @@ -264,11 +269,16 @@ .official { display: inline-block; + width: 65rpx; + height: 35rpx; font-size: 20rpx; + font-weight: bold; + text-align: center; + line-height: 35rpx; color: #ffffff; - background-color: #333333; - padding: 5rpx 10rpx; - border-radius: 10rpx; + background-color: #000000; + + border-radius: 30rpx; margin-right: 10rpx; } @@ -276,8 +286,8 @@ display: inline-block; font-size: 25rpx; color: #ffffff; - background-color: #ff0000; - padding: 5rpx 10rpx; + background-color: #c0392b; + padding: 2rpx 8rpx; border-radius: 10rpx; margin-left: 30rpx; } diff --git a/src/main/resources/static/linfeng-community-uniapp-ky/pages/square/square.vue b/src/main/resources/static/linfeng-community-uniapp-ky/pages/square/square.vue index 7ae6dce..3699691 100644 --- a/src/main/resources/static/linfeng-community-uniapp-ky/pages/square/square.vue +++ b/src/main/resources/static/linfeng-community-uniapp-ky/pages/square/square.vue @@ -123,7 +123,7 @@ uni.navigateTo({ url: '/pages/post/add' }) - } + }, pageTabChange(index) { this.pageCurrent = index }, diff --git a/src/main/resources/static/linfeng-community-uniapp-ky/utils/config.js b/src/main/resources/static/linfeng-community-uniapp-ky/utils/config.js index cfd3eca..7e882f7 100644 --- a/src/main/resources/static/linfeng-community-uniapp-ky/utils/config.js +++ b/src/main/resources/static/linfeng-community-uniapp-ky/utils/config.js @@ -3,12 +3,12 @@ const shareH5Url = "https://www.linfeng.tech/#/"; //H5分享路径 //本地环境配置 -const baseUrl = "localhost:8080"; -const domain = 'http://' + baseUrl + "/app/"; +// const baseUrl = "localhost:8080"; +// const domain = 'http://' + baseUrl + "/app/"; //线上环境配置 -// const baseUrl = ""; -// const domain = 'https://' + baseUrl + "/app/"; +const baseUrl = "wxapi.linfeng.tech"; +const domain = 'https://' + baseUrl + "/app/";