Authored by yangyang

解决了冲突

1 -commit 7229af7cecf40861c6fb3987c1f38ac3da2faef9  
2 -Author: Lynnic <gunix@foxmail.com>  
3 -Date: Fri Nov 13 17:45:31 2015 +0800  
4 -  
5 - update  
6 -  
7 -commit 2c21a46be447a1bc1982d8ad3cad7f8c00a63a0f  
8 -Author: xuqi <xuqi9010@gmail.com>  
9 -Date: Fri Nov 13 17:27:02 2015 +0800  
10 -  
11 - rm temp file  
12 -  
13 -commit 34763241edf84698b24ecb2aa2f2bfa1e37afc32  
14 -Author: liangzhifeng <zhifeng.liang@yoho.cn>  
15 -Date: Fri Nov 13 16:58:28 2015 +0800  
16 -  
17 - update yas version  
18 -  
19 -commit 3b4a6cd6177ec9cef8ab953b165da1d222974382  
20 -Merge: c1b68bb 7ccb30d  
21 -Author: liangzhifeng <zhifeng.liang@yoho.cn>  
22 -Date: Fri Nov 13 16:39:59 2015 +0800  
23 -  
24 - Merge branch 'develop' of git.dev.yoho.cn:web/yohobuy into develop  
25 -  
26 -commit c1b68bb739bb2535d9d8a205aa198ccc1844752d  
27 -Author: liangzhifeng <zhifeng.liang@yoho.cn>  
28 -Date: Fri Nov 13 16:39:26 2015 +0800  
29 -  
30 - update yas version  
31 -  
32 -commit 7ccb30d2ca3d45bf82638f63c8ae0e0db27b3a5f  
33 -Author: Lynnic <gunix@foxmail.com>  
34 -Date: Fri Nov 13 15:37:18 2015 +0800  
35 -  
36 - changed the name of conflicted function  
37 -  
38 -commit e5569a46931588f42607e84bec1db64a8cf46bcd  
39 -Merge: a7552b8 b4b964e  
40 -Author: Lynnic <gunix@foxmail.com>  
41 -Date: Fri Nov 13 14:50:09 2015 +0800  
42 -  
43 - Merge branch 'develop' of http://git.dev.yoho.cn/web/yohobuy into develop  
44 -  
45 -commit b4b964e589b88c0821e1138e46d56dca3f139bcd  
46 -Merge: 6f68082 7a6895e  
47 -Author: ccbikai <ccbikai@qq.com>  
48 -Date: Fri Nov 13 14:35:33 2015 +0800  
49 -  
50 - Merge branch 'develop' of http://git.dev.yoho.cn/web/yohobuy into develop  
51 -  
52 -commit 6f6808272a6a6e40e425bc3df69eff26512e5c80  
53 -Author: ccbikai <ccbikai@qq.com>  
54 -Date: Fri Nov 13 14:35:28 2015 +0800  
55 -  
56 - 修改地址页面样式  
57 -  
58 -commit 7a6895ebfa302d46b791f78196614b9a6d9404ce  
59 -Merge: 8413e20 0ff1e35  
60 -Author: uedxwg <xieweiguang11@163.com>  
61 -Date: Fri Nov 13 14:23:11 2015 +0800  
62 -  
63 - Merge branch 'develop' of http://git.dev.yoho.cn/web/yohobuy into develop  
64 -  
65 -commit 8413e2059464cec3c386bbcb25cd5f7f9bc3e2da  
66 -Author: uedxwg <xieweiguang11@163.com>  
67 -Date: Fri Nov 13 14:22:31 2015 +0800  
68 -  
69 - 'hotrank'  
70 -  
71 -commit a7552b8af3de3fba625736b885aac3d6aeb57b0a  
72 -Author: lynnic <gunix@foxmail.com>  
73 -Date: Fri Nov 13 13:40:22 2015 +0800  
74 -  
75 - update  
76 -  
77 -commit 9ce2bf2913bc9909a5fac0fa4a30777ba4db23c3  
78 -Author: ccbikai <ccbikai@qq.com>  
79 -Date: Fri Nov 13 13:35:07 2015 +0800  
80 -  
81 -  
82 -  
83 -commit 0ff1e35337c656c288243a40602bd0cb7a85fdb4  
84 -Merge: 88ef01d cdba827  
85 -Author: ccbikai <ccbikai@qq.com>  
86 -Date: Fri Nov 13 13:30:37 2015 +0800  
87 -  
88 - merge code  
89 -  
90 -commit 88ef01d3931dc8b61657019bde2e02186c0222e3  
91 -Author: ccbikai <ccbikai@qq.com>  
92 -Date: Fri Nov 13 13:29:45 2015 +0800  
93 -  
94 - 地址模板修改  
95 -  
96 -commit 072785ab101cff6bcd3f5548165cad6d18c79aa1  
97 -Merge: 5e3e194 cdba827  
98 -Author: liangzhifeng <zhifeng.liang@yoho.cn>  
99 -Date: Fri Nov 13 13:25:15 2015 +0800  
100 -  
101 - Merge branch 'develop' of git.dev.yoho.cn:web/yohobuy into develop  
102 -  
103 -commit cdba82787e574d2274025227bdcfd97553fbe30e  
104 -Merge: 91cebbc 35dbe8b  
105 -Author: hf <fei.hong@yoho.cn>  
106 -Date: Fri Nov 13 13:24:46 2015 +0800  
107 -  
108 - merge master css js code  
109 -  
110 -commit 91cebbc682532eab919ea903c7668f3ff9fb01a1  
111 -Author: hf <fei.hong@yoho.cn>  
112 -Date: Fri Nov 13 13:24:01 2015 +0800  
113 -  
114 - merge master css js code  
115 -  
116 -commit 5e3e194ef858a371f65b0a6e2965f79ec65fdb49  
117 -Merge: 9cb6944 35dbe8b  
118 -Author: liangzhifeng <zhifeng.liang@yoho.cn>  
119 -Date: Fri Nov 13 13:23:02 2015 +0800  
120 -  
121 - Merge branch 'develop' of git.dev.yoho.cn:web/yohobuy into develop  
122 -  
123 -commit 35dbe8bc57c1accce337e199df6d323d4e7b7ead  
124 -Author: ccbikai <ccbikai@qq.com>  
125 -Date: Fri Nov 13 13:22:34 2015 +0800  
126 -  
127 - 地址管理增加数据  
128 -  
129 -commit 9cb6944ea59db8f2958f10de518db079aa0bc3ad  
130 -Merge: 09500b4 bfaf6f7  
131 -Author: liangzhifeng <zhifeng.liang@yoho.cn>  
132 -Date: Fri Nov 13 13:22:11 2015 +0800  
133 -  
134 - Merge branch 'develop' of git.dev.yoho.cn:web/yohobuy into develop  
135 -  
136 -commit f735917c59165291cfb3fcb064e06bb424e64b40  
137 -Author: lynnic <gunix@foxmail.com>  
138 -Date: Fri Nov 13 13:19:56 2015 +0800  
139 -  
140 - product detail  
141 -  
142 -commit bfaf6f7da9e7b3f15ca3e2223af4b04e890f7181  
143 -Merge: ddb8634 da2dd89  
144 -Author: ccbikai <ccbikai@qq.com>  
145 -Date: Fri Nov 13 11:47:23 2015 +0800  
146 -  
147 - Merge branch 'develop' of http://git.dev.yoho.cn/web/yohobuy into develop  
148 -  
149 -commit ddb8634a6229dafd38b4380cdb4861d768cb207c  
150 -Author: ccbikai <ccbikai@qq.com>  
151 -Date: Fri Nov 13 11:47:18 2015 +0800  
152 -  
153 - 地址管理页面样式  
154 -  
155 -commit 09500b4de29d35d7edb9526feaef5cfda53bc48b  
156 -Merge: b3d45dc da2dd89  
157 -Author: liangzhifeng <zhifeng.liang@yoho.cn>  
158 -Date: Fri Nov 13 11:18:17 2015 +0800  
159 -  
160 - Merge branch 'develop' of git.dev.yoho.cn:web/yohobuy into develop  
161 -  
162 -commit b3d45dcfe30770f888ccde298a1aa65c7b06c829  
163 -Author: liangzhifeng <zhifeng.liang@yoho.cn>  
164 -Date: Fri Nov 13 11:17:43 2015 +0800  
165 -  
166 - update the version of yas  
167 -  
168 -commit da2dd89e32be5bb319141af09fe5b8f1404e192d  
169 -Author: hf <fei.hong@yoho.cn>  
170 -Date: Fri Nov 13 11:15:06 2015 +0800  
171 -  
172 - merge master css js code  
173 -  
174 -commit e677bad09bfc0959d667a29a035375cf9feba5d2  
175 -Merge: cef0926 f1ec957  
176 -Author: hf <fei.hong@yoho.cn>  
177 -Date: Fri Nov 13 10:52:10 2015 +0800  
178 -  
179 - merge master css js code  
180 -  
181 -commit cef09262f23a1ba1fadef9c56fb2088cfd75cde5  
182 -Merge: d927c9f 1483b13  
183 -Author: hf <fei.hong@yoho.cn>  
184 -Date: Fri Nov 13 10:51:02 2015 +0800  
185 -  
186 - do merge master code  
187 -  
188 -commit 1483b137ec3273153d3dfa8f47aadd6b4b88fb9c  
189 -Author: ccbikai <ccbikai@qq.com>  
190 -Date: Fri Nov 13 10:18:43 2015 +0800  
191 -  
192 - 个人中心首页完善  
193 -  
194 -commit 2b3507b2e6319697d96723e7ca3d72fcdce8bedc  
195 -Merge: a772911 67b011f  
196 -Author: ccbikai <ccbikai@qq.com>  
197 -Date: Fri Nov 13 09:39:53 2015 +0800  
198 -  
199 - Merge branch 'develop' of http://git.dev.yoho.cn/web/yohobuy into develop  
200 -  
201 -commit 67b011f1647426d9d4e59daf67cd75e2e29d1acb  
202 -Merge: 9c12951 a7a3613  
203 -Author: uedxwg <xieweiguang11@163.com>  
204 -Date: Thu Nov 12 18:40:33 2015 +0800  
205 -  
206 - Merge branch 'develop' of http://git.dev.yoho.cn/web/yohobuy into develop  
207 -  
208 -commit 9c12951e3d4aaa06cc99b8d76da2d8aa1b3bfcc1  
209 -Author: uedxwg <xieweiguang11@163.com>  
210 -Date: Thu Nov 12 18:39:49 2015 +0800  
211 -  
212 - 'hotrank'  
213 -  
214 -commit a7a36134fbca6e9d5f4cb60e40fb9a9a83cb2c1a  
215 -Merge: d336ffb 47f54e6  
216 -Author: Rock Zhang <iamgtskk@gmail.com>  
217 -Date: Thu Nov 12 18:30:47 2015 +0800  
218 -  
219 - Merge branch 'develop' of git.dev.yoho.cn:web/yohobuy into develop  
220 -  
221 - Conflicts:  
222 - framework  
223 -  
224 -commit d336ffb79bb7ead39b230b751f6a7a296cec4b78  
225 -Author: Rock Zhang <iamgtskk@gmail.com>  
226 -Date: Thu Nov 12 18:30:23 2015 +0800  
227 -  
228 - 完成个人中心部分功能  
229 -  
230 -commit f1ec957452269f97436356c5e718460847d32b52  
231 -Author: hf <fei.hong@yoho.cn>  
232 -Date: Thu Nov 12 18:18:41 2015 +0800  
233 -  
234 - modify to search goods list style  
235 -  
236 -commit 47f54e6c63dbfdf87d125c17c7538cfd73c9fab9  
237 -Merge: 1ba211d a72e1a2  
238 -Author: lore-w <metro-cpu@hotmail.com>  
239 -Date: Thu Nov 12 18:16:56 2015 +0800  
240 -  
241 - Merge branch 'develop' of git.dev.yoho.cn:web/yohobuy into develop  
242 -  
243 - Conflicts:  
244 - static/js/me/entry.js  
245 - static/sass/me/_index.scss  
246 - template/m.yohobuy.com/partials/layout/use.phtml  
247 -  
248 -commit afe58b17129e155698bf1114ef95ea25e867f43b  
249 -Author: hf <fei.hong@yoho.cn>  
250 -Date: Thu Nov 12 18:12:58 2015 +0800  
251 -  
252 - modify to search goods list style  
253 -  
254 -commit 32827f6aa9b9c3fe39a213e3c4001399868a10f0  
255 -Merge: 76c5106 80adb41  
256 -Author: hf <fei.hong@yoho.cn>  
257 -Date: Thu Nov 12 18:12:27 2015 +0800  
258 -  
259 - Merge remote-tracking branch 'origin/hotfix'  
260 -  
261 -commit 1ba211d6670de1f88538065b9276bdd63be55aef  
262 -Author: lore-w <metro-cpu@hotmail.com>  
263 -Date: Thu Nov 12 18:11:25 2015 +0800  
264 -  
265 - 收藏、意见反馈  
266 -  
267 -commit 80adb4135a73c332ce435693a83fd5610c20721e  
268 -Author: ccbikai <ccbikai@qq.com>  
269 -Date: Thu Nov 12 18:09:40 2015 +0800  
270 -  
271 - 取消搜索不 focus  
272 -  
273 -commit 76c51067fd3afdb2e04ece7f3cf21c7a3d98fb8d  
274 -Author: hf <fei.hong@yoho.cn>  
275 -Date: Thu Nov 12 18:01:57 2015 +0800  
276 -  
277 - modify to search goods list style  
278 -  
279 -commit ebf90d5f499facf9b0b38d3afe3a421273e319f7  
280 -Author: hf <fei.hong@yoho.cn>  
281 -Date: Thu Nov 12 18:01:37 2015 +0800  
282 -  
283 - modify to search goods list style  
284 -  
285 -commit 74c6939a6c0af5dea824447eedd57b40d5d36e8e  
286 -Merge: d874739 4be2273  
287 -Author: hf <fei.hong@yoho.cn>  
288 -Date: Thu Nov 12 18:  
@@ -17,18 +17,18 @@ use Plugin\Cache; @@ -17,18 +17,18 @@ use Plugin\Cache;
17 class Yohobuy 17 class Yohobuy
18 { 18 {
19 19
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/'; 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/';
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 /**
  1 +<?php
  2 +
  3 +namespace LibModels\Wap\Home;
  4 +
  5 +use Api\Sign;
  6 +use Api\Yohobuy;
  7 +
  8 +/**
  9 + * 我的逛数据模型
  10 + *
  11 + * @name GuangData
  12 + * @package LibModels/Wap/Home
  13 + * @copyright yoho.inc
  14 + * @version 1.0 (2015-11-13)
  15 + * @author xiaowei
  16 + */
  17 +class GuangData
  18 +{
  19 +
  20 + const GUANG_URI = 'guang/api/v1/favorite/';
  21 +
  22 + //我的guang
  23 + public static function getGuangInfo($uid, $page, $yh_channel = 1, $gender = '1,3', $limit = 10)
  24 + {
  25 + $param = Yohobuy::param();
  26 + $param['uid'] = $uid;
  27 + $param['page'] = $page;
  28 + $param['gender'] = $gender;
  29 + $param['limit'] = $limit;
  30 + $param['yh_channel'] = $yh_channel;
  31 + $param['client_secret'] = Sign::getSign($param);
  32 +// return Yohobuy::post(Yohobuy::API_URL, $param);
  33 + return Yohobuy::post(Yohobuy::SERVICE_URL . self::GUANG_URI . 'getUserFavArticleList', $param);
  34 + }
  35 +
  36 +}
@@ -2,7 +2,6 @@ @@ -2,7 +2,6 @@
2 2
3 namespace LibModels\Wap\Home; 3 namespace LibModels\Wap\Home;
4 4
5 -use Api\Sign;  
6 use Api\Yohobuy; 5 use Api\Yohobuy;
7 6
8 /** 7 /**
@@ -18,16 +17,23 @@ class OnlineData @@ -18,16 +17,23 @@ class OnlineData
18 { 17 {
19 const ONLINE_URI = 'operations/api/v1/help/'; 18 const ONLINE_URI = 'operations/api/v1/help/';
20 19
21 - //获取帮助列表(分类) 20 + /*
  21 + * 获取帮助列表(分类),缓存1h
  22 + * clientType客户端
  23 + */
22 public static function getOnlineServiceInfo($clientType='iphone') 24 public static function getOnlineServiceInfo($clientType='iphone')
23 { 25 {
24 - return Yohobuy::get(Yohobuy::SERVICE_URL .self::ONLINE_URI.'getCategory', array('client_type'=>$clientType)); 26 + return Yohobuy::get(Yohobuy::SERVICE_URL .self::ONLINE_URI.'getCategory', array('client_type'=>$clientType),3600);
25 } 27 }
26 28
27 - //获取问题详情 29 + /*
  30 + * 获取问题详情,缓存1h
  31 + * cateId问题分类ID
  32 + * clientType客户端
  33 + */
28 public static function getOnlineServiceDetail($cateId, $clientType = 'iphone') 34 public static function getOnlineServiceDetail($cateId, $clientType = 'iphone')
29 { 35 {
30 - return Yohobuy::get(Yohobuy::SERVICE_URL .self::ONLINE_URI.'getHelp', array('category_id'=>$cateId,'client_type'=>$clientType)); 36 + return Yohobuy::get(Yohobuy::SERVICE_URL .self::ONLINE_URI.'getHelp', array('category_id'=>$cateId,'client_type'=>$clientType),3600);
31 } 37 }
32 38
33 } 39 }
  1 +/**
  2 + * 商品详情
  3 + * @author: liangzhifeng<zhifeng.liang@yoho.cn>
  4 + * @date: 2015/11/18
  5 + */
@@ -6,8 +6,11 @@ @@ -6,8 +6,11 @@
6 var $ = require('jquery'), 6 var $ = require('jquery'),
7 Swiper = require('yoho.iswiper'), 7 Swiper = require('yoho.iswiper'),
8 lazyLoad = require('yoho.lazyload'), 8 lazyLoad = require('yoho.lazyload'),
9 - Handlebars = require('yoho.handlebars'),  
10 - goodsSwiper, 9 + Handlebars = require('yoho.handlebars');
  10 +
  11 +var goodsSwiper,
  12 +
  13 + // winH = $(window).height(),
11 sizeSwiper, 14 sizeSwiper,
12 refSwiper, 15 refSwiper,
13 handleHelper; 16 handleHelper;
@@ -57,7 +60,9 @@ handleHelper = Handlebars.registerHelper('addOne', function(index) { @@ -57,7 +60,9 @@ handleHelper = Handlebars.registerHelper('addOne', function(index) {
57 return index + 1; 60 return index + 1;
58 }); 61 });
59 62
60 -// $('#iframe').load(function() {  
61 -// var mainheight = $(this).contents().find('body').height() + 30;  
62 -// $(this).height(mainheight); 63 +
  64 +//srcoll to load more
  65 +// $(window).scroll(function () {
  66 +// if ($(window).scrollTop() + winH >= $(document).height() - 50) {
  67 +// }
63 // }); 68 // });
@@ -8,3 +8,4 @@ require('./newsale/newarrival'); @@ -8,3 +8,4 @@ require('./newsale/newarrival');
8 require('./newsale/discount'); 8 require('./newsale/discount');
9 require('./list'); 9 require('./list');
10 require('./detail/detail'); 10 require('./detail/detail');
  11 +require('./detail/desc');
@@ -2,6 +2,7 @@ @@ -2,6 +2,7 @@
2 background: #f0f0f0; 2 background: #f0f0f0;
3 3
4 .user-info { 4 .user-info {
  5 + display: block;
5 position: relative; 6 position: relative;
6 padding: 0 pxToRem(30px); 7 padding: 0 pxToRem(30px);
7 color: #fff; 8 color: #fff;
@@ -5,7 +5,7 @@ $tableCellC:#eee; @@ -5,7 +5,7 @@ $tableCellC:#eee;
5 $basicBtnC:#eb0313; 5 $basicBtnC:#eb0313;
6 6
7 .good-detail-page { 7 .good-detail-page {
8 - 8 +overflow: hidden;
9 /* basic component */ 9 /* basic component */
10 .page-block{ 10 .page-block{
11 box-sizing:border-box; 11 box-sizing:border-box;
@@ -14,7 +14,6 @@ $basicBtnC:#eb0313; @@ -14,7 +14,6 @@ $basicBtnC:#eb0313;
14 border-top: 1px solid $borderC; 14 border-top: 1px solid $borderC;
15 padding: 0 pxToRem(28px); 15 padding: 0 pxToRem(28px);
16 >.title{ 16 >.title{
17 - min-height: pxToRem(88px);  
18 line-height: pxToRem(88px); 17 line-height: pxToRem(88px);
19 color: $mainFontC; 18 color: $mainFontC;
20 font-size : pxToRem(28px); 19 font-size : pxToRem(28px);
@@ -23,7 +22,6 @@ $basicBtnC:#eb0313; @@ -23,7 +22,6 @@ $basicBtnC:#eb0313;
23 span{ 22 span{
24 color:#a0a0a0; 23 color:#a0a0a0;
25 font-size:pxToRem(18px); 24 font-size:pxToRem(18px);
26 - // vertical-align: baseline;  
27 } 25 }
28 } 26 }
29 .detail{ 27 .detail{
@@ -40,24 +38,15 @@ $basicBtnC:#eb0313; @@ -40,24 +38,15 @@ $basicBtnC:#eb0313;
40 .column{ 38 .column{
41 display: table-cell; 39 display: table-cell;
42 padding: 0.4em 0.8em; 40 padding: 0.4em 0.8em;
43 - border:1px solid white; 41 + border:1px solid #fff;
44 font-size: pxToRem(24px); 42 font-size: pxToRem(24px);
45 background-color: $tableCellC; 43 background-color: $tableCellC;
46 } 44 }
47 } 45 }
48 } 46 }
49 -  
50 - // table {  
51 - // width: 100%;  
52 - // tbody td{  
53 - // padding: 0.4em 0.8em;  
54 - // border:3px solid white;  
55 - // font-size: pxToRem(24px);  
56 - // background-color: $tableCellC;  
57 - // }  
58 - // }  
59 } 47 }
60 } 48 }
  49 +
61 .gap-block{ 50 .gap-block{
62 min-height: 30rem/$pxConvertRem; 51 min-height: 30rem/$pxConvertRem;
63 background-color: #f0f0f0; 52 background-color: #f0f0f0;
@@ -167,7 +156,7 @@ $basicBtnC:#eb0313; @@ -167,7 +156,7 @@ $basicBtnC:#eb0313;
167 h1{ 156 h1{
168 display: inline-block; 157 display: inline-block;
169 line-height: pxToRem(88px); 158 line-height: pxToRem(88px);
170 -} 159 + }
171 } 160 }
172 .goodsName, 161 .goodsName,
173 .goodsSubtitle{ 162 .goodsSubtitle{
@@ -179,6 +168,8 @@ $basicBtnC:#eb0313; @@ -179,6 +168,8 @@ $basicBtnC:#eb0313;
179 } 168 }
180 } 169 }
181 .vipLevel { 170 .vipLevel {
  171 + width: 100%;
  172 + box-sizing:border-box;
182 display: table; 173 display: table;
183 min-height: pxToRem(88px); 174 min-height: pxToRem(88px);
184 padding-left:pxToRem(28px); 175 padding-left:pxToRem(28px);
@@ -213,17 +204,21 @@ $basicBtnC:#eb0313; @@ -213,17 +204,21 @@ $basicBtnC:#eb0313;
213 color: $mainFontC; 204 color: $mainFontC;
214 line-height: pxToRem(88px); 205 line-height: pxToRem(88px);
215 206
216 - border-bottom: 2px solid $borderC; 207 + border-bottom: 1px solid $borderC;
217 208
218 .iconfont{ 209 .iconfont{
219 - // padding-right:28rem/$pxConvertRem;  
220 - font-size: inherit; 210 + display: inline-block;
  211 + width: pxToRem(35px);
  212 + font-size: pxToRem(45px);
221 float: right; 213 float: right;
222 color:#e0e0e0; 214 color:#e0e0e0;
223 - text-align: right; 215 + // padding-left:pxToRem(50px);
224 } 216 }
225 } 217 }
226 - 218 +.goodsSubtitle,
  219 +.goodsDiscount{
  220 + text-indent: pxToRem(-14px);
  221 +}
227 .feedback-list-page { 222 .feedback-list-page {
228 padding-top: pxToRem(30px); 223 padding-top: pxToRem(30px);
229 background-color: #f0f0f0; 224 background-color: #f0f0f0;
@@ -254,30 +249,28 @@ $basicBtnC:#eb0313; @@ -254,30 +249,28 @@ $basicBtnC:#eb0313;
254 color: #000; 249 color: #000;
255 } 250 }
256 } 251 }
257 -  
258 .comment-nav { 252 .comment-nav {
259 border-right: 1px solid #ccc; 253 border-right: 1px solid #ccc;
260 } 254 }
261 -  
262 .comment-content{ 255 .comment-content{
263 .comment-content-main{ 256 .comment-content-main{
264 background-color: #fff; 257 background-color: #fff;
265 border-bottom: 1px solid $borderC; 258 border-bottom: 1px solid $borderC;
266 .user-name{ 259 .user-name{
267 - font-size: px2rem(24);  
268 - line-height: px2rem(62); 260 + font-size: pxToRem(24px);
  261 + line-height: pxToRem(62px);
269 color:$mainFontC; 262 color:$mainFontC;
270 - padding-left: px2rem(28);  
271 - padding-right: px2rem(18); 263 + padding-left: pxToRem(28px);
  264 + padding-right: pxToRem(18px);
272 } 265 }
273 .goods-spec, 266 .goods-spec,
274 .comment-time{ 267 .comment-time{
275 - font-size: px2rem(24);  
276 - line-height: px2rem(62); 268 + font-size: pxToRem(24px);
  269 + line-height: pxToRem(62px);
277 } 270 }
278 .detail-content{ 271 .detail-content{
279 - font-size: px2rem(28);  
280 - line-height: px2rem(36); 272 + font-size: pxToRem(28px);
  273 + line-height: pxToRem(36px);
281 font-size: pxToRem(24px); 274 font-size: pxToRem(24px);
282 line-height: pxToRem(62px); 275 line-height: pxToRem(62px);
283 color:$mainFontC; 276 color:$mainFontC;
@@ -299,17 +292,15 @@ $basicBtnC:#eb0313; @@ -299,17 +292,15 @@ $basicBtnC:#eb0313;
299 } 292 }
300 .detail-content, 293 .detail-content,
301 .comment-time{ 294 .comment-time{
302 - padding-left: px2rem(28); 295 + padding-left: pxToRem(28px);
303 296
304 } 297 }
305 .detail-content{ 298 .detail-content{
306 - padding-right: px2rem(28); 299 + padding-right: pxToRem(28px);
307 padding-left: pxToRem(28px); 300 padding-left: pxToRem(28px);
308 -  
309 } 301 }
310 .detail-content{ 302 .detail-content{
311 padding-right: pxToRem(28px); 303 padding-right: pxToRem(28px);
312 -  
313 } 304 }
314 .comment-time{ 305 .comment-time{
315 color:#c1c1c1; 306 color:#c1c1c1;
@@ -322,7 +313,7 @@ $basicBtnC:#eb0313; @@ -322,7 +313,7 @@ $basicBtnC:#eb0313;
322 text-align: center; 313 text-align: center;
323 background-color: #fff; 314 background-color: #fff;
324 315
325 - border-bottom: 2px solid $borderC; 316 + border-bottom: 1px solid $borderC;
326 line-height: pxToRem(88px); 317 line-height: pxToRem(88px);
327 font-size: pxToRem(28px); 318 font-size: pxToRem(28px);
328 319
@@ -332,7 +323,7 @@ $basicBtnC:#eb0313; @@ -332,7 +323,7 @@ $basicBtnC:#eb0313;
332 font-size: inherit; 323 font-size: inherit;
333 } 324 }
334 } 325 }
335 - } 326 +}
336 327
337 328
338 } 329 }
@@ -353,10 +344,8 @@ $basicBtnC:#eb0313; @@ -353,10 +344,8 @@ $basicBtnC:#eb0313;
353 .store-logo{ 344 .store-logo{
354 // padding-right: 35rem/$pxConvertRem; 345 // padding-right: 35rem/$pxConvertRem;
355 img{ 346 img{
356 -  
357 width: pxToRem(109px); 347 width: pxToRem(109px);
358 height: pxToRem(68px); 348 height: pxToRem(68px);
359 -  
360 margin-left: 0; 349 margin-left: 0;
361 margin-right: pxToRem(-25px); 350 margin-right: pxToRem(-25px);
362 } 351 }
@@ -374,17 +363,19 @@ $basicBtnC:#eb0313; @@ -374,17 +363,19 @@ $basicBtnC:#eb0313;
374 } 363 }
375 } 364 }
376 } 365 }
377 - .goods-desc{ 366 +.goods-desc{
378 .service{ 367 .service{
  368 + width: pxToRem(489px);
  369 + height: pxToRem(28px);
379 margin-top: pxToRem(22px); 370 margin-top: pxToRem(22px);
380 } 371 }
381 - }  
382 - .tips{ 372 +}
  373 +.tips{
383 color:$subFontC; 374 color:$subFontC;
384 font-size: pxToRem(18px); 375 font-size: pxToRem(18px);
385 margin-top: pxToRem(20px); 376 margin-top: pxToRem(20px);
386 - }  
387 - .materials{ 377 +}
  378 +.materials{
388 .detail{ 379 .detail{
389 img{ 380 img{
390 display: block; 381 display: block;
@@ -395,12 +386,14 @@ $basicBtnC:#eb0313; @@ -395,12 +386,14 @@ $basicBtnC:#eb0313;
395 float: left; 386 float: left;
396 } 387 }
397 .material-desc{ 388 .material-desc{
398 - // float: left;  
399 font-size: pxToRem(24px); 389 font-size: pxToRem(24px);
  390 + overflow: hidden;
400 391
401 } 392 }
402 } 393 }
403 .material-type{ 394 .material-type{
  395 + width: pxToRem(581px);
  396 + height: pxToRem(99px);
404 border-top: 1px solid $borderC; 397 border-top: 1px solid $borderC;
405 padding: pxToRem(17px) 0; 398 padding: pxToRem(17px) 0;
406 } 399 }
@@ -435,10 +428,15 @@ $basicBtnC:#eb0313; @@ -435,10 +428,15 @@ $basicBtnC:#eb0313;
435 } 428 }
436 429
437 #reference-swiper-container{ 430 #reference-swiper-container{
  431 +
438 .first-group{ 432 .first-group{
439 - width: pxToRem(58px);  
440 - >div{  
441 - height: pxToRem(67px); 433 + width: pxToRem(70px);
  434 + margin-top: pxToRem(66px);
  435 + .avatar{
  436 + line-height: pxToRem(40px);
  437 + width: pxToRem(40px);
  438 + height: pxToRem(40px);
  439 + margin: pxToRem(18px) 0;
442 } 440 }
443 } 441 }
444 } 442 }
@@ -446,7 +444,7 @@ $basicBtnC:#eb0313; @@ -446,7 +444,7 @@ $basicBtnC:#eb0313;
446 .measurement-method{ 444 .measurement-method{
447 .detail{ 445 .detail{
448 width: 100%; 446 width: 100%;
449 - height: pxToRem(300px); 447 + // height: pxToRem(300px);
450 img{ 448 img{
451 float:left; 449 float:left;
452 width: pxToRem(270px); 450 width: pxToRem(270px);
@@ -455,7 +453,7 @@ $basicBtnC:#eb0313; @@ -455,7 +453,7 @@ $basicBtnC:#eb0313;
455 margin-right: pxToRem(28px); 453 margin-right: pxToRem(28px);
456 } 454 }
457 .right-part{ 455 .right-part{
458 - float:left; 456 + overflow: hidden;
459 .title{ 457 .title{
460 >h1{ 458 >h1{
461 margin-top: pxToRem(10px); 459 margin-top: pxToRem(10px);
@@ -480,7 +478,7 @@ $basicBtnC:#eb0313; @@ -480,7 +478,7 @@ $basicBtnC:#eb0313;
480 height: pxToRem(15px); 478 height: pxToRem(15px);
481 background-color: $basicBtnC; 479 background-color: $basicBtnC;
482 border-radius: 50%; 480 border-radius: 50%;
483 - color:white; 481 + color:#fff;
484 text-align: center; 482 text-align: center;
485 line-height: pxToRem(15px); 483 line-height: pxToRem(15px);
486 font-size: pxToRem(13px); 484 font-size: pxToRem(13px);
@@ -491,37 +489,33 @@ $basicBtnC:#eb0313; @@ -491,37 +489,33 @@ $basicBtnC:#eb0313;
491 } 489 }
492 } 490 }
493 clear:both; 491 clear:both;
494 - }  
495 - }  
496 - .cart-bar{ 492 +}
  493 +}
  494 +.cart-bar{
497 position: relative; 495 position: relative;
498 box-sizing:border-box; 496 box-sizing:border-box;
499 width: 100%; 497 width: 100%;
500 height: pxToRem(120px); 498 height: pxToRem(120px);
501 position:fixed; 499 position:fixed;
502 bottom: 0; 500 bottom: 0;
503 - background-color: white; 501 + background-color: #fff;
504 z-index: 64; 502 z-index: 64;
505 padding:pxToRem(20px) pxToRem(28px); 503 padding:pxToRem(20px) pxToRem(28px);
506 text-align: center; 504 text-align: center;
507 -  
508 -  
509 a{ 505 a{
510 display: inline-block; 506 display: inline-block;
511 &.num-incart{ 507 &.num-incart{
512 - width: pxToRem(45px);  
513 - height: pxToRem(45px);  
514 - background: url(../img/product/cart.png) no-repeat; 508 + font-size: pxToRem(47px);
  509 + color:#444;
515 } 510 }
516 &.favorite{ 511 &.favorite{
517 - width: pxToRem(34px);  
518 - height: pxToRem(32px);  
519 - background:url(../img/product/favorite.png) no-repeat; 512 + font-size: pxToRem(34px);
  513 + color:$basicBtnC;
520 } 514 }
521 &.addto-cart{ 515 &.addto-cart{
522 height: pxToRem(80px); 516 height: pxToRem(80px);
523 width: pxToRem(260px); 517 width: pxToRem(260px);
524 - margin:0 pxToRem(100px) 0 pxToRem(128px); 518 + margin:0 pxToRem(100px) 0 pxToRem(115px);
525 color: #fff; 519 color: #fff;
526 background-color: $basicBtnC; 520 background-color: $basicBtnC;
527 font-size: pxToRem(40px); 521 font-size: pxToRem(40px);
@@ -538,11 +532,8 @@ $basicBtnC:#eb0313; @@ -538,11 +532,8 @@ $basicBtnC:#eb0313;
538 height: pxToRem(36px); 532 height: pxToRem(36px);
539 background-color: $basicBtnC; 533 background-color: $basicBtnC;
540 border-radius: 50%; 534 border-radius: 50%;
541 - color:white; 535 + color:#fff;
542 font-size: pxToRem(24px); 536 font-size: pxToRem(24px);
543 } 537 }
544 -  
545 - }  
546 -  
547 - 538 +}
548 } 539 }
1 {{> layout/header}} 1 {{> layout/header}}
2 <div class="my-page yoho-page"> 2 <div class="my-page yoho-page">
3 <div class="my-header"> 3 <div class="my-header">
4 - <div class="user-info"><!--/home/personaldetails--> 4 + <a class="user-info" href="/home/personaldetails">
5 <img class="user-avatar" src="{{head_ico}}"> 5 <img class="user-avatar" src="{{head_ico}}">
6 <span class="username">{{profile_name}}</span> 6 <span class="username">{{profile_name}}</span>
7 {{#vip_info}} 7 {{#vip_info}}
8 <span class="vip-icon vip-{{next_level}}"></span> 8 <span class="vip-icon vip-{{next_level}}"></span>
9 {{/vip_info}} 9 {{/vip_info}}
10 <div class="iconfont more-icon">&#xe604;</div> 10 <div class="iconfont more-icon">&#xe604;</div>
11 - </div> 11 + </a>
12 </div> 12 </div>
13 <div class="my-link clearfix"> 13 <div class="my-link clearfix">
14 <a class="link-item" href="/home/favorite"> 14 <a class="link-item" href="/home/favorite">
15 {{product_favorite_total}} 15 {{product_favorite_total}}
16 <p>收藏的商品</p> 16 <p>收藏的商品</p>
17 </a> 17 </a>
18 - <a class="link-item" href="/home/favoritebrand"> 18 + <a class="link-item" href="/home/favorite?tab=brand">
19 {{brand_favorite_total}} 19 {{brand_favorite_total}}
20 <p>收藏的品牌</p> 20 <p>收藏的品牌</p>
21 </a> 21 </a>
1 -  
2 {{> layout/header}} 1 {{> layout/header}}
3 <div class="good-detail-page yoho-page"> 2 <div class="good-detail-page yoho-page">
4 -  
5 <div class="banner-container"> 3 <div class="banner-container">
6 -  
7 <h1 class="is-new-lable">NEW</h1> 4 <h1 class="is-new-lable">NEW</h1>
8 {{# bannerTop}} 5 {{# bannerTop}}
9 {{> product/banner_swiper_arrow}} 6 {{> product/banner_swiper_arrow}}
10 {{/ bannerTop}} 7 {{/ bannerTop}}
11 </div> 8 </div>
12 9
13 -  
14 -  
15 -  
16 {{# goodsName}} 10 {{# goodsName}}
17 <h2 class="goodsName"><span>{{.}}</span></h2> 11 <h2 class="goodsName"><span>{{.}}</span></h2>
18 {{/ goodsName}} 12 {{/ goodsName}}
@@ -21,10 +15,6 @@ @@ -21,10 +15,6 @@
21 <h1 class="goodsSubtitle"><span>{{.}}</span></h1> 15 <h1 class="goodsSubtitle"><span>{{.}}</span></h1>
22 {{/ goodsSubtitle}} 16 {{/ goodsSubtitle}}
23 17
24 - <!-- {{# goodsTitle}}  
25 - <h1 class="goodsTitle">{{.}}</h1>  
26 - {{/ goodsTitle}} -->  
27 -  
28 <div class="price-date"> 18 <div class="price-date">
29 {{#goodsPrice}} 19 {{#goodsPrice}}
30 <div class="goodsPrice"> 20 <div class="goodsPrice">
@@ -32,44 +22,32 @@ @@ -32,44 +22,32 @@
32 <h1 class="previousPrice">{{previousPrice}}</h1> 22 <h1 class="previousPrice">{{previousPrice}}</h1>
33 </div> 23 </div>
34 {{/goodsPrice}} 24 {{/goodsPrice}}
35 -  
36 {{#periodOfMarket}} 25 {{#periodOfMarket}}
37 <div class="periodOfMarket"> 26 <div class="periodOfMarket">
38 <h1>上市期:</h1> 27 <h1>上市期:</h1>
39 <h1 >{{.}}</h1> 28 <h1 >{{.}}</h1>
40 </div> 29 </div>
41 {{/periodOfMarket}} 30 {{/periodOfMarket}}
42 - </div>  
43 -  
44 - <!-- {{# vipLevel}}  
45 - <div class="vipLevel">  
46 - {{# list}}  
47 - {{#if @last}}  
48 - <span>{{text}}</span>  
49 - {{^}}  
50 - <span>{{text}}</span> |  
51 - {{/if}}  
52 - {{/ list}}  
53 - </div>  
54 - {{/ vipLevel}} --> 31 +</div>
55 32
56 - {{# vipLevel}}  
57 - <div class="vipLevel"> 33 +{{# vipLevel}}
  34 +<div class="vipLevel">
58 {{# list}} 35 {{# list}}
59 - <span class="vip-img"><img src="{{img}}" alt=""></span> 36 +<span class="vip-img">
  37 + <img class="lazy" data-original="{{img}}" alt="">
  38 +</span>
60 <span class="vip-price">{{text}}</span> 39 <span class="vip-price">{{text}}</span>
61 {{/ list}} 40 {{/ list}}
62 - </div>  
63 - {{/ vipLevel}} 41 +</div>
  42 +{{/ vipLevel}}
64 43
65 - {{#goodsDiscount}}  
66 - <div class="goodsDiscount"> 44 +{{#goodsDiscount}}
  45 +<div class="goodsDiscount">
67 <h1>{{.}}<span class="iconfont">&#xe609;</span></h1> 46 <h1>{{.}}<span class="iconfont">&#xe609;</span></h1>
68 - </div>  
69 - {{/goodsDiscount}}  
70 - 47 +</div>
  48 +{{/goodsDiscount}}
71 49
72 - <div class="feedback-list-page "> 50 +<div class="feedback-list-page ">
73 {{# feedbacks}} 51 {{# feedbacks}}
74 <ul id="nav-tab" class="nav-tab clearfix"> 52 <ul id="nav-tab" class="nav-tab clearfix">
75 <li class="comment-nav focus">{{commentName}}</li> 53 <li class="comment-nav focus">{{commentName}}</li>
@@ -104,30 +82,31 @@ @@ -104,30 +82,31 @@
104 </div> 82 </div>
105 </div> 83 </div>
106 {{/ feedbacks}} 84 {{/ feedbacks}}
107 - </div>  
108 - <div class="gap-block"></div> 85 +</div>
  86 +
  87 +<div class="gap-block"></div>
109 88
110 - {{# enterStore}}  
111 - <div class="enter-store page-block"> 89 +{{# enterStore}}
  90 +<div class="enter-store page-block">
112 <a class="store-logo" href="{{url}}" style=""> 91 <a class="store-logo" href="{{url}}" style="">
113 - <img src="{{img}}" alt="{{storeName}}"> 92 + <img class="lazy" data-original="{{img}}" alt="{{storeName}}">
114 </a> 93 </a>
115 <a class="store-name" href="{{url}}">{{storeName}}</a> 94 <a class="store-name" href="{{url}}">{{storeName}}</a>
116 <a class="store-link" href="{{url}}">进入店铺<span class="iconfont">&#xe604;</span></a> 95 <a class="store-link" href="{{url}}">进入店铺<span class="iconfont">&#xe604;</span></a>
117 - </div>  
118 - {{/ enterStore}}  
119 - <div class="gap-block"></div>  
120 - <!-- <iframe src="http://www.baidu.com" id="main" width="320" height="300" frameborder="0" scrolling="auto"></iframe> --> 96 +</div>
  97 +{{/ enterStore}}
  98 +
  99 +<div class="gap-block"></div>
121 100
122 - {{#goodsDescription}}  
123 - <div class="goods-desc page-block">  
124 - <img class="service" src="http://static.dev.yohobuy.com/img/product/service.png" alt=""> 101 +{{#goodsDescription}}
  102 +<div class="goods-desc page-block">
  103 + <img class="service lazy" data-original="http://static.dev.yohobuy.com/img/product/service.png" alt="">
125 <h1 class="title"> 104 <h1 class="title">
126 {{title}} 105 {{title}}
127 <span class="en-title">{{enTitle}}</span> 106 <span class="en-title">{{enTitle}}</span>
128 - </h1>  
129 - {{#detail}}  
130 - <div class="detail table"> 107 +</h1>
  108 +{{#detail}}
  109 +<div class="detail table">
131 <div class="row"> 110 <div class="row">
132 <div class="column">编号:{{nubmer}}</div> 111 <div class="column">编号:{{nubmer}}</div>
133 <div class="column">帽型:{{hatType}}</div> 112 <div class="column">帽型:{{hatType}}</div>
@@ -144,21 +123,21 @@ @@ -144,21 +123,21 @@
144 <div class="column">性别:{{gender}}</div> 123 <div class="column">性别:{{gender}}</div>
145 <div class="column">风格:{{style}}</div> 124 <div class="column">风格:{{style}}</div>
146 </div> 125 </div>
147 - </div>  
148 - {{/detail}}  
149 - </div>  
150 - {{/goodsDescription}} 126 +</div>
  127 +{{/detail}}
  128 +</div>
  129 +{{/goodsDescription}}
151 130
152 - <div class="gap-block"></div> 131 +<div class="gap-block"></div>
153 132
154 - {{#sizeInfo}}  
155 - <div class="size-info page-block"> 133 +{{#sizeInfo}}
  134 +<div class="size-info page-block">
156 <h1 class="title"> 135 <h1 class="title">
157 {{title}} 136 {{title}}
158 <span class="en-title">{{enTitle}}</span> 137 <span class="en-title">{{enTitle}}</span>
159 - </h1>  
160 - {{#detail}}  
161 - <div class="detail"> 138 +</h1>
  139 +{{#detail}}
  140 +<div class="detail">
162 <div class="swiper-container detail-swiper" id="size-swiper-container"> 141 <div class="swiper-container detail-swiper" id="size-swiper-container">
163 <div class="swiper-wrapper"> 142 <div class="swiper-wrapper">
164 {{#list}} 143 {{#list}}
@@ -169,24 +148,24 @@ @@ -169,24 +148,24 @@
169 </div> 148 </div>
170 {{/list}} 149 {{/list}}
171 </div> 150 </div>
172 - </div>  
173 - <p class="tips">提示:左滑查看完整表格信息</p>  
174 - </div>  
175 - {{/detail}}  
176 - </div>  
177 - {{/sizeInfo}} 151 +</div>
  152 +<p class="tips">提示:左滑查看完整表格信息</p>
  153 +</div>
  154 +{{/detail}}
  155 +</div>
  156 +{{/sizeInfo}}
178 157
179 - <div class="gap-block"></div> 158 +<div class="gap-block"></div>
180 159
181 - {{#measurementMethod}}  
182 - <div class="measurement-method page-block"> 160 +{{#measurementMethod}}
  161 +<div class="measurement-method page-block">
183 <h1 class="title"> 162 <h1 class="title">
184 {{title}} 163 {{title}}
185 <span class="en-title">{{enTitle}}</span> 164 <span class="en-title">{{enTitle}}</span>
186 </h1> 165 </h1>
187 {{#detail}} 166 {{#detail}}
188 <div class="detail" style="width:100%"> 167 <div class="detail" style="width:100%">
189 - <img src="{{img}}" alt=""> 168 + <img class="lazy" data-original="{{img}}" alt="">
190 <div class="right-part"> 169 <div class="right-part">
191 <div class="title"> 170 <div class="title">
192 <h1 >{{sort}}</h1> 171 <h1 >{{sort}}</h1>
@@ -220,13 +199,8 @@ @@ -220,13 +199,8 @@
220 {{#list}} 199 {{#list}}
221 {{#if @first}} 200 {{#if @first}}
222 <div class="swiper-slide first-group" > 201 <div class="swiper-slide first-group" >
223 - <div class="model-field" >{{fieldName}}</div>  
224 - <div class="first-model">  
225 - <img src="{{firstModel}}" alt="">  
226 - </div>  
227 - <div class="second-model">  
228 - <img src="{{secondModel}}" alt="">  
229 - </div> 202 + <img class="lazy avatar" data-original="{{firstModel}}" alt="">
  203 + <img class="lazy avatar" data-original="{{secondModel}}" alt="">
230 </div> 204 </div>
231 {{^}} 205 {{^}}
232 <div class="swiper-slide" > 206 <div class="swiper-slide" >
@@ -241,52 +215,49 @@ @@ -241,52 +215,49 @@
241 <p class="tips">提示:左滑查看完整表格信息</p> 215 <p class="tips">提示:左滑查看完整表格信息</p>
242 </div> 216 </div>
243 {{/detail}} 217 {{/detail}}
244 - </div>  
245 - {{/reference}} 218 +</div>
  219 +{{/reference}}
246 220
247 - <div class="gap-block"></div> 221 +<div class="gap-block"></div>
248 222
249 - {{#materials}}  
250 - <div class="materials page-block"> 223 +{{#materials}}
  224 +<div class="materials page-block">
251 <h1 class="title"> 225 <h1 class="title">
252 {{title}} 226 {{title}}
253 <span class="en-title">{{enTitle}}</span> 227 <span class="en-title">{{enTitle}}</span>
254 - </h1>  
255 - <div class="detail">  
256 - <img src="{{img}}" alt=""> 228 +</h1>
  229 +<div class="detail">
  230 + <img class="lazy" data-original="{{img}}" alt="">
257 <p class="material-desc"> 231 <p class="material-desc">
258 -  
259 {{desc}} 232 {{desc}}
260 </p> 233 </p>
  234 +</div>
  235 +<img class="lazy material-type" data-original="{{materialType}}" alt="" >
  236 +</div>
  237 +{{/materials}}
261 238
262 - </div>  
263 - <img src="{{materialType}}" alt="" class="material-type">  
264 - </div>  
265 - {{/materials}}  
266 -  
267 - <div class="gap-block"></div> 239 +<div class="gap-block"></div>
268 240
269 - {{#productDetail}}  
270 - <div class="product-detail page-block"> 241 +{{#productDetail}}
  242 +<div class="product-detail page-block">
271 <h1 class="title"> 243 <h1 class="title">
272 {{title}} 244 {{title}}
273 <span class="en-title">{{enTitle}}</span> 245 <span class="en-title">{{enTitle}}</span>
274 - </h1>  
275 - <div class="detail"> 246 +</h1>
  247 +<div class="detail">
276 <p>{{desc}}</p> 248 <p>{{desc}}</p>
277 - <img src="{{img}}" alt="">  
278 - </div>  
279 - </div>  
280 - {{/productDetail}}  
281 - 249 + <img class="lazy" data-original="{{img}}" alt="">
  250 +</div>
  251 +</div>
  252 +{{/productDetail}}
282 253
283 - {{#cartInfo}}  
284 - <div class="cart-bar"> 254 +{{#cartInfo}}
  255 +<div class="cart-bar">
285 <span class="num-tag">{{numInCart}}</span> 256 <span class="num-tag">{{numInCart}}</span>
286 - <a href="" class="num-incart"></a>  
287 - <a href="" class="addto-cart">加入购物车</a>  
288 - <a href="" class="favorite"></a>  
289 - </div>  
290 - {{/cartInfo}} 257 + <a href="" class="num-incart iconfont">&#xe62c;</a>
  258 + <a href="" class="addto-cart ">加入购物车</a>
  259 + <a href="" class="favorite iconfont">&#xe605;</a>
  260 +</div>
  261 +{{/cartInfo}}
291 </div> 262 </div>
292 {{> layout/footer}} 263 {{> layout/footer}}
@@ -66,20 +66,26 @@ class HomeController extends AbstractAction @@ -66,20 +66,26 @@ class HomeController extends AbstractAction
66 $this->setTitle('我的收藏'); 66 $this->setTitle('我的收藏');
67 $this->setNavHeader('我的收藏', true, SITE_MAIN); 67 $this->setNavHeader('我的收藏', true, SITE_MAIN);
68 68
  69 + $tab = $this->get('tab', '');
69 $uid = $this->getUid(); 70 $uid = $this->getUid();
70 $uid = 8826435; 71 $uid = 8826435;
71 $gender = Helpers::getGenderByCookie(); 72 $gender = Helpers::getGenderByCookie();
72 73
73 $favProducts = \Index\UserModel::getFavProductData($uid); 74 $favProducts = \Index\UserModel::getFavProductData($uid);
74 $favBrands = \Index\UserModel::getFavBrandData($uid, $gender); 75 $favBrands = \Index\UserModel::getFavBrandData($uid, $gender);
75 -  
76 - $this->_view->display('favorite', array( 76 + $data = array(
77 'favPage' => true, //加载js 77 'favPage' => true, //加载js
78 'pageFooter' => true, 78 'pageFooter' => true,
79 'favorite' => true, 79 'favorite' => true,
80 'hasFavProduct' => $favProducts, 80 'hasFavProduct' => $favProducts,
81 'hasFavBrand' => $favBrands 81 'hasFavBrand' => $favBrands
82 - )); 82 + );
  83 + // 判断时候为品牌页
  84 + if ($tab === 'brand') {
  85 + $data['brandTab'] = true;
  86 + }
  87 +
  88 + $this->_view->display('favorite', $data);
83 } 89 }
84 90
85 /** 91 /**
@@ -103,18 +109,6 @@ class HomeController extends AbstractAction @@ -103,18 +109,6 @@ class HomeController extends AbstractAction
103 } 109 }
104 110
105 /** 111 /**
106 - * 用户收藏的品牌  
107 - */  
108 - public function favoritebrandAction() {  
109 - $uid = $this->getUid();  
110 - $gender = Helpers::getGenderByCookie();  
111 -  
112 - $favBrands = \Index\UserModel::getFavBrandData($uid, $gender);  
113 -  
114 - print_r($favBrands);  
115 - }  
116 -  
117 - /**  
118 * 个人信息 112 * 个人信息
119 */ 113 */
120 public function personalDetailsAction() { 114 public function personalDetailsAction() {
@@ -298,8 +292,17 @@ class HomeController extends AbstractAction @@ -298,8 +292,17 @@ class HomeController extends AbstractAction
298 /** 292 /**
299 * 我的逛 293 * 我的逛
300 */ 294 */
301 - public function myGuangAction() {  
302 - echo 'My Guang'; 295 + public function myGuangAction()
  296 + {
  297 + $page = $this->get('page', 1);
  298 + $limit = $this->get('limit', 10);
  299 + $uid = $this->getUid();
  300 + $gender = Helpers::getGenderByCookie();
  301 + $yh_channel = Helpers::getChannelByCookie();
  302 + $guangInfo = \home\GuangModel::getMyGuang($uid, $page,$yh_channel,$gender, $limit);
  303 + $this->setTitle('我收藏的');
  304 + $this->setNavHeader('我收藏的', true, '');
  305 + $this->_view->display('my-guang', array( 'myGuangPage' => true,'myGuang'=>$guangInfo,'pageFooter' => true));
303 } 306 }
304 307
305 /** 308 /**
  1 +<?php
  2 +
  3 +namespace Home;
  4 +
  5 +use LibModels\Wap\Home\GuangData;
  6 +use Action\AbstractAction;
  7 +use Plugin\Helpers;
  8 +
  9 +/**
  10 + * 我的逛数据处理
  11 + */
  12 +class GuangModel
  13 +{
  14 +
  15 + //获取我的逛列表
  16 + public static function getMyGuang($uid, $page, $yh_channel = 1, $gender = '1,3', $limit = 10)
  17 + {
  18 + $result = array();
  19 + //调用接口获取数据
  20 + $res = GuangData::getGuangInfo($uid, $page, $yh_channel, $gender, $limit);
  21 + if (!empty($res['data']['data']))
  22 + {
  23 + foreach ($res['data']['data'] as $k => $v)
  24 + {
  25 + $result[$k] = Helpers::formatArticle($v, true, false, true, $uid);
  26 + }
  27 + }
  28 + return $result;
  29 + }
  30 +
  31 +}
@@ -157,12 +157,13 @@ class UserModel @@ -157,12 +157,13 @@ class UserModel
157 $product = array(); 157 $product = array();
158 foreach ($favProduct['data']['product_list'] as $val) { 158 foreach ($favProduct['data']['product_list'] as $val) {
159 $product = array(); 159 $product = array();
  160 + $product['fav_id'] = $val['product_id'];
160 $product['imgUrl'] = $val['image']; 161 $product['imgUrl'] = $val['image'];
161 $product['title'] = $val['product_name']; 162 $product['title'] = $val['product_name'];
162 $product['price'] = '¥'.$val['market_price']; 163 $product['price'] = '¥'.$val['market_price'];
163 - $product['discountPrice'] = '¥'.$val['sales_price']; 164 + $product['discountPrice'] = ($val['market_price'] - $val['sales_price'] > 0) ? '¥'.$val['sales_price'] : false;
164 $product['savePrice'] = ($val['market_price'] - $val['sales_price'] > 0) ? '¥'.($val['market_price'] - $val['sales_price']) : false; 165 $product['savePrice'] = ($val['market_price'] - $val['sales_price'] > 0) ? '¥'.($val['market_price'] - $val['sales_price']) : false;
165 - $product['sellOut'] = boolval($val['price_down']); 166 + $product['sellOut'] = (bool)($val['price_down']);
166 167
167 $result[] = $product; 168 $result[] = $product;
168 } 169 }
@@ -432,7 +433,7 @@ class UserModel @@ -432,7 +433,7 @@ class UserModel
432 $one['imgUrl'] = Helpers::getImageUrl($val['cover_image'], 640, 240); 433 $one['imgUrl'] = Helpers::getImageUrl($val['cover_image'], 640, 240);
433 $one['title'] = $val['filter_content']; 434 $one['title'] = $val['filter_content'];
434 $one['content'] = $val['reply_content']; 435 $one['content'] = $val['reply_content'];
435 - $one['good'] = boolval($val['is_reliable']); 436 + $one['good'] = (bool)($val['is_reliable']);
436 $one['bad'] = !$one['good']; 437 $one['bad'] = !$one['good'];
437 438
438 $result[] = $one; 439 $result[] = $one;
@@ -11,7 +11,10 @@ use Plugin\Helpers; @@ -11,7 +11,10 @@ use Plugin\Helpers;
11 class OnlineModel 11 class OnlineModel
12 { 12 {
13 13
14 - //获取在线帮助分类 14 + /*
  15 + * 获取在线帮助分类
  16 + * $clientType客户端类型
  17 + */
15 public static function getOnlineServiceInfo($clientType = 'iphone') 18 public static function getOnlineServiceInfo($clientType = 'iphone')
16 { 19 {
17 //调用接口获取数据 20 //调用接口获取数据
@@ -19,10 +22,13 @@ class OnlineModel @@ -19,10 +22,13 @@ class OnlineModel
19 $cateInfo = $res['data']; 22 $cateInfo = $res['data'];
20 $question = array(); 23 $question = array();
21 $tab = array(); 24 $tab = array();
22 - if ($cateInfo) {  
23 - foreach ($cateInfo as $key => $value) { 25 + if ($cateInfo)
  26 + {
  27 + foreach ($cateInfo as $key => $value)
  28 + {
24 //强制截成3个tab 29 //强制截成3个tab
25 - if ($key > 2) { 30 + if ($key > 2)
  31 + {
26 break; 32 break;
27 } 33 }
28 $tab[$key]['tabid'] = 'tab' . $value['id']; 34 $tab[$key]['tabid'] = 'tab' . $value['id'];
@@ -33,10 +39,12 @@ class OnlineModel @@ -33,10 +39,12 @@ class OnlineModel
33 $question[$key]['current'] = (!$key) ? TRUE : FALSE; 39 $question[$key]['current'] = (!$key) ? TRUE : FALSE;
34 $sub = $value['sub']; 40 $sub = $value['sub'];
35 $qTmp = array(); 41 $qTmp = array();
36 - if ($sub) {  
37 - foreach ($sub as $sk => $sv) { 42 + if ($sub)
  43 + {
  44 + foreach ($sub as $sk => $sv)
  45 + {
38 $qTmp[$sk]['title'] = $sv['category_name']; 46 $qTmp[$sk]['title'] = $sv['category_name'];
39 - $qTmp[$sk]['link'] = '/home/onlineservicedetail?cateId=' . $sv['id'] . '&cateName=' . $sv['category_name']; 47 + $qTmp[$sk]['link'] = Helpers::url('/home/onlineservicedetail',array('cateId'=>$sv['id'],'cateName'=>$sv['category_name']));
40 } 48 }
41 } 49 }
42 $question[$key]['list'] = $qTmp; 50 $question[$key]['list'] = $qTmp;
@@ -54,19 +62,27 @@ class OnlineModel @@ -54,19 +62,27 @@ class OnlineModel
54 return $result; 62 return $result;
55 } 63 }
56 64
57 - //加载分类下的问题和解决方法 65 + /*
  66 + * 加载分类下的问题和解决方法
  67 + * cateId问题分类ID
  68 + * clientType客户端
  69 + */
58 public static function getOnlineServiceDetail($cateId, $clinetType = 'iphone') 70 public static function getOnlineServiceDetail($cateId, $clinetType = 'iphone')
59 { 71 {
60 $result = array(); 72 $result = array();
61 - if (!$cateId) { 73 + if (!$cateId)
  74 + {
62 return $result; 75 return $result;
63 } 76 }
64 $res = OnlineData::getOnlineServiceDetail($cateId, $clinetType); 77 $res = OnlineData::getOnlineServiceDetail($cateId, $clinetType);
65 $questionInfo = $res['data']; 78 $questionInfo = $res['data'];
66 - if ($questionInfo) { 79 + if ($questionInfo)
  80 + {
67 $list = array(); 81 $list = array();
68 - if ($questionInfo) {  
69 - foreach ($questionInfo as $qk => $qv) { 82 + if ($questionInfo)
  83 + {
  84 + foreach ($questionInfo as $qk => $qv)
  85 + {
70 $list[$qk]['q'] = $qv['title']; 86 $list[$qk]['q'] = $qv['title'];
71 $list[$qk]['a'] = $qv['content']; 87 $list[$qk]['a'] = $qv['content'];
72 } 88 }
@@ -105,7 +105,7 @@ SHOE BQT KEN BLOCK', @@ -105,7 +105,7 @@ SHOE BQT KEN BLOCK',
105 105
106 'sizeInfo'=>array( 106 'sizeInfo'=>array(
107 'title' => '尺码信息', 107 'title' => '尺码信息',
108 - 'enTitle' =>'SIZE INFO', 108 + 'enTitle' =>'xSIZE INFO',
109 109
110 'detail' =>array( 110 'detail' =>array(
111 'list'=>array( 111 'list'=>array(
@@ -169,7 +169,7 @@ SHOE BQT KEN BLOCK', @@ -169,7 +169,7 @@ SHOE BQT KEN BLOCK',
169 'detail' =>array( 169 'detail' =>array(
170 'list'=>array( 170 'list'=>array(
171 array( 171 array(
172 - 'fieldName'=>' ', 172 + 'fieldName'=>'1 ',
173 'firstModel'=>'http://static.dev.yohobuy.com/img/product/avatar1.png', 173 'firstModel'=>'http://static.dev.yohobuy.com/img/product/avatar1.png',
174 'secondModel' =>'http://static.dev.yohobuy.com/img/product/avatar2.png' 174 'secondModel' =>'http://static.dev.yohobuy.com/img/product/avatar2.png'
175 ), 175 ),