Janie 1 year ago
parent
commit
3d014fe5e6
  1. 2
      FrontEnd/components/exhibition/ExhibitionBannerArea.vue
  2. 4
      FrontEnd/pages/service/_id.vue
  3. 14
      FrontEnd/pages/service/checkout/_id.vue
  4. 27
      FrontEnd/pages/user/editPersonalInfo.vue

2
FrontEnd/components/exhibition/ExhibitionBannerArea.vue

@ -123,7 +123,7 @@
</div> </div>
<div
<div v-if="exhibition.shortName && exhibition.enname"
class="tw-body-3 tw-break-all tw-text-base-primary tw-w-full md:t24 md:tw-text-white md:tw-mt-[12px] xl:tw-text-[28px] xl:tw-font-bold"> class="tw-body-3 tw-break-all tw-text-base-primary tw-w-full md:t24 md:tw-text-white md:tw-mt-[12px] xl:tw-text-[28px] xl:tw-font-bold">
{{ exhibition.shortName }}, {{ exhibition.enname }} {{ exhibition.shortName }}, {{ exhibition.enname }}
</div> </div>

4
FrontEnd/pages/service/_id.vue

@ -448,8 +448,8 @@ export default {
}; };
}, },
async created() { async created() {
// if(this.$route.params.id == "fb48072e-2d82-4ec6-9aeb-759df42a9ab0"){
if(this.$route.params.id == "1c6e0001-e2dd-46b5-a617-4dac2f34894f"){
if(this.$route.params.id == "fb48072e-2d82-4ec6-9aeb-759df42a9ab0"){
// if(this.$route.params.id == "1c6e0001-e2dd-46b5-a617-4dac2f34894f"){
this.serviceID = true; this.serviceID = true;
}else{ }else{
this.serviceID = false; this.serviceID = false;

14
FrontEnd/pages/service/checkout/_id.vue

@ -341,6 +341,8 @@ export default {
}, },
async created() { async created() {
console.log(this.$auth.loggedIn)
const beforePathCookie = this.$route.fullPath; const beforePathCookie = this.$route.fullPath;
this.$auth.$storage.setUniversal('userBeforePath', beforePathCookie); this.$auth.$storage.setUniversal('userBeforePath', beforePathCookie);
@ -359,8 +361,8 @@ export default {
// //
// //
// if(this.serviceID == "fb48072e-2d82-4ec6-9aeb-759df42a9ab0"){
if(this.serviceID == "1c6e0001-e2dd-46b5-a617-4dac2f34894f"){
if(this.serviceID == "fb48072e-2d82-4ec6-9aeb-759df42a9ab0"){
// if(this.serviceID == "1c6e0001-e2dd-46b5-a617-4dac2f34894f"){
let selectExhibitionData = JSON.parse(decodeURIComponent(data.selectExhibitionData)); let selectExhibitionData = JSON.parse(decodeURIComponent(data.selectExhibitionData));
@ -808,8 +810,8 @@ export default {
console.log(err); console.log(err);
}); });
}, },
getCompanyList() {
this.$axios
async getCompanyList() {
await this.$axios
.get( .get(
`/trending/api/Members/Companies?Lang=${this.$i18n.localeProperties["langQuery"]}` `/trending/api/Members/Companies?Lang=${this.$i18n.localeProperties["langQuery"]}`
) )
@ -846,9 +848,9 @@ export default {
console.log(err); console.log(err);
}); });
}, },
updateCompanyList() {
async updateCompanyList() {
const patchData = {}; const patchData = {};
this.$axios
await this.$axios
.post( .post(
`/trending/api/Members/Company`,patchData `/trending/api/Members/Company`,patchData
) )

27
FrontEnd/pages/user/editPersonalInfo.vue

@ -327,8 +327,8 @@ export default {
this.phoneValid = phoneData.isValid; this.phoneValid = phoneData.isValid;
}, },
//Save Member Info
patchUserData() {
//Save Member Info()
async patchUserData() {
this.validators(); this.validators();
if(this.validators()){ if(this.validators()){
@ -350,19 +350,24 @@ export default {
} }
const patchData = JSON.parse(JSON.stringify(this.userData)); const patchData = JSON.parse(JSON.stringify(this.userData));
this.$axios
console.log(patchData)
await this.$axios
.post( .post(
`/trending/api/Members/Member`, patchData `/trending/api/Members/Member`, patchData
) )
.then((response) => { .then((response) => {
//console.log(JSON.stringify(response)); //console.log(JSON.stringify(response));
console.log('testresponse: ', response)
if (response.status == 200) { if (response.status == 200) {
this.$notify({ this.$notify({
type: "success", type: "success",
text: "更新成功", text: "更新成功",
}); });
} }
this.fetchUserData();
// this.fetchUserData();
this.$auth.$storage.setUniversal("userPicture", patchData.MemberPicture); this.$auth.$storage.setUniversal("userPicture", patchData.MemberPicture);
this.$store.dispatch("updatePicture"); this.$store.dispatch("updatePicture");
}) })
@ -373,8 +378,8 @@ export default {
}, },
//Get Member Info //Get Member Info
fetchUserData() {
this.$axios
async fetchUserData() {
await this.$axios
.get( .get(
`/trending/api/Members/Info` `/trending/api/Members/Info`
) )
@ -428,7 +433,13 @@ export default {
}else{ }else{
const space = this.userData.BirthDate.split("T"); const space = this.userData.BirthDate.split("T");
console.log('space: ', space)
const date = space[0].split("-"); const date = space[0].split("-");
console.log('date: ', date)
this.yearSelect = date[0]; this.yearSelect = date[0];
this.monthSelect = date[1]; this.monthSelect = date[1];
this.daySelect = date[2]; this.daySelect = date[2];
@ -480,8 +491,8 @@ export default {
console.log(error); console.log(error);
}); });
}, },
fetchCountry() {
this.$axios
async fetchCountry() {
await this.$axios
.get(`/trending/api/location/countries?RegionID&Lang=${this.$i18n.localeProperties["langQuery"]}`) .get(`/trending/api/location/countries?RegionID&Lang=${this.$i18n.localeProperties["langQuery"]}`)
.then((response) => { .then((response) => {
//console.log(JSON.stringify(response)); //console.log(JSON.stringify(response));

Loading…
Cancel
Save