flat: 暂存
This commit is contained in:
@@ -58,7 +58,8 @@
|
|||||||
<view class="card_title">证件资料</view>
|
<view class="card_title">证件资料</view>
|
||||||
<view class="card_content">
|
<view class="card_content">
|
||||||
<u-form-item labelWidth="100" prop="identityUrl4Id">
|
<u-form-item labelWidth="100" prop="identityUrl4Id">
|
||||||
<UploadIdNumber v-model="formData.identityUrl4Id" backImg="/static/img/idcard.png">
|
<UploadIdNumber v-model="formData.identityUrl4Id" contentStyle="marginTop: 30rpx"
|
||||||
|
backImg="/static/img/idcard.png">
|
||||||
</UploadIdNumber>
|
</UploadIdNumber>
|
||||||
</u-form-item>
|
</u-form-item>
|
||||||
<u-form-item labelWidth="100" prop="identityUrl5Id">
|
<u-form-item labelWidth="100" prop="identityUrl5Id">
|
||||||
|
|||||||
@@ -1,8 +1,10 @@
|
|||||||
<template>
|
<template>
|
||||||
<view class="content">
|
<view class="content_upload" :style="contentStyle">
|
||||||
<u-upload :fileList="ImgUrl" @afterRead="afterRead" :deletable="true" @delete="deletePic" name="6" :maxCount="1"
|
<u-upload :fileList="ImgUrl" @afterRead="afterRead" :deletable="true" @delete="deletePic" name="6" :maxCount="1"
|
||||||
:width="width" :height="height">
|
:width="width" :height="height">
|
||||||
<image :src="backImg" mode="widthFix" :style="`width: ${width}px;height: ${height}px;`"></image>
|
<image :src="backImg" :style="`width: ${width}px;height: ${height}px;`"></image>
|
||||||
|
<image class="iconimg" src="/static/img/Takingpictures.png"
|
||||||
|
:style="`width: ${width/4}px;height: ${width/4}px;`"></image>
|
||||||
</u-upload>
|
</u-upload>
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
@@ -24,12 +26,16 @@
|
|||||||
},
|
},
|
||||||
width: {
|
width: {
|
||||||
type: Number,
|
type: Number,
|
||||||
default: 250
|
default: 280
|
||||||
},
|
},
|
||||||
height: {
|
height: {
|
||||||
type: Number,
|
type: Number,
|
||||||
default: 150
|
default: 150
|
||||||
},
|
},
|
||||||
|
contentStyle: {
|
||||||
|
type: String,
|
||||||
|
default: ''
|
||||||
|
}
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
ImgUrl(val) {
|
ImgUrl(val) {
|
||||||
@@ -55,7 +61,14 @@
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped>
|
<style scoped>
|
||||||
.content {
|
.content_upload {
|
||||||
margin: 20rpx 0 0 0;
|
position: relative;
|
||||||
|
}
|
||||||
|
|
||||||
|
.iconimg {
|
||||||
|
position: absolute;
|
||||||
|
left: 50%;
|
||||||
|
top: 50%;
|
||||||
|
transform: translate(-50%, -50%);
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
BIN
static/img/Takingpictures.png
Normal file
BIN
static/img/Takingpictures.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 2.7 KiB |
@@ -3,7 +3,7 @@ module.exports = {
|
|||||||
port: 1887,
|
port: 1887,
|
||||||
proxy: {
|
proxy: {
|
||||||
'/api': {
|
'/api': {
|
||||||
target: 'http://localhost:8000',
|
target: 'http://192.168.1.106:8000',
|
||||||
ws: true,
|
ws: true,
|
||||||
pathRewrite: {
|
pathRewrite: {
|
||||||
'^/api': '/'
|
'^/api': '/'
|
||||||
|
|||||||
Reference in New Issue
Block a user