shish 11 months ago
parent
commit
08f68e1172
1 changed files with 6 additions and 3 deletions
  1. 6 3
      hdApp/src/admin/goods/price-increase.vue

+ 6 - 3
hdApp/src/admin/goods/price-increase.vue

@@ -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)
 				})
 			},