Skip to content

Commit

Permalink
修改邮箱提交地址
Browse files Browse the repository at this point in the history
  • Loading branch information
zlkbdotnet committed Mar 22, 2019
1 parent e18f7f1 commit f8710d5
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions public/res/mods/adminemail.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,10 @@ layui.define(['layer', 'form', 'table'], function(exports){

//修改资料
form.on('submit(email)', function(data){

data.field.csrf_token = TOKEN;
var i = layer.load(2,{shade: [0.5,'#fff']});
$.ajax({
url: '/'+ADMIN_DIR+'/email/ajax',
url: '/'+ADMIN_DIR+'/email/editajax',
type: 'POST',
dataType: 'json',
data: data.field,
Expand All @@ -35,7 +34,7 @@ layui.define(['layer', 'form', 'table'], function(exports){
if (res.code == '1') {
layer.open({
title: '提示',
content: '邮箱修改成功',
content: '提交成功',
btn: ['确定'],
yes: function(index, layero){
location.reload();
Expand Down

0 comments on commit f8710d5

Please sign in to comment.