平安校园
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

161 regels
3.5 KiB

  1. <template>
  2. <view class="page">
  3. <view class="header">
  4. 工作台
  5. </view>
  6. <view class="card row" @click="NAV_TO('/pages/work/rollCall/index')">
  7. <view class="title">点名</view>
  8. <view class="des">通过人脸识别,提升学生点名效率</view>
  9. <view class="imgBox">
  10. <image src="/static/image/work/toRight1.png"></image>
  11. </view>
  12. <image src="/static/image/work/rollCall.png" class="modeLogo" mode=""></image>
  13. </view>
  14. <view class="gird">
  15. <view class="card row1" @click="NAV_TO('/pages/work/returnBed/index')">
  16. <view class="title">归寝</view>
  17. <view class="des">查看归寝情况</view>
  18. <view class="imgBox">
  19. <image src="/static/image/work/toRight.png"></image>
  20. </view>
  21. <image src="/static/image/work/returnBed.png" class="modeLogo" mode=""></image>
  22. </view>
  23. <view class="card row1" @click="NAV_TO('/pages/work/passengerFlow/index')">
  24. <view class="title">客流</view>
  25. <view class="des">查看客流情况</view>
  26. <view class="imgBox">
  27. <image src="/static/image/work/toRight.png"></image>
  28. </view>
  29. <image src="/static/image/work/passengerFlow.png" class="modeLogo" mode=""></image>
  30. </view>
  31. <view class="card" @click="NAV_TO('/pages/monitor/index')">
  32. <view class="title">监控管理</view>
  33. <view class="des">查看监控管理情况</view>
  34. <view class="imgBox">
  35. <image src="/static/image/work/toRight.png"></image>
  36. </view>
  37. <image src="/static/image/work/monitorManage.png" class="modeLogo" mode=""></image>
  38. </view>
  39. <view class="card">
  40. <view class="title">更多功能</view>
  41. <view class="des">敬请期待</view>
  42. <image src="/static/image/work/more.png" class="modeLogo" mode=""></image>
  43. </view>
  44. </view>
  45. </view>
  46. </template>
  47. <script>
  48. export default {
  49. data() {
  50. return {
  51. }
  52. },
  53. mounted(){
  54. },
  55. methods: {
  56. },
  57. }
  58. </script>
  59. <style lang="scss" scoped>
  60. .header{
  61. /* #ifdef H5*/
  62. padding-top: 42rpx;
  63. line-height: 56rpx;
  64. /* #endif */
  65. /* #ifndef H5*/
  66. padding-top: 88rpx;
  67. line-height: 88rpx;
  68. /* #endif */
  69. color: #fff;
  70. font-size: 34rpx;
  71. font-weight: 700;
  72. }
  73. .page{
  74. padding: 0 30rpx;
  75. }
  76. uni-page-body{
  77. /* #ifdef H5*/
  78. background-image: url('/static/image/work/bgh5.png');
  79. /* #endif */
  80. /* #ifndef H5*/
  81. background-image: url('/static/image/work/bg.png');
  82. /* #endif */
  83. background-position: top;
  84. background-size: 100% auto;
  85. background-repeat: no-repeat;
  86. }
  87. .card{
  88. width: 100%;
  89. height: 240rpx;
  90. border-radius: 20rpx;
  91. box-sizing: border-box;
  92. padding: 40rpx;
  93. position: relative;
  94. margin-top: 26rpx;
  95. box-shadow: 0 0 20rpx rgba(0,0,0,0.1);
  96. .title{
  97. color: #0670ED;
  98. font-size: 34rpx;
  99. font-weight: 700;
  100. }
  101. .des{
  102. color: #0670ED;
  103. opacity: 0.8;
  104. font-size: 26rpx;
  105. margin-top: 14rpx;
  106. }
  107. .imgBox{
  108. margin-top: 30rpx;
  109. uni-image{
  110. height: 50rpx;
  111. width: 76rpx;
  112. }
  113. }
  114. .modeLogo{
  115. width: 120rpx;
  116. height: 120rpx;
  117. position: absolute;
  118. right: 30rpx;
  119. bottom: 30rpx;
  120. }
  121. &.row{
  122. background: linear-gradient(to right,#F1F7FF,#D0E5FF);
  123. .modeLogo{
  124. width: 160rpx;
  125. height: 160rpx;
  126. }
  127. }
  128. &.row1{
  129. background: linear-gradient(to bottom,#F4F9FF,#FCFDFF);
  130. }
  131. }
  132. .gird{
  133. display: flex;
  134. flex-wrap: wrap;
  135. .card{
  136. width:48.5%;
  137. margin-right: 3%;
  138. height: 300rpx;
  139. background-color: #FEFEFF;
  140. &:nth-child(2n){
  141. margin-right: 0rpx;
  142. }
  143. &:last-child{
  144. .title{
  145. color: #999999;
  146. }
  147. .des{
  148. color: #999999;
  149. }
  150. }
  151. }
  152. .imgBox{
  153. margin-top: 80rpx;
  154. }
  155. }
  156. </style>