Showing
3 changed files
with
15 additions
and
15 deletions
@@ -18,18 +18,18 @@ class Yohobuy | @@ -18,18 +18,18 @@ class Yohobuy | ||
18 | { | 18 | { |
19 | 19 | ||
20 | // /* 正式环境 */ | 20 | // /* 正式环境 */ |
21 | -// const API_URL = 'http://api2.open.yohobuy.com/'; | ||
22 | -// const API_URL2 = 'http://api.open.yohobuy.com/'; | ||
23 | -// const SERVICE_URL = 'http://service.api.yohobuy.com/'; | ||
24 | -// const YOHOBUY_URL = 'http://www.yohobuy.com/'; | 21 | + // const API_URL = 'http://api2.open.yohobuy.com/'; |
22 | + // const API_URL2 = 'http://api.open.yohobuy.com/'; | ||
23 | + // const SERVICE_URL = 'http://service.api.yohobuy.com/'; | ||
24 | + // const YOHOBUY_URL = 'http://www.yohobuy.com/'; | ||
25 | 25 | ||
26 | /* 测试环境 */ | 26 | /* 测试环境 */ |
27 | - const API_URL = 'http://test2.open.yohobuy.com/'; | ||
28 | - const SERVICE_URL = 'http://test.service.api.yohobuy.com/'; | ||
29 | - const YOHOBUY_URL = 'http://www.yohobuy.com/'; | ||
30 | - const API_URL_MYCENTER = 'http://192.168.102.213:8080/api-gateway-web/'; // 我的个人中心接口URL | ||
31 | - const API_URL_SHOPINGCART = 'http://192.168.102.213:8080/api-gateway-web/'; // 我的购物车接口URL | ||
32 | - const API_URL_PRODUCTDETAIL = 'http://172.16.6.145:8080/'; // 商品详情页 | 27 | + const API_URL = 'http://test2.open.yohobuy.com/'; |
28 | + const SERVICE_URL = 'http://test.service.api.yohobuy.com/'; | ||
29 | + const YOHOBUY_URL = 'http://www.yohobuy.com/'; | ||
30 | + const API_URL_MYCENTER = 'http://192.168.102.213:8080/api-gateway-web/'; // 我的个人中心接口URL | ||
31 | + const API_URL_SHOPINGCART = 'http://192.168.102.213:8080/api-gateway-web/'; // 我的购物车接口URL | ||
32 | + const API_URL_PRODUCTDETAIL = 'http://172.16.6.145:8080/'; // 商品详情页 | ||
33 | 33 | ||
34 | /** | 34 | /** |
35 | * 私钥列表 | 35 | * 私钥列表 |
@@ -21,15 +21,15 @@ | @@ -21,15 +21,15 @@ | ||
21 | </div> | 21 | </div> |
22 | <div class="my-link clearfix {{^isLogin}}no-login{{/isLogin}}"> | 22 | <div class="my-link clearfix {{^isLogin}}no-login{{/isLogin}}"> |
23 | <a class="link-item" href="/home/favorite"> | 23 | <a class="link-item" href="/home/favorite"> |
24 | - {{#if product_favorite_total}}{{product_favorite_total}}{{/if}} | 24 | + {{#isLogin}}{{product_favorite_total}}{{/isLogin}} |
25 | <p>收藏的商品</p> | 25 | <p>收藏的商品</p> |
26 | </a> | 26 | </a> |
27 | <a class="link-item" href="/home/favorite?tab=brand"> | 27 | <a class="link-item" href="/home/favorite?tab=brand"> |
28 | - {{#if brand_favorite_total}}{{brand_favorite_total}}{{/if}} | 28 | + {{#isLogin}}{{brand_favorite_total}}{{/isLogin}} |
29 | <p>收藏的品牌</p> | 29 | <p>收藏的品牌</p> |
30 | </a> | 30 | </a> |
31 | <a class="link-item" href="/home/"> | 31 | <a class="link-item" href="/home/"> |
32 | - {{#if product_browse}}{{product_browse}}{{/if}} | 32 | + {{#isLogin}}{{product_browse}}{{/isLogin}} |
33 | <p>浏览记录</p> | 33 | <p>浏览记录</p> |
34 | </a> | 34 | </a> |
35 | </div> | 35 | </div> |
@@ -48,11 +48,11 @@ class HomeController extends AbstractAction | @@ -48,11 +48,11 @@ class HomeController extends AbstractAction | ||
48 | 'myIndexPage' => true, | 48 | 'myIndexPage' => true, |
49 | 'pageFooter' => true | 49 | 'pageFooter' => true |
50 | ); | 50 | ); |
51 | - echo $this->getRequest()->getActionName(); | 51 | + // echo $this->getRequest()->getActionName(); |
52 | $uid = $this->getUid(); | 52 | $uid = $this->getUid(); |
53 | if ($uid) { | 53 | if ($uid) { |
54 | $data['isLogin'] = true; | 54 | $data['isLogin'] = true; |
55 | - $uid = 8826435; | 55 | + $uid = 8826435; |
56 | $data += \Index\UserModel::getUserProfileData($uid); | 56 | $data += \Index\UserModel::getUserProfileData($uid); |
57 | $data += \Index\UserModel::getInfoNumData($uid); | 57 | $data += \Index\UserModel::getInfoNumData($uid); |
58 | 58 |
-
Please register or login to post a comment