Authored by 毕凯

Merge branch 'release/4.5' of git.dev.yoho.cn:web/yohobuywap into release/4.5

@@ -38,7 +38,7 @@ class SearchData @@ -38,7 +38,7 @@ class SearchData
38 case 'test': 38 case 'test':
39 case 'developer': 39 case 'developer':
40 default: 40 default:
41 - return 'http://192.168.102.216:8087/yohosearch/search.json'; 41 + return 'http://192.168.102.216:8080/yohosearch/search.json';
42 } 42 }
43 } 43 }
44 44
@@ -82,45 +82,30 @@ class SearchData @@ -82,45 +82,30 @@ class SearchData
82 case 'developer': 82 case 'developer':
83 default: 83 default:
84 if ($type == 'sort') { 84 if ($type == 'sort') {
85 - return 'http://192.168.102.216:8087/yohosearch/sortgroup.json';  
86 -// return 'http://101.200.31.165/yohosearch/sortgroup.json';  
87 -// return 'http://182.92.99.119:8080/yohosearch/sortgroup.json'; 85 + return 'http://192.168.102.216:8080/yohosearch/sortgroup.json';
88 } 86 }
89 elseif ($type == 'discount') { 87 elseif ($type == 'discount') {
90 - return 'http://192.168.102.216:8087/yohosearch/discount.json';  
91 -// return 'http://101.200.31.165/yohosearch/discount.json';  
92 -// return 'http://182.92.99.119:8080/yohosearch/discount.json'; 88 + return 'http://192.168.102.216:8080/yohosearch/discount.json';
93 } 89 }
94 elseif ($type == 'recent') { 90 elseif ($type == 'recent') {
95 - return 'http://192.168.102.216:8087/yohosearch/recent.json';  
96 -// return 'http://101.200.31.165/yohosearch/recent.json';  
97 -// return 'http://182.92.99.119:8080/yohosearch/recent.json'; 91 + return 'http://192.168.102.216:8080/yohosearch/recent.json';
98 } 92 }
99 elseif ($type == 'suggest') { 93 elseif ($type == 'suggest') {
100 - return 'http://192.168.102.216:8087/yohosearch/suggest.json';  
101 -// return 'http://101.200.31.165/yohosearch/suggest.json';  
102 -// return 'http://182.92.99.119:8080/yohosearch/suggest.json'; 94 + return 'http://192.168.102.216:8080/yohosearch/suggest.json';
103 } 95 }
104 else if($type == 'new-shelve') { 96 else if($type == 'new-shelve') {
105 - return 'http://192.168.102.216:8087/yohosearch/new-shelve.json';//'http://182.92.99.119:8080/yohosearch/new-shelve.json';  
106 -// return 'http://182.92.99.119:8080/yohosearch/new-shelve.json';//'http://182.92.99.119:8080/yohosearch/new-shelve.json'; 97 + return 'http://192.168.102.216:8080/yohosearch/new-shelve.json';//'http://182.92.99.119:8080/yohosearch/new-shelve.json';
107 } 98 }
108 elseif ($type == 'shop') { 99 elseif ($type == 'shop') {
109 - return 'http://192.168.102.216:8087/yohosearch/shops.json';  
110 -// return 'http://101.200.31.165/yohosearch/shops.json';  
111 -// return 'http://182.92.99.119:8080/yohosearch/shops.json'; 100 + return 'http://192.168.102.216:8080/yohosearch/shops.json';
112 } 101 }
113 elseif ($type == 'search') { 102 elseif ($type == 'search') {
114 - return 'http://192.168.102.216:8087/yohosearch/search-once.json'; 103 + return 'http://192.168.102.216:8080/yohosearch/search-once.json';
115 } 104 }
116 elseif ($type == 'brand') { 105 elseif ($type == 'brand') {
117 - return 'http://192.168.102.216:8087/yohosearch/brand/list.json';  
118 -// return 'http://101.200.31.165/yohosearch/brand/list.json';  
119 -// return 'http://182.92.99.119:8080/yohosearch/brand/list.json'; 106 + return 'http://192.168.102.216:8080/yohosearch/brand/list.json';
120 } 107 }
121 - return 'http://192.168.102.216:8087/yohosearch/search.json';//支持shop_id  
122 - //return 'http://101.200.31.165/yohosearch/search.json';  
123 -// return 'http://182.92.99.119:8080/yohosearch/search.json'; 108 + return 'http://192.168.102.216:8080/yohosearch/search.json';;//支持shop_id
124 } 109 }
125 } 110 }
126 111
@@ -23,7 +23,7 @@ var jumpToApp = $('#jump-to-app').val(); @@ -23,7 +23,7 @@ var jumpToApp = $('#jump-to-app').val();
23 23
24 var mIntro, aIntro; 24 var mIntro, aIntro;
25 25
26 -var moreHammer, likeHammer; 26 +var moreHammer, likeHammer, $goodName, $title;
27 27
28 require('../../plugin/wx-share'); 28 require('../../plugin/wx-share');
29 29
@@ -32,6 +32,15 @@ ellipsis.init(); @@ -32,6 +32,15 @@ ellipsis.init();
32 //Init LazyLoad 32 //Init LazyLoad
33 lazyLoad($('img.lazy')); 33 lazyLoad($('img.lazy'));
34 34
  35 +if ($('.good-detail-text .name').length > 0) {
  36 + $('.good-detail-text .name').each(function() {
  37 + $goodName = $(this);
  38 + $title = $goodName.find('a');
  39 +
  40 + $title[0].mlellipsis(2);
  41 + });
  42 +}
  43 +
35 //文字介绍文字截取 44 //文字介绍文字截取
36 $intro[0].mlellipsis(3); 45 $intro[0].mlellipsis(3);
37 46