history.vue 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. <template>
  2. <view class="content">
  3. <homenav :iStatusBarHeight="iStatusBarHeight" :title="'历史查询'"></homenav>
  4. <view class="box">
  5. <view class="historyLine" v-for="(item,index) in historyList" @click="goDetail(item)">
  6. <view class="historyLineCar">
  7. <image :src="item.logo" mode="" class="historylinecarImg"></image>
  8. <view class="historylinecar">{{item.title}}</view>
  9. </view>
  10. <view class="historyLineVin" v-if="item.ifVin">
  11. <view class="vinms">vin</view>
  12. <view class="vinNum">{{item.vin}}</view>
  13. </view>
  14. </view>
  15. <nodata v-if="historyList.length==0"></nodata>
  16. </view>
  17. </view>
  18. </template>
  19. <script>
  20. import homenav from "../../components/homenav/nav.vue"
  21. import nodata from '../../components/nodata/nodata.vue'
  22. export default {
  23. components: {
  24. homenav,nodata
  25. },
  26. data() {
  27. return {
  28. historyList:[],
  29. iStatusBarHeight:'',
  30. }
  31. },
  32. onLoad(opt) {
  33. this.iStatusBarHeight = uni.getSystemInfoSync().statusBarHeight;
  34. this.queryHistory()
  35. },
  36. methods: {
  37. goDetail(e){
  38. uni.navigateTo({
  39. url:'/pages/index/byItem?nLevelID='+e.nLevelID+'&logo='+e.logo+'&value='+e.title+'&id='+e.groupID+'&isVin='+e.ifVin+'&vin='+e.vin
  40. })
  41. },
  42. queryHistory(){
  43. this.$http2('queryHistory', {
  44. },'POST').then(res => {
  45. this.historyList=res.data
  46. })
  47. },
  48. }
  49. }
  50. </script>
  51. <style scoped>
  52. .box{
  53. padding: 0 24rpx;
  54. }
  55. .historylinecarImg{
  56. width: 46rpx;
  57. height: 46rpx;
  58. }
  59. .historylinecar{
  60. font-weight: 400;font-size: 26rpx;
  61. color: #1A1A1A;
  62. line-height: 46rpx;width: 636rpx;
  63. }
  64. .historyLine{
  65. padding: 30rpx 0;border-top: 1rpx solid #EEEEEE;
  66. }
  67. .historyLineCar{
  68. display: flex;justify-content: space-between;
  69. }
  70. .vinms{
  71. width: 38rpx;
  72. height: 26rpx;
  73. background: linear-gradient(224deg, #FFDA28 0%, #FFBF35 100%);
  74. border-radius: 4rpx;
  75. text-align: center;
  76. line-height: 26rpx;
  77. font-weight: 600;
  78. color: #FFFFFF;
  79. font-size: 18rpx;
  80. margin-top: 2rpx;
  81. }
  82. .historyLineVin{
  83. display: flex;
  84. }
  85. .vinNum{
  86. font-weight: 400;font-size: 22rpx;padding-left: 10rpx;
  87. color: #999999;line-height: 30rpx;
  88. }
  89. </style>