Commit 7e2e1b78 authored by JingChao's avatar JingChao

Updates angular/hlsUtil.md

Auto commit by GitBook Editor
parent d3ca04ce
......@@ -170,6 +170,7 @@ vm.showSheet = function () {
- 参数2`(成功回调函数 function)` 回调函数返回图片的base64
- 参数3`(失败回调函数 function)` 返回具体错误
- 调用实例如下
```javascript
vm.openCamera = function () {
var obj = {
......@@ -195,6 +196,7 @@ vm.showSheet = function () {
- 参数2`(成功回调函数 function)` 回调函数返回图片的地址
- 参数3`(失败回调函数 function)` 返回具体错误
- 调用实例如下
```javascript
vm.takePicture = function () {
var obj = {
......@@ -226,6 +228,7 @@ vm.showSheet = function () {
- 参数 `file_path`目标文件地址
- 参数 `file_type`文件类型 需带上`.`如`.docx`
- 调用实例如下
```javascript
function openFile () {
hlsUtil.file_view({'file_path': "/u01/web/guohuan_dev/web/attment/20160221", "file_type": ".docx"});
......@@ -236,6 +239,7 @@ vm.showSheet = function () {
- 图片展示放大查看,支持双指缩放
- 参数1 `图片路径或base64`
- 调用方法如下
```javascript
vm.pic = 'build/img/login/icon.png';
vm.showPicture = function (pic) {
......@@ -251,6 +255,7 @@ vm.showSheet = function () {
- 参数4 `object`当前下拉框的父对象
- 参数5 `function`回调函数function,返回index 选择的list集合的index和下拉框的父对象,会在对象中插入code和code_n字段
- 调用实例如下
```javascript
vm.test = {}
vm.selectBpType = function () {
......@@ -281,6 +286,7 @@ vm.test = {}
- 参数3 `object`当前下拉框的父对象
- 参数4 `function`回调函数function,返回index 选择的list集合的index和下拉框的父对象,会在对象中插入code和code_n字段
- 调用实例如下
```javascript
vm.selectBrand = function () {
hlsUtil.selectSearchList(vm.brands, 'brand_id', vm.test, function (index, result) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment