| | |
| | | <script setup> |
| | | import { onMounted, ref } from 'vue'; |
| | | import { pointsExchangeApi } from '../../../api/index.js' |
| | | const userInfo = JSON.parse(uni.getStorageSync('userInfo')) |
| | | |
| | | const pointExchangeList = ref([ |
| | | // {goodsName:'纸巾',integralAmount:1232,receiveStatusName:'已领取',exchangeDate:'2024-11-13 14:46:40',receiveDate:'2024-11-13 14:46:40'}, |
| | | ]) |
| | | async function searchPoints(){ |
| | | await pointsExchangeApi({limit:10000,page:1}).then((res) =>{ |
| | | await pointsExchangeApi({limit:10000,page:1,userId:userInfo.id}).then((res) =>{ |
| | | pointExchangeList.value = res.data.list |
| | | }) |
| | | } |