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
41ecd597
Commit
41ecd597
authored
Aug 29, 2019
by
赵雅纹
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev_7.1.0' into feature-zyw-sc
parents
90ec1b8d
223d18fd
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
35 additions
and
30 deletions
+35
-30
cart_point.png
src/assets/imgs/7_1_0/08_22/cart_point.png
+0
-0
tabSort.js
src/component/tabSort/tabSort.js
+8
-4
tabSort.wxml
src/component/tabSort/tabSort.wxml
+24
-23
userCenter.wxml
src/pages/userCenter/userCenter.wxml
+3
-3
No files found.
src/assets/imgs/7_1_0/08_22/cart_point.png
0 → 100644
View file @
41ecd597
1.24 KB
src/component/tabSort/tabSort.js
View file @
41ecd597
...
@@ -9,9 +9,9 @@ Component({
...
@@ -9,9 +9,9 @@ Component({
* 组件的属性列表
* 组件的属性列表
*/
*/
properties
:
{
properties
:
{
category
s
:{
category
Type
:{
type
:
Array
,
type
:
Object
,
value
:
[]
value
:
null
}
}
},
},
attached
()
{
attached
()
{
...
@@ -21,7 +21,8 @@ Component({
...
@@ -21,7 +21,8 @@ Component({
* 组件的初始数据
* 组件的初始数据
*/
*/
data
:
{
data
:
{
currentTab
:
0
// currentTab: 0,
currentTab
:
99
,
},
},
/**
/**
* 组件的方法列表
* 组件的方法列表
...
@@ -30,6 +31,9 @@ Component({
...
@@ -30,6 +31,9 @@ Component({
handelToVipCode
()
{
handelToVipCode
()
{
wxService
.
router
(
`/pages/memberOfOwn/memberOfOwn`
)
wxService
.
router
(
`/pages/memberOfOwn/memberOfOwn`
)
},
},
handelToCart
()
{
wxService
.
router
(
`/pages/cart/cart`
)
},
// 设置tab active
// 设置tab active
switchNav
(
event
)
{
switchNav
(
event
)
{
const
ev
=
event
.
currentTarget
.
dataset
;
const
ev
=
event
.
currentTarget
.
dataset
;
...
...
src/component/tabSort/tabSort.wxml
View file @
41ecd597
<!--component/tabSort/tabSort.wxml-->
<!--component/tabSort/tabSort.wxml-->
<view class="tab-sort" wx:if="{{categorys}}">
<view class="tab-sort" wx:if="{{category
Type.category
s}}">
<scroll-view scroll-x class="scroll-view_H" scroll-with-animation="{{true}}">
<scroll-view scroll-x class="scroll-view_H" scroll-with-animation="{{true}}">
<block
<block
wx:for="{{categorys}}"
wx:for="{{category
Type.category
s}}"
wx:for-index="idx"
wx:for-index="idx"
wx:for-item="navItem"
wx:for-item="navItem"
wx:key="idx"
wx:key="idx"
...
@@ -11,34 +11,35 @@
...
@@ -11,34 +11,35 @@
class="scroll-view-item {{currentTab == idx ?'active':''}}"
class="scroll-view-item {{currentTab == idx ?'active':''}}"
style="width:{{navItemWidth}}%"
style="width:{{navItemWidth}}%"
data-current="{{idx}}"
data-current="{{idx}}"
data-redirectId
="{{navItem.redirectId}}"
data-redirectId="{{navItem.redirectId}}"
bindtap="switchNav"
bindtap="switchNav"
>
>
<view>{{navItem.title}}</view>
<view>{{navItem.title}}</view>
</view>
</view>
</block>
</block>
</scroll-view>
</scroll-view>
<view class="scroll-view-right" bindtap="handelToVipCode">
<!-- showQrcode 2 购物车 1 会员码 0 隐藏 -->
<image class="right-img" src="./../../assets/imgs/7_1_0/scancode.png" mode="widthFix" lazy-load="false" binderror="" bindload="" />
<view class="scroll-view-right" bindtap="handelToVipCode" wx:if="{{categoryType.showQrcode == 1}}">
<image
class="right-img"
src="/assets/imgs/7_1_0/scancode.png"
mode="widthFix"
lazy-load="false"
binderror=""
bindload=""
/>
<text class="active vip-text" selectable="false" space="false" decode="false">会员码</text>
<text class="active vip-text" selectable="false" space="false" decode="false">会员码</text>
</view>
</view>
<view class="scroll-view-right" bindtap="handelToCart" wx:if="{{categoryType.showQrcode == 2}}">
<image
class="right-img"
src="/assets/imgs/7_1_0/08_22/cart_point.png"
mode="widthFix"
lazy-load="false"
binderror=""
bindload=""
/>
</view>
</view>
</view>
<!-- 页面内容 -->
<!--<view>
<swiper
current="{{currentTab}}"
duration="300"
bindchange="switchTab"
>
<swiper-item
wx:for="{{categorys}}"
wx:for-item="navItem"
wx:for-index="idx"
wx:key="idx"
class="tab-content-clock"
>
<view>{{navItem.label}}</view>
</swiper-item>
</swiper>
</view>-->
src/pages/userCenter/userCenter.wxml
View file @
41ecd597
...
@@ -18,14 +18,14 @@
...
@@ -18,14 +18,14 @@
<bottom-tabs tab-bar="{{pItem.tabBar}}" />
<bottom-tabs tab-bar="{{pItem.tabBar}}" />
</view>-->
</view>-->
<view class="" wx:if="{{ pItem.type == 9 ? pItem.type == 9 : pItem.type == 5}}">
<view class="" wx:if="{{ pItem.type == 9 ? pItem.type == 9 : pItem.type == 5}}">
<attention wx:if="{{pItem.type == 9}}" /
>
<!-- <attention wx:if="{{pItem.type == 9}}" /> wx:else --
>
<bottom-tabs
wx:else
tab-bar="{{pItem.tabBar}}" />
<bottom-tabs tab-bar="{{pItem.tabBar}}" />
</view>
</view>
<view class="" wx:if="{{pItem.type == 6}}">
<view class="" wx:if="{{pItem.type == 6}}">
<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
s="{{pItem.categoryType.categorys
}}" />
<tab-sort category
-type="{{pItem.categoryType
}}" />
</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