message.vue 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. <template>
  2. <view>
  3. <view class="flex padding-lg align-center">
  4. <image v-if="globalImages" :src="globalImages + 'imgs/dui.png'" style="width: 30rpx;height: 30rpx;" mode=""></image>
  5. <view style="margin-left: 20rpx;">
  6. 当前使用车辆: 辽A12345
  7. </view>
  8. </view>
  9. <view class="margin padding boxss" v-for="(item, index) in list" :key="index">
  10. <view class="flex" style="justify-content: space-between;">
  11. <view class="flex">
  12. <view>
  13. <image v-if="globalImages" src="../../static/login_icon.jpg" style="width: 200rpx;height: 140rpx;" mode=""></image>
  14. </view>
  15. <view style="margin-left: 20rpx;">
  16. <view>{{ item.title }}</view>
  17. <view style="color: #999;">{{ item.zxc }}</view>
  18. <view style="color: #00c18a;" v-if="item.asd === 1">已认证</view>
  19. <view style="color: #e6a23c;" v-if="item.asd === 2">审核中</view>
  20. <view style="color: #f56c6c;" v-if="item.asd === 3">审核失败</view>
  21. </view>
  22. </view>
  23. <view >
  24. <view style="margin-left: 20rpx; background: #00c18a; padding: 8rpx 15rpx; border-radius: 11rpx; color: #fff;" v-if="item.qwe === 1">使用中</view>
  25. <view style="margin-left: 20rpx; background: #e6a23c; padding: 8rpx 15rpx; border-radius: 11rpx; color: #fff;" v-if="item.qwe === 2">审核中</view>
  26. <view style="margin-left: 20rpx; background: #f56c6c; padding: 8rpx 15rpx; border-radius: 11rpx; color: #fff;" v-if="item.qwe === 3">未通过</view>
  27. </view>
  28. </view>
  29. <view style="border-top: 1rpx solid #f3f4f6; margin: 20rpx 0;"></view>
  30. <view class="flex" style="justify-content: space-between;color: #999;">
  31. <view class="">
  32. ··· 更多
  33. </view>
  34. <view>
  35. 切换使用
  36. </view>
  37. </view>
  38. </view>
  39. </view>
  40. </template>
  41. <script>
  42. import { waitForGlobalImages } from '@/utils/globalImageLoader'
  43. export default {
  44. data() {
  45. return {
  46. globalImages: '',
  47. list: [
  48. {
  49. title: '辽12345',
  50. zxc: '丰田卡罗拉 · 白色',
  51. asd: 1,
  52. qwe: 1,
  53. },{
  54. title: '辽12345',
  55. zxc: '丰田卡罗拉 · 白色',
  56. asd: 2,
  57. qwe: 2,
  58. },{
  59. title: '辽12345',
  60. zxc: '丰田卡罗拉 · 白色',
  61. asd: 3,
  62. qwe: 3,
  63. }
  64. ]
  65. }
  66. },
  67. onLoad() {
  68. waitForGlobalImages().then((path) => {
  69. console.log('✅ 全局图片路径:', path)
  70. this.globalImages = path
  71. })
  72. },
  73. // methods: {
  74. // },
  75. }
  76. </script>
  77. <style scoped lang="scss">
  78. .boxss {
  79. background: #fff;
  80. border-radius: 16rpx;
  81. }
  82. </style>