From c232d9ce7627813291b2ddb0b9462b90b5fcdbf4 Mon Sep 17 00:00:00 2001 From: GaoHao <1210693421@qq.com> Date: Thu, 24 Oct 2024 17:36:28 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E7=BB=91=E5=AE=9A=E7=A0=81?= =?UTF-8?q?=E7=89=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- http/yskApi/table.js | 14 ++++++- pageTable/index/components/table-item.vue | 11 ++++- pageTable/index/index.vue | 50 +++++++++++++++++++++-- pages.json | 2 +- 4 files changed, 70 insertions(+), 7 deletions(-) diff --git a/http/yskApi/table.js b/http/yskApi/table.js index f055135..07d6d2b 100644 --- a/http/yskApi/table.js +++ b/http/yskApi/table.js @@ -1,5 +1,6 @@ // 桌台管理 import http from './http.js' +const request=http.request import $API from '@/http/classApi.js' import appConfig from '@/config/appConfig.js' import { @@ -11,4 +12,15 @@ import infoBox from '@/commons/utils/infoBox.js' export const $tableArea=new $API('/api/tbShopArea',http.req) /* 台桌 */ export const $table=new $API('/api/tbShopTable',http.req) - +/* 绑定 */ +// export const $bind=new $API('/api/tbShopTable/bind',http.req) +export function $bind(data) { + return request({ + url: "/api/tbShopTable/bind", + method: "post", + data: { + shopId: uni.getStorageSync('shopId'), + ...data + } + }); +} \ No newline at end of file diff --git a/pageTable/index/components/table-item.vue b/pageTable/index/components/table-item.vue index f8b1df1..03cbcd3 100644 --- a/pageTable/index/components/table-item.vue +++ b/pageTable/index/components/table-item.vue @@ -39,6 +39,11 @@