Commit febe0a92 by wuwx

修改loading显示

1 parent 01f4b519
......@@ -771,7 +771,6 @@ export default {
handleConfirm() {
this.validateRules()
this.loading = true
this.$refs.editFormRef.$refs[this.editChildRef].validate((valid, errorObj) => {
var merchantval = true
var merchantErrorObj = []
......@@ -808,6 +807,7 @@ export default {
method = 'createCouponApi' //后台创建优惠券
}
console.log(params)
this.loading = true
this.$apis.couponManage[method](params).then(res => {
this.$message({
message: res.code == '0' ? '操作成功' : res.message,
......
......@@ -544,7 +544,6 @@ export default {
handleConfirm() {
this.validateRules()
this.loading = true
this.$refs.editFormRef.$refs[this.editChildRef].validate((valid, errorObj) => {
var merchantval = true
var merchantErrorObj = []
......@@ -567,6 +566,7 @@ export default {
} else {
method = 'createCouponApi' //后台创建优惠券
}
this.loading = true
this.$apis.couponManage[method](params).then(res => {
this.$message({
message: res.code == '0' ? '操作成功' : res.message,
......
......@@ -435,7 +435,6 @@ export default {
handleConfirm() {
this.validateRules()
this.loading = true
this.$refs.editFormRef.$refs[this.editChildRef].validate((valid, errorObj) => {
var merchantval = true
var merchantErrorObj = []
......@@ -458,6 +457,7 @@ export default {
} else {
method = 'createCouponApi' //后台创建优惠券
}
this.loading = true
this.$apis.couponManage[method](params).then(res => {
this.$message({
message: res.code == '0' ? '操作成功' : res.message,
......
......@@ -432,7 +432,6 @@ export default {
},
//创建服务
createService() {
this.sloading = true
let params = {
effectiveDays: '',
useAmount: '',
......@@ -494,6 +493,7 @@ export default {
params.discountType = 7
params.merchantId = this.merchantId
params.merchantName = this.merchantName
this.sloading = true
createService(params)
.then(res => {
if (res.code == 0) {
......@@ -513,7 +513,6 @@ export default {
},
//更新服务
updateService() {
this.sloading = true
let param = {}
param.anticipatedCost = this.ruleForm.anticipatedCost * 100
param.discountType = 7
......@@ -522,6 +521,7 @@ export default {
param.couponId = this.$route.query.couponId
param.stock = this.ruleForm.stock
param.useDescription = this.ruleForm.useDescription
this.sloading = true
updateService(param)
.then(res => {
if (res.code == 0) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!