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