优化提交
This commit is contained in:
@@ -16,12 +16,12 @@ const baseUrl = debug ? proxyApi : "https://wxcashiertest.sxczgkj.cn/cashierServ
|
|||||||
const baseUrlwws = 'ws://cashier.sxczgkj.cn/cashierService'
|
const baseUrlwws = 'ws://cashier.sxczgkj.cn/cashierService'
|
||||||
// #endif
|
// #endif
|
||||||
// #ifdef APP || MP-WEIXIN
|
// #ifdef APP || MP-WEIXIN
|
||||||
const baseUrl = 'https://cashier.sxczgkj.cn/cashierService'// 线上
|
// const baseUrl = 'https://cashier.sxczgkj.cn/cashierService'// 线上
|
||||||
const baseUrlwws = 'wss://cashier.sxczgkj.cn/cashierService' // 线上
|
// const baseUrlwws = 'wss://cashier.sxczgkj.cn/cashierService' // 线上
|
||||||
// const baseUrl = 'http://192.168.2.42:9888/cashierService'// 测试-w
|
// const baseUrl = 'http://192.168.2.42:9888/cashierService'// 测试-w
|
||||||
// const baseUrlwws ='ws://192.168.2.42:9888/cashierService' // 测试-w
|
// const baseUrlwws ='ws://192.168.2.42:9888/cashierService' // 测试-w
|
||||||
// const baseUrl = 'https://wxcashiertest.sxczgkj.cn/cashierService'// 测试
|
const baseUrl = 'https://wxcashiertest.sxczgkj.cn/cashierService'// 测试
|
||||||
// const baseUrlwws ='wss://wxcashiertest.sxczgkj.cn/cashierService' // 测试
|
const baseUrlwws ='wss://wxcashiertest.sxczgkj.cn/cashierService' // 测试
|
||||||
|
|
||||||
// #endif
|
// #endif
|
||||||
|
|
||||||
|
|||||||
@@ -391,9 +391,10 @@
|
|||||||
msg.data.forEach((item, index, arr) => { //初始化skuidname的数据 选择第一个
|
msg.data.forEach((item, index, arr) => { //初始化skuidname的数据 选择第一个
|
||||||
if (item.skuId == this.skuidsearch) {
|
if (item.skuId == this.skuidsearch) {
|
||||||
this.$set(this, 'amountcartNumber', item.number)
|
this.$set(this, 'amountcartNumber', item.number)
|
||||||
} else {
|
|
||||||
this.$set(this, 'amountcartNumber', 0)
|
|
||||||
}
|
}
|
||||||
|
// else {
|
||||||
|
// this.$set(this, 'amountcartNumber', 0)
|
||||||
|
// }
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
this.$set(this, 'amountcartNumber', 0)
|
this.$set(this, 'amountcartNumber', 0)
|
||||||
@@ -527,6 +528,7 @@
|
|||||||
return res
|
return res
|
||||||
})
|
})
|
||||||
this.specifications.tagSnap.forEach((val, index, arr) => { //初始化skuidname的数据 选择第一个
|
this.specifications.tagSnap.forEach((val, index, arr) => { //初始化skuidname的数据 选择第一个
|
||||||
|
console.log(val.children[0],'skuidnam是否为空1')
|
||||||
this.skuidname.push(val.children[0])
|
this.skuidname.push(val.children[0])
|
||||||
})
|
})
|
||||||
try {
|
try {
|
||||||
@@ -539,6 +541,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
async morloe(e, index, index1, item) {
|
async morloe(e, index, index1, item) {
|
||||||
|
console.log(index,'skuidnam是否为空2')
|
||||||
this.specifications.tagSnap[index]['start'] = index1
|
this.specifications.tagSnap[index]['start'] = index1
|
||||||
this.skuidname.splice(index, 1, e) //替换skuidname的数据
|
this.skuidname.splice(index, 1, e) //替换skuidname的数据
|
||||||
this.hodgepodge(item, 2)
|
this.hodgepodge(item, 2)
|
||||||
|
|||||||
Reference in New Issue
Block a user