let ios = MIP.util.platform.isIOS()
let android = MIP.util.platform.isAndroid()
if (ios || android) {
}
else{
let mipurl = MIP.sandbox.strict.window.location.href
let wwwurl = mipurl.replace('mip', 'www')
console.log(wwwurl)
MIP.viewer.open(wwwurl)
}
//监听按钮是否点击
setInterval(function () {
let mipurl = MIP.sandbox.strict.window.location.href
let murl = mipurl.replace('mip', 'm')
if(MIP.getData('count')>0){
murl=murl+'?mip=1'
MIP.viewer.open(murl)
}
if(MIP.getData('dow')>0){
murl='//m.xuexila.com/lhdoc/index.html?url='+murl
MIP.viewer.open(murl)
}
}, 1* 1000)