Showing
2 changed files
with
6 additions
and
6 deletions
@@ -2,7 +2,7 @@ | @@ -2,7 +2,7 @@ | ||
2 | 2 | ||
3 | const shopModel = require('../models/shopCollect'), | 3 | const shopModel = require('../models/shopCollect'), |
4 | headerModel = require('../../../doraemon/models/header'), | 4 | headerModel = require('../../../doraemon/models/header'), |
5 | - _ = require('lodash'); | 5 | + |
6 | const crypto = global.yoho.crypto; | 6 | const crypto = global.yoho.crypto; |
7 | 7 | ||
8 | const shopIndex = (req, res) => { | 8 | const shopIndex = (req, res) => { |
@@ -54,7 +54,7 @@ const shopList = (req, res, next) => { | @@ -54,7 +54,7 @@ const shopList = (req, res, next) => { | ||
54 | }).catch(next); | 54 | }).catch(next); |
55 | }; | 55 | }; |
56 | 56 | ||
57 | -//获取文章收藏状态 | 57 | +// 获取文章收藏状态 |
58 | const shopFav = (req, res, next) => { | 58 | const shopFav = (req, res, next) => { |
59 | let uid = req.query.uid || req.user.uid || ''; | 59 | let uid = req.query.uid || req.user.uid || ''; |
60 | let shopIds = req.query.shopIds; | 60 | let shopIds = req.query.shopIds; |
@@ -54,7 +54,7 @@ function shopFav(shopIds) { | @@ -54,7 +54,7 @@ function shopFav(shopIds) { | ||
54 | error: function() { | 54 | error: function() { |
55 | tip.show('网络断开连接了~'); | 55 | tip.show('网络断开连接了~'); |
56 | } | 56 | } |
57 | - }) | 57 | + }); |
58 | } | 58 | } |
59 | 59 | ||
60 | // 店铺列表数据 | 60 | // 店铺列表数据 |
@@ -82,14 +82,14 @@ function shopListData(tabName, stoping) { | @@ -82,14 +82,14 @@ function shopListData(tabName, stoping) { | ||
82 | stoping = false; | 82 | stoping = false; |
83 | 83 | ||
84 | 84 | ||
85 | - //获取收藏状态 | 85 | + // 获取收藏状态 |
86 | $('.shop-list').find('.shop-info').each(function() { | 86 | $('.shop-list').find('.shop-info').each(function() { |
87 | var id = $(this).data('id'); | 87 | var id = $(this).data('id'); |
88 | 88 | ||
89 | - if(id) { | 89 | + if (id) { |
90 | ids.push(id); | 90 | ids.push(id); |
91 | } | 91 | } |
92 | - }) | 92 | + }); |
93 | 93 | ||
94 | shopFav(ids.join(',')); | 94 | shopFav(ids.join(',')); |
95 | 95 |
-
Please register or login to post a comment