tapd问题修改
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user