需新增:添加好友页面,优化各模块页面
This commit is contained in:
@@ -16,12 +16,12 @@
|
||||
const { showDialog, showToast } = useUI()
|
||||
|
||||
const placeholderStyle = `font-family: PingFang SC, PingFang SC;
|
||||
font-weight: 500;
|
||||
font-size: 28rpx;
|
||||
color: #999999;
|
||||
line-height: 40rpx;
|
||||
font-style: normal;
|
||||
text-transform: none;`
|
||||
font-weight: 500;
|
||||
font-size: 28rpx;
|
||||
color: #999999;
|
||||
line-height: 40rpx;
|
||||
font-style: normal;
|
||||
text-transform: none;`
|
||||
const MAX_SCROLL = 446
|
||||
|
||||
const paging = ref(null)
|
||||
@@ -39,6 +39,7 @@ text-transform: none;`
|
||||
})
|
||||
const contentData = ref('')
|
||||
const inputId = ref('')
|
||||
const isType = ref('')
|
||||
|
||||
const onScroll = e => {
|
||||
cbNavBar.value?.updateScroll(e.detail.scrollTop)
|
||||
@@ -56,7 +57,7 @@ text-transform: none;`
|
||||
const res = await getUserMomentsList({
|
||||
pageNum,
|
||||
pageSize,
|
||||
targetUserId: userInfo.value.userId
|
||||
targetUserId: isType.value == 1 ? userInfo.value.userId : ''
|
||||
})
|
||||
const list = res.rows.map(item => {
|
||||
return {
|
||||
@@ -120,7 +121,10 @@ text-transform: none;`
|
||||
onShow(() => {
|
||||
getData(1, formData.pageSize)
|
||||
})
|
||||
onLoad(async () => {})
|
||||
|
||||
onLoad(async e => {
|
||||
isType.value = e?.type || ''
|
||||
})
|
||||
</script>
|
||||
|
||||
<template>
|
||||
@@ -187,11 +191,18 @@ text-transform: none;`
|
||||
<view v-if="!listLoading" class="dynamic-list" @click="closeComment">
|
||||
<view v-for="item in dataList" :key="item.id" class="list">
|
||||
<image
|
||||
v-if="item.avatar"
|
||||
:src="item.avatar"
|
||||
lazy-load
|
||||
mode="aspectFill"
|
||||
class="avatar"
|
||||
></image>
|
||||
<view v-else class="avatar">
|
||||
<uni-icons
|
||||
type="contact-filled"
|
||||
class="avatar-icon"
|
||||
></uni-icons>
|
||||
</view>
|
||||
<view class="content">
|
||||
<text class="name">{{ item.userName }}</text>
|
||||
<text class="text">{{ item.content }}</text>
|
||||
@@ -235,8 +246,8 @@ text-transform: none;`
|
||||
color="#747474"
|
||||
@click.stop="inputId = item.id"
|
||||
></uni-icons>
|
||||
|
||||
<uni-icons
|
||||
v-if="item.userId === userInfo.userId"
|
||||
type="trash"
|
||||
size="20"
|
||||
color="#d95d5d"
|
||||
|
||||
Reference in New Issue
Block a user