Commit 46decc56 by sunchao

首页

parent 5d999ca9
...@@ -73,7 +73,7 @@ ...@@ -73,7 +73,7 @@
"selectedIconPath": "static/tabbar/cffp_active.png", // 选中时的图片路径 "selectedIconPath": "static/tabbar/cffp_active.png", // 选中时的图片路径
"text": "CFFP认证" // tab 上按钮文字 "text": "CFFP认证" // tab 上按钮文字
},{ },{
"pagePath": "pages/index/index", "pagePath": "pages/personalCenter/personalCenter",
"iconPath": "static/tabbar/my.png", "iconPath": "static/tabbar/my.png",
"selectedIconPath": "static/tabbar/my_active.png", "selectedIconPath": "static/tabbar/my_active.png",
"text": "我的" "text": "我的"
......
<template> <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="content">
<view class="featureContent">
<view class="text-area"> <!-- 模块导航 -->
<text class="title">{{title}}</text> <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>
<view class="">
<courselist></courselist> <courselist></courselist>
</view> </view>
</template> </template>
<script> <script>
...@@ -13,7 +37,16 @@ ...@@ -13,7 +37,16 @@
export default { export default {
data() { data() {
return { 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:{ comments:{
...@@ -23,7 +56,9 @@ ...@@ -23,7 +56,9 @@
}, },
methods: { methods: {
featureSelect(featureItem){
console.log(featureItem)
}
}, },
onShow() { onShow() {
if(!uni.getStorageSync('isLogin')){ if(!uni.getStorageSync('isLogin')){
...@@ -36,30 +71,34 @@ ...@@ -36,30 +71,34 @@
} }
</script> </script>
<style> <style lang="scss">
.content { .content {
display: flex; margin-bottom: 80rpx;
flex-direction: column; overflow: hidden;
align-items: center; .featureContent{
justify-content: center; padding-top: 10px;
} .nav_wrapper{
display: flex;
.logo { align-items: center;
height: 200rpx; justify-content: space-around;
width: 200rpx; flex-wrap: wrap;
margin-top: 200rpx; width: 100%;
margin-left: auto; .nav_content{
margin-right: auto; display: flex;
margin-bottom: 50rpx; flex-direction: column;
} align-items: center;
justify-content: center;
.text-area { width: 0;
display: flex; flex:0 0 25%;
justify-content: center; margin-bottom: 10px;
font-size: 14px;
color: #666;
>div:first-child{
width: 48px;
}
}
}
}
} }
.title {
font-size: 36rpx;
color: #8f8f94;
}
</style> </style>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment