1
0
mirror of https://github.com/ialley-workshop-open/uni-halo.git synced 2026-09-12 16:40:40 +08:00

refactor: 架构升级

This commit is contained in:
小莫唐尼
2026-08-31 07:58:23 +08:00
commit ba5b77568b
693 changed files with 118430 additions and 0 deletions
@@ -0,0 +1,17 @@
# Banner 广告
## 官方文档
参考官方文档:https://uniapp.dcloud.net.cn/uni-ad/
## 示例
```vue
<template>
<ad unit-id="YOUR_AD_UNIT_ID" ad-type="banner"></ad>
</template>
```
## 参考资源
- https://uniapp.dcloud.net.cn/uni-ad/
@@ -0,0 +1,18 @@
# 插屏广告
## 官方文档
参考官方文档:https://uniapp.dcloud.net.cn/uni-ad/
## 示例
```javascript
const interstitial = uni.createInterstitialAd({
adUnitId: 'YOUR_AD_UNIT_ID'
})
interstitial.show()
```
## 参考资源
- https://uniapp.dcloud.net.cn/uni-ad/
@@ -0,0 +1,14 @@
# 原生广告
## 官方文档
参考官方文档:https://uniapp.dcloud.net.cn/uni-ad/
## 说明
- 原生广告需结合广告位与样式进行自定义渲染
- 注意广告标识与合规要求
## 参考资源
- https://uniapp.dcloud.net.cn/uni-ad/
@@ -0,0 +1,18 @@
# 激励视频广告
## 官方文档
参考官方文档:https://uniapp.dcloud.net.cn/uni-ad/
## 示例
```javascript
const rewarded = uni.createRewardedVideoAd({
adUnitId: 'YOUR_AD_UNIT_ID'
})
rewarded.show()
```
## 参考资源
- https://uniapp.dcloud.net.cn/uni-ad/
@@ -0,0 +1,20 @@
# uni-ad 接入概览
## 官方文档
参考官方文档:https://uniapp.dcloud.net.cn/uni-ad/
## 适用场景
- 在 uni-app 中进行广告变现
- 需要集成 banner、插屏、激励视频等广告类型
## 基本流程
1. 开通 uni-ad
2. 获取广告位 ID
3. 在页面中引入广告组件或 API
## 参考资源
- https://uniapp.dcloud.net.cn/uni-ad/
@@ -0,0 +1,14 @@
# 广告位配置
## 官方文档
参考官方文档:https://uniapp.dcloud.net.cn/uni-ad/
## 配置要点
- 在平台配置广告位 ID
- 根据平台选择合适广告类型
## 参考资源
- https://uniapp.dcloud.net.cn/uni-ad/
@@ -0,0 +1,23 @@
# 广告事件处理
## 官方文档
参考官方文档:https://uniapp.dcloud.net.cn/uni-ad/
## 示例
```javascript
rewarded.onLoad(() => {
console.log('广告加载成功')
})
rewarded.onError(err => {
console.error('广告加载失败', err)
})
rewarded.onClose(res => {
console.log('广告关闭', res)
})
```
## 参考资源
- https://uniapp.dcloud.net.cn/uni-ad/