完成商城下单功能

This commit is contained in:
gxwebsoft
2024-05-27 01:24:02 +08:00
parent dea6ae1c23
commit 4bae8599e1
26 changed files with 803 additions and 129 deletions

View File

@@ -274,18 +274,24 @@
settingVisible.value = true;
};
listMenus({ menuType: 0, hide: 0 }).then((data) => {
if (data) {
menuList.value = data;
menuTree.value = toTreeData({
data: data.map((d) => {
return { ...d, key: d.menuId, value: d.menuId };
}),
idField: 'menuId',
parentIdField: 'parentId'
const getMenus = () => {
if (!getMerchantName()) {
listMenus({ menuType: 0, hide: 0 }).then((data) => {
if (data) {
menuList.value = data;
menuTree.value = toTreeData({
data: data.map((d) => {
return { ...d, key: d.menuId, value: d.menuId };
}),
idField: 'menuId',
parentIdField: 'parentId'
});
}
});
}
});
};
getMenus();
</script>
<script lang="ts">