|
|
@@ -23,10 +23,8 @@ |
|
|
<div class="uploadText">上传照片</div> |
|
|
<div class="uploadText">上传照片</div> |
|
|
</div> |
|
|
</div> |
|
|
<div id="action" @click="takePicture"> |
|
|
<div id="action" @click="takePicture"> |
|
|
<view v-show="showTakeTips" class="takeTips1">请把脸面向摄像头</view> |
|
|
|
|
|
<view v-show="showTakeTips" class="takeTips2" |
|
|
|
|
|
>点击三秒后开始拍照 |
|
|
|
|
|
</view> |
|
|
|
|
|
|
|
|
<view v-show="showTakeTips" class="takeTips1"> 请正视摄像头</view> |
|
|
|
|
|
<view v-show="showTakeTips" class="takeTips2"> 点击开始拍照 </view> |
|
|
<div class="circleInside"></div> |
|
|
<div class="circleInside"></div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
@@ -39,10 +37,13 @@ |
|
|
|
|
|
|
|
|
<div class="confirm" @click="confirmPhoto"> |
|
|
<div class="confirm" @click="confirmPhoto"> |
|
|
<!-- <img src="../../assets/img/success.png" /> --> |
|
|
<!-- <img src="../../assets/img/success.png" /> --> |
|
|
<div class="sure">确定</div> |
|
|
|
|
|
|
|
|
<!-- <div class="sure">确定</div> |
|
|
|
|
|
|
|
|
<div class="uploadText"> |
|
|
<div class="uploadText"> |
|
|
就这张了 <img src="../../assets/img/success.png" /> |
|
|
就这张了 <img src="../../assets/img/success.png" /> |
|
|
|
|
|
</div> --> |
|
|
|
|
|
<div class="sure"> |
|
|
|
|
|
<div class="uploadText">就这张了 ✔</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
|
|
|
@@ -594,9 +595,12 @@ onLoad((options) => { |
|
|
|
|
|
|
|
|
onMounted(() => { |
|
|
onMounted(() => { |
|
|
clearInterval(timer.value); |
|
|
clearInterval(timer.value); |
|
|
startCamera(); |
|
|
|
|
|
|
|
|
|
|
|
const CimageUrl = uni.getStorageSync("CcurrentUrl"); |
|
|
const CimageUrl = uni.getStorageSync("CcurrentUrl"); |
|
|
const UimageUrl = uni.getStorageSync("UcurrentUrl"); |
|
|
const UimageUrl = uni.getStorageSync("UcurrentUrl"); |
|
|
|
|
|
if (!CimageUrl) { |
|
|
|
|
|
startCamera(); |
|
|
|
|
|
} |
|
|
if (CimageUrl || UimageUrl) { |
|
|
if (CimageUrl || UimageUrl) { |
|
|
setTimeout(async () => { |
|
|
setTimeout(async () => { |
|
|
showQrCode.value = false; |
|
|
showQrCode.value = false; |
|
|
@@ -645,15 +649,15 @@ onUnload(() => { |
|
|
|
|
|
|
|
|
<style lang="scss" scoped> |
|
|
<style lang="scss" scoped> |
|
|
:deep(.uni-toast) { |
|
|
:deep(.uni-toast) { |
|
|
width: 300rpx; |
|
|
|
|
|
font-size: 50rpx; |
|
|
|
|
|
|
|
|
width: 500rpx; |
|
|
|
|
|
font-size: 70rpx; |
|
|
font-weight: 900; |
|
|
font-weight: 900; |
|
|
padding: 20rpx 30rpx; |
|
|
padding: 20rpx 30rpx; |
|
|
color: #ff4f00; |
|
|
color: #ff4f00; |
|
|
|
|
|
|
|
|
.uni-toast__icon { |
|
|
.uni-toast__icon { |
|
|
width: 50rpx !important; |
|
|
|
|
|
height: 50rpx !important; |
|
|
|
|
|
|
|
|
width: 70rpx !important; |
|
|
|
|
|
height: 70rpx !important; |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
.page { |
|
|
.page { |
|
|
@@ -820,8 +824,22 @@ onUnload(() => { |
|
|
width: 100%; |
|
|
width: 100%; |
|
|
height: 50rpx; |
|
|
height: 50rpx; |
|
|
line-height: 50rpx; |
|
|
line-height: 50rpx; |
|
|
background-color: #2ba245; |
|
|
|
|
|
|
|
|
line-height: 50rpx; |
|
|
|
|
|
background-color: #ff4f00; |
|
|
border-radius: 15rpx; |
|
|
border-radius: 15rpx; |
|
|
|
|
|
.uploadText { |
|
|
|
|
|
// position: absolute; |
|
|
|
|
|
// left: 50%; |
|
|
|
|
|
// bottom: -40rpx; |
|
|
|
|
|
// width: 150%; |
|
|
|
|
|
|
|
|
|
|
|
width: 100%; |
|
|
|
|
|
height: 30rpx; |
|
|
|
|
|
line-height: 50rpx; |
|
|
|
|
|
font-size: 20rpx; |
|
|
|
|
|
// transform: translateX(-32%); |
|
|
|
|
|
text-align: center; |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
.uploadText { |
|
|
.uploadText { |
|
|
// position: absolute; |
|
|
// position: absolute; |
|
|
|