Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
mini-program
/
points-mall
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 8c11cfa3
authored
Sep 02, 2025
by
wangzhihui
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fixed
1 parent
9a6fbe8f
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
10 deletions
packageIndex/pages/bankAccount/add/add.js
packageIndex/pages/integral/index/index.js
packageIndex/pages/integral/withdrawal/withdrawal.js
packageIndex/pages/bankAccount/add/add.js
View file @
8c11cfa
...
@@ -120,7 +120,7 @@ Page({
...
@@ -120,7 +120,7 @@ Page({
if
(
res
.
code
==
0
)
{
if
(
res
.
code
==
0
)
{
this
.
setData
({
this
.
setData
({
//0-关闭,1-打开
//0-关闭,1-打开
isEnabled
:
res
.
data
.
isEnabled
==
0
?
false
:
tru
e
isEnabled
:
res
.
data
?
res
.
data
.
isEnabled
==
0
?
false
:
true
:
fals
e
})
})
resolve
()
resolve
()
}
}
...
...
packageIndex/pages/integral/index/index.js
View file @
8c11cfa
...
@@ -39,6 +39,7 @@ Page({
...
@@ -39,6 +39,7 @@ Page({
this
.
searchScoreSummaryData
()
this
.
searchScoreSummaryData
()
this
.
getScoreProfitListData
()
this
.
getScoreProfitListData
()
},
},
getPointsWalletData
()
{
getPointsWalletData
()
{
const
{
const
{
phone
,
phone
,
...
@@ -231,15 +232,18 @@ Page({
...
@@ -231,15 +232,18 @@ Page({
/**
/**
* 生命周期函数--监听页面显示
* 生命周期函数--监听页面显示
*/
*/
onShow
()
{
onShow
(){
if
(
this
.
refresh
){
this
.
searchScoreSummaryData
()
this
.
getScoreProfitListData
()
}
},
},
/**
/**
* 生命周期函数--监听页面隐藏
* 生命周期函数--监听页面隐藏
*/
*/
onHide
()
{
onHide
()
{
this
.
refresh
=
true
;
},
},
/**
/**
...
...
packageIndex/pages/integral/withdrawal/withdrawal.js
View file @
8c11cfa
...
@@ -6,7 +6,7 @@ Page({
...
@@ -6,7 +6,7 @@ Page({
*/
*/
data
:
{
data
:
{
navStyle
:
"background-color: transparent;"
,
navStyle
:
"background-color: transparent;"
,
showBank
:
tru
e
,
showBank
:
fals
e
,
agree
:
false
,
agree
:
false
,
isConfig
:
true
,
isConfig
:
true
,
showAuthDialog
:
false
,
showAuthDialog
:
false
,
...
@@ -209,6 +209,7 @@ Page({
...
@@ -209,6 +209,7 @@ Page({
},
},
// 价格输入校验规则(提现积分值:最小值需大于0)
// 价格输入校验规则(提现积分值:最小值需大于0)
priceVerify
(
price
,
max
,
min
=
0
)
{
priceVerify
(
price
,
max
,
min
=
0
)
{
console
.
log
(
price
,
max
,
min
=
0
)
let
result
=
0
let
result
=
0
// 1.限制小数点为2位
// 1.限制小数点为2位
price
=
price
.
replace
(
/
[^\d
.
]
/g
,
""
)
price
=
price
.
replace
(
/
[^\d
.
]
/g
,
""
)
...
@@ -227,18 +228,15 @@ Page({
...
@@ -227,18 +228,15 @@ Page({
price
=
'0.'
price
=
'0.'
}
}
}
}
// if (price.indexOf('.') != -1) {
// price = price.slice(0, price.indexOf('.'))
// }
result
=
price
result
=
price
// 4.判断最大值和最小值
// 4.判断最大值和最小值
if
(
price
)
{
if
(
price
)
{
price
=
Number
(
price
)
price
=
Number
(
price
)
max
=
Number
(
max
)
max
=
Number
(
max
)
if
(
max
&&
price
>
max
)
{
if
(
(
max
||
max
===
0
)
&&
price
>
max
)
{
result
=
max
result
=
max
}
}
if
(
min
&&
price
<
min
)
{
if
(
(
min
||
min
===
0
)
&&
price
<
min
)
{
result
=
min
result
=
min
}
}
}
}
...
...
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