|
@@ -198,7 +198,6 @@ onLoad(async (query?: Record<string | 'scene', string>) => {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
await setUserAuthInfo()
|
|
await setUserAuthInfo()
|
|
- console.log(userAuthInfo.value)
|
|
|
|
if (userAuthInfo.value) {
|
|
if (userAuthInfo.value) {
|
|
formData.value = {
|
|
formData.value = {
|
|
...pick(userAuthInfo.value, [
|
|
...pick(userAuthInfo.value, [
|
|
@@ -219,12 +218,13 @@ onLoad(async (query?: Record<string | 'scene', string>) => {
|
|
}
|
|
}
|
|
const { data } = await getByDictType('member_channel_source')
|
|
const { data } = await getByDictType('member_channel_source')
|
|
const { data: res } = await getByDictType(DictType.memberSpatialExpertiseType)
|
|
const { data: res } = await getByDictType(DictType.memberSpatialExpertiseType)
|
|
- console.log(res)
|
|
|
|
|
|
+ // console.log(res)
|
|
schema.value.channelSource.props.columns = data
|
|
schema.value.channelSource.props.columns = data
|
|
schema.value.spatialExpertiseType.props.columns = res
|
|
schema.value.spatialExpertiseType.props.columns = res
|
|
formInited.value = true
|
|
formInited.value = true
|
|
|
|
+ console.log(userInfo.value)
|
|
if (userInfo.value.userAuthStatus === 1) {
|
|
if (userInfo.value.userAuthStatus === 1) {
|
|
- console.log(formData.value)
|
|
|
|
|
|
+ // console.log(formData.value)
|
|
Object.entries(schema.value).forEach(([key]) => {
|
|
Object.entries(schema.value).forEach(([key]) => {
|
|
schema.value[key].props.disabled = true
|
|
schema.value[key].props.disabled = true
|
|
})
|
|
})
|
|
@@ -241,9 +241,17 @@ onLoad(async (query?: Record<string | 'scene', string>) => {
|
|
msg: userAuthInfo.value?.remark || '由于系统原因,您提交的认证暂时无法通过,请修改后重新提交',
|
|
msg: userAuthInfo.value?.remark || '由于系统原因,您提交的认证暂时无法通过,请修改后重新提交',
|
|
})
|
|
})
|
|
}
|
|
}
|
|
|
|
+ if(userInfo.value.userAuthStatus === 0){
|
|
|
|
+ await uni.showToast({ title: "您当前已是筑巢荟会员", icon: 'none' })
|
|
|
|
+ setTimeout(()=>{
|
|
|
|
+ uni.switchTab({
|
|
|
|
+ url:"/pages/mine/index"
|
|
|
|
+ })
|
|
|
|
+ },2000)
|
|
|
|
+ }
|
|
})
|
|
})
|
|
onShow(()=>{
|
|
onShow(()=>{
|
|
- console.log(!userInfo.value.nickname)
|
|
|
|
|
|
+ // console.log(!userInfo.value.nickname)
|
|
if(!userInfo.value.nickname){
|
|
if(!userInfo.value.nickname){
|
|
router.push('/pages-sub/login/index')
|
|
router.push('/pages-sub/login/index')
|
|
}
|
|
}
|