index.vue 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  1. <template>
  2. <view class="content">
  3. <view class="content-header">
  4. <view>智慧停车运营系统</view>
  5. </view>
  6. <view class="content-main">
  7. <view class="content-main-item" @click="jumpPage('pages/orderRecords/orderRecords')">
  8. <view class="t1">
  9. <u-icon name="./../../static/images/order-icon.png" color="#fff" size="65"></u-icon>
  10. </view>
  11. <view class="name">订单记录</view>
  12. </view>
  13. <view class="content-main-item" @click="jumpPage('pages/operationOverview/operationOverview')">
  14. <view class="t2">
  15. <u-icon name="./../../static/images/running-icon.png" color="#fff" size="65"></u-icon>
  16. </view>
  17. <view class="name">运营概况</view>
  18. </view>
  19. <view class="content-main-item" @click="jumpPage('pages/patrolManagement/patrolManagement')">
  20. <view class="t3">
  21. <u-icon name="./../../static/images/mana-icon.png" color="#fff" size="65"></u-icon>
  22. </view>
  23. <view class="name">巡检管理</view>
  24. </view>
  25. </view>
  26. </view>
  27. </template>
  28. <script>
  29. export default {
  30. data() {
  31. return {}
  32. },
  33. onShow() {
  34. uni.getStorage({
  35. key: 'Token',
  36. success: function(res) {
  37. console.log(res.data);
  38. },
  39. error: function(err) {
  40. console.log(err)
  41. },
  42. complete: (e) => {
  43. console.log(e)
  44. if (e.data) {
  45. } else {
  46. uni.$u.route({
  47. url: 'pages/login/login'
  48. })
  49. }
  50. }
  51. });
  52. },
  53. methods: {
  54. jumpPage(url) {
  55. uni.$u.route({
  56. url
  57. })
  58. }
  59. }
  60. }
  61. </script>
  62. <style lang="scss" scoped>
  63. .content {
  64. &-header {
  65. height: 400rpx;
  66. display: flex;
  67. align-items: center;
  68. justify-content: center;
  69. color: #fff;
  70. font-size: 64rpx;
  71. background: url('../../static/images/parking-info-bg.png') no-repeat center center;
  72. background-repeat: no-repeat;
  73. background-position: center center;
  74. background-size: cover;
  75. }
  76. &-main {
  77. padding: 0 54rpx;
  78. margin-top: -60rpx;
  79. &-item {
  80. padding: 50rpx 40rpx;
  81. border-radius: 20rpx;
  82. box-shadow: 0px 1px 30rpx 0px rgba(0, 0, 0, 0.1);
  83. background-color: #fff;
  84. margin-bottom: 30rpx;
  85. display: flex;
  86. align-items: center;
  87. view {
  88. &:first-child {
  89. width: 130rpx;
  90. height: 130rpx;
  91. border-radius: 50%;
  92. text-align: center;
  93. display: flex;
  94. justify-content: center;
  95. align-items: center;
  96. }
  97. }
  98. .name {
  99. margin-left: 30rpx;
  100. }
  101. // .t1 {
  102. // background-color: #436EFD;
  103. // }
  104. // .t2 {
  105. // background-color: #62D4A6;
  106. // }
  107. // .t3 {
  108. // background-color: #9376F5;
  109. // }
  110. }
  111. }
  112. }
  113. </style>