提交我的页面的 UID

This commit is contained in:
A1300399510 2023-04-28 11:51:37 +08:00
parent 7b2c4584b4
commit 39456715c8
5 changed files with 12 additions and 4 deletions

View File

@ -202,7 +202,7 @@ export default {
padding: .32rem;
box-sizing: border-box;
// height: 50vh;
// height: 40vh;
height: 40vh;
overflow: auto;

View File

@ -22,7 +22,7 @@
<div class="head-more-pop" :class="{ animation: headMorePopState }">
<div class="head-more-userinfo flex1 flexacenter">
<div class="head-more-left flexacenter" v-if="islogin">
<router-link to="/user" @click.native="headMorePopState = !headMorePopState">
<router-link class="flexacenter" to="/user" @click.native="headMorePopState = !headMorePopState">
<img class="head-more-userinfo-avatar" :src="userInfo.avatar || './img/defaultAvatar.jpg'" />
<div class="head-more-userinfo-username">{{ userInfo.nickname || '未登录' }}</div>
</router-link>

View File

@ -35,6 +35,7 @@ function copy(value, message) {
copyInput.remove();//删除动态创建的节点
if (message) this.$Message.success(message);
else this.$Message.success('复制成功');
}
// 启动加载中

View File

@ -10,13 +10,13 @@ import { goTologin } from "@/utils/common.js"
axios.defaults.withCredentials = true
axios.defaults.emulateJSON = true
// 好几个接口
baseURL = {
// forum: "https://forum.gter.net",
forum: "https://app.gter.net/forum",
offer: "https://offer.gter.net",
tenement: "https://app.gter.net",
}
const service = axios.create({

View File

@ -5,6 +5,7 @@
<img class="portrait-icom" :src="user.avatar" />
</div>
<div class="header-username flexacenter">{{ user.nickname }}</div>
<div class="header-uid" @click="$copy(user.uin)">UID{{ user.uin }}</div>
</div>
<!-- 数据展示板 -->
@ -217,6 +218,12 @@ export default {
font-weight: 650;
}
.header-uid {
color: #7f7f7f;
font-weight: 400;
margin-top: .12rem;
}
}