carDetail.vue 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. <template>
  2. <view class="content ">
  3. <view class="flex">
  4. <view class="flex flex-direction ">
  5. <view class="flex justify-between">
  6. <view class="">
  7. <view class="item">
  8. <text class="cuIcon-news text-blue margin-right-10"></text>
  9. <text class="text-bold padding-right-10">车牌号:</text>
  10. <view class="padding-top-20">{{dataDetail.time}}</view>
  11. </view>
  12. <view class="item">
  13. <text class="cuIcon-location text-blue margin-right-10"></text>
  14. <text class="text-bold padding-right-10">车场名称:</text>
  15. <view class="padding-top-20">{{dataDetail.parking}}</view>
  16. </view>
  17. <view class="item">
  18. <text class="cuIcon-focus text-blue margin-right-10"></text>
  19. <text class="text-bold padding-right-10">抓拍设备:</text>
  20. <view class="padding-top-20">{{dataDetail.device}}</view>
  21. </view>
  22. </view>
  23. <view class="padding-top-20">
  24. <image @click="previewImg(dataDetail.image)" style="width: 250rpx;height: 280rpx;border-radius: 12rpx;" mode="scaleToFill" :src="dataDetail.image"></image>
  25. </view>
  26. </view>
  27. <view class="item">
  28. <text class="cuIcon-time text-blue margin-right-10"></text>
  29. <text class="text-bold padding-right-10">抓拍时间:</text>
  30. <view class="padding-top-20">{{dataDetail.time}}</view>
  31. </view>
  32. </view>
  33. </view>
  34. </view>
  35. </template>
  36. <script>
  37. var app=getApp()
  38. export default {
  39. data() {
  40. return {
  41. dataDetail:{}
  42. }
  43. },
  44. onShow() {
  45. this.dataDetail=app.globalData.carDetail
  46. },
  47. methods: {
  48. previewImg(img){
  49. let imgs=[]
  50. imgs.push(img)
  51. uni.previewImage({
  52. urls:imgs
  53. })
  54. }
  55. }
  56. }
  57. </script>
  58. <style lang="scss">
  59. page{
  60. background-color: #FFFFFF;
  61. }
  62. .content{
  63. padding:70rpx 60rpx;
  64. .item{
  65. padding: 22rpx 0;
  66. }
  67. }
  68. </style>