Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
陈庄旺
uni-app
提交
d0687aa9
U
uni-app
项目概览
陈庄旺
/
uni-app
与 Fork 源项目一致
Fork自
DCloud / uni-app
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
U
uni-app
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
未验证
提交
d0687aa9
编写于
8月 08, 2019
作者:
W
wanganxp
提交者:
GitHub
8月 08, 2019
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'master' into master
上级
948259f9
cfab665a
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
79 addition
and
58 deletion
+79
-58
docs/component/_sidebar.md
docs/component/_sidebar.md
+47
-44
docs/component/ad.md
docs/component/ad.md
+12
-0
docs/component/barcode.md
docs/component/barcode.md
+19
-13
docs/component/official-account
docs/component/official-account
+1
-1
未找到文件。
docs/component/_sidebar.md
浏览文件 @
d0687aa9
*
视图容器
*
[
view
](
component/view.md
)
*
[
scroll-view
](
component/scroll-view.md
)
*
[
swiper
](
component/swiper.md
)
*
[
movable-area
](
component/movable-view.md?id=movable-area
)
*
[
swiper
](
component/swiper.md
)
*
[
movable-area
](
component/movable-view.md?id=movable-area
)
*
[
movable-view
](
component/movable-view.md?id=movable-view
)
*
[
cover-view
](
/component/cover-view?id=cover-view
)
*
[
cover-image
](
/component/cover-view?id=cover-image
)
...
...
@@ -36,13 +36,16 @@
*
地图
*
[
map
](
component/map.md
)
*
画布
*
[
canvas
](
component/canvas.md
)
*
[
开放能力
](
component/open.md
)
*
[
canvas
](
component/canvas.md
)
*
webview
*
[
web-view
](
component/web-view.md
)
*
平台开放数据
*
小程序开放能力组件
*
[
ad
](
component/ad.md
)
*
[
official-account
](
component/official-account.md
)
*
[
open-data
](
component/open-data.md
)
*
扩展组件(uni ui)
*
App nvue专用组件
*
[
barcode
](
component/barcode.md
)
*
扩展组件(uni ui)
*
[
uni-ui整体介绍
](
component/README?id=uniui
)
*
[
Badge 数字角标
](
https://ext.dcloud.net.cn/plugin?id=21
)
*
[
Calendar 日历
](
https://ext.dcloud.net.cn/plugin?id=56
)
...
...
@@ -87,43 +90,43 @@
<div
class=
"contact-item"
>
<img src="//img-cdn-qiniu.dcloud.net.cn/uniapp/doc/qq@2x.png" width="20" height="20"/>
<div
class=
"contact-smg"
>
<div>
官方QQ交流群
</div>
<div>
群26:147867597
<a
target=
"_blank"
href=
"//shang.qq.com/wpa/qunwpa?idkey=28a1a9a3e8f1866ee6a5f2b1caba05039e30d3ae1461e64b2ec31c095fcab951"
>
点此加入
</a></div>
<div>
群35:713420817(2000人已满)
</div>
<div>
群34:530305531(2000人已满)
</div>
<div>
群33:498071674(2000人已满)
</div>
<div>
群32:166188631(500人已满)
</div>
<div>
群31:567471669(500人已满)
</div>
<div>
群30:371046920(500人已满)
</div>
<div>
群29:202965481(500人已满)
</div>
<div>
群28:166188776(2000人已满
</div>
<div>
群27:811363410(2000人已满
</div>
<!-- <div>
群26:147867597(2000人已满)
</div>
-->
<div>
群25:165297000(500人已满)
</div>
<div>
群24:672494800(500人已满)
</div>
<div>
群23:599958679(500人已满)
</div>
<div>
群22:687186952(1000人已满)
</div>
<div>
群21:717019120(2000人已满)
</div>
<div>
群20:165796402(500人已满)
</div>
<div>
群19:165657124(1000人已满)
</div>
<div>
群18:698592271(500人已满)
</div>
<div>
群17:951348804(1000人已满)
</div>
<div>
群16:719211033(1000人已满)
</div>
<div>
群15:516984120(500人已满)
</div>
<div>
群14:465953250(500人已满)
</div>
<div>
群13:699478442(500人已满)
</div>
<div>
群12:884860657(500人已满)
</div>
<div>
群11:296811328(1000人已满)
</div>
<div>
群10:959059626(2000人已满)
</div>
<div>
群9:775128777(500人已满)
</div>
<div>
群8:695442854(500人已满)
</div>
<div>
群7:942061423(500人已满)
</div>
<div>
群6:697264024(2000人已满)
</div>
<div>
群5:731951419(500人已满)
</div>
<div>
群4:942702595(1000人已满)
</div>
<div>
群3:773794803(1000人已满)
</div>
<div>
群2:901474938(1000人已满)
</div>
<div>
群1:531031261(1000人已满)
</div>
<div>
官方QQ交流群
</div>
<div>
群26:147867597
<a
target=
"_blank"
href=
"//shang.qq.com/wpa/qunwpa?idkey=28a1a9a3e8f1866ee6a5f2b1caba05039e30d3ae1461e64b2ec31c095fcab951"
>
点此加入
</a></div>
<div>
群35:713420817(2000人已满)
</div>
<div>
群34:530305531(2000人已满)
</div>
<div>
群33:498071674(2000人已满)
</div>
<div>
群32:166188631(500人已满)
</div>
<div>
群31:567471669(500人已满)
</div>
<div>
群30:371046920(500人已满)
</div>
<div>
群29:202965481(500人已满)
</div>
<div>
群28:166188776(2000人已满
</div>
<div>
群27:811363410(2000人已满
</div>
<!-- <div>
群26:147867597(2000人已满)
</div>
-->
<div>
群25:165297000(500人已满)
</div>
<div>
群24:672494800(500人已满)
</div>
<div>
群23:599958679(500人已满)
</div>
<div>
群22:687186952(1000人已满)
</div>
<div>
群21:717019120(2000人已满)
</div>
<div>
群20:165796402(500人已满)
</div>
<div>
群19:165657124(1000人已满)
</div>
<div>
群18:698592271(500人已满)
</div>
<div>
群17:951348804(1000人已满)
</div>
<div>
群16:719211033(1000人已满)
</div>
<div>
群15:516984120(500人已满)
</div>
<div>
群14:465953250(500人已满)
</div>
<div>
群13:699478442(500人已满)
</div>
<div>
群12:884860657(500人已满)
</div>
<div>
群11:296811328(1000人已满)
</div>
<div>
群10:959059626(2000人已满)
</div>
<div>
群9:775128777(500人已满)
</div>
<div>
群8:695442854(500人已满)
</div>
<div>
群7:942061423(500人已满)
</div>
<div>
群6:697264024(2000人已满)
</div>
<div>
群5:731951419(500人已满)
</div>
<div>
群4:942702595(1000人已满)
</div>
<div>
群3:773794803(1000人已满)
</div>
<div>
群2:901474938(1000人已满)
</div>
<div>
群1:531031261(1000人已满)
</div>
</div>
</div>
<div class="contact-item">
...
...
@@ -133,4 +136,4 @@
<img src="https://img-cdn-qiniu.dcloud.net.cn/uniapp/doc/weixin.jpg" width="90" height="90"/>
</div>
</div>
</div>
\ No newline at end of file
</div>
docs/component/ad.md
0 → 100644
浏览文件 @
d0687aa9
#### ad
Banner 广告。
广告能力在不同小程序端实现不同,使用时需注意用
[
条件编译
](
https://uniapp.dcloud.io/platform
)
调用不同平台的代码。
-
微信小程序:
[
规范文档
](
https://developers.weixin.qq.com/miniprogram/dev/component/ad.html
)
-
百度小程序:
[
规范文档
](
https://smartprogram.baidu.com/docs/develop/component/ad/
)
-
支付宝小程序:不支持此能力
-
头条小程序:仅小游戏可用,小程序不可用,不适用于uni-app
-
QQ小程序:
[
规范文档
](
https://q.qq.com/wiki/develop/miniprogram/component/open-ability/ad.html
)
-
App平台:无需编码,在打包App时可直接勾选广告位,
[
详见
](
https://dcloud.io/dad.html
)
docs/component/barcode.md
浏览文件 @
d0687aa9
### Barcode
#### Barcode
app端nvue专用的扫码组件。
注意:此组件用于app端nvue页面实现内嵌到界面上的扫码。其他场景、其他平台,请使用全屏扫码API:
[
uni.scanCode
](
https://uniapp.dcloud.io/api/system/barcode
)
此组件自HBuilderX 2.1.5+起支持。
**属性说明**
设置Barcode扫码控件的属性,如扫码框、扫码条的颜色等。
...
...
@@ -28,10 +34,10 @@ filters|Array[Number] |[0,1,2]|否|条码类型过滤器,条码类型常量数
-
RSS14: RSS 14条形组合码,数值为14
-
RSSEXPANDED: 扩展式RSS条形组合码,数值为15
#### start(object)
####
#
start(object)
> 开始扫码识别
##### Object object
#####
#
Object object
属性|说明|类型|必填|备注
:--|:--|:--|:--|:--|
conserve|是否保存扫码成功时的截图|Boolean|否|如果设置为true则在扫码成功时将图片保存,并通过onmarked回调函数的file参数返回保存文件的路径。 默认值为false,不保存截图。
...
...
@@ -40,28 +46,28 @@ vibrate|扫码成功时是否需要震动提醒|Boolean|否|如果设置为true
sound|扫码成功时播放的提示音|String|否|可取值: "none" - 不播放提示音; "default" - 播放默认提示音(5+引擎内置)。 默认值为"default"。
#### cancel()
####
#
cancel()
> 取消扫码识别
参数|类型 |必填|说明
:--|:--|:--|:--|
无|无| 无| 结束对摄像头获取图片数据进行条码识别操作,同时关闭摄像头的视频捕获。 结束后可调用start方法重新开始识别。
#### setFlash(object)
####
#
setFlash(object)
> 操作闪光灯
##### Object object
#####
#
Object object
类型 |必填|说明|备注
:--|:--|:--|:--|
Boolean| 是| 是否开启闪光灯|可取值true或false,true表示打开闪光灯,false表示关闭闪光灯。
#### 事件
####
#
事件
#### marked
####
#
marked
> 条码识别成功事件
##### 返回参数说明
#####
#
返回参数说明
参数|类型 |说明
:--|:--|:--|
type|string|"success" 表示成功
...
...
@@ -70,10 +76,10 @@ code|Number|识别到的条码类型,与Barcode组件的条码类型常量一
file|string|扫码成功的截图文件路径,扫码识别到的截图,png格式文件,如果设置为不保存截图,则返回undefined。
#### error
####
#
error
> 条码识别错误事件
##### 返回参数说明
#####
#
返回参数说明
参数|类型 |说明
:--|:--|:--|
type|string|"fail" 表示失败
...
...
@@ -83,13 +89,13 @@ message|string|失败描述
**示例:**
```
html
<template>
<
div
>
<
view
>
<barcode
id=
'1'
class=
"barcode"
autostart=
"true"
ref=
"barcode"
background=
"rgb(0,0,0)"
frameColor=
"#1C86EE"
scanbarColor=
"#1C86EE"
:filters=
"fil"
@
marked=
"success1"
@
error=
"fail1"
></barcode>
<button
class=
"btn"
@
click=
"toStart"
>
开始扫码识别
</button>
<button
class=
"btn"
@
click=
"tocancel"
>
取消扫码识别
</button>
<button
class=
"btn"
@
click=
"toFlash"
>
开启闪光灯
</button>
<button
class=
"btn"
@
click=
"toscan"
>
预览
</button>
</
div
>
</
view
>
</template>
<script>
...
...
docs/component/official-account
浏览文件 @
d0687aa9
...
...
@@ -4,4 +4,4 @@
仅微信小程序平台支持,[规范详情](https://developers.weixin.qq.com/miniprogram/dev/component/official-account.html)
支付宝平台另提供了`lifestyle`组件,可关注支付宝生活号,[规范详情](https://docs.alipay.com/mini/component/lifestyle)
支付宝平台另提供了`lifestyle`组件,可关注支付宝生活号,[规范详情](https://docs.alipay.com/mini/component/lifestyle)
\ No newline at end of file
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录