Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
dev
/
home-with-kids-mp
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
e76cb64c
authored
2020-01-15 23:20:45 +0800
by
simon
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
默认提交
1 parent
102f417e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
14 deletions
src/pages/blessing/blessing.js
src/pages/blessing/blessing.js
View file @
e76cb64
...
...
@@ -109,24 +109,23 @@ Page({
let
{
detailData
}
=
this
.
data
;
checkAuthUtils
().
then
((
result
)
=>
{
console
.
log
(
"checkAuth result:"
,
result
);
console
.
log
(
"checkAuth detailData.isAuth:"
,
detailData
.
isAuth
);
let
isAuth
=
result
&&
detailData
.
isAuth
==
1
;
this
.
setData
({
isAuth
});
console
.
log
(
"checkAuth isAuth:"
,
isAuth
);
resolve
(
isAuth
);
});
let
isAuth
=
detailData
.
isAuth
==
1
;
resolve
(
isAuth
);
// checkAuthUtils().then((result) => {
// console.log("checkAuth result:", result);
// console.log("checkAuth detailData.isAuth:", detailData.isAuth);
// let isAuth = result && detailData.isAuth == 1;
// this.setData({
// isAuth
// });
// console.log("checkAuth isAuth:", isAuth);
// resolve(isAuth);
// });
});
},
checkAuthShowComp
()
{
return
new
Promise
((
resolve
,
reject
)
=>
{
this
.
checkAuth
().
then
((
result
)
=>
{
// this.setData({
// isAuth: result
// })
if
(
result
)
{
resolve
(
true
);
}
else
{
...
...
@@ -543,7 +542,7 @@ Page({
})
});
if
(
detailData
.
count
>
0
)
{
if
(
memberDrawList
.
length
>
0
)
{
texts
.
push
({
x
:
686
,
y
:
startY
+
200
,
...
...
@@ -553,6 +552,16 @@ Page({
zIndex
:
11
,
text
:
`长按查看祝福`
,
})
}
else
{
texts
.
push
({
x
:
686
,
y
:
startY
+
200
,
fontSize
:
48
,
color
:
"#fee085"
,
textAlign
:
"right"
,
zIndex
:
11
,
text
:
`长按查看全部
${
detailData
.
count
}
人`
,
})
}
}
...
...
@@ -814,6 +823,7 @@ Page({
ownerMember
:
result
.
ownerMember
,
memberList
:
memberList
,
blessContent
:
blessContent
,
isAuth
:
result
.
isAuth
==
1
});
console
.
log
(
"detailData:"
,
result
);
console
.
log
(
"blessContent:"
,
this
.
data
.
blessContent
);
...
...
@@ -983,6 +993,7 @@ Page({
case
"_evt_auth_complete"
:
// this.initData();
this
.
hideMask
();
this
.
queryBlessDetail
();
break
;
default
:
...
...
Please
register
or
sign in
to post a comment