Authored by hf

do product detail page

@@ -18,17 +18,17 @@ class Yohobuy @@ -18,17 +18,17 @@ 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 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 32
33 33
34 /** 34 /**
@@ -22,7 +22,7 @@ class PlusstarData @@ -22,7 +22,7 @@ class PlusstarData
22 { 22 {
23 23
24 const URI_BRANDLIST = 'guang/api/v1/plustar/getlist'; 24 const URI_BRANDLIST = 'guang/api/v1/plustar/getlist';
25 - const URI_BRANDINFO_PLUSSTAR = 'guang/service/v1/plustar/'; 25 + const URI_BRANDINFO_PLUSSTAR = 'guang/service/v1/plustar/'; // 'guang/service/v3/plustar/'
26 const URI_BRANDINFO_FAVORITE = 'shops/service/v1/favorite/'; 26 const URI_BRANDINFO_FAVORITE = 'shops/service/v1/favorite/';
27 const URI_BRANDINFO_ARTICLE = 'guang/service/v1/article/'; 27 const URI_BRANDINFO_ARTICLE = 'guang/service/v1/article/';
28 28
@@ -16,5 +16,60 @@ use Api\Yohobuy; @@ -16,5 +16,60 @@ use Api\Yohobuy;
16 */ 16 */
17 class DetailData 17 class DetailData
18 { 18 {
19 - 19 +
  20 + /**
  21 + * 商品信息
  22 + *
  23 + * @param int $productId
  24 + * @return array
  25 + */
  26 + public function product($productId)
  27 + {
  28 +
  29 + }
  30 +
  31 + /**
  32 + * 商品小图
  33 + *
  34 + * @param int $goodsId
  35 + * @return array
  36 + */
  37 + public function goods($goodsId)
  38 + {
  39 +
  40 + }
  41 +
  42 + /**
  43 + * 品牌
  44 + *
  45 + * @param int $brandId
  46 + * @return array
  47 + */
  48 + public function brand($brandId)
  49 + {
  50 +
  51 + }
  52 +
  53 + /**
  54 + * 库存
  55 + *
  56 + * @param int $productId
  57 + * @return int
  58 + */
  59 + public function storage($productId)
  60 + {
  61 +
  62 + }
  63 +
  64 + /**
  65 + * 尺码
  66 + *
  67 + * @param int $productSkn
  68 + * @return array
  69 + */
  70 + public function size($productSkn)
  71 + {
  72 +
  73 + }
  74 +
20 } 75 }
@@ -41,7 +41,7 @@ class HomeController extends AbstractAction @@ -41,7 +41,7 @@ class HomeController extends AbstractAction
41 { 41 {
42 // 设置网站标题 42 // 设置网站标题
43 $this->setTitle('个人中心'); 43 $this->setTitle('个人中心');
44 - $this->setNavHeader('个人中心', true, SITE_MAIN); 44 + $this->setNavHeader('个人中心');
45 45
46 // $uid = $this->getUid(); 46 // $uid = $this->getUid();
47 $uid = 8826435; 47 $uid = 8826435;
@@ -53,6 +53,6 @@ application.assets.path = ROOT_PATH "/assets" @@ -53,6 +53,6 @@ application.assets.path = ROOT_PATH "/assets"
53 application.version = "1.1.8" 53 application.version = "1.1.8"
54 54
55 ; 网站SEO信息 55 ; 网站SEO信息
56 -application.seo.title = "Yoho!Buy有货 | 年轻人潮流购物中心" 56 +application.seo.title = "Yoho!Buy有货 | 潮流购物逛不停"
57 application.seo.keywords = "Yoho! 有货官网,潮流志,潮流男装,潮牌,美国潮牌,日本潮牌,香港潮牌,潮牌店,新品首发,欧美潮流,全球购,代购,时尚,流行,特卖,B2C,正品,购物网站,网上购物,货到付款" 57 application.seo.keywords = "Yoho! 有货官网,潮流志,潮流男装,潮牌,美国潮牌,日本潮牌,香港潮牌,潮牌店,新品首发,欧美潮流,全球购,代购,时尚,流行,特卖,B2C,正品,购物网站,网上购物,货到付款"
58 application.seo.description = "YOHO! 有货,年轻人潮流购物中心,中国最大的潮流商品购物网站。100%品牌正品保证,支持货到付款。作为YOHO!旗下的购物平台,汇集了全球潮流时尚商品和中国最流行的商品,也是国内最大的原创文化商品平台,也是香港,台湾地区流行商品的集中地。同时包含日本、韩国等众多国外潮流品牌,带给您全新潮流购物体验。" 58 application.seo.description = "YOHO! 有货,年轻人潮流购物中心,中国最大的潮流商品购物网站。100%品牌正品保证,支持货到付款。作为YOHO!旗下的购物平台,汇集了全球潮流时尚商品和中国最流行的商品,也是国内最大的原创文化商品平台,也是香港,台湾地区流行商品的集中地。同时包含日本、韩国等众多国外潮流品牌,带给您全新潮流购物体验。"
@@ -53,6 +53,6 @@ application.assets.path = ROOT_PATH "/assets" @@ -53,6 +53,6 @@ application.assets.path = ROOT_PATH "/assets"
53 application.version = "1.1.8" 53 application.version = "1.1.8"
54 54
55 ; 网站SEO信息 55 ; 网站SEO信息
56 -application.seo.title = "Yoho!Buy有货 | 年轻人潮流购物中心" 56 +application.seo.title = "Yoho!Buy有货 | 潮流购物逛不停"
57 application.seo.keywords = "Yoho! 有货官网,潮流志,潮流男装,潮牌,美国潮牌,日本潮牌,香港潮牌,潮牌店,新品首发,欧美潮流,全球购,代购,时尚,流行,特卖,B2C,正品,购物网站,网上购物,货到付款" 57 application.seo.keywords = "Yoho! 有货官网,潮流志,潮流男装,潮牌,美国潮牌,日本潮牌,香港潮牌,潮牌店,新品首发,欧美潮流,全球购,代购,时尚,流行,特卖,B2C,正品,购物网站,网上购物,货到付款"
58 application.seo.description = "YOHO! 有货,年轻人潮流购物中心,中国最大的潮流商品购物网站。100%品牌正品保证,支持货到付款。作为YOHO!旗下的购物平台,汇集了全球潮流时尚商品和中国最流行的商品,也是国内最大的原创文化商品平台,也是香港,台湾地区流行商品的集中地。同时包含日本、韩国等众多国外潮流品牌,带给您全新潮流购物体验。" 58 application.seo.description = "YOHO! 有货,年轻人潮流购物中心,中国最大的潮流商品购物网站。100%品牌正品保证,支持货到付款。作为YOHO!旗下的购物平台,汇集了全球潮流时尚商品和中国最流行的商品,也是国内最大的原创文化商品平台,也是香港,台湾地区流行商品的集中地。同时包含日本、韩国等众多国外潮流品牌,带给您全新潮流购物体验。"
@@ -53,6 +53,6 @@ application.assets.path = ROOT_PATH "/assets" @@ -53,6 +53,6 @@ application.assets.path = ROOT_PATH "/assets"
53 application.version = "1.1.8" 53 application.version = "1.1.8"
54 54
55 ; 网站SEO信息 55 ; 网站SEO信息
56 -application.seo.title = "Yoho!Buy有货 | 年轻人潮流购物中心" 56 +application.seo.title = "Yoho!Buy有货 | 潮流购物逛不停"
57 application.seo.keywords = "Yoho! 有货官网,潮流志,潮流男装,潮牌,美国潮牌,日本潮牌,香港潮牌,潮牌店,新品首发,欧美潮流,全球购,代购,时尚,流行,特卖,B2C,正品,购物网站,网上购物,货到付款" 57 application.seo.keywords = "Yoho! 有货官网,潮流志,潮流男装,潮牌,美国潮牌,日本潮牌,香港潮牌,潮牌店,新品首发,欧美潮流,全球购,代购,时尚,流行,特卖,B2C,正品,购物网站,网上购物,货到付款"
58 application.seo.description = "YOHO! 有货,年轻人潮流购物中心,中国最大的潮流商品购物网站。100%品牌正品保证,支持货到付款。作为YOHO!旗下的购物平台,汇集了全球潮流时尚商品和中国最流行的商品,也是国内最大的原创文化商品平台,也是香港,台湾地区流行商品的集中地。同时包含日本、韩国等众多国外潮流品牌,带给您全新潮流购物体验。" 58 application.seo.description = "YOHO! 有货,年轻人潮流购物中心,中国最大的潮流商品购物网站。100%品牌正品保证,支持货到付款。作为YOHO!旗下的购物平台,汇集了全球潮流时尚商品和中国最流行的商品,也是国内最大的原创文化商品平台,也是香港,台湾地区流行商品的集中地。同时包含日本、韩国等众多国外潮流品牌,带给您全新潮流购物体验。"
@@ -53,6 +53,6 @@ application.assets.path = ROOT_PATH "/assets" @@ -53,6 +53,6 @@ application.assets.path = ROOT_PATH "/assets"
53 application.version = "1.1.8" 53 application.version = "1.1.8"
54 54
55 ; 网站SEO信息 55 ; 网站SEO信息
56 -application.seo.title = "Yoho!Buy有货 | 年轻人潮流购物中心" 56 +application.seo.title = "Yoho!Buy有货 | 潮流购物逛不停"
57 application.seo.keywords = "Yoho! 有货官网,潮流志,潮流男装,潮牌,美国潮牌,日本潮牌,香港潮牌,潮牌店,新品首发,欧美潮流,全球购,代购,时尚,流行,特卖,B2C,正品,购物网站,网上购物,货到付款" 57 application.seo.keywords = "Yoho! 有货官网,潮流志,潮流男装,潮牌,美国潮牌,日本潮牌,香港潮牌,潮牌店,新品首发,欧美潮流,全球购,代购,时尚,流行,特卖,B2C,正品,购物网站,网上购物,货到付款"
58 application.seo.description = "YOHO! 有货,年轻人潮流购物中心,中国最大的潮流商品购物网站。100%品牌正品保证,支持货到付款。作为YOHO!旗下的购物平台,汇集了全球潮流时尚商品和中国最流行的商品,也是国内最大的原创文化商品平台,也是香港,台湾地区流行商品的集中地。同时包含日本、韩国等众多国外潮流品牌,带给您全新潮流购物体验。" 58 application.seo.description = "YOHO! 有货,年轻人潮流购物中心,中国最大的潮流商品购物网站。100%品牌正品保证,支持货到付款。作为YOHO!旗下的购物平台,汇集了全球潮流时尚商品和中国最流行的商品,也是国内最大的原创文化商品平台,也是香港,台湾地区流行商品的集中地。同时包含日本、韩国等众多国外潮流品牌,带给您全新潮流购物体验。"