Merge branch 'release/4.4' of http://git.dev.yoho.cn/web/yohobuywap into release/4.4
Showing
8 changed files
with
17 additions
and
12 deletions
@@ -255,6 +255,7 @@ class CartData | @@ -255,6 +255,7 @@ class CartData | ||
255 | { | 255 | { |
256 | $param = Yohobuy::param(); | 256 | $param = Yohobuy::param(); |
257 | $param['method'] = 'app.Shopping.payment'; | 257 | $param['method'] = 'app.Shopping.payment'; |
258 | + $param['enable_red_envelopes'] = 0; //h5不使用红包 | ||
258 | $param['cart_type'] = $cartType; | 259 | $param['cart_type'] = $cartType; |
259 | $param['yoho_coin_mode'] = $isUseYohoCoin; | 260 | $param['yoho_coin_mode'] = $isUseYohoCoin; |
260 | $param['uid'] = $uid; | 261 | $param['uid'] = $uid; |
@@ -35,11 +35,11 @@ class SearchData | @@ -35,11 +35,11 @@ class SearchData | ||
35 | case 'preview': | 35 | case 'preview': |
36 | // return 'http://101.200.31.165/yohosearch/search.json'; | 36 | // return 'http://101.200.31.165/yohosearch/search.json'; |
37 | return 'http://192.168.10.64:8080/yohosearch/search.json'; | 37 | return 'http://192.168.10.64:8080/yohosearch/search.json'; |
38 | - case 'test': | 38 | + case 'testing': |
39 | return 'http://testing.yohoops.org/yohosearch/search.json'; | 39 | return 'http://testing.yohoops.org/yohosearch/search.json'; |
40 | case 'developer': | 40 | case 'developer': |
41 | default: | 41 | default: |
42 | - return 'http://192.168.102.216:8087/yohosearch/search.json'; | 42 | + return 'http://192.168.102.216:8080/yohosearch/search.json'; |
43 | } | 43 | } |
44 | } | 44 | } |
45 | 45 |
@@ -60,7 +60,10 @@ class ShopProcess | @@ -60,7 +60,10 @@ class ShopProcess | ||
60 | //搜索链接 | 60 | //搜索链接 |
61 | self::$shopData['url'] = Helpers::url('', array('shop_id' => self::$shopId), 'search'); | 61 | self::$shopData['url'] = Helpers::url('', array('shop_id' => self::$shopId), 'search'); |
62 | //人气单品的链接 | 62 | //人气单品的链接 |
63 | - self::$shopData['more_url'] = Helpers::url('', array('shop_id' => self::$shopId, 'order' => 's_n_d', 'title' => '人气'), 'search'); | 63 | + self::$shopData['more_url'] = Helpers::url('', array('shop_id' => self::$shopId, 'order' => 's_n_d', 'title' => '人气单品',), 'search'); |
64 | + if (self::$appVersion) { | ||
65 | + self::$shopData['more_url'] .= '&yohobuy={"action":"go.list","params":{"shop_id":"'.self::$shopId.'","title":"人气单品"}}'; | ||
66 | + } | ||
64 | } | 67 | } |
65 | 68 | ||
66 | /** | 69 | /** |
@@ -165,6 +168,9 @@ class ShopProcess | @@ -165,6 +168,9 @@ class ShopProcess | ||
165 | { | 168 | { |
166 | self::$shopData['hotCategory']['name'] = '热门品类'; | 169 | self::$shopData['hotCategory']['name'] = '热门品类'; |
167 | foreach ($data as $cate) { | 170 | foreach ($data as $cate) { |
171 | + if ($cate['isShowInApp'] !== 'Y') { | ||
172 | + continue; | ||
173 | + } | ||
168 | self::$shopData['hotCategory']['list'][] = array('url' => $cate['url'], 'img' => $cate['src']); | 174 | self::$shopData['hotCategory']['list'][] = array('url' => $cate['url'], 'img' => $cate['src']); |
169 | } | 175 | } |
170 | return $data; | 176 | return $data; |
@@ -178,7 +184,6 @@ class ShopProcess | @@ -178,7 +184,6 @@ class ShopProcess | ||
178 | private static function hotProducts_APP($data) | 184 | private static function hotProducts_APP($data) |
179 | { | 185 | { |
180 | foreach ($data as $val) { | 186 | foreach ($data as $val) { |
181 | - | ||
182 | $goods = array( | 187 | $goods = array( |
183 | 'url' => Helpers::getUrlBySkc($val['productId'], $val['goodsId'], $val['cnAlphabet']), | 188 | 'url' => Helpers::getUrlBySkc($val['productId'], $val['goodsId'], $val['cnAlphabet']), |
184 | 'img' => Helpers::getImageUrl($val['src'], 235, 314), | 189 | 'img' => Helpers::getImageUrl($val['src'], 235, 314), |
@@ -187,7 +192,7 @@ class ShopProcess | @@ -187,7 +192,7 @@ class ShopProcess | ||
187 | 'presentPrice' => '¥'.$val['salesPrice'] | 192 | 'presentPrice' => '¥'.$val['salesPrice'] |
188 | ); | 193 | ); |
189 | if (!empty(self::$appVersion)) { | 194 | if (!empty(self::$appVersion)) { |
190 | - $goods['url'] .= '?openby:yohobuy={"action":"go.productDetail","params":{"product_skn":' . $productData['product_skn'] . '}}'; | 195 | + $goods['url'] .= '?openby:yohobuy={"action":"go.productDetail","params":{"product_skn":' . $val['productSkn'] . '}}'; |
191 | } | 196 | } |
192 | self::$shopData['hotList'][] = $goods; | 197 | self::$shopData['hotList'][] = $goods; |
193 | } | 198 | } |
@@ -76,10 +76,10 @@ | @@ -76,10 +76,10 @@ | ||
76 | </div> | 76 | </div> |
77 | </section> | 77 | </section> |
78 | 78 | ||
79 | + {{#if isJit}} | ||
80 | + {{> me/order/jit-more}} | ||
81 | + {{/if}} | ||
79 | <section class="block goods-bottom"> | 82 | <section class="block goods-bottom"> |
80 | - {{#if isJit}} | ||
81 | - {{> me/order/jit-more}} | ||
82 | - {{/if}} | ||
83 | {{#each goods}} | 83 | {{#each goods}} |
84 | {{> me/order/good}} | 84 | {{> me/order/good}} |
85 | {{/each}} | 85 | {{/each}} |
@@ -19,7 +19,7 @@ | @@ -19,7 +19,7 @@ | ||
19 | {{#if brandList}} | 19 | {{#if brandList}} |
20 | <li class="buriedpoint"> | 20 | <li class="buriedpoint"> |
21 | {{#if brandList.url}} | 21 | {{#if brandList.url}} |
22 | - <a href="{{shopCategory.url}}">品牌一览</a> | 22 | + <a href="{{brandList.url}}">品牌一览</a> |
23 | {{^}} | 23 | {{^}} |
24 | 品牌一览 | 24 | 品牌一览 |
25 | <div class="sub-group hide"> | 25 | <div class="sub-group hide"> |
@@ -208,7 +208,6 @@ class SearchController extends AbstractAction | @@ -208,7 +208,6 @@ class SearchController extends AbstractAction | ||
208 | */ | 208 | */ |
209 | public function searchAction() | 209 | public function searchAction() |
210 | { | 210 | { |
211 | - error_reporting(0); | ||
212 | $data = array(); | 211 | $data = array(); |
213 | 212 | ||
214 | do { | 213 | do { |
@@ -440,7 +440,7 @@ class ListModel | @@ -440,7 +440,7 @@ class ListModel | ||
440 | if (!isset($val['shop_id'])) { | 440 | if (!isset($val['shop_id'])) { |
441 | continue; | 441 | continue; |
442 | } | 442 | } |
443 | - $result[$key]['url'] = Helpers::url('/product/index/brand/', array('shop_id', $val['shop_id'])); | 443 | + $result[$key]['url'] = Helpers::url('/product/index/brand/', array('shop_id'=>$val['shop_id'])); |
444 | $result[$key]['thumb'] = $val['brand_ico']; | 444 | $result[$key]['thumb'] = $val['brand_ico']; |
445 | $result[$key]['name'] = $val['brand_name']; | 445 | $result[$key]['name'] = $val['brand_name']; |
446 | } | 446 | } |
-
Please register or login to post a comment