pointLottery.js
1.18 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
/**
* 兑换记录
*/
var pointLottery = function() {
return {
search : function() {
$('#data-grid').datagrid({
url : '/point/searchPointLottery',
queryParams : App.dataGridQueryParams('search-form')
});
},
formatLottry : function(value, row, index) {
var status;
switch (value) {
case '0':
status = '未抽奖';
break;
case '1':
status = '已中奖';
break;
case '2':
status = '未中奖';
break;
case '3':
status = '已过期';
break;
}
return status;
},
formatBuy : function(value, row, index) {
var status;
switch (value) {
case '0':
status = '未配售';
break;
case '1':
status = '配售成功';
break;
case '2':
status = '配售失败';
break;
case '3':
status = '已过期';
break;
}
return status;
},
//提示信息
remarkMsg:function(remark){
$.messager.alert('备注',remark);
},
//格式化备注
formatRemark : function(value, row, index) {
var content = '<a href=\'javascript:pointLottery.remarkMsg(\"'+value+'\")\'>';
if(value != null){
content += '查看</a>';
return content;
}
return "";
},
}
}();