|
@@ -58,15 +58,15 @@ export default defineComponent({
|
|
}
|
|
}
|
|
},
|
|
},
|
|
onRemove(item: any) {
|
|
onRemove(item: any) {
|
|
- ElMessageBox.confirm(`确定删除该粉丝吗?`, '提示', {
|
|
|
|
- confirmButtonText: '确认',
|
|
|
|
|
|
+ ElMessageBox.confirm(`确定移除该粉丝吗?`, '提示', {
|
|
|
|
+ confirmButtonText: '确定',
|
|
cancelButtonText: '取消',
|
|
cancelButtonText: '取消',
|
|
type: 'warning'
|
|
type: 'warning'
|
|
}).then(async () => {
|
|
}).then(async () => {
|
|
try {
|
|
try {
|
|
await request.post('/api-teacher/teacher/delFans/' + item.userId)
|
|
await request.post('/api-teacher/teacher/delFans/' + item.userId)
|
|
await getUserInfo()
|
|
await getUserInfo()
|
|
- ElMessage.success('删除成功')
|
|
|
|
|
|
+ ElMessage.success('移除成功')
|
|
this.pageInfo.page = 1
|
|
this.pageInfo.page = 1
|
|
this.getList()
|
|
this.getList()
|
|
|
|
|
|
@@ -118,27 +118,27 @@ export default defineComponent({
|
|
<div class="bg-[#FFE7CF] absolute left-2.5 top-2.5 text-[#AB5400] text-xs py-0.5 px-2 rounded-[10px]">
|
|
<div class="bg-[#FFE7CF] absolute left-2.5 top-2.5 text-[#AB5400] text-xs py-0.5 px-2 rounded-[10px]">
|
|
学生
|
|
学生
|
|
</div>
|
|
</div>
|
|
- <div class="flex flex-col items-center">
|
|
|
|
|
|
+ <div class="flex flex-col items-center" style="position: relative">
|
|
<ElImage
|
|
<ElImage
|
|
src={item.avatar}
|
|
src={item.avatar}
|
|
class={['w-12 h-12 rounded-full border-2 border-[#FFFFFF]', item.vipType !== 'NORMAL' ? item.vipType === 'VIP' ? 'border-[#FADA9B]' : 'border-[#F0AF88]' : '' ]}
|
|
class={['w-12 h-12 rounded-full border-2 border-[#FFFFFF]', item.vipType !== 'NORMAL' ? item.vipType === 'VIP' ? 'border-[#FADA9B]' : 'border-[#F0AF88]' : '' ]}
|
|
/>
|
|
/>
|
|
{item.vipType && item.vipType !== 'NORMAL' && (
|
|
{item.vipType && item.vipType !== 'NORMAL' && (
|
|
<ElImage
|
|
<ElImage
|
|
|
|
+ style="position: absolute;bottom: -5px; height: 18px;"
|
|
src={item.vipType === 'VIP' ? iconVip : iconSvip}
|
|
src={item.vipType === 'VIP' ? iconVip : iconSvip}
|
|
- class="h-5 -mt-4"
|
|
|
|
|
|
+ class="-mt-4"
|
|
|
|
+
|
|
/>
|
|
/>
|
|
)}
|
|
)}
|
|
</div>
|
|
</div>
|
|
|
|
|
|
- <p class="text-base text-[#333] font-semibold leading-tight pb-1 pt-2 text-center max-w-[120px] whitespace-nowrap overflow-hidden text-ellipsis">
|
|
|
|
|
|
+ <p class="text-base text-[#333] font-semibold leading-tight pb-1 pt-2 text-center max-w-[120px] whitespace-nowrap overflow-hidden text-ellipsis" title={item.userName}>
|
|
{item.userName}
|
|
{item.userName}
|
|
</p>
|
|
</p>
|
|
<p class="h-6">
|
|
<p class="h-6">
|
|
{item.subjectName && (
|
|
{item.subjectName && (
|
|
- <span style="font-size: 12px;color: #777777;">
|
|
|
|
- {item.subjectName}
|
|
|
|
- </span>
|
|
|
|
|
|
+ <span style="font-size: 12px;color: #777777;">{item.subjectName}</span>
|
|
)}
|
|
)}
|
|
</p>
|
|
</p>
|
|
<p>
|
|
<p>
|