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
dab9582d
Commit
dab9582d
authored
May 14, 2019
by
sujie@126.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ddd
parent
b02d0f01
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
25 deletions
+24
-25
index.js
src/pages/mycalendart/index.js
+24
-25
No files found.
src/pages/mycalendart/index.js
View file @
dab9582d
...
...
@@ -251,20 +251,28 @@ Page({
// this.selfClockGet('up');
},
onShareAppMessage
:
function
(
option
)
{
// return custom share data when user share.
const
{
from
,
target
}
=
option
;
const
{
from
,
target
}
=
option
;
let
initShareObj
=
{
title
:
`打卡日历`
,
path
:
`/src/pages/mycalendart/index?tid=
${
this
.
data
.
tid
}
&id=
${
this
.
data
.
id
}
&clockdate=
${
this
.
data
.
clockdate
}
`
}
let
shareObj
=
{
}
let
shareObj
=
{}
if
(
from
==
'menu'
)
{
shareObj
=
initShareObj
;
}
else
if
(
from
==
'button'
)
{
if
(
!
target
.
dataset
.
info
)
{
shareObj
=
initShareObj
;
}
else
{
const
{
target
:
{
dataset
:
{
info
}}}
=
option
;
const
{
target
:
{
dataset
:
{
info
}
}
}
=
option
;
shareObj
=
{
title
:
`
${
info
.
school_student
.
nickname
}
的打卡详情`
,
path
:
`/src/pages/clockdetail/index?tid=
${
info
.
subject_id
}
&cid=
${
info
.
id
}
`
...
...
@@ -276,7 +284,7 @@ Page({
path
:
shareObj
.
path
,
success
:
(
res
)
=>
{
// 转发成功之后的回调
if
(
res
.
errMsg
==
'shareAppMessage:ok'
)
{
if
(
res
.
errMsg
==
'shareAppMessage:ok'
)
{
this
.
setData
({
shareObj
:
initShareObj
})
...
...
@@ -745,27 +753,19 @@ Page({
const
month
=
Number
(
_activeDay
.
month
)
<
10
?
'0'
+
_activeDay
.
month
:
_activeDay
.
month
const
day
=
Number
(
_activeDay
.
day
)
<
10
?
'0'
+
_activeDay
.
day
:
_activeDay
.
day
const
clockdate
=
_activeDay
.
year
+
'-'
+
month
+
'-'
+
day
;
if
(
this
.
data
.
isClock
)
{
// 已经打过卡了,生成日签
// this.generatePoster();
// wx.showModal({
// title: '提示',
// content: '您已经打过卡了'
// })
if
(
this
.
data
.
themeSelect
.
my_clock_circle_user
)
{
//
wx
.
navigateTo
({
url
:
`/src/pages/clockeditor/index?id=
${
this
.
data
.
id
}
&tid=
${
this
.
data
.
themeSelect
.
id
}
&cid=0&pagefrom=calendarthemeindex&clockdate=
${
clockdate
}
`
})
}
else
{
if
(
this
.
data
.
themeSelect
.
my_clock_circle_user
)
{
//
if
(
this
.
data
.
circleInfo
.
had_password
)
{
this
.
setData
({
showPsdDia
:
true
})
}
else
{
wx
.
navigateTo
({
url
:
`/src/pages/clockeditor/index?id=
${
this
.
data
.
id
}
&tid=
${
this
.
data
.
themeSelect
.
id
}
&cid=0&pagefrom=calendarthemeindex&clockdate=
${
clockdate
}
`
})
}
else
{
if
(
this
.
data
.
circleInfo
.
had_password
)
{
this
.
setData
({
showPsdDia
:
true
})
}
else
{
wx
.
navigateTo
({
url
:
`/src/pages/clockeditor/index?id=
${
this
.
data
.
id
}
&tid=
${
this
.
data
.
themeSelect
.
id
}
&cid=0&pagefrom=calendarthemeindex&clockdate=
${
clockdate
}
`
})
}
}
}
},
...
...
@@ -794,8 +794,7 @@ Page({
}
}
},
shareFriend
()
{
},
shareFriend
()
{},
// generatePoster () {
// getApp().mtj.trackEvent('gene_theme_poster', {});
// },
...
...
@@ -1707,7 +1706,7 @@ Page({
}
}
}
console
.
log
(
result
,
'result'
)
console
.
log
(
result
,
'result'
)
setTodoLabels
({
days
:
result
})
...
...
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