lilei 1 年間 前
コミット
6271fce8d8
1 ファイル変更6 行追加2 行削除
  1. 6 2
      pages/codeBar/codeBar.vue

+ 6 - 2
pages/codeBar/codeBar.vue

@@ -162,8 +162,9 @@
 			},
 			productSave(){
 				this.subloading = true
-				this.tempProduct.qrCode = this.code
-				dealerProductSave(this.tempProduct).then(res => {
+				const prams = JSON.parse(JSON.stringify(this.tempProduct))
+				prams.qrCode = this.code
+				dealerProductSave(prams).then(res => {
 					if(res.status == 200){
 						this.queryProduct()
 						this.closePop()
@@ -189,6 +190,9 @@
 					if(res.status == 200){
 						this.detailList = res.data && res.data.list || []
 					}
+					if(res.data.count>10){
+						uni.$u.toast("最多显示前10条匹配产品!")
+					}
 					this.loading = false
 				})
 			},