源文件

This commit is contained in:
gyq
2024-07-02 09:59:38 +08:00
parent 49792356d7
commit 921348766c
532 changed files with 70848 additions and 0 deletions

47
api/index.js Normal file
View File

@@ -0,0 +1,47 @@
import request from '@/utils/request'
import useStorage from '@/utils/useStroage.js'
/**
* 登录
* @param {Object} data
*/
export function login(data) {
return request('/login/wx/merchant/login', data, 'post')
}
/**
* 桌台列表
* @param {Object} areaId
*/
export function tableList(areaId) {
return request('/table/list', {
shopId: useStorage.get('userInfo').shopId,
areaId: areaId
}, 'post')
}
/**
* 区域列表
* @param {Object} data
*/
export function areaList(data) {
return request('/table/area', {
shopId: useStorage.get('userInfo').shopId
})
}
/**
* 绑定桌码
* @param {Object} data
*/
export function tableBinding(data) {
return request('/table/binding', data, 'post')
}
/**
* 登录获取openid
* @param {Object} data
*/
export function wxlogin(data) {
return request('/login/wx/business/login', data)
}