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 54461e54
authored
Sep 02, 2025
by
wangzhihui
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修复bug
1 parent
1ecc8c1f
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
7 deletions
packageIndex/pages/integral/index/index.js
packageIndex/pages/integral/withdrawal/withdrawal.js
packageIndex/pages/integral/withdrawalRules/withdrawalRules.js
packageIndex/pages/integral/index/index.js
View file @
54461e5
...
@@ -147,7 +147,7 @@ Page({
...
@@ -147,7 +147,7 @@ Page({
})
})
}
}
}).
catc
n
((
err
)
=>
{
}).
catc
h
((
err
)
=>
{
wx
.
p
.
wxApi
.
showToast
(
JSON
.
stringify
(
err
))
wx
.
p
.
wxApi
.
showToast
(
JSON
.
stringify
(
err
))
})
})
},
},
...
...
packageIndex/pages/integral/withdrawal/withdrawal.js
View file @
54461e5
...
@@ -77,7 +77,7 @@ Page({
...
@@ -77,7 +77,7 @@ Page({
checkbankConfig
()
{
checkbankConfig
()
{
let
{
let
{
bankInfo
bankInfo
}
=
this
.
data
,
{
}
=
this
.
data
,
{
merchantId
,
merchantId
,
merchantName
,
merchantName
,
channelSource
channelSource
...
@@ -146,7 +146,7 @@ Page({
...
@@ -146,7 +146,7 @@ Page({
}
}
})
})
},
},
goBank
(){
goBank
()
{
let
{
let
{
score
score
}
=
this
.
data
;
}
=
this
.
data
;
...
@@ -236,15 +236,23 @@ Page({
...
@@ -236,15 +236,23 @@ Page({
price
=
'0.'
price
=
'0.'
}
}
}
}
// 4. 处理多个小数点的情况,只保留第一个小数点
const
dotIndex
=
price
.
indexOf
(
'.'
)
if
(
dotIndex
!==
-
1
)
{
const
beforeDot
=
price
.
substring
(
0
,
dotIndex
)
const
afterDot
=
price
.
substring
(
dotIndex
+
1
).
replace
(
/
\.
/g
,
''
)
price
=
beforeDot
+
'.'
+
afterDot
}
result
=
price
result
=
price
// 4.判断最大值和最小值
// 4.判断最大值和最小值
if
(
price
)
{
if
(
price
)
{
price
=
Number
(
price
)
price
=
Number
(
price
)
max
=
Number
(
max
)
max
=
Number
(
max
)
if
((
max
||
max
===
0
)
&&
price
>
max
)
{
if
((
max
||
max
===
0
)
&&
price
>
max
)
{
result
=
max
result
=
max
}
}
if
((
min
||
min
===
0
)
&&
price
<
min
)
{
if
((
min
||
min
===
0
)
&&
price
<
min
)
{
result
=
min
result
=
min
}
}
}
}
...
...
packageIndex/pages/integral/withdrawalRules/withdrawalRules.js
View file @
54461e5
...
@@ -32,8 +32,8 @@ Page({
...
@@ -32,8 +32,8 @@ Page({
let
userInfo
=
wx
.
p
.
storage
.
get
(
'userInfo'
)
let
userInfo
=
wx
.
p
.
storage
.
get
(
'userInfo'
)
let
params
=
{
let
params
=
{
pageNum
:
2
,
pageNum
:
1
,
pageSize
:
4
,
pageSize
:
8
,
canExchange
:
1
,
canExchange
:
1
,
businessType
:
1
,
businessType
:
1
,
staffPhone
:
userInfo
?.
phone
,
staffPhone
:
userInfo
?.
phone
,
...
...
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