利用mui.openWindow跳转界面出现跳转过后瞬间返回的问题```javascript
function setType(id,name){
typeId=id;
typenamejs = name;
document.getElementById("jsg").innerHTML = typenamejs;
// dataLoading();//点完类别按钮后重新进行数据请求获取该类别的数据。
if(name == "在线查药"){
plus.storage.setItem('module_id',typeId);
plus.storage.setItem('module_name',"在线查药");
var url ="../../pages/standard H5/xywy_searchDrug.html";
openNextWindow(url);
}else if(name =="药品知识"){
plus.storage.setItem('module_id',typeId);
plus.storage.setItem('module_name',"药品知识");
//clicked('../../pages/standard H5/xywy_searchDrug.html',true);
var url ="../../pages/standard H5/xywy_searchDrug.html"
openNextWindow(url);
}else if(name =="在线药店"){
plus.storage.setItem('module_id',typeId);
plus.storage.setItem('module_name',"在线药店");
// clicked('pages/moduleGood_detail.html',true);
var url ="../../pages/standard H5/xfpt_xywy_zxmy.html";
openNextWindow(url);
}else if(name =="在线名医"){
plus.storage.setItem('module_id',typeId);
plus.storage.setItem('module_name',"在线名医");
// clicked('../../pages/standard H5/xfpt_xywy_zxmy.html',true);
var url ="../../pages/standard H5/xfpt_xywy_zxmy.html";
openNextWindow(url);
}
mui('#pullrefresh').pullRefresh().refresh(true);//重置上啦加载
//alert(typenamejs)
mui('#pullrefresh').pullRefresh().pulldownLoading();
}
function openNextWindow(url){
mui.openWindow({
id:url,
url:url,
show:{
duration:300
},
waiting:{
autoShow:true,
title:Config.message.loading
},
extras:{
// keyId:obj.data.id
}
});
}
0 个回复