6.24
This commit is contained in:
@@ -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`);
|
||||
|
||||
Reference in New Issue
Block a user