history.vue 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. <template>
  2. <view class="content">
  3. <view class="box">
  4. <view class="historyLine" v-for="(item,index) in historyList" @click="goDetail(item)">
  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. goDetail(e){
  25. uni.navigateTo({
  26. url:'/pages/index/byItem?nLevelID='+e.nLevelID+'&logo='+e.logo+'&value='+e.title+'&id='+e.groupID
  27. })
  28. },
  29. queryHistory(){
  30. this.$http2('queryHistory', {
  31. },'POST').then(res => {
  32. this.historyList=res.data
  33. })
  34. },
  35. }
  36. }
  37. </script>
  38. <style scoped>
  39. .box{
  40. padding: 0 24rpx;
  41. }
  42. .historylinecarImg{
  43. width: 46rpx;
  44. height: 46rpx;
  45. }
  46. .historylinecar{
  47. font-weight: 400;font-size: 26rpx;
  48. color: #1A1A1A;
  49. line-height: 37rpx;width: 636rpx;
  50. }
  51. .historyLine{
  52. display: flex;justify-content: space-between;
  53. padding: 30rpx 0;border-top: 1rpx solid #EEEEEE;
  54. }
  55. </style>