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
fa7b95fd
Commit
fa7b95fd
authored
Sep 05, 2019
by
高淑倩
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化
parent
3a595e4c
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
9 deletions
+9
-9
bottomTabs.js
src/component/bottomTabs/bottomTabs.js
+1
-0
bottomTabs.wxml
src/component/bottomTabs/bottomTabs.wxml
+0
-1
project.config.json
src/project.config.json
+1
-1
subPage.js
src/subPackage/page/pages/subPage/subPage.js
+7
-7
No files found.
src/component/bottomTabs/bottomTabs.js
View file @
fa7b95fd
...
@@ -99,6 +99,7 @@ Component({
...
@@ -99,6 +99,7 @@ Component({
// 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
)
{
// 触发父组件更新页面 外部小程序
// 触发父组件更新页面 外部小程序
...
...
src/component/bottomTabs/bottomTabs.wxml
View file @
fa7b95fd
...
@@ -20,7 +20,6 @@
...
@@ -20,7 +20,6 @@
<view wx:else>
<view wx:else>
22
22
</view>-->
</view>-->
<button wx:if="{{currHomePageId == tab.redirectId}}">
<button wx:if="{{currHomePageId == tab.redirectId}}">
<image class='tab-img' src='{{tab.activeImageUrl}}' />
<image class='tab-img' src='{{tab.activeImageUrl}}' />
</button>
</button>
...
...
src/project.config.json
View file @
fa7b95fd
...
@@ -123,7 +123,7 @@
...
@@ -123,7 +123,7 @@
"id"
:
13
,
"id"
:
13
,
"name"
:
"subPage"
,
"name"
:
"subPage"
,
"pathName"
:
"subPackage/page/pages/subPage/subPage"
,
"pathName"
:
"subPackage/page/pages/subPage/subPage"
,
"query"
:
"pageId=
16
"
,
"query"
:
"pageId=
22
"
,
"scene"
:
null
"scene"
:
null
},
},
{
{
...
...
src/subPackage/page/pages/subPage/subPage.js
View file @
fa7b95fd
...
@@ -53,13 +53,13 @@ wxService.page({
...
@@ -53,13 +53,13 @@ wxService.page({
* 监听子组件事件
* 监听子组件事件
* */
* */
updatePage
(
ev
)
{
updatePage
(
ev
)
{
//
const {pageId} = ev.detail
const
{
pageId
}
=
ev
.
detail
//
this.setData({
this
.
setData
({
//
pages: [],
pages
:
[],
//
pageId
pageId
//
},()=>{
},()
=>
{
//
this.initPage(pageId)
this
.
initPage
(
pageId
)
//
})
})
},
},
/**
/**
* 生命周期函数--监听页面显示
* 生命周期函数--监听页面显示
...
...
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