Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
W
wechatapp.shangjiadao.com
Project
Project
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wangxuelai
wechatapp.shangjiadao.com
Commits
27de48ea
Commit
27de48ea
authored
Oct 28, 2019
by
sujie@126.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dd
parent
f3dab1b3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
11 deletions
+9
-11
index.js
src/pages/mycalendart/index.js
+9
-11
No files found.
src/pages/mycalendart/index.js
View file @
27de48ea
...
...
@@ -310,7 +310,6 @@ Page({
const
visitor
=
LocalStorage
.
getItem
(
'visitor'
);
studentidentity
({
class_id
:
this
.
data
.
id
,
consumer_id
:
visitor
&&
visitor
.
id
}).
then
((
res
)
=>
{
wx
.
hideLoading
();
const
{
...
...
@@ -603,8 +602,8 @@ Page({
const
nowDay
=
this
.
data
.
activeDay
?
clockdate
:
today
judgeIsClock
({
subject_id
:
tid
,
consumer_id
:
visitor
&&
visitor
.
i
d
,
now_
consumer_id
:
visitor
&&
visitor
.
i
d
,
student_id
:
visitor
&&
visitor
.
studentI
d
,
now_
student_id
:
visitor
&&
visitor
.
studentI
d
,
calendar_date
:
nowDay
}).
then
((
res
)
=>
{
const
{
...
...
@@ -687,9 +686,8 @@ Page({
page
:
1
,
perPage
:
1
,
subject_id
:
this
.
data
.
tid
,
now_consumer_id
:
visitor
&&
visitor
.
id
,
// exclude_consumer_id: visitor.id,
consumer_id
:
visitor
&&
visitor
.
id
,
now_student_id
:
visitor
&&
visitor
.
studentId
,
student_id
:
visitor
&&
visitor
.
studentId
,
calendar_date
:
nowDay
}).
then
((
res
)
=>
{
const
{
...
...
@@ -940,28 +938,28 @@ Page({
}
=
e
.
detail
;
let
clock
=
this
.
data
.
selfClockDetail
;
if
(
type
==
2
)
{
// 取消点赞
if
(
clock
.
likes
.
list
.
find
(
ele
=>
ele
.
consumer
_id
==
customerId
)){
if
(
clock
.
likes
.
list
.
find
(
ele
=>
ele
.
student
_id
==
customerId
)){
clock
.
had_like
=
0
;
clock
.
likes
.
total
--
;
clock
.
likes
.
list
=
clock
.
likes
.
list
.
filter
(
ele
=>
ele
.
consumer
_id
!=
customerId
);
clock
.
likes
.
list
=
clock
.
likes
.
list
.
filter
(
ele
=>
ele
.
student
_id
!=
customerId
);
}
}
else
if
(
type
==
1
)
{
// 点赞
clock
.
had_like
=
1
;
if
(
!
clock
.
likes
)
{
clock
.
likes
=
{
list
:
[{
consumer
_id
:
customerId
,
student
_id
:
customerId
,
nickname
:
nickname
,
remark
:
this
.
data
.
personalClockInfo
.
clock_circle_user
&&
this
.
data
.
personalClockInfo
.
clock_circle_user
.
remark
||
nickname
,
}],
total
:
1
}
}
else
{
if
(
clock
.
likes
.
list
.
find
(
ele
=>
ele
.
consumer
_id
==
customerId
)){
if
(
clock
.
likes
.
list
.
find
(
ele
=>
ele
.
student
_id
==
customerId
)){
return
false
;
}
clock
.
likes
.
list
.
push
({
consumer
_id
:
customerId
,
student
_id
:
customerId
,
nickname
:
nickname
,
remark
:
this
.
data
.
personalClockInfo
.
clock_circle_user
&&
this
.
data
.
personalClockInfo
.
clock_circle_user
.
remark
||
nickname
,
});
...
...
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