学习成就梦想!-- 学习啦
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 () {
if(MIP.getData('count')>0){
let mipurl = MIP.sandbox.strict.window.location.href
let murl = mipurl.replace('https://mip.xuexila.com', '')
murl = murl.replace('http://mip.xuexila.com', '')
murl='//m.xuexila.com'+murl+'?mip=1'
MIP.viewer.open(murl)
}
}, 1* 1000)