Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas_plus
/
store-assistant
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 55deffe4
authored
Oct 21, 2022
by
杨北旺
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修改提现输入bug
1 parent
58baece7
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
packageMine/pages/withdrawal/index.js
packageMine/pages/withdrawal/index.js
View file @
55deffe
...
@@ -9,8 +9,10 @@ Page({
...
@@ -9,8 +9,10 @@ Page({
},
},
toSumbitData
()
{
toSumbitData
()
{
let
{
sumbitScore
,
withdrawalScore
}
=
this
.
data
let
{
sumbitScore
,
withdrawalScore
}
=
this
.
data
let
isString
=
typeof
sumbitScore
==
'string'
if
(
!
sumbitScore
)
return
wx
.
$api
.
showToast
(
'请输入有效的积分值'
)
if
(
!
sumbitScore
)
return
wx
.
$api
.
showToast
(
'请输入有效的积分值'
)
if
(
sumbitScore
==
0
)
return
wx
.
$api
.
showToast
(
'请输入有效的积分值'
)
if
(
sumbitScore
==
0
)
return
wx
.
$api
.
showToast
(
'请输入有效的积分值'
)
if
(
isString
&&
sumbitScore
.
indexOf
(
'.'
)
==
(
sumbitScore
.
length
-
1
))
return
wx
.
$api
.
showToast
(
'请输入有效的积分值'
)
if
(
sumbitScore
<
0.3
)
return
wx
.
$api
.
showToast
(
'至少提现0.3'
)
if
(
sumbitScore
<
0.3
)
return
wx
.
$api
.
showToast
(
'至少提现0.3'
)
if
(
Number
(
sumbitScore
)
>
Number
(
withdrawalScore
))
return
wx
.
$api
.
showToast
(
'请输入有效的积分值'
)
if
(
Number
(
sumbitScore
)
>
Number
(
withdrawalScore
))
return
wx
.
$api
.
showToast
(
'请输入有效的积分值'
)
Dialog
.
confirm
({
Dialog
.
confirm
({
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment