Commit 94eadf67 authored by lixy's avatar lixy

提现规则设置

parent ea7e89a3
...@@ -37,7 +37,7 @@ ...@@ -37,7 +37,7 @@
</div> </div>
</el-popover> </el-popover>
<el-button type="danger" size="small" v-popover:popover5>删除</el-button> <el-button type="danger" v-if="scope.row.type!=88" size="small" v-popover:popover5>删除</el-button>
<!--<el-button size="small" type="danger" @click="deleteHandler(scope.row)">删除--> <!--<el-button size="small" type="danger" @click="deleteHandler(scope.row)">删除-->
<!--</el-button>--> <!--</el-button>-->
</template> </template>
...@@ -57,6 +57,23 @@ ...@@ -57,6 +57,23 @@
<el-form-item label="标识" prop="type"> <el-form-item label="标识" prop="type">
<el-input type="number" v-model.number="dialogFrom.type" placeholder="1,2,3……"></el-input> <el-input type="number" v-model.number="dialogFrom.type" placeholder="1,2,3……"></el-input>
</el-form-item> </el-form-item>
<el-row v-if="dialogFrom.type==88">
<el-col :span="12">
<el-form-item label="提现金额" prop="amount">
<el-input v-model="dialogFrom.amount" placeholder="请输入提现金额" ></el-input>
<span style="color:#bfcbd9;">钱包余额,最低提现额度,达到此金额后才能提现</span>
</el-form-item>
</el-col>
</el-row>
<el-row v-if="dialogFrom.type==88" >
<el-col :span="12">
<el-form-item label="提现手续费" prop="proceduReates">
<el-input v-model="dialogFrom.proceduReates" placeholder="请输入提现手续费" ></el-input>
<span style="color:#bfcbd9;">提现收取的手续费</span>
</el-form-item>
</el-col>
</el-row>
<el-tabs v-model="activeName2" type="card"> <el-tabs v-model="activeName2" type="card">
<el-tab-pane label="详情" name="first"> <el-tab-pane label="详情" name="first">
<!--<Editor v-if="activeName2=='first'" @input="handelContentIncrease" :value="form.content" :myQuillEditor="'myQuillEditorContent'" :activeName2="activeName2"></Editor>--> <!--<Editor v-if="activeName2=='first'" @input="handelContentIncrease" :value="form.content" :myQuillEditor="'myQuillEditorContent'" :activeName2="activeName2"></Editor>-->
...@@ -160,7 +177,9 @@ ...@@ -160,7 +177,9 @@
dialogFrom:{ dialogFrom:{
title: "", title: "",
type: undefined, type: undefined,
value:"" value:"",
amount: 100,
proceduReates:0.001
}, },
rules: { rules: {
title: { title: {
...@@ -173,6 +192,14 @@ ...@@ -173,6 +192,14 @@
required: true, required: true,
message: '请输入数字标识', message: '请输入数字标识',
}, },
proceduReates: {
required: true,
message: '请输入提现手续费',
},
amount: {
required: true,
message: '请输入最低提现金额',
}
}, },
list: null, list: null,
total: null, total: null,
...@@ -196,6 +223,7 @@ ...@@ -196,6 +223,7 @@
handleCreate() { handleCreate() {
this.cleanDialogFrom(); this.cleanDialogFrom();
this.modalTitle = '创建'; this.modalTitle = '创建';
this.activeName2 = "first";
this.dialogVisible = true; this.dialogVisible = true;
}, },
/** /**
...@@ -254,7 +282,9 @@ ...@@ -254,7 +282,9 @@
this.dialogFrom = { this.dialogFrom = {
title: "", title: "",
type: undefined, type: undefined,
value:"" value:"",
amount: 100,
proceduReates:0.001
}; };
this.activeName2 = ""; this.activeName2 = "";
}, },
...@@ -277,10 +307,17 @@ ...@@ -277,10 +307,17 @@
if (!this.$utils.isEmpty(response.data.rows) && this.$utils.isInteger(response.data.total)) { if (!this.$utils.isEmpty(response.data.rows) && this.$utils.isInteger(response.data.total)) {
response.data.rows.map(function(item){ response.data.rows.map(function(item){
item.visible2 = false; item.visible2 = false;
if(item.type == 88){
//提现规则
item.params = JSON.parse(item.params);
item.amount = item.params.amount;
item.proceduReates = item.params.proceduReates;
}
}); });
listRs = response.data.rows; listRs = response.data.rows;
totalCountRs = response.data.total; totalCountRs = response.data.total;
} }debugger
// "{"amount":"11","proceduReates":"0.02"}"
this.listLoading = false; this.listLoading = false;
this.list = listRs; this.list = listRs;
this.total = totalCountRs; this.total = totalCountRs;
...@@ -295,8 +332,17 @@ ...@@ -295,8 +332,17 @@
let params = { let params = {
title: this.dialogFrom.title, title: this.dialogFrom.title,
type: this.dialogFrom.type, type: this.dialogFrom.type,
value: this.dialogFrom.value value: this.dialogFrom.value,
}; };
if(this.dialogFrom.type == 88){
//提现规则
let p = {
amount: this.dialogFrom.amount,
proceduReates:this.dialogFrom.proceduReates
};
params.params = JSON.stringify(p);
}
addGeneral(params).then(response => { addGeneral(params).then(response => {
if (response.status === 200) { if (response.status === 200) {
this.cleanDialogFrom(); this.cleanDialogFrom();
...@@ -334,6 +380,14 @@ ...@@ -334,6 +380,14 @@
type: this.dialogFrom.type, type: this.dialogFrom.type,
value: this.dialogFrom.value value: this.dialogFrom.value
}; };
if(this.dialogFrom.type == 88){
//提现规则
let p = {
amount: this.dialogFrom.amount,
proceduReates:this.dialogFrom.proceduReates
};
params.params = JSON.stringify(p);
}
editGeneral(params).then(response => { editGeneral(params).then(response => {
if (response.status === 200) { if (response.status === 200) {
this.cleanDialogFrom(); this.cleanDialogFrom();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment