套餐相关修改

This commit is contained in:
GaoHao
2024-12-09 10:14:26 +08:00
parent cbb7a026b5
commit 489b2d7ba3
3 changed files with 16 additions and 16 deletions

View File

@@ -6,10 +6,10 @@ const proxyApi = "/api"
// const proxyApi = 'http://192.168.1.15:9888/cashierService' // 王伟 // const proxyApi = 'http://192.168.1.15:9888/cashierService' // 王伟
// const proxyApi = 'http://192.168.1.27:9888/cashierService' // 帆哥 // const proxyApi = 'http://192.168.1.27:9888/cashierService' // 帆哥
// const proxyApiwws = 'ws://192.168.1.15:9888/netty' // 测试 // const proxyApiwws = 'ws://192.168.1.15:9888/netty' // 测试
const proxyApi = 'https://wxcashiertest.sxczgkj.cn/cashierService' // 测试 // const proxyApi = 'https://wxcashiertest.sxczgkj.cn/cashierService' // 测试
const proxyApiwws = 'wss://wxcashiertest.sxczgkj.cn/netty' // 测试 // const proxyApiwws = 'wss://wxcashiertest.sxczgkj.cn/netty' // 测试
// const proxyApi = 'https://pre-cashier.sxczgkj.cn/cashierService' // 预发布 const proxyApi = 'https://pre-cashier.sxczgkj.cn/cashierService' // 预发布
// const proxyApiwws = 'wss://pre-cashier.sxczgkj.cn/netty' // 预发布 const proxyApiwws = 'wss://pre-cashier.sxczgkj.cn/netty' // 预发布
// const proxyApi = 'https://cashier.sxczgkj.cn/cashierService' // 线上 // const proxyApi = 'https://cashier.sxczgkj.cn/cashierService' // 线上
// const proxyApiwws = 'wss://cashier.sxczgkj.cn/netty' // 线上 // const proxyApiwws = 'wss://cashier.sxczgkj.cn/netty' // 线上
// #endif // #endif

View File

@@ -408,7 +408,7 @@
shopId: "", shopId: "",
tableCode: "", tableCode: "",
orderAMeal: true, orderAMeal: true,
groupProductldList: [], groupProductIdList: [],
} }
}, },
onPageScroll(e) { onPageScroll(e) {
@@ -727,8 +727,8 @@
"userId": uni.cache.get('userInfo').id, "userId": uni.cache.get('userInfo').id,
} }
//套餐数据 //套餐数据
if ( this.groupProductldList.length > 0 ) { if ( this.groupProductIdList.length > 0 ) {
params.groupProductldList = this.groupProductldList; params.groupProductIdList = this.groupProductIdList;
} }
if (this.shopInfo.storeInfo.eatModel.indexOf('dine-in') != -1) { params.tableId = this.tableCode;} if (this.shopInfo.storeInfo.eatModel.indexOf('dine-in') != -1) { params.tableId = this.tableCode;}
this.addCart(params); this.addCart(params);
@@ -820,7 +820,7 @@
this.specifications.indexb = index1 this.specifications.indexb = index1
this.specifications.typeName = type this.specifications.typeName = type
if ( item1.type == 'package'&&item1.groupType == 1 ) { if ( item1.type == 'package'&&item1.groupType == 1 ) {
this.groupProductldList = []; this.groupProductIdList = [];
this.optionalPackage(item1, index, index1, type) this.optionalPackage(item1, index, index1, type)
this.hodgepodge(this.specifications, 2) //获取skuid /2查找价格和数量 this.hodgepodge(this.specifications, 2) //获取skuid /2查找价格和数量
return; return;
@@ -941,7 +941,7 @@
// 当前分类下选中数量 // 当前分类下选中数量
let number = 0; let number = 0;
this.skuidname = []; this.skuidname = [];
this.groupProductldList = [] this.groupProductIdList = []
this.specifications.tagSnap[index].children.map(v=>{ this.specifications.tagSnap[index].children.map(v=>{
if ( v.selected ) { number++ } if ( v.selected ) { number++ }
}) })
@@ -954,7 +954,7 @@
this.specifications.tagSnap.forEach(v=>{ this.specifications.tagSnap.forEach(v=>{
v.children.forEach(v1=>{ v.children.forEach(v1=>{
if (v1.selected) { if (v1.selected) {
this.groupProductldList.push(v1.proId) this.groupProductIdList.push(v1.proId)
} }
}) })
}) })

View File

@@ -219,7 +219,7 @@
shopId: null, shopId: null,
tableCode: null, tableCode: null,
groupProductldList: [], groupProductIdList: [],
} }
}, },
@@ -430,8 +430,8 @@
"tableId": uni.cache.get('tableCode'), "tableId": uni.cache.get('tableCode'),
} }
//套餐数据 //套餐数据
if ( this.groupProductldList.length > 0 ) { if ( this.groupProductIdList.length > 0 ) {
params.groupProductldList = this.groupProductldList; params.groupProductIdList = this.groupProductIdList;
} }
this.addCart(params); this.addCart(params);
}, },
@@ -522,7 +522,7 @@
this.specifications.indexb = index1 this.specifications.indexb = index1
this.specifications.typeName = type this.specifications.typeName = type
if ( item1.type == 'package'&&item1.groupType == 1 ) { if ( item1.type == 'package'&&item1.groupType == 1 ) {
this.groupProductldList = []; this.groupProductIdList = [];
this.optionalPackage(item1, index, index1, type) this.optionalPackage(item1, index, index1, type)
this.hodgepodge(this.specifications, 2) //获取skuid /2查找价格和数量 this.hodgepodge(this.specifications, 2) //获取skuid /2查找价格和数量
return; return;
@@ -641,7 +641,7 @@
// 当前分类下选中数量 // 当前分类下选中数量
let number = 0; let number = 0;
this.skuidname = []; this.skuidname = [];
this.groupProductldList = [] this.groupProductIdList = []
this.specifications.tagSnap[index].children.map(v=>{ this.specifications.tagSnap[index].children.map(v=>{
if ( v.selected ) { number++ } if ( v.selected ) { number++ }
}) })
@@ -654,7 +654,7 @@
this.specifications.tagSnap.forEach(v=>{ this.specifications.tagSnap.forEach(v=>{
v.children.forEach(v1=>{ v.children.forEach(v1=>{
if (v1.selected) { if (v1.selected) {
this.groupProductldList.push(v1.proId) this.groupProductIdList.push(v1.proId)
} }
}) })
}) })