邓洁 : 编辑接口
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -150,6 +150,7 @@
|
||||
handleEdit(shopid) {
|
||||
// TODO 完成页面跳转
|
||||
console.log("点击了编辑ID为", shopid);
|
||||
this.$emit('updateItem', shopid)
|
||||
},
|
||||
handleDel(shopid) {
|
||||
// 需完善删除请求
|
||||
|
||||
Reference in New Issue
Block a user