From 71bc6ae66f487ab18c43c60aa6f4386e467fbfc5 Mon Sep 17 00:00:00 2001 From: DCloud_LXH <283700113@qq.com> Date: Thu, 5 Jan 2023 16:25:44 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=96=87=E6=A1=A3=E5=9B=BE=E7=89=87?= =?UTF-8?q?=E8=BF=81=E7=A7=BB=E8=87=B3=20CDN?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/.vuepress/components/md/banner.vue | 12 +-- docs/.vuepress/config.js | 6 +- docs/.vuepress/config/footer.js | 2 +- docs/.vuepress/config/siderbar/index.js | 2 +- docs/.vuepress/config/siderbar/uni-app.js | 8 +- docs/.vuepress/config/siderbar/uniCloud.js | 8 +- docs/README.md | 42 +++++----- docs/api/a-d/content-page.md | 2 +- docs/api/a-d/interactive.md | 4 +- docs/api/a-d/rewarded-video.md | 4 +- docs/api/canvas/CanvasContext.md | 78 +++++++++---------- docs/api/canvas/CanvasGradient.md | 2 +- docs/api/media/background-audio-manager.md | 2 +- docs/api/media/video-context.md | 2 +- docs/api/other/open-miniprogram.md | 2 +- docs/api/plugins/payment.md | 2 +- docs/api/plugins/share.md | 16 ++-- docs/api/plugins/universal-links.md | 10 +-- docs/api/ui/media-query-observer.md | 2 +- docs/app/oauth/oauth-facebook.md | 22 +++--- docs/app/oauth/oauth-google.md | 12 +-- docs/case.md | 34 ++++---- docs/collocation/pages.md | 2 +- docs/component/ad-content-page.md | 2 +- docs/component/ad-draw.md | 4 +- docs/component/ad-interstitial.md | 2 +- docs/component/ad-rewarded-video.md | 6 +- docs/component/ad-weixin.md | 2 +- docs/component/ad.md | 4 +- docs/component/audio.md | 4 +- docs/component/custom-tab-bar.md | 4 +- docs/component/icon.md | 4 +- docs/component/image.md | 28 +++---- docs/component/list.md | 2 +- docs/component/rich-text.md | 2 +- docs/component/uniui/resource.md | 2 +- docs/component/uniui/uni-card.md | 8 +- docs/component/uniui/uni-collapse.md | 8 +- docs/component/uniui/uni-file-picker.md | 6 +- docs/component/uniui/uni-icons.md | 12 +-- docs/component/uniui/uni-list.md | 26 +++---- docs/component/uniui/uni-swiper-dot.md | 6 +- docs/component/waterfall.md | 4 +- docs/history.md | 2 +- docs/hybrid.md | 2 +- docs/m3w.md | 6 +- docs/matter.md | 24 +++--- docs/plugin/native-plugin.md | 6 +- docs/plugin/sell.md | 12 +-- docs/plugin/uni_modules.md | 36 +++++---- docs/plugin/uts-component.md | 2 +- docs/plugin/uts-for-android.md | 8 +- docs/quickstart-hx.md | 40 +++++----- docs/quickstart.md | 50 ++++++------ docs/tutorial/adapt.md | 4 +- docs/tutorial/app-oauth-facebook-open.md | 22 +++--- docs/tutorial/app-oauth-google-open.md | 12 +-- docs/tutorial/build/publish-mp-weixin-cli.md | 2 +- docs/tutorial/debug/debug-app.md | 14 ++-- docs/tutorial/debug/debug-mp.md | 4 +- docs/tutorial/debug/debug-web-via-hx.md | 4 +- docs/tutorial/debug/uni-vue-devtools.md | 4 +- docs/tutorial/i18n.md | 6 +- docs/tutorial/internationalization.md | 8 +- docs/tutorial/nvue-api.md | 8 +- docs/tutorial/nvue-css.md | 18 ++--- docs/tutorial/nvue-outline.md | 4 +- docs/tutorial/page-component.md | 48 +++++++++--- docs/tutorial/page.md | 2 +- docs/tutorial/platform.md | 20 ++--- docs/tutorial/run-and-debug.md | 4 +- docs/tutorial/run/apple-signature-ipa.md | 2 +- .../run/ios-apple-certificate-signature.md | 12 +-- docs/tutorial/run/run-app.md | 14 ++-- docs/tutorial/run/uts-development-android.md | 14 ++-- docs/tutorial/run/uts-development-ios.md | 4 +- docs/tutorial/ssr.md | 6 +- docs/tutorial/syntax-uts.md | 8 +- docs/tutorial/typescript-subject.md | 6 +- docs/tutorial/vue-basics.md | 2 +- docs/tutorial/vue-vuex.md | 4 +- docs/tutorial/vue3-basics.md | 2 +- docs/tutorial/vue3-components.md | 4 +- docs/tutorial/vue3-vuex.md | 4 +- docs/uni-ad.md | 2 +- docs/uni-stat-v1.md | 2 +- docs/uni-stat-v2.md | 26 +++---- docs/uniCloud/README.md | 8 +- docs/uniCloud/admin.md | 42 +++++----- docs/uniCloud/aliyun-migrate-business.md | 6 +- docs/uniCloud/authentication.md | 2 +- docs/uniCloud/cf-common.md | 2 +- docs/uniCloud/cf-functions.md | 2 +- docs/uniCloud/clientdb.md | 8 +- docs/uniCloud/cloud-obj.md | 4 +- docs/uniCloud/concepts/cloudfunction.md | 2 +- docs/uniCloud/concepts/space.md | 6 +- docs/uniCloud/db-index.md | 10 +-- docs/uniCloud/db-performance.md | 2 +- docs/uniCloud/hellodb.md | 8 +- docs/uniCloud/hosting.md | 2 +- docs/uniCloud/http.md | 4 +- docs/uniCloud/ip-filter.md | 4 +- docs/uniCloud/jql-runner.md | 2 +- docs/uniCloud/jql.md | 4 +- docs/uniCloud/learning.md | 2 +- docs/uniCloud/publish.md | 2 +- docs/uniCloud/quickstart.md | 4 +- docs/uniCloud/redis-buy.md | 4 +- docs/uniCloud/resource.md | 22 +++--- docs/uniCloud/rundebug.md | 30 +++---- docs/uniCloud/schema.md | 6 +- docs/uniCloud/schema2code.md | 18 ++--- docs/uniCloud/secure-network.md | 14 ++-- docs/uniCloud/send-sms.md | 2 +- docs/uniCloud/uni-cloud-push/api.md | 4 +- docs/uniCloud/uni-cloud-push/mate.md | 2 +- docs/uniCloud/uni-cloud-push/options.md | 6 +- docs/uniCloud/uni-id-pages.md | 2 +- docs/uniCloud/uni-id-summary.md | 2 +- docs/uniCloud/uni-id.md | 8 +- docs/uniCloud/uni-im.md | 2 +- docs/uniCloud/uni-open-bridge.md | 2 +- docs/uniCloud/uni-pay.md | 48 ++++++------ docs/uniCloud/uni-portal.md | 6 +- docs/uniCloud/uni-publish.md | 10 +-- docs/uniCloud/uni-starter.md | 10 +-- docs/uniCloud/upgrade-center.md | 14 ++-- docs/unipush-v2.md | 24 +++--- docs/univerify.md | 2 +- .../auto/hbuilderx-extension/index.md | 16 ++-- 131 files changed, 654 insertions(+), 622 deletions(-) diff --git a/docs/.vuepress/components/md/banner.vue b/docs/.vuepress/components/md/banner.vue index fbea2e5cb..c7989b48a 100644 --- a/docs/.vuepress/components/md/banner.vue +++ b/docs/.vuepress/components/md/banner.vue @@ -20,11 +20,11 @@ data() { return { images: [ - 'https://bjetxgzv.cdn.bspapp.com/VKCEYUGU-uni-app-doc/41136990-4f3e-11eb-8ff1-d5dcf8779628.png', - 'https://bjetxgzv.cdn.bspapp.com/VKCEYUGU-uni-app-doc/3ecf6d00-4f3e-11eb-8ff1-d5dcf8779628.png', - 'https://bjetxgzv.cdn.bspapp.com/VKCEYUGU-uni-app-doc/3df62400-4f3e-11eb-8ff1-d5dcf8779628.png', - 'https://bjetxgzv.cdn.bspapp.com/VKCEYUGU-uni-app-doc/3f872440-4f3e-11eb-8a36-ebb87efcf8c0.png', - 'https://bjetxgzv.cdn.bspapp.com/VKCEYUGU-uni-app-doc/40596860-4f3e-11eb-bdc1-8bd33eb6adaa.png', + 'https://web-assets.dcloud.net.cn/unidoc/zh/case6.png', + 'https://web-assets.dcloud.net.cn/unidoc/zh/case2.png', + 'https://web-assets.dcloud.net.cn/unidoc/zh/case1.png', + 'https://web-assets.dcloud.net.cn/unidoc/zh/case3.png', + 'https://web-assets.dcloud.net.cn/unidoc/zh/case4.png', ], }; }, @@ -194,7 +194,7 @@ -webkit-transform: translateY(-50%); z-index: 20; display: none; - background-image: url(https://vkceyugu.cdn.bspapp.com/VKCEYUGU-f184e7c3-1912-41b2-b81f-435d1b37c7b4/d2c41062-9e93-478f-9c06-06778b0f2c84.png); + background-image: url(https://web-assets.dcloud.net.cn/unidoc/zh/arrow.png); } .banner .slider-btn.slider-btn-left { diff --git a/docs/.vuepress/config.js b/docs/.vuepress/config.js index 0fc4844fa..a2704de5d 100644 --- a/docs/.vuepress/config.js +++ b/docs/.vuepress/config.js @@ -13,7 +13,7 @@ const config = { ['link', { rel: 'shortcut icon', type: 'image/x-icon', - href: 'https://vkceyugu.cdn.bspapp.com/VKCEYUGU-a90b5f95-90ba-4d30-a6a7-cd4d057327db/d23e842c-58fc-4574-998d-17fdc7811cc3.png?v=1556263038788' + href: 'https://web-assets.dcloud.net.cn/unidoc/zh/icon.png?v=1556263038788' }], ['script', { src: `/js/redirect.js?${Date.now()}&v=${Date.now()}&version=${Date.now()}` }], ['script', { src: 'https://hm.baidu.com/hm.js?fe3b7a223fc08c795f0f4b6350703e6f' }] @@ -24,8 +24,8 @@ const config = { } }, themeConfig: { - titleLogo: 'https://vkceyugu.cdn.bspapp.com/VKCEYUGU-f184e7c3-1912-41b2-b81f-435d1b37c7b4/1ae87107-2943-4ba6-be2b-390ca27c6260.png', - logo: 'https://vkceyugu.cdn.bspapp.com/VKCEYUGU-f184e7c3-1912-41b2-b81f-435d1b37c7b4/5a7f902b-21a7-4822-884f-925219eacc4b.png', + titleLogo: 'https://web-assets.dcloud.net.cn/unidoc/zh/uni-app.png', + logo: 'https://web-assets.dcloud.net.cn/unidoc/zh/logo.png', // TODO use plugin/theme sidebar: createSidebar(tabs), sidebarDepth: 0, diff --git a/docs/.vuepress/config/footer.js b/docs/.vuepress/config/footer.js index d7e21c397..b01ef079e 100644 --- a/docs/.vuepress/config/footer.js +++ b/docs/.vuepress/config/footer.js @@ -194,6 +194,6 @@ export default { ], }, ], - domainImg: 'https://vkceyugu.cdn.bspapp.com/VKCEYUGU-f184e7c3-1912-41b2-b81f-435d1b37c7b4/769929a3-65eb-4d11-815d-84f88197a152.png', + domainImg: 'https://web-assets.dcloud.net.cn/unidoc/zh/jgwab.png', beian: 'http://www.beian.gov.cn/portal/registerSystemInfo?recordcode=11010802035340' } \ No newline at end of file diff --git a/docs/.vuepress/config/siderbar/index.js b/docs/.vuepress/config/siderbar/index.js index 66d0c1b42..a2ae53912 100644 --- a/docs/.vuepress/config/siderbar/index.js +++ b/docs/.vuepress/config/siderbar/index.js @@ -4,5 +4,5 @@ import uniCloud from './uniCloud'; export default { "/": uniapp, '/uniCloud/': uniCloud, - weChatOfficialAccountImg: 'https://bjetxgzv.cdn.bspapp.com/VKCEYUGU-uni-app-doc/78a8e7b0-4f2d-11eb-8ff1-d5dcf8779628.jpg' + weChatOfficialAccountImg: 'https://web-assets.dcloud.net.cn/unidoc/zh/weixin.jpg' } diff --git a/docs/.vuepress/config/siderbar/uni-app.js b/docs/.vuepress/config/siderbar/uni-app.js index 522cb5ebc..31b38e2aa 100644 --- a/docs/.vuepress/config/siderbar/uni-app.js +++ b/docs/.vuepress/config/siderbar/uni-app.js @@ -2,22 +2,22 @@ export default { contactItems: [{ name: 'uniCloud Web控制台', url: 'https://unicloud.dcloud.net.cn', - imageUrl: 'https://bjetxgzv.cdn.bspapp.com/VKCEYUGU-uni-app-doc/7962e8e0-4f2d-11eb-a16f-5b3e54966275.jpg' + imageUrl: 'https://web-assets.dcloud.net.cn/unidoc/zh/cloud@2x.jpg' }, { name: '论坛', url: 'https://ask.dcloud.net.cn/explore/', - imageUrl: 'https://bjetxgzv.cdn.bspapp.com/VKCEYUGU-uni-app-doc/73fc4f90-4f2d-11eb-a16f-5b3e54966275.png' + imageUrl: 'https://web-assets.dcloud.net.cn/unidoc/zh/d@2x.png' }, { name: 'uniAD', url: 'https://uniad.dcloud.net.cn', - imageUrl: 'https://bjetxgzv.cdn.bspapp.com/VKCEYUGU-uni-app-doc/765d9820-4f2d-11eb-bd01-97bc1429a9ff.png' + imageUrl: 'https://web-assets.dcloud.net.cn/unidoc/zh/uniad-520.png' }, { name: 'uni统计', url: 'https://tongji.dcloud.net.cn/', - imageUrl: 'https://bjetxgzv.cdn.bspapp.com/VKCEYUGU-uni-app-doc/77159d80-4f2d-11eb-a16f-5b3e54966275.png' + imageUrl: 'https://web-assets.dcloud.net.cn/unidoc/zh/uni-tongji-icon.png' } ], codeHosting: [{ diff --git a/docs/.vuepress/config/siderbar/uniCloud.js b/docs/.vuepress/config/siderbar/uniCloud.js index 4afe15441..51f2bce0d 100644 --- a/docs/.vuepress/config/siderbar/uniCloud.js +++ b/docs/.vuepress/config/siderbar/uniCloud.js @@ -3,22 +3,22 @@ export default { { name: 'uniCloud Web控制台', url: 'https://unicloud.dcloud.net.cn', - imageUrl: 'https://bjetxgzv.cdn.bspapp.com/VKCEYUGU-uni-app-doc/7962e8e0-4f2d-11eb-a16f-5b3e54966275.jpg' + imageUrl: 'https://web-assets.dcloud.net.cn/unidoc/zh/cloud@2x.jpg' }, { name: '论坛', url: 'https://ask.dcloud.net.cn/explore/', - imageUrl: 'https://bjetxgzv.cdn.bspapp.com/VKCEYUGU-uni-app-doc/73fc4f90-4f2d-11eb-a16f-5b3e54966275.png' + imageUrl: 'https://web-assets.dcloud.net.cn/unidoc/zh/d@2x.png' }, { name: 'uniAD', url: 'https://uniad.dcloud.net.cn', - imageUrl: 'https://bjetxgzv.cdn.bspapp.com/VKCEYUGU-uni-app-doc/765d9820-4f2d-11eb-bd01-97bc1429a9ff.png' + imageUrl: 'https://web-assets.dcloud.net.cn/unidoc/zh/uniad-520.png' }, { name: 'uni统计', url: 'https://tongji.dcloud.net.cn/', - imageUrl: 'https://bjetxgzv.cdn.bspapp.com/VKCEYUGU-uni-app-doc/77159d80-4f2d-11eb-a16f-5b3e54966275.png' + imageUrl: 'https://web-assets.dcloud.net.cn/unidoc/zh/uni-tongji-icon.png' } ], qq_group: [ diff --git a/docs/README.md b/docs/README.md index a6415be6b..afd702aa2 100644 --- a/docs/README.md +++ b/docs/README.md @@ -17,13 +17,13 @@ pageClass: custom-page-class
- +
Android版
- +
iOS版
@@ -40,11 +40,11 @@ pageClass: custom-page-class
-
+
支付宝小程序版
-
+
百度小程序版
@@ -74,36 +74,36 @@ pageClass: custom-page-class 360小程序 -
+
快手小程序版
-
+
飞书小程序版
- +
钉钉小程序版
- +
京东小程序版
- +
- +
@@ -119,9 +119,9 @@ pageClass: custom-page-class 我们精心准备了一个简单的十分钟介绍视频,方便你快速了解`uni-app`的主要特征: - + - + ## 为什么要选择uni-app? @@ -130,7 +130,7 @@ pageClass: custom-page-class
- +
开发者/案例数量更多
@@ -140,7 +140,7 @@ pageClass: custom-page-class
- +
平台能力不受限
@@ -150,7 +150,7 @@ pageClass: custom-page-class
- +
性能体验优秀
@@ -161,7 +161,7 @@ pageClass: custom-page-class
- +
周边生态丰富
@@ -172,7 +172,7 @@ pageClass: custom-page-class
- +
学习成本低
@@ -181,7 +181,7 @@ pageClass: custom-page-class
- +
开发成本低
@@ -210,14 +210,14 @@ pageClass: custom-page-class 从下面`uni-app`功能框架图可看出,`uni-app`在跨平台的过程中,不牺牲平台特色,可优雅的调用平台专有能力,真正做到海纳百川、各取所长。 -![](https://vkceyugu.cdn.bspapp.com/VKCEYUGU-f184e7c3-1912-41b2-b81f-435d1b37c7b4/29448a55-2785-4296-9248-913dbda9de7f.png) +![](https://web-assets.dcloud.net.cn/unidoc/zh/uni-function-diagram.png) ## 一套代码,运行到多个平台 `uni-app`实现了一套代码,同时运行到多个平台;如下图所示,一套代码,同时运行到iOS模拟器、Android模拟器、web、微信开发者工具、支付宝小程序Studio、百度开发者工具、字节跳动开发者工具、QQ开发者工具(底部每个终端选项卡,代表1个终端模拟器): -![](https://bjetxgzv.cdn.bspapp.com/VKCEYUGU-uni-app-doc/efd8e280-60a9-11eb-a16f-5b3e54966275.jpg) +![](https://web-assets.dcloud.net.cn/unidoc/zh/dev1x8.jpg) 实际运行效果如下(点击图片可放大): -![](https://vkceyugu.cdn.bspapp.com/VKCEYUGU-a90b5f95-90ba-4d30-a6a7-cd4d057327db/ec6e95dd-77ad-4d14-aafa-ca503f5b9e53.jpg) +![](https://web-assets.dcloud.net.cn/unidoc/zh/uni-app-multiport.jpg) diff --git a/docs/api/a-d/content-page.md b/docs/api/a-d/content-page.md index f6fd259cc..3cf488dfa 100644 --- a/docs/api/a-d/content-page.md +++ b/docs/api/a-d/content-page.md @@ -4,7 +4,7 @@ ⼀个视频内容频道,支持上下滑动切换视频内容 -![](https://vkceyugu.cdn.bspapp.com/VKCEYUGU-a90b5f95-90ba-4d30-a6a7-cd4d057327db/673f23ff-0924-4302-8467-9c1c1fd03b96.png) +![](https://web-assets.dcloud.net.cn/unidoc/zh/ad-content-page.png) 内容联盟广告是一个原生全屏组件,大小不可控制 diff --git a/docs/api/a-d/interactive.md b/docs/api/a-d/interactive.md index 8cf728cee..a56e6027b 100644 --- a/docs/api/a-d/interactive.md +++ b/docs/api/a-d/interactive.md @@ -4,7 +4,7 @@ 互动游戏是DCloud联合三方服务商为开发者提供新的广告场景增值服务。开发者在App中放置入口,用户点击入口参与权益化、趣味性的活动。通过观看激励视频广告加速获取权益。沉浸的游戏体验能够降低对广告的抵触心理,增加激励视频广告展示的同时有效提高广告收益。 -![](https://vkceyugu.cdn.bspapp.com/VKCEYUGU-a90b5f95-90ba-4d30-a6a7-cd4d057327db/c19c9518-c953-49c3-89a0-33a1e595be7f.png) +![](https://web-assets.dcloud.net.cn/unidoc/zh/interactive1.png) ## 活动场景类型: @@ -15,7 +15,7 @@ 2. 游戏类活动:通过合成游戏、成语答题、捕鱼等游戏玩法获得金币或红包奖励 3. 养成类活动:果园、农场、养牛等长期活动,用户通过连续签到、道具收集、任务体系等玩法提升养成对象的等级,升级后可获得红包奖励或兑换奖品 -![](https://vkceyugu.cdn.bspapp.com/VKCEYUGU-a90b5f95-90ba-4d30-a6a7-cd4d057327db/994e3f54-d498-4642-8e61-3177dcfef63a.jpg) +![](https://web-assets.dcloud.net.cn/unidoc/zh/interactive2.jpg) ### 活动分类表 diff --git a/docs/api/a-d/rewarded-video.md b/docs/api/a-d/rewarded-video.md index 50eeba01c..a0a824e2f 100644 --- a/docs/api/a-d/rewarded-video.md +++ b/docs/api/a-d/rewarded-video.md @@ -499,7 +499,7 @@ rewardedVideoAd.load() ### 监听用户关闭广告 -![](https://bjetxgzv.cdn.bspapp.com/VKCEYUGU-uni-app-doc/24d1db60-441f-11eb-bd01-97bc1429a9ff.png) +![](https://web-assets.dcloud.net.cn/unidoc/zh/rewarded-video-close.png) 只有在用户点击激励视频广告组件上的 关闭广告 按钮时,广告才会关闭。这个事件可以通过 `RewardedVideoAd.onClose()` 监听。 @@ -535,7 +535,7 @@ App平台 3.1.15+ 支持穿山甲/优量汇/快手 相对来讲服务器回调将更加安全,可以依赖广告平台的反作弊机制来避免用户模拟观看广告完成的事件。 -![激励视频回调](https://f184e7c3-1912-41b2-b81f-435d1b37c7b4.cdn.bspapp.com/VKCEYUGU-f184e7c3-1912-41b2-b81f-435d1b37c7b4/a1bf0617-c59a-4904-a902-e9c8888855d6.png) +![激励视频回调](https://web-assets.dcloud.net.cn/unidoc/zh/uniAdCallback.png) 如何使用 diff --git a/docs/api/canvas/CanvasContext.md b/docs/api/canvas/CanvasContext.md index 5d10349c6..5adbe9761 100644 --- a/docs/api/canvas/CanvasContext.md +++ b/docs/api/canvas/CanvasContext.md @@ -142,7 +142,7 @@ ctx.stroke() ctx.draw() ``` -![uniapp](https://bjetxgzv.cdn.bspapp.com/VKCEYUGU-uni-app-doc/687c12e0-4f28-11eb-bdc1-8bd33eb6adaa.png) +![uniapp](https://web-assets.dcloud.net.cn/unidoc/zh/arc.png) 针对 ```arc(100, 75, 50, 0, 1.5 * Math.PI)```的三个关键坐标如下: * 绿色: 圆心 (100, 75) @@ -200,7 +200,7 @@ ctx.fill() ctx.draw() ``` -![uniapp](https://bjetxgzv.cdn.bspapp.com/VKCEYUGU-uni-app-doc/1b5714b0-4f28-11eb-8a36-ebb87efcf8c0.png) +![uniapp](https://web-assets.dcloud.net.cn/unidoc/zh/fill-path.png) ### CanvasContext.bezierCurveTo 创建三次方贝塞尔曲线路径。 @@ -265,7 +265,7 @@ ctx.stroke() ctx.draw() ``` -![uniapp](https://bjetxgzv.cdn.bspapp.com/VKCEYUGU-uni-app-doc/03cf3750-4f28-11eb-b997-9918a5dda011.png) +![uniapp](https://web-assets.dcloud.net.cn/unidoc/zh/bezier-curve.png) 针对 `moveTo(20, 20)` ```bezierCurveTo(20, 100, 200, 100, 200, 20)``` 的三个关键坐标如下: @@ -305,7 +305,7 @@ ctx.clearRect(10, 10, 150, 75) ctx.draw() ``` -![uniapp](https://bjetxgzv.cdn.bspapp.com/VKCEYUGU-uni-app-doc/05afde30-4f28-11eb-a16f-5b3e54966275.png) +![uniapp](https://web-assets.dcloud.net.cn/unidoc/zh/clear-rect.png) ### CanvasContext.clip @@ -320,7 +320,7 @@ ctx.draw() const context = uni.createCanvasContext('myCanvas') uni.downloadFile({ - url: 'https://bjetxgzv.cdn.bspapp.com/VKCEYUGU-uni-app-doc/d8590190-4f28-11eb-b680-7980c8a877b8.png', + url: 'https://web-assets.dcloud.net.cn/unidoc/zh/uni@2x.png', success: function (res) { context.save() context.beginPath() @@ -334,7 +334,7 @@ context.drawImage(res.tempFilePath, 48, 48) ``` -![uniapp](https://bjetxgzv.cdn.bspapp.com/VKCEYUGU-uni-app-doc/067a3310-4f28-11eb-b997-9918a5dda011.png) +![uniapp](https://web-assets.dcloud.net.cn/unidoc/zh/clip.png) ### CanvasContext.closePath 关闭一个路径。 @@ -355,7 +355,7 @@ ctx.stroke() ctx.draw() ``` -![uniapp](https://bjetxgzv.cdn.bspapp.com/VKCEYUGU-uni-app-doc/074e9a10-4f28-11eb-8a36-ebb87efcf8c0.png) +![uniapp](https://web-assets.dcloud.net.cn/unidoc/zh/close-line.png) ```javascript @@ -380,7 +380,7 @@ ctx.fill() ctx.draw() ``` -![uniapp](https://bjetxgzv.cdn.bspapp.com/VKCEYUGU-uni-app-doc/02d34b20-4f28-11eb-b680-7980c8a877b8.png) +![uniapp](https://web-assets.dcloud.net.cn/unidoc/zh/close-path.png) ### CanvasContext.createCircularGradient 创建一个从圆心开始的渐变。返回的 [CanvasGradient](/api/canvas/CanvasGradient) 对象,需要使用 ```CanvasGradient.addColorStop()``` 来指定渐变点,至少要两个。 @@ -409,7 +409,7 @@ ctx.fillRect(10, 10, 150, 80) ctx.draw() ``` -![uniapp](https://bjetxgzv.cdn.bspapp.com/VKCEYUGU-uni-app-doc/04c3f790-4f28-11eb-8a36-ebb87efcf8c0.png) +![uniapp](https://web-assets.dcloud.net.cn/unidoc/zh/circular-gradient.png) ### CanvasContext.createLinearGradient 创建一个线性的渐变颜色。返回的 [CanvasGradient](/api/canvas/CanvasGradient) 对象,需要使用 ```CanvasGradient.addColorStop()``` 来指定渐变点,至少要两个。 @@ -440,7 +440,7 @@ ctx.fillRect(10, 10, 150, 80) ctx.draw() ``` -![uniapp](https://bjetxgzv.cdn.bspapp.com/VKCEYUGU-uni-app-doc/24a94010-4f28-11eb-bdc1-8bd33eb6adaa.png) +![uniapp](https://web-assets.dcloud.net.cn/unidoc/zh/linear-gradient.png) ### CanvasContext.createPattern 对指定的图像创建模式的方法,可在指定的方向上重复元图像 @@ -484,7 +484,7 @@ ctx.fillRect(50, 50, 150, 100) ctx.draw() ``` -![uniapp](https://bjetxgzv.cdn.bspapp.com/VKCEYUGU-uni-app-doc/33d7d100-4f28-11eb-97b7-0dc4655d6e68.png) +![uniapp](https://web-assets.dcloud.net.cn/unidoc/zh/un-reserve.png) ```javascript @@ -497,7 +497,7 @@ ctx.fillRect(50, 50, 150, 100) ctx.draw(true) ``` -![uniapp](https://bjetxgzv.cdn.bspapp.com/VKCEYUGU-uni-app-doc/2ad88090-4f28-11eb-8ff1-d5dcf8779628.png) +![uniapp](https://web-assets.dcloud.net.cn/unidoc/zh/reserve.png) ### CanvasContext.drawImage 绘制图像到画布。 @@ -535,7 +535,7 @@ uni.chooseImage({ }) ``` -![uniapp](https://bjetxgzv.cdn.bspapp.com/VKCEYUGU-uni-app-doc/1946d250-4f28-11eb-8a36-ebb87efcf8c0.png) +![uniapp](https://web-assets.dcloud.net.cn/unidoc/zh/draw-image.png) ### CanvasContext.fill 对当前路径中的内容进行填充。默认的填充色为黑色。 @@ -555,7 +555,7 @@ ctx.fill() ctx.draw() ``` -![uniapp](https://bjetxgzv.cdn.bspapp.com/VKCEYUGU-uni-app-doc/1a366270-4f28-11eb-a16f-5b3e54966275.png) +![uniapp](https://web-assets.dcloud.net.cn/unidoc/zh/fill-line.png) ```javascript const ctx = uni.createCanvasContext('myCanvas') @@ -580,7 +580,7 @@ ctx.fill() ctx.draw() ``` -![uniapp](https://bjetxgzv.cdn.bspapp.com/VKCEYUGU-uni-app-doc/1b5714b0-4f28-11eb-8a36-ebb87efcf8c0.png) +![uniapp](https://web-assets.dcloud.net.cn/unidoc/zh/fill-path.png) ### CanvasContext.fillRect 填充一个矩形。 @@ -605,7 +605,7 @@ ctx.fillRect(10, 10, 150, 75) ctx.draw() ``` -![uniapp](https://bjetxgzv.cdn.bspapp.com/VKCEYUGU-uni-app-doc/1c4656b0-4f28-11eb-a16f-5b3e54966275.png) +![uniapp](https://web-assets.dcloud.net.cn/unidoc/zh/fill-rect.png) ### CanvasContext.fillText 在画布上绘制被填充的文本。 @@ -655,7 +655,7 @@ ctx.stroke() ctx.draw() ``` -![uniapp](https://bjetxgzv.cdn.bspapp.com/VKCEYUGU-uni-app-doc/27097730-4f28-11eb-bdc1-8bd33eb6adaa.png) +![uniapp](https://web-assets.dcloud.net.cn/unidoc/zh/line-to.png) ### CanvasContext.measureText 测量文本尺寸信息,目前仅返回文本宽度。同步接口。(App 端 2.8.12+ 支持) @@ -706,7 +706,7 @@ ctx.stroke() ctx.draw() ``` -![uniapp](https://bjetxgzv.cdn.bspapp.com/VKCEYUGU-uni-app-doc/2945d2a0-4f28-11eb-bdc1-8bd33eb6adaa.png) +![uniapp](https://web-assets.dcloud.net.cn/unidoc/zh/move-to.png) ### CanvasContext.quadraticCurveTo 创建二次贝塞尔曲线路径。曲线的起始点为路径中前一个点。 @@ -762,7 +762,7 @@ ctx.stroke() ctx.draw() ``` -![uniapp](https://bjetxgzv.cdn.bspapp.com/VKCEYUGU-uni-app-doc/2a0a0d00-4f28-11eb-bd01-97bc1429a9ff.png) +![uniapp](https://web-assets.dcloud.net.cn/unidoc/zh/quadratic-curve-to.png) 针对 `moveTo(20, 20)` ```quadraticCurveTo(20, 100, 200, 20)``` 的三个关键坐标如下: @@ -794,7 +794,7 @@ ctx.fill() ctx.draw() ``` -![uniapp](https://bjetxgzv.cdn.bspapp.com/VKCEYUGU-uni-app-doc/1c4656b0-4f28-11eb-a16f-5b3e54966275.png) +![uniapp](https://web-assets.dcloud.net.cn/unidoc/zh/fill-rect.png) ### CanvasContext.restore 恢复之前保存的绘图上下文。 @@ -816,7 +816,7 @@ ctx.fillRect(50, 50, 150, 100) ctx.draw() ``` -![uniapp](https://bjetxgzv.cdn.bspapp.com/VKCEYUGU-uni-app-doc/2c8d0e60-4f28-11eb-8ff1-d5dcf8779628.png) +![uniapp](https://web-assets.dcloud.net.cn/unidoc/zh/save-restore.png) ### CanvasContext.rotate 以原点为中心,原点可以用 translate方法修改。顺时针旋转当前坐标轴。多次调用rotate,旋转的角度会叠加。 @@ -841,7 +841,7 @@ ctx.strokeRect(100, 10, 150, 100) ctx.draw() ``` -![uniapp](https://bjetxgzv.cdn.bspapp.com/VKCEYUGU-uni-app-doc/2bbd8960-4f28-11eb-bd01-97bc1429a9ff.png) +![uniapp](https://web-assets.dcloud.net.cn/unidoc/zh/rotate.png) ### CanvasContext.save 保存当前的绘图上下文。 @@ -887,7 +887,7 @@ ctx.strokeRect(10, 10, 25, 15) ctx.draw() ``` -![uniapp](https://bjetxgzv.cdn.bspapp.com/VKCEYUGU-uni-app-doc/2d528140-4f28-11eb-8ff1-d5dcf8779628.png) +![uniapp](https://web-assets.dcloud.net.cn/unidoc/zh/scale.png) ### CanvasContext.setFillStyle@canvascontextsetfillstyle 设置填充色,如果没有设置 fillStyle,默认颜色为 black。 @@ -914,7 +914,7 @@ ctx.fillRect(10, 10, 150, 75) ctx.draw() ``` -![uniapp](https://bjetxgzv.cdn.bspapp.com/VKCEYUGU-uni-app-doc/1c4656b0-4f28-11eb-a16f-5b3e54966275.png) +![uniapp](https://web-assets.dcloud.net.cn/unidoc/zh/fill-rect.png) ### CanvasContext.setFontSize 设置字体的字号。 @@ -940,7 +940,7 @@ ctx.fillText('50', 90, 90) ctx.draw() ``` -![uniapp](https://bjetxgzv.cdn.bspapp.com/VKCEYUGU-uni-app-doc/1855bb90-4f28-11eb-a16f-5b3e54966275.png) +![uniapp](https://web-assets.dcloud.net.cn/unidoc/zh/font-size.png) ### CanvasContext.setGlobalAlpha @@ -968,7 +968,7 @@ ctx.fillRect(100, 100, 150, 100) ctx.draw() ``` -![uniapp](https://bjetxgzv.cdn.bspapp.com/VKCEYUGU-uni-app-doc/23c43740-4f28-11eb-bdc1-8bd33eb6adaa.png) +![uniapp](https://web-assets.dcloud.net.cn/unidoc/zh/global-alpha.png) ### CanvasContext.setLineCap@canvascontextsetlinecap 设置线条的端点样式。 @@ -1012,7 +1012,7 @@ ctx.stroke() ctx.draw() ``` -![uniapp](https://bjetxgzv.cdn.bspapp.com/VKCEYUGU-uni-app-doc/2577dab0-4f28-11eb-bdc1-8bd33eb6adaa.png) +![uniapp](https://web-assets.dcloud.net.cn/unidoc/zh/line-cap.png) ### CanvasContext.setLineDash 设置线条宽度。 @@ -1039,7 +1039,7 @@ ctx.stroke(); ctx.draw() ``` -![uniapp](https://bjetxgzv.cdn.bspapp.com/VKCEYUGU-uni-app-doc/2e1d4b50-4f28-11eb-8ff1-d5dcf8779628.png) +![uniapp](https://web-assets.dcloud.net.cn/unidoc/zh/set-line-dash.png) ### CanvasContext.setLineJoin@canvascontextsetlinejoin 设置线条的交点样式。 @@ -1087,7 +1087,7 @@ ctx.stroke() ctx.draw() ``` -![uniapp](https://bjetxgzv.cdn.bspapp.com/VKCEYUGU-uni-app-doc/264f9d10-4f28-11eb-bd01-97bc1429a9ff.png) +![uniapp](https://web-assets.dcloud.net.cn/unidoc/zh/line-join.png) ### CanvasContext.setLineWidth@canvascontextsetlinewidth 设置线条的宽度。 @@ -1128,7 +1128,7 @@ ctx.stroke() ctx.draw() ``` -![uniapp](https://bjetxgzv.cdn.bspapp.com/VKCEYUGU-uni-app-doc/27d356e0-4f28-11eb-bd01-97bc1429a9ff.png) +![uniapp](https://web-assets.dcloud.net.cn/unidoc/zh/line-width.png) ### CanvasContext.setMiterLimit@canvascontextsetmiterlimit 设置最大斜接长度,斜接长度指的是在两条线交汇处内角和外角之间的距离。 当 ``setLineJoin()`` 为 miter 时才有效。超过最大倾斜长度的,连接处将以 lineJoin 为 bevel 来显示。 @@ -1182,7 +1182,7 @@ ctx.stroke() ctx.draw() ``` -![uniapp](https://bjetxgzv.cdn.bspapp.com/VKCEYUGU-uni-app-doc/289176c0-4f28-11eb-bd01-97bc1429a9ff.png) +![uniapp](https://web-assets.dcloud.net.cn/unidoc/zh/miter-limit.png) ### CanvasContext.setShadow 设置阴影样式。如果没有设置,offsetX 默认值为0, offsetY 默认值为0, blur 默认值为0,color 默认值为 black。 @@ -1206,7 +1206,7 @@ ctx.fillRect(10, 10, 150, 75) ctx.draw() ``` -![uniapp](https://bjetxgzv.cdn.bspapp.com/VKCEYUGU-uni-app-doc/308068a0-4f28-11eb-b997-9918a5dda011.png) +![uniapp](https://web-assets.dcloud.net.cn/unidoc/zh/shadow.png) ### CanvasContext.setStrokeStyle@canvascontextsetstrokestyle 设置边框颜色。如果没有设置 fillStyle,默认颜色为 black。 @@ -1226,7 +1226,7 @@ ctx.strokeRect(10, 10, 150, 75) ctx.draw() ``` -![uniapp](https://bjetxgzv.cdn.bspapp.com/VKCEYUGU-uni-app-doc/3302cdc0-4f28-11eb-97b7-0dc4655d6e68.png) +![uniapp](https://web-assets.dcloud.net.cn/unidoc/zh/stroke-rect.png) ### CanvasContext.setTextAlign 用于设置文字的对齐 @@ -1258,7 +1258,7 @@ ctx.fillText('textAlign=right', 150, 100) ctx.draw() ``` -![uniapp](https://bjetxgzv.cdn.bspapp.com/VKCEYUGU-uni-app-doc/2ee492f0-4f28-11eb-bdc1-8bd33eb6adaa.png) +![uniapp](https://web-assets.dcloud.net.cn/unidoc/zh/set-text-align.png) ### CanvasContext.setTextBaseline 用于设置文字的水平对齐 @@ -1296,7 +1296,7 @@ ctx.fillText('normal', 200, 75) ctx.draw() ``` -![uniapp](https://bjetxgzv.cdn.bspapp.com/VKCEYUGU-uni-app-doc/2fba3270-4f28-11eb-bdc1-8bd33eb6adaa.png) +![uniapp](https://web-assets.dcloud.net.cn/unidoc/zh/set-text-baseline.png) ### CanvasContext.setTransform 使用矩阵重新设置(覆盖)当前变换的方法 @@ -1334,7 +1334,7 @@ ctx.stroke() ctx.draw() ``` -![uniapp](https://bjetxgzv.cdn.bspapp.com/VKCEYUGU-uni-app-doc/31473b10-4f28-11eb-bdc1-8bd33eb6adaa.png) +![uniapp](https://web-assets.dcloud.net.cn/unidoc/zh/stroke-line.png) ```javascript @@ -1360,7 +1360,7 @@ ctx.stroke() ctx.draw() ``` -![uniapp](https://bjetxgzv.cdn.bspapp.com/VKCEYUGU-uni-app-doc/322c1cd0-4f28-11eb-bdc1-8bd33eb6adaa.png) +![uniapp](https://web-assets.dcloud.net.cn/unidoc/zh/stroke-path.png) ### CanvasContext.strokeRect 画一个矩形(非填充)。用 `setFillStroke()` 设置边框颜色,如果没设置默认是黑色。 @@ -1383,7 +1383,7 @@ ctx.strokeRect(10, 10, 150, 75) ctx.draw() ``` -![uniapp](https://bjetxgzv.cdn.bspapp.com/VKCEYUGU-uni-app-doc/3302cdc0-4f28-11eb-97b7-0dc4655d6e68.png) +![uniapp](https://web-assets.dcloud.net.cn/unidoc/zh/stroke-rect.png) ### CanvasContext.strokeText @@ -1443,4 +1443,4 @@ ctx.strokeRect(10, 10, 150, 100) ctx.draw() ``` -![uniapp](https://bjetxgzv.cdn.bspapp.com/VKCEYUGU-uni-app-doc/34aef720-4f28-11eb-97b7-0dc4655d6e68.png) +![uniapp](https://web-assets.dcloud.net.cn/unidoc/zh/translate.png) diff --git a/docs/api/canvas/CanvasGradient.md b/docs/api/canvas/CanvasGradient.md index 0fc133d40..527e8a1f0 100644 --- a/docs/api/canvas/CanvasGradient.md +++ b/docs/api/canvas/CanvasGradient.md @@ -33,5 +33,5 @@ ctx.fillRect(10, 10, 150, 80) ctx.draw() ``` -![uniapp](https://bjetxgzv.cdn.bspapp.com/VKCEYUGU-uni-app-doc/d1e88440-4f26-11eb-bd01-97bc1429a9ff.png) +![uniapp](https://web-assets.dcloud.net.cn/unidoc/zh/color-stop.png) diff --git a/docs/api/media/background-audio-manager.md b/docs/api/media/background-audio-manager.md index 71b13fed2..1048d4d89 100644 --- a/docs/api/media/background-audio-manager.md +++ b/docs/api/media/background-audio-manager.md @@ -62,7 +62,7 @@ errCode 说明 const bgAudioManager = uni.getBackgroundAudioManager(); bgAudioManager.title = '致爱丽丝'; bgAudioManager.singer = '暂无'; -bgAudioManager.coverImgUrl = 'https://bjetxgzv.cdn.bspapp.com/VKCEYUGU-uni-app-doc/7fbf26a0-4f4a-11eb-b680-7980c8a877b8.png'; +bgAudioManager.coverImgUrl = 'https://web-assets.dcloud.net.cn/unidoc/zh/music-a.png'; bgAudioManager.src = 'https://bjetxgzv.cdn.bspapp.com/VKCEYUGU-hello-uniapp/2cc220e0-c27a-11ea-9dfb-6da8e309e0d8.mp3'; ``` diff --git a/docs/api/media/video-context.md b/docs/api/media/video-context.md index e302ac4c0..65f3605e1 100644 --- a/docs/api/media/video-context.md +++ b/docs/api/media/video-context.md @@ -32,7 +32,7 @@ - diff --git a/docs/api/other/open-miniprogram.md b/docs/api/other/open-miniprogram.md index 2e36dc5c1..b80f32fab 100644 --- a/docs/api/other/open-miniprogram.md +++ b/docs/api/other/open-miniprogram.md @@ -77,7 +77,7 @@ uni.navigateBackMiniProgram({ 当小程序需要打开另一个小程序让用户进行快捷操作时,可将要打开的小程序以半屏的形态跳转。 -![](https://vkceyugu.cdn.bspapp.com/VKCEYUGU-a90b5f95-90ba-4d30-a6a7-cd4d057327db/96851308-0f50-49b8-9495-135dcee3bcf5.jpeg) +![](https://web-assets.dcloud.net.cn/unidoc/zh/wx-miniprogram.jpeg) **调用流程** diff --git a/docs/api/plugins/payment.md b/docs/api/plugins/payment.md index 45773e80f..f3bf2b5c9 100644 --- a/docs/api/plugins/payment.md +++ b/docs/api/plugins/payment.md @@ -80,7 +80,7 @@ uni.requestPayment是一个统一各平台的客户端支付API,不管是在 1. 在`manifest.json - App模块权限选择` 中勾选 payment(支付) 2. 在 `manifest.json - App SDK配置` 中,勾选需要的支付平台,目前有微信支付、支付宝支付、苹果应用内支付(IAP),其中微信支付需要填写从微信开放平台获取的AppID -![](https://bjetxgzv.cdn.bspapp.com/VKCEYUGU-uni-app-doc/b803e140-4f1d-11eb-8ff1-d5dcf8779628.png) +![](https://web-assets.dcloud.net.cn/unidoc/zh/manifest-config.png) 3. 这些配置需要打包生效,真机运行仍然是HBuilder基座的设置,可使用自定义基座调试。离线打包请参考离线打包文档在原生工程中配置。 diff --git a/docs/api/plugins/share.md b/docs/api/plugins/share.md index fb0ca8736..b4463a7c8 100644 --- a/docs/api/plugins/share.md +++ b/docs/api/plugins/share.md @@ -112,7 +112,7 @@ uni.share({ provider: "weixin", scene: "WXSceneSession", type: 2, - imageUrl: "https://bjetxgzv.cdn.bspapp.com/VKCEYUGU-uni-app-doc/d8590190-4f28-11eb-b680-7980c8a877b8.png", + imageUrl: "https://web-assets.dcloud.net.cn/unidoc/zh/uni@2x.png", success: function (res) { console.log("success:" + JSON.stringify(res)); }, @@ -135,7 +135,7 @@ uni.share({ href: "http://uniapp.dcloud.io/", title: "uni-app分享", summary: "我正在使用HBuilderX开发uni-app,赶紧跟我一起来体验!", - imageUrl: "https://bjetxgzv.cdn.bspapp.com/VKCEYUGU-uni-app-doc/d8590190-4f28-11eb-b680-7980c8a877b8.png", + imageUrl: "https://web-assets.dcloud.net.cn/unidoc/zh/uni@2x.png", success: function (res) { console.log("success:" + JSON.stringify(res)); }, @@ -170,7 +170,7 @@ uni.share({ provider: "weixin", scene: "WXSceneTimeline", type: 2, - imageUrl: "https://bjetxgzv.cdn.bspapp.com/VKCEYUGU-uni-app-doc/d8590190-4f28-11eb-b680-7980c8a877b8.png", + imageUrl: "https://web-assets.dcloud.net.cn/unidoc/zh/uni@2x.png", success: function (res) { console.log("success:" + JSON.stringify(res)); }, @@ -192,7 +192,7 @@ uni.share({ href: "http://uniapp.dcloud.io/", title: "uni-app分享", summary: "我正在使用HBuilderX开发uni-app,赶紧跟我一起来体验!", - imageUrl: "https://bjetxgzv.cdn.bspapp.com/VKCEYUGU-uni-app-doc/d8590190-4f28-11eb-b680-7980c8a877b8.png", + imageUrl: "https://web-assets.dcloud.net.cn/unidoc/zh/uni@2x.png", success: function (res) { console.log("success:" + JSON.stringify(res)); }, @@ -209,7 +209,7 @@ uni.share({ provider: 'weixin', scene: "WXSceneSession", type: 5, - imageUrl: 'https://bjetxgzv.cdn.bspapp.com/VKCEYUGU-uni-app-doc/962fc340-4f2c-11eb-bdc1-8bd33eb6adaa.png', + imageUrl: 'https://web-assets.dcloud.net.cn/unidoc/zh/share-logo@3.png', title: '欢迎体验uniapp', miniProgram: { id: 'gh_abcdefg', @@ -238,12 +238,12 @@ uni.share({ - 微信 appid 申请步骤:[https://ask.dcloud.net.cn/article/208](https://ask.dcloud.net.cn/article/208)。 - iOS平台微信SDK配置通用链接:[https://ask.dcloud.net.cn/article/36445](https://ask.dcloud.net.cn/article/36445)。 -![](https://bjetxgzv.cdn.bspapp.com/VKCEYUGU-uni-app-doc/da6b1be0-4f2c-11eb-8a36-ebb87efcf8c0.png) +![](https://web-assets.dcloud.net.cn/unidoc/zh/mp-weixin-manifest-share.png) ##### 新浪微博分享 在 manifest.json 的 App SDK 配置里,勾选勾选新浪微博,并填写相关appkey,新浪微博 appkey 申请步骤可参考:[https://ask.dcloud.net.cn/article/209](https://ask.dcloud.net.cn/article/209)。 -![](https://bjetxgzv.cdn.bspapp.com/VKCEYUGU-uni-app-doc/db61d7f0-4f2c-11eb-8a36-ebb87efcf8c0.png) +![](https://web-assets.dcloud.net.cn/unidoc/zh/uni2019022502.png) ##### QQ 分享 在 manifest.json 的 App SDK 配置里,勾选分享到QQ好友,并填写相关appkey,QQ分享 appkey 申请步骤: @@ -252,7 +252,7 @@ uni.share({ 2. 完成开发者注册; 3. 创建应用,选择移动 App,填写相关信息,然后等待审核,审核通过后即可得到AppId。 -![](https://bjetxgzv.cdn.bspapp.com/VKCEYUGU-uni-app-doc/d97fd180-4f2c-11eb-bdc1-8bd33eb6adaa.png) +![](https://web-assets.dcloud.net.cn/unidoc/zh/uni2019022503.png) 这些配置需要打包生效,真机运行仍然是HBuilder基座的设置,可使用[自定义基座包](http://ask.dcloud.net.cn/article/12723)调试。离线打包请参考离线打包文档在原生工程中配置。 diff --git a/docs/api/plugins/universal-links.md b/docs/api/plugins/universal-links.md index 046357dfd..380dc3759 100644 --- a/docs/api/plugins/universal-links.md +++ b/docs/api/plugins/universal-links.md @@ -34,7 +34,7 @@ Error: not set parameter 'UniversalLinks' @'oauth-weixin' ### 第一步:开启Associated Domains服务 登录[苹果开发者网站](https://developer.apple.com/),在“Certificates, Identifiers & Profiles”页面选择“Identifiers”中选择对应的App ID,确保开启Associated Domains服务 -![](https://vkceyugu.cdn.bspapp.com/VKCEYUGU-f184e7c3-1912-41b2-b81f-435d1b37c7b4/2eae9f97-2c4a-4dc8-97e8-e665b0c660e1.png) +![](https://web-assets.dcloud.net.cn/unidoc/zh/ulink1.png) **开启Associated Domains服务后需要重新生成profile文件,提交云端打包时使用** @@ -43,16 +43,16 @@ HBuilderX (3.2.0 版本起) 新增QQ互联和新浪微博开放平台的通用 打开项目的manifest.json文件,在“(App) SDK配置”项中的微信登录(微信分享、微信支付)下的“iOS平台通用链接(Universal Links)”中, 点击如图所示【自动生成】 -![](https://vkceyugu.cdn.bspapp.com/VKCEYUGU-f184e7c3-1912-41b2-b81f-435d1b37c7b4/ea2b1e04-a858-4626-b3fa-bd4ddddd0c3b.jpg) +![](https://web-assets.dcloud.net.cn/unidoc/zh/%E7%94%9F%E6%88%90%E9%80%9A%E7%94%A8%E9%93%BE%E6%8E%A5%E6%95%99%E7%A8%8B1.jpg) * 注意您必须先开通"uniCloud(阿里云版)云服务空间和开通前端网页托管"[点此查看开通教程](https://ask.dcloud.net.cn/article/38951),按提示完成操作即可。 -![](https://vkceyugu.cdn.bspapp.com/VKCEYUGU-f184e7c3-1912-41b2-b81f-435d1b37c7b4/53e0141e-d2d4-496a-b0f2-2359005c0c4e.jpg) +![](https://web-assets.dcloud.net.cn/unidoc/zh/%E7%94%9F%E6%88%90%E9%80%9A%E7%94%A8%E9%93%BE%E6%8E%A5%E6%95%99%E7%A8%8B2.jpg) * 注意:通用链接默认域名仅供测试使用,访问频次限制60次/分钟,请勿在正式发行的项目中使用。正式项目,务必绑定自己的域名(顶级域名,二级域名均可) * 如何绑定自己的域名详情:[https://uniapp.dcloud.io/uniCloud/hosting?id=domain](https://uniapp.dcloud.io/uniCloud/hosting?id=domain) -![](https://vkceyugu.cdn.bspapp.com/VKCEYUGU-f184e7c3-1912-41b2-b81f-435d1b37c7b4/1e081fdd-27b2-4c0b-8985-7d59756ed313.jpg) +![](https://web-assets.dcloud.net.cn/unidoc/zh/%E9%85%8D%E7%BD%AE%E9%80%9A%E7%94%A8%E9%93%BE%E6%8E%A5%E8%87%AA%E5%AE%9A%E4%B9%89%E5%9F%9F%E5%90%8D.jpg) ### 第三步:在第三方开放平台配置通用链接 @@ -132,4 +132,4 @@ HBuilderX (3.2.0 版本起) 新增QQ互联和新浪微博开放平台的通用 2.如何验证通用链接已经生效,有什么表现或者测试方案 -你可以将通用链接输入到iphone自带Safari浏览器中,下拉即可看到通用链接对应到应用名称和一个打开按钮,点击按钮即可直接在浏览器打开对应的APP。详情:[点此查看演示视频](https://vkceyugu.cdn.bspapp.com/VKCEYUGU-f184e7c3-1912-41b2-b81f-435d1b37c7b4/4e920b86-0f67-45ac-81f6-6b97f87ff0ae.mp4) +你可以将通用链接输入到iphone自带Safari浏览器中,下拉即可看到通用链接对应到应用名称和一个打开按钮,点击按钮即可直接在浏览器打开对应的APP。详情:[点此查看演示视频](https://web-assets.dcloud.net.cn/unidoc/zh/%E9%80%9A%E7%94%A8%E9%93%BE%E6%8E%A5%E6%BC%94%E7%A4%BA%E8%A7%86%E9%A2%91.mp4) diff --git a/docs/api/ui/media-query-observer.md b/docs/api/ui/media-query-observer.md index e1e2a0ac3..85fc75cc2 100644 --- a/docs/api/ui/media-query-observer.md +++ b/docs/api/ui/media-query-observer.md @@ -46,7 +46,7 @@ MediaQueryObserver 对象,用于监听页面 media query 状态的变化,如 以下示例代码,推荐使用HBuilderX,新建uni-app项目,可直接体验完整示例。 -``` +```vue