-
Notifications
You must be signed in to change notification settings - Fork 0
/
comment.html
executable file
·118 lines (116 loc) · 4.63 KB
/
comment.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
<!DOCTYPE html>
<html>
<head>
<title>发表评价</title>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
<meta name="description" content="Write an awesome description for your new site here. You can edit this line in _config.yml. It will appear in your document head meta (for Google search results) and in your feed.xml site description.">
<link rel="stylesheet" href="lib/weui.min.css">
<link rel="stylesheet" href="css/jquery-weui.css">
<link rel="stylesheet" href="css/style.css">
</head>
<body ontouchstart>
<!--主体-->
<header class="wy-header">
<div class="wy-header-icon-back"><span></span></div>
<div class="wy-header-title">发表评价</div>
</header>
<div class="weui-content clear">
<div class="order-list-Below clear">
<h1>商品评价</h1>
<ul>
<li class="on"></li>
<li class="on"></li>
<li class="on"></li>
<li class="on"></li>
<li class="on"></li>
</ul>
</div>
<div class="weui-cells weui-cells_form com-txt-area">
<div class="weui-cell">
<div class="weui-cell__bd">
<textarea class="weui-textarea txt-area" placeholder="这个商品满足你的期待吗?说说你的使用心得,分享给想买的他们吧" rows="3"></textarea>
<div class="weui-textarea-counter font-12 num"><span>0</span>/200</div>
</div>
</div>
</div>
<div class="weui-cells weui-cells_checkbox commg">
<label class="weui-cell weui-check__label" for="s11">
<div class="weui-cell__hd">
<input type="checkbox" class="weui-check" name="checkbox1" id="s11" checked="checked">
<i class="weui-icon-checked"></i>
</div>
<div class="weui-cell__bd"><p>匿名评价</p></div>
</label>
</div>
<div class="weui-cells weui-cells_form">
<div class="weui-cell">
<div class="weui-cell__bd">
<div class="weui-uploader">
<div class="weui-uploader__hd">
<p class="weui-uploader__title font-14">图片上传</p>
<div class="weui-uploader__info font-12">0/2</div>
</div>
<div class="weui-uploader__bd">
<ul class="weui-uploader__files" id="uploaderFiles">
<li class="weui-uploader__file" style="background-image:url(./images/pic_160.png)"></li>
<li class="weui-uploader__file" style="background-image:url(./images/pic_160.png)"></li>
<li class="weui-uploader__file" style="background-image:url(./images/pic_160.png)"></li>
<li class="weui-uploader__file weui-uploader__file_status" style="background-image:url(./images/pic_160.png)">
<div class="weui-uploader__file-content">
<i class="weui-icon-warn"></i>
</div>
</li>
<li class="weui-uploader__file weui-uploader__file_status" style="background-image:url(./images/pic_160.png)">
<div class="weui-uploader__file-content">50%</div>
</li>
</ul>
<div class="weui-uploader__input-box">
<input id="uploaderInput" class="weui-uploader__input" type="file" accept="image/*" multiple="">
</div>
</div>
</div>
</div>
</div>
</div>
<div class="com-button"><a href="javascript:void(0);">发表评价</a></div>
</div>
<script src="lib/jquery-2.1.4.js"></script>
<script src="lib/fastclick.js"></script>
<script type="text/javascript" src="js/jquery.Spinner.js"></script>
<script>
$(function() {
FastClick.attach(document.body);
});
</script>
<script src="js/jquery-weui.js"></script>
<script type="text/javascript">
$(".order-list-Below ul li").click(
function(){
var num = $(this).index()+1;
var len = $(this).index();
var thats = $(this).parent(".order-list-Below ul").find("li");
if($(thats).eq(len).attr("class")=="on"){
if($(thats).eq(num).attr("class")=="on"){
$(thats).removeClass();
for (var i=0 ; i<num; i++) {
$(thats).eq(i).addClass("on");
}
}else{
$(thats).removeClass();
for (var k=0 ; k<len; k++) {
$(thats).eq(k).addClass("on");
}
}
}else{
$(thats).removeClass();
for (var j=0 ; j<num; j++) {
$(thats).eq(j).addClass("on");
}
}
}
);
</script>
</body>
</html>