Commit a2b4e007 by 庄欣

f

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