Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
tools
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
庄欣
tools
Commits
23b7a3c1
Commit
23b7a3c1
authored
Jan 09, 2023
by
庄欣
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
f
parent
b9837a89
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
49 additions
and
30 deletions
+49
-30
mp-remark-v4/js/index.js
+25
-10
mp-remark-v4/js/service.js
+18
-14
mp-remark-v4/ui.html
+6
-6
No files found.
mp-remark-v4/js/index.js
View file @
23b7a3c1
...
...
@@ -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
();
...
...
mp-remark-v4/js/service.js
View file @
23b7a3c1
...
...
@@ -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
send
Data
=
{
var
post
Data
=
{
message
:
content
,
uid
:
Manager
.
user
.
id
};
this
.
sendData
(
api
,
send
Data
,
(
res
)
=>
{
sendData
(
api
,
post
Data
,
(
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
);
}
mp-remark-v4/ui.html
View file @
23b7a3c1
...
...
@@ -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;"
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment