t-w-application1.vue 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. <template>
  2. <view class="headers">
  3. <view class="headers_list" v-for="(item,index) in infos" :key="index">
  4. <view class="headers_title">
  5. <text class="headers_title_h1">
  6. {{item.title}}
  7. </text>
  8. <!-- <text class="headers_title_h2">
  9. {{item.titles}}
  10. </text> -->
  11. </view>
  12. <view class="headers_ul" >
  13. <view class="headers_li" v-for="(items,index) in item.lists" :key="index">
  14. <view class="headers_li_img">
  15. <image :src="items.imgs" mode=""></image>
  16. </view>
  17. <view class="headers_li_text">
  18. {{items.texts}}
  19. </view>
  20. </view>
  21. </view>
  22. </view>
  23. </view>
  24. </template>
  25. <script>
  26. export default {
  27. data() {
  28. return {
  29. infos:[
  30. {title:"我的常用",
  31. titles:"(长按图标可添加删除)",
  32. lists:[
  33. {imgs:"/../static/img/tongzhi.png",texts:"通知公告"},
  34. {imgs:"/../static/img/daiban.png",texts:"待办工作"},
  35. {imgs:"/../static/img/zhiban.png",texts:"值班信息"},
  36. {imgs:"/../static/img/banzu.png",texts:"班组信息"},
  37. ]},
  38. {title:"我的常用",
  39. titles:"(长按图标可添加删除)",
  40. lists:[
  41. {imgs:"/../static/img/tongzhi.png",texts:"通知公告"},
  42. {imgs:"/../static/img/daiban.png",texts:"待办工作"},
  43. {imgs:"/../static/img/zhiban.png",texts:"值班信息"},
  44. {imgs:"/../static/img/banzu.png",texts:"班组信息"},
  45. ]},
  46. {title:"我的常用",
  47. titles:"(长按图标可添加删除)",
  48. lists:[
  49. {imgs:"/../static/img/tongzhi.png",texts:"通知公告"},
  50. {imgs:"/../static/img/daiban.png",texts:"待办工作"},
  51. {imgs:"/../static/img/zhiban.png",texts:"值班信息"},
  52. {imgs:"/../static/img/banzu.png",texts:"班组信息"},
  53. ]},
  54. ]
  55. };
  56. }
  57. }
  58. </script>
  59. <style >
  60. .headers{
  61. width: 95%;
  62. margin: 15rpx auto;
  63. /* background-color: #fff; */
  64. /* border-radius: 40rpx; */
  65. }
  66. .headers_ul{
  67. display: flex;
  68. flex-direction: row;
  69. justify-content: space-around;
  70. margin-top: 10rpx;
  71. }
  72. .headers_title{
  73. margin-left: 40rpx;
  74. padding-top: 10rpx;
  75. padding-bottom: 5rpx;
  76. }
  77. .headers_li{
  78. text-align: center;
  79. margin-bottom: 10rpx;
  80. }
  81. .headers_li_img>image{
  82. width: 100rpx;
  83. height: 100rpx;
  84. }
  85. .headers_li_text{
  86. font-size: 14px;
  87. }
  88. .headers_title_h2{
  89. font-size: 12rpx;
  90. color: #8F939C;
  91. }
  92. .headers_list{
  93. background-color: #FFFFFF;
  94. margin-bottom: 20rpx;
  95. margin-top: 20rpx;
  96. border-radius: 40rpx;
  97. }
  98. </style>