提交 a5c080fc 编写于 作者: 刘英杰's avatar 刘英杰

博物馆H5扫码

上级 6d479e6d
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*
node_modules
dist
dist-ssr
*.local
# Editor directories and files
.vscode/*
!.vscode/extensions.json
.idea
.DS_Store
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?
{
"recommendations": ["Vue.volar", "Vue.vscode-typescript-vue-plugin"]
}
# Vue 3 + Vite
This template should help get you started developing with Vue 3 in Vite. The template uses Vue 3 `<script setup>` SFCs, check out the [script setup docs](https://v3.vuejs.org/api/sfc-script-setup.html#sfc-script-setup) to learn more.
## Recommended IDE Setup
- [VS Code](https://code.visualstudio.com/) + [Volar](https://marketplace.visualstudio.com/items?itemName=Vue.volar) (and disable Vetur) + [TypeScript Vue Plugin (Volar)](https://marketplace.visualstudio.com/items?itemName=Vue.vscode-typescript-vue-plugin).
文件已添加
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8"/>
<link rel="icon" type="image/svg+xml" href="/vite.svg"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<title>琼台博物馆预约</title>
</head>
<body>
<div id="app"></div>
<script type="module" src="/src/main.js"></script>
</body>
</html>
{
"name": "wxlezduty",
"version": "0.0.0",
"lockfileVersion": 1,
"requires": true,
"dependencies": {
"@antfu/utils": {
"version": "0.7.6",
"resolved": "https://registry.npmmirror.com/@antfu/utils/-/utils-0.7.6.tgz",
"integrity": "sha512-pvFiLP2BeOKA/ZOS6jxx4XhKzdVLHDhGlFEaZ2flWWYf2xOqVniqpk38I04DFRyz+L0ASggl7SkItTc+ZLju4w==",
"dev": true
},
"@babel/parser": {
"version": "7.22.13",
"resolved": "https://registry.npmmirror.com/@babel/parser/-/parser-7.22.13.tgz",
"integrity": "sha512-3l6+4YOvc9wx7VlCSw4yQfcBo01ECA8TicQfbnCPuCEpRQrf+gTUyGdxNw+pyTUyywp6JRD1w0YQs9TpBXYlkw=="
},
"@babel/runtime": {
"version": "7.22.15",
"resolved": "https://registry.npmmirror.com/@babel/runtime/-/runtime-7.22.15.tgz",
"integrity": "sha512-T0O+aa+4w0u06iNmapipJXMV4HoUir03hpx3/YqXXhu9xim3w+dVphjFWl1OH8NbZHw5Lbm9k45drDkgq2VNNA==",
"requires": {
"regenerator-runtime": "^0.14.0"
}
},
"@esbuild/android-arm": {
"version": "0.18.20",
"resolved": "https://registry.npmmirror.com/@esbuild/android-arm/-/android-arm-0.18.20.tgz",
"integrity": "sha512-fyi7TDI/ijKKNZTUJAQqiG5T7YjJXgnzkURqmGj13C6dCqckZBLdl4h7bkhHt/t0WP+zO9/zwroDvANaOqO5Sw==",
"dev": true,
"optional": true
},
"@esbuild/android-arm64": {
"version": "0.18.20",
"resolved": "https://registry.npmmirror.com/@esbuild/android-arm64/-/android-arm64-0.18.20.tgz",
"integrity": "sha512-Nz4rJcchGDtENV0eMKUNa6L12zz2zBDXuhj/Vjh18zGqB44Bi7MBMSXjgunJgjRhCmKOjnPuZp4Mb6OKqtMHLQ==",
"dev": true,
"optional": true
},
"@esbuild/android-x64": {
"version": "0.18.20",
"resolved": "https://registry.npmmirror.com/@esbuild/android-x64/-/android-x64-0.18.20.tgz",
"integrity": "sha512-8GDdlePJA8D6zlZYJV/jnrRAi6rOiNaCC/JclcXpB+KIuvfBN4owLtgzY2bsxnx666XjJx2kDPUmnTtR8qKQUg==",
"dev": true,
"optional": true
},
"@esbuild/darwin-arm64": {
"version": "0.18.20",
"resolved": "https://registry.npmmirror.com/@esbuild/darwin-arm64/-/darwin-arm64-0.18.20.tgz",
"integrity": "sha512-bxRHW5kHU38zS2lPTPOyuyTm+S+eobPUnTNkdJEfAddYgEcll4xkT8DB9d2008DtTbl7uJag2HuE5NZAZgnNEA==",
"dev": true,
"optional": true
},
"@esbuild/darwin-x64": {
"version": "0.18.20",
"resolved": "https://registry.npmmirror.com/@esbuild/darwin-x64/-/darwin-x64-0.18.20.tgz",
"integrity": "sha512-pc5gxlMDxzm513qPGbCbDukOdsGtKhfxD1zJKXjCCcU7ju50O7MeAZ8c4krSJcOIJGFR+qx21yMMVYwiQvyTyQ==",
"dev": true,
"optional": true
},
"@esbuild/freebsd-arm64": {
"version": "0.18.20",
"resolved": "https://registry.npmmirror.com/@esbuild/freebsd-arm64/-/freebsd-arm64-0.18.20.tgz",
"integrity": "sha512-yqDQHy4QHevpMAaxhhIwYPMv1NECwOvIpGCZkECn8w2WFHXjEwrBn3CeNIYsibZ/iZEUemj++M26W3cNR5h+Tw==",
"dev": true,
"optional": true
},
"@esbuild/freebsd-x64": {
"version": "0.18.20",
"resolved": "https://registry.npmmirror.com/@esbuild/freebsd-x64/-/freebsd-x64-0.18.20.tgz",
"integrity": "sha512-tgWRPPuQsd3RmBZwarGVHZQvtzfEBOreNuxEMKFcd5DaDn2PbBxfwLcj4+aenoh7ctXcbXmOQIn8HI6mCSw5MQ==",
"dev": true,
"optional": true
},
"@esbuild/linux-arm": {
"version": "0.18.20",
"resolved": "https://registry.npmmirror.com/@esbuild/linux-arm/-/linux-arm-0.18.20.tgz",
"integrity": "sha512-/5bHkMWnq1EgKr1V+Ybz3s1hWXok7mDFUMQ4cG10AfW3wL02PSZi5kFpYKrptDsgb2WAJIvRcDm+qIvXf/apvg==",
"dev": true,
"optional": true
},
"@esbuild/linux-arm64": {
"version": "0.18.20",
"resolved": "https://registry.npmmirror.com/@esbuild/linux-arm64/-/linux-arm64-0.18.20.tgz",
"integrity": "sha512-2YbscF+UL7SQAVIpnWvYwM+3LskyDmPhe31pE7/aoTMFKKzIc9lLbyGUpmmb8a8AixOL61sQ/mFh3jEjHYFvdA==",
"dev": true,
"optional": true
},
"@esbuild/linux-ia32": {
"version": "0.18.20",
"resolved": "https://registry.npmmirror.com/@esbuild/linux-ia32/-/linux-ia32-0.18.20.tgz",
"integrity": "sha512-P4etWwq6IsReT0E1KHU40bOnzMHoH73aXp96Fs8TIT6z9Hu8G6+0SHSw9i2isWrD2nbx2qo5yUqACgdfVGx7TA==",
"dev": true,
"optional": true
},
"@esbuild/linux-loong64": {
"version": "0.18.20",
"resolved": "https://registry.npmmirror.com/@esbuild/linux-loong64/-/linux-loong64-0.18.20.tgz",
"integrity": "sha512-nXW8nqBTrOpDLPgPY9uV+/1DjxoQ7DoB2N8eocyq8I9XuqJ7BiAMDMf9n1xZM9TgW0J8zrquIb/A7s3BJv7rjg==",
"dev": true,
"optional": true
},
"@esbuild/linux-mips64el": {
"version": "0.18.20",
"resolved": "https://registry.npmmirror.com/@esbuild/linux-mips64el/-/linux-mips64el-0.18.20.tgz",
"integrity": "sha512-d5NeaXZcHp8PzYy5VnXV3VSd2D328Zb+9dEq5HE6bw6+N86JVPExrA6O68OPwobntbNJ0pzCpUFZTo3w0GyetQ==",
"dev": true,
"optional": true
},
"@esbuild/linux-ppc64": {
"version": "0.18.20",
"resolved": "https://registry.npmmirror.com/@esbuild/linux-ppc64/-/linux-ppc64-0.18.20.tgz",
"integrity": "sha512-WHPyeScRNcmANnLQkq6AfyXRFr5D6N2sKgkFo2FqguP44Nw2eyDlbTdZwd9GYk98DZG9QItIiTlFLHJHjxP3FA==",
"dev": true,
"optional": true
},
"@esbuild/linux-riscv64": {
"version": "0.18.20",
"resolved": "https://registry.npmmirror.com/@esbuild/linux-riscv64/-/linux-riscv64-0.18.20.tgz",
"integrity": "sha512-WSxo6h5ecI5XH34KC7w5veNnKkju3zBRLEQNY7mv5mtBmrP/MjNBCAlsM2u5hDBlS3NGcTQpoBvRzqBcRtpq1A==",
"dev": true,
"optional": true
},
"@esbuild/linux-s390x": {
"version": "0.18.20",
"resolved": "https://registry.npmmirror.com/@esbuild/linux-s390x/-/linux-s390x-0.18.20.tgz",
"integrity": "sha512-+8231GMs3mAEth6Ja1iK0a1sQ3ohfcpzpRLH8uuc5/KVDFneH6jtAJLFGafpzpMRO6DzJ6AvXKze9LfFMrIHVQ==",
"dev": true,
"optional": true
},
"@esbuild/linux-x64": {
"version": "0.18.20",
"resolved": "https://registry.npmmirror.com/@esbuild/linux-x64/-/linux-x64-0.18.20.tgz",
"integrity": "sha512-UYqiqemphJcNsFEskc73jQ7B9jgwjWrSayxawS6UVFZGWrAAtkzjxSqnoclCXxWtfwLdzU+vTpcNYhpn43uP1w==",
"dev": true,
"optional": true
},
"@esbuild/netbsd-x64": {
"version": "0.18.20",
"resolved": "https://registry.npmmirror.com/@esbuild/netbsd-x64/-/netbsd-x64-0.18.20.tgz",
"integrity": "sha512-iO1c++VP6xUBUmltHZoMtCUdPlnPGdBom6IrO4gyKPFFVBKioIImVooR5I83nTew5UOYrk3gIJhbZh8X44y06A==",
"dev": true,
"optional": true
},
"@esbuild/openbsd-x64": {
"version": "0.18.20",
"resolved": "https://registry.npmmirror.com/@esbuild/openbsd-x64/-/openbsd-x64-0.18.20.tgz",
"integrity": "sha512-e5e4YSsuQfX4cxcygw/UCPIEP6wbIL+se3sxPdCiMbFLBWu0eiZOJ7WoD+ptCLrmjZBK1Wk7I6D/I3NglUGOxg==",
"dev": true,
"optional": true
},
"@esbuild/sunos-x64": {
"version": "0.18.20",
"resolved": "https://registry.npmmirror.com/@esbuild/sunos-x64/-/sunos-x64-0.18.20.tgz",
"integrity": "sha512-kDbFRFp0YpTQVVrqUd5FTYmWo45zGaXe0X8E1G/LKFC0v8x0vWrhOWSLITcCn63lmZIxfOMXtCfti/RxN/0wnQ==",
"dev": true,
"optional": true
},
"@esbuild/win32-arm64": {
"version": "0.18.20",
"resolved": "https://registry.npmmirror.com/@esbuild/win32-arm64/-/win32-arm64-0.18.20.tgz",
"integrity": "sha512-ddYFR6ItYgoaq4v4JmQQaAI5s7npztfV4Ag6NrhiaW0RrnOXqBkgwZLofVTlq1daVTQNhtI5oieTvkRPfZrePg==",
"dev": true,
"optional": true
},
"@esbuild/win32-ia32": {
"version": "0.18.20",
"resolved": "https://registry.npmmirror.com/@esbuild/win32-ia32/-/win32-ia32-0.18.20.tgz",
"integrity": "sha512-Wv7QBi3ID/rROT08SABTS7eV4hX26sVduqDOTe1MvGMjNd3EjOz4b7zeexIR62GTIEKrfJXKL9LFxTYgkyeu7g==",
"dev": true,
"optional": true
},
"@esbuild/win32-x64": {
"version": "0.18.20",
"resolved": "https://registry.npmmirror.com/@esbuild/win32-x64/-/win32-x64-0.18.20.tgz",
"integrity": "sha512-kTdfRcSiDfQca/y9QIkng02avJ+NCaQvrMejlsB3RRv5sE9rRoeBPISaZpKxHELzRxZyLvNts1P27W3wV+8geQ==",
"dev": true,
"optional": true
},
"@jridgewell/sourcemap-codec": {
"version": "1.4.15",
"resolved": "https://registry.npmmirror.com/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.15.tgz",
"integrity": "sha512-eF2rxCRulEKXHTRiDrDy6erMYWqNw4LPdQ8UQA4huuxaQsVeRPFl2oM8oDGxMFhJUWZf9McpLtJasDDZb/Bpeg=="
},
"@nodelib/fs.scandir": {
"version": "2.1.5",
"resolved": "https://registry.npmmirror.com/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz",
"integrity": "sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==",
"dev": true,
"requires": {
"@nodelib/fs.stat": "2.0.5",
"run-parallel": "^1.1.9"
}
},
"@nodelib/fs.stat": {
"version": "2.0.5",
"resolved": "https://registry.npmmirror.com/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz",
"integrity": "sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==",
"dev": true
},
"@nodelib/fs.walk": {
"version": "1.2.8",
"resolved": "https://registry.npmmirror.com/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz",
"integrity": "sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==",
"dev": true,
"requires": {
"@nodelib/fs.scandir": "2.1.5",
"fastq": "^1.6.0"
}
},
"@rollup/pluginutils": {
"version": "5.0.4",
"resolved": "https://registry.npmmirror.com/@rollup/pluginutils/-/pluginutils-5.0.4.tgz",
"integrity": "sha512-0KJnIoRI8A+a1dqOYLxH8vBf8bphDmty5QvIm2hqm7oFCFYKCAZWWd2hXgMibaPsNDhI0AtpYfQZJG47pt/k4g==",
"dev": true,
"requires": {
"@types/estree": "^1.0.0",
"estree-walker": "^2.0.2",
"picomatch": "^2.3.1"
}
},
"@types/estree": {
"version": "1.0.1",
"resolved": "https://registry.npmmirror.com/@types/estree/-/estree-1.0.1.tgz",
"integrity": "sha512-LG4opVs2ANWZ1TJoKc937iMmNstM/d0ae1vNbnBvBhqCSezgVUOzcLCqbI5elV8Vy6WKwKjaqR+zO9VKirBBCA==",
"dev": true
},
"@vant/popperjs": {
"version": "1.3.0",
"resolved": "https://registry.npmmirror.com/@vant/popperjs/-/popperjs-1.3.0.tgz",
"integrity": "sha512-hB+czUG+aHtjhaEmCJDuXOep0YTZjdlRR+4MSmIFnkCQIxJaXLQdSsR90XWvAI2yvKUI7TCGqR8pQg2RtvkMHw=="
},
"@vant/use": {
"version": "1.6.0",
"resolved": "https://registry.npmmirror.com/@vant/use/-/use-1.6.0.tgz",
"integrity": "sha512-PHHxeAASgiOpSmMjceweIrv2AxDZIkWXyaczksMoWvKV2YAYEhoizRuk/xFnKF+emUIi46TsQ+rvlm/t2BBCfA=="
},
"@vitejs/plugin-vue": {
"version": "4.3.4",
"resolved": "https://registry.npmmirror.com/@vitejs/plugin-vue/-/plugin-vue-4.3.4.tgz",
"integrity": "sha512-ciXNIHKPriERBisHFBvnTbfKa6r9SAesOYXeGDzgegcvy9Q4xdScSHAmKbNT0M3O0S9LKhIf5/G+UYG4NnnzYw==",
"dev": true
},
"@vue/compiler-core": {
"version": "3.3.4",
"resolved": "https://registry.npmmirror.com/@vue/compiler-core/-/compiler-core-3.3.4.tgz",
"integrity": "sha512-cquyDNvZ6jTbf/+x+AgM2Arrp6G4Dzbb0R64jiG804HRMfRiFXWI6kqUVqZ6ZR0bQhIoQjB4+2bhNtVwndW15g==",
"requires": {
"@babel/parser": "^7.21.3",
"@vue/shared": "3.3.4",
"estree-walker": "^2.0.2",
"source-map-js": "^1.0.2"
}
},
"@vue/compiler-dom": {
"version": "3.3.4",
"resolved": "https://registry.npmmirror.com/@vue/compiler-dom/-/compiler-dom-3.3.4.tgz",
"integrity": "sha512-wyM+OjOVpuUukIq6p5+nwHYtj9cFroz9cwkfmP9O1nzH68BenTTv0u7/ndggT8cIQlnBeOo6sUT/gvHcIkLA5w==",
"requires": {
"@vue/compiler-core": "3.3.4",
"@vue/shared": "3.3.4"
}
},
"@vue/compiler-sfc": {
"version": "3.3.4",
"resolved": "https://registry.npmmirror.com/@vue/compiler-sfc/-/compiler-sfc-3.3.4.tgz",
"integrity": "sha512-6y/d8uw+5TkCuzBkgLS0v3lSM3hJDntFEiUORM11pQ/hKvkhSKZrXW6i69UyXlJQisJxuUEJKAWEqWbWsLeNKQ==",
"requires": {
"@babel/parser": "^7.20.15",
"@vue/compiler-core": "3.3.4",
"@vue/compiler-dom": "3.3.4",
"@vue/compiler-ssr": "3.3.4",
"@vue/reactivity-transform": "3.3.4",
"@vue/shared": "3.3.4",
"estree-walker": "^2.0.2",
"magic-string": "^0.30.0",
"postcss": "^8.1.10",
"source-map-js": "^1.0.2"
}
},
"@vue/compiler-ssr": {
"version": "3.3.4",
"resolved": "https://registry.npmmirror.com/@vue/compiler-ssr/-/compiler-ssr-3.3.4.tgz",
"integrity": "sha512-m0v6oKpup2nMSehwA6Uuu+j+wEwcy7QmwMkVNVfrV9P2qE5KshC6RwOCq8fjGS/Eak/uNb8AaWekfiXxbBB6gQ==",
"requires": {
"@vue/compiler-dom": "3.3.4",
"@vue/shared": "3.3.4"
}
},
"@vue/devtools-api": {
"version": "6.5.0",
"resolved": "https://registry.npmmirror.com/@vue/devtools-api/-/devtools-api-6.5.0.tgz",
"integrity": "sha512-o9KfBeaBmCKl10usN4crU53fYtC1r7jJwdGKjPT24t348rHxgfpZ0xL3Xm/gLUYnc0oTp8LAmrxOeLyu6tbk2Q=="
},
"@vue/reactivity": {
"version": "3.3.4",
"resolved": "https://registry.npmmirror.com/@vue/reactivity/-/reactivity-3.3.4.tgz",
"integrity": "sha512-kLTDLwd0B1jG08NBF3R5rqULtv/f8x3rOFByTDz4J53ttIQEDmALqKqXY0J+XQeN0aV2FBxY8nJDf88yvOPAqQ==",
"requires": {
"@vue/shared": "3.3.4"
}
},
"@vue/reactivity-transform": {
"version": "3.3.4",
"resolved": "https://registry.npmmirror.com/@vue/reactivity-transform/-/reactivity-transform-3.3.4.tgz",
"integrity": "sha512-MXgwjako4nu5WFLAjpBnCj/ieqcjE2aJBINUNQzkZQfzIZA4xn+0fV1tIYBJvvva3N3OvKGofRLvQIwEQPpaXw==",
"requires": {
"@babel/parser": "^7.20.15",
"@vue/compiler-core": "3.3.4",
"@vue/shared": "3.3.4",
"estree-walker": "^2.0.2",
"magic-string": "^0.30.0"
}
},
"@vue/runtime-core": {
"version": "3.3.4",
"resolved": "https://registry.npmmirror.com/@vue/runtime-core/-/runtime-core-3.3.4.tgz",
"integrity": "sha512-R+bqxMN6pWO7zGI4OMlmvePOdP2c93GsHFM/siJI7O2nxFRzj55pLwkpCedEY+bTMgp5miZ8CxfIZo3S+gFqvA==",
"requires": {
"@vue/reactivity": "3.3.4",
"@vue/shared": "3.3.4"
}
},
"@vue/runtime-dom": {
"version": "3.3.4",
"resolved": "https://registry.npmmirror.com/@vue/runtime-dom/-/runtime-dom-3.3.4.tgz",
"integrity": "sha512-Aj5bTJ3u5sFsUckRghsNjVTtxZQ1OyMWCr5dZRAPijF/0Vy4xEoRCwLyHXcj4D0UFbJ4lbx3gPTgg06K/GnPnQ==",
"requires": {
"@vue/runtime-core": "3.3.4",
"@vue/shared": "3.3.4",
"csstype": "^3.1.1"
}
},
"@vue/server-renderer": {
"version": "3.3.4",
"resolved": "https://registry.npmmirror.com/@vue/server-renderer/-/server-renderer-3.3.4.tgz",
"integrity": "sha512-Q6jDDzR23ViIb67v+vM1Dqntu+HUexQcsWKhhQa4ARVzxOY2HbC7QRW/ggkDBd5BU+uM1sV6XOAP0b216o34JQ==",
"requires": {
"@vue/compiler-ssr": "3.3.4",
"@vue/shared": "3.3.4"
}
},
"@vue/shared": {
"version": "3.3.4",
"resolved": "https://registry.npmmirror.com/@vue/shared/-/shared-3.3.4.tgz",
"integrity": "sha512-7OjdcV8vQ74eiz1TZLzZP4JwqM5fA94K6yntPS5Z25r9HDuGNzaGdgvwKYq6S+MxwF0TFRwe50fIR/MYnakdkQ=="
},
"acorn": {
"version": "8.10.0",
"resolved": "https://registry.npmmirror.com/acorn/-/acorn-8.10.0.tgz",
"integrity": "sha512-F0SAmZ8iUtS//m8DmCTA0jlh6TDKkHQyK6xc6V4KDTyZKA9dnvX9/3sRTVQrWm79glUAZbnmmNcdYwUIHWVybw==",
"dev": true
},
"animate.css": {
"version": "4.1.1",
"resolved": "https://registry.npmmirror.com/animate.css/-/animate.css-4.1.1.tgz",
"integrity": "sha512-+mRmCTv6SbCmtYJCN4faJMNFVNN5EuCTTprDTAo7YzIGji2KADmakjVA3+8mVDkZ2Bf09vayB35lSQIex2+QaQ=="
},
"anymatch": {
"version": "3.1.3",
"resolved": "https://registry.npmmirror.com/anymatch/-/anymatch-3.1.3.tgz",
"integrity": "sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==",
"dev": true,
"requires": {
"normalize-path": "^3.0.0",
"picomatch": "^2.0.4"
}
},
"asynckit": {
"version": "0.4.0",
"resolved": "https://registry.npmmirror.com/asynckit/-/asynckit-0.4.0.tgz",
"integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q=="
},
"axios": {
"version": "1.5.0",
"resolved": "https://registry.npmmirror.com/axios/-/axios-1.5.0.tgz",
"integrity": "sha512-D4DdjDo5CY50Qms0qGQTTw6Q44jl7zRwY7bthds06pUGfChBCTcQs+N743eFWGEd6pRTMd6A+I87aWyFV5wiZQ==",
"requires": {
"follow-redirects": "^1.15.0",
"form-data": "^4.0.0",
"proxy-from-env": "^1.1.0"
}
},
"balanced-match": {
"version": "1.0.2",
"resolved": "https://registry.npmmirror.com/balanced-match/-/balanced-match-1.0.2.tgz",
"integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==",
"dev": true
},
"binary-extensions": {
"version": "2.2.0",
"resolved": "https://registry.npmmirror.com/binary-extensions/-/binary-extensions-2.2.0.tgz",
"integrity": "sha512-jDctJ/IVQbZoJykoeHbhXpOlNBqGNcwXJKJog42E5HDPUwQTSdjCHdihjj0DlnheQ7blbT6dHOafNAiS8ooQKA==",
"dev": true
},
"brace-expansion": {
"version": "2.0.1",
"resolved": "https://registry.npmmirror.com/brace-expansion/-/brace-expansion-2.0.1.tgz",
"integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==",
"dev": true,
"requires": {
"balanced-match": "^1.0.0"
}
},
"braces": {
"version": "3.0.2",
"resolved": "https://registry.npmmirror.com/braces/-/braces-3.0.2.tgz",
"integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==",
"dev": true,
"requires": {
"fill-range": "^7.0.1"
}
},
"chokidar": {
"version": "3.5.3",
"resolved": "https://registry.npmmirror.com/chokidar/-/chokidar-3.5.3.tgz",
"integrity": "sha512-Dr3sfKRP6oTcjf2JmUmFJfeVMvXBdegxB0iVQ5eb2V10uFJUCAS8OByZdVAyVb8xXNz3GjjTgj9kLWsZTqE6kw==",
"dev": true,
"requires": {
"anymatch": "~3.1.2",
"braces": "~3.0.2",
"fsevents": "~2.3.2",
"glob-parent": "~5.1.2",
"is-binary-path": "~2.1.0",
"is-glob": "~4.0.1",
"normalize-path": "~3.0.0",
"readdirp": "~3.6.0"
}
},
"combined-stream": {
"version": "1.0.8",
"resolved": "https://registry.npmmirror.com/combined-stream/-/combined-stream-1.0.8.tgz",
"integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==",
"requires": {
"delayed-stream": "~1.0.0"
}
},
"copy-text-to-clipboard": {
"version": "3.2.0",
"resolved": "https://registry.npmmirror.com/copy-text-to-clipboard/-/copy-text-to-clipboard-3.2.0.tgz",
"integrity": "sha512-RnJFp1XR/LOBDckxTib5Qjr/PMfkatD0MUCQgdpqS8MdKiNUzBjAQBEN6oUy+jW7LI93BBG3DtMB2KOOKpGs2Q=="
},
"core-js": {
"version": "3.32.2",
"resolved": "https://registry.npmmirror.com/core-js/-/core-js-3.32.2.tgz",
"integrity": "sha512-pxXSw1mYZPDGvTQqEc5vgIb83jGQKFGYWY76z4a7weZXUolw3G+OvpZqSRcfYOoOVUQJYEPsWeQK8pKEnUtWxQ=="
},
"csstype": {
"version": "3.1.2",
"resolved": "https://registry.npmmirror.com/csstype/-/csstype-3.1.2.tgz",
"integrity": "sha512-I7K1Uu0MBPzaFKg4nI5Q7Vs2t+3gWWW648spaF+Rg7pI9ds18Ugn+lvg4SHczUdKlHI5LWBXyqfS8+DufyBsgQ=="
},
"dayjs": {
"version": "1.11.9",
"resolved": "https://registry.npmmirror.com/dayjs/-/dayjs-1.11.9.tgz",
"integrity": "sha512-QvzAURSbQ0pKdIye2txOzNaHmxtUBXerpY0FJsFXUMKbIZeFm5ht1LS/jFsrncjnmtv8HsG0W2g6c0zUjZWmpA=="
},
"debug": {
"version": "4.3.4",
"resolved": "https://registry.npmmirror.com/debug/-/debug-4.3.4.tgz",
"integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==",
"dev": true,
"requires": {
"ms": "2.1.2"
}
},
"delayed-stream": {
"version": "1.0.0",
"resolved": "https://registry.npmmirror.com/delayed-stream/-/delayed-stream-1.0.0.tgz",
"integrity": "sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ=="
},
"esbuild": {
"version": "0.18.20",
"resolved": "https://registry.npmmirror.com/esbuild/-/esbuild-0.18.20.tgz",
"integrity": "sha512-ceqxoedUrcayh7Y7ZX6NdbbDzGROiyVBgC4PriJThBKSVPWnnFHZAkfI1lJT8QFkOwH4qOS2SJkS4wvpGl8BpA==",
"dev": true,
"requires": {
"@esbuild/android-arm": "0.18.20",
"@esbuild/android-arm64": "0.18.20",
"@esbuild/android-x64": "0.18.20",
"@esbuild/darwin-arm64": "0.18.20",
"@esbuild/darwin-x64": "0.18.20",
"@esbuild/freebsd-arm64": "0.18.20",
"@esbuild/freebsd-x64": "0.18.20",
"@esbuild/linux-arm": "0.18.20",
"@esbuild/linux-arm64": "0.18.20",
"@esbuild/linux-ia32": "0.18.20",
"@esbuild/linux-loong64": "0.18.20",
"@esbuild/linux-mips64el": "0.18.20",
"@esbuild/linux-ppc64": "0.18.20",
"@esbuild/linux-riscv64": "0.18.20",
"@esbuild/linux-s390x": "0.18.20",
"@esbuild/linux-x64": "0.18.20",
"@esbuild/netbsd-x64": "0.18.20",
"@esbuild/openbsd-x64": "0.18.20",
"@esbuild/sunos-x64": "0.18.20",
"@esbuild/win32-arm64": "0.18.20",
"@esbuild/win32-ia32": "0.18.20",
"@esbuild/win32-x64": "0.18.20"
}
},
"estree-walker": {
"version": "2.0.2",
"resolved": "https://registry.npmmirror.com/estree-walker/-/estree-walker-2.0.2.tgz",
"integrity": "sha512-Rfkk/Mp/DL7JVje3u18FxFujQlTNR2q6QfMSMB7AvCBx91NGj/ba3kCfza0f6dVDbw7YlRf/nDrn7pQrCCyQ/w=="
},
"fast-glob": {
"version": "3.3.1",
"resolved": "https://registry.npmmirror.com/fast-glob/-/fast-glob-3.3.1.tgz",
"integrity": "sha512-kNFPyjhh5cKjrUltxs+wFx+ZkbRaxxmZ+X0ZU31SOsxCEtP9VPgtq2teZw1DebupL5GmDaNQ6yKMMVcM41iqDg==",
"dev": true,
"requires": {
"@nodelib/fs.stat": "^2.0.2",
"@nodelib/fs.walk": "^1.2.3",
"glob-parent": "^5.1.2",
"merge2": "^1.3.0",
"micromatch": "^4.0.4"
}
},
"fastq": {
"version": "1.15.0",
"resolved": "https://registry.npmmirror.com/fastq/-/fastq-1.15.0.tgz",
"integrity": "sha512-wBrocU2LCXXa+lWBt8RoIRD89Fi8OdABODa/kEnyeyjS5aZO5/GNvI5sEINADqP/h8M29UHTHUb53sUu5Ihqdw==",
"dev": true,
"requires": {
"reusify": "^1.0.4"
}
},
"fill-range": {
"version": "7.0.1",
"resolved": "https://registry.npmmirror.com/fill-range/-/fill-range-7.0.1.tgz",
"integrity": "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==",
"dev": true,
"requires": {
"to-regex-range": "^5.0.1"
}
},
"follow-redirects": {
"version": "1.15.2",
"resolved": "https://registry.npmmirror.com/follow-redirects/-/follow-redirects-1.15.2.tgz",
"integrity": "sha512-VQLG33o04KaQ8uYi2tVNbdrWp1QWxNNea+nmIB4EVM28v0hmP17z7aG1+wAkNzVq4KeXTq3221ye5qTJP91JwA=="
},
"form-data": {
"version": "4.0.0",
"resolved": "https://registry.npmmirror.com/form-data/-/form-data-4.0.0.tgz",
"integrity": "sha512-ETEklSGi5t0QMZuiXoA/Q6vcnxcLQP5vdugSpuAyi6SVGi2clPPp+xgEhuMaHC+zGgn31Kd235W35f7Hykkaww==",
"requires": {
"asynckit": "^0.4.0",
"combined-stream": "^1.0.8",
"mime-types": "^2.1.12"
}
},
"fsevents": {
"version": "2.3.3",
"resolved": "https://registry.npmmirror.com/fsevents/-/fsevents-2.3.3.tgz",
"integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==",
"dev": true,
"optional": true
},
"function-bind": {
"version": "1.1.1",
"resolved": "https://registry.npmmirror.com/function-bind/-/function-bind-1.1.1.tgz",
"integrity": "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==",
"dev": true
},
"glob-parent": {
"version": "5.1.2",
"resolved": "https://registry.npmmirror.com/glob-parent/-/glob-parent-5.1.2.tgz",
"integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==",
"dev": true,
"requires": {
"is-glob": "^4.0.1"
}
},
"has": {
"version": "1.0.3",
"resolved": "https://registry.npmmirror.com/has/-/has-1.0.3.tgz",
"integrity": "sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw==",
"dev": true,
"requires": {
"function-bind": "^1.1.1"
}
},
"is-binary-path": {
"version": "2.1.0",
"resolved": "https://registry.npmmirror.com/is-binary-path/-/is-binary-path-2.1.0.tgz",
"integrity": "sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==",
"dev": true,
"requires": {
"binary-extensions": "^2.0.0"
}
},
"is-core-module": {
"version": "2.13.0",
"resolved": "https://registry.npmmirror.com/is-core-module/-/is-core-module-2.13.0.tgz",
"integrity": "sha512-Z7dk6Qo8pOCp3l4tsX2C5ZVas4V+UxwQodwZhLopL91TX8UyyHEXafPcyoeeWuLrwzHcr3igO78wNLwHJHsMCQ==",
"dev": true,
"requires": {
"has": "^1.0.3"
}
},
"is-extglob": {
"version": "2.1.1",
"resolved": "https://registry.npmmirror.com/is-extglob/-/is-extglob-2.1.1.tgz",
"integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==",
"dev": true
},
"is-glob": {
"version": "4.0.3",
"resolved": "https://registry.npmmirror.com/is-glob/-/is-glob-4.0.3.tgz",
"integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==",
"dev": true,
"requires": {
"is-extglob": "^2.1.1"
}
},
"is-number": {
"version": "7.0.0",
"resolved": "https://registry.npmmirror.com/is-number/-/is-number-7.0.0.tgz",
"integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==",
"dev": true
},
"js-cookie": {
"version": "3.0.5",
"resolved": "https://registry.npmmirror.com/js-cookie/-/js-cookie-3.0.5.tgz",
"integrity": "sha512-cEiJEAEoIbWfCZYKWhVwFuvPX1gETRYPw6LlaTKoxD3s2AkXzkCjnp6h0V77ozyqj0jakteJ4YqDJT830+lVGw=="
},
"local-pkg": {
"version": "0.4.3",
"resolved": "https://registry.npmmirror.com/local-pkg/-/local-pkg-0.4.3.tgz",
"integrity": "sha512-SFppqq5p42fe2qcZQqqEOiVRXl+WCP1MdT6k7BDEW1j++sp5fIY+/fdRQitvKgB5BrBcmrs5m/L0v2FrU5MY1g==",
"dev": true
},
"lodash": {
"version": "4.17.21",
"resolved": "https://registry.npmmirror.com/lodash/-/lodash-4.17.21.tgz",
"integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg=="
},
"magic-string": {
"version": "0.30.3",
"resolved": "https://registry.npmmirror.com/magic-string/-/magic-string-0.30.3.tgz",
"integrity": "sha512-B7xGbll2fG/VjP+SWg4sX3JynwIU0mjoTc6MPpKNuIvftk6u6vqhDnk1R80b8C2GBR6ywqy+1DcKBrevBg+bmw==",
"requires": {
"@jridgewell/sourcemap-codec": "^1.4.15"
}
},
"merge2": {
"version": "1.4.1",
"resolved": "https://registry.npmmirror.com/merge2/-/merge2-1.4.1.tgz",
"integrity": "sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==",
"dev": true
},
"micromatch": {
"version": "4.0.5",
"resolved": "https://registry.npmmirror.com/micromatch/-/micromatch-4.0.5.tgz",
"integrity": "sha512-DMy+ERcEW2q8Z2Po+WNXuw3c5YaUSFjAO5GsJqfEl7UjvtIuFKO6ZrKvcItdy98dwFI2N1tg3zNIdKaQT+aNdA==",
"dev": true,
"requires": {
"braces": "^3.0.2",
"picomatch": "^2.3.1"
}
},
"mime-db": {
"version": "1.52.0",
"resolved": "https://registry.npmmirror.com/mime-db/-/mime-db-1.52.0.tgz",
"integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg=="
},
"mime-types": {
"version": "2.1.35",
"resolved": "https://registry.npmmirror.com/mime-types/-/mime-types-2.1.35.tgz",
"integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==",
"requires": {
"mime-db": "1.52.0"
}
},
"minimatch": {
"version": "9.0.3",
"resolved": "https://registry.npmmirror.com/minimatch/-/minimatch-9.0.3.tgz",
"integrity": "sha512-RHiac9mvaRw0x3AYRgDC1CxAP7HTcNrrECeA8YYJeWnpo+2Q5CegtZjaotWTWxDG3UeGA1coE05iH1mPjT/2mg==",
"dev": true,
"requires": {
"brace-expansion": "^2.0.1"
}
},
"ms": {
"version": "2.1.2",
"resolved": "https://registry.npmmirror.com/ms/-/ms-2.1.2.tgz",
"integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==",
"dev": true
},
"mutation-observer": {
"version": "1.0.3",
"resolved": "https://registry.npmmirror.com/mutation-observer/-/mutation-observer-1.0.3.tgz",
"integrity": "sha512-M/O/4rF2h776hV7qGMZUH3utZLO/jK7p8rnNgGkjKUw8zCGjRQPxB8z6+5l8+VjRUQ3dNYu4vjqXYLr+U8ZVNA=="
},
"nanoid": {
"version": "3.3.6",
"resolved": "https://registry.npmmirror.com/nanoid/-/nanoid-3.3.6.tgz",
"integrity": "sha512-BGcqMMJuToF7i1rt+2PWSNVnWIkGCU78jBG3RxO/bZlnZPK2Cmi2QaffxGO/2RvWi9sL+FAiRiXMgsyxQ1DIDA=="
},
"normalize-path": {
"version": "3.0.0",
"resolved": "https://registry.npmmirror.com/normalize-path/-/normalize-path-3.0.0.tgz",
"integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==",
"dev": true
},
"path-parse": {
"version": "1.0.7",
"resolved": "https://registry.npmmirror.com/path-parse/-/path-parse-1.0.7.tgz",
"integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==",
"dev": true
},
"picocolors": {
"version": "1.0.0",
"resolved": "https://registry.npmmirror.com/picocolors/-/picocolors-1.0.0.tgz",
"integrity": "sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ=="
},
"picomatch": {
"version": "2.3.1",
"resolved": "https://registry.npmmirror.com/picomatch/-/picomatch-2.3.1.tgz",
"integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==",
"dev": true
},
"postcss": {
"version": "8.4.28",
"resolved": "https://registry.npmmirror.com/postcss/-/postcss-8.4.28.tgz",
"integrity": "sha512-Z7V5j0cq8oEKyejIKfpD8b4eBy9cwW2JWPk0+fB1HOAMsfHbnAXLLS+PfVWlzMSLQaWttKDt607I0XHmpE67Vw==",
"requires": {
"nanoid": "^3.3.6",
"picocolors": "^1.0.0",
"source-map-js": "^1.0.2"
}
},
"proxy-from-env": {
"version": "1.1.0",
"resolved": "https://registry.npmmirror.com/proxy-from-env/-/proxy-from-env-1.1.0.tgz",
"integrity": "sha512-D+zkORCbA9f1tdWRK0RaCR3GPv50cMxcrz4X8k5LTSUD1Dkw47mKJEZQNunItRTkWwgtaUSo1RVFRIG9ZXiFYg=="
},
"queue-microtask": {
"version": "1.2.3",
"resolved": "https://registry.npmmirror.com/queue-microtask/-/queue-microtask-1.2.3.tgz",
"integrity": "sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==",
"dev": true
},
"readdirp": {
"version": "3.6.0",
"resolved": "https://registry.npmmirror.com/readdirp/-/readdirp-3.6.0.tgz",
"integrity": "sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==",
"dev": true,
"requires": {
"picomatch": "^2.2.1"
}
},
"regenerator-runtime": {
"version": "0.14.0",
"resolved": "https://registry.npmmirror.com/regenerator-runtime/-/regenerator-runtime-0.14.0.tgz",
"integrity": "sha512-srw17NI0TUWHuGa5CFGGmhfNIeja30WMBfbslPNhf6JrqQlLN5gcrvig1oqPxiVaXb0oW0XRKtH6Nngs5lKCIA=="
},
"resolve": {
"version": "1.22.4",
"resolved": "https://registry.npmmirror.com/resolve/-/resolve-1.22.4.tgz",
"integrity": "sha512-PXNdCiPqDqeUou+w1C2eTQbNfxKSuMxqTCuvlmmMsk1NWHL5fRrhY6Pl0qEYYc6+QqGClco1Qj8XnjPego4wfg==",
"dev": true,
"requires": {
"is-core-module": "^2.13.0",
"path-parse": "^1.0.7",
"supports-preserve-symlinks-flag": "^1.0.0"
}
},
"reusify": {
"version": "1.0.4",
"resolved": "https://registry.npmmirror.com/reusify/-/reusify-1.0.4.tgz",
"integrity": "sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw==",
"dev": true
},
"rollup": {
"version": "3.28.1",
"resolved": "https://registry.npmmirror.com/rollup/-/rollup-3.28.1.tgz",
"integrity": "sha512-R9OMQmIHJm9znrU3m3cpE8uhN0fGdXiawME7aZIpQqvpS/85+Vt1Hq1/yVIcYfOmaQiHjvXkQAoJukvLpau6Yw==",
"dev": true,
"requires": {
"fsevents": "~2.3.2"
}
},
"run-parallel": {
"version": "1.2.0",
"resolved": "https://registry.npmmirror.com/run-parallel/-/run-parallel-1.2.0.tgz",
"integrity": "sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==",
"dev": true,
"requires": {
"queue-microtask": "^1.2.2"
}
},
"source-map-js": {
"version": "1.0.2",
"resolved": "https://registry.npmmirror.com/source-map-js/-/source-map-js-1.0.2.tgz",
"integrity": "sha512-R0XvVJ9WusLiqTCEiGCmICCMplcCkIwwR11mOSD9CR5u+IXYdiseeEuXCVAjS54zqwkLcPNnmU4OeJ6tUrWhDw=="
},
"supports-preserve-symlinks-flag": {
"version": "1.0.0",
"resolved": "https://registry.npmmirror.com/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz",
"integrity": "sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==",
"dev": true
},
"to-regex-range": {
"version": "5.0.1",
"resolved": "https://registry.npmmirror.com/to-regex-range/-/to-regex-range-5.0.1.tgz",
"integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==",
"dev": true,
"requires": {
"is-number": "^7.0.0"
}
},
"unplugin": {
"version": "1.4.0",
"resolved": "https://registry.npmmirror.com/unplugin/-/unplugin-1.4.0.tgz",
"integrity": "sha512-5x4eIEL6WgbzqGtF9UV8VEC/ehKptPXDS6L2b0mv4FRMkJxRtjaJfOWDd6a8+kYbqsjklix7yWP0N3SUepjXcg==",
"dev": true,
"requires": {
"acorn": "^8.9.0",
"chokidar": "^3.5.3",
"webpack-sources": "^3.2.3",
"webpack-virtual-modules": "^0.5.0"
}
},
"unplugin-vue-components": {
"version": "0.25.1",
"resolved": "https://registry.npmmirror.com/unplugin-vue-components/-/unplugin-vue-components-0.25.1.tgz",
"integrity": "sha512-kzS2ZHVMaGU2XEO2keYQcMjNZkanDSGDdY96uQT9EPe+wqSZwwgbFfKVJ5ti0+8rGAcKHColwKUvctBhq2LJ3A==",
"dev": true,
"requires": {
"@antfu/utils": "^0.7.4",
"@rollup/pluginutils": "^5.0.2",
"chokidar": "^3.5.3",
"debug": "^4.3.4",
"fast-glob": "^3.2.12",
"local-pkg": "^0.4.3",
"magic-string": "^0.30.0",
"minimatch": "^9.0.1",
"resolve": "^1.22.2",
"unplugin": "^1.3.1"
}
},
"vant": {
"version": "4.6.6",
"resolved": "https://registry.npmmirror.com/vant/-/vant-4.6.6.tgz",
"integrity": "sha512-UgBfz4d1Ej483WAp6T3HrFZQNKpRW0PoT9mDXqw8JFUuiHgpdeAMyAwuRaYdQiUy4cFTVZ25a/+xyGCTMdvYaA==",
"requires": {
"@vant/popperjs": "^1.3.0",
"@vant/use": "^1.5.1",
"@vue/shared": "^3.0.0"
}
},
"vconsole": {
"version": "3.15.1",
"resolved": "https://registry.npmmirror.com/vconsole/-/vconsole-3.15.1.tgz",
"integrity": "sha512-KH8XLdrq9T5YHJO/ixrjivHfmF2PC2CdVoK6RWZB4yftMykYIaXY1mxZYAic70vADM54kpMQF+dYmvl5NRNy1g==",
"requires": {
"@babel/runtime": "^7.17.2",
"copy-text-to-clipboard": "^3.0.1",
"core-js": "^3.11.0",
"mutation-observer": "^1.0.3"
}
},
"vite": {
"version": "4.4.9",
"resolved": "https://registry.npmmirror.com/vite/-/vite-4.4.9.tgz",
"integrity": "sha512-2mbUn2LlUmNASWwSCNSJ/EG2HuSRTnVNaydp6vMCm5VIqJsjMfbIWtbH2kDuwUVW5mMUKKZvGPX/rqeqVvv1XA==",
"dev": true,
"requires": {
"esbuild": "^0.18.10",
"fsevents": "~2.3.2",
"postcss": "^8.4.27",
"rollup": "^3.27.1"
}
},
"vue": {
"version": "3.3.4",
"resolved": "https://registry.npmmirror.com/vue/-/vue-3.3.4.tgz",
"integrity": "sha512-VTyEYn3yvIeY1Py0WaYGZsXnz3y5UnGi62GjVEqvEGPl6nxbOrCXbVOTQWBEJUqAyTUk2uJ5JLVnYJ6ZzGbrSw==",
"requires": {
"@vue/compiler-dom": "3.3.4",
"@vue/compiler-sfc": "3.3.4",
"@vue/runtime-dom": "3.3.4",
"@vue/server-renderer": "3.3.4",
"@vue/shared": "3.3.4"
}
},
"vue-cookies": {
"version": "1.8.3",
"resolved": "https://registry.npmmirror.com/vue-cookies/-/vue-cookies-1.8.3.tgz",
"integrity": "sha512-VBRsyRMVdahBgFfh389TMHPmDdr4URDJNMk4FKSCfuNITs7+jitBDhwyL4RJd3WUsfOYNNjPAkfbehyH9AFuoA=="
},
"vue-router": {
"version": "4.2.4",
"resolved": "https://registry.npmmirror.com/vue-router/-/vue-router-4.2.4.tgz",
"integrity": "sha512-9PISkmaCO02OzPVOMq2w82ilty6+xJmQrarYZDkjZBfl4RvYAlt4PKnEX21oW4KTtWfa9OuO/b3qk1Od3AEdCQ==",
"requires": {
"@vue/devtools-api": "^6.5.0"
}
},
"webpack-sources": {
"version": "3.2.3",
"resolved": "https://registry.npmmirror.com/webpack-sources/-/webpack-sources-3.2.3.tgz",
"integrity": "sha512-/DyMEOrDgLKKIG0fmvtz+4dUX/3Ghozwgm6iPp8KRhvn+eQf9+Q7GWxVNMk3+uCPWfdXYC4ExGBckIXdFEfH1w==",
"dev": true
},
"webpack-virtual-modules": {
"version": "0.5.0",
"resolved": "https://registry.npmmirror.com/webpack-virtual-modules/-/webpack-virtual-modules-0.5.0.tgz",
"integrity": "sha512-kyDivFZ7ZM0BVOUteVbDFhlRt7Ah/CSPwJdi8hBpkK7QLumUqdLtVfm/PX/hkcnrvr0i77fO5+TjZ94Pe+C9iw==",
"dev": true
},
"weixin-js-sdk": {
"version": "1.6.0",
"resolved": "https://registry.npmmirror.com/weixin-js-sdk/-/weixin-js-sdk-1.6.0.tgz",
"integrity": "sha512-3IYQH7aalJGFJrwdT3epvTdR1MboMiH7vIZ5BRL2eYOJ12BNah7csoMkmSZzkq1+l92sSq29XdTCVjCJoK2sBQ=="
}
}
}
{
"name": "wxlezduty",
"private": true,
"version": "0.0.0",
"type": "module",
"scripts": {
"dev": "vite",
"build": "vite build",
"preview": "vite preview"
},
"dependencies": {
"animate.css": "^4.1.1",
"axios": "^1.5.0",
"dayjs": "^1.11.9",
"js-cookie": "^3.0.5",
"lodash": "^4.17.21",
"vant": "^4.6.6",
"vconsole": "^3.15.1",
"vue": "^3.3.4",
"vue-cookies": "^1.8.3",
"vue-router": "^4.2.4",
"weixin-js-sdk": "^1.6.0"
},
"devDependencies": {
"@vitejs/plugin-vue": "^4.2.3",
"unplugin-vue-components": "^0.25.1",
"vite": "^4.4.5"
}
}
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" class="iconify iconify--logos" width="31.88" height="32" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 257"><defs><linearGradient id="IconifyId1813088fe1fbc01fb466" x1="-.828%" x2="57.636%" y1="7.652%" y2="78.411%"><stop offset="0%" stop-color="#41D1FF"></stop><stop offset="100%" stop-color="#BD34FE"></stop></linearGradient><linearGradient id="IconifyId1813088fe1fbc01fb467" x1="43.376%" x2="50.316%" y1="2.242%" y2="89.03%"><stop offset="0%" stop-color="#FFEA83"></stop><stop offset="8.333%" stop-color="#FFDD35"></stop><stop offset="100%" stop-color="#FFA800"></stop></linearGradient></defs><path fill="url(#IconifyId1813088fe1fbc01fb466)" d="M255.153 37.938L134.897 252.976c-2.483 4.44-8.862 4.466-11.382.048L.875 37.958c-2.746-4.814 1.371-10.646 6.827-9.67l120.385 21.517a6.537 6.537 0 0 0 2.322-.004l117.867-21.483c5.438-.991 9.574 4.796 6.877 9.62Z"></path><path fill="url(#IconifyId1813088fe1fbc01fb467)" d="M185.432.063L96.44 17.501a3.268 3.268 0 0 0-2.634 3.014l-5.474 92.456a3.268 3.268 0 0 0 3.997 3.378l24.777-5.718c2.318-.535 4.413 1.507 3.936 3.838l-7.361 36.047c-.495 2.426 1.782 4.5 4.151 3.78l15.304-4.649c2.372-.72 4.652 1.36 4.15 3.788l-11.698 56.621c-.732 3.542 3.979 5.473 5.943 2.437l1.313-2.028l72.516-144.72c1.215-2.423-.88-5.186-3.54-4.672l-25.505 4.922c-2.396.462-4.435-1.77-3.759-4.114l16.646-57.705c.677-2.35-1.37-4.583-3.769-4.113Z"></path></svg>
\ No newline at end of file
<script setup>
</script>
<template>
<router-view></router-view>
</template>
<style scoped>
@import "style.css";
body {
margin: 0;
}
</style>
import {requestGet, requestPost} from '../util/request.js'
import axios from 'axios'
/**
* 单点
* **/
export function GetWxConfig(data) {
return requestGet(
`${window.location.protocol + "//" + window.location.host}/wx/eicrs/api/GetJSSDK/GetWxConfig?url=${data.url}`,
data
);
}
export function QRCodeVerify(data) {
return requestGet(
`/api/AccessRecord/QRCodeVerify?id=${data.id}`,
data
);
}
export function SSOPCNew(data) {
//单点
return requestGet(`/api/Login/SSOPCNew?token=${data.token}`, data)
// axios.get(`/api/Login/api/Login/SSOPC`,data)
}
export function SSOPC(data) {
//单点
return requestGet(`/api/Login/api/Login/SSOPC?token=${data.token}`, data)
// axios.get(`/api/Login/api/Login/SSOPC`,data)
}
export function GetTokenInfo(data) {
//获取用户信息
return requestGet(`/api/Login/api/Login/GetTokenInfo`, data)
}
export function RefreshToken(data) {
//刷新token
return requestGet(`/api/Login/api/Login/RefreshToken`, data)
}
export function SSOPCWX(data) {
//刷新token
return requestGet(`/api/Login/api/Login/SSOPCWX?&code=${data.code}&sign=${data.sign}&timestamp=${data.timestamp}`, data)
}
/**
* 值班列表
*
* */
export function GetWatchList(data) {
//获取值班列表
return requestPost('/api/Watch/api/Watch/GetWatchList', data)
}
export function GetWatchHourTime(data) {
//获取值班时段
return requestGet(`/api/Watch/api/Watch/GetWatchHourTime`, data)
}
export function GetWatchTypeSelect(data) {
//获取值班类型
return requestGet(`/api/Watch/api/Watch/GetWatchTypeSelect`, data)
}
export function GetWatchDepSelect(data) {
//获取值班部门
return requestGet(`/api/Watch/api/Watch/GetWatchDepSelect`, data)
}
export function GetWatchCampusSelect(data) {
//获取校区
return requestGet(`/api/Watch/api/Watch/GetWatchCampusSelect`, data)
}
export function GetWatchInfo(data) {
//获取值班详情
return requestGet(`/api/Watch/api/Watch/GetWatchInfo?id${data.id}`, data)
}
/***
*
* 签到列表
*
*
* */
export function GetSignRecordList(data) {
//获取签到列表
return requestPost(`/api/SignRecord/api/SignRecord/GetSignRecordList`, data)
}
export function SignInOrOut(data) {
//批量签到签退
return requestPost(`/api/SignRecord/api/SignRecord/SignInOrOut`, data)
}
export function SignLogSave(data) {
//填写日志
return requestGet(`/api/SignRecord/api/SignRecord/SignLogSave?signId=${data.signId}&content=${data.content}`, data)
}
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" class="iconify iconify--logos" width="37.07" height="36" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 198"><path fill="#41B883" d="M204.8 0H256L128 220.8L0 0h97.92L128 51.2L157.44 0h47.36Z"></path><path fill="#41B883" d="m0 0l128 220.8L256 0h-51.2L128 132.48L50.56 0H0Z"></path><path fill="#35495E" d="M50.56 0L128 133.12L204.8 0h-47.36L128 51.2L97.92 0H50.56Z"></path></svg>
\ No newline at end of file
<template>
<van-button type="primary">主要按钮</van-button>
<van-button type="success">成功按钮</van-button>
<van-button type="default">默认按钮</van-button>
<van-button type="warning">警告按钮</van-button>
<van-button type="danger">危险按钮</van-button>
</template>
<script setup>
</script>
import {createApp} from 'vue'
import './style.css'
import App from './App.vue'
import router from "./router/index.js";
import 'animate.css' //引入
import VueCookies from 'vue-cookies'
import Vconsole from 'vconsole'
import 'vant/lib/index.css';
let vConsole = new Vconsole()
const app = createApp(App)
app.config.globalProperties.$cookies = VueCookies
app.use(router)
// app.use(vConsole)
app.mount('#app')
<template>
<van-nav-bar
left-text="返回"
left-arrow
@click-left="onClickLeft"
></van-nav-bar>
<van-empty style="width: 100%;height: 100%" image="error" description="异常" />
<!-- <van-button primary='success' @click="onClickLeft">返回</van-button>-->
</template>
<script setup>
import {useRouter} from "vue-router";
const router = useRouter()
const onClickLeft = () => router.replace({name:'welcome'});
</script>
<template>
<div style="display: flex; justify-content: center; margin-top: 50%">
<van-loading size="38px" color="#1989fa" vertical> 登录中</van-loading>
</div>
<!-- {{router.currentRoute.value.query.token}}-->
</template>
<script setup>
// import router from "../router/index.js";
import Cookies from 'js-cookie'
import {useRouter} from 'vue-router'
import {onMounted} from 'vue'
import * as api from '../api/index.js'
import {SSOPCNew} from "../api/index.js";
const router = useRouter()
const getTokenAction = async (date) => {
const res = await api.SSOPCNew(date)
if (res.code !== 1) {
await router.replace({
name: '403'
})
} else if (res.response.access_token.token_content !== '') {
// access_token.token_content
Cookies.set('admin-token', res.response.access_token.token_content)
Cookies.set('time', res.response.access_token.expires)
const user = await api.GetTokenInfo()
Cookies.set('user-card_number', user.response.card_number)
Cookies.set('user-name', user.response.name)
await router.replace({
name: 'welcome'
})
}
}
const getTokenActionWx = async (date) => {
const res = await api.SSOPCWX(date)
if (res.code !== 1) {
await router.replace({
name: '403'
})
} else if (res.response.access_token.token_content !== '') {
Cookies.set('admin-token', res.response.access_token.token_content)
Cookies.set('time', res.response.access_token.expires)
const user = await api.GetTokenInfo()
Cookies.set('user-info', user.response.role)
localStorage.setItem('user-info', user.response.role)
await router.replace({
name: 'welcome'
})
}
}
const getToken = async () => {
if (Number(router.currentRoute.value.query.type) === 2) {
Cookies.set('token', router.currentRoute.value.query.token)
// localStorage.setItem('token', router.currentRoute.value.query.token)
let date = {
token: Cookies.get('token')
}
await getTokenAction(date)
} else if (Number(router.currentRoute.value.query.type) === 1) {
// Cookies.set('sign', router.currentRoute.value.query.sign)
// Cookies.set('code', router.currentRoute.value.query.code)
// Cookies.set('timestamp', router.currentRoute.value.query.timestamp)
let date = {
sign: router.currentRoute.value.query.sign,
code: router.currentRoute.value.query.code,
timestamp: router.currentRoute.value.query.timestamp,
}
// Cookies.set('sign', router.currentRoute.value.query.sign,)
// Cookies.set('code', router.currentRoute.value.query.code,)
// Cookies.set('timestamp', router.currentRoute.value.query.timestamp,)
await getTokenActionWx(date)
}
}
onMounted(() => {
getToken()
})
</script>
<template>
<van-nav-bar
left-text="返回"
left-arrow
@click-left="onClickLeft"
></van-nav-bar>
<van-empty style="width: 100%;height: 100%" image="error" description="暂无权限!" />
<!-- <van-button primary='success' @click="onClickLeft">返回</van-button>-->
</template>
<script setup>
import {useRouter} from "vue-router";
const router = useRouter()
const onClickLeft = () => router.replace({name:'welcome'});
</script>
<template>
<van-nav-bar
title="值班信息"
left-text="返回"
left-arrow
@click-left="onClickLeft"
/>
<div class="container">
<!-- v-for="(item,index) in dutyObject.data" :key="index"-->
<van-cell-group class="cardContainer" inset v-for="(item,index) in dutyObject.data" :key="index">
<van-cell class="cardContent" :title="item.username">
<template #extra>
<van-tag type="primary" plain><span>{{ item.card_name }}</span></van-tag>
<van-tag color="#7232dd" type="primary" plain style="margin-left: 10px">{{
['值班教师', '值班领导'][item.is_lead]
}}
</van-tag>
<!-- <van-tag :color="['','#7232dd'][item.is_lead]" type="primary" plain style="margin-left: 10px">-->
<!-- <span>{{ ['值班教师', '值班领导'][item.is_lead] }}</span></van-tag>-->
</template>
</van-cell>
<van-cell class="cardContent" title="手机号">
<template #extra>
<van-tag type="primary" plain><span>{{ item.mobile }}</span></van-tag>
</template>
</van-cell>
<van-cell class="cardContent" title="日期">
<template #extra>
<van-tag type="primary" plain><span>{{ item.watch_date }}</span></van-tag>
</template>
</van-cell>
<van-cell class="cardContent" title="时段">
<template #extra>
<van-tag type="primary" plain style="margin-left: 10px"><span>{{ item.watch_hour_time }}</span>
</van-tag>
</template>
</van-cell>
<van-cell class="cardContent" title="类型">
<template #extra>
<van-tag type="primary" plain>
<span>{{ item.watchtypename + '-' + item.dept_name + '-' + item.campusname }}</span>
</van-tag>
</template>
</van-cell>
</van-cell-group>
</div>
</template>
<script setup>
import dayjs from 'dayjs';
import * as api from '../../api/index.js';
import {ref, reactive, onMounted, watch} from 'vue';
import {useRouter} from "vue-router";
import {showToast} from "vant";
const router = useRouter()
let dutyObject = reactive({
data: []
})
const getDutyMessage = async () => {
let data = {
id: router.currentRoute.value.query.id
}
const res = await api.GetWatchInfo(data)
dutyObject.data = res.response
}
onMounted(() => {
getDutyMessage()
})
const onClickLeft = () => history.back();
</script>
<style>
.container {
.cardContainer {
margin-top: 10px;
width: 95%;
background-color: #ffffff;
height: 20%;
.cardContent {
//height: 150px;
}
}
}
</style>
<template>
<van-pull-refresh v-model="myDuty.loading" @refresh="onRefresh">
<div style="position: fixed;z-index: 2;width: 100%">
<!-- &lt;!&ndash; 圆角弹窗(居中) &ndash;&gt;-->
<van-popup v-model:show="myDuty.showCenter" round style="width: 100%; padding: 10px;">
<template v-slot:default>
<van-field
v-model="myDuty.message"
rows="2"
autosize
clearable
type="textarea"
maxlength="100"
placeholder="请输入日志"
show-word-limit
/>
<div style="float: right">
<van-button icon="close" size="small" style="margin-right: 10px" @click="myDuty.showCenter = false">取消
</van-button>
<van-button type="primary" icon="passed" size="small" style="margin-right: 10px">提交</van-button>
</div>
</template>
</van-popup>
<van-nav-bar
title="我的值班"
left-text="返回"
left-arrow
@click-left="onClickLeft"
></van-nav-bar>
<van-search
v-model="searchValue"
shape="round"
placeholder="请输入搜索关键词"
/>
<van-dropdown-menu :overlay="false">
<van-dropdown-item @close="closeMenu" :key="myDuty.menuKey" @open="openMenu" title="日期">
<template #default>
<van-calendar v-model:show="myDuty.show" type="range" @confirm="dateRange"/>
</template>
</van-dropdown-item>
<van-dropdown-item v-model="myDuty[item[2]]" v-for="(item,index) in myDuty.addDutySelectList" :key="index"
:title="item[1]" :options="item[0]"/>
</van-dropdown-menu>
</div>
<van-list
class="container"
@load="onLoad"
direction="down"
:finished="finished"
offset="600"
>
<div style="width: 100%;height: 150px"></div>
<!-- <van-cell/>-->
<van-cell-group inset class="cardContainer" v-for="(item,index) in list" :key="index">
<van-cell class="cardContent" :title="item.username">
<template #extra>
<van-tag type="primary" plain><span>{{ item.card_name }}</span></van-tag>
<van-tag :color="['','#7232dd'][item.is_lead]" type="primary" plain style="margin-left: 10px">
<span>{{ ['值班教师', '值班领导'][item.is_lead] }}</span></van-tag>
</template>
</van-cell>
<van-cell class="cardContent" title="日期">
<template #extra>
<van-tag type="primary" plain><span>{{ item.watch_date }}</span></van-tag>
<van-tag type="primary" plain style="margin-left: 10px"><span>{{ item.watch_hour_time }}</span></van-tag>
</template>
</van-cell>
<van-cell class="cardContent" title="类型">
<template #extra>
<van-tag type="primary" plain>
<span>{{ item.watchtypename + '-' + item.dept_name + '-' + item.campusname }}</span></van-tag>
</template>
</van-cell>
<!-- <van-cell class="cardContent">-->
<!-- <template #value>-->
<!-- <van-button @click="dutyLog(item)" type="primary" icon="edit" size="small" style="margin-right: 10px">日志</van-button>-->
<!-- </template>-->
<!-- </van-cell>-->
</van-cell-group>
<div style="width: 100%;height: 100px"></div>
</van-list>
</van-pull-refresh>
</template>
<style>
.container {
//box-sizing: border-box; //background-color: #706c6c; //width: 100%; //height: 100%; //min-height: 896px; //display: flex; //flex-wrap: wrap; //justify-content: center; //align-content: flex-start;
.cardContainer {
margin-top: 10px;
width: 95%;
background-color: #ffffff;
height: 20%;
.cardContent {
//height: 150px;
}
}
.cardContainer:nth-last-child(1) {
background-color: red;
}
}
</style>
<script setup>
import _ from 'lodash';
import * as api from '../../api/index.js';
import {ref, reactive, onMounted, watch} from 'vue';
import dayjs from 'dayjs';
import {showToast} from "vant";
const onClickLeft = () => history.back();
let myDuty = reactive({
addDutySelectList: [],
DatePickerKey: 1,
showCenter: false,
message: '',
show: false,
startTime: dayjs().startOf('day').format('YYYY-MM-DD'),
endTime: dayjs().startOf('day').format('YYYY-MM-DD'),
page_index: 1,
page_size: 5,
total: '',
deleteSetTimeOut: '',
menuKey: 1,
loading: false
})
const list = ref([]);
const loading = ref(false);
const finished = ref(false);
let searchValue = ref('')
watch([searchValue, () => myDuty.watchtypeid, () => myDuty.watch_hour_id, () => myDuty.campusid, () => myDuty.dept_id], (newValue, oldValue) => {
console.log("🚀🚀🚀,", newValue[0], newValue[1])
if (newValue[0] || newValue[1] || newValue[2] || newValue[3] || newValue[4]) {
clearTimeout(myDuty.deleteSetTimeOut)
myDuty.deleteSetTimeOut = setTimeout(async () => {
await search()
showToast('操作成功!')
}, 500)
}
}, {deep: true})
const onRefresh = async () => {
myDuty.loading = true
myDuty.startTime = dayjs().format('YYYY-MM-DD')
myDuty.endTime = dayjs().format('YYYY-MM-DD')
await onLoad()
myDuty.loading = false
//初始化刷新
// myDuty.loading = true
// let data = {
// "dep_id": "",
// "key_name": "",
// "start_time": myDuty.startTime,
// "end_time": myDuty.endTime,
// "type_id": "",
// "watchhour_time": "",
// "is_lead": 3,
// "campus_id": "",
// "page_index": myDuty.page_index,
// "page_size": myDuty.page_size,
// }
// const res = await api.GetWatchList(data)
// list.value = res.response.data
// myDuty.total = res.response.data_count
}
const dutyLog = (e) => {
console.log("🚀🚀🚀,", e)
myDuty.showCenter = true
}
const search = async () => {
let data = {
"dep_id": myDuty.dept_id,
"key_name": searchValue.value,
"start_time": myDuty.startTime,
"end_time": myDuty.endTime,
"type_id": myDuty.watchtypeid,
"watchhour_time": myDuty.watch_hour_id,
"is_lead": 3,
"campus_id": myDuty.campusid,
"page_index": myDuty.page_index,
"page_size": myDuty.page_size,
}
const res = await api.GetWatchList(data)
list.value = res.response.data
myDuty.total = res.response.data_count
}
const onLoad = async () => {
clearTimeout(myDuty.deleteSetTimeOut)
myDuty.deleteSetTimeOut = setTimeout(async () => {
let data = {
"dep_id": "",
"key_name": "",
"start_time": myDuty.startTime,
"end_time": myDuty.endTime,
"type_id": "",
"watchhour_time": "",
"is_lead": 3,
"campus_id": "",
"page_index": myDuty.page_index,
"page_size": myDuty.page_size,
}
const res = await api.GetWatchList(data)
list.value = res.response.data
myDuty.total = res.response.data_count
// 异步更新数据
// setTimeout 仅做示例,真实场景中一般为 ajax 请求
// for (let i = 0; i < 10; i++) {
// list.value.push(list.value.length + 1);
// }
// 数据全部加载完成
if (list.value.length >= Number(myDuty.total)) {
finished.value = true;
showToast('加载完成!')
} else if (list.value.length < Number(myDuty.total)) {
myDuty.page_size = myDuty.page_size + 10
}
}, 100)
}
const dateRange = async (e) => {
myDuty.startTime = dayjs(e[0]).format('YYYY-MM-DD')
myDuty.endTime = dayjs(e[1]).format('YYYY-MM-DD')
await search()
myDuty.menuKey++
closeMenu()
}
const closeMenu = () => {
myDuty.show = false
}
const openMenu = () => {
myDuty.show = true
}
const addDutySearchSelectList = () => {
Promise.all([
getSearchSelectListPromiseAllAction("dutyType", '类型', "watchtypeid", api.GetWatchTypeSelect),
getSearchSelectListPromiseAllAction("dutyHourTime", '时段', "watch_hour_id", api.GetWatchHourTime),
getSearchSelectListPromiseAllAction("campusname", '校区', "campusid", api.GetWatchCampusSelect),
getSearchSelectListPromiseAllAction("dept_name", '部门', "dept_id", api.GetWatchDepSelect),
])
.then(res => {
myDuty.addDutySelectList = res
myDuty.DatePickerKey++
})
}
const getSearchSelectListPromiseAllAction = (publicName, title, objectAttribute, apiFunction) => {
return new Promise(async (resolve, reject) => {
const publicName = await apiFunction()
const list = []
publicName.response.map((cur, index) => {
list.push({text: cur.name, value: cur.id})
})
let array = [list, title, objectAttribute]
resolve(array)
})
}
onMounted(() => {
addDutySearchSelectList()
})
</script>
<template>
<van-pull-refresh v-model="signList.loading" @refresh="onRefresh">
<van-floating-bubble
axis="xy"
icon="chat"
magnetic="x"
:gap="35"
@click="batch(1)"
v-if="signList.floatingBubble"
>
<template v-slot:default>
<div>批量签</div>
</template>
</van-floating-bubble>
<van-floating-bubble
axis="xy"
icon="chat"
magnetic="x"
@click="batch(2)"
:gap="0"
v-if="signList.floatingBubble"
>
<template v-slot:default>
<div>批量休</div>
</template>
</van-floating-bubble>
<div style="position: fixed;z-index: 2;width: 100%">
<!-- &lt;!&ndash; 圆角弹窗(居中) &ndash;&gt;-->
<van-popup v-model:show="signList.showCenter" round style="width: 100%; padding: 10px;">
<template v-slot:default>
<van-field
v-model="signList.message"
rows="2"
autosize
clearable
type="textarea"
maxlength="100"
placeholder="请输入日志"
show-word-limit
/>
<div style="float: right">
<van-button icon="close" size="small" style="margin-right: 10px" @click="signList.showCenter = false">取消
</van-button>
<van-button @click="submitLog" type="primary" icon="passed" size="small" style="margin-right: 10px">提交
</van-button>
</div>
</template>
</van-popup>
<van-nav-bar
title="签到列表"
left-text="返回"
left-arrow
@click-left="onClickLeft"
></van-nav-bar>
<van-search
v-model="searchValue"
shape="round"
placeholder="请输入搜索关键词"
/>
<van-dropdown-menu :overlay="false">
<van-dropdown-item @close="closeMenu" :key="signList.menuKey" @open="openMenu" title="日期">
<template #default>
<van-calendar v-model:show="signList.show" type="range" @confirm="dateRange"/>
</template>
</van-dropdown-item>
<van-dropdown-item v-model="signList[item[2]]" v-for="(item,index) in signList.addDutySelectList" :key="index"
:title="item[1]" :options="item[0]"/>
</van-dropdown-menu>
</div>
<van-list
class="container"
@load="onLoad"
direction="down"
:finished="finished"
offset="600"
>
<div style="width: 100%;height: 150px"></div>
<!-- <van-cell/>-->
<van-cell-group inset class="cardContainer" v-for="(item,index) in list" :key="index">
<van-cell class="cardContent" :title="item.username">
<template #extra>
<van-tag type="primary" plain><span>{{ item.card_name }}</span></van-tag>
<van-tag color="#7232dd" type="primary" plain style="margin-left: 10px">{{ item.mobile }}</van-tag>
<!-- <van-tag :color="['','#7232dd'][item.is_lead]" type="primary" plain style="margin-left: 10px">-->
<!-- <span>{{ ['值班教师', '值班领导'][item.is_lead] }}</span></van-tag>-->
</template>
</van-cell>
<van-cell class="cardContent" title="日期">
<template #extra>
<van-tag type="primary" plain><span>{{ item.watch_date }}</span></van-tag>
<van-tag v-if="item.mobile!==''" type="primary" plain style="margin-left: 10px">
<span>{{ item.watch_hour_time }}</span></van-tag>
</template>
</van-cell>
<van-cell class="cardContent" title="类型">
<template #extra>
<van-tag type="primary" plain>
<span>{{ item.watchtypename + '-' + item.campusname }}</span></van-tag>
</template>
</van-cell>
<van-cell class="cardContent">
<template #title>
<span>日志</span>
</template>
<template #extra>
<van-text-ellipsis :rows="1" :content="item.content" expand-text="展开" collapse-text="收起"/>
</template>
</van-cell>
<van-cell class="cardContent" style="display: flex;flex-wrap: nowrap;align-items: center">
<template #value>
<div style="display: flex;flex-wrap: nowrap;align-items: center">
<van-checkbox-group v-model="signList.checked">
<van-checkbox :disabled="item.sign=== 2 || item.sign_set === 1 || signList.authUserInfo === -1"
v-model="item.signid" :name="item.signid"></van-checkbox>
</van-checkbox-group>
<div style="margin-left: auto">
<van-button @click="dutyLog(item)" type="primary" icon="edit" size="small" style="margin-right: 10px">
日志
</van-button>
<van-button @click="sign(item,2)"
v-if="item.sign === 1 && item.sign_set === 0 && signList.authUserInfo!== -1" type="warning"
icon="guide-o" size="small" style="margin-right: 10px">签退
</van-button>
<van-button @click="sign(item,1)"
v-if="item.sign === 0 && item.sign_set === 0 && signList.authUserInfo!== -1" type="success"
icon="passed" size="small" style="margin-right: 10px">签到
</van-button>
<van-button :disabled="item.sign === 2" v-if="item.sign === 2" size="small" style="margin-right: 10px">
<van-icon name="passed" style=" margin-left: 5px;color: #23da6f"/>
完成考勤
</van-button>
</div>
</div>
</template>
</van-cell>
</van-cell-group>
<div style="width: 100%;height: 100px"></div>
</van-list>
</van-pull-refresh>
</template>
<style scoped>
.a {
margin-bottom: 50px;
}
.van-floating-bubble {
position: fixed;
left: -81px;
top: 10px;
right: var(--van-floating-bubble-initial-gap);
bottom: -81px;
width: var(--van-floating-bubble-size);
height: var(--van-floating-bubble-size);
box-sizing: border-box;
display: flex;
justify-content: center;
align-items: center;
overflow: hidden;
cursor: pointer;
-webkit-user-select: none;
user-select: none;
touch-action: none;
background: var(--van-floating-bubble-background);
color: var(--van-floating-bubble-color);
border-radius: var(--van-floating-bubble-border-radius);
z-index: var(--van-floating-bubble-z-index);
transition: transform var(--van-duration-base);
}
.container {
//box-sizing: border-box; //background-color: #706c6c; //width: 100%; //height: 100%; //min-height: 896px; //display: flex; //flex-wrap: wrap; //justify-content: center; //align-content: flex-start;
.cardContainer {
margin-top: 10px;
width: 95%;
background-color: #ffffff;
height: 20%;
.cardContent {
//height: 150px;
}
}
.cardContainer:nth-last-child(1) {
background-color: red;
}
}
</style>
<script setup>
import _ from 'lodash';
import * as api from '../../api/index.js';
import {ref, reactive, onMounted, watch} from 'vue';
import dayjs from 'dayjs';
import {showToast} from "vant";
import Cookies from 'js-cookie'
const onClickLeft = () => history.back();
let signList = reactive({
addDutySelectList: [],
DatePickerKey: 1,
showCenter: false,
message: '',
show: false,
startTime: dayjs().startOf('day').format('YYYY-MM-DD'),
endTime: dayjs().startOf('day').format('YYYY-MM-DD'),
page_index: 1,
page_size: 5,
total: '',
deleteSetTimeOut: '',
menuKey: 1,
loading: false,
authUserInfo: '',
checked: [],
floatingBubble: false,
logId: '',
})
const list = ref([]);
const loading = ref(false);
const finished = ref(false);
let searchValue = ref('')
watch([searchValue, () => signList.watchtypeid, () => signList.watch_hour_id, () => signList.campusid, () => signList.dept_id, () => signList.checked], (newValue, oldValue) => {
console.log("🚀🚀🚀,", newValue[5])
if (newValue[0] || newValue[1] || newValue[2] || newValue[3] || newValue[4]) {
clearTimeout(signList.deleteSetTimeOut)
signList.deleteSetTimeOut = setTimeout(async () => {
await search()
showToast('操作成功!')
}, 500)
}
if (newValue[5]) {
// signList.floatingBubble = signList.checked.lenght ? true :false
signList.floatingBubble = !!signList.checked.length
}
}, {deep: true})
const batch = async (value) => {
let data = []
signList.checked.map((cur, index) => {
data.push({signid: cur, sign: value})
})
const res = await api.SignInOrOut(data)
signList.checked = []
res.code !== 1 ? showToast(res.msg_detail) : await onLoad()
}
const sign = async (e, signValue) => {
let data = [{
"signid": e.signid,
"sign": signValue
}]
let res = await api.SignInOrOut(data)
await onLoad()
}
const onRefresh = async () => {
signList.loading = true
signList.startTime = dayjs().format('YYYY-MM-DD')
signList.endTime = dayjs().format('YYYY-MM-DD')
await onLoad()
signList.loading = false
}
const submitLog = async () => {
let data = {
signId: signList.logId,
content: signList.message,
}
const res = await api.SignLogSave(data)
signList.showCenter = false
await onLoad()
}
const dutyLog = (e) => {
signList.logId = e.signid
signList.message = e.content
signList.showCenter = true
}
const search = async () => {
let data = {
"dep_id": signList.dept_id,
"key_name": searchValue.value,
"start_time": signList.startTime,
"end_time": signList.endTime,
"type_id": signList.watchtypeid,
"watchhour_time": signList.watch_hour_id,
"is_lead": 3,
"campus_id": signList.campusid,
"page_index": signList.page_index,
"page_size": signList.page_size,
}
const res = await api.GetSignRecordList(data)
list.value = res.response.data
signList.total = res.response.data_count
}
const onLoad = async () => {
clearTimeout(signList.deleteSetTimeOut)
signList.deleteSetTimeOut = setTimeout(async () => {
let data = {
"dep_id": "",
"key_name": "",
"start_time": signList.startTime,
"end_time": signList.endTime,
"type_id": "",
"watchhour_time": "",
"is_lead": 3,
"campus_id": "",
"page_index": signList.page_index,
"page_size": signList.page_size,
}
const res = await api.GetSignRecordList(data)
list.value = res.response.data
signList.total = res.response.data_count
// 异步更新数据
// setTimeout 仅做示例,真实场景中一般为 ajax 请求
// for (let i = 0; i < 10; i++) {
// list.value.push(list.value.length + 1);
// }
// 数据全部加载完成
if (list.value.length >= Number(signList.total)) {
finished.value = true;
showToast('操作成功!')
} else if (list.value.length < Number(signList.total)) {
signList.page_size = signList.page_size + 10
}
}, 100)
}
const dateRange = async (e) => {
signList.startTime = dayjs(e[0]).format('YYYY-MM-DD')
signList.endTime = dayjs(e[1]).format('YYYY-MM-DD')
await search()
signList.menuKey++
closeMenu()
}
const closeMenu = () => {
signList.show = false
}
const openMenu = () => {
signList.show = true
}
const addDutySearchSelectList = () => {
Promise.all([
getSearchSelectListPromiseAllAction("dutyType", '类型', "watchtypeid", api.GetWatchTypeSelect),
getSearchSelectListPromiseAllAction("dutyHourTime", '时段', "watch_hour_id", api.GetWatchHourTime),
getSearchSelectListPromiseAllAction("campusname", '校区', "campusid", api.GetWatchCampusSelect),
getSearchSelectListPromiseAllAction("dept_name", '部门', "dept_id", api.GetWatchDepSelect),
])
.then(res => {
signList.addDutySelectList = res
signList.DatePickerKey++
})
}
const getSearchSelectListPromiseAllAction = (publicName, title, objectAttribute, apiFunction) => {
return new Promise(async (resolve, reject) => {
const publicName = await apiFunction()
const list = []
publicName.response.map((cur, index) => {
list.push({text: cur.name, value: cur.id})
})
let array = [list, title, objectAttribute]
resolve(array)
})
}
onMounted(() => {
addDutySearchSelectList()
signList.authUserInfo = Cookies.get('user-info').split('"').indexOf('值班领导') === -1 ? -1 : 1
})
</script>
<template>
<div class="container">
<div class="header">
<van-nav-bar
title="琼台博物馆预约入馆扫码"
left-text="返回"
left-arrow
@click-left="onClickLeft"
/>
<!-- <van-cell-group inset style="width: 100%;">-->
<!-- <van-cell>-->
<!-- <template #title>-->
<!-- <div style="display: flex;justify-content: center;align-items: center">琼台博物馆预约入馆扫码</div>-->
<!-- </template>-->
<!-- &lt;!&ndash; title="博物馆预约入馆扫码"&ndash;&gt;-->
<!-- </van-cell>-->
<!-- </van-cell-group>-->
</div>
<div class="content">
<div class="cardContainer">
<div class="cardContent" @click="handleScanQR">
<img src="./sys.png" style="width: 100px;height: 100px">
<!-- <van-button>扫一扫</van-button>-->
</div>
<div class="cardFooter"><span>
点击“按钮”,进行二维码扫描
</span></div>
</div>
</div>
<!-- <div class="clock-card">-->
<!-- <van-skeleton title round :row="5" :loading="loading">-->
<!-- <van-button @click="handleScanQR">扫一扫</van-button>-->
<!-- <div class="btn-wrap">-->
<!-- <div :class="['clock-btn', 'can-back']" @click="handleScanQR">-->
<!-- &lt;!&ndash; <img class="saomaIcon" src="../../image/3f258fbafe311489c415a1cdea7e11f.png"/>&ndash;&gt;-->
<!-- &lt;!&ndash; <p>扫一扫</p>&ndash;&gt;-->
<!-- </div>-->
<!-- </div>-->
<!-- &lt;!&ndash; <div class="clock-address">点击"扫一扫"扫码或点击上方搜索框搜索</div>&ndash;&gt;-->
<!-- </van-skeleton>-->
<!-- </div>-->
</div>
</template>
<script>
import * as api from '../../api/index.js';
// import {GetWxConfig} from "@/common/api/common";
import wx from "weixin-js-sdk";
import {QRCodeVerify} from "../../api/index.js";
import {showDialog, showSuccessToast} from "vant";
// import utils from "@/common/util";
export default {
data() {
return {
searchValue: "",
loading: false,
timer: '',
};
},
mounted() {
this.wxScanCode();
},
methods: {
onClickLeft() {
history.back()
},
getData() {
},
// 微信初始化配置
wxScanCode() {
const params = {
url: window.location.href.replace(window.location.hash, ""),
};
console.log("🚀🚀🚀,", params)
api.GetWxConfig(params).then((result) => {
let data = result;
wx.config({
debug: false,
appId: data.appId, // 必填,公众号的唯一标识
timestamp: data.timeStamp, // 必填,生成签名的时间戳
nonceStr: data.nonceStr, // 必填,生成签名的随机串
signature: data.signature, // 必填,签名,见附录1
jsApiList: ["scanQRCode", "checkJsApi"],
// jsApiList: [
// "checkJsApi",
// "onMenushareTimeline",
// "onMenushareAppMessage",
// "scanQRCode"
// ]
});
wx.ready(() => {
console.log("设备已经可以使用");
// setTimeout(() => {
// wx.checkJsApi({
// jsApiList: ["scanQRCode"],
// success: (res) => {
// console.log(res);
// },
// });
// });
});
wx.error(function (res) {
console.log("设备已经无法使用");
});
});
},
// 扫码
async handleScanQR() {
clearTimeout(this.timer)
this.timer = setTimeout(() => {
wx.scanQRCode({
needResult: 1, // 默认为0,扫描结果由微信处理,1则直接返回扫描结果,
scanType: ["qrCode"], // 可以指定扫二维码
success: async (res) => {
const value = await api.QRCodeVerify({id: res.resultStr})
if (value.code !== 1) {
// showSuccessToast(value.msg_detail);
showDialog({
title: '提示',
message: value.msg_detail,
theme: 'round-button',
}).then(() => {
setTimeout(() => {
this.handleScanQR()
}, 1000)
});
} else {
// showSuccessToast(value.msg);
showSuccessToast(value.msg);
setTimeout(() => {
this.handleScanQR()
}, 3000)
}
},
fail: (err) => {
alert(JSON.stringify(err))
this.handleScanQR()
}
});
}, 500)
},
// 搜索框输入
// doSearch() {
// this.$router.push({
// path: '/scanList',
// });
// }
},
};
</script>
<style>
.container {
width: 100vw;
height: 100vh;
position: absolute;
.header {
width: 100%;
height: 10%;
}
.content {
width: 100%;
height: 80%;
padding: 30px 10px 10px 10px;
.cardContainer {
width: 100%;
height: 60%;
box-sizing: border-box;
border-radius: 2%;
background-color: #ffffff;
display: flex;
justify-content: center;
align-content: center;
flex-wrap: wrap;
.cardContent {
width: 150px;
height: 150px;
border-radius: 50%;
display: flex;
justify-content: center;
align-items: center;
background-color: #2aa9ff;
}
.cardFooter {
width: 100%;
height: 10%;
display: flex;
justify-content: center;
align-items: flex-end;
}
.cardContent:active {
background-color: #006cbb;
transform: scale(1.05);
}
}
}
}
</style>
<!--.cardFooter {-->
<!--width: 100%;-->
<!--height: 10%;-->
<!--margin-top: auto;-->
<!--background-color: #706c6c;-->
<!--}-->
<!--.clock-card {-->
<!-- position: relative;-->
<!-- height: 400px;-->
<!-- background: #fff;-->
<!-- border-radius: 12px;-->
<!-- margin-bottom: 30px;-->
<!-- margin: 20px;-->
<!--}-->
<!--.btn-wrap {-->
<!-- position: absolute;-->
<!-- height: 230px;-->
<!-- width: 180px;-->
<!-- top: 0;-->
<!-- bottom: 0;-->
<!-- left: 0;-->
<!-- right: 0;-->
<!-- margin: auto;-->
<!-- text-align: center;-->
<!--}-->
<!--.clock-address {-->
<!-- font-size: 14px;-->
<!-- color: #9e9e9e;-->
<!-- line-height: 20px;-->
<!-- position: absolute;-->
<!-- bottom: 50px;-->
<!-- text-align: center;-->
<!-- width: 100%;-->
<!--}-->
<!--.clock-btn {-->
<!-- display: flex;-->
<!-- flex-direction: column;-->
<!-- justify-content: center;-->
<!-- align-items: center;-->
<!-- text-align: center;-->
<!-- width: 180px;-->
<!-- height: 180px;-->
<!-- // line-height: 180px; border-radius: 100%; // color: #fff; font-weight: 500; font-size: 18px;-->
<!--}-->
<!--.can-back {-->
<!-- background: linear-gradient(to bottom, #1cbfff, #1989fa);-->
<!-- box-shadow: 0 0 20px rgba(149, 156, 172, 0.3);-->
<!--}-->
<!--.saomaIcon {-->
<!-- width: 60px;-->
<!-- margin-top: 30px;-->
<!--}-->
<!--.searchStyle {-->
<!-- border-radius: 12px;-->
<!--}-->
import {createRouter, createWebHashHistory} from 'vue-router'
import routes from "./routes.js";
import * as api from '../api/index.js'
import Cookies from 'js-cookie'
const router = new createRouter({
history: createWebHashHistory(),
routes: routes,
})
// 全局守卫:登录拦截 本地没有存token,请重新登录
router.beforeEach(async (to, from, next) => {
if (to.meta.isAuth && to.meta.admin) {
if (Cookies.get('user-info')) {
next()
// Cookies.get('user-info').split('"').indexOf('值班领导') === -1 ? next({name: 'undefinedAuthorization'}) : next()
} else {
const res = await api.GetTokenInfo()
Cookies.set('user-info', res.response.name)
if (Cookies.get('user-info')) next()
else {
next({name: '403'})
}
}
} else if (to.meta.isAuth) {
if (Cookies.get('user-info')) {
next()
} else {
const res = await api.GetTokenInfo()
Cookies.set('user-info', res.response.name)
if (Cookies.get('user-info')) next()
else {
next({name: '403'})
}
}
} else if (!to.meta.isAuth) {
next()
}
});
export default router
const routes = [
{
name: '403',
path: '/403',
component: () => import('../pages/403/index.vue'),
},
{
name: 'undefinedAuthorization',
path: '/undefinedAuthorization',
component: () => import('../pages/authPage/index.vue'),
},
{
name: 'et',
path: '/et',
component: () => import('../pages/SSO.vue')
},
{
name: 'welcome',
path: '/welcome',
component: () => import('../pages/welcome/index.vue'),
meta: {isAuth: true},
},
{
name: 'signList',
path: '/signList',
component: () => import('../pages/signList/index.vue'),
meta: {isAuth: true, admin: true}
},
{
name: 'myDuty',
path: '/myDuty',
component: () => import('../pages/myDuty/index.vue'),
meta: {isAuth: true}
},
{
name: 'messageDetails',
path: '/messageDetails',
component: () => import('../pages/messageDetails/index.vue'),
}
]
export default routes
.container{
box-sizing: border-box;
background-color: #e8e5e5;
width: 100%;
height: 100%;
min-height: 812px;
/*max-width: 600px;*/
display: flex;
flex-wrap: wrap;
justify-content: center;
align-content: flex-start;
}
/*:root {*/
/* font-family: Inter, system-ui, Avenir, Helvetica, Arial, sans-serif;*/
/* line-height: 1.5;*/
/* font-weight: 400;*/
/* color-scheme: light dark;*/
/* color: rgba(255, 255, 255, 0.87);*/
/* !*background-color: #242424;*!*/
/* font-synthesis: none;*/
/* text-rendering: optimizeLegibility;*/
/* -webkit-font-smoothing: antialiased;*/
/* -moz-osx-font-smoothing: grayscale;*/
/* -webkit-text-size-adjust: 100%;*/
/*}*/
/*a {*/
/* font-weight: 500;*/
/* color: #646cff;*/
/* text-decoration: inherit;*/
/*}*/
/*a:hover {*/
/* color: #535bf2;*/
/*}*/
/*a {*/
/* font-weight: 500;*/
/* color: #646cff;*/
/* text-decoration: inherit;*/
/*}*/
/*a:hover {*/
/* color: #535bf2;*/
/*}*/
/*body {*/
/* margin: 0;*/
/* display: flex;*/
/* place-items: center;*/
/* min-width: 320px;*/
/* min-height: 100vh;*/
/*}*/
/*h1 {*/
/* font-size: 3.2em;*/
/* line-height: 1.1;*/
/*}*/
/*button {*/
/* border-radius: 8px;*/
/* border: 1px solid transparent;*/
/* padding: 0.6em 1.2em;*/
/* font-size: 1em;*/
/* font-weight: 500;*/
/* font-family: inherit;*/
/* background-color: #1a1a1a;*/
/* cursor: pointer;*/
/* transition: border-color 0.25s;*/
/*}*/
/*button:hover {*/
/* border-color: #646cff;*/
/*}*/
/*button:focus,*/
/*button:focus-visible {*/
/* outline: 4px auto -webkit-focus-ring-color;*/
/*}*/
/*.card {*/
/* padding: 2em;*/
/*}*/
/*#app {*/
/* max-width: 1280px;*/
/* margin: 0 auto;*/
/* padding: 2rem;*/
/* text-align: center;*/
/*}*/
/*@media (prefers-color-scheme: light) {*/
/* :root {*/
/* color: #213547;*/
/* background-color: #ffffff;*/
/* }*/
/* a:hover {*/
/* color: #747bff;*/
/* }*/
/* button {*/
/* background-color: #f9f9f9;*/
/* }*/
/*}*/
import axios from 'axios';
import Cookies from 'js-cookie'
import {showToast} from 'vant';
import 'vant/es/toast/style';
import dayjs from 'dayjs';
import * as api from '../api/index.js'
// import {BASE_URL} from './publicURL.js'
// const BASE_URL = BASE_URL // 替换成你的API的基本URL
const axiosInstance = axios.create({
// baseURL: 'https://asc.hnasct.cn/DutyManagement',
baseURL: '/museumAppointment', // 默认地址代理转换为··域名·· 请求地址为 域名 + baseURL + 动态传入URL
timeout: 10000, // 设置请求超时时间,单位为毫秒
headers: {
'Content-Type': 'application/json',
// 可以在这里添加其他请求头信息
},
});
// const refreshTokenAction = () => {
// let flag = 1
// let currentTime = dayjs(dayjs().valueOf())
// // let refreshTime = dayjs(dayjs('2023-09-06T16:07:31.230Z').valueOf())
// let refreshTime = dayjs(dayjs(Cookies.get('time')).valueOf())
// console.log("🚀🚀🚀,")
// if (currentTime.diff(refreshTime) <= 2 * 60 * 60 * 1000 && flag === 1) {
// flag = 2
// api.RefreshToken()
// .then(res => {
// console.log('asdasd', res)
// Cookies.set('admin-token', res.response.access_token.token_content)
// Cookies.set('time', res.response.access_token.expires)
// flag = 1
// })
//
//
// }
//
//
// // console.log("🚀🚀🚀,", currentTime.diff(refreshTime))
// // console.log("🚀🚀🚀 dayjs().valueOf(),",currentTime,refreshTime,currentTime.diff(refreshTime) <= 15 * 60 * 1000)
// }
// 添加请求拦截器
let flag = 1; // 将 flag 移出函数,以便在多次调用之间保持不变
const refreshTokenAction = async () => {
if (flag === 1) {
flag = 2;
let currentTime = dayjs(dayjs().valueOf());
let refreshTime = dayjs(dayjs(Cookies.get('time')).valueOf());
if (refreshTime.diff(currentTime) <= 2 * 60 * 60 * 1000) {
try {
const res = await api.RefreshToken();
// console.log('asdasd', res.response.token_content, currentTime.format('YYYY-MM-DD HH:mm:ss'), refreshTime.format('YYYY-MM-DD HH:mm:ss'), refreshTime.diff(currentTime),);
Cookies.set('admin-token', res.response.token_content);
Cookies.set('time', res.response.expires);
} catch (error) {
console.error('刷新 Token 失败', error);
} finally {
flag = 1; // 无论成功或失败,都将 flag 重置为 1
}
}
}
};
axiosInstance.interceptors.request.use(
(config) => {
// 在发送请求之前可以进行一些处理,例如添加认证信息、日志等
let token = Cookies.get('admin-token')
config.headers['Authorization'] = 'Bearer ' + token
refreshTokenAction()
return config;
},
(error) => {
// 处理请求错误
return Promise.reject(error);
}
);
// 添加响应拦截器
axiosInstance.interceptors.response.use(
(response) => {
// 在这里可以对响应数据进行处理,例如解析JSON、错误处理等
return response.data;
},
(error) => {
// 处理响应错误
if (error && error.response) {
let msg = ''
switch (error.response.status) {
case 400:
msg = '请求错误';
break;
case 401:
msg = '未授权,请登录';
break;
case 403:
msg = '拒绝访问';
break;
case 404:
msg = `请求地址出错: ${error.response.config.url}`;
break;
case 408:
msg = '请求超时';
break;
case 500:
msg = '服务器内部错误';
break;
case 501:
msg = '服务未实现';
break;
case 502:
msg = '网关错误';
break;
case 503:
msg = '服务不可用';
break;
case 504:
msg = '网关超时';
break;
case 505:
msg = 'HTTP版本不受支持';
break;
default:
msg = '网络出了小差~';
break;
}
showToast(msg);
}
return Promise.reject(error);
}
);
export default axiosInstance
// export const BASE_URL = 'https://asc.hnasct.cn/DutyManagement/'; // 替换成你的API的基本URL
import axiosInstance from './axios.js'
export let requestGet = (url, data) => {
return new Promise((resolve, reject) => {
console.log("🚀🚀🚀GetWxConfigGetWxConfig,", data)
axiosInstance.get(url, data)
.then(res => {
resolve(res)
})
.catch(err => {
reject(err)
})
})
}
export const requestPost = (url, data) => {
return new Promise((resolve, reject) => {
axiosInstance.post(url, data)
.then(res => {
resolve(res)
})
.catch(err => {
reject(err)
})
})
}
import {defineConfig} from 'vite'
import vue from '@vitejs/plugin-vue'
import Components from 'unplugin-vue-components/vite';
import {VantResolver} from 'unplugin-vue-components/resolvers';
// https://vitejs.dev/config/
export default defineConfig({
plugins: [
vue(),
Components({
resolvers: [VantResolver()],
}),
],
base: './',
server: {
// host: "127.0.0.1",
// cors: true,
// port: 8991,
// open: true, //自动打开
proxy: {
// 这里的ccc可乱写, 是拼接在url后面的地址 如果接口中没有统一的后缀可自定义
// 如果有统一后缀, 如api, 直接写api即可, 也不用rewrite了
"/museumAppointment": {
target: "https://asc.hnasct.cn/", // 真实接口地址, 后端给的基地址
changeOrigin: true, // 允许跨域
// rewrite: (path) => path.replace(/^\/DutyManagement/, ""), // 将ccc替换为空
},
},
}
})
Markdown 格式
0% or
您添加了 0 人 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册 或