flat: 暂存

This commit is contained in:
Apcallover
2024-04-19 15:55:13 +08:00
parent 4b8b50a923
commit 6db422ed44
4 changed files with 21 additions and 7 deletions

View File

@@ -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">

View File

@@ -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>

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.7 KiB

View File

@@ -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': '/'