提交 25b163a4 编写于 作者: M mahaifeng

[choosefile]添加choosefile入口

上级 04327cac
......@@ -1121,6 +1121,15 @@
}
},
// #endif
// #ifdef APP-ANDROID
{
"path": "pages/API/choose-file/choose-file",
"group": "1,7,8",
"style": {
"navigationBarTitleText": "chooseFile | 选择文件"
}
},
// #endif
// // #ifdef APP
// {
// "path" : "pages/API/choose-media/choose-media",
......
<template>
<view>
<page-head :title="title"></page-head>
<button class="btnstyle" type="primary" @tap="chooseVideo">选择文件(video)</button>
<button class="btnstyle" type="primary" @tap="chooseImage">选择文件(image)</button>
<button class="btnstyle" type="primary" @tap='chooseAll'>选择文件(all)</button>
</view>
</template>
<script>
export default {
data() {
return {
title: 'choose-file'
}
},
methods: {
chooseVideo() {
// uni.chooseFile({
// type: 'video',
// success(res) {
// console.log(res)
// uni.showToast({
// title: 'success'
// })
// },
// complete(res) {
// console.log(res)
// }
// })
},
chooseImage() {
// uni.chooseFile({
// type: 'image',
// count: 90,
// success(res) {
// console.log(res)
// uni.showToast({
// title: 'success'
// })
// },
// complete(res) {
// console.log(res)
// }
// })
},
chooseAll() {
// uni.chooseFile({
// type: 'all',
// count: 1,
// success(res) {
// console.log(res)
// uni.showToast({
// title: 'success'
// })
// },
// complete(res) {
// console.log(res)
// }
// })
}
}
}
</script>
<style>
.btnstyle {
margin: 4px;
}
</style>
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册