Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
为 GitLab 提交贡献
登录
切换导航
S
shop-new
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
王天霸
shop-new
Commits
c4b3f7e5
提交
c4b3f7e5
authored
10月 20, 2021
作者:
huaxinzhu
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
banner无连接不跳转
上级
b738555b
显示空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
11 行增加
和
6 行删除
+11
-6
newyuncang.vue
src/views/entry/newyuncang.vue
+11
-6
没有找到文件。
src/views/entry/newyuncang.vue
浏览文件 @
c4b3f7e5
...
@@ -31,7 +31,7 @@
...
@@ -31,7 +31,7 @@
<swiper
:options=
"swiperOption"
v-if=
"bannerList && bannerList.length > 0"
>
<swiper
:options=
"swiperOption"
v-if=
"bannerList && bannerList.length > 0"
>
<swiper-slide
v-for=
"(item,index) in bannerList"
:key=
"index"
>
<swiper-slide
v-for=
"(item,index) in bannerList"
:key=
"index"
>
<a
:href=
"
aLinkRes(item.redirect_url) "
target=
"_blank
"
>
<a
:href=
"
aLinkRes(item.redirect_url) "
:target=
"returnBlank(item.redirect_url)
"
>
<img
style=
"width: 100%;height: 562px;"
:src=
"item.image_url"
alt=
""
>
<img
style=
"width: 100%;height: 562px;"
:src=
"item.image_url"
alt=
""
>
</a>
</a>
</swiper-slide>
</swiper-slide>
...
@@ -444,7 +444,6 @@
...
@@ -444,7 +444,6 @@
}
}
indexInfo
(
data
).
then
(
res
=>
{
indexInfo
(
data
).
then
(
res
=>
{
if
(
res
.
code
==
1
)
{
if
(
res
.
code
==
1
)
{
debugger
this
.
channel_id
=
res
.
data
.
channel_id
this
.
channel_id
=
res
.
data
.
channel_id
this
.
keyTitle
=
res
.
data
.
title
;
this
.
keyTitle
=
res
.
data
.
title
;
this
.
keyWords
=
res
.
data
.
keywords
;
this
.
keyWords
=
res
.
data
.
keywords
;
...
@@ -484,7 +483,6 @@
...
@@ -484,7 +483,6 @@
},
},
/** 获取 云仓 banner图信息、核心优势、入驻logo图片集 */
/** 获取 云仓 banner图信息、核心优势、入驻logo图片集 */
getAllcloud
()
{
getAllcloud
()
{
debugger
let
data
=
{
let
data
=
{
new_channel_id
:
this
.
channel_id
new_channel_id
:
this
.
channel_id
}
}
...
@@ -498,7 +496,6 @@
...
@@ -498,7 +496,6 @@
if
(
res
.
data
.
cloud_banner_lst
&&
res
.
data
.
cloud_banner_lst
.
banners_json
&&
res
.
data
.
cloud_banner_lst
.
banners_json
.
length
>
0
)
{
if
(
res
.
data
.
cloud_banner_lst
&&
res
.
data
.
cloud_banner_lst
.
banners_json
&&
res
.
data
.
cloud_banner_lst
.
banners_json
.
length
>
0
)
{
// this.bannerList = res.data.cloud_banner_lst.banners_json;
// this.bannerList = res.data.cloud_banner_lst.banners_json;
let
bannerArr
=
[]
let
bannerArr
=
[]
debugger
res
.
data
.
cloud_banner_lst
.
banners_json
.
forEach
(
element
=>
{
res
.
data
.
cloud_banner_lst
.
banners_json
.
forEach
(
element
=>
{
if
(
element
.
image_url
)
{
if
(
element
.
image_url
)
{
bannerArr
.
push
(
element
);
bannerArr
.
push
(
element
);
...
@@ -520,14 +517,22 @@
...
@@ -520,14 +517,22 @@
aLinkRes
(
link
)
{
aLinkRes
(
link
)
{
let
resLink
=
''
let
resLink
=
''
if
(
link
)
{
if
(
link
)
{
resLink
=
''
resLink
=
link
}
else
{
}
else
{
resLink
=
'javascript:void(0);'
resLink
=
'javascript:void(0);'
}
}
console
.
log
(
524
,
resLink
)
return
resLink
return
resLink
},
},
returnBlank
(
val
)
{
let
res
=
''
if
(
val
)
{
res
=
'_blank'
}
else
{
res
=
''
}
return
res
},
// 监听浏览器滚动
// 监听浏览器滚动
handleScroll
()
{
handleScroll
()
{
let
scrollTop
=
window
.
pageYOffset
||
document
.
documentElement
.
scrollTop
||
document
.
body
.
scrollTop
let
scrollTop
=
window
.
pageYOffset
||
document
.
documentElement
.
scrollTop
||
document
.
body
.
scrollTop
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论