Authored by 梁志锋

Merge branch 'beta' of http://git.dev.yoho.cn/web/yohobuy into beta

@@ -91,7 +91,14 @@ module.exports = function(specificGender) { @@ -91,7 +91,14 @@ module.exports = function(specificGender) {
91 if (data === ' ') { 91 if (data === ' ') {
92 searching = false; 92 searching = false;
93 loading.hideLoadingMask(); 93 loading.hideLoadingMask();
94 - if (gender) { 94 +
  95 + //修复有货币页面最后一条数据显示被遮挡的问题
  96 + if (specificGender) {
  97 + window.rePosFooter();
  98 + }
  99 +
  100 + // 有货币页面不加载底部
  101 + if (gender && !specificGender) {
95 if (gender === '1,3') { 102 if (gender === '1,3') {
96 url = '/boys/bottomBanner'; 103 url = '/boys/bottomBanner';
97 } else { 104 } else {
@@ -11,6 +11,9 @@ @@ -11,6 +11,9 @@
11 var goodsConsultsEle = $('#goods-consults')[0], 11 var goodsConsultsEle = $('#goods-consults')[0],
12 goodsConsultsHammer = goodsConsultsEle && new Hammer(goodsConsultsEle); 12 goodsConsultsHammer = goodsConsultsEle && new Hammer(goodsConsultsEle);
13 13
  14 +var productId,
  15 + total;
  16 +
14 function showCountPlus($el) { 17 function showCountPlus($el) {
15 var $count = $el.find('.animate-count'); 18 var $count = $el.find('.animate-count');
16 19
@@ -24,6 +27,13 @@ function showCountPlus($el) { @@ -24,6 +27,13 @@ function showCountPlus($el) {
24 }); 27 });
25 } 28 }
26 29
  30 +(function() {
  31 + var queryStr = window.location.search.substring(1);
  32 +
  33 + productId = queryStr.split('&')[0].split('=')[1];
  34 + total = queryStr.split('&')[1] ? queryStr.split('&')[1].split('=')[1] : undefined;
  35 +})();
  36 +
27 if (goodsConsultsHammer) { 37 if (goodsConsultsHammer) {
28 38
29 goodsConsultsHammer.on('tap', function(e) { 39 goodsConsultsHammer.on('tap', function(e) {
@@ -45,7 +55,9 @@ if (goodsConsultsHammer) { @@ -45,7 +55,9 @@ if (goodsConsultsHammer) {
45 method: 'post', 55 method: 'post',
46 url: url, 56 url: url,
47 data: { 57 data: {
48 - id: id 58 + id: id,
  59 + productId: productId,
  60 + total: total
49 } 61 }
50 }).done(function(data) { 62 }).done(function(data) {
51 if (data.code === 200) { 63 if (data.code === 200) {
1 1
2 {{> layout/header}} 2 {{> layout/header}}
3 <div class="yoho-coin-detail-page yoho-page"> 3 <div class="yoho-coin-detail-page yoho-page">
4 - <div class="money">你拥有的有货币:<span>{{ money}}</span></div>  
5 -  
6 <ul class="coin-detail"></ul> 4 <ul class="coin-detail"></ul>
7 </div> 5 </div>
8 {{> layout/footer}} 6 {{> layout/footer}}
@@ -6,6 +6,9 @@ @@ -6,6 +6,9 @@
6 {{#navHome}} 6 {{#navHome}}
7 <a href="{{.}}" class="iconfont nav-home">&#xe611;</a> 7 <a href="{{.}}" class="iconfont nav-home">&#xe611;</a>
8 {{/navHome}} 8 {{/navHome}}
  9 + {{#currencyPage}}
  10 + <a href="/home/help" class="iconfont nav-home">&#xe639;</a>
  11 + {{/currencyPage}}
9 {{#navPhone}} 12 {{#navPhone}}
10 <a href="{{.}}" class="iconfont nav-home">&#xe641;</a> 13 <a href="{{.}}" class="iconfont nav-home">&#xe641;</a>
11 {{/navPhone}} 14 {{/navPhone}}
@@ -397,7 +397,7 @@ class UserModel @@ -397,7 +397,7 @@ class UserModel
397 // 处理数据 397 // 处理数据
398 foreach ($banner['data'] as $val) { 398 foreach ($banner['data'] as $val) {
399 foreach ($val['data'] as $single) { 399 foreach ($val['data'] as $single) {
400 - $result['url'] = ''; 400 + $result['url'] = Helpers::getFilterUrl($single['url']);
401 $result['img'] = Helpers::getImageUrl($single['src'], 640, 200); 401 $result['img'] = Helpers::getImageUrl($single['src'], 640, 200);
402 } 402 }
403 } 403 }
@@ -176,8 +176,8 @@ class DetailController extends AbstractAction @@ -176,8 +176,8 @@ class DetailController extends AbstractAction
176 $result = array(); 176 $result = array();
177 177
178 if ($this->isAjax()) { 178 if ($this->isAjax()) {
179 - $productId = $this->get('productId', 0);  
180 - $total = $this->get('total', 0); 179 + $productId = $this->post('productId', 0);
  180 + $total = $this->post('total', 0);
181 $uid = $this->getUid(); 181 $uid = $this->getUid();
182 $id = $this->post('id'); 182 $id = $this->post('id');
183 $result = \Product\DetailModel::upvoteConsult($uid, $id, $productId, $total); 183 $result = \Product\DetailModel::upvoteConsult($uid, $id, $productId, $total);
@@ -194,8 +194,8 @@ class DetailController extends AbstractAction @@ -194,8 +194,8 @@ class DetailController extends AbstractAction
194 $result = array(); 194 $result = array();
195 195
196 if ($this->isAjax()) { 196 if ($this->isAjax()) {
197 - $productId = $this->get('productId', 0);  
198 - $total = $this->get('total', 0); 197 + $productId = $this->post('productId', 0);
  198 + $total = $this->post('total', 0);
199 $uid = $this->getUid(); 199 $uid = $this->getUid();
200 $id = $this->post('id'); 200 $id = $this->post('id');
201 $result = \Product\DetailModel::usefulConsult($uid, $id, $productId, $total); 201 $result = \Product\DetailModel::usefulConsult($uid, $id, $productId, $total);