diff --git a/apiRc/login.js b/apiRc/login.js index 939aa24..74ee74b 100644 --- a/apiRc/login.js +++ b/apiRc/login.js @@ -1,7 +1,7 @@ /* * @Date: 2025-10-31 11:06:15 * @LastEditors: shirlwang - * @LastEditTime: 2025-11-03 14:31:12 + * @LastEditTime: 2025-11-03 15:51:28 */ import request from '@/utilsRc/request' @@ -44,4 +44,10 @@ export function register(data) { }) } - +// 获取用户详细信息 +export function getInfo() { + return request({ + url: '/getInfo', + method: 'get' + }) +} \ No newline at end of file diff --git a/main.js b/main.js index bfa1d7e..7d6f49f 100644 --- a/main.js +++ b/main.js @@ -1,7 +1,7 @@ /* * @Date: 2025-11-03 10:52:09 * @LastEditors: shirlwang - * @LastEditTime: 2025-11-03 12:12:49 + * @LastEditTime: 2025-11-03 17:26:29 */ import App from '@/App' import * as Pinia from 'pinia' @@ -21,6 +21,8 @@ import RenderCompanys from '@/components/renderCompanys/renderCompanys.vue'; import uniIcons from './uni_modules/uni-icons/components/uni-icons/uni-icons.vue' import uniPopup from './uni_modules/uni-popup/components/uni-popup/uni-popup.vue' import uniDataSelect from './uni_modules/uni-data-select/components/uni-data-select/uni-data-select.vue' +import uniSwipeAction from './uni_modules/uni-swipe-action/components/uni-swipe-action/uni-swipe-action.vue' +import uniSwipeActionItem from './uni_modules/uni-swipe-action/components/uni-swipe-action-item/uni-swipe-action-item.vue' import storeRc from './utilsRc/store/index.js' // iconfont.css 已在 App.vue 中通过 @import 引入,无需在此处重复引入 // import Tabbar from '@/components/tabbar/midell-box.vue' @@ -51,6 +53,8 @@ export function createApp() { app.component('uni-icons', uniIcons) app.component('uni-popup', uniPopup) app.component('uni-data-select', uniDataSelect) + app.component('uni-swipe-action', uniSwipeAction) + app.component('uni-swipe-action-item', uniSwipeActionItem) app.config.globalProperties.$getDict = getDict; diff --git a/package-lock.json b/package-lock.json index 2d18fdb..a04b5bf 100644 --- a/package-lock.json +++ b/package-lock.json @@ -5,10 +5,16 @@ "packages": { "": { "dependencies": { + "@dcloudio/uni-ui": "^1.5.11", "dayjs": "^1.11.19", "sm-crypto": "^0.3.13" } }, + "node_modules/@dcloudio/uni-ui": { + "version": "1.5.11", + "resolved": "https://registry.npmjs.org/@dcloudio/uni-ui/-/uni-ui-1.5.11.tgz", + "integrity": "sha512-DBtk046ofmeFd82zRI7d89SoEwrAxYzUN3WVPm1DIBkpLPG5F5QDNkHMnZGu2wNrMEmGBjBpUh3vqEY1L3jaMw==" + }, "node_modules/dayjs": { "version": "1.11.19", "resolved": "https://registry.npmjs.org/dayjs/-/dayjs-1.11.19.tgz", @@ -29,6 +35,11 @@ } }, "dependencies": { + "@dcloudio/uni-ui": { + "version": "1.5.11", + "resolved": "https://registry.npmjs.org/@dcloudio/uni-ui/-/uni-ui-1.5.11.tgz", + "integrity": "sha512-DBtk046ofmeFd82zRI7d89SoEwrAxYzUN3WVPm1DIBkpLPG5F5QDNkHMnZGu2wNrMEmGBjBpUh3vqEY1L3jaMw==" + }, "dayjs": { "version": "1.11.19", "resolved": "https://registry.npmjs.org/dayjs/-/dayjs-1.11.19.tgz", diff --git a/package.json b/package.json index d888dab..bcc7116 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,6 @@ { "dependencies": { + "@dcloudio/uni-ui": "^1.5.11", "dayjs": "^1.11.19", "sm-crypto": "^0.3.13" } diff --git a/packageRc/pages/daiban/daiban.vue b/packageRc/pages/daiban/daiban.vue index bda6924..c6ee16a 100644 --- a/packageRc/pages/daiban/daiban.vue +++ b/packageRc/pages/daiban/daiban.vue @@ -1,7 +1,7 @@