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
7f05dd1f
Commit
7f05dd1f
authored
May 14, 2019
by
wangxuelai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
''
parent
225131a9
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
23 additions
and
12 deletions
+23
-12
index.js
business/pages/circlemember/index.js
+1
-1
api.js
constants/api.js
+3
-3
index.js
src/pages/calendarthemeindex/index.js
+2
-1
index.js
src/pages/myachievement/index.js
+14
-5
index.json
src/pages/myachievement/index.json
+1
-1
index.js
ucenter/index.js
+2
-1
No files found.
business/pages/circlemember/index.js
View file @
7f05dd1f
...
...
@@ -83,7 +83,7 @@ Page({
return
{
title
:
`邀请您加入班级`
,
path
:
`/src/pages/inviteindex/index?id=
${
this
.
data
.
id
}
`
,
imageUrl
:
'https://cdn.img.shangjiadao.cn/source/images/dakav3/
images/
2c/common/invite.png'
imageUrl
:
'https://cdn.img.shangjiadao.cn/source/images/dakav3/2c/common/invite.png'
}
}
...
...
constants/api.js
View file @
7f05dd1f
...
...
@@ -121,9 +121,9 @@ const apis = {
customerStaticGet
:
`
${
api
}
student/info`
},
myAchievement
:
{
certificates
:
`
${
api
}
student
/certificates`
,
certificate
:
`
${
api
}
student
/certificate`
,
honors
:
`
${
api
}
student
/honors`
,
certificates
:
`
${
api
}
common
/certificates`
,
certificate
:
`
${
api
}
common
/certificate`
,
honors
:
`
${
api
}
common
/honors`
,
}
},
business
:
{
...
...
src/pages/calendarthemeindex/index.js
View file @
7f05dd1f
...
...
@@ -2241,7 +2241,8 @@ Page({
return
;
}
return
certificate
({
subject_id
:
this
.
data
.
tid
subject_id
:
this
.
data
.
tid
,
consumer_id
:
visitor
.
id
})
}).
then
((
res
)
=>
{
const
{
...
...
src/pages/myachievement/index.js
View file @
7f05dd1f
...
...
@@ -79,12 +79,14 @@ Page({
posterBox
:
{
},
currentSubjectId
:
0
currentSubjectId
:
0
,
custormeId
:
0
},
onLoad
:
function
(
options
)
{
// Do some initialize when page load.
const
{
sid
}
=
options
;
const
{
sid
,
custormeId
}
=
options
;
this
.
setData
({
sid
sid
,
custormeId
});
if
(
sid
==
0
)
{
return
;
...
...
@@ -110,6 +112,11 @@ Page({
onReachBottom
:
function
()
{
// Do something when page reach bottom.
},
onShareAppMessage
:
function
(
option
)
{
// return custom share data when user share.
return
{
title
:
'排行榜'
,
path
:
`/src/pages/myachievement/index?sid=
${
this
.
data
.
sid
}
&custormeId=
${
this
.
data
.
custormeId
}
`
,
// imageUrl: 'https://cdn.img.shangjiadao.cn/source/images/dakav3/2c/rankinglist/sharebg.png'
}
},
onPageScroll
:
function
()
{
// Do something when page scroll
...
...
@@ -118,7 +125,8 @@ Page({
},
getCertificates
()
{
certificates
({
school_id
:
this
.
data
.
sid
school_id
:
this
.
data
.
sid
,
consumer_id
:
this
.
data
.
custormeId
}).
then
((
res
)
=>
{
const
{
code
,
data
}
=
res
;
if
(
code
!=
200
)
{
...
...
@@ -135,7 +143,8 @@ Page({
},
getHonors
()
{
honors
({
school_id
:
this
.
data
.
sid
school_id
:
this
.
data
.
sid
,
consumer_id
:
this
.
data
.
custormeId
}).
then
((
res
)
=>
{
const
{
code
,
data
}
=
res
;
if
(
code
!=
200
)
{
...
...
src/pages/myachievement/index.json
View file @
7f05dd1f
{
"navigationBarTitleText"
:
""
,
"navigationBarTitleText"
:
"
我的成就
"
,
"navigationBarBackgroundColor"
:
"#FFD85C"
,
"usingComponents"
:
{
"poster-box"
:
"../../../components/posterbox"
,
...
...
ucenter/index.js
View file @
7f05dd1f
...
...
@@ -271,8 +271,9 @@ Page({
})
},
goMyAchievement
()
{
const
visitor
=
LocalStorage
.
getItem
(
'visitor'
);
wx
.
navigateTo
({
url
:
`/src/pages/myachievement/index?sid=
${
this
.
data
.
sid
}
`
,
url
:
`/src/pages/myachievement/index?sid=
${
this
.
data
.
sid
}
&custormeId=
${
visitor
&&
visitor
.
id
||
0
}
`
,
})
}
})
\ No newline at end of file
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