diff --git a/src/components/miliu-autograph/miliu-autograph.vue b/src/components/miliu-autograph/miliu-autograph.vue index 911cd81..fafb713 100644 --- a/src/components/miliu-autograph/miliu-autograph.vue +++ b/src/components/miliu-autograph/miliu-autograph.vue @@ -1,228 +1,229 @@ diff --git a/src/pages/devicesSearch/ocrSearch.vue b/src/pages/devicesSearch/ocrSearch.vue index e29a35d..e54fc7e 100644 --- a/src/pages/devicesSearch/ocrSearch.vue +++ b/src/pages/devicesSearch/ocrSearch.vue @@ -186,7 +186,9 @@ export default { isOverToday: false, isShow: false, message: '', - position: 'bottom' // 'top' | 'bottom' + position: 'bottom', + screenHeight: null, + screenWidth: null, } }, onBackPress(options) { @@ -244,6 +246,11 @@ export default { const systemInfo = uni.getSystemInfoSync(); console.log('设备信息:', systemInfo); this.systemInfo = systemInfo; + // 获取屏幕高度和宽度 + const screenHeight = systemInfo.screenHeight; // 屏幕高度:1000 + const screenWidth = systemInfo.screenWidth; // 屏幕宽度:600 + this.screenHeight = screenHeight; + this.screenWidth = screenWidth; } catch (error) { console.error('获取设备信息失败:', error); } @@ -510,7 +517,7 @@ export default { // 拍照前先进行聚焦 console.log('拍照前聚焦...'); console.log('开始拍照...'); - CameraPreview.takePicture({width:640, height:540, quality: 50}, async (base64PictureData) => { + CameraPreview.takePicture({width:this.screenWidth, height:this.screenHeight, quality: 50}, async (base64PictureData) => { console.log('拍照返回数据',base64PictureData); await this.processImage(base64PictureData); }); diff --git a/src/pages/my/signature.vue b/src/pages/my/signature.vue index 19431e3..76d8ddc 100644 --- a/src/pages/my/signature.vue +++ b/src/pages/my/signature.vue @@ -8,7 +8,7 @@ 个人电子签名维护,支持手机拍照、上传图片以及手写签名,推荐使用手写签名,请横向书写签名!
- +
@@ -327,10 +327,10 @@ const uploadSignUrl = async (url) => { margin: 10rpx; border-radius: 20rpx; .btn { - width: 40%; - &:first-child { + width: 100%; + /* &:first-child { margin-right: 20px; - } + } */ } } .signature-page {