# Applets-UI **Repository Path**: wang_xi_long/applets-ui ## Basic Information - **Project Name**: Applets-UI - **Description**: 项目使用自定义组件 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-03-31 - **Last Updated**: 2021-05-18 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ## 结构目录 ├─assets │ ├─images │ └─img ├─component 公共组件 │ ├─footer │ └─slot │ └─pop-center ├─config 配置文件 │ ├─config 存放基础配置 │ └─constants 存储常量 ├─pages │ ├─index 首页 │ ├─login 登录 │ ├─member 权益 │ ├─my 我的 │ └─store 门店 ├─serve 请求 │ ├─home │ └─user ├─style 公共样式 └─utils 工具类 ## 注意点 * 一、兼容问题 1. 为解决吸底按钮在iPhone手机存在安全区域问题 需在按钮处添加`padding-bottom:env(safe-area-inset-bottom);` 2. 如高度失效加 `height: calc(xxrpx - safe-area-inset-bottom);` * 二、数据清洗与容错 1. 示例 ```js /** * 功能:处理列表 * @param list * @returns {Array} */ authorList: function (list = []) { let result = []; list.forEach(item => { result.push({ guid: item.recommend_obj_id || '', type: item.recommend_type || '', logo: (item.theme_pic || '').trim() || '', title: item.title || '' }); }); return result; } ``` 2. 作用: - 清洗数据,避免setData()时有过多的脏数据 - 错误数据的兼容,添加数据缺省值,增加代码健壮性 ## 仓储 origin[默认]:https://codechina.csdn.net/weixin_44952258/applets-ui.git gitee: https://gitee.com/wang_xi_long/applets-ui.git