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