Showing
8 changed files
with
226 additions
and
4 deletions
@@ -74,10 +74,39 @@ const exchange = (req, res, next) => { | @@ -74,10 +74,39 @@ const exchange = (req, res, next) => { | ||
74 | next(); | 74 | next(); |
75 | }; | 75 | }; |
76 | 76 | ||
77 | +const detailExchange = (req, res) => { | ||
78 | + const uid = global.yoho.uid || '8050560'; | ||
79 | + const page = req.query.page; | ||
80 | + | ||
81 | + res.display('index', { | ||
82 | + page: 'exchange-detail', | ||
83 | + isMe: true, | ||
84 | + content: { | ||
85 | + nav: mcHandler.getMeCrumb('我的退/换货'), | ||
86 | + navigation: mcHandler.getSideMenu('我的退/换货'), | ||
87 | + banner: 'http://placehold.it/{width}x{height}', | ||
88 | + exchange: { | ||
89 | + title: '换货申请', | ||
90 | + hidePrice: true, | ||
91 | + orderGoods: { | ||
92 | + goodsImage: '//img13.static.yhbimg.com/goodsimg/2015/08/25/02/02166fbbc91037e5a43e89e7d3628834da.jpg?imageMogr2/thumbnail/65x90/extent/65x90/background/d2hpdGU=/position/center/quality/80', | ||
93 | + productName: 'TEEBACCO 极简笑脸印花卫衣', | ||
94 | + colorName: '黑色', | ||
95 | + sizeName: 'M', | ||
96 | + } | ||
97 | + | ||
98 | + } | ||
99 | + | ||
100 | + | ||
101 | + } | ||
102 | + }); | ||
103 | +}; | ||
104 | + | ||
77 | module.exports = { | 105 | module.exports = { |
78 | index, | 106 | index, |
79 | detail, | 107 | detail, |
80 | refund, | 108 | refund, |
81 | refundApply, | 109 | refundApply, |
82 | - exchange | 110 | + exchange, |
111 | + detailExchange | ||
83 | }; | 112 | }; |
@@ -30,6 +30,7 @@ router.get('/editOrder', order.editOrder); | @@ -30,6 +30,7 @@ router.get('/editOrder', order.editOrder); | ||
30 | router.get('/return', returns.index); | 30 | router.get('/return', returns.index); |
31 | router.get('/return/refund/:orderCode', returns.refund); | 31 | router.get('/return/refund/:orderCode', returns.refund); |
32 | router.get('/return/exchange/:orderCode', returns.exchange); | 32 | router.get('/return/exchange/:orderCode', returns.exchange); |
33 | +router.get('/return/exchange/detail', returns.detailExchange); | ||
33 | router.get('/return/:returnId', returns.detail); | 34 | router.get('/return/:returnId', returns.detail); |
34 | router.post('/return/refund/apply', returns.refundApply); | 35 | router.post('/return/refund/apply', returns.refundApply); |
35 | 36 |
@@ -35,6 +35,11 @@ | @@ -35,6 +35,11 @@ | ||
35 | {{#if returns}} | 35 | {{#if returns}} |
36 | {{> returns}} | 36 | {{> returns}} |
37 | {{/if}} | 37 | {{/if}} |
38 | + | ||
39 | + {{!-- 换货详情 --}} | ||
40 | + {{#if exchange}} | ||
41 | + {{> exchange-detail}} | ||
42 | + {{/if}} | ||
38 | 43 | ||
39 | {{!-- 我的退换货列表 --}} | 44 | {{!-- 我的退换货列表 --}} |
40 | {{#if returnsList}} | 45 | {{#if returnsList}} |
apps/me/views/partial/exchange-detail.hbs
0 → 100644
1 | +<div class="exchange-detail-page"> | ||
2 | + <div class="exchange-apply"> | ||
3 | + {{# exchange}} | ||
4 | + {{> common/subtitle}} | ||
5 | + | ||
6 | + <div class="apply-container"> | ||
7 | + <div class="return-prompt"> | ||
8 | + 换货须知 | ||
9 | + </div> | ||
10 | + | ||
11 | + <h2>换货商品</h2> | ||
12 | + | ||
13 | + <div class="table"> | ||
14 | + <ul class="header"> | ||
15 | + <li class="info">商品信息</li> | ||
16 | + <li class="st">换货原因</li> | ||
17 | + <li class="op">换货数量</li> | ||
18 | + </ul> | ||
19 | + </div> | ||
20 | + | ||
21 | + {{!-- {{#list}} --}} | ||
22 | + <div class="table-body"> | ||
23 | + {{> order/goods-box}} | ||
24 | + <div class="common-column special-border"> | ||
25 | + {{!-- <p class="refund-status">{{statusName}}</p> --}} | ||
26 | + </div> | ||
27 | + <div class="common-column special-border operation"> | ||
28 | + | ||
29 | + </div> | ||
30 | + </div> | ||
31 | + {{!-- {{/list}} --}} | ||
32 | + | ||
33 | + | ||
34 | + | ||
35 | + </div> | ||
36 | + | ||
37 | + {{/ exchange}} | ||
38 | + </div> | ||
39 | +</div> |
apps/me/views/partial/exchange.hbs
0 → 100644
public/scss/me/_exchange.css
0 → 100644
1 | +.exchange-detail-page { | ||
2 | + position: relative; | ||
3 | + | ||
4 | + .apply-container { | ||
5 | + h2 { | ||
6 | + font-size: 16px; | ||
7 | + margin-bottom: 15px; | ||
8 | + } | ||
9 | + } | ||
10 | + | ||
11 | + .return-prompt { | ||
12 | + font-size: 14px; | ||
13 | + width: 70px; | ||
14 | + height: 25px; | ||
15 | + border: 1px solid #eee; | ||
16 | + line-height: 25px; | ||
17 | + text-align: center; | ||
18 | + position: absolute; | ||
19 | + top: 0; | ||
20 | + right: 0; | ||
21 | + } | ||
22 | + | ||
23 | + .table { | ||
24 | + width: 100%; | ||
25 | + margin-bottom: 20px; | ||
26 | + color: #616161; | ||
27 | + | ||
28 | + .header { | ||
29 | + height: 40px; | ||
30 | + line-height: 40px; | ||
31 | + padding-left: 20px; | ||
32 | + font-size: 14px; | ||
33 | + background-color: #f5f5f5; | ||
34 | + border: 1px solid #f1f1f1; | ||
35 | + | ||
36 | + li { | ||
37 | + height: 100%; | ||
38 | + float: left; | ||
39 | + text-align: center; | ||
40 | + } | ||
41 | + | ||
42 | + .info { | ||
43 | + width: 496px; | ||
44 | + text-align: left; | ||
45 | + } | ||
46 | + | ||
47 | + .st, | ||
48 | + .op { | ||
49 | + width: 206px; | ||
50 | + } | ||
51 | + } | ||
52 | + } | ||
53 | + | ||
54 | + .table-body { | ||
55 | + display: table; | ||
56 | + font-size: 14px; | ||
57 | + } | ||
58 | + | ||
59 | + .common-column { | ||
60 | + width: 138px; | ||
61 | + display: table-cell; | ||
62 | + text-align: center; | ||
63 | + vertical-align: top; | ||
64 | + padding-top: 30px; | ||
65 | + position: relative; | ||
66 | + } | ||
67 | + | ||
68 | + .special-border { | ||
69 | + border-right: 1px solid #f1f1f1; | ||
70 | + border-bottom: 1px solid #f1f1f1; | ||
71 | + } | ||
72 | + | ||
73 | + .common-column { | ||
74 | + width: 138px; | ||
75 | + display: table-cell; | ||
76 | + text-align: center; | ||
77 | + vertical-align: top; | ||
78 | + padding-top: 30px; | ||
79 | + position: relative; | ||
80 | + } | ||
81 | + | ||
82 | + .goods-container { | ||
83 | + width: 516px; | ||
84 | + display: table-cell; | ||
85 | + box-sizing: border-box; | ||
86 | + | ||
87 | + img { | ||
88 | + width: 65px; | ||
89 | + height: 90px; | ||
90 | + display: inline-block; | ||
91 | + box-sizing: border-box; | ||
92 | + margin: 30px 20px; | ||
93 | + } | ||
94 | + } | ||
95 | + | ||
96 | + .special-border { | ||
97 | + border-right: 1px solid #f1f1f1; | ||
98 | + border-bottom: 1px solid #f1f1f1; | ||
99 | + } | ||
100 | + | ||
101 | + .detail { | ||
102 | + width: 408px; | ||
103 | + padding: 30px 8px 0 0; | ||
104 | + float: right; | ||
105 | + box-sizing: border-box; | ||
106 | + line-height: 1.4; | ||
107 | + font-size: 14px; | ||
108 | + color: #616161; | ||
109 | + | ||
110 | + span { | ||
111 | + font-size: 12px; | ||
112 | + } | ||
113 | + } | ||
114 | + | ||
115 | + .with-bottom-space { | ||
116 | + margin-bottom: 8px; | ||
117 | + } | ||
118 | + | ||
119 | + .with-space { | ||
120 | + display: inline-block; | ||
121 | + margin-right: 8px; | ||
122 | + margin-bottom: 8px; | ||
123 | + } | ||
124 | + | ||
125 | + .bold { | ||
126 | + color: #222; | ||
127 | + font-weight: bold; | ||
128 | + } | ||
129 | + | ||
130 | + .special-column { | ||
131 | + display: none; | ||
132 | + } | ||
133 | + | ||
134 | + .sub-column { | ||
135 | + display: none; | ||
136 | + } | ||
137 | + | ||
138 | + .common-column { | ||
139 | + width: 208px; | ||
140 | + display: table-cell; | ||
141 | + text-align: center; | ||
142 | + vertical-align: top; | ||
143 | + padding-top: 30px; | ||
144 | + position: relative; | ||
145 | + } | ||
146 | + | ||
147 | +} |
-
Please register or login to post a comment