Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
T
techbook
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
front-end-dev
techbook
Commits
c7b2034c
Commit
c7b2034c
authored
Sep 27, 2020
by
anxixi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
首页相关功能
parent
6af6d3bf
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
22 deletions
+19
-22
PageTopindex.vue
src/components/index/PageTopindex.vue
+17
-21
index.vue
src/views/index.vue
+1
-0
index.vue
src/views/index/pages/index.vue
+1
-1
No files found.
src/components/index/PageTopindex.vue
View file @
c7b2034c
...
...
@@ -175,22 +175,22 @@
envisible
:
false
,
indextab
:
this
.
indextab_zh
,
indextab_zh
:[
{
id
:
1
,
name
:
this
.
$t
(
"topNav.index"
),
path
:
'/'
},
{
id
:
2
,
name
:
this
.
$t
(
"topNav.guess"
),
path
:
'/guesslist'
},
{
id
:
3
,
name
:
this
.
$t
(
"topNav.activity"
),
path
:
'/activitylist'
},
{
id
:
4
,
name
:
this
.
$t
(
"topNav.topic"
),
path
:
'/topicList'
},
{
id
:
5
,
name
:
this
.
$t
(
"topNav.match"
),
path
:
'/seeprojectlist'
},
{
id
:
6
,
name
:
this
.
$t
(
"topNav.article"
),
path
:
'/articleList'
},
{
id
:
7
,
name
:
this
.
$t
(
"topNav.industry"
),
path
:
'/industryReport'
},
{
id
:
8
,
name
:
this
.
$t
(
"topNav.cooperationcase"
),
path
:
'/successfulcase'
},
{
id
:
1
,
name
:
this
.
$t
(
"topNav.index"
),
path
:
'/'
,
pathchild
:
'/'
},
{
id
:
2
,
name
:
this
.
$t
(
"topNav.guess"
),
path
:
'/guesslist'
,
pathchild
:
'/guessDetail'
},
{
id
:
3
,
name
:
this
.
$t
(
"topNav.activity"
),
path
:
'/activitylist'
,
pathchild
:
'/eventdetail'
},
{
id
:
4
,
name
:
this
.
$t
(
"topNav.topic"
),
path
:
'/topicList'
,
pathchild
:
'/topicDetails'
},
{
id
:
5
,
name
:
this
.
$t
(
"topNav.match"
),
path
:
'/seeprojectlist'
,
pathchild
:
'/seeprojectlist'
},
{
id
:
6
,
name
:
this
.
$t
(
"topNav.article"
),
path
:
'/articleList'
,
pathchild
:
'/articleDetail'
},
{
id
:
7
,
name
:
this
.
$t
(
"topNav.industry"
),
path
:
'/industryReport'
,
pathchild
:
'/industryReport'
},
{
id
:
8
,
name
:
this
.
$t
(
"topNav.cooperationcase"
),
path
:
'/successfulcase'
,
pathchild
:
'/casedetails'
},
],
indextab_en
:[
{
id
:
1
,
name
:
this
.
$t
(
"topNav.index"
),
path
:
'/'
},
{
id
:
2
,
name
:
this
.
$t
(
"topNav.findProject"
),
path
:
'/seeprojectlist'
},
{
id
:
3
,
name
:
this
.
$t
(
"topNav.findCustomer"
),
path
:
'/bigBusiness/list'
},
{
id
:
4
,
name
:
this
.
$t
(
"topNav.Findevent"
),
path
:
'/activitylist'
},
{
id
:
5
,
name
:
this
.
$t
(
"topNav.industry"
),
path
:
'/industryReport'
},
{
id
:
6
,
name
:
this
.
$t
(
"topNav.cooperationcase"
),
path
:
'/successfulcase'
},
{
id
:
1
,
name
:
this
.
$t
(
"topNav.index"
),
path
:
'/'
,
pathchild
:
'/'
},
{
id
:
2
,
name
:
this
.
$t
(
"topNav.findProject"
),
path
:
'/seeprojectlist'
,
pathchild
:
'/seeprojectlist'
},
{
id
:
3
,
name
:
this
.
$t
(
"topNav.findCustomer"
),
path
:
'/bigBusiness/list'
,
pathchild
:
'/bigBusiness/list'
},
{
id
:
4
,
name
:
this
.
$t
(
"topNav.Findevent"
),
path
:
'/activitylist'
,
pathchild
:
'/eventdetail'
},
{
id
:
5
,
name
:
this
.
$t
(
"topNav.industry"
),
path
:
'/industryReport'
,
pathchild
:
'/industryReport'
},
{
id
:
6
,
name
:
this
.
$t
(
"topNav.cooperationcase"
),
path
:
'/successfulcase'
,
pathchild
:
'/casedetails'
},
],
index_hover
:
1
,
lang
:
this
.
$i18n
.
locale
,
...
...
@@ -328,7 +328,7 @@
},
tabstate
(
path
){
for
(
let
i
in
this
.
indextab
){
if
(
path
==
this
.
indextab
[
i
].
path
){
if
(
path
==
this
.
indextab
[
i
].
path
||
path
==
this
.
indextab
[
i
].
pathchild
){
this
.
index_hover
=
this
.
indextab
[
i
].
id
return
}
else
this
.
index_hover
=
1
...
...
@@ -342,12 +342,8 @@
window
.
addEventListener
(
'scroll'
,
this
.
menu
);
this
.
indextab
=
this
.
$i18n
.
locale
==
'zh-CN'
?
this
.
indextab_zh
:
this
.
indextab_en
;
this
.
wxopenlogin
();
for
(
let
i
in
this
.
indextab
){
if
(
this
.
$route
.
path
==
this
.
indextab
[
i
].
path
){
this
.
index_hover
=
this
.
indextab
[
i
].
id
return
}
else
this
.
index_hover
=
1
}
console
.
log
(
this
.
$route
.
path
)
this
.
tabstate
(
this
.
$route
.
path
);
},
watch
:{
tabpath
(
val
){
...
...
src/views/index.vue
View file @
c7b2034c
...
...
@@ -158,6 +158,7 @@
// this.maiDianFunc(data);
// })
globalMsg
.
$on
(
"newTop_tab"
,(
data
)
=>
{
console
.
log
(
12333333
)
this
.
tabpath
=
data
;
})
globalMsg
.
$on
(
"topShow"
,(
data
)
=>
{
...
...
src/views/index/pages/index.vue
View file @
c7b2034c
...
...
@@ -374,7 +374,7 @@
<p
class=
"ellipsisFont1"
style=
"margin-top: 5px;color: #AAAAAA;width: 100%;height: 17px;overflow: hidden;line-height: 17px;"
>
{{
item
.
isProfessor
==
1
?
item
.
professorIntroduction
:
item
.
createdTimeStr
}}
</p>
</div>
</div>
<p
class=
"ellipsisFont2"
style=
"margin: 10px 0;line-height: 24px;width: 100%;max-height: 48px;overflow: hidden;color: #1A1A1E;"
v-html=
"item.pcState==1?publicFun.getTextInRichtext(item.
discussContent):publicFun.analyzeEmoji(item.discuss
Content)"
></p>
<p
class=
"ellipsisFont2"
style=
"margin: 10px 0;line-height: 24px;width: 100%;max-height: 48px;overflow: hidden;color: #1A1A1E;"
v-html=
"item.pcState==1?publicFun.getTextInRichtext(item.
simpleContent):publicFun.analyzeEmoji(item.simple
Content)"
></p>
<div
class=
"gendisplay"
style=
"padding: 10px;background: #F5F5F5;"
>
<p
style=
"width: calc(100% - 82px);color:#1A1A1E;"
>
#
{{
item
.
baseTopic
.
topicTitle
}}
#
</p>
<p
style=
"width: 82px;"
><img
class=
"imgInfo"
style=
"height: 56px;width: 82px;border-radius: 3px;border: none;"
:style=
"
{backgroundImage:'url('+(item.baseTopic.topicCover?item.baseTopic.topicCover:require('../../../assets/img/topicbackground.jpg'))+')'}" alt="">
</p>
...
...
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