75 lines
1.6 KiB
Vue
75 lines
1.6 KiB
Vue
<style lang='scss' scoped>
|
|
.moreNavBar{
|
|
width: 100%;
|
|
height: 100%;
|
|
background-color: #F9F9F9;
|
|
padding: 30rpx;
|
|
:not(not) {
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
.home-nav{
|
|
background-color: #fff;
|
|
border-radius: 16rpx;
|
|
box-shadow: $box-shadow;
|
|
// height: 400rpx;
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
padding: 30rpx;
|
|
&-box{
|
|
width: 25%;
|
|
text-align: center;
|
|
margin-bottom: 20rpx;
|
|
&-icon{
|
|
width: 100rpx;
|
|
height: 100rpx;
|
|
// padding: 16rpx;
|
|
// background: linear-gradient(-55deg, #52AA52, #76D296);
|
|
// box-shadow: 0px 9px 15px 0px rgba(87, 175, 91, 0.3);
|
|
border-radius: 50%;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
color: #fff;
|
|
margin: 0 auto;
|
|
margin-bottom: 20rpx;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
</style>
|
|
<template>
|
|
<view class="moreNavBar">
|
|
<view class="home-nav">
|
|
<view class="home-nav-box" v-for="(item,index) in navListArr" :key="index" @click="goFuctionUrlFn(item)">
|
|
<!-- <image src="../../static/images/car.png" mode=""></image> -->
|
|
<view class="home-nav-box-icon" :style="{background:item.background,boxShadow:item.boxShadow}">
|
|
<tui-icon :name="item.icon" size="50" color="#fff"></tui-icon>
|
|
</view>
|
|
<view class="home-nav-box-text">{{item.name}}</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</template>
|
|
<script>
|
|
import allNavList from "@/common/script/allNavList.js"
|
|
export default {
|
|
data() {
|
|
return {
|
|
navListArr:[]
|
|
}
|
|
},
|
|
onLoad() {
|
|
console.log(allNavList,"allNavList");
|
|
this.navListArr = allNavList;
|
|
},
|
|
methods: {
|
|
goFuctionUrlFn(item){
|
|
uni.navigateTo({
|
|
url:item.url
|
|
})
|
|
},
|
|
}
|
|
}
|
|
</script>
|