fix: share token

This commit is contained in:
zzc
2026-02-09 23:42:06 +08:00
parent 85bbf9d8ac
commit 88138c3300
5 changed files with 63 additions and 21 deletions

View File

@@ -109,7 +109,11 @@
style="width: 300px; height: 500px; position: fixed; left: 9999px"
></canvas> -->
<LoginPopup ref="loginPopupRef" @logind="handleLogind" />
<LoginPopup
ref="loginPopupRef"
@logind="handleLogind"
:share-token="shareToken"
/>
</view>
</template>
@@ -143,6 +147,7 @@ const remainingCount = ref(0);
const allowShareCount = ref(0);
const useShareCount = ref(0);
const canUse = ref(true);
const shareToken = ref("");
// 音效控制
const audioContext = uni.createInnerAudioContext();
@@ -158,6 +163,7 @@ audioContext.onEnded(() => {
onLoad((options) => {
if (options.shareToken) {
shareToken.value = options.shareToken;
saveViewRequest(options.shareToken, "fortune_draw");
}
});
@@ -192,6 +198,9 @@ onShareTimeline(async () => {
});
const handleLogind = async () => {
if (shareToken.value) {
console.log(11111111, shareToken.value);
}
checkDrawStatus();
};