@dcloudio/uni-cli-shared 2.0.2-alpha-4040220241217001 → 2.0.2-alpha-4040520250107001
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.
|
@@ -54,7 +54,8 @@ export default {
|
|
|
54
54
|
return {
|
|
55
55
|
loading: false,
|
|
56
56
|
userwx: false,
|
|
57
|
-
userUnitId: '',
|
|
57
|
+
userUnitId: '',
|
|
58
|
+
customFullscreen: '',
|
|
58
59
|
wxchannel: false,
|
|
59
60
|
errorMessage: null
|
|
60
61
|
}
|
|
@@ -167,7 +168,10 @@ export default {
|
|
|
167
168
|
case 4:
|
|
168
169
|
this.wxAdType = AdType.Banner
|
|
169
170
|
this.userwx = true
|
|
170
|
-
this.userUnitId = adData.posid
|
|
171
|
+
this.userUnitId = adData.posid
|
|
172
|
+
if (adData.tmpl_type === 24) {
|
|
173
|
+
this.customFullscreen = 'uni-ad-custom-fullscreen'
|
|
174
|
+
}
|
|
171
175
|
break
|
|
172
176
|
case 9:
|
|
173
177
|
this.wxAdType = AdType.RewardedVideo
|
package/components/uniad.vue
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
@nextChannel="_onnextchannel"
|
|
10
10
|
/>
|
|
11
11
|
<!-- #ifdef MP-WEIXIN -->
|
|
12
|
-
<ad-custom v-if="userwx" :unit-id="userUnitId"></ad-custom>
|
|
12
|
+
<ad-custom v-if="userwx" :unit-id="userUnitId" class="uni-ad-custom" :class="[customFullscreen]"></ad-custom>
|
|
13
13
|
<uniad-plugin-wx v-if="wxchannel" class="uniad-plugin-wx" @error="_onwxchannelerror"></uniad-plugin-wx>
|
|
14
14
|
<!-- #endif -->
|
|
15
15
|
</view>
|
|
@@ -31,3 +31,9 @@ export default {
|
|
|
31
31
|
}
|
|
32
32
|
}
|
|
33
33
|
</script>
|
|
34
|
+
|
|
35
|
+
<style>
|
|
36
|
+
.uni-ad-custom-fullscreen {
|
|
37
|
+
height: 100vh;
|
|
38
|
+
}
|
|
39
|
+
</style>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dcloudio/uni-cli-shared",
|
|
3
|
-
"version": "2.0.2-alpha-
|
|
3
|
+
"version": "2.0.2-alpha-4040520250107001",
|
|
4
4
|
"description": "uni-cli-shared",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"repository": {
|
|
@@ -27,5 +27,5 @@
|
|
|
27
27
|
"postcss-urlrewrite": "^0.2.2",
|
|
28
28
|
"strip-json-comments": "^2.0.1"
|
|
29
29
|
},
|
|
30
|
-
"gitHead": "
|
|
30
|
+
"gitHead": "f0c0953c0192bef832b6541cddfcc42af4e1c569"
|
|
31
31
|
}
|