Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
飞
飞鹤小程序
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
FH
飞鹤小程序
Commits
1419d097
Commit
1419d097
authored
Oct 27, 2025
by
spc
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed
parent
3ce4dae8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
58 deletions
+8
-58
orderList.vue
v3/orderList/orderList.vue
+8
-58
No files found.
v3/orderList/orderList.vue
View file @
1419d097
...
...
@@ -97,56 +97,7 @@ export default {
orderList
:
[],
nextId
:
null
,
loading
:
false
,
hasMore
:
true
,
// 模拟数据(用于测试)
mockData
:
[
{
orderId
:
'1782993789'
,
status
:
'pending_shipment'
,
productType
:
'physical'
,
productName
:
'商品名称—实物'
,
description
:
'商品描述文案占位'
,
points
:
200
,
creditsTypeName
:
'积分'
,
exchangeTime
:
'2025.09.10 23:23:23'
,
productImage
:
''
},
{
orderId
:
'1782993790'
,
status
:
'pending_payment'
,
productType
:
'physical'
,
productName
:
'商品名称—实物'
,
description
:
'商品描述文案占位'
,
points
:
300
,
creditsTypeName
:
'积分'
,
exchangeTime
:
'2025.09.10 23:23:23'
,
countdown
:
'23:59:59'
,
productImage
:
''
},
{
orderId
:
'1782993791'
,
status
:
'completed'
,
productType
:
'physical'
,
productName
:
'商品名称—实物'
,
description
:
'商品描述文案占位'
,
points
:
150
,
creditsTypeName
:
'积分'
,
exchangeTime
:
'2025.09.10 23:23:23'
,
productImage
:
''
},
{
orderId
:
'1782993792'
,
status
:
'completed'
,
productType
:
'coupon'
,
productName
:
'商品名称—卡券'
,
description
:
'商品描述文案占位'
,
points
:
100
,
creditsTypeName
:
'积分'
,
exchangeTime
:
'2025.09.10 23:23:23'
,
validUntil
:
'2025.09.10 23:23:23'
,
productImage
:
''
}
]
hasMore
:
true
}
},
onLoad
()
{
...
...
@@ -190,15 +141,14 @@ export default {
this
.
nextId
=
response
.
data
.
nextId
||
null
;
this
.
hasMore
=
!!
this
.
nextId
;
}
else
{
// API调用失败时使用模拟数据
console
.
warn
(
'API调用失败,使用模拟数据
:'
,
response
.
msg
);
this
.
orderList
=
this
.
mockData
;
}
// API调用失败
console
.
warn
(
'API调用失败
:'
,
response
.
msg
);
this
.
orderList
=
[]
;
}
}
catch
(
error
)
{
console
.
error
(
'加载兑换记录失败:'
,
error
);
// 网络错误时使用模拟数据
this
.
orderList
=
this
.
mockData
;
}
finally
{
console
.
error
(
'加载兑换记录失败:'
,
error
);
this
.
orderList
=
[];
}
finally
{
this
.
loading
=
false
;
}
},
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment