Review by:@王成龙
Showing
38 changed files
with
2749 additions
and
107 deletions
@@ -61,6 +61,103 @@ | @@ -61,6 +61,103 @@ | ||
61 | ] | 61 | ] |
62 | } | 62 | } |
63 | 63 | ||
64 | + | ||
65 | +## 站点头部 | ||
66 | + { | ||
67 | + gobuytype: 'gobuyboys',//购物车样式 | ||
68 | + searchcate: 'searchcateboys', //搜索栏样式 | ||
69 | + navbars: [{//一级导航 | ||
70 | + name_cn: '男生', | ||
71 | + name_en: 'BOYS', | ||
72 | + link: '', | ||
73 | + classname: 'boys', | ||
74 | + index_main: 0, | ||
75 | + subnav: [{ | ||
76 | + name: '新品到着', | ||
77 | + link: '', | ||
78 | + index_sub:0, | ||
79 | + thirdnav: [ | ||
80 | + { | ||
81 | + title: '上装', | ||
82 | + branditems: [ | ||
83 | + { | ||
84 | + brandname: '背心', | ||
85 | + link: '' | ||
86 | + }, | ||
87 | + { | ||
88 | + brandname: 'T恤', | ||
89 | + link: '' | ||
90 | + }, | ||
91 | + { | ||
92 | + brandname: '衬衫', | ||
93 | + link: '' | ||
94 | + }, | ||
95 | + { | ||
96 | + brandname: 'POLO', | ||
97 | + link: '' | ||
98 | + }, | ||
99 | + { | ||
100 | + brandname: '毛衣/针织', | ||
101 | + link: '' | ||
102 | + }] | ||
103 | + } | ||
104 | + ] | ||
105 | + }, { | ||
106 | + name: '品牌一览', | ||
107 | + link: '', | ||
108 | + thirdnav: [] | ||
109 | + }] | ||
110 | + }], | ||
111 | + myyoho: { | ||
112 | + email: 'caomei@163.com', | ||
113 | + viptype: '普通会员', | ||
114 | + currentscore: 495, | ||
115 | + totalscore: 600, | ||
116 | + cardtype: '银卡', | ||
117 | + infolist: [{ | ||
118 | + name: '待处理的订单', | ||
119 | + link: '', | ||
120 | + num: '0' | ||
121 | + }, { | ||
122 | + name: '我的收藏', | ||
123 | + link: '', | ||
124 | + num: '1' | ||
125 | + }, { | ||
126 | + name: '我的优惠券', | ||
127 | + link: '', | ||
128 | + num: '2' | ||
129 | + }, { | ||
130 | + name: '我的YOHO币', | ||
131 | + link: '', | ||
132 | + num: '1' | ||
133 | + }, { | ||
134 | + name: '我的退货换货', | ||
135 | + link: '', | ||
136 | + num: '1' | ||
137 | + }], | ||
138 | + updlink: '' | ||
139 | + }, | ||
140 | + gobuy: { | ||
141 | + gobuynum: 3 | ||
142 | + }, | ||
143 | + breadcrumbnav: [{ | ||
144 | + notend: { | ||
145 | + link: 'http://www.yohobuy.com', | ||
146 | + name: 'BOYS首页' | ||
147 | + } | ||
148 | + }, { | ||
149 | + notend: { | ||
150 | + link: 'http://www.yohobuy.com', | ||
151 | + name: '上衣' | ||
152 | + } | ||
153 | + }, { | ||
154 | + isend: { | ||
155 | + link: 'http://list.yohobuy.com/?msort=1&gender=1,3', | ||
156 | + name: '衬衫' | ||
157 | + } | ||
158 | + }] | ||
159 | + } | ||
160 | + | ||
64 | ## 男首 | 161 | ## 男首 |
65 | 162 | ||
66 | { | 163 | { |
@@ -490,98 +587,200 @@ | @@ -490,98 +587,200 @@ | ||
490 | } | 587 | } |
491 | } | 588 | } |
492 | 589 | ||
493 | -## 站点头部 | 590 | +## 逛 |
591 | + | ||
592 | +### 【公用】资讯 | ||
593 | + | ||
494 | { | 594 | { |
495 | - gobuytype: 'gobuyboys',//购物车样式 | ||
496 | - searchcate: 'searchcateboys', //搜索栏样式 | ||
497 | - navbars: [{//一级导航 | ||
498 | - name_cn: '男生', | ||
499 | - name_en: 'BOYS', | ||
500 | - link: '', | ||
501 | - classname: 'boys', | ||
502 | - index_main: 0, | ||
503 | - subnav: [{ | ||
504 | - name: '新品到着', | ||
505 | - link: '', | ||
506 | - index_sub:0, | ||
507 | - thirdnav: [ | ||
508 | - { | ||
509 | - title: '上装', | ||
510 | - branditems: [ | ||
511 | - { | ||
512 | - brandname: '背心', | ||
513 | - link: '' | ||
514 | - }, | ||
515 | - { | ||
516 | - brandname: 'T恤', | ||
517 | - link: '' | ||
518 | - }, | ||
519 | - { | ||
520 | - brandname: '衬衫', | ||
521 | - link: '' | ||
522 | - }, | ||
523 | - { | ||
524 | - brandname: 'POLO', | ||
525 | - link: '' | ||
526 | - }, | 595 | + id: '', |
596 | + classification: '最新', | ||
597 | + isReco: true, //是否推荐 | ||
598 | + url: '', | ||
599 | + isSquareImg: true, //是否是正方形图 | ||
600 | + img: '', | ||
601 | + title: '', | ||
602 | + editorUrl: '', | ||
603 | + author: '', | ||
604 | + pTime: '', | ||
605 | + pView: '', | ||
606 | + content: '', | ||
607 | + tags: [ | ||
608 | + { | ||
609 | + url: '', | ||
610 | + tag: '' | ||
611 | + }, | ||
612 | + ... | ||
613 | + ], | ||
614 | + liked: true, | ||
615 | + like: 10, | ||
616 | + comment: 10 | ||
617 | + } | ||
618 | + | ||
619 | +### 【共用】右侧栏 | ||
620 | + | ||
621 | + { | ||
622 | + exRecos: [ | ||
623 | + { | ||
624 | + url: '', | ||
625 | + img: '', | ||
626 | + title: '' | ||
627 | + }, | ||
628 | + .. | ||
629 | + ], | ||
630 | + hotTags: [ | ||
631 | + { | ||
632 | + url: '', | ||
633 | + tagName: '' | ||
634 | + }, | ||
635 | + ... | ||
636 | + ], | ||
637 | + ads: [ | ||
638 | + { | ||
639 | + url: '', | ||
640 | + img: '' | ||
641 | + }, | ||
642 | + ... | ||
643 | + ] | ||
644 | + } | ||
645 | + | ||
646 | +### 首页 | ||
647 | + | ||
648 | + { | ||
649 | + guang: { | ||
650 | + slider: [ | ||
651 | + { | ||
652 | + url: '', | ||
653 | + img: '' | ||
654 | + }, | ||
655 | + ... | ||
656 | + ], | ||
657 | + msgTypes: [ | ||
658 | + { | ||
659 | + typeId: '', | ||
660 | + isActive: true, | ||
661 | + navUrl: '', | ||
662 | + type: '最新' | ||
663 | + }, | ||
664 | + ... | ||
665 | + ], | ||
666 | + msgs: [ | ||
667 | + { | ||
668 | + ...//资讯 | ||
669 | + } | ||
670 | + ], | ||
671 | + msgPager: ''//HTML | ||
672 | + } | ||
673 | + } | ||
674 | + | ||
675 | +### 列表页 | ||
676 | + | ||
677 | + { | ||
678 | + guang: { | ||
679 | + tag: '户外', //XX关联的文章 | ||
680 | + msgs: [ | ||
681 | + { | ||
682 | + ..//资讯 | ||
683 | + }, | ||
684 | + ... | ||
685 | + ], | ||
686 | + msgPager: '' | ||
687 | + } | ||
688 | + } | ||
689 | + | ||
690 | +### 编辑页 | ||
691 | + | ||
692 | + { | ||
693 | + guang: { | ||
694 | + editor: { | ||
695 | + avatar: '', | ||
696 | + name: '', | ||
697 | + intro: '' | ||
698 | + }, | ||
699 | + msgs: [], | ||
700 | + msgPager: '' | ||
701 | + } | ||
702 | + } | ||
703 | + | ||
704 | + | ||
705 | +### 逛详情页 | ||
706 | + { | ||
707 | + guang:{ | ||
708 | + id: 1, //详情页id | ||
709 | + header: { | ||
710 | + title: '', //大标题 | ||
711 | + avatar: '', //作者头像 | ||
712 | + name: '' , //作者名字 | ||
713 | + authorUrl: '', //作者主页url | ||
714 | + intro: '', //作者简介 | ||
715 | + time: '', //时间 | ||
716 | + click: '', //点击数 | ||
717 | + commentNum: '' //评论数 | ||
718 | + }, | ||
719 | + content: [ | ||
720 | + { | ||
721 | + pic: '' //内容大图 | ||
722 | + }, | ||
723 | + { | ||
724 | + text: '' //内容文字 | ||
725 | + }, | ||
726 | + { | ||
727 | + smallPic: [ //内容两张并列小图 | ||
728 | + 'http://img02.static.yohobuy.com/cms/2015/06/26/12/027eb72bc880b4fe1aad361296c871c2ea.jpg', | ||
729 | + 'http://img02.static.yohobuy.com/cms/2015/06/26/12/027eb72bc880b4fe1aad361296c871c2ea.jpg' | ||
730 | + ] | ||
731 | + }, | ||
732 | + { | ||
733 | + relatedReco: { //相关推荐 | ||
734 | + recos: [ | ||
527 | { | 735 | { |
528 | - brandname: '毛衣/针织', | ||
529 | - link: '' | ||
530 | - }] | 736 | + ..//通用商品信息 |
737 | + } | ||
738 | + ... | ||
739 | + ], | ||
740 | + moreReco: '', //标题是否有more,有传url,没有不传 | ||
531 | } | 741 | } |
532 | - ] | ||
533 | - }, { | ||
534 | - name: '品牌一览', | ||
535 | - link: '', | ||
536 | - thirdnav: [] | ||
537 | - }] | ||
538 | - }], | ||
539 | - myyoho: { | ||
540 | - email: 'caomei@163.com', | ||
541 | - viptype: '普通会员', | ||
542 | - currentscore: 495, | ||
543 | - totalscore: 600, | ||
544 | - cardtype: '银卡', | ||
545 | - infolist: [{ | ||
546 | - name: '待处理的订单', | ||
547 | - link: '', | ||
548 | - num: '0' | ||
549 | - }, { | ||
550 | - name: '我的收藏', | ||
551 | - link: '', | ||
552 | - num: '1' | ||
553 | - }, { | ||
554 | - name: '我的优惠券', | ||
555 | - link: '', | ||
556 | - num: '2' | ||
557 | - }, { | ||
558 | - name: '我的YOHO币', | ||
559 | - link: '', | ||
560 | - num: '1' | ||
561 | - }, { | ||
562 | - name: '我的退货换货', | ||
563 | - link: '', | ||
564 | - num: '1' | ||
565 | - }], | ||
566 | - updlink: '' | ||
567 | - }, | ||
568 | - gobuy: { | ||
569 | - gobuynum: 3 | ||
570 | - }, | ||
571 | - breadcrumbnav: [{ | ||
572 | - notend: { | ||
573 | - link: 'http://www.yohobuy.com', | ||
574 | - name: 'BOYS首页' | ||
575 | - } | ||
576 | - }, { | ||
577 | - notend: { | ||
578 | - link: 'http://www.yohobuy.com', | ||
579 | - name: '上衣' | ||
580 | - } | ||
581 | - }, { | ||
582 | - isend: { | ||
583 | - link: 'http://list.yohobuy.com/?msort=1&gender=1,3', | ||
584 | - name: '衬衫' | 742 | + } |
743 | + ], | ||
744 | + brands: [ //相关品牌 | ||
745 | + { | ||
746 | + 'thumb' => '', //品牌图片 | ||
747 | + 'name' => '004', //品牌名称 | ||
748 | + 'url' => '' //品牌url | ||
749 | + } | ||
750 | + ... | ||
751 | + ], | ||
752 | + userInfo: { //用户点赞收藏 | ||
753 | + isLike: true, //当前用户是否点赞 | ||
754 | + likeNum: 84, //点赞次数 | ||
755 | + isCollected: true //当前用户是否收藏 | ||
756 | + }, | ||
757 | + tag: [ //内容标签 | ||
758 | + { | ||
759 | + name: LEE, //标签内容 | ||
760 | + url: www.baidu.com //标签链接 | ||
761 | + } | ||
762 | + ... | ||
763 | + ], | ||
764 | + relatedPost:[ //相关文章 | ||
765 | + { | ||
766 | + url => '', //链接 | ||
767 | + thumb => '', //图片 | ||
768 | + title => '' //标题 | ||
769 | + } | ||
770 | + ... | ||
771 | + ], | ||
772 | + commentInfo: '', //初始内容,用于登陆页跳转回来后的内容不丢失 | ||
773 | + comment: { | ||
774 | + commentNum: 4, //如果没有评论,数字为0,list和commentPager可以不传 | ||
775 | + list: [ //评论列表 | ||
776 | + { | ||
777 | + avatar: '', //评论用户头像 | ||
778 | + name: '', //用户名字 | ||
779 | + content: '', //评论内容 | ||
780 | + time: '' //发表时间 | ||
781 | + } | ||
782 | + ... | ||
783 | + ] | ||
585 | } | 784 | } |
586 | - }] | 785 | + } |
587 | } | 786 | } |
1 | +{{> layout/header}} | ||
2 | + | ||
3 | +{{# guang}} | ||
4 | +<div class="guang-detail-page guang-page yoho-page clearfix" data-id="{{id}}"> | ||
5 | + <div class="left-side detail-body"> | ||
6 | + {{# header}} | ||
7 | + <div class="detail-title">{{title}}</div> | ||
8 | + <div class="article-info clearfix"> | ||
9 | + <div class="article-author"> | ||
10 | + <div class="author-avatar"> | ||
11 | + <img src="{{avatar}}" alt=""> | ||
12 | + </div> | ||
13 | + </div> | ||
14 | + <div class="author-info"> | ||
15 | + <a class="author-name" href="{{authorUrl}}">{{name}}</a> | ||
16 | + </div> | ||
17 | + <div class="article-status clearfix"> | ||
18 | + <span class="article-time">{{time}}</span> | ||
19 | + <span class="article-click">点击:{{click}}</span> | ||
20 | + <span id="article-comment" class="article-comment"><em class="comment-num">{{commentNum}}</em>条评论</span> | ||
21 | + </div> | ||
22 | + </div> | ||
23 | + {{/ header}} | ||
24 | + | ||
25 | + <div class="article-main"> | ||
26 | + {{# content}} | ||
27 | + {{# pic}} | ||
28 | + <div class="article-pic block"> | ||
29 | + <img class="lazy" data-original="{{.}}"> | ||
30 | + </div> | ||
31 | + {{/ pic}} | ||
32 | + {{# text}} | ||
33 | + <div class="article-text block"> | ||
34 | + <p>{{.}}</p> | ||
35 | + </div> | ||
36 | + {{/ text}} | ||
37 | + {{#if smallPic}} | ||
38 | + <div class="article-small-pic block clearfix"> | ||
39 | + {{# smallPic}} | ||
40 | + <img class="lazy" data-original="{{.}}"> | ||
41 | + {{/ smallPic}} | ||
42 | + </div> | ||
43 | + {{/if}} | ||
44 | + {{# relatedReco}} | ||
45 | + <div class="related-reco block clearfix"> | ||
46 | + <div class="block-header"> | ||
47 | + 相关推荐 | ||
48 | + {{# moreReco}} | ||
49 | + <a class="more-reco" href="{{.}}">MORE ></a> | ||
50 | + {{/ moreReco}} | ||
51 | + </div> | ||
52 | + <div class="recos clearfix"> | ||
53 | + {{# recos}} | ||
54 | + {{> product/good}} | ||
55 | + {{/ recos}} | ||
56 | + </div> | ||
57 | + </div> | ||
58 | + {{/ relatedReco}} | ||
59 | + {{/ content}} | ||
60 | + </div> | ||
61 | + <div class="related-brand block clearfix"> | ||
62 | + <div class="block-header">相关品牌</div> | ||
63 | + <div class="brands"> | ||
64 | + {{# brands}} | ||
65 | + <div class="brand"> | ||
66 | + <a class="thumb" href="{{url}}"> | ||
67 | + <img class="lazy" data-original="{{thumb}}"> | ||
68 | + </a> | ||
69 | + <p class="brand-name">{{name}}</p> | ||
70 | + </div> | ||
71 | + {{/ brands}} | ||
72 | + </div> | ||
73 | + </div> | ||
74 | + {{# userInfo}} | ||
75 | + <div class="user-handle"> | ||
76 | + <ul class="clearfix"> | ||
77 | + <li id="prise-btn" class="like-status{{#isLike}} liked{{/isLike}}"> | ||
78 | + <a href="javascript:;"> | ||
79 | + <i class="iconfont"></i> | ||
80 | + <span class="like-num">{{likeNum}}</span> | ||
81 | + </a> | ||
82 | + </li> | ||
83 | + <li id="collect-btn" class="sort-collect{{#isCollected}} collected{{/isCollected}}"> | ||
84 | + <a href="javascript:;"> | ||
85 | + <i class="iconfont"></i> | ||
86 | + <span>收藏</span> | ||
87 | + <span class="cancel-collect">取消收藏</span> | ||
88 | + </a> | ||
89 | + </li> | ||
90 | + </ul> | ||
91 | + </div> | ||
92 | + {{/ userInfo}} | ||
93 | + <div class="article-bottom-info clearfix"> | ||
94 | + {{#if tag}} | ||
95 | + <div class="article-tag clearfix"> | ||
96 | + <i class="tag-icon iconfont"></i> | ||
97 | + <ul class="clearfix"> | ||
98 | + {{# tag}} | ||
99 | + <li> | ||
100 | + <a href="{{url}}">{{name}}</a> | ||
101 | + </li> | ||
102 | + {{/ tag}} | ||
103 | + </ul> | ||
104 | + </div> | ||
105 | + {{/if}} | ||
106 | + <div class="article-share"> | ||
107 | + <span class="share-to"> | ||
108 | + 分享至: | ||
109 | + <a class="share-a share-sina" data-type="weibo" title="分享到新浪微博"></a> | ||
110 | + <a class="share-a share-weixin" data-type="weixin" title="分享到微信朋友圈"></a> | ||
111 | + <a class="share-a share-tencent" data-type="tqq" title="分享到腾讯微博"></a> | ||
112 | + <a class="share-a share-qzone" data-type="qzone" title="分享到QQ空间"></a> | ||
113 | + <a class="share-a share-qq" data-type="qq" title="分享到QQ好友"></a> | ||
114 | + <a class="share-a share-renren" data-type="renren" title="分享到人人网"></a> | ||
115 | + <a class="share-a share-douban" data-type="douban" title="分享到豆瓣"></a> | ||
116 | + <div class="shareWeixin"></div> | ||
117 | + </span> | ||
118 | + <input id="share-img" type="hidden" value="{{sharedImg}}"> | ||
119 | + <input id="share-title" type="hidden" value="{{title}}"> | ||
120 | + <input id="weixin-url" type="hidden" value="{{weixinUrl}}"> | ||
121 | + </div> | ||
122 | + </div> | ||
123 | + {{#if relatedPost}} | ||
124 | + <div class="detail-related-posts"> | ||
125 | + <ul class="clearfix"> | ||
126 | + {{# relatedPost}} | ||
127 | + <li> | ||
128 | + <a href="{{url}}"> | ||
129 | + <span class="bg-img"> | ||
130 | + <img src="{{thumb}}" alt=""> | ||
131 | + </span> | ||
132 | + <div class="post-title"> | ||
133 | + <h2>{{title}}</h2> | ||
134 | + </div> | ||
135 | + </a> | ||
136 | + </li> | ||
137 | + {{/ relatedPost}} | ||
138 | + </ul> | ||
139 | + </div> | ||
140 | + {{/if}} | ||
141 | + | ||
142 | + <div id="comment-area" class="comment-area"> | ||
143 | + <div class="comment-textarea"> | ||
144 | + <textarea id="comment-info" placeholder="我有话要说。。。">{{commentInfo}}</textarea> | ||
145 | + </div> | ||
146 | + <div class="comment-publish clearfix"> | ||
147 | + <span id="word-count-tip" class="word-count-tip"></span> | ||
148 | + <a id="comment-btn" class="publish-btn disable">评论</a> | ||
149 | + </div> | ||
150 | + <div id="pjax-container" class="comments-wrap"> | ||
151 | + {{# comment}} | ||
152 | + <h4> | ||
153 | + <span class="comment-num">{{commentNum}}</span> | ||
154 | + 条评论 <i></i> | ||
155 | + </h4> | ||
156 | + <p class="comments-empty">还没有评论,快抢沙发吧</p> | ||
157 | + <div class="commnets-resultwrapper"> | ||
158 | + <ul class="comments-list"> | ||
159 | + {{# list}} | ||
160 | + <li class="clearfix"> | ||
161 | + <div class="avatar"> | ||
162 | + <img class="comment-user-avatar" src="{{avatar}}" alt=""></div> | ||
163 | + <div class="comment-info"> | ||
164 | + <p class="comment-user-name">{{name}}</p> | ||
165 | + <p class="comment-content">{{content}}</p> | ||
166 | + <p class="comment-time">{{time}}</p> | ||
167 | + </div> | ||
168 | + </li> | ||
169 | + {{/ list}} | ||
170 | + </ul> | ||
171 | + <div class="comment-pager pager">{{{commentPager}}}</div> | ||
172 | + </div> | ||
173 | + {{/ comment}} | ||
174 | + </div> | ||
175 | + </div> | ||
176 | + </div> | ||
177 | + <div class="right-side detail-side"> | ||
178 | + {{> guang/right-side}} | ||
179 | + </div> | ||
180 | +</div> | ||
181 | +{{/ guang}} | ||
182 | + | ||
183 | +{{> layout/footer}} |
1 | +{{> layout/header}} | ||
2 | +<div class="guang-editor-page guang-page yoho-page clearfix"> | ||
3 | + {{# guang}} | ||
4 | + {{# editor}} | ||
5 | + <div class="editor-info clearfix"> | ||
6 | + <div class="author-avatar"> | ||
7 | + <img src="{{avatar}}" alt=""> | ||
8 | + </div> | ||
9 | + <div class="author-info"> | ||
10 | + <p class="author-name">{{name}}</p> | ||
11 | + <p class="author-introduce">{{intro}}</p> | ||
12 | + </div> | ||
13 | + </div> | ||
14 | + {{/ editor}} | ||
15 | + <div class="left-side"> | ||
16 | + <div id="msg-list" class="msg-list"> | ||
17 | + {{# msgs}} | ||
18 | + {{> guang/msg}} | ||
19 | + {{/ msgs}} | ||
20 | + </div> | ||
21 | + <div class="msg-pager pager"> | ||
22 | + {{{msgPager}}} | ||
23 | + </div> | ||
24 | + </div> | ||
25 | + <div class="right-side"> | ||
26 | + {{> guang/right-side}} | ||
27 | + </div> | ||
28 | + {{/ guang}} | ||
29 | +</div> | ||
30 | +{{> layout/footer}} |
1 | +{{> layout/header}} | ||
2 | +<div class="guang-index-page guang-page yoho-page clearfix"> | ||
3 | + {{# guang}} | ||
4 | + <div class="left-side"> | ||
5 | + <div id="slider" class="slider"> | ||
6 | + <ul class="slide-wrapper"> | ||
7 | + {{#each slider}} | ||
8 | + <li> | ||
9 | + <a href="{{url}}"> | ||
10 | + {{#if @first}} | ||
11 | + <img src="{{img}}"> | ||
12 | + {{^}} | ||
13 | + <img class="lazy" data-original="{{img}}"> | ||
14 | + {{/if}} | ||
15 | + </a> | ||
16 | + </li> | ||
17 | + {{/each}} | ||
18 | + </ul> | ||
19 | + </div> | ||
20 | + <div id="pjax-container" class="msg"> | ||
21 | + <ul class="msg-nav"> | ||
22 | + {{# msgTypes}} | ||
23 | + <li data-type="{{typeId}}" {{#if isActive}}class="actived"{{/if}}> | ||
24 | + <a class="pjax-link" href="{{navUrl}}">{{type}}</a> | ||
25 | + </li> | ||
26 | + {{/ msgTypes}} | ||
27 | + </ul> | ||
28 | + <div id="msg-list" class="msg-list"> | ||
29 | + {{# msgs}} | ||
30 | + {{> guang/msg}} | ||
31 | + {{/ msgs}} | ||
32 | + </div> | ||
33 | + <div class="msg-pager pager"> | ||
34 | + {{{msgPager}}} | ||
35 | + </div> | ||
36 | + </div> | ||
37 | + </div> | ||
38 | + <div class="right-side"> | ||
39 | + {{> guang/right-side}} | ||
40 | + </div> | ||
41 | + {{/ guang}} | ||
42 | +</div> | ||
43 | +{{> layout/footer}} |
1 | +{{> layout/header}} | ||
2 | +<div class="guang-list-page guang-page yoho-page clearfix"> | ||
3 | + {{# guang}} | ||
4 | + <div class="left-side"> | ||
5 | + <div class="tag-header"> | ||
6 | + <span>{{tag}}</span> | ||
7 | + 关联的文章 | ||
8 | + </div> | ||
9 | + <div id="msg-list" class="msg-list"> | ||
10 | + {{# msgs}} | ||
11 | + {{> guang/msg}} | ||
12 | + {{/ msgs}} | ||
13 | + </div> | ||
14 | + <div class="msg-pager pager"> | ||
15 | + {{{msgPager}}} | ||
16 | + </div> | ||
17 | + </div> | ||
18 | + <div class="right-side"> | ||
19 | + {{> guang/right-side}} | ||
20 | + </div> | ||
21 | + {{/ guang}} | ||
22 | +</div> | ||
23 | +{{> layout/footer}} |
1 | +<div class="msg-content clearfix" data-id="{{id}}"> | ||
2 | + <div class="msg-img"> | ||
3 | + <div class="classification"> | ||
4 | + {{classification}} | ||
5 | + </div> | ||
6 | + {{#if isReco}} | ||
7 | + <div class="reco"></div> | ||
8 | + {{/if}} | ||
9 | + <a href="{{url}}"> | ||
10 | + <img class="lazy{{#if isSquareImg}} square{{/if}}" data-original="{{img}}"> | ||
11 | + </a> | ||
12 | + </div> | ||
13 | + <div class="msg-info"> | ||
14 | + <a class="msg-title" href="{{url}}">{{title}}</a> | ||
15 | + <p class="msg-app"> | ||
16 | + <a href="{{editorUrl}}"> | ||
17 | + <span class="author">{{author}}</span> | ||
18 | + </a> | ||
19 | + <span class="publish-time"> | ||
20 | + <i class="iconfont"></i> | ||
21 | + {{pTime}} | ||
22 | + </span> | ||
23 | + <span class="page-view"> | ||
24 | + <i class="iconfont"></i> | ||
25 | + {{pView}} | ||
26 | + </span> | ||
27 | + </p> | ||
28 | + <p class="content">{{content}}</p> | ||
29 | + <div class="footer"> | ||
30 | + <div class="tags"> | ||
31 | + {{# tags}} | ||
32 | + <a class="msg-tag" href="{{url}}" target="_blank">{{tag}}</a> | ||
33 | + {{/ tags}} | ||
34 | + </div> | ||
35 | + <div class="like-comment"> | ||
36 | + <span class="like"> | ||
37 | + <i class="iconfont like-icon{{#if liked}} liked{{/if}}"></i> | ||
38 | + {{#if like}}<b class="like-num">(<em class="num">{{like}}</em>)</b>{{/if}} | ||
39 | + </span> | ||
40 | + <span class="comment"> | ||
41 | + <i class="iconfont"></i> | ||
42 | + {{# comment}} | ||
43 | + ({{.}}) | ||
44 | + {{/ comment}} | ||
45 | + </span> | ||
46 | + </div> | ||
47 | + </div> | ||
48 | + </div> | ||
49 | +</div> |
1 | +<div class="ex-reco"> | ||
2 | + <h1 class="ex-reco-title">精彩推荐</h1> | ||
3 | + <div id="ex-reco-list" class="ex-reco-list"> | ||
4 | + {{# exRecos}} | ||
5 | + <div class="ex-reco-item clearfix"> | ||
6 | + <a class="ex-reco-img" href="{{url}}" target="_blank"> | ||
7 | + <span class="bg-img" style="background-image:url({{img}})"></span> | ||
8 | + </a> | ||
9 | + <a href="{{url}}" target="_blank"> | ||
10 | + <p class="ex-reco-context">{{title}}</p> | ||
11 | + </a> | ||
12 | + </div> | ||
13 | + {{/ exRecos}} | ||
14 | + </div> | ||
15 | +</div> | ||
16 | + | ||
17 | +<div class="hot"> | ||
18 | + <h1 class="hot-title">热门标签</h1> | ||
19 | + <div class="hot-tag-list"> | ||
20 | + {{#hotTags}} | ||
21 | + <a class="hot-tag" href="{{url}}"> | ||
22 | + {{tagName}} | ||
23 | + </a> | ||
24 | + {{/hotTags}} | ||
25 | + </div> | ||
26 | +</div> | ||
27 | + | ||
28 | +<div class="ads"> | ||
29 | + {{# ads}} | ||
30 | + <a class="ad" href="{{url}}"> | ||
31 | + <img class="lazy" data-original="{{img}}"> | ||
32 | + </a> | ||
33 | + {{/ ads}} | ||
34 | +</div> |
@@ -19,9 +19,29 @@ | @@ -19,9 +19,29 @@ | ||
19 | 19 | ||
20 | {{!-- 列表 --}} | 20 | {{!-- 列表 --}} |
21 | {{#if productListPage}} | 21 | {{#if productListPage}} |
22 | -<script> | ||
23 | - seajs.use(['js/product/list', 'js/product/product'], function (list, product) { | ||
24 | - product.init(4); | ||
25 | - }); | ||
26 | -</script> | 22 | + <script> |
23 | + seajs.use(['js/product/list', 'js/product/product'], function (list, product) { | ||
24 | + product.init(4); | ||
25 | + }); | ||
26 | + </script> | ||
27 | +{{/if}} | ||
28 | + | ||
29 | +{{!-- 逛 --}} | ||
30 | +{{#if guangIndexPage}} | ||
31 | + <script> | ||
32 | + seajs.use('js/guang/index'); | ||
33 | + </script> | ||
34 | +{{/if}} | ||
35 | + | ||
36 | +{{!-- 逛详情页 --}} | ||
37 | +{{#if guangDetailPage}} | ||
38 | + <script> | ||
39 | + seajs.use('js/guang/detail'); | ||
40 | + </script> | ||
41 | +{{/if}} | ||
42 | + | ||
43 | +{{#if guangListPage}} | ||
44 | + <script> | ||
45 | + seajs.use('js/guang/list'); | ||
46 | + </script> | ||
27 | {{/if}} | 47 | {{/if}} |
No preview for this file type
@@ -2,7 +2,7 @@ | @@ -2,7 +2,7 @@ | ||
2 | <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd" > | 2 | <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd" > |
3 | <svg xmlns="http://www.w3.org/2000/svg"> | 3 | <svg xmlns="http://www.w3.org/2000/svg"> |
4 | <metadata> | 4 | <metadata> |
5 | -Created by FontForge 20120731 at Thu Dec 10 11:10:57 2015 | 5 | +Created by FontForge 20120731 at Wed Dec 16 11:17:36 2015 |
6 | By Ads | 6 | By Ads |
7 | </metadata> | 7 | </metadata> |
8 | <defs> | 8 | <defs> |
@@ -19,7 +19,7 @@ Created by FontForge 20120731 at Thu Dec 10 11:10:57 2015 | @@ -19,7 +19,7 @@ Created by FontForge 20120731 at Thu Dec 10 11:10:57 2015 | ||
19 | bbox="0 -214 1172.1 864" | 19 | bbox="0 -214 1172.1 864" |
20 | underline-thickness="50" | 20 | underline-thickness="50" |
21 | underline-position="-100" | 21 | underline-position="-100" |
22 | - unicode-range="U+0078-E61B" | 22 | + unicode-range="U+0078-E627" |
23 | /> | 23 | /> |
24 | <missing-glyph horiz-adv-x="374" | 24 | <missing-glyph horiz-adv-x="374" |
25 | d="M34 0v682h272v-682h-272zM68 34h204v614h-204v-614z" /> | 25 | d="M34 0v682h272v-682h-272zM68 34h204v614h-204v-614z" /> |
@@ -97,5 +97,42 @@ d="M903 493l-68 69l-388 -388l-231 230l-68 -68l299 -298l65 65z" /> | @@ -97,5 +97,42 @@ d="M903 493l-68 69l-388 -388l-231 230l-68 -68l299 -298l65 65z" /> | ||
97 | <glyph glyph-name="uniE61B" unicode="" | 97 | <glyph glyph-name="uniE61B" unicode="" |
98 | d="M505 253l2 -2q2 -1 4 -1l3 1l430 364q2 2 1 6l-2 2q-1 1 -3 1h-435h-424q-2 0 -3 -1l-2 -2l1 -6zM72 585q-3 2 -6 0l-3 -4v-584q0 -4 3.5 -5t5.5 1l288 346zM953 585h-5l-288 -246l287 -346q3 -2 6 -1t3 5v584q0 3 -3 4zM641 322l-131 -111l-5 5l-125 103l-275 -328 | 98 | d="M505 253l2 -2q2 -1 4 -1l3 1l430 364q2 2 1 6l-2 2q-1 1 -3 1h-435h-424q-2 0 -3 -1l-2 -2l1 -6zM72 585q-3 2 -6 0l-3 -4v-584q0 -4 3.5 -5t5.5 1l288 346zM953 585h-5l-288 -246l287 -346q3 -2 6 -1t3 5v584q0 3 -3 4zM641 322l-131 -111l-5 5l-125 103l-275 -328 |
99 | q-2 -3 -1 -6l2 -2q1 -1 3 -1h396h407q4 0 5 3t-1 6z" /> | 99 | q-2 -3 -1 -6l2 -2q1 -1 3 -1h396h407q4 0 5 3t-1 6z" /> |
100 | + <glyph glyph-name="uniE61C" unicode="" | ||
101 | +d="M982 137l-4 6l-10 12q-12 13 -42 38q-12 10 -25.5 20.5t-27.5 21t-26 17.5l-48 31l-21 11q-5 2 -11.5 3t-13 0.5t-11.5 -2.5q-7 -2 -13.5 -7.5t-9.5 -10.5l-17 -25q-4 -6 -8 -13l-12 -24q-9 -18 -15 -28q-7 -14 -21 -24t-32 -13.5t-36 7.5q-102 57 -171 123 | ||
102 | +q-101 95 -135 172q-8 13 -1.5 37t26.5 34q12 6 25 11.5t23 9.5t18 9q7 4 14.5 8.5t18.5 11.5l2 1l4 4l2 1l3 3q19 18 9 43l-3 8q-1 4 -4 10t-12.5 24.5t-19.5 34.5q-8 14 -19.5 31t-21.5 31q-10 13 -20.5 24t-18.5 17.5t-14.5 11.5t-9.5 6l-4 2l-13 7q-9 4 -17.5 4.5t-16 -1 | ||
103 | +t-16.5 -4.5q-5 -2 -9.5 -4.5t-8.5 -4t-9 -4.5l-7 -4q-3 -2 -8 -6t-7 -5t-7.5 -5.5t-7 -5.5t-8 -6.5t-7.5 -5.5q-44 -37 -69.5 -82.5t-19.5 -86.5q10 -72 88 -198.5t182.5 -225.5t237.5 -173t209 -84q79 -10 169 73q16 15 31.5 34.5t24.5 38.5q6 14 7.5 30t-5.5 31v0z | ||
104 | +M982 137z" /> | ||
105 | + <glyph glyph-name="uniE61D" unicode="" | ||
106 | +d="M888 620q8 8 18.5 10.5t20.5 0t18 -10.5q4 -4 6.5 -8.5t4 -9.5t1.5 -10.5t-1.5 -10t-4 -9.5t-6.5 -9l-406 -405q-12 -12 -28.5 -12t-27.5 12q-6 5 -9 12.5t-3 15.5t3 15t9 13zM539 214q3 -3 5 -6t3.5 -7t2 -7.5t0.5 -7.5t-0.5 -8t-2 -7.5t-3.5 -6.5t-5 -6 | ||
107 | +q-12 -12 -28.5 -12t-28.5 12l-406 405q-7 8 -10 18.5t0 20.5t10 18q6 6 13.5 9t15 3t15 -3t13.5 -9zM539 214z" /> | ||
108 | + <glyph glyph-name="uniE61E" unicode="" | ||
109 | +d="M127 769v-770h770v770h-770zM555 170h-86v86h86v-86zM555 298h-86v257h86v-257z" /> | ||
110 | + <glyph glyph-name="uniE61F" unicode="" | ||
111 | +d="M511.5 747q-72.5 0 -141 -22.5t-123.5 -64t-96 -96.5t-63.5 -123t-22.5 -141q0 -91 35 -173.5t95 -142.5t143 -95.5t173.5 -35.5t173.5 35.5t143 95.5t95 142.5t35 173.5q1 73 -22 141t-64 123t-96 96.5t-123.5 64t-141 22.5zM452 100h-1v0l-38 38l-179 180l38 37 | ||
112 | +l179 -179l318 318l38 -38zM512 -147q-91 0 -175 35q-80 34 -142 96t-96 142q-8 21 -15 42t-11 43t-6.5 44t-2.5 45q0 91 35 174q34 81 96 142.5t142 95.5q84 36 175 36q45 0 88.5 -9t85.5 -27q40 -16 75.5 -40.5t66.5 -54.5q20 -21 38 -44t32.5 -47.5t25.5 -51.5 | ||
113 | +q35 -83 35 -174t-35 -174q-34 -80 -96 -142t-142 -96q-14 -6 -28 -11t-28.5 -9t-29 -6.5t-29 -4.5t-29.5 -3t-30 -1zM511.5 747q-90.5 0 -173 -35.5t-142.5 -95.5t-95.5 -142.5t-35.5 -173.5t35.5 -173.5t95.5 -142.5t142.5 -95t173 -35t173.5 35t142.5 95t95 142.5 | ||
114 | +t35.5 173.5t-35.5 173.5t-95 142.5t-142.5 95.5t-173.5 35.5zM451 99l-38 39l-180 180l39 38l179 -180l318 318l39 -38zM414 138l37 -37l355 355l-37 37l-318 -318l-179 180l-38 -37z" /> | ||
115 | + <glyph glyph-name="uniE620" unicode="" | ||
116 | +d="M958 662q0 30 -21 51.5t-51 21.5h-749q-30 0 -51 -21.5t-21 -51.5v-748q0 -30 21 -51t51 -21h749q30 0 51 21t21 51v748zM778 358l-267 -267q-14 -14 -34 -14q-9 0 -18 3.5t-16 10.5l-168 168q-14 14 -14 34t14 34q9 10 21.5 13t25 0t21.5 -13l134 -133l233 232 | ||
117 | +q9 10 21.5 13t25 0t21.5 -13q14 -14 14 -34t-14 -34z" /> | ||
118 | + <glyph glyph-name="uniE621" unicode="" | ||
119 | +d="M384 556v-513l321 257z" /> | ||
120 | + <glyph glyph-name="uniE622" unicode="" horiz-adv-x="1000" | ||
121 | +d="M662 566v-499l-299 250zM662 566z" /> | ||
122 | + <glyph glyph-name="uniE623" unicode="" horiz-adv-x="1000" | ||
123 | +d="M744 502h-488q-25 0 -46 -12t-33 -33t-12 -46v-290q0 -38 26.5 -64.5t64.5 -26.5h227l200 -138v138h61q38 0 64.5 26.5t26.5 64.5v290q0 15 -4.5 29t-13 25t-19.5 19.5t-25 13t-29 4.5zM744 262z" /> | ||
124 | + <glyph glyph-name="uniE624" unicode="" horiz-adv-x="1025" | ||
125 | +d="M1024 396v338q0 32 -23 55t-55 23h-331h-14q-55 0 -76 -21l-506 -506q-19 -19 -19 -46t19 -45l387 -387q18 -19 45 -19t46 19l506 506q10 10 15 25.5t5.5 26.5t0.5 31zM764 465q-36 0 -61.5 25.5t-25.5 61.5q0 17 7 33t18.5 28t27.5 18.5t34 6.5q36 0 61 -25t25 -61 | ||
126 | +t-25 -61.5t-61 -25.5z" /> | ||
127 | + <glyph glyph-name="uniE625" unicode="" | ||
128 | +d="M511 748q-91 0 -173.5 -35.5t-142 -95t-95 -142t-35.5 -173.5q0 -61 16 -118.5t45 -106.5t70 -90t90 -70t106.5 -45t118.5 -16q91 0 173.5 35.5t142.5 95t95 142t35 173.5q0 185 -130.5 315.5t-315.5 130.5zM734 253h-237q-7 0 -14 3q-22 9 -22 33v237q0 10 5 18.5 | ||
129 | +t13 13.5t18 5q8 0 14.5 -3t11.5 -8t8 -11.5t3 -14.5v-200h200q10 0 18.5 -5t13.5 -13.5t5 -18.5t-5 -18t-13.5 -13t-18.5 -5zM734 253z" /> | ||
130 | + <glyph glyph-name="uniE626" unicode="" horiz-adv-x="1025" | ||
131 | +d="M994 79q-18 9 -16 30.5t27 46.5q24 27 17.5 54.5t-33.5 40.5q-17 8 -24.5 17.5t-2 20t26.5 19.5q20 7 27 30.5t-1 52.5t-28 53q-17 19 -92 24.5t-142 1.5l-67 -4q3 2 3 145q0 69 -14 109t-37.5 53.5t-60.5 12.5q-18 0 -28.5 -5t-17 -13t-11 -26.5t-7.5 -38t-10 -56.5 | ||
132 | +t-16 -74q-12 -47 -38 -94t-54 -80t-55.5 -59t-44 -39t-17.5 -13v-386q8 -12 20 -21t25.5 -15.5t25 -11t23.5 -8.5t16 -6q9 -4 65 -10.5t105.5 -11t51.5 -4.5q4 0 11 0.5t30 2.5t45 4.5t52 6.5t56.5 8t53.5 9.5t47 11t33.5 13t15.5 14.5q5 17 4 30.5t-3.5 23t2.5 17.5t21 15 | ||
133 | +q14 5 23 14.5t12 20.5t3 23t-3.5 22t-8.5 18t-10 11zM0 295v-380q0 -28 20 -48.5t49 -20.5h137v518h-137q-29 0 -49 -20.5t-20 -48.5zM0 295z" /> | ||
134 | + <glyph glyph-name="uniE627" unicode="" horiz-adv-x="1025" | ||
135 | +d="M512 623q-167 0 -304.5 -89.5t-205.5 -236.5q-4 -9 0 -18q45 -96 121 -169.5t177 -115t212 -41.5q167 0 304.5 89.5t205.5 236.5q1 3 1.5 6t0 6t-1.5 6q-68 147 -205.5 236.5t-304.5 89.5zM512 57q-96 0 -163.5 67.5t-67.5 163.5t67.5 163.5t163.5 67.5t163.5 -67.5 | ||
136 | +t67.5 -163.5q0 -47 -18.5 -89.5t-49.5 -73.5t-73.5 -49.5t-89.5 -18.5zM364 288q0 -61 43.5 -104.5t104.5 -43.5t104.5 43.5t43.5 104.5t-43.5 104.5t-104.5 43.5t-104.5 -43.5t-43.5 -104.5z" /> | ||
100 | </font> | 137 | </font> |
101 | </defs></svg> | 138 | </defs></svg> |
No preview for this file type
No preview for this file type
web-static/img/guang/detail/comment-icon.png
0 → 100644

974 Bytes
web-static/img/guang/detail/icon-share.png
0 → 100644

3.65 KB
web-static/img/guang/index/comment.png
0 → 100644

1.07 KB
web-static/img/guang/index/eye.png
0 → 100644

1.16 KB
web-static/img/guang/index/prise.png
0 → 100644

14.7 KB
web-static/img/guang/index/prised.png
0 → 100644

17 KB
web-static/img/guang/index/time.png
0 → 100644

1.09 KB
web-static/img/guang/msg-reco.png
0 → 100644

2.2 KB
web-static/js/common/share.js
0 → 100644
1 | +/*var $ = require('yoho.jquery'); | ||
2 | + | ||
3 | +module.exports = function(options) { | ||
4 | + var openUrl = ''; | ||
5 | + var defOption = { | ||
6 | + title: '', | ||
7 | + url: window.location.href, | ||
8 | + weixinUrl: '', | ||
9 | + image: '', | ||
10 | + desc: '', | ||
11 | + channel: '' | ||
12 | + }; | ||
13 | + var shareChannels = ['weibo', 'tqq', 'qzone', 'renren', 'qq', 'douban','weixin']; | ||
14 | + var sharebox; | ||
15 | + var shareCon = '<em><i></i></em>'; | ||
16 | + | ||
17 | + defOption = $.extend(defOption, options); | ||
18 | + this.weibo = function() { | ||
19 | + openUrl = 'http://service.weibo.com/share/share.php?url=' + | ||
20 | + defOption.url + '&title=' + defOption.title + | ||
21 | + '&appkey=3739328910&searchPic=true&pic=' + defOption.image; | ||
22 | + }; | ||
23 | + this.tqq = function() { | ||
24 | + openUrl = 'http://share.v.t.qq.com/index.php?c=share&a=index&url=' + | ||
25 | + defOption.url + '&title=' + defOption.title + | ||
26 | + '&appkey=c0af9c29e0900813028c2ccb42021792&pic=' + defOption.image; | ||
27 | + }; | ||
28 | + this.qzone = function() { | ||
29 | + openUrl = 'http://sns.qzone.qq.com/cgi-bin/qzshare/cgi_qzshare_onekey?url=' + | ||
30 | + defOption.url + '&title=' + defOption.title + | ||
31 | + '&desc=&summary=' + defOption.desc + '&site=YOHO!有货&pics=' + defOption.image; | ||
32 | + }; | ||
33 | + this.renren = function() { | ||
34 | + openUrl = 'http://widget.renren.com/dialog/share?resourceUrl=' + | ||
35 | + defOption.url + '&srcUrl=' + defOption.url + '&desc=' + defOption.desc + | ||
36 | + '&title=' + defOption.title + '&description=' + | ||
37 | + defOption.desc + '&pic=' + defOption.image; | ||
38 | + }; | ||
39 | + this.qq = function() { | ||
40 | + openUrl = 'http://connect.qq.com/widget/shareqq/index.html?url=' + | ||
41 | + defOption.url + '&desc=' + defOption.desc + '&title=' + | ||
42 | + defOption.title.replace('%', '') + '&desc=&summary=' + defOption.desc + | ||
43 | + '&site=YOHO!有货&pics=' + defOption.image; | ||
44 | + }; | ||
45 | + this.weixin = function() { | ||
46 | + openUrl = 'http://s.jiathis.com/qrcode.php?url=' + | ||
47 | + defOption.weixinUrl + '&desc=' + defOption.desc + '&title=' + defOption.title + | ||
48 | + '&description=' + defOption.desc + '&pic=' + defOption.image; | ||
49 | + }; | ||
50 | + this.douban = function() { | ||
51 | + openUrl = 'http://www.douban.com/share/service?href=' + | ||
52 | + defOption.url + '&text=' + defOption.desc + '&image=' + defOption.image + | ||
53 | + '&title=' + defOption.title + '&comment='; | ||
54 | + }; | ||
55 | + if ($.inArray(defOption.channel, shareChannels) === -1) { | ||
56 | + alert('不存在的分享平台!'); | ||
57 | + return false; | ||
58 | + } | ||
59 | + eval(defOption.channel + '();'); | ||
60 | + if (defOption.channel === 'weixin') { | ||
61 | + if (defOption.self && defOption.self.closest('.share-to').find('.shareWeixin')) { | ||
62 | + sharebox = defOption.self.closest('.share-to').find('.shareWeixin'); | ||
63 | + shareCon += '<div class="con"><h2>分享到微信朋友圈</h2><p class="pic">' + | ||
64 | + '<img src="' + openUrl + '" /></p><p class="w">打开微信,点击底部得“发现”,使用<br/>“扫一扫“即可将网页分享到我的朋友圈。</p>' + | ||
65 | + '<a href="javascript:void(0)" class="close">x</a></div>'; | ||
66 | + sharebox.find('div').length > 0 ? sharebox.show() : sharebox.html(shareCon).show(); | ||
67 | + | ||
68 | + sharebox.find('.close').click(function() { | ||
69 | + $(this).closest('.shareWeixin').hide(); | ||
70 | + }); | ||
71 | + } | ||
72 | + } else { | ||
73 | + window.open(encodeURI(openUrl)); | ||
74 | + } | ||
75 | +};*/ |
@@ -26,10 +26,27 @@ var $ = require('yoho.jquery'), | @@ -26,10 +26,27 @@ var $ = require('yoho.jquery'), | ||
26 | } else { | 26 | } else { |
27 | this._createPage(); | 27 | this._createPage(); |
28 | } | 28 | } |
29 | + | ||
30 | + if (this.options.orient) { | ||
31 | + this._createOrient(); | ||
32 | + } | ||
29 | this._slideShow(); | 33 | this._slideShow(); |
30 | this._bindEvent(); | 34 | this._bindEvent(); |
31 | this._autoplay(); | 35 | this._autoplay(); |
32 | }, | 36 | }, |
37 | + _createOrient: function() { | ||
38 | + | ||
39 | + var orientHtml = '<div class="slide-switch">' + | ||
40 | + '<a class="prev" href="javascript:;"><span class="iconfont"></span></a>' + | ||
41 | + '<a class="next" href="javascript:;"><span class="iconfont"></span></a>' + | ||
42 | + '</div>'; | ||
43 | + | ||
44 | + if (this.$element.find('.slide-switch').length > 0) { | ||
45 | + return; | ||
46 | + } | ||
47 | + | ||
48 | + this.$element.append(orientHtml); | ||
49 | + }, | ||
33 | _createPage: function() { | 50 | _createPage: function() { |
34 | var pageHtml = '<div class="slide-pagination"><div class="slide-pagination-inner">' + | 51 | var pageHtml = '<div class="slide-pagination"><div class="slide-pagination-inner">' + |
35 | '<div class="slide-shade"></div><div class="slide-pagination-last">', | 52 | '<div class="slide-shade"></div><div class="slide-pagination-last">', |
@@ -69,6 +86,12 @@ var $ = require('yoho.jquery'), | @@ -69,6 +86,12 @@ var $ = require('yoho.jquery'), | ||
69 | }).on('mouseleave', function() { | 86 | }).on('mouseleave', function() { |
70 | that._autoplay(); | 87 | that._autoplay(); |
71 | }); | 88 | }); |
89 | + | ||
90 | + this.$element.on('mouseenter', function() { | ||
91 | + $(this).find('.slide-switch').addClass('show'); | ||
92 | + }).on('mouseleave', function() { | ||
93 | + $(this).find('.slide-switch').removeClass('show'); | ||
94 | + }); | ||
72 | }, | 95 | }, |
73 | _nextSlide: function() { | 96 | _nextSlide: function() { |
74 | if (this.index === this.len - 1) { | 97 | if (this.index === this.len - 1) { |
@@ -89,12 +112,14 @@ var $ = require('yoho.jquery'), | @@ -89,12 +112,14 @@ var $ = require('yoho.jquery'), | ||
89 | _slideShow: function() { | 112 | _slideShow: function() { |
90 | var $img = this.bigItem.eq(this.index).find('img.lazy'); | 113 | var $img = this.bigItem.eq(this.index).find('img.lazy'); |
91 | 114 | ||
115 | + //未加载图片的及时显示 | ||
92 | if ($img.attr('src') !== $img.data('original')) { | 116 | if ($img.attr('src') !== $img.data('original')) { |
93 | - lazyLoad($img.trigger('appear')); | ||
94 | - } | ||
95 | - if (this.len > 1) { | ||
96 | - this.$element.find('.slide-switch').addClass('show'); | 117 | + lazyLoad($img, { |
118 | + event: 'sporty' | ||
119 | + }); | ||
120 | + $img.trigger('sporty'); | ||
97 | } | 121 | } |
122 | + | ||
98 | this.smallItem.eq(this.index).addClass('focus').siblings().removeClass('focus'); | 123 | this.smallItem.eq(this.index).addClass('focus').siblings().removeClass('focus'); |
99 | this.bigItem.eq(this.index).fadeIn().siblings().fadeOut(); | 124 | this.bigItem.eq(this.index).fadeIn().siblings().fadeOut(); |
100 | }, | 125 | }, |
@@ -124,6 +149,7 @@ var $ = require('yoho.jquery'), | @@ -124,6 +149,7 @@ var $ = require('yoho.jquery'), | ||
124 | $.fn.slider.Constructor = Slider; | 149 | $.fn.slider.Constructor = Slider; |
125 | $.fn.slider.defaults = { | 150 | $.fn.slider.defaults = { |
126 | time: 5000, | 151 | time: 5000, |
152 | + orient: true, //左右切换箭头的显示 | ||
127 | pagination: null | 153 | pagination: null |
128 | }; | 154 | }; |
129 | })($); | 155 | })($); |
web-static/js/guang/detail.js
0 → 100644
1 | +/** | ||
2 | + * 逛详情页 | ||
3 | + * @author: liuyue<yue.liu@yoho.cn> | ||
4 | + * @date: 2015/12/16 | ||
5 | + */ | ||
6 | + | ||
7 | +var $ = require('yoho.jquery'), | ||
8 | + lazyLoad = require('yoho.lazyload'), | ||
9 | + $commentArea = $('#comment-area'), | ||
10 | + articleId = $('#detail-container').data('id'), | ||
11 | + yoShare = require('../common/share'); | ||
12 | + | ||
13 | +var $commentList = $commentArea.find('.comments-wrap'), | ||
14 | + $commentNum = $('#article-comment > .comment-num'), | ||
15 | + commenting = false, //评论请求尚未返回变量 | ||
16 | + locating = false, //评论页面正在跳转 | ||
17 | + $commentBtn = $('#comment-btn'), | ||
18 | + MAX_COMMENTS_WORDS = 100, | ||
19 | + $wordCountTip = $('#word-count-tip'); | ||
20 | + | ||
21 | +require('./right-side'); | ||
22 | +require('./img-blink'); | ||
23 | + | ||
24 | +//Pjax | ||
25 | +require('yoho.pjax'); | ||
26 | + | ||
27 | +lazyLoad({ | ||
28 | + failure_limit: 50 | ||
29 | +}); | ||
30 | + | ||
31 | +//点击评论滑到评论区 | ||
32 | +$('#article-comment').click(function() { | ||
33 | + $('html, body').animate({ | ||
34 | + scrollTop: $commentArea.offset().top | ||
35 | + }, 800); | ||
36 | +}); | ||
37 | + | ||
38 | +//文章点赞与取消点赞 | ||
39 | +$('#prise-btn').click(function() { | ||
40 | + var prising = false, | ||
41 | + url, | ||
42 | + $this = $(this); | ||
43 | + | ||
44 | + if (prising) { | ||
45 | + return; | ||
46 | + } | ||
47 | + $this.toggleClass('liked'); | ||
48 | + if ($this.hasClass('liked')) { | ||
49 | + | ||
50 | + //点赞 | ||
51 | + url = '/msg/prise'; | ||
52 | + } else { | ||
53 | + | ||
54 | + //取消点赞 | ||
55 | + url = '/msg/cancelprise'; | ||
56 | + } | ||
57 | + prising = true; | ||
58 | + $.ajax({ | ||
59 | + type: 'GET', | ||
60 | + url: url, | ||
61 | + data: { | ||
62 | + id: articleId | ||
63 | + } | ||
64 | + }).then(function(data) { | ||
65 | + if (data.code === 200) { | ||
66 | + $this.find('.like-num').html(data.data); | ||
67 | + } | ||
68 | + prising = false; | ||
69 | + }); | ||
70 | +}).bind('mouseenter mouseleave', function() { | ||
71 | + $(this).toggleClass('hover'); | ||
72 | +}); | ||
73 | + | ||
74 | +//文章收藏与取消收藏 | ||
75 | +$('#collect-btn').click(function() { | ||
76 | + var collecting = false, | ||
77 | + url, | ||
78 | + col, | ||
79 | + $this = $(this); | ||
80 | + | ||
81 | + if (collecting) { | ||
82 | + return; | ||
83 | + } | ||
84 | + if ($this.hasClass('collected')) { | ||
85 | + | ||
86 | + //取消点赞 | ||
87 | + url = '/msg/cancelcollect'; | ||
88 | + col = 0; | ||
89 | + } else { | ||
90 | + | ||
91 | + //点赞 | ||
92 | + url = '/msg/collect'; | ||
93 | + col = 1; | ||
94 | + } | ||
95 | + collecting = true; | ||
96 | + $.ajax({ | ||
97 | + type: 'GET', | ||
98 | + url: url, | ||
99 | + data: { | ||
100 | + id: articleId | ||
101 | + } | ||
102 | + }).then(function(data) { | ||
103 | + var hrefUrl; | ||
104 | + | ||
105 | + switch (data.code) { | ||
106 | + case 401: | ||
107 | + | ||
108 | + //防止从已有col的页面再次进行跳转后出错的情况 | ||
109 | + if (/\?col=(1|0)/.test(location.href)) { | ||
110 | + hrefUrl = location.href.replace(/\?col=(1|0)/, '?col=' + col); | ||
111 | + } else { | ||
112 | + hrefUrl = location.href + '?col=' + col; | ||
113 | + } | ||
114 | + location.href = 'http://www.yohobuy.com/signin.html?refer=' + encodeURI(hrefUrl); | ||
115 | + break; | ||
116 | + case 400: | ||
117 | + alert(data.message); | ||
118 | + break; | ||
119 | + case 200: | ||
120 | + if (/\?col=(1|0)/.test(location.href)) { | ||
121 | + | ||
122 | + //如果页面url中含有col,为了防止页面刷新时收藏或者取消收藏会根据col来的问题,进行页面跳转拿掉参数 | ||
123 | + location.href = location.href.replace(/\?col=(1|0)/, ''); | ||
124 | + } else { | ||
125 | + $this.toggleClass('collected'); | ||
126 | + } | ||
127 | + break; | ||
128 | + } | ||
129 | + collecting = false; | ||
130 | + }); | ||
131 | +}).bind('mouseenter mouseleave', function() { | ||
132 | + $(this).toggleClass('hover'); | ||
133 | +}); | ||
134 | + | ||
135 | +//Share | ||
136 | +function share(channel, self) { | ||
137 | + var title = $('#share-title').val(); | ||
138 | + var desc = document.title.replace(/(^\s*)|(\s*$)/g, ''); | ||
139 | + var image = $('#share-img').val(); | ||
140 | + var weixinUrl = $('#weixin-url').val(); | ||
141 | + | ||
142 | + if (channel === 'weibo' || channel === 'tqq') { | ||
143 | + yoShare({ | ||
144 | + channel: channel, | ||
145 | + title: title, | ||
146 | + image: image | ||
147 | + }); | ||
148 | + } else { | ||
149 | + yoShare({ | ||
150 | + channel: channel, | ||
151 | + title: '【YOHO!有货】最快、最全、最权威的潮流品牌型录发布平台', | ||
152 | + desc: desc, | ||
153 | + image: image, | ||
154 | + self: self, | ||
155 | + weixinUrl: weixinUrl | ||
156 | + }); | ||
157 | + } | ||
158 | +} | ||
159 | + | ||
160 | +$('.article-share').delegate('.share-a', 'click', function(e) { | ||
161 | + var $el = $(this), | ||
162 | + type = $el.data('type'); | ||
163 | + | ||
164 | + e.preventDefault(); | ||
165 | + if (type === 'weixin') { | ||
166 | + share(type, $el); | ||
167 | + } else { | ||
168 | + share(type); | ||
169 | + } | ||
170 | +}); | ||
171 | + | ||
172 | +//评论 | ||
173 | +function comment(id) { | ||
174 | + var commentInfo = $('#comment-info').val(); | ||
175 | + | ||
176 | + if (commentInfo === '') { | ||
177 | + alert('评论不能为空'); | ||
178 | + return false; | ||
179 | + } | ||
180 | + commenting = true; | ||
181 | + $.ajax({ | ||
182 | + url: '/msg/comment', | ||
183 | + data: { | ||
184 | + article_id: id, | ||
185 | + comment: commentInfo | ||
186 | + }, | ||
187 | + type: 'post', | ||
188 | + success: function(data) { | ||
189 | + switch (data.code) { | ||
190 | + case 401: | ||
191 | + locating = true; | ||
192 | + location.href = 'http://www.yohobuy.com/signin.html?refer=' + | ||
193 | + window.escape(location.href + '#comment-info'); | ||
194 | + break; | ||
195 | + case 400: | ||
196 | + alert(data.message); | ||
197 | + break; | ||
198 | + case 200: | ||
199 | + if (data.data) { | ||
200 | + $commentList.html(data.data.content); | ||
201 | + $commentNum.html(data.data.count); | ||
202 | + | ||
203 | + //clear comment-text | ||
204 | + $('#comment-info').val('').keyup(); | ||
205 | + } | ||
206 | + break; | ||
207 | + } | ||
208 | + commenting = false; | ||
209 | + } | ||
210 | + }); | ||
211 | +} | ||
212 | + | ||
213 | + | ||
214 | + | ||
215 | +$commentBtn.click(function(e) { | ||
216 | + | ||
217 | + //页面正在跳转或者正在AJAX请求时评论无效 | ||
218 | + if (locating || commenting) { | ||
219 | + return false; | ||
220 | + } | ||
221 | + | ||
222 | + //字数不符合要求 | ||
223 | + if ($('#comment-info').val().length - MAX_COMMENTS_WORDS > 0) { | ||
224 | + return; | ||
225 | + } | ||
226 | + e.preventDefault(); | ||
227 | + comment($('#detail-container').data('id')); | ||
228 | +}); | ||
229 | + | ||
230 | +//comment pager pjax | ||
231 | +$(document).pjax('.comment-pager a', '#pjax-container', { | ||
232 | + timeout: 5000 | ||
233 | +}); | ||
234 | + | ||
235 | +//分页后移动到评论框的位置 | ||
236 | +$(document).on('pjax:end', function() { | ||
237 | + $('html,body').scrollTop($('#comment-info').offset().top); | ||
238 | +}); | ||
239 | + | ||
240 | +$(document).ready(function() { | ||
241 | + var commonlist = $('.comments-list').find('li').length; | ||
242 | + | ||
243 | + if (commonlist === 0) { | ||
244 | + $('.commnets-resultwrapper').hide(); | ||
245 | + $('.comments-empty').show(); | ||
246 | + } else { | ||
247 | + $('.commnets-resultwrapper').show(); | ||
248 | + $('.comments-empty').hide(); | ||
249 | + } | ||
250 | +}); | ||
251 | + | ||
252 | +$('#comment-info').keyup(function() { | ||
253 | + var len = $(this).val().length, | ||
254 | + showTxt; | ||
255 | + | ||
256 | + if (len === 0) { | ||
257 | + $wordCountTip.html(''); | ||
258 | + $commentBtn.addClass('disable'); | ||
259 | + } else { | ||
260 | + if (len - MAX_COMMENTS_WORDS <= 0) { | ||
261 | + showTxt = '还可以输入' + (MAX_COMMENTS_WORDS - len) + '字'; | ||
262 | + $commentBtn.removeClass('disable'); | ||
263 | + } else { | ||
264 | + showTxt = '已超过<span class="exceed-count">' + (len - MAX_COMMENTS_WORDS) + '</span>字'; | ||
265 | + $commentBtn.addClass('disable'); | ||
266 | + } | ||
267 | + } | ||
268 | + $wordCountTip.html(showTxt); | ||
269 | +}); | ||
270 | + | ||
271 | +//init | ||
272 | +$('#comment-info').trigger('keyup'); |
web-static/js/guang/img-blink.js
0 → 100644
1 | +/** | ||
2 | + * 图片移入闪动效果JS | ||
3 | + * @auhor: xuqi<qi.xu@yoho.cn> | ||
4 | + * @date: 2015/7/29 | ||
5 | + */ | ||
6 | + | ||
7 | +var $ = require('yoho.jquery'); | ||
8 | + | ||
9 | +$('.guang-page').on('mouseover', 'a img, a .bg-img', function(e) { | ||
10 | + var $el = $(e.target); | ||
11 | + | ||
12 | + //slider中的图片不做此效果 | ||
13 | + if ($el.closest('.slider').length > 0) { | ||
14 | + return; | ||
15 | + } | ||
16 | + | ||
17 | + $el.addClass('blink'); | ||
18 | + | ||
19 | + setTimeout(function() { | ||
20 | + $el.removeClass('blink'); | ||
21 | + }, 100); | ||
22 | +}); |
web-static/js/guang/index.js
0 → 100644
1 | +/** | ||
2 | + * 逛首页 | ||
3 | + * @author: xuqi<qi.xu@yoho.cn> | ||
4 | + * @date: 2015/12/15 | ||
5 | + */ | ||
6 | + | ||
7 | +var $ = require('yoho.jquery'); | ||
8 | + | ||
9 | +var msg = require('./msg'); | ||
10 | + | ||
11 | +require('yoho.pjax'); | ||
12 | +require('../common/slider'); | ||
13 | + | ||
14 | +require('./img-blink'); | ||
15 | + | ||
16 | +require('./right-side'); | ||
17 | + | ||
18 | +$('#slider').slider(); //初始化slider | ||
19 | + | ||
20 | +$(document).pjax('.pjax-link, .msg-pager a', '#pjax-container', { | ||
21 | + timeout: 2000 | ||
22 | +}); | ||
23 | + | ||
24 | +$(document).on('pjax:end', function() { | ||
25 | + msg.dotLazy(); | ||
26 | +}); |
web-static/js/guang/list.js
0 → 100644
web-static/js/guang/msg.js
0 → 100644
1 | +var $ = require('yoho.jquery'), | ||
2 | + lazyLoad = require('yoho.lazyload'); | ||
3 | + | ||
4 | +var prising; | ||
5 | + | ||
6 | +require('yoho.dotdotdot'); | ||
7 | + | ||
8 | +//资讯文字截取和lazyload | ||
9 | +function dotLazy() { | ||
10 | + | ||
11 | + //文字截取 | ||
12 | + $('.msg-title, .msg-content .content').dotdotdot({ | ||
13 | + wrap: 'letter' | ||
14 | + }); | ||
15 | + | ||
16 | + //Lazyload | ||
17 | + lazyLoad($('#msg-list img.lazy')); | ||
18 | +} | ||
19 | + | ||
20 | +//资讯点赞 | ||
21 | +$('.guang-page').on('click', '.like-icon', function() { | ||
22 | + var $this = $(this), | ||
23 | + msgId = $this.closest('.msg-content').data('id'), | ||
24 | + url; | ||
25 | + | ||
26 | + //同一资讯多次点击归一处理 | ||
27 | + if (prising === msgId) { | ||
28 | + return; | ||
29 | + } | ||
30 | + | ||
31 | + prising = msgId; | ||
32 | + | ||
33 | + $this.toggleClass('liked'); | ||
34 | + | ||
35 | + //点赞或取消点赞 | ||
36 | + if ($this.hasClass('liked')) { | ||
37 | + url = '/msg/prise'; | ||
38 | + } else { | ||
39 | + url = '/msg/cancelprise'; | ||
40 | + } | ||
41 | + $.ajax({ | ||
42 | + type: 'GET', | ||
43 | + url: url, | ||
44 | + data: { | ||
45 | + id: msgId, | ||
46 | + time: new Date().getTime() | ||
47 | + } | ||
48 | + }).then(function(data) { | ||
49 | + if (data.code === 200) { | ||
50 | + if (data.data * 1 === 0) { | ||
51 | + $this.next('span').addClass('num-0').children('.num').html('0'); //隐藏数字显示 | ||
52 | + } else { | ||
53 | + $this.next('span').removeClass('num-0').children('.num').html(data.data); | ||
54 | + } | ||
55 | + } | ||
56 | + prising = false; | ||
57 | + }); | ||
58 | +}).on('mouseenter mouseleave', '.like-icon', function() { | ||
59 | + $(this).closest('.like').toggleClass('hover'); | ||
60 | +}); | ||
61 | + | ||
62 | +dotLazy(); | ||
63 | + | ||
64 | +exports.dotLazy = dotLazy; |
web-static/js/guang/right-side.js
0 → 100644
@@ -16,7 +16,9 @@ | @@ -16,7 +16,9 @@ | ||
16 | "yoho.lazyload": "1.0.0", | 16 | "yoho.lazyload": "1.0.0", |
17 | "yoho.handlebars": "3.0.3", | 17 | "yoho.handlebars": "3.0.3", |
18 | "yoho.jquery": "1.8.3", | 18 | "yoho.jquery": "1.8.3", |
19 | - "json2": "1.0.0" | 19 | + "json2": "1.0.0", |
20 | + "yoho.pjax": "1.0.0", | ||
21 | + "yoho.dotdotdot": "1.0.0" | ||
20 | }, | 22 | }, |
21 | "devDependencies": { | 23 | "devDependencies": { |
22 | "expect.js": "0.3.1" | 24 | "expect.js": "0.3.1" |
web-static/sass/guang/_detail.scss
0 → 100644
1 | +.guang-detail-page { | ||
2 | + width: 1150px; | ||
3 | + margin: 0 auto 95px; | ||
4 | + | ||
5 | + b { | ||
6 | + font-weight: bold; | ||
7 | + } | ||
8 | + | ||
9 | + i { | ||
10 | + font-style: italic; | ||
11 | + } | ||
12 | + | ||
13 | + .block { | ||
14 | + margin: 15px 0; | ||
15 | + } | ||
16 | + | ||
17 | + .excellent-recommendation-title { | ||
18 | + margin-top: 4px; | ||
19 | + } | ||
20 | + | ||
21 | + .block-header { | ||
22 | + position: relative; | ||
23 | + border-bottom: 1px solid #c1c1c1; | ||
24 | + font-size: 18px; | ||
25 | + height: 38px; | ||
26 | + line-height: 38px; | ||
27 | + text-align: center; | ||
28 | + margin-bottom: 24px; | ||
29 | + color: #333; | ||
30 | + .more-reco { | ||
31 | + position: absolute; | ||
32 | + right: 0; | ||
33 | + color: #000; | ||
34 | + font-size: 14px; | ||
35 | + text-decoration: none; | ||
36 | + } | ||
37 | + } | ||
38 | + | ||
39 | + // 830+22:兼容IE8不认识:nth-child导致brand换行的问题 | ||
40 | + .related-brand .brands { | ||
41 | + width:852px; | ||
42 | + } | ||
43 | + | ||
44 | + .related-reco .recos { | ||
45 | + width: 850px; | ||
46 | + } | ||
47 | +} | ||
48 | + | ||
49 | +.detail-title { | ||
50 | + font-size: 28px; | ||
51 | + line-height: 64px; | ||
52 | + border-bottom: 1px dotted #c1c1c1; | ||
53 | + word-wrap:break-word; | ||
54 | +} | ||
55 | + | ||
56 | +.article-author { | ||
57 | + float: left; | ||
58 | + line-height: 64px; | ||
59 | + .author-avatar { | ||
60 | + clear: both; | ||
61 | + width: 38px; | ||
62 | + height: 64px; | ||
63 | + img { | ||
64 | + width: 38px; | ||
65 | + height: 38px; | ||
66 | + border-radius: 50%; | ||
67 | + vertical-align: middle; | ||
68 | + } | ||
69 | + } | ||
70 | +} | ||
71 | +.author-info { | ||
72 | + float: left; | ||
73 | + margin-left: 10px; | ||
74 | + font-size: 14px; | ||
75 | + max-width: 447px; | ||
76 | + .author-name { | ||
77 | + display: block; | ||
78 | + height: 64px; | ||
79 | + line-height: 64px; | ||
80 | + cursor: pointer; | ||
81 | + color: #000; | ||
82 | + | ||
83 | + &:hover { | ||
84 | + color: #cc3300; | ||
85 | + } | ||
86 | + } | ||
87 | + .author-introduce { | ||
88 | + color: #999; | ||
89 | + } | ||
90 | +} | ||
91 | + | ||
92 | +.article-status { | ||
93 | + float: right; | ||
94 | + height: 64px; | ||
95 | + line-height: 64px; | ||
96 | + color: #999; | ||
97 | + font-size: 13px; | ||
98 | + .article-click { | ||
99 | + margin: 0 25px; | ||
100 | + } | ||
101 | + .article-comment { | ||
102 | + color: #cc3300; | ||
103 | + cursor: pointer; | ||
104 | + } | ||
105 | +} | ||
106 | + | ||
107 | +.article-main { | ||
108 | + img { | ||
109 | + display: block; | ||
110 | + max-width: 100%; | ||
111 | + margin:0 auto; | ||
112 | + } | ||
113 | + .article-text { | ||
114 | + margin: 2px 0 20px; | ||
115 | + line-height: 28px; | ||
116 | + font-size: 14px; | ||
117 | + } | ||
118 | + .article-small-pic { | ||
119 | + text-align: center; | ||
120 | + font-size: 0; | ||
121 | + img { | ||
122 | + display: inline-block; | ||
123 | + *display: inline; | ||
124 | + *zoom: 1; | ||
125 | + max-width: 412px; | ||
126 | + &:first-child { | ||
127 | + margin: 0 6px 0 0; | ||
128 | + } | ||
129 | + } | ||
130 | + } | ||
131 | + | ||
132 | + .block:first-child { | ||
133 | + margin-top: 10px; | ||
134 | + } | ||
135 | +} | ||
136 | + | ||
137 | +/*user handle*/ | ||
138 | +.user-handle { | ||
139 | + margin: 30px 0 0 0; | ||
140 | + text-align: center; | ||
141 | + ul { | ||
142 | + display: inline-block; | ||
143 | + li { | ||
144 | + float: left; | ||
145 | + margin: 0 15px; | ||
146 | + cursor: pointer; | ||
147 | + a { | ||
148 | + position: relative; | ||
149 | + display: block; | ||
150 | + padding: 0 10px; | ||
151 | + height: 36px; | ||
152 | + line-height: 36px; | ||
153 | + color: #535353; | ||
154 | + font-size: 0; | ||
155 | + background: #efefef; | ||
156 | + text-align: left; | ||
157 | + i, span{ | ||
158 | + @include inline-block; | ||
159 | + font-style: normal; | ||
160 | + font-size: 14px; | ||
161 | + } | ||
162 | + i { | ||
163 | + margin: 0 5px 0 0; | ||
164 | + @include opacity(0.5); | ||
165 | + font-size: 18px; | ||
166 | + } | ||
167 | + .cancel-collect { | ||
168 | + display: none; | ||
169 | + } | ||
170 | + } | ||
171 | + } | ||
172 | + .like-status.liked i, | ||
173 | + .like-status.hover i{ | ||
174 | + @include opacity(1); | ||
175 | + } | ||
176 | + .like-statis.hover .like-num { | ||
177 | + color: #000; | ||
178 | + } | ||
179 | + .sort-collect a { | ||
180 | + i { | ||
181 | + width: 21px; | ||
182 | + | ||
183 | + } | ||
184 | + } | ||
185 | + .sort-collect.collected a { | ||
186 | + i { | ||
187 | + @include opacity(1); | ||
188 | + } | ||
189 | + span { | ||
190 | + display: none; | ||
191 | + } | ||
192 | + .cancel-collect { | ||
193 | + display: inline; | ||
194 | + } | ||
195 | + } | ||
196 | + .sort-collect.hover i { | ||
197 | + @include opacity(1); | ||
198 | + } | ||
199 | + .sort-collect.hover span { | ||
200 | + color: #000; | ||
201 | + } | ||
202 | + } | ||
203 | +} | ||
204 | + | ||
205 | +.article-bottom-info { | ||
206 | + margin: 44px 0 0 0; | ||
207 | + padding: 0 0 10px; | ||
208 | + border-bottom: 1px dotted #c1c1c1; | ||
209 | +} | ||
210 | + | ||
211 | +.article-tag { | ||
212 | + float: left; | ||
213 | + width: 588px; | ||
214 | + .tag-icon { | ||
215 | + float: left; | ||
216 | + margin: 0 12px 0 0; | ||
217 | + font-size: 20px; | ||
218 | + font-style: normal; | ||
219 | + } | ||
220 | + ul { | ||
221 | + float: left; | ||
222 | + max-width: 555px; | ||
223 | + li { | ||
224 | + float: left; | ||
225 | + margin: 0 10px 10px 0; | ||
226 | + a { | ||
227 | + display: block; | ||
228 | + padding: 0 15px; | ||
229 | + height: 20px; | ||
230 | + line-height: 20px; | ||
231 | + font-size: 12px; | ||
232 | + color: #fff; | ||
233 | + font-weight: bold; | ||
234 | + background: #c1c1c1; | ||
235 | + } | ||
236 | + | ||
237 | + &:hover a { | ||
238 | + background:#333; | ||
239 | + } | ||
240 | + } | ||
241 | + li:first-child { | ||
242 | + margin-left: 0; | ||
243 | + } | ||
244 | + } | ||
245 | +} | ||
246 | + | ||
247 | + | ||
248 | +.article-share { | ||
249 | + float: right; | ||
250 | + | ||
251 | + .share-to { | ||
252 | + position: relative; | ||
253 | + font-size: 12px; | ||
254 | + } | ||
255 | +} | ||
256 | + | ||
257 | +.detail-related-posts { | ||
258 | + margin: 14px 0 0 0; | ||
259 | + li { | ||
260 | + float: left; | ||
261 | + width: 264px; | ||
262 | + margin-left: 19px; | ||
263 | + a { | ||
264 | + display: block; | ||
265 | + } | ||
266 | + .bg-img { | ||
267 | + display: block; | ||
268 | + width: 100%; | ||
269 | + height: 173px; | ||
270 | + line-height: 173px; | ||
271 | + text-align: center; | ||
272 | + font-size: 0; | ||
273 | + | ||
274 | + img { | ||
275 | + max-width: 100%; | ||
276 | + max-height: 100%; | ||
277 | + vertical-align: middle; | ||
278 | + } | ||
279 | + } | ||
280 | + .post-title { | ||
281 | + margin: 8px 0 0 0; | ||
282 | + h2 { | ||
283 | + line-height: 16px; | ||
284 | + font-size: 14px; | ||
285 | + color: #000; | ||
286 | + overflow: hidden; | ||
287 | + white-space: nowrap; | ||
288 | + text-overflow: ellipsis; | ||
289 | + } | ||
290 | + } | ||
291 | + .post-title:hover h2 { | ||
292 | + color: #cc3300 !important; | ||
293 | + } | ||
294 | + } | ||
295 | + li:first-child { | ||
296 | + margin-left: 0; | ||
297 | + } | ||
298 | +} | ||
299 | + | ||
300 | +.comment-area { | ||
301 | + margin: 58px 0 0 0; | ||
302 | + | ||
303 | + .comment-publish { | ||
304 | + height: 48px; | ||
305 | + } | ||
306 | +} | ||
307 | + | ||
308 | +.comment-textarea { | ||
309 | + textarea { | ||
310 | + display: block; | ||
311 | + width: 812px; | ||
312 | + height: 86px; | ||
313 | + padding: 12px 12px; | ||
314 | + resize: none; | ||
315 | + outline: none; | ||
316 | + font-size: 14px; | ||
317 | + line-height: 18px; | ||
318 | + color: #535353; | ||
319 | + font-family: "arial","helvetica","微软雅黑"; | ||
320 | + border: 1px solid #e7e7e7; | ||
321 | + } | ||
322 | +} | ||
323 | + | ||
324 | +.word-count-tip { | ||
325 | + display: inline-block; | ||
326 | + height: 48px; | ||
327 | + line-height: 48px; | ||
328 | + | ||
329 | + font-size: 12px; | ||
330 | + color: #c8c8c8; | ||
331 | + | ||
332 | + .exceed-count { | ||
333 | + color: #f00; | ||
334 | + } | ||
335 | +} | ||
336 | + | ||
337 | +.publish-btn { | ||
338 | + margin: 10px 0 0 0; | ||
339 | + float: right; | ||
340 | + width: 90px; | ||
341 | + height: 33px; | ||
342 | + line-height: 33px; | ||
343 | + text-align: center; | ||
344 | + color: #fff; | ||
345 | + font-size: 14px; | ||
346 | + background: #cb3a3e; | ||
347 | + cursor: pointer; | ||
348 | + | ||
349 | + &:hover { | ||
350 | + background: #c03234; | ||
351 | + } | ||
352 | + | ||
353 | + &.disable { | ||
354 | + background-color: #e79c9e; | ||
355 | + } | ||
356 | +} | ||
357 | + | ||
358 | +.comments-wrap{ | ||
359 | + h4{ | ||
360 | + position: relative; | ||
361 | + line-height: 32px; | ||
362 | + border-bottom: 1px solid #e7e7e7; | ||
363 | + .comment-num{ | ||
364 | + margin-right: 5px; | ||
365 | + color: #c11e00; | ||
366 | + } | ||
367 | + i{ | ||
368 | + position: absolute; | ||
369 | + width: 13px; | ||
370 | + height: 7px; | ||
371 | + left: 30px; | ||
372 | + bottom: -7px; | ||
373 | + background: image-url('guang/detail/comment-icon.png') no-repeat; | ||
374 | + } | ||
375 | + } | ||
376 | + | ||
377 | + .comment-pager { | ||
378 | + float: right; | ||
379 | + margin: 20px 0; | ||
380 | + } | ||
381 | +} | ||
382 | +.comments-empty { | ||
383 | + display: none; | ||
384 | + color: #ccc; | ||
385 | + margin: 20px 0; | ||
386 | + font-size: 12px; | ||
387 | + line-height: 12px; | ||
388 | + text-align: center; | ||
389 | +} | ||
390 | + | ||
391 | +.commnets-resultwrapper { | ||
392 | + display: none; | ||
393 | +} | ||
394 | + | ||
395 | +.comments-list{ | ||
396 | + li{ | ||
397 | + margin: 14px 0 0; | ||
398 | + padding: 0 0 15px; | ||
399 | + border-bottom: 1px dotted #e7e7e7; | ||
400 | + .avatar{ | ||
401 | + float: left; | ||
402 | + width: 40px; | ||
403 | + height: 40px; | ||
404 | + overflow: hidden; | ||
405 | + img{ | ||
406 | + display: block; | ||
407 | + width: 100%; | ||
408 | + height: 100%; | ||
409 | + border-radius: 50%; | ||
410 | + } | ||
411 | + } | ||
412 | + .comment-info{ | ||
413 | + float: left; | ||
414 | + width: 774px; | ||
415 | + margin: 0 0 0 16px; | ||
416 | + .comment-user-name{ | ||
417 | + color: #c11e00; | ||
418 | + font-size: 15px; | ||
419 | + line-height: 15px; | ||
420 | + } | ||
421 | + .comment-content{ | ||
422 | + margin-top: 10px; | ||
423 | + line-height: 16px; | ||
424 | + font-size: 12px; | ||
425 | + word-wrap:break-word; | ||
426 | + } | ||
427 | + .comment-time{ | ||
428 | + margin: 10px 0 0 0; | ||
429 | + color: #c8c8c8; | ||
430 | + font-size: 12px; | ||
431 | + line-height: 12px; | ||
432 | + clear: both; | ||
433 | + } | ||
434 | + } | ||
435 | + | ||
436 | + } | ||
437 | +} | ||
438 | + | ||
439 | + | ||
440 | +.brand { | ||
441 | + margin-right: 22px; | ||
442 | + margin-bottom: 20px; | ||
443 | + float: left; | ||
444 | + | ||
445 | + .thumb { | ||
446 | + display: table-cell; | ||
447 | + border: 1px solid #f5f5f5; | ||
448 | + height: 120px; | ||
449 | + width: 120px; | ||
450 | + box-sizing: border-box; | ||
451 | + text-align: center; | ||
452 | + vertical-align: middle; | ||
453 | + | ||
454 | + img { | ||
455 | + display: block; | ||
456 | + max-width: 120px; | ||
457 | + max-height: 120px; | ||
458 | + margin: 0 auto; | ||
459 | + } | ||
460 | + | ||
461 | + } | ||
462 | + | ||
463 | + .brand-name { | ||
464 | + width: 120px; | ||
465 | + font-size: 13px; | ||
466 | + line-height: 20px; | ||
467 | + overflow: hidden; | ||
468 | + white-space: nowrap; | ||
469 | + text-overflow: ellipsis; | ||
470 | + text-align: center; | ||
471 | + color: #333; | ||
472 | + } | ||
473 | +} | ||
474 | + | ||
475 | +$commodityWidth: 192px; | ||
476 | + | ||
477 | +.good-info { | ||
478 | + width: $commodityWidth; | ||
479 | + height: 325px; | ||
480 | + margin-right: 20px; | ||
481 | + margin-bottom: 20px; | ||
482 | +} | ||
483 | + | ||
484 | +.share-to .share-a { | ||
485 | + width: 16px; | ||
486 | + height: 16px; | ||
487 | + display: inline-block; | ||
488 | + vertical-align: top; | ||
489 | + margin: 0 2px 0 3px; | ||
490 | + cursor: pointer; | ||
491 | +} | ||
492 | + | ||
493 | +.share-to .share-sina { | ||
494 | + background: image-url('guang/detail/icon-share.png') no-repeat 0 0; | ||
495 | +} | ||
496 | + | ||
497 | +.share-to .share-weixin { | ||
498 | + background: image-url('guang/detail/icon-share.png') no-repeat 0 -96px; | ||
499 | +} | ||
500 | + | ||
501 | +.share-to .share-tencent { | ||
502 | + background: image-url('guang/detail/icon-share.png') no-repeat 0 -16px; | ||
503 | +} | ||
504 | + | ||
505 | +.share-to .share-renren { | ||
506 | + background: image-url('guang/detail/icon-share.png') no-repeat 0 -32px; | ||
507 | +} | ||
508 | + | ||
509 | +.share-to .share-qzone { | ||
510 | + background: image-url('guang/detail/icon-share.png') no-repeat 0 -48px; | ||
511 | +} | ||
512 | + | ||
513 | +.share-to .share-qq { | ||
514 | + background: image-url('guang/detail/icon-share.png') no-repeat 0 -64px; | ||
515 | +} | ||
516 | + | ||
517 | +.share-to .share-douban { | ||
518 | + background: image-url('guang/detail/icon-share.png') no-repeat 0 -80px; | ||
519 | +} | ||
520 | + | ||
521 | +/* weixin share start */ | ||
522 | +.shareWeixin{width:282px;height:302px;position:absolute;padding-top:9px;text-align: center;font-family: Microsoft Yahei, Arial, Verdana;top: 22px;right: -3px;display:none;z-index:2;} | ||
523 | +.shareWeixin em, .shareWeixin em i{width: 0;height: 0;font-size: 0;position: absolute;border-width:0 10px 9px;border-style:dashed dashed solid;} | ||
524 | +.shareWeixin em{border-color:transparent transparent #d6d6d6;top: 0px;left: 50%;margin-left: -10px;} | ||
525 | +.shareWeixin em i{border-color:transparent transparent #e8e8e8;overflow:hidden;top: 1px;left: -10px;} | ||
526 | +.shareWeixin .con{width:280px;height:300px;overflow:hidden;background-color: #FFFFFF;border:1px solid #d6d6d6;box-shadow: 0px 2px 4px #d1d1d1;position:relative;} | ||
527 | +.shareWeixin h2{height:46px;line-height: 46px;background-color: #e8e8e8;color:#000000;font-size: 18px;display: block;} | ||
528 | +.shareWeixin p.pic, .shareWeixin p.pic img{width:168px;height:168px;} | ||
529 | +.shareWeixin p.pic{overflow:hidden;margin:16px auto;} | ||
530 | +.shareWeixin p.w{font-size: 13px;color:#9f9f9f;line-height: 20px;} | ||
531 | +.shareWeixin a.close{width:45px;height:45px;line-height:45px;overflow:hidden;position: absolute;top: 9px;right: 0;font-size: 16px;color: #999999;} | ||
532 | +/* weixin share end */ |
web-static/sass/guang/_home.scss
0 → 100644
1 | +.guang-index-page { | ||
2 | + .msg-nav { | ||
3 | + border-bottom: 1px solid #000; | ||
4 | + margin-top: 24px; | ||
5 | + height: 30px; | ||
6 | + li { | ||
7 | + float: left; | ||
8 | + height: 30px; | ||
9 | + line-height: 30px; | ||
10 | + text-align: center; | ||
11 | + font-size: 18px; | ||
12 | + padding: 0 28px; | ||
13 | + | ||
14 | + a { | ||
15 | + display: block; | ||
16 | + height: 100%; | ||
17 | + width: 100%; | ||
18 | + color: #333; | ||
19 | + } | ||
20 | + | ||
21 | + &.actived { | ||
22 | + background-color: #111; | ||
23 | + | ||
24 | + a { | ||
25 | + color: #fff; | ||
26 | + } | ||
27 | + } | ||
28 | + } | ||
29 | + } | ||
30 | + | ||
31 | + .msg-pager { | ||
32 | + float: right; | ||
33 | + margin: 20px 0; | ||
34 | + } | ||
35 | +} |
web-static/sass/guang/_index.scss
0 → 100644
1 | +.guang-page { | ||
2 | + width: 1150px; | ||
3 | + margin: 0 auto; | ||
4 | + | ||
5 | + .left-side { | ||
6 | + float: left; | ||
7 | + width: 830px; | ||
8 | + } | ||
9 | + | ||
10 | + .right-side { | ||
11 | + float: left; | ||
12 | + width: 290px; | ||
13 | + margin-left: 30px; | ||
14 | + } | ||
15 | + | ||
16 | + img.blink, | ||
17 | + .bg-img.blink { | ||
18 | + opacity: 0.8; | ||
19 | + filter: alpha(opacity=80); | ||
20 | + } | ||
21 | + | ||
22 | + /*精彩推荐*/ | ||
23 | + .ex-reco-title { | ||
24 | + color: #333; | ||
25 | + line-height: 24px; | ||
26 | + padding-bottom: 10px; | ||
27 | + border-bottom: 1px solid #ccc; | ||
28 | + font-size: 20px; | ||
29 | + font-weight: bold; | ||
30 | + } | ||
31 | + .ex-reco-list { | ||
32 | + margin-top: 14px; | ||
33 | + } | ||
34 | + .ex-reco-item { | ||
35 | + box-sizing: border-box; | ||
36 | + height: 60px; | ||
37 | + margin-bottom: 14px; | ||
38 | + &:last-child { | ||
39 | + margin-bottom: 0; | ||
40 | + } | ||
41 | + } | ||
42 | + .ex-reco-img { | ||
43 | + display: block; | ||
44 | + float: left; | ||
45 | + width: 90px; | ||
46 | + height: 60px; | ||
47 | + span { | ||
48 | + display: block; | ||
49 | + height: 100%; | ||
50 | + width: 100%; | ||
51 | + -webkit-background-size:cover; | ||
52 | + -moz-background-size:cover; | ||
53 | + background-size:cover; | ||
54 | + background-position: center; | ||
55 | + img { | ||
56 | + width: 100%; | ||
57 | + height: 100%; | ||
58 | + } | ||
59 | + } | ||
60 | + margin-right: 5px; | ||
61 | + } | ||
62 | + .ex-reco-context { | ||
63 | + float: left; | ||
64 | + max-width: 195px; | ||
65 | + height: 40px; | ||
66 | + line-height: 20px; | ||
67 | + font-size: 13px; | ||
68 | + color: #666; | ||
69 | + white-space: nowrap; | ||
70 | + overflow: hidden; | ||
71 | + text-overflow: ellipsis; | ||
72 | + | ||
73 | + &:hover { | ||
74 | + color: #cc3300; | ||
75 | + } | ||
76 | + } | ||
77 | + | ||
78 | + /*热门标签*/ | ||
79 | + .hot { | ||
80 | + margin-top: 40px; | ||
81 | + | ||
82 | + .hot-title { | ||
83 | + color: #333; | ||
84 | + line-height: 24px; | ||
85 | + padding-bottom: 10px; | ||
86 | + border-bottom: 1px solid #ccc; | ||
87 | + font-weight: bold; | ||
88 | + font-size: 20px; | ||
89 | + } | ||
90 | + | ||
91 | + .hot-tag-list { | ||
92 | + margin-top: 14px; | ||
93 | + max-height: 150px; | ||
94 | + overflow: hidden; | ||
95 | + } | ||
96 | + | ||
97 | + .hot-tag { | ||
98 | + display: inline-block; | ||
99 | + float: left; | ||
100 | + padding: 5px; | ||
101 | + font-size: 12px; | ||
102 | + background-color: #ccc; | ||
103 | + border: none; | ||
104 | + margin-right: 10px; | ||
105 | + margin-bottom: 10px; | ||
106 | + color: white; | ||
107 | + font-weight: bold; | ||
108 | + &:hover { | ||
109 | + background-color: #333; | ||
110 | + } | ||
111 | + } | ||
112 | + } | ||
113 | + | ||
114 | + /*广告位*/ | ||
115 | + .ads { | ||
116 | + margin-top: 30px; | ||
117 | + | ||
118 | + .ad { | ||
119 | + display: block; | ||
120 | + box-sizing: border-box; | ||
121 | + margin-bottom: 24px; | ||
122 | + width: 290px; | ||
123 | + img { | ||
124 | + display: block; | ||
125 | + width: 100%; | ||
126 | + } | ||
127 | + } | ||
128 | + } | ||
129 | + | ||
130 | + /*资讯*/ | ||
131 | + .msg-content { | ||
132 | + padding: 24px 0; | ||
133 | + border-bottom: 1px solid #ccc; | ||
134 | + position: relative; | ||
135 | + | ||
136 | + .content { | ||
137 | + height: 80px; | ||
138 | + line-height: 24px; | ||
139 | + } | ||
140 | + | ||
141 | + .iconfont { | ||
142 | + color: #ccc; | ||
143 | + } | ||
144 | + | ||
145 | + .msg-img { | ||
146 | + position: relative; | ||
147 | + float: left; | ||
148 | + margin-right: 26px; | ||
149 | + | ||
150 | + img { | ||
151 | + display: block; | ||
152 | + width: 360px; | ||
153 | + height: 240px; | ||
154 | + } | ||
155 | + img.square { | ||
156 | + height: 360px; | ||
157 | + } | ||
158 | + } | ||
159 | + | ||
160 | + .classification { | ||
161 | + position: absolute; | ||
162 | + background-color: #000; | ||
163 | + color: #fff; | ||
164 | + text-align: center; | ||
165 | + width: 80px; | ||
166 | + height: 32px; | ||
167 | + line-height: 32px; | ||
168 | + font-size: 13px; | ||
169 | + opacity: 0.9; | ||
170 | + filter: Alpha(opacity=90); | ||
171 | + z-index: 99; | ||
172 | + } | ||
173 | + | ||
174 | + .reco { | ||
175 | + position: absolute; | ||
176 | + top: 0; | ||
177 | + left: 66px; | ||
178 | + height: 32px; | ||
179 | + width: 32px; | ||
180 | + background: image-url("guang/msg-reco.png"); | ||
181 | + background-size: 100% 100%; | ||
182 | + z-index: 100; | ||
183 | + } | ||
184 | + | ||
185 | + .msg-info { | ||
186 | + float: left; | ||
187 | + width: 440px; | ||
188 | + } | ||
189 | + | ||
190 | + .msg-title { | ||
191 | + display: block; | ||
192 | + font-size: 22px; | ||
193 | + color: #333; | ||
194 | + line-height: 30px; | ||
195 | + max-height: 64px; | ||
196 | + | ||
197 | + &:hover { | ||
198 | + color: #CC3300; | ||
199 | + } | ||
200 | + } | ||
201 | + | ||
202 | + .content { | ||
203 | + font-size: 14px; | ||
204 | + color: #666; | ||
205 | + } | ||
206 | + | ||
207 | + .msg-app { | ||
208 | + line-height: 34px; | ||
209 | + color: #999; | ||
210 | + font-size: 13px; | ||
211 | + } | ||
212 | + | ||
213 | + .author { | ||
214 | + display: block; | ||
215 | + float: left; | ||
216 | + color: #333; | ||
217 | + margin-right: 22px; | ||
218 | + max-width: 180px; | ||
219 | + white-space: nowrap; | ||
220 | + overflow: hidden; | ||
221 | + text-overflow: ellipsis; | ||
222 | + | ||
223 | + &:hover { | ||
224 | + color: #CC3300; | ||
225 | + } | ||
226 | + } | ||
227 | + | ||
228 | + .publish-time, .page-view { | ||
229 | + color: #999; | ||
230 | + } | ||
231 | + | ||
232 | + .tags, .like-comment { | ||
233 | + position: absolute; | ||
234 | + bottom: 24px; | ||
235 | + font-size: 12px; | ||
236 | + &.tags { | ||
237 | + left: 386px; | ||
238 | + max-width: 350px; | ||
239 | + height: 20px; | ||
240 | + overflow: hidden; | ||
241 | + } | ||
242 | + &.like-comment { | ||
243 | + right: 0; | ||
244 | + color: #999; | ||
245 | + } | ||
246 | + .like { | ||
247 | + margin-right: 10px; | ||
248 | + &:hover * { | ||
249 | + color: #000; | ||
250 | + } | ||
251 | + } | ||
252 | + .like-icon { | ||
253 | + cursor: pointer; | ||
254 | + } | ||
255 | + } | ||
256 | + | ||
257 | + .msg-tag { | ||
258 | + display: inline-block; | ||
259 | + text-align: center; | ||
260 | + height: 20px; | ||
261 | + line-height: 20px; | ||
262 | + padding: 0 10px; | ||
263 | + margin-right: 10px; | ||
264 | + background-color: #ccc; | ||
265 | + color: #fff; | ||
266 | + &:last-child { | ||
267 | + margin-right: 0; | ||
268 | + } | ||
269 | + &:hover { | ||
270 | + background-color: #333; | ||
271 | + } | ||
272 | + } | ||
273 | + } | ||
274 | + | ||
275 | + .pager { | ||
276 | + font-size: 12px; | ||
277 | + | ||
278 | + a { | ||
279 | + height: 24px; | ||
280 | + padding: 0 9px; | ||
281 | + line-height: 24px; | ||
282 | + display: inline-block; | ||
283 | + text-align: center; | ||
284 | + margin-right: 8px; | ||
285 | + color: #222; | ||
286 | + | ||
287 | + &.cur { | ||
288 | + background-color: #222; | ||
289 | + color: #fff; | ||
290 | + } | ||
291 | + } | ||
292 | + } | ||
293 | +} | ||
294 | + | ||
295 | +@import "home", "detail", "list"; |
web-static/sass/guang/_list.scss
0 → 100644
1 | +.guang-editor-page, | ||
2 | +.guang-list-page { | ||
3 | + .tag-header { | ||
4 | + height: 45px; | ||
5 | + line-height: 45px; | ||
6 | + color: #333; | ||
7 | + font-size: 14px; | ||
8 | + font-weight: bold; | ||
9 | + border-bottom: 1px solid #ccc; | ||
10 | + | ||
11 | + > span { | ||
12 | + font-size: 20px; | ||
13 | + } | ||
14 | + } | ||
15 | + | ||
16 | + .msg-pager { | ||
17 | + float: right; | ||
18 | + margin: 20px 0; | ||
19 | + } | ||
20 | +} | ||
21 | + | ||
22 | +.guang-editor-page .right-side { | ||
23 | + margin-top: 20px; | ||
24 | +} | ||
25 | + | ||
26 | +.guang-list-page .right-side { | ||
27 | + margin-top: 11px; | ||
28 | +} | ||
29 | + | ||
30 | +.guang-editor-page .editor-info { | ||
31 | + padding: 10px 10px; | ||
32 | + background: #fafafa; | ||
33 | + .author-avatar { | ||
34 | + float: left; | ||
35 | + width: 80px; | ||
36 | + height: 100%; | ||
37 | + img { | ||
38 | + width: 80px; | ||
39 | + height: 80px; | ||
40 | + vertical-align: middle; | ||
41 | + border-radius: 50%; | ||
42 | + } | ||
43 | + } | ||
44 | + .author-info { | ||
45 | + float: left; | ||
46 | + margin: 0 0 0 10px; | ||
47 | + max-width: 1060px; | ||
48 | + } | ||
49 | + | ||
50 | + .author-name { | ||
51 | + margin-top: 11px; | ||
52 | + font-size: 20px; | ||
53 | + height: 30px !important; | ||
54 | + line-height: 30px !important; | ||
55 | + } | ||
56 | + .author-introduce { | ||
57 | + line-height: 24px; | ||
58 | + font-size: 14px; | ||
59 | + color: #999; | ||
60 | + | ||
61 | + } | ||
62 | + .intro-content { | ||
63 | + margin: 15px 0 0 0; | ||
64 | + line-height: 18px; | ||
65 | + font-size: 14px; | ||
66 | + color: #999; | ||
67 | + } | ||
68 | +} |
@@ -4,7 +4,8 @@ | @@ -4,7 +4,8 @@ | ||
4 | "compass/reset", | 4 | "compass/reset", |
5 | "header", | 5 | "header", |
6 | "footer", | 6 | "footer", |
7 | - "path-nav"; | 7 | + "path-nav", |
8 | + "plugin/slider"; | ||
8 | 9 | ||
9 | body { | 10 | body { |
10 | font-family: arial,"Microsoft YaHei"; | 11 | font-family: arial,"Microsoft YaHei"; |
@@ -79,4 +80,4 @@ a:focus { | @@ -79,4 +80,4 @@ a:focus { | ||
79 | width: 990px; | 80 | width: 990px; |
80 | } | 81 | } |
81 | } | 82 | } |
82 | -@import "home/index", "product/index"; | 83 | +@import "home/index", "product/index", "guang/index"; |
web-static/sass/plugin/_slider.scss
0 → 100644
1 | +.slider { | ||
2 | + position: relative; | ||
3 | + height: 327px; | ||
4 | + width: 100%; | ||
5 | + overflow: hidden; | ||
6 | + | ||
7 | + img { | ||
8 | + max-width: 100%; | ||
9 | + max-height: 100%; | ||
10 | + } | ||
11 | +} | ||
12 | + | ||
13 | +.slide-pagination { | ||
14 | + position: absolute; | ||
15 | + left: 0; | ||
16 | + right: 0; | ||
17 | + bottom: 12px; | ||
18 | + text-align: center; | ||
19 | +} | ||
20 | + | ||
21 | +.slide-pagination-inner { | ||
22 | + display: inline-block; | ||
23 | + position: relative; | ||
24 | + padding: 7px; | ||
25 | + vertical-align: middle; | ||
26 | +} | ||
27 | + | ||
28 | +.slide-shade { | ||
29 | + position: absolute; | ||
30 | + left: 0; | ||
31 | + right: 0; | ||
32 | + top: 0; | ||
33 | + bottom: 0; | ||
34 | + background: #000; | ||
35 | + opacity: 0.3; | ||
36 | + filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=30); | ||
37 | + @include border-radius(13px); | ||
38 | +} | ||
39 | + | ||
40 | +.slide-pagination-last span { | ||
41 | + display: block; | ||
42 | + float: left; | ||
43 | + position: relative; | ||
44 | + margin: 0 7px; | ||
45 | + width: 12px; | ||
46 | + height: 12px; | ||
47 | + background: #fff; | ||
48 | + cursor: pointer; | ||
49 | + @include opacity(0.6); | ||
50 | + @include border-radius(6px); | ||
51 | + z-index: 2; | ||
52 | + | ||
53 | + &.focus { | ||
54 | + @include opacity(1); | ||
55 | + } | ||
56 | +} | ||
57 | + | ||
58 | +.slide-switch { | ||
59 | + display: none; | ||
60 | + | ||
61 | + &.show { | ||
62 | + display: block; | ||
63 | + } | ||
64 | + | ||
65 | + a { | ||
66 | + display: block; | ||
67 | + position: absolute; | ||
68 | + top: 50%; | ||
69 | + margin: -30px 0 0; | ||
70 | + width: 60px; | ||
71 | + height: 60px; | ||
72 | + line-height: 56px; | ||
73 | + text-align: center; | ||
74 | + z-index: 2; | ||
75 | + background: #fff; | ||
76 | + @include opacity(0.55); | ||
77 | + | ||
78 | + &:hover{ | ||
79 | + @include opacity(0.9); | ||
80 | + } | ||
81 | + | ||
82 | + .iconfont { | ||
83 | + font-size: 32px; | ||
84 | + color: #59585a; | ||
85 | + } | ||
86 | + } | ||
87 | + | ||
88 | + .prev { | ||
89 | + left: 0; | ||
90 | + } | ||
91 | + | ||
92 | + .next { | ||
93 | + right: 0; | ||
94 | + } | ||
95 | +} |
@@ -35,7 +35,7 @@ | @@ -35,7 +35,7 @@ | ||
35 | .good-detail-text { | 35 | .good-detail-text { |
36 | color: #222; | 36 | color: #222; |
37 | font-size: 12px; | 37 | font-size: 12px; |
38 | - text-align: center; | 38 | + text-align: left; |
39 | 39 | ||
40 | > a { | 40 | > a { |
41 | margin-top: 16px; | 41 | margin-top: 16px; |
@@ -86,6 +86,10 @@ | @@ -86,6 +86,10 @@ | ||
86 | &.limit-tag { | 86 | &.limit-tag { |
87 | color: #4e4e4e; | 87 | color: #4e4e4e; |
88 | border: 1px solid #4e4e4e; | 88 | border: 1px solid #4e4e4e; |
89 | + height: 22px; | ||
90 | + box-sizing: border-box; | ||
91 | + -moz-box-sizing:border-box; | ||
92 | + -webkit-box-sizing:border-box; | ||
89 | } | 93 | } |
90 | } | 94 | } |
91 | } | 95 | } |
1 | +<?php | ||
2 | +use Action\AbstractAction; | ||
3 | + | ||
4 | +/** | ||
5 | + * 逛 | ||
6 | + */ | ||
7 | +class GuangController extends AbstractAction | ||
8 | +{ | ||
9 | + /** | ||
10 | + * 逛首页 | ||
11 | + */ | ||
12 | + public function indexAction() | ||
13 | + { | ||
14 | + $data = array( | ||
15 | + 'guangIndexPage' => true, | ||
16 | + 'guang' => array( | ||
17 | + 'slider' => array( | ||
18 | + array( | ||
19 | + 'url' => '', | ||
20 | + 'img' => 'http://img13.static.yhbimg.com/taobaocms/2015/06/17/07/0240f288725106b408d8c524b4d0fba4b9.jpg' | ||
21 | + ), | ||
22 | + array( | ||
23 | + 'url' => '', | ||
24 | + 'img' => 'http://img13.static.yhbimg.com/taobaocms/2015/06/17/07/02934d7696b187d260341d31c084eb93cc.jpg' | ||
25 | + ) | ||
26 | + ), | ||
27 | + 'msgTypes' => array( | ||
28 | + array( | ||
29 | + 'typeId' => 1, | ||
30 | + 'type' => '最新', | ||
31 | + 'navUrl' => '/' | ||
32 | + ), | ||
33 | + array( | ||
34 | + 'typeId' => 2, | ||
35 | + 'type' => '话题', | ||
36 | + 'isActive' => true, | ||
37 | + 'navUrl' => '/' | ||
38 | + ), | ||
39 | + array( | ||
40 | + 'typeId' => 3, | ||
41 | + 'type' => '搭配', | ||
42 | + 'navUrl' => '/' | ||
43 | + ), | ||
44 | + array( | ||
45 | + 'typeId' => 4, | ||
46 | + 'type' => '潮人', | ||
47 | + 'navUrl' => '/' | ||
48 | + ), | ||
49 | + array( | ||
50 | + 'typeId' => 5, | ||
51 | + 'type' => '潮物', | ||
52 | + 'navUrl' => '/' | ||
53 | + ), | ||
54 | + array( | ||
55 | + 'typeId' => 6, | ||
56 | + 'type' => '小贴士', | ||
57 | + 'navUrl' => '/' | ||
58 | + ) | ||
59 | + ), | ||
60 | + 'msgs' => array( | ||
61 | + array( | ||
62 | + 'id' => 1, | ||
63 | + 'classification' => '话题', | ||
64 | + 'isReco' => true, | ||
65 | + 'url' => '', | ||
66 | + 'img' => 'http://img10.static.yhbimg.com/yhb-img01/2015/06/12/17/01437323c88bc61f26721a2ad91a2ba61a.png?imageView/2/w/640/h/640', | ||
67 | + 'isSquareImg' => true, | ||
68 | + 'title' => '破旧除新!Publish完美释出2015最新春季[TheResistance]系列看看你很长的时候会不会分页啊,奇怪的人类', | ||
69 | + 'author' => '大家玩看看作者名字 过长的情况显示是不是有问题呵呵哒哒哒', | ||
70 | + 'editorUrl' => '', | ||
71 | + 'pTime' => '2015-03-08 15:33', | ||
72 | + 'pView' => '225', | ||
73 | + 'content' => '该类型 应用于多图形式。虽说洛杉矶街头品牌Publish是凭着设计一炮而红,跃升为近年人气品牌,但是该设计团队却打算你妹啊鬼知道你后面说什么但是要测试文字截取能不能成功,所以必须要把你写很长很长很长很长很长', | ||
74 | + 'tags' => array( | ||
75 | + array( | ||
76 | + 'url' => '', | ||
77 | + 'tag' => 'adidas OriginalsQ' | ||
78 | + ) | ||
79 | + ), | ||
80 | + 'like' => 0, //如果为0,不传 | ||
81 | + // 'liked' => false, | ||
82 | + 'comment' => 20 | ||
83 | + ) | ||
84 | + ), | ||
85 | + 'exRecos' => array( | ||
86 | + array( | ||
87 | + 'url' => '', | ||
88 | + 'img' => 'http://img10.static.yhbimg.com/yhb-img01/2015/06/12/17/01437323c88bc61f26721a2ad91a2ba61a.png?imageView/2/w/640/h/640', | ||
89 | + 'title' => '皇家蓝再现,New Balance 999 Elite文字描述长一点查看文字截取的功能' | ||
90 | + ) | ||
91 | + ), | ||
92 | + 'hotTags' => array( | ||
93 | + array( | ||
94 | + 'tagName' => 'LEE', | ||
95 | + 'url' => '' | ||
96 | + ) | ||
97 | + ), | ||
98 | + 'ads' => array( | ||
99 | + array( | ||
100 | + 'url' => '', | ||
101 | + 'img' => 'http://img13.static.yhbimg.com/taobaocms/2015/06/17/07/0240f288725106b408d8c524b4d0fba4b9.jpg' | ||
102 | + ) | ||
103 | + ), | ||
104 | + 'msgPager' => '<a href="" class="cur"><span>1</span></a><a href=""><span>2</span></a><a href="" title="下一页">下一页<span class="ifont10">></span></a>' | ||
105 | + ) | ||
106 | + ); | ||
107 | + $this->_view->display('index', $data); | ||
108 | + } | ||
109 | + | ||
110 | + /** | ||
111 | + * 逛详情页 | ||
112 | + */ | ||
113 | + public function detailAction() | ||
114 | + { | ||
115 | + $data = array( | ||
116 | + 'guangDetailPage' => true, | ||
117 | + 'guang' => array( | ||
118 | + 'id' => '1', | ||
119 | + 'header' => array( | ||
120 | + 'title' => '潮款马甲内搭学院风领结衬衣!休闲学院风走起', | ||
121 | + 'avatar' => 'http://rescdn.yohoboys.com/res/new/boys/images/writer-head-icon.png', | ||
122 | + 'name' => '潮流主编', | ||
123 | + 'authorUrl' => '', | ||
124 | + 'intro' => '日本设计界宗师', | ||
125 | + 'time' => '2015-03-09 08:26', | ||
126 | + 'click' => '1128', | ||
127 | + 'commentNum' => '4' | ||
128 | + ), | ||
129 | + 'content' => array( | ||
130 | + array( | ||
131 | + 'pic' => 'http://img01.yohoboys.com/contentimg/2015/06/04/14/01245c8a33b89ea1efef161f7de82a8b53.jpg' | ||
132 | + ), | ||
133 | + array( | ||
134 | + 'text' => 'LV的大秀想必是最不容错过的,这个全世界最有实力的品牌,当之无愧的时尚之王,今年会带来什么样的惊喜呢?作为设计总监的Kim Jones,从2011年就负责LV的男装设计,每一季都会有突破性的表现,这一季度,依然带来具有Kim Jones风格的春夏系列。本季的主题融入了旅行风格,打造出一系列轻松舒适的服饰。从T恤到棒球夹克再到西装,都充满了轻松随意感。同时还融入了各式的花纹和图案设计。能够见到有中国特色的仙鹤刺绣等图案,撞色格纹设计也非常亮眼。搭配上剪裁轮廓上的流线感,使整个系列给人感觉非常的轻松自如。虽然Kim Jones一直保持低调的习惯,但是在巴黎这个时装界重要地区,他呈现一季比较有活力的大秀,顶级真的是顶级,这可不是一些标榜独立设计师品牌们能够企及的。' | ||
135 | + ), | ||
136 | + array( | ||
137 | + 'smallPic' => array( | ||
138 | + 'http://img02.static.yohobuy.com/cms/2015/06/26/12/027eb72bc880b4fe1aad361296c871c2ea.jpg', | ||
139 | + 'http://img02.static.yohobuy.com/cms/2015/06/26/12/027eb72bc880b4fe1aad361296c871c2ea.jpg' | ||
140 | + ) | ||
141 | + ), | ||
142 | + array( | ||
143 | + 'relatedReco' => array( | ||
144 | + 'recos' => array( | ||
145 | + array( | ||
146 | + 'thumb' => 'http://img11.static.yhbimg.com/goodsimg/2015/03/02/07/01ebfb219e22770ffb0c2c3a2cbb2b4bef.jpg?imageMogr2/thumbnail/235x314/extent/235x314/background/d2hpdGU=/position/center/quality/90', | ||
147 | + 'name' => 'GAWS DIGI 丛林数码印花拼接卫衣', | ||
148 | + 'isLike' => false, | ||
149 | + 'price' => 1268, | ||
150 | + 'salePrice' => 589, | ||
151 | + 'tags' => array( | ||
152 | + array( | ||
153 | + 'isNew' => true | ||
154 | + ), | ||
155 | + array( | ||
156 | + 'isSale' => false | ||
157 | + ), | ||
158 | + array( | ||
159 | + 'isLimit' => true | ||
160 | + ), | ||
161 | + array( | ||
162 | + 'isYohood' => false | ||
163 | + ), | ||
164 | + array( | ||
165 | + 'isReNew' => true | ||
166 | + ), | ||
167 | + array( | ||
168 | + 'isYearEndPromotion' => false | ||
169 | + ), | ||
170 | + array( | ||
171 | + 'isYearMidPromotion' => false | ||
172 | + ) | ||
173 | + ), | ||
174 | + 'isFew' => true, //单独的即将售罄标志,不显示不写 | ||
175 | + 'url' => '' | ||
176 | + ), | ||
177 | + array( | ||
178 | + 'thumb' => 'http://img13.static.yhbimg.com/goodsimg/2015/03/02/08/023f696cf1ae78688bc6c8edeccc480c2c.jpg?imageMogr2/thumbnail/235x314/extent/235x314/background/d2hpdGU=/position/center/quality/90', | ||
179 | + 'name' => 'CLOTtee 撞色连帽外套', | ||
180 | + 'isLike' => false, | ||
181 | + 'price' => 488, | ||
182 | + 'salePrice' => 139, | ||
183 | + 'tags' => array( | ||
184 | + array( | ||
185 | + 'isNew' => true | ||
186 | + ), | ||
187 | + array( | ||
188 | + 'isSale' => false | ||
189 | + ), | ||
190 | + array( | ||
191 | + 'isLimit' => true | ||
192 | + ), | ||
193 | + array( | ||
194 | + 'isYohood' => true | ||
195 | + ) | ||
196 | + ), | ||
197 | + 'url' => '' | ||
198 | + ), | ||
199 | + array( | ||
200 | + 'thumb' => 'http://img13.static.yhbimg.com/goodsimg/2015/03/02/08/023f696cf1ae78688bc6c8edeccc480c2c.jpg?imageMogr2/thumbnail/235x314/extent/235x314/background/d2hpdGU=/position/center/quality/90', | ||
201 | + 'name' => 'CLOTtee 撞色连帽外套', | ||
202 | + 'isLike' => false, | ||
203 | + 'price' => 488, | ||
204 | + 'salePrice' => 139, | ||
205 | + 'tags' => array( | ||
206 | + array( | ||
207 | + 'isNew' => true | ||
208 | + ), | ||
209 | + array( | ||
210 | + 'isSale' => false | ||
211 | + ), | ||
212 | + array( | ||
213 | + 'isLimit' => true | ||
214 | + ), | ||
215 | + array( | ||
216 | + 'isYohood' => true | ||
217 | + ) | ||
218 | + ), | ||
219 | + 'url' => '' | ||
220 | + ), | ||
221 | + array( | ||
222 | + 'thumb' => 'http://img13.static.yhbimg.com/goodsimg/2015/03/02/08/023f696cf1ae78688bc6c8edeccc480c2c.jpg?imageMogr2/thumbnail/235x314/extent/235x314/background/d2hpdGU=/position/center/quality/90', | ||
223 | + 'name' => 'CLOTtee 撞色连帽外套', | ||
224 | + 'isLike' => false, | ||
225 | + 'price' => 488, | ||
226 | + 'salePrice' => 139, | ||
227 | + 'tags' => array( | ||
228 | + array( | ||
229 | + 'isNew' => true | ||
230 | + ), | ||
231 | + array( | ||
232 | + 'isSale' => false | ||
233 | + ), | ||
234 | + array( | ||
235 | + 'isLimit' => true | ||
236 | + ), | ||
237 | + array( | ||
238 | + 'isYohood' => true | ||
239 | + ) | ||
240 | + ), | ||
241 | + 'url' => '' | ||
242 | + ) | ||
243 | + ), | ||
244 | + 'moreReco' => '11' | ||
245 | + ) | ||
246 | + ) | ||
247 | + ), | ||
248 | + 'brands' => array( | ||
249 | + array( | ||
250 | + 'thumb' => 'http://img10.static.yhbimg.com/brandLogo/2011/06/26/19/016f21d6a39d5071e1864943253dcdefde.jpg?imageMogr2/thumbnail/100x100/extent/100x100/background/d2hpdGU=/position/center', | ||
251 | + 'name' => '004', | ||
252 | + 'url' => '' | ||
253 | + ), | ||
254 | + array( | ||
255 | + 'thumb' => 'http://img12.static.yhbimg.com/brandLogo/2011/06/26/14/02ef4f656cbf6c1ec349b30f07e3347840.jpg?imageMogr2/thumbnail/100x100/extent/100x100/background/d2hpdGU=/position/center', | ||
256 | + 'name' => 'MELISSA', | ||
257 | + 'url' => '' | ||
258 | + ), | ||
259 | + array( | ||
260 | + 'thumb' => 'http://img10.static.yhbimg.com/brandLogo/2012/08/02/15/01e4740f9f77d0142902face2f3d151109.jpg?imageMogr2/thumbnail/100x100/extent/100x100/background/d2hpdGU=/position/center', | ||
261 | + 'name' => '2%', | ||
262 | + 'url' => '' | ||
263 | + ), | ||
264 | + array( | ||
265 | + 'thumb' => 'http://img12.static.yhbimg.com/brandLogo/2014/08/28/13/028aa6e10aad8235c0f283e0b26f495a9b.jpg?imageMogr2/thumbnail/100x100/extent/100x100/background/d2hpdGU=/position/center', | ||
266 | + 'name' => 'migo', | ||
267 | + 'url' => '' | ||
268 | + ) | ||
269 | + ), | ||
270 | + 'userInfo' => array( | ||
271 | + 'isLike' => true, | ||
272 | + 'likeNum' => 84, | ||
273 | + 'isCollected' => true, | ||
274 | + ), | ||
275 | + 'tag' => array( | ||
276 | + array( | ||
277 | + 'name' => 'LEE', | ||
278 | + 'url' => 'www.baidu.com' | ||
279 | + ), | ||
280 | + array( | ||
281 | + 'name' => 'Style', | ||
282 | + 'url' => '' | ||
283 | + ), | ||
284 | + array( | ||
285 | + 'name' => '卫衣', | ||
286 | + 'url' => 'www.baidu.com' | ||
287 | + ), | ||
288 | + array( | ||
289 | + 'name' => '春季新品', | ||
290 | + 'url' => 'www.baidu.com' | ||
291 | + ), | ||
292 | + array( | ||
293 | + 'name' => 'LEE', | ||
294 | + 'url' => 'www.baidu.com' | ||
295 | + ), | ||
296 | + array( | ||
297 | + 'name' => 'Style', | ||
298 | + 'url' => '' | ||
299 | + ), | ||
300 | + array( | ||
301 | + 'name' => '卫衣', | ||
302 | + 'url' => 'www.baidu.com' | ||
303 | + ), | ||
304 | + array( | ||
305 | + 'name' => '春季新品', | ||
306 | + 'url' => 'www.baidu.com' | ||
307 | + ) | ||
308 | + ), | ||
309 | + 'relatedPost' => array( | ||
310 | + array( | ||
311 | + 'url' => 'www.baidu.com', | ||
312 | + 'thumb' => 'http://img11.static.yhbimg.com/yhb-img01/2015/07/27/17/015d433e79035f8e04aeb4f1329418f0e7.jpg?imageView/2/w/250/h/200', | ||
313 | + 'title' => 'Playboy Special' | ||
314 | + ), | ||
315 | + array( | ||
316 | + 'url' => '', | ||
317 | + 'imgUrl' => 'http://img02.yohoboys.com/contentimg/2015/06/03/09/02f9e8208e295f6624ba9eea5f1cdac0fa.jpg', | ||
318 | + 'title' => 'Playboy Special' | ||
319 | + ), | ||
320 | + array( | ||
321 | + 'url' => 'www.baidu.com', | ||
322 | + 'imgUrl' => 'http://img02.yohoboys.com/contentimg/2015/02/27/10/02b3967610350cff3068dada3435cbff38.jpg', | ||
323 | + 'title' => 'Playboy Special' | ||
324 | + ) | ||
325 | + ), | ||
326 | + 'commentInfo' => '初始内容,用于登陆页跳转回来后的内容不丢失', | ||
327 | + 'comment' => array( | ||
328 | + 'commentNum' => 4, //如果没有评论,数字为0,list和commentPager可以不传 | ||
329 | + 'list' => array( | ||
330 | + array( | ||
331 | + 'avatar' => 'http://rescdn.yohoboys.com/res/new/boys/images/writer-head-icon.png', | ||
332 | + 'name' => 'Nikil', | ||
333 | + 'content' => '睡一觉再更', | ||
334 | + 'time' => '7小时前' | ||
335 | + ) | ||
336 | + ) | ||
337 | + ), | ||
338 | + 'exRecos' => array( | ||
339 | + array( | ||
340 | + 'url' => '', | ||
341 | + 'img' => 'http://img10.static.yhbimg.com/yhb-img01/2015/06/12/17/01437323c88bc61f26721a2ad91a2ba61a.png?imageView/2/w/640/h/640', | ||
342 | + 'title' => '皇家蓝再现,New Balance 999 Elite文字描述长一点查看文字截取的功能' | ||
343 | + ) | ||
344 | + ), | ||
345 | + 'hotTags' => array( | ||
346 | + array( | ||
347 | + 'tagName' => 'LEE', | ||
348 | + 'url' => '' | ||
349 | + ) | ||
350 | + ), | ||
351 | + 'ads' => array( | ||
352 | + array( | ||
353 | + 'url' => '', | ||
354 | + 'img' => 'http://img13.static.yhbimg.com/taobaocms/2015/06/17/07/0240f288725106b408d8c524b4d0fba4b9.jpg' | ||
355 | + ) | ||
356 | + ), | ||
357 | + 'msgPager' => '<a href="" class="cur"><span>1</span></a><a href=""><span>2</span></a><a href="" title="下一页">下一页<span class="ifont10">></span></a>' | ||
358 | + ) | ||
359 | + ); | ||
360 | + $this->_view->display('detail', $data); | ||
361 | + } | ||
362 | + | ||
363 | + /** | ||
364 | + * 编辑页 | ||
365 | + */ | ||
366 | + public function editorAction() | ||
367 | + { | ||
368 | + $data = array( | ||
369 | + 'guangListPage' => true, | ||
370 | + 'guang' => array( | ||
371 | + 'editor' => array( | ||
372 | + 'avatar' => 'http://rescdn.yohoboys.com/res/new/boys/images/writer-head-icon.png', | ||
373 | + 'name' => '潮流主编', | ||
374 | + 'intro' => '日本设计界宗师', | ||
375 | + 'info' => '设计理念:时尚,线条流畅', | ||
376 | + ), | ||
377 | + 'msgs' => array( | ||
378 | + array( | ||
379 | + 'id' => 1, | ||
380 | + 'classification' => '话题', | ||
381 | + 'isReco' => true, | ||
382 | + 'url' => '', | ||
383 | + 'img' => 'http://img10.static.yhbimg.com/yhb-img01/2015/06/12/17/01437323c88bc61f26721a2ad91a2ba61a.png?imageView/2/w/640/h/640', | ||
384 | + 'isSquareImg' => true, | ||
385 | + 'title' => '破旧除新!Publish完美释出2015最新春季[TheResistance]系列看看你很长的时候会不会分页啊,奇怪的人类', | ||
386 | + 'author' => '大家玩看看作者名字 过长的情况显示是不是有问题呵呵哒哒哒', | ||
387 | + 'editorUrl' => '', | ||
388 | + 'pTime' => '2015-03-08 15:33', | ||
389 | + 'pView' => '225', | ||
390 | + 'content' => '该类型 应用于多图形式。虽说洛杉矶街头品牌Publish是凭着设计一炮而红,跃升为近年人气品牌,但是该设计团队却打算你妹啊鬼知道你后面说什么但是要测试文字截取能不能成功,所以必须要把你写很长很长很长很长很长', | ||
391 | + 'tags' => array( | ||
392 | + array( | ||
393 | + 'url' => '', | ||
394 | + 'tag' => 'adidas OriginalsQ' | ||
395 | + ) | ||
396 | + ), | ||
397 | + 'like' => 0, //如果为0,不传 | ||
398 | + // 'liked' => false, | ||
399 | + 'comment' => 20 | ||
400 | + ) | ||
401 | + ), | ||
402 | + 'exRecos' => array( | ||
403 | + array( | ||
404 | + 'url' => '', | ||
405 | + 'img' => 'http://img10.static.yhbimg.com/yhb-img01/2015/06/12/17/01437323c88bc61f26721a2ad91a2ba61a.png?imageView/2/w/640/h/640', | ||
406 | + 'title' => '皇家蓝再现,New Balance 999 Elite文字描述长一点查看文字截取的功能' | ||
407 | + ) | ||
408 | + ), | ||
409 | + 'hotTags' => array( | ||
410 | + array( | ||
411 | + 'tagName' => 'LEE', | ||
412 | + 'url' => '' | ||
413 | + ) | ||
414 | + ), | ||
415 | + 'ads' => array( | ||
416 | + array( | ||
417 | + 'url' => '', | ||
418 | + 'img' => 'http://img13.static.yhbimg.com/taobaocms/2015/06/17/07/0240f288725106b408d8c524b4d0fba4b9.jpg' | ||
419 | + ) | ||
420 | + ), | ||
421 | + 'msgPager' => '<a href="" class="cur"><span>1</span></a><a href=""><span>2</span></a><a href="" title="下一页">下一页<span class="ifont10">></span></a>' | ||
422 | + ) | ||
423 | + ); | ||
424 | + $this->_view->display('editor', $data); | ||
425 | + } | ||
426 | + | ||
427 | + /** | ||
428 | + * 列表 | ||
429 | + */ | ||
430 | + public function listAction() | ||
431 | + { | ||
432 | + $data = array( | ||
433 | + 'guangListPage' => true, | ||
434 | + 'guang' => array( | ||
435 | + 'tag' => '户外', | ||
436 | + 'msgs' => array( | ||
437 | + array( | ||
438 | + 'id' => 1, | ||
439 | + 'classification' => '话题', | ||
440 | + 'isReco' => true, | ||
441 | + 'url' => '', | ||
442 | + 'img' => 'http://img10.static.yhbimg.com/yhb-img01/2015/06/12/17/01437323c88bc61f26721a2ad91a2ba61a.png?imageView/2/w/640/h/640', | ||
443 | + 'isSquareImg' => true, | ||
444 | + 'title' => '破旧除新!Publish完美释出2015最新春季[TheResistance]系列看看你很长的时候会不会分页啊,奇怪的人类', | ||
445 | + 'author' => '大家玩看看作者名字 过长的情况显示是不是有问题呵呵哒哒哒', | ||
446 | + 'editorUrl' => '', | ||
447 | + 'pTime' => '2015-03-08 15:33', | ||
448 | + 'pView' => '225', | ||
449 | + 'content' => '该类型 应用于多图形式。虽说洛杉矶街头品牌Publish是凭着设计一炮而红,跃升为近年人气品牌,但是该设计团队却打算你妹啊鬼知道你后面说什么但是要测试文字截取能不能成功,所以必须要把你写很长很长很长很长很长', | ||
450 | + 'tags' => array( | ||
451 | + array( | ||
452 | + 'url' => '', | ||
453 | + 'tag' => 'adidas OriginalsQ' | ||
454 | + ) | ||
455 | + ), | ||
456 | + 'like' => 0, //如果为0,不传 | ||
457 | + // 'liked' => false, | ||
458 | + 'comment' => 20 | ||
459 | + ) | ||
460 | + ), | ||
461 | + 'exRecos' => array( | ||
462 | + array( | ||
463 | + 'url' => '', | ||
464 | + 'img' => 'http://img10.static.yhbimg.com/yhb-img01/2015/06/12/17/01437323c88bc61f26721a2ad91a2ba61a.png?imageView/2/w/640/h/640', | ||
465 | + 'title' => '皇家蓝再现,New Balance 999 Elite文字描述长一点查看文字截取的功能' | ||
466 | + ) | ||
467 | + ), | ||
468 | + 'hotTags' => array( | ||
469 | + array( | ||
470 | + 'tagName' => 'LEE', | ||
471 | + 'url' => '' | ||
472 | + ) | ||
473 | + ), | ||
474 | + 'ads' => array( | ||
475 | + array( | ||
476 | + 'url' => '', | ||
477 | + 'img' => 'http://img13.static.yhbimg.com/taobaocms/2015/06/17/07/0240f288725106b408d8c524b4d0fba4b9.jpg' | ||
478 | + ) | ||
479 | + ), | ||
480 | + 'msgPager' => '<a href="" class="cur"><span>1</span></a><a href=""><span>2</span></a><a href="" title="下一页">下一页<span class="ifont10">></span></a>' | ||
481 | + ) | ||
482 | + ); | ||
483 | + $this->_view->display('list', $data); | ||
484 | + } | ||
485 | +} |
-
Please register or login to post a comment