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
e2afa7fd
Commit
e2afa7fd
authored
May 14, 2019
by
wangxuelai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
''
parent
e97eac3b
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
33 additions
and
18 deletions
+33
-18
project.config.json
project.config.json
+4
-4
index.js
src/pages/beforeinvitation/index.js
+11
-7
index.js
src/pages/calendarthemeindex/index.js
+11
-3
index.js
src/pages/invitation/index.js
+7
-4
No files found.
project.config.json
View file @
e2afa7fd
...
...
@@ -41,7 +41,7 @@
"list"
:
[]
},
"miniprogram"
:
{
"current"
:
99
,
"current"
:
102
,
"list"
:
[
{
"id"
:
0
,
...
...
@@ -758,10 +758,10 @@
"scene"
:
null
},
{
"id"
:
-1
,
"id"
:
102
,
"name"
:
"主题页面"
,
"pathName"
:
"src/pages/
themeindex
/index"
,
"query"
:
"
id=364&tid=4240
"
,
"pathName"
:
"src/pages/
beforeinvitation
/index"
,
"query"
:
"
tid=60&consumerId=111&d=190513
"
,
"scene"
:
null
}
]
...
...
src/pages/beforeinvitation/index.js
View file @
e2afa7fd
...
...
@@ -24,7 +24,8 @@ Page({
bgsrc
:
''
,
loaded
:
false
,
themeDetail
:
{},
userInfo
:
{}
userInfo
:
{},
d
:
''
},
/**
...
...
@@ -33,19 +34,22 @@ Page({
onLoad
:
function
(
options
)
{
if
(
options
.
scene
)
{
let
sceneQuery
=
scenQueryGet
(
options
.
scene
);
const
{
i
,
ctd
}
=
sceneQuery
;
const
{
i
,
ctd
,
d
}
=
sceneQuery
;
this
.
setData
({
tid
:
i
,
consumerId
:
ctd
consumerId
:
ctd
,
d
:
d
||
''
})
}
else
{
const
{
tid
,
consumerId
consumerId
,
d
}
=
options
;
this
.
setData
({
tid
,
consumerId
consumerId
,
d
:
d
||
''
})
}
this
.
getThemeDetail
();
...
...
@@ -149,7 +153,7 @@ Page({
navigate
()
{
if
(
this
.
data
.
auditStatus
!=
3
)
{
// 游客的跳转
wx
.
reLaunch
({
url
:
`/src/pages/invitation/index?tid=
${
this
.
data
.
tid
}
&consumerId=
${
this
.
data
.
consumerId
}
`
url
:
`/src/pages/invitation/index?tid=
${
this
.
data
.
tid
}
&consumerId=
${
this
.
data
.
consumerId
}
&d=
${
this
.
data
.
d
}
`
})
}
else
{
// 正常用户的跳转 跳转到邀请卡片页面
this
.
goThemeIndex
();
...
...
@@ -162,7 +166,7 @@ Page({
})
}
else
if
(
this
.
data
.
themeDetail
.
subject_type
==
2
)
{
wx
.
reLaunch
({
url
:
`/src/pages/calendarthemeindex/index?id=
${
this
.
data
.
themeDetail
.
class_id
}
&tid=
${
this
.
data
.
tid
}
`
url
:
`/src/pages/calendarthemeindex/index?id=
${
this
.
data
.
themeDetail
.
class_id
}
&tid=
${
this
.
data
.
tid
}
&d=
${
this
.
data
.
d
}
`
})
}
}
...
...
src/pages/calendarthemeindex/index.js
View file @
e2afa7fd
...
...
@@ -279,9 +279,14 @@ Page({
let
shareObj
=
{
}
const
_activeDay
=
this
.
data
.
activeDay
;
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
;
console
.
log
(
`/src/pages/beforeinvitation/index?tid=
${
this
.
data
.
tid
}
&consumerId=
${
visitor
&&
visitor
.
id
||
0
}
&d=
${
clockdate
.
substr
(
2
)}
`
)
let
initShareObj
=
{
title
:
`我正在参加【
${
this
.
data
.
circleInfo
.
title
}
】的打卡`
,
path
:
`/src/pages/beforeinvitation/index?tid=
${
this
.
data
.
tid
}
&consumerId=
${
visitor
&&
visitor
.
id
||
0
}
`
path
:
`/src/pages/beforeinvitation/index?tid=
${
this
.
data
.
tid
}
&consumerId=
${
visitor
&&
visitor
.
id
||
0
}
&d=
${
clockdate
.
substr
(
2
)}
`
}
if
(
from
==
'menu'
)
{
shareObj
=
initShareObj
;
...
...
@@ -1757,6 +1762,7 @@ Page({
if
(
today
.
getTime
()
>
new
Date
(
_activeDay
.
date
).
getTime
())
{
_activeDay
.
isAfter
=
true
;
}
console
.
log
(
_activeDay
)
this
.
setData
({
weeksArr
:
_weeksArr
,
activeDay
:
_activeDay
,
...
...
@@ -2210,8 +2216,10 @@ Page({
})
let
qrcode
=
''
;
generateCustomerQrcode
({
scene
:
`i=
${
this
.
data
.
id
}
&t=
${
this
.
data
.
tid
}
&p=7`
,
page
:
`src/pages/themeindex/index`
// scene: `i=${this.data.id}&t=${this.data.tid}&p=7`,
// page: `src/pages/themeindex/index`
scene
:
`ctd=
${
visitor
&&
visitor
.
id
}
&t=
${
this
.
data
.
tid
}
`
,
page
:
`src/pages/beforeinvitation/index`
}).
then
((
res
)
=>
{
const
{
code
,
...
...
src/pages/invitation/index.js
View file @
e2afa7fd
...
...
@@ -25,7 +25,8 @@ Page({
bgsrc
:
''
,
loaded
:
false
,
themeDetail
:
{},
userInfo
:
{}
userInfo
:
{},
d
:
''
},
/**
...
...
@@ -34,11 +35,13 @@ Page({
onLoad
:
function
(
options
)
{
const
{
tid
,
consumerId
consumerId
,
d
}
=
options
;
this
.
setData
({
tid
,
consumerId
consumerId
,
d
:
d
||
''
})
this
.
getThemeDetail
();
this
.
subjectClassStudent
();
...
...
@@ -149,7 +152,7 @@ Page({
})
}
else
if
(
this
.
data
.
themeDetail
.
subject_type
==
2
)
{
wx
.
reLaunch
({
url
:
`/src/pages/calendarthemeindex/index?id=
${
this
.
data
.
themeDetail
.
class_id
}
&tid=
${
this
.
data
.
tid
}
`
url
:
`/src/pages/calendarthemeindex/index?id=
${
this
.
data
.
themeDetail
.
class_id
}
&tid=
${
this
.
data
.
tid
}
&d=
${
this
.
data
.
d
}
`
})
}
}
...
...
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