control.vue 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. <template>
  2. <view class="control-index">
  3. <view class="control-off">
  4. <view class="control-off-icon">
  5. <uni-icons type="icon-yiping" custom-prefix="iconfont" color="#fff" size="20"></uni-icons>
  6. </view>
  7. <view class="control-off-label">{{title}}</view>
  8. <view class="control-off-btn">开门</view>
  9. </view>
  10. <view class="common-charts">
  11. <view class="common-chart-title">实时考勤</view>
  12. <view class="common-chart-box">
  13. </view>
  14. </view>
  15. </view>
  16. </template>
  17. <script>
  18. export default {
  19. props: ['title']
  20. }
  21. </script>
  22. <style lang="scss">
  23. .control-index {
  24. padding: 30rpx;
  25. .control-off {
  26. background: #fff;
  27. padding: 30rpx;
  28. border-radius: 16rpx;
  29. box-shadow: 0px 1px 12px rgba(3, 3, 3, 0.08);
  30. display: flex;
  31. align-items: center;
  32. }
  33. .control-off-icon {
  34. width: 80rpx;
  35. height: 80rpx;
  36. background: $uni-primary;
  37. border-radius: 12rpx;
  38. text-align: center;
  39. line-height: 80rpx;
  40. }
  41. .control-off-label {
  42. flex: 1;
  43. font-size: 32rpx;
  44. font-weight: 500;
  45. margin-left: 20rpx;
  46. }
  47. .control-off-btn {
  48. width: 120rpx;
  49. height: 60rpx;
  50. border-radius: 60rpx;
  51. color: #fff;
  52. background: $uni-primary;
  53. text-align: center;
  54. line-height: 60rpx;
  55. }
  56. }
  57. </style>