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 16a0f0e0
authored
Oct 20, 2022
by
杨北旺
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
积分提现添加限制
1 parent
cf361224
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
packageMine/pages/withdrawal/index.js
packageMine/pages/withdrawal/index.wxml
packageMine/pages/withdrawal/index.js
View file @
16a0f0e
...
...
@@ -8,9 +8,11 @@ Page({
sumbitScore
:
''
},
toSumbitData
()
{
let
{
sumbitScore
}
=
this
.
data
let
{
sumbitScore
,
withdrawalScore
}
=
this
.
data
if
(
!
sumbitScore
)
return
wx
.
$api
.
showToast
(
'请输入有效的积分值'
)
if
(
sumbitScore
==
0
)
return
wx
.
$api
.
showToast
(
'请输入有效的积分值'
)
if
(
sumbitScore
<
0.3
)
return
wx
.
$api
.
showToast
(
'至少提现0.3'
)
if
(
Number
(
sumbitScore
)
>
Number
(
withdrawalScore
))
return
wx
.
$api
.
showToast
(
'请输入有效的积分值'
)
Dialog
.
confirm
({
title
:
'提示'
,
message
:
`请确认是否将
${
sumbitScore
}
积分进行提现`
,
...
...
@@ -20,7 +22,7 @@ Page({
wx
.
hideLoading
();
if
(
res
.
code
==
0
)
{
wx
.
$eventbus
.
emit
(
'REFRESH_WITHDRALWAL'
)
wx
.
$router
.
g
o
(
'packageMine.withdrawalSuccess.index'
)
wx
.
$router
.
redirectT
o
(
'packageMine.withdrawalSuccess.index'
)
}
else
{
wx
.
$api
.
showToast
(
res
.
message
)
}
...
...
packageMine/pages/withdrawal/index.wxml
View file @
16a0f0e
...
...
@@ -19,7 +19,7 @@
<view class="input_wrapper">
<view class="title">输入提现的积分值</view>
<view class="int_widget flex_scb">
<input type="digit" bindblur="checkNum" value="{{sumbitScore}}" focus="{{true}}" bindinput="toFillCount" class="intClass" maxlength="20" placeholder="请输入
整数
" placeholder-class="input-placeholder"/>
<input type="digit" bindblur="checkNum" value="{{sumbitScore}}" focus="{{true}}" bindinput="toFillCount" class="intClass" maxlength="20" placeholder="请输入" placeholder-class="input-placeholder"/>
<view class="btn flex_cc" bind:tap="toTixianAll">全部提现</view>
</view>
</view>
...
...
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