当前位置:网站首页>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
边栏推荐
- 31. 下一个排列
- Important knowledge of network layer (interview, reexamination, term end)
- Importerror after tensorflow installation: DLL load failed: the specified module cannot be found, and the domestic installation is slow
- Translation of attention in natural language processing
- Recovering data with MySQL binlog
- Synchronously update the newly added and edited data to the list
- mysql8安装
- Byte jump 2020 autumn recruitment programming question: quickly find your own ranking according to the job number
- Async void caused the program to crash
- Customize classloader and implement hot deployment - use loadclass
猜你喜欢

Unable to create servlet under SRC subfile of idea

Free and open source charging pile Internet of things cloud platform

CVPR 2022&NTIRE 2022|首个用于高光谱图像重建的 Transformer

If you were a golang interviewer, what questions would you ask?

No idle servers? Import OVF image to quickly experience smartx super fusion community version

Record the problems encountered in using v-print

Date time type in database

Learning materials

There is no need to crack the markdown editing tool typora

Deploying MySQL in cloud native kubesphere
随机推荐
7_ The cell type scores obtained by addmodule and gene addition method are compared in space
100 GIS practical application cases (34) - splicing 2020globeland30
Use Proteus to simulate STM32 ultrasonic srf04 ranging! Code+Proteus
About the 'enum' enumeration type and structure.
Jupiter notebook installation
7_Addmodule和基因加和法add 得到的细胞类型打分在空间上空转对比
Huawei cloud MVP email
Summary of JVM knowledge points - continuously updated
Go language array operation
[untitled] PID control TT encoder motor
The continuous construction of the Internet industry platform is not only able to collect traffic
Proteus 8.10 installation problem (personal test is stable and does not flash back!)
Free and open source charging pile Internet of things cloud platform
Servlet监听器&过滤器介绍
Introduction to servlet listener & filter
(personal) sorting out system vulnerabilities after recent project development
安装nngraph
Temperature and humidity monitoring + timing alarm system based on 51 single chip microcomputer (C51 source code)
decast id.var measure.var数据拆分与合并
Design of STM32 multi-channel temperature measurement wireless transmission alarm system (industrial timing temperature measurement / engine room temperature timing detection, etc.)