comment.html
3.0 KB
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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>评价页面</title>
<meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0" />
<link rel="stylesheet" type="text/css" href="__TMPL__/static/assets/css/weui.min.css" />
<link rel="stylesheet" type="text/css" href="__TMPL__/static/assets/css/swiper-3.4.2.min.css" />
<link rel="stylesheet" type="text/css" href="http://at.alicdn.com/t/font_773803_1qg03k1415.css" />
<script type="text/javascript" src="__TMPL__/static/assets/font/iconfont.js"></script>
<script type="text/javascript" src="__TMPL__/static/js/base.js"></script>
<link rel="stylesheet" href="__TMPL__/static/css/jquery.raty.css" />
<link rel="stylesheet" href="__TMPL__/static/css/evaluate.css" />
</head>
<body>
<div class="travel">这次的旅行,您还满意吗?</div>
<div class="img_box" id='start'>
</div>
<div class="service">
<div class="fu">服务评价</div>
<div class="icon" id="icon">
<!--<i class="iconfont icon-wuxing "></i>
<i class="iconfont icon-wuxing "></i>
<i class="iconfont icon-wuxing "></i>
<i class="iconfont icon-wuxing "></i>
<i class="iconfont icon-wuxing "></i>-->
</div>
</div>
<div class="service">
<div class="fu">行程安排</div>
<div class="icon" id="wuxing">
<!--<i class="iconfont icon-wuxing "></i>
<i class="iconfont icon-wuxing "></i>
<i class="iconfont icon-wuxing "></i>
<i class="iconfont icon-wuxing "></i>
<i class="iconfont icon-wuxing "></i>-->
</div>
</div>
<div class="xing">
给五星好评可获得代金券一张
</div>
<div class="ideaout">
<textarea class="idea" placeholder="请留下您的宝贵意"></textarea>
</div>
<div class="save">
<div class="footer ok">
提交
</div>
</div>
</body>
<script type="text/javascript" src="__TMPL__/static/assets/js/jquery-2.1.0.js"></script>
<script type="text/javascript" src="__TMPL__/static/assets/js/jquery.raty.js"></script>
<script type="text/javascript">
var rank_synthetical = 0;
$('#start').raty({
click: function(s) {
console.log(s)
rank_synthetical = s;
}
})
var rank_service = 0;
$('#icon').raty({
click: function(s) {
console.log(s)
rank_service = s;
}
})
var rank_journey = 0;
$('#wuxing').raty({
click: function(s) {
console.log(s)
rank_journey = s;
}
})
$(".ok").click(function () {
alert(rank_synthetical);
$.ajax({
url:"{:url('user/Center/comment')}",
data:{
oid:'{$oid}',
rank_synthetical:rank_synthetical,
rank_service:rank_service,
rank_journey:rank_journey
},
type:"POST",
dataType:"JSON",
success: function (data) {
}
})
})
</script>
</html>