|
|
@@ -19,7 +19,7 @@
|
|
|
<img
|
|
|
v-else
|
|
|
class="choose-icon"
|
|
|
- :src="item.enabled ? (checked === item.key ? icons[1] : icons[0]) : icons[2]"
|
|
|
+ :src="checkEnabled(item) ? (checked === item.key ? icons[1] : icons[0]) : icons[2]"
|
|
|
alt=""
|
|
|
/>
|
|
|
</div>
|
|
|
@@ -89,10 +89,33 @@ export default {
|
|
|
methods: {
|
|
|
pick(item) {
|
|
|
if (item.show && item.enabled) {
|
|
|
- this.checked = item.key;
|
|
|
+ if (item.key === 'QUICK_BIND' && this.authStatus !== '已认证') {
|
|
|
+ this.$dialog
|
|
|
+ .confirm({
|
|
|
+ title: '实名认证',
|
|
|
+ message: '您的账户还未通过实名认证,认证后可进行添加银行卡',
|
|
|
+ confirmButtonText: '前往认证'
|
|
|
+ })
|
|
|
+ .then(() => {
|
|
|
+ if (this.authStatus === '认证中' || this.authStatus === '认证失败') {
|
|
|
+ this.$router.push('/' + this.$route.params.companyId + '/waiting');
|
|
|
+ } else if (this.authStatus === '未认证') {
|
|
|
+ this.$router.push('/' + this.$route.params.companyId + '/Authentication');
|
|
|
+ }
|
|
|
+ });
|
|
|
+ } else {
|
|
|
+ this.checked = item.key;
|
|
|
+ }
|
|
|
} else {
|
|
|
this.$toast('敬请期待');
|
|
|
}
|
|
|
+ },
|
|
|
+ checkEnabled(info) {
|
|
|
+ if (info.key === 'QUICK_BIND' && this.authStatus !== '已认证' && info.enabled) {
|
|
|
+ return false;
|
|
|
+ } else {
|
|
|
+ return info.enabled;
|
|
|
+ }
|
|
|
}
|
|
|
},
|
|
|
watch: {
|