Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
sport-train
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
tangjiale
sport-train
Commits
dac05530
Commit
dac05530
authored
Jun 01, 2022
by
tangjiale
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
编写开发文档
parent
f84984c2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
7 deletions
+14
-7
README.md
README.md
+14
-7
No files found.
README.md
View file @
dac05530
<!-- 代码/业务基本规范 -->
1, 组件封装优化
# 代码/业务基本规范
-
组件封装优化:
·开发时不要出现大段js代码重复,业务上的代码封装到service,工具性质的代码封装到utils里面
·模板里面for循环内的代码一般来说封装成组件更方便维护
·生命周期相关的通用代码,可以封装成mixin按需或者全局引用
2,css优化
-
css优化:
·class名需要有一定的业务含义,不能随便写
·善用less语法的能力,比如通用颜色定义颜色常量、善用css的集成方法(.extend)
3,用户交互优化
-
用户交互优化:
·加载页面数据时,页面至少不要空白,如果不好展示的话,加个loading的状态或者弹窗都可以
·点击按钮都需要有反馈,如操作成功、操作失败等,至少要让用户明确知道他点了按钮有什么结果。除非结果会使页面变化较大,可以不做toast或弹窗提示
·进行某些操作时,可能会引起上一个页面的数据发生变化,常见的比如在订单详情进行取消或者支付等,需要通过事件通知更新订单列表
4,业务逻辑梳理
·页面之间的跳转,根据业务场景是否已经完成闭环,哪些功能可以复用需要在项目开始开发前就考虑好,以免做重复工作
\ No newline at end of file
-
业务逻辑梳理:
·页面之间的跳转,根据业务场景是否已经完成闭环,哪些功能可以复用需要在项目开始开发前就考虑好,以免做重复工作
# 开发文档
-
[
uni-app官方文档
]
:(https://uniapp.dcloud.net.cn/)
-
[
uview-ui官方文档
]
:(https://v1.uviewui.com/guide/demo.html)
-
[
api接口文档
]
:()
-
[
ui交互地址
]
:()
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment