.mui-loader { position: absolute; top: 25%; width: 100%; height: 60%; color: #000; font-size: 14px; text-align: center; display: none; }
未能成功连接网络,请检查网络
function getData(){ mui.ajax('',{ data:{ }, dataType:'json',//服务器返回json格式数据 type:'post',//HTTP请求类型 timeout:10000,//超时时间设置为10秒; success:function(data){ }, error:function(xhr,type,errorThrown){ } }); } token = plus.storage.getItem("tokenflag"); if(plus.networkinfo.getCurrentType() === plus.networkinfo.CONNECTION_NONE) { document.getElementById("no-network").style.display = 'block'; } else { document.getElementById("no-network").style.display = 'none'; } /*无网重新加载数据*/ document.getElementById('no-network').addEventListener('tap',function () { }) mui.openWindow({ url: "", id: "", waiting: { autoShow: true } }) if(plus.networkinfo.getCurrentType() === plus.networkinfo.CONNECTION_NONE) { mui.toast("网络未连接成功"); } else { var isniming = document.getElementById("isniming"); var token = plus.storage.getItem("tokenflag"); var content=document.getElementById("question").value.trim(); if(token) { mui.ajax(url + '/communication/addCommunication', { data: { type:"question", content:content, isSee: }, dataType: 'json', //服务器返回json格式数据 type: 'post', //HTTP请求类型 timeout: 10000, //超时时间设置为10秒; success: function(data) { }, error: function(xhr, type, errorThrown) { } }); } } feedback.send(mui.extend({}, feedback.deviceInfo, { type: "question", isSee: document.getElementById("isniming").checked ? 1 : 0, content: feedback.question.value, images: feedback.files })) url + "/communication/addCommunication"