收藏
回答

小程序使用van-uploader 上传的照片如何区分是拍照还是相册?

<van-uploader
      preview-size="120rpx"
      multiple="{{true}}"
      disabled="{{disabled}}"
      useBeforeRead="{{true}}"
      name="{{dataJsonObj.fieldCode}}"
      accept="{{accept}}"
      max-count="{{dataJsonObj.maxCount||9}}"
      max-size="{{dataJsonObj.inputType=='uploadImg'?(200*1024*1024):(80*1024*1024)}}"
      upload-icon="plus"
      file-list="{{fileList}}"
      deletable="{{!disabled}}"
      show-upload="{{!disabled}}"
      bind:oversize="oversize"
      bind:before-read="beforeRead"
      bind:after-read="afterRead"
      bind:delete="delete"
      bind:longpress="longpressFn"
    />
回答关注问题邀请回答
收藏
登录 后发表内容