From 112e21ae617dff206597db3677a59f10484d6a6e Mon Sep 17 00:00:00 2001
From: Hentua <wangdoubleone@gmail.com>
Date: Wed, 07 Jun 2023 22:59:54 +0800
Subject: [PATCH] fix
---
src/main/resources/templates/febs/views/modules/shop/shopList.html | 15 +++++++--------
1 files changed, 7 insertions(+), 8 deletions(-)
diff --git a/src/main/resources/templates/febs/views/modules/shop/shopList.html b/src/main/resources/templates/febs/views/modules/shop/shopList.html
index d6d3b12..12c1adc 100644
--- a/src/main/resources/templates/febs/views/modules/shop/shopList.html
+++ b/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();
});
--
Gitblit v1.9.1