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
d97e70b9
Commit
d97e70b9
authored
Sep 16, 2019
by
高淑倩
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tab
parent
09c76fbc
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
7 deletions
+10
-7
bottomTabs.js
src/component/bottomTabs/bottomTabs.js
+3
-1
bottomTabs.wxml
src/component/bottomTabs/bottomTabs.wxml
+6
-6
bottomTabs.wxss
src/component/bottomTabs/bottomTabs.wxss
+1
-0
No files found.
src/component/bottomTabs/bottomTabs.js
View file @
d97e70b9
...
...
@@ -27,7 +27,9 @@ Component({
baseImgUrl
:
app
.
globalData
.
imageUrl
})
const
{
tabBar
}
=
this
.
data
tabBar
.
forEach
(
item
=>
{
console
.
log
(
'tabBar'
,
tabBar
)
let
currentTab
=
tabBar
.
images
currentTab
.
forEach
(
item
=>
{
// 存在 row 处理数据 8 商品 9 分类
let
newRow
=
null
if
(
item
.
link
)
{
...
...
src/component/bottomTabs/bottomTabs.wxml
View file @
d97e70b9
...
...
@@ -12,7 +12,7 @@
bindgetuserinfo="_getUserInfo"
data-jflag="false"
open-type='getUserInfo'
class='btn
btn-primary
'
class='btn'
hover-class="btn-hover"
style="height: 100%;"
>
...
...
@@ -25,7 +25,7 @@
data-item="{{tab}}"
bindtap="handelToPage"
>
<button class='btn
btn-primary
' style="height: 100%;">
<button class='btn' style="height: 100%;">
<image class='tab-img' src="{{utils.formateUrl(currHomePageId == tab.redirectId ? tab.activeImageUrl: tab.imageUrl,baseImgUrl)}}" />
</button>
</view>
...
...
@@ -36,7 +36,7 @@
data-item="{{tab}}"
bindtap="handelToPage"
>
<button class='btn
btn-primary
' style="height: 100%">
<button class='btn' style="height: 100%">
<image class='tab-img' src="{{utils.formateUrl(currHomePageId == tab.redirectId ? tab.activeImageUrl: tab.imageUrl,baseImgUrl)}}" />
</button>
</view>
...
...
@@ -53,7 +53,7 @@
bindgetuserinfo="_getUserInfo"
data-jflag="false"
open-type='getUserInfo'
class='btn
btn-primary
'
class='btn'
hover-class="btn-hover"
style="height: 100%;"
>
...
...
@@ -66,7 +66,7 @@
data-item="{{tab}}"
bindtap="handelToPage"
>
<button class='btn
btn-primary
' style="height: 100%;">
<button class='btn' style="height: 100%;">
<image class='tab-img' src="{{utils.formateUrl(currHomePageId == tab.redirectId ? tab.activeImageUrl: tab.imageUrl,baseImgUrl)}}" />
</button>
</view>
...
...
@@ -77,7 +77,7 @@
data-item="{{tab}}"
bindtap="handelToPage"
>
<button class='btn
btn-primary
' style="height: 100%">
<button class='btn' style="height: 100%">
<image class='tab-img' src="{{utils.formateUrl(currHomePageId == tab.redirectId ? tab.activeImageUrl: tab.imageUrl,baseImgUrl)}}" />
</button>
</view>
...
...
src/component/bottomTabs/bottomTabs.wxss
View file @
d97e70b9
...
...
@@ -19,6 +19,7 @@
.bgc {
background-size: 100% 100%;
background-repeat: no-repeat;
background-color: #fff;
height: 114rpx;
display: flex;
align-items: center;
...
...
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