<template>
  <layout>
    <uv-navbar
      :fixed="false"
      title="我的足迹"
      left-arrow
      @leftClick="$onClickLeft"
    />

    <blank size="15"></blank>

    <container>
      <space
        direction="vertical"
        fill
      >
        <card v-for="(item, index) in dataList">
          <goods
            list
            :data="item"
            :storeName="item.storeName"
            :price="item.price"
            :stock="item.stock"
            interval="true"
            desc="3"
            showAction="true"
            surplus="200"
            priceMode="primary"
          >
          </goods>
        </card>
      </space>
    </container>
  </layout>
</template>

<script setup>
import { ref } from 'vue'
import { getProductList } from '@/api/product'
import { onLoad } from '@dcloudio/uni-app'
import { relationCollectUser } from '@/api/user'

import { usePage } from '@/hooks'

const { type, refresh, dataList } = usePage(relationCollectUser)

onLoad((option) => {
  type.value = 'root'
  refresh()
})



</script>

<style lang="less">
</style>
