history.vue 971 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. <template>
  2. <view class="content">
  3. <view class="box">
  4. <view class="historyLine" v-for="(item,index) in historyList">
  5. <image :src="item.logo" mode="" class="historylinecarImg"></image>
  6. <view class="historylinecar">{{item.title}}</view>
  7. </view>
  8. </view>
  9. </view>
  10. </template>
  11. <script>
  12. export default {
  13. components: {
  14. },
  15. data() {
  16. return {
  17. historyList:[],
  18. }
  19. },
  20. onLoad(opt) {
  21. this.queryHistory()
  22. },
  23. methods: {
  24. queryHistory(){
  25. this.$http2('queryHistory', {
  26. },'POST').then(res => {
  27. this.historyList=res.data
  28. })
  29. },
  30. }
  31. }
  32. </script>
  33. <style scoped>
  34. .box{
  35. padding: 0 24rpx;
  36. }
  37. .historylinecarImg{
  38. width: 46rpx;
  39. height: 46rpx;
  40. }
  41. .historylinecar{
  42. font-weight: 400;font-size: 26rpx;
  43. color: #1A1A1A;
  44. line-height: 37rpx;width: 636rpx;
  45. }
  46. .historyLine{
  47. display: flex;justify-content: space-between;
  48. padding: 30rpx 0;border-top: 1rpx solid #EEEEEE;
  49. }
  50. </style>