Commit Graph

27 Commits

Author SHA1 Message Date
66289511dd feat: 优化工作进度管理页面的样式
优化工作进度管理页面的样式,去除了不必要的边框和阴影效果。
2024-09-23 00:30:02 +08:00
91f7d2212d feat: 工作进度管理页面,优化用户资料更新,优化部分接口请求 2024-09-22 18:07:10 +08:00
0b9e99d00f feat: 用户页面增加单位、角色、权限展示 2024-09-22 01:26:18 +08:00
215318e29e feat: 添加 wd-drop-menu 和 wd-drop-menu-item 组件 2024-09-21 18:32:25 +08:00
5cd49bfa4c feat: 更新首页列表请求参数,添加加载指示器
ui: 调整课程详情页图标显示逻辑
2024-09-21 18:24:21 +08:00
b62fe580af feat: 添加 tabler 图标库和 unocss preset-icons
为项目添加了 "@iconify-json/tabler" 和 "@unocss/preset-icons" 依赖,用于引入 tabler 图标库和 unocss preset-icons 预设样式。
2024-09-21 11:38:32 +08:00
2d2ffc9fab fix: 课程名和微课名展示错误 2024-09-20 23:32:31 +08:00
476563377b feat: 重写首页列表样式,添加指示器 2024-09-20 20:53:47 +08:00
bc4cb97dea feat: 添加 dayjs 库以处理日期格式化
为了在课程详情页面中正确显示创建日期,我们添加了 dayjs 库来格式化日期字符串。这样,我们可以将日期显示为 "YYYY-MM-DD HH:mm:ss" 的格式。

- 添加了 dayjs 库的依赖
- 在课程详情页面中使用 dayjs 格式化创建日期
2024-09-20 17:28:52 +08:00
37f952911c ui: 调整课程详情样式 2024-09-20 17:16:34 +08:00
3492fc6c5c feat: 课程详情页面线性进度展示 2024-09-20 16:15:23 +08:00
edb4231140 wip: 进度列表和课程详情页面 2024-09-20 13:43:10 +08:00
53287e4cbd feat: Add "lesson" page and related components
This commit adds a new "lesson" page along with the necessary components and types. The "lesson" page displays the details of a specific lesson and includes a dynamic route parameter for the lesson name. Additionally, the commit includes updates to the `pages.json` file to configure the navigation bar title for the "lesson" page.
2024-09-19 15:13:42 +08:00
8f0c422dd8 feat: Update HttpClient to handle user logout on 401 error 2024-09-19 01:14:30 +08:00
5fc370a3bb Merge branch 'main' of http://git.uniiem.com/xuanshenghua/ppms-uni-vue3 2024-09-19 00:37:11 +08:00
bf5a374046 feat: Update component typings
- Remove unused Tabbar component import
- Update TabBar component import in page-wrapper.vue
2024-09-19 00:36:38 +08:00
f2f792aa12 feat: Add typings for uni-components
Add typings for the uni-components library to enable better type checking and editor support.
2024-09-19 00:35:28 +08:00
a35de8c0a1 feat: Update component typings
- Remove unused Tabbar component import
- Update TabBar component import in page-wrapper.vue
2024-09-19 00:32:27 +08:00
8f0994e0b2 feat: Add typings for additional uni-components
- Added typings for additional uni-components to improve type safety and code clarity.
- Created a new file `type.d.ts` to declare the `ROUTES` constant.

npmrc: Add .npmrc file

- Added a new `.npmrc` file to configure hoisting patterns for public packages.
- The file includes patterns for hoisting `@vue*` packages and an optional setting for `shamefully-hoist`.

refactor: Remove unused user store

- Deleted the `src/stores/user.ts` file as it is no longer needed.
- The functionality provided by the user store has been replaced by other stores.

tsconfig.json: Add wot-design-uni/global to types

- Updated the `tsconfig.json` file to include the `wot-design-uni/global` type definition.
- This allows for better type checking and autocompletion when using the `wot-design-uni` library.

feat: Add useTabbar store

- Created a new store `useTabbar` in the `src/stores/useTabbar.ts` file.
- The store provides reactive state for managing the active tab in the tab bar.

refactor: Update App.vue

- Updated the `src/App.vue` file to import and use the `useTabbar` store.
- Set the initial active tab to 'home' when the app is launched.

feat: Add useConfig store

- Created a new store `useConfig` in the `src/composables/useConfig.ts` file.
- The store provides reactive state for managing the base URL used in API requests.

feat: Add router configuration

- Created a new file `src/router/index.ts` to configure the app's router.
- Imported the `createRouter` function from the `uni-mini-router` library.
- Imported the `pages.json` file and used `uni-parse-pages` to generate the routes.
- Exported the created router instance.

feat: Add persist plugin

- Created a new file `src/stores/persist.ts` to implement a plugin for persisting store state.
- The plugin uses `uni.getStorageSync` and `uni.setStorageSync` to store and retrieve store state from local storage.

feat: Add page-wrapper component

- Created a new file `src/components/page-wrapper.vue` to define a reusable page wrapper component.
- The component includes a slot for content and adds a tab bar at the bottom of the page.

feat: Add BussApi and user types

- Created a new file `src/api/BussApi.ts` to define API methods for the business-related functionality.
- Added types for the API request and response objects.
- Created a new file `src/types/api/user.ts` to define types for the user-related API responses.

chore: Update dependencies

- Updated various dependencies in the `package.json` file.
- Added `wot-design-uni` as a new dependency.
- Updated `sass-loader` to version 10.

feat: Add my page

- Created a new file `src/pages/my/index.vue` to implement the "My" page.
- Added API calls to fetch user profile information.
- Added a logout button to log out the user and redirect to the login page.

chore: Update pages.json

- Updated the `pages.json` file to include the new "my" page and configure the tab bar.
- Set the "home" page as the initial page.
2024-09-19 00:26:40 +08:00
0fe6fc4b1d feat: Add typings for additional uni-components
Add typings for the following uni-components:
- WdCell
- WdCellGroup
- WdForm
- WdInput
- WdToast

This commit adds typings for these components to enhance type checking and improve developer experience.
2024-09-19 00:25:27 +08:00
ceb9636b42 feat: 添加pinia状态管理库和Tabbar组件
- 添加pinia状态管理库和Tabbar组件
- 引入axios和fant-axios-adapter
- 在main.ts中使用pinia和persist插件
- 在App.vue中修改标题
- 在useUser.ts中添加logout方法
- 添加persist.ts文件
- 修改page-wrapper.vue和TabBar.vue中的代码
- 修改index.vue和login.vue中的代码
2024-09-19 00:13:56 +08:00
cf77c72dfe feat: 添加pinia状态管理库和Tabbar组件
- 添加pinia状态管理库和Tabbar组件
- 导入新的组件和模块
- 更新页面布局和样式
- 删除无用的文件和代码
2024-09-18 22:08:19 +08:00
2913490e4b feat: Add typings for uni-components
Add typings for the uni-components library to enable better type checking and editor support.
2024-09-15 02:46:21 +08:00
34222f94d8 feat: 添加pinia状态管理库和Tabbar组件
添加pinia状态管理库和Tabbar组件,以支持应用的状态管理和底部导航栏功能。
2024-09-15 02:43:15 +08:00
6b64245028 dev: test 2024-09-14 21:37:48 +08:00
c687634393 feat: pinia 2024-09-14 21:21:30 +08:00
000eb1c790 initial commit 2024-09-14 21:04:16 +08:00