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
毕凯
9 years ago
Commit
5c872d465d2b2646187ee7a8237116783af0bd01
1 parent
61cf76ce
发票和留言信息记录
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
8 deletions
template/m.yohobuy.com/actions/index/shoppingCart/order-ensure.phtml
yohobuy/m.yohobuy.com/application/models/Index/Cart.php
template/m.yohobuy.com/actions/index/shoppingCart/order-ensure.phtml
View file @
5c872d4
...
...
@@ -41,7 +41,7 @@
<section
class=
"block"
>
<ul
class=
"sale-invoice"
>
{
{#
coupon
}
}
{
{#
if
coupon
}
}
<li
class=
"coupon"
>
<a
href=
"/shoppingCart/selectCoupon"
>
<!--
<a
href=
"{{url}}"
>
-->
...
...
@@ -65,7 +65,7 @@
{
{/if
}
}
</a>
</li>
{
{/
coupon
}
}
{
{/
if
}
}
{
{#
yohoCoin
}
}
<li
class=
"coin"
data-yoho-coin=
"{{.}}"
>
...
...
@@ -79,16 +79,16 @@
{
{/
yohoCoin
}
}
{
{#if
invoice
}
}
<li
class=
"invoice"
>
<li
class=
"invoice
{{#if needInvoice}}focus{{/if}}
"
>
<span
class=
"title"
>发票</span>
<span
class=
"iconfont checkbox
icon-checkbox
"
></span>
<span
class=
"iconfont checkbox
{{#if needInvoice}}icon-cb-checkbox{{else}}icon-checkbox{{/if}}
"
></span>
<form
id=
"invoice"
>
<input
type=
"text"
name=
"invoice-title"
value=
""
placeholder=
"发票抬头"
>
<input
type=
"text"
name=
"invoice-title"
value=
"
{{invoiceText}}
"
placeholder=
"发票抬头"
>
<label>
发票类型
<select
class=
"invoice-type"
name=
"invoice-type"
>
{
{#
invoice
}
}
<option
value=
"{{id}}"
>
{
{name
}
}</option>
<option
value=
"{{id}}"
{
{#if
isSelected
}
}select
{
{/if
}
}
>
{
{name
}
}</option>
{
{/
invoice
}
}
</select>
</label>
...
...
@@ -98,7 +98,7 @@
</ul>
<form
id=
"msg"
action=
""
method=
"post"
>
<input
type=
"text"
name=
"msg"
value=
""
placeholder=
"留言"
>
<input
type=
"text"
name=
"msg"
value=
"
{{msg}}
"
placeholder=
"留言"
>
</form>
</section>
...
...
yohobuy/m.yohobuy.com/application/models/Index/Cart.php
View file @
5c872d4
...
...
@@ -428,10 +428,17 @@ class CartModel
$result
[
'invoice'
][]
=
$one
;
}
// 发票信息需要记录
// $one['id'] === $orderInfo['invoiceType'] && $one['isSelected'] = true;
// $one['needInvoice'] = $orderInfo['invoiceType'];
}
// 留言
$result
[
'msg'
]
=
$orderInfo
[
'msg'
];
// 优惠券数据
$coupons
=
array
(
'notUsed'
=>
true
);
$coupons
=
array
();
!
empty
(
$orderCompute
[
'coupon_amount'
])
&&
$coupons
[
'value'
]
=
$orderInfo
[
'couponValue'
];
$coupons
+=
self
::
getCouponList
(
$uid
,
0
,
1
,
true
);
$result
[
'coupon'
]
=
$coupons
;
...
...
Please
register
or
login
to post a comment