微信小程序:自定义滚动弹窗
微信小程序:自定义滚动弹窗 微信小程序虽然有三种自带的弹窗,但是毕竟功能有限,有时候难以满足我们的需求,所以我们可以自己尝试制作自定义弹窗,话不多说,直接上图: 其中列表部分支持滚动,所以信息承载能力很强。 实现代码: wxml: < button class = " showModal " bindtap = " showModal_click " > 唤出弹窗 </ button > <!--弹窗--> < view class = " modal-mask " bindtap = " hideModal " catchtouchmove = " preventTouchMove " wx: if = " { {showModal}} " > </ view > < view class = " modal-dialog " wx: if = " { {showModal}} " > < view class = " modal-title " > 标题 </ view > < view class = " modal-title-sc " > 副标题 </ view > < view class = " modal-content " > < scroll-view scroll-y = " true " style =" height : 100px ; " > <