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
af24302e
Commit
af24302e
authored
Sep 30, 2019
by
高淑倩
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
active_tab
parent
24735c6e
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
7 deletions
+11
-7
tabSort.js
src/component/tabSort/tabSort.js
+4
-0
tabSort.wxml
src/component/tabSort/tabSort.wxml
+5
-5
userCenter.wxml
src/pages/userCenter/userCenter.wxml
+1
-1
subPage.wxml
src/subPackage/page/pages/subPage/subPage.wxml
+1
-1
No files found.
src/component/tabSort/tabSort.js
View file @
af24302e
...
@@ -17,6 +17,10 @@ Component({
...
@@ -17,6 +17,10 @@ Component({
categoryType
:
{
categoryType
:
{
type
:
Object
,
type
:
Object
,
value
:
null
value
:
null
},
currHomePageId
:
{
type
:
String
,
value
:
''
}
}
},
},
attached
()
{
attached
()
{
...
...
src/component/tabSort/tabSort.wxml
View file @
af24302e
...
@@ -7,19 +7,19 @@
...
@@ -7,19 +7,19 @@
wx:for-item="navItem"
wx:for-item="navItem"
wx:key="idx"
wx:key="idx"
>
>
<view wx:if="{{navItem.needAuth}}" class="scroll-view-item {{curr
entTab == idx ?'active':
''}}" style="width:{{navItemWidth}}%">
<view wx:if="{{navItem.needAuth}}" class="scroll-view-item {{curr
HomePageId == (navItem.link.type == '2' ? navItem.link.url : '')? 'active' :
''}}" style="width:{{navItemWidth}}%">
<view wx:if="{{!currentHasUserInfo}}" class="scroll-view-item {{curr
entTab == idx ?'active':
''}}" style="width: {{navItemWidth}}%;height: 80rpx;display: flex;">
<view wx:if="{{!currentHasUserInfo}}" class="scroll-view-item {{curr
HomePageId == (navItem.link.type == '2' ? navItem.link.url : '')? 'active' :
''}}" style="width: {{navItemWidth}}%;height: 80rpx;display: flex;">
<button
<button
bindgetuserinfo="_getUserInfo"
bindgetuserinfo="_getUserInfo"
data-jflag="false"
data-jflag="false"
open-type='getUserInfo'
open-type='getUserInfo'
class="scroll-view-item {{curr
entTab == idx ?'active':
''}}"
class="scroll-view-item {{curr
HomePageId == (navItem.link.type == '2' ? navItem.link.url : '')? 'active' :
''}}"
hover-class="btn-hover"
hover-class="btn-hover"
>
>
{{navItem.title}}
{{navItem.title}}
</button>
</button>
</view>
</view>
<view wx:else class="scroll-view-item {{curr
entTab == idx ?'active':
''}}" style="width:{{navItemWidth}}%">
<view wx:else class="scroll-view-item {{curr
HomePageId == (navItem.link.type == '2' ? navItem.link.url : '')? 'active' :
''}}" style="width:{{navItemWidth}}%">
<view
<view
data-current="{{idx}}"
data-current="{{idx}}"
data-redirectId="{{navItem.redirectId}}"
data-redirectId="{{navItem.redirectId}}"
...
@@ -30,7 +30,7 @@
...
@@ -30,7 +30,7 @@
</view>
</view>
</view>
</view>
<view wx:else class="scroll-view-item {{curr
entTab == idx ?'active':
''}}" style="width:{{navItemWidth}}%">
<view wx:else class="scroll-view-item {{curr
HomePageId == (navItem.link.type == '2' ? navItem.link.url : '')? 'active' :
''}}" style="width:{{navItemWidth}}%">
<view
<view
data-current="{{idx}}"
data-current="{{idx}}"
data-redirectId="{{navItem.redirectId}}"
data-redirectId="{{navItem.redirectId}}"
...
...
src/pages/userCenter/userCenter.wxml
View file @
af24302e
...
@@ -21,7 +21,7 @@
...
@@ -21,7 +21,7 @@
<announcement notice="{{pItem.notice}}"/>
<announcement notice="{{pItem.notice}}"/>
</view>
</view>
<view class="" wx:if="{{pItem.type == 7}}">
<view class="" wx:if="{{pItem.type == 7}}">
<tab-sort category-type="{{pItem.categoryType}}" bind:getAuth="_getUserInfo" currentHasUserInfo="{{currentHasUserInfo}}" bind:updatePage="updatePage"/>
<tab-sort c
urrHomePageId="{{currHomePageId}}" c
ategory-type="{{pItem.categoryType}}" bind:getAuth="_getUserInfo" currentHasUserInfo="{{currentHasUserInfo}}" bind:updatePage="updatePage"/>
</view>
</view>
<view class="" wx:if="{{pItem.type == 8}}">
<view class="" wx:if="{{pItem.type == 8}}">
<attention focus-wx="{{pItem.focusWx}}" />
<attention focus-wx="{{pItem.focusWx}}" />
...
...
src/subPackage/page/pages/subPage/subPage.wxml
View file @
af24302e
...
@@ -21,7 +21,7 @@
...
@@ -21,7 +21,7 @@
<announcement notice="{{pItem.notice}}"/>
<announcement notice="{{pItem.notice}}"/>
</view>
</view>
<view class="" wx:if="{{pItem.type == 7}}">
<view class="" wx:if="{{pItem.type == 7}}">
<tab-sort category-type="{{pItem.categoryType}}" bind:getAuth="_getUserInfo" currentHasUserInfo="{{currentHasUserInfo}}" bind:updatePage="updatePage"/>
<tab-sort c
urrHomePageId="{{currHomePageId}}" c
ategory-type="{{pItem.categoryType}}" bind:getAuth="_getUserInfo" currentHasUserInfo="{{currentHasUserInfo}}" bind:updatePage="updatePage"/>
</view>
</view>
<view class="" wx:if="{{pItem.type == 8}}">
<view class="" wx:if="{{pItem.type == 8}}">
<attention focus-wx="{{pItem.focusWx}}" />
<attention focus-wx="{{pItem.focusWx}}" />
...
...
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