Authored by zhangxiaoru

线下店订单

@@ -280,7 +280,8 @@ const getOrders = (params) => { @@ -280,7 +280,8 @@ const getOrders = (params) => {
280 goods: _formatOrderGoods(value.order_goods, count, false, isTickets), 280 goods: _formatOrderGoods(value.order_goods, count, false, isTickets),
281 detailUrl: helpers.urlFormat('/home/orderdetail', {order_code: value.order_code}), 281 detailUrl: helpers.urlFormat('/home/orderdetail', {order_code: value.order_code}),
282 count: value.buy_total, 282 count: value.buy_total,
283 - isVirtual: isTickets 283 + isVirtual: isTickets,
  284 + orderTitle: value.order_title
284 }); 285 });
285 286
286 /* 如果运费大于0,会显示运费 */ 287 /* 如果运费大于0,会显示运费 */
@@ -153,6 +153,8 @@ const orderDetailData = (uid, orderCode) => { @@ -153,6 +153,8 @@ const orderDetailData = (uid, orderCode) => {
153 let orderDetail = camelCase(result.data); 153 let orderDetail = camelCase(result.data);
154 let goods = []; 154 let goods = [];
155 let status = _getOrderStatus(orderDetail, true); 155 let status = _getOrderStatus(orderDetail, true);
  156 + let offlinestore; // 线下店订单
  157 + let deliveryOffline; // 门店取货
156 158
157 orderDetail = _.assign(orderDetail, status); 159 orderDetail = _.assign(orderDetail, status);
158 160
@@ -219,6 +221,25 @@ const orderDetailData = (uid, orderCode) => { @@ -219,6 +221,25 @@ const orderDetailData = (uid, orderCode) => {
219 }); 221 });
220 } 222 }
221 223
  224 + if (parseInt(orderDetail.paymentType, 10) !== 2) {
  225 + if (_.get(orderDetail, 'isOfflineshops', 'N') === 'Y') {
  226 +
  227 + offlinestore = orderDetail.offlineStore !== '' ? orderDetail.offlineStore : false;
  228 + deliveryOffline = _.get(orderDetail, 'isDeliveryOffline', 'N') === 'Y' ? true : false;
  229 + } else {
  230 +
  231 + offlinestore = false;
  232 + deliveryOffline = false;
  233 + }
  234 +
  235 + orderDetail = _.assign(orderDetail, {
  236 + offlinestore: offlinestore,
  237 + deliveryOffline: deliveryOffline
  238 + });
  239 + } else {
  240 + orderDetail.paymentName = orderDetail.paymentName !== '' ? orderDetail.paymentName : '货到付款';
  241 + }
  242 +
222 if (orderDetail.invoice) { 243 if (orderDetail.invoice) {
223 orderDetail.invoice.type = (orderDetail.invoice.type + '' === '2'); 244 orderDetail.invoice.type = (orderDetail.invoice.type + '' === '2');
224 } 245 }
@@ -34,6 +34,9 @@ @@ -34,6 +34,9 @@
34 {{#if paymentName}} 34 {{#if paymentName}}
35 <span>支付方式:{{paymentName}}</span> 35 <span>支付方式:{{paymentName}}</span>
36 {{/if}} 36 {{/if}}
  37 + {{#if offlinestore}}
  38 + <span>下单门店: {{offlinestore}}</span>
  39 + {{/if}}
37 </p> 40 </p>
38 <a href="{{serviceUrl}}" target="_blank" class="iconfont icon-right">&#xe63c;</a> 41 <a href="{{serviceUrl}}" target="_blank" class="iconfont icon-right">&#xe63c;</a>
39 </div> 42 </div>
@@ -52,6 +55,17 @@ @@ -52,6 +55,17 @@
52 </a> 55 </a>
53 {{/if}} 56 {{/if}}
54 {{/orderBtn}} 57 {{/orderBtn}}
  58 +
  59 + {{#if deliveryOffline}}
  60 + <div class="offline-delivery">
  61 + <span class="iconfont">&#xe630;</span>
  62 + <p class="beside-left">
  63 +
  64 + <span class="delivery-title">配送信息</span>
  65 + <span class="delivery-content">配送方式:门店取货</span>
  66 + </p>
  67 + </div>
  68 + {{/if}}
55 </section> 69 </section>
56 70
57 <section class="goods block"> 71 <section class="goods block">
@@ -10,15 +10,21 @@ const isProduction = process.env.NODE_ENV === 'production'; @@ -10,15 +10,21 @@ const isProduction = process.env.NODE_ENV === 'production';
10 const isTest = process.env.NODE_ENV === 'test'; 10 const isTest = process.env.NODE_ENV === 'test';
11 11
12 const domains = { 12 const domains = {
13 - liveApi: 'http://testapi.live.yohops.com:9999/',  
14 - singleApi: 'http://api-test3.yohops.com:9999/', 13 + // liveApi: 'http://testapi.live.yohops.com:9999/',
  14 + // singleApi: 'http://api-test3.yohops.com:9999/',
15 15
16 - api: 'http://api-test3.yohops.com:9999/',  
17 - service: 'http://service-test3.yohops.com:9999/', 16 + // api: 'http://api-test3.yohops.com:9999/',
  17 + // service: 'http://service-test3.yohops.com:9999/',
18 18
19 // liveApi: 'http://api.live.yoho.cn/', 19 // liveApi: 'http://api.live.yoho.cn/',
20 // singleApi: 'http://single.yoho.cn/', 20 // singleApi: 'http://single.yoho.cn/',
21 21
  22 + api: 'http://dev-api.yohops.com:9999/',
  23 + service: 'http://dev-service.yohops.com:9999/',
  24 +
  25 + liveApi: 'http://testapi.live.yohops.com:9999/',
  26 + singleApi: 'http://api-test3.yohops.com:9999/',
  27 +
22 imSocket: 'ws://socket.yohobuy.com:10240', 28 imSocket: 'ws://socket.yohobuy.com:10240',
23 imCs: 'http://im.yohobuy.com/api' 29 imCs: 'http://im.yohobuy.com/api'
24 }; 30 };
1 <div class="order" data-id="{{orderNum}}" data-href="{{detailUrl}}"> 1 <div class="order" data-id="{{orderNum}}" data-href="{{detailUrl}}">
2 <header class="header"> 2 <header class="header">
3 - 订单编号:{{orderNum}} 3 + {{orderTitle}}
  4 + {{!-- 订单编号:{{orderNum}} --}}
4 <span class="order-status">{{orderStatus}}</span> 5 <span class="order-status">{{orderStatus}}</span>
5 </header> 6 </header>
6 <section class="order-goods"> 7 <section class="order-goods">
@@ -72,6 +72,33 @@ @@ -72,6 +72,33 @@
72 } 72 }
73 } 73 }
74 74
  75 + .offline-delivery {
  76 + position: relative;
  77 +
  78 + .iconfont {
  79 + left: 0;
  80 + }
  81 +
  82 + .beside-left {
  83 + border-top: 1px solid #e0e0e0;
  84 + margin-top: 20px;
  85 + padding-top: 20px;
  86 + margin-left: 60px;
  87 +
  88 + .delivery-title {
  89 + display: block;
  90 + color: #000;
  91 + font-size: 28px;
  92 + }
  93 +
  94 + span {
  95 + display: block;
  96 + color: #b0b0b0;
  97 + font-size: 0.6rem;
  98 + }
  99 + }
  100 + }
  101 +
75 .owner-info { 102 .owner-info {
76 line-height: 1.5; 103 line-height: 1.5;
77 } 104 }