//js跳转页面
window.location.reload();
window.location.replace('order.php')
window.location.href="users_edit.php?action=out";
//js赋值
document.getElementById('loading').style.display="none";
document.getElementById("cartnum").innerHTML = '<img src="images/wmyoff.png">';
//小程序h5里关闭页面
wx.miniProgram.navigateBack();
//小程序跳转h5链接方法
// wx.navigateTo({
// url: '/pages/h5/index?pageurl=newsshow.php' + encodeURIComponent("?id=") + id
// });
// 示例:延时获取,或从 options 中解析
setTimeout(() => {
callback('你的真实H5地址');
}, 100);
//截取地址里的网址
var shareUrl = options.webViewUrl.replace(app.data.siteurl, '');
onShow() {
//给isMapOpened赋值+1
this.setData({ isMapOpened: this.data.isMapOpened + 1 });
console.log(this.data.roadurl);
//判断只要不是第一次,就刷新页面
if (this.data.isMapOpened==2) {
// this.setData({
// bindurl: app.data.siteurl + this.data.roadurl+"&tim=1"
// });
wx.navigateBack()
setTimeout(() => {
wx.navigateTo({
url: '/pages/show/index?pageurl='+encodeURIComponent(this.data.roadurl)
});
}, 100);
}
}
//退出登录
if($_GET['action']=="out"){
setcookie("usersid","",time()-3600,"/");
die("<script>location.replace('index.php');</script>");
}
