Showing
5 changed files
with
28 additions
and
3 deletions
static/js/me/currency.js
0 → 100644
1 | +var $ = require('jquery'); | ||
2 | +var page = 0; | ||
3 | + | ||
4 | +$(window).scroll(function() { | ||
5 | + if ($(window).scrollTop() + $(window).height() > $('body').height() - 1) { | ||
6 | + page++; | ||
7 | + $.ajax({ | ||
8 | + type: 'POST', | ||
9 | + url: '/home/currencyDetail', | ||
10 | + dataType: 'html', | ||
11 | + data: { | ||
12 | + page: page | ||
13 | + }, | ||
14 | + success: function(data) { | ||
15 | + console.log(data); | ||
16 | + } | ||
17 | + }); | ||
18 | + return; | ||
19 | + } | ||
20 | +}); |
@@ -7,8 +7,8 @@ | @@ -7,8 +7,8 @@ | ||
7 | background:#fff; | 7 | background:#fff; |
8 | margin-bottom: pxToRem(20px); | 8 | margin-bottom: pxToRem(20px); |
9 | line-height: pxToRem(70px); | 9 | line-height: pxToRem(70px); |
10 | - font-size: pxToRem(25px); | ||
11 | - text-indent: 2em | 10 | + font-size: pxToRem(30px); |
11 | + text-indent: 1em; | ||
12 | span{ | 12 | span{ |
13 | color: #f00; | 13 | color: #f00; |
14 | font-weight: bold; | 14 | font-weight: bold; |
@@ -835,7 +835,6 @@ class HomeController extends AbstractAction | @@ -835,7 +835,6 @@ class HomeController extends AbstractAction | ||
835 | 'currency' => $data['list'], | 835 | 'currency' => $data['list'], |
836 | 'money' => $data['money'], | 836 | 'money' => $data['money'], |
837 | 'pageFooter' => true, | 837 | 'pageFooter' => true, |
838 | - 'money' => 100, | ||
839 | 'currencyDetailPage' => true | 838 | 'currencyDetailPage' => true |
840 | )); | 839 | )); |
841 | } | 840 | } |
-
Please register or login to post a comment