如下:
// 处理详情内容过长,over-flow:hidden不能触摸滚动问题
window.addEventListener('touchmove', function(e) {
var target = e.target;
// 阻止冒泡
target && (target.getAttribute('class') === 'mui-popup-text') && e.stopPropagation();
}, true);
查看详情方法:
// 方法
var muiViewDetails = function() {
// 点击按钮弹出查看详情页面
$('.viewDetailsBox').on('tap', '.viewDetailsBtn', function (e) {
var msg = $(this)[0].getAttribute('data-text');
msg && $.alert(msg, '详细信息');
});
// 处理详情内容过长,over-flow:hidden不能触摸滚动问题
window.addEventListener('touchmove', function(e) {
var target = e.target;
// 阻止冒泡
target && (target.getAttribute('class') === 'mui-popup-text') && e.stopPropagation();
}, true);
};
// 调用
muiViewDetails();