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
3557992c
Commit
3557992c
authored
Nov 26, 2019
by
谢中龙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改过期积分展示样式
parent
50e8ad4d
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
34 additions
and
4 deletions
+34
-4
coupons.js
src/pages/coupons/coupons.js
+3
-3
integralWater.js
src/pages/integralWater/integralWater.js
+10
-0
integralWater.wxml
src/pages/integralWater/integralWater.wxml
+1
-1
IntegralMallGoods.js
...Package/page/pages/IntegralMallGoods/IntegralMallGoods.js
+10
-0
recordList.wxss
src/subPackage/page/pages/recordList/recordList.wxss
+10
-0
No files found.
src/pages/coupons/coupons.js
View file @
3557992c
...
...
@@ -47,7 +47,7 @@ wxService.page({
this
.
getCouponList
(
1
,
20
,
1
)
}
else
if
(
current
==
1
){
// 失效
this
.
getCouponList
(
1
,
3
0
,
0
)
this
.
getCouponList
(
1
,
2
0
,
0
)
}
},
// 点击切换
...
...
@@ -67,7 +67,7 @@ wxService.page({
this
.
getCouponList
(
1
,
20
,
1
)
}
else
if
(
current
==
1
){
// 失效
this
.
getCouponList
(
1
,
3
0
,
0
)
this
.
getCouponList
(
1
,
2
0
,
0
)
}
},
/**
...
...
@@ -80,7 +80,7 @@ wxService.page({
onShow
()
{
// 可使用 已失效
this
.
getCouponList
(
1
,
20
,
1
)
this
.
getCouponList
(
1
,
3
0
,
0
)
this
.
getCouponList
(
1
,
2
0
,
0
)
},
handelPresentCouponDetail
(
e
)
{
let
{
cardno
}
=
e
.
currentTarget
.
dataset
...
...
src/pages/integralWater/integralWater.js
View file @
3557992c
...
...
@@ -43,12 +43,22 @@ wxService.page({
this
.
data
.
memberPoint
.
total
=
data
.
point
?
data
.
point
:
0
;
this
.
data
.
memberPoint
.
expirePoint
=
data
.
pointWillExpired
?
data
.
pointWillExpired
:
0
;
let
expireDate
=
data
.
pointExpiredTime
?
data
.
pointExpiredTime
:
''
;
if
(
expireDate
){
let
dateStr
=
expireDate
.
replace
(
/-/g
,
'/'
);
let
da
=
new
Date
(
dateStr
);
let
year
=
da
.
getFullYear
();
let
month
=
(
da
.
getMonth
()
+
1
)
<
10
?
'0'
+
(
da
.
getMonth
()
+
1
)
:
da
.
getMonth
()
+
1
;
let
day
=
da
.
getDate
()
<
10
?
'0'
+
da
.
getDate
()
:
da
.
getDate
();
expireDate
=
`
${
year
}
年
${
month
}
月
${
day
}
日`
}
this
.
data
.
memberPoint
.
expireDate
=
expireDate
;
this
.
setData
({
memberPoint
:
this
.
data
.
memberPoint
});
});
},
/**
* 生命周期函数--监听页面显示
*/
...
...
src/pages/integralWater/integralWater.wxml
View file @
3557992c
...
...
@@ -32,7 +32,7 @@
<view wx:if="{{integralList.length}}">
<view class="integral-tips">
<view class="tips-detail">显示你最近30笔变动明细</view>
<
span class="tips-much">这么多积分</span><span class="tips-gomall" bindtap="handleGoIntegralMall"> 去积分商城看看>>> </span
>
<
text class="tips-much">这么多积分</text><text class="tips-gomall" bindtap="handleGoIntegralMall"> 去积分商城看看>>> </text
>
</view>
<!--积分列表-->
<view>
...
...
src/subPackage/page/pages/IntegralMallGoods/IntegralMallGoods.js
View file @
3557992c
...
...
@@ -66,6 +66,16 @@ wxService.page({
this
.
data
.
memberPoint
.
total
=
data
.
point
?
data
.
point
:
0
;
this
.
data
.
memberPoint
.
expirePoint
=
data
.
pointWillExpired
?
data
.
pointWillExpired
:
0
;
let
expireDate
=
data
.
pointExpiredTime
?
data
.
pointExpiredTime
:
''
;
if
(
expireDate
)
{
let
dateStr
=
expireDate
.
replace
(
/-/g
,
'/'
);
let
da
=
new
Date
(
dateStr
);
let
year
=
da
.
getFullYear
();
let
month
=
(
da
.
getMonth
()
+
1
)
<
10
?
'0'
+
(
da
.
getMonth
()
+
1
)
:
da
.
getMonth
()
+
1
;
let
day
=
da
.
getDate
()
<
10
?
'0'
+
da
.
getDate
()
:
da
.
getDate
();
expireDate
=
`
${
year
}
年
${
month
}
月
${
day
}
日`
}
this
.
data
.
memberPoint
.
expireDate
=
expireDate
;
this
.
setData
({
memberPoint
:
this
.
data
.
memberPoint
...
...
src/subPackage/page/pages/recordList/recordList.wxss
View file @
3557992c
...
...
@@ -66,3 +66,12 @@ page{
align-items: center;
justify-content: flex-end;
}
.empty{
padding: 30rpx;
padding-top: 80rpx;
display: flex;
align-items: center;
justify-content: center;
color: #999999;
}
\ 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