|
|
|
|
@ -1,8 +1,8 @@
|
|
|
|
|
<template>
|
|
|
|
|
<view>
|
|
|
|
|
<u-mask :show="isShow" :isBack="false">
|
|
|
|
|
<cpn-navbar title="拍照上传"></cpn-navbar>
|
|
|
|
|
<view class="content">
|
|
|
|
|
<cpn-navbar title="拍照上传" id='record-nav-bar'></cpn-navbar>
|
|
|
|
|
<view class="content" :style="{'height':`calc(100vh - ${height}px)`}">
|
|
|
|
|
<view class="content__img">
|
|
|
|
|
<u-upload ref="uUpload" :custom-btn="true" :action="action" :auto-upload="false"
|
|
|
|
|
:source-type="['camera']">
|
|
|
|
|
@ -32,6 +32,7 @@
|
|
|
|
|
},
|
|
|
|
|
data() {
|
|
|
|
|
return {
|
|
|
|
|
height: 1400,
|
|
|
|
|
btnStyle1: {
|
|
|
|
|
letterSpacing: "4rpx",
|
|
|
|
|
fontWeight: "600",
|
|
|
|
|
@ -70,6 +71,12 @@
|
|
|
|
|
computed: {
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
mounted() {
|
|
|
|
|
const query = uni.createSelectorQuery().in(this);
|
|
|
|
|
query.select('#record-nav-bar').boundingClientRect(data => {
|
|
|
|
|
this.height = data.height
|
|
|
|
|
}).exec();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
@ -100,7 +107,7 @@
|
|
|
|
|
position: absolute;
|
|
|
|
|
left: 30rpx;
|
|
|
|
|
right: 30rpx;
|
|
|
|
|
bottom: 60rpx;
|
|
|
|
|
bottom: 40rpx;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|