首页样式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>
</view>
<view class="center">
<view style="display: flex;align-items: center;">
<text v-if="item.userInfo.type == 1" class="official">官方</text>
<text class="username">{{ item.userInfo.username.substring(0, 10) }}</text>
<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 style="display: flex;align-items: center;justify-content: space-between;">
<view style="display: flex;align-items: center;">
<text v-if="item.userInfo.type == 1" class="official">官方</text>
<text class="username">{{ item.userInfo.username.substring(0, 10) }}</text>
</view>
<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>
<text class="time">{{ item.createTime}}</text>
@ -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;
}

View File

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

View File

@ -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/";