ʱ¼ä£º2024-06-03¡¡|¡¡À´Ô´£º¡¡|¡¡ÔĶÁ£º82
Vue3¼òµ¥ÏîÄ¿Á÷³Ì·ÖÏí¡ª¡ª¹¤×÷ÊÒÖ÷Ò³ Á㡢дÔÚ×îÇ° ÒÔÏÂÊÇÏîÄ¿Ïà¹ØµÄһЩÁ´½Ó£º Ô´´úÂëGitHub²Ö¿â£¨ÐèҪħ·¨ÉÏÍø£©£º²Ö¿â ÍøҳʾÀý£¨ÐèҪħ·¨ÉÏÍø£©£ºÍøҳʾÀý UIͼ£¨À´Ô´@Éè¼ÆʦÑîºØ£©£ºMasterGoÖ÷Ò³ ²¹³ä£ºÓÉÓÚʱ¼ä¹Øϵ£¬¸ÃÍøҳûÓÐÊÊÅäÊÖ»ú¶Ë£¬×î¼ÑչʾЧ¹ûΪÍøÒ³¶Ë1440p¿í¶È¡£ Èç¹ûÄã
ÒÔÏÂÊÇÏîÄ¿Ïà¹ØµÄһЩÁ´½Ó£º
²¹³ä£ºÓÉÓÚʱ¼ä¹Øϵ£¬¸ÃÍøҳûÓÐÊÊÅäÊÖ»ú¶Ë£¬×î¼ÑչʾЧ¹ûΪÍøÒ³¶Ë1440p¿í¶È¡£
Èç¹ûÄãÏëÒªÔËÐÐÔ´´úÂ룺
cd your_path
git clone https://github.com/YellowSeaa/studio_page.git
npm install
npm run dev
¿Î³Ì×÷ÒµÒªÇóҪʹÓÃHTML+CSS+JSP¼¼Êõ£¬ÔÚÍøÉÏÁ˽⵽JSPÄÚ¿ÉÒÔÌ×ÓÃVue£¨Ï൱ÓÚÓÃVueдģ°å£¬È»ºóÍâÃæÌ×Ò»²ãJSPÄ£°å¼´¿É£©¡£
×îÖÕ¾ö¶¨Ê¹ÓÃVueÀ´ÊµÏÖÇ°¶Ë£¬²¢ÇÒʹÓÃelement Plus½ÅÊּܣ¬ºó¶Ë²¿·Ö³¢ÊÔʹÓÃJSP£¨Ã»Ñ§¹ý£¬²»ÖªµÀÄܲ»ÄÜŪµÄÏÂÀ´£©£¬Èç¹ûʵÔÚ²»ÐоÍÓÃDjango×öÇ°ºó¶Ë·ÖÀ뿪·¢¡£
Êý¾Ý¿â·½ÃæµÄ»°£¬¾ÍÓÃMysql»òÕßsqlite3¡£
ÓÉÓÚ֮ǰÒѾ°²×°¹ýVue£¬ËùÒÔ²»¼Ç¼ÁË¡£
JSPºÍTomcat²Î¿¼µÄÊÇÏÂÃ漸ƪÎÄÕ£¬Ö±½ÓʹÓÃhomebrew°²×°µÄ£º
ÖµµÃ×¢ÒâµÄÊÇÒÔÏÂÆô¶¯ Tomcat·½·¨
brew services start tomcat
Èç¹ûÖÕ¶ËÌáʾ
Successfully started 'tomcat' (label: homebrew.mxcl.tomcat)
Ôò˵Ã÷Æô¶¯³É¹¦£¬ä¯ÀÀÆ÷·ÃÎÊ
http://localhost:8080
¼´¿É¿´µ½ Tomcat µÄÒ³Ãæ¡£
ʹÓÃÖնˣ¬½øÈëÏë´´½¨µÄÎļþ¼ÐλÖã¬È»ºóÔËÐÐÒÔÏÂÃüÁî
npm create vue@latest
È»ºó»áÈÃÎÒÊäÈëÏîÄ¿Ãû³ÆºÍ½øÐÐһЩѡÏÔÚ´ËÎÒֻѡÔñÁË ÒýÈë Vue Router ½øÐе¥Ò³ÃæÓ¦Óÿª·¢ £¬ÆäËûÑ¡Ïî¾ùÑ¡ÔñÁË·ñ¡£
×îºó¸ù¾ÝÌáʾ½øÈëÏîÄ¿Îļþ¼ÐÄÚ£¬°²×°ÒÀÀµ²¢ÔËÐм´¿É¡£
cd
npm install #°²×°ÒÀÀµ
npm run dev #ÔËÐÐÏîÄ¿
ÔÚä¯ÀÀÆ÷Öдò¿ª¶ÔÓ¦ÍøÖ·¼´¿É
±¾ÏîÄ¿ÊǼòµ¥µÄÏîÄ¿£¬Ö»ÓÐÒ»¸öÖ÷Ò³Ã棬ҳÃæÄÚÓÉÉϵ½ÏÂÅŲ¼¶à¸ö¿é¡£
ÎÒÃÇÖ»ÐèÒªÐÞ¸Ä
src/App.vue
ºÍ
src/router/index.js
ÖеÄÄÚÈÝ£¬½«Ò»¿ªÊ¼µÄÒ³ÃæÖ¸Ïò×Ô¶¨ÒåµÄÎļþ
src/components/home.vue
¼´¿É£¬ÒÔÏÂÊǾßÌåÄÚÈÝ£º
// index.js
import { createRouter, createWebHistory } from 'vue-router'
import home from '../components/home.vue'
const router = createRouter({
history: createWebHistory(import.meta.env.BASE_URL),
routes: [
{
path: '/',
name: 'home',
component: home
},
]
})
export default router
This is home
¸ù¾ÝUIͼ¿ÉÒÔ¿´³ö£¬Ö÷Ò³ÊÇÓɶà¸ö²¿·Ö×é³É£¬ÓÉÉϵ½ÏÂÅŲ¼¡£
±¾ÏîÄ¿Öн«Ã¿¸ö²¿·Ö·Ö±ðд³ÉÒ»¸ö×é¼þÎļþ£¬È»ºóÔÚ
home.vue
Öм¯³É¡£
home.vue
Ö»ÐèÒª¹Ø×¢×é¼þ²¿·Ö¼äµÄÅÅ°æ¼´¿É¡£
Ïȷֱ𴴽¨ºÃ¸÷¸ö×é¼þ¶ÔÓ¦µÄÎļþ£º
È»ºóÐÞ¸Ä
home.vue
×îÖյõ½Ð§¹ûÈçÏ£º
½ÓÏÂÀ´Ö»ÐèÒªÔÚ¶ÔÓ¦µÄ×é¼þÎļþÖУ¬Íê³ÉÇ°¶ËµÄ»æÖƼ´¿É¡£
Ê×ÏÈ¿´Ò»ÏÂUIͼ£¬²¼¾ÖÈçÏ£º
ʹÓÃflex²¼¾Ö£¬ºìÉ«²¿·ÖʹÓÃ
space-between
£ºÁ½¶Ë¶ÔÆ룬ÏîÄ¿Ö®¼äµÄ¼ä¸ô¶¼ÏàµÈ£»À¶É«²¿·ÖʹÓÃ
space-around
£ºÃ¿¸öÏîÄ¿Á½²àµÄ¼ä¸ôÏàµÈ¡£
´úÂëÈçÏ£º
×îÖÕЧ¹û£º
ºóÐø»¹ÐèÒª×ö£º
µã»÷±êÇ©¹ö¶¯µ½¶ÔӦλÖ㺠²Î¿¼ÎÄÕÂ
UIͼ£º
ÆäÖкìÉ«²¿·ÖʹÓÃflex·ÖΪ×óÓÒÁ½²¿·Ö£¬×ó±ßʹÓÃflex·ÖΪÉÏÏÂÈý²¿·Ö£¬ÓÒ±ßÔòÊÇÒ»ÕÅͼ¡£
´úÂëÈçÏ£º
A Digital Product Agency
Leading digital agency with solid design and development expertise. We build readymade
websites, mobile applications, and elaborate online business services.
×îÖÕЧ¹û£º
½ÓÏÂÀ´ÊÇÏÂÃæµÄÎå¸ö¿éÖеĵÚÒ»¸ö¡£UIͼÈçÏ£º
²¼¾ÖÈçͼËùʾ¡£
´úÂëÈçÏ£º
Our Client
Several selected clients, who already believe in our service.
Ч¹ûÈçÏ£º
UIͼÈçÏ£º
²¼¾ÖÓе㸴ÔÓ£¬ÆäÖÐÁ½¸öÀ¶É«²¿·Öͨ¹ýµ÷Õû²»Í¬µÄmargin-topÀ´ÊµÏÖ´íλµÄЧ¹û¡£
±³¾°µÄ¼¸¸ö¾ØÐβ»Ì«ºÃÖ±½Óͨ¹ý´úÂë»æÖÆ£¬Ö±½Óµ¼³öÒ»ÕÅͼƬ·ÅÔÚÈÝÆ÷±³¾°ÖС£
´úÂëÈçÏ£º
How can we help your Business ?
We build readymade websites, mobile applications, and elaborate online business services.
Business Idea Planning
We present you a proposal and discuss niffty-gritty like
Financial Planning System
Protocols apart from aengage models, pricing billing
Development Website and App
Communication protocols apart from engagement models
Market Analysis Project
Protocols apart from aengage models, pricing billing
Ч¹ûÈçÏ£º
ʵ¼ùÖз¢ÏÖ£¬Ê¹Óñ³¾°Í¼Æ¬À´ÊµÏÖÄÇЩ¾ØÐΣ¬ÓеãÄÑÒÔ¿ØÖÆ£¬Ð§¹û²»¼Ñ¡£×îÖÕÎÒ¼ò»¯ÁËһЩԪËØ£¬ÃãÇ¿ÄÜ¿´¡£
Èç¹ûÒª´ïµ½×îºÃµÄЧ¹û£¬»¹ÊǵÃͨ¹ý´úÂëʵÏÖ¾ØÐεĻæÖÆ¡£
UIͼ£º
ÕâÀïµÄ²¼¾Ö±È½Ï¼òµ¥£¬¾Í²»¹ý¶à׸ÊöÁË¡£
±È½ÏÌرðµÄÊÇ´Ë´¦Ê¹ÓÃÁËÒ»¸öÊÓƵ²¥·ÅÆ÷£¬
µ«ÊÇÄ¿Ç°ÔÝʱûÓÐʵÏÖ£¬³öÏÖÁËһЩbug£ºµÚÈý·½µÄ²¥·ÅÆ÷²å¼þ°²×°ºóimportÏÔʾÕÒ²»µ½£¬´«Í³µÄvideo²¥·Å²»ÁË¡¡
ÏÈʹÓÃimg´úÌ棬ºóÐøÔÙÐÞÕâ¸öbug¡£
Ñ¡ÓÃ
vue3VideoPlay
Õâ¸ö²å¼þ£¬ÖµµÃ×¢ÒâµÄÊÇ£¬Õâ¸ö²å¼þÓÐÒ»¸öÎÊÌ⣬ÆäĬÈÏpackage.jsonÖÐÓÐÒ»¸ö·¾¶ÊÇ´íµÄ£¬Òª¸Äд³ÉÏÂÃæÕâ¸ö£º
ÁíÍ⣬¸Ã²å¼þ¹Ù·½µÄÎĵµÒ²ÓеãÎÊÌ⣬mp4Îļþ²»ÖªµÀΪʲô²¥·Å²»ÁË£¬±¾µØÎļþÒ²²¥·Å²»ÁË¡¡
¾¹ý²âÊÔ£¬ÍøÂçm3u8Îļþ¿ÉÒÔ²¥·Å£¬ËùÒÔÏÂÃæʹÓô˸ñʽ½øÐв¥·Å¡££¨ÈçºÎ»ñµÃm3u8Á´½Ó£¬Ð´ÔÚÁ˲¹³ä²¿·Ö£©
´úÂ룺
https://cdn.jsdelivr.net/gh/xdlumia/files/video-play/ironMan.jpg" :src="options.src"
:type="options.type" :autoPlay="false" />
´Ë´¦ÖµµÃ×¢ÒâµÄ²¿·ÖÊÇ£¬²¥·ÅÆ÷µÄ³¤ºÍ¿íµÃÏñ´úÂëµÄд·¨²ÅÓÐЧ£¬Ð´³ÉcssÎÞЧ£¬ÁíÍ⣬Բ½ÇÒ²Ö»ÄÜͨ¹ýÉèÖø¸ÈÝÆ÷
overflow: hidden;
ʵÏÖ¡£
poster
²¿·ÖÊÇ·âÃæ¡£
´úÂ룺
Great Digital Product Agency since 2016
Our Business Plan is a written document describing a company's core business activites,
Objectives, and how it plans to achieve its goals. Our goal is to provide our client high quality
Product with modern idea accordingly their budgets and according thir reuirements.
Ч¹û£º
UIͼ£º
ÕâÕÅͼÊÇÓж¯Ð§µÄ£¬ÖмäµÄÀ¶É«Ô²È¦¿ÉÒÔÑ¡Ôñ²»Í¬µÄÈËÎï½éÉÜ¡£
ÔÚ´ËÏÈ×öºÃ¾²Ì¬µÄÍâ¹Û£¬¶¯Ð§ºóÃæÔÙ²¹È«¡£
´úÂëÈçÏ£º
What our happy client say
Several selected clients, who already believe in our service.
Matthew Paul
Perfect, very good job! Thank you for the amazing design and work. Really
impressed with the high quality and quick turnaround time. Highly recommend.
ÊÂʵÉÏ£¬ÕâÀïµÄͼƬºÍÑ¡Ïд·¨£¬¸´ÓÃÐԺܲ¶øÇÒ²»ºÃ×ö¶¯Ð§¡£ºóÃæ»áʹÓÃv-forµÈ·½·¨½øÐÐÐ޸ġ£
Ч¹ûÈçÏ£¨ÒòΪûÓÐÕÒµ½ºÏÊʵÄͼƬ£¬¾ÍËæ±ãÄÃÁËÒ»ÕÅͼƬ£©£º
UIÈçÏÂͼ£º
ÕâÒ»²¿·ÖµÄ²¼¾ÖºÍÉÏÃæµÄÓÐÐí¶à²»Í¬£¬ÓÐÒ»²¿·ÖµÄ²¼¾Ö²»ÄÜʹÓÃflexʵÏÖ£¬µÃÓÃÏà¶ÔºÍ¾ø¶ÔλÖÃ
relative
¡¢
absolute
À´ÊµÏÖÖصþ£¬ÈçͼÖеĺìÉ«¡¢ÓұߵÄÂÌÉ«²¿·Ö¡£
¾ßÌå´úÂëÈçÏ£º
Subscribe Newsletter
I will update good news and promotion service not spam
Ч¹ûÈçÏ£º
UIÈçÏ£º
²¼¾Ö±È½Ï¼òµ¥£¬¾Í²»¹ý¶à׸Êö¡£
´úÂëÈçÏ£º
Ч¹û£º
Ç°Ãæд¾²Ì¬Ò³µÄʱºò£¬ÓÐÒ»²¿·Ö±³¾°Í¼ÐÎÊÇÖ±½ÓʹÓÃͼƬ£¬µ«ÊÇÀÉìЧ¹û²»ºÃ£¬ËùÒÔ²¹³äʹÓÃdivÀ´»¾ØÐΣ¬ÒÔÊÊÓ¦²»Í¬¿í¶ÈµÄä¯ÀÀÆ÷¡£
Ê×ÏÈÊÇheadlineµÄÕâÁ½¸ö¾ØÐΣº
ÔÚright_partÖмÓÉÏÁ½¸ödiv£¬²¢ÓÃÏà¶ÔλÖú;ø¶ÔλÖù̶¨¡£
// template
//style
.right_part {
min-width: 817px;
height: 100%;
overflow: auto;
position: relative;
/* background-color: red; */
}
.right_part img {
height: 512px;
width: 754px;
/* min-width: 754px; */
border-radius: 0px 0px 0px 200px;
position: absolute;
top: 0px;
right: 0px;
/* margin-left: 64.5px;
margin-bottom: 89px; */
}
.rectangle1{
position: absolute;
top: 0px;
left: 0px;
width: 129px;
height: 129px;
background: #DAE9FF;
border-radius: 500px 500px 500px 500px;
}
.rectangle2{
position: absolute;
bottom: 0px;
right: 120px;
width: 178px;
height: 178px;
background: #FFF5DB;
border-radius: 0px 0px 100px 0px;
}
ÉÏÃæÌáµ½¹ý£¬ÄǸöÊÓƵ²¥·Å²å¼þÎÞ·¨²¥·Å±¾µØÊÓƵ£¬ËùÒÔÐèÒª½«ÊÓƵÉÏ´«µ½ÍøÂçÉÏ£¬Í¨¹ýÍøÂçÁ´½Ó»ñÈ¡¡£
ÔÚ´ËʹÓð¢ÀïÔƵÄýÌå´¦ÀíMPSºÍ¶ÔÏó´æ´¢OSSʵÏÖ¡£
ýÌå´¦ÀíMPS
¶ÔÏó´æ´¢
֮ǰÔÚ²¼¾Öʱ£¬¶àʹÓÃflex²¼¾Ö£¬¿ÉÒÔ¸ù¾Ýä¯ÀÀÆ÷¿í¶È×ÔÊÊÓ¦²¼¾Ö£¬ÔÚÒ»¶¨µÄ¿í¶ÈÏÞÖÆÄÚЧ¹û»¹²»´í£¬µ«ÊÇÈç¹û¿í¶ÈÌ«´ó£¬»áµ¼ÖÂ×óÓÒÁ½±ßµÄ×é¼þÖ®¼äÓÐÒ»¸ö¾Þ´óµÄ¿Õ°×£¬ºÜÄÑ¿´£¬ËùÒÔÐèÒªÏÞÖÆÒ»¸ö×î´óµÄ¿í¶È£¬µ±³¬³öÕâ¸ö¿í¶Èʱ£¬ÔÚÁ½±ßʹÓÿհ×Ìî³ä¡£
Ö»ÐèÒªÔÚ
home.vue
µÄ
style
²¿·ÖÌí¼ÓÏÂÃæ´úÂë¡£
max-width: 1440px;
/* ÉèÖÃ×î´ó¿í¶È */
margin-left: auto;
/* ×ó²à×Ô¶¯Ìî³ä */
margin-right: auto;
/* ÓÒ²à×Ô¶¯Ìî³ä */
Ч¹ûÈçÏ£º
ÊÓƵ²¥·ÅÆ÷ÓÐÒ»¸öbug£ºÔÚÒ»¿ªÊ¼´ò¿ªÒ³ÃæµÄʱºò£¬»á¿ªÊ¼»º³å£¬»º³åʱĬÈÏ°ÑÒ³Ãæ¹ö¶¯µ½²¥·ÅÆ÷ËùÔÚµÄλÖá£
µ«ÊÇÎÒÃÇÏëÒª´ò¿ªÊ±Ä¬ÈÏÔÚ¶¥²¿¡£
ÊÔ¹ýʹÓÃ
mounted
¹³×Óº¯ÊýÇ¿Öƹö¶¯µ½¶¥²¿£¬µ«ÊÇ»º³åÔں󣬽á¹ûÊDz»ÉúЧ¡£
ÈÏÕæ²é¿´ÁËÊÓƵ²¥·ÅÆ÷µÄÎĵµºó£¬·¢ÏÖͨ¹ý°ó¶¨Ê¼þ£¬ÔÚ»º³å¿ªÊ¼Ê±¹ö¶¯µ½¶¥²¿£¬¿ÉÒÔÇúÏ߾ȹú¡£
const onloadstart = (ev) => {
console.log("¿ªÊ¼»º³å");
window.scroll(0, 0);
};
ÒÔÉÏ£¬Ç°¶Ë¾²Ì¬²¿·ÖµÄËùÓв¼¾Ö¶¼»ºÃÁË£¬½ÓÏÂÀ´Òª¸ù¾Ýʵ¼ÊÇé¿ö½«ÄÚÈÝÐ޸ijÉÎÒÃÇ×Ô¼ºµÄ¡£
ÔÚÕâÀÎÒÏëÒª×öµÄÊÇÎÒÃÇ¿ª·¢µÄÒ»¿îappµÄ½éÉÜ£¬ËùÒÔ½«Ò³Ãæ¸Ä³ÉÁËÒÔÏ¡££¨ÓÉÓÚÖ»ÐèÒªÐÞ¸ÄÄÚÈÝ£¬ËùÒÔ´úÂë¾Í²»Õ¹Ê¾ÁË£©
½«ÎÒÃÇÏëÓõÄͼ±êÌæ»»µô
public/favicon.ico
Ð޸ĸùĿ¼ÏµÄ
index.html
Îļþ£º
�Ծ�������רע��Ч��ѧϰ����
����ϸ��ϲ����Ƕ�̬���֣�����ֱ��ͨ��css��������ʵ�֣�ֻ������ǰ���������ˣ����ڴ˲����ϡ�
home.vue
�ļ������ò���
TopBar.vue
����css
.bar {
display: flex;
justify-content: space-between;
/* marginҪ�ij�padding */
padding-top: 42px;
padding-left: 120px;
padding-right: 120px;
padding-bottom: 10px;
box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1); /* ���ϵײ���Ӱ�ÿ�һЩ*/
/* margin-top: 42px;
margin-left: 120px;
margin-right: 120px; */
}
���ڸ�������ĸ߶��ǹ̶�����ģ�����ֱ��ʹ��
document.documentElement.scrollTop
����ʵ�֡�
��������ť���������½�����ťֻ��Ҫ��һ���������Ӽ��ɣ��������ӿ���ʹ�ð�����oss����ȡ�����巽����֮ǰ��Ƶm3u8���ӻ�ȡ��࣬�Ͳ�����׸����
���ύ����ť��Ҫ��һ�����ݿ�����Ľӿڣ���������е����ݼ��뵽���ݿ��С�
����Ŀǰû�п������صĶ��������ݿ�����Ľӿڣ����Ծͼ򵥰���һ������������Ϣ�򡣴���Ͳ�չʾ�ˡ�
��Ա���ܲ��֣���Ҫ�������Ե�������ѡ��ť���л�����Ӧ�ij�Ա��Ϣȥ��
template
���֣�
{{ selectedMember.name }}
{{ selectedMember.description }}
script
���֣�
���ϣ�webҳ�������ɣ����������ǽ��䲿��GitHub�ϡ�
�ο��̳̣� �ο�
����Ŀ�е� vite.config.js ���ҵ��������飬����Ϊ��Ӧ�� github �ֿ�����
export default defineConfig({
base: '/your_repositories_name/', // github�ֿ�����
plugins: [],
})
npm run build
��Ҫ��
.gitignore
�ļ��н�dist�ļ��еĺ��Ը�ע�͵���
Ȼ����git�����ļ����ϴ���ָ����֧��
git add dist
git commit -m "Your commit message"
git subtree split --prefix dist -b dist-branch
git push your_repositories_name dist-branch:gh-pages # ����Ҫ�ijɾ���IJֿ���
git branch -d dist-branch
����ڲֿ�������д�github page���ɡ�
��ICP��2022002427��-10 �湫��������43070202000427��
© 2013~2024 haote.com ������