优化新增串口

This commit is contained in:
gyq
2024-03-07 18:29:19 +08:00
parent fc810fd02f
commit 58993e00ee
9 changed files with 186 additions and 188 deletions

View File

@@ -293,11 +293,14 @@ async function queryCartAjax() {
// 获取取餐码
async function createCodeAjax() {
try {
const res = await createCode({
shopId: store.userInfo.shopId
})
masterId.value = res.code
// masterId.value = '#8'
if (process.env.VITE_DEV_SERVER_URL) {
masterId.value = '#8'
} else {
const res = await createCode({
shopId: store.userInfo.shopId
})
masterId.value = res.code
}
queryCartAjax()
} catch (error) {
console.log(error)
@@ -430,10 +433,10 @@ onMounted(() => {
align-items: center;
.icon_item {
$size: 40px;
$size: 30px;
width: $size;
height: $size;
border-radius: 6px;
border-radius: 4px;
background-color: #e2e2e2;
display: flex;
align-items: center;
@@ -460,8 +463,8 @@ onMounted(() => {
align-items: center;
.selected {
width: 20px;
height: 20px;
width: 16px;
height: 16px;
display: flex;
align-items: center;
position: relative;