Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
YOHOBUYWAP
·
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
Email Patches
Plain Diff
Browse Files
Authored by
郝肖肖
8 years ago
Commit
29d9f340c7e73259f161c778df29d8f7fa4f7d09
1 parent
8f19caa8
虚拟门票有货币使用规则改造
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
2 deletions
library/LibModels/Wap/Home/CartData.php
template/m.yohobuy.com/actions/cart/index/tickets-confirm.phtml
yohobuy/m.yohobuy.com/application/models/Index/Cart.php
library/LibModels/Wap/Home/CartData.php
View file @
29d9f34
...
...
@@ -500,7 +500,7 @@ class CartData
}
$param
[
'use_yoho_coin'
]
=
$useYohoCoin
;
$param
[
'client_secret'
]
=
Sign
::
getSign
(
$param
);
return
Yohobuy
::
get
(
API_URL
,
$param
);
return
Yohobuy
::
get
(
'http://192.168.102.205:8080/gateway/'
,
$param
);
}
/**
...
...
template/m.yohobuy.com/actions/cart/index/tickets-confirm.phtml
View file @
29d9f34
...
...
@@ -78,6 +78,19 @@
您需要支付:<span>¥
{
{price
}
}</span>
<a
href=
"javascript:;"
id=
"ticketsConfirm"
>确认</a>
</div>
<!--有货币使用弹框提示-->
<div
class=
"yoho-coin-help-dialog-bg hide"
></div>
<div
class=
"yoho-coin-help-dialog hide"
>
<div
class=
"yoho-coin-title"
>有货币使用条件:</div>
<div
class=
"yoho-coin-content"
>
<p>
1
.订单金额大于
20
元(含)</p>
<p>
2
.有货币数量大于
{
{yohoCoinCompute.yoho_coin_pay_rule.num_limit
}
}个(含)</p>
<p>
3
.有货币支付不得超过每笔订单应付金额的
{
{yohoCoinCompute.yoho_coin_pay_rule.max_pay_rate_desc
}
}</p>
<p>备注:使用有货币数量为
{
{yohoCoinCompute.yoho_coin_pay_rule.num_limit
}
}的整数倍,
100
有货币抵
1
元。</p>
</div>
<div
class=
"yoho-coin-footer"
>知道了</div>
</div>
<input
type=
"hidden"
name=
"ticketsPage"
id=
"ticketsPage"
value=
"1"
>
<input
type=
"hidden"
name=
"productSku"
id=
"productSku"
value=
"{{productSku}}"
>
<input
type=
"hidden"
name=
"buyNumber"
id=
"buyNumber"
value=
"{{buyNumber}}"
>
...
...
yohobuy/m.yohobuy.com/application/models/Index/Cart.php
View file @
29d9f34
...
...
@@ -1189,7 +1189,7 @@ class CartModel
$price
=
$data['data']['shopping_cart_data']['last_order_amount']
;
$result['price']
= Helpers::transPrice(
$price
, true);
// 有货币
$result['yohoCoinCompute']
= self::yohoCoinCompute(
$
compute
['data']['shopping_cart_data']
);
$result['yohoCoinCompute']
= self::yohoCoinCompute(
$
data
['data']['shopping_cart_data']
);
return
$result
;
}
...
...
Please
register
or
login
to post a comment