time none8.3

This commit is contained in:
2020-08-03 20:59:24 +08:00
parent f63594706f
commit 0a52842e35
10 changed files with 116 additions and 95 deletions

View File

@@ -3,20 +3,20 @@
<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'
:index='item.favlog_id'
:show="item.show"
:options="options"
@click="removeFavorite"
@open="open"
>
<view class="item u-border-bottom">
<image src="@/pageE/static/mine/23.png"></image>
<image :src="item.store_avatar"></image>
<!-- 此层wrap在此为必写的否则可能会出现标题定位错误 -->
<view class="title-wrap">
<view class="item-name u-line-1">胖胖定制此层wrap在此为必写的否则可能会出现标题定位错误</view>
<view class="item-name u-line-1">{{ item.store_name }}</view>
<view class="item-date">
<image src="@/pageE/static/mine/26.png"></image>
<view>2020-05-17</view>
<view>{{ item.fav_time | date }}</view>
</view>
</view>
</view>
@@ -48,14 +48,14 @@ export default {
type: 2 // 店铺 type: 2
})
},
removeFavorite(id = 18) {
removeFavorite(id) {
console.log(id);
this.$u.api.removeFavorite({
id: id
}).then(res => {
this.$u.toast(res.message);
if(res.errCode == 0) {
this.getStoreFavoritesList();
} else {
this.$u.toast(res.message);
}
})
},