邓洁 : 编辑接口

This commit is contained in:
邓洁
2023-11-19 22:27:47 +08:00
parent 7fd9354a2e
commit 6eb6756796
7 changed files with 248 additions and 31 deletions

View File

@@ -1,7 +1,8 @@
<template>
<view>
<ShowShopListItem v-for="item in shopInfoList" :key="shopid" :shopInfo="item" :is-adshow="isADshow"
:adlinkPath="adlinkPath" :show-style="showStyle" :is-edit="isEdit" @delItem="handleDel"></ShowShopListItem>
:adlinkPath="adlinkPath" :show-style="showStyle" :is-edit="isEdit" @delItem="handleDel"
@updateItem="hanldeUpdate"></ShowShopListItem>
</view>
</template>
@@ -71,6 +72,9 @@
},
methods: {
hanldeUpdate(shopid) {
this.$emit('updateItem', shopid)
},
handleDel(shopid) {
console.log("删除了商铺", shopid);
this.$emit('delItem', shopid)

View File

@@ -150,6 +150,7 @@
handleEdit(shopid) {
// TODO 完成页面跳转
console.log("点击了编辑ID为", shopid);
this.$emit('updateItem', shopid)
},
handleDel(shopid) {
// 需完善删除请求