Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
严立
/
mini-shimao
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
7f272207
authored
Sep 25, 2020
by
zqm
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
MM - 个人中心订单数据为空显示异常
parent
091df661
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
6 deletions
pages/mine/home/home.js
pages/mine/home/home.js
View file @
7f272207
...
@@ -79,7 +79,7 @@ Page({
...
@@ -79,7 +79,7 @@ Page({
authInfo
:
null
,
authInfo
:
null
,
goodTypeCountData
:
{},
goodTypeCountData
:
{},
enrollSubscribeData
:
{},
enrollSubscribeData
:
{},
isLoadingOrder
:
true
isLoadingOrder
:
true
},
},
// 去活动预约列表
// 去活动预约列表
...
@@ -189,7 +189,7 @@ Page({
...
@@ -189,7 +189,7 @@ Page({
getWillUseOrders
()
{
getWillUseOrders
()
{
let
that
=
this
let
that
=
this
this
.
setData
({
this
.
setData
({
isLoadingOrder
:
true
isLoadingOrder
:
true
})
})
App
.
wxRequest
({
App
.
wxRequest
({
url
:
'/api/v1/order/getOrderList'
,
url
:
'/api/v1/order/getOrderList'
,
...
@@ -217,11 +217,14 @@ Page({
...
@@ -217,11 +217,14 @@ Page({
let
listBackUp
=
JSON
.
parse
(
JSON
.
stringify
(
list
))
//备份数据
let
listBackUp
=
JSON
.
parse
(
JSON
.
stringify
(
list
))
//备份数据
let
orderList
=
`myOrder.artOrder.orderList`
let
orderList
=
`myOrder.artOrder.orderList`
// 初始化取一个
if
(
list
.
length
>
0
)
{
list
.
length
=
1
list
.
length
=
1
}
that
.
setData
({
that
.
setData
({
[
orderList
]:
list
,
[
orderList
]:
list
,
orderListBackup
:
listBackUp
,
orderListBackup
:
listBackUp
,
isLoadingOrder
:
false
isLoadingOrder
:
false
})
})
...
@@ -432,11 +435,11 @@ Page({
...
@@ -432,11 +435,11 @@ Page({
App
.
wxRequest
({
App
.
wxRequest
({
url
:
'/api/v1/activity/getMyActivityList'
,
url
:
'/api/v1/activity/getMyActivityList'
,
data
:
{
data
:
{
enrollState
:
2
,
//待使用
enrollState
:
2
,
//待使用
activeState
:
'1'
,
//""全部 0 未开始 1进行中 2已结束
activeState
:
'1'
,
//""全部 0 未开始 1进行中 2已结束
pageSize
:
-
1
,
pageSize
:
-
1
,
pageNo
:
1
,
pageNo
:
1
,
type
:
1
,
//0 影片 1 活动
type
:
1
,
//0 影片 1 活动
},
},
success
:
function
(
res
)
{
success
:
function
(
res
)
{
let
list
=
res
.
data
.
list
let
list
=
res
.
data
.
list
...
...
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