This commit is contained in:
2020-06-24 16:39:31 +08:00
parent 8c993da2cd
commit 28e80b49ff
14 changed files with 132 additions and 54 deletions

View File

@@ -1,5 +1,6 @@
<template>
<view class="collection-item">
<u-empty mode="list" v-if="!list.length" color="#000" img-width="200" font-size="30" margin-top="300"></u-empty>
<u-swipe-action
v-for="(item, index) in list" :key="index"
:index='index'
@@ -43,7 +44,6 @@ export default {
show: false,
}
],
btnWidth: 152,
show: false,
options: [
{
@@ -55,7 +55,18 @@ export default {
]
}
},
mounted() {
this.getGoodsFavoritesList();
},
methods: {
getGoodsFavoritesList() {
this.$u.api.getGoodsFavoritesList().then(res => {
if(res.errCode == 0) {
}
})
},
click(index) {
this.list.splice(index, 1);
this.$u.toast(`删除了第${index+1}个cell`);