Commit 23b7a3c1 by 庄欣

f

parent b9837a89
......@@ -44,18 +44,33 @@ fetch(UI).then(function(res) {
$(".wxIcon").attr("src", chrome.runtime.getURL("images/weixin.png"));
$(".emailIcon").attr("src", chrome.runtime.getURL("images/email.png"));
}).then(() => {
$(".pushContent[name=pushContentAuth]").text(Manager.authContent);
$(".pushContent[name=pushContentPic]").text(Manager.picContent);
$(".pushContent[name=pushContentN]").text(Manager.pushContentN);
$(".pushSmsContent").text(Manager.smsContent);
$(".pushContent[name=pushContentAuth]").bind("input propertychange", function () {
Manager.authContent = $(this).text();
$("textarea.pushContent[name=pushContentAuth]").text(Manager.authContent);
$("textarea.pushContent[name=pushContentPic]").text(Manager.picContent);
$("textarea.pushContent[name=pushContentN]").text(Manager.pushContentN);
$("textarea.pushSmsContent").text(Manager.smsContent);
$("textarea.pushContent[name=pushContentAuth]").bind("input propertychange", function () {
Manager.authContent = this.value;
});
$(".pushContent[name=pushContentPic]").bind("input propertychange", function () {
Manager.picContent = $(this).text();
$("textarea.pushContent[name=pushContentPic]").bind("input propertychange", function () {
Manager.picContent = this.value;
});
$(".pushContent[name=pushContentN]").bind("input propertychange", function () {
Manager.pushContentN = $(this).text();
$("textarea.pushContent[name=pushContentN]").bind("input propertychange", function () {
Manager.pushContentN = this.value;
});
$("textarea.pushContent[name=pushContentAuth]").bind("input propertychange", function () {
Manager.authContent = this.value;
});
$("textarea.userRemark").bind("input propertychange", function () {
Manager.userRemark = this.value;
});
$("textarea.userYyRemark").bind("input propertychange", function () {
Manager.userYyRemark = this.value;
});
$("textarea.remark").bind("input propertychange", function () {
Manager.remark = this.value;
});
$("textarea.yyRemark").bind("input propertychange", function () {
Manager.yyRemark = this.value;
});
onload();
openUi();
......
......@@ -36,12 +36,12 @@ function addZone() {
function submitRemark() { //作品备注
let data = {
"operate_remark": this.yyRemark,
"remark": this.remark,
"object_id": this.objectId,
"type": this.type,
"token": this.token,
"permission": this.permission.toString()
"operate_remark": Manager.yyRemark,
"remark": Manager.remark,
"object_id": Manager.objectId,
"type": Manager.type,
"token": Manager.token,
"permission": Manager.permission.toString()
}
sendData(API.setRemark, data, res => {
if (res.code === "100001") {
......@@ -62,12 +62,12 @@ function submitRemark() { //作品备注
function submitUserRemark() { //用户备注
let data = {
"remark": this.userRemark,
"operate_remark": this.userYyRemark,
"object_id": this.userId,
"remark": Manager.userRemark,
"operate_remark": Manager.userYyRemark,
"object_id": Manager.userId,
"type": TYPE_USER,
"token": this.userToken,
"permission": this.userPermission.toString()
"token": Manager.userToken,
"permission": Manager.userPermission.toString()
}
sendData(API.setRemark, data, res => {
if (res.code === "100001") {
......@@ -343,11 +343,11 @@ function _pushContent() {
content = Manager.pushContentN;
break;
}
var sendData = {
var postData = {
message: content,
uid: Manager.user.id
};
this.sendData(api, sendData, (res) => {
sendData(api, postData, (res) => {
if (res.code === "100001") {
setInfo("发送PUSH成功");
return;
......@@ -521,6 +521,10 @@ function show() {
$(".permission-1").addClass("userPermission_on");
break;
}
$("textarea.userYyRemark").text(Manager.userYyRemark);
$("textarea.remark").text(Manager.remark);
$("textarea.yyRemark").text(Manager.yyRemark);
$("textarea.userRemark").text(Manager.userRemark);
console.log(Manager);
}
......@@ -108,7 +108,7 @@
<div class="wei-600 col-fff" style="font-size: 16px;margin-left: 6px;">备注用户(锁屏):</div>
</div>
<div class="">
<textarea style="width: 233px;" class="" placeholder="备注内容" v-model="userRemark" rows="5"
<textarea style="width: 233px;" class="userRemark" placeholder="备注内容" rows="5"
cols="50"></textarea>
</div>
<div class="flex-c " style="border-radius: 4px;width: max-content;margin-top: 6px;">
......@@ -118,7 +118,7 @@
</div>
<div class="">
<textarea style="width: 233px;" class="" placeholder="备注内容" v-model="userYyRemark" rows="5"
<textarea style="width: 233px;" class="userYyRemark" placeholder="备注内容" rows="5"
cols="50"></textarea>
</div>
<div class="allcen "
......@@ -206,7 +206,7 @@
</div>
<div class="">
<textarea style="width: 217px;margin-bottom: 0;" class="" placeholder="备注内容" v-model="remark" rows="4"
<textarea style="width: 217px;margin-bottom: 0;" class="remark" placeholder="备注内容" rows="4"
cols="50"></textarea>
</div>
<div class="flex-c " style="border-radius: 4px;width: max-content;margin-top: 6px;">
......@@ -215,7 +215,7 @@
<div class="wei-600 col-fff" style="font-size: 16px;margin-left: 6px;">备注该作品(运营):</div>
</div>
<div class="">
<textarea style="width: 217px;" class="" placeholder="备注内容" v-model="yyRemark" rows="4"
<textarea style="width: 217px;" class="yyRemark" placeholder="备注内容" rows="4"
cols="50"></textarea>
</div>
<div class="allcen "
......@@ -317,8 +317,8 @@
</div>-->
</div>
<div class="allcen" style="margin: 9px auto;">
<textarea cols="50" rows="7" class="pushContent" name="pushContentAuth"></textarea>
<textarea cols="50" rows="7" class="pushContent" name="pushContentPic"></textarea>
<textarea cols="50" rows="7" class="pushContent" name="pushContentAuth" id="pushContentAuth"></textarea>
<textarea cols="50" rows="7" class="pushContent" name="pushContentPic" id="pushContentPic"></textarea>
<textarea cols="50" rows="7" class="pushContent" name="pushContentN"></textarea>
</div>
<div class="flex-c " style="border-radius: 4px;width: max-content;margin-top: 12px;">
......
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