index.vue 7.3 KB

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