diff --git a/.env.dev b/.env.dev index dd58044b..8eaa7f4e 100644 --- a/.env.dev +++ b/.env.dev @@ -6,6 +6,6 @@ NODE_ENV = 'development' VUE_APP_BASE_URL = 'https://develop.api.aida.com.hk' VUE_APP_BASE_URL = 'https://www.api.aida.com.hk' # 佩佩 -# VUE_APP_BASE_URL = 'http://192.168.1.7:5567' +# VUE_APP_BASE_URL = 'http://192.168.1.4:5567' # 海波 # VUE_APP_BASE_URL = 'http://192.168.1.9:5567' diff --git a/public/image/events/workshop-Cn.jpg b/public/image/events/workshop-Cn.jpg new file mode 100644 index 00000000..7c68da45 Binary files /dev/null and b/public/image/events/workshop-Cn.jpg differ diff --git a/public/image/events/workshop-En.jpg b/public/image/events/workshop-En.jpg new file mode 100644 index 00000000..529d51df Binary files /dev/null and b/public/image/events/workshop-En.jpg differ diff --git a/src/assets/json/events.json b/src/assets/json/events.json new file mode 100644 index 00000000..d5f97050 --- /dev/null +++ b/src/assets/json/events.json @@ -0,0 +1,69 @@ +{ + "eventsList": [ + { + "id": 1, + "title":"Just post your design work, you could have the chance to come to Hong Kong and interact with industry leaders face-to-face!", + "imgUrl": "/image/events/workshop-En.jpg" + } + ], + "eventsItem":[ + { + "id":1, + "title":"Just post your design work, you could have the chance to come to Hong Kong and interact with industry leaders face-to-face!", + "imgUrl": "/image/events/workshop-En.jpg", + "textList":[ + { + "paragraph":[ + { + "text":"🎨AiDA Workshop!" + } + ] + },{ + "paragraph":[ + { + "text":"The process is simple: use AiDA to post your design work on the 'Gallery', and the one with the most likes(at least 20 likes) will be invited to the AiDA Workshop offline event in Hong Kong on November 14th, to exchange ideas with the Royal College of Art (RCA), Jae Lim, co-founder of the renowned fashion brand BESFXXK, and outstanding designers! " + } + ] + },{ + "paragraph":[ + { + "text":"⚠️ATTENTION❗❗" + } + ] + },{ + "paragraph":[ + { + "text":"1. Add the tag in the work description #AiDAworkshop_2024" + },{ + "text":"2. One winner only" + } + ] + },{ + "paragraph":[ + { + "text":"🤩Code-Create will provide (Terms and conditions apply):" + } + ] + },{ + "paragraph":[ + { + "text":"✅Round-trip transportation fee (only within China)" + } + ] + },{ + "paragraph":[ + { + "text":"✅One night accommodation fee" + } + ] + },{ + "paragraph":[ + { + "text":"⌛️Deadline: October 31, 2024" + } + ] + } + ] + } + ] + } \ No newline at end of file diff --git a/src/assets/json/events_cn.json b/src/assets/json/events_cn.json new file mode 100644 index 00000000..194f67a9 --- /dev/null +++ b/src/assets/json/events_cn.json @@ -0,0 +1,69 @@ +{ + "eventsList": [ + { + "id": 1, + "title":"什么?只要发布设计作品就有机会来香港与大佬面对面交流?!", + "imgUrl": "/image/events/workshop-En.jpg" + } + ], + "eventsItem":[ + { + "id":1, + "title":"什么?只要发布设计作品就有机会来香港与大佬面对面交流?!", + "imgUrl": "/image/events/workshop-En.jpg", + "textList":[ + { + "paragraph":[ + { + "text":"🎨这是一趟艺术巅峰之旅!AiDA Workshop!" + } + ] + },{ + "paragraph":[ + { + "text":"参与过程很简单,利用AiDA 在 “Gallery广场 ”发布设计作品,最终获赞最高者(至少20个赞)将被邀请至11月14日 举办的AiDA Workshop香港线下活动,与英国皇家艺术学院(RCA)、韩国知名时尚品牌BESFXXK创始人JAE以及优秀设计师一同交流!(名额仅限1名)" + } + ] + },{ + "paragraph":[ + { + "text":"⚠️注意❗❗" + } + ] + },{ + "paragraph":[ + { + "text":"1. 作品描述添加tag: #AiDAworkshop_2024" + },{ + "text":"2. 一个冠军名额" + } + ] + },{ + "paragraph":[ + { + "text":"🤩Code-Create将提供(适用条款条规):" + } + ] + },{ + "paragraph":[ + { + "text":"✅往返机票/动车费用(仅限中国地区)" + } + ] + },{ + "paragraph":[ + { + "text":"✅一晚酒店住宿费用" + } + ] + },{ + "paragraph":[ + { + "text":"⌛️截止时间:2024.10.31" + } + ] + } + ] + } + ] +} \ No newline at end of file diff --git a/src/component/Events/eventsDetail.vue b/src/component/Events/eventsDetail.vue new file mode 100644 index 00000000..3f2b6c92 --- /dev/null +++ b/src/component/Events/eventsDetail.vue @@ -0,0 +1,244 @@ + + + \ No newline at end of file diff --git a/src/component/WorksPage/publish.vue b/src/component/WorksPage/publish.vue index 8615a63c..30945319 100644 --- a/src/component/WorksPage/publish.vue +++ b/src/component/WorksPage/publish.vue @@ -41,7 +41,7 @@
- {{ item.tag }} + {{ item.tagName }}
@@ -104,8 +104,7 @@ export default defineComponent({ isSecondaryCreation:true, } }) - let tagList = ref([{tag:'#RCAworkshop_2024 '},{tag:'#RCAwork '},{tag:'#RCAwo '},{tag:'#RCAwork '}]) - let selectTagList:any = ref([]) + let tagList = ref([{tagId:1,tagName:'#RCAworkshop_2024 ',title:'The process is simple: use AiDA to post your design work on the "Gallery ", and the one with the most likes(at least 20 likes) will be invited to the AiDA Workshop offline event in Hong Kong on November 14th, to exchange ideas with the Royal College of Art (RCA), Jae Lim, co-founder of the renowned fashion brand BESFXXK, and outstanding designers! '}]) // let textarea: any = ref(null) // let setCopy = ()=>{ // textarea.value.select() @@ -131,6 +130,7 @@ export default defineComponent({ status:'', updateDate:'', collectionId:'', + tagsDTO:[], // isAllowLikes:true, } } @@ -144,14 +144,25 @@ export default defineComponent({ const regex = /#\S+\s/g; // 使用match方法提取匹配的字符串 const matches = text.match(regex); - // 处理提取结果,去掉空格并返回 return matches ? matches.map((match:any) => match.trim()) : []; } let textareaChange = ()=>{ - - console.log(extractHashtags(publishData.subPublishDate.portfolioDes)); - + let tagListArr = extractHashtags(publishData.subPublishDate.portfolioDes) + let tagsDTO:any = [] + tagListArr.forEach((item:any) => { + const index = tagList.value.findIndex((obj:any) => obj.tagName === item); + if(index>-1){ + let obj = { + tagName:tagList.value[index], + tagId:tagList.value[index].tagId + } + tagsDTO.push(tagList.value[index]) + }else{ + tagsDTO.push({tagName:item}) + } + }); + publishData.subPublishDate.tagsDTO = tagsDTO } let setPermissionsItem = ()=>{ // publishData.selectPermissions.isAllowLikes && @@ -214,6 +225,7 @@ export default defineComponent({ param.append('file',file) publishData.subPublishDate.openSource = publishData.selectPermissions.isSecondaryCreation?1:0 param.append('data',JSON.stringify(publishData.subPublishDate)) + param.append('tagsDTO',JSON.stringify(publishData.subPublishDate.tagsDTO)) let config:any = {headers:{'Content-Type':'multipart/form-data','Accept':'*/*' }} // let data = publishData.subPublishDate publishData.isShowMark = true @@ -236,7 +248,7 @@ export default defineComponent({ // if(tag.tag == 'RCAworkshop_2024'){ // publishData.subPublishDate.portfolioDes = '#AiDA x RCA workshop ' // } - publishData.subPublishDate.portfolioDes = publishData.subPublishDate.portfolioDes+tag.tag + publishData.subPublishDate.portfolioDes = publishData.subPublishDate.portfolioDes+tag.tagName textareaChange() } return { @@ -244,7 +256,6 @@ export default defineComponent({ publishMask, ...toRefs(publishData), tagList, - selectTagList, // textarea, // setCopy, init, diff --git a/src/component/modules/navRouter.vue b/src/component/modules/navRouter.vue new file mode 100644 index 00000000..d802dd98 --- /dev/null +++ b/src/component/modules/navRouter.vue @@ -0,0 +1,77 @@ + + + + + \ No newline at end of file diff --git a/src/lang/cn.ts b/src/lang/cn.ts index d024ec82..9b931292 100644 --- a/src/lang/cn.ts +++ b/src/lang/cn.ts @@ -5,6 +5,7 @@ export default { LIBRARY:'收藏', HISTORY:'历史', WORKS:'作品广场', + EVENTS:'活动', bindEmail:'绑定邮箱', logOff:'退出登录', Tutorial:'教程', diff --git a/src/lang/en.ts b/src/lang/en.ts index 5fa6bb18..364b7867 100644 --- a/src/lang/en.ts +++ b/src/lang/en.ts @@ -5,6 +5,7 @@ export default { LIBRARY:'LIBRARY', HISTORY:'HISTORY', WORKS:'GALLERY', + EVENTS:'EVENTS', bindEmail:'bind email', logOff:'log off', Tutorial:'Tutorial', diff --git a/src/views/HomeMain.vue b/src/views/HomeMain.vue index e79c447e..3dce0f42 100644 --- a/src/views/HomeMain.vue +++ b/src/views/HomeMain.vue @@ -34,7 +34,7 @@
-