|
|
@@ -233,8 +233,8 @@
|
|
|
return Promise.reject(response.data)
|
|
|
}
|
|
|
}).catch(err => {
|
|
|
- // console.log(err)
|
|
|
- this.$message.error(err.errMsg)
|
|
|
+ console.log(err)
|
|
|
+ // this.$message.error(err.errMsg)
|
|
|
})
|
|
|
}
|
|
|
}
|
|
|
@@ -427,11 +427,6 @@
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
- computed: {
|
|
|
- logged () {
|
|
|
- return this.$store.state.option.isLogin.data.content
|
|
|
- }
|
|
|
- },
|
|
|
mounted () {
|
|
|
// 获取城市地址
|
|
|
this.$http.get('/data/city.json').then(response => {
|
|
|
@@ -494,17 +489,23 @@
|
|
|
this.$http.post('/api/userspace/upload', param, config)
|
|
|
.then(response => {
|
|
|
this.isShowLoading = false
|
|
|
- let path = response.data.content
|
|
|
- if (path.slice(path.lastIndexOf('.')).toLowerCase() === '.pdf') {
|
|
|
- this.isPdf = true
|
|
|
+ if (response.data.success) {
|
|
|
+ let path = response.data.content
|
|
|
+ if (path.slice(path.lastIndexOf('.')).toLowerCase() === '.pdf') {
|
|
|
+ this.isPdf = true
|
|
|
+ } else {
|
|
|
+ this.isPdf = false
|
|
|
+ }
|
|
|
+ this.changeManager.businessCodeImage = response.data.content
|
|
|
+ this.uploadFileChecked = true
|
|
|
} else {
|
|
|
- this.isPdf = false
|
|
|
+ this.uploadFileChecked = false
|
|
|
+ return Promise.reject(response.data)
|
|
|
}
|
|
|
- this.changeManager.businessCodeImage = response.data.content
|
|
|
- this.uploadFileChecked = true
|
|
|
- }, err => {
|
|
|
- this.isShowLoading = false
|
|
|
+ }).catch(err => {
|
|
|
console.log(err)
|
|
|
+ // this.$message.error(err.errMsg)
|
|
|
+ this.isShowLoading = false
|
|
|
this.uploadFileChecked = false
|
|
|
})
|
|
|
}
|
|
|
@@ -584,8 +585,9 @@
|
|
|
let config = {
|
|
|
headers: {'Content-Type': 'multipart/form-data'}
|
|
|
}
|
|
|
- this.$http.post('/appeal/resetPwd', param, config)
|
|
|
+ this.$http.post('/appeal/changeAdmin', param, config)
|
|
|
.then(response => {
|
|
|
+ this.isShowLoading = false
|
|
|
if (response.data.success) {
|
|
|
this.goNextStep = false
|
|
|
} else {
|
|
|
@@ -595,8 +597,8 @@
|
|
|
}).catch(err => {
|
|
|
this.$message.error(err.errMsg)
|
|
|
this.isShowLoading = false
|
|
|
- this.codeErrorChecked = true
|
|
|
- this.codeChecked = false
|
|
|
+ // this.codeErrorChecked = true
|
|
|
+ // this.codeChecked = false
|
|
|
this.account_time = 0
|
|
|
})
|
|
|
}
|