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
d35edb65
Commit
d35edb65
authored
Nov 14, 2019
by
高淑倩
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
currentTab
parent
ca616f12
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
38 additions
and
1 deletions
+38
-1
IntegralMallGoods.js
...Package/page/pages/IntegralMallGoods/IntegralMallGoods.js
+7
-1
IntegralMallGoods.wxml
...ckage/page/pages/IntegralMallGoods/IntegralMallGoods.wxml
+8
-0
IntegralMallGoods.wxss
...ckage/page/pages/IntegralMallGoods/IntegralMallGoods.wxss
+23
-0
No files found.
src/subPackage/page/pages/IntegralMallGoods/IntegralMallGoods.js
View file @
d35edb65
...
...
@@ -15,13 +15,19 @@ wxService.page({
isExchange
:
false
,
exchangeId
:
''
,
exchangePoint
:
0
,
currentTab
:
'goods'
},
/**
* 生命周期函数--监听页面加载
*/
onLoad
:
function
(
options
)
{},
handelTab
(
e
)
{
let
curTab
=
e
.
currentTarget
.
dataset
.
tab
this
.
setData
({
currentTab
:
curTab
})
},
/**
* 生命周期函数--监听页面显示
*/
...
...
src/subPackage/page/pages/IntegralMallGoods/IntegralMallGoods.wxml
View file @
d35edb65
<!--pages/userCenter.wxml-->
<view class='page-integral-mall' style="padding-bottom: 40rpx">
<!-- title -->
<view class='mall-title'>
<view class='title-num-point'>
<view class='title-img-point'>
...
...
@@ -15,6 +16,13 @@
<view class='title-time-point'>1000积分将于2020-12清零</view>
</view>
<!-- tab -->
<view class='mall-tab'>
<view class="tab-coupon {{currentTab=='coupon' ? 'tab-active':''}}" data-tab="coupon" bindtap="handelTab">优惠券</view>
<view class="tab-coupon {{currentTab=='goods' ? 'tab-active':''}}" data-tab="goods" bindtap="handelTab">限量精品</view>
</view>
<!-- 优惠券列表-->
<view class='coupon-wrap' wx:if="{{integralCouponList.length}}">
<view
class='coupon-list'
...
...
src/subPackage/page/pages/IntegralMallGoods/IntegralMallGoods.wxss
View file @
d35edb65
...
...
@@ -134,3 +134,25 @@ page {
text-align: left;
padding-top: 3rpx;
}
.mall-tab {
height: 80rpx;
display: flex;
align-items: center;
background-color: #fff;
padding: 5rpx 0;
box-sizing: border-box;
margin-top: 10rpx;
}
.tab-coupon, .tab-goods {
flex: 1;
text-align: center;
color: rgba(102, 102, 102, 1);
font-size: 26rpx;
}
.tab-coupon {
border-right: 1rpx solid rgba(102, 102, 102, 1);
}
.tab-active {
color: rgba(5, 195, 91, 1);
}
\ No newline at end of file
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