Browse Source

砍价操作优化

master
1304317391@qq.com 2 years ago
parent
commit
63c39e1359
  1. 11
      src/views/bxg/activity/bargain/form.vue

11
src/views/bxg/activity/bargain/form.vue

@ -57,13 +57,13 @@
<el-form-item label="限购">
<el-input-number v-model="form.num" />
</el-form-item>
<el-form-item label="单次砍最高价">
<!-- <el-form-item label="单次砍最高价">
<el-input-number v-model="form.bargainMaxPrice" />
</el-form-item>
<el-form-item label="单次砍最低价">
<el-input-number v-model="form.bargainMinPrice" />
</el-form-item>
<el-form-item label="用户每次砍价次数">
</el-form-item> -->
<el-form-item label="用户砍价次数">
<el-input-number v-model="form.bargainNum" />
</el-form-item>
<el-form-item label="砍价状态">
@ -246,6 +246,9 @@ export default {
} else this.doEdit()
},
doAdd() {
//
this.form.bargainMinPrice=0.01 //
this.form.bargainMaxPrice=this.form.price-this.form.minPrice //
add(this.form).then(res => {
if (res.status==500){
this.loading = false
@ -266,6 +269,8 @@ export default {
})
},
doEdit() {
this.form.bargainMinPrice=0.01 //
this.form.bargainMaxPrice=this.form.price-this.form.minPrice //
edit(this.form).then(res => {
this.resetForm()
this.$notify({

Loading…
Cancel
Save