运动模块页面及接口+饮食长按删除功能添加

This commit is contained in:
2022-01-20 10:10:01 +08:00
parent 070c6c729e
commit 62c65253bf
9 changed files with 1114 additions and 248 deletions

View File

@@ -4,7 +4,7 @@
* @Author: Aimee·Zhang
* @Date: 2022-01-11 12:08:34
* @LastEditors: Aimee·Zhang
* @LastEditTime: 2022-01-13 11:19:06
* @LastEditTime: 2022-01-20 10:03:43
-->
<template>
@@ -59,7 +59,8 @@
<view
class="lists-right"
v-else-if="type==='no-dian'"
@click="editGoods(foodsItem)"
@click.stop="editGoods(foodsItem)"
@longpress.stop="longClickGoods(foodsItem)"
>
<view class="lists-title">
{{foodsItem.name}}
@@ -116,6 +117,10 @@ export default {
editGoods(item) {
this.$emit("editGoods", item);
},
// 长按删除
longClickGoods(item) {
this.$emit("longClickGoods", item);
},
},
};
</script>