Commit cf32a757 by 谢中龙

修改积分兑换记录bug

parent 683c6c25
...@@ -73,7 +73,9 @@ wxService.page({ ...@@ -73,7 +73,9 @@ wxService.page({
/** /**
* 生命周期函数--监听页面加载 * 生命周期函数--监听页面加载
*/ */
onLoad () {}, onLoad () {
wx.hideShareMenu();
},
/** /**
* 生命周期函数--监听页面显示 * 生命周期函数--监听页面显示
*/ */
......
...@@ -23,7 +23,9 @@ wxService.page({ ...@@ -23,7 +23,9 @@ wxService.page({
/** /**
* 生命周期函数--监听页面加载 * 生命周期函数--监听页面加载
*/ */
onLoad() {}, onLoad() {
wx.hideShareMenu();
},
/** /**
* 生命周期函数--监听页面初次渲染完成 * 生命周期函数--监听页面初次渲染完成
*/ */
......
...@@ -39,7 +39,7 @@ ...@@ -39,7 +39,7 @@
"list": [] "list": []
}, },
"miniprogram": { "miniprogram": {
"current": 20, "current": 21,
"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"
} }
] ]
} }
......
...@@ -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();
}, },
......
<!--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 class='text-point'>
{{memberPoint.total}}
</view>
</view>
<view class='integral-vip-rules' wx:if="{{integralCouponList.length}}" bindtap="handleGoMemberRulesRules">会员规则</view>
</view> </view>
<view class='title-time-point' wx:if="{{memberPoint.expirePoint > 0}}"> <view class='title-time-point' wx:if="{{memberPoint.expirePoint > 0}}">
{{memberPoint.expirePoint}} 积分将于 {{memberPoint.expireDate}} 清零 {{memberPoint.expirePoint}} 积分将于 {{memberPoint.expireDate}} 清零
</view> </view>
<view class='title-time-point' wx:if="{{memberPoint.expirePoint == 0}}">暂无将过期积分</view> <view class='title-time-point' wx:if="{{memberPoint.expirePoint == 0}}">
</view> 暂无将过期积分
<view class='new-container-rg'>
<view class='new-integral-vip-rules' wx:if="{{integralCouponList.length}}" bindtap="handleGoMemberRulesRules">会员规则</view>
</view> </view>
</view> </view>
...@@ -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}}"/>
......
...@@ -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: 70rpx; height: 80rpx;
position: fixed; position: fixed;
left: 0; left: 0;
bottom: 0; bottom: 0;
background: red; background: rgba(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;
......
...@@ -11,7 +11,7 @@ wxService.page({ ...@@ -11,7 +11,7 @@ wxService.page({
*/ */
data: { data: {
isExchange: false, isExchange: false,
dialogUserLimit : false, dialogUserLimit: false,
integralMallDetail: {} integralMallDetail: {}
}, },
......
...@@ -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}}"/>
...@@ -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 => {
......
{ {
"navigationBarTitleText": "兑换记录" "navigationBarTitleText": "兑换记录",
"usingComponents": {
"authorization-modal": "/component/authorization-modal/authorization-modal"
}
} }
\ No newline at end of file
...@@ -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}}'/>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment