抖音小程序端
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.

41 lines
649 B

<template>
<view>
<text @click="getMyCollection()">这是我的收藏</text>
</view>
</template>
<script>
import {getCollectionList} from '@/api/myCollection.js'
export default {
data() {
return {
}
},
onLoad() {
//this.getMyCollection()
},
methods: {
getMyCollection(){
let data = {
"userId" : 1
}
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>