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
毕凯
2017-07-26 19:57:58 +0800
Commit
eab5d1c3d936e547fc80fd29bae1abe4e08ec5d2
2 parents
2fea3314
e929667f
Merge branch 'fetaure/orderPayType' into 'release/6.0'
货到付款提示取接口字段 See merge request
!747
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
8 additions
and
6 deletions
apps/cart/views/action/buynow/order-ensure.hbs
apps/cart/views/action/order-ensure.hbs
public/js/cart/buynow-order-ensure.page.js
public/js/cart/order-ensure.js
utils/payment-process.js
apps/cart/views/action/buynow/order-ensure.hbs
View file @
eab5d1c
...
...
@@ -31,7 +31,7 @@
{{#
each
paymentWay
}}
{{#if
isSupport
}}
<li
{{#if
recommend
}}
class=
"chosed"
{{/if}}
>
<span>
{{
name
}}
</span>
<span
{{#if
isSupportMessage
}}
data-message=
"
{{
isSupportMessage
}}
"
{{/if}}
>
{{
name
}}
</span>
<i
class=
"right iconfont
{{#if
recommend
}}
icon-cb-radio
{{else}}
icon-radio
{{/if}}
"
data-id=
"
{{
id
}}
"
data-payment-type=
"
{{
paymentType
}}
"
></i>
</li>
{{/if}}
...
...
apps/cart/views/action/order-ensure.hbs
View file @
eab5d1c
...
...
@@ -31,7 +31,7 @@
{{#
each
paymentWay
}}
{{#if
isSupport
}}
<li
{{#if
recommend
}}
class=
"chosed"
{{/if}}
>
<span>
{{
name
}}
</span>
<span
{{#if
isSupportMessage
}}
data-message=
"
{{
isSupportMessage
}}
"
{{/if}}
>
{{
name
}}
</span>
<i
class=
"right iconfont
{{#if
recommend
}}
icon-cb-radio
{{else}}
icon-radio
{{/if}}
"
data-id=
"
{{
id
}}
"
data-payment-type=
"
{{
paymentType
}}
"
></i>
</li>
{{/if}}
...
...
public/js/cart/buynow-order-ensure.page.js
View file @
eab5d1c
...
...
@@ -452,10 +452,10 @@ $subBlock.on('touchstart', 'li', function() {
});
let
self
=
$
(
this
);
if
(
self
.
find
(
'
i'
).
data
(
'payment-type'
)
===
2
&&
delivery
===
0
)
{
if
(
self
.
find
(
'
span'
).
data
(
'message'
)
&&
delivery
===
0
)
{
dialog
.
showDialog
({
hasHeader
:
'温馨提示'
,
dialogText
:
'货到付款订单是否支持刷卡以当地快递公司为准'
,
dialogText
:
self
.
find
(
'span'
).
data
(
'message'
)
,
hasFooter
:
{
centerBtnText
:
'我知道了'
}
...
...
public/js/cart/order-ensure.js
View file @
eab5d1c
...
...
@@ -431,9 +431,10 @@ $subBlock.on('touchstart', 'li', function() {
});
let
self
=
$
(
this
);
if
(
self
.
find
(
'
i'
).
data
(
'payment-type'
)
===
2
&&
delivery
===
0
)
{
if
(
self
.
find
(
'
span'
).
data
(
'message'
)
&&
delivery
===
0
)
{
dialog
.
showDialog
({
dialogText
:
'货到付款订单是否支持刷卡以当地快递公司为准'
,
hasHeader
:
'温馨提示'
,
dialogText
:
self
.
find
(
'span'
).
data
(
'message'
),
hasFooter
:
{
centerBtnText
:
'我知道了'
}
...
...
utils/payment-process.js
View file @
eab5d1c
...
...
@@ -227,6 +227,7 @@ function tranformPayment(data, orderInfo, cartType, skuList, orderComputeData) {
obj
.
paymentType
=
way
.
payment_type
;
obj
.
name
=
way
.
payment_type_name
;
obj
.
isSupport
=
way
.
is_support
===
'Y'
;
obj
.
isSupportMessage
=
way
.
payment_type
===
2
?
_
.
get
(
way
,
'is_support_message'
,
false
)
:
false
;
return
obj
;
});
...
...
Please
register
or
login
to post a comment