sh-cell.vue 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. <template>
  2. <view class="sh-user-menu-box u-m-b-10">
  3. <view class="menu-item u-flex u-row-between u-border-bottom" hover-stay-time="150" hover-class="u-cell-hover" v-for="(item, index) in list" :key="index" @tap="jump(item)">
  4. <view class="menu-head u-flex u-col-center">
  5. <image class="menu-img u-m-r-10" :src="item.image" mode=""></image>
  6. <view class="menu-title ">{{ item.name }}</view>
  7. </view>
  8. <view class="u-iconfont uicon-arrow-right" style="color: #969799;font-size: 28rpx;"></view>
  9. </view>
  10. </view>
  11. </template>
  12. <script>
  13. /**
  14. *shCell-功能列表
  15. * @property {Array} list - 列表信息
  16. */
  17. export default {
  18. components: {},
  19. data() {
  20. return {};
  21. },
  22. props: {
  23. list: {
  24. type: Array,
  25. default: () => {
  26. return [];
  27. }
  28. }
  29. },
  30. computed: {},
  31. methods: {
  32. jump(data) {
  33. this.$tools.routerTo(data.path);
  34. }
  35. }
  36. };
  37. </script>
  38. <style lang="scss" scoped>
  39. .menu-item {
  40. background-color: #fff;
  41. width: 100%;
  42. padding: 26rpx 32rpx;
  43. font-size: 28rpx;
  44. line-height: 54rpx;
  45. .menu-img {
  46. width: 36rpx;
  47. height: 36rpx;
  48. }
  49. .menu-title {
  50. font-size: 26rpx;
  51. color: #999;
  52. }
  53. }
  54. </style>