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
Plain Diff
Browse Files
Authored by
biao
9 years ago
Commit
08580b2ed935a6cb1c8d9a5074fa3fd5fac2392d
2 parents
557633ba
1fcfb524
fixed confilct. code review by BiKai
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
18 additions
and
17 deletions
library/Api/Yohobuy.php
library/Plugin/Helpers.php
static/js/cart/select-coupon.js
template/m.yohobuy.com/partials/cart/cart-content.phtml
library/Api/Yohobuy.php
View file @
08580b2
...
...
@@ -23,15 +23,15 @@ class Yohobuy
// const SERVICE_URL = 'http://service.api.yohobuy.com/';
// const YOHOBUY_URL = 'http://www.yohobuy.com/';
const
API_URL
=
'http://apih5.yoho.cn/'
;
const
API_URL2
=
'http://apih5.yoho.cn/'
;
const
SERVICE_URL
=
'http://serviceh5.yoho.cn/'
;
const
YOHOBUY_URL
=
'http://www.yohobuy.com/'
;
// const API_URL = 'http://apih5.yoho.cn/';
// const API_URL2 = 'http://apih5.yoho.cn/';
// const SERVICE_URL = 'http://serviceh5.yoho.cn/';
// const YOHOBUY_URL = 'http://www.yohobuy.com/';
// /* 测试环境 */
// const API_URL = 'http://testapi.yoho.cn:28078/';
// const SERVICE_URL = 'http://testservice.yoho.cn:28077/';
// const YOHOBUY_URL = 'http://www.yohobuy.com/';
const
API_URL
=
'http://testapi.yoho.cn:28078/'
;
const
SERVICE_URL
=
'http://testservice.yoho.cn:28077/'
;
const
YOHOBUY_URL
=
'http://www.yohobuy.com/'
;
/**
* 私钥列表
...
...
library/Plugin/Helpers.php
View file @
08580b2
...
...
@@ -591,6 +591,7 @@ class Helpers
}
elseif
(
$value
[
'goods_type'
]
==
'gift'
&&
!
isset
(
$value
[
'isAdvanceBuy'
]))
{
$oneGoods
[
'isGift'
]
=
true
;
}
elseif
(
$value
[
'goods_type'
]
==
'price_gift'
)
{
$oneGoods
[
'showCheckbox'
]
=
true
;
$oneGoods
[
'isAdvanceBuy'
]
=
true
;
}
else
{
$oneGoods
[
'showCheckbox'
]
=
true
;
...
...
@@ -631,7 +632,7 @@ class Helpers
$oneGoods
[
'id'
]
=
$single
[
'product_skn'
];
$oneGoods
[
'name'
]
=
$single
[
'product_name'
];
$oneGoods
[
'thumb'
]
=
!
empty
(
$single
[
'goods_images'
])
?
Images
::
getImageUrl
(
$single
[
'goods_images'
],
120
,
160
)
:
''
;
$oneGoods
[
'price'
]
=
self
::
transPrice
(
$single
[
'
sales
_price'
]);
$oneGoods
[
'price'
]
=
self
::
transPrice
(
$single
[
'
last
_price'
]);
$oneGoods
[
'marketPrice'
]
=
self
::
transPrice
(
$single
[
'market_price'
]);
$oneGoods
[
'count'
]
=
$single
[
'storage_number'
];
...
...
static/js/cart/select-coupon.js
View file @
08580b2
...
...
@@ -16,6 +16,7 @@ var page = 1,
isGetData
;
var
conponTmpl
=
Handlebars
.
compile
(
$
(
'#tmpl-coupon'
).
html
()),
conponNotAvaliableTmpl
=
Handlebars
.
compile
(
$
(
'#tmpl-coupon-not-avaliable'
).
html
()),
$newCoupon
=
$
(
'#new-coupon'
);
var
winH
=
$
(
window
).
height
();
...
...
@@ -137,14 +138,13 @@ function getCouponHandle(coupons) {
coupons
:
coupons
}));
// 产品说,暂时不做不可使用的优惠券
// if (notAvailableCoupons.length) {
// $('.not-avaliable-coupon-line').show();
// }
// $('#coupon-list-not').append(conponNotAvaliableTmpl({
// notAvailableCoupons: notAvailableCoupons
// }));
if
(
notAvailableCoupons
.
length
)
{
$
(
'.not-avaliable-coupon-line'
).
show
();
}
$
(
'#coupon-list-not'
).
append
(
conponNotAvaliableTmpl
({
notAvailableCoupons
:
notAvailableCoupons
}));
window
.
rePosFooter
();
}
...
...
template/m.yohobuy.com/partials/cart/cart-content.phtml
View file @
08580b2
...
...
@@ -13,7 +13,7 @@
<ul class="freebie-and-advance-buy">
{{# freebie}}
<li class="freebie">
<a href="/cart/index/gift?cartType=">
<a href="/cart/index/gift?cartType=
{{cartType}}
">
<span class="iconfont"></span>
赠品
<span class="count">{{count}}</span>
...
...
@@ -23,7 +23,7 @@
{{/ freebie}}
{{#if advanceBuy}}
<li class="advance-buy">
<a href="/cart/index/advanceBuy?cartType=">
<a href="/cart/index/advanceBuy?cartType=
{{cartType}}
">
<span class="iconfont"></span>
加价购
<span class="count">{{advanceBuyCount}}</span>
...
...
Please
register
or
login
to post a comment