			resolve(data.data)
								}
							})
						})
					},
					addCart(){
						var _this = this;
						console.log(localStorage.getItem(`cart${this.detail.id}`));
						if (localStorage.getItem(`cart${this.detail.id}`)) {
							alert('该商品已添加到购物车')
							return
						}
						cartSave({
							tablename: 'zaixianxuanti',
							goodid: this.detail.id,
							goodname: this.detail.ketitimu,
							picture: this.swiperList[0],
							buynumber: this.buynum,
							price: this.detail.pric