发布v2.5.9版本
This commit is contained in:
@@ -25,6 +25,15 @@ function initbody(){
|
||||
var da = ret.data;
|
||||
$('#msgview').html('跳转中...');
|
||||
sessionStorage.setItem(kei,'trueabc');
|
||||
if(apicloud && api.x5Ver && api.x5Ver>0){
|
||||
api.rockFun('openWinnei',{
|
||||
url:da.url,
|
||||
progress:'true',
|
||||
animtype:'show'
|
||||
});
|
||||
api.closeWin({animtype:'hide'});
|
||||
return;
|
||||
}
|
||||
js.location(da.url);
|
||||
}else{
|
||||
$('#msgview').html('<font color=red>'+ret.msg+'</font>');
|
||||
|
||||
@@ -30,6 +30,27 @@
|
||||
<script>
|
||||
DEFAULT_URL = jm.base64decode('<?=$da['filepath']?>');
|
||||
|
||||
|
||||
var openbool = false;
|
||||
var url = location.href
|
||||
var lse = url.lastIndexOf('/');
|
||||
NOWURL = url.substr(0, lse+1);
|
||||
apiready=function(){
|
||||
if(openbool || !api.rockFun)return;
|
||||
var x5ver = api.x5Ver;
|
||||
if(x5ver && x5ver>0){
|
||||
var pdfurl = NOWURL+DEFAULT_URL;
|
||||
api.rockFun('openPdf', {
|
||||
fileurl:pdfurl,
|
||||
filename:'<?=$da['filename']?>',
|
||||
animtype:'show',
|
||||
opentyle:'x5'
|
||||
});
|
||||
api.closeWin({animtype:'hide'});
|
||||
}
|
||||
openbool = true;
|
||||
}
|
||||
|
||||
/*
|
||||
const hammertime = new Hammer(document);
|
||||
hammertime.get('pinch').set({ enable: true });
|
||||
|
||||
Reference in New Issue
Block a user