高敬炎 il y a 1 an
Parent
commit
558ffa4ac6
3 fichiers modifiés avec 22 ajouts et 17 suppressions
  1. 2 2
      uni_applet/config/index.js
  2. 19 14
      uni_applet/pageA/find/edit.vue
  3. 1 1
      uni_applet/pages.json

+ 2 - 2
uni_applet/config/index.js

@@ -1,8 +1,8 @@
 const dev = {
 	// baseUrlNew: 'http://192.168.110.72:8182',
 	// baseUrlNew: 'http://192.168.110.138:8182',
-	// baseUrlNew: 'http://192.168.110.138:8183',
-	baseUrlNew: 'http://192.168.110.82:8183',
+	baseUrlNew: 'http://192.168.110.138:8183',
+	// baseUrlNew: 'http://192.168.110.82:8183',
 	// baseUrlNew: 'https://cardapi.eliangeyun.com',
 	h5Appid: 'wxb66b599f7f61b46f',
 	debug: false

+ 19 - 14
uni_applet/pageA/find/edit.vue

@@ -143,23 +143,25 @@
 				}).then(res => {
 					console.log(res)
 					this.form=res.data
-							
+					if(this.form.coverImage){
+						this.fileList1=[{url:this.form.coverImage}]
+					}
+					if(this.form.businessLicense){
+						this.fileList2=[{url:this.form.businessLicense}]
+					}
+					if(this.form.personImageFront){
+						this.fileList4=[{url:this.form.personImageFront}]
+					}
+					if(this.form.personImageBack){
+						this.fileList6=[{url:this.form.personImageBack}]
+					}
 				})
 			},
 			submit(){
-				uni.showModal({
-					title:'123',
-					success: () => {
-							console.log(123)
-					}
-				})
-				
-				
-				
 				if(this.form.mainBody=='商铺'){
-					this.content='确定提交店铺信息'
+					this.content='确定修改店铺信息'
 				}else{
-					this.content='确定提交服务信息'
+					this.content='确定修改服务信息'
 				}
 				if(this.form.mainBody=='商铺'&&this.form.shopNames.length<2||this.form.mainBody=='商铺'&&this.form.shopNames.length>15){
 					uni.showToast({
@@ -243,7 +245,7 @@
 					title: '加载中',
 					mask: true
 				})
-				this.$request.baseRequest('admin.tourism.productManagement', 'add', {
+				this.$request.baseRequest('admin.tourism.productManagement', 'update', {
 					productManagement: JSON.stringify(this.form)
 				}, failres => {
 					uni.showToast({
@@ -257,7 +259,7 @@
 					this.isSubmit = false
 					uni.showToast({
 						icon: "success",
-						title: '提交成功!',
+						title: '编辑成功!',
 						duration: 2000
 					});
 					uni.navigateBack()
@@ -356,6 +358,9 @@
 </script>
 
 <style lang="scss" scoped>
+.content{
+	padding-bottom: 150rpx;
+}
  .wrap{
 	 padding:20rpx;
  }

+ 1 - 1
uni_applet/pages.json

@@ -371,7 +371,7 @@
             ]
 	}],
 	"preloadRule": {
-		"pages/accommodation/accommodation": {
+		"pages/food/food": {
 			"network": "all",
 			"packages": ["pageA"]
 		}