Browse Source

no message

索隆 6 years ago
parent
commit
be90cf5f72
2 changed files with 2 additions and 1 deletions
  1. 1 0
      js/prediction.js
  2. 1 1
      prediction_vote.html

+ 1 - 0
js/prediction.js

@@ -42,6 +42,7 @@ function getVote(){
42 42
 function getDetail(){
43 43
 	ajax(apiUrl+"forecast/detail",{"forecastId":$.getParam("id")},function(res){
44 44
 		if(res.code == 1){
45
+			res.data.cycle = res.data.cycle.decode(1,"一周",2,'一个月',3,'两个月',4,'三个月',5,'六个月',6,'一年');
45 46
 			$(".mainContent").html($.Template7.renderTpl("tempalteDetail",res.data));
46 47
 		}else{
47 48
 			alert(res.msg);

+ 1 - 1
prediction_vote.html

@@ -66,7 +66,7 @@ $(function(){
66 66
 						<tr>
67 67
 							<td>{{crtTime}}</td>
68 68
 							<td>{{name}}</td>
69
-							<td>{{vtype}}</td>
69
+							<td>{{js "this.vtype == 0 ? '赞成':'反对'"}}</td>
70 70
 							<td>{{voteBet}}</td>
71 71
 							<td>{{harvest}}</td>
72 72
 							<td>{{js "this.status == 1 ? '投票成功':(this.status == 2 ? '投票失败':(this.status == 0 ? '正常':(this.status == -1 ? '删除':'')))"}}</td>