Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
wandouchengzhang_coach
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
石盼盼
wandouchengzhang_coach
Commits
c8f4cf62
Commit
c8f4cf62
authored
Nov 20, 2020
by
石盼盼
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'shipanpan' into 'master'
Shipanpan See merge request
!33
parents
7908326c
5c024e63
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
3 deletions
+16
-3
classManagement.js
pages/index/classManagement/classManagement.js
+14
-0
evaluation.js
pages/index/evaluation/evaluation.js
+2
-3
No files found.
pages/index/classManagement/classManagement.js
View file @
c8f4cf62
...
...
@@ -22,6 +22,8 @@ Page({
isMoment
:
true
,
// 课程瞬间是否能点击
curTime
:
''
,
// 当前时间
isrefresh
:
false
},
/**
...
...
@@ -39,6 +41,17 @@ Page({
})
this
.
getDetail
()
},
onShow
()
{
this
.
setData
({
isrefresh
:
this
.
data
.
isrefresh
?
this
.
data
.
isrefresh
:
false
})
if
(
this
.
data
.
isrefresh
)
{
this
.
getDetail
()
this
.
setData
({
isrefresh
:
false
})
}
},
getDate
()
{
let
date
=
util
.
formatTime
(
new
Date
())
let
newDate
=
new
Date
()
...
...
@@ -115,6 +128,7 @@ Page({
let
class_single_id
=
e
.
currentTarget
.
dataset
.
class_single_id
let
course_id
=
e
.
currentTarget
.
dataset
.
course_id
console
.
log
(
course_id
)
console
.
log
(
class_single_id
)
wx
.
navigateTo
({
url
:
'
/pages/index/evaluation/evaluation?child_id=
'
+
child_id
+
'
&class_id=
'
+
class_id
+
'
&class_single_id=
'
+
class_single_id
+
'
&course_id=
'
+
course_id
,
})
...
...
pages/index/evaluation/evaluation.js
View file @
c8f4cf62
...
...
@@ -115,7 +115,6 @@ Page({
badge_ids
:
this
.
data
.
badge_ids
.
toString
(),
class_id
:
this
.
data
.
class_id
,
class_single_id
:
this
.
data
.
class_single_id
,
// coach_id : 5,
coach_id
:
app
.
globalData
.
coach_id
,
},
type
:
'
POST
'
,
...
...
@@ -123,16 +122,16 @@ Page({
let
params
=
{
url
:
'
coach/comment_save
'
,
data
:
{
// coach_id : 5,
coach_id
:
app
.
globalData
.
coach_id
,
lesson_id
:
this
.
data
.
class_single_id
,
child_id
:
this
.
data
.
child_id
,
comment_score
:
JSON
.
stringify
(
obj
),
comm
ne
t
:
this
.
data
.
value
comm
en
t
:
this
.
data
.
value
},
type
:
'
POST
'
,
callback
:
(
data
)
=>
{
base
.
toast
(
'
保存成功
'
)
base
.
goBack
(
2
)
}
}
base
.
newRequest
(
params
)
...
...
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