Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
cloud-platform-ui
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
youjj
cloud-platform-ui
Commits
94eadf67
Commit
94eadf67
authored
Jul 19, 2019
by
lixy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提现规则设置
parent
ea7e89a3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
59 additions
and
5 deletions
+59
-5
generalSetting.vue
src/views/baseInfo/generalSetting.vue
+59
-5
No files found.
src/views/baseInfo/generalSetting.vue
View file @
94eadf67
...
...
@@ -37,7 +37,7 @@
</div>
</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>
-->
</
template
>
...
...
@@ -57,6 +57,23 @@
<el-form-item
label=
"标识"
prop=
"type"
>
<el-input
type=
"number"
v-model
.
number=
"dialogFrom.type"
placeholder=
"1,2,3……"
></el-input>
</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-tab-pane
label=
"详情"
name=
"first"
>
<!--<Editor v-if="activeName2=='first'" @input="handelContentIncrease" :value="form.content" :myQuillEditor="'myQuillEditorContent'" :activeName2="activeName2"></Editor>-->
...
...
@@ -160,7 +177,9 @@
dialogFrom
:{
title
:
""
,
type
:
undefined
,
value
:
""
value
:
""
,
amount
:
100
,
proceduReates
:
0.001
},
rules
:
{
title
:
{
...
...
@@ -173,6 +192,14 @@
required
:
true
,
message
:
'请输入数字标识'
,
},
proceduReates
:
{
required
:
true
,
message
:
'请输入提现手续费'
,
},
amount
:
{
required
:
true
,
message
:
'请输入最低提现金额'
,
}
},
list
:
null
,
total
:
null
,
...
...
@@ -196,6 +223,7 @@
handleCreate
()
{
this
.
cleanDialogFrom
();
this
.
modalTitle
=
'创建'
;
this
.
activeName2
=
"first"
;
this
.
dialogVisible
=
true
;
},
/**
...
...
@@ -254,7 +282,9 @@
this
.
dialogFrom
=
{
title
:
""
,
type
:
undefined
,
value
:
""
value
:
""
,
amount
:
100
,
proceduReates
:
0.001
};
this
.
activeName2
=
""
;
},
...
...
@@ -277,10 +307,17 @@
if
(
!
this
.
$utils
.
isEmpty
(
response
.
data
.
rows
)
&&
this
.
$utils
.
isInteger
(
response
.
data
.
total
))
{
response
.
data
.
rows
.
map
(
function
(
item
){
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
;
totalCountRs
=
response
.
data
.
total
;
}
}
debugger
// "{"amount":"11","proceduReates":"0.02"}"
this
.
listLoading
=
false
;
this
.
list
=
listRs
;
this
.
total
=
totalCountRs
;
...
...
@@ -295,8 +332,17 @@
let
params
=
{
title
:
this
.
dialogFrom
.
title
,
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
=>
{
if
(
response
.
status
===
200
)
{
this
.
cleanDialogFrom
();
...
...
@@ -334,6 +380,14 @@
type
:
this
.
dialogFrom
.
type
,
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
=>
{
if
(
response
.
status
===
200
)
{
this
.
cleanDialogFrom
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment