Authored by uedxwg

有货币使用详情

  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 +});
@@ -15,3 +15,4 @@ require('./address'); @@ -15,3 +15,4 @@ require('./address');
15 require('./suggest'); 15 require('./suggest');
16 require('./browse-record'); 16 require('./browse-record');
17 require('./address-act'); 17 require('./address-act');
  18 +require('./currency');
@@ -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;
@@ -286,3 +286,8 @@ @@ -286,3 +286,8 @@
286 seajs.use('js/me/logistic'); 286 seajs.use('js/me/logistic');
287 </script> 287 </script>
288 {{/if}} 288 {{/if}}
  289 +{{#if currency}}
  290 +<script>
  291 + seajs.use('js/me/currency');
  292 +</script>
  293 +{{/if}}
@@ -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 }