Commit 1322f684 authored by 潘永坪's avatar 潘永坪

相册页面放出

parent c75ee663
...@@ -463,14 +463,14 @@ ...@@ -463,14 +463,14 @@
"navigationStyle": "custom" "navigationStyle": "custom"
} }
}, },
// { {
// "path": "getPortrait", "path": "getPortrait",
// "style": { "style": {
// "navigationBarTitleText": "", "navigationBarTitleText": "",
// "enablePullDownRefresh": false, "enablePullDownRefresh": false,
// "navigationStyle": "custom" "navigationStyle": "custom"
// } }
// }, },
{ {
"path": "myPhotoAlbum/myPhotoAlbum", "path": "myPhotoAlbum/myPhotoAlbum",
"style": { "style": {
......
<template> <template>
<view class="big-box" :style="{'padding-top': statusBarHeight + 'px'}" v-if="statusBarHeight"> <view class="big-box" :style="{'padding-top': statusBarHeight + 'px'}" v-if="showBody">
<view class="nav-bar" :style="{'height': navHeight + 'px'}"></view> <view class="nav-bar" :style="{'height': navHeight + 'px'}"></view>
<text class="title">扫脸获取您的照片</text> <text class="title">扫脸获取您的照片</text>
<view class="scan"> <view class="scan">
...@@ -36,12 +36,16 @@ ...@@ -36,12 +36,16 @@
</view> </view>
</u-overlay> </u-overlay>
</view> </view>
<view v-else style="padding: 100rpx;text-align: center;font-size: 36rpx;">
升级中...
</view>
</template> </template>
<script> <script>
export default { export default {
data() { data() {
return { return {
showBody:false,
statusBarHeight: 0, statusBarHeight: 0,
capsule: 0, capsule: 0,
navHeight: 0, navHeight: 0,
...@@ -58,6 +62,27 @@ export default { ...@@ -58,6 +62,27 @@ export default {
} }
}, },
methods: { methods: {
//---加载图标
loadIcon(){
let data={
merchantType:0,//商户类型,其他
}
this.$request('scenic/merchantExtendProject/loadList',data).then((res)=>{
if(res.code=='00'){
let iconList=res.data||[]
let list=[]
iconList.forEach(item=>{
if(item.projectStatus==0){
list.push(item)
}
})
if(list.length>6){
this.showBody=true
this.openCamera()
}
}
})
},
returnClick() { returnClick() {
if(this.maskCount > 0) return if(this.maskCount > 0) return
this.maskShow = false this.maskShow = false
...@@ -145,7 +170,7 @@ export default { ...@@ -145,7 +170,7 @@ export default {
this.queryData = res.data this.queryData = res.data
this.takePhoto() this.takePhoto()
}else{ }else{
this.handleNotFound() this.handleNotFound()
uni.showToast({ uni.showToast({
title: '查询参数获取失败', title: '查询参数获取失败',
icon: 'none' icon: 'none'
...@@ -243,7 +268,8 @@ export default { ...@@ -243,7 +268,8 @@ export default {
uni.setScreenBrightness({ uni.setScreenBrightness({
value: 0.8, //屏幕亮度值,范围 0~1,0 最暗,1 最亮 value: 0.8, //屏幕亮度值,范围 0~1,0 最暗,1 最亮
}) })
this.openCamera() this.loadIcon()
} }
} }
</script> </script>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment