yujian
2020-05-21 f81ece6d6274beefe29845eb770dd3bdd66e2107
添加活动名称
3个文件已修改
368 ■■■■■ 已修改文件
childPath/looks/layout_2.html 117 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
childPath/looks/special_activity_inner.html 119 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
childPath/looks/swiper2.html 132 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
childPath/looks/layout_2.html
@@ -293,9 +293,15 @@
                                                dataType: "img"
                                            },
                                            {
                                                title: "名称",
                                                title: "活动名称",
                                                key: mo[i].name,
                                                value: mo[i].name
                                            },
                                            {
                                                title: "备注",
                                                key: mo[i].remark,
                                                value: mo[i].remark,
                                                "class": "font-gray"
                                            },
                                            {
                                                title: "查询版本",
@@ -343,12 +349,6 @@
                                                value: mo[i].jumpLogin ? "需要" : "不需要"
                                            },
                                            {
                                                title: "备注",
                                                key: mo[i].remark,
                                                value: mo[i].remark,
                                                "class": "font-gray"
                                            },
                                            {
                                                title: "ID",
                                                key: mo[i].id,
                                                value: mo[i].id
@@ -387,7 +387,7 @@
                                    }
                                    
                                    //性别分析
                                    var index_sex = 8;
                                    var index_sex = 9;
                                    if (thatTr.td[index_sex].key == 0) {
                                        thatTr.td[index_sex].value = "通用";
                                    } else if (thatTr.td[index_sex].key == 1) {
@@ -405,16 +405,16 @@
                                    }
                                    // 跳转参数
                                    if (typeof(thatTr.td[10].key) == "object") {
                                        thatTr.td[10].value = JSON.stringify(thatTr.td[10].key);
                                        thatTr.td[10].key = JSON.stringify(thatTr.td[10].key);
                                    if (typeof(thatTr.td[11].key) == "object") {
                                        thatTr.td[11].value = JSON.stringify(thatTr.td[11].key);
                                        thatTr.td[11].key = JSON.stringify(thatTr.td[11].key);
                                    }
                                    if (thatTr.td[11].key == true) {
                                        thatTr.td[11].value = "需要";
                                    if (thatTr.td[12].key == true) {
                                        thatTr.td[12].value = "需要";
                                    } else {
                                        thatTr.td[11].value = "不需要";
                                        thatTr.td[12].value = "不需要";
                                    }
                                    // 将当前行放入tr组
@@ -467,13 +467,22 @@
                        },
                    },
                    {
                        title: "名称",
                        title: "活动名称",
                        width: "0.7rem",
                        orderUp: "",
                        orderDown: "",
                        edit: {
                            type: "text",
                            placeholder: '如:9.9包邮',
                        },
                    },
                    {
                        title: "活动利益点",
                        width: "0.6rem",
                        orderUp: "",
                        orderDown: "",
                        edit: {
                            type: "text"
                        },
                    },
                    {
@@ -550,15 +559,6 @@
                        },
                    },
                    {
                        title: "备注",
                        width: "0.6rem",
                        orderUp: "",
                        orderDown: "",
                        edit: {
                            type: "textarea"
                        },
                    },
                    {
                        title: "ID",
                        width: "0.4rem",
                        orderUp: "",
@@ -604,7 +604,7 @@
                            listC.push(jiedian);
                        }
                        // 重置表格头排
                        vm_table.thead.th[9].edit.list = listC;
                        vm_table.thead.th[10].edit.list = listC;
                    }
                }
            });
@@ -632,7 +632,7 @@
                key: 20,
                value: '男+通用'
            }];
            vm_table.thead.th[8].edit.list = sexData;
            vm_table.thead.th[9].edit.list = sexData;
            // 工具栏
@@ -682,23 +682,35 @@
                                var mydata = {
                                    cardId: layoutId, // 外层id
                                    name: item[3].key, // 名称
                                    startTime_str: item[6].key, // 起始时间
                                    endTime_str: item[7].key, // 结束时间
                                    sex: item[8].key,
                                    jumpType: item[9].key, // 跳转方式
                                    params: item[10].key, // 跳转参数
                                    jumpLogin: item[11].key, // 是否需要登录
                                    remark: item[12].key, // 备注
                                    needSpin: item[14].key, // 是否转链
                                    remark: item[4].key, // 备注
                                    startTime_str: item[7].key, // 起始时间
                                    endTime_str: item[8].key, // 结束时间
                                    sex: item[9].key,
                                    jumpType: item[10].key, // 跳转方式
                                    params: item[11].key, // 跳转参数
                                    comment: item[15].key, // 评论语
                                };
                                // 启用状态
                                if (item[5].key == 1) {
                                if (item[6].key == 1) {
                                    mydata.state = 0;
                                } else {
                                    mydata.state = 1;
                                }
                                // 是否需要登录
                                if (item[12].key == 1) {
                                    mydata.jumpLogin = 1;
                                } else {
                                    mydata.jumpLogin = 0;
                                }
                                // 是否转链
                                if (item[14].key == 1) {
                                    mydata.needSpin = 1;
                                } else {
                                    mydata.needSpin = 0;
                                }
                                // 如果修改了图片 
                                if (item[0].change == true) {
@@ -786,25 +798,35 @@
                                 var mydata = {
                                    cardId: layoutId, // 外层id
                                    name: item[3].key, // 名称
                                    state: item[5].key, // 启用状态
                                    startTime_str: item[6].key, // 起始时间
                                    endTime_str: item[7].key, // 结束时间
                                    sex: item[8].key,
                                    jumpType: item[9].key, // 跳转方式
                                    params: item[10].key, // 跳转参数
                                    jumpLogin: item[11].key, // 是否需要登录
                                    remark: item[12].key, // 备注
                                    remark: item[4].key, // 备注
                                    startTime_str: item[7].key, // 起始时间
                                    endTime_str: item[8].key, // 结束时间
                                    sex: item[9].key,
                                    jumpType: item[10].key, // 跳转方式
                                    params: item[11].key, // 跳转参数
                                    id: item[13].key, // ID
                                    needSpin: item[14].key, // 是否转链
                                    comment: item[15].key, // 评论语
                                 };
                                 
                                 // 启用状态
                                 if (item[5].key == 1) {
                                 if (item[6].key == 1) {
                                     mydata.state = 0;
                                 } else {
                                     mydata.state = 1;
                                 }
                                 // 是否需要登录
                                 if (item[12].key == 1) {
                                     mydata.jumpLogin = 1;
                                 } else {
                                     mydata.jumpLogin = 0;
                                 }
                                 // 是否转链
                                 if (item[14].key == 1) {
                                     mydata.needSpin = 1;
                                 } else {
                                     mydata.needSpin = 0;
                                 }
                                // 如果修改了图片
                                if (item[0].del == true) {
                                    mydata.delPicture = true;
@@ -905,7 +927,8 @@
                                        }
                                    }
                                    // 直接更换顺序
                                    upRecord(vm_table.tbody.tr, thisIndex);
                                    //upRecord(vm_table.tbody.tr, thisIndex);
                                    vm_table.search();
                                }
                            }
                        });
@@ -946,7 +969,7 @@
                                        }
                                    }
                                    // 直接更换顺序
                                    downRecord(vm_table.tbody.tr, thisIndex);
                                    vm_table.search();
                                }
                            }
                        });
childPath/looks/special_activity_inner.html
@@ -3,7 +3,7 @@
    <head>
        <meta charset="utf-8">
        <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
        <title>内容设置2级</title>
        <title>动态活动详情</title>
        <link rel="stylesheet" type="text/css" href="../../css/doui.min.css" />
        <link rel="stylesheet" type="text/css" href="../../layui/css/layui.css" />
@@ -293,9 +293,15 @@
                                                dataType: "img"
                                            },
                                            {
                                                title: "名称",
                                                title: "活动名称",
                                                key: mo[i].name,
                                                value: mo[i].name
                                            },
                                            {
                                                title: "备注",
                                                key: mo[i].remark,
                                                value: mo[i].remark,
                                                "class": "font-gray"
                                            },
                                            {
                                                title: "查询版本",
@@ -343,12 +349,6 @@
                                                value: mo[i].jumpLogin ? "需要" : "不需要"
                                            },
                                            {
                                                title: "备注",
                                                key: mo[i].remark,
                                                value: mo[i].remark,
                                                "class": "font-gray"
                                            },
                                            {
                                                title: "ID",
                                                key: mo[i].id,
                                                value: mo[i].id
@@ -387,7 +387,7 @@
                                    }
                                    
                                    //性别分析
                                    var index_sex = 8;
                                    var index_sex = 9;
                                    if (thatTr.td[index_sex].key == 0) {
                                        thatTr.td[index_sex].value = "通用";
                                    } else if (thatTr.td[index_sex].key == 1) {
@@ -405,16 +405,16 @@
                                    }
                                    // 跳转参数
                                    if (typeof(thatTr.td[10].key) == "object") {
                                        thatTr.td[10].value = JSON.stringify(thatTr.td[10].key);
                                        thatTr.td[10].key = JSON.stringify(thatTr.td[10].key);
                                    if (typeof(thatTr.td[11].key) == "object") {
                                        thatTr.td[11].value = JSON.stringify(thatTr.td[11].key);
                                        thatTr.td[11].key = JSON.stringify(thatTr.td[11].key);
                                    }
                                    if (thatTr.td[11].key == true) {
                                        thatTr.td[11].value = "需要";
                                    if (thatTr.td[12].key == true) {
                                        thatTr.td[12].value = "需要";
                                    } else {
                                        thatTr.td[11].value = "不需要";
                                        thatTr.td[12].value = "不需要";
                                    }
                                    // 将当前行放入tr组
@@ -467,13 +467,22 @@
                        },
                    },
                    {
                        title: "名称",
                        title: "活动名称",
                        width: "0.7rem",
                        orderUp: "",
                        orderDown: "",
                        edit: {
                            type: "text",
                            placeholder: '如:9.9包邮',
                        },
                    },
                    {
                        title: "活动利益点",
                        width: "0.6rem",
                        orderUp: "",
                        orderDown: "",
                        edit: {
                            type: "text"
                        },
                    },
                    {
@@ -550,15 +559,6 @@
                        },
                    },
                    {
                        title: "备注",
                        width: "0.6rem",
                        orderUp: "",
                        orderDown: "",
                        edit: {
                            type: "textarea"
                        },
                    },
                    {
                        title: "ID",
                        width: "0.4rem",
                        orderUp: "",
@@ -604,7 +604,7 @@
                            listC.push(jiedian);
                        }
                        // 重置表格头排
                        vm_table.thead.th[9].edit.list = listC;
                        vm_table.thead.th[10].edit.list = listC;
                    }
                }
            });
@@ -632,7 +632,7 @@
                key: 20,
                value: '男+通用'
            }];
            vm_table.thead.th[8].edit.list = sexData;
            vm_table.thead.th[9].edit.list = sexData;
            // 工具栏
@@ -682,23 +682,35 @@
                                var mydata = {
                                    cardId: layoutId, // 外层id
                                    name: item[3].key, // 名称
                                    startTime_str: item[6].key, // 起始时间
                                    endTime_str: item[7].key, // 结束时间
                                    sex: item[8].key,
                                    jumpType: item[9].key, // 跳转方式
                                    params: item[10].key, // 跳转参数
                                    jumpLogin: item[11].key, // 是否需要登录
                                    remark: item[12].key, // 备注
                                    needSpin: item[14].key, // 是否转链
                                    remark: item[4].key, // 备注
                                    startTime_str: item[7].key, // 起始时间
                                    endTime_str: item[8].key, // 结束时间
                                    sex: item[9].key,
                                    jumpType: item[10].key, // 跳转方式
                                    params: item[11].key, // 跳转参数
                                    comment: item[15].key, // 评论语
                                };
                                // 启用状态
                                if (item[5].key == 1) {
                                if (item[6].key == 1) {
                                    mydata.state = 0;
                                } else {
                                    mydata.state = 1;
                                }
                                // 是否需要登录
                                if (item[12].key == 1) {
                                    mydata.jumpLogin = 1;
                                } else {
                                    mydata.jumpLogin = 0;
                                }
                                // 是否转链
                                if (item[14].key == 1) {
                                    mydata.needSpin = 1;
                                } else {
                                    mydata.needSpin = 0;
                                }
                                // 如果修改了图片 
                                if (item[0].change == true) {
@@ -786,25 +798,35 @@
                                 var mydata = {
                                    cardId: layoutId, // 外层id
                                    name: item[3].key, // 名称
                                    state: item[5].key, // 启用状态
                                    startTime_str: item[6].key, // 起始时间
                                    endTime_str: item[7].key, // 结束时间
                                    sex: item[8].key,
                                    jumpType: item[9].key, // 跳转方式
                                    params: item[10].key, // 跳转参数
                                    jumpLogin: item[11].key, // 是否需要登录
                                    remark: item[12].key, // 备注
                                    remark: item[4].key, // 备注
                                    startTime_str: item[7].key, // 起始时间
                                    endTime_str: item[8].key, // 结束时间
                                    sex: item[9].key,
                                    jumpType: item[10].key, // 跳转方式
                                    params: item[11].key, // 跳转参数
                                    id: item[13].key, // ID
                                    needSpin: item[14].key, // 是否转链
                                    comment: item[15].key, // 评论语
                                 };
                                 
                                 // 启用状态
                                 if (item[5].key == 1) {
                                 if (item[6].key == 1) {
                                     mydata.state = 0;
                                 } else {
                                     mydata.state = 1;
                                 }
                                 // 是否需要登录
                                 if (item[12].key == 1) {
                                     mydata.jumpLogin = 1;
                                 } else {
                                     mydata.jumpLogin = 0;
                                 }
                                 // 是否转链
                                 if (item[14].key == 1) {
                                     mydata.needSpin = 1;
                                 } else {
                                     mydata.needSpin = 0;
                                 }
                                // 如果修改了图片
                                if (item[0].del == true) {
                                    mydata.delPicture = true;
@@ -905,7 +927,8 @@
                                        }
                                    }
                                    // 直接更换顺序
                                    upRecord(vm_table.tbody.tr, thisIndex);
                                    //upRecord(vm_table.tbody.tr, thisIndex);
                                    vm_table.search();
                                }
                            }
                        });
@@ -946,7 +969,7 @@
                                        }
                                    }
                                    // 直接更换顺序
                                    downRecord(vm_table.tbody.tr, thisIndex);
                                    vm_table.search();
                                }
                            }
                        });
childPath/looks/swiper2.html
@@ -165,6 +165,17 @@
                                                dataType: "img"
                                            },
                                            {
                                                title: "活动名称",
                                                key: mo[i].title,
                                                value: mo[i].title
                                            },
                                            {
                                                title: "活动利益点",
                                                key: mo[i].desc,
                                                value: mo[i].desc,
                                                "class": "font-gray"
                                            },
                                            {
                                                title: "版本选择",
                                                key: mo[i].id,
                                                value: '版本查询',
@@ -234,9 +245,9 @@
                                    };
                                     
                                    // 跳转参数
                                    if (typeof(thatTr.td[7].key) == "object") {
                                        thatTr.td[7].value = JSON.stringify(thatTr.td[7].key);
                                        thatTr.td[7].key = JSON.stringify(thatTr.td[7].key);
                                    if (typeof(thatTr.td[9].key) == "object") {
                                        thatTr.td[9].value = JSON.stringify(thatTr.td[9].key);
                                        thatTr.td[9].key = JSON.stringify(thatTr.td[9].key);
                                    }
                                    // 将当前行放入tr组
                                    mo_tr.push(thatTr);
@@ -267,6 +278,25 @@
                        orderDown: "",
                        edit: {
                            type: "file",
                        },
                    },
                    {
                        title: "活动名称",
                        width: "0.7rem",
                        orderUp: "",
                        orderDown: "",
                        edit: {
                            type: "text",
                            placeholder: '如:9.9包邮',
                        },
                    },
                    {
                        title: "活动利益点",
                        width: "0.6rem",
                        orderUp: "",
                        orderDown: "",
                        edit: {
                            type: "text"
                        },
                    },
                    {
@@ -394,7 +424,7 @@
                            listC.push(jiedian);
                        }
                        // 重置表格头排
                        vm_table.thead.th[6].edit.list = listC;
                        vm_table.thead.th[8].edit.list = listC;
                    }
                }
            });
@@ -443,22 +473,43 @@
                                // 请求数据
                                var mydata = {
                                    bannerId: bannerId, // 轮播图id
                                    autoControl: item[3].key, // 自动控制
                                    startTime_str: item[4].key, // 起始时间
                                    endTime_str: item[5].key, // 结束时间
                                    jumpType: item[6].key, // 跳转方式
                                    params: item[7].key, // 跳转参数
                                    jumpNeedLogin: item[8].key, // 是否需要登录
                                    remark: item[9].key, // 备注
                                    needSpin: item[11].key, // 是否转链
                                    comment: item[12].key, // 评论语
                                    title: item[1].key, // 自动控制
                                    desc: item[2].key, // 起始时间
                                    startTime_str: item[6].key, // 起始时间
                                    endTime_str: item[7].key, // 结束时间
                                    jumpType: item[8].key, // 跳转方式
                                    params: item[9].key, // 跳转参数
                                    jumpNeedLogin: item[10].key,
                                    remark: item[11].key, // 备注
                                    comment: item[14].key, // 评论语
                                };
                                
                                if (item[2].key == 1) {
                                if (item[4].key == 1) {
                                    mydata.state = 0;
                                } else {
                                    mydata.state = 1;
                                }
                                // 自动控制
                                if (item[5].key == 1) {
                                    mydata.autoControl = 1;
                                } else {
                                    mydata.autoControl = 0;
                                }
                                // 是否需要登录
                                if (item[10].key == 1) {
                                    mydata.jumpNeedLogin = 1;
                                } else {
                                    mydata.jumpNeedLogin = 0;
                                }
                                // 是否需要转链
                                if (item[13].key == 1) {
                                    mydata.needSpin = 1;
                                } else {
                                    mydata.needSpin = 0;
                                }
                                
                                // 如果修改了图片 
                                if (item[0].change == true) {
@@ -494,7 +545,7 @@
                        // 被选中的行id组构建
                        var zu_id = new Array();
                        for (var i = 0, mo = back.list; i < mo.length; i++) {
                            zu_id.push(mo[i][10].key);
                            zu_id.push(mo[i][12].key);
                        }
                        // 发起请求
                        var loading = layer.load(0, {
@@ -539,23 +590,42 @@
                                 
                                // 请求数据
                                var mydata = {
                                    bannerId: bannerId, // 轮播图id
                                    autoControl: item[3].key, // 自动控制
                                    startTime_str: item[4].key, // 起始时间
                                    endTime_str: item[5].key, // 结束时间
                                    jumpType: item[6].key, // 跳转方式
                                    params: item[7].key, // 跳转参数
                                    jumpNeedLogin: item[8].key, // 是否需要登录
                                    remark: item[9].key, // 备注
                                    id: item[10].key, // ID
                                    needSpin: item[11].key, // 是否转链
                                    comment: item[12].key, // 评论语
                                bannerId: bannerId, // 轮播图id
                                    title: item[1].key, // 自动控制
                                    desc: item[2].key, // 起始时间
                                    startTime_str: item[6].key, // 起始时间
                                    endTime_str: item[7].key, // 结束时间
                                    jumpType: item[8].key, // 跳转方式
                                    params: item[9].key, // 跳转参数
                                    jumpNeedLogin: item[10].key,
                                    remark: item[11].key, // 备注
                                    id: item[12].key, // id
                                    comment: item[14].key, // 评论语
                                };
                                
                                if (item[2].key == 1) {
                                if (item[4].key == 1) {
                                    mydata.state = 0;
                                } else {
                                    mydata.state = 1;
                                }
                                // 自动控制
                                if (item[5].key == 1) {
                                    mydata.autoControl = 1;
                                } else {
                                    mydata.autoControl = 0;
                                }
                                // 是否需要登录
                                if (item[10].key == 1) {
                                    mydata.jumpNeedLogin = 1;
                                } else {
                                    mydata.jumpNeedLogin = 0;
                                }
                                // 是否需要转链
                                if (item[13].key == 1) {
                                    mydata.needSpin = 1;
                                } else {
                                    mydata.needSpin = 0;
                                }
                                // 如果修改了图片 
                                if (item[0].change == true) {
@@ -605,7 +675,7 @@
                            type: "jsonp",
                            url: gethttp() + "/admin/new/api/v1/swiperbanner/saveOrder",
                            data: {
                                id: item[10].key,
                                id: item[12].key,
                                moveType: "-1",
                            },
                            success: function(res) {
@@ -618,7 +688,7 @@
                                    // 获取当前行顺序
                                    var thisIndex = null;
                                    for (var i = 0, mo = vm_table.tbody.tr; i < mo.length; i++) {
                                        if (mo[i].td[10].key == item[01].key) {
                                        if (mo[i].td[12].key == item[12].key) {
                                            thisIndex = i;
                                            break;
                                        }
@@ -648,7 +718,7 @@
                            type: "jsonp",
                            url: gethttp() + "/admin/new/api/v1/swiperbanner/saveOrder",
                            data: {
                                id: item[10].key,
                                id: item[12].key,
                                moveType: "1",
                            },
                            success: function(res) {
@@ -659,7 +729,7 @@
                                    // 获取当前行顺序
                                    var thisIndex = null;
                                    for (var i = 0, mo = vm_table.tbody.tr; i < mo.length; i++) {
                                        if (mo[i].td[10].key == item[10].key) {
                                        if (mo[i].td[12].key == item[12].key) {
                                            thisIndex = i;
                                            break;
                                        }