goods-bargain.vue 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. <template>
  2. <view class="goods-bargain-container">
  3. <view class="row-center" style="height: 100rpx;">
  4. <view class="bLine" />
  5. <view class="lg bold" style="margin: 0 30rpx;">
  6. 更多砍价商品
  7. </view>
  8. <view class="bLine" />
  9. </view>
  10. <goods-list type="double" :list="lists" :isBargain="true"></goods-list>
  11. </view>
  12. </template>
  13. <script>
  14. import {
  15. getBargainList
  16. } from '@/api/activity'
  17. import {
  18. loadingType
  19. } from '@/utils/type'
  20. import {
  21. loadingFun
  22. } from '@/utils/tools'
  23. export default {
  24. data() {
  25. return {
  26. page: 1,
  27. loadingStatus: loadingType.LOADING,
  28. lists: []
  29. }
  30. },
  31. mounted() {
  32. this.$getBargainList()
  33. console.log(this.lists);
  34. },
  35. methods: {
  36. $getBargainList() {
  37. console.log('下拉')
  38. getBargainList({
  39. page_size:10,
  40. page_no:1
  41. }).then(res => {
  42. console.log(res)
  43. // this.page = res.data.page;
  44. this.lists = res.data.list;
  45. console.log(this.lists)
  46. // this.loadingStatus = res.status
  47. })
  48. }
  49. }
  50. }
  51. </script>
  52. <style lang="scss">
  53. .goods-bargain-container {
  54. padding-bottom: 40rpx;
  55. .bLine {
  56. height: 2rpx;
  57. background-color: #CCCCCC;
  58. width: 58rpx;
  59. }
  60. }
  61. </style>