我调用插件没什么反应
是不是哪里错了
代码如下
<template>
<view class="content">
<hycarmera @runMethod="getCarmera">
<image class="logo" src="/static/logo.png"></image>
<view class="text-area">
<text class="title">{{title}}</text>
</view>
</view>
</template>
<script>
import hycamera from "@/components/shusheng-hycamera/shusheng-hycamera.vue"
export default {
components: {
hycamera
},
data() {
return {
title: 'Hello'
}
},
onLoad() {
},
methods: {
getCarmera(type,res){
console.log(type,res)
//type 返回类型 photo 拍照 vedio 摄像
//res 返回数据 具体什么格式我也忘记了,自己打印去取
}
}
}
</script>
2 个回复
3***@qq.com (作者)
<template>
<view class="content">
<hycarmera @runMethod="getCarmera">
<image class="logo" src="/static/logo.png"></image>
<view class="text-area">
<text class="title">{{title}}</text>
</view>
</view>
</template>
<script>
import hycamera from "@/components/shusheng-hycamera/shusheng-hycamera.vue"
export default {
components: {
hycamera
},
data() {
return {
title: 'Hello'
}
},
onLoad() {
</script>
3***@qq.com (作者)