This commit is contained in:
Teng 2025-06-23 17:31:43 +08:00
parent 53abf9b335
commit db99ea4e7f
54 changed files with 1766 additions and 479 deletions

View File

@ -17,8 +17,8 @@
// //
const src = ref('') // const src = ref('') //
const type = ref(0); const type = ref(0);
const width = ref(600); const width = ref(900);
const height = ref(400); const height = ref(600);
// //
const handleCrop = (e) => { const handleCrop = (e) => {
// console.log("") // console.log("")
@ -30,8 +30,8 @@
//type //type
type.value = options.type type.value = options.type
if(options.size){ if(options.size){
width.value = 900; width.value = 1500;
height.value = 600; height.value = 1000;
} }
}); });
</script> </script>

View File

@ -178,6 +178,7 @@
const next = () => { const next = () => {
uni.setStorageSync('specicalid', alldata.value.id); uni.setStorageSync('specicalid', alldata.value.id);
uni.setStorageSync("baddata",alldata.value) uni.setStorageSync("baddata",alldata.value)
uni.setStorageSync("backhuancun",{})
uni.navigateTo({ uni.navigateTo({
url: `/pages/addjigou/name` url: `/pages/addjigou/name`
}); });

View File

@ -1,33 +1,37 @@
<template> <template>
<div class="container"> <div class="container">
<u-modal v-model="show" :content="content"></u-modal> <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>
<view class="white-content"> <view class="white-content">
<view class="content-title"> <view class="content-title">
<view class="content-weight">营业执照上传</view> <view class="shu"></view>
<image class="content-img" src="https://www.focusnu.com/media/directive/index/bian.png" /> <view class="content-weight">营业执照</view>
</view> </view>
<view class="white-photo" @click="getMessage"> <view class="white-photo" @click="selectphoto">
<view class="photo-left"> <view class="photo-left">
<view class="photo-weight">营业执照</view> <view class="photo-weight">营业执照</view>
<view class="photo-font">请上传营业执照</view> <view class="photo-font">请上传营业执照</view>
</view> </view>
<view style="position: relative;"> <view style="position: relative;">
<image class="photo" :src="headImge ? headImge : `https://www.focusnu.com/media/directive/index/zhizhao.png`" /> <image class="photo"
:src="headImge ? headImge : `https://www.focusnu.com/media/directive/index/zhizhao.png`" />
<image v-if="!headImge" <image v-if="!headImge"
style="position: absolute;top: 50%;left: 50%;width: 70rpx;height: 60rpx;transform: translate(-50%,-50%);" 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" /> src="https://www.focusnu.com/media/directive/index/takephoto.png" />
</view> </view>
</view> </view>
<view class="white-message"> <view class="content-title">
<view class="message-title">
<view class="shu"></view> <view class="shu"></view>
<view class="message-weight"> <view class="content-weight">企业信息</view>
确认企业信息
</view> </view>
</view> <view class="white-message">
<view style="margin-bottom: 20rpx;"> <view>
<view v-for="(item,index) in nameArray" :key="index" class="one" <view v-for="(item,index) in nameArray" :key="index" class="one"
@click="openLook(textArray[index])"> @click="openLook(textArray[index])">
<view class="one-left">{{item}}</view> <view class="one-left">{{item}}</view>
@ -38,7 +42,7 @@
</view> </view>
</view> </view>
<view class="gray-font"> <view class="gray-font">
<view class="">注意事项:</view> <view style="color: #333333;margin-bottom: 30rpx;">注意事项:</view>
<view class="gray-text"> <view class="gray-text">
1. 运用企业个体工商户政府事业单位学校组织等账号归属企业 1. 运用企业个体工商户政府事业单位学校组织等账号归属企业
</view> </view>
@ -49,14 +53,15 @@
3.所有上传信息均会被妥善保管不会用于其他商业用途或传输给其他第三方 3.所有上传信息均会被妥善保管不会用于其他商业用途或传输给其他第三方
</view> </view>
</view> </view>
<view style="display: flex;width: 100%;"> <view style="display: flex;width: 100%;padding: 0 20rpx;">
<view class="finish-button" @click="goBack"> <view class="back-button" @click="goBack">
上一步 返回上一步
</view> </view>
<view class="finish-button" @click="next"> <view class="finish-button" @click="next">
下一步 确认并继续
</view> </view>
</view> </view>
<u-action-sheet :list="bottomlist" @click="photoclick" v-model="bottomshow"></u-action-sheet>
</div> </div>
</template> </template>
@ -81,21 +86,49 @@
const nameArray = ["企业名称", "注册地址", "信用代码", "法人"]; const nameArray = ["企业名称", "注册地址", "信用代码", "法人"];
const textArray = reactive(["", "", "", ""]); const textArray = reactive(["", "", "", ""]);
const bottomlist = [{
text: '拍摄图片'
}, {
text: '图片预览'
}]
const bottomshow = ref(false)
// //
const tempImagePath = ref('') const tempImagePath = ref('')
const selectphoto = (number) =>{
if( headImge.value){
bottomshow.value = true;
}else{
getMessage()
}
}
const photoclick = (element) => {
if(element){
uni.previewImage({
urls: [headImge.value], //
current: headImge.value , // urls[0]
indicator: 'default', // H5/App 'default' 'number'
longPressActions: { // App
itemList: ['保存图片到相册'],
},
});
}else{
getMessage()
}
}
// //
function getMessage() { function getMessage() {
uni.chooseImage({ uni.chooseImage({
count: 1, count: 1,
sourceType: ['camera'], sourceType: ['album','camera'],
success: chooseRes => { success: chooseRes => {
tempImagePath.value = chooseRes.tempFilePaths[0] tempImagePath.value = chooseRes.tempFilePaths[0]
// //
// //
uni.navigateTo({ url: `/compontent/public/camera?url=${chooseRes.tempFilePaths[0]}&type=0&size=1` }); uni.navigateTo({
url: `/compontent/public/camera?url=${chooseRes.tempFilePaths[0]}&type=0&size=1`
});
// uploadImage(tempImagePath.value) // uploadImage(tempImagePath.value)
}, },
fail: err => { fail: err => {
@ -123,14 +156,15 @@
if (!JSON.parse(uploadRes.data).success) { if (!JSON.parse(uploadRes.data).success) {
uni.showToast({ uni.showToast({
title: '识别失败', title: '识别失败',
icon: 'error' icon: 'error',
duration: 2000
}) })
uping.value = true;
uni.hideLoading() uni.hideLoading()
return return
} }
console.log("营业执照", JSON.parse(JSON.parse(uploadRes.data).result.data).data) console.log("营业执照", JSON.parse(JSON.parse(uploadRes.data).result.data).data)
if(JSON.parse(JSON.parse(uploadRes.data).result.data).data.companyName){
// if (JSON.parse(JSON.parse(uploadRes.data).result.data).data.face) {
let father = JSON.parse(JSON.parse(uploadRes.data).result.data).data; let father = JSON.parse(JSON.parse(uploadRes.data).result.data).data;
textArray[0] = father.companyName; textArray[0] = father.companyName;
textArray[1] = father.businessAddress; textArray[1] = father.businessAddress;
@ -138,6 +172,18 @@
textArray[3] = father.legalPerson; textArray[3] = father.legalPerson;
headImge.value = filePath; headImge.value = filePath;
savephoto(filePath); savephoto(filePath);
}else{
// 1500ms
uni.showToast({
title: '识别失败',
icon: 'error',
duration: 2000
})
uping.value = false;
uni.hideLoading()
}
// if (JSON.parse(JSON.parse(uploadRes.data).result.data).data.face) {
uni.hideLoading() uni.hideLoading()
// textArray[4] = father.birthDate; // textArray[4] = father.birthDate;
// textArray[5] = father.address; // textArray[5] = father.address;
@ -198,7 +244,8 @@
} }
} }
const next = () => { const next = () => {
if(!uping.value){ console.log("??????")
if (!uping.value) {
return return
} }
const allNonEmpty = textArray[0]; const allNonEmpty = textArray[0];
@ -210,22 +257,22 @@
comRegisterAddress: textArray[1], comRegisterAddress: textArray[1],
comCreditCode: textArray[2], comCreditCode: textArray[2],
comLegalPerson: textArray[3], comLegalPerson: textArray[3],
comBusinessLicense:fontphoto.value, comBusinessLicense: fontphoto.value,
} }
// console.log("????",pushMessage) // console.log("????",pushMessage)
changemessage(pushMessage).then(res => { changemessage(pushMessage).then(res => {
if(res.success){ if (res.success) {
if(res.message==`保存成功!`){ if (res.message == `保存成功!`) {
uni.navigateTo({ uni.navigateTo({
url: "/pages/addjigou/where" url: "/pages/addjigou/where"
}); });
}else{ } else {
uni.navigateTo({ uni.navigateTo({
url: "/pages/addjigou/where" url: "/pages/addjigou/where"
}); });
} }
}else{ } else {
uni.showToast({ uni.showToast({
title: res.message, title: res.message,
icon: 'error' icon: 'error'
@ -240,14 +287,27 @@
} }
} }
onLoad(() => { onLoad(() => {
if(uni.getStorageSync('baddata')){ if(uni.getStorageSync('backhuancun').comName){
let data = uni.getStorageSync('baddata'); let data = uni.getStorageSync('backhuancun');
if(data.comName){ if (data.comName) {
textArray[0] = data.comName; textArray[0] = data.comName;
textArray[1] = data.comRegisterAddress; textArray[1] = data.comRegisterAddress;
textArray[2] = data.comCreditCode; textArray[2] = data.comCreditCode;
textArray[3] = data.comLegalPerson; textArray[3] = data.comLegalPerson;
if(data.comBusinessLicense){ if (data.comBusinessLicense) {
headImge.value = `${base_url}/sys/common/static/${data.comBusinessLicense}`;
fontphoto.value = data.comBusinessLicense
}
}
}
else if (uni.getStorageSync('baddata')) {
let data = uni.getStorageSync('baddata');
if (data.comName) {
textArray[0] = data.comName;
textArray[1] = data.comRegisterAddress;
textArray[2] = data.comCreditCode;
textArray[3] = data.comLegalPerson;
if (data.comBusinessLicense) {
headImge.value = `${base_url}/sys/common/static/${data.comBusinessLicense}`; headImge.value = `${base_url}/sys/common/static/${data.comBusinessLicense}`;
fontphoto.value = data.comBusinessLicense fontphoto.value = data.comBusinessLicense
} }
@ -255,6 +315,17 @@
} }
}) })
const goBack = () => { const goBack = () => {
if(textArray[0]){
let data = uni.getStorageSync('backhuancun')
data.comName = textArray[0]
data.comRegisterAddress = textArray[1]
data.comCreditCode = textArray[2]
data.comLegalPerson = textArray[3]
data.comBusinessLicense = fontphoto.value
uni.setStorageSync("backhuancun",data)
}
uni.navigateBack() uni.navigateBack()
} }
onShow(() => { onShow(() => {
@ -272,29 +343,29 @@
flex-direction: column; flex-direction: column;
min-height: 100vh; min-height: 100vh;
width: 100%; width: 100%;
background-color: rgb(239, 241, 252); background-color: #F7F7F7;
position: relative; position: relative;
box-shadow: 2rpx 2rpx 4rpx rgba(0, 0, 0, 0.1); // box-shadow: 2rpx 2rpx 4rpx rgba(0, 0, 0, 0.1);
.white-content { .white-content {
width: 90%; width: 90%;
margin-left: 5%; margin-left: 5%;
margin-top: 180rpx; // margin-top: 10rpx;
// height: 1200rpx; // height: 1200rpx;
border-radius: 35rpx; border-radius: 35rpx;
background-color: rgb(245, 251, 254); // background-color: rgb(245, 251, 254);
.content-title { .content-title {
display: flex; display: flex;
// align-items: center; align-items: center;
height: 100rpx; height: 110rpx;
position: relative; position: relative;
.content-weight { .content-weight {
// font-size: 35rpx; font-size: 32rpx;
font-weight: 600; font-weight: 600;
margin-left: 40rpx; margin-left: 20rpx;
margin-top: 20rpx; // margin-top: 20rpx;
} }
.content-img { .content-img {
@ -308,13 +379,13 @@
} }
.white-photo { .white-photo {
width: 90%; width: 100%;
margin-left: 5%; // margin-left: 5%;
// margin-top: 30rpx; // margin-top: 30rpx;
height: 300rpx; height: 300rpx;
border-radius: 35rpx; border-radius: 35rpx;
background-color: #fff; background-color: #fff;
box-shadow: 4rpx 4rpx 8rpx rgba(0, 0, 0, 0.1); // box-shadow: 4rpx 4rpx 8rpx rgba(0, 0, 0, 0.1);
justify-content: space-around; justify-content: space-around;
align-items: center; align-items: center;
display: flex; display: flex;
@ -326,14 +397,16 @@
} }
.white-message { .white-message {
width: 90%; width: 100%;
margin-left: 5%; // margin-left: 5%;
margin-top: 30rpx; // margin-top: 30rpx;
margin-bottom: 30rpx; margin-bottom: 30rpx;
padding-top: 30rpx;
padding-bottom: 30rpx;
// height: 800rpx; // height: 800rpx;
border-radius: 35rpx; border-radius: 35rpx;
background-color: #fff; background-color: #fff;
box-shadow: 4rpx 4rpx 8rpx rgba(0, 0, 0, 0.1); // box-shadow: 4rpx 4rpx 8rpx rgba(0, 0, 0, 0.1);
justify-content: space-around; justify-content: space-around;
// align-items: center; // align-items: center;
display: flex; display: flex;
@ -350,7 +423,7 @@
height: 30rpx; height: 30rpx;
background-color: #0097FF; background-color: #0097FF;
border-radius: 10rpx; border-radius: 10rpx;
margin: 0 20rpx 0 30rpx; margin: 0 0rpx 0 30rpx;
} }
.message-weight { .message-weight {
@ -362,8 +435,8 @@
.one { .one {
width: 90%; width: 90%;
margin-left: 5%; margin-left: 5%;
border-bottom: 1rpx solid #d7d7d7; // border-bottom: 1rpx solid #F7F7F7;
height: 90rpx; height: 100rpx;
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
align-items: center; align-items: center;
@ -371,6 +444,7 @@
.one-left { .one-left {
margin-left: 10rpx; margin-left: 10rpx;
font-size: 30rpx;
} }
.one-right { .one-right {
@ -381,7 +455,8 @@
white-space: nowrap; white-space: nowrap;
/* 不换行 */ /* 不换行 */
text-overflow: ellipsis; text-overflow: ellipsis;
max-width: 300rpx; max-width: 380rpx;
font-size: 30rpx;
} }
} }
} }
@ -389,12 +464,12 @@
.photo-left { .photo-left {
.photo-weight { .photo-weight {
font-size: 26rpx; font-size: 30rpx;
font-weight: 600; font-weight: 600;
} }
.photo-font { .photo-font {
font-size: 23rpx; font-size: 28rpx;
margin-top: 10rpx; margin-top: 10rpx;
} }
@ -409,8 +484,8 @@
display: flex; display: flex;
justify-content: center; justify-content: center;
align-items: center; align-items: center;
width: 45%; width: 42%;
height: 100rpx; height: 90rpx;
margin: 0rpx auto; margin: 0rpx auto;
margin-bottom: 80rpx; margin-bottom: 80rpx;
color: #fff; color: #fff;
@ -418,8 +493,49 @@
border-radius: 50rpx; border-radius: 50rpx;
font-size: 35rpx; font-size: 35rpx;
} }
.back-button{
display: flex;
justify-content: center;
align-items: center;
width: 44%;
height: 90rpx;
margin: 0rpx auto;
margin-bottom: 80rpx;
border: 2rpx solid #c3cacd;
background: linear-gradient(to bottom, #f3f3f5, #dee4e9);
border-radius: 50rpx;
font-size: 35rpx;
}
.gray-text { .gray-text {
margin: 10rpx 0; margin: 10rpx 0;
font-size: 28rpx;
} }
.shu {
width: 14rpx;
height: 36rpx;
background-color: #0097FF;
border-radius: 10rpx;
margin: 3rpx 0rpx 0 30rpx;
}
.title-back {
margin-top: 100rpx;
width: 100%;
height: 100rpx;
display: flex;
justify-content: space-between;
align-items: center;
.left-father {
display: flex;
align-items: center;
.back-img {
width: 40rpx;
height: 40rpx;
margin-left: 40rpx;
margin-right: 15rpx;
}
}
}
</style> </style>

View File

@ -4,51 +4,56 @@
<view class="title-back"> <view class="title-back">
<view class="left-father" @click="goBack"> <view class="left-father" @click="goBack">
<image class="back-img" src="https://www.focusnu.com/media/directive/index/left.png" /> <image class="back-img" src="https://www.focusnu.com/media/directive/index/left.png" />
<view style="font-size: 30rpx;">返回</view> <view style="font-size: 30rpx;">企业加盟</view>
</view> </view>
<!-- <view :class="!statesTarget? `rightStautes`:statesTarget==1? `rightStautesred`:`rightStautesblue`" @click="shenhe">
{{ states[statesTarget] }}
</view> -->
</view> </view>
<view class="white-content"> <view class="white-content">
<view class="content-title"> <view class="content-title">
<view class="content-weight">身份证上传</view> <view class="shu"></view>
<image class="content-img" src="https://www.focusnu.com/media/directive/index/bian.png" /> <view class="content-weight">身份证</view>
<view style="font-size: 20rpx;margin: 12rpx 0 0 15rpx;">(必填)</view>
</view> </view>
<view class="white-photo" @click="getMessage"> <view class="white-photo" @click="selectphoto(0)">
<view class="photo-left"> <view class="photo-left">
<view class="photo-weight">人像面</view> <view class="photo-weight">人像面</view>
<view class="photo-font">请上传身份证人像面</view> <view class="photo-font">请上传身份证人像面</view>
</view> </view>
<view style="position: relative;"> <view style="position: relative;">
<image class="photo" :src="headImge ? headImge : `https://www.focusnu.com/media/directive/index/IDcard.png`" /> <image class="photo"
:src="headImge ? headImge : `https://www.focusnu.com/media/directive/index/IDcard.png`" />
<image v-if="!headImge" <image v-if="!headImge"
style="position: absolute;top: 50%;left: 50%;width: 70rpx;height: 60rpx;transform: translate(-50%,-50%);" 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" /> src="https://www.focusnu.com/media/directive/index/takephoto.png" />
</view> </view>
</view> </view>
<view class="white-photo" style="margin-top: 30rpx;" @click="getMessage"> <view class="white-photo" style="margin-top: 30rpx;" @click="selectphoto(1)">
<view class="photo-left"> <view class="photo-left">
<view class="photo-weight">国徽面</view> <view class="photo-weight">国徽面</view>
<view class="photo-font">请上传身份证国徽面</view> <view class="photo-font">请上传身份证国徽面</view>
</view> </view>
<view style="position: relative;"> <view style="position: relative;">
<image class="photo" :src="backImge ? backImge : `https://www.focusnu.com/media/directive/index/backIDcard.png`" /> <image class="photo"
:src="backImge ? backImge : `https://www.focusnu.com/media/directive/index/backIDcard.png`" />
<image v-if="!backImge" <image v-if="!backImge"
style="position: absolute;top: 50%;left: 50%;width: 70rpx;height: 60rpx;transform: translate(-50%,-50%);" 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" /> src="https://www.focusnu.com/media/directive/index/takephoto.png" />
</view> </view>
</view> </view>
<view class="content-title" style="margin: 20rpx 0;">
<view class="shu"></view>
<view class="content-weight">确认身份证信息</view>
<!-- <view style="font-size: 20rpx;margin: 15rpx 0 0 15rpx;">(必填)</view> -->
</view>
<view class="white-message"> <view class="white-message">
<view class="message-title"> <!-- <view class="message-title">
<view class="shu"></view> <view class="shu"></view>
<view class="message-weight"> <view class="message-weight">
确认身份证信息 确认身份证信息
</view> </view>
</view> </view> -->
<view style="margin-bottom: 20rpx;"> <view>
<view v-for="(item,index) in nameArray" :key="index" class="one" <view v-for="(item,index) in nameArray" :key="index" class="one"
@click="openLook(textArray[index])"> @click="openLook(textArray[index])">
<view class="one-left">{{item}}</view> <view class="one-left">{{item}}</view>
@ -59,19 +64,23 @@
</view> </view>
</view> </view>
<view class="gray-font"> <view class="gray-font">
<view class="">注意事项:</view> <view style="color: #333333;">注意事项:</view>
<view style="margin-top: 30rpx;"> <view style="margin-top: 30rpx;font-size: 28rpx;">
同一个身份证号只能认证一个账号国徽而与正面信息应为同一身份证的信息目在有效期内,所有上传照片需清晰且未遮挡请勿进行美化和修改,所有上传信息均会被妥善保管,不会用于其他商业用途或传输给第三方</view> <view class="line">1.同一个身份证号只能认证一个账号</view>
<view class="line">2.国徽与正面信息应为同一身份证的信息且在有效期内</view>
<view class="line">3.所有上传照片需清晰且未遮挡请勿进行美化和修改</view>
<view class="line">4.所有上传信息均会被妥善保管不会用于其他商业用途或传输给第三方</view>
</view>
</view> </view>
<view style="display: flex;width: 100%;"> <view style="display: flex;width: 100%;">
<!-- <view class="finish-button" @click="goBack"> <!-- <view class="finish-button" @click="goBack">
上一步 上一步
</view> --> </view> -->
<view class="finish-button" @click="next"> <view class="finish-button" @click="next">
下一步 确认并继续
</view> </view>
</view> </view>
<u-action-sheet :list="bottomlist" @click="photoclick" v-model="bottomshow"></u-action-sheet>
</div> </div>
</template> </template>
@ -94,6 +103,14 @@
const show = ref(false); const show = ref(false);
const content = ref(""); const content = ref("");
const bottomshow = ref(false);
const bottomlist = [{
text: '拍摄图片',
fontSize: 40
}, {
text: '图片预览',
fontSize: 40
}]
const nameArray = ["姓名", "性别", "身份证号码", "民族", "出生日期", "住址", "签发机关", "有效期限"]; const nameArray = ["姓名", "性别", "身份证号码", "民族", "出生日期", "住址", "签发机关", "有效期限"];
const textArray = reactive(["", "", "", "", "", "", "", ""]); const textArray = reactive(["", "", "", "", "", "", "", ""]);
const states = ["审核中", "审核未通过", "审核通过"]; const states = ["审核中", "审核未通过", "审核通过"];
@ -109,20 +126,46 @@
statesTarget.value++ statesTarget.value++
} }
} }
const photoclick = (element) => {
if(element){
uni.previewImage({
urls: [headImge.value,backImge.value], //
current: targetphoto.value?backImge.value:headImge.value , // urls[0]
indicator: 'default', // H5/App 'default' 'number'
longPressActions: { // App
itemList: ['保存图片到相册'],
},
});
}else{
getMessage()
}
}
// //
const tempImagePath = ref('') const tempImagePath = ref('')
const targetphoto = ref(0)
const selectphoto = (number) =>{
if(backImge.value && headImge.value){
targetphoto.value = number
bottomshow.value = true;
}else{
getMessage()
}
}
// //
function getMessage() { function getMessage() {
// 使 UniApp API // 使 UniApp API
uni.chooseImage({ uni.chooseImage({
count: 1, count: 1,
sourceType: ['camera'], sourceType: ['album', 'camera'],
success: chooseRes => { success: chooseRes => {
tempImagePath.value = chooseRes.tempFilePaths[0] tempImagePath.value = chooseRes.tempFilePaths[0]
// //
uni.navigateTo({ url: `/compontent/public/camera?url=${chooseRes.tempFilePaths[0]}&type=0` }); uni.navigateTo({
url: `/compontent/public/camera?url=${chooseRes.tempFilePaths[0]}&type=0`
});
}, },
fail: err => { fail: err => {
console.error('拍照失败:', err) console.error('拍照失败:', err)
@ -167,8 +210,10 @@
if (!JSON.parse(uploadRes.data).success) { if (!JSON.parse(uploadRes.data).success) {
uni.showToast({ uni.showToast({
title: '识别失败', title: '识别失败',
icon: 'error' icon: 'error',
duration: 2000
}) })
uping.value = true;
uni.hideLoading() uni.hideLoading()
return return
} }
@ -188,7 +233,9 @@
savephoto(filePath, 0); savephoto(filePath, 0);
uni.hideLoading() uni.hideLoading()
} else { } else if (JSON.parse(JSON.parse(uploadRes.data).result.data).data.back)
{
let father = JSON.parse(JSON.parse(uploadRes.data).result.data).data.back.data; let father = JSON.parse(JSON.parse(uploadRes.data).result.data).data.back.data;
textArray[6] = father.issueAuthority; textArray[6] = father.issueAuthority;
textArray[7] = father.validPeriod; textArray[7] = father.validPeriod;
@ -198,6 +245,14 @@
backImge.value = filePath; backImge.value = filePath;
savephoto(filePath, 1); savephoto(filePath, 1);
uni.hideLoading() uni.hideLoading()
} else {
uni.showToast({
title: '识别失败',
icon: 'error',
duration: 2000
})
uping.value = false;
uni.hideLoading()
} }
}, },
fail: err => { fail: err => {
@ -246,11 +301,15 @@
} }
const next = () => { const next = () => {
// console.log("??????")
const allNonEmpty = textArray.every(item => { const allNonEmpty = textArray.every(item => {
// item.trim() !== '' // item.trim() !== ''
return item !== ''; return item !== '';
}); });
if(!uping.value){ if (!uping.value) {
return return
} }
if (allNonEmpty) { if (allNonEmpty) {
@ -268,24 +327,24 @@
issuingAuthority: textArray[6], issuingAuthority: textArray[6],
startTime: start, startTime: start,
endTime: end, endTime: end,
cardZmPath:fontphoto.value, cardZmPath: fontphoto.value,
cardFmPath:endphoto.value cardFmPath: endphoto.value
} }
// console.log("????",pushMessage) // console.log("????",pushMessage)
changemessage(pushMessage).then(res => { changemessage(pushMessage).then(res => {
if(res.success){ if (res.success) {
if(res.message==`保存成功!`){ if (res.message == `保存成功!`) {
uni.navigateTo({ uni.navigateTo({
url: "/pages/addjigou/card" url: "/pages/addjigou/card"
}); });
}else{ } else {
uni.setStorageSync('specicalid', res.result.id); uni.setStorageSync('specicalid', res.result.id);
uni.navigateTo({ uni.navigateTo({
url: "/pages/addjigou/card" url: "/pages/addjigou/card"
}); });
} }
}else{ } else {
uni.showToast({ uni.showToast({
title: res.message, title: res.message,
icon: 'error' icon: 'error'
@ -303,7 +362,7 @@
uni.navigateBack() uni.navigateBack()
} }
onLoad(() => { onLoad(() => {
if(uni.getStorageSync('baddata')){ if (uni.getStorageSync('baddata')) {
let data = uni.getStorageSync('baddata'); let data = uni.getStorageSync('baddata');
textArray[0] = data.name; textArray[0] = data.name;
textArray[1] = data.sex; textArray[1] = data.sex;
@ -335,9 +394,9 @@
flex-direction: column; flex-direction: column;
min-height: 100vh; min-height: 100vh;
width: 100%; width: 100%;
background-color: rgb(239, 241, 252); background-color: #F7F7F7;
position: relative; position: relative;
box-shadow: 2rpx 2rpx 4rpx rgba(0, 0, 0, 0.1); // box-shadow: 2rpx 2rpx 4rpx rgba(0, 0, 0, 0.1);
.white-content { .white-content {
width: 90%; width: 90%;
@ -345,19 +404,21 @@
// margin-top: 30rpx; // margin-top: 30rpx;
// height: 1200rpx; // height: 1200rpx;
border-radius: 35rpx; border-radius: 35rpx;
background-color: rgb(245, 251, 254); // background-color: rgb(245, 251, 254);
.content-title { .content-title {
display: flex; display: flex;
// align-items: center; align-items: center;
height: 100rpx; height: 100rpx;
position: relative; position: relative;
font-weight: 600;
.content-weight { .content-weight {
// font-size: 35rpx; // font-size: 35rpx;
font-weight: 600;
margin-left: 70rpx; // margin-left: 10rpx;
margin-top: 20rpx; font-size: 32rpx;
// margin-top: 20rpx;
} }
.content-img { .content-img {
@ -371,13 +432,13 @@
} }
.white-photo { .white-photo {
width: 90%; width: 100%;
margin-left: 5%; // margin-left: 5%;
// margin-top: 30rpx; // margin-top: 30rpx;
height: 300rpx; height: 300rpx;
border-radius: 35rpx; border-radius: 35rpx;
background-color: #fff; background-color: #fff;
box-shadow: 4rpx 4rpx 8rpx rgba(0, 0, 0, 0.1); // box-shadow: 4rpx 4rpx 8rpx rgba(0, 0, 0, 0.1);
justify-content: space-around; justify-content: space-around;
align-items: center; align-items: center;
display: flex; display: flex;
@ -389,14 +450,16 @@
} }
.white-message { .white-message {
width: 90%; width: 100%;
margin-left: 5%; // margin-left: 5%;
margin-top: 30rpx; margin-top: 20rpx;
padding-top: 20rpx;
padding-bottom: 20rpx;
margin-bottom: 30rpx; margin-bottom: 30rpx;
// height: 800rpx; // height: 800rpx;
border-radius: 35rpx; border-radius: 35rpx;
background-color: #fff; background-color: #fff;
box-shadow: 4rpx 4rpx 8rpx rgba(0, 0, 0, 0.1); // box-shadow: 4rpx 4rpx 8rpx rgba(0, 0, 0, 0.1);
justify-content: space-around; justify-content: space-around;
// align-items: center; // align-items: center;
display: flex; display: flex;
@ -408,13 +471,7 @@
align-items: center; align-items: center;
display: flex; display: flex;
.shu {
width: 10rpx;
height: 30rpx;
background-color: #0097FF;
border-radius: 10rpx;
margin: 0 20rpx 0 30rpx;
}
.message-weight { .message-weight {
font-size: 30rpx; font-size: 30rpx;
@ -425,8 +482,8 @@
.one { .one {
width: 90%; width: 90%;
margin-left: 5%; margin-left: 5%;
border-bottom: 1rpx solid #d7d7d7; // border-bottom: 1rpx solid #F7F7F7;
height: 90rpx; height: 100rpx;
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
align-items: center; align-items: center;
@ -434,17 +491,19 @@
.one-left { .one-left {
margin-left: 10rpx; margin-left: 10rpx;
font-size: 30rpx;
} }
.one-right { .one-right {
margin-right: 10rpx; margin-right: 10rpx;
font-size: 30rpx;
color: #999999; color: #999999;
overflow: hidden; overflow: hidden;
/* 隐藏超出内容 */ /* 隐藏超出内容 */
white-space: nowrap; white-space: nowrap;
/* 不换行 */ /* 不换行 */
text-overflow: ellipsis; text-overflow: ellipsis;
max-width: 300rpx; max-width: 380rpx;
} }
} }
} }
@ -452,19 +511,22 @@
.photo-left { .photo-left {
.photo-weight { .photo-weight {
font-size: 26rpx; font-size: 32rpx;
font-weight: 600; font-weight: 600;
color: #333;
} }
.photo-font { .photo-font {
font-size: 23rpx; font-size: 28rpx;
margin-top: 10rpx; margin-top: 10rpx;
color: #666;
} }
} }
.gray-font { .gray-font {
padding: 30rpx 60rpx; padding: 20rpx 60rpx;
padding-bottom: 35rpx;
color: #999999; color: #999999;
} }
@ -472,10 +534,11 @@
display: flex; display: flex;
justify-content: center; justify-content: center;
align-items: center; align-items: center;
width: 45%; width: 92%;
height: 100rpx; height: 90rpx;
margin: 0rpx auto; margin: 0rpx auto;
margin-bottom: 80rpx; margin-bottom: 80rpx;
margin-top: 20rpx;
color: #fff; color: #fff;
background: linear-gradient(to right, #00C9FF, #0076FF); background: linear-gradient(to right, #00C9FF, #0076FF);
border-radius: 50rpx; border-radius: 50rpx;
@ -496,10 +559,10 @@
align-items: center; align-items: center;
.back-img { .back-img {
width: 50rpx; width: 40rpx;
height: 50rpx; height: 40rpx;
margin-left: 40rpx; margin-left: 40rpx;
margin-right: 5rpx; margin-right: 15rpx;
} }
} }
@ -538,4 +601,16 @@
color: #fff; color: #fff;
margin-right: 30rpx; margin-right: 30rpx;
} }
.shu {
width: 14rpx;
height: 36rpx;
background-color: #0097FF;
border-radius: 10rpx;
margin: 3rpx 20rpx 0 30rpx;
}
.line {
margin: 10rpx 0;
}
</style> </style>

View File

@ -5,17 +5,23 @@
<view class="popup-father"> <view class="popup-father">
<view class="popup-title"> <view class="popup-title">
<view style="display: flex; justify-content: center;align-items: center;height: 100rpx;width: 100%;position: relative;"> <view
style="display: flex; justify-content: center;align-items: center;height: 100rpx;width: 100%;position: relative;">
<view class="title-font"> <view class="title-font">
请选择所在地区 请选择所在地区
</view> </view>
<image class="title-imge" src="https://www.focusnu.com/media/directive/index/workjoin/x.png" @click="popupshow=false" /> <image class="title-imge" src="https://www.focusnu.com/media/directive/index/workjoin/x.png"
@click="popupshow=false" />
</view> </view>
<view style="height: 80rpx;width: 100%;display: flex; align-items: center;justify-content: space-between;position: relative;" v-for="(item,index) in address"> <view
style="height: 80rpx;width: 100%;display: flex; align-items: center;justify-content: space-between;position: relative;"
v-for="(item,index) in address">
<view style="margin-left: 60rpx;"> <view style="margin-left: 60rpx;">
{{item.name}} {{item.name}}
</view> </view>
<image class="title-imge" style="width: 25rpx;height: 25rpx;" src="https://www.focusnu.com/media/directive/index/workjoin/x.png" @click="deleteUP(index)" /> <image class="title-imge" style="width: 25rpx;height: 25rpx;"
src="https://www.focusnu.com/media/directive/index/workjoin/x.png"
@click="deleteUP(index)" />
</view> </view>
</view> </view>
<view style="height: 100rpx;width: 100%;"> <view style="height: 100rpx;width: 100%;">
@ -41,26 +47,30 @@
</view> </view>
</u-popup> </u-popup>
<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>
<view class="white-content"> <view class="white-content">
<view class="content-title">
<view class="shu"></view>
<view class="content-weight">机构信息</view>
</view>
<view class="white-message"> <view class="white-message">
<view @click="openpopupshow"> <view @click="openpopupshow">
<view class="one"> <view class="one" style="position: relative;">
<view class="one-left">机构位置</view> <view class="one-left">机构位置</view>
<input disabled style="cursor: not-allowed;pointer-events: none;" class="one-right" type="text" <input disabled style="cursor: not-allowed;pointer-events: none;" class="one-right" type="text"
placeholder="请选择机构位置" v-model="form.address" /> placeholder="请选择机构位置" v-model="form.address" />
<!-- <view class="special" @click="showselect = true"> --> <image class="triangle-down" src="https://www.focusnu.com/media/directive/login/xia.png" />
<!-- <view class="one-right" style="width: 200rpx;justify-content: flex-start;font-size: 26rpx;"
@click="openLook(jigouweizhi)">
{{ jigouweizhi ? jigouweizhi : `请选择机构位置` }}
</view>
<u-select v-model="showselect" mode="mutil-column-auto" :list="list" label-name="name" value-name="id" child-name="children" @confirm="confirm" @cancel-text="showselect=false"></u-select> -->
<!-- <image class="one-img" src="https://www.focusnu.com/media/directive/index/norelmap.png" @click="jumpToMap" /> -->
</view> </view>
</view> </view>
<view> <view>
<view class="one" style="min-height: 150rpx;overflow: hidden;"> <view class="one" style="overflow: hidden;">
<view class="one-left">详细地址</view> <view class="one-left">详细地址</view>
<textarea class="one-right-spec" placeholder="请输入详细地址" auto-height v-model="form.orgAddress" maxlength="60" /> <input class="one-right" placeholder="请输入详细地址" v-model="form.orgAddress" />
</view> </view>
</view> </view>
<view> <view>
@ -72,31 +82,39 @@
<view> <view>
<view class="one"> <view class="one">
<view class="one-left">机构负责人电话</view> <view class="one-left">机构负责人电话</view>
<input class="one-right" type="number" placeholder="请输入机构负责人电话" v-model="form.orgLeaderPhone" /> <input class="one-right" type="number" maxlength="11" placeholder="请输入机构负责人电话"
v-model="form.orgLeaderPhone" />
</view> </view>
</view> </view>
<view> <view>
<view class="one"> <view class="one" style="position: relative;" @click="showselect = true">
<view class="one-left">房屋性质</view> <view class="one-left">房屋性质</view>
<input class="one-right" type="text" placeholder="请输入房屋性质" v-model="form.orgPropertyType" /> <!-- <input class="one-right-select" type="select" placeholder="请输入房屋性质" v-model="form.orgPropertyType"
@click="showselect=true" /> -->
<input disabled style="cursor: not-allowed;pointer-events: none;" class="one-right" type="text"
placeholder="请输入房屋性质" v-model="form.orgPropertyType" />
<image class="triangle-down" src="https://www.focusnu.com/media/directive/login/xia.png" />
</view> </view>
</view> </view>
<u-select v-model="showselect" :list="showlist" @confirm="onSelect1"></u-select>
<view style="margin-bottom: 20rpx;"> <view style="margin-bottom: 20rpx;">
<view class="one" style="position: relative;"> <view class="one" style="position: relative;">
<view class="one-left">建筑面积</view> <view class="one-left">建筑面积</view>
<input class="one-right" type="number" placeholder="请输入建筑面积" v-model="form.orgBuildingArea" /> <input class="one-right" type="digit" placeholder="请输入建筑面积(平方米)"
<!-- <view class="pingfangmi"> v-model="form.orgBuildingArea" />
平方米 <view class="triangle-down-mi">
</view> -->
</view>
</view> </view>
</view> </view>
</view> </view>
</view> </view>
<view style="display: flex;width: 100%;margin-top: 10rpx;"> <view style="display: flex;width: 100%;margin-top: 10rpx;padding: 0 20rpx;">
<view class="finish-button" @click="goBack"> <view class="back-button" @click="goBack">
上一步 返回上一步
</view> </view>
<view class="finish-button" @click="next"> <view class="finish-button" @click="next">
确认并提交 确认并提交
@ -128,22 +146,58 @@
const show = ref(false); const show = ref(false);
const content = ref(""); const content = ref("");
const jigouweizhi = ref(""); const jigouweizhi = ref("");
const showselect = ref(false);
const popupshow = ref(false); const popupshow = ref(false);
const list = ref([]); const list = ref([]);
const showselect = ref(false);
const showlist = reactive(
// [{
// value: ``,
// },
// {
// value: ``,
// },
// {
// value: `使`,
// } ,{
// value: ``,
// }
// ]
[{
value: 1,
label: '租赁'
},
{
value: 2,
label: '自由产权'
},
{
value: 3,
label: '合作使用'
},
{
value: 4,
label: '其它'
}
]
)
function onSelect1(arr) {
form.orgPropertyType = arr[0].label
}
const form = reactive({ const form = reactive({
orgLeader: "", orgLeader: "",
orgLeaderPhone: "", orgLeaderPhone: "",
orgAddress: "", orgAddress: "",
orgPropertyType: "", orgPropertyType: "",
orgBuildingArea: "", orgBuildingArea: "",
orgAddress: "", // orgAddress: "",
orgCoordinateLo: "", orgCoordinateLo: "",
orgCoordinateLa: "", orgCoordinateLa: "",
id: uni.getStorageSync('specicalid') || "", id: uni.getStorageSync('specicalid') || "",
tel: uni.getStorageSync('tel'), tel: uni.getStorageSync('tel'),
status:"1" status: "1"
}) })
// //
const tempImagePath = ref('') const tempImagePath = ref('')
@ -165,17 +219,17 @@
return arr.slice(0, count); return arr.slice(0, count);
} }
const deleteUP = (index) => { const deleteUP = (index) => {
address.value = takeFirst(address.value,index); address.value = takeFirst(address.value, index);
if(index){ if (index) {
clickcard(list.value[index - 1]) clickcard(list.value[index - 1])
}else{ } else {
list.value = []; list.value = [];
getdate(`xzqhdm`).then(res => { getdate(`xzqhdm`).then(res => {
list.value = dedupeFirstLetter(res.result) list.value = dedupeFirstLetter(res.result)
}) })
} }
console.log("删除了",index) console.log("删除了", index)
} }
const next = () => { const next = () => {
const allNonEmpty = form.orgLeader && form.orgLeaderPhone && form.orgAddress && form.orgPropertyType && const allNonEmpty = form.orgLeader && form.orgLeaderPhone && form.orgAddress && form.orgPropertyType &&
@ -211,6 +265,21 @@
} }
const goBack = () => { const goBack = () => {
if (form.address) {
let data = uni.getStorageSync('backhuancun')
// form.address = data.address
data.address = form.address
data.orgProvince = form.orgProvince
data.orgCity = form.orgCity
data.orgDistrict = form.orgDistrict
data.orgAddress = form.orgAddress
data.orgLeader = form.orgLeader
data.orgLeaderPhone = form.orgLeaderPhone
data.orgPropertyType = form.orgPropertyType
data.orgBuildingArea = form.orgBuildingArea
uni.setStorageSync("backhuancun", data)
}
uni.navigateBack() uni.navigateBack()
} }
const jumpToMap = () => { const jumpToMap = () => {
@ -220,16 +289,16 @@
} }
const clickcard = (element) => { const clickcard = (element) => {
if(address.value.length<3){ if (address.value.length < 3) {
list.value = []; list.value = [];
address.value.push(element) address.value.push(element)
getdate(element.id).then(res => { getdate(element.id).then(res => {
if(res.result.length){ if (res.result.length) {
list.value = dedupeFirstLetter(res.result) list.value = dedupeFirstLetter(res.result)
}else{ } else {
popupshow.value = false; popupshow.value = false;
form.address = ""; form.address = "";
address.value.forEach(res=>{ address.value.forEach(res => {
form.address += res.name form.address += res.name
}) })
const keys = ['orgProvince', 'orgCity', 'orgDistrict']; const keys = ['orgProvince', 'orgCity', 'orgDistrict'];
@ -250,8 +319,8 @@
} }
const openpopupshow = () =>{ const openpopupshow = () => {
popupshow.value=true; popupshow.value = true;
} }
onShow(() => { onShow(() => {
@ -273,7 +342,10 @@
const letter = item.firstLetter; const letter = item.firstLetter;
if (!letter || seen.has(letter)) { if (!letter || seen.has(letter)) {
// letter // letter
return { ...item, firstLetter: '' }; return {
...item,
firstLetter: ''
};
} else { } else {
// //
seen.add(letter); seen.add(letter);
@ -285,40 +357,33 @@
getdate(`xzqhdm`).then(res => { getdate(`xzqhdm`).then(res => {
list.value = dedupeFirstLetter(res.result) list.value = dedupeFirstLetter(res.result)
}) })
if(uni.getStorageSync('baddata')){ // form.orgAddress
let data = uni.getStorageSync('baddata'); if (uni.getStorageSync('backhuancun').address) {
// textArray[0] = data.comName; let data = uni.getStorageSync('backhuancun');
// textArray[1] = data.comRegisterAddress; // if (data.orgProvince_dictText) {
// textArray[2] = data.comCreditCode; form.address = data.address
// textArray[3] = data.comLegalPerson; // }
// headImge.value = `${base_url}/sys/common/static/${data.comBusinessLicense}`;
// fontphoto.value = data.comBusinessLicense
if(data.orgProvince_dictText){
form.address = data.orgProvince_dictText + data.orgCity_dictText +data.orgDistrict_dictText;
}
// 'orgProvince', 'orgCity', 'orgDistrict'
form.orgProvince = data.orgProvince; form.orgProvince = data.orgProvince;
form.orgCity = data.orgCity; form.orgCity = data.orgCity;
form.orgDistrict = data.orgDistrict; form.orgDistrict = data.orgDistrict;
// textArray1[0] = data.orgProvince_dictText + data.orgCity_dictText +data.orgDistrict_dictText;
form.orgAddress = data.orgAddress; form.orgAddress = data.orgAddress;
form.orgLeader = data.orgLeader; form.orgLeader = data.orgLeader;
form.orgLeaderPhone = data.orgLeaderPhone; form.orgLeaderPhone = data.orgLeaderPhone;
form.orgPropertyType = data.orgPropertyType; form.orgPropertyType = data.orgPropertyType;
form.orgBuildingArea = data.orgBuildingArea ; form.orgBuildingArea = data.orgBuildingArea;
} else if (uni.getStorageSync('baddata')) {
// orgLeader: "", let data = uni.getStorageSync('baddata');
// orgLeaderPhone: "", if (data.orgProvince_dictText) {
// orgAddress: "", form.address = data.orgProvince_dictText + data.orgCity_dictText + data.orgDistrict_dictText;
// orgPropertyType: "", }
// orgBuildingArea: "", form.orgProvince = data.orgProvince;
// orgAddress: "", form.orgCity = data.orgCity;
// orgCoordinateLo: "", form.orgDistrict = data.orgDistrict;
// orgCoordinateLa: "", form.orgAddress = data.orgAddress;
// id: uni.getStorageSync('specicalid') || "", form.orgLeader = data.orgLeader;
// tel: uni.getStorageSync('tel'), form.orgLeaderPhone = data.orgLeaderPhone;
// status:"2" form.orgPropertyType = data.orgPropertyType;
form.orgBuildingArea = data.orgBuildingArea;
} }
}) })
</script> </script>
@ -329,29 +394,29 @@
flex-direction: column; flex-direction: column;
min-height: 100vh; min-height: 100vh;
width: 100%; width: 100%;
background-color: rgb(239, 241, 252); background-color: #F7F7F7;
position: relative; position: relative;
box-shadow: 2rpx 2rpx 4rpx rgba(0, 0, 0, 0.1); // box-shadow: 2rpx 2rpx 4rpx rgba(0, 0, 0, 0.1);
.white-content { .white-content {
width: 90%; width: 100%;
margin-left: 5%; // margin-left: 5%;
margin-top: 180rpx; margin-top: 20rpx;
// height: 1200rpx; // height: 1200rpx;
border-radius: 35rpx; border-radius: 35rpx;
background-color: rgb(245, 251, 254); // background-color: rgb(245, 251, 254);
.content-title { .content-title {
display: flex; display: flex;
// align-items: center; align-items: center;
height: 100rpx; height: 70rpx;
position: relative; position: relative;
.content-weight { .content-weight {
// font-size: 35rpx; font-size: 32rpx;
font-weight: 600; font-weight: 600;
margin-left: 40rpx; margin-left: 20rpx;
margin-top: 20rpx; // margin-top: 20rpx;
} }
.content-img { .content-img {
@ -371,7 +436,7 @@
height: 300rpx; height: 300rpx;
border-radius: 35rpx; border-radius: 35rpx;
background-color: #fff; background-color: #fff;
box-shadow: 4rpx 4rpx 8rpx rgba(0, 0, 0, 0.1); // box-shadow: 4rpx 4rpx 8rpx rgba(0, 0, 0, 0.1);
justify-content: space-around; justify-content: space-around;
align-items: center; align-items: center;
display: flex; display: flex;
@ -385,12 +450,13 @@
.white-message { .white-message {
width: 90%; width: 90%;
margin-left: 5%; margin-left: 5%;
margin-top: 30rpx; margin-top: 10rpx;
margin-bottom: 30rpx; margin-bottom: 30rpx;
padding: 30rpx 0;
// height: 800rpx; // height: 800rpx;
border-radius: 35rpx; border-radius: 35rpx;
background-color: #fff; background-color: #fff;
box-shadow: 4rpx 4rpx 8rpx rgba(0, 0, 0, 0.1); // box-shadow: 4rpx 4rpx 8rpx rgba(0, 0, 0, 0.1);
justify-content: space-around; justify-content: space-around;
// align-items: center; // align-items: center;
display: flex; display: flex;
@ -402,13 +468,7 @@
align-items: center; align-items: center;
display: flex; display: flex;
.shu {
width: 10rpx;
height: 30rpx;
background-color: #0097FF;
border-radius: 10rpx;
margin: 0 20rpx 0 30rpx;
}
.message-weight { .message-weight {
font-size: 30rpx; font-size: 30rpx;
@ -419,8 +479,8 @@
.one { .one {
width: 90%; width: 90%;
margin-left: 5%; margin-left: 5%;
border-bottom: 1rpx solid #d7d7d7; // border-bottom: 1rpx solid #F7F7F7;
height: 90rpx; height: 100rpx;
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
align-items: center; align-items: center;
@ -428,23 +488,12 @@
.one-left { .one-left {
margin-left: 10rpx; margin-left: 10rpx;
font-size: 30rpx;
} }
.one-right-spec {
// margin-right: 10rpx;
color: #999999;
// overflow: hidden;
/* 隐藏超出内容 */
// white-space: nowrap;
/* 不换行 */
font-size: 25rpx;
// text-overflow: ellipsis;
width: 300rpx;
display: flex;
flex-wrap: wrap;
// justify-content: flex-end;
}
.one-right { .one-right {
// margin-right: 10rpx; font-size: 30rpx;
height: 100%;
color: #999999; color: #999999;
overflow: hidden; overflow: hidden;
/* 隐藏超出内容 */ /* 隐藏超出内容 */
@ -452,10 +501,10 @@
/* 不换行 */ /* 不换行 */
font-size: 25rpx; font-size: 25rpx;
text-overflow: ellipsis; text-overflow: ellipsis;
width: 300rpx; width: 350rpx;
display: flex; display: flex;
justify-content: flex-end;
} }
} }
} }
} }
@ -478,7 +527,7 @@
justify-content: center; justify-content: center;
align-items: center; align-items: center;
width: 45%; width: 45%;
height: 100rpx; height: 90rpx;
margin: 0rpx auto; margin: 0rpx auto;
margin-bottom: 80rpx; margin-bottom: 80rpx;
color: #fff; color: #fff;
@ -551,21 +600,83 @@
margin-top: 50rpx; margin-top: 50rpx;
} }
} }
.cards{
.cards {
width: 100%; width: 100%;
display: flex; display: flex;
// justify-content: center; // justify-content: center;
align-items: center; align-items: center;
height: 100rpx; height: 100rpx;
.zimu{
.zimu {
margin: 0 30rpx; margin: 0 30rpx;
color: #d7d7d7; color: #d7d7d7;
width: 28rpx; width: 28rpx;
} }
.font{
.font {
font-size: 30rpx; font-size: 30rpx;
} }
} }
.title-back {
margin-top: 100rpx;
width: 100%;
height: 100rpx;
display: flex;
justify-content: space-between;
align-items: center;
.left-father {
display: flex;
align-items: center;
.back-img {
width: 40rpx;
height: 40rpx;
margin-left: 40rpx;
margin-right: 15rpx;
}
}
}
.back-button {
display: flex;
justify-content: center;
align-items: center;
width: 44%;
height: 90rpx;
margin: 0rpx auto;
margin-bottom: 80rpx;
border: 2rpx solid #c3cacd;
background: linear-gradient(to bottom, #f3f3f5, #dee4e9);
border-radius: 50rpx;
font-size: 35rpx;
}
.shu {
width: 14rpx;
height: 36rpx;
background-color: #0097FF;
border-radius: 10rpx;
margin: 3rpx 5rpx 0 60rpx;
}
.triangle-down {
position: absolute;
top: 50%;
transform: translateY(-50%);
right: 26rpx;
width: 20rpx;
height: 20rpx;
}
.triangle-down-mi{
position: absolute;
top: 50%;
transform: translateY(-50%);
right: 26rpx;
font-size: 30rpx;
}
</style> </style>
<style> <style>
.uni-scroll-view { .uni-scroll-view {

View File

@ -1,9 +1,11 @@
<template> <template>
<view class="login-container"> <view class="login-container">
<image class="imge" src="https://www.focusnu.com/media/directive/index/nu.png" /> <image class="login-imge" src="https://www.focusnu.com/media/directive/login/loading.gif" mode="widthFix"
lazy-load="false" />
<!-- <image class="imge" src="https://www.focusnu.com/media/directive/index/nu.png" />
<view class="font"> <view class="font">
页面跳转中请稍后... 页面跳转中请稍后...
</view> </view> -->
<!-- 底部的栏为啥这样写是因为要做左右拉动 --> <!-- 底部的栏为啥这样写是因为要做左右拉动 -->
<!-- <view class="botton-view"> <!-- <view class="botton-view">
@ -290,6 +292,10 @@
</script> </script>
<style scoped lang="scss"> <style scoped lang="scss">
.login-imge{
width: 440rpx;
height: 110rpx;
}
.callback-container { .callback-container {
padding: 24px; padding: 24px;
} }

View File

@ -27,8 +27,8 @@
<view v-if="isFadingOut" class="modal"> <view v-if="isFadingOut" class="modal">
<view class="modal-title">服务协议及隐私保护</view> <view class="modal-title">服务协议及隐私保护</view>
<view class="model-p"> <view class="model-p">
<text>&#x3000;&#x3000;为了更好地保障您的合法权益请阅读并同意以下协议</text> <text>&#x3000;&#x3000;为了更好地保障您的合法权益请阅读并同意以下协议护理单元</text>
<text style="color: rgb(0,141,255);" @click="jumpToPro">护理单元使用条款</text> <text style="color: rgb(0,141,255);" @click="jumpToPro">使用条款</text>
<text>同意后将自动登录</text> <text>同意后将自动登录</text>
</view> </view>
<view class="model-down"> <view class="model-down">

View File

@ -40,10 +40,10 @@
</view> </view>
</view> </view>
</view> --> </view> -->
<view class="card-title"> <!-- <view class="card-title">
恭喜您已成功绑定手机 <text style="color: #01A9FF ;">{{phone}}</text>现在您可以 恭喜您已成功绑定手机 <text style="color: #01A9FF ;">{{phone}}</text>现在您可以
</view> </view> -->
<view class="card"> <view class="card" style="margin-top: 550rpx;">
<view class="card-left"> <view class="card-left">
<view class="card-weight"> <view class="card-weight">
长者入住 长者入住
@ -145,6 +145,7 @@
const gotoadd = () => { const gotoadd = () => {
uni.setStorageSync('specicalid', ""); uni.setStorageSync('specicalid', "");
uni.setStorageSync("baddata", "") uni.setStorageSync("baddata", "")
uni.setStorageSync("backhuancun",{})
uni.navigateTo({ uni.navigateTo({
url: `/pages/addjigou/name` url: `/pages/addjigou/name`
}); });
@ -190,7 +191,7 @@
.photo-imge { .photo-imge {
position: absolute; position: absolute;
top: 40rpx; top: 0rpx;
left: 0; left: 0;
width: 100%; width: 100%;
height: 1100rpx; height: 1100rpx;
@ -276,7 +277,7 @@
border-radius: 30rpx; border-radius: 30rpx;
background-color: #fff; background-color: #fff;
display: flex; display: flex;
align-items: center;
.card-left { .card-left {
height: 100%; height: 100%;
width: 80%; width: 80%;
@ -330,8 +331,8 @@
display: flex; display: flex;
justify-content: center; justify-content: center;
align-items: center; align-items: center;
height: 80rpx; height: 90rpx;
border-radius: 30rpx; border-radius: 50rpx;
background: linear-gradient(to left, #00C9FF, #0076FF); background: linear-gradient(to left, #00C9FF, #0076FF);
color: #fff; color: #fff;
font-size: 33rpx; font-size: 33rpx;

View File

@ -85,6 +85,7 @@
console.log("????", item) console.log("????", item)
uni.setStorageSync("baddata", item) uni.setStorageSync("baddata", item)
uni.setStorageSync('specicalid', item.id); uni.setStorageSync('specicalid', item.id);
uni.setStorageSync("backhuancun",{})
uni.navigateTo({ uni.navigateTo({
url: `/pages/addjigou/name` url: `/pages/addjigou/name`
}); });

View File

@ -694,6 +694,8 @@
display: flex; display: flex;
flex-direction: row; flex-direction: row;
background-color: $uni-bg-color-grey; background-color: $uni-bg-color-grey;
border-top-right-radius: 30rpx;
border-top-left-radius: 30rpx;
.action-bar { .action-bar {
position: absolute; position: absolute;
@ -714,7 +716,7 @@
} }
.rechoose { .rechoose {
color: $uni-color-primary; color: rgb(51,51,51);
padding: 0 $uni-spacing-row-lg; padding: 0 $uni-spacing-row-lg;
line-height: 100rpx; line-height: 100rpx;
} }
@ -728,8 +730,12 @@
.button { .button {
margin: auto $uni-spacing-row-lg auto auto; margin: auto $uni-spacing-row-lg auto auto;
background-color: $uni-color-primary; // background-color: $uni-color-primary;
background: linear-gradient(to right, #00C9FF, #0076FF);
// background: ;
color: #fff; color: #fff;
border-radius: 20rpx;
margin-top: 30rpx;
} }
} }

View File

@ -1 +1 @@
{"version":3,"file":"camera.js","sources":["compontent/public/camera.vue","../Hbuilder/HBuilderX/plugins/uniapp-cli-vite/uniPage:/Y29tcG9udGVudC9wdWJsaWMvY2FtZXJhLnZ1ZQ"],"sourcesContent":["<template>\r\n\t<view>\r\n\t\t<!-- https://ext.dcloud.net.cn/plugin?id=10333文档在这里自己看 -->\r\n\t\t<qf-image-cropper :src=\"src\" :width=\"width\" :height=\"height\" :radius=\"0\" @crop=\"handleCrop\" />\r\n\t</view>\r\n</template>\r\n\r\n<script setup>\r\n\timport {\r\n\t\tref\r\n\t} from 'vue'\r\n\timport {\r\n\t\tonLoad\r\n\t} from '@dcloudio/uni-app';\r\n\timport QfImageCropper from '@/uni_modules/qf-image-cropper/components/qf-image-cropper/qf-image-cropper.vue'\r\n\r\n\t// 图片源\r\n\tconst src = ref('') // 可以根据需要动态设置图片路径\r\n\tconst type = ref(0);\r\n\tconst width = ref(600);\r\n\tconst height = ref(400);\r\n\t// 裁剪完成的回调\r\n\tconst handleCrop = (e) => {\r\n\t\t// console.log(\"剪切完了\")\r\n\t\tuni.setStorageSync(`imgkey${type.value}`, e.tempFilePath);\r\n\t\tuni.navigateBack()\r\n\t}\r\n\tonLoad((options) => {\r\n\t\tsrc.value = options.url\r\n\t\t//type是一个页面有两个照相的时候做个类型区分\r\n\t\ttype.value = options.type\r\n\t\tif(options.size){\r\n\t\t\twidth.value = 900;\r\n\t\t\theight.value = 600;\r\n\t\t}\r\n\t});\r\n</script>","import MiniProgramPage from 'D:/officialAccount/compontent/public/camera.vue'\nwx.createPage(MiniProgramPage)"],"names":["ref","uni","onLoad","MiniProgramPage"],"mappings":";;;;;AAcC,MAAM,iBAAiB,MAAW;;;;AAGlC,UAAM,MAAMA,cAAG,IAAC,EAAE;AAClB,UAAM,OAAOA,kBAAI,CAAC;AAClB,UAAM,QAAQA,kBAAI,GAAG;AACrB,UAAM,SAASA,kBAAI,GAAG;AAEtB,UAAM,aAAa,CAAC,MAAM;AAEzBC,0BAAI,eAAe,SAAS,KAAK,KAAK,IAAI,EAAE,YAAY;AACxDA,oBAAAA,MAAI,aAAc;AAAA,IAClB;AACDC,kBAAM,OAAC,CAAC,YAAY;AACnB,UAAI,QAAQ,QAAQ;AAEpB,WAAK,QAAQ,QAAQ;AACrB,UAAG,QAAQ,MAAK;AACf,cAAM,QAAQ;AACd,eAAO,QAAQ;AAAA,MACf;AAAA,IACH,CAAE;;;;;;;;;;;;;;AClCF,GAAG,WAAWC,SAAe;"} {"version":3,"file":"camera.js","sources":["compontent/public/camera.vue","../Hbuilder/HBuilderX/plugins/uniapp-cli-vite/uniPage:/Y29tcG9udGVudC9wdWJsaWMvY2FtZXJhLnZ1ZQ"],"sourcesContent":["<template>\r\n\t<view>\r\n\t\t<!-- https://ext.dcloud.net.cn/plugin?id=10333文档在这里自己看 -->\r\n\t\t<qf-image-cropper :src=\"src\" :width=\"width\" :height=\"height\" :radius=\"0\" @crop=\"handleCrop\" />\r\n\t</view>\r\n</template>\r\n\r\n<script setup>\r\n\timport {\r\n\t\tref\r\n\t} from 'vue'\r\n\timport {\r\n\t\tonLoad\r\n\t} from '@dcloudio/uni-app';\r\n\timport QfImageCropper from '@/uni_modules/qf-image-cropper/components/qf-image-cropper/qf-image-cropper.vue'\r\n\r\n\t// 图片源\r\n\tconst src = ref('') // 可以根据需要动态设置图片路径\r\n\tconst type = ref(0);\r\n\tconst width = ref(900);\r\n\tconst height = ref(600);\r\n\t// 裁剪完成的回调\r\n\tconst handleCrop = (e) => {\r\n\t\t// console.log(\"剪切完了\")\r\n\t\tuni.setStorageSync(`imgkey${type.value}`, e.tempFilePath);\r\n\t\tuni.navigateBack()\r\n\t}\r\n\tonLoad((options) => {\r\n\t\tsrc.value = options.url\r\n\t\t//type是一个页面有两个照相的时候做个类型区分\r\n\t\ttype.value = options.type\r\n\t\tif(options.size){\r\n\t\t\twidth.value = 1500;\r\n\t\t\theight.value = 1000;\r\n\t\t}\r\n\t});\r\n</script>","import MiniProgramPage from 'D:/officialAccount/compontent/public/camera.vue'\nwx.createPage(MiniProgramPage)"],"names":["ref","uni","onLoad","MiniProgramPage"],"mappings":";;;;;AAcC,MAAM,iBAAiB,MAAW;;;;AAGlC,UAAM,MAAMA,cAAG,IAAC,EAAE;AAClB,UAAM,OAAOA,kBAAI,CAAC;AAClB,UAAM,QAAQA,kBAAI,GAAG;AACrB,UAAM,SAASA,kBAAI,GAAG;AAEtB,UAAM,aAAa,CAAC,MAAM;AAEzBC,0BAAI,eAAe,SAAS,KAAK,KAAK,IAAI,EAAE,YAAY;AACxDA,oBAAAA,MAAI,aAAc;AAAA,IAClB;AACDC,kBAAM,OAAC,CAAC,YAAY;AACnB,UAAI,QAAQ,QAAQ;AAEpB,WAAK,QAAQ,QAAQ;AACrB,UAAG,QAAQ,MAAK;AACf,cAAM,QAAQ;AACd,eAAO,QAAQ;AAAA,MACf;AAAA,IACH,CAAE;;;;;;;;;;;;;;AClCF,GAAG,WAAWC,SAAe;"}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -7037,7 +7037,7 @@ function isConsoleWritable() {
function initRuntimeSocketService() { function initRuntimeSocketService() {
const hosts = "192.168.2.27,127.0.0.1"; const hosts = "192.168.2.27,127.0.0.1";
const port = "8090"; const port = "8090";
const id = "mp-weixin_Q7WA3f"; const id = "mp-weixin_7rFfgI";
const lazy = typeof swan !== "undefined"; const lazy = typeof swan !== "undefined";
let restoreError = lazy ? () => { let restoreError = lazy ? () => {
} : initOnError(); } : initOnError();

View File

@ -9,8 +9,8 @@ const _sfc_main = {
setup(__props) { setup(__props) {
const src = common_vendor.ref(""); const src = common_vendor.ref("");
const type = common_vendor.ref(0); const type = common_vendor.ref(0);
const width = common_vendor.ref(600); const width = common_vendor.ref(900);
const height = common_vendor.ref(400); const height = common_vendor.ref(600);
const handleCrop = (e) => { const handleCrop = (e) => {
common_vendor.index.setStorageSync(`imgkey${type.value}`, e.tempFilePath); common_vendor.index.setStorageSync(`imgkey${type.value}`, e.tempFilePath);
common_vendor.index.navigateBack(); common_vendor.index.navigateBack();
@ -19,8 +19,8 @@ const _sfc_main = {
src.value = options.url; src.value = options.url;
type.value = options.type; type.value = options.type;
if (options.size) { if (options.size) {
width.value = 900; width.value = 1500;
height.value = 600; height.value = 1e3;
} }
}); });
return (_ctx, _cache) => { return (_ctx, _cache) => {

View File

@ -52,6 +52,7 @@ const _sfc_main = {
const next = () => { const next = () => {
common_vendor.index.setStorageSync("specicalid", alldata.value.id); common_vendor.index.setStorageSync("specicalid", alldata.value.id);
common_vendor.index.setStorageSync("baddata", alldata.value); common_vendor.index.setStorageSync("baddata", alldata.value);
common_vendor.index.setStorageSync("backhuancun", {});
common_vendor.index.navigateTo({ common_vendor.index.navigateTo({
url: `/pages/addjigou/name` url: `/pages/addjigou/name`
}); });
@ -69,7 +70,7 @@ const _sfc_main = {
common_vendor.onLoad((options) => { common_vendor.onLoad((options) => {
alldata.value = JSON.parse(options.element); alldata.value = JSON.parse(options.element);
statesTarget.value = Number(alldata.value.status); statesTarget.value = Number(alldata.value.status);
common_vendor.index.__f__("log", "at pages/addjigou/all.vue:199", "????", alldata.value, statesTarget.value); common_vendor.index.__f__("log", "at pages/addjigou/all.vue:200", "????", alldata.value, statesTarget.value);
let data = alldata.value; let data = alldata.value;
textArray[0] = data.name; textArray[0] = data.name;
textArray[1] = data.sex; textArray[1] = data.sex;

View File

@ -4,11 +4,13 @@ const request_index = require("../../request/index.js");
const pages_addjigou_api_addjigou = require("./api/addjigou.js"); const pages_addjigou_api_addjigou = require("./api/addjigou.js");
if (!Array) { if (!Array) {
const _easycom_u_modal2 = common_vendor.resolveComponent("u-modal"); const _easycom_u_modal2 = common_vendor.resolveComponent("u-modal");
_easycom_u_modal2(); const _easycom_u_action_sheet2 = common_vendor.resolveComponent("u-action-sheet");
(_easycom_u_modal2 + _easycom_u_action_sheet2)();
} }
const _easycom_u_modal = () => "../../uni_modules/vk-uview-ui/components/u-modal/u-modal.js"; const _easycom_u_modal = () => "../../uni_modules/vk-uview-ui/components/u-modal/u-modal.js";
const _easycom_u_action_sheet = () => "../../uni_modules/vk-uview-ui/components/u-action-sheet/u-action-sheet.js";
if (!Math) { if (!Math) {
_easycom_u_modal(); (_easycom_u_modal + _easycom_u_action_sheet)();
} }
const _sfc_main = { const _sfc_main = {
__name: "card", __name: "card",
@ -17,17 +19,50 @@ const _sfc_main = {
const content = common_vendor.ref(""); const content = common_vendor.ref("");
const nameArray = ["企业名称", "注册地址", "信用代码", "法人"]; const nameArray = ["企业名称", "注册地址", "信用代码", "法人"];
const textArray = common_vendor.reactive(["", "", "", ""]); const textArray = common_vendor.reactive(["", "", "", ""]);
const bottomlist = [{
text: "拍摄图片"
}, {
text: "图片预览"
}];
const bottomshow = common_vendor.ref(false);
const tempImagePath = common_vendor.ref(""); const tempImagePath = common_vendor.ref("");
const selectphoto = (number) => {
if (headImge.value) {
bottomshow.value = true;
} else {
getMessage();
}
};
const photoclick = (element) => {
if (element) {
common_vendor.index.previewImage({
urls: [headImge.value],
// 必填,所有要预览的图片地址数组
current: headImge.value,
// 可选,当前显示图片的地址,默认是 urls[0]
indicator: "default",
// 可选指示器样式H5/App 有效,值为 'default'(圆点)或 'number'(数字)
longPressActions: {
// 可选,仅 App 支持,长按图片时弹出的操作项
itemList: ["保存图片到相册"]
}
});
} else {
getMessage();
}
};
function getMessage() { function getMessage() {
common_vendor.index.chooseImage({ common_vendor.index.chooseImage({
count: 1, count: 1,
sourceType: ["camera"], sourceType: ["album", "camera"],
success: (chooseRes) => { success: (chooseRes) => {
tempImagePath.value = chooseRes.tempFilePaths[0]; tempImagePath.value = chooseRes.tempFilePaths[0];
common_vendor.index.navigateTo({ url: `/compontent/public/camera?url=${chooseRes.tempFilePaths[0]}&type=0&size=1` }); common_vendor.index.navigateTo({
url: `/compontent/public/camera?url=${chooseRes.tempFilePaths[0]}&type=0&size=1`
});
}, },
fail: (err) => { fail: (err) => {
common_vendor.index.__f__("error", "at pages/addjigou/card.vue:102", "拍照失败:", err); common_vendor.index.__f__("error", "at pages/addjigou/card.vue:135", "拍照失败:", err);
} }
}); });
} }
@ -51,12 +86,15 @@ const _sfc_main = {
if (!JSON.parse(uploadRes.data).success) { if (!JSON.parse(uploadRes.data).success) {
common_vendor.index.showToast({ common_vendor.index.showToast({
title: "识别失败", title: "识别失败",
icon: "error" icon: "error",
duration: 2e3
}); });
uping.value = true;
common_vendor.index.hideLoading(); common_vendor.index.hideLoading();
return; return;
} }
common_vendor.index.__f__("log", "at pages/addjigou/card.vue:131", "营业执照", JSON.parse(JSON.parse(uploadRes.data).result.data).data); common_vendor.index.__f__("log", "at pages/addjigou/card.vue:166", "营业执照", JSON.parse(JSON.parse(uploadRes.data).result.data).data);
if (JSON.parse(JSON.parse(uploadRes.data).result.data).data.companyName) {
let father = JSON.parse(JSON.parse(uploadRes.data).result.data).data; let father = JSON.parse(JSON.parse(uploadRes.data).result.data).data;
textArray[0] = father.companyName; textArray[0] = father.companyName;
textArray[1] = father.businessAddress; textArray[1] = father.businessAddress;
@ -64,6 +102,15 @@ const _sfc_main = {
textArray[3] = father.legalPerson; textArray[3] = father.legalPerson;
headImge.value = filePath; headImge.value = filePath;
savephoto(filePath); savephoto(filePath);
} else {
common_vendor.index.showToast({
title: "识别失败",
icon: "error",
duration: 2e3
});
uping.value = false;
common_vendor.index.hideLoading();
}
common_vendor.index.hideLoading(); common_vendor.index.hideLoading();
}, },
fail: (err) => { fail: (err) => {
@ -109,6 +156,7 @@ const _sfc_main = {
} }
}; };
const next = () => { const next = () => {
common_vendor.index.__f__("log", "at pages/addjigou/card.vue:247", "??????");
if (!uping.value) { if (!uping.value) {
return; return;
} }
@ -149,7 +197,19 @@ const _sfc_main = {
} }
}; };
common_vendor.onLoad(() => { common_vendor.onLoad(() => {
if (common_vendor.index.getStorageSync("baddata")) { if (common_vendor.index.getStorageSync("backhuancun").comName) {
let data = common_vendor.index.getStorageSync("backhuancun");
if (data.comName) {
textArray[0] = data.comName;
textArray[1] = data.comRegisterAddress;
textArray[2] = data.comCreditCode;
textArray[3] = data.comLegalPerson;
if (data.comBusinessLicense) {
headImge.value = `${request_index.base_url}/sys/common/static/${data.comBusinessLicense}`;
fontphoto.value = data.comBusinessLicense;
}
}
} else if (common_vendor.index.getStorageSync("baddata")) {
let data = common_vendor.index.getStorageSync("baddata"); let data = common_vendor.index.getStorageSync("baddata");
if (data.comName) { if (data.comName) {
textArray[0] = data.comName; textArray[0] = data.comName;
@ -164,6 +224,15 @@ const _sfc_main = {
} }
}); });
const goBack = () => { const goBack = () => {
if (textArray[0]) {
let data = common_vendor.index.getStorageSync("backhuancun");
data.comName = textArray[0];
data.comRegisterAddress = textArray[1];
data.comCreditCode = textArray[2];
data.comLegalPerson = textArray[3];
data.comBusinessLicense = fontphoto.value;
common_vendor.index.setStorageSync("backhuancun", data);
}
common_vendor.index.navigateBack(); common_vendor.index.navigateBack();
}; };
common_vendor.onShow(() => { common_vendor.onShow(() => {
@ -180,11 +249,12 @@ const _sfc_main = {
content: content.value, content: content.value,
modelValue: show.value modelValue: show.value
}), }),
c: headImge.value ? headImge.value : `https://www.focusnu.com/media/directive/index/zhizhao.png`, c: common_vendor.o(goBack),
d: !headImge.value d: headImge.value ? headImge.value : `https://www.focusnu.com/media/directive/index/zhizhao.png`,
e: !headImge.value
}, !headImge.value ? {} : {}, { }, !headImge.value ? {} : {}, {
e: common_vendor.o(getMessage), f: common_vendor.o(selectphoto),
f: common_vendor.f(nameArray, (item, index, i0) => { g: common_vendor.f(nameArray, (item, index, i0) => {
return { return {
a: common_vendor.t(item), a: common_vendor.t(item),
b: common_vendor.t(textArray[index] ? textArray[index] : "自动获取"), b: common_vendor.t(textArray[index] ? textArray[index] : "自动获取"),
@ -192,8 +262,14 @@ const _sfc_main = {
d: common_vendor.o(($event) => openLook(textArray[index]), index) d: common_vendor.o(($event) => openLook(textArray[index]), index)
}; };
}), }),
g: common_vendor.o(goBack), h: common_vendor.o(goBack),
h: common_vendor.o(next) i: common_vendor.o(next),
j: common_vendor.o(photoclick),
k: common_vendor.o(($event) => bottomshow.value = $event),
l: common_vendor.p({
list: bottomlist,
modelValue: bottomshow.value
})
}); });
}; };
} }

View File

@ -1,6 +1,7 @@
{ {
"navigationBarTitleText": "企业实名认证", "navigationBarTitleText": "企业实名认证",
"usingComponents": { "usingComponents": {
"u-modal": "../../uni_modules/vk-uview-ui/components/u-modal/u-modal" "u-modal": "../../uni_modules/vk-uview-ui/components/u-modal/u-modal",
"u-action-sheet": "../../uni_modules/vk-uview-ui/components/u-action-sheet/u-action-sheet"
} }
} }

View File

@ -1 +1 @@
<view class="container data-v-402780bb"><u-modal wx:if="{{b}}" class="data-v-402780bb" u-i="402780bb-0" bind:__l="__l" bindupdateModelValue="{{a}}" u-p="{{b}}"></u-modal><view class="white-content data-v-402780bb"><view class="content-title data-v-402780bb"><view class="content-weight data-v-402780bb">营业执照上传</view><image class="content-img data-v-402780bb" src="https://www.focusnu.com/media/directive/index/bian.png"/></view><view class="white-photo data-v-402780bb" bindtap="{{e}}"><view class="photo-left data-v-402780bb"><view class="photo-weight data-v-402780bb">营业执照</view><view class="photo-font data-v-402780bb">请上传营业执照</view></view><view class="data-v-402780bb" style="position:relative"><image class="photo data-v-402780bb" src="{{c}}"/><image wx:if="{{d}}" class="data-v-402780bb" 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 data-v-402780bb"><view class="message-title data-v-402780bb"><view class="shu data-v-402780bb"></view><view class="message-weight data-v-402780bb"> 确认企业信息 </view></view><view class="data-v-402780bb" style="margin-bottom:20rpx"><view wx:for="{{f}}" wx:for-item="item" wx:key="c" class="one data-v-402780bb" bindtap="{{item.d}}"><view class="one-left data-v-402780bb">{{item.a}}</view><view class="one-right data-v-402780bb">{{item.b}}</view></view></view></view></view><view class="gray-font data-v-402780bb"><view class=" data-v-402780bb">注意事项:</view><view class="gray-text data-v-402780bb"> 1. 运用企业、个体工商户、政府、事业单位、学校、组织等,账号归属企业。 </view><view class="gray-text data-v-402780bb"> 2.一个企业信息主体默认可认证1个账号。 </view><view class="gray-text data-v-402780bb"> 3.所有上传信息均会被妥善保管,不会用于其他商业用途或传输给其他第三方。 </view></view><view class="data-v-402780bb" style="display:flex;width:100%"><view class="finish-button data-v-402780bb" bindtap="{{g}}"> 上一步 </view><view class="finish-button data-v-402780bb" bindtap="{{h}}"> 下一步 </view></view></view> <view class="container data-v-402780bb"><u-modal wx:if="{{b}}" class="data-v-402780bb" u-i="402780bb-0" bind:__l="__l" bindupdateModelValue="{{a}}" u-p="{{b}}"></u-modal><view class="title-back data-v-402780bb"><view class="left-father data-v-402780bb" bindtap="{{c}}"><image class="back-img data-v-402780bb" src="https://www.focusnu.com/media/directive/index/left.png"/><view class="data-v-402780bb" style="font-size:30rpx">企业加盟</view></view></view><view class="white-content data-v-402780bb"><view class="content-title data-v-402780bb"><view class="shu data-v-402780bb"></view><view class="content-weight data-v-402780bb">营业执照</view></view><view class="white-photo data-v-402780bb" bindtap="{{f}}"><view class="photo-left data-v-402780bb"><view class="photo-weight data-v-402780bb">营业执照</view><view class="photo-font data-v-402780bb">请上传营业执照</view></view><view class="data-v-402780bb" style="position:relative"><image class="photo data-v-402780bb" src="{{d}}"/><image wx:if="{{e}}" class="data-v-402780bb" 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="content-title data-v-402780bb"><view class="shu data-v-402780bb"></view><view class="content-weight data-v-402780bb">企业信息</view></view><view class="white-message data-v-402780bb"><view class="data-v-402780bb"><view wx:for="{{g}}" wx:for-item="item" wx:key="c" class="one data-v-402780bb" bindtap="{{item.d}}"><view class="one-left data-v-402780bb">{{item.a}}</view><view class="one-right data-v-402780bb">{{item.b}}</view></view></view></view></view><view class="gray-font data-v-402780bb"><view class="data-v-402780bb" style="color:#333333;margin-bottom:30rpx">注意事项:</view><view class="gray-text data-v-402780bb"> 1. 运用企业、个体工商户、政府、事业单位、学校、组织等,账号归属企业。 </view><view class="gray-text data-v-402780bb"> 2.一个企业信息主体默认可认证1个账号。 </view><view class="gray-text data-v-402780bb"> 3.所有上传信息均会被妥善保管,不会用于其他商业用途或传输给其他第三方。 </view></view><view class="data-v-402780bb" style="display:flex;width:100%;padding:0 20rpx"><view class="back-button data-v-402780bb" bindtap="{{h}}"> 返回上一步 </view><view class="finish-button data-v-402780bb" bindtap="{{i}}"> 确认并继续 </view></view><u-action-sheet wx:if="{{l}}" class="data-v-402780bb" bindclick="{{j}}" u-i="402780bb-1" bind:__l="__l" bindupdateModelValue="{{k}}" u-p="{{l}}"></u-action-sheet></view>

View File

@ -28,26 +28,24 @@
flex-direction: column; flex-direction: column;
min-height: 100vh; min-height: 100vh;
width: 100%; width: 100%;
background-color: #eff1fc; background-color: #F7F7F7;
position: relative; position: relative;
box-shadow: 2rpx 2rpx 4rpx rgba(0, 0, 0, 0.1);
} }
.container .white-content.data-v-402780bb { .container .white-content.data-v-402780bb {
width: 90%; width: 90%;
margin-left: 5%; margin-left: 5%;
margin-top: 180rpx;
border-radius: 35rpx; border-radius: 35rpx;
background-color: #f5fbfe;
} }
.container .white-content .content-title.data-v-402780bb { .container .white-content .content-title.data-v-402780bb {
display: flex; display: flex;
height: 100rpx; align-items: center;
height: 110rpx;
position: relative; position: relative;
} }
.container .white-content .content-title .content-weight.data-v-402780bb { .container .white-content .content-title .content-weight.data-v-402780bb {
font-size: 32rpx;
font-weight: 600; font-weight: 600;
margin-left: 40rpx; margin-left: 20rpx;
margin-top: 20rpx;
} }
.container .white-content .content-title .content-img.data-v-402780bb { .container .white-content .content-title .content-img.data-v-402780bb {
position: absolute; position: absolute;
@ -57,12 +55,10 @@
height: 100%; height: 100%;
} }
.container .white-photo.data-v-402780bb { .container .white-photo.data-v-402780bb {
width: 90%; width: 100%;
margin-left: 5%;
height: 300rpx; height: 300rpx;
border-radius: 35rpx; border-radius: 35rpx;
background-color: #fff; background-color: #fff;
box-shadow: 4rpx 4rpx 8rpx rgba(0, 0, 0, 0.1);
justify-content: space-around; justify-content: space-around;
align-items: center; align-items: center;
display: flex; display: flex;
@ -72,13 +68,12 @@
height: 200rpx; height: 200rpx;
} }
.container .white-message.data-v-402780bb { .container .white-message.data-v-402780bb {
width: 90%; width: 100%;
margin-left: 5%;
margin-top: 30rpx;
margin-bottom: 30rpx; margin-bottom: 30rpx;
padding-top: 30rpx;
padding-bottom: 30rpx;
border-radius: 35rpx; border-radius: 35rpx;
background-color: #fff; background-color: #fff;
box-shadow: 4rpx 4rpx 8rpx rgba(0, 0, 0, 0.1);
justify-content: space-around; justify-content: space-around;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
@ -94,7 +89,7 @@
height: 30rpx; height: 30rpx;
background-color: #0097FF; background-color: #0097FF;
border-radius: 10rpx; border-radius: 10rpx;
margin: 0 20rpx 0 30rpx; margin: 0 0rpx 0 30rpx;
} }
.container .white-message .message-title .message-weight.data-v-402780bb { .container .white-message .message-title .message-weight.data-v-402780bb {
font-size: 30rpx; font-size: 30rpx;
@ -102,8 +97,7 @@
.container .white-message .one.data-v-402780bb { .container .white-message .one.data-v-402780bb {
width: 90%; width: 90%;
margin-left: 5%; margin-left: 5%;
border-bottom: 1rpx solid #d7d7d7; height: 100rpx;
height: 90rpx;
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
align-items: center; align-items: center;
@ -111,6 +105,7 @@
} }
.container .white-message .one .one-left.data-v-402780bb { .container .white-message .one .one-left.data-v-402780bb {
margin-left: 10rpx; margin-left: 10rpx;
font-size: 30rpx;
} }
.container .white-message .one .one-right.data-v-402780bb { .container .white-message .one .one-right.data-v-402780bb {
margin-right: 10rpx; margin-right: 10rpx;
@ -120,14 +115,15 @@
white-space: nowrap; white-space: nowrap;
/* 不换行 */ /* 不换行 */
text-overflow: ellipsis; text-overflow: ellipsis;
max-width: 300rpx; max-width: 380rpx;
font-size: 30rpx;
} }
.photo-left .photo-weight.data-v-402780bb { .photo-left .photo-weight.data-v-402780bb {
font-size: 26rpx; font-size: 30rpx;
font-weight: 600; font-weight: 600;
} }
.photo-left .photo-font.data-v-402780bb { .photo-left .photo-font.data-v-402780bb {
font-size: 23rpx; font-size: 28rpx;
margin-top: 10rpx; margin-top: 10rpx;
} }
.gray-font.data-v-402780bb { .gray-font.data-v-402780bb {
@ -138,8 +134,8 @@
display: flex; display: flex;
justify-content: center; justify-content: center;
align-items: center; align-items: center;
width: 45%; width: 42%;
height: 100rpx; height: 90rpx;
margin: 0rpx auto; margin: 0rpx auto;
margin-bottom: 80rpx; margin-bottom: 80rpx;
color: #fff; color: #fff;
@ -147,6 +143,45 @@
border-radius: 50rpx; border-radius: 50rpx;
font-size: 35rpx; font-size: 35rpx;
} }
.back-button.data-v-402780bb {
display: flex;
justify-content: center;
align-items: center;
width: 44%;
height: 90rpx;
margin: 0rpx auto;
margin-bottom: 80rpx;
border: 2rpx solid #c3cacd;
background: linear-gradient(to bottom, #f3f3f5, #dee4e9);
border-radius: 50rpx;
font-size: 35rpx;
}
.gray-text.data-v-402780bb { .gray-text.data-v-402780bb {
margin: 10rpx 0; margin: 10rpx 0;
font-size: 28rpx;
}
.shu.data-v-402780bb {
width: 14rpx;
height: 36rpx;
background-color: #0097FF;
border-radius: 10rpx;
margin: 3rpx 0rpx 0 30rpx;
}
.title-back.data-v-402780bb {
margin-top: 100rpx;
width: 100%;
height: 100rpx;
display: flex;
justify-content: space-between;
align-items: center;
}
.title-back .left-father.data-v-402780bb {
display: flex;
align-items: center;
}
.title-back .left-father .back-img.data-v-402780bb {
width: 40rpx;
height: 40rpx;
margin-left: 40rpx;
margin-right: 15rpx;
} }

View File

@ -4,33 +4,72 @@ const request_index = require("../../request/index.js");
const pages_addjigou_api_addjigou = require("./api/addjigou.js"); const pages_addjigou_api_addjigou = require("./api/addjigou.js");
if (!Array) { if (!Array) {
const _easycom_u_modal2 = common_vendor.resolveComponent("u-modal"); const _easycom_u_modal2 = common_vendor.resolveComponent("u-modal");
_easycom_u_modal2(); const _easycom_u_action_sheet2 = common_vendor.resolveComponent("u-action-sheet");
(_easycom_u_modal2 + _easycom_u_action_sheet2)();
} }
const _easycom_u_modal = () => "../../uni_modules/vk-uview-ui/components/u-modal/u-modal.js"; const _easycom_u_modal = () => "../../uni_modules/vk-uview-ui/components/u-modal/u-modal.js";
const _easycom_u_action_sheet = () => "../../uni_modules/vk-uview-ui/components/u-action-sheet/u-action-sheet.js";
if (!Math) { if (!Math) {
_easycom_u_modal(); (_easycom_u_modal + _easycom_u_action_sheet)();
} }
const _sfc_main = { const _sfc_main = {
__name: "name", __name: "name",
setup(__props) { setup(__props) {
const show = common_vendor.ref(false); const show = common_vendor.ref(false);
const content = common_vendor.ref(""); const content = common_vendor.ref("");
const bottomshow = common_vendor.ref(false);
const bottomlist = [{
text: "拍摄图片",
fontSize: 40
}, {
text: "图片预览",
fontSize: 40
}];
const nameArray = ["姓名", "性别", "身份证号码", "民族", "出生日期", "住址", "签发机关", "有效期限"]; const nameArray = ["姓名", "性别", "身份证号码", "民族", "出生日期", "住址", "签发机关", "有效期限"];
const textArray = common_vendor.reactive(["", "", "", "", "", "", "", ""]); const textArray = common_vendor.reactive(["", "", "", "", "", "", "", ""]);
const fontphoto = common_vendor.ref(""); const fontphoto = common_vendor.ref("");
const endphoto = common_vendor.ref(""); const endphoto = common_vendor.ref("");
common_vendor.ref(0); common_vendor.ref(0);
const photoclick = (element) => {
if (element) {
common_vendor.index.previewImage({
urls: [headImge.value, backImge.value],
// 必填,所有要预览的图片地址数组
current: targetphoto.value ? backImge.value : headImge.value,
// 可选,当前显示图片的地址,默认是 urls[0]
indicator: "default",
// 可选指示器样式H5/App 有效,值为 'default'(圆点)或 'number'(数字)
longPressActions: {
// 可选,仅 App 支持,长按图片时弹出的操作项
itemList: ["保存图片到相册"]
}
});
} else {
getMessage();
}
};
const tempImagePath = common_vendor.ref(""); const tempImagePath = common_vendor.ref("");
const targetphoto = common_vendor.ref(0);
const selectphoto = (number) => {
if (backImge.value && headImge.value) {
targetphoto.value = number;
bottomshow.value = true;
} else {
getMessage();
}
};
function getMessage() { function getMessage() {
common_vendor.index.chooseImage({ common_vendor.index.chooseImage({
count: 1, count: 1,
sourceType: ["camera"], sourceType: ["album", "camera"],
success: (chooseRes) => { success: (chooseRes) => {
tempImagePath.value = chooseRes.tempFilePaths[0]; tempImagePath.value = chooseRes.tempFilePaths[0];
common_vendor.index.navigateTo({ url: `/compontent/public/camera?url=${chooseRes.tempFilePaths[0]}&type=0` }); common_vendor.index.navigateTo({
url: `/compontent/public/camera?url=${chooseRes.tempFilePaths[0]}&type=0`
});
}, },
fail: (err) => { fail: (err) => {
common_vendor.index.__f__("error", "at pages/addjigou/name.vue:128", "拍照失败:", err); common_vendor.index.__f__("error", "at pages/addjigou/name.vue:171", "拍照失败:", err);
} }
}); });
} }
@ -50,12 +89,14 @@ const _sfc_main = {
}, },
formData: {}, formData: {},
success: (uploadRes) => { success: (uploadRes) => {
common_vendor.index.__f__("log", "at pages/addjigou/name.vue:166", "token", common_vendor.index.getStorageSync("token")); common_vendor.index.__f__("log", "at pages/addjigou/name.vue:209", "token", common_vendor.index.getStorageSync("token"));
if (!JSON.parse(uploadRes.data).success) { if (!JSON.parse(uploadRes.data).success) {
common_vendor.index.showToast({ common_vendor.index.showToast({
title: "识别失败", title: "识别失败",
icon: "error" icon: "error",
duration: 2e3
}); });
uping.value = true;
common_vendor.index.hideLoading(); common_vendor.index.hideLoading();
return; return;
} }
@ -73,7 +114,7 @@ const _sfc_main = {
headImge.value = filePath; headImge.value = filePath;
savephoto(filePath, 0); savephoto(filePath, 0);
common_vendor.index.hideLoading(); common_vendor.index.hideLoading();
} else { } else if (JSON.parse(JSON.parse(uploadRes.data).result.data).data.back) {
let father = JSON.parse(JSON.parse(uploadRes.data).result.data).data.back.data; let father = JSON.parse(JSON.parse(uploadRes.data).result.data).data.back.data;
textArray[6] = father.issueAuthority; textArray[6] = father.issueAuthority;
textArray[7] = father.validPeriod; textArray[7] = father.validPeriod;
@ -83,6 +124,14 @@ const _sfc_main = {
backImge.value = filePath; backImge.value = filePath;
savephoto(filePath, 1); savephoto(filePath, 1);
common_vendor.index.hideLoading(); common_vendor.index.hideLoading();
} else {
common_vendor.index.showToast({
title: "识别失败",
icon: "error",
duration: 2e3
});
uping.value = false;
common_vendor.index.hideLoading();
} }
}, },
fail: (err) => { fail: (err) => {
@ -220,11 +269,11 @@ const _sfc_main = {
d: headImge.value ? headImge.value : `https://www.focusnu.com/media/directive/index/IDcard.png`, d: headImge.value ? headImge.value : `https://www.focusnu.com/media/directive/index/IDcard.png`,
e: !headImge.value e: !headImge.value
}, !headImge.value ? {} : {}, { }, !headImge.value ? {} : {}, {
f: common_vendor.o(getMessage), f: common_vendor.o(($event) => selectphoto(0)),
g: backImge.value ? backImge.value : `https://www.focusnu.com/media/directive/index/backIDcard.png`, g: backImge.value ? backImge.value : `https://www.focusnu.com/media/directive/index/backIDcard.png`,
h: !backImge.value h: !backImge.value
}, !backImge.value ? {} : {}, { }, !backImge.value ? {} : {}, {
i: common_vendor.o(getMessage), i: common_vendor.o(($event) => selectphoto(1)),
j: common_vendor.f(nameArray, (item, index, i0) => { j: common_vendor.f(nameArray, (item, index, i0) => {
return { return {
a: common_vendor.t(item), a: common_vendor.t(item),
@ -233,7 +282,13 @@ const _sfc_main = {
d: common_vendor.o(($event) => openLook(textArray[index]), index) d: common_vendor.o(($event) => openLook(textArray[index]), index)
}; };
}), }),
k: common_vendor.o(next) k: common_vendor.o(next),
l: common_vendor.o(photoclick),
m: common_vendor.o(($event) => bottomshow.value = $event),
n: common_vendor.p({
list: bottomlist,
modelValue: bottomshow.value
})
}); });
}; };
} }

View File

@ -1,6 +1,7 @@
{ {
"navigationBarTitleText": "企业实名认证", "navigationBarTitleText": "企业实名认证",
"usingComponents": { "usingComponents": {
"u-modal": "../../uni_modules/vk-uview-ui/components/u-modal/u-modal" "u-modal": "../../uni_modules/vk-uview-ui/components/u-modal/u-modal",
"u-action-sheet": "../../uni_modules/vk-uview-ui/components/u-action-sheet/u-action-sheet"
} }
} }

View File

@ -1 +1 @@
<view class="container data-v-4363d488"><u-modal wx:if="{{b}}" class="data-v-4363d488" u-i="4363d488-0" bind:__l="__l" bindupdateModelValue="{{a}}" u-p="{{b}}"></u-modal><view class="title-back data-v-4363d488"><view class="left-father data-v-4363d488" bindtap="{{c}}"><image class="back-img data-v-4363d488" src="https://www.focusnu.com/media/directive/index/left.png"/><view class="data-v-4363d488" style="font-size:30rpx">返回</view></view></view><view class="white-content data-v-4363d488"><view class="content-title data-v-4363d488"><view class="content-weight data-v-4363d488">身份证上传</view><image class="content-img data-v-4363d488" src="https://www.focusnu.com/media/directive/index/bian.png"/></view><view class="white-photo data-v-4363d488" bindtap="{{f}}"><view class="photo-left data-v-4363d488"><view class="photo-weight data-v-4363d488">人像面</view><view class="photo-font data-v-4363d488">请上传身份证人像面</view></view><view class="data-v-4363d488" style="position:relative"><image class="photo data-v-4363d488" src="{{d}}"/><image wx:if="{{e}}" class="data-v-4363d488" 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 data-v-4363d488" style="margin-top:30rpx" bindtap="{{i}}"><view class="photo-left data-v-4363d488"><view class="photo-weight data-v-4363d488">国徽面</view><view class="photo-font data-v-4363d488">请上传身份证国徽面</view></view><view class="data-v-4363d488" style="position:relative"><image class="photo data-v-4363d488" src="{{g}}"/><image wx:if="{{h}}" class="data-v-4363d488" 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 data-v-4363d488"><view class="message-title data-v-4363d488"><view class="shu data-v-4363d488"></view><view class="message-weight data-v-4363d488"> 确认身份证信息 </view></view><view class="data-v-4363d488" style="margin-bottom:20rpx"><view wx:for="{{j}}" wx:for-item="item" wx:key="c" class="one data-v-4363d488" bindtap="{{item.d}}"><view class="one-left data-v-4363d488">{{item.a}}</view><view class="one-right data-v-4363d488">{{item.b}}</view></view></view></view></view><view class="gray-font data-v-4363d488"><view class=" data-v-4363d488">注意事项:</view><view class="data-v-4363d488" style="margin-top:30rpx"> 同一个身份证号只能认证一个账号国徽而与正面信息应为同一身份证的信息目在有效期内,所有上传照片需清晰且未遮挡,请勿进行美化和修改,所有上传信息均会被妥善保管,不会用于其他商业用途或传输给第三方。</view></view><view class="data-v-4363d488" style="display:flex;width:100%"><view class="finish-button data-v-4363d488" bindtap="{{k}}"> 下一步 </view></view></view> <view class="container data-v-4363d488"><u-modal wx:if="{{b}}" class="data-v-4363d488" u-i="4363d488-0" bind:__l="__l" bindupdateModelValue="{{a}}" u-p="{{b}}"></u-modal><view class="title-back data-v-4363d488"><view class="left-father data-v-4363d488" bindtap="{{c}}"><image class="back-img data-v-4363d488" src="https://www.focusnu.com/media/directive/index/left.png"/><view class="data-v-4363d488" style="font-size:30rpx">企业加盟</view></view></view><view class="white-content data-v-4363d488"><view class="content-title data-v-4363d488"><view class="shu data-v-4363d488"></view><view class="content-weight data-v-4363d488">身份证</view><view class="data-v-4363d488" style="font-size:20rpx;margin:12rpx 0 0 15rpx">(必填)</view></view><view class="white-photo data-v-4363d488" bindtap="{{f}}"><view class="photo-left data-v-4363d488"><view class="photo-weight data-v-4363d488">人像面</view><view class="photo-font data-v-4363d488">请上传身份证人像面</view></view><view class="data-v-4363d488" style="position:relative"><image class="photo data-v-4363d488" src="{{d}}"/><image wx:if="{{e}}" class="data-v-4363d488" 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 data-v-4363d488" style="margin-top:30rpx" bindtap="{{i}}"><view class="photo-left data-v-4363d488"><view class="photo-weight data-v-4363d488">国徽面</view><view class="photo-font data-v-4363d488">请上传身份证国徽面</view></view><view class="data-v-4363d488" style="position:relative"><image class="photo data-v-4363d488" src="{{g}}"/><image wx:if="{{h}}" class="data-v-4363d488" 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="content-title data-v-4363d488" style="margin:20rpx 0"><view class="shu data-v-4363d488"></view><view class="content-weight data-v-4363d488">确认身份证信息</view></view><view class="white-message data-v-4363d488"><view class="data-v-4363d488"><view wx:for="{{j}}" wx:for-item="item" wx:key="c" class="one data-v-4363d488" bindtap="{{item.d}}"><view class="one-left data-v-4363d488">{{item.a}}</view><view class="one-right data-v-4363d488">{{item.b}}</view></view></view></view></view><view class="gray-font data-v-4363d488"><view class="data-v-4363d488" style="color:#333333">注意事项:</view><view class="data-v-4363d488" style="margin-top:30rpx;font-size:28rpx"><view class="line data-v-4363d488">1.同一个身份证号只能认证一个账号。</view><view class="line data-v-4363d488">2.国徽与正面信息应为同一身份证的信息且在有效期内。</view><view class="line data-v-4363d488">3.所有上传照片需清晰且未遮挡,请勿进行美化和修改。</view><view class="line data-v-4363d488">4.所有上传信息均会被妥善保管,不会用于其他商业用途或传输给第三方。</view></view></view><view class="data-v-4363d488" style="display:flex;width:100%"><view class="finish-button data-v-4363d488" bindtap="{{k}}"> 确认并继续 </view></view><u-action-sheet wx:if="{{n}}" class="data-v-4363d488" bindclick="{{l}}" u-i="4363d488-1" bind:__l="__l" bindupdateModelValue="{{m}}" u-p="{{n}}"></u-action-sheet></view>

View File

@ -28,25 +28,23 @@
flex-direction: column; flex-direction: column;
min-height: 100vh; min-height: 100vh;
width: 100%; width: 100%;
background-color: #eff1fc; background-color: #F7F7F7;
position: relative; position: relative;
box-shadow: 2rpx 2rpx 4rpx rgba(0, 0, 0, 0.1);
} }
.container .white-content.data-v-4363d488 { .container .white-content.data-v-4363d488 {
width: 90%; width: 90%;
margin-left: 5%; margin-left: 5%;
border-radius: 35rpx; border-radius: 35rpx;
background-color: #f5fbfe;
} }
.container .white-content .content-title.data-v-4363d488 { .container .white-content .content-title.data-v-4363d488 {
display: flex; display: flex;
align-items: center;
height: 100rpx; height: 100rpx;
position: relative; position: relative;
font-weight: 600;
} }
.container .white-content .content-title .content-weight.data-v-4363d488 { .container .white-content .content-title .content-weight.data-v-4363d488 {
font-weight: 600; font-size: 32rpx;
margin-left: 70rpx;
margin-top: 20rpx;
} }
.container .white-content .content-title .content-img.data-v-4363d488 { .container .white-content .content-title .content-img.data-v-4363d488 {
position: absolute; position: absolute;
@ -56,12 +54,10 @@
height: 100%; height: 100%;
} }
.container .white-photo.data-v-4363d488 { .container .white-photo.data-v-4363d488 {
width: 90%; width: 100%;
margin-left: 5%;
height: 300rpx; height: 300rpx;
border-radius: 35rpx; border-radius: 35rpx;
background-color: #fff; background-color: #fff;
box-shadow: 4rpx 4rpx 8rpx rgba(0, 0, 0, 0.1);
justify-content: space-around; justify-content: space-around;
align-items: center; align-items: center;
display: flex; display: flex;
@ -71,13 +67,13 @@
height: 200rpx; height: 200rpx;
} }
.container .white-message.data-v-4363d488 { .container .white-message.data-v-4363d488 {
width: 90%; width: 100%;
margin-left: 5%; margin-top: 20rpx;
margin-top: 30rpx; padding-top: 20rpx;
padding-bottom: 20rpx;
margin-bottom: 30rpx; margin-bottom: 30rpx;
border-radius: 35rpx; border-radius: 35rpx;
background-color: #fff; background-color: #fff;
box-shadow: 4rpx 4rpx 8rpx rgba(0, 0, 0, 0.1);
justify-content: space-around; justify-content: space-around;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
@ -88,21 +84,13 @@
align-items: center; align-items: center;
display: flex; display: flex;
} }
.container .white-message .message-title .shu.data-v-4363d488 {
width: 10rpx;
height: 30rpx;
background-color: #0097FF;
border-radius: 10rpx;
margin: 0 20rpx 0 30rpx;
}
.container .white-message .message-title .message-weight.data-v-4363d488 { .container .white-message .message-title .message-weight.data-v-4363d488 {
font-size: 30rpx; font-size: 30rpx;
} }
.container .white-message .one.data-v-4363d488 { .container .white-message .one.data-v-4363d488 {
width: 90%; width: 90%;
margin-left: 5%; margin-left: 5%;
border-bottom: 1rpx solid #d7d7d7; height: 100rpx;
height: 90rpx;
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
align-items: center; align-items: center;
@ -110,37 +98,43 @@
} }
.container .white-message .one .one-left.data-v-4363d488 { .container .white-message .one .one-left.data-v-4363d488 {
margin-left: 10rpx; margin-left: 10rpx;
font-size: 30rpx;
} }
.container .white-message .one .one-right.data-v-4363d488 { .container .white-message .one .one-right.data-v-4363d488 {
margin-right: 10rpx; margin-right: 10rpx;
font-size: 30rpx;
color: #999999; color: #999999;
overflow: hidden; overflow: hidden;
/* 隐藏超出内容 */ /* 隐藏超出内容 */
white-space: nowrap; white-space: nowrap;
/* 不换行 */ /* 不换行 */
text-overflow: ellipsis; text-overflow: ellipsis;
max-width: 300rpx; max-width: 380rpx;
} }
.photo-left .photo-weight.data-v-4363d488 { .photo-left .photo-weight.data-v-4363d488 {
font-size: 26rpx; font-size: 32rpx;
font-weight: 600; font-weight: 600;
color: #333;
} }
.photo-left .photo-font.data-v-4363d488 { .photo-left .photo-font.data-v-4363d488 {
font-size: 23rpx; font-size: 28rpx;
margin-top: 10rpx; margin-top: 10rpx;
color: #666;
} }
.gray-font.data-v-4363d488 { .gray-font.data-v-4363d488 {
padding: 30rpx 60rpx; padding: 20rpx 60rpx;
padding-bottom: 35rpx;
color: #999999; color: #999999;
} }
.finish-button.data-v-4363d488 { .finish-button.data-v-4363d488 {
display: flex; display: flex;
justify-content: center; justify-content: center;
align-items: center; align-items: center;
width: 45%; width: 92%;
height: 100rpx; height: 90rpx;
margin: 0rpx auto; margin: 0rpx auto;
margin-bottom: 80rpx; margin-bottom: 80rpx;
margin-top: 20rpx;
color: #fff; color: #fff;
background: linear-gradient(to right, #00C9FF, #0076FF); background: linear-gradient(to right, #00C9FF, #0076FF);
border-radius: 50rpx; border-radius: 50rpx;
@ -159,10 +153,10 @@
align-items: center; align-items: center;
} }
.left-father .back-img.data-v-4363d488 { .left-father .back-img.data-v-4363d488 {
width: 50rpx; width: 40rpx;
height: 50rpx; height: 40rpx;
margin-left: 40rpx; margin-left: 40rpx;
margin-right: 5rpx; margin-right: 15rpx;
} }
.rightStautes.data-v-4363d488 { .rightStautes.data-v-4363d488 {
width: 170rpx; width: 170rpx;
@ -197,3 +191,13 @@
color: #fff; color: #fff;
margin-right: 30rpx; margin-right: 30rpx;
} }
.shu.data-v-4363d488 {
width: 14rpx;
height: 36rpx;
background-color: #0097FF;
border-radius: 10rpx;
margin: 3rpx 20rpx 0 30rpx;
}
.line.data-v-4363d488 {
margin: 10rpx 0;
}

View File

@ -4,12 +4,14 @@ const pages_addjigou_api_addjigou = require("./api/addjigou.js");
if (!Array) { if (!Array) {
const _easycom_u_modal2 = common_vendor.resolveComponent("u-modal"); const _easycom_u_modal2 = common_vendor.resolveComponent("u-modal");
const _easycom_u_popup2 = common_vendor.resolveComponent("u-popup"); const _easycom_u_popup2 = common_vendor.resolveComponent("u-popup");
(_easycom_u_modal2 + _easycom_u_popup2)(); const _easycom_u_select2 = common_vendor.resolveComponent("u-select");
(_easycom_u_modal2 + _easycom_u_popup2 + _easycom_u_select2)();
} }
const _easycom_u_modal = () => "../../uni_modules/vk-uview-ui/components/u-modal/u-modal.js"; const _easycom_u_modal = () => "../../uni_modules/vk-uview-ui/components/u-modal/u-modal.js";
const _easycom_u_popup = () => "../../uni_modules/vk-uview-ui/components/u-popup/u-popup.js"; const _easycom_u_popup = () => "../../uni_modules/vk-uview-ui/components/u-popup/u-popup.js";
const _easycom_u_select = () => "../../uni_modules/vk-uview-ui/components/u-select/u-select.js";
if (!Math) { if (!Math) {
(_easycom_u_modal + _easycom_u_popup)(); (_easycom_u_modal + _easycom_u_popup + _easycom_u_select)();
} }
const _sfc_main = { const _sfc_main = {
__name: "where", __name: "where",
@ -18,16 +20,51 @@ const _sfc_main = {
const show = common_vendor.ref(false); const show = common_vendor.ref(false);
const content = common_vendor.ref(""); const content = common_vendor.ref("");
const jigouweizhi = common_vendor.ref(""); const jigouweizhi = common_vendor.ref("");
common_vendor.ref(false);
const popupshow = common_vendor.ref(false); const popupshow = common_vendor.ref(false);
const list = common_vendor.ref([]); const list = common_vendor.ref([]);
const showselect = common_vendor.ref(false);
const showlist = common_vendor.reactive(
// [{
// value: `租赁`,
// },
// {
// value: `自由产权`,
// },
// {
// value: `合作使用`,
// } ,{
// value: `其它`,
// }
// ]
[
{
value: 1,
label: "租赁"
},
{
value: 2,
label: "自由产权"
},
{
value: 3,
label: "合作使用"
},
{
value: 4,
label: "其它"
}
]
);
function onSelect1(arr) {
form.orgPropertyType = arr[0].label;
}
const form = common_vendor.reactive({ const form = common_vendor.reactive({
orgLeader: "", orgLeader: "",
orgLeaderPhone: "", orgLeaderPhone: "",
orgAddress: "", orgAddress: "",
orgPropertyType: "", orgPropertyType: "",
orgBuildingArea: "", orgBuildingArea: "",
orgAddress: "", // orgAddress: "",
orgCoordinateLo: "", orgCoordinateLo: "",
orgCoordinateLa: "", orgCoordinateLa: "",
id: common_vendor.index.getStorageSync("specicalid") || "", id: common_vendor.index.getStorageSync("specicalid") || "",
@ -51,7 +88,7 @@ const _sfc_main = {
list.value = dedupeFirstLetter(res.result); list.value = dedupeFirstLetter(res.result);
}); });
} }
common_vendor.index.__f__("log", "at pages/addjigou/where.vue:178", "删除了", index); common_vendor.index.__f__("log", "at pages/addjigou/where.vue:232", "删除了", index);
}; };
const next = () => { const next = () => {
const allNonEmpty = form.orgLeader && form.orgLeaderPhone && form.orgAddress && form.orgPropertyType && form.orgBuildingArea; const allNonEmpty = form.orgLeader && form.orgLeaderPhone && form.orgAddress && form.orgPropertyType && form.orgBuildingArea;
@ -84,6 +121,19 @@ const _sfc_main = {
} }
}; };
const goBack = () => { const goBack = () => {
if (form.address) {
let data = common_vendor.index.getStorageSync("backhuancun");
data.address = form.address;
data.orgProvince = form.orgProvince;
data.orgCity = form.orgCity;
data.orgDistrict = form.orgDistrict;
data.orgAddress = form.orgAddress;
data.orgLeader = form.orgLeader;
data.orgLeaderPhone = form.orgLeaderPhone;
data.orgPropertyType = form.orgPropertyType;
data.orgBuildingArea = form.orgBuildingArea;
common_vendor.index.setStorageSync("backhuancun", data);
}
common_vendor.index.navigateBack(); common_vendor.index.navigateBack();
}; };
const clickcard = (element) => { const clickcard = (element) => {
@ -119,7 +169,7 @@ const _sfc_main = {
common_vendor.onShow(() => { common_vendor.onShow(() => {
const data = common_vendor.index.getStorageSync("dingwei"); const data = common_vendor.index.getStorageSync("dingwei");
if (data) { if (data) {
common_vendor.index.__f__("log", "at pages/addjigou/where.vue:261", "data", data); common_vendor.index.__f__("log", "at pages/addjigou/where.vue:330", "data", data);
jigouweizhi.value = data.name; jigouweizhi.value = data.name;
form.orgAddress = data.name; form.orgAddress = data.name;
form.orgCoordinateLo = data.lng; form.orgCoordinateLo = data.lng;
@ -132,7 +182,10 @@ const _sfc_main = {
return arr.map((item) => { return arr.map((item) => {
const letter = item.firstLetter; const letter = item.firstLetter;
if (!letter || seen.has(letter)) { if (!letter || seen.has(letter)) {
return { ...item, firstLetter: "" }; return {
...item,
firstLetter: ""
};
} else { } else {
seen.add(letter); seen.add(letter);
return item; return item;
@ -143,7 +196,18 @@ const _sfc_main = {
pages_addjigou_api_addjigou.getdate(`xzqhdm`).then((res) => { pages_addjigou_api_addjigou.getdate(`xzqhdm`).then((res) => {
list.value = dedupeFirstLetter(res.result); list.value = dedupeFirstLetter(res.result);
}); });
if (common_vendor.index.getStorageSync("baddata")) { if (common_vendor.index.getStorageSync("backhuancun").address) {
let data = common_vendor.index.getStorageSync("backhuancun");
form.address = data.address;
form.orgProvince = data.orgProvince;
form.orgCity = data.orgCity;
form.orgDistrict = data.orgDistrict;
form.orgAddress = data.orgAddress;
form.orgLeader = data.orgLeader;
form.orgLeaderPhone = data.orgLeaderPhone;
form.orgPropertyType = data.orgPropertyType;
form.orgBuildingArea = data.orgBuildingArea;
} else if (common_vendor.index.getStorageSync("baddata")) {
let data = common_vendor.index.getStorageSync("baddata"); let data = common_vendor.index.getStorageSync("baddata");
if (data.orgProvince_dictText) { if (data.orgProvince_dictText) {
form.address = data.orgProvince_dictText + data.orgCity_dictText + data.orgDistrict_dictText; form.address = data.orgProvince_dictText + data.orgCity_dictText + data.orgDistrict_dictText;
@ -190,21 +254,29 @@ const _sfc_main = {
height: "600px", height: "600px",
modelValue: popupshow.value modelValue: popupshow.value
}), }),
i: form.address, i: common_vendor.o(goBack),
j: common_vendor.o(($event) => form.address = $event.detail.value), j: form.address,
k: common_vendor.o(openpopupshow), k: common_vendor.o(($event) => form.address = $event.detail.value),
l: form.orgAddress, l: common_vendor.o(openpopupshow),
m: common_vendor.o(($event) => form.orgAddress = $event.detail.value), m: form.orgAddress,
n: form.orgLeader, n: common_vendor.o(($event) => form.orgAddress = $event.detail.value),
o: common_vendor.o(($event) => form.orgLeader = $event.detail.value), o: form.orgLeader,
p: form.orgLeaderPhone, p: common_vendor.o(($event) => form.orgLeader = $event.detail.value),
q: common_vendor.o(($event) => form.orgLeaderPhone = $event.detail.value), q: form.orgLeaderPhone,
r: form.orgPropertyType, r: common_vendor.o(($event) => form.orgLeaderPhone = $event.detail.value),
s: common_vendor.o(($event) => form.orgPropertyType = $event.detail.value), s: form.orgPropertyType,
t: form.orgBuildingArea, t: common_vendor.o(($event) => form.orgPropertyType = $event.detail.value),
v: common_vendor.o(($event) => form.orgBuildingArea = $event.detail.value), v: common_vendor.o(($event) => showselect.value = true),
w: common_vendor.o(goBack), w: common_vendor.o(onSelect1),
x: common_vendor.o(next) x: common_vendor.o(($event) => showselect.value = $event),
y: common_vendor.p({
list: showlist,
modelValue: showselect.value
}),
z: form.orgBuildingArea,
A: common_vendor.o(($event) => form.orgBuildingArea = $event.detail.value),
B: common_vendor.o(goBack),
C: common_vendor.o(next)
}; };
}; };
} }

View File

@ -2,6 +2,7 @@
"navigationBarTitleText": "企业实名认证", "navigationBarTitleText": "企业实名认证",
"usingComponents": { "usingComponents": {
"u-modal": "../../uni_modules/vk-uview-ui/components/u-modal/u-modal", "u-modal": "../../uni_modules/vk-uview-ui/components/u-modal/u-modal",
"u-popup": "../../uni_modules/vk-uview-ui/components/u-popup/u-popup" "u-popup": "../../uni_modules/vk-uview-ui/components/u-popup/u-popup",
"u-select": "../../uni_modules/vk-uview-ui/components/u-select/u-select"
} }
} }

View File

@ -1 +1 @@
<view class="container data-v-549d1cee"><u-modal wx:if="{{b}}" class="data-v-549d1cee" u-i="549d1cee-0" bind:__l="__l" bindupdateModelValue="{{a}}" u-p="{{b}}"></u-modal><u-popup wx:if="{{h}}" class="data-v-549d1cee" u-s="{{['d']}}" u-i="549d1cee-1" bind:__l="__l" bindupdateModelValue="{{g}}" u-p="{{h}}"><view class="popup-father data-v-549d1cee"><view class="popup-title data-v-549d1cee"><view class="data-v-549d1cee" style="display:flex;justify-content:center;align-items:center;height:100rpx;width:100%;position:relative"><view class="title-font data-v-549d1cee"> 请选择所在地区 </view><image class="title-imge data-v-549d1cee" src="https://www.focusnu.com/media/directive/index/workjoin/x.png" bindtap="{{c}}"/></view><view wx:for="{{d}}" wx:for-item="item" class="data-v-549d1cee" style="height:80rpx;width:100%;display:flex;align-items:center;justify-content:space-between;position:relative"><view class="data-v-549d1cee" style="margin-left:60rpx">{{item.a}}</view><image class="title-imge data-v-549d1cee" style="width:25rpx;height:25rpx" src="https://www.focusnu.com/media/directive/index/workjoin/x.png" bindtap="{{item.b}}"/></view></view><view class="data-v-549d1cee" style="height:100rpx;width:100%"></view><view wx:for="{{e}}" wx:for-item="item" class="data-v-549d1cee" style="height:80rpx;width:100%"></view><view class="other-title data-v-549d1cee"> 选择地区 </view><view wx:for="{{f}}" wx:for-item="item" wx:key="c" class="data-v-549d1cee" bindtap="{{item.d}}"><view class="cards data-v-549d1cee"><view class="zimu data-v-549d1cee">{{item.a}}</view><view class="font data-v-549d1cee">{{item.b}}</view></view></view></view></u-popup><view class="white-content data-v-549d1cee"><view class="white-message data-v-549d1cee"><view class="data-v-549d1cee" bindtap="{{k}}"><view class="one data-v-549d1cee"><view class="one-left data-v-549d1cee">机构位置</view><input disabled style="cursor:not-allowed;pointer-events:none" class="one-right data-v-549d1cee" type="text" placeholder="请选择机构位置" value="{{i}}" bindinput="{{j}}"/></view></view><view class="data-v-549d1cee"><view class="one data-v-549d1cee" style="min-height:150rpx;overflow:hidden"><view class="one-left data-v-549d1cee">详细地址</view><block wx:if="{{r0}}"><textarea class="one-right-spec data-v-549d1cee" placeholder="请输入详细地址" auto-height maxlength="60" value="{{l}}" bindinput="{{m}}"/></block></view></view><view class="data-v-549d1cee"><view class="one data-v-549d1cee"><view class="one-left data-v-549d1cee">机构负责人</view><input class="one-right data-v-549d1cee" type="text" placeholder="请输入机构负责人姓名" value="{{n}}" bindinput="{{o}}"/></view></view><view class="data-v-549d1cee"><view class="one data-v-549d1cee"><view class="one-left data-v-549d1cee">机构负责人电话</view><input class="one-right data-v-549d1cee" type="number" placeholder="请输入机构负责人电话" value="{{p}}" bindinput="{{q}}"/></view></view><view class="data-v-549d1cee"><view class="one data-v-549d1cee"><view class="one-left data-v-549d1cee">房屋性质</view><input class="one-right data-v-549d1cee" type="text" placeholder="请输入房屋性质" value="{{r}}" bindinput="{{s}}"/></view></view><view class="data-v-549d1cee" style="margin-bottom:20rpx"><view class="one data-v-549d1cee" style="position:relative"><view class="one-left data-v-549d1cee">建筑面积</view><input class="one-right data-v-549d1cee" type="number" placeholder="请输入建筑面积" value="{{t}}" bindinput="{{v}}"/></view></view></view></view><view class="data-v-549d1cee" style="display:flex;width:100%;margin-top:10rpx"><view class="finish-button data-v-549d1cee" bindtap="{{w}}"> 上一步 </view><view class="finish-button data-v-549d1cee" bindtap="{{x}}"> 确认并提交 </view></view></view> <view class="container data-v-549d1cee"><u-modal wx:if="{{b}}" class="data-v-549d1cee" u-i="549d1cee-0" bind:__l="__l" bindupdateModelValue="{{a}}" u-p="{{b}}"></u-modal><u-popup wx:if="{{h}}" class="data-v-549d1cee" u-s="{{['d']}}" u-i="549d1cee-1" bind:__l="__l" bindupdateModelValue="{{g}}" u-p="{{h}}"><view class="popup-father data-v-549d1cee"><view class="popup-title data-v-549d1cee"><view class="data-v-549d1cee" style="display:flex;justify-content:center;align-items:center;height:100rpx;width:100%;position:relative"><view class="title-font data-v-549d1cee"> 请选择所在地区 </view><image class="title-imge data-v-549d1cee" src="https://www.focusnu.com/media/directive/index/workjoin/x.png" bindtap="{{c}}"/></view><view wx:for="{{d}}" wx:for-item="item" class="data-v-549d1cee" style="height:80rpx;width:100%;display:flex;align-items:center;justify-content:space-between;position:relative"><view class="data-v-549d1cee" style="margin-left:60rpx">{{item.a}}</view><image class="title-imge data-v-549d1cee" style="width:25rpx;height:25rpx" src="https://www.focusnu.com/media/directive/index/workjoin/x.png" bindtap="{{item.b}}"/></view></view><view class="data-v-549d1cee" style="height:100rpx;width:100%"></view><view wx:for="{{e}}" wx:for-item="item" class="data-v-549d1cee" style="height:80rpx;width:100%"></view><view class="other-title data-v-549d1cee"> 选择地区 </view><view wx:for="{{f}}" wx:for-item="item" wx:key="c" class="data-v-549d1cee" bindtap="{{item.d}}"><view class="cards data-v-549d1cee"><view class="zimu data-v-549d1cee">{{item.a}}</view><view class="font data-v-549d1cee">{{item.b}}</view></view></view></view></u-popup><view class="title-back data-v-549d1cee"><view class="left-father data-v-549d1cee" bindtap="{{i}}"><image class="back-img data-v-549d1cee" src="https://www.focusnu.com/media/directive/index/left.png"/><view class="data-v-549d1cee" style="font-size:30rpx">企业加盟</view></view></view><view class="white-content data-v-549d1cee"><view class="content-title data-v-549d1cee"><view class="shu data-v-549d1cee"></view><view class="content-weight data-v-549d1cee">机构信息</view></view><view class="white-message data-v-549d1cee"><view class="data-v-549d1cee" bindtap="{{l}}"><view class="one data-v-549d1cee" style="position:relative"><view class="one-left data-v-549d1cee">机构位置</view><input disabled style="cursor:not-allowed;pointer-events:none" class="one-right data-v-549d1cee" type="text" placeholder="请选择机构位置" value="{{j}}" bindinput="{{k}}"/><image class="triangle-down data-v-549d1cee" src="https://www.focusnu.com/media/directive/login/xia.png"/></view></view><view class="data-v-549d1cee"><view class="one data-v-549d1cee" style="overflow:hidden"><view class="one-left data-v-549d1cee">详细地址</view><input class="one-right data-v-549d1cee" placeholder="请输入详细地址" value="{{m}}" bindinput="{{n}}"/></view></view><view class="data-v-549d1cee"><view class="one data-v-549d1cee"><view class="one-left data-v-549d1cee">机构负责人</view><input class="one-right data-v-549d1cee" type="text" placeholder="请输入机构负责人姓名" value="{{o}}" bindinput="{{p}}"/></view></view><view class="data-v-549d1cee"><view class="one data-v-549d1cee"><view class="one-left data-v-549d1cee">机构负责人电话</view><input class="one-right data-v-549d1cee" type="number" maxlength="11" placeholder="请输入机构负责人电话" value="{{q}}" bindinput="{{r}}"/></view></view><view class="data-v-549d1cee"><view class="one data-v-549d1cee" style="position:relative" bindtap="{{v}}"><view class="one-left data-v-549d1cee">房屋性质</view><input disabled style="cursor:not-allowed;pointer-events:none" class="one-right data-v-549d1cee" type="text" placeholder="请输入房屋性质" value="{{s}}" bindinput="{{t}}"/><image class="triangle-down data-v-549d1cee" src="https://www.focusnu.com/media/directive/login/xia.png"/></view></view><u-select wx:if="{{y}}" class="data-v-549d1cee" bindconfirm="{{w}}" u-i="549d1cee-2" bind:__l="__l" bindupdateModelValue="{{x}}" u-p="{{y}}"></u-select><view class="data-v-549d1cee" style="margin-bottom:20rpx"><view class="one data-v-549d1cee" style="position:relative"><view class="one-left data-v-549d1cee">建筑面积</view><input class="one-right data-v-549d1cee" type="digit" placeholder="请输入建筑面积(平方米)" value="{{z}}" bindinput="{{A}}"/><view class="triangle-down-mi data-v-549d1cee"> ㎡ </view></view></view></view></view><view class="data-v-549d1cee" style="display:flex;width:100%;margin-top:10rpx;padding:0 20rpx"><view class="back-button data-v-549d1cee" bindtap="{{B}}"> 返回上一步 </view><view class="finish-button data-v-549d1cee" bindtap="{{C}}"> 确认并提交 </view></view></view>

View File

@ -28,26 +28,24 @@
flex-direction: column; flex-direction: column;
min-height: 100vh; min-height: 100vh;
width: 100%; width: 100%;
background-color: #eff1fc; background-color: #F7F7F7;
position: relative; position: relative;
box-shadow: 2rpx 2rpx 4rpx rgba(0, 0, 0, 0.1);
} }
.container .white-content.data-v-549d1cee { .container .white-content.data-v-549d1cee {
width: 90%; width: 100%;
margin-left: 5%; margin-top: 20rpx;
margin-top: 180rpx;
border-radius: 35rpx; border-radius: 35rpx;
background-color: #f5fbfe;
} }
.container .white-content .content-title.data-v-549d1cee { .container .white-content .content-title.data-v-549d1cee {
display: flex; display: flex;
height: 100rpx; align-items: center;
height: 70rpx;
position: relative; position: relative;
} }
.container .white-content .content-title .content-weight.data-v-549d1cee { .container .white-content .content-title .content-weight.data-v-549d1cee {
font-size: 32rpx;
font-weight: 600; font-weight: 600;
margin-left: 40rpx; margin-left: 20rpx;
margin-top: 20rpx;
} }
.container .white-content .content-title .content-img.data-v-549d1cee { .container .white-content .content-title .content-img.data-v-549d1cee {
position: absolute; position: absolute;
@ -62,7 +60,6 @@
height: 300rpx; height: 300rpx;
border-radius: 35rpx; border-radius: 35rpx;
background-color: #fff; background-color: #fff;
box-shadow: 4rpx 4rpx 8rpx rgba(0, 0, 0, 0.1);
justify-content: space-around; justify-content: space-around;
align-items: center; align-items: center;
display: flex; display: flex;
@ -74,11 +71,11 @@
.container .white-message.data-v-549d1cee { .container .white-message.data-v-549d1cee {
width: 90%; width: 90%;
margin-left: 5%; margin-left: 5%;
margin-top: 30rpx; margin-top: 10rpx;
margin-bottom: 30rpx; margin-bottom: 30rpx;
padding: 30rpx 0;
border-radius: 35rpx; border-radius: 35rpx;
background-color: #fff; background-color: #fff;
box-shadow: 4rpx 4rpx 8rpx rgba(0, 0, 0, 0.1);
justify-content: space-around; justify-content: space-around;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
@ -89,21 +86,13 @@
align-items: center; align-items: center;
display: flex; display: flex;
} }
.container .white-message .message-title .shu.data-v-549d1cee {
width: 10rpx;
height: 30rpx;
background-color: #0097FF;
border-radius: 10rpx;
margin: 0 20rpx 0 30rpx;
}
.container .white-message .message-title .message-weight.data-v-549d1cee { .container .white-message .message-title .message-weight.data-v-549d1cee {
font-size: 30rpx; font-size: 30rpx;
} }
.container .white-message .one.data-v-549d1cee { .container .white-message .one.data-v-549d1cee {
width: 90%; width: 90%;
margin-left: 5%; margin-left: 5%;
border-bottom: 1rpx solid #d7d7d7; height: 100rpx;
height: 90rpx;
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
align-items: center; align-items: center;
@ -111,17 +100,11 @@
} }
.container .white-message .one .one-left.data-v-549d1cee { .container .white-message .one .one-left.data-v-549d1cee {
margin-left: 10rpx; margin-left: 10rpx;
} font-size: 30rpx;
.container .white-message .one .one-right-spec.data-v-549d1cee {
color: #999999;
/* 隐藏超出内容 */
/* 不换行 */
font-size: 25rpx;
width: 300rpx;
display: flex;
flex-wrap: wrap;
} }
.container .white-message .one .one-right.data-v-549d1cee { .container .white-message .one .one-right.data-v-549d1cee {
font-size: 30rpx;
height: 100%;
color: #999999; color: #999999;
overflow: hidden; overflow: hidden;
/* 隐藏超出内容 */ /* 隐藏超出内容 */
@ -129,9 +112,8 @@
/* 不换行 */ /* 不换行 */
font-size: 25rpx; font-size: 25rpx;
text-overflow: ellipsis; text-overflow: ellipsis;
width: 300rpx; width: 350rpx;
display: flex; display: flex;
justify-content: flex-end;
} }
.photo-left .photo-weight.data-v-549d1cee { .photo-left .photo-weight.data-v-549d1cee {
font-size: 26rpx; font-size: 26rpx;
@ -146,7 +128,7 @@
justify-content: center; justify-content: center;
align-items: center; align-items: center;
width: 45%; width: 45%;
height: 100rpx; height: 90rpx;
margin: 0rpx auto; margin: 0rpx auto;
margin-bottom: 80rpx; margin-bottom: 80rpx;
color: #fff; color: #fff;
@ -220,6 +202,59 @@
.cards .font.data-v-549d1cee { .cards .font.data-v-549d1cee {
font-size: 30rpx; font-size: 30rpx;
} }
.title-back.data-v-549d1cee {
margin-top: 100rpx;
width: 100%;
height: 100rpx;
display: flex;
justify-content: space-between;
align-items: center;
}
.title-back .left-father.data-v-549d1cee {
display: flex;
align-items: center;
}
.title-back .left-father .back-img.data-v-549d1cee {
width: 40rpx;
height: 40rpx;
margin-left: 40rpx;
margin-right: 15rpx;
}
.back-button.data-v-549d1cee {
display: flex;
justify-content: center;
align-items: center;
width: 44%;
height: 90rpx;
margin: 0rpx auto;
margin-bottom: 80rpx;
border: 2rpx solid #c3cacd;
background: linear-gradient(to bottom, #f3f3f5, #dee4e9);
border-radius: 50rpx;
font-size: 35rpx;
}
.shu.data-v-549d1cee {
width: 14rpx;
height: 36rpx;
background-color: #0097FF;
border-radius: 10rpx;
margin: 3rpx 5rpx 0 60rpx;
}
.triangle-down.data-v-549d1cee {
position: absolute;
top: 50%;
transform: translateY(-50%);
right: 26rpx;
width: 20rpx;
height: 20rpx;
}
.triangle-down-mi.data-v-549d1cee {
position: absolute;
top: 50%;
transform: translateY(-50%);
right: 26rpx;
font-size: 30rpx;
}
.uni-scroll-view { .uni-scroll-view {
height: auto; height: auto;

View File

@ -37,7 +37,7 @@ const _sfc_main = {
}); });
}, },
fail(err) { fail(err) {
common_vendor.index.__f__("error", "at pages/login/callback.vue:261", "获取 code 失败:", err); common_vendor.index.__f__("error", "at pages/login/callback.vue:263", "获取 code 失败:", err);
} }
}); });
}; };

View File

@ -1 +1 @@
<view class="login-container data-v-47aa4dce"><image class="imge data-v-47aa4dce" src="https://www.focusnu.com/media/directive/index/nu.png"/><view class="font data-v-47aa4dce"> 页面跳转中,请稍后... </view></view> <view class="login-container data-v-47aa4dce"><image class="login-imge data-v-47aa4dce" src="https://www.focusnu.com/media/directive/login/loading.gif" mode="widthFix" lazy-load="false"/></view>

View File

@ -23,6 +23,10 @@
/* 垂直间距 */ /* 垂直间距 */
/* 透明度 */ /* 透明度 */
/* 文章场景相关 */ /* 文章场景相关 */
.login-imge.data-v-47aa4dce {
width: 440rpx;
height: 110rpx;
}
.callback-container.data-v-47aa4dce { .callback-container.data-v-47aa4dce {
padding: 24px; padding: 24px;
} }

View File

@ -1 +1 @@
<view class="login-container data-v-d08ef7d4"><image class="title-imge data-v-d08ef7d4" src="https://www.focusnu.com/media/directive/login/icon.png"/><image class="photo-imge data-v-d08ef7d4" src="https://www.focusnu.com/media/directive/login/bgc.png"/><view class="under-container data-v-d08ef7d4"><view class="button-blue data-v-d08ef7d4" bindtap="{{a}}"> 一键登录 </view><view class="under-container-title data-v-d08ef7d4"><view class="{{['data-v-d08ef7d4', b]}}" bindtap="{{c}}"></view><view style="margin-left:17rpx" class="radio-circle-font data-v-d08ef7d4" bindtap="{{d}}">同意护理单元</view><view class="radio-circle-blue data-v-d08ef7d4" bindtap="{{e}}"> 《使用条款》 </view><view class="radio-circle-font data-v-d08ef7d4" bindtap="{{f}}">并授权NU获取本机号码</view></view></view><transition wx:if="{{j}}" class="data-v-d08ef7d4" u-s="{{['d']}}" u-i="d08ef7d4-0" bind:__l="__l" u-p="{{j}}"><view wx:if="{{g}}" class="overlay data-v-d08ef7d4" bindtap="{{h}}" style="{{'background-color:' + i}}"/></transition><transition wx:if="{{o}}" class="data-v-d08ef7d4" u-s="{{['d']}}" u-i="d08ef7d4-1" bind:__l="__l" u-p="{{o}}"><view wx:if="{{k}}" class="modal data-v-d08ef7d4"><view class="modal-title data-v-d08ef7d4">服务协议及隐私保护</view><view class="model-p data-v-d08ef7d4"><text class="data-v-d08ef7d4">  为了更好地保障您的合法权益,请阅读并同意以下协议</text><text class="data-v-d08ef7d4" style="color:rgb(0,141,255)" bindtap="{{l}}">《护理单元使用条款》</text><text class="data-v-d08ef7d4">,同意后将自动登录。</text></view><view class="model-down data-v-d08ef7d4"><view class="model-white data-v-d08ef7d4" bindtap="{{m}}"> 不同意 </view><view class="model-blue data-v-d08ef7d4" bindtap="{{n}}"> 同意 </view></view></view></transition></view> <view class="login-container data-v-d08ef7d4"><image class="title-imge data-v-d08ef7d4" src="https://www.focusnu.com/media/directive/login/icon.png"/><image class="photo-imge data-v-d08ef7d4" src="https://www.focusnu.com/media/directive/login/bgc.png"/><view class="under-container data-v-d08ef7d4"><view class="button-blue data-v-d08ef7d4" bindtap="{{a}}"> 一键登录 </view><view class="under-container-title data-v-d08ef7d4"><view class="{{['data-v-d08ef7d4', b]}}" bindtap="{{c}}"></view><view style="margin-left:17rpx" class="radio-circle-font data-v-d08ef7d4" bindtap="{{d}}">同意护理单元</view><view class="radio-circle-blue data-v-d08ef7d4" bindtap="{{e}}"> 《使用条款》 </view><view class="radio-circle-font data-v-d08ef7d4" bindtap="{{f}}">并授权NU获取本机号码</view></view></view><transition wx:if="{{j}}" class="data-v-d08ef7d4" u-s="{{['d']}}" u-i="d08ef7d4-0" bind:__l="__l" u-p="{{j}}"><view wx:if="{{g}}" class="overlay data-v-d08ef7d4" bindtap="{{h}}" style="{{'background-color:' + i}}"/></transition><transition wx:if="{{o}}" class="data-v-d08ef7d4" u-s="{{['d']}}" u-i="d08ef7d4-1" bind:__l="__l" u-p="{{o}}"><view wx:if="{{k}}" class="modal data-v-d08ef7d4"><view class="modal-title data-v-d08ef7d4">服务协议及隐私保护</view><view class="model-p data-v-d08ef7d4"><text class="data-v-d08ef7d4">  为了更好地保障您的合法权益,请阅读并同意以下协议护理单元</text><text class="data-v-d08ef7d4" style="color:rgb(0,141,255)" bindtap="{{l}}">《使用条款》</text><text class="data-v-d08ef7d4">,同意后将自动登录。</text></view><view class="model-down data-v-d08ef7d4"><view class="model-white data-v-d08ef7d4" bindtap="{{m}}"> 不同意 </view><view class="model-blue data-v-d08ef7d4" bindtap="{{n}}"> 同意 </view></view></view></transition></view>

View File

@ -17,6 +17,7 @@ const _sfc_main = {
const gotoadd = () => { const gotoadd = () => {
common_vendor.index.setStorageSync("specicalid", ""); common_vendor.index.setStorageSync("specicalid", "");
common_vendor.index.setStorageSync("baddata", ""); common_vendor.index.setStorageSync("baddata", "");
common_vendor.index.setStorageSync("backhuancun", {});
common_vendor.index.navigateTo({ common_vendor.index.navigateTo({
url: `/pages/addjigou/name` url: `/pages/addjigou/name`
}); });
@ -30,11 +31,10 @@ const _sfc_main = {
}); });
return (_ctx, _cache) => { return (_ctx, _cache) => {
return { return {
a: common_vendor.t(phone.value), a: common_vendor.o(jumpToindex),
b: common_vendor.o(jumpToindex), b: common_vendor.o(gotoadd),
c: common_vendor.o(gotoadd), c: common_vendor.o(ceshi),
d: common_vendor.o(ceshi), d: common_vendor.o(close)
e: common_vendor.o(close)
}; };
}; };
} }

View File

@ -1 +1 @@
<view class="login-container data-v-83beea56"><image class="photo-imge data-v-83beea56" src="https://www.focusnu.com/media/directive/index/indexgif.gif" mode="widthFix" lazy-load="false"/><view class="card-title data-v-83beea56"> 恭喜您已成功绑定手机 <text class="data-v-83beea56" style="color:#01A9FF">{{a}}</text>,现在您可以: </view><view class="card data-v-83beea56"><view class="card-left data-v-83beea56"><view class="card-weight data-v-83beea56"> 长者入住 </view><view class="card-text data-v-83beea56"> 护理单元日常护理涵盖生活照料、健康监测、康复护理及心理关怀,为老人提供贴心照护服务。 </view><view class="white-button data-v-83beea56" bindtap="{{b}}"> 申请入住 </view></view><view class="card-right data-v-83beea56"><image class="right-imge data-v-83beea56" src="https://www.focusnu.com/media/directive/login/old.png"/></view></view><view class="card data-v-83beea56"><view class="card-left data-v-83beea56"><view class="card-weight data-v-83beea56"> 员工入驻 </view><view class="card-text data-v-83beea56"> 护理员严格按标准流程,定时为失能老人开展床旁照护,用专业与温情守护老人生活与健康。 </view><view class="data-v-83beea56" style="display:flex"><view class="white-button data-v-83beea56"> 申请入驻 </view></view></view><view class="card-right data-v-83beea56"><image class="right-imge data-v-83beea56" src="https://www.focusnu.com/media/directive/login/yuangong.png"/></view></view><view class="card data-v-83beea56" style="height:330rpx"><view class="card-left data-v-83beea56"><view class="card-weight data-v-83beea56"> 机构加盟 </view><view class="card-text data-v-83beea56"> 加盟我们,共享银发经济红利!依托成熟运营体系,标准化服务流程降低人力成本及管理开支,背靠品牌资源,助力企业快速实现营收增长。 </view><view class="data-v-83beea56" style="display:flex"><view class="white-button data-v-83beea56" bindtap="{{c}}"> 申请加盟 </view></view></view><view class="card-right data-v-83beea56"><image class="right-imge data-v-83beea56" src="https://www.focusnu.com/media/directive/login/gongsi.png" bindtap="{{d}}"/></view></view><view class="blue-button data-v-83beea56" bindtap="{{e}}"> 关闭 </view></view> <view class="login-container data-v-83beea56"><image class="photo-imge data-v-83beea56" src="https://www.focusnu.com/media/directive/index/indexgif.gif" mode="widthFix" lazy-load="false"/><view class="card data-v-83beea56" style="margin-top:550rpx"><view class="card-left data-v-83beea56"><view class="card-weight data-v-83beea56"> 长者入住 </view><view class="card-text data-v-83beea56"> 护理单元日常护理涵盖生活照料、健康监测、康复护理及心理关怀,为老人提供贴心照护服务。 </view><view class="white-button data-v-83beea56" bindtap="{{a}}"> 申请入住 </view></view><view class="card-right data-v-83beea56"><image class="right-imge data-v-83beea56" src="https://www.focusnu.com/media/directive/login/old.png"/></view></view><view class="card data-v-83beea56"><view class="card-left data-v-83beea56"><view class="card-weight data-v-83beea56"> 员工入驻 </view><view class="card-text data-v-83beea56"> 护理员严格按标准流程,定时为失能老人开展床旁照护,用专业与温情守护老人生活与健康。 </view><view class="data-v-83beea56" style="display:flex"><view class="white-button data-v-83beea56"> 申请入驻 </view></view></view><view class="card-right data-v-83beea56"><image class="right-imge data-v-83beea56" src="https://www.focusnu.com/media/directive/login/yuangong.png"/></view></view><view class="card data-v-83beea56" style="height:330rpx"><view class="card-left data-v-83beea56"><view class="card-weight data-v-83beea56"> 机构加盟 </view><view class="card-text data-v-83beea56"> 加盟我们,共享银发经济红利!依托成熟运营体系,标准化服务流程降低人力成本及管理开支,背靠品牌资源,助力企业快速实现营收增长。 </view><view class="data-v-83beea56" style="display:flex"><view class="white-button data-v-83beea56" bindtap="{{b}}"> 申请加盟 </view></view></view><view class="card-right data-v-83beea56"><image class="right-imge data-v-83beea56" src="https://www.focusnu.com/media/directive/login/gongsi.png" bindtap="{{c}}"/></view></view><view class="blue-button data-v-83beea56" bindtap="{{d}}"> 关闭 </view></view>

View File

@ -48,7 +48,7 @@
} }
.login-container .photo-imge.data-v-83beea56 { .login-container .photo-imge.data-v-83beea56 {
position: absolute; position: absolute;
top: 40rpx; top: 0rpx;
left: 0; left: 0;
width: 100%; width: 100%;
height: 1100rpx; height: 1100rpx;
@ -121,6 +121,7 @@
border-radius: 30rpx; border-radius: 30rpx;
background-color: #fff; background-color: #fff;
display: flex; display: flex;
align-items: center;
} }
.card .card-left.data-v-83beea56 { .card .card-left.data-v-83beea56 {
height: 100%; height: 100%;
@ -165,8 +166,8 @@
display: flex; display: flex;
justify-content: center; justify-content: center;
align-items: center; align-items: center;
height: 80rpx; height: 90rpx;
border-radius: 30rpx; border-radius: 50rpx;
background: linear-gradient(to left, #00C9FF, #0076FF); background: linear-gradient(to left, #00C9FF, #0076FF);
color: #fff; color: #fff;
font-size: 33rpx; font-size: 33rpx;

View File

@ -27,6 +27,7 @@ const _sfc_main = {
common_vendor.index.__f__("log", "at pages/login/workjoin.vue:85", "????", item); common_vendor.index.__f__("log", "at pages/login/workjoin.vue:85", "????", item);
common_vendor.index.setStorageSync("baddata", item); common_vendor.index.setStorageSync("baddata", item);
common_vendor.index.setStorageSync("specicalid", item.id); common_vendor.index.setStorageSync("specicalid", item.id);
common_vendor.index.setStorageSync("backhuancun", {});
common_vendor.index.navigateTo({ common_vendor.index.navigateTo({
url: `/pages/addjigou/name` url: `/pages/addjigou/name`
}); });

View File

@ -5,11 +5,12 @@
}, },
"setting": { "setting": {
"urlCheck": false, "urlCheck": false,
"es6": false, "es6": true,
"postcss": false, "postcss": false,
"minified": true, "minified": true,
"newFeature": true, "newFeature": true,
"bigPackageSizeSupport": true "bigPackageSizeSupport": true,
"enhance": true
}, },
"compileType": "miniprogram", "compileType": "miniprogram",
"libVersion": "", "libVersion": "",

View File

@ -100,6 +100,8 @@
display: flex; display: flex;
flex-direction: row; flex-direction: row;
background-color: #f8f8f8; background-color: #f8f8f8;
border-top-right-radius: 30rpx;
border-top-left-radius: 30rpx;
} }
.image-cropper .fixed-bottom .action-bar.data-v-7129956f { .image-cropper .fixed-bottom .action-bar.data-v-7129956f {
position: absolute; position: absolute;
@ -119,7 +121,7 @@
transform: rotateY(180deg); transform: rotateY(180deg);
} }
.image-cropper .fixed-bottom .rechoose.data-v-7129956f { .image-cropper .fixed-bottom .rechoose.data-v-7129956f {
color: #007aff; color: #333333;
padding: 0 15px; padding: 0 15px;
line-height: 100rpx; line-height: 100rpx;
} }
@ -131,8 +133,10 @@
} }
.image-cropper .fixed-bottom .button.data-v-7129956f { .image-cropper .fixed-bottom .button.data-v-7129956f {
margin: auto 15px auto auto; margin: auto 15px auto auto;
background-color: #007aff; background: linear-gradient(to right, #00C9FF, #0076FF);
color: #fff; color: #fff;
border-radius: 20rpx;
margin-top: 30rpx;
} }
.image-cropper .safe-area-inset-bottom.data-v-7129956f { .image-cropper .safe-area-inset-bottom.data-v-7129956f {
padding-bottom: 0; padding-bottom: 0;

View File

@ -0,0 +1,192 @@
"use strict";
const common_vendor = require("../../../../common/vendor.js");
const _sfc_main = {
name: "u-action-sheet",
emits: ["update:modelValue", "input", "click", "close"],
props: {
// 通过双向绑定控制组件的弹出与收起
value: {
type: Boolean,
default: false
},
modelValue: {
type: Boolean,
default: false
},
// 点击遮罩是否可以关闭actionsheet
maskCloseAble: {
type: Boolean,
default: true
},
// 按钮的文字数组可以自定义颜色和字体大小字体单位为rpx
list: {
type: Array,
default() {
return [];
}
},
// 顶部的提示文字
tips: {
type: Object,
default() {
return {
text: "",
color: "",
fontSize: "26"
};
}
},
// 底部的取消按钮
cancelBtn: {
type: Boolean,
default: true
},
// 是否开启底部安全区适配开启的话会在iPhoneX机型底部添加一定的内边距
safeAreaInsetBottom: {
type: Boolean,
default: false
},
// 弹出的顶部圆角值
borderRadius: {
type: [String, Number],
default: 0
},
// 弹出的z-index值
zIndex: {
type: [String, Number],
default: 0
},
// 取消按钮的文字提示
cancelText: {
type: String,
default: "取消"
},
// 自定义label属性名
labelName: {
type: String,
default: "text"
},
// 遮罩的模糊度
blur: {
type: [Number, String],
default: 0
}
},
computed: {
valueCom() {
return this.modelValue;
},
// 顶部提示的样式
tipsStyle() {
let style = {};
if (this.tips.color)
style.color = this.tips.color;
if (this.tips.fontSize)
style.fontSize = this.tips.fontSize + "rpx";
return style;
},
// 操作项目的样式
itemStyle() {
return (index) => {
let style = {};
if (this.list[index].color)
style.color = this.list[index].color;
if (this.list[index].fontSize)
style.fontSize = this.list[index].fontSize + "rpx";
if (this.list[index].disabled)
style.color = "#c0c4cc";
return style;
};
},
uZIndex() {
return this.zIndex ? this.zIndex : this.$u.zIndex.popup;
}
},
data() {
return {
popupValue: false
};
},
watch: {
valueCom(v1, v2) {
this.popupValue = v1;
}
},
methods: {
// 点击取消按钮
close() {
this.popupClose();
this.$emit("close");
},
// 弹窗关闭
popupClose() {
this.$emit("input", false);
this.$emit("update:modelValue", false);
},
// 点击某一个item
itemClick(index) {
if (this.list[index].disabled)
return;
this.$emit("click", index);
this.$emit("input", false);
this.$emit("update:modelValue", false);
}
}
};
if (!Array) {
const _easycom_u_popup2 = common_vendor.resolveComponent("u-popup");
_easycom_u_popup2();
}
const _easycom_u_popup = () => "../u-popup/u-popup.js";
if (!Math) {
_easycom_u_popup();
}
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
return common_vendor.e({
a: $props.tips.text
}, $props.tips.text ? {
b: common_vendor.t($props.tips.text),
c: common_vendor.s($options.tipsStyle)
} : {}, {
d: common_vendor.f($props.list, (item, index, i0) => {
return common_vendor.e({
a: common_vendor.t(item[$props.labelName]),
b: item.subText
}, item.subText ? {
c: common_vendor.t(item.subText)
} : {}, {
d: common_vendor.o(() => {
}, index),
e: common_vendor.o(($event) => $options.itemClick(index), index),
f: common_vendor.s($options.itemStyle(index)),
g: common_vendor.n(index < $props.list.length - 1 ? "u-border-bottom" : ""),
h: index
});
}),
e: $props.cancelBtn
}, $props.cancelBtn ? {} : {}, {
f: $props.cancelBtn
}, $props.cancelBtn ? {
g: common_vendor.t($props.cancelText),
h: common_vendor.o(() => {
}),
i: common_vendor.o((...args) => $options.close && $options.close(...args))
} : {}, {
j: common_vendor.o($options.popupClose),
k: common_vendor.o(($event) => $data.popupValue = $event),
l: common_vendor.p({
blur: $props.blur,
mode: "bottom",
["border-radius"]: $props.borderRadius,
popup: false,
maskCloseAble: $props.maskCloseAble,
length: "auto",
safeAreaInsetBottom: $props.safeAreaInsetBottom,
["z-index"]: $options.uZIndex,
modelValue: $data.popupValue
})
});
}
const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-cd40cb92"]]);
wx.createComponent(Component);
//# sourceMappingURL=../../../../../.sourcemap/mp-weixin/uni_modules/vk-uview-ui/components/u-action-sheet/u-action-sheet.js.map

View File

@ -0,0 +1,6 @@
{
"component": true,
"usingComponents": {
"u-popup": "../u-popup/u-popup"
}
}

View File

@ -0,0 +1 @@
<u-popup wx:if="{{l}}" class="data-v-cd40cb92" u-s="{{['d']}}" bindclose="{{j}}" u-i="cd40cb92-0" bind:__l="__l" bindupdateModelValue="{{k}}" u-p="{{l}}"><view wx:if="{{a}}" class="u-tips u-border-bottom data-v-cd40cb92" style="{{c}}"><text class="data-v-cd40cb92">{{b}}</text></view><block wx:for="{{d}}" wx:for-item="item" wx:key="h"><view catchtouchmove="{{item.d}}" bindtap="{{item.e}}" style="{{item.f}}" class="{{['u-action-sheet-item', 'u-line-1', 'data-v-cd40cb92', item.g]}}" hover-stay-time="{{150}}"><text class="data-v-cd40cb92">{{item.a}}</text><text wx:if="{{item.b}}" class="u-action-sheet-item__subtext u-line-1 data-v-cd40cb92">{{item.c}}</text></view></block><view wx:if="{{e}}" class="u-gab data-v-cd40cb92"></view><view wx:if="{{f}}" catchtouchmove="{{h}}" class="u-actionsheet-cancel u-action-sheet-item data-v-cd40cb92" hover-class="u-hover-class" hover-stay-time="{{150}}" bindtap="{{i}}">{{g}}</view></u-popup>

View File

@ -0,0 +1,54 @@
/**
* 这里是uni-app内置的常用样式变量
*
* uni-app 官方扩展插件及插件市场https://ext.dcloud.net.cn上很多三方插件均使用了这些样式变量
* 如果你是插件开发者建议你使用scss预处理并在插件代码中直接使用这些变量无需 import 这个文件方便用户通过搭积木的方式开发整体风格一致的App
*
*/
/**
* 如果你是App开发者插件使用者你可以通过修改这些变量来定制自己的插件主题实现自定义主题功能
*
* 如果你的项目同样使用了scss预处理你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
*/
/* 颜色变量 */
/* 行为相关颜色 */
/* 文字基本颜色 */
/* 背景颜色 */
/* 边框颜色 */
/* 尺寸变量 */
/* 文字尺寸 */
/* 图片尺寸 */
/* Border Radius */
/* 水平间距 */
/* 垂直间距 */
/* 透明度 */
/* 文章场景相关 */
.u-tips.data-v-cd40cb92 {
font-size: 26rpx;
text-align: center;
padding: 34rpx 0;
line-height: 1.5;
color: #909399;
}
.u-action-sheet-item.data-v-cd40cb92 {
display: flex;
flex-direction: row;
line-height: 1;
justify-content: center;
align-items: center;
font-size: 32rpx;
padding: 34rpx 0;
flex-direction: column;
}
.u-action-sheet-item__subtext.data-v-cd40cb92 {
font-size: 24rpx;
color: #909399;
margin-top: 20rpx;
}
.u-gab.data-v-cd40cb92 {
height: 12rpx;
background-color: #eaeaec;
}
.u-actionsheet-cancel.data-v-cd40cb92 {
color: #303133;
}

View File

@ -0,0 +1,341 @@
"use strict";
const common_vendor = require("../../../../common/vendor.js");
const _sfc_main = {
emits: ["update:modelValue", "input", "confirm"],
props: {
// 通过双向绑定控制组件的弹出与收起
value: {
type: Boolean,
default: false
},
modelValue: {
type: Boolean,
default: false
},
// 列数据
list: {
type: Array,
default() {
return [];
}
},
// 是否显示边框
border: {
type: Boolean,
default: true
},
// "取消"按钮的颜色
cancelColor: {
type: String,
default: "#606266"
},
// "确定"按钮的颜色
confirmColor: {
type: String,
default: "#2979ff"
},
// 弹出的z-index值
zIndex: {
type: [String, Number],
default: 0
},
safeAreaInsetBottom: {
type: Boolean,
default: false
},
// 是否允许通过点击遮罩关闭Picker
maskCloseAble: {
type: Boolean,
default: true
},
// 提供的默认选中的下标
defaultValue: {
type: Array,
default() {
return [0];
}
},
// 模式选择single-column-单列mutil-column-多列mutil-column-auto-多列联动
mode: {
type: String,
default: "single-column"
},
// 自定义value属性名
valueName: {
type: String,
default: "value"
},
// 自定义label属性名
labelName: {
type: String,
default: "label"
},
// 自定义多列联动模式的children属性名
childName: {
type: String,
default: "children"
},
// 顶部标题
title: {
type: String,
default: ""
},
// 取消按钮的文字
cancelText: {
type: String,
default: "取消"
},
// 确认按钮的文字
confirmText: {
type: String,
default: "确认"
},
// 遮罩的模糊度
blur: {
type: [Number, String],
default: 0
}
},
data() {
return {
popupValue: false,
// 用于列改变时,保存当前的索引,下一次变化时比较得出是哪一列发生了变化
defaultSelector: [0],
// picker-view的数据
columnData: [],
// 每次队列发生变化时,保存选择的结果
selectValue: [],
// 上一次列变化时的index
lastSelectIndex: [],
// 列数
columnNum: 0,
// 列是否还在滑动中,微信小程序如果在滑动中就点确定,结果可能不准确
moving: false,
reset: false
};
},
watch: {
// 在select弹起的时候重新初始化所有数据
valueCom: {
immediate: true,
handler(val) {
if (val) {
this.reset = true;
setTimeout(() => this.init(), 10);
}
this.popupValue = val;
}
}
},
computed: {
uZIndex() {
return this.zIndex ? this.zIndex : this.$u.zIndex.popup;
},
valueCom() {
return this.modelValue;
},
// 用来兼容小程序、App、h5
showColumnCom() {
return !this.reset;
}
},
methods: {
// 标识滑动开始,只有微信小程序才有这样的事件
pickstart() {
this.moving = true;
},
// 标识滑动结束
pickend() {
this.moving = false;
},
init() {
this.reset = false;
this.setColumnNum();
this.setDefaultSelector();
this.setColumnData();
this.setSelectValue();
},
// 获取默认选中列下标
setDefaultSelector() {
this.defaultSelector = this.defaultValue.length == this.columnNum ? this.defaultValue : Array(this.columnNum).fill(0);
this.lastSelectIndex = this.$u.deepClone(this.defaultSelector);
},
// 计算列数
setColumnNum() {
if (this.mode == "single-column")
this.columnNum = 1;
else if (this.mode == "mutil-column")
this.columnNum = this.list.length;
else if (this.mode == "mutil-column-auto") {
let num = 1;
let column = this.list;
while (column[0][this.childName]) {
column = column[0] ? column[0][this.childName] : {};
num++;
}
this.columnNum = num;
}
},
// 获取需要展示在picker中的列数据
setColumnData() {
let data = [];
this.selectValue = [];
if (this.mode == "mutil-column-auto") {
let column = this.list[this.defaultSelector.length ? this.defaultSelector[0] : 0];
for (let i = 0; i < this.columnNum; i++) {
if (i == 0) {
data[i] = this.list;
column = column[this.childName];
} else {
data[i] = column;
column = column[this.defaultSelector[i]][this.childName];
}
}
} else if (this.mode == "single-column") {
data[0] = this.list;
} else {
data = this.list;
}
this.columnData = data;
},
// 获取默认选中的值如果没有设置defaultValue就默认选中每列的第一个
setSelectValue() {
let tmp = null;
for (let i = 0; i < this.columnNum; i++) {
tmp = this.columnData[i][this.defaultSelector[i]];
let data = {
index: this.defaultSelector[i],
value: tmp ? tmp[this.valueName] : null,
label: tmp ? tmp[this.labelName] : null
};
if (tmp && tmp.extra !== void 0)
data.extra = tmp.extra;
this.selectValue.push(data);
}
},
// 列选项
columnChange(e) {
let index = null;
let columnIndex = e.detail.value;
this.selectValue = [];
if (this.mode == "mutil-column-auto") {
this.lastSelectIndex.map((val, idx) => {
if (val != columnIndex[idx])
index = idx;
});
this.defaultSelector = columnIndex;
for (let i = index + 1; i < this.columnNum; i++) {
this.columnData[i] = this.columnData[i - 1][i - 1 == index ? columnIndex[index] : 0][this.childName];
this.defaultSelector[i] = 0;
}
columnIndex.map((item, index2) => {
let data = this.columnData[index2][columnIndex[index2]];
let tmp = {
index: columnIndex[index2],
value: data ? data[this.valueName] : null,
label: data ? data[this.labelName] : null
};
if (data && data.extra !== void 0)
tmp.extra = data.extra;
this.selectValue.push(tmp);
});
this.lastSelectIndex = columnIndex;
} else if (this.mode == "single-column") {
let data = this.columnData[0][columnIndex[0]];
let tmp = {
index: columnIndex[0],
value: data ? data[this.valueName] : null,
label: data ? data[this.labelName] : null
};
if (data && data.extra !== void 0)
tmp.extra = data.extra;
this.selectValue.push(tmp);
this.lastSelectIndex = columnIndex;
} else if (this.mode == "mutil-column") {
columnIndex.map((item, index2) => {
let data = this.columnData[index2][columnIndex[index2]];
let tmp = {
index: columnIndex[index2],
value: data ? data[this.valueName] : null,
label: data ? data[this.labelName] : null
};
if (data && data.extra !== void 0)
tmp.extra = data.extra;
this.selectValue.push(tmp);
});
this.lastSelectIndex = columnIndex;
}
},
close() {
this.$emit("input", false);
this.$emit("update:modelValue", false);
},
// 点击确定或者取消
getResult(event = null) {
if (this.moving)
return;
if (event)
this.$emit(event, this.selectValue);
this.close();
},
selectHandler() {
this.$emit("click");
}
}
};
if (!Array) {
const _easycom_u_popup2 = common_vendor.resolveComponent("u-popup");
_easycom_u_popup2();
}
const _easycom_u_popup = () => "../u-popup/u-popup.js";
if (!Math) {
_easycom_u_popup();
}
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
return common_vendor.e({
a: common_vendor.t($props.cancelText),
b: $props.cancelColor,
c: common_vendor.o(($event) => $options.getResult("cancel")),
d: common_vendor.t($props.title),
e: common_vendor.t($props.confirmText),
f: $data.moving ? $props.cancelColor : $props.confirmColor,
g: common_vendor.o(() => {
}),
h: common_vendor.o(($event) => $options.getResult("confirm")),
i: common_vendor.o(() => {
}),
j: $options.showColumnCom
}, $options.showColumnCom ? {
k: common_vendor.f($data.columnData, (item, index, i0) => {
return {
a: common_vendor.f(item, (item1, index1, i1) => {
return {
a: common_vendor.t(item1[$props.labelName]),
b: index1
};
}),
b: index
};
})
} : {}, {
l: common_vendor.o((...args) => $options.columnChange && $options.columnChange(...args)),
m: $data.defaultSelector,
n: common_vendor.o((...args) => $options.pickstart && $options.pickstart(...args)),
o: common_vendor.o((...args) => $options.pickend && $options.pickend(...args)),
p: common_vendor.o($options.close),
q: common_vendor.o(($event) => $data.popupValue = $event),
r: common_vendor.p({
blur: $props.blur,
maskCloseAble: $props.maskCloseAble,
mode: "bottom",
popup: false,
length: "auto",
safeAreaInsetBottom: $props.safeAreaInsetBottom,
["z-index"]: $options.uZIndex,
modelValue: $data.popupValue
})
});
}
const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-2ab5fcb0"]]);
wx.createComponent(Component);
//# sourceMappingURL=../../../../../.sourcemap/mp-weixin/uni_modules/vk-uview-ui/components/u-select/u-select.js.map

View File

@ -0,0 +1,6 @@
{
"component": true,
"usingComponents": {
"u-popup": "../u-popup/u-popup"
}
}

View File

@ -0,0 +1 @@
<view class="u-select data-v-2ab5fcb0"><u-popup wx:if="{{r}}" class="data-v-2ab5fcb0" u-s="{{['d']}}" bindclose="{{p}}" u-i="2ab5fcb0-0" bind:__l="__l" bindupdateModelValue="{{q}}" u-p="{{r}}"><view class="u-select data-v-2ab5fcb0"><view class="u-select__header data-v-2ab5fcb0" catchtouchmove="{{i}}"><view class="u-select__header__cancel u-select__header__btn data-v-2ab5fcb0" style="{{'color:' + b}}" hover-class="u-hover-class" hover-stay-time="{{150}}" bindtap="{{c}}">{{a}}</view><view class="u-select__header__title data-v-2ab5fcb0">{{d}}</view><view class="u-select__header__confirm u-select__header__btn data-v-2ab5fcb0" style="{{'color:' + f}}" hover-class="u-hover-class" hover-stay-time="{{150}}" catchtouchmove="{{g}}" catchtap="{{h}}">{{e}}</view></view><view class="u-select__body data-v-2ab5fcb0"><block wx:if="{{r0}}"><picker-view bindchange="{{l}}" class="u-select__body__picker-view data-v-2ab5fcb0" value="{{m}}" bindpickstart="{{n}}" bindpickend="{{o}}"><block wx:if="{{j}}"><picker-view-column wx:for="{{k}}" wx:for-item="item" wx:key="b" class="data-v-2ab5fcb0"><view wx:for="{{item.a}}" wx:for-item="item1" wx:key="b" class="u-select__body__picker-view__item data-v-2ab5fcb0"><view class="u-line-1 data-v-2ab5fcb0">{{item1.a}}</view></view></picker-view-column></block></picker-view></block></view></view></u-popup></view>

View File

@ -0,0 +1,76 @@
/**
* 这里是uni-app内置的常用样式变量
*
* uni-app 官方扩展插件及插件市场https://ext.dcloud.net.cn上很多三方插件均使用了这些样式变量
* 如果你是插件开发者建议你使用scss预处理并在插件代码中直接使用这些变量无需 import 这个文件方便用户通过搭积木的方式开发整体风格一致的App
*
*/
/**
* 如果你是App开发者插件使用者你可以通过修改这些变量来定制自己的插件主题实现自定义主题功能
*
* 如果你的项目同样使用了scss预处理你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
*/
/* 颜色变量 */
/* 行为相关颜色 */
/* 文字基本颜色 */
/* 背景颜色 */
/* 边框颜色 */
/* 尺寸变量 */
/* 文字尺寸 */
/* 图片尺寸 */
/* Border Radius */
/* 水平间距 */
/* 垂直间距 */
/* 透明度 */
/* 文章场景相关 */
.u-select__action.data-v-2ab5fcb0 {
position: relative;
line-height: 70rpx;
height: 70rpx;
}
.u-select__action__icon.data-v-2ab5fcb0 {
position: absolute;
right: 20rpx;
top: 50%;
transition: transform 0.4s;
transform: translateY(-50%);
z-index: 1;
}
.u-select__action__icon--reverse.data-v-2ab5fcb0 {
transform: rotate(-180deg) translateY(50%);
}
.u-select__hader__title.data-v-2ab5fcb0 {
color: #606266;
}
.u-select--border.data-v-2ab5fcb0 {
border-radius: 6rpx;
border-radius: 4px;
border: 1px solid #dcdfe6;
}
.u-select__header.data-v-2ab5fcb0 {
display: flex;
flex-direction: row;
align-items: center;
justify-content: space-between;
height: 80rpx;
padding: 0 40rpx;
}
.u-select__body.data-v-2ab5fcb0 {
width: 100%;
height: 500rpx;
overflow: hidden;
background-color: #fff;
}
.u-select__body__picker-view.data-v-2ab5fcb0 {
height: 100%;
box-sizing: border-box;
}
.u-select__body__picker-view__item.data-v-2ab5fcb0 {
display: flex;
flex-direction: row;
align-items: center;
justify-content: center;
font-size: 32rpx;
color: #303133;
padding: 0 8rpx;
}