修改BUG
This commit is contained in:
@@ -1,6 +1,9 @@
|
||||
<script setup>
|
||||
import { navigateTo } from '@/utils/router'
|
||||
import { ref } from 'vue'
|
||||
import { useUI } from '@/utils/use-ui'
|
||||
|
||||
const { showDialog } = useUI()
|
||||
|
||||
const btnList = [
|
||||
{ name: '等级排行榜', icon: 'grade' },
|
||||
@@ -16,6 +19,17 @@
|
||||
]
|
||||
|
||||
const onGo = item => {
|
||||
// ============测试添加好友===============
|
||||
// if (item === 'project') {
|
||||
// navigateTo('/pages/adduser/index')
|
||||
// return
|
||||
// }
|
||||
|
||||
// ===========================
|
||||
if (item === 'project') {
|
||||
showDialog('提示', '外部链接暂未提供', false)
|
||||
return
|
||||
}
|
||||
if (item === 'grade') {
|
||||
navigateTo('/pages/discover/ranking-list')
|
||||
return
|
||||
|
||||
@@ -21,7 +21,6 @@
|
||||
onLoad(() => {
|
||||
getData()
|
||||
})
|
||||
|
||||
</script>
|
||||
|
||||
<template>
|
||||
@@ -93,13 +92,13 @@
|
||||
<uni-col :span="12">
|
||||
<view class="table-name">
|
||||
<image
|
||||
src="/static/images/public/random2.png"
|
||||
mode="aspectFit"
|
||||
:src="item.avatar || '/static/images/public/random2.png'"
|
||||
mode="aspectFill"
|
||||
class="left-icon"
|
||||
></image>
|
||||
<view class="name">
|
||||
<text>名字</text>
|
||||
<text>158****98874</text>
|
||||
<text>{{ item.userName }}</text>
|
||||
<text>{{ item.mobile }}</text>
|
||||
</view>
|
||||
</view>
|
||||
</uni-col>
|
||||
@@ -149,6 +148,7 @@
|
||||
.left-icon {
|
||||
width: 64rpx;
|
||||
height: 64rpx;
|
||||
border-radius: 64rpx;
|
||||
margin-right: 8rpx;
|
||||
}
|
||||
.name {
|
||||
|
||||
Reference in New Issue
Block a user