当前位置:网站首页>Mui + hbuilder + h5api simulate pop-up payment style
Mui + hbuilder + h5api simulate pop-up payment style
2022-04-23 13:05:00 【It's never too late to be alone】
The effect is as follows :

Don't tangle with the beauty and ugliness of style , Incomparably complete functions .
<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" /> wallet
<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" /> WeChat
</a>
</li>
<li class="mui-table-view-cell integral">
<a class="mui-navigate-right">
<img src="../img/zfb.png" /> Alipay
</a>
</li>
<li class="mui-table-view-cell end">
<a class="mui-navigate-right">
Cancel payment
</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;
}
Click to pay
// Click to pay
mui('.header_right').on('tap', '.header_botton', function() {
mui("#popover").popover('toggle', document.getElementById("div"));
})
Cancel payment pop-up
// Click Cancel payment
mui('.mui-table-view').on('tap', '.end', function() {
mui("#popover").popover('hide');
})
版权声明
本文为[It's never too late to be alone]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204231303466327.html
边栏推荐
- 22. 括号生成
- There is no need to crack the markdown editing tool typora
- melt reshape decast 长数据短数据 长短转化 数据清洗 行列转化
- AUTOSAR from introduction to mastery 100 lectures (86) - 2F of UDS service foundation
- SQL exercise question 1
- Complete project data of UAV apriltag dynamic tracking landing based on openmv (LabVIEW + openmv + apriltag + punctual atom four axes)
- 1130 - host XXX is not allowed to connect to this MySQL server error in Navicat remote connection database
- The El table horizontal scroll bar is fixed at the bottom of the visual window
- pyqt5 将opencv图片存入内置SQLlite数据库,并查询
- 100 GIS practical application cases (34) - splicing 2020globeland30
猜你喜欢

R语言中dcast 和 melt的使用 简单易懂

22. Bracket generation

How to click an object to play an animation

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)

1130 - host XXX is not allowed to connect to this MySQL server error in Navicat remote connection database

Importerror after tensorflow installation: DLL load failed: the specified module cannot be found, and the domestic installation is slow

Free and open source intelligent charging pile SaaS cloud platform of Internet of things

MySQL —— 16、索引的数据结构

AUTOSAR from introduction to mastery 100 lectures (51) - AUTOSAR network management

AUTOSAR from introduction to mastery 100 lectures (52) - diagnosis and communication management function unit
随机推荐
初鉴canvas,展示个小小的小案例
Pytorch: a pit about the implementation of gradreverselayer
Subscribe to Alibaba demo send business messages
Record the problems encountered in using v-print
22. Bracket generation
Introducing vant components on demand
Importerror after tensorflow installation: DLL load failed: the specified module cannot be found, and the domestic installation is slow
如何实现点击一下物体播放一次动画
Remote access to raspberry pie at home (Part 1)
STM32 tracking based on open MV
pyqt5 将opencv图片存入内置SQLlite数据库,并查询
Design and manufacture of 51 single chip microcomputer solar charging treasure with low voltage alarm (complete code data)
Homomorphic encryption technology learning
The El table horizontal scroll bar is fixed at the bottom of the visual window
Complete project data of UAV apriltag dynamic tracking landing based on openmv (LabVIEW + openmv + apriltag + punctual atom four axes)
Go language slicing operation
HQL find the maximum value in a range
8086 of x86 architecture
Important knowledge of transport layer (interview, retest, final)
Translation of multi modal visual tracking: review and empirical comparison