Commit 6502e6a2 by 庄欣

添加滚动

parent 1ec6f292
...@@ -30,6 +30,7 @@ ...@@ -30,6 +30,7 @@
left: 35%; left: 35%;
color: #23283f; color: #23283f;
padding-top: 10px; padding-top: 10px;
height: auto;
} }
#__extend_fast_quote #__extend_fastquote_container #_____mp_fastquote div{ #__extend_fast_quote #__extend_fastquote_container #_____mp_fastquote div{
......
...@@ -92,13 +92,21 @@ var addError = function(error, showUi) { ...@@ -92,13 +92,21 @@ var addError = function(error, showUi) {
var main = document.getElementById("main-ui"); var main = document.getElementById("main-ui");
main.style.display = "none"; main.style.display = "none";
} }
removeSuccess();
} }
var addSuccess = function (msg) { var addSuccess = function (msg) {
var errorDom = document.getElementById("error");
errorDom.innerHTML = "";
var okDom = document.getElementById("success"); var okDom = document.getElementById("success");
okDom.innerHTML = msg; okDom.innerHTML = msg;
} }
var removeSuccess = function() {
var okDom = document.getElementById("success");
okDom.innerHTML = "";
}
var getData = (api, data, callback) => { var getData = (api, data, callback) => {
api = api + "?"; api = api + "?";
for (var i in data) { for (var i in data) {
...@@ -185,6 +193,7 @@ function removeLoading() { ...@@ -185,6 +193,7 @@ function removeLoading() {
mask.remove(); mask.remove();
} }
function assertStatus() { function assertStatus() {
var statusDom = document.getElementById("status"); var statusDom = document.getElementById("status");
var passTimeDom = document.getElementById("passTime"); var passTimeDom = document.getElementById("passTime");
...@@ -243,6 +252,7 @@ function goNext() { ...@@ -243,6 +252,7 @@ function goNext() {
getCookie("default_status", function (res) { getCookie("default_status", function (res) {
if (res.value != null) { if (res.value != null) {
statusDom.value = res.value; statusDom.value = res.value;
assertStatus();
} }
}); });
var sendBtn = document.getElementById("send") var sendBtn = document.getElementById("send")
...@@ -268,11 +278,12 @@ function goNext() { ...@@ -268,11 +278,12 @@ function goNext() {
removeLoading(); removeLoading();
return; return;
} }
addSuccess("操作成功,已添加到后台推送记录"); addSuccess("已添加到后台推送记录");
removeLoading(); removeLoading();
setCookie("default_admin", postData['admin_id']); setCookie("default_admin", postData['admin_id']);
setCookie("default_status", postData['status']); setCookie("default_status", postData['status']);
setCookie("default_channel", postData['channel_id']); setCookie("default_channel", postData['channel_id']);
prop();
return ; return ;
}); });
} }
......
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