no message
This commit is contained in:
@@ -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: '请先选择规格',
|
||||
|
||||
Reference in New Issue
Block a user