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
789d61a9
Commit
789d61a9
authored
Sep 16, 2019
by
lvtz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
amfix
parent
cd3c30cf
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
10 deletions
+10
-10
index.js
src/pages/growthrecord/index.js
+10
-10
No files found.
src/pages/growthrecord/index.js
View file @
789d61a9
...
...
@@ -261,7 +261,7 @@ Page({
wx
.
setNavigationBarTitle
({
title
:
selfCustomerId
==
this
.
data
.
consumerId
?
'我的成长记录'
:
'Ta的成长记录'
})
if
(
this
.
data
.
id
){
if
(
this
.
data
.
id
&&
this
.
data
.
id
!=
0
){
this
.
getCircleDetail
();
}
this
.
userShow
(
'init'
);
...
...
@@ -271,12 +271,12 @@ Page({
this
.
getclockRankingList
();
//获取个人排名百分比
},
getclockRankingList
()
{
let
otherParams
=
this
.
data
.
id
?
{
class_id
:
this
.
data
.
id
}
:
{
school_id
:
this
.
data
.
sid
}
let
otherParams
=
(
this
.
data
.
id
&&
this
.
data
.
id
!=
0
)
?
{
class_id
:
this
.
data
.
id
}
:
{
school_id
:
this
.
data
.
sid
};
rankrecord
(
Object
.
assign
(
otherParams
,{
page
:
1
,
perPage
:
1
,
type
:
1
,
consumer_id
:
this
.
data
.
consumerId
consumer_id
:
this
.
data
.
consumerId
,
})).
then
((
res
)
=>
{
const
{
code
,
...
...
@@ -341,7 +341,7 @@ Page({
},
//用户勋章
getClasshonors
()
{
let
otherParams
=
this
.
data
.
id
?
{
class_id
:
this
.
data
.
id
}
:
{
school_id
:
this
.
data
.
sid
}
let
otherParams
=
(
this
.
data
.
id
&&
this
.
data
.
id
!=
0
)
?
{
class_id
:
this
.
data
.
id
}
:
{
school_id
:
this
.
data
.
sid
}
getClasshonors
(
Object
.
assign
(
otherParams
,{
consumer_id
:
this
.
data
.
consumerId
})).
then
((
res
)
=>
{
...
...
@@ -354,7 +354,7 @@ Page({
},
// 弹幕(暂定不跟校区班级走)
getRandrank
(){
let
otherParams
=
this
.
data
.
id
?
{
class_id
:
this
.
data
.
id
}
:
{
school_id
:
this
.
data
.
sid
}
let
otherParams
=
(
this
.
data
.
id
&&
this
.
data
.
id
!=
0
)
?
{
class_id
:
this
.
data
.
id
}
:
{
school_id
:
this
.
data
.
sid
}
getRandrank
(
otherParams
).
then
((
res
)
=>
{
if
(
res
.
code
==
200
)
{
this
.
setData
({
...
...
@@ -975,16 +975,16 @@ Page({
this
.
setData
({
listLoading
:
true
})
clockList
({
let
otherParams
=
(
this
.
data
.
id
&&
this
.
data
.
id
!=
0
)?
{
class_id
:
this
.
data
.
id
}:
''
;
clockList
(
Object
.
assign
(
otherParams
,{
page
:
this
.
data
.
clockPage
,
perPage
:
this
.
data
.
clockPerPage
,
consumer_id
:
this
.
data
.
consumerId
,
school_id
:
this
.
data
.
sid
,
class_id
:
this
.
data
.
id2
?
this
.
data
.
id2
:
''
,
now_consumer_id
:
visitor
&&
visitor
.
id
,
type
:
this
.
data
.
curType
type
:
this
.
data
.
curType
,
school_id
:
this
.
data
.
sid
// clock_subject_id: tid
}).
then
((
res
)
=>
{
})
)
.
then
((
res
)
=>
{
const
{
code
,
data
}
=
res
;
this
.
setData
({
listLoading
:
false
...
...
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