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
cf32a757
Commit
cf32a757
authored
Dec 21, 2019
by
谢中龙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改积分兑换记录bug
parent
683c6c25
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
78 additions
and
91 deletions
+78
-91
coupons.js
src/pages/coupons/coupons.js
+3
-1
integralWater.js
src/pages/integralWater/integralWater.js
+3
-1
project.config.json
src/project.config.json
+6
-1
IntegralMallGoods.js
...Package/page/pages/IntegralMallGoods/IntegralMallGoods.js
+1
-0
IntegralMallGoods.wxml
...ckage/page/pages/IntegralMallGoods/IntegralMallGoods.wxml
+21
-15
IntegralMallGoods.wxss
...ckage/page/pages/IntegralMallGoods/IntegralMallGoods.wxss
+9
-58
IntegrateGoodsExchangeInfo.js
.../IntegrateGoodsExchangeInfo/IntegrateGoodsExchangeInfo.js
+13
-13
IntegrateGoodsExchangeInfo.wxml
...ntegrateGoodsExchangeInfo/IntegrateGoodsExchangeInfo.wxml
+2
-0
recordList.js
src/subPackage/page/pages/recordList/recordList.js
+12
-1
recordList.json
src/subPackage/page/pages/recordList/recordList.json
+5
-1
recordList.wxml
src/subPackage/page/pages/recordList/recordList.wxml
+3
-0
No files found.
src/pages/coupons/coupons.js
View file @
cf32a757
...
@@ -73,7 +73,9 @@ wxService.page({
...
@@ -73,7 +73,9 @@ wxService.page({
/**
/**
* 生命周期函数--监听页面加载
* 生命周期函数--监听页面加载
*/
*/
onLoad
()
{},
onLoad
()
{
wx
.
hideShareMenu
();
},
/**
/**
* 生命周期函数--监听页面显示
* 生命周期函数--监听页面显示
*/
*/
...
...
src/pages/integralWater/integralWater.js
View file @
cf32a757
...
@@ -23,7 +23,9 @@ wxService.page({
...
@@ -23,7 +23,9 @@ wxService.page({
/**
/**
* 生命周期函数--监听页面加载
* 生命周期函数--监听页面加载
*/
*/
onLoad
()
{},
onLoad
()
{
wx
.
hideShareMenu
();
},
/**
/**
* 生命周期函数--监听页面初次渲染完成
* 生命周期函数--监听页面初次渲染完成
*/
*/
...
...
src/project.config.json
View file @
cf32a757
...
@@ -39,7 +39,7 @@
...
@@ -39,7 +39,7 @@
"list"
:
[]
"list"
:
[]
},
},
"miniprogram"
:
{
"miniprogram"
:
{
"current"
:
2
0
,
"current"
:
2
1
,
"list"
:
[
"list"
:
[
{
{
"id"
:
-1
,
"id"
:
-1
,
...
@@ -173,6 +173,11 @@
...
@@ -173,6 +173,11 @@
"name"
:
"积分换物记录"
,
"name"
:
"积分换物记录"
,
"pathName"
:
"subPackage/page/pages/recordList/recordList"
,
"pathName"
:
"subPackage/page/pages/recordList/recordList"
,
"query"
:
""
"query"
:
""
},
{
"id"
:
-1
,
"name"
:
"积分商城新"
,
"pathName"
:
"subPackage/page/pages/IntegralMallGoods/IntegralMallGoods"
}
}
]
]
}
}
...
...
src/subPackage/page/pages/IntegralMallGoods/IntegralMallGoods.js
View file @
cf32a757
...
@@ -27,6 +27,7 @@ wxService.page({
...
@@ -27,6 +27,7 @@ wxService.page({
* 生命周期函数--监听页面加载
* 生命周期函数--监听页面加载
*/
*/
onLoad
:
function
(
options
)
{
onLoad
:
function
(
options
)
{
wx
.
hideShareMenu
();
this
.
initIntegralCouponList
();
this
.
initIntegralCouponList
();
this
.
initIntegralProductList
();
this
.
initIntegralProductList
();
},
},
...
...
src/subPackage/page/pages/IntegralMallGoods/IntegralMallGoods.wxml
View file @
cf32a757
<!--pages/userCenter.wxml-->
<!--pages/userCenter.wxml-->
<view class='page-integral-mall' style="padding-bottom: {{currentTab =='goods' ? '70rpx' : '40rpx'}}">
<view class='page-integral-mall' style="padding-bottom: {{currentTab =='goods' ? '80rpx' : '40rpx'}}">
<!-- 新布局 -->
<!-- title -->
<view class='new-container'>
<view class='mall-title'>
<view class='new-container-lf'>
<view class='title-num-point'>
<view class='new-point-info'>
<view class='title-img-point'>
<image class="point-img" src='/assets/imgs/point.png' mode="widthFix" />
<view class='img-point'>
<label class='text-point'>{{memberPoint.total}}</label>
<image class="point-img" src='/assets/imgs/integral_exchange/point.png' mode="widthFix" />
</view>
</view>
<view class='title-time-point' wx:if="{{memberPoint.expirePoint > 0}}">
<view class='text-point'>
{{memberPoint.expirePoint}} 积分将于 {{memberPoint.expireDate}} 清零
{{memberPoint.total}}
</view>
</view>
<view class='title-time-point' wx:if="{{memberPoint.expirePoint == 0}}">暂无将过期积分</view>
</view>
<view class='integral-vip-rules' wx:if="{{integralCouponList.length}}" bindtap="handleGoMemberRulesRules">会员规则</view>
</view>
<view class='title-time-point' wx:if="{{memberPoint.expirePoint > 0}}">
{{memberPoint.expirePoint}} 积分将于 {{memberPoint.expireDate}} 清零
</view>
</view>
<view class='
new-container-rg'
>
<view class='
title-time-point' wx:if="{{memberPoint.expirePoint == 0}}"
>
<view class='new-integral-vip-rules' wx:if="{{integralCouponList.length}}" bindtap="handleGoMemberRulesRules">会员规则</view>
暂无将过期积分
</view>
</view>
</view>
</view>
<!-- tab -->
<!-- tab -->
<view class='mall-tab' wx:if="{{integralGoodsList.length > 0}}">
<view class='mall-tab' wx:if="{{integralGoodsList.length > 0}}">
...
@@ -110,6 +114,8 @@
...
@@ -110,6 +114,8 @@
<exchange-coupon-modal exchangeId="{{exchangeId}}" exchangePoint="{{exchangePoint}}" isExchange='{{isExchange}}' />
<exchange-coupon-modal exchangeId="{{exchangeId}}" exchangePoint="{{exchangePoint}}" isExchange='{{isExchange}}' />
<!--<no-more wx:if="{{noMore}}"/>-->
<!--<no-more wx:if="{{noMore}}"/>-->
<!--goHome-->
<go-home/>
</view>
</view>
<!-- 库存没了 -->
<!-- 库存没了 -->
<dialog-stock-empty show="{{dialogStockEmpty}}"/>
<dialog-stock-empty show="{{dialogStockEmpty}}"/>
...
...
src/subPackage/page/pages/IntegralMallGoods/IntegralMallGoods.wxss
View file @
cf32a757
...
@@ -23,61 +23,6 @@ page {
...
@@ -23,61 +23,6 @@ page {
font-size: 28rpx;
font-size: 28rpx;
}
}
/* 新布局开始 */
.new-container{
height: 150rpx;
padding-left: 50rpx;
padding-right: 42rpx;
box-sizing: border-box;
background-color: rgba(255, 255, 255, 1);
box-shadow: 0px 0px 8px 5px rgba(0, 0, 0, 0.05),
0px 0px 3px 0px rgba(0, 0, 0, 0.03);
display: flex;
justify-content: space-between;
align-items: center;
}
.new-container .new-container-lf{
display: flex;
flex-direction: column;
justify-content: center;
}
.new-container .new-container-lf .new-point-info{
display: flex;
align-items: center;
}
.new-container .new-container-lf .new-point-info image{
width:28rpx;
height:36rpx;
margin-right: 10rpx;
}
.new-container .new-container-rg{
}
.new-container .new-container-rg .new-integral-vip-rules{
width: 133rpx;
height: 42rpx;
line-height: 42rpx;
border-radius: 34rpx;
font-size: 23rpx;
text-align: center;
border: 1px solid rgba(204, 204, 204, 1);
}
.title-time-point {
color: rgba(102, 102, 102, 1);
font-size: 22rpx;
text-align: left;
margin-top: 8rpx;
}
/* 新布局结束 */
/* 卡劵列表 */
/* 卡劵列表 */
.coupon-wrap {
.coupon-wrap {
padding: 20rpx;
padding: 20rpx;
...
@@ -201,11 +146,11 @@ page {
...
@@ -201,11 +146,11 @@ page {
display: flex;
display: flex;
justify-content: center;
justify-content: center;
align-items: center;
align-items: center;
height:
7
0rpx;
height:
8
0rpx;
position: fixed;
position: fixed;
left: 0;
left: 0;
bottom: 0;
bottom: 0;
background: r
ed
;
background: r
gba(0, 0, 0, 0.65)
;
z-index: 2;
z-index: 2;
width: 100%;
width: 100%;
}
}
...
@@ -243,7 +188,13 @@ page {
...
@@ -243,7 +188,13 @@ page {
text-align: center;
text-align: center;
border: 1px solid rgba(204, 204, 204, 1);
border: 1px solid rgba(204, 204, 204, 1);
}
}
.title-time-point {
color: rgba(102, 102, 102, 1);
font-size: 20rpx;
text-align: left;
padding-top: 3rpx;
margin-top: 15rpx;
}
.mall-tab {
.mall-tab {
height: 80rpx;
height: 80rpx;
...
...
src/subPackage/page/pages/IntegrateGoodsExchangeInfo/IntegrateGoodsExchangeInfo.js
View file @
cf32a757
...
@@ -11,7 +11,7 @@ wxService.page({
...
@@ -11,7 +11,7 @@ wxService.page({
*/
*/
data
:
{
data
:
{
isExchange
:
false
,
isExchange
:
false
,
dialogUserLimit
:
false
,
dialogUserLimit
:
false
,
integralMallDetail
:
{}
integralMallDetail
:
{}
},
},
...
@@ -33,18 +33,18 @@ wxService.page({
...
@@ -33,18 +33,18 @@ wxService.page({
title
:
'检查兑换资格中..'
,
title
:
'检查兑换资格中..'
,
});
});
wxService
.
post
(
`/member/pointsRedemptionProductRecord/checkByMemberIdAndSettingId?memberId=
${
memberId
}
&settingId=
${
id
}
`
).
wxService
.
post
(
`/member/pointsRedemptionProductRecord/checkByMemberIdAndSettingId?memberId=
${
memberId
}
&settingId=
${
id
}
`
).
then
(
res
=>
{
then
(
res
=>
{
if
(
res
.
data
.
data
==
-
1
)
{
if
(
res
.
data
.
data
==
-
1
)
{
this
.
setData
({
this
.
setData
({
dialogUserLimit
:
true
dialogUserLimit
:
true
})
})
}
}
else
{
else
{
wx
.
navigateTo
({
wx
.
navigateTo
({
url
:
'/subPackage/page/pages/exchangeAddress/exchangeAddress?id='
+
id
,
url
:
'/subPackage/page/pages/exchangeAddress/exchangeAddress?id='
+
id
,
});
});
}
}
});
});
},
},
//获取积分兑换优惠券详情
//获取积分兑换优惠券详情
...
...
src/subPackage/page/pages/IntegrateGoodsExchangeInfo/IntegrateGoodsExchangeInfo.wxml
View file @
cf32a757
...
@@ -24,4 +24,6 @@
...
@@ -24,4 +24,6 @@
<view class="position-bottom">
<view class="position-bottom">
<button type='primary' class="redeem-now" bindtap='exchange'>立即兑换</button>
<button type='primary' class="redeem-now" bindtap='exchange'>立即兑换</button>
</view>
</view>
<!--goHome-->
<go-home/>
<dialog-user-limit show="{{dialogUserLimit}}"/>
<dialog-user-limit show="{{dialogUserLimit}}"/>
src/subPackage/page/pages/recordList/recordList.js
View file @
cf32a757
...
@@ -11,13 +11,15 @@ wxService.page({
...
@@ -11,13 +11,15 @@ wxService.page({
pageSize
:
10
,
pageSize
:
10
,
totalPage
:
0
,
totalPage
:
0
,
recordList
:
[],
recordList
:
[],
hasMore
:
false
hasMore
:
false
,
userIsNotLogin
:
false
},
},
/**
/**
* 生命周期函数--监听页面加载
* 生命周期函数--监听页面加载
*/
*/
onLoad
:
function
(
options
)
{
onLoad
:
function
(
options
)
{
wx
.
hideShareMenu
();
wx
.
showLoading
({
wx
.
showLoading
({
title
:
'正在加载数据..'
,
title
:
'正在加载数据..'
,
});
});
...
@@ -38,6 +40,15 @@ wxService.page({
...
@@ -38,6 +40,15 @@ wxService.page({
const
{
memberId
}
=
wx
.
getStorageSync
(
'_baseUserInfo'
)
const
{
memberId
}
=
wx
.
getStorageSync
(
'_baseUserInfo'
)
let
pageNo
=
this
.
data
.
pageNo
,
let
pageNo
=
this
.
data
.
pageNo
,
pageSize
=
this
.
data
.
pageSize
;
pageSize
=
this
.
data
.
pageSize
;
if
(
!
memberId
){
//提示错误
this
.
setData
({
userIsNotLogin
:
true
});
return
;
}
wxService
.
post
(
`/member/pointsRedemptionProductRecord/page?pageNo=
${
pageNo
}
&pageSize=
${
pageSize
}
`
,{
wxService
.
post
(
`/member/pointsRedemptionProductRecord/page?pageNo=
${
pageNo
}
&pageSize=
${
pageSize
}
`
,{
memberId
:
memberId
memberId
:
memberId
}).
then
(
res
=>
{
}).
then
(
res
=>
{
...
...
src/subPackage/page/pages/recordList/recordList.json
View file @
cf32a757
{
{
"navigationBarTitleText"
:
"兑换记录"
"navigationBarTitleText"
:
"兑换记录"
,
"usingComponents"
:
{
"authorization-modal"
:
"/component/authorization-modal/authorization-modal"
}
}
}
\ No newline at end of file
src/subPackage/page/pages/recordList/recordList.wxml
View file @
cf32a757
...
@@ -28,3 +28,6 @@
...
@@ -28,3 +28,6 @@
</view>
</view>
<view class='empty' wx:if="{{recordList.length == 0 }}">无任何兑换记录~</view>
<view class='empty' wx:if="{{recordList.length == 0 }}">无任何兑换记录~</view>
<!-- 登录 -->
<authorization-modal isAuthorization='{{userIsNotLogin}}'/>
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