#
whycq
2022-12-20 dfdeff71e618c6dbe66edd9eb8a7f3d18c4d3353
#
1个文件已修改
27 ■■■■■ 已修改文件
pages/business/cstmr/cstmrDetails.vue 27 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/business/cstmr/cstmrDetails.vue
@@ -137,6 +137,32 @@
            },
            // 确认选择工作人
            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)
                    }
                }
                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]},
                    method: 'POST',
                    success(result) {
                        var res = result.data
                        console.log(res);
                    }
                })
                this.addFollower.follower = ''
            },
            // 工作人列表
@@ -151,6 +177,7 @@
                    method: 'POST',
                    success(result) {
                        var res = result.data
                        console.log(res);
                        if (res.code === 200) {
                            var element;
                            if (type == 'follower') {