diff --git a/collect_information/.editorconfig b/collect_information/.editorconfig deleted file mode 100644 index 5760be5..0000000 --- a/collect_information/.editorconfig +++ /dev/null @@ -1,12 +0,0 @@ -# http://editorconfig.org -root = true - -[*] -indent_style = space -indent_size = 2 -charset = utf-8 -trim_trailing_whitespace = true -insert_final_newline = true - -[*.md] -trim_trailing_whitespace = false diff --git a/collect_information/.env.development b/collect_information/.env.development deleted file mode 100644 index c876df6..0000000 --- a/collect_information/.env.development +++ /dev/null @@ -1,2 +0,0 @@ -TARO_APP_ID="wx0acd1c4fcf94bdd3" -TARO_APP_BASE_API="http://172.10.10.93:8765" diff --git a/collect_information/.env.production b/collect_information/.env.production deleted file mode 100644 index bf2df6e..0000000 --- a/collect_information/.env.production +++ /dev/null @@ -1,2 +0,0 @@ -TARO_APP_ID="wx24cc8a872b57ac79" -TARO_APP_BASE_API="http://172.10.10.207:7000" diff --git a/collect_information/.env.test b/collect_information/.env.test deleted file mode 100644 index 0215b61..0000000 --- a/collect_information/.env.test +++ /dev/null @@ -1 +0,0 @@ -# TARO_APP_ID="测试环境下的小程序appid" \ No newline at end of file diff --git a/collect_information/.eslintrc b/collect_information/.eslintrc deleted file mode 100644 index a5306c7..0000000 --- a/collect_information/.eslintrc +++ /dev/null @@ -1,10 +0,0 @@ -// ESLint 检查 .vue 文件需要单独配置编辑器: -// https://eslint.vuejs.org/user-guide/#editor-integrations -{ - "extends": [ - "taro/vue3" - ], - "rules": { - "vue/multi-word-component-names": "off" - } -} diff --git a/collect_information/.gitignore b/collect_information/.gitignore deleted file mode 100644 index e83724e..0000000 --- a/collect_information/.gitignore +++ /dev/null @@ -1,12 +0,0 @@ -dist/ -deploy_versions/ -.temp/ -.rn_temp/ -node_modules/ -.DS_Store -.swc -yarn.lock -components.d.ts -package-lock.json -.idea - diff --git a/collect_information/__tests__/index.test.js b/collect_information/__tests__/index.test.js deleted file mode 100644 index c3904d1..0000000 --- a/collect_information/__tests__/index.test.js +++ /dev/null @@ -1,12 +0,0 @@ -import TestUtils from '@tarojs/test-utils-vue3' - -describe('Testing', () => { - - test('Test', async () => { - const testUtils = new TestUtils() - await testUtils.createApp() - await testUtils.PageLifecycle.onShow('pages/index/index') - expect(testUtils.html()).toMatchSnapshot() - }) - -}) diff --git a/collect_information/babel.config.js b/collect_information/babel.config.js deleted file mode 100644 index dc20faf..0000000 --- a/collect_information/babel.config.js +++ /dev/null @@ -1,10 +0,0 @@ -// babel-preset-taro 更多选项和默认值: -// https://github.com/NervJS/taro/blob/next/packages/babel-preset-taro/README.md -module.exports = { - presets: [ - ['taro', { - framework: 'vue3', - ts: true - }] - ] -} diff --git a/collect_information/config/dev.ts b/collect_information/config/dev.ts deleted file mode 100644 index 83b5450..0000000 --- a/collect_information/config/dev.ts +++ /dev/null @@ -1,124 +0,0 @@ -// import type { UserConfigExport } from "@tarojs/cli"; -// export default { -// logger: { -// quiet: false, -// stats: true -// }, -// mini: {}, -// h5: {} -// } satisfies UserConfigExport -import {defineConfig, type UserConfigExport} from '@tarojs/cli' -import TsconfigPathsPlugin from 'tsconfig-paths-webpack-plugin' -import devConfig from './dev' -import prodConfig from './prod' -import ComponentsPlugin from 'unplugin-vue-components/webpack' -import NutUIResolver from '@nutui/auto-import-resolver' - -// https://taro-docs.jd.com/docs/next/config#defineconfig-辅助函数 -export default defineConfig(async (merge, {command, mode}) => { - const baseConfig: UserConfigExport = { - projectName: 'collect_information', - date: '2024-4-12', - designWidth(input: any) { - // 配置 NutUI 375 尺寸 - if (input?.file?.replace(/\\+/g, '/').indexOf('@nutui') > -1) { - return 375 - } - // 全局使用 Taro 默认的 750 尺寸 - return 750 - }, - deviceRatio: { - 640: 2.34 / 2, - 750: 1, - 828: 1.81 / 2, - 375: 2 - }, - sourceRoot: 'src', - outputRoot: 'dist', - plugins: ['@tarojs/plugin-html'], - defineConstants: {}, - copy: { - patterns: [], - options: {} - }, - framework: 'vue3', - compiler: 'webpack5', - cache: { - enable: false // Webpack 持久化缓存配置,建议开启。默认配置请参考:https://docs.taro.zone/docs/config-detail#cache - }, - mini: { - miniCssExtractPluginOption: { - ignoreOrder: true - }, - postcss: { - pxtransform: { - enable: true, - config: {} - }, - url: { - enable: true, - config: { - limit: 1024 // 设定转换尺寸上限 - } - }, - cssModules: { - enable: false, // 默认为 false,如需使用 css modules 功能,则设为 true - config: { - namingPattern: 'module', // 转换模式,取值为 global/module - generateScopedName: '[name]__[local]___[hash:base64:5]' - } - } - }, - webpackChain(chain) { - chain.resolve.plugin('tsconfig-paths').use(TsconfigPathsPlugin) - chain.plugin('unplugin-vue-components').use(ComponentsPlugin({ - resolvers: [NutUIResolver({taro: true})] - })) - } - }, - h5: { - publicPath: '/', - staticDirectory: 'static', - output: { - filename: 'js/[name].[hash:8].js', - chunkFilename: 'js/[name].[chunkhash:8].js' - }, - miniCssExtractPluginOption: { - ignoreOrder: true, - filename: 'css/[name].[hash].css', - chunkFilename: 'css/[name].[chunkhash].css' - }, - postcss: { - autoprefixer: { - enable: true, - config: {} - }, - cssModules: { - enable: false, // 默认为 false,如需使用 css modules 功能,则设为 true - config: { - namingPattern: 'module', // 转换模式,取值为 global/module - generateScopedName: '[name]__[local]___[hash:base64:5]' - } - } - }, - webpackChain(chain) { - chain.resolve.plugin('tsconfig-paths').use(TsconfigPathsPlugin) - } - }, - rn: { - appName: 'taroDemo', - postcss: { - cssModules: { - enable: false, // 默认为 false,如需使用 css modules 功能,则设为 true - } - } - } - } - if (process.env.NODE_ENV === 'development') { - // 本地开发构建配置(不混淆压缩) - return merge({}, baseConfig, devConfig) - } - // 生产构建配置(默认开启压缩混淆等) - return merge({}, baseConfig, prodConfig) -}) - diff --git a/collect_information/config/index.ts b/collect_information/config/index.ts deleted file mode 100644 index 54a4b61..0000000 --- a/collect_information/config/index.ts +++ /dev/null @@ -1,114 +0,0 @@ -import {defineConfig, type UserConfigExport} from '@tarojs/cli' -import TsconfigPathsPlugin from 'tsconfig-paths-webpack-plugin' -import devConfig from './dev' -import prodConfig from './prod' -import ComponentsPlugin from 'unplugin-vue-components/webpack' -import NutUIResolver from '@nutui/auto-import-resolver' - -// https://taro-docs.jd.com/docs/next/config#defineconfig-辅助函数 -export default defineConfig(async (merge, {command, mode}) => { - const baseConfig: UserConfigExport = { - projectName: 'collect_information', - date: '2024-4-12', - designWidth(input: any) { - // 配置 NutUI 375 尺寸 - if (input?.file?.replace(/\\+/g, '/').indexOf('@nutui') > -1) { - return 375 - } - // 全局使用 Taro 默认的 750 尺寸 - return 750 - }, - deviceRatio: { - 640: 2.34 / 2, - 750: 1, - 828: 1.81 / 2, - 375: 2 - }, - sourceRoot: 'src', - outputRoot: 'dist', - plugins: ['@tarojs/plugin-html'], - defineConstants: {}, - copy: { - patterns: [], - options: {} - }, - framework: 'vue3', - compiler: 'webpack5', - cache: { - enable: false // Webpack 持久化缓存配置,建议开启。默认配置请参考:https://docs.taro.zone/docs/config-detail#cache - }, - mini: { - miniCssExtractPluginOption: { - ignoreOrder: true - }, - postcss: { - pxtransform: { - enable: true, - config: {} - }, - url: { - enable: true, - config: { - limit: 1024 // 设定转换尺寸上限 - } - }, - cssModules: { - enable: false, // 默认为 false,如需使用 css modules 功能,则设为 true - config: { - namingPattern: 'module', // 转换模式,取值为 global/module - generateScopedName: '[name]__[local]___[hash:base64:5]' - } - } - }, - webpackChain(chain) { - chain.resolve.plugin('tsconfig-paths').use(TsconfigPathsPlugin) - chain.plugin('unplugin-vue-components').use(ComponentsPlugin({ - resolvers: [NutUIResolver({taro: true})] - })) - } - }, - h5: { - publicPath: '/', - staticDirectory: 'static', - output: { - filename: 'js/[name].[hash:8].js', - chunkFilename: 'js/[name].[chunkhash:8].js' - }, - miniCssExtractPluginOption: { - ignoreOrder: true, - filename: 'css/[name].[hash].css', - chunkFilename: 'css/[name].[chunkhash].css' - }, - postcss: { - autoprefixer: { - enable: true, - config: {} - }, - cssModules: { - enable: false, // 默认为 false,如需使用 css modules 功能,则设为 true - config: { - namingPattern: 'module', // 转换模式,取值为 global/module - generateScopedName: '[name]__[local]___[hash:base64:5]' - } - } - }, - webpackChain(chain) { - chain.resolve.plugin('tsconfig-paths').use(TsconfigPathsPlugin) - } - }, - rn: { - appName: 'taroDemo', - postcss: { - cssModules: { - enable: false, // 默认为 false,如需使用 css modules 功能,则设为 true - } - } - } - } - if (process.env.NODE_ENV === 'development') { - // 本地开发构建配置(不混淆压缩) - return merge({}, baseConfig, devConfig) - } - // 生产构建配置(默认开启压缩混淆等) - return merge({}, baseConfig, prodConfig) -}) diff --git a/collect_information/config/prod.ts b/collect_information/config/prod.ts deleted file mode 100644 index c9ba67f..0000000 --- a/collect_information/config/prod.ts +++ /dev/null @@ -1,32 +0,0 @@ -import type { UserConfigExport } from "@tarojs/cli"; -export default { - mini: {}, - h5: { - /** - * WebpackChain 插件配置 - * @docs https://github.com/neutrinojs/webpack-chain - */ - // webpackChain (chain) { - // /** - // * 如果 h5 端编译后体积过大,可以使用 webpack-bundle-analyzer 插件对打包体积进行分析。 - // * @docs https://github.com/webpack-contrib/webpack-bundle-analyzer - // */ - // chain.plugin('analyzer') - // .use(require('webpack-bundle-analyzer').BundleAnalyzerPlugin, []) - // /** - // * 如果 h5 端首屏加载时间过长,可以使用 prerender-spa-plugin 插件预加载首页。 - // * @docs https://github.com/chrisvfritz/prerender-spa-plugin - // */ - // const path = require('path') - // const Prerender = require('prerender-spa-plugin') - // const staticDir = path.join(__dirname, '..', 'dist') - // chain - // .plugin('prerender') - // .use(new Prerender({ - // staticDir, - // routes: [ '/pages/index/index' ], - // postProcess: (context) => ({ ...context, outputPath: path.join(staticDir, 'index.html') }) - // })) - // } - } -} satisfies UserConfigExport diff --git a/collect_information/jest.config.ts b/collect_information/jest.config.ts deleted file mode 100644 index e720a3c..0000000 --- a/collect_information/jest.config.ts +++ /dev/null @@ -1,6 +0,0 @@ -const defineJestConfig = require('@tarojs/test-utils-vue3/dist/jest.js').default - -module.exports = defineJestConfig({ - testEnvironment: 'jsdom', - testMatch: ['/__tests__/**/*.(spec|test).[jt]s?(x)'] -}) diff --git a/collect_information/package.json b/collect_information/package.json deleted file mode 100644 index f7d1452..0000000 --- a/collect_information/package.json +++ /dev/null @@ -1,97 +0,0 @@ -{ - "name": "collect_information", - "version": "1.0.0", - "private": true, - "description": "警保联勤联动小程序", - "templateInfo": { - "name": "default", - "typescript": true, - "css": "Sass", - "framework": "Vue3" - }, - "scripts": { - "build:weapp": "taro build --type weapp", - "build:swan": "taro build --type swan", - "build:alipay": "taro build --type alipay", - "build:tt": "taro build --type tt", - "build:h5": "taro build --type h5", - "build:rn": "taro build --type rn", - "build:qq": "taro build --type qq", - "build:jd": "taro build --type jd", - "build:quickapp": "taro build --type quickapp", - "build:harmony-hybrid": "taro build --type harmony-hybrid", - "dev:weapp": "npm run build:weapp -- --watch", - "dev:swan": "npm run build:swan -- --watch", - "dev:alipay": "npm run build:alipay -- --watch", - "dev:tt": "npm run build:tt -- --watch", - "dev:h5": "npm run build:h5 -- --watch", - "dev:rn": "npm run build:rn -- --watch", - "dev:qq": "npm run build:qq -- --watch", - "dev:jd": "npm run build:jd -- --watch", - "dev:quickapp": "npm run build:quickapp -- --watch", - "dev:harmony-hybrid": "npm run build:harmony-hybrid -- --watch", - "test": "jest" - }, - "browserslist": [ - "last 3 versions", - "Android >= 4.1", - "ios >= 8" - ], - "author": "", - "dependencies": { - "@babel/runtime": "^7.21.5", - "@nutui/icons-vue-taro": "^0.0.9", - "@nutui/nutui-taro": "^4.3.5", - "@tarojs/components": "3.6.25", - "@tarojs/helper": "3.6.25", - "@tarojs/plugin-framework-vue3": "3.6.25", - "@tarojs/plugin-html": "^3.6.26", - "@tarojs/plugin-platform-alipay": "3.6.25", - "@tarojs/plugin-platform-h5": "3.6.25", - "@tarojs/plugin-platform-harmony-hybrid": "3.6.25", - "@tarojs/plugin-platform-jd": "3.6.25", - "@tarojs/plugin-platform-qq": "3.6.25", - "@tarojs/plugin-platform-swan": "3.6.25", - "@tarojs/plugin-platform-tt": "3.6.25", - "@tarojs/plugin-platform-weapp": "3.6.25", - "@tarojs/runtime": "3.6.25", - "@tarojs/shared": "3.6.25", - "@tarojs/taro": "3.6.25", - "dayjs": "^1.11.10", - "pinia": "^2.1.7", - "pinia-plugin-persistedstate": "^4.0.1", - "vue": "^3.0.0" - }, - "devDependencies": { - "@babel/core": "^7.8.0", - "@nutui/auto-import-resolver": "^1.0.0", - "@tarojs/cli": "3.6.25", - "@tarojs/taro-loader": "3.6.25", - "@tarojs/test-utils-vue3": "^0.1.1", - "@tarojs/webpack5-runner": "3.6.25", - "@types/jest": "^29.3.1", - "@types/node": "^18.15.11", - "@types/qrcode": "^1.5.5", - "@types/webpack-env": "^1.13.6", - "@typescript-eslint/eslint-plugin": "^6.2.0", - "@typescript-eslint/parser": "^6.2.0", - "@vue/babel-plugin-jsx": "^1.0.6", - "@vue/compiler-sfc": "^3.0.0", - "babel-preset-taro": "3.6.25", - "css-loader": "3.4.2", - "eslint": "^8.12.0", - "eslint-config-taro": "3.6.25", - "eslint-plugin-vue": "^8.0.0", - "jest": "^29.3.1", - "jest-environment-jsdom": "^29.5.0", - "postcss": "^8.4.18", - "style-loader": "1.3.0", - "stylelint": "^14.4.0", - "ts-node": "^10.9.1", - "tsconfig-paths-webpack-plugin": "^4.1.0", - "typescript": "^5.1.0", - "unplugin-vue-components": "^0.26.0", - "vue-loader": "^17.0.0", - "webpack": "5.78.0" - } -} diff --git a/collect_information/project.config.json b/collect_information/project.config.json deleted file mode 100644 index 4959a1d..0000000 --- a/collect_information/project.config.json +++ /dev/null @@ -1,32 +0,0 @@ -{ - "miniprogramRoot": "dist/", - "projectname": "collect_information", - "description": "警保联勤联动小程序", - "setting": { - "urlCheck": false, - "es6": false, - "enhance": false, - "compileHotReLoad": true, - "postcss": false, - "minified": false, - "babelSetting": { - "ignore": [], - "disablePlugins": [], - "outputPath": "" - }, - "ignoreUploadUnusedFiles": true - }, - "compileType": "miniprogram", - "libVersion": "3.5.0", - "srcMiniprogramRoot": "dist/", - "packOptions": { - "ignore": [], - "include": [] - }, - "condition": {}, - "editorSetting": { - "tabIndent": "insertSpaces", - "tabSize": 2 - }, - "appid": "wx8902ddbfddb820d1" -} diff --git a/collect_information/project.private.config.json b/collect_information/project.private.config.json deleted file mode 100644 index 99e9c4e..0000000 --- a/collect_information/project.private.config.json +++ /dev/null @@ -1,62 +0,0 @@ -{ - "description": "项目私有配置文件。此文件中的内容将覆盖 project.config.json 中的相同字段。项目的改动优先同步到此文件中。详见文档:https://developers.weixin.qq.com/miniprogram/dev/devtools/projectconfig.html", - "projectname": "collect_information", - "setting": { - "compileHotReLoad": true - }, - "condition": { - "miniprogram": { - "list": [ - { - "name": "pages/projectManager/myProject/myProject", - "pathName": "pages/projectManager/myProject/myProject", - "query": "", - "launchMode": "default", - "scene": null - }, - { - "name": "", - "pathName": "pages/mine/mine", - "query": "", - "launchMode": "default", - "scene": null - }, - { - "name": "", - "pathName": "pages/login/login", - "query": "", - "launchMode": "default", - "scene": null - }, - { - "name": "", - "pathName": "pages/mine/mine", - "query": "", - "launchMode": "default", - "scene": null - }, - { - "name": "", - "pathName": "pages/index/index", - "query": "", - "launchMode": "default", - "scene": null - }, - { - "name": "", - "pathName": "pages/index/dataEntry/buildFloorEntry/buildFloorEntry", - "query": "", - "launchMode": "default", - "scene": null - }, - { - "name": "", - "pathName": "pages/register/register", - "query": "", - "launchMode": "default", - "scene": null - } - ] - } - } -} \ No newline at end of file diff --git a/collect_information/project.tt.json b/collect_information/project.tt.json deleted file mode 100644 index 409b7a0..0000000 --- a/collect_information/project.tt.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "miniprogramRoot": "./", - "projectname": "collect_information", - "appid": "testAppId", - "setting": { - "es6": false, - "minified": false - } -} diff --git a/collect_information/src/app.config.ts b/collect_information/src/app.config.ts deleted file mode 100644 index 2adbd2d..0000000 --- a/collect_information/src/app.config.ts +++ /dev/null @@ -1,57 +0,0 @@ -export default defineAppConfig({ - pages: [ - 'pages/login/login', - 'pages/register/register', - 'pages/projectManager/index/index', - 'pages/policeManager/index/index', - 'pages/mine/mine', - 'pages/employeeInfo/employeeInfo', - ], - window: { - backgroundTextStyle: 'light', - navigationBarBackgroundColor: '#4e87ff', - navigationBarTitleText: '', - navigationBarTextStyle:'white', - }, - subpackages: [ - { - root: "subPages", - pages: [ - 'pages/policeManager/index', - 'pages/policeDetails/index', - 'pages/myProject/myProject', - 'pages/projectDetails/projectDetails', - 'pages/form/form' - ] - } - ], - tabBar: { - custom: true, - list: [ - { - pagePath: 'pages/projectManager/index/index', - text: '首页', - iconPath: "assets/mine/punch.png", - selectedIconPath: "assets/mine/punch-active.png" - }, - { - pagePath: 'pages/policeManager/index/index', - text: '首页', - iconPath: "assets/mine/punch.png", - selectedIconPath: "assets/mine/punch-active.png" - }, - { - pagePath: 'pages/employeeInfo/employeeInfo', - text: '员工信息', - iconPath: "assets/mine/punch.png", - selectedIconPath: "assets/mine/punch-active.png" - }, - { - pagePath: 'pages/mine/mine', - text: '我的', - iconPath: "assets/mine/my.png", - selectedIconPath: "assets/mine/my-active.png" - }, - ] - } -}) diff --git a/collect_information/src/app.scss b/collect_information/src/app.scss deleted file mode 100644 index 0570844..0000000 --- a/collect_information/src/app.scss +++ /dev/null @@ -1,4 +0,0 @@ -*{ - margin: 0; - padding: 0; -} diff --git a/collect_information/src/app.ts b/collect_information/src/app.ts deleted file mode 100644 index 73ccbb1..0000000 --- a/collect_information/src/app.ts +++ /dev/null @@ -1,38 +0,0 @@ -import {createApp} from 'vue' -import {createPinia} from 'pinia' -import {useCounterStore} from '@/store' -import './app.scss' -import './assets/scss/colorui.scss' -import Taro from "@tarojs/taro"; -const pinia = createPinia() -// import piniaPluginPersistedstate from 'pinia-plugin-persistedstate' -// pinia.use(piniaPluginPersistedstate) -const App = createApp({ - onShow(options) { - // try { - // const store = useCounterStore() - // const token = Taro.getStorageSync('token') - // console.log(token) - // if (token) { - // Taro.switchTab({ - // url: '/pages/mine/mine' - // // url: '/pages/projectManager/index/index' - // - // }) - // store.setSelected(2) - // } else { - // console.log(2222) - // } - // console.log('App onShow.') - // } catch (err) { - // console.log(err) - // - // } - - }, - // 入口组件不需要实现 render 方法,即使实现了也会被 taro 所覆盖 -}) - -App.use(pinia) - -export default App diff --git a/collect_information/src/assets/images/01.png b/collect_information/src/assets/images/01.png deleted file mode 100644 index b66fa47..0000000 Binary files a/collect_information/src/assets/images/01.png and /dev/null differ diff --git a/collect_information/src/assets/images/arrow.png b/collect_information/src/assets/images/arrow.png deleted file mode 100644 index 521b08a..0000000 Binary files a/collect_information/src/assets/images/arrow.png and /dev/null differ diff --git a/collect_information/src/assets/images/banner.jpg b/collect_information/src/assets/images/banner.jpg deleted file mode 100644 index f29618c..0000000 Binary files a/collect_information/src/assets/images/banner.jpg and /dev/null differ diff --git a/collect_information/src/assets/images/project.png b/collect_information/src/assets/images/project.png deleted file mode 100644 index 8de6ed4..0000000 Binary files a/collect_information/src/assets/images/project.png and /dev/null differ diff --git a/collect_information/src/assets/mine/my-active.png b/collect_information/src/assets/mine/my-active.png deleted file mode 100644 index 907d8a6..0000000 Binary files a/collect_information/src/assets/mine/my-active.png and /dev/null differ diff --git a/collect_information/src/assets/mine/my.png b/collect_information/src/assets/mine/my.png deleted file mode 100644 index da73231..0000000 Binary files a/collect_information/src/assets/mine/my.png and /dev/null differ diff --git a/collect_information/src/assets/mine/punch-active.png b/collect_information/src/assets/mine/punch-active.png deleted file mode 100644 index 0098eb3..0000000 Binary files a/collect_information/src/assets/mine/punch-active.png and /dev/null differ diff --git a/collect_information/src/assets/mine/punch.png b/collect_information/src/assets/mine/punch.png deleted file mode 100644 index e8ef36b..0000000 Binary files a/collect_information/src/assets/mine/punch.png and /dev/null differ diff --git a/collect_information/src/assets/scss/colorui.scss b/collect_information/src/assets/scss/colorui.scss deleted file mode 100644 index 199b446..0000000 --- a/collect_information/src/assets/scss/colorui.scss +++ /dev/null @@ -1,308 +0,0 @@ -/* -- 内外边距 -- */ -.margin-0 { - margin: 0; -} - -.margin-xs { - margin: 10rpx; -} - -.margin-sm { - margin: 20rpx; -} - -.margin { - margin: 30rpx; -} - -.margin-lg { - margin: 40rpx; -} - -.margin-xl { - margin: 50rpx; -} - -.margin-top-xs { - margin-top: 10rpx; -} - -.margin-top-sm { - margin-top: 20rpx; -} - -.margin-top { - margin-top: 30rpx; -} - -.margin-top-lg { - margin-top: 40rpx; -} - -.margin-top-xl { - margin-top: 50rpx; -} - -.margin-right-xs { - margin-right: 10rpx; -} - -.margin-right-sm { - margin-right: 20rpx; -} - -.margin-right { - margin-right: 30rpx; -} - -.margin-right-lg { - margin-right: 40rpx; -} - -.margin-right-xl { - margin-right: 50rpx; -} - -.margin-bottom-xs { - margin-bottom: 10rpx; -} - -.margin-bottom-sm { - margin-bottom: 20rpx; -} - -.margin-bottom { - margin-bottom: 30rpx; -} - -.margin-bottom-lg { - margin-bottom: 40rpx; -} - -.margin-bottom-xl { - margin-bottom: 50rpx; -} - -.margin-left-xs { - margin-left: 10rpx; -} - -.margin-left-sm { - margin-left: 20rpx; -} - -.margin-left { - margin-left: 30rpx; -} - -.margin-left-lg { - margin-left: 40rpx; -} - -.margin-left-xl { - margin-left: 50rpx; -} - -.margin-lr-xs { - margin-left: 10rpx; - margin-right: 10rpx; -} - -.margin-lr-sm { - margin-left: 20rpx; - margin-right: 20rpx; -} - -.margin-lr { - margin-left: 30rpx; - margin-right: 30rpx; -} - -.margin-lr-lg { - margin-left: 40rpx; - margin-right: 40rpx; -} - -.margin-lr-xl { - margin-left: 50rpx; - margin-right: 50rpx; -} - -.margin-tb-xs { - margin-top: 10rpx; - margin-bottom: 10rpx; -} - -.margin-tb-sm { - margin-top: 20rpx; - margin-bottom: 20rpx; -} - -.margin-tb { - margin-top: 30rpx; - margin-bottom: 30rpx; -} - -.margin-tb-lg { - margin-top: 40rpx; - margin-bottom: 40rpx; -} - -.margin-tb-xl { - margin-top: 50rpx; - margin-bottom: 50rpx; -} - -.padding-0 { - padding: 0; -} - -.padding-xs { - padding: 10rpx; -} - -.padding-sm { - padding: 20rpx; -} - -.padding { - padding: 30rpx; -} - -.padding-lg { - padding: 40rpx; -} - -.padding-xl { - padding: 50rpx; -} - -.padding-top-xs { - padding-top: 10rpx; -} - -.padding-top-sm { - padding-top: 20rpx; -} - -.padding-top { - padding-top: 30rpx; -} - -.padding-top-lg { - padding-top: 40rpx; -} - -.padding-top-xl { - padding-top: 50rpx; -} - -.padding-right-xs { - padding-right: 10rpx; -} - -.padding-right-sm { - padding-right: 20rpx; -} - -.padding-right { - padding-right: 30rpx; -} - -.padding-right-lg { - padding-right: 40rpx; -} - -.padding-right-xl { - padding-right: 50rpx; -} - -.padding-bottom-xs { - padding-bottom: 10rpx; -} - -.padding-bottom-sm { - padding-bottom: 20rpx; -} - -.padding-bottom { - padding-bottom: 30rpx; -} - -.padding-bottom-lg { - padding-bottom: 40rpx; -} - -.padding-bottom-xl { - padding-bottom: 50rpx; -} - -.padding-left-xs { - padding-left: 10rpx; -} - -.padding-left-sm { - padding-left: 20rpx; -} - -.padding-left { - padding-left: 30rpx; -} - -.padding-left-lg { - padding-left: 40rpx; -} - -.padding-left-xl { - padding-left: 50rpx; -} - -.padding-lr-xs { - padding-left: 10rpx; - padding-right: 10rpx; -} - -.padding-lr-sm { - padding-left: 20rpx; - padding-right: 20rpx; -} - -.padding-lr { - padding-left: 30rpx; - padding-right: 30rpx; -} - -.padding-lr-lg { - padding-left: 40rpx; - padding-right: 40rpx; -} - -.padding-lr-xl { - padding-left: 50rpx; - padding-right: 50rpx; -} - -.padding-tb-xs { - padding-top: 10rpx; - padding-bottom: 10rpx; -} - -.padding-tb-sm { - padding-top: 20rpx; - padding-bottom: 20rpx; -} - -.padding-tb { - padding-top: 30rpx; - padding-bottom: 30rpx; -} - -.padding-tb-lg { - padding-top: 40rpx; - padding-bottom: 40rpx; -} - -.padding-tb-xl { - padding-top: 50rpx; - padding-bottom: 50rpx; -} diff --git a/collect_information/src/custom-tab-bar/index.json.js b/collect_information/src/custom-tab-bar/index.json.js deleted file mode 100644 index 29210de..0000000 --- a/collect_information/src/custom-tab-bar/index.json.js +++ /dev/null @@ -1,3 +0,0 @@ -export default { - "component": true -} diff --git a/collect_information/src/custom-tab-bar/index.vue b/collect_information/src/custom-tab-bar/index.vue deleted file mode 100644 index f2b91fb..0000000 --- a/collect_information/src/custom-tab-bar/index.vue +++ /dev/null @@ -1,74 +0,0 @@ - - - - - diff --git a/collect_information/src/enums/index.ts b/collect_information/src/enums/index.ts deleted file mode 100644 index 3566495..0000000 --- a/collect_information/src/enums/index.ts +++ /dev/null @@ -1,34 +0,0 @@ -export const SEX: SelectNode[] = [ - { - value: 0, - label: "男", - }, - { - value: 1, - label: "女", - }, - { - value: 2, - label: "隐藏", - } -]; - -export const IDENTITY: SelectNode[] = [ - { - label: "公安", - value: "police" - }, - { - label: "项目经理", - value: "project_manager" - }, -] - -export const getLabelByEnumValue = (enums: SelectNode[], value: any): string => { - for (let i = 0; i < enums.length; i++) { - if (enums[i].value === value) { - return enums[i].label - } - } - return '-' -} diff --git a/collect_information/src/index.html b/collect_information/src/index.html deleted file mode 100644 index 21009d9..0000000 --- a/collect_information/src/index.html +++ /dev/null @@ -1,17 +0,0 @@ - - - - - - - - - - - collect_information - - - -
- - diff --git a/collect_information/src/pages/employeeInfo/employeeInfo.config.ts b/collect_information/src/pages/employeeInfo/employeeInfo.config.ts deleted file mode 100644 index ca739e2..0000000 --- a/collect_information/src/pages/employeeInfo/employeeInfo.config.ts +++ /dev/null @@ -1,4 +0,0 @@ -export default definePageConfig({ - // navigationBarTitleText: '自定义导航栏', - navigationStyle: "custom" -}) diff --git a/collect_information/src/pages/employeeInfo/employeeInfo.scss b/collect_information/src/pages/employeeInfo/employeeInfo.scss deleted file mode 100644 index 139597f..0000000 --- a/collect_information/src/pages/employeeInfo/employeeInfo.scss +++ /dev/null @@ -1,2 +0,0 @@ - - diff --git a/collect_information/src/pages/employeeInfo/employeeInfo.vue b/collect_information/src/pages/employeeInfo/employeeInfo.vue deleted file mode 100644 index 77742df..0000000 --- a/collect_information/src/pages/employeeInfo/employeeInfo.vue +++ /dev/null @@ -1,21 +0,0 @@ - - - diff --git a/collect_information/src/pages/login/login.config.ts b/collect_information/src/pages/login/login.config.ts deleted file mode 100644 index 97683f1..0000000 --- a/collect_information/src/pages/login/login.config.ts +++ /dev/null @@ -1,3 +0,0 @@ -export default definePageConfig({ - navigationBarTitleText: '登录', -}) diff --git a/collect_information/src/pages/login/login.scss b/collect_information/src/pages/login/login.scss deleted file mode 100644 index 7977430..0000000 --- a/collect_information/src/pages/login/login.scss +++ /dev/null @@ -1,87 +0,0 @@ -.SignMultiple { - height: 100vh; - background: #f4f5f7; - position: relative; - - .urlIndex { - display: flex; - justify-content: center; - align-items: center; - padding: 0; - margin: 0; - width: 100%; - height: 440rpx; - background: #3a6bbe; - text-align: center; - overflow: hidden; - - .urlTitle { - width: 100%; - height: 300rpx; - - .urlWelcome { - color: #fff; - font-size: 24px; - } - - .urlHibiscus { - height: 200rpx; - line-height: 58rpx; - //font-size: 38rpx; - margin: 40rpx 20rpx; - border: 2px solid #a1b8e0; - display: flex; - justify-content: center; - - .contact { - height: 100rpx; - width: 100rpx; - border-radius: 50%; - border: solid 1px gray; - - .image { - width: 100%; - height: 100%; - border-radius: 50% - } - } - } - } - } - - .type { - margin: 0 20rpx 0 20rpx; - width: 29%; - text-align: right; - } - - .HiddenEse { - position: absolute; - top: 4px; - right: 0; - width: 76rpx; - height: 40rpx; - - image { - width: 40rpx; - height: 40rpx; - } - } - - .SignItem { - transform: translateY(15%); - display: flex; - flex-direction: column; - margin: 20rpx 48rpx; - border-radius: 20rpx; - } - - .Cancel { - display: flex; - flex-direction: column; - justify-content: center; - text-align: center; - margin: 20rpx 40rpx; - } - -} diff --git a/collect_information/src/pages/login/login.vue b/collect_information/src/pages/login/login.vue deleted file mode 100644 index 0ebac18..0000000 --- a/collect_information/src/pages/login/login.vue +++ /dev/null @@ -1,80 +0,0 @@ - - - diff --git a/collect_information/src/pages/mine/mine.config.ts b/collect_information/src/pages/mine/mine.config.ts deleted file mode 100644 index 18e4d2b..0000000 --- a/collect_information/src/pages/mine/mine.config.ts +++ /dev/null @@ -1,5 +0,0 @@ -export default definePageConfig({ - navigationBarTitleText: '我的', - navigationBarBackgroundColor:'#3d69dc', - navigationBarTextStyle:'white' -}) diff --git a/collect_information/src/pages/mine/mine.scss b/collect_information/src/pages/mine/mine.scss deleted file mode 100644 index 810e441..0000000 --- a/collect_information/src/pages/mine/mine.scss +++ /dev/null @@ -1,84 +0,0 @@ -.message { - height: 100vh; - background-color: #fff; -} - -.login-container { - height: 205rpx; - display: flex; - align-items: center; - background-image: url('../../assets/images/banner.jpg'); - background-repeat: no-repeat; - background-position: right; - overflow: hidden; - padding: 18rpx; - box-sizing: border-box; - - .contact { - height: 100rpx; - width: 100rpx; - border-radius: 50%; - border: solid 1px gray; - - .image { - width: 100%; - height: 100%; - border-radius: 50% - } - } - - .tips-text { - display: flex; - font-size: 28rpx; - color: #fff; - line-height: 50rpx; - margin-left: 20rpx; - flex-direction: column; - justify-content: space-evenly; - } -} - -.userIndex { - .exit { - height: 100rpx; - line-height: 40px; - border-bottom: solid 0.5px #ebebf7; - box-sizing: border-box; - display: flex; - justify-content: space-between; - align-items: center; - // margin-bottom: 30rpx; - color: #7d7d7d; - - .exitItem { - display: flex; - align-items: center; - margin-left: 30rpx; - } - - .exitItemIndex { - height: 40rpx; - width: 40rpx; - border-radius: 50%; - // border: solid 1px gray; - display: block; - line-height: 48rpx; - - image { - width: 100%; - height: 100%; - } - } - - .iconScope { - width: 8px; - height: 8px; - display: inline-block; - border: solid 2px #ccc; - -webkit-transform: rotate(45deg); - transform: rotate(45deg); - border-bottom: white; - border-left: white; - } - } -} diff --git a/collect_information/src/pages/mine/mine.vue b/collect_information/src/pages/mine/mine.vue deleted file mode 100644 index ba68e5e..0000000 --- a/collect_information/src/pages/mine/mine.vue +++ /dev/null @@ -1,17 +0,0 @@ - - - - diff --git a/collect_information/src/pages/policeManager/index/index.config.ts b/collect_information/src/pages/policeManager/index/index.config.ts deleted file mode 100644 index 16286d6..0000000 --- a/collect_information/src/pages/policeManager/index/index.config.ts +++ /dev/null @@ -1,4 +0,0 @@ -export default definePageConfig({ - navigationBarTitleText: '首页', - -}) diff --git a/collect_information/src/pages/policeManager/index/index.scss b/collect_information/src/pages/policeManager/index/index.scss deleted file mode 100644 index a3b707a..0000000 --- a/collect_information/src/pages/policeManager/index/index.scss +++ /dev/null @@ -1,39 +0,0 @@ -page { - background-color: #f0f0f0; -} - -.content { - width: 702rpx; - margin: 10rpx auto; - background-color: #fff; - border-radius: 10rpx; - height: 500rpx; - display: grid; - /* 定义两列,每列占据50%的宽度 */ - grid-template-columns: repeat(2, 1fr); - /* 定义两行,每行占据1fr(分数单位,表示剩余空间的一部分) */ - grid-template-rows: repeat(2, 1fr); - /* 可选:增加一些间隙 */ - gap: 10px; - - .grid-item { - //width: 100%; - display: flex; - flex-direction: column; - justify-content: center; - align-items: center; - - - .grid-item-image { - height: 150rpx; - width: 150rpx; - background-color: #f0f0f0; - border-radius: 50%; - } - - .grid-item-text { - - - } - } -} diff --git a/collect_information/src/pages/policeManager/index/index.vue b/collect_information/src/pages/policeManager/index/index.vue deleted file mode 100644 index 94154d2..0000000 --- a/collect_information/src/pages/policeManager/index/index.vue +++ /dev/null @@ -1,85 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/collect_information/src/pages/projectManager/index/index.config.ts b/collect_information/src/pages/projectManager/index/index.config.ts deleted file mode 100644 index 6b0b2af..0000000 --- a/collect_information/src/pages/projectManager/index/index.config.ts +++ /dev/null @@ -1,4 +0,0 @@ - -export default definePageConfig({ - navigationBarTitleText: '首页', -}) diff --git a/collect_information/src/pages/projectManager/index/index.scss b/collect_information/src/pages/projectManager/index/index.scss deleted file mode 100644 index 6ff8ef3..0000000 --- a/collect_information/src/pages/projectManager/index/index.scss +++ /dev/null @@ -1,44 +0,0 @@ - -.swiperDemoItem{ - color: #3886d0; - display: flex; - padding: 20px 0 0 50px; - overflow: hidden; - height: 70rpx; - .swiperDemoIndex{ - width: 15px; - height: 45px; - background-image: linear-gradient(to bottom , #5d9cf9, #317ad9); - //background: rgb(); - border-radius: 20px; - margin-right: 15px; - } -} -.subModule { - display: flex; - align-items: center; - flex-wrap: wrap; - margin-right: -3px; - margin-left: -1px; - .subModuleItem { - width: 33%; - height: 180rpx; - display: flex; - flex-direction: column; - align-items: center; - justify-content: center; - padding-bottom: 10rpx; - border: 1px solid #ccc; - border-left: 0; - margin-top: -1px; - .subModuleIndex { - width: 65rpx; - height: 65rpx; - image { - width: 100%; - height: 100%; - } - } - } -} - diff --git a/collect_information/src/pages/projectManager/index/index.vue b/collect_information/src/pages/projectManager/index/index.vue deleted file mode 100644 index 0c9a9a0..0000000 --- a/collect_information/src/pages/projectManager/index/index.vue +++ /dev/null @@ -1,67 +0,0 @@ - - - - diff --git a/collect_information/src/pages/register/register.config.ts b/collect_information/src/pages/register/register.config.ts deleted file mode 100644 index 7632e93..0000000 --- a/collect_information/src/pages/register/register.config.ts +++ /dev/null @@ -1,3 +0,0 @@ -export default definePageConfig({ - navigationBarTitleText: '用户注册' -}) diff --git a/collect_information/src/pages/register/register.scss b/collect_information/src/pages/register/register.scss deleted file mode 100644 index eaa1ebf..0000000 --- a/collect_information/src/pages/register/register.scss +++ /dev/null @@ -1,43 +0,0 @@ -.register { - height: 100vh; -} - -.nut-cell-group__wrap { - margin: 0; -} - -.registerIndex { - width: 100%; -} - -.registerBtn { - margin-top: 40rpx; - padding: 0 20px; -} - -.buttonChoose { - margin: 0; - border: none; - background: transparent; - outline: none; - padding: 0; - height: 90rpx; - width: 90rpx; - border-radius: 50%; -} - -.nickNameInput{ - color: black; -} - -.contact { - height: 83rpx; - width: 83rpx; - border-radius: 50%; - border: solid 1px gray; - - .image { - width: 100%; - height: 100%; - } -} diff --git a/collect_information/src/pages/register/register.vue b/collect_information/src/pages/register/register.vue deleted file mode 100644 index e3e7fc7..0000000 --- a/collect_information/src/pages/register/register.vue +++ /dev/null @@ -1,217 +0,0 @@ - - - diff --git a/collect_information/src/request/index.ts b/collect_information/src/request/index.ts deleted file mode 100644 index 0947285..0000000 --- a/collect_information/src/request/index.ts +++ /dev/null @@ -1,89 +0,0 @@ -import Taro from "@tarojs/taro"; -import {ApiOptions} from "../../types/request"; -import {type} from "os"; - -const requestInterceptor = (chain: Taro.Chain) => { - const requestParams = chain.requestParams - const token = Taro.getStorageSync('token') - if (token) { - requestParams.header = { - ...requestParams.header, - token: token.value - } - } - return chain.proceed(requestParams) -} - -class CustomRequest { - BASE_API: string - - public constructor() { - this.BASE_API = process.env.TARO_APP_BASE_API - Taro.addInterceptor(requestInterceptor) - } - - private request(url: string, method: keyof Taro.request.Method, options: ApiOptions, params?: object,): Promise> { - return new Promise>((resolve, reject) => { - if (options.loading) { - Taro.showLoading({ - title: '请求中...', - }).then() - } - - Taro.request, object>({ - url: this.BASE_API + url, - data: params, - method, - ...options, - success: (result) => { - Taro.hideLoading() - const jsonResult = result.data - if (jsonResult.code !== 200) { - if ([401].includes(jsonResult.code)) { - //todo 重新登录 跳转登录页 提示错误 - } - Taro.showToast({ - title: jsonResult.message, - icon: 'none', - mask: true, - duration: 2000 - }).then() - reject(jsonResult); - } - resolve(jsonResult); - }, - fail: (res) => { - Taro.hideLoading() - Taro.showToast({ - title: res.errMsg, - icon: 'none', - mask: true, - duration: 2000 - }).then() - reject(res.errMsg); - console.log(res.errMsg, '000') - } - }) - }) - } - - get(url: string, params?: object, options: ApiOptions = {loading: false}): Promise> { - return this.request(url, "GET", options, params) - } - - post(url: string, params?: object, options: ApiOptions = {loading: false}): Promise> { - return this.request(url, "POST", options, params) - } - - delete(url: string, params?: object, options: ApiOptions = {loading: false}): Promise> { - return this.request(url, "DELETE", options, params) - } - - put(url: string, params?: object, options: ApiOptions = {loading: false}): Promise> { - return this.request(url, "PUT", options, params) - } -} - -const api = new CustomRequest(); - -export default api diff --git a/collect_information/src/store/index.ts b/collect_information/src/store/index.ts deleted file mode 100644 index e29a946..0000000 --- a/collect_information/src/store/index.ts +++ /dev/null @@ -1,51 +0,0 @@ -import {defineStore} from 'pinia' -import Taro from '@tarojs/taro' - -export const useCounterStore = defineStore('counter', { - state: () => { - return { - userInfo: {}, - selected: 0, - list: Taro.getStorageSync('list') || [ - { - pagePath: '/pages/projectManager/index/index', - text: '首页', - iconPath: "/assets/mine/punch.png", - selectedIconPath: "/assets/mine/punch-active.png" - }, - { - pagePath: '/pages/employeeInfo/employeeInfo', - text: '员工信息', - iconPath: "/assets/mine/punch.png", - selectedIconPath: "/assets/mine/punch-active.png" - }, - { - pagePath: '/pages/mine/mine', - text: '我的', - iconPath: "/assets/mine/my.png", - selectedIconPath: "/assets/mine/my-active.png" - }, - ] - } - }, - actions: { - setSelected(index: number) { - this.selected = index - }, - updateHomePagePath(newPath: string) { - this.list[0].pagePath = newPath - // 更新 list 后存储到小程序本地存储 - Taro.setStorageSync('list', this.list) - } - }, - getters: { - getSelected: (state) => state.selected, - getList: (state) => state.list - }, - persist: { - // key: 'my-store', // 存储到 localStorage 的 key - // storage: localStorage, // 持久化方式为 localStorage - // paths: ['list'] // 持久化 list - } -}) - diff --git a/collect_information/src/store/userStore.ts b/collect_information/src/store/userStore.ts deleted file mode 100644 index e69de29..0000000 diff --git a/collect_information/src/subPages/pages/form/form.config.ts b/collect_information/src/subPages/pages/form/form.config.ts deleted file mode 100644 index 7652664..0000000 --- a/collect_information/src/subPages/pages/form/form.config.ts +++ /dev/null @@ -1,3 +0,0 @@ -export default definePageConfig({ - navigationBarTitleText: '项目人员录入', -}) diff --git a/collect_information/src/subPages/pages/form/form.scss b/collect_information/src/subPages/pages/form/form.scss deleted file mode 100644 index 93df7ae..0000000 --- a/collect_information/src/subPages/pages/form/form.scss +++ /dev/null @@ -1,8 +0,0 @@ -.form{ - .formButton{ - display: flex; - margin-top: auto; - justify-content: space-around; - margin-bottom: 30px - } -} diff --git a/collect_information/src/subPages/pages/form/form.vue b/collect_information/src/subPages/pages/form/form.vue deleted file mode 100644 index 012dc8f..0000000 --- a/collect_information/src/subPages/pages/form/form.vue +++ /dev/null @@ -1,168 +0,0 @@ - - - - diff --git a/collect_information/src/subPages/pages/myProject/myProject.vue b/collect_information/src/subPages/pages/myProject/myProject.vue deleted file mode 100644 index 32eadff..0000000 --- a/collect_information/src/subPages/pages/myProject/myProject.vue +++ /dev/null @@ -1,60 +0,0 @@ - - - - - - - diff --git a/collect_information/src/subPages/pages/myProject/myproject.config.ts b/collect_information/src/subPages/pages/myProject/myproject.config.ts deleted file mode 100644 index 7bccd60..0000000 --- a/collect_information/src/subPages/pages/myProject/myproject.config.ts +++ /dev/null @@ -1,3 +0,0 @@ -export default definePageConfig({ - navigationBarTitleText: '我的项目', -}) diff --git a/collect_information/src/subPages/pages/myProject/myproject.scss b/collect_information/src/subPages/pages/myProject/myproject.scss deleted file mode 100644 index 867ee38..0000000 --- a/collect_information/src/subPages/pages/myProject/myproject.scss +++ /dev/null @@ -1,31 +0,0 @@ -.myProject{ - height: 100vh; - overflow: hidden; - background: #f1f1f1; - .myProjectItem{ - //height: 20%; - margin: 20px; - border-radius: 10px; - background: #ffffff; - padding: 15px; - font-size: 28px; - line-height: 50px; - color: #333333; - .myProjectIndex{ - color: #9b9b9f; - } - .project{ - display: flex; - justify-content: space-between; - flex-flow: wrap; - text-align: center; - view{ - width: 45%; - height: 100rpx; - border: 1px solid #cccccc; - line-height: 100rpx; - margin: 8px 0 8px 0; - } - } - } -} diff --git a/collect_information/src/subPages/pages/policeDetails/index.config.ts b/collect_information/src/subPages/pages/policeDetails/index.config.ts deleted file mode 100644 index c155561..0000000 --- a/collect_information/src/subPages/pages/policeDetails/index.config.ts +++ /dev/null @@ -1,4 +0,0 @@ -export default definePageConfig({ - navigationBarTitleText: '项目详情', - -}) diff --git a/collect_information/src/subPages/pages/policeDetails/index.scss b/collect_information/src/subPages/pages/policeDetails/index.scss deleted file mode 100644 index 3bddb3c..0000000 --- a/collect_information/src/subPages/pages/policeDetails/index.scss +++ /dev/null @@ -1,71 +0,0 @@ -.projectDetails{ - height: 100vh; - overflow: hidden; - background: #f1f1f1; - display: flex; - flex-direction: column; - .projectDetailsItem{ - margin: 10px 20px 10px 20px; - border-radius: 10px; - background: #ffffff; - padding: 15px; - font-size: 28px; - line-height: 65px; - color: #333333; - .projectDetailsIndex{ - display: flex; - flex-wrap: wrap; - line-height: 44rpx; - margin-bottom: 20px; - .content{ - color: #9b9b9f; - } - } - } - .projectDetailsTableDrop{ - height: 80%; - .projectDetailsTable{ - margin: 20px; - border-radius: 10px; - background: #ffffff; - padding: 15px; - font-size: 28px; - line-height: 50px; - color: #333333; - .projectDetailsTableItem{ - //display: flex; - justify-content: space-between; - align-items: center; - flex-wrap: wrap; - font-size: 24px; - margin-bottom: 15px; - .projectDetailsTableIndex{ - display: flex; - justify-content: flex-end; - text-align: center; - view{ - width: 70px; - margin-right: 20px; - } - } - } - } - } - .projectDetailsButton{ - position: fixed; - bottom: 19px; - display: flex; - -webkit-justify-content: space-around; - margin-bottom: 10rpx; - right: 0; - width: 100%; - } - .nutPopup{ - width: 300px; - height: 100px; - display: flex; - flex-wrap: wrap; - } -} - - diff --git a/collect_information/src/subPages/pages/policeDetails/index.vue b/collect_information/src/subPages/pages/policeDetails/index.vue deleted file mode 100644 index c6d5ba6..0000000 --- a/collect_information/src/subPages/pages/policeDetails/index.vue +++ /dev/null @@ -1,145 +0,0 @@ - - - diff --git a/collect_information/src/subPages/pages/policeManager/index.config.ts b/collect_information/src/subPages/pages/policeManager/index.config.ts deleted file mode 100644 index 30c5ed6..0000000 --- a/collect_information/src/subPages/pages/policeManager/index.config.ts +++ /dev/null @@ -1,4 +0,0 @@ -export default definePageConfig({ - navigationBarTitleText: '企事业单位', - -}) diff --git a/collect_information/src/subPages/pages/policeManager/index.scss b/collect_information/src/subPages/pages/policeManager/index.scss deleted file mode 100644 index b1dd448..0000000 --- a/collect_information/src/subPages/pages/policeManager/index.scss +++ /dev/null @@ -1,35 +0,0 @@ -page { - background-color: #f0f0f0; -} - -.myProject { - .myProjectItem { - margin: 20px; - border-radius: 10px; - background: #ffffff; - padding: 15px; - font-size: 28px; - line-height: 50px; - color: #333333; - - .myProjectIndex { - color: #9b9b9f; - } - - .project { - display: flex; - justify-content: space-between; - flex-flow: wrap; - text-align: center; - - view { - width: 45%; - height: 100rpx; - border: 1px solid #cccccc; - line-height: 100rpx; - margin: 8px 0 8px 0; - } - } - } -} - diff --git a/collect_information/src/subPages/pages/policeManager/index.vue b/collect_information/src/subPages/pages/policeManager/index.vue deleted file mode 100644 index e8d67a4..0000000 --- a/collect_information/src/subPages/pages/policeManager/index.vue +++ /dev/null @@ -1,57 +0,0 @@ - - - - - - - - - diff --git a/collect_information/src/subPages/pages/projectDetails/projectDetails.config.ts b/collect_information/src/subPages/pages/projectDetails/projectDetails.config.ts deleted file mode 100644 index c155561..0000000 --- a/collect_information/src/subPages/pages/projectDetails/projectDetails.config.ts +++ /dev/null @@ -1,4 +0,0 @@ -export default definePageConfig({ - navigationBarTitleText: '项目详情', - -}) diff --git a/collect_information/src/subPages/pages/projectDetails/projectDetails.scss b/collect_information/src/subPages/pages/projectDetails/projectDetails.scss deleted file mode 100644 index 5ede9f2..0000000 --- a/collect_information/src/subPages/pages/projectDetails/projectDetails.scss +++ /dev/null @@ -1,92 +0,0 @@ -.projectDetails{ - height: 100vh; - overflow: hidden; - background: #f1f1f1; - display: flex; - flex-direction: column; - .projectDetailsItem{ - margin: 10px 20px 10px 20px; - border-radius: 10px; - background: #ffffff; - padding: 15px; - font-size: 28px; - line-height: 65px; - color: #333333; - .projectDetailsIndex{ - display: flex; - flex-wrap: wrap; - line-height: 44rpx; - margin-bottom: 20px; - .content{ - color: #9b9b9f; - } - } - } - .projectDetailsTableDrop{ - height: 80%; - .projectDetailsTable{ - margin: 20px; - border-radius: 10px; - background: #ffffff; - padding: 15px; - font-size: 28px; - line-height: 50px; - color: #333333; - .projectDetailsTableItem{ - //display: flex; - justify-content: space-between; - align-items: center; - flex-wrap: wrap; - font-size: 24px; - margin-bottom: 15px; - .projectDetailsTableIndex{ - display: flex; - justify-content: flex-end; - text-align: center; - view{ - width: 70px; - margin-right: 20px; - } - } - } - } - } - .projectDetailsButton{ - position: fixed; - bottom: 19px; - display: flex; - -webkit-justify-content: space-around; - margin-bottom: 10rpx; - right: 0; - width: 100%; - } - .nutPopup{ - width: 300px; - height: 100px; - display: flex; - flex-wrap: wrap; - } - .qrcodeVisibleUrl{ - margin-bottom: 5px; - image { - width: 100%; - } - } - .warp{ - display: flex; - align-items: center; - justify-content: center; - height: 100vh; - .warpItem{ - width: 90%; - height: 50%; - text-align: center; - .rect{ - width: 100%; - height: 100%; - } - } - } -} - - diff --git a/collect_information/src/subPages/pages/projectDetails/projectDetails.vue b/collect_information/src/subPages/pages/projectDetails/projectDetails.vue deleted file mode 100644 index 51231ab..0000000 --- a/collect_information/src/subPages/pages/projectDetails/projectDetails.vue +++ /dev/null @@ -1,279 +0,0 @@ - - - diff --git a/collect_information/src/utils/index.ts b/collect_information/src/utils/index.ts deleted file mode 100644 index 6fab107..0000000 --- a/collect_information/src/utils/index.ts +++ /dev/null @@ -1,67 +0,0 @@ -import Taro from "@tarojs/taro"; - - -/** - * 授权综合逻辑 - * @param {*} scope 权限代表 - * @param {*} successCallback 成功回调 - * @param {*} failCallback 失败回调 - */ -export function pullAuth(scope, successCallback, failCallback) { - const map = new Map([ - ['scope.userInfo', '用户信息'], - ['scope.userLocation', '地理位置'], - ['scope.userLocationBackground', '后台定位'], - ['scope.address', '通信地址'], - ['scope.record', '录音功能'], - ['scope.writePhotosAlbum', '保存到相册'], - ['scope.camera', '摄像头'], - ['scope.invoice', '获取发票'], - ['scope.invoiceTitle', '发票抬头'], - ['scope.werun', '微信运动步数'], - ]) - Taro.getSetting({ - success(res) { - if (!res.authSetting[scope]) { - Taro.authorize({ - scope, - success(){ // 允许授权 - successCallback() - }, - fail(){ // 拒绝授权 - if (map.has(scope)) { - let word = map.get(scope) - Taro.showModal({ - content:`检测到您没打开${word}权限,是否去设置打开?`, - confirmText: "确认", - cancelText:'取消', - success: (res) => { - if(res.confirm){ - Taro.openSetting({ - success: (res) => { - successCallback() - }, - fail: () => { - failCallback() - }, - }) - }else{ - failCallback() - } - } - }) - } else { - Taro.showToast({ - title: '无此授权功能' - }) - failCallback() - } - } - }) - } else { - successCallback() - } - } - }) - -} diff --git a/collect_information/tsconfig.json b/collect_information/tsconfig.json deleted file mode 100644 index 39a09c5..0000000 --- a/collect_information/tsconfig.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "compilerOptions": { - "target": "es2017", - "module": "commonjs", - "removeComments": false, - "preserveConstEnums": true, - "moduleResolution": "node", - "experimentalDecorators": true, - "noImplicitAny": false, - "allowSyntheticDefaultImports": true, - "outDir": "lib", - "noUnusedLocals": false, - "noUnusedParameters": false, - "strictNullChecks": false, - "sourceMap": true, - "rootDir": ".", - "jsx": "preserve", - "allowJs": true, - "resolveJsonModule": true, - "typeRoots": [ - "node_modules/@types" - ], - "paths": { - "@/*": [ - "src/*" - ] - } - }, - "include": [ - "./src", - "./types", - "./config" - ], - "compileOnSave": false -} diff --git a/collect_information/types/global.d.ts b/collect_information/types/global.d.ts deleted file mode 100644 index 9a263b5..0000000 --- a/collect_information/types/global.d.ts +++ /dev/null @@ -1,85 +0,0 @@ -/// - -declare module '*.png'; -declare module '*.gif'; -declare module '*.jpg'; -declare module '*.jpeg'; -declare module '*.svg'; -declare module '*.css'; -declare module '*.less'; -declare module '*.scss'; -declare module '*.sass'; -declare module '*.styl'; - -declare namespace NodeJS { - interface ProcessEnv { - /** NODE 内置环境变量, 会影响到最终构建生成产物 */ - NODE_ENV: 'development' | 'production', - /** 当前构建的平台 */ - TARO_ENV: 'weapp' | 'swan' | 'alipay' | 'h5' | 'rn' | 'tt' | 'quickapp' | 'qq' | 'jd' - /** - * 当前构建的小程序 appid - * @description 若不同环境有不同的小程序,可通过在 env 文件中配置环境变量`TARO_APP_ID`来方便快速切换 appid, 而不必手动去修改 dist/project.config.json 文件 - * @see https://taro-docs.jd.com/docs/next/env-mode-config#特殊环境变量-taro_app_id - */ - TARO_APP_ID: string, - TARO_APP_BASE_API: string - } -} - -declare module '@tarojs/components' { - export * from '@tarojs/components/types/index.vue3' -} - -/** - * 选择 - */ -interface SelectNode { - value: T, - label: string, - options?: SelectNode[] - orderIndex?: number, - disabled?: boolean, - extData?: Record -} - -interface JsonResult { - code: number; - data?: T; - message: string; -} - -/** - * 树 - */ -interface TreeNode { - value: T, - parentValue: T, - label: string, - orderIndex?: number, - extData?: Record, - children?: TreeNode[] -} - - -interface TokenInfo> { - name: string; - value: string; - extData?: T -} - -/** - * 基本枚举类型 - */ -interface BaseEnum> { - value: T; - label: string; - extData: E; -} - - - interface IconFontProps { - fontClass?: string, - size?: number, - type?: 'class' | 'svg' -} diff --git a/collect_information/types/pages/form/index.d.ts b/collect_information/types/pages/form/index.d.ts deleted file mode 100644 index 6c51ace..0000000 --- a/collect_information/types/pages/form/index.d.ts +++ /dev/null @@ -1,15 +0,0 @@ -interface formDate { - snowFlakeId?: string; - securityUnitId:string; - serviceProjectId: string; - name?: string; - workPost?: string; - telephone?: string; - sex: number; - nativePlace?: string; - idCard: string; - dateOfBirth?: Date; - securityNumber?: string; - remark?: string; - homeAddress?: string -} diff --git a/collect_information/types/pages/index/index.d.ts b/collect_information/types/pages/index/index.d.ts deleted file mode 100644 index f2e0c2f..0000000 --- a/collect_information/types/pages/index/index.d.ts +++ /dev/null @@ -1,39 +0,0 @@ -interface PersonnelInformation { - name: string, - sex: number, - dataOfBirth: Date | string, - idCard: string, - phone: string, - householdRegistrationAddress: string, - streetCommunitySmallCommunityIds: string[], - buildingFloorHouseIds: string[] -} - -interface EnterUserInfoSaveOrUpdateParams { - snowFlakeId?: string, - - streetId?: string, - communityId?: string, - smallCommunityId?: string, - buildingId?: string, - floorId?: string, - houseId?: string, - - name: string, - sex: number, - dateOfBirth?: Date | string - idCard: string - phone: string - householdRegistrationAddress?: string - - optFlag: null | 0 | 1 -} - -interface SystemExitsPopulationInformationVo { - snowFlakeId: string, - name: string, - sex: number, - residentialDivisionDetail: string, - createTime: string, - createUserName: string -} diff --git a/collect_information/types/pages/login/index.d.ts b/collect_information/types/pages/login/index.d.ts deleted file mode 100644 index cf4cc2c..0000000 --- a/collect_information/types/pages/login/index.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -interface LoginUserInfo { - clientType?: string; - avatar?: string; -} - diff --git a/collect_information/types/pages/myProject/index.d.ts b/collect_information/types/pages/myProject/index.d.ts deleted file mode 100644 index 8b4c210..0000000 --- a/collect_information/types/pages/myProject/index.d.ts +++ /dev/null @@ -1,45 +0,0 @@ - interface MyProjectList { - item?:any, - address?: string; - city?: string; - cityName?: string; - contactPersonInfo:ContactPersonInfo; - districts?: string; - districtsName?: string; - name: string; - province?: string; - provinceName: string; - remark?: string; - serviceProjectList: ServiceProjectList[]; - snowFlakeId?: string; - securityUnitId:string; - street?: string; - streetName?:string; -} - -interface ContactPersonInfo{ - name:string; - telephone:string -} - -interface ServiceProjectList { - buildingTotal?: number; - houseTotal?: number; - idNumber?: string; - isRecruitSecurity?: null; - name?: string; - remark?: string; - securityUserTotal?: number; - serviceArea?: number; - snowFlakeId?: string; - staffTotal?: number; - type?:string; - projectManagerMiniProgramUserInfo?:ProgramUserInfo -} -interface ProgramUserInfo{ - idCard: null - name: string - telephone: string -} - - diff --git a/collect_information/types/pages/projectDetails/index.d.ts b/collect_information/types/pages/projectDetails/index.d.ts deleted file mode 100644 index 98ff724..0000000 --- a/collect_information/types/pages/projectDetails/index.d.ts +++ /dev/null @@ -1,29 +0,0 @@ -interface Records{ - createTime?: string; - dateOfBirth?: string; - homeAddress?: string; - idCard?: string; - name?: string; - nativePlace?: string; - remark?: string; - securityNumber?: string; - securityUnitId?: string; - securityUnitName?: string; - serviceProjectId?: string; - snowFlakeId:string; - workPost?:string; - sex?:Sex -} -interface ProjectData { - current?:string; - pages?:string; - records?: Records[]; - size?: string; - total?: string; - data: Records[]; -} - -interface Sex { - value:number, - label:string -} diff --git a/collect_information/types/pages/register/index.d.ts b/collect_information/types/pages/register/index.d.ts deleted file mode 100644 index f759fd7..0000000 --- a/collect_information/types/pages/register/index.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -interface RegisterParams { - avatar: string; - name: string; - sex:number, - telephone:string, - identity: string; - unitId: any -} diff --git a/collect_information/types/request/index.d.ts b/collect_information/types/request/index.d.ts deleted file mode 100644 index e137c22..0000000 --- a/collect_information/types/request/index.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -import Taro from "@tarojs/taro"; - -export interface ApiOptions - extends Omit< - Taro.request.Option, - "url" | "method" | "data" | "success" | "fail" - > { - loading?: boolean; -} diff --git a/collect_information/types/vue.d.ts b/collect_information/types/vue.d.ts deleted file mode 100644 index a97867d..0000000 --- a/collect_information/types/vue.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -export {} - -declare module 'vue' { - export interface GlobalComponents extends JSX.IntrinsicElements { - /** Note: Vue 在 runtime 中将 JSX.IntrinsicElements 通过 index signature 重复声明标签 - * 这会导致插件无法正常跳转类型,可以手动覆盖声明标签活得更好的体验,参考如下: - * 'scroll-view': JSX.IntrinsicElements['scroll-view'] - */ - } -}