Merge branch 'release/1.0' of http://git.yoho.cn/fe/yoho-blk into release/1.0
列表页不对齐bug修改
Showing
6 changed files
with
19 additions
and
6 deletions
@@ -41,7 +41,7 @@ const index = (req, res, next) => { | @@ -41,7 +41,7 @@ const index = (req, res, next) => { | ||
41 | 41 | ||
42 | let appType = 1; | 42 | let appType = 1; |
43 | 43 | ||
44 | - brand.getListData(contentCode, channel, appType).then((result) => { | 44 | + brand.getListData(contentCode, channel, gender, appType).then((result) => { |
45 | res.display('index', { | 45 | res.display('index', { |
46 | module: 'brand', | 46 | module: 'brand', |
47 | page: 'index', | 47 | page: 'index', |
@@ -107,8 +107,9 @@ const _getResources = (contentCode) => { | @@ -107,8 +107,9 @@ const _getResources = (contentCode) => { | ||
107 | * @param channel | 107 | * @param channel |
108 | * @returns {*} | 108 | * @returns {*} |
109 | */ | 109 | */ |
110 | -const _getBreakingSort = (channel, appType) => { | 110 | +const _getBreakingSort = (channel, gender, appType) => { |
111 | return api.get('', { | 111 | return api.get('', { |
112 | + gender: gender, | ||
112 | yh_channel: channel, | 113 | yh_channel: channel, |
113 | app_type: appType, | 114 | app_type: appType, |
114 | method: 'app.brand.newBrandList' | 115 | method: 'app.brand.newBrandList' |
@@ -126,8 +127,8 @@ const _getBreakingSort = (channel, appType) => { | @@ -126,8 +127,8 @@ const _getBreakingSort = (channel, appType) => { | ||
126 | * 获取品牌一览相关数据 | 127 | * 获取品牌一览相关数据 |
127 | * @returns {*} | 128 | * @returns {*} |
128 | */ | 129 | */ |
129 | -const getListData = (contentCode, channel, appType) => { | ||
130 | - return Promise.all([_getResources(contentCode), _getBreakingSort(channel, appType)]) | 130 | +const getListData = (contentCode, channel, gender, appType) => { |
131 | + return Promise.all([_getResources(contentCode), _getBreakingSort(channel, gender, appType)]) | ||
131 | .then((result) => { | 132 | .then((result) => { |
132 | 133 | ||
133 | return { | 134 | return { |
@@ -232,7 +232,7 @@ const _getRelatedData = (idList) => { | @@ -232,7 +232,7 @@ const _getRelatedData = (idList) => { | ||
232 | 232 | ||
233 | return productList; | 233 | return productList; |
234 | } else { | 234 | } else { |
235 | - logger.error('推荐商品 cood 不是 200'); | 235 | + logger.error('推荐商品 code 不是 200'); |
236 | return {}; | 236 | return {}; |
237 | } | 237 | } |
238 | }); | 238 | }); |
@@ -8,6 +8,7 @@ const mcHandler = require('../models/menu-crumb-handler'); | @@ -8,6 +8,7 @@ const mcHandler = require('../models/menu-crumb-handler'); | ||
8 | const addressModel = require('../models/address'); | 8 | const addressModel = require('../models/address'); |
9 | const crypto = global.yoho.crypto; | 9 | const crypto = global.yoho.crypto; |
10 | const config = global.yoho.config; | 10 | const config = global.yoho.config; |
11 | +const logger = global.yoho.logger; | ||
11 | 12 | ||
12 | const _ = require('lodash'); | 13 | const _ = require('lodash'); |
13 | 14 | ||
@@ -84,7 +85,8 @@ const addAddressData = (req, res, next) => { | @@ -84,7 +85,8 @@ const addAddressData = (req, res, next) => { | ||
84 | 85 | ||
85 | addressModel.addAddressData(uid, address, areaCode, consignee, mobile, phone, isInit).then(result => { | 86 | addressModel.addAddressData(uid, address, areaCode, consignee, mobile, phone, isInit).then(result => { |
86 | if (result.data && result.data.address_id) { | 87 | if (result.data && result.data.address_id) { |
87 | - result.data.aid = crypto.encryption(config.crypto.common, result.data.address_id + ''); | 88 | + result.data.address_id = crypto.encryption(config.crypto.common, result.data.address_id + ''); |
89 | + result.data.aid = result.data.address_id; | ||
88 | } | 90 | } |
89 | 91 | ||
90 | res.send(result); | 92 | res.send(result); |
@@ -95,6 +97,8 @@ const addAddressData = (req, res, next) => { | @@ -95,6 +97,8 @@ const addAddressData = (req, res, next) => { | ||
95 | * 修改地址 | 97 | * 修改地址 |
96 | */ | 98 | */ |
97 | const updateAddressData = (req, res, next) => { | 99 | const updateAddressData = (req, res, next) => { |
100 | + logger.info(`address update, address_id decrypt. address_id = ${req.body.id}`); | ||
101 | + | ||
98 | let id = crypto.decrypt(config.crypto.common, req.body.id); | 102 | let id = crypto.decrypt(config.crypto.common, req.body.id); |
99 | let uid = req.user.uid; | 103 | let uid = req.user.uid; |
100 | let address = req.body.address; | 104 | let address = req.body.address; |
@@ -112,6 +116,8 @@ const updateAddressData = (req, res, next) => { | @@ -112,6 +116,8 @@ const updateAddressData = (req, res, next) => { | ||
112 | * 删除地址 | 116 | * 删除地址 |
113 | */ | 117 | */ |
114 | const delAddressData = (req, res, next) => { | 118 | const delAddressData = (req, res, next) => { |
119 | + logger.info(`address delete, address_id decrypt. address_id = ${req.body.id}`); | ||
120 | + | ||
115 | let id = crypto.decrypt(config.crypto.common, req.body.id); | 121 | let id = crypto.decrypt(config.crypto.common, req.body.id); |
116 | let uid = req.user.uid; | 122 | let uid = req.user.uid; |
117 | 123 | ||
@@ -124,6 +130,8 @@ const delAddressData = (req, res, next) => { | @@ -124,6 +130,8 @@ const delAddressData = (req, res, next) => { | ||
124 | * 设置默认地址 | 130 | * 设置默认地址 |
125 | */ | 131 | */ |
126 | const setDefaultAddress = (req, res) => { | 132 | const setDefaultAddress = (req, res) => { |
133 | + logger.info(`address set default, address_id decrypt. address_id = ${req.body.id}`); | ||
134 | + | ||
127 | let id = crypto.decrypt(config.crypto.common, req.body.id); | 135 | let id = crypto.decrypt(config.crypto.common, req.body.id); |
128 | let uid = req.user.uid; | 136 | let uid = req.user.uid; |
129 | 137 |
@@ -5,6 +5,7 @@ | @@ -5,6 +5,7 @@ | ||
5 | <span class="num">您共收藏了{{total}}个品牌</span> | 5 | <span class="num">您共收藏了{{total}}个品牌</span> |
6 | <div class="brands-list clearfix"> | 6 | <div class="brands-list clearfix"> |
7 | {{#each brandList}} | 7 | {{#each brandList}} |
8 | + {{#if status}} | ||
8 | <div class="brand-raw clearfix"> | 9 | <div class="brand-raw clearfix"> |
9 | <div class="check"> | 10 | <div class="check"> |
10 | {{> icon/checkbox}} | 11 | {{> icon/checkbox}} |
@@ -71,6 +72,7 @@ | @@ -71,6 +72,7 @@ | ||
71 | {{/if}} | 72 | {{/if}} |
72 | </div> | 73 | </div> |
73 | </div> | 74 | </div> |
75 | + {{/if}} | ||
74 | {{/each}} | 76 | {{/each}} |
75 | </div> | 77 | </div> |
76 | 78 |
@@ -13,6 +13,7 @@ const _ = require('lodash'); | @@ -13,6 +13,7 @@ const _ = require('lodash'); | ||
13 | const helper = global.yoho.helpers; | 13 | const helper = global.yoho.helpers; |
14 | const crypto = global.yoho.crypto; | 14 | const crypto = global.yoho.crypto; |
15 | const config = global.yoho.config; | 15 | const config = global.yoho.config; |
16 | +const logger = global.yoho.logger; | ||
16 | 17 | ||
17 | // 结算页面 | 18 | // 结算页面 |
18 | const index = (req, res, next) => { | 19 | const index = (req, res, next) => { |
@@ -93,6 +94,7 @@ const orderSub = (req, res, next) => { | @@ -93,6 +94,7 @@ const orderSub = (req, res, next) => { | ||
93 | }); | 94 | }); |
94 | return; | 95 | return; |
95 | } else { | 96 | } else { |
97 | + logger.info(`order submit, address_id decrypt. address_id = ${other.address_id}`); | ||
96 | other.address_id = crypto.decrypt(config.crypto.common, other.address_id); | 98 | other.address_id = crypto.decrypt(config.crypto.common, other.address_id); |
97 | } | 99 | } |
98 | 100 |
-
Please register or login to post a comment