店铺入驻bug修改

This commit is contained in:
mabo
2021-05-17 15:38:31 +08:00
parent 25690e86e7
commit a4f2fc1381
8 changed files with 48 additions and 45 deletions

View File

@@ -245,6 +245,7 @@ export default {
this.$Message.success('验证码发送成功');
let that = this;
this.interval = setInterval(() => {
console.log(that.time);
that.time--;
if (that.time === 0) {
that.time = 60;

View File

@@ -193,9 +193,7 @@ export default {
components: { region },
props: {
content: {
default () {
return {};
},
default: {},
type: Object
}
},
@@ -325,11 +323,13 @@ export default {
},
mounted () {
this.accessToken.accessToken = storage.getItem('accessToken');
this.form = JSON.parse(JSON.stringify(this.content));
if (this.form.licencePhoto) {
this.form.legalPhoto = this.content.legalPhoto.split(',');
this.form.licencePhoto = this.content.licencePhoto.split(',');
this.address = this.form.addressIdPath;
if (Object.keys(this.content).length) {
this.form = JSON.parse(JSON.stringify(this.content));
if (this.form.licencePhoto) {
this.form.legalPhoto = this.content.legalPhoto.split(',');
this.form.licencePhoto = this.content.licencePhoto.split(',');
this.address = this.form.addressIdPath;
}
}
}
};