| | |
| | | <script setup> |
| | | import { onMounted, ref } from 'vue'; |
| | | import { pointsSearchApi } from '../../../api/index.js' |
| | | const userInfo = JSON.parse(uni.getStorageSync('userInfo')) |
| | | |
| | | const pointList = ref([ |
| | | // {ruleName:'充值',integralAmount:1232,createTime:'2024-11-13 14:46:40'}, |
| | | ]) |
| | | async function searchPoints(){ |
| | | await pointsSearchApi({limit:10000,page:1}).then((res) =>{ |
| | | await pointsSearchApi({limit:10000,page:1,userId:userInfo.id}).then((res) =>{ |
| | | pointList.value = res.data.list |
| | | }) |
| | | } |
| | |
| | | </script> |
| | | <template> |
| | | <view class="container"> |
| | | <point-navbar title='积分明细'></point-navbar> |
| | | <point-navbar title='积分记录'></point-navbar> |
| | | <view class="content"> |
| | | <view class="main" v-if="pointList.length > 0"> |
| | | <block v-for="(item,index) in pointList"> |