Authored by ccbikai

增加 APP 判断

@@ -313,14 +313,15 @@ exports.collocation = (req, res) => { @@ -313,14 +313,15 @@ exports.collocation = (req, res) => {
313 * @return {[type]} 313 * @return {[type]}
314 */ 314 */
315 exports.collocationList = (req, res) => { 315 exports.collocationList = (req, res) => {
316 - let params = Object.assign({}, req.query); 316 + let params = req.query;
317 let uid = 9239279 || req.user.uid || 0; 317 let uid = 9239279 || req.user.uid || 0;
318 318
319 starModel.getCollocationListData(params, uid).then((result) => { 319 starModel.getCollocationListData(params, uid).then((result) => {
320 res.render('star/collocation-list', _.assign({ 320 res.render('star/collocation-list', _.assign({
321 layout: false, 321 layout: false,
322 params: params, 322 params: params,
323 - list: result 323 + list: result,
  324 + isApp: req.query.app_version || false
324 })); 325 }));
325 }); 326 });
326 }; 327 };
@@ -13,11 +13,13 @@ @@ -13,11 +13,13 @@
13 <span class="see"><i class="iconfont see-ico">&#xe602;</i>{{viewsNum}}</span> 13 <span class="see"><i class="iconfont see-ico">&#xe602;</i>{{viewsNum}}</span>
14 <span class="collection"><i class="iconfont collected-ico {{#isCollected}} collected {{/isCollected}}">&#xe605;</i></span> 14 <span class="collection"><i class="iconfont collected-ico {{#isCollected}} collected {{/isCollected}}">&#xe605;</i></span>
15 15
16 - {{# share.url}}  
17 - <a href="{{this}}" class="iconfont forward">&#xe600;</a>  
18 - {{/ share.url}} 16 + {{#if isApp}}
  17 + {{#if share.url}}
  18 + <a href="{{share.url}}" class="iconfont forward">&#xe600;</a>
  19 + {{/if}}
  20 + {{/if}}
19 21
20 </div> 22 </div>
21 </div> 23 </div>
22 </li> 24 </li>
23 -{{/each}}  
  25 +{{/each}}