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 5aa21f33
authored
Sep 08, 2025
by
liimin
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix(我的订单): 修复订单列表请求参数错误并添加页面显示时刷新逻辑
修复请求参数中phone重复传递的问题 添加页面显示时的自动刷新功能,提升用户体验
1 parent
5bfb1b53
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
pages/tab/mine/components/myOrder/myOrder.js
pages/tab/mine/components/myOrder/myOrder.js
View file @
5aa21f3
...
@@ -21,7 +21,12 @@ Component({
...
@@ -21,7 +21,12 @@ Component({
this
.
getOrderNumberList
();
this
.
getOrderNumberList
();
},
},
},
},
pageLifetimes
:
{
show
:
function
()
{
// 页面被展示时执行
this
.
getOrderNumberList
();
}
},
/**
/**
* 组件的方法列表
* 组件的方法列表
*/
*/
...
@@ -44,10 +49,11 @@ Component({
...
@@ -44,10 +49,11 @@ Component({
pageSize
:
1
,
pageSize
:
1
,
currentPage
:
1
,
currentPage
:
1
,
scoreSource
:
channelSource
,
scoreSource
:
channelSource
,
phone
};
};
const
orderList
=
this
.
data
.
orderList
;
const
orderList
=
this
.
data
.
orderList
;
orderList
.
forEach
((
item
)
=>
{
orderList
.
forEach
((
item
)
=>
{
const
p
=
{
...
params
,
requestType
:
item
.
requestType
,
phone
};
const
p
=
{
...
params
,
requestType
:
item
.
requestType
};
wx
.
p
.
api
.
mineApi
[
item
.
requestMethod
](
p
).
then
((
data
)
=>
{
wx
.
p
.
api
.
mineApi
[
item
.
requestMethod
](
p
).
then
((
data
)
=>
{
if
(
data
.
total
){
if
(
data
.
total
){
item
.
___count
=
data
.
total
;
item
.
___count
=
data
.
total
;
...
...
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