-
+
+
+
+ 企业加盟
+
+
- 营业执照上传
-
+
+ 营业执照
-
+
营业执照
请上传营业执照
-
+
+
+
+ 企业信息
+
-
-
-
- 确认企业信息
-
-
-
+
{{item}}
@@ -38,7 +42,7 @@
- 注意事项:
+ 注意事项:
1. 运用企业、个体工商户、政府、事业单位、学校、组织等,账号归属企业。
@@ -49,14 +53,15 @@
3.所有上传信息均会被妥善保管,不会用于其他商业用途或传输给其他第三方。
-
-
- 上一步
+
+
+ 返回上一步
- 下一步
+ 确认并继续
+
@@ -81,21 +86,49 @@
const nameArray = ["企业名称", "注册地址", "信用代码", "法人"];
const textArray = reactive(["", "", "", ""]);
-
+ const bottomlist = [{
+ text: '拍摄图片'
+ }, {
+ text: '图片预览'
+ }]
+ const bottomshow = ref(false)
// 本地保存的临时文件路径
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() {
uni.chooseImage({
count: 1,
- sourceType: ['camera'],
+ sourceType: ['album','camera'],
success: chooseRes => {
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)
},
fail: err => {
@@ -123,21 +156,34 @@
if (!JSON.parse(uploadRes.data).success) {
uni.showToast({
title: '识别失败',
- icon: 'error'
+ icon: 'error',
+ duration: 2000
})
+ uping.value = true;
uni.hideLoading()
return
}
console.log("营业执照", 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;
+ textArray[0] = father.companyName;
+ textArray[1] = father.businessAddress;
+ textArray[2] = father.creditCode;
+ textArray[3] = father.legalPerson;
+ headImge.value = 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) {
- let father = JSON.parse(JSON.parse(uploadRes.data).result.data).data;
- textArray[0] = father.companyName;
- textArray[1] = father.businessAddress;
- textArray[2] = father.creditCode;
- textArray[3] = father.legalPerson;
- headImge.value = filePath;
- savephoto(filePath);
+
uni.hideLoading()
// textArray[4] = father.birthDate;
// textArray[5] = father.address;
@@ -198,7 +244,8 @@
}
}
const next = () => {
- if(!uping.value){
+ console.log("??????")
+ if (!uping.value) {
return
}
const allNonEmpty = textArray[0];
@@ -210,22 +257,22 @@
comRegisterAddress: textArray[1],
comCreditCode: textArray[2],
comLegalPerson: textArray[3],
- comBusinessLicense:fontphoto.value,
+ comBusinessLicense: fontphoto.value,
}
// console.log("????",pushMessage)
changemessage(pushMessage).then(res => {
- if(res.success){
- if(res.message==`保存成功!`){
+ if (res.success) {
+ if (res.message == `保存成功!`) {
uni.navigateTo({
url: "/pages/addjigou/where"
});
- }else{
+ } else {
uni.navigateTo({
url: "/pages/addjigou/where"
});
}
-
- }else{
+
+ } else {
uni.showToast({
title: res.message,
icon: 'error'
@@ -240,14 +287,27 @@
}
}
onLoad(() => {
- if(uni.getStorageSync('baddata')){
- let data = uni.getStorageSync('baddata');
- if(data.comName){
+ if(uni.getStorageSync('backhuancun').comName){
+ let data = uni.getStorageSync('backhuancun');
+ if (data.comName) {
textArray[0] = data.comName;
textArray[1] = data.comRegisterAddress;
textArray[2] = data.comCreditCode;
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}`;
fontphoto.value = data.comBusinessLicense
}
@@ -255,14 +315,25 @@
}
})
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()
}
onShow(() => {
- const img = uni.getStorageSync('imgkey0')
- if (img) {
- uploadImage(img)
- uni.removeStorageSync('imgkey0')
- }
+ const img = uni.getStorageSync('imgkey0')
+ if (img) {
+ uploadImage(img)
+ uni.removeStorageSync('imgkey0')
+ }
})
@@ -272,29 +343,29 @@
flex-direction: column;
min-height: 100vh;
width: 100%;
- background-color: rgb(239, 241, 252);
+ background-color: #F7F7F7;
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 {
width: 90%;
margin-left: 5%;
- margin-top: 180rpx;
+ // margin-top: 10rpx;
// height: 1200rpx;
border-radius: 35rpx;
- background-color: rgb(245, 251, 254);
+ // background-color: rgb(245, 251, 254);
.content-title {
display: flex;
- // align-items: center;
- height: 100rpx;
+ align-items: center;
+ height: 110rpx;
position: relative;
.content-weight {
- // font-size: 35rpx;
+ font-size: 32rpx;
font-weight: 600;
- margin-left: 40rpx;
- margin-top: 20rpx;
+ margin-left: 20rpx;
+ // margin-top: 20rpx;
}
.content-img {
@@ -308,13 +379,13 @@
}
.white-photo {
- width: 90%;
- margin-left: 5%;
+ width: 100%;
+ // margin-left: 5%;
// margin-top: 30rpx;
height: 300rpx;
border-radius: 35rpx;
background-color: #fff;
- box-shadow: 4rpx 4rpx 8rpx rgba(0, 0, 0, 0.1);
+ // box-shadow: 4rpx 4rpx 8rpx rgba(0, 0, 0, 0.1);
justify-content: space-around;
align-items: center;
display: flex;
@@ -326,14 +397,16 @@
}
.white-message {
- width: 90%;
- margin-left: 5%;
- margin-top: 30rpx;
+ width: 100%;
+ // margin-left: 5%;
+ // margin-top: 30rpx;
margin-bottom: 30rpx;
+ padding-top: 30rpx;
+ padding-bottom: 30rpx;
// height: 800rpx;
border-radius: 35rpx;
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;
// align-items: center;
display: flex;
@@ -350,7 +423,7 @@
height: 30rpx;
background-color: #0097FF;
border-radius: 10rpx;
- margin: 0 20rpx 0 30rpx;
+ margin: 0 0rpx 0 30rpx;
}
.message-weight {
@@ -362,8 +435,8 @@
.one {
width: 90%;
margin-left: 5%;
- border-bottom: 1rpx solid #d7d7d7;
- height: 90rpx;
+ // border-bottom: 1rpx solid #F7F7F7;
+ height: 100rpx;
display: flex;
justify-content: space-between;
align-items: center;
@@ -371,6 +444,7 @@
.one-left {
margin-left: 10rpx;
+ font-size: 30rpx;
}
.one-right {
@@ -381,7 +455,8 @@
white-space: nowrap;
/* 不换行 */
text-overflow: ellipsis;
- max-width: 300rpx;
+ max-width: 380rpx;
+ font-size: 30rpx;
}
}
}
@@ -389,12 +464,12 @@
.photo-left {
.photo-weight {
- font-size: 26rpx;
+ font-size: 30rpx;
font-weight: 600;
}
.photo-font {
- font-size: 23rpx;
+ font-size: 28rpx;
margin-top: 10rpx;
}
@@ -409,8 +484,8 @@
display: flex;
justify-content: center;
align-items: center;
- width: 45%;
- height: 100rpx;
+ width: 42%;
+ height: 90rpx;
margin: 0rpx auto;
margin-bottom: 80rpx;
color: #fff;
@@ -418,8 +493,49 @@
border-radius: 50rpx;
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 {
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;
+ }
+ }
+ }
+
\ No newline at end of file
diff --git a/pages/addjigou/name.vue b/pages/addjigou/name.vue
index f54e59a..6888cd8 100644
--- a/pages/addjigou/name.vue
+++ b/pages/addjigou/name.vue
@@ -4,51 +4,56 @@