mui弹出二维码示例

<div id="tap_popover" class="box mui-popover mui-popover-action mui-popover-bottom" style=" 50%; margin-left: 25%; margin-bottom: 60%; background: white;">
<img id="ewmimg" src="">
</div>

mui.ajax(__api_url+'/Index/opentask', {
data:{
'token':__tbkGetCookie('user_token'),
'task_id':taskid,
},
dataType: 'json',
type: 'post',
async: false,
headers: {'Content-Type': 'application/json'},
success: function (jsondata) {
if(jsondata.code == '1'){
var imgpath = __img_url + jsondata.data.ewm;
$("#ewmimg").attr('src',imgpath);
mui("#tap_popover").popover('toggle', document.getElementById("div"));
}else{
alert(jsondata.msg);
}
},
});

原文地址:https://www.cnblogs.com/daochong/p/11397756.html