Commit a2b4e007 by 庄欣

f

parent f98ca8c7
...@@ -73,6 +73,7 @@ function init() { ...@@ -73,6 +73,7 @@ function init() {
$("textarea.yyRemark").bind("input propertychange", function () { $("textarea.yyRemark").bind("input propertychange", function () {
Manager.yyRemark = this.value; Manager.yyRemark = this.value;
}); });
onload(); onload();
openUi(); openUi();
}); });
...@@ -82,6 +83,7 @@ function onload() { ...@@ -82,6 +83,7 @@ function onload() {
$(".showUi").on("click", function () { $(".showUi").on("click", function () {
showUi(); showUi();
}); });
changeTab(Manager.authType);
$(".show-tab").click(function () { $(".show-tab").click(function () {
changeTab($(this).data("auth")); changeTab($(this).data("auth"));
}); });
...@@ -118,7 +120,6 @@ function onload() { ...@@ -118,7 +120,6 @@ function onload() {
var value = $(this).data("permission"); var value = $(this).data("permission");
setPermission(value); setPermission(value);
}); });
changeTab(Manager.authType);
} }
let urlCircle = []; let urlCircle = [];
......
...@@ -215,7 +215,6 @@ function openUi() { ...@@ -215,7 +215,6 @@ function openUi() {
Manager.userYyRemark = res2.data.operate_remark; Manager.userYyRemark = res2.data.operate_remark;
Manager.userPermission = res2.data.permission; Manager.userPermission = res2.data.permission;
Manager.userToken = res2.data.lock_token Manager.userToken = res2.data.lock_token
Manager.authType = "now";
show(); show();
} }
}) })
...@@ -313,7 +312,7 @@ function sendAll() { //发送SMS ...@@ -313,7 +312,7 @@ function sendAll() { //发送SMS
tid: 901349 tid: 901349
}, (res) => { }, (res) => {
if (res.code === "100001") { if (res.code === "100001") {
setInfo("发送短信成功"); showToast("发送短信成功");
return; return;
} else { } else {
showToast("发送短信操作失败:" + res.message + ";请联系管理员!"); showToast("发送短信操作失败:" + res.message + ";请联系管理员!");
...@@ -326,6 +325,7 @@ function sendAll() { //发送SMS ...@@ -326,6 +325,7 @@ function sendAll() { //发送SMS
function _pushContent() { function _pushContent() {
var api = API.pushContact; var api = API.pushContact;
var content = ""; var content = "";
console.log(Manager)
switch (Manager.authType) { switch (Manager.authType) {
case "auth": case "auth":
content = Manager.authContent; content = Manager.authContent;
...@@ -343,7 +343,7 @@ function _pushContent() { ...@@ -343,7 +343,7 @@ function _pushContent() {
}; };
sendData(api, postData, (res) => { sendData(api, postData, (res) => {
if (res.code === "100001") { if (res.code === "100001") {
setInfo("发送PUSH成功"); showToast("发送PUSH成功");
return; return;
} else { } else {
showToast("发送PUSH操作失败:" + res.message + ";请联系管理员!"); showToast("发送PUSH操作失败:" + res.message + ";请联系管理员!");
...@@ -388,13 +388,6 @@ function changeTab(type) { ...@@ -388,13 +388,6 @@ function changeTab(type) {
} }
} }
function setInfo(message) {
Manager.info.push(message);
setTimeout(function() {
Manager.info = [];
}, 3000)
}
function sendPushOnly() { function sendPushOnly() {
if (confirm("确定发送PUSH?")) { if (confirm("确定发送PUSH?")) {
_pushContent(); _pushContent();
...@@ -508,5 +501,6 @@ function show() { ...@@ -508,5 +501,6 @@ function show() {
$("textarea.remark").text(Manager.remark); $("textarea.remark").text(Manager.remark);
$("textarea.yyRemark").text(Manager.yyRemark); $("textarea.yyRemark").text(Manager.yyRemark);
$("textarea.userRemark").text(Manager.userRemark); $("textarea.userRemark").text(Manager.userRemark);
$("textarea.pushContent[name=pushContentPic]").text(Manager.picContent);
} }
...@@ -315,10 +315,6 @@ ...@@ -315,10 +315,6 @@
style="font-size: 14px;padding: 8px 16px;border-radius: 6px;box-shadow: 0px 0px 5px 1px rgba(0,0,0,0.1);cursor: pointer;"> style="font-size: 14px;padding: 8px 16px;border-radius: 6px;box-shadow: 0px 0px 5px 1px rgba(0,0,0,0.1);cursor: pointer;">
要大图 要大图
</div> </div>
<!--<div class="show-tab show-tab-now col-fff wei-500" data-auth='now'
style="font-size: 14px;padding: 8px 16px;border-radius: 6px;box-shadow: 0px 0px 5px 1px rgba(0,0,0,0.1);cursor: pointer;">
要大图
</div>-->
</div> </div>
<div class="allcen" style="margin: 9px auto;"> <div class="allcen" style="margin: 9px auto;">
<textarea cols="50" rows="7" class="pushContent" name="pushContentAuth" id="pushContentAuth"></textarea> <textarea cols="50" rows="7" class="pushContent" name="pushContentAuth" id="pushContentAuth"></textarea>
......
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