Authored by zhangxiaoru

exchange

@@ -143,7 +143,7 @@ const exchangeDeatail = (req, res) => { @@ -143,7 +143,7 @@ const exchangeDeatail = (req, res) => {
143 navigation: mcHandler.getSideMenu('我的退/换货'), 143 navigation: mcHandler.getSideMenu('我的退/换货'),
144 banner: 'http://placehold.it/{width}x{height}', 144 banner: 'http://placehold.it/{width}x{height}',
145 returns: { 145 returns: {
146 - title: '换货详情', 146 + title: '换货申请',
147 exchange: result.exchangeDetail 147 exchange: result.exchangeDetail
148 } 148 }
149 } 149 }
@@ -581,7 +581,7 @@ const getChangeGoodsList = (orderCode, uid) => { @@ -581,7 +581,7 @@ const getChangeGoodsList = (orderCode, uid) => {
581 */ 581 */
582 const _setExchangeDetailData = (data) => { 582 const _setExchangeDetailData = (data) => {
583 data = camelCase(data); 583 data = camelCase(data);
584 - console.log(data); 584 + //console.log(data)
585 let list = {}; 585 let list = {};
586 586
587 switch (data.status) { 587 switch (data.status) {
@@ -635,19 +635,22 @@ const _setExchangeDetailData = (data) => { @@ -635,19 +635,22 @@ const _setExchangeDetailData = (data) => {
635 if (data.deliveryTpyeName === '寄回换货') { 635 if (data.deliveryTpyeName === '寄回换货') {
636 list.takeGoods = true; 636 list.takeGoods = true;
637 list.auditSuccess = true; 637 list.auditSuccess = true;
  638 + list.view = `//www.yohobuy.com/me/order/detail?code=${data.orderCode}`;
638 } 639 }
639 break; 640 break;
640 case 50: 641 case 50:
641 Object.assign(list, { 642 Object.assign(list, {
642 send: true, 643 send: true,
643 doubt: true, 644 doubt: true,
644 - auditSuccess: true 645 + auditSuccess: true,
  646 + view: `//www.yohobuy.com/me/order/detail?code=${data.orderCode}`
645 }); 647 });
646 break; 648 break;
647 case 40: 649 case 40:
648 Object.assign(list, { 650 Object.assign(list, {
649 finish: true, 651 finish: true,
650 - auditSuccess: true 652 + auditSuccess: true,
  653 + view: `//www.yohobuy.com/me/order/detail?code=${data.orderCode}`
651 }); 654 });
652 break; 655 break;
653 case 91: 656 case 91:
@@ -656,7 +659,7 @@ const _setExchangeDetailData = (data) => { @@ -656,7 +659,7 @@ const _setExchangeDetailData = (data) => {
656 default: 659 default:
657 break; 660 break;
658 } 661 }
659 - 662 + console.log(list)
660 return list; 663 return list;
661 }; 664 };
662 665
@@ -30,7 +30,7 @@ @@ -30,7 +30,7 @@
30 <div class="way"> 30 <div class="way">
31 31
32 {{#if takeGoods}} 32 {{#if takeGoods}}
33 - <p class="contact">我们会尽快将您的商品发出,请耐心等待,如有疑问,请联系<a href="http://chat8.live800.com/live800/chatClient/chatbox.jsp?companyID=620092&configID=149091&jid=8732423409"><span class="iconfont">&#xe61c;</span>在线客服</p></a> 33 + <p class="contact">我们会尽快将您的商品发出,请耐心等待,如有疑问,请联系<a href="http://chat8.live800.com/live800/chatClient/chatbox.jsp?companyID=620092&configID=149091&jid=8732423409"><span class="iconfont">&#xe61c;</span></a>在线客服</p>
34 {{/if}} 34 {{/if}}
35 35
36 {{#if reminder}} 36 {{#if reminder}}
@@ -50,12 +50,12 @@ @@ -50,12 +50,12 @@
50 {{/if}} 50 {{/if}}
51 51
52 {{#if doubt}} 52 {{#if doubt}}
53 - <p class="contact">如有疑问,请联系<span class="iconfont">&#xe61c;</span>在线客服</p> 53 + <p class="contact">如有疑问,请联系<a href="http://chat8.live800.com/live800/chatClient/chatbox.jsp?companyID=620092&configID=149091&jid=8732423409"><span class="iconfont">&#xe61c;</span></a>在线客服</p>
54 {{/if}} 54 {{/if}}
55 55
56 {{#if auditSuccess}} 56 {{#if auditSuccess}}
57 <div class="order"> 57 <div class="order">
58 - <span class="check">查看</span> 58 + <a href="{{view}}" target="_blank"><span class="check">查看</span></a>
59 <span class="exchange-order">换货订单</span> 59 <span class="exchange-order">换货订单</span>
60 </div> 60 </div>
61 {{/if}} 61 {{/if}}
@@ -75,11 +75,12 @@ @@ -75,11 +75,12 @@
75 75
76 <div class="edit-content{{#if expressNumber}} hide{{/if}}"{{# expressList}} data-{{id}}="{{name}}"{{/ expressList}}> 76 <div class="edit-content{{#if expressNumber}} hide{{/if}}"{{# expressList}} data-{{id}}="{{name}}"{{/ expressList}}>
77 <h4 class="third-title">填写物流</h4> 77 <h4 class="third-title">填写物流</h4>
78 - <p>请您在<span class="blue">天内</span>将商品寄回并填写物流,逾期将自动取消申请</p> 78 + <p>请您在<span class="blue">7天内</span>将商品寄回并填写物流,逾期将自动取消申请</p>
79 <dl class="express-wrap"> 79 <dl class="express-wrap">
80 <dd> 80 <dd>
81 物流公司: 81 物流公司:
82 <select class="express-company"> 82 <select class="express-company">
  83 + <option value="0">选择快递公司</option>
83 {{# expressList}} 84 {{# expressList}}
84 <option value="{{id}}">{{name}}</option> 85 <option value="{{id}}">{{name}}</option>
85 {{/ expressList}} 86 {{/ expressList}}
@@ -87,7 +88,7 @@ @@ -87,7 +88,7 @@
87 </dd> 88 </dd>
88 <dd> 89 <dd>
89 快递单号: 90 快递单号:
90 - <input type="text" class="express-code" value="{{number}}"> 91 + <input type="text" class="express-code" placeholder="填写快递单号" value="{{number}}">
91 </dd> 92 </dd>
92 <dd> 93 <dd>
93 <span class="submit-express btn">提交</span> 94 <span class="submit-express btn">提交</span>
@@ -147,10 +148,10 @@ @@ -147,10 +148,10 @@
147 <p>×{{num}}</p> 148 <p>×{{num}}</p>
148 </div> 149 </div>
149 </div> 150 </div>
150 - <div class="common-column special-border"> 151 + <div class="common special-border">
151 <p class="reason">{{reasonName}}</p> 152 <p class="reason">{{reasonName}}</p>
152 </div> 153 </div>
153 - <div class="common-column special-border operation"> 154 + <div class="common special-border operation">
154 <p class="subtext">color: {{newColorName}}<br>size: {{newSizeName}}</p> 155 <p class="subtext">color: {{newColorName}}<br>size: {{newSizeName}}</p>
155 </div> 156 </div>
156 </div> 157 </div>
@@ -160,13 +160,13 @@ @@ -160,13 +160,13 @@
160 } 160 }
161 161
162 .info { 162 .info {
163 - width: 507px; 163 + width: 380px;
164 text-align: left; 164 text-align: left;
165 } 165 }
166 166
167 .st, 167 .st,
168 .op { 168 .op {
169 - width: 200px; 169 + width: 260px;
170 } 170 }
171 } 171 }
172 } 172 }
@@ -175,14 +175,16 @@ @@ -175,14 +175,16 @@
175 display: table; 175 display: table;
176 font-size: 14px; 176 font-size: 14px;
177 border: 1px solid #f1f1f1; 177 border: 1px solid #f1f1f1;
  178 + width: 100%;
178 } 179 }
179 180
180 .goods-info { 181 .goods-info {
181 - width: 516px; 182 + width: 400px;
182 display: inline-block; 183 display: inline-block;
183 box-sizing: border-box; 184 box-sizing: border-box;
184 border-top: none; 185 border-top: none;
185 font-weight: normal; 186 font-weight: normal;
  187 + margin: 0;
186 188
187 img { 189 img {
188 width: 70px; 190 width: 70px;
@@ -193,7 +195,7 @@ @@ -193,7 +195,7 @@
193 } 195 }
194 196
195 .info { 197 .info {
196 - width: 400px; 198 + width: 290px;
197 padding: 30px 8px 0 0; 199 padding: 30px 8px 0 0;
198 float: right; 200 float: right;
199 box-sizing: border-box; 201 box-sizing: border-box;
@@ -207,8 +209,8 @@ @@ -207,8 +209,8 @@
207 } 209 }
208 } 210 }
209 211
210 - .common-column {  
211 - width: 208px; 212 + .common {
  213 + width: 270px;
212 display: table-cell; 214 display: table-cell;
213 text-align: center; 215 text-align: center;
214 vertical-align: top; 216 vertical-align: top;