index.vue 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293
  1. <template>
  2. <view class="index-container">
  3. <view class="project" v-if="project.id">
  4. <view class="project-box" @click="$navigateTo('/pages/projectList/projectList')">
  5. <uni-icons custom-prefix="iconfont" type="icon-wodegongsi-gaoliang" class="inherit-icons"
  6. color="#08979c">
  7. </uni-icons>
  8. <text class="name hui-ellipsis">{{project.name}}</text>
  9. <uni-icons class="inherit-icons" type="forward" size="18" color="#c1c0c8"></uni-icons>
  10. </view>
  11. </view>
  12. <view class="banner-box">
  13. <uv-swiper :list="list" indicator indicatorMode="line" circular bgColor="transparent" height="200">
  14. </uv-swiper>
  15. </view>
  16. <view class="index-group">
  17. <view class="title">工单管理</view>
  18. <view class="group-box">
  19. <view class="small-box">
  20. <view class="small">
  21. <view class="group-veiw bg1">
  22. <text class="label">维修工单</text>
  23. <view class="group-icon">
  24. <uni-icons custom-prefix="iconfont" type="icon-weixiugongdan" color="#fff" size="30">
  25. </uni-icons>
  26. </view>
  27. </view>
  28. </view>
  29. <view class="small">
  30. <view class="group-veiw bg2">
  31. <text class="label">保洁工单</text>
  32. <view class="group-icon">
  33. <uni-icons custom-prefix="iconfont" type="icon-jinribaojie" color="#fff" size="30">
  34. </uni-icons>
  35. </view>
  36. </view>
  37. </view>
  38. </view>
  39. <view class="group-item">
  40. <view class="group-veiw bg3">
  41. <text class="label">运维工单</text>
  42. <view class="group-icon">
  43. <uni-icons custom-prefix="iconfont" type="icon-yunwei-jiancebaogao" color="#fff" size="30">
  44. </uni-icons>
  45. </view>
  46. </view>
  47. </view>
  48. </view>
  49. <view class="title">合同管理</view>
  50. <view class="group-box">
  51. <view class="group-item">
  52. <view class="group-veiw bg4">
  53. <text class="label">合同列表</text>
  54. <view class="group-icon">
  55. <uni-icons custom-prefix="iconfont" type="icon-hetongguanli" color="#fff" size="30">
  56. </uni-icons>
  57. </view>
  58. </view>
  59. </view>
  60. <view class="small-box">
  61. <view class="small">
  62. <view class="group-veiw bg5">
  63. <text class="label">公司合同</text>
  64. <view class="group-icon">
  65. <uni-icons custom-prefix="iconfont" type="icon-anli" color="#fff" size="30">
  66. </uni-icons>
  67. </view>
  68. </view>
  69. </view>
  70. <view class="small">
  71. <view class="group-veiw bg6">
  72. <text class="label">个人合同</text>
  73. <view class="group-icon">
  74. <uni-icons custom-prefix="iconfont" type="icon-gerenhetongchaxun" color="#fff"
  75. size="30">
  76. </uni-icons>
  77. </view>
  78. </view>
  79. </view>
  80. </view>
  81. </view>
  82. <view class="title">账单管理</view>
  83. <view class="group-box">
  84. <view class="small-box small-boxs">
  85. <view class="small">
  86. <view class="group-veiw bg7">
  87. <text class="label">合同账单</text>
  88. <view class="group-icon">
  89. <uni-icons custom-prefix="iconfont" type="icon-jiesuanguanli" color="#fff" size="30">
  90. </uni-icons>
  91. </view>
  92. </view>
  93. </view>
  94. </view>
  95. <view class="small-box small-boxs">
  96. <view class="small">
  97. <view class="group-veiw bg8">
  98. <text class="label">付款账单</text>
  99. <view class="group-icon">
  100. <uni-icons custom-prefix="iconfont" type="icon-yuemingxi" color="#fff" size="30">
  101. </uni-icons>
  102. </view>
  103. </view>
  104. </view>
  105. </view>
  106. </view>
  107. <view class="title">发票管理</view>
  108. <view class="group-box">
  109. <view class="small-box small-boxs">
  110. <view class="small">
  111. <view class="group-veiw bg9">
  112. <text class="label">合同发票</text>
  113. <view class="group-icon">
  114. <uni-icons custom-prefix="iconfont" type="icon-app-hetongguanli-hetongfapiao"
  115. color="#fff" size="30">
  116. </uni-icons>
  117. </view>
  118. </view>
  119. </view>
  120. </view>
  121. <view class="small-box small-boxs">
  122. <view class="small">
  123. <view class="group-veiw bg10">
  124. <text class="label">付款发票</text>
  125. <view class="group-icon">
  126. <uni-icons custom-prefix="iconfont" type="icon-integralrecord" color="#fff" size="30">
  127. </uni-icons>
  128. </view>
  129. </view>
  130. </view>
  131. </view>
  132. </view>
  133. </view>
  134. </view>
  135. </template>
  136. <script>
  137. import {
  138. getProjectDetailById
  139. } from '@/request/api/project'
  140. export default {
  141. data() {
  142. return {
  143. list: [
  144. 'https://images.unsplash.com/photo-1592229505726-ca121723b8ef?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wyMDUzMDJ8MHwxfHNlYXJjaHw0Mnx8aG90ZWx8ZW58MXx8fHwxNjg3NzA1MjkwfDA&ixlib=rb-4.0.3&q=80&w=1080'
  145. ],
  146. project: {}
  147. }
  148. },
  149. onShow() {
  150. this.project = this.$store.getters.project;
  151. },
  152. methods: {}
  153. }
  154. </script>
  155. <style lang="scss">
  156. .index-container {
  157. background: #fff;
  158. box-sizing: border-box;
  159. border-top: 2rpx solid $uni-border-1;
  160. min-height: 100vh;
  161. padding-bottom: 40rpx;
  162. .project {
  163. max-width: 100%;
  164. display: inline-block;
  165. padding: 30rpx;
  166. box-sizing: border-box;
  167. .project-box {
  168. box-sizing: border-box;
  169. padding: 0 30rpx;
  170. height: 80rpx;
  171. background-color: #ffffff;
  172. border-radius: 80rpx;
  173. box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.12);
  174. display: flex;
  175. align-items: center;
  176. .name {
  177. margin: 0 12rpx;
  178. font-weight: 500;
  179. flex: 1;
  180. }
  181. }
  182. }
  183. .banner-box {
  184. padding: 0 30rpx;
  185. }
  186. .index-group {
  187. padding: 0 20rpx;
  188. .title {
  189. font-size: 32rpx;
  190. font-weight: 700;
  191. padding: 30rpx 10rpx 20rpx 10rpx;
  192. }
  193. .group-box {
  194. display: flex;
  195. flex-wrap: wrap;
  196. align-items: flex-start;
  197. }
  198. .group-item {
  199. width: 50%;
  200. height: 400rpx;
  201. padding: 10rpx;
  202. box-sizing: border-box;
  203. }
  204. .small-box {
  205. width: 50%;
  206. height: 400rpx;
  207. box-sizing: border-box;
  208. &.small-boxs {
  209. height: 200rpx;
  210. }
  211. .small {
  212. height: 200rpx;
  213. padding: 10rpx;
  214. box-sizing: border-box;
  215. }
  216. }
  217. .group-veiw {
  218. width: 100%;
  219. height: 100%;
  220. border-radius: 16rpx;
  221. position: relative;
  222. .label {
  223. color: #fff;
  224. font-weight: 500;
  225. position: absolute;
  226. top: 40rpx;
  227. left: 40rpx;
  228. }
  229. .group-icon {
  230. position: absolute;
  231. bottom: 40rpx;
  232. right: 40rpx;
  233. }
  234. }
  235. .bg1 {
  236. background-color: #88d498;
  237. }
  238. .bg2 {
  239. background-color: #7ad9ff;
  240. }
  241. .bg3 {
  242. background-color: #ffb997;
  243. }
  244. .bg4 {
  245. background-color: #f67e7d;
  246. }
  247. .bg5 {
  248. background-color: #ffaaaa;
  249. }
  250. .bg6 {
  251. background-color: #9ac0cd;
  252. }
  253. .bg7 {
  254. background-color: #d8d8ff;
  255. }
  256. .bg8 {
  257. background-color: #bfbfbf;
  258. }
  259. .bg9 {
  260. background-color: #40e0d0;
  261. }
  262. .bg10 {
  263. background-color: #f8d3da;
  264. }
  265. }
  266. }
  267. </style>