From a1a7c2aed860d1a1bb1ac377a69cdeacb7609cb9 Mon Sep 17 00:00:00 2001
From: zhangwei <1504152376@qq.com>
Date: 星期五, 11 十月 2024 09:16:42 +0800
Subject: [PATCH] -
---
src/components/tem/tem-session.vue | 115 +++++++++++++++++++++++++++++----------------------------
1 files changed, 58 insertions(+), 57 deletions(-)
diff --git a/src/components/tem/tem-session.vue b/src/components/tem/tem-session.vue
index 28a8a7d..2d1340b 100644
--- a/src/components/tem/tem-session.vue
+++ b/src/components/tem/tem-session.vue
@@ -143,60 +143,61 @@
videoCtx.takePhoto({
quality: 'original',
success: (e) => {
+ console.log(e.tempImagePath,'e.tempImagePath');
//涓婁紶鐓х墖鎺ュ彛锛屽浘鐗囨崲鎴愯繙绔痷rl鍦板潃 鑷鏇挎崲
- uploadImage(e.tempImagePath).then((res) => {
- this.setData({
- faceImg: res
- })
- wx.showLoading({
- title: '姝e湪楠岃瘉',
- })
+ // uploadImage(e.tempImagePath).then((res) => {
+ // this.setData({
+ // faceImg: res
+ // })
+ // wx.showLoading({
+ // title: '姝e湪楠岃瘉',
+ // })
- try {
- // 鎵ц鍚庣鍒嗘瀽浜鸿劯
- api({
- img: res
- }).then((writeoffRes) => {
- //璇嗗埆鎴愬姛
- //鑷澶勭悊璇嗗埆鎴愬姛缁撴灉
- }).catch(err => {
- wx.hideLoading();
- wx.showModal({
- title: err.msg,
- showCancel: false,
- confirmText: '閲嶆柊鏍搁獙',
- complete: (res) => {
- if (res.confirm) {
- this.setData({
- startVerify: false,
- faceImg: "",
- verifyText: '璇风Щ鍔ㄩ潰瀹瑰埌妗嗗唴',
- isCentre: false,
- face: {}
- }, () => {
- this.handleStart()
- })
- }
- }
- })
- })
- } catch (error) {
- console.log(error)
- }
- }).catch(() => {
- this.setData({
- startVerify: false,
- faceImg: "",
- verifyText: '璇风Щ鍔ㄩ潰瀹瑰埌妗嗗唴',
- isCentre: false,
- face: {}
- }, () => {
- this.handleStart()
- wx.showToast({
- title: '缃戠粶杩炴帴澶辫触锛岃閲嶈瘯',
- })
- })
- })
+ // try {
+ // // 鎵ц鍚庣鍒嗘瀽浜鸿劯
+ // api({
+ // img: res
+ // }).then((writeoffRes) => {
+ // //璇嗗埆鎴愬姛
+ // //鑷澶勭悊璇嗗埆鎴愬姛缁撴灉
+ // }).catch(err => {
+ // wx.hideLoading();
+ // wx.showModal({
+ // title: err.msg,
+ // showCancel: false,
+ // confirmText: '閲嶆柊鏍搁獙',
+ // complete: (res) => {
+ // if (res.confirm) {
+ // this.setData({
+ // startVerify: false,
+ // faceImg: "",
+ // verifyText: '璇风Щ鍔ㄩ潰瀹瑰埌妗嗗唴',
+ // isCentre: false,
+ // face: {}
+ // }, () => {
+ // this.handleStart()
+ // })
+ // }
+ // }
+ // })
+ // })
+ // } catch (error) {
+ // console.log(error)
+ // }
+ // }).catch(() => {
+ // this.setData({
+ // startVerify: false,
+ // faceImg: "",
+ // verifyText: '璇风Щ鍔ㄩ潰瀹瑰埌妗嗗唴',
+ // isCentre: false,
+ // face: {}
+ // }, () => {
+ // this.handleStart()
+ // wx.showToast({
+ // title: '缃戠粶杩炴帴澶辫触锛岃閲嶈瘯',
+ // })
+ // })
+ // })
}
})
})
@@ -298,15 +299,15 @@
}
.camera {
- width: 600rpx;
- height: 600rpx;
- border-radius: 50% 50%;
+ width: 800rpx;
+ height: 800rpx;
+ /* border-radius: 50% 50%; */
margin: 0 auto;
}
.faceImg {
- width: 600rpx;
- height: 600rpx;
+ width: 800rpx;
+ height: 800rpx;
border-radius: 50% 50%;
margin: 0 auto;
position: absolute;
--
Gitblit v1.9.1