e76cb64c by simon

默认提交

1 parent 102f417e
......@@ -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:
......