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
Plain Diff
Browse Files
Authored by
uedxwg
9 years ago
Commit
52aaddfcfa47c1c745c39b1c42b4b428d0ecee85
2 parents
89dd6a23
2dc38416
Merge branch 'feature/order' of
http://git.dev.yoho.cn/web/yohobuy
into feature/order
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
2 deletions
template/m.yohobuy.com/actions/cart/index/order-ensure.phtml
yohobuy/m.yohobuy.com/application/models/Index/Cart.php
yohobuy/m.yohobuy.com/public/index-test.php
template/m.yohobuy.com/actions/cart/index/order-ensure.phtml
View file @
52aaddf
...
...
@@ -74,7 +74,7 @@
{
{>
me/order/good
}
}
{
{/each
}
}
</section>
<div
class=
"goods-num"
>共
{
{num
}
}件商品
合计<span>
¥
{
{p
rice
}
}</span></div>
<div
class=
"goods-num"
>共
{
{num
}
}件商品
合计<span>
{
{goodsP
rice
}
}</span></div>
<section
class=
"block"
>
<ul
class=
"sale-invoice"
>
...
...
yohobuy/m.yohobuy.com/application/models/Index/Cart.php
View file @
52aaddf
...
...
@@ -504,6 +504,10 @@ class CartModel
$result
[
'cartPayData'
]
=
isset
(
$orderCompute
[
'promotion_formula_list'
])
?
$orderCompute
[
'promotion_formula_list'
]
:
$payReturn
[
'shopping_cart_data'
][
'promotion_formula_list'
];
$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
[
'goodsPrice'
]
=
$payReturn
[
'shopping_cart_data'
][
'str_order_amount'
];
}
// 发票有关数据
...
...
yohobuy/m.yohobuy.com/public/index-test.php
View file @
52aaddf
...
...
@@ -6,7 +6,7 @@ define('SITE_MAIN', 'http://m.yohobuy.com'); // 网站主域名
define
(
'OLD_MAIN'
,
'http://m.yohobuy.com'
);
// 网站旧域名
define
(
'COOKIE_DOMAIN'
,
'.yohobuy.com'
);
// COOKIE作用域
define
(
'SUB_DOMAIN'
,
'.m.yohobuy.com'
);
// 子域名后缀
define
(
'USE_CACHE'
,
tru
e
);
// 缓存的开关
define
(
'USE_CACHE'
,
fals
e
);
// 缓存的开关
define
(
'APPLICATION_PATH'
,
dirname
(
__DIR__
));
// 应用目录
define
(
'ROOT_PATH'
,
dirname
(
dirname
(
APPLICATION_PATH
)));
// 根目录
defined
(
'APPLICATION_ENV'
)
||
define
(
'APPLICATION_ENV'
,
'testing'
);
...
...
Please
register
or
login
to post a comment