Authored by Lynnic

提取feedback-tab到partials

@@ -58,156 +58,14 @@ @@ -58,156 +58,14 @@
58 <div class="feedback-list "> 58 <div class="feedback-list ">
59 {{# feedbacks}} 59 {{# feedbacks}}
60 {{#if commentsNum}} 60 {{#if commentsNum}}
61 - <!--tab begin-->  
62 - <ul id="nav-tab" class="nav-tab clearfix">  
63 - <li class="comment-nav">商品评价(<span class="comments-num">{{commentsNum}}</span>)</li>  
64 - <li class="consult-nav">购买咨询(<span class="consults-num">{{consultsNum}}</span>)</li>  
65 - </ul>  
66 - <div id="feedback-content" >  
67 -  
68 - <div class="comment-content content ">  
69 - {{#if commentsNum}}  
70 - <div class="comment-content-main content-main">  
71 - {{# comments}}  
72 - <span class="user-name">  
73 - {{userName}}  
74 - </span>  
75 - <span class="goods-spec">  
76 - {{desc}}  
77 - </span>  
78 - <p class="detail-content">  
79 - {{content}}  
80 - </p>  
81 - <span class="comment-time">  
82 - {{time}}  
83 - </span>  
84 - {{/ comments}}  
85 - </div>  
86 - {{else}}  
87 - <div class="comment-content-main content-main no-item">  
88 - <span class="iconfont">&#xe63c;</span>暂无评论  
89 - </div>  
90 - {{/if}}  
91 - <div class="comment-content-footer">  
92 - <a href="{{link}}">查看更多 <span class="iconfont">&#xe604;</span></a>  
93 - </div>  
94 - </div>  
95 -  
96 -  
97 - <div class="consult-content content hide ">  
98 - {{#if consultsNum}}  
99 - <div class="consult-content-main content-main">  
100 - {{# consults}}  
101 - <div class="question">  
102 - <span class="iconfont">&#xe639;</span>  
103 - <p>{{question}}  
104 - <span class="time">  
105 - {{time}}  
106 - </span>  
107 - </p>  
108 - </div>  
109 -  
110 - <div class="answer">  
111 - <span class="iconfont">&#xe63c;</span>  
112 - <p>{{answer}}</p>  
113 - </div>  
114 - {{/ consults}}  
115 - </div>  
116 - <div class="consult-content-footer">  
117 - <a href="{{link}}">  
118 - 查看更多  
119 - <span class="iconfont">&#xe604;</span></a>  
120 - </div>  
121 - {{else}}  
122 - <div class="comment-content-main content-main no-item">  
123 - <span class="iconfont">&#xe63c;</span>暂无咨询  
124 - </div>  
125 - <div class="consult-content-footer">  
126 - <a href="{{link}}">  
127 - 我要咨询  
128 - <span class="iconfont">&#xe604;</span></a>  
129 - </div>  
130 - {{/if}}  
131 -  
132 - </div>  
133 - </div> 61 + <!--tab begin-->
  62 + {{> product/feedback-tab}}
134 <!--/tab end--> 63 <!--/tab end-->
135 {{else}} 64 {{else}}
136 {{#if consultsNum}} 65 {{#if consultsNum}}
137 <!--tab begin--> 66 <!--tab begin-->
138 - <ul id="nav-tab" class="nav-tab clearfix">  
139 - <li class="comment-nav">商品评价(<span class="comments-num">{{commentsNum}}</span>)</li>  
140 - <li class="consult-nav">购买咨询(<span class="consults-num">{{consultsNum}}</span>)</li>  
141 - </ul>  
142 - <div id="feedback-content" >  
143 -  
144 - <div class="comment-content content ">  
145 - {{#if commentsNum}}  
146 - <div class="comment-content-main content-main">  
147 - {{# comments}}  
148 - <span class="user-name">  
149 - {{userName}}  
150 - </span>  
151 - <span class="goods-spec">  
152 - {{desc}}  
153 - </span>  
154 - <p class="detail-content">  
155 - {{content}}  
156 - </p>  
157 - <span class="comment-time">  
158 - {{time}}  
159 - </span>  
160 - {{/ comments}}  
161 - </div>  
162 - {{else}}  
163 - <div class="comment-content-main content-main no-item">  
164 - <span class="iconfont">&#xe63c;</span>暂无评论  
165 - </div>  
166 - {{/if}}  
167 - <div class="comment-content-footer">  
168 - <a href="{{link}}">查看更多 <span class="iconfont">&#xe604;</span></a>  
169 - </div>  
170 - </div>  
171 -  
172 -  
173 - <div class="consult-content content hide ">  
174 - {{#if consultsNum}}  
175 - <div class="consult-content-main content-main">  
176 - {{# consults}}  
177 - <div class="question">  
178 - <span class="iconfont">&#xe639;</span>  
179 - <p>{{question}}  
180 - <span class="time">  
181 - {{time}}  
182 - </span>  
183 - </p>  
184 - </div>  
185 -  
186 - <div class="answer">  
187 - <span class="iconfont">&#xe63c;</span>  
188 - <p>{{answer}}</p>  
189 - </div>  
190 - {{/ consults}}  
191 - </div>  
192 - <div class="consult-content-footer">  
193 - <a href="{{link}}">  
194 - 查看更多  
195 - <span class="iconfont">&#xe604;</span></a>  
196 - </div>  
197 - {{else}}  
198 - <div class="comment-content-main content-main no-item">  
199 - <span class="iconfont">&#xe63c;</span>暂无咨询  
200 - </div>  
201 - <div class="consult-content-footer">  
202 - <a href="{{link}}">  
203 - 我要咨询  
204 - <span class="iconfont">&#xe604;</span></a>  
205 - </div>  
206 - {{/if}}  
207 -  
208 - </div>  
209 - </div>  
210 - <!--/tab end--> 67 + {{> product/feedback-tab}}
  68 + <!--/tab end-->
211 {{else}} 69 {{else}}
212 <div class="nodata"> 70 <div class="nodata">
213 <span>暂无商品评价和咨询</span> 71 <span>暂无商品评价和咨询</span>
  1 +<ul id="nav-tab" class="nav-tab clearfix">
  2 + <li class="comment-nav">商品评价(<span class="comments-num">{{commentsNum}}</span>)</li>
  3 + <li class="consult-nav">购买咨询(<span class="consults-num">{{consultsNum}}</span>)</li>
  4 +</ul>
  5 +<div id="feedback-content" >
  6 +
  7 + <div class="comment-content content ">
  8 + {{#if commentsNum}}
  9 + <div class="comment-content-main content-main">
  10 + {{# comments}}
  11 + <span class="user-name">
  12 + {{userName}}
  13 + </span>
  14 + <span class="goods-spec">
  15 + {{desc}}
  16 + </span>
  17 + <p class="detail-content">
  18 + {{content}}
  19 + </p>
  20 + <span class="comment-time">
  21 + {{time}}
  22 + </span>
  23 + {{/ comments}}
  24 + </div>
  25 + {{else}}
  26 + <div class="comment-content-main content-main no-item">
  27 + <span class="iconfont">&#xe63c;</span>暂无评论
  28 + </div>
  29 + {{/if}}
  30 + <div class="comment-content-footer">
  31 + <a href="{{link}}">查看更多 <span class="iconfont">&#xe604;</span></a>
  32 + </div>
  33 +</div>
  34 +
  35 +
  36 +<div class="consult-content content hide ">
  37 + {{#if consultsNum}}
  38 + <div class="consult-content-main content-main">
  39 + {{# consults}}
  40 + <div class="question">
  41 + <span class="iconfont">&#xe639;</span>
  42 + <p>{{question}}
  43 + <span class="time">
  44 + {{time}}
  45 + </span>
  46 + </p>
  47 + </div>
  48 +
  49 + <div class="answer">
  50 + <span class="iconfont">&#xe63c;</span>
  51 + <p>{{answer}}</p>
  52 + </div>
  53 + {{/ consults}}
  54 + </div>
  55 + <div class="consult-content-footer">
  56 + <a href="{{link}}">
  57 + 查看更多
  58 + <span class="iconfont">&#xe604;</span></a>
  59 + </div>
  60 + {{else}}
  61 + <div class="comment-content-main content-main no-item">
  62 + <span class="iconfont">&#xe63c;</span>暂无咨询
  63 + </div>
  64 + <div class="consult-content-footer">
  65 + <a href="{{link}}">
  66 + 我要咨询
  67 + <span class="iconfont">&#xe604;</span></a>
  68 + </div>
  69 + {{/if}}
  70 +
  71 + </div>
  72 + </div>