Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yohoblk-wap
·
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
李奇
7 years ago
Commit
d3ac323a781f7ba9df5c11ea998bfd75693e22b5
1 parent
a8aee552
数字品牌修改
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
6 deletions
apps/channel/models/brand.js
config/common.js
public/js/common/vue-directive.js
apps/channel/models/brand.js
View file @
d3ac323
...
...
@@ -78,7 +78,11 @@ const handleBrandList = origin => {
brands
.
push
({
name
:
subValue
.
brand_name_en
||
subValue
.
brand_name_cn
||
subValue
.
brand_name
,
logo
:
subValue
.
brand_ico
,
domain
:
subValue
.
brand_domain
domain
:
subValue
.
brand_domain
,
shopId
:
subValue
.
shop_id
,
shopName
:
subValue
.
brand_name_en
||
subValue
.
brand_name_cn
||
subValue
.
brand_name
,
isRedShop
:
subValue
.
is_red_shop
,
shopTemplateType
:
subValue
.
shop_template_type
});
});
dest
.
brandList
.
push
({
...
...
config/common.js
View file @
d3ac323
...
...
@@ -100,7 +100,6 @@ module.exports = {
},
console
:
{
level
:
'debug'
,
colorize
:
'all'
,
prettyPrint
:
true
,
debugStdout
:
true
}
...
...
public/js/common/vue-directive.js
View file @
d3ac323
...
...
@@ -42,14 +42,15 @@ function BrandHrefBinding(el, binding) {
href
+=
`
?
openby
:
yohobuy
=
$
{
JSON
.
stringify
(
goParams
)}
`
;
el
.
href
=
href
;
return
;
}
if
(
yoho
.
isYohoBuy
&&
!
shopId
)
{
yoho
.
ready
(
function
()
{
yoho
.
getAppVersion
({},
(
version
)
=>
{
yoho
.
getAppVersion
({},
function
(
version
)
{
alert
(
binding
.
value
.
name
)
if
(
version
>=
'6.5.5'
)
{
let
{
name
}
=
binding
.
value
;
let
goParams
=
{
action
:
'go.searchlist'
,
params
:
{
...
...
@@ -64,10 +65,11 @@ function BrandHrefBinding(el, binding) {
}
});
});
return
;
}
el
.
href
=
href
;
if
(
!
yoho
.
isYohoBuy
)
{
el
.
href
=
href
;
}
}
else
{
el
.
href
=
`
/
product
/
shop
/
$
{
binding
.
value
}
`
;
}
...
...
Please
register
or
login
to post a comment