校园报告优化

parent 08c5753d
...@@ -272,7 +272,7 @@ ...@@ -272,7 +272,7 @@
</view> </view>
</view> </view>
</view> </view>
<view v-if="tabIndex==1&&isOpen" class="school-report-context-card-three"> <view v-show="tabIndex==1&&isOpen" class="school-report-context-card-three">
<view class="school-report-context-card-title"> <view class="school-report-context-card-title">
<view class="school-report-context-card-title-img"> <view class="school-report-context-card-title-img">
<text>消费偏好</text> <text>消费偏好</text>
...@@ -289,7 +289,7 @@ ...@@ -289,7 +289,7 @@
<view id="consumer-preferences-pie"> <view id="consumer-preferences-pie">
</view> </view>
</view> </view>
<view v-if="tabIndex==1&&isOpen" class="school-report-context-card-four"> <view v-show="tabIndex==1&&isOpen" class="school-report-context-card-four">
<view class="school-report-context-card-title"> <view class="school-report-context-card-title">
<view class="school-report-context-card-title-img"> <view class="school-report-context-card-title-img">
<text>生活费额度</text> <text>生活费额度</text>
...@@ -341,7 +341,7 @@ ...@@ -341,7 +341,7 @@
</view> </view>
</view> </view>
</view> </view>
<view v-if="tabIndex==1&&isOpen" class="school-report-context-card-five"> <view v-show="tabIndex==1&&isOpen" class="school-report-context-card-five">
<view class="school-report-context-card-title"> <view class="school-report-context-card-title">
<view class="school-report-context-card-title-img"> <view class="school-report-context-card-title-img">
<text>消费趋势</text> <text>消费趋势</text>
...@@ -417,7 +417,7 @@ ...@@ -417,7 +417,7 @@
</van-calendar> </van-calendar>
</view> </view>
</view> </view>
<view v-if="tabIndex==2" class="attendance-report-context-details" <view v-if="tabIndex==2&&isAttendanceOpen" class="attendance-report-context-details"
:style="{height:attendanceReportDatail.length?858:620+'rpx',overflow:attendanceReportDatail.length?'scroll':'none',top:attendanceReportDatail.length?-30:0+'rpx'}"> :style="{height:attendanceReportDatail.length?858:620+'rpx',overflow:attendanceReportDatail.length?'scroll':'none',top:attendanceReportDatail.length?-30:0+'rpx'}">
<view v-for="(detailItem,detailIndex) in attendanceReportDatail" :key="detailIndex"> <view v-for="(detailItem,detailIndex) in attendanceReportDatail" :key="detailIndex">
<view v-if="detailItem.attendIntervalType&&detailItem.attendIntervalType!=-1" <view v-if="detailItem.attendIntervalType&&detailItem.attendIntervalType!=-1"
...@@ -591,7 +591,7 @@ ...@@ -591,7 +591,7 @@
<view id="leave-message-bar"> <view id="leave-message-bar">
</view> </view>
</view> </view>
<view v-if="isOpen||isPubTalkOpen||isAttendanceOpen" class="school-report-footer"> <view v-if="flag!=tabIndex" class="school-report-footer">
<view class="school-report-footer-item"> <view class="school-report-footer-item">
<view class="school-report-footer-item-txt"> <view class="school-report-footer-item-txt">
<text>到期后将无法查看完整报告</text> <text>到期后将无法查看完整报告</text>
...@@ -609,11 +609,11 @@ ...@@ -609,11 +609,11 @@
</view> </view>
</view> </view>
</view> </view>
<view v-if="false" class="no-open" <view v-if="flag==tabIndex" class="no-open"
:style="{height:[915,845,891][tabIndex-1]+'rpx',top:[1425,1099,1260][tabIndex-1]+'rpx'}"> :style="{height:[915,845,891][tabIndex-1]+'rpx',top:[1425,1099,pubTalkNoopenHeight][tabIndex-1]+'rpx'}">
<view class="no-open-solution" @tap="equityPay"> <view class="no-open-solution" @tap="equityPay">
<view class="no-open-solution-txt"> <view class="no-open-solution-txt">
<text>最低{{memberInfo.leastAmount||''}}元/天开通,查看完整{{['消费','出入校','公话'][tabIndex-1]}}报告</text> <text>最低{{memberInfo.leastAmount}}元/天开通,查看完整{{['消费','出入校','公话'][tabIndex-1]}}报告</text>
</view> </view>
<view class="no-open-solution-item"> <view class="no-open-solution-item">
</view> </view>
...@@ -929,11 +929,11 @@ ...@@ -929,11 +929,11 @@
isOpen: false, isOpen: false,
isService: false, isService: false,
// 出入校 // 出入校
isAttendanceOpen: true, isAttendanceOpen: false,
isAttendanceService: true, isAttendanceService: false,
// 公话 // 公话
isPubTalkOpen: true, isPubTalkOpen: false,
isPubTalkService: true, isPubTalkService: false,
flag: 0, flag: 0,
memberInfo: { memberInfo: {
leastAmount: '', leastAmount: '',
...@@ -941,7 +941,8 @@ ...@@ -941,7 +941,8 @@
differDay: '' differDay: ''
}, },
containerHeight: '', containerHeight: '',
pubTalkSummaryHeight: 525 pubTalkSummaryHeight: 525,
pubTalkNoopenHeight:1260
} }
}, },
mounted() { mounted() {
...@@ -961,12 +962,12 @@ ...@@ -961,12 +962,12 @@
}) })
} }
// 有无进出校、公话入口 // 有无进出校、公话入口
// this.queryMemberServcieItem().then(() => { this.queryMemberServcieItem().then(() => {
// if (this.queryMemberServcieItemList.length) { if (this.queryMemberServcieItemList.length) {
// this.isAttendanceService = this.queryMemberServcieItemList.indexOf(3002) == -1 ? false : true; this.isAttendanceService = this.queryMemberServcieItemList.indexOf(3002) == -1 ? false : true;
// this.isPubTalkService = this.queryMemberServcieItemList.indexOf(2002) == -1 ? false : true; this.isPubTalkService = this.queryMemberServcieItemList.indexOf(2002) == -1 ? false : true;
// } }
// }) })
// 消费报告 // 消费报告
this.queryIsDredgeMember(1002).then(() => { this.queryIsDredgeMember(1002).then(() => {
if (this.isOpen) { if (this.isOpen) {
...@@ -1111,7 +1112,7 @@ ...@@ -1111,7 +1112,7 @@
if (this.attendanceReportDatail.length) { if (this.attendanceReportDatail.length) {
this.containerHeight = 2762; this.containerHeight = 2762;
} else { } else {
this.containerHeight = 1904; this.containerHeight = 2524;
} }
}); });
} }
...@@ -2124,6 +2125,7 @@ color: #FF8646;padding:13rpx 12rpx 30rpx 17rpx;`, ...@@ -2124,6 +2125,7 @@ color: #FF8646;padding:13rpx 12rpx 30rpx 17rpx;`,
} else { } else {
this.queryMemberConsumerAmount(serviceItemCode); this.queryMemberConsumerAmount(serviceItemCode);
this.containerHeight = 1605 + this.pubTalkSummaryHeight; this.containerHeight = 1605 + this.pubTalkSummaryHeight;
this.pubTalkNoopenHeight=735+this.pubTalkSummaryHeight;
this.flag = 3; this.flag = 3;
} }
break; break;
...@@ -2135,7 +2137,7 @@ color: #FF8646;padding:13rpx 12rpx 30rpx 17rpx;`, ...@@ -2135,7 +2137,7 @@ color: #FF8646;padding:13rpx 12rpx 30rpx 17rpx;`,
this.flag = 0; this.flag = 0;
} else { } else {
this.queryMemberConsumerAmount(serviceItemCode); this.queryMemberConsumerAmount(serviceItemCode);
this.containerHeight = 1944; this.containerHeight = 1974;
this.flag = 2; this.flag = 2;
} }
break; break;
...@@ -2213,7 +2215,7 @@ color: #FF8646;padding:13rpx 12rpx 30rpx 17rpx;`, ...@@ -2213,7 +2215,7 @@ color: #FF8646;padding:13rpx 12rpx 30rpx 17rpx;`,
}) })
return return
} }
this.memberInfo.leastAmount = data.obj.leastAmount || ''; this.memberInfo.leastAmount = data.obj.leastAmount;
} catch (e) { } catch (e) {
//TODO handle the exception //TODO handle the exception
console.log(e); console.log(e);
...@@ -3064,7 +3066,7 @@ color: #FF8646;padding:13rpx 12rpx 30rpx 17rpx;`, ...@@ -3064,7 +3066,7 @@ color: #FF8646;padding:13rpx 12rpx 30rpx 17rpx;`,
/deep/ .progress-day { /deep/ .progress-day {
color: #DAA000; color: #DAA000;
background: url(../../static/images/progress.png) no-repeat -4rpx center/100%; background: url(../../static/images/progress.png) no-repeat -2rpx center/100%;
border-radius: 22rpx; border-radius: 22rpx;
width: 88rpx; width: 88rpx;
height: 88rpx; height: 88rpx;
...@@ -3276,15 +3278,14 @@ color: #FF8646;padding:13rpx 12rpx 30rpx 17rpx;`, ...@@ -3276,15 +3278,14 @@ color: #FF8646;padding:13rpx 12rpx 30rpx 17rpx;`,
.attendance-report-details-img-item { .attendance-report-details-img-item {
display: flex; display: flex;
align-items: flex-end; justify-content: flex-end;
width: 155rpx; width: 100%;
height: 95rpx; height: 95rpx;
margin: 14rpx 0 0; margin: 14rpx 0 0;
.attendance-report-details-img-box { .attendance-report-details-img-box {
display: flex; width: 155rpx;
justify-content: flex-end; height: 95rpx;
image { image {
width: 100%; width: 100%;
height: 100%; height: 100%;
......
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