front public 이미지 경로 변경
All checks were successful
LocalNet_front/pipeline/head This commit looks good

This commit is contained in:
nevermoregb 2025-03-13 19:03:43 +09:00
parent dabeac68c1
commit 09a665d079

View File

@ -5,7 +5,7 @@
for="profilePic" for="profilePic"
class="rounded-circle m-auto ui-bg-cover position-relative cursor-pointer" class="rounded-circle m-auto ui-bg-cover position-relative cursor-pointer"
id="profileLabel" id="profileLabel"
style="width: 100px; height: 100px; background-image: url(public/img/avatars/default-Profile.jpg); background-repeat: no-repeat;" style="width: 100px; height: 100px; background-image: url(img/avatars/default-Profile.jpg); background-repeat: no-repeat"
> >
</label> </label>
@ -53,14 +53,14 @@
<span v-if="passwordcheckError" class="invalid-feedback d-block">{{ passwordcheckError }}</span> <span v-if="passwordcheckError" class="invalid-feedback d-block">{{ passwordcheckError }}</span>
<FormSelect <FormSelect
title="비밀번호 힌트" title="비밀번호 힌트"
name="pwhint" name="pwhint"
:is-essential="true" :is-essential="true"
:is-row="false" :is-row="false"
:is-label="true" :is-label="true"
:is-common="true" :is-common="true"
:data="pwhintList" :data="pwhintList"
@update:data="pwhint = $event" @update:data="pwhint = $event"
/> />
<UserFormInput <UserFormInput
@ -162,7 +162,7 @@
<script setup> <script setup>
import { ref } from 'vue'; import { ref } from 'vue';
import $api from '@api'; import $api from '@api';
import commonApi from '@/common/commonApi' import commonApi from '@/common/commonApi';
import UserFormInput from '@c/input/UserFormInput.vue'; import UserFormInput from '@c/input/UserFormInput.vue';
import FormSelect from '@c/input/FormSelect.vue'; import FormSelect from '@c/input/FormSelect.vue';
import ArrInput from '@c/input/ArrInput.vue'; import ArrInput from '@c/input/ArrInput.vue';
@ -185,13 +185,13 @@
const birth = ref(''); const birth = ref('');
const address = ref(''); const address = ref('');
const detailAddress = ref(''); const detailAddress = ref('');
const postcode = ref(''); // const postcode = ref(''); //
const phone = ref(''); const phone = ref('');
const phoneError = ref(''); const phoneError = ref('');
const color = ref(''); // color const color = ref(''); // color
const colorError = ref(''); const colorError = ref('');
const mbti = ref(''); // MBTI const mbti = ref(''); // MBTI
const pwhint = ref(''); // pwhint const pwhint = ref(''); // pwhint
const profilAlert = ref(false); const profilAlert = ref(false);
const idAlert = ref(false); const idAlert = ref(false);
@ -209,7 +209,6 @@
const toastStore = useToastStore(); const toastStore = useToastStore();
// //
const profileValid = (size, type) => { const profileValid = (size, type) => {
const maxSize = 5 * 1024 * 1024; const maxSize = 5 * 1024 * 1024;
@ -238,7 +237,7 @@
// , // ,
if (!profileValid(file.size, file.type)) { if (!profileValid(file.size, file.type)) {
e.target.value = ''; e.target.value = '';
profileLabel.style.backgroundImage = 'url("public/img/avatars/default-Profile.jpg")'; profileLabel.style.backgroundImage = 'url("img/avatars/default-Profile.jpg")';
return false; return false;
} }
@ -275,16 +274,17 @@
// , mbti, // , mbti,
const { colorList, mbtiList, pwhintList } = commonApi({ const { colorList, mbtiList, pwhintList } = commonApi({
loadColor: true, colorType: 'YON', loadColor: true,
colorType: 'YON',
loadMbti: true, loadMbti: true,
loadPwhint: true, loadPwhint: true,
}); });
// //
const handleAddressUpdate = (addressData) => { const handleAddressUpdate = addressData => {
address.value = addressData.address; address.value = addressData.address;
detailAddress.value = addressData.detailAddress; detailAddress.value = addressData.detailAddress;
postcode.value = addressData.postcode; // postcode.value = addressData.postcode; //
}; };
// //
@ -311,18 +311,16 @@
} }
}; };
const handleColorUpdate = async (newColor) => { const handleColorUpdate = async newColor => {
color.value = newColor; color.value = newColor;
colorError.value = ''; colorError.value = '';
colorErrorAlert.value = false; colorErrorAlert.value = false;
await checkColorDuplicate(); await checkColorDuplicate();
} };
// //
const handleSubmit = async () => { const handleSubmit = async () => {
await checkColorDuplicate(); await checkColorDuplicate();
idAlert.value = id.value.trim() === ''; idAlert.value = id.value.trim() === '';
@ -343,9 +341,21 @@
profilAlert.value = false; profilAlert.value = false;
} }
if (profilAlert.value || idAlert.value || idErrorAlert.value || passwordAlert.value || passwordcheckAlert.value || if (
passwordcheckErrorAlert.value || pwhintResAlert.value || nameAlert.value || birthAlert.value || profilAlert.value ||
addressAlert.value || phoneAlert.value || phoneErrorAlert.value || colorErrorAlert.value) { idAlert.value ||
idErrorAlert.value ||
passwordAlert.value ||
passwordcheckAlert.value ||
passwordcheckErrorAlert.value ||
pwhintResAlert.value ||
nameAlert.value ||
birthAlert.value ||
addressAlert.value ||
phoneAlert.value ||
phoneErrorAlert.value ||
colorErrorAlert.value
) {
return; return;
} }
@ -364,7 +374,7 @@
formData.append('memberMbt', mbti.value); formData.append('memberMbt', mbti.value);
formData.append('memberPrf', profile.value); formData.append('memberPrf', profile.value);
const response = await $api.post('/user/join', formData, { isFormData : true }); const response = await $api.post('/user/join', formData, { isFormData: true });
if (response.status === 200) { if (response.status === 200) {
toastStore.onToast('등록신청이 완료되었습니다. 관리자 승인 후 이용가능합니다.', 's'); toastStore.onToast('등록신청이 완료되었습니다. 관리자 승인 후 이용가능합니다.', 's');
@ -372,4 +382,3 @@
} }
}; };
</script> </script>