|
@@ -45,6 +45,9 @@
|
|
|
</div>
|
|
</div>
|
|
|
<div class="userContent" v-if="active === '关注' || active === '粉丝'">
|
|
<div class="userContent" v-if="active === '关注' || active === '粉丝'">
|
|
|
<div class="borderUser"></div>
|
|
<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>
|
|
<el-empty v-if="empty" description="还没有用户哦~"></el-empty>
|
|
|
<div v-for="item in list" :key="item.id">
|
|
<div v-for="item in list" :key="item.id">
|
|
|
<div class="boxFollow">
|
|
<div class="boxFollow">
|
|
@@ -175,16 +178,16 @@
|
|
|
</div>
|
|
</div>
|
|
|
<div class="text4" @click="Auths">{{ Status }}</div>
|
|
<div class="text4" @click="Auths">{{ Status }}</div>
|
|
|
</div>
|
|
</div>
|
|
|
- <!-- <div class="box">
|
|
|
|
|
|
|
+ <div class="box">
|
|
|
<div class="text">
|
|
<div class="text">
|
|
|
<div class="text1">
|
|
<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>
|
|
|
<div class="text2">银行卡</div>
|
|
<div class="text2">银行卡</div>
|
|
|
<div class="text3">已添加银行卡信息</div>
|
|
<div class="text3">已添加银行卡信息</div>
|
|
|
</div>
|
|
</div>
|
|
|
<div class="text4" @click="ipcFn">查看</div>
|
|
<div class="text4" @click="ipcFn">查看</div>
|
|
|
- </div> -->
|
|
|
|
|
|
|
+ </div>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
</template>
|
|
</template>
|
|
@@ -236,10 +239,51 @@ export default {
|
|
|
setTimeout(() => {
|
|
setTimeout(() => {
|
|
|
this.add();
|
|
this.add();
|
|
|
}, 1000);
|
|
}, 1000);
|
|
|
|
|
+ this.$http
|
|
|
|
|
+ .get('user/myBankCard', {
|
|
|
|
|
+ userId: this.userInfo.id
|
|
|
|
|
+ })
|
|
|
|
|
+ .then(res => {
|
|
|
|
|
+ console.log(res);
|
|
|
|
|
+ });
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
|
ipcFn() {
|
|
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() {
|
|
add() {
|
|
|
this.$http
|
|
this.$http
|
|
@@ -281,7 +325,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);
|
|
|
|
|
|
|
+ // 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;
|
|
@@ -328,8 +372,6 @@ export default {
|
|
|
}, 1000);
|
|
}, 1000);
|
|
|
});
|
|
});
|
|
|
}
|
|
}
|
|
|
- // ROLE_INSTITUTION 企业
|
|
|
|
|
- // ROLE_PERSONAL 个人
|
|
|
|
|
},
|
|
},
|
|
|
username() {
|
|
username() {
|
|
|
this.value = this.userInfo.nickname;
|
|
this.value = this.userInfo.nickname;
|
|
@@ -429,7 +471,9 @@ export default {
|
|
|
padding-top: 200px;
|
|
padding-top: 200px;
|
|
|
margin: 0 auto;
|
|
margin: 0 auto;
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
|
|
+ /deep/ .el-divider__text.is-right {
|
|
|
|
|
+ right: 307px;
|
|
|
|
|
+ }
|
|
|
/deep/ .el-empty__description {
|
|
/deep/ .el-empty__description {
|
|
|
color: #ccc;
|
|
color: #ccc;
|
|
|
margin-top: 10px;
|
|
margin-top: 10px;
|