Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
Athena
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
华国豪
Athena
Commits
dd531c1c
Commit
dd531c1c
authored
Dec 16, 2019
by
黄媛媛
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改幸福存折最大使用金额
parent
8b717840
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
indexTwo.vue
src/components/trade/order/indexTwo.vue
+8
-2
No files found.
src/components/trade/order/indexTwo.vue
View file @
dd531c1c
...
...
@@ -297,7 +297,7 @@
<el-input
size=
"small"
v-model=
"ActivateCode"
placeholder=
"请输入兑换码"
style=
"width:200px"
></el-input>
<el-button
@
click=
"GetCode"
size=
"small"
style=
"margin-left:10px"
>
兑换
</el-button>
</div>
<p
class=
"margin-top: 10px;"
>
幸福存折
</p>
<p
class=
"margin-top: 10px;"
>
幸福存折
<
span
style=
"color: #EE4454;font-size:12px;margin-left:10px"
>
幸福存折金额单次最高只能使用1000
</span><
/p>
<div>
<el-input
size=
"small"
v-model=
"RedEnvelopeMoney"
@
change=
"RedEnvelopeMoneyChange"
placeholder=
"请输入金额"
style=
"width:200px;margin-right: 10px;"
></el-input>
<span>
当前幸福存折余额:
<span
style=
"color: #EE4454"
>
{{RedEnvelopeMoneyALL}}
</span></span>
...
...
@@ -596,10 +596,16 @@ export default {
console
.
log
(
this
.
RedEnvelopeMoney
)
if
(
this
.
RedEnvelopeMoney
==
''
)
{
this
.
RedEnvelopeMoney
=
0
}
else
if
(
this
.
RedEnvelopeMoney
>
this
.
RedEnvelopeMoneyALL
)
{
}
else
if
(
Number
(
this
.
RedEnvelopeMoney
)
>
1000
&&
this
.
RedEnvelopeMoney
<
this
.
RedEnvelopeMoneyALL
){
this
.
RedEnvelopeMoney
=
1000
;
this
.
$message
.
error
(
'幸福存折金额单次最高只能使用1000!'
)
}
else
if
(
this
.
RedEnvelopeMoney
>
this
.
RedEnvelopeMoneyALL
)
{
this
.
RedEnvelopeMoney
=
this
.
RedEnvelopeMoneyALL
this
.
$message
.
error
(
'使用金额不能超过幸福存折余额!'
)
}
// this.calcMoney()
},
// 获取幸福存折余额
...
...
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