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="store">
<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'
@@ -26,21 +27,7 @@
export default {
data() {
return {
list: [
{
id: 1,
show: false
},
{
id: 2,
show: false
},
{
id: 3,
show: false,
}
],
btnWidth: 152,
list: [],
show: false,
options: [
{
@@ -52,7 +39,19 @@ export default {
]
}
},
mounted() {
this.getStoreFavoritesList();
},
methods: {
getStoreFavoritesList() {
this.$u.api.getStoreFavoritesList({
type: 2 // 固定值
}).then(res => {
if(res.errCode == 0) {
}
})
},
click(index) {
this.list.splice(index, 1);
this.$u.toast(`删除了第${index+1}个cell`);
@@ -70,6 +69,9 @@ export default {
</script>
<style lang="scss" scoped>
.store {
min-height: calc(100vh - var(--window-top));
background-color: #ECECEC;
padding-top: 1rpx;
.item {
padding: 30rpx;
display: flex;