Merge branch 'feature/catch' into 'master'
Feature/catch 添加catch、修改商品价格样式 See merge request !12
Showing
3 changed files
with
9 additions
and
8 deletions
@@ -33,13 +33,13 @@ const fav = { | @@ -33,13 +33,13 @@ const fav = { | ||
33 | if (tab === 'article') { | 33 | if (tab === 'article') { |
34 | favModel.getFavArticleData(uid, udid, page, 10).then(data => { | 34 | favModel.getFavArticleData(uid, udid, page, 10).then(data => { |
35 | return res.json(data); | 35 | return res.json(data); |
36 | - }); | 36 | + }).catch(next); |
37 | } else if (tab === 'brand') { | 37 | } else if (tab === 'brand') { |
38 | const gender = '1,2,3'; | 38 | const gender = '1,2,3'; |
39 | 39 | ||
40 | favModel.getFavBrandData(uid, gender, page, 10).then(data => { | 40 | favModel.getFavBrandData(uid, gender, page, 10).then(data => { |
41 | return res.json(data); | 41 | return res.json(data); |
42 | - }); | 42 | + }).catch(next); |
43 | } else { | 43 | } else { |
44 | favModel.getFavProductData(uid, page, 10).then(data => { | 44 | favModel.getFavProductData(uid, page, 10).then(data => { |
45 | return res.json(data); | 45 | return res.json(data); |
@@ -105,7 +105,7 @@ const refund = { | @@ -105,7 +105,7 @@ const refund = { | ||
105 | * @param res | 105 | * @param res |
106 | * @returns {*|{read, write}} | 106 | * @returns {*|{read, write}} |
107 | */ | 107 | */ |
108 | - getRefundOrders(req, res) { | 108 | + getRefundOrders(req, res, next) { |
109 | const uid = req.user.uid; | 109 | const uid = req.user.uid; |
110 | 110 | ||
111 | if (!uid && req.xhr) { | 111 | if (!uid && req.xhr) { |
@@ -122,7 +122,7 @@ const refund = { | @@ -122,7 +122,7 @@ const refund = { | ||
122 | 122 | ||
123 | refundModel.getRefundOrders(param).then(result => { | 123 | refundModel.getRefundOrders(param).then(result => { |
124 | return res.json(result); | 124 | return res.json(result); |
125 | - }); | 125 | + }).catch(next); |
126 | }, | 126 | }, |
127 | 127 | ||
128 | /** | 128 | /** |
@@ -130,7 +130,7 @@ const refund = { | @@ -130,7 +130,7 @@ const refund = { | ||
130 | * @param req | 130 | * @param req |
131 | * @param res | 131 | * @param res |
132 | */ | 132 | */ |
133 | - cancelApply(req, res) { | 133 | + cancelApply(req, res, next) { |
134 | const uid = req.user.uid; | 134 | const uid = req.user.uid; |
135 | const id = req.body.id; | 135 | const id = req.body.id; |
136 | 136 | ||
@@ -142,7 +142,7 @@ const refund = { | @@ -142,7 +142,7 @@ const refund = { | ||
142 | } | 142 | } |
143 | refundModel.cancelRefundApply(uid, id).then(result => { | 143 | refundModel.cancelRefundApply(uid, id).then(result => { |
144 | return res.json(result); | 144 | return res.json(result); |
145 | - }); | 145 | + }).catch(next); |
146 | } | 146 | } |
147 | }; | 147 | }; |
148 | 148 |
@@ -133,7 +133,7 @@ | @@ -133,7 +133,7 @@ | ||
133 | } | 133 | } |
134 | 134 | ||
135 | .good-price { | 135 | .good-price { |
136 | - color: #b0b0b0; | 136 | + color: #000; |
137 | margin-right: 14px; | 137 | margin-right: 14px; |
138 | font-size: 24px; | 138 | font-size: 24px; |
139 | 139 | ||
@@ -143,10 +143,11 @@ | @@ -143,10 +143,11 @@ | ||
143 | 143 | ||
144 | &.old-price { | 144 | &.old-price { |
145 | text-decoration: line-through; | 145 | text-decoration: line-through; |
146 | + color: #b0b0b0; | ||
146 | } | 147 | } |
147 | 148 | ||
148 | &.sale-price { | 149 | &.sale-price { |
149 | - color: #d0021b; | 150 | + color: #000; |
150 | } | 151 | } |
151 | } | 152 | } |
152 | 153 |
-
Please register or login to post a comment