抖音小程序端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

40 lines
651 B

<template>
<view>
<text>这是我的收藏</text>
</view>
</template>
<script>
import {getCollectionList} from '@/api/myCollection.js'
export default {
data() {
return {
}
},
onLoad() {
this.getMyCollection(JSON.stringify(1))
},
methods: {
getMyCollection(userId){
const data = {
"userId" : userId
}
const res = getCollectionList(JSON.stringify(data))
if(res.data.code === 200){
//this.banner = res.data.data
console.log(res)
}else{
uni.showModal({
content: '我的收藏加载失败!',
showCancel: false
});
}
}
}
}
</script>
<style>
</style>