Commit f54556aa authored by 李晓兵's avatar 李晓兵

'dabao'

parent 8f2ac57a
......@@ -24,7 +24,6 @@
<div class="pwd-forgotten" @click="pwdForgotten">忘记密码?</div>
</div>
<div class="button submit" @click="access">登录</div>
<div class="button submit" @click="test">测试</div>
</div>
</h-content>
<!-- <div style="width: 100%;height: 100%;background-color: #007aff;display: flex;justify-content: center;align-items: center;">
......@@ -120,46 +119,6 @@ export default {
clearPassword: function () {
this.password = ''
},
test(){
let vm = this
hlsPopup.showActionSheet({
titleText: '请选择照片',
buttonArray: ['拍照', '从相册取'],
callback: index => {
if (index === 0) {
vm.imgUploadOpenCamera()
} else {
vm.imgUploadTakePicture()
}
},
})
},
imgUploadOpenCamera () {
let vm = this
let cameraoptions = {
quality: 100,
}
let success = function (imgdata) {
alert('imgdata'+imgdata)
}
let error = function () {
hlsPopup.showLongCenter('请拍照')
}
hlsUtil.openCamera(cameraoptions, success, error)
},
imgUploadTakePicture () {
let vm = this
let cameraoptions = {
quality: 100,
}
let success = function (imgUrl) {
alert('imgUrl[0]'+imgUrl[0])
}
let error = function () {
}
vm.hlsUtil.takePicture(cameraoptions, success, error)
},
},
}
</script>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment