applicationCenter.vue 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166
  1. <template>
  2. <view class="app-page">
  3. <view class="handle-wrap">
  4. <view class="title">常用操作</view>
  5. <view class="tabs">
  6. <view class="tab-item">
  7. <image class="icon" src="/static/app/tab-1.png" mode="widthFix"></image>
  8. <view class="name">登记隐患</view>
  9. </view>
  10. <view class="tab-item">
  11. <image class="icon" src="/static/app/tab-2.png" mode="widthFix"></image>
  12. <view class="name">临时任务</view>
  13. </view>
  14. <view class="tab-item">
  15. <image class="icon" src="/static/app/tab-3.png" mode="widthFix"></image>
  16. <view class="name">检查记录</view>
  17. </view>
  18. <view class="tab-item">
  19. <image class="icon" src="/static/app/tab-4.png" mode="widthFix"></image>
  20. <view class="name">问题反馈</view>
  21. </view>
  22. </view>
  23. </view>
  24. <view class="app-category">
  25. <view class="title">应用分类</view>
  26. <view class="applist">
  27. <view class="app" v-for="(app,index) in apps" :key="index">
  28. <image class="icon" :src="app.href" mode="widthFix"></image>
  29. <view class="info">
  30. <view class="app-title">{{app.title}}</view>
  31. <view class="tag">{{app.tag}}</view>
  32. </view>
  33. </view>
  34. </view>
  35. </view>
  36. </view>
  37. </template>
  38. <script>
  39. export default {
  40. data() {
  41. return {
  42. apps:[]
  43. }
  44. },
  45. onShow() {
  46. this.getData()
  47. },
  48. methods: {
  49. getData(){
  50. this.apps=[{
  51. href:"",
  52. title:"满意度评价",
  53. tag:"及时评价"
  54. },{
  55. href:"",
  56. title:"满意度评价",
  57. tag:"及时评价"
  58. },{
  59. href:"",
  60. title:"满意度评价",
  61. tag:"及时评价"
  62. },{
  63. href:"",
  64. title:"满意度评价",
  65. tag:"及时评价"
  66. }]
  67. }
  68. }
  69. }
  70. </script>
  71. <style lang="scss" scoped>
  72. .app-page{
  73. padding: 32rpx;
  74. background-color: rgba(243, 244, 247, 1);
  75. box-sizing: border-box;
  76. min-height: 100vh;
  77. .handle-wrap{
  78. background: linear-gradient(159.65deg, #FFF8E8 11.95%, #FFFFFF 20.49%, #FFFFFF 86.47%),
  79. linear-gradient(0deg, #FFFFFF, #FFFFFF);
  80. border-radius: 12rpx;
  81. padding: 32rpx 0;
  82. .title{
  83. color: #000;
  84. font-size: 32rpx;
  85. padding-left:24rpx;
  86. }
  87. .tabs{
  88. display: flex;
  89. justify-content: space-around;
  90. align-items: center;
  91. padding:0 32rpx;
  92. margin-top: 32rpx;
  93. .tab-item{
  94. width: 112rpx;
  95. display: flex;
  96. justify-content: center;
  97. align-items: center;
  98. flex-direction: column;
  99. .icon{
  100. width: 96rpx;
  101. }
  102. .name{
  103. width: 100%;
  104. padding-top: 12rpx;
  105. color: rgba(0, 0, 0, 0.9);
  106. font-size: 28rpx;
  107. overflow: hidden;
  108. text-overflow: ellipsis;
  109. white-space: nowrap;
  110. word-break: break-all;
  111. }
  112. }
  113. }
  114. }
  115. .app-category{
  116. .title{
  117. color: #000;
  118. font-size: 32rpx;
  119. line-height: 1;
  120. padding: 48rpx 24rpx 32rpx 24rpx;
  121. }
  122. .applist{
  123. display: flex;
  124. flex-wrap: wrap;
  125. .app{
  126. width: 330rpx;
  127. height: 160rpx;
  128. background-color: #fff;
  129. border-radius: 16rpx;
  130. margin-bottom: 20rpx;
  131. display: flex;
  132. padding: 32rpx 0 0 28rpx;
  133. box-sizing: border-box;
  134. &:nth-child(2n){
  135. margin-left: 18rpx;
  136. }
  137. .icon{
  138. width: 66rpx;
  139. height: 66rpx;
  140. border-radius: 50%;
  141. background-color:rgba(151, 179, 255, 1);
  142. }
  143. .info{
  144. padding-left: 20rpx;
  145. padding-top: 4rpx;
  146. .app-title{
  147. color: rgba(34, 34, 34, 1);
  148. font-size: 32rpx;
  149. }
  150. .tag{
  151. margin-top: 6rpx;
  152. color: rgba(255, 171, 8, 1);
  153. font-size:24rpx;
  154. background: rgba(255, 171, 8, 0.1);
  155. border-radius: 12rpx;
  156. padding: 4rpx 10rpx;
  157. }
  158. }
  159. }
  160. }
  161. }
  162. }
  163. </style>