|
@@ -6,6 +6,9 @@
|
|
|
</div>
|
|
</div>
|
|
|
<div>
|
|
<div>
|
|
|
<el-form label-position="top" ref="form" label-width="80px">
|
|
<el-form label-position="top" ref="form" label-width="80px">
|
|
|
|
|
+ <el-form-item style="margin-bottom: 0;" label="输入标题">
|
|
|
|
|
+ <el-input size="mini" @input="handleDate" v-model="content.value.rechargeTitle"></el-input>
|
|
|
|
|
+ </el-form-item>
|
|
|
<el-form-item style="margin-bottom: 0;">
|
|
<el-form-item style="margin-bottom: 0;">
|
|
|
<div class="text-setting">
|
|
<div class="text-setting">
|
|
|
<span>输入框提示文本</span>
|
|
<span>输入框提示文本</span>
|
|
@@ -36,6 +39,24 @@
|
|
|
<el-form-item style="margin-bottom: 0;" label="主题色">
|
|
<el-form-item style="margin-bottom: 0;" label="主题色">
|
|
|
<el-input type="color" @input="handleDate" v-model="content.value.mainColor"/>
|
|
<el-input type="color" @input="handleDate" v-model="content.value.mainColor"/>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
|
|
+
|
|
|
|
|
+ <div>
|
|
|
|
|
+ <el-card style="margin:10px;">
|
|
|
|
|
+ <div slot="header" class="clearfix">
|
|
|
|
|
+ <span>添加快捷充值</span>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <div class="fast-box">
|
|
|
|
|
+ <div class="fast-block" v-for="item,index in content.value.fastRechargeList">
|
|
|
|
|
+ <el-input size="mini" @input="handleDate" @blur="deleteFastItem(index)" v-model="content.value.fastRechargeList[index]"></el-input>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <div class="fast-block" style="visibility: hidden;" v-for="item in content.value.fastRechargeList.length%3>0?(3-(content.value.fastRechargeList).length%3):0"></div>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <div class="btnDiv">
|
|
|
|
|
+ <el-button size="mini" type="text" icon="el-icon-plus" @click="addFastItem()">添加
|
|
|
|
|
+ </el-button>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </el-card>
|
|
|
|
|
+ </div>
|
|
|
</el-form>
|
|
</el-form>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
@@ -51,6 +72,14 @@ export default {
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
|
|
|
+ addFastItem(){
|
|
|
|
|
+ this.content.value.fastRechargeList.push('100')
|
|
|
|
|
+ this.handleDate()
|
|
|
|
|
+ },
|
|
|
|
|
+ deleteFastItem(index){
|
|
|
|
|
+ this.content.value.fastRechargeList = this.content.value.fastRechargeList.filter(item=>{return item})
|
|
|
|
|
+ this.handleDate()
|
|
|
|
|
+ },
|
|
|
handleDate() {
|
|
handleDate() {
|
|
|
console.log('this.content',this.content)
|
|
console.log('this.content',this.content)
|
|
|
this.$emit('updataContent', this.content)
|
|
this.$emit('updataContent', this.content)
|
|
@@ -123,4 +152,17 @@ export default {
|
|
|
justify-content: space-between;
|
|
justify-content: space-between;
|
|
|
margin: 10px 0;
|
|
margin: 10px 0;
|
|
|
}
|
|
}
|
|
|
|
|
+.fast-box{
|
|
|
|
|
+ display: flex;
|
|
|
|
|
+ flex-wrap: wrap;
|
|
|
|
|
+ justify-content: space-between;
|
|
|
|
|
+}
|
|
|
|
|
+.fast-block{
|
|
|
|
|
+ width: 30%;
|
|
|
|
|
+ margin-bottom: 10px;
|
|
|
|
|
+}
|
|
|
|
|
+.btnDiv {
|
|
|
|
|
+ text-align: center;
|
|
|
|
|
+ margin-top: 5px;
|
|
|
|
|
+}
|
|
|
</style>
|
|
</style>
|