Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yohobuywap-node
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Plain Diff
Browse Files
Authored by
毕凯
8 years ago
Commit
0982f9577d1cc203e2e72b42d3bd736d272f5e0f
2 parents
3a207e79
55af3bd4
Merge branch 'feature/ticketRecode' into 'release/5.9'
隐藏区域,显示虚拟商品标签 See merge request
!704
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
88 additions
and
10 deletions
apps/cart/views/partial/tickets/good.hbs
apps/home/models/orderDetail.js
apps/home/views/action/QRcode.hbs
apps/product/models/detail.js
doraemon/views/partial/order/good.hbs
public/hbs/common/chose-panel-new.hbs
public/js/common/chose-panel-new.js
public/scss/cart/tickets-confirm.page.css
public/scss/home/_order.css
apps/cart/views/partial/tickets/good.hbs
View file @
0982f95
<div
class=
"order-good"
data-id=
"
{{
id
}}
"
data-skn=
"
{{
skn
}}
"
>
<div
class=
"thumb-wrap"
>
{{#if
link
}}
<a
href=
"
{{
link
}}
"
><img
class=
"thumb lazy"
data-original=
"
{{
thumb
}}
"
></a>
<div
class=
"pic-c"
>
<a
href=
"
{{
link
}}
"
>
<img
class=
"thumb lazy"
data-original=
"
{{
thumb
}}
"
>
</a>
<p>
虚拟商品
</p>
</div>
{{else}}
<img
class=
"thumb lazy"
data-original=
"
{{
thumb
}}
"
>
<div
class=
"pic-c"
>
<img
class=
"thumb lazy"
data-original=
"
{{
thumb
}}
"
>
<p>
虚拟商品
</p>
</div>
{{/if}}
<p
class=
"tag
{{#if
gift
}}
gift-tag
{{/if}}{{#if
advanceBuy
}}
advance-buy-tag
{{/if}}
"
></p>
</div>
...
...
@@ -17,7 +25,7 @@
{{/if}}
{{#if
size
}}
<span
class=
"size"
>
<span
class=
"size
{{#if
tickets
}}
hide
{{/if}}
"
>
{{#if
tickets
}}
区域
{{else}}
尺码
{{/if}}
:
{{
size
}}
</span>
{{/if}}
...
...
apps/home/models/orderDetail.js
View file @
0982f95
...
...
@@ -221,6 +221,12 @@ const orderDetailData = (uid, orderCode) => {
});
}
if
(
data
.
goodsType
===
'ticket'
)
{
obj
=
_
.
assign
(
obj
,
{
tickets
:
true
});
}
goods
.
push
(
obj
);
orderDetail
=
_
.
assign
(
orderDetail
,
{
...
...
apps/home/views/action/QRcode.hbs
View file @
0982f95
...
...
@@ -5,7 +5,7 @@
{{#
qrcodeData
}}
<div
class=
"qrcode yoho-page"
>
<h2
class=
'qrcode-title'
>
201
6
非常潮流盛世 YO'HOOD门票(限量)
{{
ticks
.
length
}}
件
</h2>
<h2
class=
'qrcode-title'
>
201
7
非常潮流盛世 YO'HOOD门票(限量)
{{
ticks
.
length
}}
件
</h2>
<p
class=
'qrcode-tip'
>
提示:凭借二维码入场,每场二维码只可使用一次,请妥善保管;
</p>
<div
class=
'qrcode-wrap'
>
...
...
apps/product/models/detail.js
View file @
0982f95
...
...
@@ -750,6 +750,16 @@ const getNewProductAsyncData = (data) => {
discount
:
discountBuy
.
bundleInfo
.
discount
};
}
// 2017电子门票不显示区域
let
ticketsProps
=
finalResult
.
cartInfo
.
props
;
_
.
forEach
(
ticketsProps
,
function
(
value
)
{
if
(
value
.
name
===
'区域'
)
{
value
.
ticketHide
=
true
;
value
.
name
=
''
;
}
});
return
finalResult
;
});
});
...
...
doraemon/views/partial/order/good.hbs
View file @
0982f95
<div
class=
"order-good"
data-id=
"
{{
id
}}
"
>
<div
class=
"thumb-wrap"
>
{{#if
link
}}
<a
href=
"
{{
link
}}
"
><img
class=
"thumb"
src=
"
{{
image
thumb
90
120
}}
"
></a>
{{#if
link
}}
<div
class=
"pic-c"
>
<a
href=
"
{{
link
}}
"
>
<img
class=
"thumb"
src=
"
{{
image
thumb
90
120
}}
"
>
</a>
{{#if
tickets
}}
<p>
虚拟商品
</p>
{{/if}}
</div>
{{else}}
<img
class=
"thumb"
src=
"
{{
image
thumb
90
120
}}
"
>
<div
class=
"pic-c"
>
<img
class=
"thumb"
src=
"
{{
image
thumb
90
120
}}
"
>
{{#if
tickets
}}
<p>
虚拟商品
</p>
{{/if}}
</div>
{{/if}}
<p
class=
"tag
{{#if
gift
}}
gift-tag
{{/if}}{{#if
advanceBuy
}}
advance-buy-tag
{{/if}}
"
></p>
</div>
...
...
@@ -17,7 +29,7 @@
{{/if}}
{{#if
size
}}
<span
class=
"size"
>
<span
class=
"size
{{#if
tickets
}}
hide
{{/if}}
"
>
{{#if
tickets
}}
区域
{{else}}
尺码
{{/if}}
:
{{
size
}}
</span>
{{/if}}
...
...
public/hbs/common/chose-panel-new.hbs
View file @
0982f95
...
...
@@ -23,11 +23,11 @@
</div>
<div
class=
"chose-items"
>
{{#
each
props
}}
<div
class=
"block-list"
>
<div
class=
"block-list
{{#if
ticketHide
}}
hide
{{/if}}
"
>
<span
class=
"name"
>
{{
name
}}
</span>
<ul
class=
"size-row clearfix"
>
{{#
each
values
}}
<li
class=
"block
"
data-prop-id=
"
{{
..
/
type
}}
"
data-value-id=
"
{{
id
}}
"
>
{{
name
}}
</li>
<li
class=
"block
{{#if
..
/
ticketHide
}}
chosed hide
{{/if}}
"
data-prop-id=
"
{{
..
/
type
}}
"
data-value-id=
"
{{
id
}}
"
>
{{#if
..
/
ticketHide
}}{{else}}{{
name
}}{{/if
}}
</li>
{{/
each
}}
</ul>
</div>
...
...
public/js/common/chose-panel-new.js
View file @
0982f95
...
...
@@ -414,6 +414,14 @@ class ChosePanel {
return
$
(
ele
).
text
();
}));
if
(
this
.
modes
.
tickets
)
{
let
$chosed
=
$
(
'.block.chosed'
);
valueList
=
Array
.
from
(
$chosed
.
not
(
'.hide'
).
map
((
index
,
ele
)
=>
{
return
$
(
ele
).
text
();
}));
}
if
(
valueList
.
length
)
{
$noChoose
.
addClass
(
'hide'
);
$chooseInfo
.
removeClass
(
'hide'
);
...
...
public/scss/cart/tickets-confirm.page.css
View file @
0982f95
...
...
@@ -78,4 +78,21 @@
color
:
#b0b0b0
;
}
}
.pic-c
{
position
:
relative
;
p
{
position
:
absolute
;
bottom
:
0
;
left
:
0
;
color
:
#fff
;
width
:
100%
;
text-align
:
center
;
height
:
35px
;
line-height
:
35px
;
background-color
:
#d0021b
;
font-size
:
20px
;
}
}
}
...
...
public/scss/home/_order.css
View file @
0982f95
...
...
@@ -250,6 +250,23 @@
border-bottom
:
1px
solid
#e0e0e0
;
font-size
:
26px
;
.pic-c
{
position
:
relative
;
p
{
position
:
absolute
;
bottom
:
0
;
left
:
0
;
color
:
#fff
;
width
:
100%
;
text-align
:
center
;
height
:
35px
;
line-height
:
35px
;
background-color
:
#d0021b
;
font-size
:
20px
;
}
}
&
:last-child
{
border-bottom
:
none
;
}
...
...
Please
register
or
login
to post a comment