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
37eb9689
Commit
37eb9689
authored
Nov 06, 2019
by
wangxuelai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
''
parent
e83d71bf
Hide whitespace changes
Inline
Side-by-side
Showing
30 changed files
with
341 additions
and
3 deletions
+341
-3
app.js
app.js
+7
-2
api.js
constants/api.js
+1
-0
staticlog.js
service/customer/staticlog.js
+10
-1
index.js
src/pages/calendarthemeindex/index.js
+28
-0
index.js
src/pages/clockdetail/index.js
+7
-0
newindex.js
src/pages/clockdetail/newindex.js
+7
-0
shareclock.js
src/pages/clockdetail/shareclock.js
+7
-0
index.js
src/pages/growthrecord/index.js
+21
-0
index.js
src/pages/invitation/index.js
+7
-0
index.js
src/pages/inviteindex/index.js
+7
-0
index.js
src/pages/morethemeindex/index.js
+28
-0
index.js
src/pages/myachievement/index.js
+7
-0
index.js
src/pages/mycalendart/index.js
+21
-0
classreviewshare.js
src/pages/papersquare/classreviewshare.js
+7
-0
index.js
src/pages/papersquare/index.js
+7
-0
reviewdetail.js
src/pages/papersquare/reviewdetail.js
+7
-0
index.js
src/pages/rankingList/index.js
+7
-0
index.js
src/pages/scoretasklist/index.js
+21
-0
index.js
src/pages/themeindex/index.js
+28
-0
rankList.js
src/pages/themeindex/rankList.js
+7
-0
index.js
src/pages/themeranklist/index.js
+7
-0
index.js
src/pages/unlockranklist/index.js
+7
-0
index.js
src/pages/userMedal/index.js
+7
-0
newindex.js
src/pages/userMedal/newindex.js
+7
-0
bannervideo.js
src/pages/websiteindex/bannervideo.js
+7
-0
businessinfolist.js
src/pages/websiteindex/businessinfolist.js
+7
-0
clocklist.js
src/pages/websiteindex/clocklist.js
+21
-0
index.js
src/pages/websiteindex/index.js
+21
-0
infovideo.js
src/pages/websiteindex/infovideo.js
+7
-0
index.js
ucenter/index.js
+8
-0
No files found.
app.js
View file @
37eb9689
...
...
@@ -9,7 +9,10 @@ import {
import
{
studentidentity
}
from
'./service/customer/signup.js'
import
staticLog
from
'./js/staticlog.js'
import
staticLog
from
'./js/staticlog.js'
;
import
{
sharerLog
}
from
'./service/customer/staticlog.js'
;
// tracker({
// token: "c92deb3f301e16682ecf598120083403",
// behaviour: 15,
...
...
@@ -19,7 +22,6 @@ import staticLog from './js/staticlog.js'
staticLog
();
App
({
onLaunch
:
function
(
params
)
{
// 小程序初始化完成时(全局只触发一次)
console
.
log
(
'触发'
);
const
{
path
,
query
,
scene
,
shareTicket
,
referrerInfo
}
=
params
;
this
.
globalData
.
fromUrl
=
path
;
this
.
globalData
.
query
=
query
;
...
...
@@ -33,6 +35,9 @@ App({
}
this
.
setGlobalData
(
true
,
params
);
},
setSharerLog
(
data
)
{
sharerLog
(
data
);
},
onShow
:
function
(
params
)
{
// 小程序启动,或从后台进入前台显示时
const
{
path
,
query
,
scene
,
shareTicket
,
referrerInfo
}
=
params
;
if
(
path
!=
'wechatinfoget/index'
&&
path
.
indexOf
(
'business/'
)
==
-
1
)
{
...
...
constants/api.js
View file @
37eb9689
...
...
@@ -14,6 +14,7 @@ const apis = {
getVerifyCode
:
`
${
api
}
common/sms`
,
//发送短信获取验证码
staticlog
:
{
behaviorLog
:
`
${
api
}
student/data/behavior`
,
sharerLog
:
`
${
api
}
student/data/share`
,
},
customer
:
{
integral
:
{
...
...
service/customer/staticlog.js
View file @
37eb9689
...
...
@@ -11,7 +11,16 @@ import {
errorresolve
:
2
,
})
}
function
sharerLog
(
data
)
{
return
wxRequest
({
url
:
apis
.
staticlog
.
sharerLog
,
data
,
method
:
'POST'
,
errorresolve
:
2
,
})
}
export
{
behaviorLog
behaviorLog
,
sharerLog
,
}
\ No newline at end of file
src/pages/calendarthemeindex/index.js
View file @
37eb9689
...
...
@@ -322,11 +322,25 @@ Page({
}
if
(
from
==
'menu'
)
{
shareObj
=
initShareObj
;
app
.
setSharerLog
({
source_path
:
'src/pages/beforeinvitation/index'
,
source_id
:
this
.
data
.
tid
,
param
:
JSON
.
stringify
({
query
:
`tid=
${
this
.
data
.
tid
}
&consumerId=
${
visitor
&&
visitor
.
id
||
0
}
&d=
${
clockdate
.
substr
(
2
)}
&w=
${
visitor
.
studentId
}
`
})
});
}
else
if
(
from
==
'button'
)
{
if
(
target
.
dataset
.
typefrom
&&
target
.
dataset
.
typefrom
==
'dailySign'
){
const
visitor
=
LocalStorage
.
getItem
(
'visitor'
);
const
userInfo
=
this
.
data
.
userInfoDetail
;
let
clockDetail
=
this
.
data
.
selfClockDetail
;
app
.
setSharerLog
({
source_path
:
'src/pages/clockdetail/newindex'
,
source_id
:
clockDetail
.
id
,
param
:
JSON
.
stringify
({
query
:
`id=
${
this
.
data
.
id
}
&tid=
${
this
.
data
.
themeSelect
.
id
}
&cid=
${
clockDetail
.
id
}
&w=
${
visitor
.
studentId
}
`
})
});
shareObj
=
{
title
:
`
${
myBaseinfo
.
nickname
}
的打卡详情`
,
path
:
`/src/pages/clockdetail/newindex?id=
${
this
.
data
.
id
}
&tid=
${
this
.
data
.
themeSelect
.
id
}
&cid=
${
clockDetail
.
id
}
&w=
${
visitor
.
studentId
}
`
...
...
@@ -356,11 +370,25 @@ Page({
this
.
autoclosefeedback
();
}
})
app
.
setSharerLog
({
source_path
:
'src/pages/clockdetail/newindex'
,
source_id
:
info
.
id
,
param
:
JSON
.
stringify
({
query
:
`id=
${
this
.
data
.
id
}
&tid=
${
this
.
data
.
themeSelect
.
id
}
&cid=
${
info
.
id
}
&w=
${
visitor
.
studentId
}
`
})
});
shareObj
=
{
title
:
`
${
info
.
school_student
.
nickname
}
的打卡详情`
,
path
:
`/src/pages/clockdetail/newindex?id=
${
this
.
data
.
id
}
&tid=
${
this
.
data
.
themeSelect
.
id
}
&cid=
${
info
.
id
}
&w=
${
visitor
.
studentId
}
`
}
}
else
{
app
.
setSharerLog
({
source_path
:
'src/pages/beforeinvitation/index'
,
source_id
:
this
.
data
.
tid
,
param
:
JSON
.
stringify
({
query
:
`tid=
${
this
.
data
.
tid
}
&consumerId=
${
visitor
&&
visitor
.
id
||
0
}
&d=
${
clockdate
.
substr
(
2
)}
&w=
${
visitor
.
studentId
}
`
})
});
shareObj
=
initShareObj
;
}
}
...
...
src/pages/clockdetail/index.js
View file @
37eb9689
...
...
@@ -300,6 +300,13 @@ Page({
this
.
autoclosefeedback
();
}
})
app
.
setSharerLog
({
source_path
:
'src/pages/clockdetail/newindex'
,
source_id
:
this
.
data
.
cid
,
param
:
JSON
.
stringify
({
query
:
`tid=
${
this
.
data
.
tid
}
&cid=
${
this
.
data
.
cid
}
&w=
${
visitor
.
studentId
}
`
})
});
return
{
title
:
`
${
name
}
的打卡详情`
,
path
:
`/src/pages/clockdetail/newindex?tid=
${
this
.
data
.
tid
}
&cid=
${
this
.
data
.
cid
}
&w=
${
visitor
.
studentId
}
`
,
...
...
src/pages/clockdetail/newindex.js
View file @
37eb9689
...
...
@@ -341,6 +341,13 @@ Page({
this
.
autoclosefeedback
();
}
})
app
.
setSharerLog
({
source_path
:
'src/pages/clockdetail/newindex'
,
source_id
:
this
.
data
.
cid
,
param
:
JSON
.
stringify
({
query
:
`tid=
${
this
.
data
.
tid
}
&cid=
${
this
.
data
.
cid
}
&w=
${
visitor
.
studentId
}
`
})
});
return
{
title
:
`
${
name
}
的打卡详情`
,
path
:
`/src/pages/clockdetail/newindex?tid=
${
this
.
data
.
tid
}
&cid=
${
this
.
data
.
cid
}
&w=
${
visitor
.
studentId
}
`
,
...
...
src/pages/clockdetail/shareclock.js
View file @
37eb9689
...
...
@@ -111,6 +111,13 @@ Page({
title
:
`
${
this
.
data
.
clockDetail
.
school_student
.
nickname
}
的打卡详情`
,
path
:
`/src/pages/clockdetail/newindex?id=
${
this
.
data
.
clockDetail
.
class_id
}
&tid=
${
this
.
data
.
tid
}
&cid=
${
this
.
data
.
clockId
}
&w=
${
visitor
.
studentId
}
`
}
app
.
setSharerLog
({
source_path
:
'src/pages/clockdetail/newindex'
,
source_id
:
this
.
data
.
clockId
,
param
:
JSON
.
stringify
({
query
:
`id=
${
this
.
data
.
clockDetail
.
class_id
}
&tid=
${
this
.
data
.
tid
}
&cid=
${
this
.
data
.
clockId
}
&w=
${
visitor
.
studentId
}
`
})
});
return
{
title
:
shareObj
.
title
,
path
:
shareObj
.
path
,
...
...
src/pages/growthrecord/index.js
View file @
37eb9689
...
...
@@ -493,6 +493,13 @@ Page({
consumer_id
:
this
.
data
.
consumerId
,
clock_circle_id
:
this
.
data
.
id
})
app
.
setSharerLog
({
source_path
:
'src/pages/growthrecord/index'
,
source_id
:
this
.
data
.
consumerId
,
param
:
JSON
.
stringify
({
query
:
`consumerId=
${
this
.
data
.
consumerId
}
&id=
${
this
.
data
.
id
}
&sid=
${
this
.
data
.
sid
}
&w=
${
visitor
.
studentId
}
`
})
});
}
else
if
(
from
==
'button'
)
{
if
(
!
target
.
dataset
.
info
)
{
shareObj
=
initShareObj
;
...
...
@@ -502,6 +509,13 @@ Page({
consumer_id
:
this
.
data
.
consumerId
,
clock_circle_id
:
this
.
data
.
id
})
app
.
setSharerLog
({
source_path
:
'src/pages/growthrecord/index'
,
source_id
:
this
.
data
.
consumerId
,
param
:
JSON
.
stringify
({
query
:
`consumerId=
${
this
.
data
.
consumerId
}
&id=
${
this
.
data
.
id
}
&sid=
${
this
.
data
.
sid
}
&w=
${
visitor
.
studentId
}
`
})
});
}
else
{
const
{
target
:
{
dataset
:
{
info
}}}
=
option
;
integralLog
({
...
...
@@ -522,6 +536,13 @@ Page({
this
.
autoclosefeedback
();
}
})
app
.
setSharerLog
({
source_path
:
'src/pages/clockdetail/newindex'
,
source_id
:
info
.
id
,
param
:
JSON
.
stringify
({
query
:
`tid=
${
info
.
subject_id
}
&cid=
${
info
.
id
}
&sid=
${
this
.
data
.
sid
}
&w=
${
visitor
.
studentId
}
`
})
});
shareObj
=
{
title
:
`
${
info
.
school_student
.
nickname
}
的打卡详情`
,
path
:
`/src/pages/clockdetail/newindex?tid=
${
info
.
subject_id
}
&cid=
${
info
.
id
}
&sid=
${
this
.
data
.
sid
}
&w=
${
visitor
.
studentId
}
`
...
...
src/pages/invitation/index.js
View file @
37eb9689
...
...
@@ -124,6 +124,13 @@ Page({
*/
onShareAppMessage
:
function
()
{
const
visitor
=
LocalStorage
.
getItem
(
'visitor'
);
app
.
setSharerLog
({
source_path
:
'src/pages/invitation/index'
,
source_id
:
this
.
data
.
tid
,
param
:
JSON
.
stringify
({
query
:
`tid=
${
this
.
data
.
tid
}
&consumerId=
${
this
.
data
.
consumerId
}
&d=
${
this
.
data
.
d
}
&w=
${
visitor
.
studentId
}
`
})
});
return
{
title
:
'入学通知书'
,
path
:
`/src/pages/invitation/index?tid=
${
this
.
data
.
tid
}
&consumerId=
${
this
.
data
.
consumerId
}
&d=
${
this
.
data
.
d
}
&w=
${
visitor
.
studentId
}
`
,
...
...
src/pages/inviteindex/index.js
View file @
37eb9689
...
...
@@ -111,6 +111,13 @@ Page({
*/
onShareAppMessage
:
function
()
{
const
visitor
=
LocalStorage
.
getItem
(
'visitor'
);
app
.
setSharerLog
({
source_path
:
'src/pages/inviteindex/index'
,
source_id
:
this
.
data
.
id
,
param
:
JSON
.
stringify
({
query
:
`id=
${
this
.
data
.
id
}
&w=
${
visitor
.
studentId
}
`
})
});
return
{
title
:
'入学通知书'
,
path
:
`/src/pages/inviteindex/index?id=
${
this
.
data
.
id
}
&w=
${
visitor
.
studentId
}
`
,
...
...
src/pages/morethemeindex/index.js
View file @
37eb9689
...
...
@@ -367,6 +367,13 @@ Page({
}
if
(
from
==
'menu'
)
{
shareObj
=
initShareObj
;
app
.
setSharerLog
({
source_path
:
'src/pages/sharemoretheme/index'
,
source_id
:
this
.
data
.
tid
,
param
:
JSON
.
stringify
({
query
:
`tid=
${
this
.
data
.
tid
}
&id=
${
this
.
data
.
id
}
&w=
${
visitor
.
studentId
}
`
})
});
}
else
if
(
from
==
'button'
)
{
if
(
target
.
dataset
.
typefrom
&&
target
.
dataset
.
typefrom
==
'dailySign'
){
const
visitor
=
LocalStorage
.
getItem
(
'visitor'
);
...
...
@@ -376,8 +383,22 @@ Page({
title
:
`
${
myBaseinfo
.
nickname
}
的打卡详情`
,
path
:
`/src/pages/clockdetail/newindex?id=
${
this
.
data
.
id
}
&tid=
${
this
.
data
.
themeSelect
.
id
}
&cid=
${
clockDetail
[
0
].
id
}
&w=
${
visitor
.
studentId
}
`
}
app
.
setSharerLog
({
source_path
:
'src/pages/clockdetail/newindex'
,
source_id
:
clockDetail
[
0
].
id
,
param
:
JSON
.
stringify
({
query
:
`id=
${
this
.
data
.
id
}
&tid=
${
this
.
data
.
themeSelect
.
id
}
&cid=
${
clockDetail
[
0
].
id
}
&w=
${
visitor
.
studentId
}
`
})
});
}
else
if
(
!
target
.
dataset
.
info
)
{
shareObj
=
initShareObj
;
app
.
setSharerLog
({
source_path
:
'src/pages/sharemoretheme/index'
,
source_id
:
this
.
data
.
tid
,
param
:
JSON
.
stringify
({
query
:
`tid=
${
this
.
data
.
tid
}
&id=
${
this
.
data
.
id
}
&w=
${
visitor
.
studentId
}
`
})
});
}
else
{
const
{
target
:
{
...
...
@@ -403,6 +424,13 @@ Page({
this
.
autoclosefeedback
();
}
})
app
.
setSharerLog
({
source_path
:
'src/pages/clockdetail/newindex'
,
source_id
:
info
.
id
,
param
:
JSON
.
stringify
({
query
:
`id=
${
this
.
data
.
id
}
&tid=
${
this
.
data
.
themeSelect
.
id
}
&cid=
${
info
.
id
}
&w=
${
visitor
.
studentId
}
`
})
});
shareObj
=
{
title
:
`
${
info
.
school_student
.
nickname
}
的打卡详情`
,
path
:
`/src/pages/clockdetail/newindex?id=
${
this
.
data
.
id
}
&tid=
${
this
.
data
.
themeSelect
.
id
}
&cid=
${
info
.
id
}
&w=
${
visitor
.
studentId
}
`
...
...
src/pages/myachievement/index.js
View file @
37eb9689
...
...
@@ -165,6 +165,13 @@ Page({
},
onShareAppMessage
:
function
(
option
)
{
// return custom share data when user share.
const
visitor
=
LocalStorage
.
getItem
(
'visitor'
);
app
.
setSharerLog
({
source_path
:
'src/pages/myachievement/index'
,
source_id
:
this
.
data
.
sid
,
param
:
JSON
.
stringify
({
query
:
`sid=
${
this
.
data
.
sid
}
&custormeId=
${
this
.
data
.
custormeId
}
&w=
${
visitor
.
studentId
}
`
})
});
return
{
title
:
'排行榜'
,
path
:
`/src/pages/myachievement/index?sid=
${
this
.
data
.
sid
}
&custormeId=
${
this
.
data
.
custormeId
}
&w=
${
visitor
.
studentId
}
`
,
...
...
src/pages/mycalendart/index.js
View file @
37eb9689
...
...
@@ -275,9 +275,23 @@ Page({
let
shareObj
=
{}
if
(
from
==
'menu'
)
{
shareObj
=
initShareObj
;
app
.
setSharerLog
({
source_path
:
'src/pages/mycalendart/index'
,
source_id
:
this
.
data
.
tid
,
param
:
JSON
.
stringify
({
query
:
`tid=
${
this
.
data
.
tid
}
&id=
${
this
.
data
.
id
}
&clockdate=
${
this
.
data
.
clockdate
}
&w=
${
visitor
.
studentId
}
`
})
});
}
else
if
(
from
==
'button'
)
{
if
(
!
target
.
dataset
.
info
)
{
shareObj
=
initShareObj
;
app
.
setSharerLog
({
source_path
:
'src/pages/mycalendart/index'
,
source_id
:
this
.
data
.
tid
,
param
:
JSON
.
stringify
({
query
:
`tid=
${
this
.
data
.
tid
}
&id=
${
this
.
data
.
id
}
&clockdate=
${
this
.
data
.
clockdate
}
&w=
${
visitor
.
studentId
}
`
})
});
}
else
{
const
{
target
:
{
...
...
@@ -286,6 +300,13 @@ Page({
}
}
}
=
option
;
app
.
setSharerLog
({
source_path
:
'src/pages/clockdetail/newindex'
,
source_id
:
info
.
id
,
param
:
JSON
.
stringify
({
query
:
`/src/pages/clockdetail/newindex?tid=
${
info
.
subject_id
}
&cid=
${
info
.
id
}
&w=
${
visitor
.
studentId
}
`
})
});
shareObj
=
{
title
:
`
${
info
.
school_student
.
nickname
}
的打卡详情`
,
path
:
`/src/pages/clockdetail/newindex?tid=
${
info
.
subject_id
}
&cid=
${
info
.
id
}
&w=
${
visitor
.
studentId
}
`
...
...
src/pages/papersquare/classreviewshare.js
View file @
37eb9689
...
...
@@ -148,6 +148,13 @@ Page({
},
onShareAppMessage
:
function
()
{
const
visitor
=
LocalStorage
.
getItem
(
'visitor'
);
app
.
setSharerLog
({
source_path
:
'src/pages/papersquare/reviewdetail'
,
source_id
:
this
.
data
.
rid
,
param
:
JSON
.
stringify
({
query
:
`sid=
${
this
.
data
.
sid
}
&id=
${
this
.
data
.
id
}
&rid=
${
this
.
data
.
rid
}
&type=
${
this
.
data
.
type
}
&w=
${
visitor
.
studentId
}
`
})
});
return
{
title
:
`课堂小评详情`
,
path
:
`/src/pages/papersquare/reviewdetail?sid=
${
this
.
data
.
sid
}
&id=
${
this
.
data
.
id
}
&rid=
${
this
.
data
.
rid
}
&type=
${
this
.
data
.
type
}
&w=
${
visitor
.
studentId
}
`
...
...
src/pages/papersquare/index.js
View file @
37eb9689
...
...
@@ -1221,6 +1221,13 @@ defaultClockList: [[{"id":119722,"school_id":424,"student_id":8465,"class_id":12
title
:
`习作广场`
,
path
:
`/src/pages/papersquare/index?sid=
${
this
.
data
.
sid
}
&w=
${
visitor
.
studentId
}
`
}
app
.
setSharerLog
({
source_path
:
'src/pages/papersquare/index'
,
source_id
:
this
.
data
.
sid
,
param
:
JSON
.
stringify
({
query
:
`sid=
${
this
.
data
.
sid
}
&w=
${
visitor
.
studentId
}
`
})
});
return
{
title
:
initShareObj
.
title
,
path
:
initShareObj
.
path
,
...
...
src/pages/papersquare/reviewdetail.js
View file @
37eb9689
...
...
@@ -153,6 +153,13 @@ Page({
*/
onShareAppMessage
:
function
()
{
const
visitor
=
LocalStorage
.
getItem
(
'visitor'
);
app
.
setSharerLog
({
source_path
:
'src/pages/papersquare/reviewdetail'
,
source_id
:
this
.
data
.
rid
,
param
:
JSON
.
stringify
({
query
:
`sid=
${
this
.
data
.
sid
}
&id=
${
this
.
data
.
id
}
&rid=
${
this
.
data
.
rid
}
&type=
${
this
.
data
.
type
}
&w=
${
visitor
.
studentId
}
`
})
});
return
{
title
:
`课堂小评详情`
,
path
:
`/src/pages/papersquare/reviewdetail?sid=
${
this
.
data
.
sid
}
&id=
${
this
.
data
.
id
}
&rid=
${
this
.
data
.
rid
}
&type=
${
this
.
data
.
type
}
&w=
${
visitor
.
studentId
}
`
...
...
src/pages/rankingList/index.js
View file @
37eb9689
...
...
@@ -250,6 +250,13 @@ Page({
*/
onShareAppMessage
:
function
()
{
const
visitor
=
LocalStorage
.
getItem
(
'visitor'
);
app
.
setSharerLog
({
source_path
:
'src/pages/rankingList/index'
,
source_id
:
this
.
data
.
id
,
param
:
JSON
.
stringify
({
query
:
`id=
${
this
.
data
.
id
}
&sid=
${
this
.
data
.
sid
}
&tag=
${
this
.
data
.
bigCurrentTab
}
&w=
${
visitor
.
studentId
}
`
})
});
return
{
title
:
'排行榜'
,
path
:
`/src/pages/rankingList/index?id=
${
this
.
data
.
id
}
&sid=
${
this
.
data
.
sid
}
&tag=
${
this
.
data
.
bigCurrentTab
}
&w=
${
visitor
.
studentId
}
`
,
...
...
src/pages/scoretasklist/index.js
View file @
37eb9689
...
...
@@ -154,9 +154,23 @@ Page({
}
if
(
from
==
'menu'
)
{
shareObj
=
initShareObj
;
app
.
setSharerLog
({
source_path
:
'src/pages/websiteindex/index'
,
source_id
:
this
.
data
.
sid
,
param
:
JSON
.
stringify
({
query
:
`sid=
${
this
.
data
.
sid
}
&w=
${
visitor
.
studentId
}
`
})
});
}
else
if
(
from
==
'button'
)
{
if
(
!
target
.
dataset
.
info
)
{
shareObj
=
initShareObj
;
app
.
setSharerLog
({
source_path
:
'src/pages/websiteindex/index'
,
source_id
:
this
.
data
.
sid
,
param
:
JSON
.
stringify
({
query
:
`sid=
${
this
.
data
.
sid
}
&w=
${
visitor
.
studentId
}
`
})
});
}
else
{
const
{
target
:
{
...
...
@@ -183,6 +197,13 @@ Page({
this
.
autoclosefeedback
();
}
})
app
.
setSharerLog
({
source_path
:
'src/pages/clockdetail/newindex'
,
source_id
:
info
.
id
,
param
:
JSON
.
stringify
({
query
:
`id=
${
info
.
class_id
}
&tid=
${
info
.
subject_id
}
&cid=
${
info
.
id
}
&w=
${
visitor
.
studentId
}
`
})
});
shareObj
=
{
title
:
`
${
info
.
school_student
.
nickname
}
的打卡详情`
,
path
:
`/src/pages/clockdetail/newindex?id=
${
info
.
class_id
}
&tid=
${
info
.
subject_id
}
&cid=
${
info
.
id
}
&w=
${
visitor
.
studentId
}
`
...
...
src/pages/themeindex/index.js
View file @
37eb9689
...
...
@@ -400,11 +400,25 @@ Page({
}
if
(
from
==
'menu'
)
{
shareObj
=
initShareObj
;
app
.
setSharerLog
({
source_path
:
'src/pages/beforeinvitation/index'
,
source_id
:
this
.
data
.
tid
,
param
:
JSON
.
stringify
({
query
:
`tid=
${
this
.
data
.
tid
}
&consumerId=
${
visitor
&&
visitor
.
id
||
0
}
&w=
${
visitor
.
studentId
}
`
})
});
}
else
if
(
from
==
'button'
)
{
if
(
target
.
dataset
.
typefrom
&&
target
.
dataset
.
typefrom
==
'dailySign'
){
const
visitor
=
LocalStorage
.
getItem
(
'visitor'
);
const
userInfo
=
this
.
data
.
userInfoDetail
;
let
clockDetail
=
this
.
data
.
selfClockDetail
app
.
setSharerLog
({
source_path
:
'src/pages/clockdetail/newindex'
,
source_id
:
clockDetail
.
id
,
param
:
JSON
.
stringify
({
query
:
`id=
${
this
.
data
.
id
}
&tid=
${
this
.
data
.
themeSelect
.
id
}
&cid=
${
clockDetail
.
id
}
&w=
${
visitor
.
studentId
}
`
})
});
shareObj
=
{
title
:
`
${
myBaseinfo
.
nickname
}
的打卡详情`
,
path
:
`/src/pages/clockdetail/newindex?id=
${
this
.
data
.
id
}
&tid=
${
this
.
data
.
themeSelect
.
id
}
&cid=
${
clockDetail
.
id
}
&w=
${
visitor
.
studentId
}
`
...
...
@@ -435,11 +449,25 @@ Page({
this
.
autoclosefeedback
();
}
})
app
.
setSharerLog
({
source_path
:
'src/pages/clockdetail/newindex'
,
source_id
:
info
.
id
,
param
:
JSON
.
stringify
({
query
:
`id=
${
this
.
data
.
id
}
&tid=
${
this
.
data
.
themeSelect
.
id
}
&cid=
${
info
.
id
}
&w=
${
visitor
.
studentId
}
`
})
});
shareObj
=
{
title
:
`
${
info
.
school_student
.
nickname
}
的打卡详情`
,
path
:
`/src/pages/clockdetail/newindex?id=
${
this
.
data
.
id
}
&tid=
${
this
.
data
.
themeSelect
.
id
}
&cid=
${
info
.
id
}
&w=
${
visitor
.
studentId
}
`
}
}
else
{
app
.
setSharerLog
({
source_path
:
'src/pages/beforeinvitation/index'
,
source_id
:
this
.
data
.
tid
,
param
:
JSON
.
stringify
({
query
:
`tid=
${
this
.
data
.
tid
}
&consumerId=
${
visitor
&&
visitor
.
id
||
0
}
&w=
${
visitor
.
studentId
}
`
})
});
shareObj
=
initShareObj
;
}
}
...
...
src/pages/themeindex/rankList.js
View file @
37eb9689
...
...
@@ -207,6 +207,13 @@ Page({
*/
onShareAppMessage
:
function
()
{
const
visitor
=
LocalStorage
.
getItem
(
'visitor'
);
app
.
setSharerLog
({
source_path
:
'src/pages/themeindex/rankList'
,
source_id
:
this
.
data
.
tid
,
param
:
JSON
.
stringify
({
query
:
`id=
${
this
.
data
.
id
}
&sid=
${
this
.
data
.
sid
}
&tid=
${
this
.
data
.
tid
}
&w=
${
visitor
.
studentId
}
`
})
});
return
{
title
:
'排行榜'
,
path
:
`/src/pages/themeindex/rankList?id=
${
this
.
data
.
id
}
&sid=
${
this
.
data
.
sid
}
&tid=
${
this
.
data
.
tid
}
&w=
${
visitor
.
studentId
}
`
,
...
...
src/pages/themeranklist/index.js
View file @
37eb9689
...
...
@@ -123,6 +123,13 @@ Page({
*/
onShareAppMessage
:
function
()
{
const
visitor
=
LocalStorage
.
getItem
(
'visitor'
);
app
.
setSharerLog
({
source_path
:
'src/pages/themeranklist/index'
,
source_id
:
this
.
data
.
tid
,
param
:
JSON
.
stringify
({
query
:
`tid=
${
this
.
data
.
tid
}
&sid=
${
this
.
data
.
sid
}
&w=
${
visitor
.
studentId
}
`
})
});
return
{
title
:
'日历打卡排行榜'
,
path
:
`/src/pages/themeranklist/index?tid=
${
this
.
data
.
tid
}
&sid=
${
this
.
data
.
sid
}
&w=
${
visitor
.
studentId
}
`
,
...
...
src/pages/unlockranklist/index.js
View file @
37eb9689
...
...
@@ -76,6 +76,13 @@ Page({
},
onShareAppMessage
:
function
()
{
const
visitor
=
LocalStorage
.
getItem
(
'visitor'
);
app
.
setSharerLog
({
source_path
:
'src/pages/unlockranklist/index'
,
source_id
:
this
.
data
.
mode_id
,
param
:
JSON
.
stringify
({
query
:
`tid=
${
this
.
data
.
mode_id
}
&sid=
${
this
.
data
.
sid
}
&w=
${
visitor
.
studentId
}
`
})
});
return
{
title
:
'闯关打卡排行榜'
,
path
:
`/src/pages/unlockranklist/index?tid=
${
this
.
data
.
mode_id
}
&sid=
${
this
.
data
.
sid
}
&w=
${
visitor
.
studentId
}
`
,
...
...
src/pages/userMedal/index.js
View file @
37eb9689
...
...
@@ -179,6 +179,13 @@ Page({
*/
onShareAppMessage
:
function
()
{
const
visitor
=
LocalStorage
.
getItem
(
'visitor'
);
app
.
setSharerLog
({
source_path
:
'src/pages/userMedal/index'
,
source_id
:
this
.
data
.
id
,
param
:
JSON
.
stringify
({
query
:
`id=
${
this
.
data
.
id
}
&customerId=
${
this
.
data
.
consumerId
}
&sid=
${
this
.
data
.
sid
}
&w=
${
visitor
.
studentId
}
`
})
});
return
{
title
:
'荣誉勋章'
,
path
:
`/src/pages/userMedal/index?id=
${
this
.
data
.
id
}
&customerId=
${
this
.
data
.
consumerId
}
&sid=
${
this
.
data
.
sid
}
&w=
${
visitor
.
studentId
}
`
,
...
...
src/pages/userMedal/newindex.js
View file @
37eb9689
...
...
@@ -179,6 +179,13 @@ Page({
*/
onShareAppMessage
:
function
()
{
const
visitor
=
LocalStorage
.
getItem
(
'visitor'
);
app
.
setSharerLog
({
source_path
:
'src/pages/userMedal/index'
,
source_id
:
this
.
data
.
id
,
param
:
JSON
.
stringify
({
query
:
`id=
${
this
.
data
.
id
}
&customerId=
${
this
.
data
.
consumerId
}
&sid=
${
this
.
data
.
sid
}
&w=
${
visitor
.
studentId
}
`
})
});
return
{
title
:
'荣誉勋章'
,
path
:
`/src/pages/userMedal/index?id=
${
this
.
data
.
id
}
&customerId=
${
this
.
data
.
consumerId
}
&sid=
${
this
.
data
.
sid
}
&w=
${
visitor
.
studentId
}
`
,
...
...
src/pages/websiteindex/bannervideo.js
View file @
37eb9689
...
...
@@ -75,6 +75,13 @@ Page({
},
onShareAppMessage
:
function
(
option
)
{
// return custom share data when user share.
const
visitor
=
LocalStorage
.
getItem
(
'visitor'
);
app
.
setSharerLog
({
source_path
:
'src/pages/websiteindex/bannervideo'
,
source_id
:
this
.
data
.
sid
,
param
:
JSON
.
stringify
({
query
:
`sid=
${
this
.
data
.
sid
}
&type=1&video=
${
this
.
data
.
video
}
&w=
${
visitor
.
studentId
}
`
})
});
return
{
title
:
`我发现一家好机构@
${
this
.
data
.
schoolInfo
.
title
}
,推荐给你`
,
path
:
`/src/pages/websiteindex/bannervideo?sid=
${
this
.
data
.
sid
}
&type=1&video=
${
this
.
data
.
video
}
&w=
${
visitor
.
studentId
}
`
,
...
...
src/pages/websiteindex/businessinfolist.js
View file @
37eb9689
...
...
@@ -123,6 +123,13 @@ Page({
*/
onShareAppMessage
:
function
()
{
const
visitor
=
LocalStorage
.
getItem
(
'visitor'
);
app
.
setSharerLog
({
source_path
:
'src/pages/websiteindex/businessinfolist'
,
source_id
:
this
.
data
.
sid
,
param
:
JSON
.
stringify
({
query
:
`sid=
${
this
.
data
.
sid
}
&w=
${
visitor
.
studentId
}
`
})
});
return
{
title
:
`我发现一家好机构@
${
this
.
data
.
schoolInfo
.
title
}
,推荐给你`
,
path
:
`/src/pages/websiteindex/businessinfolist?sid=
${
this
.
data
.
sid
}
&w=
${
visitor
.
studentId
}
`
,
...
...
src/pages/websiteindex/clocklist.js
View file @
37eb9689
...
...
@@ -131,9 +131,23 @@ Page({
}
if
(
from
==
'menu'
)
{
shareObj
=
initShareObj
;
app
.
setSharerLog
({
source_path
:
'src/pages/websiteindex/clocklist'
,
source_id
:
this
.
data
.
sid
,
param
:
JSON
.
stringify
({
query
:
`sid=
${
this
.
data
.
sid
}
&w=
${
visitor
.
studentId
}
`
})
});
}
else
if
(
from
==
'button'
)
{
if
(
!
target
.
dataset
.
info
)
{
shareObj
=
initShareObj
;
app
.
setSharerLog
({
source_path
:
'src/pages/websiteindex/clocklist'
,
source_id
:
this
.
data
.
sid
,
param
:
JSON
.
stringify
({
query
:
`sid=
${
this
.
data
.
sid
}
&w=
${
visitor
.
studentId
}
`
})
});
}
else
{
const
{
target
:
{
...
...
@@ -142,6 +156,13 @@ Page({
}
}
}
=
option
;
app
.
setSharerLog
({
source_path
:
'src/pages/clockdetail/newindex'
,
source_id
:
info
.
id
,
param
:
JSON
.
stringify
({
query
:
`id=
${
info
.
class_id
}
&tid=
${
info
.
subject_id
}
&cid=
${
info
.
id
}
&w=
${
visitor
.
studentId
}
`
})
});
shareObj
=
{
title
:
`
${
info
.
school_student
.
nickname
}
的打卡详情`
,
path
:
`/src/pages/clockdetail/newindex?id=
${
info
.
class_id
}
&tid=
${
info
.
subject_id
}
&cid=
${
info
.
id
}
&w=
${
visitor
.
studentId
}
`
...
...
src/pages/websiteindex/index.js
View file @
37eb9689
...
...
@@ -234,9 +234,23 @@ Page({
}
if
(
from
==
'menu'
)
{
shareObj
=
initShareObj
;
app
.
setSharerLog
({
source_path
:
'src/pages/websiteindex/index'
,
source_id
:
this
.
data
.
sid
,
param
:
JSON
.
stringify
({
query
:
`sid=
${
this
.
data
.
sid
}
&w=
${
visitor
.
studentId
}
`
})
});
}
else
if
(
from
==
'button'
)
{
if
(
!
target
.
dataset
.
info
)
{
shareObj
=
initShareObj
;
app
.
setSharerLog
({
source_path
:
'src/pages/websiteindex/index'
,
source_id
:
this
.
data
.
sid
,
param
:
JSON
.
stringify
({
query
:
`sid=
${
this
.
data
.
sid
}
&w=
${
visitor
.
studentId
}
`
})
});
}
else
{
const
{
target
:
{
...
...
@@ -249,6 +263,13 @@ Page({
title
:
`
${
info
.
school_student
.
nickname
}
的打卡详情`
,
path
:
`/src/pages/clockdetail/newindex?id=
${
info
.
class_id
}
&tid=
${
info
.
subject_id
}
&cid=
${
info
.
id
}
&w=
${
visitor
.
studentId
}
`
}
app
.
setSharerLog
({
source_path
:
'src/pages/clockdetail/newindex'
,
source_id
:
info
.
id
,
param
:
JSON
.
stringify
({
query
:
`id=
${
info
.
class_id
}
&tid=
${
info
.
subject_id
}
&cid=
${
info
.
id
}
&w=
${
visitor
.
studentId
}
`
})
});
}
}
return
{
...
...
src/pages/websiteindex/infovideo.js
View file @
37eb9689
...
...
@@ -172,6 +172,13 @@ Page({
student_id
:
visitor
&&
visitor
.
studentId
}).
then
((
res
)
=>
{
})
app
.
setSharerLog
({
source_path
:
'src/pages/websiteindex/infovideo'
,
source_id
:
this
.
data
.
sid
,
param
:
JSON
.
stringify
({
query
:
`sid=
${
this
.
data
.
sid
}
&crt=
${
this
.
data
.
currentIndex
}
&type=1&w=
${
visitor
.
studentId
}
`
})
});
return
{
title
:
`我发现一家好机构@
${
this
.
data
.
schoolInfo
.
title
}
,推荐给你`
,
path
:
`/src/pages/websiteindex/infovideo?sid=
${
this
.
data
.
sid
}
&crt=
${
this
.
data
.
currentIndex
}
&type=1&w=
${
visitor
.
studentId
}
`
,
...
...
ucenter/index.js
View file @
37eb9689
...
...
@@ -170,6 +170,14 @@ Page({
},
onShareAppMessage
:
function
()
{
// return custom share data when user share.
const
visitor
=
LocalStorage
.
getItem
(
'visitor'
);
app
.
setSharerLog
({
source_path
:
'ucenter/index'
,
source_id
:
this
.
data
.
sid
,
param
:
JSON
.
stringify
({
query
:
`w=
${
visitor
.
studentId
}
`
})
});
// setSharerLog
return
{
title
:
'轻校通'
,
path
:
`/ucenter/index?w=
${
visitor
.
studentId
}
`
...
...
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