funfet.html 10 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <!DOCTYPE html>
  2. <html lang="en-US">
  3. <head>
  4. <meta charset="utf-8">
  5. <meta name="viewport" content="width=device-width,initial-scale=1">
  6. <title>智能鞋官网 | 偶游前端</title>
  7. <meta name="generator" content="VuePress 1.9.7">
  8. <meta name="description" content="">
  9. <link rel="preload" href="/docs/assets/css/0.styles.e901f3ad.css" as="style"><link rel="preload" href="/docs/assets/js/app.9d841bbb.js" as="script"><link rel="preload" href="/docs/assets/js/2.a7c99d38.js" as="script"><link rel="preload" href="/docs/assets/js/12.d71ff1f2.js" as="script"><link rel="prefetch" href="/docs/assets/js/10.dffec12e.js"><link rel="prefetch" href="/docs/assets/js/11.29345ef4.js"><link rel="prefetch" href="/docs/assets/js/13.eadceca7.js"><link rel="prefetch" href="/docs/assets/js/14.86faea9b.js"><link rel="prefetch" href="/docs/assets/js/15.8cc4ecb6.js"><link rel="prefetch" href="/docs/assets/js/16.e10f6d69.js"><link rel="prefetch" href="/docs/assets/js/17.255d9f5b.js"><link rel="prefetch" href="/docs/assets/js/18.9f1823b8.js"><link rel="prefetch" href="/docs/assets/js/19.03db59c9.js"><link rel="prefetch" href="/docs/assets/js/20.f003980f.js"><link rel="prefetch" href="/docs/assets/js/21.5ec8f90e.js"><link rel="prefetch" href="/docs/assets/js/22.77e586e0.js"><link rel="prefetch" href="/docs/assets/js/23.793cee7f.js"><link rel="prefetch" href="/docs/assets/js/24.b9b4a05b.js"><link rel="prefetch" href="/docs/assets/js/25.12ca9a6b.js"><link rel="prefetch" href="/docs/assets/js/3.de84d37d.js"><link rel="prefetch" href="/docs/assets/js/4.47824499.js"><link rel="prefetch" href="/docs/assets/js/5.bd819ce0.js"><link rel="prefetch" href="/docs/assets/js/6.dfb8683d.js"><link rel="prefetch" href="/docs/assets/js/7.0e5538c2.js"><link rel="prefetch" href="/docs/assets/js/8.d3104372.js"><link rel="prefetch" href="/docs/assets/js/9.f4b68565.js">
  10. <link rel="stylesheet" href="/docs/assets/css/0.styles.e901f3ad.css">
  11. </head>
  12. <body>
  13. <div id="app" data-server-rendered="true"><div class="theme-container"><header class="navbar"><div class="sidebar-button"><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" role="img" viewBox="0 0 448 512" class="icon"><path fill="currentColor" d="M436 124H12c-6.627 0-12-5.373-12-12V80c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12z"></path></svg></div> <a href="/docs/" class="home-link router-link-active"><!----> <span class="site-name">偶游前端</span></a> <div class="links"><div class="search-box"><input aria-label="Search" autocomplete="off" spellcheck="false" value=""> <!----></div> <!----></div></header> <div class="sidebar-mask"></div> <aside class="sidebar"><!----> <ul class="sidebar-links"><li><a href="/docs/" aria-current="page" class="sidebar-link">偶游前端(冯垣玮)</a></li><li><section class="sidebar-group depth-0"><p class="sidebar-heading open"><span>项目</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/docs/currentProgram/funfet.html" aria-current="page" class="active sidebar-link">智能鞋官网</a><ul class="sidebar-sub-headers"><li class="sidebar-sub-header"><a href="/docs/currentProgram/funfet.html#说明" class="sidebar-link">说明</a></li><li class="sidebar-sub-header"><a href="/docs/currentProgram/funfet.html#项目地址" class="sidebar-link">项目地址</a></li><li class="sidebar-sub-header"><a href="/docs/currentProgram/funfet.html#项目域名" class="sidebar-link">项目域名</a></li><li class="sidebar-sub-header"><a href="/docs/currentProgram/funfet.html#技术选型" class="sidebar-link">技术选型</a></li><li class="sidebar-sub-header"><a href="/docs/currentProgram/funfet.html#最终的技术栈" class="sidebar-link">最终的技术栈</a></li><li class="sidebar-sub-header"><a href="/docs/currentProgram/funfet.html#node版本" class="sidebar-link">node版本</a></li><li class="sidebar-sub-header"><a href="/docs/currentProgram/funfet.html#项目架构" class="sidebar-link">项目架构</a></li><li class="sidebar-sub-header"><a href="/docs/currentProgram/funfet.html#命令" class="sidebar-link">命令</a></li><li class="sidebar-sub-header"><a href="/docs/currentProgram/funfet.html#部署" class="sidebar-link">部署</a></li></ul></li><li><a href="/docs/currentProgram/guide.html" class="sidebar-link">智能鞋落地页</a></li><li><a href="/docs/currentProgram/uni-app-pro.html" class="sidebar-link">智能鞋小程序商城</a></li><li><a href="/docs/currentProgram/customerService.html" class="sidebar-link">智能鞋客服系统</a></li><li><a href="/docs/currentProgram/tank.html" class="sidebar-link">坦克专题</a></li><li><a href="/docs/currentProgram/hiydMini.html" class="sidebar-link">hi运动教练小程序</a></li><li><a href="/docs/currentProgram/hiydShop.html" class="sidebar-link">hi运动商城</a></li><li><a href="/docs/currentProgram/webGame.html" class="sidebar-link">多玩游戏大厅</a></li></ul></section></li></ul> </aside> <main class="page"> <div class="theme-default-content content__default"><h1 id="智能鞋官网"><a href="#智能鞋官网" class="header-anchor">#</a> 智能鞋官网</h1> <blockquote><p>请编辑过的人员留下你的姓名</p></blockquote> <ul><li>文档编辑人员 冯垣玮(2022/10/28)</li></ul> <h2 id="说明"><a href="#说明" class="header-anchor">#</a> 说明</h2> <p>范肆智能鞋官网</p> <h2 id="项目地址"><a href="#项目地址" class="header-anchor">#</a> 项目地址</h2> <ul><li>svn://dev.webdev.ouj.com/biz/shoes/trunk/xie-pc</li></ul> <h2 id="项目域名"><a href="#项目域名" class="header-anchor">#</a> 项目域名</h2> <table><thead><tr><th>环境</th> <th>域名</th></tr></thead> <tbody><tr><td>正式环境</td> <td><a href="https://www.funfet.com" target="_blank" rel="noopener noreferrer">https://www.funfet.com<span><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg> <span class="sr-only">(opens new window)</span></span></a></td></tr></tbody></table> <h2 id="技术选型"><a href="#技术选型" class="header-anchor">#</a> 技术选型</h2> <blockquote><p>目标:pc端</p></blockquote> <p>可选择的方案,(1)传统开发模式 (2)Vue (3)React</p> <p>由于项目管理方面及新型技术的优势,且有seo需求,终于选择的基于Vue 的ssr渲染框架 Nuxt</p> <h2 id="最终的技术栈"><a href="#最终的技术栈" class="header-anchor">#</a> 最终的技术栈</h2> <blockquote><p>Nuxt(3.0.0-rc.11) + Vue3(3.2.40) + TypeScript + sass(1.55.0) + tailwindcss + element-plus(2.2.17)</p></blockquote> <h2 id="node版本"><a href="#node版本" class="header-anchor">#</a> node版本</h2> <blockquote><p>&quot;node&quot;: &quot;16.13.0&quot;</p></blockquote> <h2 id="项目架构"><a href="#项目架构" class="header-anchor">#</a> 项目架构</h2> <div class="language-Bash extra-class"><pre class="language-bash"><code>- .nuxt <span class="token comment"># 开发中用来生成Vue应用程序</span>
  14. - .output <span class="token comment"># 生产构建</span>
  15. - assets <span class="token comment"># 本地静态资源</span>
  16. - components <span class="token comment"># 公共组件</span>
  17. - composables <span class="token comment"># 组合逻辑文件,会被系统自动识别导入到应用程序,以供全局使用</span>
  18. - layouts <span class="token comment"># 布局目录</span>
  19. - pages <span class="token comment"># 页面目录</span>
  20. - public <span class="token comment"># 公共文件</span>
  21. - app.vue <span class="token comment"># Nuxt 应用程序中的入口组件</span>
  22. - .gitignore <span class="token comment"># git 提交忽略文件</span>
  23. - .npmrc <span class="token comment"># npm运行时配置文件</span>
  24. - package.json <span class="token comment"># 依赖包管理 JSON 文件</span>
  25. - postcss.config.js <span class="token comment"># postcss 插件配置</span>
  26. - README.md <span class="token comment"># README</span>
  27. - tsconfig.json <span class="token comment"># ts 配置</span>
  28. - tailwind.config.ts <span class="token comment"># tailwind 配置</span>
  29. - nuxt.config.ts <span class="token comment"># nuxt 配置</span>
  30. </code></pre></div><h2 id="命令"><a href="#命令" class="header-anchor">#</a> 命令</h2> <blockquote><p>打包与开发需使用pnpm,版本pnpm &gt;= 6</p></blockquote> <blockquote><p>开发:npm run dev / yarn dev</p></blockquote> <blockquote><p>打包:npm run build / yarn build</p></blockquote> <h2 id="部署"><a href="#部署" class="header-anchor">#</a> 部署</h2> <blockquote><p>直接部署 node .output/server/index.mjs</p></blockquote> <blockquote><p>PM2 部署</p></blockquote> <p>存在问题:打包后上传至服务器,依赖包不全,处理方式:重新安装依赖包</p></div> <footer class="page-edit"><!----> <!----></footer> <div class="page-nav"><p class="inner"><span class="prev">
  31. <a href="/docs/" class="prev router-link-active">
  32. 偶游前端(冯垣玮)
  33. </a></span> <span class="next"><a href="/docs/currentProgram/guide.html">
  34. 智能鞋落地页
  35. </a>
  36. </span></p></div> </main></div><div class="global-ui"></div></div>
  37. <script src="/docs/assets/js/app.9d841bbb.js" defer></script><script src="/docs/assets/js/2.a7c99d38.js" defer></script><script src="/docs/assets/js/12.d71ff1f2.js" defer></script>
  38. </body>
  39. </html>