Commit 33ac4cab authored by Damon's avatar Damon

相机手电筒

parent f170223e
......@@ -6,7 +6,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 v-if="currentItem.partnerCompanyId" @click="changeType(3)" class="icon" mode="aspectFit"
src="/static/photo/icon-setting.png"></cover-image>
</cover-view>
......@@ -84,7 +84,7 @@
standardShow: false,
cameraInfo: {
devicePosition: 'back',
flash: 'auto'
flash: 'off'
},
waterInfo: {
longitude: '', // 经度
......@@ -222,7 +222,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