illegalrecord.vue 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172
  1. <template>
  2. <view class="irecord">
  3. <view class="ctop flexc">
  4. <image :src="carc" class="imgs" v-if="datainfo.type==1"></image>
  5. <image :src="card" class="imgs" v-if="datainfo.type==2"></image>
  6. <view class="tit">皖A IC520</view>
  7. <view class="flex1"></view>
  8. <view class="txt ca" v-if="datainfo.type==1">小区车辆</view>
  9. <view class="txt cb" v-if="datainfo.type==2">外来车辆</view>
  10. </view>
  11. <view class="pdlr12">
  12. <view class="clists bgef">
  13. <view class="clist"><view class="tit">关联房号:</view>12#1403</view>
  14. <view class="clist"><view class="tit">手机号码:</view>13656788668</view>
  15. </view>
  16. </view>
  17. <view class="chtop flexc">
  18. <image :src="line"></image>
  19. <view>违停记录</view>
  20. <view class="flex1"></view>
  21. <view class="num coff">本年度已违停3次</view>
  22. </view>
  23. <!-- 步骤条 -->
  24. <view class="steps">
  25. <image :src="icoa" class="circle"></image>
  26. <view class="step">
  27. <view class="slist">
  28. <view class="tit">登记时间:</view>2024-11-27 10:03:27
  29. </view>
  30. <view class="slist">
  31. <view class="tit">违停拍照:</view>
  32. <view class="imgas">
  33. <image :src="carc" @click="getPreview(idx,carc)"></image>
  34. <image :src="carc"></image>
  35. <image :src="carc"></image>
  36. <image :src="carc"></image>
  37. </view>
  38. </view>
  39. </view>
  40. </view>
  41. <view class="steps">
  42. <!-- <image :src="icoa" class="circle"></image> -->
  43. <image :src="icob" class="circle"></image>
  44. <view class="step">
  45. <view class="slist">
  46. <view class="tit">登记时间:</view>2024-11-27 10:03:27
  47. </view>
  48. <view class="slist">
  49. <view class="tit">违停拍照:</view>
  50. <view class="imgas">
  51. <image :src="carc" @click="getPreview(idx,carc)"></image>
  52. <image :src="carc"></image>
  53. <image :src="carc"></image>
  54. <image :src="carc"></image>
  55. </view>
  56. </view>
  57. </view>
  58. </view>
  59. <view class="rfbtn" @click="getNext">解除黑名单</view>
  60. <loading></loading>
  61. </view>
  62. </template>
  63. <script>
  64. import config from '@/config'
  65. import { checkPermi, checkRole } from "@/utils/permission"; // 权限判断函数
  66. export default{
  67. components:{},
  68. data(){
  69. return{
  70. line:require('@/work/static/car/line.png'),
  71. carc:require('@/work/static/car/carc.png'),
  72. card:require('@/work/static/car/card.png'),
  73. icoa:require('@/work/static/car/icoa.png'),
  74. icob:require('@/work/static/car/icob.png'),
  75. baseUrl:config.baseUrl,
  76. datainfo:{
  77. type:1,heiflag:true
  78. },
  79. }
  80. },
  81. onLoad: function() {
  82. },
  83. methods:{
  84. checkPermi, checkRole,
  85. getPreview(idx,arr) {
  86. var newArr=[];
  87. arr.forEach(ite=>{
  88. var ds=this.baseUrl+ite
  89. newArr.push(ds)
  90. })
  91. uni.previewImage({
  92. urls: newArr,
  93. current:idx,
  94. success: function(data) {},
  95. fail: function(err) {}
  96. });
  97. },
  98. getDelFn(){
  99. var that=this;
  100. uni.showModal({
  101. title: '解除黑名单',
  102. content: "是否确认解除",
  103. cancelText: '取消',
  104. confirmText: '确认',
  105. success: function(res) {
  106. if (res.confirm) {
  107. // that.filelist.splice(idx,1)
  108. } else if (res.cancel) {
  109. }
  110. }
  111. });
  112. },
  113. getOcrIdCard(obj){
  114. var params={
  115. image:obj.url,
  116. idCardSide:obj.type
  117. }
  118. getOcrIdCard(params).then(res=>{
  119. if(res.code==200){
  120. var datainfo=res.data;
  121. if(obj.type=='front'){
  122. this.datainfo.realName=datainfo.realName;
  123. this.datainfo.idCard=datainfo.idCard;
  124. this.datainfo.address=datainfo.address;
  125. }else{
  126. this.datainfo.expirationDate=datainfo.expirationDate
  127. }
  128. }
  129. })
  130. }
  131. }
  132. }
  133. </script>
  134. <style lang="scss" scoped>
  135. .bgef{background: #EFF4FF;}
  136. .irecord{background: #FFFFFF;border-radius: 20rpx;flex: 1;padding-bottom: 110rpx;
  137. .ctop{padding:20rpx 48rpx;margin-bottom:14rpx;
  138. .imgs{width: 30rpx;height: 24rpx;margin-right: 12rpx;}
  139. .tit{font-size: 32rpx;color: #272727;font-weight: bold;margin-right: 14rpx;}
  140. .txt{font-weight: 500;font-size: 24rpx;
  141. &.ca{color: #0256FD;}
  142. &.cb{color: #FE5A0E;}
  143. }
  144. }
  145. .clists{padding: 22rpx 40rpx 22rpx;border-radius: 20rpx;box-sizing: border-box;
  146. .clist{font-size: 26rpx;color: #272727;display: flex;line-height: 52rpx;
  147. .tit{font-size: 26rpx;color: #272727;flex: 0 0 auto;min-width: 108rpx;text-align-last: justify;font-weight: bold;}
  148. }
  149. }
  150. .chtop{padding-top: 36rpx;margin-bottom: 32rpx;padding-right: 48rpx;
  151. image{width: 14rpx;height: 48rpx;margin-right: 20rpx;}
  152. view{font-weight: bold;font-size: 32rpx;color: #272727;}
  153. .num{font-weight: 500;font-size: 24rpx;color: #AAAAAA;}
  154. }
  155. .steps{display: flex;padding: 0 32rpx 12rpx;position: relative;
  156. &::after{content: '';background: #E6E6E6;width: 2rpx;position: absolute;top: 38rpx;bottom: -14rpx;left: 44rpx;}
  157. .circle{width: 24rpx;height: 24rpx;margin-right: 24rpx;flex: 0 0 auto;margin-top: 14rpx;}
  158. .step{
  159. .slist{font-size: 26rpx;color: #272727;display: flex;line-height: 52rpx;margin-bottom: 6rpx;
  160. .tit{font-weight: bold;text-align-last: justify;flex: 0 0 auto;min-width: 108rpx;}
  161. .imgas{display: flex;align-items: center;flex-wrap: wrap;
  162. image{width: 160rpx;height: 160rpx;margin-right: 30rpx;margin-bottom: 14rpx;}
  163. }
  164. }
  165. }
  166. }
  167. }
  168. </style>