解决方案:
<!-- WXML 示例 -->
<view class="container"><image class="bg-image" src="/static/local-image.png"></image><!-- 页面内容 --><view class="content">其他元素</view>
</view>
/* WXSS 示例 */
.container {position: relative;width: 100vw;height: 100vh;
}
.bg-image {position: absolute;width: 100%;height: 100%;z-index: 1;
}
.content {position: relative;z-index: 1;
}