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
21a899dd
Commit
21a899dd
authored
May 24, 2019
by
赵雅纹
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev' into feature-zyw
parents
e2d26544
5c916155
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
42 additions
and
26 deletions
+42
-26
consumptionDetails.js
src/pages/consumptionDetails/consumptionDetails.js
+2
-1
integralWater.js
src/pages/integralWater/integralWater.js
+15
-11
integralWater.wxml
src/pages/integralWater/integralWater.wxml
+9
-9
integralWater.wxss
src/pages/integralWater/integralWater.wxss
+14
-3
Http.js
src/utils/Http.js
+2
-2
No files found.
src/pages/consumptionDetails/consumptionDetails.js
View file @
21a899dd
...
@@ -37,7 +37,8 @@ wxService.page({
...
@@ -37,7 +37,8 @@ wxService.page({
* 生命周期函数--监听页面显示
* 生命周期函数--监听页面显示
*/
*/
onShow
:
function
()
{
onShow
:
function
()
{
const
options
=
this
.
options
console
.
log
(
'options'
,
options
.
memberid
)
},
},
initOrderDetail
(){
initOrderDetail
(){
...
...
src/pages/integralWater/integralWater.js
View file @
21a899dd
...
@@ -11,7 +11,8 @@ wxService.page({
...
@@ -11,7 +11,8 @@ wxService.page({
data
:
{
data
:
{
integralNum
:
1246
,
integralNum
:
1246
,
pageNo
:
1
,
pageNo
:
1
,
pageSize
:
30
pageSize
:
30
,
integralList
:
[]
},
},
/**
/**
* 生命周期函数--监听页面加载
* 生命周期函数--监听页面加载
...
@@ -32,19 +33,21 @@ wxService.page({
...
@@ -32,19 +33,21 @@ wxService.page({
},
},
getIntegralList
()
{
getIntegralList
()
{
// wx.showLoading({
wx
.
showLoading
({
// title: '加载中'
title
:
'加载中'
// })
})
const
params
=
{
const
params
=
{
pageNo
:
this
.
data
.
pageNo
,
pageNo
:
this
.
data
.
pageNo
,
pageSize
:
this
.
data
.
pageSize
pageSize
:
this
.
data
.
pageSize
}
}
wxService
.
post
(
`/member/memberPointLog/findPage?pageNo=
${
this
.
data
.
pageNo
}
&pageSize=
${
this
.
data
.
pageSize
}
`
,
params
).
then
(
res
=>
{
wxService
.
post
(
`/member/memberPointLog/findPage?pageNo=
${
this
.
data
.
pageNo
}
&pageSize=
${
this
.
data
.
pageSize
}
`
,
params
).
then
(
res
=>
{
// const {code,data} = res.data
const
{
result
,
data
}
=
res
.
data
// if(code == 200){
if
(
result
==
0
){
// wx.hideLoading()
wx
.
hideLoading
()
// }
this
.
setData
({
integralList
:
data
.
content
.
slice
(
0
,
30
)
})
}
})
})
},
},
// 点击跳转至会员规则页
// 点击跳转至会员规则页
...
@@ -56,8 +59,9 @@ wxService.page({
...
@@ -56,8 +59,9 @@ wxService.page({
wxService
.
router
(
`/pages/IntegralMall/IntegralMall`
)
wxService
.
router
(
`/pages/IntegralMall/IntegralMall`
)
},
},
// 消费详情
// 消费详情
handleGoDetail
()
{
handleGoDetail
(
e
)
{
wxService
.
router
(
`/pages/consumptionDetails/consumptionDetails`
)
const
{
memberid
}
=
e
.
currentTarget
.
dataset
wxService
.
router
(
`/pages/consumptionDetails/consumptionDetails`
).
search
({
memberid
})
},
},
/**
/**
* 生命周期函数--监听页面隐藏
* 生命周期函数--监听页面隐藏
...
...
src/pages/integralWater/integralWater.wxml
View file @
21a899dd
...
@@ -8,24 +8,24 @@
...
@@ -8,24 +8,24 @@
<view class="integral-vip-rules" bindtap="handleGoMemberRulesRules">会员规则</view>
<view class="integral-vip-rules" bindtap="handleGoMemberRulesRules">会员规则</view>
</view>
</view>
<view class="detail-list-no">还没有任何积分记录</view>
<view
wx:if="{{!integralList.length}}"
class="detail-list-no">还没有任何积分记录</view>
<view>
<view
wx:if="{{integralList.length}}"
>
<view class="integral-tips">
<view class="integral-tips">
<view class="tips-detail">显示你最近30笔变动明细</view>
<view class="tips-detail">显示你最近30笔变动明细</view>
<span class="tips-much">这么多积分</span><span class="tips-gomall" bindtap="handleGoIntegralMall"> 去积分商城看看>>> </span>
<span class="tips-much">这么多积分</span><span class="tips-gomall" bindtap="handleGoIntegralMall"> 去积分商城看看>>> </span>
</view>
</view>
<!--积分列表-->
<!--积分列表-->
<view>
<view>
<view class="detail-integral" bindtap="handleGoDetail">
<view class="detail-integral"
wx:for="{{integralList}}" wx:for-item="item" data-memberId = "{{item.memberId}}" wx:for-index="k" wx:key="{{k}}"
bindtap="handleGoDetail">
<view>
<view>
<view class="detail-title">
购物送积分
</view>
<view class="detail-title">
{{item.changeChannel}}
</view>
<view class="detail-time">
2019-01-01
</view>
<view class="detail-time">
{{item.createTime}}
</view>
</view>
</view>
<view class="detail-num">+10</view>
<view class="detail-num" wx:if="{{item.operation}}">+ {{item.changeValue}}</view>
<view class="detail-num minus" wx:if="{{!item.operation}}">- {{item.changeValue}}</view>
</view>
</view>
</view>
<view class="detail-list-bottom">-已经到底啦-</view>
<view class="detail-list-bottom">-已经到底啦-</view>
</view>
</view>
</view>
</view>
</view>
src/pages/integralWater/integralWater.wxss
View file @
21a899dd
/* pages/integralWater.wxss */
/* pages/integralWater.wxss */
.integral{
.integral{
margin: 30rpx;
margin: 30rpx;
padding-bottom: 50rpx;
}
}
.integral-detail{
.integral-detail{
border-radius: 10rpx;
border-radius: 10rpx;
...
@@ -59,6 +60,7 @@
...
@@ -59,6 +60,7 @@
.detail-title {
.detail-title {
font-size: 25rpx;
font-size: 25rpx;
color: #666;
color: #666;
line-height: 50rpx;
}
}
.detail-time{
.detail-time{
font-size: 25rpx;
font-size: 25rpx;
...
@@ -67,23 +69,31 @@
...
@@ -67,23 +69,31 @@
.detail-num{
.detail-num{
font-size: 25rpx;
font-size: 25rpx;
color: #fc921e;
color: #fc921e;
text-align: left;
width:130rpx;
}
}
.detail-integral{
.detail-integral{
display: flex;
display: flex;
justify-content: space-between;
justify-content: space-between;
padding: 0 60rpx 0 30rpx;
padding: 0 60rpx 0 30rpx;
margin-bottom: 20rpx;
}
}
.detail-list-bottom {
.detail-list-bottom {
text-align: center;
text-align: center;
font-size: 21rpx;
font-size: 21rpx;
color: #bfbfbf;
color: #bfbfbf;
position: absolute;
margin-top: 45rpx;
bottom: 28rpx;
/* position: absolute; */
left: 45%;
/* bottom: 28rpx; */
/* left: 45%; */
}
}
.detail-list-no {
.detail-list-no {
font-size: 24rpx;
font-size: 24rpx;
color: #333;
color: #333;
padding-top: 200rpx;
padding-top: 200rpx;
text-align: center;
text-align: center;
}
.minus {
color: #000
}
}
\ No newline at end of file
src/utils/Http.js
View file @
21a899dd
...
@@ -85,7 +85,7 @@ class Http {
...
@@ -85,7 +85,7 @@ class Http {
method
:
'GET'
,
method
:
'GET'
,
header
:
{
header
:
{
// 'buyer-token': this.getToken()
// 'buyer-token': this.getToken()
'buyer-token'
:
'2e72711cc202bb9c5dd7c277ee4f2b59'
//
'buyer-token': '2e72711cc202bb9c5dd7c277ee4f2b59'
},
},
data
:
parmas
data
:
parmas
})
})
...
@@ -97,7 +97,7 @@ class Http {
...
@@ -97,7 +97,7 @@ class Http {
method
:
'POST'
,
method
:
'POST'
,
header
:
{
header
:
{
// 'buyer-token': wx.getStorageSync('token')
// 'buyer-token': wx.getStorageSync('token')
'buyer-token'
:
'2e72711cc202bb9c5dd7c277ee4f2b59'
//
'buyer-token':'2e72711cc202bb9c5dd7c277ee4f2b59'
},
},
data
:
parmas
,
data
:
parmas
,
channel
:
channel
channel
:
channel
...
...
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