|
@@ -20,7 +20,6 @@ import {
|
|
|
} from '../../../core/libs/requests'
|
|
|
import { DictType } from '../../../core/libs/models'
|
|
|
import { useUserStore } from '../../../store'
|
|
|
-import pageHeaderBg from '@designer-hub/assets/src/assets/svgs/pageHeaderBg'
|
|
|
import pageHeaderFilter from '@designer-hub/assets/src/assets/svgs/pageHeaderFilter'
|
|
|
import { storeToRefs } from 'pinia'
|
|
|
import { useMessage, useToast } from 'wot-design-uni'
|
|
@@ -37,7 +36,9 @@ const { error } = useToast()
|
|
|
const formData = ref<any>({})
|
|
|
const attachment = ref()
|
|
|
const formInited = ref(false)
|
|
|
+// const a = async () => ({ data: null, code: 0, msg: '' })
|
|
|
const { data: userAuthInfo, run: setUserAuthInfo } = useRequest(() => getUserAuthInfo())
|
|
|
+// const { data: userAuthInfo, run: setUserAuthInfo } = useRequest(() => ())
|
|
|
const schema = ref({
|
|
|
channelSource: {
|
|
|
type: 'Select',
|
|
@@ -46,7 +47,7 @@ const schema = ref({
|
|
|
labelWidth: '126rpx',
|
|
|
placeholder: '请选择通过哪个渠道入驻的筑巢荟',
|
|
|
columns: [],
|
|
|
- disabled: userAuthInfo != null,
|
|
|
+ disabled: userAuthInfo.value != null,
|
|
|
},
|
|
|
},
|
|
|
referrer: {
|
|
@@ -55,7 +56,7 @@ const schema = ref({
|
|
|
props: {
|
|
|
labelWidth: '126rpx',
|
|
|
placeholder: '请如实填写推荐人编号,设计师会员编号或渠道编号',
|
|
|
- disabled: userAuthInfo != null,
|
|
|
+ disabled: userAuthInfo.value != null,
|
|
|
},
|
|
|
},
|
|
|
designerName: {
|
|
@@ -128,6 +129,9 @@ const handleSubmit = async () => {
|
|
|
}
|
|
|
onMounted(async () => {
|
|
|
await setUserAuthInfo()
|
|
|
+ console.log(userAuthInfo.value)
|
|
|
+ console.log(userAuthInfo.value)
|
|
|
+
|
|
|
if (userAuthInfo.value) {
|
|
|
console.log(userAuthInfo.value)
|
|
|
formData.value = pick(userAuthInfo.value, [
|
|
@@ -166,8 +170,12 @@ defineExpose({})
|
|
|
<template>
|
|
|
<div class="flex-grow">
|
|
|
<div class="relative aspect-[3.6/1]">
|
|
|
- <div class="absolute top-0 left-0 right-0 bottom--18.5">
|
|
|
- <wd-img width="100%" height="100%" :src="pageHeaderBg"></wd-img>
|
|
|
+ <div class="absolute top-0 left--1 right--1 bottom--18.5">
|
|
|
+ <wd-img
|
|
|
+ width="100%"
|
|
|
+ height="100%"
|
|
|
+ :src="'https://image.zhuchaohui.com/zhucaohui/21d6584cb711834f037a7126855d05572433f776b308596d94aca97dd37e6cfa.png'"
|
|
|
+ ></wd-img>
|
|
|
</div>
|
|
|
<div class="absolute top-0 left-0 right-0 bottom--18.5">
|
|
|
<wd-img width="100%" height="100%" :src="pageHeaderFilter"></wd-img>
|