|  |  | 
 |  |  |                <view class="list-left">{{item.userName}}</view> | 
 |  |  |                <view class="list-right"><button size="mini" style="float: right;" type="warn" @click="removeFollowers(item.userId)">移除</button></view> | 
 |  |  |             </view> | 
 |  |  |             <view class="list-none" v-show="followers.length == 0"> | 
 |  |  |                <text>暂无跟进人</text> | 
 |  |  |             </view> | 
 |  |  |          </view> | 
 |  |  |           | 
 |  |  |       </scroll-view> | 
 |  |  | 
 |  |  |       data() { | 
 |  |  |          return { | 
 |  |  |             id: 0, | 
 |  |  |             baseUrl: '', | 
 |  |  |             cstmr: { | 
 |  |  |                id: '', | 
 |  |  |                name: '河北君邦乳业有限公司', | 
 |  |  |                tel: '15067665399', | 
 |  |  |                addr: '河北省邯郸市君邦乳业有限公司', | 
 |  |  |                cstman: '朱明忠' | 
 |  |  |                name: '', | 
 |  |  |                tel: '', | 
 |  |  |                addr: '', | 
 |  |  |                cstman: '' | 
 |  |  |             }, | 
 |  |  |             addFollower: { | 
 |  |  |                follower: '', | 
 |  |  | 
 |  |  |       }, | 
 |  |  |       onLoad(option) {  | 
 |  |  |          this.id = option.id | 
 |  |  |          this.baseUrl = uni.getStorageSync('baseUrl') | 
 |  |  |          this.init() | 
 |  |  |          this.autoLoad('follower','') | 
 |  |  |          setTimeout(()=>{ | 
 |  |  |             this.getFollowers() | 
 |  |  |          },500) | 
 |  |  | 			 | 
 |  |  | 			 | 
 |  |  |       }, | 
 |  |  |       methods: { | 
 |  |  |          init() { | 
 |  |  | 
 |  |  |          }, | 
 |  |  |          del(id) { | 
 |  |  |             let that = this | 
 |  |  |             var ida ; | 
 |  |  |             id = Number(id) | 
 |  |  |             ida.push(id) | 
 |  |  |             console.log(ida); | 
 |  |  |             var ids = []; | 
 |  |  |             ids.push(id) | 
 |  |  |             uni.request({ | 
 |  |  |                url: that.baseUrl + '/cstmr/delete/auth', | 
 |  |  |                header: {'token' : uni.getStorageSync('token'), | 
 |  |  |                }, | 
 |  |  |                data: ida, | 
 |  |  |                url: that.baseUrl + '/cstmr/delete/json', | 
 |  |  |                header: {'token' : uni.getStorageSync('token'),}, | 
 |  |  |                data: {ids: ids}, | 
 |  |  |                method: 'POST', | 
 |  |  |                success(res) { | 
 |  |  |                   console.log(res); | 
 |  |  |                   res = res.data | 
 |  |  |                   if (res.code === 200) { | 
 |  |  |                      uni.navigateBack() | 
 |  |  | 
 |  |  |          // 确认选择工作人 | 
 |  |  |          confirm() { | 
 |  |  |             let that = this | 
 |  |  |             var followerId = [], | 
 |  |  |                cstmrId = []; | 
 |  |  |                cstmrId.push(that.cstmrId) | 
 |  |  |             var followerId | 
 |  |  |             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) | 
 |  |  |                   followerId =followerList[i].value | 
 |  |  |                } | 
 |  |  |             } | 
 |  |  |             console.log(followerId); | 
 |  |  |             var followerIds = [] | 
 |  |  |             uni.request({ | 
 |  |  |                url: that.baseUrl + '/cstmr/followers/add/json', | 
 |  |  |                header:{'token':uni.getStorageSync('token'), | 
 |  |  |                   // 'content-type':'application/x-www-form-urlencoded', | 
 |  |  |                   }, | 
 |  |  |                data: { | 
 |  |  |                   cstmrId: 921, | 
 |  |  |                   followerIdList:[59,60]}, | 
 |  |  |                   cstmrId: that.cstmrId, | 
 |  |  |                   followerIds:followerId}, | 
 |  |  |                method: 'POST', | 
 |  |  |                success(result) { | 
 |  |  |                   var res = result.data | 
 |  |  |                   console.log(res); | 
 |  |  |                   that.getFollowers() | 
 |  |  |                } | 
 |  |  |             }) | 
 |  |  |             this.addFollower.follower = '' | 
 |  |  | 
 |  |  |                method: 'POST', | 
 |  |  |                success(result) { | 
 |  |  |                   var res = result.data | 
 |  |  |                   console.log(res); | 
 |  |  |                   if (res.code === 200) { | 
 |  |  |                      var element; | 
 |  |  |                      if (type == 'follower') { | 
 |  |  | 
 |  |  |          }, | 
 |  |  |          removeFollowers(userId) { | 
 |  |  |             let that = this | 
 |  |  |             console.log(that.cstmrId); | 
 |  |  |             uni.request({ | 
 |  |  |                url: that.baseUrl + '/cstmr/followers/remove/auth', | 
 |  |  |                header:{'token':uni.getStorageSync('token')}, | 
 |  |  |                header:{ | 
 |  |  |                   'token':uni.getStorageSync('token'), | 
 |  |  |                   'content-type': 'application/x-www-form-urlencoded' | 
 |  |  |                }, | 
 |  |  |                data: { | 
 |  |  |                   cstmrId:that.cstmrId, | 
 |  |  |                   userId: userId | 
 |  |  | 
 |  |  |                method:'POST', | 
 |  |  |                success(res) { | 
 |  |  |                   res = res.data | 
 |  |  |                   console.log(res); | 
 |  |  |                   that.getFollowers() | 
 |  |  |                } | 
 |  |  |             }) | 
 |  |  |          } | 
 |  |  | 
 |  |  |    .header { | 
 |  |  |       width: auto; | 
 |  |  |       min-height: 110rpx; | 
 |  |  |       background-color: #f8f8f8; | 
 |  |  |       background-color: #fff; | 
 |  |  |       padding: 30px 20px 10px 20px; | 
 |  |  |    } | 
 |  |  |    .cstmr-name { | 
 |  |  | 
 |  |  |    .container { | 
 |  |  |       margin-top: 10px; | 
 |  |  |       padding: 10rpx 20rpx 0 20rpx; | 
 |  |  |       background-color: #f8f8f8; | 
 |  |  |       background-color: #fff; | 
 |  |  |       display: grid; | 
 |  |  |       grid-template-columns: 1fr 3fr; | 
 |  |  |    } | 
 |  |  | 
 |  |  |       min-height: 100rpx; | 
 |  |  |       bottom: 0; | 
 |  |  |       margin-bottom: 0; | 
 |  |  |       background-color: #f8f8f8; | 
 |  |  |       background-color: #fff; | 
 |  |  |       border-top: 1px solid #efefef; | 
 |  |  |       display: flex; | 
 |  |  |       align-items: center; | 
 |  |  | 
 |  |  |       /* background-color: #222; */ | 
 |  |  |       padding-right: 30rpx; | 
 |  |  |    } | 
 |  |  |    .list-none { | 
 |  |  |       min-height: 60rpx; | 
 |  |  |       margin-top: 20rpx; | 
 |  |  |       text-align: center; | 
 |  |  |       /* background-color: #303133; */ | 
 |  |  |       color: #b1b3b8; | 
 |  |  |       grid-column: 1 / 10; | 
 |  |  |       display: grid; | 
 |  |  |       position: relative; | 
 |  |  |    } | 
 |  |  | </style> |