| @@ -12,8 +12,8 @@ | |||||
| .text-style { | .text-style { | ||||
| position: relative; | position: relative; | ||||
| width: 139rpx; | width: 139rpx; | ||||
| height: 96rpx; | |||||
| line-height: 96rpx; | |||||
| height: 100rpx; | |||||
| line-height: 100rpx; | |||||
| text-align: center; | text-align: center; | ||||
| font-size: 34rpx; | font-size: 34rpx; | ||||
| font-family: PingFangSC-Semibold; | font-family: PingFangSC-Semibold; | ||||
| @@ -503,16 +503,25 @@ Page({ | |||||
| * flag ==flags | * flag ==flags | ||||
| * 表示从首页onShow进来的 | * 表示从首页onShow进来的 | ||||
| */ | */ | ||||
| if (flag == "flags" && res.data.length > 0) { | |||||
| var listCardNum = res.data[0].carNumber; | |||||
| that.setData({ | |||||
| listCardNum: listCardNum | |||||
| }) | |||||
| /** | |||||
| * 获得停车费用 | |||||
| */ | |||||
| that.getStopFee(listCardNum); | |||||
| } | |||||
| // if (flag == "flags" && res.data.length > 0) { | |||||
| // var listCardNum = res.data[0].carNumber; | |||||
| // that.setData({ | |||||
| // listCardNum: listCardNum | |||||
| // }) | |||||
| // /** | |||||
| // * 获得停车费用 | |||||
| // */ | |||||
| // that.getStopFee(listCardNum); | |||||
| // } | |||||
| var listCardNum = res.data[0].carNumber; | |||||
| that.setData({ | |||||
| listCardNum: listCardNum, | |||||
| current:0 | |||||
| }) | |||||
| /** | |||||
| * 获得停车费用 | |||||
| */ | |||||
| that.getStopFee(listCardNum); | |||||
| }) | }) | ||||
| .catch(err => { | .catch(err => { | ||||
| wx.showToast({ | wx.showToast({ | ||||
| @@ -10,6 +10,7 @@ Page({ | |||||
| wmhome: imgurl.wmhome.url, | wmhome: imgurl.wmhome.url, | ||||
| wmdiscount: imgurl.wmdiscount.url, | wmdiscount: imgurl.wmdiscount.url, | ||||
| wmgive: imgurl.wmgive.url, | wmgive: imgurl.wmgive.url, | ||||
| key:0, | |||||
| tabs: [ | tabs: [ | ||||
| { | { | ||||
| key: 0, | key: 0, | ||||
| @@ -54,12 +55,18 @@ Page({ | |||||
| let that = this; | let that = this; | ||||
| let variable; | let variable; | ||||
| if(key == 0){ | if(key == 0){ | ||||
| that.setData({ | |||||
| key:0 | |||||
| }) | |||||
| variable = { | variable = { | ||||
| pageNum: pageNum, | pageNum: pageNum, | ||||
| pageSize: 15, | pageSize: 15, | ||||
| statusStr:"0,1,2" | statusStr:"0,1,2" | ||||
| }; | }; | ||||
| }else if(key == 1){ | }else if(key == 1){ | ||||
| that.setData({ | |||||
| key: 1 | |||||
| }) | |||||
| variable = { | variable = { | ||||
| pageNum: pageNum, | pageNum: pageNum, | ||||
| pageSize: 15, | pageSize: 15, | ||||
| @@ -100,7 +107,6 @@ Page({ | |||||
| var tmpArr = that.data.list; | var tmpArr = that.data.list; | ||||
| tmpArr.push.apply(tmpArr, res.data.list); | tmpArr.push.apply(tmpArr, res.data.list); | ||||
| // 将砍价的状态过滤出来 | // 将砍价的状态过滤出来 | ||||
| console.log(tmpArr) | |||||
| that.setData({ | that.setData({ | ||||
| list: tmpArr | list: tmpArr | ||||
| }) | }) | ||||
| @@ -11,9 +11,9 @@ | |||||
| <view class='info'> | <view class='info'> | ||||
| <view>{{item.title}}</view> | <view>{{item.title}}</view> | ||||
| <view> | <view> | ||||
| <text wx:if="{{item.status == 0}}" style='font-size:30rpx;font-weight:bold;'>报名中</text> | |||||
| <text wx:if="{{item.status == 1}}" style='font-size:30rpx;font-weight:bold;'>报名成功</text> | |||||
| <text wx:if="{{item.status == 2}}" style='font-size:30rpx;font-weight:bold;'>报名失败</text> | |||||
| <text wx:if="{{item.status == 0&&key==0}}" style='font-size:30rpx;font-weight:bold;'>报名中</text> | |||||
| <text wx:if="{{item.status == 1&&key==0}}" style='font-size:30rpx;font-weight:bold;'>报名成功</text> | |||||
| <text wx:if="{{item.status == 2&&key==0}}" style='font-size:30rpx;font-weight:bold;'>报名失败</text> | |||||
| <text>活动开始日期:{{item.activityStartTime}}</text> | <text>活动开始日期:{{item.activityStartTime}}</text> | ||||
| <text>活动结束日期:{{item.activityEndTime}}</text> | <text>活动结束日期:{{item.activityEndTime}}</text> | ||||
| </view> | </view> | ||||