htc 3 månader sedan
förälder
incheckning
917faa7770
2 ändrade filer med 11 tillägg och 3 borttagningar
  1. 2 1
      http/index.js
  2. 9 2
      pagesHouse/Mine/PersonalEditing/PersonalEditing.vue

+ 2 - 1
http/index.js

@@ -121,7 +121,8 @@ const apiList = [
 	'/merchant/hotel/order/getOrderDetail',
 	'/merchant/hotel/repast/getRepastOrderInfo',
 	'/merchant/hotel/order/getMerchantOrderPageList',
-	'/merchant/hotel/room/state/getRoomStateCount'
+	'/merchant/hotel/room/state/getRoomStateCount',
+	'/api/merchant/food/merchant'
 ]
 //解密脱敏处理
 function dealJmTmData(data, isTm) {

+ 9 - 2
pagesHouse/Mine/PersonalEditing/PersonalEditing.vue

@@ -167,10 +167,17 @@
 				this.dto.id = uni.getStorageSync('merchantId')
 				this.dto.id = uni.getStorageSync('merchantId')
 				
-				this.$api.detectionContent(this.dto.name).then(result => {
+				let newDto = JSON.parse(JSON.stringify(this.dto));
+				newDto.idCard = this.$aesTm.encrypt(newDto.idCard);
+				newDto.legalPerson = this.$aesTm.encrypt(newDto.legalPerson);
+				newDto.linkName = this.$aesTm.encrypt(newDto.linkName);
+				newDto.phone = this.$aesTm.encrypt(newDto.phone);
+				// return console.log(newDto,'this.dto');
+				
+				this.$api.detectionContent(newDto.name).then(result => {
 					if (result.code !== 0) return this.$showToast(result.msg);
 					
-					this.$api.put('/api/merchant/food/updateMerchantInfo', this.dto).then(res => {
+					this.$api.put('/api/merchant/food/updateMerchantInfo', newDto).then(res => {
 						if (res.data.code == 0) {
 							this.$showToast('保存成功');
 						}