Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
CFFP-HB
Overview
Overview
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chao Sun
CFFP-HB
Commits
46decc56
Commit
46decc56
authored
Nov 04, 2022
by
sunchao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
首页
parent
5d999ca9
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
68 additions
and
29 deletions
+68
-29
pages.json
+1
-1
pages/index/index.vue
+67
-28
static/moduleIcon/more.png
+0
-0
No files found.
pages.json
View file @
46decc56
...
...
@@ -73,7 +73,7 @@
"selectedIconPath"
:
"static/tabbar/cffp_active.png"
,
//
选中时的图片路径
"text"
:
"CFFP认证"
//
tab
上按钮文字
},{
"pagePath"
:
"pages/
index/index
"
,
"pagePath"
:
"pages/
personalCenter/personalCenter
"
,
"iconPath"
:
"static/tabbar/my.png"
,
"selectedIconPath"
:
"static/tabbar/my_active.png"
,
"text"
:
"我的"
...
...
pages/index/index.vue
View file @
46decc56
<
template
>
<view
class=
"top"
>
<view
class=
"compony"
>
银盾保险经纪
</view>
<view
class=
"search"
>
<img
src=
"/static/message.png"
alt=
""
>
</view>
<view
class=
"banner"
>
</view>
<view
class=
"meaasge"
>
<img
src=
"/static/horn.png"
alt=
""
>
</view>
</view>
<view
class=
"content"
>
<view
class=
"text-area"
>
<text
class=
"title"
>
{{
title
}}
</text>
<view
class=
"featureContent"
>
<!-- 模块导航 -->
<view
class=
"nav_wrapper"
>
<view
class=
"nav_content"
v-for=
"featureItem in featureLists"
@
click=
"featureSelect(featureItem)"
>
<view>
<img
:src=
"'/static/moduleIcon/'+featureItem.icon + '.png'"
alt=
""
srcset=
""
>
</view>
<view>
{{
featureItem
.
name
}}
</view>
</view>
</view>
</view>
</view>
<view
class=
""
>
<courselist></courselist>
</view>
</
template
>
<
script
>
...
...
@@ -13,7 +37,16 @@
export
default
{
data
()
{
return
{
title
:
'首页'
featureLists
:[
{
key
:
'00'
,
name
:
'销售课程'
,
icon
:
'salesCourse'
,
link
:
''
,
isOpen
:
true
},
{
key
:
'01'
,
name
:
'我的积分'
,
icon
:
'integral'
,
link
:
''
,
isOpen
:
false
},
{
key
:
'02'
,
name
:
'申请加盟'
,
icon
:
'applyJoin'
,
link
:
''
,
isOpen
:
true
},
{
key
:
'03'
,
name
:
'学习认证'
,
icon
:
'learningCertify'
,
link
:
''
,
isOpen
:
true
},
{
key
:
'04'
,
name
:
'邀请加盟'
,
icon
:
'shareJoin'
,
link
:
''
,
isOpen
:
true
},
{
key
:
'05'
,
name
:
'我的分享'
,
icon
:
'share'
,
link
:
''
,
isOpen
:
true
},
{
key
:
'06'
,
name
:
'我的团队'
,
icon
:
'team'
,
link
:
''
,
isOpen
:
true
},
{
key
:
'07'
,
name
:
'更多功能'
,
icon
:
'more'
,
link
:
''
,
isOpen
:
true
}
]
}
},
comments
:{
...
...
@@ -23,7 +56,9 @@
},
methods
:
{
featureSelect
(
featureItem
){
console
.
log
(
featureItem
)
}
},
onShow
()
{
if
(
!
uni
.
getStorageSync
(
'isLogin'
)){
...
...
@@ -36,30 +71,34 @@
}
</
script
>
<
style
>
<
style
lang=
"scss"
>
.content
{
display
:
flex
;
flex-direction
:
column
;
align-items
:
center
;
justify-content
:
center
;
}
.logo
{
height
:
200
rpx
;
width
:
200
rpx
;
margin-top
:
200
rpx
;
margin-left
:
auto
;
margin-right
:
auto
;
margin-bottom
:
50
rpx
;
}
.text-area
{
display
:
flex
;
justify-content
:
center
;
margin-bottom
:
80
rpx
;
overflow
:
hidden
;
.featureContent{
padding-top
:
10px
;
.nav_wrapper{
display
:
flex
;
align-items
:
center
;
justify-content
:
space-around
;
flex-wrap
:
wrap
;
width
:
100%
;
.nav_content{
display
:
flex
;
flex-direction
:
column
;
align-items
:
center
;
justify-content
:
center
;
width
:
0
;
flex
:
0
0
25%
;
margin-bottom
:
10px
;
font-size
:
14px
;
color
:
#666
;
>
div
:
first-child
{
width
:
48px
;
}
}
}
}
}
.title
{
font-size
:
36
rpx
;
color
:
#8f8f94
;
}
</
style
>
static/moduleIcon/more.png
0 → 100644
View file @
46decc56
5.63 KB
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