# wxmp-week-component **Repository Path**: fyb1992/wxmp-week-component ## Basic Information - **Project Name**: wxmp-week-component - **Description**: 小程序周算法,类似钉钉统计 - **Primary Language**: JavaScript - **License**: MulanPSL-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 0 - **Created**: 2023-02-14 - **Last Updated**: 2023-02-14 ## Categories & Tags **Categories**: Uncategorized **Tags**: 小程序, 组件, JavaScript ## README # 类似于钉钉的打卡统计周的算法 ### 项目介绍 /component/weekCalendar 组件主体 /pages/index 组件引用 /utils/common.wxs 页面用到的字符串转换公共方法 ### 插件 moment.js 的引用 需要 npm 安装 和构建一下 ### props | 属性名 | 类型 | 默认值 | | :---------: | :----: | :----: | | defaultTime | String | '' | ###### 参数说明:defaultTime = 年,月,周 ID,开始周日期,结束周日期 用英文逗号拼接起来 例如: year: 2023,month: 2,weekId: 3,startDay: "2023-02-13",endDay: "2023-02-19", defaultTime = "2023,2,3,2023-02-13,2023-02-19" 这些参数会在父子组件通信传值的时候暴露出来。 ### 联系作者 微信:LikeMyself-0630