3,154
社区成员




data: {
notInMotto :"必须登陆才可以浏览失物信息",
userInfo: {},
schoolBackground:"cloud://mychd-find-4s9do.6d79-mychd-find-4s9do-1301544649/系统媒体文件/长大背景/校本部教学楼.jpg"
},
在前端页面用数据绑定实现展示:
<view>
<image class="backgroundPic" src='{{schoolBackground}}' mode="aspectFill"></image>
</view>
前端css代码:
.backgroundPic{
width: 100%;
height:100%;
position:fixed;
background-size: 100% 100%;
z-index:-1;
}
小程序背景设置可以查看我的博客https://blog.csdn.net/sika_deer/article/details/108300663