t-i-common.vue 982 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. <template>
  2. <view class="content">
  3. <view class="title">常用功能</view>
  4. <view class="list">
  5. <view class="item" v-for="(item,index) in 7" :key="index">
  6. <view class="icon">
  7. <image src="./icon/icon.png" mode=""></image>
  8. </view>
  9. <view class="name">通知公告</view>
  10. </view>
  11. </view>
  12. </view>
  13. </template>
  14. <script>
  15. export default {
  16. name:"t-i-common",
  17. data() {
  18. return {
  19. };
  20. }
  21. }
  22. </script>
  23. <style lang="scss">
  24. .content{
  25. margin-bottom: 30rpx;
  26. background-color: #FFFFFF;
  27. box-sizing: border-box;
  28. padding: 50rpx 25rpx;
  29. }
  30. .title{
  31. font-size: 36rpx;
  32. }
  33. .list{
  34. width: 700rpx;
  35. overflow: hidden;
  36. .item{
  37. margin-top: 30rpx;
  38. margin-right: 25rpx;
  39. width: 120rpx;
  40. float: left;
  41. .icon{
  42. width: 120rpx;
  43. text-align: center;
  44. image{
  45. width: 78rpx;
  46. height: 78rpx;
  47. }
  48. }
  49. .name{
  50. text-align: center;
  51. font-size: 26rpx;
  52. }
  53. }
  54. .item:nth-child(5n){
  55. margin-right: 0;
  56. }
  57. }
  58. </style>