Hentua
2023-04-20 e73a8aac21ee8a68fa6d8efb998de25552318ce3
src/main/resources/templates/febs/views/modules/shop/shopList.html
@@ -73,10 +73,10 @@
            var data = obj.data,
                layEvent = obj.event;
            if (layEvent === 'shopInfoUpdate') {
                febs.modal.open('编辑', 'modules/news/shopInfoUpdate/' + data.id, {
                febs.modal.open('编辑', 'modules/shop/update/' + data.id, {
                    btn: ['提交', '取消'],
                    yes: function (index, layero) {
                        $('#newsInfo-update').find('#submit').trigger('click');
                        $('#shop-update').find('#submit').trigger('click');
                    },
                    btn2: function () {
                        layer.closeAll();
@@ -91,7 +91,7 @@
        });
        function delShopInfo(id) {
            febs.get(ctx + 'admin/news/delShopInfo/' + id, null, function () {
            febs.get(ctx + 'admin/shop/del/' + id, null, function () {
                febs.alert.success('操作成功');
                $query.click();
            });
@@ -114,7 +114,7 @@
            febs.modal.open('新增', 'modules/shop/add/', {
                btn: ['提交', '取消'],
                yes: function (index, layero) {
                    $('#newsInfo-add').find('#submit').trigger('click');
                    $('#shop-add').find('#submit').trigger('click');
                },
                btn2: function () {
                    layer.closeAll();
@@ -130,7 +130,7 @@
                cols: [[
                    {field: 'shopImage', title: '店铺图片',
                        templet: function (d) {
                            return '<a lay-event="seeImgThumb"><img id="seeImgThumb'+d.id+'" src="'+d.thumb+'" alt=""></a>';
                            return '<a lay-event="seeImgThumb"><img id="seeImgThumb'+d.id+'" src="'+d.shopImage+'" alt=""></a>';
                        }, minWidth: 150,align:'center'},
                    {field: 'shopName', title: '店铺名称', minWidth: 120,align:'center'},
                    {field: 'phone', title: '联系方式', minWidth: 120,align:'center'},
@@ -151,14 +151,13 @@
        }
        form.on('switch(isTopSwitch)', function (data) {
            console.log(data.value);
            if (data.elem.checked) {
                febs.post(ctx + 'admin/news/topNews/' + data.value, null, function () {
                febs.post(ctx + 'admin/shop/upOrDown/' + data.value + '/' + 1, null, function () {
                    febs.alert.success('设置成功');
                    $query.click();
                });
            } else {
                febs.post(ctx + 'admin/news/unTopNews/' + data.value, null, function () {
                febs.post(ctx + 'admin/shop/upOrDown/' + data.value + '/' + 2, null, function () {
                    febs.alert.success('设置成功');
                    $query.click();
                });