77 lines
2.1 KiB
HTML
77 lines
2.1 KiB
HTML
<!doctype html>
|
||
<html>
|
||
|
||
<head>
|
||
<meta charset="utf-8">
|
||
<meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,initial-scale=1.0,width=device-width" />
|
||
<meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
|
||
<title>Hello APP</title>
|
||
<link rel="stylesheet" type="text/css" href="../css/api.css" />
|
||
<link rel="stylesheet" type="text/css" href="../css/content.css" />
|
||
<style type="text/css">html,body{background: none;}
|
||
.zl_box{
|
||
position:relative;
|
||
margin: 0 auto;
|
||
width:36px;
|
||
height:36px;
|
||
text-align: center;
|
||
overflow: hidden;
|
||
}
|
||
.zl_box .img_box{
|
||
margin:0 auto;
|
||
width:36px;
|
||
height:36px;
|
||
}
|
||
.zl_box .img_box img{width:100%;
|
||
height:100%;
|
||
}
|
||
|
||
</style>
|
||
</head>
|
||
|
||
<body>
|
||
<div class="zl_box" style="display: none;" onclick="onshowzl()">
|
||
<div class="img_box">
|
||
<img src="../image/cart0.png"/>
|
||
</div>
|
||
</div>
|
||
</body>
|
||
<script type="text/javascript" src="../script/api.js"></script>
|
||
<script type="text/javascript" src="../script/main.js"></script>
|
||
<script type="text/javascript" src="../script/moment.js"></script>
|
||
<script type="text/javascript">
|
||
var videoid=null;
|
||
var userId=null;
|
||
var LoginId=null;
|
||
var closeInterval = null;
|
||
apiready = function() {
|
||
|
||
rdata();
|
||
};
|
||
function rdata(){
|
||
var ltype=$api.getStorage("ltype");
|
||
var productids=$api.getStorage("productids");
|
||
if(ltype==0&&productids!=""){
|
||
$api.css($api.dom(".zl_box"),"display:block;");
|
||
}else{
|
||
$api.css($api.dom(".zl_box"),"display:none;");
|
||
}
|
||
}
|
||
function onshowzl(){
|
||
api.openFrame({
|
||
name: 'video_cartto',
|
||
url: 'video_cartto.html',
|
||
bounces: false,
|
||
allowEdit: true,
|
||
rect: { // 推荐使用Margin布局,用于适配屏幕的动态变化
|
||
marginBottom: 0, // main页面距离win顶部的高度
|
||
w: 'auto', // main页面的宽度 自适应屏幕宽度
|
||
}
|
||
});
|
||
}
|
||
|
||
|
||
</script>
|
||
|
||
</html>
|