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
f98ca8c7
Commit
f98ca8c7
authored
Jan 30, 2023
by
庄欣
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
f
parent
909bf717
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
40 deletions
+26
-40
mp-remark-0130.zip
+0
-0
mp-remark-v4/js/service.js
+26
-40
No files found.
mp-remark-0130.zip
0 → 100644
View file @
f98ca8c7
File added
mp-remark-v4/js/service.js
View file @
f98ca8c7
...
...
@@ -5,6 +5,8 @@ function removeZone() {
},
res
=>
{
if
(
res
.
code
.
toString
()
===
"100001"
)
{
Manager
.
inZone
=
false
;
$
(
".addZone"
).
removeClass
(
"hidden"
);
$
(
".removeZone"
).
addClass
(
"hidden"
);
showToast
(
"操作成功"
);
}
else
{
if
(
res
.
code
.
toString
()
===
"100002"
)
{
...
...
@@ -23,6 +25,8 @@ function addZone() {
},
res
=>
{
if
(
res
.
code
.
toString
()
===
"100001"
)
{
Manager
.
inZone
=
true
;
$
(
".addZone"
).
addClass
(
"hidden"
);
$
(
".removeZone"
).
removeClass
(
"hidden"
);
showToast
(
"操作成功"
);
}
else
{
if
(
res
.
code
.
toString
()
===
"100002"
)
{
...
...
@@ -178,6 +182,8 @@ function assertIn() {
if
(
url
.
indexOf
(
"article"
)
>
-
1
&&
url
.
indexOf
(
"list"
)
===
-
1
)
{
Manager
.
isReading
=
true
;
getReadingIdByBase64
(
url
);
$
(
"div.worksInfoBox"
).
addClass
(
"hidden"
);
$
(
"div.readingInfoBox"
).
removeClass
(
"hidden"
);
}
if
(
url
.
indexOf
(
"works"
)
>
-
1
&&
url
.
indexOf
(
"list"
)
===
-
1
)
{
Manager
.
isWorks
=
true
;
...
...
@@ -200,21 +206,21 @@ function openUi() {
Manager
.
user
.
email
=
res
.
email
;
Manager
.
user
.
nickname
=
res
.
nickname
;
showUserInfo
(
Manager
.
user
);
getData
(
API
.
getRemark
,
{
object_id
:
Manager
.
userId
,
type
:
TYPE_USER
},
res2
=>
{
if
(
res2
.
code
.
toString
()
===
"100001"
)
{
Manager
.
userRemark
=
res2
.
data
.
remark
;
Manager
.
userYyRemark
=
res2
.
data
.
operate_remark
;
Manager
.
userPermission
=
res2
.
data
.
permission
;
Manager
.
userToken
=
res2
.
data
.
lock_token
Manager
.
authType
=
"now"
;
show
();
}
})
});
});
getData
(
API
.
getRemark
,
{
object_id
:
Manager
.
userId
,
type
:
TYPE_USER
},
res
=>
{
if
(
res
.
code
.
toString
()
===
"100001"
)
{
Manager
.
userRemark
=
res
.
data
.
remark
;
Manager
.
userYyRemark
=
res
.
data
.
operate_remark
;
Manager
.
userPermission
=
res
.
data
.
permission
;
Manager
.
userToken
=
res
.
data
.
lock_token
Manager
.
authType
=
"now"
;
show
();
}
})
if
(
Manager
.
isWorks
)
{
getData
(
API
.
getRemark
,
{
object_id
:
Manager
.
objectId
,
...
...
@@ -396,30 +402,18 @@ function sendPushOnly() {
}
function
openMessageBox
()
{
Manager
.
sendPush
=
true
if
(
Manager
.
sendPush
)
{
$
(
".worksInfoBox"
).
addClass
(
"hidden"
);
$
(
".userInfoBox"
).
addClass
(
"hidden"
);
$
(
".MessageBox"
).
removeClass
(
"hidden"
);
}
else
{
$
(
".worksInfoBox"
).
removeClass
(
"hidden"
);
$
(
".userInfoBox"
).
removeClass
(
"hidden"
);
$
(
".MessageBox"
).
addClass
(
"hidden"
);
}
Manager
.
sendPush
=
true
;
$
(
".worksInfoBox"
).
addClass
(
"hidden"
);
$
(
".userInfoBox"
).
addClass
(
"hidden"
);
$
(
".MessageBox"
).
removeClass
(
"hidden"
);
show
();
}
function
closeMessageBox
()
{
Manager
.
sendPush
=
false
;
if
(
Manager
.
sendPush
)
{
$
(
".worksInfoBox"
).
addClass
(
"hidden"
);
$
(
".userInfoBox"
).
addClass
(
"hidden"
);
$
(
".MessageBox"
).
removeClass
(
"hidden"
);
}
else
{
$
(
".worksInfoBox"
).
removeClass
(
"hidden"
);
$
(
".userInfoBox"
).
removeClass
(
"hidden"
);
$
(
".MessageBox"
).
addClass
(
"hidden"
);
}
$
(
".worksInfoBox"
).
removeClass
(
"hidden"
);
$
(
".userInfoBox"
).
removeClass
(
"hidden"
);
$
(
".MessageBox"
).
addClass
(
"hidden"
);
show
();
}
...
...
@@ -435,14 +429,6 @@ function showUserInfo(user) {
function
show
()
{
$
(
".objectId"
).
text
(
Manager
.
objectId
);
if
(
Manager
.
isWorks
)
{
$
(
"div.readingInfoBox"
).
addClass
(
"hidden"
);
$
(
"div.worksInfoBox"
).
removeClass
(
"hidden"
);
}
if
(
Manager
.
isReading
)
{
$
(
"div.worksInfoBox"
).
addClass
(
"hidden"
);
$
(
"div.readingInfoBox"
).
removeClass
(
"hidden"
);
}
if
(
!
Manager
.
sendPush
)
{
$
(
".NotSendPushStatus"
).
removeClass
(
"hidden"
);
$
(
".SendPushStatus"
).
addClass
(
"hidden"
);
...
...
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