feat:2.5.6 广告组件优化

This commit is contained in:
R524809
2025-12-19 16:24:10 +08:00
parent 78d98164e5
commit 1b4f226f26
43 changed files with 526 additions and 34 deletions
@@ -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;
}