front public 이미지 경로 변경
All checks were successful
LocalNet_front/pipeline/head This commit looks good
All checks were successful
LocalNet_front/pipeline/head This commit looks good
This commit is contained in:
parent
dabeac68c1
commit
09a665d079
@ -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>
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user