Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yohobuy-node
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
1
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Plain Diff
Browse Files
Authored by
周少峰
2017-07-03 19:16:57 +0800
Commit
18624ccff87c7d98c61438288ed2028015ed1ca7
2 parents
836fca59
dfcc1649
Merge branch 'release/5.9' of git.yoho.cn:fe/yohobuy-node into release/5.9
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
45 additions
and
3 deletions
apps/cart/models/ticket-service.js
apps/cart/views/action/ticket-ensure.hbs
apps/home/views/action/home/orders/order-detail.hbs
public/js/cart/ticket.page.js
public/scss/cart/_order-ensure2016.css
apps/cart/models/ticket-service.js
View file @
18624cc
...
...
@@ -32,6 +32,7 @@ const addTicket = co(function * (uid, sku, count, yohoCoin) {
};
}
result
.
virtualGood
=
true
;
result
.
goodsList
=
_handleGoodsList
(
_
.
get
(
ticketInfo
,
'data.goods_list'
,
[]));
result
.
last_order_amount
=
_handleAmount
(
ticketInfo
);
Object
.
assign
(
result
,
_handleUseYhoCoin
(
_
.
get
(
ticketInfo
,
'data.shopping_cart_data'
,
{})));
...
...
apps/cart/views/action/ticket-ensure.hbs
View file @
18624cc
...
...
@@ -44,9 +44,12 @@
data-price=
"
{{
last_price
}}
"
data-num=
"
{{
buy_number
}}
"
>
<td
{{#if
@first
}}
class=
"border-top"
{{/if}}
></td>
<td
class=
"border-top aline-left"
>
<a
class=
"image"
href=
"
{{
linkToGoods
}}
"
>
<img
src=
"
{{
image2
goods_images
w
=
64
h
=
85
}}
"
class=
"thumb"
>
<p
class=
"name"
>
<a
class=
"image ticket-cover"
href=
"
{{
linkToGoods
}}
"
>
<span
class=
"ticket-image"
>
<img
src=
"
{{
image2
goods_images
w
=
64
h
=
85
}}
"
class=
"thumb"
>
<span
class=
"ticket-image-tag"
>
虚拟商品
</span>
</span>
<p
class=
"ticket-name"
>
{{
product_name
}}
</p>
</a>
...
...
apps/home/views/action/home/orders/order-detail.hbs
View file @
18624cc
...
...
@@ -165,6 +165,8 @@
</p>
<div
class=
"content"
>
<span>
付款方式:
{{
payMode
}}
</span>
<br
/>
<br
/>
<span>
电话号码:
{{
phone
}}
</span>
</div>
</div>
...
...
public/js/cart/ticket.page.js
View file @
18624cc
...
...
@@ -46,6 +46,10 @@ function validateUserInfo(info) {
errTip
=
'您还没有填写手机号'
;
}
if
(
!
errTip
&&
!
/^
\d{11}
$/ig
.
test
(
info
.
mobile
))
{
errTip
=
'手机号只能是11位数字'
;
}
if
(
errTip
)
{
new
dialog
.
Alert
((
errTip
)).
show
();
return
false
;
...
...
public/scss/cart/_order-ensure2016.css
View file @
18624cc
...
...
@@ -865,6 +865,38 @@
}
}
.ticket-cover
{
.ticket-image
{
display
:
inline-block
;
position
:
relative
;
}
.ticket-image-tag
{
display
:
block
;
position
:
absolute
;
bottom
:
0
;
left
:
0
;
right
:
0
;
height
:
15px
;
line-height
:
16px
;
text-align
:
center
;
color
:
#fff
;
background
:
#333
;
}
.ticket-name
{
display
:
inline-block
;
width
:
280px
;
max-height
:
68px
;
font-size
:
15px
;
padding-left
:
20px
;
line-height
:
1.5
;
overflow
:
hidden
;
word-break
:
break-all
;
vertical-align
:
top
;
}
}
.use-coupons
{
.tip-box
{
width
:
60%
;
...
...
Please
register
or
login
to post a comment