27610
This commit is contained in:
@@ -86,7 +86,7 @@ export default {
|
|||||||
this.getList()
|
this.getList()
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
onshow() {
|
onShow() {
|
||||||
uni.$on('updateList', () => {
|
uni.$on('updateList', () => {
|
||||||
this.current = 1
|
this.current = 1
|
||||||
this.getList()
|
this.getList()
|
||||||
|
|||||||
@@ -76,8 +76,6 @@ export default {
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
onShow() {},
|
onShow() {},
|
||||||
|
|
||||||
mounted() {},
|
|
||||||
methods: {
|
methods: {
|
||||||
submit() {
|
submit() {
|
||||||
if (this.flag) return
|
if (this.flag) return
|
||||||
@@ -119,7 +117,6 @@ export default {
|
|||||||
})
|
})
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
if (res.code == 0) {
|
if (res.code == 0) {
|
||||||
this.flag = false
|
|
||||||
this.$u.toast('提交成功')
|
this.$u.toast('提交成功')
|
||||||
uni.$emit('updateList')
|
uni.$emit('updateList')
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
@@ -128,10 +125,8 @@ export default {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
.catch(() => {
|
.catch(() => {
|
||||||
this.$u.toast('提交失败')
|
|
||||||
})
|
|
||||||
.finally(() => {
|
|
||||||
this.flag = false
|
this.flag = false
|
||||||
|
this.$u.toast('提交失败')
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user