| 
															
																@@ -110,15 +110,40 @@ 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 		methods: { 
															 | 
															
															 | 
															
																 		methods: { 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 			// 保存  上架 
															 | 
															
															 | 
															
																 			// 保存  上架 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 			Shelves(status) { 
															 | 
															
															 | 
															
																 			Shelves(status) { 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																+ 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 				if (!this.fromData.comboName) return this.$showToast("请添商品名称"); 
															 | 
															
															 | 
															
																 				if (!this.fromData.comboName) return this.$showToast("请添商品名称"); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 				if (!this.fromData.price) return this.$showToast("请填写价格"); 
															 | 
															
															 | 
															
																 				if (!this.fromData.price) return this.$showToast("请填写价格"); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 				if (!this.fromData.comboType) return this.$showToast("请选择套餐类型"); 
															 | 
															
															 | 
															
																 				if (!this.fromData.comboType) return this.$showToast("请选择套餐类型"); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 				if (!this.fromData.comboExplain) return this.$showToast("请填写套餐内容"); 
															 | 
															
															 | 
															
																 				if (!this.fromData.comboExplain) return this.$showToast("请填写套餐内容"); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 				if (!this.fromData.cover) return this.$showToast("请上传主图/封面"); 
															 | 
															
															 | 
															
																 				if (!this.fromData.cover) return this.$showToast("请上传主图/封面"); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 				if (!this.fromData.introduction) return this.$showToast("请上传套餐照片"); 
															 | 
															
															 | 
															
																 				if (!this.fromData.introduction) return this.$showToast("请上传套餐照片"); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																- 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																+				this.fromData.status = status 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 				this.$api.post('/merchant/hotel/repast', this.fromData).then(res => { 
															 | 
															
															 | 
															
																 				this.$api.post('/merchant/hotel/repast', this.fromData).then(res => { 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 					console.log(res.data); 
															 | 
															
															 | 
															
																 					console.log(res.data); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																+					if (res.data.code == 0) { 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																+						if (status == 0) { 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																+							this.$showToast('保存成功'); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																+ 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																+							setTimeout(() => { 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																+								uni.redirectTo({ 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																+									url: '/pages/HotelMerchandise/index' 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																+								}) 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																+								// uni.navigateBack(1) 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																+							}, 1000); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																+ 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																+						} else { 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																+							this.$showToast('上架成功'); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																+ 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																+							setTimeout(() => { 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																+								uni.redirectTo({ 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																+									url: '/pages/HotelMerchandise/index' 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																+								}) 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																+								// uni.navigateBack(1) 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																+							}, 1000); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																+						} 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																+ 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																+ 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																+					} else this.$showToast(res.data.msg); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 				}) 
															 | 
															
															 | 
															
																 				}) 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 			}, 
															 | 
															
															 | 
															
																 			}, 
															 | 
														
													
												
													
														
															| 
															 | 
															
																  
															 | 
															
															 | 
															
																  
															 |