生活费额度三图形高度调整提交更新

parent 7efa188a
...@@ -103,7 +103,8 @@ ...@@ -103,7 +103,8 @@
</view> </view>
</view> </view>
<view class="school-report-context-card-one-context-txt"> <view class="school-report-context-card-one-context-txt">
消费 <text class="txt-important">{{consumerAmountObj.consumergrossamount}}</text>元,超过全校 消费 <text
class="txt-important">{{consumerAmountObj.consumergrossamount}}</text>元,超过全校
<text class="txt-important">{{consumerAmountObj.gtgraderate}}%</text> <text class="txt-important">{{consumerAmountObj.gtgraderate}}%</text>
的同学<text v-if="isReasonable">,请及时评估生活费是否合理</text> 的同学<text v-if="isReasonable">,请及时评估生活费是否合理</text>
</view> </view>
...@@ -844,10 +845,10 @@ ...@@ -844,10 +845,10 @@
} }
}, },
mounted() { mounted() {
// if (this.isPeakPeriod()) { if (this.isPeakPeriod()) {
// this.showReport = false; this.showReport = false;
// return return
// } }
this.showReport = true; this.showReport = true;
// 有无消费报告入口 // 有无消费报告入口
if (new Date().getTime() <= new Date('2022/06/30').getTime()) { if (new Date().getTime() <= new Date('2022/06/30').getTime()) {
...@@ -1688,23 +1689,24 @@ color: #FF8646;padding:13rpx 12rpx 30rpx 17rpx;`, ...@@ -1688,23 +1689,24 @@ color: #FF8646;padding:13rpx 12rpx 30rpx 17rpx;`,
}) })
} }
}, },
// 三排序 // 三对象排序
numsort(obj1, obj2, obj3) { numsort(obj1, obj2, obj3) {
obj1.num < obj2.num && ( var temp;
obj1.num = obj1.num ^ obj2.num, if(obj1.num>obj2.num){
obj2.num = obj2.num ^ obj1.num, temp=JSON.parse(JSON.stringify(obj1));
obj1.num = obj1.num ^ obj2.num obj1=JSON.parse(JSON.stringify(obj2));
); obj2.num=JSON.parse(JSON.stringify(temp));
obj2.num < obj3.num && ( }
obj2.num = obj2.num ^ obj3.num, if(obj2.num>obj3.num){
obj3.num = obj3.num ^ obj2.num, temp=JSON.parse(JSON.stringify(obj2));
obj2.num = obj2.num ^ obj3.num obj2=JSON.parse(JSON.stringify(obj3));
); obj3=JSON.parse(JSON.stringify(temp));
obj1.num < obj2.num && ( }
obj1.num = obj1.num ^ obj2.num, if(obj1.num>obj2.num){
obj2.num = obj2.num ^ obj1.num, temp=JSON.parse(JSON.stringify(obj1));
obj1.num = obj1.num ^ obj2.num obj1=JSON.parse(JSON.stringify(obj2));
); obj2=JSON.parse(JSON.stringify(temp));
}
return [{ return [{
name: obj1.name, name: obj1.name,
value: obj1.num, value: obj1.num,
...@@ -1784,12 +1786,13 @@ color: #FF8646;padding:13rpx 12rpx 30rpx 17rpx;`, ...@@ -1784,12 +1786,13 @@ color: #FF8646;padding:13rpx 12rpx 30rpx 17rpx;`,
name: 'gradeAverageHeight', name: 'gradeAverageHeight',
num: this.consumerAmountObj.gradeavgamount num: this.consumerAmountObj.gradeavgamount
}); });
const tempArr = [this.consumerAmountObj.schoolavgamount, this.consumerAmountObj.consumergrossamount, const tempArr = [this.consumerAmountObj.schoolavgamount, this.consumerAmountObj
.consumergrossamount,
this.consumerAmountObj.gradeavgamount this.consumerAmountObj.gradeavgamount
]; ];
const heightArr = Object.keys(this.counterArray(tempArr)).length == 1 ? [139, 139, 139] : ( const heightArr = Object.keys(this.counterArray(tempArr)).length == 1 ? [139, 139, 139] : (
Object.keys(this.counterArray(tempArr)).length == 2 ? [139, 139, 160] : [139, 160, 192] Object.keys(this.counterArray(tempArr)).length == 2 ? [139, 139, 160] : [139, 160, 192]
); );
sortArr.forEach(e => { sortArr.forEach(e => {
this[e.name] = heightArr[e.tag] this[e.name] = heightArr[e.tag]
}) })
...@@ -3357,13 +3360,12 @@ color: #FF8646;padding:13rpx 12rpx 30rpx 17rpx;`, ...@@ -3357,13 +3360,12 @@ color: #FF8646;padding:13rpx 12rpx 30rpx 17rpx;`,
#consumer-trend-line { #consumer-trend-line {
position: absolute; position: absolute;
top: 120rpx; top: 120rpx;
left: 10rpx;
z-index: 100; z-index: 100;
} }
.consumer-trend-line-icon { .consumer-trend-line-icon {
position: absolute; position: absolute;
top: 547rpx; top: 558rpx;
left: 271rpx; left: 271rpx;
height: 40rpx; height: 40rpx;
......
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