|
@@ -158,8 +158,8 @@
|
|
|
<el-form-item label="红包金额" prop="redPacketMoney">
|
|
<el-form-item label="红包金额" prop="redPacketMoney">
|
|
|
<el-input-number v-model="form.redPacketMoney" :min="0.1" :max="200" :step="0.1"></el-input-number>
|
|
<el-input-number v-model="form.redPacketMoney" :min="0.1" :max="200" :step="0.1"></el-input-number>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
- <!-- -->
|
|
|
|
|
- <el-form-item label="随机红包金额" v-if="!!form.randomRedPacketRulesArr" >
|
|
|
|
|
|
|
+ <!-- v-if="!!form.randomRedPacketRulesArr" -->
|
|
|
|
|
+ <el-form-item label="随机红包金额" >
|
|
|
<template >
|
|
<template >
|
|
|
<div v-for="(rule, index) in form.randomRedPacketRulesArr" :key="index" class="form-row">
|
|
<div v-for="(rule, index) in form.randomRedPacketRulesArr" :key="index" class="form-row">
|
|
|
<el-form-item
|
|
<el-form-item
|
|
@@ -896,6 +896,13 @@ export default {
|
|
|
if(!!this.form.randomRedPacketRules){
|
|
if(!!this.form.randomRedPacketRules){
|
|
|
this.$set(this.form, 'randomRedPacketRulesArr', JSON.parse(this.form.randomRedPacketRules)) ;
|
|
this.$set(this.form, 'randomRedPacketRulesArr', JSON.parse(this.form.randomRedPacketRules)) ;
|
|
|
// this.form.randomRedPacketRulesArr = JSON.parse(this.form.randomRedPacketRules);
|
|
// this.form.randomRedPacketRulesArr = JSON.parse(this.form.randomRedPacketRules);
|
|
|
|
|
+ }else{
|
|
|
|
|
+ //处理初始值
|
|
|
|
|
+ this.form.randomRedPacketRulesArr = [{
|
|
|
|
|
+ minAmount: 0.01,
|
|
|
|
|
+ maxAmount: 0.01,
|
|
|
|
|
+ weight: 100,
|
|
|
|
|
+ }]
|
|
|
}
|
|
}
|
|
|
if (response.data.videoUrl != null && response.data.videoUrl !== '') {
|
|
if (response.data.videoUrl != null && response.data.videoUrl !== '') {
|
|
|
this.videoUrl = response.data.videoUrl;
|
|
this.videoUrl = response.data.videoUrl;
|