Commit 4000046d authored by 章建武's avatar 章建武

dep

parent b2df31b3
...@@ -152,9 +152,7 @@ ...@@ -152,9 +152,7 @@
'content': { 'content': {
required: true, required: true,
}, },
'introduce': {
required: true,
}
}, },
messages: { messages: {
...@@ -164,10 +162,6 @@ ...@@ -164,10 +162,6 @@
'username': { 'username': {
required: "内容不能为空", required: "内容不能为空",
}, },
'mobile': {
required: "简介不能为空",
},
} }
}); });
</script> </script>
......
...@@ -352,6 +352,7 @@ $(function () { ...@@ -352,6 +352,7 @@ $(function () {
if (typeof (dataData) != 'object') { if (typeof (dataData) != 'object') {
dataData = JSON.parse(dataData); dataData = JSON.parse(dataData);
window.location.reload();
} }
/*需要确认操作*/ /*需要确认操作*/
...@@ -360,6 +361,7 @@ $(function () { ...@@ -360,6 +361,7 @@ $(function () {
var confirmTitle = $(this).data("confirmTitle") || '操作确认'; var confirmTitle = $(this).data("confirmTitle") || '操作确认';
//提示窗口的内容 //提示窗口的内容
var confirmContent = $(this).data("confirmContent") || '您确定要执行此操作吗?'; var confirmContent = $(this).data("confirmContent") || '您确定要执行此操作吗?';
layer.confirm(confirmContent, {title: confirmTitle, closeBtn: 1, icon: 3}, function () { layer.confirm(confirmContent, {title: confirmTitle, closeBtn: 1, icon: 3}, function () {
//如果为直接访问 //如果为直接访问
if (layerType === 1) { if (layerType === 1) {
...@@ -438,6 +440,7 @@ function ajaxRequest(url, method, data, go) { ...@@ -438,6 +440,7 @@ function ajaxRequest(url, method, data, go) {
} }
goUrl(go); goUrl(go);
window.location.reload();
}, },
error: function (xhr, type, errorThrown) { error: function (xhr, type, errorThrown) {
//异常处理; //异常处理;
...@@ -450,6 +453,7 @@ function ajaxRequest(url, method, data, go) { ...@@ -450,6 +453,7 @@ function ajaxRequest(url, method, data, go) {
console.log(data); console.log(data);
layer.close(loadT); layer.close(loadT);
} }
window.location.reload();
layer.msg('访问错误,代码' + xhr.status, {icon: 2,scrollbar: false,}); layer.msg('访问错误,代码' + xhr.status, {icon: 2,scrollbar: false,});
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment