|
|
@ -32,7 +32,6 @@ export default { |
|
|
this.params.isStrongFlavour = 0; |
|
|
this.params.isStrongFlavour = 0; |
|
|
this.params.isMoreOil = 0; |
|
|
this.params.isMoreOil = 0; |
|
|
|
|
|
|
|
|
console.log('info: ', info); |
|
|
|
|
|
// 赋值 |
|
|
// 赋值 |
|
|
this.params[info.label] = info.value; |
|
|
this.params[info.label] = info.value; |
|
|
|
|
|
|
|
|
@ -98,7 +97,6 @@ export default { |
|
|
async submit() { |
|
|
async submit() { |
|
|
try { |
|
|
try { |
|
|
const params = this.params; |
|
|
const params = this.params; |
|
|
console.log('params: ', params); |
|
|
|
|
|
if (!this.validationRequired(params)) return; |
|
|
if (!this.validationRequired(params)) return; |
|
|
await this.$u.api.addTrainee(params); |
|
|
await this.$u.api.addTrainee(params); |
|
|
if (this.isApplying) { |
|
|
if (this.isApplying) { |
|
|
@ -117,6 +115,7 @@ export default { |
|
|
setTimeout(() => { |
|
|
setTimeout(() => { |
|
|
uni.redirectTo({ url: '/pages/index/index' }); |
|
|
uni.redirectTo({ url: '/pages/index/index' }); |
|
|
this.setEmptyInfo(); |
|
|
this.setEmptyInfo(); |
|
|
|
|
|
this.$t.storage.setStorageSync('infoList', null); |
|
|
}, 2000); |
|
|
}, 2000); |
|
|
} |
|
|
} |
|
|
} catch (error) { |
|
|
} catch (error) { |
|
|
|