diff --git a/package-lock.json b/package-lock.json index 04d6d4f..c12b440 100644 --- a/package-lock.json +++ b/package-lock.json @@ -26,9 +26,9 @@ "@tarojs/shared": "3.6.20", "@tarojs/taro": "3.6.20", "chinese2pinyin": "^1.0.1", + "dayjs": "^1.11.10", "graphql": "^16.8.1", "graphql-tag": "^2.12.6", - "moment": "^2.29.4", "pinia": "^2.1.7", "taro-icons": "^0.4.0", "tarojs-router-next": "^3.4.0", @@ -7951,6 +7951,11 @@ "node": ">=14" } }, + "node_modules/dayjs": { + "version": "1.11.10", + "resolved": "https://registry.npmjs.org/dayjs/-/dayjs-1.11.10.tgz", + "integrity": "sha512-vjAczensTgRcqDERK0SR2XMwsF/tSvnvlv6VcF2GIhg6Sx4yOIt/irsr1RDJsKiIyBzJDpCoXiWWq28MqH2cnQ==" + }, "node_modules/debug": { "version": "4.3.4", "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", @@ -13825,14 +13830,6 @@ "resolved": "https://registry.npmjs.org/mobile-detect/-/mobile-detect-1.4.5.tgz", "integrity": "sha512-yc0LhH6tItlvfLBugVUEtgawwFU2sIe+cSdmRJJCTMZ5GEJyLxNyC/NIOAOGk67Fa8GNpOttO3Xz/1bHpXFD/g==" }, - "node_modules/moment": { - "version": "2.30.1", - "resolved": "https://registry.npmjs.org/moment/-/moment-2.30.1.tgz", - "integrity": "sha512-uEmtNhbDOrWPFS+hdjFCBfy9f2YoyzRpwcl+DqpC6taX21FzsTLQVbMV/W7PzNSX6x/bhC1zA3c2UQ5NzH6how==", - "engines": { - "node": "*" - } - }, "node_modules/ms": { "version": "2.1.2", "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", diff --git a/package.json b/package.json index 0008284..c3d9c0e 100644 --- a/package.json +++ b/package.json @@ -53,9 +53,9 @@ "@tarojs/shared": "3.6.20", "@tarojs/taro": "3.6.20", "chinese2pinyin": "^1.0.1", + "dayjs": "^1.11.10", "graphql": "^16.8.1", "graphql-tag": "^2.12.6", - "moment": "^2.29.4", "pinia": "^2.1.7", "taro-icons": "^0.4.0", "tarojs-router-next": "^3.4.0", diff --git a/src/components/notification/index.vue b/src/components/notification/index.vue index 385912a..3ed6858 100644 --- a/src/components/notification/index.vue +++ b/src/components/notification/index.vue @@ -9,10 +9,8 @@ import { BjxHelper } from "../../utils"; const props = defineProps(['item']) const item = props.item.passRecords[0] const otherItems = props.item.passRecords.slice(1) -console.log(item.userName, otherItems.length , otherItems) +// console.log(item.userName, otherItems.length , otherItems) let lastName = BjxHelper.getBJXFirstChar(item.userName) -// let isVIP = props.isVip -// let todayPassJsonObject = JSON.parse(props.todayPassTime) diff --git a/src/pages/index/index.config.ts b/src/pages/index/index.config.ts index f64d3fc..1a6a18c 100644 --- a/src/pages/index/index.config.ts +++ b/src/pages/index/index.config.ts @@ -2,5 +2,5 @@ export default definePageConfig({ navigationBarTitleText: '', navigationStyle: 'custom', disableScroll: true, - usingComponents: {} + usingComponents: {}, }) diff --git a/src/pages/index/index.vue b/src/pages/index/index.vue index e0dd056..8858a5f 100644 --- a/src/pages/index/index.vue +++ b/src/pages/index/index.vue @@ -1,15 +1,9 @@