index.html
20.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
<!DOCTYPE html>
<html lang="en-US">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<title>前端 Frontend | 买买买文档平台</title>
<meta name="description" content="买买买文档平台">
<meta name="generator" content="VuePress 1.3.1">
<link rel="preload" href="/assets/css/0.styles.fadb700b.css" as="style"><link rel="preload" href="/assets/js/app.7b3620cc.js" as="script"><link rel="preload" href="/assets/js/2.db0c6dc7.js" as="script"><link rel="preload" href="/assets/js/13.e26beb91.js" as="script"><link rel="prefetch" href="/assets/js/10.e67b7016.js"><link rel="prefetch" href="/assets/js/11.f9dc0448.js"><link rel="prefetch" href="/assets/js/12.43e3bc20.js"><link rel="prefetch" href="/assets/js/14.172a5d95.js"><link rel="prefetch" href="/assets/js/15.821371e8.js"><link rel="prefetch" href="/assets/js/16.4011c09c.js"><link rel="prefetch" href="/assets/js/17.0a79f884.js"><link rel="prefetch" href="/assets/js/18.418c37b0.js"><link rel="prefetch" href="/assets/js/19.96959446.js"><link rel="prefetch" href="/assets/js/20.1c54f52e.js"><link rel="prefetch" href="/assets/js/21.3f6ff79f.js"><link rel="prefetch" href="/assets/js/22.5133b22a.js"><link rel="prefetch" href="/assets/js/23.564cbd22.js"><link rel="prefetch" href="/assets/js/24.0e3022aa.js"><link rel="prefetch" href="/assets/js/25.9eb0e0fc.js"><link rel="prefetch" href="/assets/js/26.c898ca98.js"><link rel="prefetch" href="/assets/js/3.7f4a682c.js"><link rel="prefetch" href="/assets/js/4.9dcb0336.js"><link rel="prefetch" href="/assets/js/5.9eb2a68c.js"><link rel="prefetch" href="/assets/js/6.1b73d060.js"><link rel="prefetch" href="/assets/js/7.72deeb81.js"><link rel="prefetch" href="/assets/js/8.8be0ed7e.js"><link rel="prefetch" href="/assets/js/9.bec74b06.js">
<link rel="stylesheet" href="/assets/css/0.styles.fadb700b.css">
</head>
<body>
<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="/" class="home-link router-link-active"><img src="/logo.png" alt="买买买文档平台" class="logo"> <span class="site-name can-hide">买买买文档平台</span></a> <div class="links"><div class="search-box"><input aria-label="Search" autocomplete="off" spellcheck="false" value=""> <!----></div> <nav class="nav-links can-hide"><div class="nav-item"><a href="/" class="nav-link">
查询导览
</a></div><div class="nav-item"><a href="/product/" class="nav-link">
项目清单
</a></div><div class="nav-item"><div class="dropdown-wrapper"><button type="button" aria-label="团队文档" class="dropdown-title"><span class="title">团队文档</span> <span class="arrow right"></span></button> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="/team/design/" class="nav-link">
产品设计
</a></li><li class="dropdown-item"><!----> <a href="/team/frontend/" class="nav-link router-link-exact-active router-link-active">
前端
</a></li><li class="dropdown-item"><!----> <a href="/team/ios/" class="nav-link">
IOS
</a></li><li class="dropdown-item"><!----> <a href="/team/android/" class="nav-link">
安卓
</a></li><li class="dropdown-item"><!----> <a href="/team/backend/" class="nav-link">
服务端
</a></li><li class="dropdown-item"><!----> <a href="/team/quality/" class="nav-link">
测试
</a></li></ul></div></div><div class="nav-item"><a href="/project/" class="nav-link">
项目管控
</a></div><div class="nav-item"><a href="/adm/" class="nav-link">
行政管理
</a></div><div class="nav-item"><a href="/util/" class="nav-link">
协作工具
</a></div><div class="nav-item"><a href="/guide/" class="nav-link">
文档写作平台入门介绍
</a></div> <!----></nav></div></header> <div class="sidebar-mask"></div> <aside class="sidebar"><nav class="nav-links"><div class="nav-item"><a href="/" class="nav-link">
查询导览
</a></div><div class="nav-item"><a href="/product/" class="nav-link">
项目清单
</a></div><div class="nav-item"><div class="dropdown-wrapper"><button type="button" aria-label="团队文档" class="dropdown-title"><span class="title">团队文档</span> <span class="arrow right"></span></button> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="/team/design/" class="nav-link">
产品设计
</a></li><li class="dropdown-item"><!----> <a href="/team/frontend/" class="nav-link router-link-exact-active router-link-active">
前端
</a></li><li class="dropdown-item"><!----> <a href="/team/ios/" class="nav-link">
IOS
</a></li><li class="dropdown-item"><!----> <a href="/team/android/" class="nav-link">
安卓
</a></li><li class="dropdown-item"><!----> <a href="/team/backend/" class="nav-link">
服务端
</a></li><li class="dropdown-item"><!----> <a href="/team/quality/" class="nav-link">
测试
</a></li></ul></div></div><div class="nav-item"><a href="/project/" class="nav-link">
项目管控
</a></div><div class="nav-item"><a href="/adm/" class="nav-link">
行政管理
</a></div><div class="nav-item"><a href="/util/" class="nav-link">
协作工具
</a></div><div class="nav-item"><a href="/guide/" class="nav-link">
文档写作平台入门介绍
</a></div> <!----></nav> <ul class="sidebar-links"><li><a href="/team/frontend/" class="active sidebar-link">前端 Frontend</a><ul class="sidebar-sub-headers"><li class="sidebar-sub-header"><a href="/team/frontend/#能力输出" class="sidebar-link">能力输出</a></li><li class="sidebar-sub-header"><a href="/team/frontend/#项目构建说明" class="sidebar-link">项目构建说明</a></li><li class="sidebar-sub-header"><a href="/team/frontend/#项目环境要求" class="sidebar-link">项目环境要求</a></li><li class="sidebar-sub-header"><a href="/team/frontend/#项目技术组成" class="sidebar-link">项目技术组成</a></li><li class="sidebar-sub-header"><a href="/team/frontend/#代码版本控制位置" class="sidebar-link">代码版本控制位置</a></li></ul></li><li><a href="/team/frontend/showcase.html" class="sidebar-link">陈列柜</a><ul class="sidebar-sub-headers"><li class="sidebar-sub-header"><a href="/team/frontend/showcase.html#网站" class="sidebar-link">网站</a></li><li class="sidebar-sub-header"><a href="/team/frontend/showcase.html#微信小程序" class="sidebar-link">微信小程序</a></li><li class="sidebar-sub-header"><a href="/team/frontend/showcase.html#桌面客户端" class="sidebar-link">桌面客户端</a></li></ul></li><li><a href="/team/frontend/standard.html" class="sidebar-link">开发规范</a><ul class="sidebar-sub-headers"><li class="sidebar-sub-header"><a href="/team/frontend/standard.html#vscode-插件" class="sidebar-link">VSCode 插件</a></li><li class="sidebar-sub-header"><a href="/team/frontend/standard.html#文件与目录命名规范" class="sidebar-link">文件与目录命名规范</a></li><li class="sidebar-sub-header"><a href="/team/frontend/standard.html#css-样式预处理" class="sidebar-link">CSS 样式预处理</a></li><li class="sidebar-sub-header"><a href="/team/frontend/standard.html#路由命名规则" class="sidebar-link">路由命名规则</a></li></ul></li><li><a href="/team/frontend/http.html" class="sidebar-link">数据交互格式标准</a><ul class="sidebar-sub-headers"><li class="sidebar-sub-header"><a href="/team/frontend/http.html#数据格式样例" class="sidebar-link">数据格式样例</a></li><li class="sidebar-sub-header"><a href="/team/frontend/http.html#api-交互规则" class="sidebar-link">API 交互规则</a></li><li class="sidebar-sub-header"><a href="/team/frontend/http.html#跨域与重复请求" class="sidebar-link">跨域与重复请求</a></li><li class="sidebar-sub-header"><a href="/team/frontend/http.html#数据表格" class="sidebar-link">数据表格</a></li><li class="sidebar-sub-header"><a href="/team/frontend/http.html#登录授权" class="sidebar-link">登录授权</a></li></ul></li><li><a href="/team/frontend/system-model.html" class="sidebar-link">系统交互模型</a><ul class="sidebar-sub-headers"><li class="sidebar-sub-header"><a href="/team/frontend/system-model.html#基础原则" class="sidebar-link">基础原则</a></li><li class="sidebar-sub-header"><a href="/team/frontend/system-model.html#流程示意" class="sidebar-link">流程示意</a></li><li class="sidebar-sub-header"><a href="/team/frontend/system-model.html#数据模型" class="sidebar-link">数据模型</a></li><li class="sidebar-sub-header"><a href="/team/frontend/system-model.html#api-接口" class="sidebar-link">API 接口</a></li></ul></li><li><a href="/team/frontend/plugins.html" class="sidebar-link">功能插件</a><ul class="sidebar-sub-headers"><li class="sidebar-sub-header"><a href="/team/frontend/plugins.html#拼图验证码插件" class="sidebar-link">拼图验证码插件</a></li><li class="sidebar-sub-header"><a href="/team/frontend/plugins.html#短信验证" class="sidebar-link">短信验证</a></li><li class="sidebar-sub-header"><a href="/team/frontend/plugins.html#侧边栏抽屉" class="sidebar-link">侧边栏抽屉</a></li><li class="sidebar-sub-header"><a href="/team/frontend/plugins.html#数据表格" class="sidebar-link">数据表格</a></li><li class="sidebar-sub-header"><a href="/team/frontend/plugins.html#数据下载-导出" class="sidebar-link">数据下载/导出</a></li><li class="sidebar-sub-header"><a href="/team/frontend/plugins.html#选择器" class="sidebar-link">选择器</a></li></ul></li><li><a href="/team/frontend/components.html" class="sidebar-link">业务组件</a><ul class="sidebar-sub-headers"><li class="sidebar-sub-header"><a href="/team/frontend/components.html#数据导入导出" class="sidebar-link">数据导入导出</a></li><li class="sidebar-sub-header"><a href="/team/frontend/components.html#操作权限应用" class="sidebar-link">操作权限应用</a></li><li class="sidebar-sub-header"><a href="/team/frontend/components.html#选择器" class="sidebar-link">选择器</a></li></ul></li><li><a href="/team/frontend/framework.html" class="sidebar-link">系统框架</a><ul class="sidebar-sub-headers"><li class="sidebar-sub-header"><a href="/team/frontend/framework.html#目录结构描述" class="sidebar-link">目录结构描述</a></li><li class="sidebar-sub-header"><a href="/team/frontend/framework.html#api" class="sidebar-link">API</a></li><li class="sidebar-sub-header"><a href="/team/frontend/framework.html#自定义指令集-directive" class="sidebar-link">自定义指令集 directive</a></li><li class="sidebar-sub-header"><a href="/team/frontend/framework.html#表单校验规则" class="sidebar-link">表单校验规则</a></li></ul></li><li><a href="/team/frontend/web-open-platform.html" class="sidebar-link">网页能力开放平台</a><ul class="sidebar-sub-headers"><li class="sidebar-sub-header"><a href="/team/frontend/web-open-platform.html#平台介绍及使用规范" class="sidebar-link">平台介绍及使用规范</a></li><li class="sidebar-sub-header"><a href="/team/frontend/web-open-platform.html#现有项目-模块" class="sidebar-link">现有项目/模块</a></li></ul></li><li><a href="/team/frontend/quality.html" class="sidebar-link">质量保证体系</a><ul class="sidebar-sub-headers"><li class="sidebar-sub-header"><a href="/team/frontend/quality.html#团队应用现状" class="sidebar-link">团队应用现状</a></li><li class="sidebar-sub-header"><a href="/team/frontend/quality.html#语法检查" class="sidebar-link">语法检查</a></li><li class="sidebar-sub-header"><a href="/team/frontend/quality.html#单元测试" class="sidebar-link">单元测试</a></li><li class="sidebar-sub-header"><a href="/team/frontend/quality.html#端对端测试(end-to-end)" class="sidebar-link">端对端测试(End-to-end)</a></li></ul></li></ul> </aside> <main class="page"> <div class="theme-default-content content__default"><h1 id="前端-frontend"><a href="#前端-frontend" class="header-anchor">#</a> 前端 Frontend</h1> <h2 id="能力输出"><a href="#能力输出" class="header-anchor">#</a> 能力输出</h2> <ul><li><p>支持全平台(<strong>Windows</strong>、<strong>Mac</strong>、<strong>Linux</strong>)的桌面客户端,以 <code>Windows</code> 环境为例,客户端程序以 <code>exe</code> 格式的可执行文件形式存在,不需要依赖浏览器运行,例如 QQ、Microsoft Office 等一系列可直接运行的桌面客户端</p></li> <li><p>微信小程序</p></li> <li><p>各类型网站,包含但不限于以下类型</p> <ul><li>管理平台</li> <li>CMS 站点</li> <li>企业门户综合网站</li> <li>服务类型网站</li> <li>设备嵌入网页</li></ul> <p>网站可根据需求针对 <code>desktop</code>、<code>tablet</code>、<code>mobile</code> 等不同尺寸设备进行适配</p></li></ul> <h2 id="项目构建说明"><a href="#项目构建说明" class="header-anchor">#</a> 项目构建说明</h2> <h3 id="构建网站"><a href="#构建网站" class="header-anchor">#</a> 构建网站</h3> <p>各类型网站、设备嵌入式网页等</p> <p><strong>生产环境</strong></p> <p>生产环境内容更新须严格按照计划安排执行</p> <p>执行构建流程</p> <ol><li>测试小组确认当前版本已通过测试</li> <li>项目负责人根据计划决定更新时间</li> <li>执行构建前自动化测试
<ul class="contains-task-list"><li class="task-list-item"><input checked="checked" disabled="disabled" type="checkbox" class="task-list-item-checkbox"> ESLint 语法检查扫描</li> <li class="task-list-item"><input disabled="disabled" type="checkbox" class="task-list-item-checkbox"> 单元测试</li> <li class="task-list-item"><input disabled="disabled" type="checkbox" class="task-list-item-checkbox"> 端对端测试</li></ul></li> <li>执行项目构建</li> <li>提交构建结果于运维人员并正式更新至生产环境</li></ol> <p><strong>测试环境</strong></p> <p>持续集成平台根据配置自动进行构建,用于测试小组测试功能完成情况</p> <div class="custom-block tip"><p class="custom-block-title">构建频率</p> <p>在所有使用自动持续集成的项目中,构建频率均为每天中午及凌晨两个时段</p> <ul><li>中午自动构建保证下午可以测试新的内容</li> <li>凌晨自动构建保证第二天早晨可以测试新的内容</li></ul></div> <h4 id="开发环境"><a href="#开发环境" class="header-anchor">#</a> 开发环境</h4> <p>开发环境使用本地环境进行构建及运行项目</p> <h3 id="构建微信小程序"><a href="#构建微信小程序" class="header-anchor">#</a> 构建微信小程序</h3> <p>微信小程序各版本发布流程说明</p> <p><strong>线上版</strong></p> <ol><li>测试小组确认当前版本已通过测试</li> <li>项目负责人根据计划决定更新时间</li> <li>设置环境参数为线上版</li> <li>上传代码至微信小程序平台</li> <li>进入微信公众平台,在版本管理中将当前 <strong>体验版</strong> 提交为 <strong>线上版</strong></li> <li>等待微信平台审核</li> <li>微信平台审核通过,并会在微信中通知相关人员</li> <li>进入微信公众平台,将审核通过的版本,发布为 <strong>线上版</strong></li></ol> <p><strong>预览版</strong></p> <ol><li>设置环境参数为开发版</li> <li>将开发完成的代码上传至微信小程序平台</li> <li>通过扫描预览版二维码进行试用</li></ol> <h2 id="项目环境要求"><a href="#项目环境要求" class="header-anchor">#</a> 项目环境要求</h2> <p><strong>浏览器及版本要求</strong></p> <table><thead><tr><th><img src="/frontend/browser/edge.png" alt="IE / Edge" width="48" height="48"><br>IE / Edge</th> <th><img src="/frontend/browser/firefox.png" alt="Firefox" width="48" height="48"><br>Firefox</th> <th><img src="/frontend/browser/chrome.png" alt="Chrome" width="48" height="48"><br>Chrome</th> <th><img src="/frontend/browser/safari.png" alt="Safari" width="48" height="48"><br>Safari</th> <th><img src="/frontend/browser/opera.png" alt="Opera" width="48" height="48"><br>Opera</th></tr></thead> <tbody><tr><td>IE10, IE11, Edge</td> <td>Firefox 18+</td> <td>Chrome 49+</td> <td>Safari 10+</td> <td>Opera 36+</td></tr></tbody></table> <blockquote><p>后续的技术版本升级后,仅对 IE11 进行兼容性支持</p></blockquote> <p><strong>屏幕分辨率要求</strong></p> <p><code>1366 X 768</code> 及以上</p> <p><strong>项目部署需求</strong></p> <ul><li>nginx(gzip)</li></ul> <p><br><br></p> <h2 id="项目技术组成"><a href="#项目技术组成" class="header-anchor">#</a> 项目技术组成</h2> <p>管理平台</p> <ul><li>vue2</li> <li>vue-router</li> <li>vuex</li> <li>axios</li> <li>element-ui</li></ul> <p>网页开放平台(专项提供移动端 WebView 嵌入、独立页提供)</p> <ul><li>vue2</li> <li>vue-router</li> <li>axios</li> <li>bootstrap 4(仅 CSS)</li></ul> <p>单元测试</p> <ul><li>vue-test-utils</li> <li>mocha</li> <li>cypress</li> <li>chai</li></ul> <p>小程序</p> <ul><li>微信小程序原生方式</li></ul> <p><br><br></p> <h2 id="代码版本控制位置"><a href="#代码版本控制位置" class="header-anchor">#</a> 代码版本控制位置</h2> <p>前端团队代码使用位置:<a href="http://192.168.100.254:3000/frontend" target="_blank" rel="noopener noreferrer">frontend<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" 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></a></p> <p>以下为前端团队目前完成的项目</p> <h3 id="网站、管理平台"><a href="#网站、管理平台" class="header-anchor">#</a> 网站、管理平台</h3> <ul><li><a href="http://192.168.100.254:3000/zenghaili/vegetarian-plus" target="_blank" rel="noopener noreferrer">素+管理平台<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" 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></a></li> <li><a href="http://192.168.100.254:3000/zenghaili/admin-platform" target="_blank" rel="noopener noreferrer">系统管理后台<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" 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></a></li></ul> <h3 id="小程序"><a href="#小程序" class="header-anchor">#</a> 小程序</h3> <ul><li><a href="http://192.168.100.254:3000/zenghaili/exam" target="_blank" rel="noopener noreferrer">便捷答题<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" 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></a></li> <li>票选小助手</li> <li>海鲜干货人家</li> <li>我的旺铺</li></ul></div> <footer class="page-edit"><!----> <!----></footer> <div class="page-nav"><p class="inner"><!----> <span class="next"><a href="/team/frontend/showcase.html">
陈列柜
</a>
→
</span></p></div> </main></div><div class="global-ui"><!----></div></div>
<script src="/assets/js/app.7b3620cc.js" defer></script><script src="/assets/js/2.db0c6dc7.js" defer></script><script src="/assets/js/13.e26beb91.js" defer></script>
</body>
</html>