mui弹出二维码示例

痴心易碎 提交于 2019-11-28 06:50:29

<div id="tap_popover" class="box mui-popover mui-popover-action mui-popover-bottom" style="width: 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);
}
},
});

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!