Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
肖康
/
H5_2.0
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
e6f67aee
authored
May 18, 2023
by
肖康
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
首页 修改
parent
888f9e25
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
29 additions
and
13 deletions
assets/css/index/index.scss
components/drag-button-follow/drag-button-follow.vue
pages/index/index.vue
assets/css/index/index.scss
View file @
e6f67aee
...
...
@@ -103,22 +103,22 @@
.cdcons
{
position
:
absolute
;
width
:
200rpx
;
height
:
292rpx
;
background
:
#292B33
;
border-radius
:
10px
;
padding
:
0
24rpx
;
padding-bottom
:
10rpx
;
display
:
none
;
top
:
75rpx
;
left
:
-150rpx
;
z-index
:
2
;
a
{
height
:
73rpx
;
display
:
block
;
width
:
152rpx
;
border-bottom
:
1rpx
solid
#484B59
;
color
:
#fff
;
line-height
:
72rpx
;
font-size
:
24rpx
;
&
:last-child
{
border
:
0rpx
;
}
...
...
components/drag-button-follow/drag-button-follow.vue
View file @
e6f67aee
...
...
@@ -18,11 +18,11 @@
@touchstart="touchstart"
@touchend="touchend"
>
<
view
class=
"navxfbox25"
>
<
a
class=
"navxfbox25"
:href=
"url"
target=
"_balnk"
>
<text
class=
"icon iconfont icon-qq icon-qqnavxf"
></text>
<view
class=
"texttmavsk"
>
QQ
</view>
<view
class=
"texttmavsk"
>
咨询
</view>
</
view
>
</
a
>
<slot>
</slot>
...
...
@@ -47,6 +47,11 @@
type
:
Boolean
,
default
:
true
},
url
:
{
type
:
String
,
default
:
''
},
follow
:
{
type
:
String
|
Boolean
,
default
:
'all'
...
...
pages/index/index.vue
View file @
e6f67aee
<
template
>
<view
class=
"page indexPage"
>
<drag-button-follow
follow=
"left,right"
className=
"drag-button"
class=
"drag-button"
></drag-button-follow>
<drag-button-follow
follow=
"left,right"
className=
"drag-button"
class=
"drag-button"
:url=
"kfurl"
></drag-button-follow>
<view
class=
"header "
:class=
"
{'fixedtop':scrollTop>45}">
<view
class=
"search-topb row bothSide "
>
<image
src=
"../../static/logosmall.png"
></image>
...
...
@@ -17,8 +17,8 @@
<text
class=
"icon iconfont icon-candan"
></text>
<text
class=
"sj"
></text>
<view
class=
"cdcons"
>
<a
:
url=
"item.url"
v-for=
"(item,index) in obj.h5_home_function_nav
"
:key=
"index"
>
{{
item
.
t
ti
le
}}
</a>
<a
:
href=
"item.url"
v-for=
"(item,index) in pbobj.h5_home_hide_menu
"
:key=
"index"
>
{{
item
.
t
it
le
}}
</a>
</view>
</view>
</view>
...
...
@@ -156,19 +156,18 @@
</
template
>
<
script
>
import
{
Ichunt_Api
Ichunt_Api
,
Api_Url
}
from
'@/util/api.js'
;
import
bottomNavFixed
from
'@/components/bottom_nav.vue'
;
export
default
{
data
()
{
return
{
kfurl
:
""
,
autoplay
:
true
,
scrollTop
:
0
,
bannerlist
:
[]
,
pbobj
:{}
,
obj
:
{},
h5_home_concept_text
:
[],
h5_home_function_nav
:
[],
h5_home_original_supply
:
[],
brandact
:
1
,
newsindex
:
0
,
translateY
:
0
,
...
...
@@ -217,7 +216,19 @@
}
this
.
intervalHandler
=
setInterval
(()
=>
{
this
.
moveUp
()
},
5000
)
},
10000
)
}
});
this
.
request
(
Ichunt_Api
+
"/api/common/data"
,
'GET'
,
{},
).
then
(
res
=>
{
if
(
res
.
err_code
===
0
)
{
console
.
log
(
res
.
data
)
this
.
pbobj
=
res
.
data
;
this
.
kfurl
=
this
.
pbobj
.
kfqq_xk
.
data
}
});
this
.
request
(
Api_Url
+
"/msg/allnum"
,
'POST'
,
{},
).
then
(
res
=>
{
if
(
res
.
err_code
===
0
)
{
console
.
log
(
res
.
data
)
}
});
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment