|
@@ -57,27 +57,46 @@ |
|
@@ -57,27 +57,46 @@ |
57
|
<script type="text/javascript" src="__TMPL__/static/assets/js/jquery-2.1.0.js"></script>
|
57
|
<script type="text/javascript" src="__TMPL__/static/assets/js/jquery-2.1.0.js"></script>
|
58
|
<script type="text/javascript" src="__TMPL__/static/assets/js/jquery.raty.js"></script>
|
58
|
<script type="text/javascript" src="__TMPL__/static/assets/js/jquery.raty.js"></script>
|
59
|
<script type="text/javascript">
|
59
|
<script type="text/javascript">
|
60
|
- var startnum = 0;
|
60
|
+ var rank_synthetical = 0;
|
61
|
$('#start').raty({
|
61
|
$('#start').raty({
|
62
|
click: function(s) {
|
62
|
click: function(s) {
|
63
|
console.log(s)
|
63
|
console.log(s)
|
64
|
- startnum = s;
|
64
|
+ rank_synthetical = s;
|
65
|
}
|
65
|
}
|
66
|
})
|
66
|
})
|
67
|
- var startnum_min1 = 0;
|
67
|
+ var rank_service = 0;
|
68
|
$('#icon').raty({
|
68
|
$('#icon').raty({
|
69
|
click: function(s) {
|
69
|
click: function(s) {
|
70
|
console.log(s)
|
70
|
console.log(s)
|
71
|
- startnum = s;
|
71
|
+ rank_service = s;
|
72
|
}
|
72
|
}
|
73
|
})
|
73
|
})
|
74
|
- var startnum_min2 = 0;
|
74
|
+ var rank_journey = 0;
|
75
|
$('#wuxing').raty({
|
75
|
$('#wuxing').raty({
|
76
|
click: function(s) {
|
76
|
click: function(s) {
|
77
|
console.log(s)
|
77
|
console.log(s)
|
78
|
- startnum = s;
|
78
|
+ rank_journey = s;
|
79
|
}
|
79
|
}
|
80
|
})
|
80
|
})
|
|
|
81
|
+
|
|
|
82
|
+ $(".ok").click(function () {
|
|
|
83
|
+ alert(rank_synthetical);
|
|
|
84
|
+ $.ajax({
|
|
|
85
|
+ url:"{:url('user/Center/comment')}",
|
|
|
86
|
+ data:{
|
|
|
87
|
+ oid:'{$oid}',
|
|
|
88
|
+ rank_synthetical:rank_synthetical,
|
|
|
89
|
+ rank_service:rank_service,
|
|
|
90
|
+ rank_journey:rank_journey
|
|
|
91
|
+ },
|
|
|
92
|
+ type:"POST",
|
|
|
93
|
+ dataType:"JSON",
|
|
|
94
|
+
|
|
|
95
|
+ success: function (data) {
|
|
|
96
|
+
|
|
|
97
|
+ }
|
|
|
98
|
+ })
|
|
|
99
|
+ })
|
81
|
</script>
|
100
|
</script>
|
82
|
|
101
|
|
83
|
</html> |
102
|
</html> |