tapd问题修改

This commit is contained in:
GaoHao
2025-03-10 18:35:58 +08:00
parent cc97b6acca
commit 56b115a695
5 changed files with 17 additions and 14 deletions

View File

@@ -171,6 +171,7 @@
}
const allPrice = computed(() => {
console.log("购物车数据==",props.data)
return props.data.reduce((prve, cur) => {
return prve + cur.lowPrice * cur.number
}, 0).toFixed(2)

View File

@@ -138,7 +138,7 @@
import appConfig from '@/config/appConfig.js';
import WebsocketUtil from '@/commons/utils/websocket.js'
import { getShopTable } from '@/api/table.js'
import { getShopTable,getShopTableDetail } from '@/api/table.js'
import { getProductList } from '@/api/product.js'
import { categoryPage } from '@/api/cateGory.js'
import { inject } from 'vue';
@@ -954,16 +954,14 @@
console.log('scanCode');
uni.scanCode({
onlyFromCamera: true,
success: function(res) {
success: async function(res) {
console.log('条码类型:' + res.scanType);
console.log('条码内容:' + res.result);
if (res.result.includes('codeplate?code=')) {
const par = returnUrlPar(res.result)
const tableId = par.code
onChooseTable({
id: tableId
})
const tableCode = par.code
let resData = await getShopTableDetail({tableCode:tableCode})
onChooseTable(resData)
} else {
uni.showToast({
icon: 'error',