Commit 72b2a1b4 authored by Damon's avatar Damon

拍照手电筒

parent eed615cf
......@@ -5,7 +5,7 @@
<cover-image @click="setCameraInfo('devicePosition')" class="icon" mode="aspectFit"
src="/static/photo/icon-switch.png"></cover-image>
<cover-image @click="setCameraInfo('flash')" class="icon" mode="aspectFit"
:src="'/static/photo/icon-light-' + cameraInfo.flash +'.png'"></cover-image>
:src="'/static/photo/icon-flash-' + cameraInfo.flash +'.png'"></cover-image>
<cover-image @click="goPage('/pages/photo/setting')" class="icon" mode="aspectFit"
src="/static/photo/icon-setting.png"></cover-image>
</cover-view>
......@@ -63,7 +63,7 @@
standardShow: true,
cameraInfo: {
devicePosition: 'back',
flash: 'auto'
flash: 'off'
},
waterInfo: {
longitude: '', // 经度
......@@ -207,7 +207,7 @@
val = val === 'back' ? 'front' : 'back'
break;
case 'flash':
val = val === 'auto' ? 'on' : (val === 'on' ? 'off' : 'auto')
val = val === 'off' ? 'torch' : 'off'
break;
defalut:
......
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