fix: share token
This commit is contained in:
@@ -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();
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user