Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
7
7-Eleven
Overview
Overview
Details
Activity
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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
高淑倩
7-Eleven
Commits
5fae665e
Commit
5fae665e
authored
Aug 29, 2019
by
高淑倩
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tab
parent
d6154b12
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
31 additions
and
3 deletions
+31
-3
userCenter.js
src/pages/userCenter/userCenter.js
+13
-1
subPage.js
src/subPackage/page/pages/subPage/subPage.js
+18
-2
No files found.
src/pages/userCenter/userCenter.js
View file @
5fae665e
...
...
@@ -156,7 +156,19 @@ wxService.page({
})
// tabBar
const
currentTabBar
=
data
.
paragraphs
.
filter
(
item
=>
item
.
type
==
5
)
console
.
log
(
'---'
,
currentTabBar
)
let
currentTabBarArr
=
[]
currentTabBar
.
forEach
(
tab
=>
{
currentTabBarArr
=
tab
.
tabBar
.
images
console
.
log
(
'---'
,
currentTabBarArr
)
currentTabBarArr
.
forEach
(
item
=>
{
if
(
item
.
link
){
console
.
log
(
'-link--'
,
item
.
link
.
type
,
item
.
link
.
url
)
}
else
if
(
item
.
row
){
console
.
log
(
'-row--'
)
}
})
})
// 段落
const
products
=
data
.
paragraphs
const
filterResult
=
products
.
map
((
res
,
index
)
=>
{
...
...
src/subPackage/page/pages/subPage/subPage.js
View file @
5fae665e
...
...
@@ -74,9 +74,9 @@ wxService.page({
})
if
(
wx
.
getStorageSync
(
'_baseUserInfo'
)){
// 积分数量
this
.
getMemberPointInfo
()
//
this.getMemberPointInfo()
// 优惠券数量
this
.
getMemberCouponInfo
()
//
this.getMemberCouponInfo()
}
},
// 查询积分信息
...
...
@@ -134,6 +134,22 @@ wxService.page({
wx
.
setNavigationBarTitle
({
title
:
data
.
page
.
title
})
// tabBar
const
currentTabBar
=
data
.
paragraphs
.
filter
(
item
=>
item
.
type
==
5
)
let
currentTabBarArr
=
[]
currentTabBar
.
forEach
(
tab
=>
{
currentTabBarArr
=
tab
.
tabBar
.
images
console
.
log
(
'---'
,
currentTabBarArr
)
currentTabBarArr
.
forEach
(
item
=>
{
if
(
item
.
link
){
console
.
log
(
'-link--'
,
item
.
link
.
type
,
item
.
link
.
url
)
}
else
if
(
item
.
row
){
console
.
log
(
'-row--'
)
}
})
})
// 段落
const
products
=
data
.
paragraphs
const
filterResult
=
products
.
map
((
res
,
index
)
=>
{
...
...
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