@import “…/lib/weui.wxss”;
.section__ctn{
text-align: center;
}
.page{
width: 100%;
padding:0;
overflow: hidden;
}
.page__hd{
width:100%;
background: yellow;
padding: 0;
}
.line_fbox{
width: 100%;
background: rgb(119, 44, 22);
height: 230px;
}
.picture{
width: 60px;
background: white;
height: 60px;
margin: auto;
overflow: hidden;
margin-top:20rpx;
border-radius:40px;
}
.miles{
width: 350rpx;
float: left;
height: 150px;
background: white;
padding: 0;
margin-bottom:0;
border-radius:10px;
margin: 5px;
}
.points{
width: 350rpx;
float: right;
height: 150px;
background: white ;
padding: 0;
margin-bottom:0;
border-radius:10px;
margin: 5px;
}
.line_sbox{
width: 100%;
background: lightgoldenrodyellow;
height: 180px;
margin-bottom:3px;
}
.line_tbox{
width: 100%;
background: rgb(165, 142, 226);
overflow: hidden;
height: 130px;
position: absolute;
}
.page-section{
margin-bottom: 20rpx;
}
.flex-wrp {
display: flex;
width: 100%;
background:yellow;
}
.bc_green {background: green;width:33%; height:120px ;}
.bc_red {background: red;width:34%; height: 120px;}
.bc_blue {background: blue;width:33%; height: 120px;}
Page({
data: {
array: [{
mode: ‘scaleToFill’,
text: ‘scaleToFill:不保持纵横比缩放图片,使图片完全适应’
}, {
mode: ‘aspectFit’,
text: ‘aspectFit:保持纵横比缩放图片,使图片的长边能完全显示出来’
}, {
mode: ‘aspectFill’,
text: ‘aspectFill:保持纵横比缩放图片,只保证图片的短边能完全显示出来’
}, {
mode: ‘top’,
text: ‘top:不缩放图片,只显示图片的顶部区域’
}, {
mode: ‘bottom’,
text: ‘bottom:不缩放图片,只显示图片的底部区域’
}, {
mode: ‘center’,
text: ‘center:不缩放图片,只显示图片的中间区域’
}, {
mode: ‘left’,
text: ‘left:不缩放图片,只显示图片的左边区域’
}, {
mode: ‘right’,
text: ‘right:不缩放图片,只显示图片的右边边区域’
}, {
mode: ‘top left’,
text: ‘top left:不缩放图片,只显示图片的左上边区域’
}, {
mode: ‘top right’,
text: ‘top right:不缩放图片,只显示图片的右上边区域’
}, {
mode: ‘bottom left’,
text: ‘bottom left:不缩放图片,只显示图片的左下边区域’
}, {
mode: ‘bottom right’,
text: ‘bottom right:不缩放图片,只显示图片的右下边区域’
}],
src: ‘https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1548357840346&di=73508a8992bf65c1b12890a56e813766&imgtype=0&src=http%3A%2F%2Fd.ifengimg.com%2Fw600%2Fp0.ifengimg.com%2Fpmop%2F2018%2F0410%2FD86E6D6C70A2CC71F2601F17B670ABA4EAA9721A_size38_w800_h800.jpeg’
},
imageError: function (e) {
console.log(‘image3发生error事件,携带值为’, e.detail.errMsg)
}
})