no message

This commit is contained in:
2025-09-09 12:02:33 +08:00
parent e12623d607
commit 01f1726d04
4 changed files with 173 additions and 18 deletions
@@ -468,17 +468,25 @@ export default {
this.selectSpecification = currentSelectSpecification;
const oldLength = this.specificationList.length;
const newLength = this.selectSpecification.length;
console.log('selectSpecificationFun',oldLength,newLength)
// 开始做校验
if (oldLength === newLength) {
const newLengthStr = this.selectSpecification.join("♧");
const specificationTempl = this.specificationTempl;
let selectTempl = {};
console.log('selectSpecificationFun1',specificationTempl,this.selectSpecification)
specificationTempl.map(item => {
console.log('selectSpecificationFun11',item.combNames,newLengthStr)
if (item.combNames === newLengthStr) {
selectTempl = item
return;
}
});
console.log('selectSpecificationFun11',selectTempl)
this.selectSpecificationTempl = selectTempl;
this.orderInfo.inventory = selectTempl.stock;// 库存
}
@@ -505,6 +513,7 @@ export default {
// 加入购入车
async addCart(isBy = false) {
const selectTempl = this.selectSpecificationTempl;
console.log('aaaaaaaaaaaa',selectTempl)
if (!selectTempl || Object.keys(selectTempl).length === 0) {
uni.showToast({
title: '请先选择规格',