Browse Source

Merge branch 'master' of http://git.ringzle.com:3000/htcwl/hotelHomestayWx

17755135699 1 year ago
parent
commit
037ca7ba7e
1 changed files with 17 additions and 8 deletions
  1. 17 8
      pagesHouse/Mine/Businesses/Businesses.vue

+ 17 - 8
pagesHouse/Mine/Businesses/Businesses.vue

@@ -68,7 +68,7 @@
 
 			<view class="one-mobile">
 				<view class="mobile" style="width: 350rpx;">
-					统一社信用代码
+					统一社信用代码
 				</view>
 
 				<view class="right">
@@ -82,8 +82,7 @@
 					企业地址
 				</view>
 				<view class="right">
-					<input type="text" v-model="list.areaDetail" border="none" placeholder="请输入"
-						style="height: 48rpx;" />
+					<input type="text" v-model="list.address" border="none" placeholder="请输入" style="height: 48rpx;" />
 				</view>
 			</view>
 
@@ -107,7 +106,6 @@
 				<view class="mobile">
 					联系人号码
 				</view>
-
 				<view class="right">
 					<input type="text" v-model="list.phone" border="none" placeholder="请输入" style="height: 48rpx;" />
 				</view>
@@ -223,7 +221,8 @@
 					usccl: '', //统一社会信息代码证
 					shopSign: '', //门头照
 					shopImgs: '', //店铺照片
-					id: ''
+					id: '',
+					address: '', //企业地址
 				},
 				typeList: {},
 				companyType: ''
@@ -231,7 +230,6 @@
 		},
 		onLoad() {
 			this.getList()
-			this.getDict()
 		},
 
 		methods: {
@@ -244,6 +242,7 @@
 				this.$api.get(`/merchant/merchantFisherman/home/${id}`).then(res => {
 					console.log(res.data);
 					this.list = res.data.data
+					this.getDict()
 				})
 			},
 			// 获取企业类型字典
@@ -260,6 +259,7 @@
 			},
 			// 立即保存
 			merchant() {
+				this.dto.idCardFront = this.list.idCardFront
 				this.dto.name = this.list.name
 				this.dto.busName = this.list.busName
 				this.dto.merchantType = this.list.merchantType
@@ -272,10 +272,19 @@
 				this.dto.usccl = this.list.usccl
 				this.dto.shopSign = this.list.shopSign
 				this.dto.shopImgs = this.list.shopImgs
+				this.dto.linkName = this.list.linkName
+				this.dto.phone = this.list.phone
+				this.dto.address = this.list.address
 				this.dto.id = uni.getStorageSync('merchantId')
-
 				this.$api.put('/merchant/merchantFisherman/home', this.dto).then(res => {
-					console.log(res);
+					console.log('0000', res.data);
+					if (res.data.code == 0) {
+						this.$showToast('保存成功');
+						setTimeout(() => {
+							this.getList()
+						}, 1000)
+
+					}
 				})
 			},
 			// 上传头像法人身份证国徽面