好友申请列表/好友搜索列表/个人中心复制区块链
This commit is contained in:
@@ -2,19 +2,14 @@
|
||||
<view class="content">
|
||||
<!-- 用户信息 -->
|
||||
<view class="user-info">
|
||||
<u-avatar
|
||||
:src="userInfo.portraitUrl"
|
||||
size="100"
|
||||
></u-avatar>
|
||||
<u-avatar :src="userInfo.portraitUrl" size="100" />
|
||||
|
||||
<view class="nickname">{{ userInfo.name }}</view>
|
||||
<!-- <view class="sex">
|
||||
<u-tag text="男" color="#fff" borderColor="#5db6ee" size="mini" icon="man" bgColor="#5db6ee"></u-tag>
|
||||
<u-tag text="女" color="#fff" borderColor="#e4867a" size="mini" icon="woman" bgColor="#e4867a"></u-tag>
|
||||
</view> -->
|
||||
<view class="address">
|
||||
{{ userInfo.address}}
|
||||
</view>
|
||||
<view class="address">{{ userInfo.address }}</view>
|
||||
<!-- 通过/拒绝/已通过/已拒绝 -->
|
||||
</view>
|
||||
<!-- <view class="user-lists">
|
||||
@@ -24,42 +19,35 @@
|
||||
</view>
|
||||
</view> -->
|
||||
<!-- 发送消息 -->
|
||||
<view class="info-footer">
|
||||
<button
|
||||
class="open-btn"
|
||||
@click="toPrivate"
|
||||
>发送消息</button>
|
||||
</view>
|
||||
<view class="info-footer"><button class="open-btn" @click="toPrivate">发送消息</button></view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { getUserInfo } from "@/apis/interfaces/im.js";
|
||||
import { getUserInfo } from '@/apis/interfaces/im.js';
|
||||
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
targetId: "",
|
||||
userInfo: {},
|
||||
targetId: '',
|
||||
userInfo: {}
|
||||
};
|
||||
},
|
||||
mounted() {
|
||||
getUserInfo(this.$Route.query.id).then((res) => {
|
||||
getUserInfo(this.$Route.query.id).then(res => {
|
||||
this.userInfo = res;
|
||||
uni.setNavigationBarTitle({
|
||||
title: res.name,
|
||||
title: res.name
|
||||
});
|
||||
});
|
||||
},
|
||||
methods: {
|
||||
toPrivate() {
|
||||
uni.redirectTo({
|
||||
url:
|
||||
"/pages/im/private/index?conversationType=1&targetId=" +
|
||||
this.targetId,
|
||||
url: '/pages/im/private/index?conversationType=1&targetId=' + this.targetId
|
||||
});
|
||||
},
|
||||
},
|
||||
}
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
||||
@@ -147,4 +135,4 @@ export default {
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user