|
|
@@ -90,6 +90,14 @@
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
|
|
|
+ <el-row :gutter="16">
|
|
|
+ <el-col :span="12">
|
|
|
+ <el-form-item label="会员价(元)">
|
|
|
+ <el-input-number v-model="form.memberPriceYuan" :min="0" :precision="2" :step="0.01" placeholder="留空等于普通价" style="width:100%" :disabled="readonly" />
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
+
|
|
|
<el-row :gutter="16">
|
|
|
<el-col :span="12">
|
|
|
<el-form-item label="开始时间" prop="startTime">
|
|
|
@@ -185,6 +193,7 @@ export default {
|
|
|
location: '',
|
|
|
maxParticipants: null,
|
|
|
priceYuan: null,
|
|
|
+ memberPriceYuan: null,
|
|
|
startTime: null,
|
|
|
endTime: null,
|
|
|
visibility: 'public',
|
|
|
@@ -303,6 +312,7 @@ export default {
|
|
|
location: d.location || '',
|
|
|
maxParticipants: d.maxParticipants || null,
|
|
|
priceYuan: d.price ? d.price / 100 : null,
|
|
|
+ memberPriceYuan: d.memberPrice && d.memberPrice > 0 ? d.memberPrice / 100 : null,
|
|
|
startTime: d.startTime || null,
|
|
|
endTime: d.endTime || null,
|
|
|
visibility: d.visibility || 'public',
|
|
|
@@ -371,6 +381,7 @@ export default {
|
|
|
location: this.form.location,
|
|
|
maxParticipants: this.form.maxParticipants,
|
|
|
price: this.form.priceYuan != null ? Math.round(this.form.priceYuan * 100) : 0,
|
|
|
+ memberPrice: this.form.memberPriceYuan != null && this.form.memberPriceYuan > 0 ? Math.round(this.form.memberPriceYuan * 100) : 0,
|
|
|
startTime: this.form.startTime,
|
|
|
endTime: this.form.endTime,
|
|
|
visibility: this.form.visibility,
|
|
|
@@ -420,6 +431,7 @@ export default {
|
|
|
location: '',
|
|
|
maxParticipants: null,
|
|
|
priceYuan: null,
|
|
|
+ memberPriceYuan: null,
|
|
|
startTime: null,
|
|
|
endTime: null,
|
|
|
visibility: 'public',
|
|
|
@@ -474,6 +486,7 @@ export default {
|
|
|
location: this.form.location,
|
|
|
maxParticipants: this.form.maxParticipants,
|
|
|
price: this.form.priceYuan != null ? Math.round(this.form.priceYuan * 100) : 0,
|
|
|
+ memberPrice: this.form.memberPriceYuan != null && this.form.memberPriceYuan > 0 ? Math.round(this.form.memberPriceYuan * 100) : 0,
|
|
|
startTime: this.form.startTime,
|
|
|
endTime: this.form.endTime,
|
|
|
visibility: this.form.visibility,
|