@dcloudio/uni-cli-shared 2.0.2-alpha-5000020260106001 → 2.0.2-alpha-5000020260131001
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/components/uniad.vue +52 -47
- package/package.json +2 -2
package/components/uniad.vue
CHANGED
|
@@ -1,47 +1,52 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<view :class="[customFullscreen?'uni-ad-custom':'',customFullscreen]" :style="style" @click="onclick">
|
|
3
|
-
<uniad-plugin
|
|
4
|
-
class="uniad-plugin"
|
|
5
|
-
:adpid="adpid"
|
|
6
|
-
:isUni="true"
|
|
7
|
-
:adIntervals="adIntervals"
|
|
8
|
-
@load="_onmpload"
|
|
9
|
-
@close="_onmpclose"
|
|
10
|
-
@error="_onmperror"
|
|
11
|
-
@nextChannel="_onnextchannel"
|
|
12
|
-
@customFullscreen="_customFullscreen"
|
|
13
|
-
/>
|
|
14
|
-
<!-- #ifdef MP-WEIXIN -->
|
|
15
|
-
<ad-custom v-if="userwx" :adIntervals="adIntervals" :unit-id="userUnitId" class="uni-ad-custom" data-com-type="wx" :class="[customFullscreen]" @load="_onmpload" @error="_onmperror"></ad-custom>
|
|
16
|
-
<uniad-plugin-wx v-if="wxchannel" class="uniad-plugin-wx" :class="[customFullscreen]" data-com-type="wx" @load="_onmpload" @error="_onwxchannelerror"></uniad-plugin-wx>
|
|
17
|
-
<!-- #endif -->
|
|
18
|
-
</view>
|
|
19
|
-
</template>
|
|
20
|
-
|
|
21
|
-
<script>
|
|
22
|
-
// #ifdef MP-WEIXIN
|
|
23
|
-
import adMixin from "./ad.mixin.mp-weixin.js"
|
|
24
|
-
// #endif
|
|
25
|
-
// #ifdef MP-ALIPAY
|
|
26
|
-
import adMixin from "./ad.mixin.mp-alipay.js"
|
|
27
|
-
// #endif
|
|
28
|
-
export default {
|
|
29
|
-
name: 'Uniad',
|
|
30
|
-
mixins: [adMixin],
|
|
31
|
-
props: {
|
|
32
|
-
},
|
|
33
|
-
methods: {
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
</script>
|
|
37
|
-
|
|
38
|
-
<style>
|
|
39
|
-
.uni-ad-custom-fullscreen {
|
|
40
|
-
display: flex;
|
|
41
|
-
height: 100vh;
|
|
42
|
-
}
|
|
43
|
-
.
|
|
44
|
-
display: flex;
|
|
45
|
-
flex: 1;
|
|
46
|
-
|
|
47
|
-
|
|
1
|
+
<template>
|
|
2
|
+
<view :class="[customFullscreen?'uni-ad-custom':'',customFullscreen]" :style="style" @click="onclick">
|
|
3
|
+
<uniad-plugin
|
|
4
|
+
class="uniad-plugin"
|
|
5
|
+
:adpid="adpid"
|
|
6
|
+
:isUni="true"
|
|
7
|
+
:adIntervals="adIntervals"
|
|
8
|
+
@load="_onmpload"
|
|
9
|
+
@close="_onmpclose"
|
|
10
|
+
@error="_onmperror"
|
|
11
|
+
@nextChannel="_onnextchannel"
|
|
12
|
+
@customFullscreen="_customFullscreen"
|
|
13
|
+
/>
|
|
14
|
+
<!-- #ifdef MP-WEIXIN -->
|
|
15
|
+
<ad-custom v-if="userwx" :adIntervals="adIntervals" :unit-id="userUnitId" class="uni-ad-custom" data-com-type="wx" :class="[customFullscreen]" @load="_onmpload" @error="_onmperror"></ad-custom>
|
|
16
|
+
<!-- <uniad-plugin-wx v-if="wxchannel" class="uniad-plugin-wx" :class="[customFullscreen]" data-com-type="wx" @load="_onmpload" @error="_onwxchannelerror"></uniad-plugin-wx> -->
|
|
17
|
+
<!-- #endif -->
|
|
18
|
+
</view>
|
|
19
|
+
</template>
|
|
20
|
+
|
|
21
|
+
<script>
|
|
22
|
+
// #ifdef MP-WEIXIN
|
|
23
|
+
import adMixin from "./ad.mixin.mp-weixin.js"
|
|
24
|
+
// #endif
|
|
25
|
+
// #ifdef MP-ALIPAY
|
|
26
|
+
import adMixin from "./ad.mixin.mp-alipay.js"
|
|
27
|
+
// #endif
|
|
28
|
+
export default {
|
|
29
|
+
name: 'Uniad',
|
|
30
|
+
mixins: [adMixin],
|
|
31
|
+
props: {
|
|
32
|
+
},
|
|
33
|
+
methods: {
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
</script>
|
|
37
|
+
|
|
38
|
+
<style>
|
|
39
|
+
.uni-ad-custom-fullscreen {
|
|
40
|
+
display: flex;
|
|
41
|
+
height: 100vh;
|
|
42
|
+
}
|
|
43
|
+
.uni-ad-custom {
|
|
44
|
+
display: flex;
|
|
45
|
+
flex: 1;
|
|
46
|
+
width: 100%;
|
|
47
|
+
}
|
|
48
|
+
.uniad-plugin {
|
|
49
|
+
display: flex;
|
|
50
|
+
flex: 1;
|
|
51
|
+
}
|
|
52
|
+
</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-5000020260131001",
|
|
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": "2d07d38b808a16d6dfbd23f6d4beabc62601d954"
|
|
31
31
|
}
|