Authored by zhangxiaoru

exchange

@@ -590,6 +590,7 @@ const getChangeGoodsList = (orderCode, uid) => { @@ -590,6 +590,7 @@ const getChangeGoodsList = (orderCode, uid) => {
590 const _setExchangeDetailData = (data) => { 590 const _setExchangeDetailData = (data) => {
591 data = camelCase(data); 591 data = camelCase(data);
592 592
  593 + // console.log(data)
593 let list = {}; 594 let list = {};
594 595
595 switch (data.status) { 596 switch (data.status) {
@@ -606,7 +607,9 @@ const _setExchangeDetailData = (data) => { @@ -606,7 +607,9 @@ const _setExchangeDetailData = (data) => {
606 } else { 607 } else {
607 Object.assign(list, { 608 Object.assign(list, {
608 audit: true, 609 audit: true,
609 - reminder: true 610 + reminder: true,
  611 + inDoor: true,
  612 + cancel: true
610 }); 613 });
611 } 614 }
612 615
@@ -614,7 +617,8 @@ const _setExchangeDetailData = (data) => { @@ -614,7 +617,8 @@ const _setExchangeDetailData = (data) => {
614 case 10: 617 case 10:
615 Object.assign(list, { 618 Object.assign(list, {
616 through: true, 619 through: true,
617 - reminder: true 620 + reminder: true,
  621 + location: true
618 }); 622 });
619 623
620 if (data.deliveryTpyeName === '寄回换货') { 624 if (data.deliveryTpyeName === '寄回换货') {
@@ -630,12 +634,17 @@ const _setExchangeDetailData = (data) => { @@ -630,12 +634,17 @@ const _setExchangeDetailData = (data) => {
630 } 634 }
631 635
632 break; 636 break;
633 - case 20:  
634 - 637 + case 20:
635 if (data.deliveryTpyeName === '寄回换货') { 638 if (data.deliveryTpyeName === '寄回换货') {
636 Object.assign(list, { 639 Object.assign(list, {
637 logistics: true 640 logistics: true
638 }); 641 });
  642 + } else {
  643 + list.send = true;
  644 + list.reminder = true;
  645 + list.inDoor = true;
  646 + list.auditSuccess = true;
  647 + list.view = `//www.yohobuy.com/me/order/detail?code=${data.orderCode}`;
639 } 648 }
640 649
641 break; 650 break;
@@ -644,6 +653,8 @@ const _setExchangeDetailData = (data) => { @@ -644,6 +653,8 @@ const _setExchangeDetailData = (data) => {
644 list.takeGoods = true; 653 list.takeGoods = true;
645 list.auditSuccess = true; 654 list.auditSuccess = true;
646 list.view = `//www.yohobuy.com/me/order/detail?code=${data.orderCode}`; 655 list.view = `//www.yohobuy.com/me/order/detail?code=${data.orderCode}`;
  656 + } else {
  657 + list.takeGoods = true;
647 } 658 }
648 break; 659 break;
649 case 50: 660 case 50:
@@ -683,7 +694,7 @@ const getExchangeDetailData = (id, uid) => { @@ -683,7 +694,7 @@ const getExchangeDetailData = (id, uid) => {
683 returnsAPI.getExchangeDetail(id, uid), 694 returnsAPI.getExchangeDetail(id, uid),
684 returnsAPI.getExpressCompanyAsync() 695 returnsAPI.getExpressCompanyAsync()
685 ]).then(result => { 696 ]).then(result => {
686 - 697 + console.log(result);
687 let exchangeData = {}; 698 let exchangeData = {};
688 699
689 Object.assign(exchangeData, _setSideMenu('我的退/换货')); 700 Object.assign(exchangeData, _setSideMenu('我的退/换货'));
@@ -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></a>在线客服</p> 33 + <p class="contact">我们会尽快将您的商品发出,请耐心等待,如有疑问,请联系<a href="http://chat8.live800.com/live800/chatClient/chatbox.jsp?companyID=620092&configID=149091&jid=8732423409" target="_blank"><span class="iconfont">&#xe61c;</span></a>在线客服</p>
34 {{/if}} 34 {{/if}}
35 35
36 {{#if reminder}} 36 {{#if reminder}}
@@ -50,7 +50,7 @@ @@ -50,7 +50,7 @@
50 {{/if}} 50 {{/if}}
51 51
52 {{#if doubt}} 52 {{#if doubt}}
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> 53 + <p class="contact">如有疑问,请联系<a href="http://chat8.live800.com/live800/chatClient/chatbox.jsp?companyID=620092&configID=149091&jid=8732423409" target="_blank"><span class="iconfont">&#xe61c;</span>在线客服</p></a>
54 {{/if}} 54 {{/if}}
55 55
56 {{#if auditSuccess}} 56 {{#if auditSuccess}}
@@ -111,17 +111,13 @@ @@ -111,17 +111,13 @@
111 111
112 {{#if location}} 112 {{#if location}}
113 <div class="address"> 113 <div class="address">
114 - <p class="address-title">收货地址<span class="modify-btn">修改</span></p> 114 + <p class="address-title">收货地址</p>
115 <div class="address-detail"> 115 <div class="address-detail">
116 <p>所在区域:{{city}}{{county}}</p> 116 <p>所在区域:{{city}}{{county}}</p>
117 <p>&nbsp货 &nbsp人:{{consigneeName}}</p> 117 <p>&nbsp货 &nbsp人:{{consigneeName}}</p>
118 <p>详细地址:{{address}}</p> 118 <p>详细地址:{{address}}</p>
119 <p>联系电话:{{mobile}}</p> 119 <p>联系电话:{{mobile}}</p>
120 </div> 120 </div>
121 -  
122 - <div class="address-modify">  
123 -  
124 - </div>  
125 </div> 121 </div>
126 {{/if}} 122 {{/if}}
127 </div> 123 </div>
@@ -167,4 +163,5 @@ @@ -167,4 +163,5 @@
167 </div> 163 </div>
168 </div> 164 </div>
169 </div> 165 </div>
170 -{{/ exchange}}  
  166 +{{/ exchange}}
  167 +
@@ -3,7 +3,6 @@ var $ = require('yoho-jquery'), @@ -3,7 +3,6 @@ var $ = require('yoho-jquery'),
3 3
4 var id = $('.exchange-detail-page').data('id'); 4 var id = $('.exchange-detail-page').data('id');
5 5
6 -  
7 var $mainWrap = $('.exchange-detail-page'), 6 var $mainWrap = $('.exchange-detail-page'),
8 $submitExpress = $mainWrap.find('.submit-express'), 7 $submitExpress = $mainWrap.find('.submit-express'),
9 $showExpress = $mainWrap.find('.show-content'), 8 $showExpress = $mainWrap.find('.show-content'),
@@ -29,6 +29,7 @@ @@ -29,6 +29,7 @@
29 .way { 29 .way {
30 font-size: 14px; 30 font-size: 14px;
31 border-bottom: 1px solid #eee; 31 border-bottom: 1px solid #eee;
  32 + padding-bottom: 10px;
32 33
33 .way-title { 34 .way-title {
34 margin-top: 10px; 35 margin-top: 10px;
@@ -111,6 +112,10 @@ @@ -111,6 +112,10 @@
111 line-height: 40px; 112 line-height: 40px;
112 } 113 }
113 114
  115 + label {
  116 + margin-right: 5px;
  117 + }
  118 +
114 .modify-btn { 119 .modify-btn {
115 font-size: 12px; 120 font-size: 12px;
116 float: right; 121 float: right;
@@ -374,4 +379,18 @@ @@ -374,4 +379,18 @@
374 } 379 }
375 } 380 }
376 381
  382 + .input-group {
  383 + height: 35px;
  384 + }
  385 +
  386 + .change-area {
  387 + display: block;
  388 + float: left;
  389 + height: 35px;
  390 + line-height: 35px;
  391 + }
  392 +
  393 + .dist-item {
  394 + padding: 5px;
  395 + }
377 } 396 }