yujian
2020-04-28 7a1719ab27456cc6a5c32dcd2dd616dc54059b6a
队员
1个文件已修改
33 ■■■■ 已修改文件
childPath/user/friend.html 33 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
childPath/user/friend.html
@@ -66,15 +66,6 @@
                show: true,
                list: [
                    {
                        title: "邀请状态",
                        muchCheck: false, // 是否可以多选
                        child: [
                            { key: [1], value: "成功", check: false },
                            { key: [0], value: "脱离", check: false },
                        ],
                        input: { type: "number", num: 0 },
                    },
                    {
                        title: "有效粉丝", 
                        muchCheck: false, // 是否可以多选
                        child: [
@@ -108,10 +99,9 @@
                            pageSize: optC.table.pageSize, // 每页数量
                            uid: optC.input[0].result, // 搜索关键字
                            type: optC.change.result, // 顶部选项
                            state: optC.screen[0].result[0], // 邀请状态
                            validState: optC.screen[1].result[0], //有效
                            startTime: optC.screen[2].result[0], // 时间最小
                            endTime: optC.screen[2].result[1]?optC.screen[2].result[1]:'', // 时间最大
                            validState: optC.screen[0].result[0], //有效
                            startTime: optC.screen[1].result[0], // 时间最小
                            endTime: optC.screen[1].result[1]?optC.screen[1].result[1]:'', // 时间最大
                        },
                        success: function (res)
                        {
@@ -132,25 +122,21 @@
                                            { title: "邀请人ID", key: mo[i].boss.id, value: mo[i].boss.id },
                                            { title: "被邀请人ID", key: mo[i].worker.id, value: mo[i].worker.id },
                                            { title: "被邀请人昵称", key: mo[i].worker.nickName, value: mo[i].worker.nickName },
                                            { title: "邀请状态", key: mo[i].state, value: mo[i].state },
                                            { title: "有效状态", key: mo[i].validState, value: mo[i].validState },
                                            { title: "邀请时间", key: mo[i].createTime, value: mo[i].createTime },
                                        ],
                                    };
                                    // 邀请时间
                                    if (thatTr.td[7].key)
                                    if (thatTr.td[6].key)
                                    {
                                        doui.timestampToDate({
                                            timestamp: thatTr.td[7].key,
                                            success: function (res) { thatTr.td[7].value = res; }
                                            timestamp: thatTr.td[6].key,
                                            success: function (res) { thatTr.td[6].value = res; }
                                        });
                                    }
                                    
                                    if (thatTr.td[5].key) { thatTr.td[5].value = "成功"; thatTr.td[5]["class"] = "font-green"; }
                                    else { thatTr.td[5].value = "脱离"; thatTr.td[5]["class"] = "font-red"; }
                                    if (thatTr.td[6].key > 0) { thatTr.td[6].value = "有效"; thatTr.td[6]["class"] = "font-green"; }
                                    else { thatTr.td[6].value = "无效"; thatTr.td[6]["class"] = "font-gray"; }
                                    if (thatTr.td[5].key > 0) { thatTr.td[5].value = "有效粉丝"; thatTr.td[5]["class"] = "font-green"; }
                                    else { thatTr.td[5].value = ""; thatTr.td[5]["class"] = "font-gray"; }
                                    
                                    // 将当前行放入tr组
                                    mo_tr.push(thatTr);
@@ -175,8 +161,7 @@
                    { title: "邀请人ID", width: "0.5rem", orderUp: "", orderDown: "" },
                    { title: "被邀请人ID", width: "0.5rem", orderUp: "", orderDown: "" },
                    { title: "被邀请人昵称", width: "0.5rem", orderUp: "", orderDown: "" },
                    { title: "邀请状态", width: "0.3rem", orderUp: "", orderDown: "" },
                    { title: "有效状态", width: "0.3rem", orderUp: "", orderDown: "" },
                    { title: "是否有效粉丝", width: "0.3rem", orderUp: "", orderDown: "" },
                    { title: "邀请时间", width: "0.5rem", orderUp: "", orderDown: "" },
                ]
            });