historyMerchantList.vue 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. <template>
  2. <view class="container">
  3. <view class="merchantList">
  4. <listItem v-for="datas in dataList" :key="datas.shopId" :datas="datas"></listItem>
  5. </view>
  6. </view>
  7. </template>
  8. <script>
  9. import {
  10. getByShopAllApi,
  11. } from "@/api/anotherTFInterface";
  12. import listItem from './listItem.vue'
  13. export default {
  14. name: 'historyMerchantList',
  15. components: {
  16. listItem
  17. },
  18. data() {
  19. return {
  20. dataList: []
  21. }
  22. },
  23. created() {
  24. this.getList();
  25. },
  26. methods: {
  27. getList() {
  28. getByShopAllApi().then(res => {
  29. res.data.forEach(item => {
  30. this.dataList.push(item)
  31. })
  32. console.log(this.dataList);
  33. }).catch(err => {
  34. console.log(err);
  35. })
  36. },
  37. getMoreList() {
  38. this.queryList.page++
  39. this.getList()
  40. }
  41. }
  42. }
  43. </script>
  44. <style lang="scss" scoped>
  45. .selectBtn {
  46. font-size: 32rpx;
  47. font-weight: normal;
  48. line-height: normal;
  49. font-feature-settings: "kern" on;
  50. color: #EF520E;
  51. }
  52. .selectInput{
  53. margin-top: -30rpx;
  54. }
  55. .merchantList {
  56. }
  57. </style>