<template> <view class="footTool"> <view v-for="(setting,i) in settings" :key="i" class="page_item_btn" @click="operate(i)" hover-class="seimin-btn-hover">{{setting.name}}</view> </view> </template> <script> export default { methods: { operate(i) { this.$emit('operate', i); } }, props: { settings: { type: Array, default: () => [] } } }; </script> <style lang="less"> .footTool { position: fixed; left: 0; right: 0; bottom: 0; z-index: 9999; height: 88rpx; display: flex; justify-content: center; align-items: center; box-sizing: border-box; border-radius: 4rpx; .page_item_btn { flex: 1; height: 88rpx; background-image: linear-gradient(to right, #72c172, #3bb197); border-radius: 8rpx; line-height: 88rpx; color: #fff; font-size: 36rpx; font-weight: 700; text-align: center; margin-right: 16rpx; &:last-of-type { margin-right: 0; } &:only-of-type { margin: 0; } } } </style>