index.vue 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. <!-- 管理车辆 -->
  2. <template>
  3. <view class="content">
  4. <view class="content1">
  5. <view class="content1-item inline-block ">
  6. <u--image width='100%' height='100%' src="https://cdn.uviewui.com/uview/album/1.jpg" mode="widthFix">
  7. </u--image>
  8. <view class="flex flex-space-between">
  9. <view>辽H11111</view>
  10. <view>审核中</view>
  11. </view>
  12. <view class="flex">
  13. <view>删除</view>
  14. <view>修改</view>
  15. </view>
  16. </view>
  17. <view class="content1-item inline-block ">
  18. <u--image width='100%' height='100%' src="https://cdn.uviewui.com/uview/album/1.jpg" mode="widthFix">
  19. </u--image>
  20. <view class="flex flex-space-between">
  21. <view>辽H11111</view>
  22. <view>审核中</view>
  23. </view>
  24. <view class="flex">
  25. <view>删除</view>
  26. <view>修改</view>
  27. </view>
  28. </view>
  29. <view class="content1-item inline-block ">
  30. <u--image width='100%' height='100%' src="https://cdn.uviewui.com/uview/album/1.jpg" mode="widthFix">
  31. </u--image>
  32. <view class="flex flex-space-between">
  33. <view>辽H11111</view>
  34. <view>审核中</view>
  35. </view>
  36. <view class="flex">
  37. <view>删除</view>
  38. <view>修改</view>
  39. </view>
  40. </view>
  41. <view class="content1-item inline-block ">
  42. <u--image width='100%' height='100%' src="https://cdn.uviewui.com/uview/album/1.jpg" mode="widthFix">
  43. </u--image>
  44. <view class="flex flex-space-between">
  45. <view>辽H11111</view>
  46. <view>审核中</view>
  47. </view>
  48. <view class="flex">
  49. <view @click="del">删除</view>
  50. <view @click="edit">修改</view>
  51. </view>
  52. </view>
  53. </view>
  54. <u-button type="primary" @click="addCar">添加车辆</u-button>
  55. </view>
  56. </template>
  57. <script>
  58. import {
  59. mapState
  60. } from 'vuex';
  61. var _this;
  62. export default {
  63. data() {
  64. return {
  65. };
  66. },
  67. onLoad(options) {
  68. _this = this;
  69. console.log(options)
  70. if (!this.hasLogin) {
  71. uni.$u.route('/pages/public/login');
  72. }
  73. },
  74. computed: {
  75. ...mapState(['hasLogin', 'userInfo']),
  76. },
  77. methods: {
  78. addCar() {
  79. uni.$u.route('/pages/mine/manageVehicles/addVehicle');
  80. },
  81. edit() {
  82. uni.$u.route('/pages/mine/manageVehicles/editVehicle');
  83. }
  84. },
  85. }
  86. </script>
  87. <style lang="scss" scoped>
  88. .content1 {
  89. width: 100%;
  90. }
  91. .content1-item {
  92. width: calc(50% - 0rpx);
  93. }
  94. </style>