@hlw-uni/mp-vue 2.3.2 → 2.3.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<view class="hlw-reward-ad"
|
|
3
|
-
<slot />
|
|
4
|
-
</view>
|
|
2
|
+
<view class="hlw-reward-ad" />
|
|
5
3
|
</template>
|
|
6
4
|
|
|
7
5
|
<script setup lang="ts">
|
|
@@ -92,21 +90,6 @@ async function playRewardAdFlow(): Promise<void> {
|
|
|
92
90
|
}
|
|
93
91
|
}
|
|
94
92
|
|
|
95
|
-
async function handleClick() {
|
|
96
|
-
if (isClicked.value) return;
|
|
97
|
-
if (!props.unitId) {
|
|
98
|
-
console.warn("[HlwRewardAd] unitId is required but empty.");
|
|
99
|
-
return;
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
isClicked.value = true;
|
|
103
|
-
try {
|
|
104
|
-
await playRewardAdFlow();
|
|
105
|
-
} finally {
|
|
106
|
-
isClicked.value = false;
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
|
|
110
93
|
/**
|
|
111
94
|
* Expose a method for parent components to open the reward ad programmatically via ref.
|
|
112
95
|
* Usage: const adRef = ref(null);
|
|
@@ -136,7 +119,6 @@ onUnmounted(() => {
|
|
|
136
119
|
|
|
137
120
|
<style scoped>
|
|
138
121
|
.hlw-reward-ad {
|
|
139
|
-
display:
|
|
140
|
-
width: 100%;
|
|
122
|
+
display: none;
|
|
141
123
|
}
|
|
142
124
|
</style>
|