提交 bb1ab9c7 authored 作者: 常超凡's avatar 常超凡

99

上级 2287733f
...@@ -291,14 +291,6 @@ Page({ ...@@ -291,14 +291,6 @@ Page({
all_state: true all_state: true
}) })
that.listener.stop() that.listener.stop()
// if (this.data.all_state === false) {
// console.log('全部完成后进行放大拍照')
// that.takePhoto2()
// that.setData({
// all_state: true
// })
// that.listener.stop()
// }
} }
} else { } else {
console.log('拍照失败') console.log('拍照失败')
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
<view class="step-item {{stepIndex > 2 ? 'step-active' : ''}}">验证</view> <view class="step-item {{stepIndex > 2 ? 'step-active' : ''}}">验证</view>
</view> </view>
</view> </view>
<view class="photo" style="position: relative;flex:1;background-color: black;"> <view class="photo" style="position: relative;background-color: black;">
<camera style="height: 100%;width: 100%;" flash="on" devic-position="back" frame-size="large"> <camera style="height: 100%;width: 100%;" flash="on" devic-position="back" frame-size="large">
</camera> </camera>
<!-- 拍照框(正方形) --> <!-- 拍照框(正方形) -->
...@@ -19,3 +19,9 @@ ...@@ -19,3 +19,9 @@
</view> </view>
</view> </view>
</view> </view>
<view style="position:fixed; top: 999999999px;">
<canvas canvas-id="myCanvas" style='width:{{frame.width}}px; height:{{frame.height}}px;'></canvas>
<image src="{{src}}" mode="widthFix" style='width: {{windowWidth}}px; height: {{windowWidth}}px;border: 1px solid red; '></image>
</view>
\ No newline at end of file
...@@ -9,29 +9,39 @@ ...@@ -9,29 +9,39 @@
box-sizing: border-box; box-sizing: border-box;
} }
.takephoto .focus { .takephoto .photo .focus {
position: absolute; position: absolute;
top: 50%; top: 50%;
left: 50%; left: 50%;
transform: translate(-50%,-50%); transform: translate(-50%, -50%);
width: 400rpx; width: 400rpx;
z-index: 9999; z-index: 99999;
} }
.takephoto .focus { /* .takephoto .focus {
position: absolute; position: absolute;
top: 50%; top: 50%;
left: 50%; left: 50%;
transform: translate(-50%,-50%); transform: translate(-50%, -50%);
width: 400rpx; width: 400rpx;
z-index: 99999;
} */
.takephoto .photo {
flex: 1;
height: 400rpx;
} }
.step,.step-box,.bottom,.tabs { .step,
.step-box,
.bottom,
.tabs {
display: flex; display: flex;
justify-content: center; justify-content: center;
text-align: center; text-align: center;
} }
.step .step-item { .step .step-item {
padding: 0 20rpx; padding: 0 20rpx;
height: 80rpx; height: 80rpx;
...@@ -41,7 +51,7 @@ ...@@ -41,7 +51,7 @@
background-color: #ADADAD; background-color: #ADADAD;
} }
.bottom .tabs .tabItem{ .bottom .tabs .tabItem {
height: 80rpx; height: 80rpx;
line-height: 80rpx; line-height: 80rpx;
min-width: 200rpx; min-width: 200rpx;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论