diff --git a/compontent/public/downmenu.vue b/compontent/public/downmenu.vue index 0a365b1..fb9f55d 100644 --- a/compontent/public/downmenu.vue +++ b/compontent/public/downmenu.vue @@ -37,7 +37,9 @@ }); break; case 1: - + uni.navigateTo({ + url: `/pages/login/special?no=true` + }); break; case 2: diff --git a/pages.json b/pages.json index 896a829..89c269c 100644 --- a/pages.json +++ b/pages.json @@ -68,6 +68,18 @@ "navigationBarTitleText": "绑定成功" } }, + { + "path": "pages/login/specialloginafther", + "style": { + "navigationBarTitleText": "绑定成功" + } + }, + { + "path": "pages/login/xuanchuan", + "style": { + "navigationBarTitleText": "宣传页" + } + }, { "path": "pages/index/index", "style": { diff --git a/pages/addjigou/all.vue b/pages/addjigou/all.vue index 35662e0..85fd891 100644 --- a/pages/addjigou/all.vue +++ b/pages/addjigou/all.vue @@ -15,7 +15,7 @@ - + 修改信息 @@ -440,7 +440,7 @@ align-items: center; z-index: 1; .back-img { - width: 40rpx; + width: 45rpx; height: 40rpx; margin-left: 40rpx; margin-right: 15rpx; diff --git a/pages/addjigou/card.vue b/pages/addjigou/card.vue index d139e8b..63509a2 100644 --- a/pages/addjigou/card.vue +++ b/pages/addjigou/card.vue @@ -262,7 +262,7 @@ if (!uping.value) { return } - const allNonEmpty = textArray[0]; + const allNonEmpty = textArray[0] && textArray[1]&& textArray[2]&&textArray[3]&&fontphoto.value; if (allNonEmpty) { let data = uni.getStorageSync('backhuancun') data.comName = textArray[0] @@ -305,7 +305,7 @@ // }) } else { uni.showToast({ - title: '请上传营业执照', + title: '请上传清晰的营业执照', icon: 'error' }) } @@ -564,7 +564,7 @@ align-items: center; .back-img { - width: 40rpx; + width: 45rpx; height: 40rpx; margin-left: 40rpx; margin-right: 15rpx; diff --git a/pages/addjigou/name.vue b/pages/addjigou/name.vue index 30dd039..f715be4 100644 --- a/pages/addjigou/name.vue +++ b/pages/addjigou/name.vue @@ -281,6 +281,34 @@ } else { endphoto.value = JSON.parse(uploadRes.data).message } + if(JSON.parse(uploadRes.data).code==401){ + uni.uploadFile({ + url: `${base_url}/sys/common/upload`, // 替换为您的POST接口地址 + filePath, + name: 'file', // 后端接收时的字段名 + header: { + 'X-Access-Token': uni.getStorageSync('token') || '', + }, + formData: { + biz: `temp` + }, + success: uploadRes => { + if (!type) { + fontphoto.value = JSON.parse(uploadRes.data).message + } else { + endphoto.value = JSON.parse(uploadRes.data).message + } + uping.value = true; + }, + fail: err => { + uni.showToast({ + title: '上传出错', + icon: 'error' + }) + uni.hideLoading() + } + }) + } uping.value = true; }, fail: err => { @@ -393,7 +421,7 @@ // }) } else { uni.showToast({ - title: '身份证信息不完整', + title: '请上传清晰的身份证', icon: 'error' }) } @@ -600,7 +628,7 @@ align-items: center; .back-img { - width: 40rpx; + width: 45rpx; height: 40rpx; margin-left: 40rpx; margin-right: 15rpx; diff --git a/pages/addjigou/where.vue b/pages/addjigou/where.vue index 5a37816..b3eb068 100644 --- a/pages/addjigou/where.vue +++ b/pages/addjigou/where.vue @@ -755,8 +755,8 @@ display: flex; align-items: center; - .back-img { - width: 40rpx; + .back-img { + width: 45rpx; height: 40rpx; margin-left: 40rpx; margin-right: 15rpx; diff --git a/pages/index/index.vue b/pages/index/index.vue index 01190ac..40c7291 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -2,8 +2,8 @@