From 72157573f7d10c9f9e093689968d9d47af422189 Mon Sep 17 00:00:00 2001
From: whycq <10027870+whycq@user.noreply.gitee.com>
Date: 星期二, 20 十二月 2022 17:02:26 +0800
Subject: [PATCH] #

---
 pages/business/cstmr/cstmrDetails.vue |   25 +++++++++++++++++++++++++
 1 files changed, 25 insertions(+), 0 deletions(-)

diff --git a/pages/business/cstmr/cstmrDetails.vue b/pages/business/cstmr/cstmrDetails.vue
index b66c980..ce74f77 100644
--- a/pages/business/cstmr/cstmrDetails.vue
+++ b/pages/business/cstmr/cstmrDetails.vue
@@ -137,6 +137,30 @@
 			},
 			// 纭閫夋嫨宸ヤ綔浜�
 			confirm() {
+				let that = this
+				var followerId = [],
+					cstmrId = [];
+					cstmrId.push(that.cstmrId)
+				var followerList = that.addFollower.followerList
+				for (var i = 0;i < followerList.length; i++) {
+					if (followerList[i].name == this.addFollower.follower) {
+						followerId.push(followerList[i].value)
+					}
+				}
+				uni.request({
+					url: that.baseUrl + '/cstmr/followers/add/json',
+					header:{'token':uni.getStorageSync('token'),
+						// 'content-type':'application/x-www-form-urlencoded',
+						},
+					data: {
+						cstmrId: cstmrId,
+						followerIdList:followerId},
+					method: 'POST',
+					success(result) {
+						var res = result.data
+						console.log(res);
+					}
+				})
 				this.addFollower.follower = ''
 			},
 			// 宸ヤ綔浜哄垪琛�
@@ -151,6 +175,7 @@
 					method: 'POST',
 					success(result) {
 						var res = result.data
+						console.log(res);
 						if (res.code === 200) {
 							var element;
 							if (type == 'follower') {

--
Gitblit v1.9.1