setProductArray(index) {
	const that = this;
	let data = that.productList[that.menuSelect].child_product_list[index];
	if (that.productArray.length) {
		let isSetIndex = that.productArray.findIndex(item => item.id === data.id);
		if(isSetIndex == -1){
			hat.productArray.push(data);
		}else{
			that.productArray[isSetIndex].number++;
		}
	 else {
		that.productArray.push(data);
	 }
},


点赞(0) 打赏

评论列表 共有 0 条评论

暂无评论

微信小程序

微信扫一扫体验

立即
投稿

微信公众账号

微信扫一扫加关注

发表
评论
返回
顶部