Authored by yyq

detail package tip

... ... @@ -36,7 +36,7 @@ const ORDER_OP_ALL = [
type: 'closeOrder',
name: '取消订单',
cancelOrder: true,
hrefFun: () => 'javascript:void(0)'
hrefFun: () => 'javascript:void(0)' // eslint-disable-line
},
{
type: 'buyNow',
... ... @@ -48,13 +48,13 @@ const ORDER_OP_ALL = [
type: 'getExpress',
name: '查看物流',
express: true,
hrefFun: () => 'javascript:void(0)'
hrefFun: () => 'javascript:void(0)' // eslint-disable-line
},
{
type: 'confirm',
name: '确认订单',
confirmReceived: true,
hrefFun: () => 'javascript:void(0)'
hrefFun: () => 'javascript:void(0)' // eslint-disable-line
},
{
type: 'delOrder',
... ... @@ -108,7 +108,7 @@ const ORDER_OP_ALL = [
type: 'refundApply',
name: '申请退款',
refund: true,
hrefFun: () => 'javascript:void(0)'
hrefFun: () => 'javascript:void(0)' // eslint-disable-line
},
{
type: 'deposit',
... ... @@ -600,10 +600,13 @@ const _getPackageInfo = (cartInfo) => {
return [];
}
return _.get(cartInfo, 'package_list', []).map((pack, i) => {
let newPack = {};
newPack.title = (pack.supplier_id === 0) ? `包裹${i}:总仓发货` : `包裹${i}:异地调拨`;
return _.get(cartInfo, 'package_list', []).map((pack) => {
let newPack = {
supplierId: pack.supplier_id,
fee: pack.shopping_cost === '0.00' ? '' : pack.shopping_cost,
orign: pack.shopping_orig_cost,
count: pack.shopping_cut_cost
};
newPack.goodlist = _.get(pack, 'goods_list', []).map((good) => {
let tagInfo = ChannelConfig.orderTagArr[good.goods_type] || '';
... ... @@ -616,10 +619,6 @@ const _getPackageInfo = (cartInfo) => {
};
});
newPack.fee = pack.shopping_cost === '0.00' ? '' : pack.shopping_cost;
newPack.orign = pack.shopping_orig_cost;
newPack.count = pack.shopping_cut_cost;
return newPack;
});
};
... ... @@ -757,7 +756,7 @@ const _getOrderDetail = co(function * (uid, orderId) {
orderDetail.is_cancel, orderDetail.payment_status, orderDetail.payment_type,
orderDetail.order_type, orderDetail.attribute, orderDetail.refund_status);
detail.package = _getPackageInfo(orderDetail);
detail.packages = _getPackageInfo(orderDetail);
// 判断是否可以修改地址
if (orderDetail.can_update_delivery_address === 'Y') {
... ...
... ... @@ -161,16 +161,13 @@
{{#if packages}}
<div id="differentOrder" class="differentOrder">
<p class="warn">
温馨提示:您购买的商品<span class="red">分属不同的仓库</span>,需要调拨,将被拆分为多个包裹送达
<span class="why">
</span>
温馨提示:您购买的商品<span class="red">分属不同仓库</span>,需要品牌商调货,<span class="red">预计3-5天内发货给您</span>
<span class="why"></span>
</p>
<div id="differentBag" class="differentBag">
{{#each packages}}
<div class="bag">
<h3>
{{title}}
</h3>
<h3>包裹{{math @index '+' 1}}:{{#isEqual supplierId '0'}}总仓发货{{^}}异地调拨 <em class="red">预计3-5天内发货给您</em>{{/isEqual}}</h3>
<p class="pre">
</p>
<div class="bagDetil">
... ...

11.4 KB | W: | H:

1.88 KB | W: | H:

  • 2-up
  • Swipe
  • Onion skin
... ... @@ -185,16 +185,16 @@
position: relative;
width: 100%;
margin-top: 10px;
.red{
color:red;
}
.warn{
text-align: center;
background: #FEFBD5;
font: initial;
height: 40px;
line-height: 40px;
font-size: 16px;
.red{
color:red;
}
font-size: 14px;
.why{
background: url(/order/why.png) no-repeat;
width: 26px;
... ... @@ -211,11 +211,11 @@
position: absolute;
width: 0;
height: 0;
border-bottom:10px solid #000000;
border-bottom: 10px solid #000000;
border-left: 10px solid transparent;
border-right:10px solid transparent;
top:-10px;
right:113px ;
border-right: 10px solid transparent;
top: -10px;
right: 136px;
}
.differentBag{
display: none;
... ... @@ -223,8 +223,8 @@
right: -10px;
top:40px;
width: 510px;
padding:0px 50px;
background:#FFFFFF ;
padding: 0px 50px;
background: #FFFFFF;
z-index: 1;
border: solid 1px #000000;
font-size: 14px;
... ...