足迹大小控制,报表日期修改

master
Lee 2023-02-16 11:16:07 +08:00
parent 98d89b9623
commit 501a70ea7f
7 changed files with 29 additions and 19 deletions

View File

@ -483,7 +483,8 @@ image{
display: flex;
justify-content: space-between;
align-items: flex-end;
margin-top: -220px;
height: 308px;
margin-top: -255px;
}
.assess-contrast .item{
text-align: center;
@ -497,16 +498,16 @@ image{
color: #327531;
}
.assess-contrast .item:nth-of-type(1){
width: 104px;
width: 130px;
}
.assess-contrast .item:nth-of-type(2){
width: 134px;
width: 130px;
}
.assess-contrast .item:nth-of-type(3){
width: 176px;
width: 168px;
}
.assess-contrast .item:nth-of-type(4){
width: 138px;
width: 130px;
}
.assess-contrast .item:nth-of-type(5){
width: 262px;

View File

@ -86,7 +86,7 @@
<view class="line"></view>
<view class="list">
<view class="item">
<image src="/static/footprint.png" mode="heightFix" :style="{height: averageHeight+'px'}"></image>
<image src="/static/footprint.png" mode="heightFix" :style="{height:averageHeight>=235?'235px':averageHeight+'px'}"></image>
<view>您的碳足迹为</view>
<view><text>{{average}}</text>kg</view>
</view>

View File

@ -120,7 +120,7 @@
'tag': 'a1'
},
{
'title': '洗衣使用量',
'title': '洗衣使用量',
'company': '千克',
'carbon': 1.46,
'num': '',

View File

@ -67,7 +67,7 @@
位体验者
</view>
<view class="item">感谢您参与爱绿行碳普惠平台互动计算碳排放量学习节能降碳等知识践行低碳旅游和生活新风尚用行动守护景区美丽环境</view>
<view class="time">2023年2月15日</view>
<view class="time">{{date}}</view>
</view>
<view class="foot">
<view class="qr">
@ -107,6 +107,7 @@
code:'', //
experients:0, //
difference:0, //
date:'', //
}
},
onLoad() {
@ -137,6 +138,7 @@
let minute = date.getMinutes();
let second = date.getSeconds();
let random = Math.ceil(Math.random() * 99 + 1);
this.date = `${year}${month<10?'0'+month:month}${day<10?'0'+day:day}`;
this.code = `${year.toString().substr(2)}${month<10?'0'+month:month}${day<10?'0'+day:day}${hour<10?'0'+hour:hour}${minute<10?'0'+minute:minute}${second<10?'0'+second:second}${random<10?'0'+random:random}`
},
methods: {

View File

@ -9,7 +9,7 @@
data() {
return {
macStr:'', //mac
allowMac:['B0:CC:FE:9E:D3:4A','F2:6E:B1:A7:3B:B1','00:81:d2:63:0F:80','00:DB:19:F0:1A:F6','00:DB:8A:DB:71:69'], //mac
allowMac:['00:DB:19:F0:1A:F6','00:DB:8A:DB:71:69'], //mac
}
},
onLoad() {

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long