1. 如何调用?
<modal showPopup="{
{true}}">
<view slot="content">
<image class="page_logo" src='/image/hbgg0526.png' mode="widthFix" style="width: 100%;"></image>
</view>
</modal>
2. 组件封装
<!--components/modal/modal.wxml-->
<!-- 弹窗组件-start -->
<view class="popup-container" catchtouchmove="{
{true}}" wx:if="{
{showPopup}}">
<!-- 背景遮罩层 -->
<view class="popup-mask" catch:tap="hidePopup"></view>
<!-- 弹窗内容 -->
<view class="popup-content">
<view class="popup-top-box">
<slot name="title"></slot>
</view>
<view class="tag-box">
<slot name="content">