index.vue 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. <template>
  2. <div class="carmange">
  3. <div class="top">
  4. <div class="add">
  5. <div class="text" @click="jumpPage('/pages/subPackages/carmange/add')">
  6. 新增
  7. </div>
  8. <van-icon name="add" />
  9. </div>
  10. </div>
  11. <div class="list">
  12. <div class="list-row">
  13. <div class="left">
  14. <div class="info">车牌号:苏B51WK7</div>
  15. <div class="info1">司机姓名:苏B51WK7</div>
  16. <div class="info1">手机号:苏B51WK7</div>
  17. </div>
  18. <div class="right">
  19. <van-icon size="48rpx" color="rgba(138, 5, 84, 1)" name="delete" />
  20. </div>
  21. </div>
  22. </div>
  23. </div>
  24. </template>
  25. <script>
  26. export default {
  27. data() {
  28. return {};
  29. },
  30. methods: {
  31. jumpPage(path) {
  32. console.log(path);
  33. uni.navigateTo({
  34. url: path,
  35. fail: (fail) => {},
  36. });
  37. },
  38. },
  39. };
  40. </script>
  41. <style lang="scss">
  42. .carmange {
  43. .top {
  44. width: 750rpx;
  45. color: #8a0554;
  46. height: 80rpx;
  47. background: white;
  48. display: flex;
  49. align-items: center;
  50. padding: 0 36rpx;
  51. box-sizing: border-box;
  52. .add {
  53. display: flex;
  54. margin-left: auto;
  55. .text {
  56. margin-right: 12rpx;
  57. }
  58. }
  59. }
  60. .list {
  61. width: 100%;
  62. box-sizing: border-box;
  63. .list-row {
  64. box-sizing: border-box;
  65. padding: 24rpx;
  66. display: flex;
  67. align-items: center;
  68. justify-content: space-between;
  69. .left {
  70. .info {
  71. font-weight: 400;
  72. font-size: 32rpx;
  73. color: #222222;
  74. margin-bottom: 16rpx;
  75. }
  76. .info1 {
  77. font-weight: 400;
  78. font-size: 28rpx;
  79. color: #888888;
  80. }
  81. }
  82. }
  83. }
  84. }
  85. </style>