435 lines
11 KiB
Vue
435 lines
11 KiB
Vue
<template>
|
|
<div class="container">
|
|
<u-modal v-model="show" :content="content"></u-modal>
|
|
<view class="title-back">
|
|
<view class="left-father" @click="goBack">
|
|
<image class="back-img" src="https://www.focusnu.com/media/directive/index/left.png" />
|
|
<view style="font-size: 30rpx;">返回</view>
|
|
</view>
|
|
<view :class="statesTarget<2 ? `rightStautes`:statesTarget==2? `rightStautesred`:`rightStautesblue`">
|
|
{{ states[statesTarget] }}
|
|
</view>
|
|
</view>
|
|
<view class="white-content">
|
|
<view class="content-title">
|
|
<view class="content-weight">身份证上传</view>
|
|
<image class="content-img" src="https://www.focusnu.com/media/directive/index/bian.png" />
|
|
</view>
|
|
<view class="white-photo" @click="getMessage(headImge)">
|
|
<view class="photo-left">
|
|
<view class="photo-weight">人像面</view>
|
|
<view class="photo-font">请上传身份证人像面</view>
|
|
</view>
|
|
<view style="position: relative;">
|
|
<image class="photo" :src="headImge ? headImge : `https://www.focusnu.com/media/directive/index/IDcard.png`" />
|
|
<image v-if="!headImge"
|
|
style="position: absolute;top: 50%;left: 50%;width: 70rpx;height: 60rpx;transform: translate(-50%,-50%);"
|
|
src="https://www.focusnu.com/media/directive/index/takephoto.png" />
|
|
</view>
|
|
|
|
</view>
|
|
<view class="white-photo" style="margin-top: 30rpx;" @click="getMessage(backImge)">
|
|
<view class="photo-left">
|
|
<view class="photo-weight">国徽面</view>
|
|
<view class="photo-font">请上传身份证国徽面</view>
|
|
</view>
|
|
<view style="position: relative;">
|
|
<image class="photo" :src="backImge ? backImge : `https://www.focusnu.com/media/directive/index/backIDcard.png`" />
|
|
<image v-if="!backImge"
|
|
style="position: absolute;top: 50%;left: 50%;width: 70rpx;height: 60rpx;transform: translate(-50%,-50%);"
|
|
src="https://www.focusnu.com/media/directive/index/takephoto.png" />
|
|
</view>
|
|
|
|
</view>
|
|
<view class="white-message">
|
|
<view class="message-title">
|
|
<view class="shu"></view>
|
|
<view class="message-weight">
|
|
确认身份证信息
|
|
</view>
|
|
</view>
|
|
<view style="margin-bottom: 20rpx;">
|
|
<view v-for="(item,index) in nameArray" :key="index" class="one"
|
|
@click="openLook(textArray[index])">
|
|
<view class="one-left">{{item}}</view>
|
|
<view class="one-right">{{textArray[index] ? textArray[index] : "自动获取" }}</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view class="white-content" style="margin-top: 40rpx;">
|
|
<view class="content-title">
|
|
<view class="content-weight">营业执照上传</view>
|
|
<image class="content-img" src="https://www.focusnu.com/media/directive/index/bian.png" />
|
|
</view>
|
|
<view class="white-photo" @click="getMessage(headImge0)">
|
|
<view class="photo-left">
|
|
<view class="photo-weight">营业执照</view>
|
|
<view class="photo-font">请上传营业执照</view>
|
|
</view>
|
|
<view style="position: relative;">
|
|
<image class="photo" :src="headImge0 ? headImge0 : `https://www.focusnu.com/media/directive/index/zhizhao.png`" />
|
|
<image v-if="!headImge0"
|
|
style="position: absolute;top: 50%;left: 50%;width: 70rpx;height: 60rpx;transform: translate(-50%,-50%);"
|
|
src="https://www.focusnu.com/media/directive/index/takephoto.png" />
|
|
</view>
|
|
|
|
</view>
|
|
<view class="white-message">
|
|
<view class="message-title">
|
|
<view class="shu"></view>
|
|
<view class="message-weight">
|
|
确认企业信息
|
|
</view>
|
|
</view>
|
|
<view style="margin-bottom: 20rpx;">
|
|
<view v-for="(item,index) in nameArray0" :key="index" class="one"
|
|
@click="openLook(textArray0[index])">
|
|
<view class="one-left">{{item}}</view>
|
|
<view class="one-right">{{textArray0[index] ? textArray0[index] : "自动获取" }}</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view class="white-content" style="margin-top: 40rpx;">
|
|
<view class="white-message">
|
|
<view style="margin-bottom: 20rpx;">
|
|
<view v-for="(item,index) in nameArray1" :key="index" class="one"
|
|
@click="openLook(textArray1[index])">
|
|
<view class="one-left">{{item}}</view>
|
|
<view class="one-right">{{textArray1[index] ? textArray1[index] : "自动获取" }}</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view style="display: flex;width: 100%;margin-top: 40rpx;">
|
|
<view class="finish-button" @click="next" v-if="alldata.status==3 ||alldata.status==0">
|
|
重新提交
|
|
</view>
|
|
<view class="finish-button" v-if="alldata.status!=3 && alldata.status!=0" >
|
|
进入机构端
|
|
</view>
|
|
</view>
|
|
|
|
</div>
|
|
</template>
|
|
|
|
<script setup>
|
|
import {
|
|
ref,
|
|
reactive
|
|
} from 'vue'
|
|
import {
|
|
onLoad
|
|
} from '@dcloudio/uni-app';
|
|
import {
|
|
base_url
|
|
} from '@/request/index.js';
|
|
import { getrel } from '@/pages/addjigou/api/addjigou.js'
|
|
|
|
const show = ref(false);
|
|
const content = ref("");
|
|
|
|
const nameArray = ["姓名", "性别", "身份证号码", "民族", "出生日期", "住址", "签发机关", "有效期限"];
|
|
const textArray = reactive(["", "", "", "", "", "", "", ""]);
|
|
|
|
const headImge = ref("");
|
|
|
|
const headImge0 = ref("");
|
|
|
|
const nameArray0 = ["企业名称", "注册地址", "信用代码", "法人"];
|
|
const textArray0 = reactive(["", "", "", "", "", "", ""]);
|
|
|
|
const nameArray1 = ["机构位置","详细地址","机构负责人", "机构负责人电话", "房屋性质","建筑面积"];
|
|
const textArray1 = reactive([ "","", "", "", "", ""]);
|
|
|
|
const backImge = ref("");
|
|
|
|
const states = ["待提交","审核中", "审核通过", "审核未通过"];
|
|
|
|
const fontphoto = ref("");
|
|
const endphoto = ref("");
|
|
const statesTarget = ref(0);
|
|
|
|
|
|
// 本地保存的临时文件路径
|
|
const tempImagePath = ref('')
|
|
|
|
// 拍照并上传
|
|
function getMessage(url) {
|
|
uni.previewImage({
|
|
current: url, // 当前显示图片的链接
|
|
urls: [url], // 可以预览的图片列表
|
|
indicator: 'default', // 显示面板指示点,'default'|'number'|'none'
|
|
loop: true, // 是否可循环预览
|
|
longPressActions: {
|
|
itemList: ['保存图片'],
|
|
success: (data) => {
|
|
console.log('长按操作成功', data)
|
|
},
|
|
fail: (err) => {
|
|
console.error('长按操作失败', err)
|
|
}
|
|
}
|
|
})
|
|
}
|
|
|
|
|
|
const next = () => {
|
|
uni.setStorageSync('specicalid', alldata.value.id);
|
|
uni.setStorageSync("baddata",alldata.value)
|
|
uni.setStorageSync("backhuancun",{})
|
|
uni.navigateTo({
|
|
url: `/pages/addjigou/name`
|
|
});
|
|
}
|
|
|
|
const openLook = (res) => {
|
|
if (res) {
|
|
content.value = res;
|
|
show.value = true
|
|
}
|
|
}
|
|
const goBack = () => {
|
|
uni.navigateBack()
|
|
}
|
|
const alldata = ref("");
|
|
onLoad((options) => {
|
|
alldata.value = JSON.parse(options.element);
|
|
statesTarget.value = Number(alldata.value.status)
|
|
console.log("????",alldata.value,statesTarget.value)
|
|
let data = alldata.value
|
|
textArray[0] = data.name;
|
|
textArray[1] = data.sex;
|
|
textArray[2] = data.idCard;
|
|
textArray[3] = data.national;
|
|
textArray[4] = data.birthDate;
|
|
textArray[5] = data.idCardAddress;
|
|
textArray[6] = data.issuingAuthority;
|
|
textArray[7] = `${data.startTime}-${data.endTime}`;
|
|
headImge.value = `${base_url}/sys/common/static/${data.cardZmPath}`;
|
|
backImge.value = `${base_url}/sys/common/static/${data.cardFmPath}`;
|
|
|
|
textArray0[0] = data.comName;
|
|
textArray0[1] = data.comRegisterAddress;
|
|
textArray0[2] = data.comCreditCode;
|
|
textArray0[3] = data.comLegalPerson;
|
|
headImge0.value = `${base_url}/sys/common/static/${data.comBusinessLicense}`;
|
|
|
|
textArray1[0] = (data.orgProvince_dictText || "") + (data.orgCity_dictText || "") + (data.orgDistrict_dictText || "");
|
|
textArray1[1] = data.orgAddress;
|
|
textArray1[2] = data.orgLeader;
|
|
textArray1[3] = data.orgLeaderPhone;
|
|
textArray1[4] = data.orgPropertyType;
|
|
if(data.orgBuildingArea){
|
|
textArray1[5] = data.orgBuildingArea + '平方米';
|
|
}
|
|
})
|
|
</script>
|
|
|
|
<style lang="scss" scoped>
|
|
.container {
|
|
display: flex;
|
|
flex-direction: column;
|
|
min-height: 100vh;
|
|
width: 100%;
|
|
background-color: rgb(239, 241, 252);
|
|
position: relative;
|
|
box-shadow: 2rpx 2rpx 4rpx rgba(0, 0, 0, 0.1);
|
|
|
|
.white-content {
|
|
width: 90%;
|
|
margin-left: 5%;
|
|
// margin-top: 30rpx;
|
|
// height: 1200rpx;
|
|
border-radius: 35rpx;
|
|
background-color: rgb(245, 251, 254);
|
|
|
|
.content-title {
|
|
display: flex;
|
|
// align-items: center;
|
|
height: 100rpx;
|
|
position: relative;
|
|
|
|
.content-weight {
|
|
// font-size: 35rpx;
|
|
font-weight: 600;
|
|
margin-left: 70rpx;
|
|
margin-top: 20rpx;
|
|
}
|
|
|
|
.content-img {
|
|
position: absolute;
|
|
right: 0;
|
|
top: 0;
|
|
width: 400rpx;
|
|
height: 100%;
|
|
}
|
|
}
|
|
}
|
|
|
|
.white-photo {
|
|
width: 90%;
|
|
margin-left: 5%;
|
|
// margin-top: 30rpx;
|
|
height: 300rpx;
|
|
border-radius: 35rpx;
|
|
background-color: #fff;
|
|
box-shadow: 4rpx 4rpx 8rpx rgba(0, 0, 0, 0.1);
|
|
justify-content: space-around;
|
|
align-items: center;
|
|
display: flex;
|
|
|
|
.photo {
|
|
width: 300rpx;
|
|
height: 200rpx;
|
|
}
|
|
}
|
|
|
|
.white-message {
|
|
width: 90%;
|
|
margin-left: 5%;
|
|
margin-top: 30rpx;
|
|
margin-bottom: 30rpx;
|
|
// height: 800rpx;
|
|
border-radius: 35rpx;
|
|
background-color: #fff;
|
|
box-shadow: 4rpx 4rpx 8rpx rgba(0, 0, 0, 0.1);
|
|
justify-content: space-around;
|
|
// align-items: center;
|
|
display: flex;
|
|
flex-direction: column;
|
|
|
|
.message-title {
|
|
width: 100%;
|
|
height: 100rpx;
|
|
align-items: center;
|
|
display: flex;
|
|
|
|
.shu {
|
|
width: 10rpx;
|
|
height: 30rpx;
|
|
background-color: #0097FF;
|
|
border-radius: 10rpx;
|
|
margin: 0 20rpx 0 30rpx;
|
|
}
|
|
|
|
.message-weight {
|
|
font-size: 30rpx;
|
|
// font-weight: 600;
|
|
}
|
|
}
|
|
|
|
.one {
|
|
width: 90%;
|
|
margin-left: 5%;
|
|
border-bottom: 1rpx solid #d7d7d7;
|
|
height: 90rpx;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-bottom: 10rpx;
|
|
|
|
.one-left {
|
|
margin-left: 10rpx;
|
|
}
|
|
|
|
.one-right {
|
|
margin-right: 10rpx;
|
|
color: #999999;
|
|
overflow: hidden;
|
|
/* 隐藏超出内容 */
|
|
white-space: nowrap;
|
|
/* 不换行 */
|
|
text-overflow: ellipsis;
|
|
max-width: 300rpx;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
.photo-left {
|
|
.photo-weight {
|
|
font-size: 26rpx;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.photo-font {
|
|
font-size: 23rpx;
|
|
margin-top: 10rpx;
|
|
}
|
|
|
|
}
|
|
|
|
|
|
.finish-button {
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
width: 45%;
|
|
height: 100rpx;
|
|
margin: 0rpx auto;
|
|
margin-bottom: 80rpx;
|
|
color: #fff;
|
|
background: linear-gradient(to right, #00C9FF, #0076FF);
|
|
border-radius: 50rpx;
|
|
font-size: 35rpx;
|
|
}
|
|
|
|
.title-back {
|
|
width: 100%;
|
|
height: 100rpx;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-top: 180rpx;
|
|
}
|
|
|
|
.left-father {
|
|
display: flex;
|
|
align-items: center;
|
|
|
|
.back-img {
|
|
width: 50rpx;
|
|
height: 50rpx;
|
|
margin-left: 40rpx;
|
|
margin-right: 5rpx;
|
|
}
|
|
}
|
|
|
|
.rightStautes {
|
|
width: 170rpx;
|
|
height: 62rpx;
|
|
border-radius: 60rpx;
|
|
background-color: #FF913A;
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
color: #fff;
|
|
margin-right: 30rpx;
|
|
}
|
|
|
|
.rightStautesred {
|
|
width: 170rpx;
|
|
height: 62rpx;
|
|
border-radius: 60rpx;
|
|
background: linear-gradient(to right, #FF4A76, #FF553A);
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
color: #fff;
|
|
margin-right: 30rpx;
|
|
}
|
|
|
|
.rightStautesblue {
|
|
width: 170rpx;
|
|
height: 62rpx;
|
|
border-radius: 60rpx;
|
|
background: linear-gradient(to right, #00C9FF, #0076FF);
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
color: #fff;
|
|
margin-right: 30rpx;
|
|
}
|
|
</style> |