feat:2.5.6 广告组件优化
This commit is contained in:
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {}
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
Component({
|
||||
properties: {
|
||||
/** 广告类型:focusDraw 或 mathDraw */
|
||||
type: {
|
||||
type: String,
|
||||
value: 'focusDraw',
|
||||
},
|
||||
},
|
||||
});
|
||||
@@ -0,0 +1,6 @@
|
||||
<view class="draw-ad-container" wx:if="{{type === 'focusDraw'}}">
|
||||
<ad-custom unit-id="adunit-89cff2de998f1146"></ad-custom>
|
||||
</view>
|
||||
<view class="draw-ad-container" wx:if="{{type === 'mathDraw'}}">
|
||||
<ad-custom unit-id="adunit-c9055fd69f1b8d13"></ad-custom>
|
||||
</view>
|
||||
@@ -0,0 +1,3 @@
|
||||
.draw-ad-container {
|
||||
margin-top: 20rpx;
|
||||
}
|
||||
Reference in New Issue
Block a user