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
4842cb2c
Commit
4842cb2c
authored
Sep 04, 2019
by
高淑倩
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
subpage
parent
44819ec4
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
32 deletions
+4
-32
bottomTabs.js
src/component/bottomTabs/bottomTabs.js
+3
-30
bottomTabs.wxml
src/component/bottomTabs/bottomTabs.wxml
+0
-1
userCenter.wxml
src/pages/userCenter/userCenter.wxml
+1
-1
No files found.
src/component/bottomTabs/bottomTabs.js
View file @
4842cb2c
...
@@ -31,33 +31,7 @@ Component({
...
@@ -31,33 +31,7 @@ Component({
*/
*/
data
:
{
data
:
{
currentRoute
:
''
,
currentRoute
:
''
,
tabs
:
[
tabs
:
[],
{
active
:
'/assets/imgs/heart-primary.png'
,
inactive
:
'/assets/imgs/heart-default.png'
,
route
:
'/pages/userCenter/userCenter'
},
{
active
:
'/assets/imgs/heart-primary.png'
,
inactive
:
'/assets/imgs/heart-default.png'
,
route
:
'/pages/category/category'
},
{
active
:
'/assets/imgs/heart-primary.png'
,
inactive
:
'/assets/imgs/heart-default.png'
,
route
:
'/pages/my/my'
},
{
active
:
'/assets/imgs/heart-primary.png'
,
inactive
:
'/assets/imgs/heart-default.png'
,
route
:
'/pages/productDetail/productDetail'
},
{
active
:
'/assets/imgs/heart-primary.png'
,
inactive
:
'/assets/imgs/heart-default.png'
,
route
:
'/pages/refund/refund'
}
],
type
:
1
type
:
1
},
},
/**
/**
...
@@ -68,9 +42,9 @@ Component({
...
@@ -68,9 +42,9 @@ Component({
const
ev
=
event
.
currentTarget
.
dataset
;
const
ev
=
event
.
currentTarget
.
dataset
;
let
curItemType
=
ev
.
item
let
curItemType
=
ev
.
item
const
userInfo
=
wx
.
getStorageSync
(
'_baseUserInfo'
)
const
userInfo
=
wx
.
getStorageSync
(
'_baseUserInfo'
)
// link row
// link row
if
(
curItemType
.
link
)
{
if
(
curItemType
.
link
)
{
let
currentClickType
=
app
.
globalData
.
commonFunc
.
getLink
(
curItemType
.
link
.
type
,
curItemType
)
let
currentClickType
=
app
.
globalData
.
commonFunc
.
getLink
(
curItemType
.
link
.
type
,
curItemType
)
if
(
curItemType
.
link
.
type
==
1
)
{
if
(
curItemType
.
link
.
type
==
1
)
{
// 触发父组件更新页面 外部小程序
// 触发父组件更新页面 外部小程序
this
.
setData
({
this
.
setData
({
...
@@ -88,7 +62,6 @@ Component({
...
@@ -88,7 +62,6 @@ Component({
}
}
if
(
curItemType
.
link
.
type
==
2
)
{
if
(
curItemType
.
link
.
type
==
2
)
{
// 触发父组件更新页面
// 触发父组件更新页面
wxService
.
nextTick
(()
=>
{
wxService
.
nextTick
(()
=>
{
this
.
triggerEvent
(
'updatePage'
,
{
pageId
:
currentClickType
.
url
})
this
.
triggerEvent
(
'updatePage'
,
{
pageId
:
currentClickType
.
url
})
...
...
src/component/bottomTabs/bottomTabs.wxml
View file @
4842cb2c
...
@@ -6,7 +6,6 @@
...
@@ -6,7 +6,6 @@
data-item="{{tab}}"
data-item="{{tab}}"
bindtap="handelToPage"
bindtap="handelToPage"
>
>
<!--<image class='tab-img' wx:if="{{currentRoute == tab.route}}" src='{{tab.activeImageUrl}}' />-->
<image class='tab-img' wx:if="{{currHomePageId == tab.redirectId}}" src='{{tab.activeImageUrl}}' />
<image class='tab-img' wx:if="{{currHomePageId == tab.redirectId}}" src='{{tab.activeImageUrl}}' />
<image class='tab-img' wx:else src='{{tab.imageUrl}}' />
<image class='tab-img' wx:else src='{{tab.imageUrl}}' />
</view>
</view>
...
...
src/pages/userCenter/userCenter.wxml
View file @
4842cb2c
...
@@ -15,7 +15,7 @@
...
@@ -15,7 +15,7 @@
<bottom bottom="{{pItem.bottom}}" />
<bottom bottom="{{pItem.bottom}}" />
</view>
</view>
<view class="" wx:if="{{pItem.type == 5}}">
<view class="" wx:if="{{pItem.type == 5}}">
<bottom-tabs tab-bar="{{pItem.tabBar}}" />
<bottom-tabs tab-bar="{{pItem.tabBar}}"
bind:updatePage="updatePage"
/>
</view>
</view>
<view class="" wx:if="{{pItem.type == 6}}">
<view class="" wx:if="{{pItem.type == 6}}">
<announcement notice="{{pItem.notice}}" />
<announcement notice="{{pItem.notice}}" />
...
...
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