|
@@ -56,7 +56,7 @@
|
|
|
QQ/微信
|
|
|
</el-col>
|
|
|
<el-col :span="16" class="otherInfo textOver">
|
|
|
- {{ detailInfo.qqwx || '暂无' }}
|
|
|
+ {{ getphone(detailInfo.qqwx) || '暂无' }}
|
|
|
</el-col>
|
|
|
</el-col>
|
|
|
<el-col :span="12">
|
|
@@ -190,6 +190,22 @@ export default {
|
|
|
onSubmit() {
|
|
|
this.$emit('onSubmit', { data: this.detailInfo });
|
|
|
},
|
|
|
+ // 隐藏手机号
|
|
|
+ getphone(value) {
|
|
|
+ console.log(value);
|
|
|
+ if (value == undefined) {
|
|
|
+ return '暂无';
|
|
|
+ } else {
|
|
|
+ console.log(value.length);
|
|
|
+ if (value.length === 11 || value.length === 12) {
|
|
|
+ let start = value.slice(0, 4);
|
|
|
+ let end = value.slice(-3);
|
|
|
+ return `${start}****${end}`;
|
|
|
+ } else {
|
|
|
+ return value;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
},
|
|
|
computed: {
|
|
|
...mapState(['user']),
|