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

相册页面放出

parent c75ee663
......@@ -463,14 +463,14 @@
"navigationStyle": "custom"
}
},
// {
// "path": "getPortrait",
// "style": {
// "navigationBarTitleText": "",
// "enablePullDownRefresh": false,
// "navigationStyle": "custom"
// }
// },
{
"path": "getPortrait",
"style": {
"navigationBarTitleText": "",
"enablePullDownRefresh": false,
"navigationStyle": "custom"
}
},
{
"path": "myPhotoAlbum/myPhotoAlbum",
"style": {
......
<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>
<text class="title">扫脸获取您的照片</text>
<view class="scan">
......@@ -36,12 +36,16 @@
</view>
</u-overlay>
</view>
<view v-else style="padding: 100rpx;text-align: center;font-size: 36rpx;">
升级中...
</view>
</template>
<script>
export default {
data() {
return {
showBody:false,
statusBarHeight: 0,
capsule: 0,
navHeight: 0,
......@@ -58,6 +62,27 @@ export default {
}
},
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() {
if(this.maskCount > 0) return
this.maskShow = false
......@@ -145,7 +170,7 @@ export default {
this.queryData = res.data
this.takePhoto()
}else{
this.handleNotFound()
this.handleNotFound()
uni.showToast({
title: '查询参数获取失败',
icon: 'none'
......@@ -243,7 +268,8 @@ export default {
uni.setScreenBrightness({
value: 0.8, //屏幕亮度值,范围 0~1,0 最暗,1 最亮
})
this.openCamera()
this.loadIcon()
}
}
</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