|
@@ -2,7 +2,11 @@
|
|
|
<div class="containers">
|
|
<div class="containers">
|
|
|
<div class="top">
|
|
<div class="top">
|
|
|
<el-upload :action="uploadUrl" :show-file-list="false" :before-upload="beforeAvatarUpload2">
|
|
<el-upload :action="uploadUrl" :show-file-list="false" :before-upload="beforeAvatarUpload2">
|
|
|
- <img class="top" :src="userInfo.bg || require('../../assets/img/bg-moren@3x.png')" alt="" />
|
|
|
|
|
|
|
+ <img
|
|
|
|
|
+ class="top"
|
|
|
|
|
+ :src="getImg(userInfo.bg, '', 1300) || require('../../assets/img/bg-moren@3x.png')"
|
|
|
|
|
+ alt=""
|
|
|
|
|
+ />
|
|
|
<i class="el-icon-plus avatar-uploader-icon"></i>
|
|
<i class="el-icon-plus avatar-uploader-icon"></i>
|
|
|
<el-button class="btn" size="small" type="primary">更换背景</el-button>
|
|
<el-button class="btn" size="small" type="primary">更换背景</el-button>
|
|
|
</el-upload>
|
|
</el-upload>
|
|
@@ -17,15 +21,25 @@
|
|
|
:key="index"
|
|
:key="index"
|
|
|
:class="{ active: active === item }"
|
|
:class="{ active: active === item }"
|
|
|
>
|
|
>
|
|
|
- <div v-if="item === '粉丝'" class="text3">{{ userInfo.followers }}</div>
|
|
|
|
|
- <div v-if="item === '关注'" class="text3">{{ userInfo.follows }}</div>
|
|
|
|
|
|
|
+ <div :class="{ active: active === item }" v-if="item === '粉丝'" class="text3">
|
|
|
|
|
+ {{ userInfo.followers }}
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <div :class="{ active: active === item }" v-if="item === '关注'" class="text3">
|
|
|
|
|
+ {{ userInfo.follows }}
|
|
|
|
|
+ </div>
|
|
|
{{ item }}
|
|
{{ item }}
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
<el-upload :action="uploadUrl" :show-file-list="false" :before-upload="beforeAvatarUpload">
|
|
<el-upload :action="uploadUrl" :show-file-list="false" :before-upload="beforeAvatarUpload">
|
|
|
- <img v-if="userInfo.avatar" class="img2" :src="userInfo.avatar" alt="" />
|
|
|
|
|
|
|
+ <img
|
|
|
|
|
+ v-if="userInfo.avatar"
|
|
|
|
|
+ class="img2"
|
|
|
|
|
+ :src="getImg(userInfo.avatar, '', 400) || require('../../assets/png-touxiang@.png')"
|
|
|
|
|
+ alt=""
|
|
|
|
|
+ />
|
|
|
<i v-else class="el-icon-plus avatar-uploader-icon"></i>
|
|
<i v-else class="el-icon-plus avatar-uploader-icon"></i>
|
|
|
|
|
+ <img class="avatar" src="../../assets/png-genhuantouxiang@3x.png" alt="" />
|
|
|
</el-upload>
|
|
</el-upload>
|
|
|
</div>
|
|
</div>
|
|
|
<div class="userContent" v-if="active === '关注' || active === '粉丝'">
|
|
<div class="userContent" v-if="active === '关注' || active === '粉丝'">
|
|
@@ -61,6 +75,7 @@
|
|
|
@click.prevent="like(item)"
|
|
@click.prevent="like(item)"
|
|
|
>
|
|
>
|
|
|
{{ item.follow ? '已关注' : '关注' }}
|
|
{{ item.follow ? '已关注' : '关注' }}
|
|
|
|
|
+ <!-- {{ item.follow ? (isFollow ? '互相关注' : '已关注') : '关注' }} -->
|
|
|
</el-button>
|
|
</el-button>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
@@ -122,7 +137,7 @@
|
|
|
<div class="text1">
|
|
<div class="text1">
|
|
|
<img class="icon" src="../../assets/user/icon_zhanghao@3x.png" alt="" />
|
|
<img class="icon" src="../../assets/user/icon_zhanghao@3x.png" alt="" />
|
|
|
</div>
|
|
</div>
|
|
|
- <div class="text6">登录账号</div>
|
|
|
|
|
|
|
+ <div class="text2">登录账号</div>
|
|
|
<div class="text3">{{ Phone }}</div>
|
|
<div class="text3">{{ Phone }}</div>
|
|
|
</div>
|
|
</div>
|
|
|
<div class="text4" @click="all('security')">修改</div>
|
|
<div class="text4" @click="all('security')">修改</div>
|
|
@@ -132,7 +147,7 @@
|
|
|
<div class="text1">
|
|
<div class="text1">
|
|
|
<img class="icon" src="../../assets/user/icon_mima@3x (1).png" alt="" />
|
|
<img class="icon" src="../../assets/user/icon_mima@3x (1).png" alt="" />
|
|
|
</div>
|
|
</div>
|
|
|
- <div class="text6">登录密码</div>
|
|
|
|
|
|
|
+ <div class="text2">登录密码</div>
|
|
|
<div class="text3">********</div>
|
|
<div class="text3">********</div>
|
|
|
</div>
|
|
</div>
|
|
|
<div class="text4" @click="all('modifypad')">修改</div>
|
|
<div class="text4" @click="all('modifypad')">修改</div>
|
|
@@ -142,7 +157,7 @@
|
|
|
<div class="text1">
|
|
<div class="text1">
|
|
|
<img class="icon" src="../../assets/user/icon_mima@3x (1).png" alt="" />
|
|
<img class="icon" src="../../assets/user/icon_mima@3x (1).png" alt="" />
|
|
|
</div>
|
|
</div>
|
|
|
- <div class="text6">交易密码</div>
|
|
|
|
|
|
|
+ <div class="text2">交易密码</div>
|
|
|
<div class="text3">付款时用来认证身份信息</div>
|
|
<div class="text3">付款时用来认证身份信息</div>
|
|
|
</div>
|
|
</div>
|
|
|
<div class="text4" @click="all('/transaction')">修改</div>
|
|
<div class="text4" @click="all('/transaction')">修改</div>
|
|
@@ -159,6 +174,16 @@
|
|
|
</div>
|
|
</div>
|
|
|
<div class="text4" @click="Auths">{{ Status }}</div>
|
|
<div class="text4" @click="Auths">{{ Status }}</div>
|
|
|
</div>
|
|
</div>
|
|
|
|
|
+ <!-- <div class="box">
|
|
|
|
|
+ <div class="text">
|
|
|
|
|
+ <div class="text1">
|
|
|
|
|
+ <img class="icon" src="../../assets/user/icon-renzheng@3x.png" alt="" />
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <div class="text2">银行卡</div>
|
|
|
|
|
+ <div class="text3">已添加银行卡信息</div>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <div class="text4" @click="ipcFn">查看</div>
|
|
|
|
|
+ </div> -->
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
</template>
|
|
</template>
|
|
@@ -212,6 +237,9 @@ export default {
|
|
|
}, 1000);
|
|
}, 1000);
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
|
|
|
+ ipcFn() {
|
|
|
|
|
+ this.$router.push('/Addipc');
|
|
|
|
|
+ },
|
|
|
add() {
|
|
add() {
|
|
|
this.$http
|
|
this.$http
|
|
|
.post(
|
|
.post(
|
|
@@ -252,6 +280,7 @@ export default {
|
|
|
if (e === '关注') {
|
|
if (e === '关注') {
|
|
|
this.$http.get('/user/myFollows').then(res => {
|
|
this.$http.get('/user/myFollows').then(res => {
|
|
|
this.list = res;
|
|
this.list = res;
|
|
|
|
|
+ console.log(res);
|
|
|
this.$store.dispatch('getUserInfo');
|
|
this.$store.dispatch('getUserInfo');
|
|
|
if (this.list.length === 0) {
|
|
if (this.list.length === 0) {
|
|
|
this.empty = true;
|
|
this.empty = true;
|
|
@@ -437,6 +466,9 @@ export default {
|
|
|
font-weight: normal;
|
|
font-weight: normal;
|
|
|
color: #ffffff;
|
|
color: #ffffff;
|
|
|
line-height: 24px;
|
|
line-height: 24px;
|
|
|
|
|
+ &.active {
|
|
|
|
|
+ color: @prim;
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
.text {
|
|
.text {
|
|
|
display: flex;
|
|
display: flex;
|
|
@@ -463,6 +495,14 @@ export default {
|
|
|
top: -50px;
|
|
top: -50px;
|
|
|
left: 431px;
|
|
left: 431px;
|
|
|
}
|
|
}
|
|
|
|
|
+ .avatar {
|
|
|
|
|
+ position: absolute;
|
|
|
|
|
+ top: 28px;
|
|
|
|
|
+ width: 100px;
|
|
|
|
|
+ height: 24px;
|
|
|
|
|
+ border: 0;
|
|
|
|
|
+ left: 44.8%;
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
.userContent {
|
|
.userContent {
|
|
|
padding: 0 16px;
|
|
padding: 0 16px;
|
|
@@ -481,14 +521,13 @@ export default {
|
|
|
margin-right: 12px;
|
|
margin-right: 12px;
|
|
|
}
|
|
}
|
|
|
.box2 {
|
|
.box2 {
|
|
|
- width: 288px;
|
|
|
|
|
|
|
+ width: 398px;
|
|
|
margin-right: 50px;
|
|
margin-right: 50px;
|
|
|
.nickname {
|
|
.nickname {
|
|
|
.flex();
|
|
.flex();
|
|
|
// margin-top: 5px;
|
|
// margin-top: 5px;
|
|
|
.name1 {
|
|
.name1 {
|
|
|
- font-size: 16px;
|
|
|
|
|
- font-weight: bold;
|
|
|
|
|
|
|
+ font-size: @menuFont2;
|
|
|
color: #ffffff;
|
|
color: #ffffff;
|
|
|
line-height: 24px;
|
|
line-height: 24px;
|
|
|
margin-right: 6px;
|
|
margin-right: 6px;
|
|
@@ -499,13 +538,14 @@ export default {
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
.detail {
|
|
.detail {
|
|
|
|
|
+ // width: 350px;
|
|
|
|
|
+ width: 100%;
|
|
|
font-size: 14px;
|
|
font-size: 14px;
|
|
|
font-weight: 400;
|
|
font-weight: 400;
|
|
|
color: #939599;
|
|
color: #939599;
|
|
|
line-height: 24px;
|
|
line-height: 24px;
|
|
|
margin-bottom: 8px;
|
|
margin-bottom: 8px;
|
|
|
- overflow: hidden;
|
|
|
|
|
- text-overflow: ellipsis;
|
|
|
|
|
|
|
+ .ellipsis();
|
|
|
}
|
|
}
|
|
|
.box3 {
|
|
.box3 {
|
|
|
display: flex;
|
|
display: flex;
|
|
@@ -514,10 +554,10 @@ export default {
|
|
|
.box4 {
|
|
.box4 {
|
|
|
display: flex;
|
|
display: flex;
|
|
|
.text4 {
|
|
.text4 {
|
|
|
- font-size: 14px;
|
|
|
|
|
|
|
+ font-size: @menuFont1;
|
|
|
font-weight: 400;
|
|
font-weight: 400;
|
|
|
color: #939599;
|
|
color: #939599;
|
|
|
- line-height: 24px;
|
|
|
|
|
|
|
+ line-height: 26px;
|
|
|
margin-right: 20px;
|
|
margin-right: 20px;
|
|
|
}
|
|
}
|
|
|
span {
|
|
span {
|
|
@@ -560,16 +600,16 @@ export default {
|
|
|
.content {
|
|
.content {
|
|
|
padding: 0 16px;
|
|
padding: 0 16px;
|
|
|
.name {
|
|
.name {
|
|
|
- font-size: 16px;
|
|
|
|
|
|
|
+ font-size: @menuFont;
|
|
|
font-weight: bold;
|
|
font-weight: bold;
|
|
|
color: #ffffff;
|
|
color: #ffffff;
|
|
|
line-height: 24px;
|
|
line-height: 24px;
|
|
|
- margin: 30px 0 10px 0;
|
|
|
|
|
|
|
+ margin: 20px 0 10px 0;
|
|
|
}
|
|
}
|
|
|
.box {
|
|
.box {
|
|
|
display: flex;
|
|
display: flex;
|
|
|
justify-content: space-between;
|
|
justify-content: space-between;
|
|
|
- padding: 16px 0;
|
|
|
|
|
|
|
+ padding: 17px 0;
|
|
|
.myClass {
|
|
.myClass {
|
|
|
background: linear-gradient(133deg, @prim 0%, @warn 100%) !important;
|
|
background: linear-gradient(133deg, @prim 0%, @warn 100%) !important;
|
|
|
border-radius: 4px;
|
|
border-radius: 4px;
|
|
@@ -587,26 +627,19 @@ export default {
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
.text2 {
|
|
.text2 {
|
|
|
- font-size: 17px;
|
|
|
|
|
|
|
+ font-size: @menuFont2;
|
|
|
font-weight: 400;
|
|
font-weight: 400;
|
|
|
color: #ffffff;
|
|
color: #ffffff;
|
|
|
line-height: 24px;
|
|
line-height: 24px;
|
|
|
width: 94px;
|
|
width: 94px;
|
|
|
- margin: -1px 0 0 10px;
|
|
|
|
|
- }
|
|
|
|
|
- .text6 {
|
|
|
|
|
- font-size: 17px;
|
|
|
|
|
- font-weight: 400;
|
|
|
|
|
- color: #ffffff;
|
|
|
|
|
- line-height: 24px;
|
|
|
|
|
- width: 94px;
|
|
|
|
|
- margin: 1px 0 0 10px;
|
|
|
|
|
|
|
+ margin-left: 10px;
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
.text3 {
|
|
.text3 {
|
|
|
- font-size: 16px;
|
|
|
|
|
|
|
+ font-size: @menuFont2;
|
|
|
font-weight: 400;
|
|
font-weight: 400;
|
|
|
color: #949699;
|
|
color: #949699;
|
|
|
- line-height: 26px;
|
|
|
|
|
|
|
+ line-height: 24px;
|
|
|
&.text5 {
|
|
&.text5 {
|
|
|
width: 745px;
|
|
width: 745px;
|
|
|
min-height: 60px;
|
|
min-height: 60px;
|
|
@@ -625,7 +658,7 @@ export default {
|
|
|
height: 1px;
|
|
height: 1px;
|
|
|
background: #494a4d;
|
|
background: #494a4d;
|
|
|
border-radius: 1px;
|
|
border-radius: 1px;
|
|
|
- margin-top: 30px;
|
|
|
|
|
|
|
+ margin-top: 10px;
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|