Commit 7a93ee6c by sunerhu

1.修改申请加盟缓存不刷新问题

parent 4cba4696
......@@ -171,6 +171,13 @@
if (options.shareId) {
this.shareId = options.shareId
uni.setStorageSync('applyId', '')
uni.removeStorageSync('workform')
uni.removeStorageSync('cardForm')
uni.removeStorageSync('educationForm')
uni.removeStorageSync('backForm')
uni.removeStorageSync('personalForm')
uni.removeStorageSync('contractForm')
uni.removeStorageSync('picList')
} else {
this.cffp_userInfo = uni.getStorageSync('cffp_userInfo');
if (this.cffp_userInfo) {
......
......@@ -118,7 +118,6 @@
// this.queryById(null, uni.getStorageSync('cffp_userId'))
// }
uni.$on("ckqueryById", res => {
console.log('接受到了广播没')
if (res == true) {
this.queryById(null, uni.getStorageSync('cffp_userId'))
}
......@@ -176,10 +175,12 @@
})
},
upLoadPhoto(event) {
uni.setStorageSync('educationForm',this.educationForm)
if (this.educationForm.approvalStatus == 0 || this.educationForm.approvalStatus == 2) {
this.dataForm.targetId = this.educationForm.id
CommonUpload(this.dataForm).then(res => {
this.educationForm.lastGraduateCertificationOssPath = res.data.filePath;
uni.setStorageSync('educationForm',this.educationForm)
});
}
},
......
......@@ -106,7 +106,6 @@
// this.queryById(null, uni.getStorageSync('cffp_userId'))
// }
uni.$on("ckqueryById", res => {
console.log('接受到了广播没')
if (res == true) {
this.queryById(null, uni.getStorageSync('cffp_userId'))
}
......@@ -156,6 +155,7 @@
if (type == 'back') {
this.cardForm.idBackPageOssPath = res.data.filePath;
}
uni.setStorageSync('cardForm',this.cardForm)
console.log(this.cardForm.idBackPageOssPath, 151515)
})
}
......
......@@ -149,6 +149,7 @@
onShow() {
if (uni.getStorageSync('workform')) {
this.workform = uni.getStorageSync('workform')
this.picList = uni.getStorageSync('picList')?uni.getStorageSync('picList') :[];
}
// if(uni.getStorageSync('Refresh_query')){
// this.queryById(null, uni.getStorageSync('cffp_userId'))
......@@ -194,10 +195,12 @@
},
upLoadPhoto(event) {
this.dataForm.targetId = this.workform.id
uni.setStorageSync('workform', this.workform);
CommonUpload(this.dataForm).then(res => {
console.log(res, 1145)
this.workform.certificate = res.data.filePath;
this.picList.push(this.workform.certificate);
console.log(this.workform, 1111)
uni.setStorageSync('picList', this.picList);
});
},
saveInfo() {
......@@ -258,7 +261,6 @@
}).then((res) => {
if (res['success']) {
this.applyParam = res['data']['data'];
console.log(this.applyParam.approvalStatus, '执行了把1')
if (uni.getStorageSync('workform')) {
this.workform = uni.getStorageSync('workform')
} else {
......@@ -271,7 +273,6 @@
}
this.workform.approvalStatus = this.applyParam.approvalStatus;
uni.setStorageSync('workform', this.workform)
console.log(this.workform.approvalStatus, '执行了把2')
this.workform.id = this.applyParam.id
if (this.applyParam.certificate) {
this.picList = this.applyParam.certificate.split(',');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment