|
@@ -212,17 +212,23 @@ export default {
|
|
|
if (this.display == '2') {
|
|
|
const res = await this.newfetch(this.id);
|
|
|
this.$set(this, `detailInfo`, res.data);
|
|
|
- }
|
|
|
- // else if (this.dispaly == '1') {
|
|
|
- // const res = await this.newquery(this.id);
|
|
|
- // console.log(res.data);
|
|
|
- // this.$set(this, `detailInfo`, res.data);
|
|
|
- // }
|
|
|
- else if (this.dispaly == '3') {
|
|
|
+ } else if (this.dispaly == '3') {
|
|
|
const res = await this.fetch(this.id);
|
|
|
+ res.data.phone = this.phoneNumFilter(res.data.phone);
|
|
|
+ res.data.cardnumber = this.cardnumberNumFilter(res.data.cardnumber);
|
|
|
this.$set(this, `zhuanjiainfo`, res.data);
|
|
|
}
|
|
|
},
|
|
|
+ phoneNumFilter(phone) {
|
|
|
+ let start = phone.slice(0, 3);
|
|
|
+ let end = phone.slice(-4);
|
|
|
+ return `${start}****${end}`;
|
|
|
+ },
|
|
|
+ cardnumberNumFilter(cardnumber) {
|
|
|
+ let start = cardnumber.slice(0, 4);
|
|
|
+ let end = cardnumber.slice(-3);
|
|
|
+ return `${start}****${end}`;
|
|
|
+ },
|
|
|
async clickfuwu(id) {
|
|
|
this.display = '2';
|
|
|
const res = await this.newfetch(id);
|
|
@@ -231,6 +237,8 @@ export default {
|
|
|
async clickzhuanjia(id) {
|
|
|
this.display = '3';
|
|
|
const res = await this.fetch(id);
|
|
|
+ res.data.phone = this.phoneNumFilter(res.data.phone);
|
|
|
+ res.data.cardnumber = this.cardnumberNumFilter(res.data.cardnumber);
|
|
|
this.$set(this, `zhuanjiainfo`, res.data);
|
|
|
},
|
|
|
fabu() {
|