暖心人
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

57 lines
1.1 KiB

1 year ago
<template>
<view class="footer-nav row">
1 year ago
<view class="nav-item col-3 row" v-for="(item,index) in button" @click="commitFootCheck(item)">
<view class="nav-ico col-12">
<image mode="heightFix" class="img" :src="item.image+((item.name === footCheck)?'-active':'')+'.png'"/>
</view>
<view class="nav-title col-12" :class="{active:(item.name === footCheck)}">{{ item.title }}</view>
</view>
</view>
<u-toast ref="uToast"></u-toast>
1 year ago
</template>
<script>
import {
imghost
} from '@/config/host.js'
1 year ago
import api from "@/utils/functions";
1 year ago
export default {
1 year ago
props: {
button:{
type:Object,
default:[],
}
},
data() {
return {
footCheck: 'home',
title: 'Hello',
loading: true,
1 year ago
marginTop:0,
}
},
onLoad() {
1 year ago
},
1 year ago
methods: {
commitFootCheck(item) {
let that = this;
1 year ago
if(item.name !== 'disabled'){
that.footCheck = item.name;
}
1 year ago
that.$emit('change',item)
},
},
watch: {
1 year ago
}
}
1 year ago
</script>
<style lang="scss">
@import '@/components/FooterNav/components/index.scss';
1 year ago
</style>