@@ -88,12 +88,15 @@
})
},
setPrice() {
- if (!this.form.riseAmount) {
- this.$msg('请先输入比例或者金额!')
+ if (Number(this.form.riseAmount)<=0) {
+ this.$msg('请填写金额或比例')
return false
}
updateRise(this.form).then(res => {
- this.$msg('更新成功!')
+ this.$msg('已更新')
+ setTimeout(function(){
+ uni.navigateBack()
+ },1000)