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
537f57bd
Commit
537f57bd
authored
Mar 17, 2020
by
wangxuelai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
'海报scene模式修改完结,需要去做埋点的兼容'
parent
268c6669
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
64 additions
and
33 deletions
+64
-33
poster.md
poster.md
+1
-1
index.js
src/pages/calendarthemeindex/index.js
+25
-14
index.js
src/pages/growthrecord/index.js
+37
-17
index.js
src/pages/myachievement/index.js
+1
-1
No files found.
poster.md
View file @
537f57bd
...
...
@@ -34,4 +34,4 @@
7.
分享打卡详情海报长图
page: src/pages/clockdetail/newindex
修改前
`t=${tid}&c=${clockId}&w=${app.globalData.currentSchoolStudentId}`
,
修改后
`${clockId}_${tid}_${app.globalData.currentSchoolStudentId}`
,
\ No newline at end of file
修改后
`${clockId}_${tid}_${app.globalData.**currentSchoolStudentId**}`
,
\ No newline at end of file
src/pages/calendarthemeindex/index.js
View file @
537f57bd
...
...
@@ -45,7 +45,8 @@ import {
videoPoster
,
scenQueryGet
,
getDailyMateria
,
dateDetail
dateDetail
,
newScenQueryGet
}
from
'../../../utilities/index.js'
;
import
initCalendar
,
{
setTodoLabels
,
...
...
@@ -192,19 +193,29 @@ Page({
onLoad
:
function
(
options
)
{
// Do some initialize when page load.
// this.getWeeksDay(new Date());
if
(
options
.
scene
)
{
let
sceneQuery
=
scenQueryGet
(
options
.
scene
);
const
{
i
,
t
,
d
}
=
sceneQuery
;
this
.
setData
({
id
:
i
,
tid
:
t
,
d
:
d
||
''
,
pagefrom
:
''
,
pageScene
:
options
.
scene
||
''
})
let
sceneQuery
=
newScenQueryGet
(
options
.
scene
);
if
(
sceneQuery
.
type
==
1
)
{
const
{
i
,
t
,
d
}
=
sceneQuery
.
queryObj
;
this
.
setData
({
id
:
i
,
tid
:
t
,
d
:
d
||
''
,
pagefrom
:
''
,
pageScene
:
options
.
scene
||
''
})
}
else
if
(
sceneQuery
.
type
==
2
)
{
this
.
setData
({
id
:
sceneQuery
.
queryObj
[
0
],
tid
:
sceneQuery
.
queryObj
[
1
],
d
:
sceneQuery
.
queryObj
[
2
],
pagefrom
:
''
,
pageScene
:
options
.
scene
||
''
})
}
}
else
{
const
{
id
,
...
...
src/pages/growthrecord/index.js
View file @
537f57bd
...
...
@@ -53,6 +53,7 @@ import {
LocalStorage
,
audioorigin
,
scenQueryGet
,
newScenQueryGet
,
}
from
'../../../utilities/index.js'
;
import
regexp
from
'../../../constants/regexp.js'
;
import
{
...
...
@@ -266,23 +267,41 @@ Page({
onLoad
:
function
(
options
)
{
// Do some initialize when page load.
let
that
=
this
;
if
(
options
.
scene
)
{
let
sceneQuery
=
scenQueryGet
(
options
.
scene
);
const
{
s
,
i
,
ctd
,
p
}
=
sceneQuery
;
if
(
p
==
4
)
{
console
.
log
(
options
.
scene
,
'options.scene'
)
let
sceneQuery
=
newScenQueryGet
(
options
.
scene
);
if
(
sceneQuery
.
type
==
1
)
{
const
{
s
,
i
,
ctd
,
p
}
=
sceneQuery
.
queryObj
;
if
(
p
==
4
)
{
}
posterLog
({
poster_type
:
7
,
type
:
2
,
consumer_id
:
ctd
,
clock_circle_id
:
i
,
})
this
.
setData
({
sid
:
s
||
0
,
id
:
i
,
id2
:
i
,
consumerId
:
ctd
,
advertisementshow
:
true
})
}
else
if
(
sceneQuery
.
type
==
2
)
{
posterLog
({
poster_type
:
7
,
type
:
2
,
consumer_id
:
sceneQuery
.
queryObj
[
2
],
clock_circle_id
:
sceneQuery
.
queryObj
[
1
],
})
console
.
log
(
sceneQuery
.
queryObj
,
'sceneQuery.queryObj'
);
this
.
setData
({
sid
:
sceneQuery
.
queryObj
[
3
],
id
:
sceneQuery
.
queryObj
[
1
],
id2
:
sceneQuery
.
queryObj
[
1
],
consumerId
:
sceneQuery
.
queryObj
[
2
],
advertisementshow
:
true
})
}
posterLog
({
poster_type
:
7
,
type
:
2
,
consumer_id
:
ctd
,
clock_circle_id
:
i
,
})
this
.
setData
({
sid
:
s
||
0
,
id
:
i
,
id2
:
i
,
consumerId
:
ctd
,
advertisementshow
:
true
})
}
else
{
const
{
sid
,
id
,
consumerId
}
=
options
;
this
.
setData
({
...
...
@@ -1645,7 +1664,8 @@ Page({
let
qrcode
=
''
;
generateCustomerQrcode
({
scene
:
`4_
${
this
.
data
.
id
}
_
${
this
.
data
.
consumerId
}
_
${
app
.
globalData
.
currentSchoolStudentId
}
`
,
// `i=${this.data.id}&ctd=${this.data.consumerId}&p=4&s=${this.data.sid}&w=${app.globalData.currentSchoolStudentId}`,
scene
:
`4_
${
this
.
data
.
id
}
_
${
this
.
data
.
consumerId
}
_
${
this
.
data
.
sid
}
_
${
app
.
globalData
.
currentSchoolStudentId
}
`
,
page
:
`src/pages/growthrecord/index`
}).
then
((
res
)
=>
{
const
{
code
,
data
}
=
res
;
...
...
src/pages/myachievement/index.js
View file @
537f57bd
...
...
@@ -255,7 +255,7 @@ Page({
title
:
'结课证书生成中...'
})
generateCustomerQrcode
({
scene
:
`
${
certificateInfo
.
subject
.
class_id
}
_
${
certificateInfo
.
subject
.
id
}
_
${
app
.
globalData
.
currentSchoolStudentId
}
`
,
scene
:
`
${
certificateInfo
.
subject
.
class_id
}
_
${
certificateInfo
.
subject
.
id
}
_
_
${
app
.
globalData
.
currentSchoolStudentId
}
`
,
// scene: `i=${certificateInfo.subject.class_id}&t=${certificateInfo.subject.id}&w=${app.globalData.currentSchoolStudentId}`,
page
:
`src/pages/calendarthemeindex/index`
}).
then
((
res
)
=>
{
...
...
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