update
This commit is contained in:
@@ -156,6 +156,19 @@ if (isLogin()) {
|
|||||||
userStatus(handleLoginSuccess)
|
userStatus(handleLoginSuccess)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
let mergeId = '';
|
||||||
|
const urlParams = new URLSearchParams(window.location.search);
|
||||||
|
mergeId = urlParams.get('merge_id');
|
||||||
|
|
||||||
|
watch(() => mergeId, async (newVal) => {
|
||||||
|
if (!newVal) {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
if (newVal) {
|
||||||
|
isPhotoSquareVisible.value = true;
|
||||||
|
}
|
||||||
|
}, {immediate: true})
|
||||||
|
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|||||||
@@ -66,12 +66,14 @@ const userinfos = Storage.get("userinfos")
|
|||||||
|
|
||||||
// TODO 需要测试邀请进来的情况
|
// TODO 需要测试邀请进来的情况
|
||||||
let mergeId = '';
|
let mergeId = '';
|
||||||
|
let inviteCode = '';
|
||||||
const rankingInvite = ref(0);
|
const rankingInvite = ref(0);
|
||||||
const nameInvite = ref('');
|
const nameInvite = ref('');
|
||||||
const linkCountInvite = ref(0);
|
const linkCountInvite = ref(0);
|
||||||
|
|
||||||
const urlParams = new URLSearchParams(window.location.search);
|
const urlParams = new URLSearchParams(window.location.search);
|
||||||
mergeId = urlParams.get('merge_id');
|
mergeId = urlParams.get('merge_id');
|
||||||
|
inviteCode = urlParams.get('fromid');
|
||||||
|
|
||||||
|
|
||||||
const getInviteInfo = ()=> {
|
const getInviteInfo = ()=> {
|
||||||
@@ -99,15 +101,20 @@ watch(() => mergeId, async (newVal) => {
|
|||||||
if (!newVal) {
|
if (!newVal) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
if (newVal.value) {
|
if (newVal) {
|
||||||
|
if (inviteCode === userinfos.invite_code) {
|
||||||
|
weui.alert("不可以给自己点赞哦!");
|
||||||
|
return false;
|
||||||
|
}
|
||||||
getInviteInfo();
|
getInviteInfo();
|
||||||
}
|
}
|
||||||
}, {immediate: true})
|
}, {immediate: true})
|
||||||
|
|
||||||
const displayInviteHelpBtn = ref(true);
|
const displayInviteHelpBtn = ref(true);
|
||||||
|
|
||||||
const inviteHelp = ()=> {
|
const inviteHelp = ()=> {
|
||||||
const formData = {
|
const formData = {
|
||||||
invite_code: userinfos.invite_code,
|
invite_code: inviteCode,
|
||||||
merge_id: mergeId
|
merge_id: mergeId
|
||||||
}
|
}
|
||||||
fetch('https://huodong2.lzlj.com/api/faceFamily/face/like', {
|
fetch('https://huodong2.lzlj.com/api/faceFamily/face/like', {
|
||||||
|
|||||||
Reference in New Issue
Block a user