Authored by ccbikai

增加 APP 判断

... ... @@ -313,14 +313,15 @@ exports.collocation = (req, res) => {
* @return {[type]}
*/
exports.collocationList = (req, res) => {
let params = Object.assign({}, req.query);
let params = req.query;
let uid = 9239279 || req.user.uid || 0;
starModel.getCollocationListData(params, uid).then((result) => {
res.render('star/collocation-list', _.assign({
layout: false,
params: params,
list: result
list: result,
isApp: req.query.app_version || false
}));
});
};
... ...
... ... @@ -13,11 +13,13 @@
<span class="see"><i class="iconfont see-ico">&#xe602;</i>{{viewsNum}}</span>
<span class="collection"><i class="iconfont collected-ico {{#isCollected}} collected {{/isCollected}}">&#xe605;</i></span>
{{# share.url}}
<a href="{{this}}" class="iconfont forward">&#xe600;</a>
{{/ share.url}}
{{#if isApp}}
{{#if share.url}}
<a href="{{share.url}}" class="iconfont forward">&#xe600;</a>
{{/if}}
{{/if}}
</div>
</div>
</li>
{{/each}}
\ No newline at end of file
{{/each}}
... ...