<!DOCTYPE html>
|
<html lang="en">
|
<head>
|
<meta charset="UTF-8">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no"/>
|
<title>商品选择</title>
|
<link rel="stylesheet" href="../../static/layui/css/layui.css" media="all">
|
<script type="text/javascript" src="../../static/js/jquery/jquery-3.3.1.min.js"></script>
|
<script type="text/javascript" src="../../static/layui/layui.js" charset="utf-8"></script>
|
<script type="text/javascript" src="../../static/layui/layer_mobile/layer.js" charset="utf-8"></script>
|
<script type="text/javascript" src="../../static/js/common.js" charset="utf-8"></script>
|
<script type="text/javascript" src="../../static/js/cool.js" charset="utf-8"></script>
|
<script type="text/javascript" src="../../static/js/handlebars/handlebars-v4.5.3.js"></script>
|
<style>
|
html {
|
height: 100%;
|
}
|
body {
|
height: 100%;
|
background-color: #f1f1f1;
|
padding: 5px;
|
}
|
|
/* 头部搜索栏 */
|
.search-box {
|
height: 36px;
|
padding: 3px 15px;
|
}
|
.search-box input {
|
border: none;
|
border-radius: 20px;
|
height: 30px;
|
box-shadow: 0 0 3px rgba(0,0,0,.3);
|
width: 75%;
|
padding-left: 15px;
|
vertical-align: middle;
|
}
|
.search-box button {
|
border: none;
|
background-color: white;
|
box-shadow: 0 0 3px rgba(0,0,0,.3);
|
height: 33px;
|
margin-left: 5px;
|
border-radius: 20px;
|
width: 15%;
|
vertical-align: middle;
|
}
|
.search-box button:hover {
|
background-color: #dedede;
|
}
|
|
/* 主体卡片 */
|
.box-item {
|
height: 100px;
|
border-bottom: 1px solid #dedede;
|
background-color: #fff;
|
border-radius: 5px;
|
box-shadow: 0 0 3px rgba(0,0,0,.3);
|
margin-top: 2px;
|
}
|
.box-item:hover {
|
background-color: #eaeaea;
|
}
|
.box-item-label {
|
font-size: x-large;
|
font-weight: bold;
|
padding: 10px 0 0 20px;
|
}
|
</style>
|
</head>
|
<body>
|
|
<header>
|
<div class="search-box">
|
<input type="text">
|
<button>
|
<i class="layui-icon"></i>
|
</button>
|
</div>
|
</header>
|
|
<main>
|
<div class="box-item">
|
<div class="box-item-label">尼龙头螺丝盒装</div>
|
</div>
|
<div class="box-item">
|
<div class="box-item-label">尼龙头螺丝盒装</div>
|
</div>
|
<div class="box-item">
|
<div class="box-item-label">尼龙头螺丝盒装</div>
|
</div>
|
<div class="box-item">
|
<div class="box-item-label">尼龙头螺丝盒装</div>
|
</div>
|
<div class="box-item">
|
<div class="box-item-label">尼龙头螺丝盒装</div>
|
</div>
|
<div class="box-item">
|
<div class="box-item-label">尼龙头螺丝盒装</div>
|
</div>
|
|
</main>
|
|
</body>
|
<script>
|
$(function () {
|
|
|
})
|
|
$(document).on('click','.box-item', function () {
|
})
|
</script>
|
<script type="text/template" id="tagTpl">
|
{{#each data}}
|
<option value="{{this}}">{{this}}</option>
|
{{/each}}
|
</script>
|
<script type="text/template" id="matTpl">
|
{{#each data}}
|
<option value="{{this}}">{{this}}</option>
|
{{/each}}
|
</script>
|
</html>
|