Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
YOHOBUYPC
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
2
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
Rock Zhang
9 years ago
Commit
5a19817058f3a2a935e2ccd9cee3b32c21137a2b
1 parent
2dc38416
添加结算页快递运费
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletions
yohobuy/m.yohobuy.com/application/models/Index/Cart.php
yohobuy/m.yohobuy.com/application/models/Index/Cart.php
View file @
5a19817
...
...
@@ -404,6 +404,7 @@ class CartModel
$oneDeliv
=
array
();
$oneDeliv
[
'id'
]
=
$val
[
'delivery_way_id'
];
$oneDeliv
[
'name'
]
=
$val
[
'delivery_way_name'
];
$oneDeliv
[
'cost'
]
=
$val
[
'delivery_way_cost'
];
(
$val
[
'default'
]
===
'Y'
)
&&
$defaultKey
=
$key
;
$idArr
[
$key
]
=
$oneDeliv
[
'id'
];
...
...
@@ -505,7 +506,7 @@ class CartModel
$price
=
isset
(
$orderCompute
[
'last_order_amount'
])
?
$orderCompute
[
'last_order_amount'
]
:
$payReturn
[
'shopping_cart_data'
][
'last_order_amount'
];
$result
[
'price'
]
=
Helpers
::
transPrice
(
$price
);
// 订单商品数
$result
[
'num'
]
=
$payReturn
[
'shopping_cart_data'
][
'goods_count'
];
$result
[
'num'
]
=
$payReturn
[
'shopping_cart_data'
][
'
selected_
goods_count'
];
// 商品金额
$result
[
'goodsPrice'
]
=
$payReturn
[
'shopping_cart_data'
][
'str_order_amount'
];
}
...
...
Please
register
or
login
to post a comment