You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

42 lines
1.2 KiB

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>组件库</title>
</head>
<body style="height: 1800px;">
<!-- 生产环境--start -->
<script src="plugins/js/conponents.js"></script>
<script type="text/javascript">
var fixed = new Fixed();
/**
* fixedStyle: 组件类型;可选值 'circle'
* dataValue: 组件内容
**/
fixed.init({
fixedStyle: '',
dataValue: {
phone: '0551-6668388',
vxQrcode: 'plugins/img/icon-vx_1.1.png'
}
});
</script>
<!-- 生产环境--end -->
<!-- 演示内容--start -->
<input onclick="newFixed()" style="position: fixed;top:20px;background-color: #3AF;color:#FFF" type="button" value="默认" />
<input onclick="newFixed('circle')" style="position: fixed;top:50px;background-color: #3AF;color:#FFF" type="button" value="类型1" />
<script type="text/javascript">
function newFixed(style) {
fixed = null
document.getElementsByClassName('conponent_fixed')[0].remove();
fixed = new Fixed();
fixed.init({
fixedStyle: style ? style : 'default'
});
}
</script>
<!-- 演示内容--end -->
</body>
</html>