收藏
回答

pc端小程序使用camera组件,mode=scanCode,scanCode事件不会触发?

<template>

  <view class="binding-code-scan-page">

    <view class="camera-wrapper">

      <camera

        mode="scanCode"

        flash="off"

        @scancode="handleScanCode"

      />

    </view>

    <view class="tip-text">

      <text>请对准水洗码进行扫码</text>

    </view>

  </view>

</template>


回答关注问题邀请回答
收藏

1 个回答

  • 智能回答 智能回答 本次回答由AI生成
    03-05
    有用
    回复
登录 后发表内容