Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
李洋
/
消息系统
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
675b4396
authored
Sep 02, 2020
by
孙龙
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
up
parent
c28d30e3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
39 additions
and
31 deletions
config/msgconfig.php
config/website.php
public/js/Message/templatelist.js
config/msgconfig.php
View file @
675b4396
...
@@ -9,7 +9,7 @@
...
@@ -9,7 +9,7 @@
return
[
return
[
//域名
//域名
'domain_local'
=>
'message.liexin.
com
'
,
'domain_local'
=>
'message.liexin.
net
'
,
'domain_sz'
=>
'szmessage.ichunt.net'
,
'domain_sz'
=>
'szmessage.ichunt.net'
,
'domain_release'
=>
'message.ichunt.net'
,
'domain_release'
=>
'message.ichunt.net'
,
...
...
config/website.php
View file @
675b4396
...
@@ -10,9 +10,9 @@ return [
...
@@ -10,9 +10,9 @@ return [
'search'
=>
'http://'
.
env
(
'LOGIN_DOMAIN'
,
''
)
.
'/api/search'
,
'search'
=>
'http://'
.
env
(
'LOGIN_DOMAIN'
,
''
)
.
'/api/search'
,
],
],
'data'
=>
env
(
'DATA_DOMAIN'
,
'message.liexin.
com
'
),
'data'
=>
env
(
'DATA_DOMAIN'
,
'message.liexin.
net
'
),
"domain"
=>
"liexin.
com
"
,
"domain"
=>
"liexin.
net
"
,
"rabbitmq"
=>
[
"rabbitmq"
=>
[
...
...
public/js/Message/templatelist.js
View file @
675b4396
...
@@ -27,13 +27,15 @@ layui.use(['jquery','element', 'layer', 'form','table','laypage','laydate'], fun
...
@@ -27,13 +27,15 @@ layui.use(['jquery','element', 'layer', 'form','table','laypage','laydate'], fun
//监听表单提交按钮
//监听表单提交按钮
form
.
on
(
'submit(search)'
,
function
(
data
){
form
.
on
(
'submit(search)'
,
function
(
data
){
layer
.
confirm
(
'确定删除?'
,
function
(
index
){
//根据搜索条件 重载表单
//根据搜索条件 重载表单
msg_tpl_table
.
reload
({
msg_tpl_table
.
reload
({
where
:
data
.
field
,
//设定异步数据接口的额外参数,任意设
where
:
data
.
field
,
//设定异步数据接口的额外参数,任意设
page
:
{
page
:
{
curr
:
1
//重新从第 1 页开始
curr
:
1
//重新从第 1 页开始
}
}
});
layer
.
close
(
index
);
});
});
return
false
;
//阻止表单跳转。如果需要表单跳转,去掉这段即可。
return
false
;
//阻止表单跳转。如果需要表单跳转,去掉这段即可。
...
@@ -83,27 +85,33 @@ layui.use(['jquery','element', 'layer', 'form','table','laypage','laydate'], fun
...
@@ -83,27 +85,33 @@ layui.use(['jquery','element', 'layer', 'form','table','laypage','laydate'], fun
});
});
function
delTpl
(
tpl_id
){
function
delTpl
(
tpl_id
){
$
.
ajax
({
url
:
"/msgapi/delTpl"
,
layer
.
confirm
(
'确定要删除?'
,
{
icon
:
3
,
title
:
'提示'
},
function
(
index
){
dataType
:
'json'
,
$
.
ajax
({
data
:
{
url
:
"/msgapi/delTpl"
,
tpl_id
:
tpl_id
dataType
:
'json'
,
},
data
:
{
success
:
function
(
resp
)
{
tpl_id
:
tpl_id
if
(
!
resp
){
},
Prompt
(
'网络异常,请重试'
,
5
);
success
:
function
(
resp
)
{
return
false
;
if
(
!
resp
){
}
Prompt
(
'网络异常,请重试'
,
5
);
if
(
resp
.
errcode
==
0
){
return
false
;
Prompt
(
resp
.
errmsg
,
1
);
}
location
.
reload
();
if
(
resp
.
errcode
==
0
){
}
else
{
Prompt
(
resp
.
errmsg
,
1
);
Prompt
(
resp
.
errmsg
,
5
);
location
.
reload
();
return
false
;
}
else
{
Prompt
(
resp
.
errmsg
,
5
);
return
false
;
}
},
error
:
function
(
jqXHR
,
textStatus
,
errorThrown
){
Prompt
(
"网络异常,请重试"
,
5
);
}
}
},
});
error
:
function
(
jqXHR
,
textStatus
,
errorThrown
){
Prompt
(
"网络异常,请重试"
,
5
);
layer
.
close
(
index
);
}
});
});
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment