Commit 7a93ee6c by sunerhu

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

parent 4cba4696
...@@ -171,6 +171,13 @@ ...@@ -171,6 +171,13 @@
if (options.shareId) { if (options.shareId) {
this.shareId = options.shareId this.shareId = options.shareId
uni.setStorageSync('applyId', '') 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 { } else {
this.cffp_userInfo = uni.getStorageSync('cffp_userInfo'); this.cffp_userInfo = uni.getStorageSync('cffp_userInfo');
if (this.cffp_userInfo) { if (this.cffp_userInfo) {
......
...@@ -118,7 +118,6 @@ ...@@ -118,7 +118,6 @@
// this.queryById(null, uni.getStorageSync('cffp_userId')) // this.queryById(null, uni.getStorageSync('cffp_userId'))
// } // }
uni.$on("ckqueryById", res => { uni.$on("ckqueryById", res => {
console.log('接受到了广播没')
if (res == true) { if (res == true) {
this.queryById(null, uni.getStorageSync('cffp_userId')) this.queryById(null, uni.getStorageSync('cffp_userId'))
} }
...@@ -176,10 +175,12 @@ ...@@ -176,10 +175,12 @@
}) })
}, },
upLoadPhoto(event) { upLoadPhoto(event) {
uni.setStorageSync('educationForm',this.educationForm)
if (this.educationForm.approvalStatus == 0 || this.educationForm.approvalStatus == 2) { if (this.educationForm.approvalStatus == 0 || this.educationForm.approvalStatus == 2) {
this.dataForm.targetId = this.educationForm.id this.dataForm.targetId = this.educationForm.id
CommonUpload(this.dataForm).then(res => { CommonUpload(this.dataForm).then(res => {
this.educationForm.lastGraduateCertificationOssPath = res.data.filePath; this.educationForm.lastGraduateCertificationOssPath = res.data.filePath;
uni.setStorageSync('educationForm',this.educationForm)
}); });
} }
}, },
......
...@@ -106,7 +106,6 @@ ...@@ -106,7 +106,6 @@
// this.queryById(null, uni.getStorageSync('cffp_userId')) // this.queryById(null, uni.getStorageSync('cffp_userId'))
// } // }
uni.$on("ckqueryById", res => { uni.$on("ckqueryById", res => {
console.log('接受到了广播没')
if (res == true) { if (res == true) {
this.queryById(null, uni.getStorageSync('cffp_userId')) this.queryById(null, uni.getStorageSync('cffp_userId'))
} }
...@@ -156,6 +155,7 @@ ...@@ -156,6 +155,7 @@
if (type == 'back') { if (type == 'back') {
this.cardForm.idBackPageOssPath = res.data.filePath; this.cardForm.idBackPageOssPath = res.data.filePath;
} }
uni.setStorageSync('cardForm',this.cardForm)
console.log(this.cardForm.idBackPageOssPath, 151515) console.log(this.cardForm.idBackPageOssPath, 151515)
}) })
} }
......
...@@ -149,6 +149,7 @@ ...@@ -149,6 +149,7 @@
onShow() { onShow() {
if (uni.getStorageSync('workform')) { if (uni.getStorageSync('workform')) {
this.workform = uni.getStorageSync('workform') this.workform = uni.getStorageSync('workform')
this.picList = uni.getStorageSync('picList')?uni.getStorageSync('picList') :[];
} }
// if(uni.getStorageSync('Refresh_query')){ // if(uni.getStorageSync('Refresh_query')){
// this.queryById(null, uni.getStorageSync('cffp_userId')) // this.queryById(null, uni.getStorageSync('cffp_userId'))
...@@ -194,10 +195,12 @@ ...@@ -194,10 +195,12 @@
}, },
upLoadPhoto(event) { upLoadPhoto(event) {
this.dataForm.targetId = this.workform.id this.dataForm.targetId = this.workform.id
uni.setStorageSync('workform', this.workform);
CommonUpload(this.dataForm).then(res => { CommonUpload(this.dataForm).then(res => {
console.log(res, 1145)
this.workform.certificate = res.data.filePath; this.workform.certificate = res.data.filePath;
this.picList.push(this.workform.certificate); this.picList.push(this.workform.certificate);
console.log(this.workform, 1111)
uni.setStorageSync('picList', this.picList);
}); });
}, },
saveInfo() { saveInfo() {
...@@ -258,7 +261,6 @@ ...@@ -258,7 +261,6 @@
}).then((res) => { }).then((res) => {
if (res['success']) { if (res['success']) {
this.applyParam = res['data']['data']; this.applyParam = res['data']['data'];
console.log(this.applyParam.approvalStatus, '执行了把1')
if (uni.getStorageSync('workform')) { if (uni.getStorageSync('workform')) {
this.workform = uni.getStorageSync('workform') this.workform = uni.getStorageSync('workform')
} else { } else {
...@@ -271,7 +273,6 @@ ...@@ -271,7 +273,6 @@
} }
this.workform.approvalStatus = this.applyParam.approvalStatus; this.workform.approvalStatus = this.applyParam.approvalStatus;
uni.setStorageSync('workform', this.workform) uni.setStorageSync('workform', this.workform)
console.log(this.workform.approvalStatus, '执行了把2')
this.workform.id = this.applyParam.id this.workform.id = this.applyParam.id
if (this.applyParam.certificate) { if (this.applyParam.certificate) {
this.picList = this.applyParam.certificate.split(','); 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