t-i-common.vue 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. <template>
  2. <view class="content">
  3. <view class="title">
  4. <view class="text">常用功能</view>
  5. <view class="bars" @click="go_bars()">
  6. <uni-icons type="bars" color="#999" size="18"></uni-icons>
  7. </view>
  8. </view>
  9. <view class="list">
  10. <view class="item" v-for="(item,index) in 7" :key="index">
  11. <view class="icon">
  12. <image src="./icon/icon.png" mode=""></image>
  13. </view>
  14. <view class="name">通知公告</view>
  15. </view>
  16. </view>
  17. </view>
  18. </template>
  19. <script>
  20. export default {
  21. name: "t-i-common",
  22. data() {
  23. return {
  24. };
  25. },
  26. methods:{
  27. go_bars(){
  28. uni.navigateTo({
  29. url:"../../index/bars_sort/bars_sort"
  30. })
  31. }
  32. }
  33. }
  34. </script>
  35. <style lang="scss">
  36. .content {
  37. margin-bottom: 30rpx;
  38. background-color: #FFFFFF;
  39. box-sizing: border-box;
  40. padding: 50rpx 25rpx;
  41. }
  42. .title {
  43. display: flex;
  44. align-items: baseline;
  45. justify-content: space-between;
  46. .text {
  47. font-size: 36rpx;
  48. }
  49. .bars {
  50. width: 100rpx;
  51. text-align: right;
  52. }
  53. }
  54. .list {
  55. width: 700rpx;
  56. overflow: hidden;
  57. .item {
  58. margin-top: 30rpx;
  59. margin-right: 25rpx;
  60. width: 120rpx;
  61. float: left;
  62. .icon {
  63. width: 120rpx;
  64. text-align: center;
  65. image {
  66. width: 78rpx;
  67. height: 78rpx;
  68. }
  69. }
  70. .name {
  71. text-align: center;
  72. font-size: 26rpx;
  73. }
  74. }
  75. .item:nth-child(5n) {
  76. margin-right: 0;
  77. }
  78. }
  79. </style>