From 7309679527e4280d91e1551f50144dd34fb2143e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=94=90=E6=98=8E=E6=98=8E?= <970899069@qq.com> Date: Sat, 1 Jul 2023 17:41:19 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=A6=96=E9=A1=B5=E5=9B=BE?= =?UTF-8?q?=E7=89=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/index/assess/assess.js | 22 +++++++++++++--------- pages/index/index.wxml | 2 +- project.private.config.json | 2 +- 3 files changed, 15 insertions(+), 11 deletions(-) diff --git a/pages/index/assess/assess.js b/pages/index/assess/assess.js index ca4d540..136ca30 100644 --- a/pages/index/assess/assess.js +++ b/pages/index/assess/assess.js @@ -128,15 +128,19 @@ Page({ camera : 'front', success : path => { // 获取皮肤检测接口 - wx.cropImage({ - src: path.tempFiles[0].tempFilePath, // 图片路径 - cropScale: '3:4', // 裁剪比例 - success: res=> { - // 获取皮肤检测接口 - this.checkEnter(res.tempFilePath); - }, - complete: err => {} - }) + if(wx.cropImage){ + wx.cropImage({ + src: path.tempFiles[0].tempFilePath, // 图片路径 + cropScale: '3:4', // 裁剪比例 + success: res=> { + // 获取皮肤检测接口 + this.checkEnter(res.tempFilePath); + }, + complete: err => {} + }) + return + } + this.checkEnter(path.tempFiles[0].tempFilePath); } }) }, diff --git a/pages/index/index.wxml b/pages/index/index.wxml index 662ed45..4ec3965 100644 --- a/pages/index/index.wxml +++ b/pages/index/index.wxml @@ -20,7 +20,7 @@ - + diff --git a/project.private.config.json b/project.private.config.json index 61dddb9..dab4086 100644 --- a/project.private.config.json +++ b/project.private.config.json @@ -74,5 +74,5 @@ ] } }, - "libVersion": "2.26.2" + "libVersion": "2.32.3" } \ No newline at end of file