修改首页图片
This commit is contained in:
@@ -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);
|
||||
}
|
||||
})
|
||||
},
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
<view class="indexSingle">
|
||||
<image class="indexSingle-img" mode="widthFix" src="https://cdn.shuiganying.com/images/2023/05/18/ac3182087d2607104409f3fc988514c6.gif"></image>
|
||||
<image class="indexSingle-img" style="margin-top: -280rpx;" mode="widthFix" src="https://cdn.shuiganying.com/images/2023/05/18/a6dee6dbb61b03ffe0ca55896a77a4d4.png"></image>
|
||||
<image class="indexSingle-img" mode="widthFix" src="https://cdn.shuiganying.com/images/2023/05/17/d6068c61ae3d4d3ec4eb6e598a746d3c.png"></image>
|
||||
<image class="indexSingle-img" mode="widthFix" src="https://cdn.shuiganying.com/images/2023/07/01/142307c731c974a66f7d802087b361f8.png"></image>
|
||||
<image class="indexSingle-img" mode="widthFix" src="https://cdn.shuiganying.com/images/2023/05/17/88be57f403db19a0413b93045bd406d8.png"></image>
|
||||
</view>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user