|
|
@@ -45,6 +45,9 @@
|
|
|
</div>
|
|
|
<div class="userContent" v-if="active === '关注' || active === '粉丝'">
|
|
|
<div class="borderUser"></div>
|
|
|
+ <!-- <el-divider content-position="right">
|
|
|
+ <img src="../../assets/copy_icon.png" alt="" />
|
|
|
+ </el-divider> -->
|
|
|
<el-empty v-if="empty" description="还没有用户哦~"></el-empty>
|
|
|
<div v-for="item in list" :key="item.id">
|
|
|
<div class="boxFollow">
|
|
|
@@ -60,7 +63,7 @@
|
|
|
<div class="box3">
|
|
|
<div class="box4">
|
|
|
<div class="text4">
|
|
|
- 粉丝 <span>{{ item.follows }}</span>
|
|
|
+ 粉丝 <span>{{ item.followers }}</span>
|
|
|
</div>
|
|
|
<div class="text4">
|
|
|
已售 <span>{{ item.sales }}</span>
|
|
|
@@ -75,8 +78,7 @@
|
|
|
size="mini"
|
|
|
@click.prevent="like(item)"
|
|
|
>
|
|
|
- {{ item.follow ? '已关注' : '关注' }}
|
|
|
- <!-- {{ item.follow ? (isFollow ? '互相关注' : '已关注') : '关注' }} -->
|
|
|
+ {{ item.follow ? (isFollow ? '互相关注' : '已关注') : '关注' }}
|
|
|
</el-button>
|
|
|
</div>
|
|
|
</div>
|
|
|
@@ -175,16 +177,16 @@
|
|
|
</div>
|
|
|
<div class="text4" @click="Auths">{{ Status }}</div>
|
|
|
</div>
|
|
|
- <!-- <div class="box">
|
|
|
+ <div class="box">
|
|
|
<div class="text">
|
|
|
<div class="text1">
|
|
|
- <img class="icon" src="../../assets/user/icon-renzheng@3x.png" alt="" />
|
|
|
+ <img class="icon" src="../../assets/user/icon_yinhangka@3x.png" alt="" />
|
|
|
</div>
|
|
|
<div class="text2">银行卡</div>
|
|
|
<div class="text3">已添加银行卡信息</div>
|
|
|
</div>
|
|
|
<div class="text4" @click="ipcFn">查看</div>
|
|
|
- </div> -->
|
|
|
+ </div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</template>
|
|
|
@@ -204,6 +206,7 @@ export default {
|
|
|
return {
|
|
|
tabs: ['粉丝', '关注'],
|
|
|
active: '',
|
|
|
+ isFollow: false,
|
|
|
list: '',
|
|
|
empty: false,
|
|
|
value: '',
|
|
|
@@ -236,10 +239,51 @@ export default {
|
|
|
setTimeout(() => {
|
|
|
this.add();
|
|
|
}, 1000);
|
|
|
+ this.$http
|
|
|
+ .get('user/myBankCard', {
|
|
|
+ userId: this.userInfo.id
|
|
|
+ })
|
|
|
+ .then(res => {
|
|
|
+ console.log(res);
|
|
|
+ });
|
|
|
},
|
|
|
methods: {
|
|
|
ipcFn() {
|
|
|
- this.$router.push('/Addipc');
|
|
|
+ if (this.userInfo.authStatus === 'SUCCESS') {
|
|
|
+ this.$router.push('/Addipc');
|
|
|
+ } else if (this.userInfo.authStatus === 'PENDING' || this.userInfo.authStatus === 'FAIL') {
|
|
|
+ this.$confirm('用户认证中,是否查看认证状态', '实名认证', {
|
|
|
+ confirmButtonText: '确定',
|
|
|
+ cancelButtonText: '取消',
|
|
|
+ customClass: 'myClass',
|
|
|
+ center: true
|
|
|
+ }).then(() => {
|
|
|
+ this.add();
|
|
|
+ this.$nextTick(() => {
|
|
|
+ setTimeout(() => {
|
|
|
+ if (this.userInfo.authStatus !== 'NOT_AUTH' && this.lists == false) {
|
|
|
+ this.add();
|
|
|
+ this.$router.push('/userauthentication');
|
|
|
+ }
|
|
|
+ }, 1000);
|
|
|
+ setTimeout(() => {
|
|
|
+ if (this.userInfo.authStatus !== 'NOT_AUTH' && this.lists == true) {
|
|
|
+ this.add();
|
|
|
+ this.$router.push('/enterpriseauthentication');
|
|
|
+ }
|
|
|
+ }, 1000);
|
|
|
+ });
|
|
|
+ });
|
|
|
+ } else if (this.userInfo.authStatus === 'NOT_AUTH') {
|
|
|
+ this.$confirm('您的账户还未实名认证,认证后可进行添加银行卡', '实名认证', {
|
|
|
+ confirmButtonText: '确定',
|
|
|
+ cancelButtonText: '取消',
|
|
|
+ customClass: 'myClass',
|
|
|
+ center: true
|
|
|
+ }).then(() => {
|
|
|
+ this.$router.push('/authentication');
|
|
|
+ });
|
|
|
+ }
|
|
|
},
|
|
|
add() {
|
|
|
this.$http
|
|
|
@@ -259,11 +303,10 @@ export default {
|
|
|
)
|
|
|
.then(res => {
|
|
|
this.lists = res.content[0].org;
|
|
|
- console.log(this.lists);
|
|
|
});
|
|
|
},
|
|
|
beforeAvatarUpload(file) {
|
|
|
- this.updateFile(file, 100).then(img => {
|
|
|
+ this.updateFile(file, 300).then(img => {
|
|
|
this.updateUser({ avatar: img }).then(res => {
|
|
|
// console.log(res);
|
|
|
});
|
|
|
@@ -277,11 +320,11 @@ export default {
|
|
|
});
|
|
|
},
|
|
|
tab(e) {
|
|
|
+ this.isFollow = false;
|
|
|
this.active = e;
|
|
|
if (e === '关注') {
|
|
|
this.$http.get('/user/myFollows').then(res => {
|
|
|
this.list = res;
|
|
|
- console.log(res);
|
|
|
this.$store.dispatch('getUserInfo');
|
|
|
if (this.list.length === 0) {
|
|
|
this.empty = true;
|
|
|
@@ -292,6 +335,7 @@ export default {
|
|
|
} else {
|
|
|
this.$http.get('/user/myFollowers').then(res => {
|
|
|
this.list = res;
|
|
|
+ this.isFollow = true;
|
|
|
this.$store.dispatch('getUserInfo');
|
|
|
if (this.list.length === 0) {
|
|
|
this.empty = true;
|
|
|
@@ -328,8 +372,6 @@ export default {
|
|
|
}, 1000);
|
|
|
});
|
|
|
}
|
|
|
- // ROLE_INSTITUTION 企业
|
|
|
- // ROLE_PERSONAL 个人
|
|
|
},
|
|
|
username() {
|
|
|
this.value = this.userInfo.nickname;
|
|
|
@@ -429,7 +471,9 @@ export default {
|
|
|
padding-top: 200px;
|
|
|
margin: 0 auto;
|
|
|
}
|
|
|
-
|
|
|
+ /deep/ .el-divider__text.is-right {
|
|
|
+ right: 307px;
|
|
|
+ }
|
|
|
/deep/ .el-empty__description {
|
|
|
color: #ccc;
|
|
|
margin-top: 10px;
|