Task:收礼相关接口

This commit is contained in:
linxi
2025-02-21 18:25:34 +08:00
parent 425821ecf7
commit f0a4a0edf9
6 changed files with 441 additions and 27 deletions
+19 -1
View File
@@ -1,14 +1,32 @@
<template>
<view>
<GiftCard/>
<GiftCard :card="giftCard"/>
</view>
</template>
<script>
import GiftCard from './components/GiftCard.vue'
import { getGiftCardDetail } from '@/api/gift'
export default {
components: {
GiftCard
},
data() {
return {
giftCard: {}
}
},
onLoad(opts) {
this.getGiftCard(opts.code)
},
methods: {
async getGiftCard(code) {
const res = await getGiftCardDetail({
code: code
})
this.giftCard = res.data
},
}
}
</script>