首页样式update

This commit is contained in:
HJ 2023-02-21 21:27:28 +08:00
parent 18b9c514a3
commit 23ea3db2ad
3 changed files with 26 additions and 16 deletions

View File

@ -9,12 +9,17 @@
level-bg-color="#000000"></u-avatar> level-bg-color="#000000"></u-avatar>
</view> </view>
<view class="center"> <view class="center">
<view style="display: flex;align-items: center;"> <view style="display: flex;align-items: center;justify-content: space-between;">
<text v-if="item.userInfo.type == 1" class="official">官方</text> <view style="display: flex;align-items: center;">
<text class="username">{{ item.userInfo.username.substring(0, 10) }}</text> <text v-if="item.userInfo.type == 1" class="official">官方</text>
<text v-if="item.postTop>0" class="officials">置顶</text> <text class="username">{{ item.userInfo.username.substring(0, 10) }}</text>
<text v-if="item.status==1" class="officials">审核中</text> </view>
<text v-if="item.status==2" class="officials">已下架</text> <view class="">
<text v-if="item.postTop>0" class="officials">置顶</text>
<text v-if="item.status==1" class="officials">审核中</text>
<text v-if="item.status==2" class="officials">已下架</text>
</view>
</view> </view>
<view> <view>
<text class="time">{{ item.createTime}}</text> <text class="time">{{ item.createTime}}</text>
@ -264,11 +269,16 @@
.official { .official {
display: inline-block; display: inline-block;
width: 65rpx;
height: 35rpx;
font-size: 20rpx; font-size: 20rpx;
font-weight: bold;
text-align: center;
line-height: 35rpx;
color: #ffffff; color: #ffffff;
background-color: #333333; background-color: #000000;
padding: 5rpx 10rpx;
border-radius: 10rpx; border-radius: 30rpx;
margin-right: 10rpx; margin-right: 10rpx;
} }
@ -276,8 +286,8 @@
display: inline-block; display: inline-block;
font-size: 25rpx; font-size: 25rpx;
color: #ffffff; color: #ffffff;
background-color: #ff0000; background-color: #c0392b;
padding: 5rpx 10rpx; padding: 2rpx 8rpx;
border-radius: 10rpx; border-radius: 10rpx;
margin-left: 30rpx; margin-left: 30rpx;
} }

View File

@ -123,7 +123,7 @@
uni.navigateTo({ uni.navigateTo({
url: '/pages/post/add' url: '/pages/post/add'
}) })
} },
pageTabChange(index) { pageTabChange(index) {
this.pageCurrent = index this.pageCurrent = index
}, },

View File

@ -3,12 +3,12 @@ const shareH5Url = "https://www.linfeng.tech/#/"; //H5分享路径
//本地环境配置 //本地环境配置
const baseUrl = "localhost:8080"; // const baseUrl = "localhost:8080";
const domain = 'http://' + baseUrl + "/app/"; // const domain = 'http://' + baseUrl + "/app/";
//线上环境配置 //线上环境配置
// const baseUrl = ""; const baseUrl = "wxapi.linfeng.tech";
// const domain = 'https://' + baseUrl + "/app/"; const domain = 'https://' + baseUrl + "/app/";