当前位置:网站首页>mui + hbuilder + h5api模拟弹出支付样式
mui + hbuilder + h5api模拟弹出支付样式
2022-04-23 13:04:00 【孤身不觉晚】
效果如下:

不要纠结样式的美丑,功能无比齐全。
<div id="div"></div>
<div id="popover" class="mui-popover" style="height: 250px;">
<div class="mui-popover-arrow"></div>
<ul class="mui-table-view">
<li class="mui-table-view-cell my_wallet" :id=" pd_money?'kzf_money':'bkzf_money' ">
<a class="mui-navigate-right" href='#pay'>
<img src="../img/my_wallet.png" /> 钱包
<span class="money">¥{
{money}}</span>
</a>
</li>
<li class="mui-table-view-cell my_recommend">
<a class="mui-navigate-right">
<img src="../img/weixin.png" /> 微信
</a>
</li>
<li class="mui-table-view-cell integral">
<a class="mui-navigate-right">
<img src="../img/zfb.png" /> 支付宝
</a>
</li>
<li class="mui-table-view-cell end">
<a class="mui-navigate-right">
取消支付
</a>
</li>
</ul>
</div>
.mui-table-view {
background: #FFFFFF;
margin: .25rem auto;
border-radius: 5px;
margin-bottom: 0;
}
.mui-table-view-cell {
line-height: 1.3rem;
}
.mui-navigate-right img {
display: inline-block;
width: .4rem;
margin-right: .5rem;
}
.mui-table-view-cell>a:not(.mui-btn) {
padding-right: .7rem;
padding-left: .7rem;
font-size: .4rem;
color: #000000;
}
.money {
color: #fd9309;
margin-left: 1rem;
}
.end{
text-align: center;
}
点击支付
//点击支付
mui('.header_right').on('tap', '.header_botton', function() {
mui("#popover").popover('toggle', document.getElementById("div"));
})
取消支付弹框
//点击取消支付
mui('.mui-table-view').on('tap', '.end', function() {
mui("#popover").popover('hide');
})
版权声明
本文为[孤身不觉晚]所创,转载请带上原文链接,感谢
https://blog.csdn.net/qq_40043424/article/details/102550969
边栏推荐
- leetcode-791. Custom string sorting
- 精度、速度完美平衡,最新图像分割SOTA模型重磅发布!!!
- Three channel ultrasonic ranging system based on 51 single chip microcomputer (timer ranging)
- jmeter操作redis
- 100 lectures on practical application cases of Excel (VIII) - report connection function of Excel
- AUTOSAR from introduction to mastery 100 lectures (87) - key weapon of advanced EEA - AUTOSAR and DDS
- Record some NPM related problems (messy records)
- SQL exercise question 1
- 将新增和编辑的数据同步更新到列表
- 31. Next arrangement
猜你喜欢

Customize classloader and implement hot deployment - use loadclass

Unable to create servlet under SRC subfile of idea

Record a website for querying compatibility, string Replaceall() compatibility error

GIS practical tips (III) - how to add legend in CASS?

4. DRF permission & access frequency & filtering & sorting

Free and open source agricultural Internet of things cloud platform (version: 3.0.1)

Complete project data of UAV apriltag dynamic tracking landing based on openmv (LabVIEW + openmv + apriltag + punctual atom four axes)

22. Bracket generation

Design of STM32 multi-channel temperature measurement wireless transmission alarm system (industrial timing temperature measurement / engine room temperature timing detection, etc.)

Use compressorjs to compress pictures, optimize functions, and compress pictures in all formats
随机推荐
Teach you to quickly develop a werewolf killing wechat applet (with source code)
Byte warehouse intern interview SQL questions
100 lectures on practical application cases of Excel (VIII) - report connection function of Excel
mysql支持ip访问
Utils of various date conversion
Translation of multi modal visual tracking: review and empirical comparison
Golang implements MD5, sha256 and bcrypt encryption
4.22学习记录(你一天只做了水题是吗)
Common problems of unity (1)
SQL exercise question 1
HQL find the maximum value in a range
51 single chip microcomputer stepping motor control system based on LabVIEW upper computer (upper computer code + lower computer source code + ad schematic + 51 complete development environment)
HQL statement tuning
100 GIS practical application cases (53) - making three-dimensional image map as the base map of urban spatial pattern analysis
Mysql8 installation
MySQL —— 16、索引的数据结构
CVPR 2022&NTIRE 2022|首个用于高光谱图像重建的 Transformer
100 GIS practical application cases (51) - a method for calculating the hourly spatial average of NC files according to the specified range in ArcGIS
AUTOSAR from introduction to mastery 100 lectures (81) - FIM of AUTOSAR Foundation
SSM framework series - annotation development day2-2