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
梁志锋
9 years ago
Commit
cd8f1a8f4d0965126dc2f79ee296c202bc38f1ca
2 parents
6c62c058
6b88f61d
Merge remote-tracking branch 'origin/master'
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
22 additions
and
9 deletions
library/Plugin/Helpers.php
library/Plugin/Images.php
static/js/home/maybe-like.js
static/js/product/recommend-for-you-cart.js
yohobuy/m.yohobuy.com/application/controllers/Boys.php
yohobuy/m.yohobuy.com/application/controllers/Girls.php
yohobuy/m.yohobuy.com/application/controllers/Kids.php
yohobuy/m.yohobuy.com/application/controllers/Lifestyle.php
yohobuy/m.yohobuy.com/application/models/Category/Brand.php
library/Plugin/Helpers.php
View file @
cd8f1a8
...
...
@@ -65,7 +65,7 @@ class Helpers
*/
public
static
function
getImageUrl
(
$url
,
$width
,
$height
,
$mode
=
2
)
{
return
strtr
(
$url
,
array
(
'{width}'
=>
$width
,
'{height}'
=>
$height
,
'{mode}'
=>
$mode
,
'http://'
=>
'//'
));
return
strtr
(
$url
,
array
(
'{width}'
=>
$width
,
'{height}'
=>
$height
,
'{mode}'
=>
$mode
,
'http://'
=>
'//'
))
.
'/q/70'
;
}
/**
...
...
library/Plugin/Images.php
View file @
cd8f1a8
...
...
@@ -71,7 +71,7 @@ class Images
if
(
stripos
(
$fileName
,
'http://'
)
!==
0
)
{
$fileName
=
self
::
template
(
$fileName
,
$bucket
,
$mode
);
}
return
strtr
(
$fileName
,
array
(
'{width}'
=>
$width
,
'{height}'
=>
$height
,
'{mode}'
=>
$mode
,
'http://'
=>
'//'
));
return
strtr
(
$fileName
,
array
(
'{width}'
=>
$width
,
'{height}'
=>
$height
,
'{mode}'
=>
$mode
,
'http://'
=>
'//'
))
.
'/q/70'
;
}
/**
...
...
static/js/home/maybe-like.js
View file @
cd8f1a8
...
...
@@ -192,7 +192,7 @@ module.exports = function(specificGender) {
'PRD_ID'
:
PRDID
.
join
(
','
),
'PRD_NUM'
:
$
(
data
).
closest
(
'.good-info'
).
length
,
'ACTION_ID'
:
0
,
'page_num'
:
page
+
1
'page_num'
:
RECPOSE
===
110009
?
1
:
page
});
//为您优选埋点 end
},
...
...
static/js/product/recommend-for-you-cart.js
View file @
cd8f1a8
...
...
@@ -23,7 +23,7 @@ $.get('/product/recommend-for-you/cart').then(function(html) {
});
window
.
givePoint
({
'REC_POSE'
:
10003
,
'REC_POSE'
:
1
1
0003
,
'PRD_ID'
:
PRDID
.
join
(
','
),
'PRD_NUM'
:
$
(
'.recommend-for-you .good-info'
).
length
,
'ACTION_ID'
:
0
,
...
...
@@ -34,7 +34,7 @@ $.get('/product/recommend-for-you/cart').then(function(html) {
var
index
=
$
(
this
).
closest
(
'.good-info'
).
index
()
+
1
;
window
.
givePoint
({
'REC_POSE'
:
10003
,
'REC_POSE'
:
1
1
0003
,
'PRD_ID'
:
$
(
this
).
closest
(
'.good-info'
).
data
(
'id'
),
'PRD_NUM'
:
index
,
'ACTION_ID'
:
1
,
...
...
yohobuy/m.yohobuy.com/application/controllers/Boys.php
View file @
cd8f1a8
...
...
@@ -31,6 +31,8 @@ class BoysController extends AbstractAction
$uid
=
$this
->
getUid
(
true
);
$content
=
Index\HomeModel
::
getBoysFloor
(
$uid
);
$this
->
setCookie
(
'_Channel'
,
'boys'
);
// 渲染模板并输出
$this
->
_view
->
display
(
'index'
,
array
(
'boysHomePage'
=>
true
,
...
...
yohobuy/m.yohobuy.com/application/controllers/Girls.php
View file @
cd8f1a8
...
...
@@ -24,6 +24,9 @@ class GirlsController extends AbstractAction
// 显示底部TAB
$this
->
setNavFooterTab
();
$uid
=
$this
->
getUid
(
true
);
$this
->
setCookie
(
'_Channel'
,
'girls'
);
// 渲染模板并输出
$this
->
_view
->
display
(
'index'
,
array
(
'grilsHomePage'
=>
true
,
...
...
yohobuy/m.yohobuy.com/application/controllers/Kids.php
View file @
cd8f1a8
...
...
@@ -24,6 +24,9 @@ class KidsController extends AbstractAction
// 显示底部TAB
$this
->
setNavFooterTab
();
$uid
=
$this
->
getUid
(
true
);
$this
->
setCookie
(
'_Channel'
,
'kids'
);
// 渲染模板并输出
$this
->
_view
->
display
(
'index'
,
array
(
'kidsHomePage'
=>
true
,
...
...
yohobuy/m.yohobuy.com/application/controllers/Lifestyle.php
View file @
cd8f1a8
...
...
@@ -24,6 +24,9 @@ class LifestyleController extends AbstractAction
// 显示底部TAB
$this
->
setNavFooterTab
();
$uid
=
$this
->
getUid
(
true
);
$this
->
setCookie
(
'_Channel'
,
'lifestyle'
);
// 渲染模板并输出
$this
->
_view
->
display
(
'index'
,
array
(
'lifestyleHomePage'
=>
true
,
...
...
yohobuy/m.yohobuy.com/application/models/Category/Brand.php
View file @
cd8f1a8
...
...
@@ -108,12 +108,14 @@ class BrandModel
$list
[
'url'
]
=
Helpers
::
url
(
''
,
null
,
$row
[
'brand_domain'
]);
$build
[
'list'
][]
=
$list
;
}
$result
[
'brandList'
][]
=
$build
;
if
(
$char
!==
'0~9'
)
{
$result
[
'brandList'
][]
=
$build
;
}
else
{
$lastBrand
=
$build
;
}
}
//第一个元素放到最后
$lastBrand
=
$result
[
'brandList'
][
0
];
unset
(
$result
[
'brandList'
][
0
]);
$result
[
'brandList'
][]
=
$lastBrand
;
//第一个元素放到最后
$result
[
'brandList'
]
=
array_values
(
$result
[
'brandList'
]);
}
//新入驻品牌
...
...
Please
register
or
login
to post a comment