2019.1.26 今天把微信小程序的第一页框架做出来了

1 2 3

@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)
}
})

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值