|
@@ -1,22 +1,7 @@
|
|
|
<template>
|
|
|
- <view style="padding: 15px;">
|
|
|
- <!-- 提交企业注册以后跳转显示页面 -->
|
|
|
- <view v-if="!applyInfo || !(Object.keys(applyInfo).length)">
|
|
|
- <view class="d-flex flex-column align-center">
|
|
|
- <image src="/static/svg/submit.svg" style="height: 200px; width: "></image>
|
|
|
- </view>
|
|
|
- <view><span class="color-primary font-size-20 font-weight-bold">提交成功,</span>已收到您的企业账号申请,审核时间预计在1~3个工作日内,申请结果会以短信方式通知到您的手机上,请注意查收。</view>
|
|
|
- <view style="width: 100%;">
|
|
|
- <view class="mt-5 mb-1">如有疑问请长按二维码添加下方企业微信联系我们:</view>
|
|
|
- <view style="width: 150px; height: 150px; margin: auto;">
|
|
|
- <image show-menu-by-longpress="true" src="https://minio.menduner.com/dev/menduner/contact.png" style="width: 150px; height: 150px;"></image>
|
|
|
- </view>
|
|
|
- <view class="text-center ml-5">潘青海先生(Peter Pan)</view>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
-
|
|
|
+ <view v-if="show" style="padding: 15px;">
|
|
|
<!-- 等待审核 -->
|
|
|
- <view v-else-if="applyInfo?.status === '0'">
|
|
|
+ <view v-if="applyInfo?.status === '0'">
|
|
|
<view class="d-flex flex-column align-center">
|
|
|
<image src="/static/svg/submit.svg" style="height: 200px; width: "></image>
|
|
|
</view>
|
|
@@ -56,10 +41,26 @@
|
|
|
<view class="text-center ml-5">潘青海先生(Peter Pan)</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
+
|
|
|
+ <!-- 提交企业注册以后跳转显示页面 -->
|
|
|
+ <view v-else>
|
|
|
+ <view class="d-flex flex-column align-center">
|
|
|
+ <image src="/static/svg/submit.svg" style="height: 200px; width: "></image>
|
|
|
+ </view>
|
|
|
+ <view style="text-align: center;"><span class="color-primary font-size-20 font-weight-bold">您的企业注册申请已提交</span></view>
|
|
|
+ <view class="mt-5">审核时间预计在1~3个工作日内,申请结果会以短信方式通知到您的手机上,请注意查收。</view>
|
|
|
+ <view style="width: 100%;">
|
|
|
+ <view class="mt-5 mb-1">如有疑问请长按二维码添加下方企业微信联系我们:</view>
|
|
|
+ <view style="width: 150px; height: 150px; margin: auto;">
|
|
|
+ <image show-menu-by-longpress="true" src="https://minio.menduner.com/dev/menduner/contact.png" style="width: 150px; height: 150px;"></image>
|
|
|
+ </view>
|
|
|
+ <view class="text-center ml-5">潘青海先生(Peter Pan)</view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
|
|
|
- <view class="d-flex">
|
|
|
- <button :class="{'second-button': applyInfo.status === '2', 'send-button': applyInfo.status !== '2'}" @tap="handleToHome">回到首页</button>
|
|
|
- <button v-if="applyInfo.status === '2'" class="second-button" @tap="handleConfirm">重新提交</button>
|
|
|
+ <view class="d-flex align-center">
|
|
|
+ <!-- <button :class="{'second-button': applyInfo.status === '2', 'send-button': applyInfo.status !== '2'}" @tap="handleToHome">回到首页</button> -->
|
|
|
+ <button v-if="applyInfo.status === '2'" class="recomm-button" @tap="handleConfirm">重新提交</button>
|
|
|
</view>
|
|
|
</view>
|
|
|
</template>
|
|
@@ -73,16 +74,17 @@ import { userStore } from '@/store/user'
|
|
|
|
|
|
const user = userStore()
|
|
|
const applyInfo = ref({})
|
|
|
+const show = ref(false)
|
|
|
|
|
|
// 查看用户是否有在申请中的数据
|
|
|
-const getApplyInfo = async (hasData) => {
|
|
|
+const getApplyInfo = async () => {
|
|
|
// 已经有数据说明已经申请过了
|
|
|
let result = {}
|
|
|
- if (hasData) {
|
|
|
+ if (hasData && uni.getStorageSync('entRegisterData')) {
|
|
|
result = JSON.parse(uni.getStorageSync('entRegisterData'))
|
|
|
} else {
|
|
|
const { data } = await getUserRegisterEnterpriseApply()
|
|
|
- result = data
|
|
|
+ result = data || {}
|
|
|
uni.setStorageSync('applyInfo', JSON.stringify(result))
|
|
|
}
|
|
|
|
|
@@ -95,13 +97,16 @@ const getApplyInfo = async (hasData) => {
|
|
|
remark: result.remark // 备注
|
|
|
}
|
|
|
console.log(result, 'review----查看是否有申请中的数据', applyInfo.value)
|
|
|
-
|
|
|
+ show.value = true
|
|
|
}
|
|
|
|
|
|
+let hasData = false
|
|
|
onLoad((options) => {
|
|
|
- getApplyInfo(options?.hasData)
|
|
|
+ hasData = options?.hasData ? true : false
|
|
|
+ getApplyInfo()
|
|
|
})
|
|
|
|
|
|
+
|
|
|
// 回到首页时需将当前个人登录状态及缓存中的数据清除
|
|
|
const handleToHome = async () => {
|
|
|
await user.handleUserLogout()
|
|
@@ -111,6 +116,10 @@ const handleToHome = async () => {
|
|
|
}
|
|
|
|
|
|
const handleConfirm = () => {
|
|
|
+ if (uni.getStorageSync('token') && uni.getStorageSync('isPersonalToken')) {
|
|
|
+ uni.navigateTo({ url: '/pages/register/index' })
|
|
|
+ return
|
|
|
+ }
|
|
|
uni.reLaunch({
|
|
|
url: `/pages/register/phoneValidate?phone=${applyInfo.value?.phone}`
|
|
|
})
|