| | |
| | | <!-- |
| | | * @Date: 2019-08-30 18:04:49 |
| | | * @LastEditors: zxq |
| | | * @LastEditTime: 2022-08-05 15:00:48 |
| | | * @LastEditTime: 2022-08-05 15:04:19 |
| | | * @Description: |
| | | --> |
| | | <template> |
| | |
| | | ></van-action-sheet> --> |
| | | <van-action-sheet v-model="selectModel" cancel-text="取消" title="上传身份证"> |
| | | <div class="content"> |
| | | <div class="upload_input"> |
| | | <div class="upload_input" @click="handleMenuSelect"> |
| | | <div>拍照</div> |
| | | <input |
| | | style="cursor:pointer;width:100%;opacity:0;" |
| | |
| | | capture="camera" |
| | | /> |
| | | </div> |
| | | <div class="upload_input"> |
| | | <div class="upload_input" @click="handleMenuSelect"> |
| | | <div>本地相册上传</div> |
| | | <input |
| | | style="cursor:pointer;width:100%;opacity: 0;" |
| | |
| | | ...mapMutations([SET_APP_LOADING]), |
| | | // 处理图片上传的事件(deleteIndex---删除图片的索引) |
| | | handlePhotoChange: function(evt,type) { |
| | | this.selectModel = false; |
| | | let that = this; |
| | | let shebei = this.judgeBrand(navigator.userAgent.toLowerCase()); |
| | | that.SET_APP_LOADING(true); |
| | |
| | | }, |
| | | // 选择拍照或者相册选项 |
| | | handleMenuSelect(index) { |
| | | console.log( this.$children[0] ) |
| | | if (index === 0) { |
| | | this.$refs.androidInputFileCapture.click(); |
| | | } else { |
| | | this.$refs.androidInputFileImage.click(); |
| | | } |
| | | // if (index === 0) { |
| | | // this.$refs.androidInputFileCapture.click(); |
| | | // } else { |
| | | // this.$refs.androidInputFileImage.click(); |
| | | // } |
| | | this.selectModel = false; |
| | | }, |
| | | // 处理图片的删除 |