Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
YOHOBUYPC
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
2
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
hf
9 years ago
Commit
1cf6046c85d4f18bced860cd47c6f7b45a27fa5c
1 parent
115fe28c
code review by fei.hong: do merge yang.yang and shaofeng.zhou fixes bugs codes
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
library/WebPlugin/HelperSearch.php
yohobuy/www.yohobuy.com/application/models/Shopping/Cart.php
library/WebPlugin/HelperSearch.php
View file @
1cf6046
...
...
@@ -272,7 +272,7 @@ class HelperSearch
$val
[
'default_images'
]
=
$cover
;
}
if
(
!
empty
(
$val
[
'default_images'
]))
{
$val
[
'default_images'
]
=
Images
::
getImageUrl
(
$val
[
'default_images'
],
$options
[
'imgSize'
][
0
],
$options
[
'imgSize'
][
1
]);
$val
[
'default_images'
]
=
Images
::
getImageUrl
(
$val
[
'default_images'
],
$options
[
'imgSize'
][
0
],
$options
[
'imgSize'
][
1
]
,
1
);
}
//搜索关键字高亮
if
(
isset
(
self
::
$params
[
'query'
])
&&
!
empty
(
self
::
$params
[
'query'
])
&&
strpos
(
$val
[
'product_name'
],
self
::
$params
[
'query'
])
!==
false
)
{
...
...
@@ -1389,9 +1389,9 @@ class HelperSearch
if (
$cover
) {
$val['images_url']
=
$cover
;
}
$build['coverImg']
= Images::getImageUrl(
$val['images_url']
,
$options['imgSize'][0]
,
$options['imgSize'][1]
);
$build['coverImg']
= Images::getImageUrl(
$val['images_url']
,
$options['imgSize'][0]
,
$options['imgSize'][1]
, 1
);
$build['url']
= Helpers::getUrlBySkc(
$product[0]['product_id']
,
$val['goods_id']
,
$product[0]['cn_alphabet']
);
$build['src']
= Images::getImageUrl(
$val['images_url']
,
$options['imgSize'][0]
,
$options['imgSize'][1]
);
$build['src']
= Images::getImageUrl(
$val['images_url']
,
$options['imgSize'][0]
,
$options['imgSize'][1]
, 1
);
$result
[] =
$build
;
}
}
...
...
yohobuy/www.yohobuy.com/application/models/Shopping/Cart.php
View file @
1cf6046
...
...
@@ -738,7 +738,7 @@ class CartModel
}
// 拥有的YOHO币
$result
[
'ownYohoCoin'
]
=
intval
(
$pay
[
'data'
][
'yoho_coin'
])
*
100
;
$result
[
'ownYohoCoin'
]
=
$pay
[
'data'
][
'yoho_coin'
]
*
100
;
// 默认是否使用YOHO币
$result
[
'useYohoCoin'
]
=
empty
(
$pay
[
'data'
][
'use_yoho_coin'
])
?
false
:
true
;
// 红包金额
...
...
Please
register
or
login
to post a comment