Commit 9868d1e05a78852f22662d4f145bf8f23caeae52
1 parent
a2a49f9a
wxs
Showing
1 changed file
with
8 additions
and
0 deletions
utils/filter.wxs
| @@ -10,6 +10,13 @@ var filters = { | @@ -10,6 +10,13 @@ var filters = { | ||
| 10 | if (!val) return "不限"; | 10 | if (!val) return "不限"; |
| 11 | return val.replace("00:00:00", ""); | 11 | return val.replace("00:00:00", ""); |
| 12 | }, | 12 | }, |
| 13 | + gettimestamp: function (date) { | ||
| 14 | + console.log(date); | ||
| 15 | + var timestamp = getDate(date).getTime(); | ||
| 16 | + console.log(timestamp); | ||
| 17 | + timestamp = parseInt(timestamp / 1000) | ||
| 18 | + return timestamp; | ||
| 19 | + }, | ||
| 13 | 20 | ||
| 14 | replace_time2: function (val) { | 21 | replace_time2: function (val) { |
| 15 | if (val == null || val == undefined || val == '') return ""; | 22 | if (val == null || val == undefined || val == '') return ""; |
| @@ -278,5 +285,6 @@ module.exports = { | @@ -278,5 +285,6 @@ module.exports = { | ||
| 278 | JSONStringify: filters.JSONStringify, | 285 | JSONStringify: filters.JSONStringify, |
| 279 | count: filters.count, | 286 | count: filters.count, |
| 280 | isExpired: filters.isExpired, | 287 | isExpired: filters.isExpired, |
| 288 | + gettimestamp: filters.gettimestamp, | ||
| 281 | showStartAndEndDate: filters.showStartAndEndDate, | 289 | showStartAndEndDate: filters.showStartAndEndDate, |
| 282 | } | 290 | } |
| 283 | \ No newline at end of file | 291 | \ No newline at end of file |