This commit is contained in:
shijingjing
2022-04-29 21:38:19 +08:00
parent 11e144aca4
commit 5c6fba6949
2 changed files with 8 additions and 6 deletions

View File

@@ -677,7 +677,7 @@ export default {
girdId: this.user.girdId, girdId: this.user.girdId,
}).then(res => { }).then(res => {
if (res.code == 0) { if (res.code == 0) {
this.$u.toast(this.$route.query.id ? '保存成功' : '提交成功') this.$u.toast(this.form.id ? '保存成功' : '提交成功')
uni.$emit('reload') uni.$emit('reload')
setTimeout(() => { setTimeout(() => {
if (this.$route.query.id) { if (this.$route.query.id) {
@@ -687,7 +687,7 @@ export default {
} else { } else {
uni.navigateTo({url: './serviceResult'}) uni.navigateTo({url: './serviceResult'})
} }
}) }, 600)
} }
}).catch((err) => { }).catch((err) => {
this.$u.toast(err) this.$u.toast(err)
@@ -738,7 +738,7 @@ export default {
}, },
isGirdUser() { isGirdUser() {
this.$http.post('/app/appgirdmemberinfo/checkLogOnUser').then((res) => { this.$http.post('/app/appgirdmemberinfo/checkLogOnUser').then((res) => {
if (res.code == 0) { if (res?.data) {
this.girdInfo = res.data this.girdInfo = res.data
} }
}) })

View File

@@ -627,9 +627,11 @@ export default {
if (res.code == 0) { if (res.code == 0) {
this.$u.toast('保存成功') this.$u.toast('保存成功')
uni.$emit('reload') uni.$emit('reload')
uni.navigateBack({ setTimeout(() => {
delta: 2 uni.navigateBack({
}) delta: 2
})
},600)
} }
}).catch((err) => { }).catch((err) => {
this.$u.toast(err) this.$u.toast(err)