-
Notifications
You must be signed in to change notification settings - Fork 0
/
productlist.html
145 lines (128 loc) · 4.24 KB
/
productlist.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>各类商品</title>
<meta name="viewport"
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<link rel="stylesheet" href="lib/mui/css/mui.css">
<link rel="stylesheet" href="lib/fa/css/font-awesome.css">
<link rel="stylesheet" href="css/common.css">
<link rel="stylesheet" href="css/productlist.css">
</head>
<body>
<div class="container">
<div class="head mui-clearfix">
<div class="head-left">
<a href="javascript:history.go(-1);">
</a>
</div>
<h3>商品</h3>
<div class="head-right">
<img src="images/header_app.png" alt="">
</div>
</div>
<div class="search">
<form action="#" id="form">
<div class="mui-input-row">
<input type="text" placeholder="请输入商品">
</div>
<div class="mui-input-row button-box">
<button type="button">搜索</button>
</div>
</form>
</div>
<div class="content">
<div class="nav-lis">
</div>
<div class="main">
<div class="product-list">
<ul class="mui-clearfix products">
</ul>
</div>
</div>
</div>
<div class="footer">
<div class="footer-top">
<a href="login.html">登录</a>
<a href="register.html">注册</a>
<a href="javascript:;" class="back">
<img src="http://www.zuyushop.com/wap/images/top.jpg" alt="" width="15" height="15">
返回顶部
</a>
</div>
<div class="footer-bottom">
<p>
<a href="javascript:;">手机APP下载</a>
<a href="index.html">慢慢买手机版</a>
--掌上比价平台
</p>
<p>m.manmanbuy.com</p>
</div>
</div>
</div>
<script type="text/html" id="tpl">
<a href="index.html">
首页 >
</a>
<a href="category.html">
全部分类 >
</a>
<a href="productlist.html?category={{result[0].category}}&categoryId={{result[0].categoryId}}">
{{result[0].category}} >
</a>
<a href="javascript:;">
删选
</a>
</script>
<script type="text/html" id="tpl1">
{{each result v i}}
<li>
<a href="bijia.html?productid={{v.productId}}&category={{category}}" >
<div class="pic">
{{#v.productImg}}
</div>
<div class="info">
<div class="title mui-ellipsis-2">
{{v.productName}}
</div>
<span>{{v.productPrice}}</span>
<div class="other mui-clearfix">
<span class="mall">{{v.productQuote}}</span>
<i class="icon-comment">{{v.productCom}}</i>
</div>
</div>
</a>
</li>
{{/each}}
<div class="pages mui-clearfix">
<span class="front-page">
<%if(pageid*1 == 1){%>
<a href="javascript:;">上一页</a>
<%}else{%>
<a href="productlist.html?category={{category}}&categoryId={{categoryId}}&pageid={{+pageid-1}}">上一页</a>
<%}%>
</span>
<span class="total-pages">
<select name="pages" id="pages">
<%for(var i=1;i<=+pages;i++){%>
<option value="<%=i%>" {{i==pageid?'selected':''}}><%=i+"/"+pages%></option>
<%}%>
</select>
</span>
<span class="next-page">
<%if(pageid*1 == pages*1){%>
<a href="javascript:;">下一页</a>
<%}else{%>
<a href="productlist.html?category={{category}}&categoryId={{categoryId}}&pageid={{+pageid+1}}">下一页</a>
<%}%>
</span>
</div>
</script>
<script src="lib/zepto/zepto.min.js"></script>
<script src="lib/mui/js/mui.js"></script>
<script src="lib/artTemplate/template-web.js"></script>
<script src="js/common.js"></script>
<script src="js/productlist.js"></script>
</body>
</html>