Your Name 1 year ago
commit
885d53cd03
59 changed files with 21066 additions and 0 deletions
  1. 18 0
      .babelrc
  2. 9 0
      .editorconfig
  3. 5 0
      .eslintignore
  4. 32 0
      .eslintrc.js
  5. 17 0
      .gitignore
  6. 10 0
      .postcssrc.js
  7. 30 0
      README.md
  8. 41 0
      build/build.js
  9. 54 0
      build/check-versions.js
  10. BIN
      build/logo.png
  11. 101 0
      build/utils.js
  12. 22 0
      build/vue-loader.conf.js
  13. 92 0
      build/webpack.base.conf.js
  14. 95 0
      build/webpack.dev.conf.js
  15. 149 0
      build/webpack.prod.conf.js
  16. 7 0
      config/dev.env.js
  17. 76 0
      config/index.js
  18. 4 0
      config/prod.env.js
  19. 7 0
      config/test.env.js
  20. BIN
      dist.zip
  21. 19 0
      index.html
  22. 18232 0
      package-lock.json
  23. 98 0
      package.json
  24. 103 0
      src/App.vue
  25. BIN
      src/assets/images/clockinbg.png
  26. BIN
      src/assets/images/commonbg.png
  27. BIN
      src/assets/images/doch1.jpg
  28. BIN
      src/assets/images/entrybg.jpg
  29. BIN
      src/assets/images/personbg.png
  30. BIN
      src/assets/logo.png
  31. 90 0
      src/components/DiagCalc.vue
  32. 107 0
      src/components/DiagCalcShow.vue
  33. 78 0
      src/components/DocIndex.vue
  34. 64 0
      src/components/DocLogin.vue
  35. 42 0
      src/components/Index.vue
  36. 20 0
      src/components/Login.vue
  37. 129 0
      src/components/PatCaseList.vue
  38. 64 0
      src/components/PatClockIn.vue
  39. 96 0
      src/components/PatClockInSuc.vue
  40. 161 0
      src/components/PatIndex.vue
  41. 94 0
      src/components/PatInjectionList.vue
  42. 64 0
      src/components/PatRegister.vue
  43. 185 0
      src/components/ProCaseList.vue
  44. 45 0
      src/components/RegPatinfo.vue
  45. 45 0
      src/components/RegPatpro.vue
  46. 139 0
      src/components/SolutionPkLine.vue
  47. 62 0
      src/components/UserAgree.vue
  48. 21 0
      src/main.js
  49. 105 0
      src/router/index.js
  50. 43 0
      src/styles/layout.css
  51. 0 0
      static/.gitkeep
  52. 27 0
      test/e2e/custom-assertions/elementCount.js
  53. 46 0
      test/e2e/nightwatch.conf.js
  54. 48 0
      test/e2e/runner.js
  55. 19 0
      test/e2e/specs/test.js
  56. 7 0
      test/unit/.eslintrc
  57. 30 0
      test/unit/jest.conf.js
  58. 3 0
      test/unit/setup.js
  59. 11 0
      test/unit/specs/HelloWorld.spec.js

+ 18 - 0
.babelrc

@@ -0,0 +1,18 @@
+{
+  "presets": [
+    ["env", {
+      "modules": false,
+      "targets": {
+        "browsers": ["> 1%", "last 2 versions", "not ie <= 8"]
+      }
+    }],
+    "stage-2"
+  ],
+  "plugins": ["transform-vue-jsx", "transform-runtime"],
+  "env": {
+    "test": {
+      "presets": ["env", "stage-2"],
+      "plugins": ["transform-vue-jsx", "transform-es2015-modules-commonjs", "dynamic-import-node"]
+    }
+  }
+}

+ 9 - 0
.editorconfig

@@ -0,0 +1,9 @@
+root = true
+
+[*]
+charset = utf-8
+indent_style = space
+indent_size = 2
+end_of_line = lf
+insert_final_newline = true
+trim_trailing_whitespace = true

+ 5 - 0
.eslintignore

@@ -0,0 +1,5 @@
+/build/
+/config/
+/dist/
+/*.js
+/test/unit/coverage/

+ 32 - 0
.eslintrc.js

@@ -0,0 +1,32 @@
+// https://eslint.org/docs/user-guide/configuring
+
+module.exports = {
+  root: true,
+  parserOptions: {
+    parser: 'babel-eslint'
+  },
+  env: {
+    browser: true,
+  },
+  extends: [
+    // https://github.com/vuejs/eslint-plugin-vue#priority-a-essential-error-prevention
+    // consider switching to `plugin:vue/strongly-recommended` or `plugin:vue/recommended` for stricter rules.
+    'plugin:vue/essential', 
+    // https://github.com/standard/standard/blob/master/docs/RULES-en.md
+    'standard'
+  ],
+  // required to lint *.vue files
+  plugins: [
+    'vue'
+  ],
+  // add your custom rules here
+  rules: {
+    // allow async-await
+    'generator-star-spacing': 'off',
+    // allow debugger during development
+    'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
+    'space-before-function-paren': 0,
+    'indent': 'off',
+    'no-trailing-spaces': 0
+  }
+}

+ 17 - 0
.gitignore

@@ -0,0 +1,17 @@
+.DS_Store
+node_modules/
+/dist/
+npm-debug.log*
+yarn-debug.log*
+yarn-error.log*
+/test/unit/coverage/
+/test/e2e/reports/
+selenium-debug.log
+
+# Editor directories and files
+.idea
+.vscode
+*.suo
+*.ntvs*
+*.njsproj
+*.sln

+ 10 - 0
.postcssrc.js

@@ -0,0 +1,10 @@
+// https://github.com/michael-ciniawsky/postcss-load-config
+
+module.exports = {
+  "plugins": {
+    "postcss-import": {},
+    "postcss-url": {},
+    // to edit target browsers: use "browserslist" field in package.json
+    "autoprefixer": {}
+  }
+}

+ 30 - 0
README.md

@@ -0,0 +1,30 @@
+# test
+
+> A Vue.js project
+
+## Build Setup
+
+``` bash
+# install dependencies
+npm install
+
+# serve with hot reload at localhost:8080
+npm run dev
+
+# build for production with minification
+npm run build
+
+# build for production and view the bundle analyzer report
+npm run build --report
+
+# run unit tests
+npm run unit
+
+# run e2e tests
+npm run e2e
+
+# run all tests
+npm test
+```
+
+For a detailed explanation on how things work, check out the [guide](http://vuejs-templates.github.io/webpack/) and [docs for vue-loader](http://vuejs.github.io/vue-loader).

+ 41 - 0
build/build.js

@@ -0,0 +1,41 @@
+'use strict'
+require('./check-versions')()
+
+process.env.NODE_ENV = 'production'
+
+const ora = require('ora')
+const rm = require('rimraf')
+const path = require('path')
+const chalk = require('chalk')
+const webpack = require('webpack')
+const config = require('../config')
+const webpackConfig = require('./webpack.prod.conf')
+
+const spinner = ora('building for production...')
+spinner.start()
+
+rm(path.join(config.build.assetsRoot, config.build.assetsSubDirectory), err => {
+  if (err) throw err
+  webpack(webpackConfig, (err, stats) => {
+    spinner.stop()
+    if (err) throw err
+    process.stdout.write(stats.toString({
+      colors: true,
+      modules: false,
+      children: false, // If you are using ts-loader, setting this to true will make TypeScript errors show up during build.
+      chunks: false,
+      chunkModules: false
+    }) + '\n\n')
+
+    if (stats.hasErrors()) {
+      console.log(chalk.red('  Build failed with errors.\n'))
+      process.exit(1)
+    }
+
+    console.log(chalk.cyan('  Build complete.\n'))
+    console.log(chalk.yellow(
+      '  Tip: built files are meant to be served over an HTTP server.\n' +
+      '  Opening index.html over file:// won\'t work.\n'
+    ))
+  })
+})

+ 54 - 0
build/check-versions.js

@@ -0,0 +1,54 @@
+'use strict'
+const chalk = require('chalk')
+const semver = require('semver')
+const packageConfig = require('../package.json')
+const shell = require('shelljs')
+
+function exec (cmd) {
+  return require('child_process').execSync(cmd).toString().trim()
+}
+
+const versionRequirements = [
+  {
+    name: 'node',
+    currentVersion: semver.clean(process.version),
+    versionRequirement: packageConfig.engines.node
+  }
+]
+
+if (shell.which('npm')) {
+  versionRequirements.push({
+    name: 'npm',
+    currentVersion: exec('npm --version'),
+    versionRequirement: packageConfig.engines.npm
+  })
+}
+
+module.exports = function () {
+  const warnings = []
+
+  for (let i = 0; i < versionRequirements.length; i++) {
+    const mod = versionRequirements[i]
+
+    if (!semver.satisfies(mod.currentVersion, mod.versionRequirement)) {
+      warnings.push(mod.name + ': ' +
+        chalk.red(mod.currentVersion) + ' should be ' +
+        chalk.green(mod.versionRequirement)
+      )
+    }
+  }
+
+  if (warnings.length) {
+    console.log('')
+    console.log(chalk.yellow('To use this template, you must update following to modules:'))
+    console.log()
+
+    for (let i = 0; i < warnings.length; i++) {
+      const warning = warnings[i]
+      console.log('  ' + warning)
+    }
+
+    console.log()
+    process.exit(1)
+  }
+}

BIN
build/logo.png


+ 101 - 0
build/utils.js

@@ -0,0 +1,101 @@
+'use strict'
+const path = require('path')
+const config = require('../config')
+const ExtractTextPlugin = require('extract-text-webpack-plugin')
+const packageConfig = require('../package.json')
+
+exports.assetsPath = function (_path) {
+  const assetsSubDirectory = process.env.NODE_ENV === 'production'
+    ? config.build.assetsSubDirectory
+    : config.dev.assetsSubDirectory
+
+  return path.posix.join(assetsSubDirectory, _path)
+}
+
+exports.cssLoaders = function (options) {
+  options = options || {}
+
+  const cssLoader = {
+    loader: 'css-loader',
+    options: {
+      sourceMap: options.sourceMap
+    }
+  }
+
+  const postcssLoader = {
+    loader: 'postcss-loader',
+    options: {
+      sourceMap: options.sourceMap
+    }
+  }
+
+  // generate loader string to be used with extract text plugin
+  function generateLoaders (loader, loaderOptions) {
+    const loaders = options.usePostCSS ? [cssLoader, postcssLoader] : [cssLoader]
+
+    if (loader) {
+      loaders.push({
+        loader: loader + '-loader',
+        options: Object.assign({}, loaderOptions, {
+          sourceMap: options.sourceMap
+        })
+      })
+    }
+
+    // Extract CSS when that option is specified
+    // (which is the case during production build)
+    if (options.extract) {
+      return ExtractTextPlugin.extract({
+        use: loaders,
+        fallback: 'vue-style-loader'
+      })
+    } else {
+      return ['vue-style-loader'].concat(loaders)
+    }
+  }
+
+  // https://vue-loader.vuejs.org/en/configurations/extract-css.html
+  return {
+    css: generateLoaders(),
+    postcss: generateLoaders(),
+    less: generateLoaders('less'),
+    sass: generateLoaders('sass', { indentedSyntax: true }),
+    scss: generateLoaders('sass'),
+    stylus: generateLoaders('stylus'),
+    styl: generateLoaders('stylus')
+  }
+}
+
+// Generate loaders for standalone style files (outside of .vue)
+exports.styleLoaders = function (options) {
+  const output = []
+  const loaders = exports.cssLoaders(options)
+
+  for (const extension in loaders) {
+    const loader = loaders[extension]
+    output.push({
+      test: new RegExp('\\.' + extension + '$'),
+      use: loader
+    })
+  }
+
+  return output
+}
+
+exports.createNotifierCallback = () => {
+  const notifier = require('node-notifier')
+
+  return (severity, errors) => {
+    if (severity !== 'error') return
+
+    const error = errors[0]
+    const filename = error.file && error.file.split('!').pop()
+
+    notifier.notify({
+      title: packageConfig.name,
+      message: severity + ': ' + error.name,
+      subtitle: filename || '',
+      icon: path.join(__dirname, 'logo.png')
+    })
+  }
+}

+ 22 - 0
build/vue-loader.conf.js

@@ -0,0 +1,22 @@
+'use strict'
+const utils = require('./utils')
+const config = require('../config')
+const isProduction = process.env.NODE_ENV === 'production'
+const sourceMapEnabled = isProduction
+  ? config.build.productionSourceMap
+  : config.dev.cssSourceMap
+
+module.exports = {
+  loaders: utils.cssLoaders({
+    sourceMap: sourceMapEnabled,
+    extract: isProduction
+  }),
+  cssSourceMap: sourceMapEnabled,
+  cacheBusting: config.dev.cacheBusting,
+  transformToRequire: {
+    video: ['src', 'poster'],
+    source: 'src',
+    img: 'src',
+    image: 'xlink:href'
+  }
+}

+ 92 - 0
build/webpack.base.conf.js

@@ -0,0 +1,92 @@
+'use strict'
+const path = require('path')
+const utils = require('./utils')
+const config = require('../config')
+const vueLoaderConfig = require('./vue-loader.conf')
+
+function resolve (dir) {
+  return path.join(__dirname, '..', dir)
+}
+
+const createLintingRule = () => ({
+  test: /\.(js|vue)$/,
+  loader: 'eslint-loader',
+  enforce: 'pre',
+  include: [resolve('src'), resolve('test')],
+  options: {
+    formatter: require('eslint-friendly-formatter'),
+    emitWarning: !config.dev.showEslintErrorsInOverlay
+  }
+})
+
+module.exports = {
+  context: path.resolve(__dirname, '../'),
+  entry: {
+    app: './src/main.js'
+  },
+  output: {
+    path: config.build.assetsRoot,
+    filename: '[name].js',
+    publicPath: process.env.NODE_ENV === 'production'
+      ? config.build.assetsPublicPath
+      : config.dev.assetsPublicPath
+  },
+  resolve: {
+    extensions: ['.js', '.vue', '.json'],
+    alias: {
+      'vue$': 'vue/dist/vue.esm.js',
+      '@': resolve('src'),
+    }
+  },
+  module: {
+    rules: [
+      ...(config.dev.useEslint ? [createLintingRule()] : []),
+      {
+        test: /\.vue$/,
+        loader: 'vue-loader',
+        options: vueLoaderConfig
+      },
+      {
+        test: /\.js$/,
+        loader: 'babel-loader',
+        include: [resolve('src'), resolve('test'), resolve('node_modules/webpack-dev-server/client')]
+      },
+      {
+        test: /\.(png|jpe?g|gif|svg)(\?.*)?$/,
+        loader: 'url-loader',
+        options: {
+          limit: 10000,
+          name: utils.assetsPath('img/[name].[hash:7].[ext]')
+        }
+      },
+      {
+        test: /\.(mp4|webm|ogg|mp3|wav|flac|aac)(\?.*)?$/,
+        loader: 'url-loader',
+        options: {
+          limit: 10000,
+          name: utils.assetsPath('media/[name].[hash:7].[ext]')
+        }
+      },
+      {
+        test: /\.(woff2?|eot|ttf|otf)(\?.*)?$/,
+        loader: 'url-loader',
+        options: {
+          limit: 10000,
+          name: utils.assetsPath('fonts/[name].[hash:7].[ext]')
+        }
+      }
+    ]
+  },
+  node: {
+    // prevent webpack from injecting useless setImmediate polyfill because Vue
+    // source contains it (although only uses it if it's native).
+    setImmediate: false,
+    // prevent webpack from injecting mocks to Node native modules
+    // that does not make sense for the client
+    dgram: 'empty',
+    fs: 'empty',
+    net: 'empty',
+    tls: 'empty',
+    child_process: 'empty'
+  }
+}

+ 95 - 0
build/webpack.dev.conf.js

@@ -0,0 +1,95 @@
+'use strict'
+const utils = require('./utils')
+const webpack = require('webpack')
+const config = require('../config')
+const merge = require('webpack-merge')
+const path = require('path')
+const baseWebpackConfig = require('./webpack.base.conf')
+const CopyWebpackPlugin = require('copy-webpack-plugin')
+const HtmlWebpackPlugin = require('html-webpack-plugin')
+const FriendlyErrorsPlugin = require('friendly-errors-webpack-plugin')
+const portfinder = require('portfinder')
+
+const HOST = process.env.HOST
+const PORT = process.env.PORT && Number(process.env.PORT)
+
+const devWebpackConfig = merge(baseWebpackConfig, {
+  module: {
+    rules: utils.styleLoaders({ sourceMap: config.dev.cssSourceMap, usePostCSS: true })
+  },
+  // cheap-module-eval-source-map is faster for development
+  devtool: config.dev.devtool,
+
+  // these devServer options should be customized in /config/index.js
+  devServer: {
+    clientLogLevel: 'warning',
+    historyApiFallback: {
+      rewrites: [
+        { from: /.*/, to: path.posix.join(config.dev.assetsPublicPath, 'index.html') },
+      ],
+    },
+    hot: true,
+    contentBase: false, // since we use CopyWebpackPlugin.
+    compress: true,
+    host: HOST || config.dev.host,
+    port: PORT || config.dev.port,
+    open: config.dev.autoOpenBrowser,
+    overlay: config.dev.errorOverlay
+      ? { warnings: false, errors: true }
+      : false,
+    publicPath: config.dev.assetsPublicPath,
+    proxy: config.dev.proxyTable,
+    quiet: true, // necessary for FriendlyErrorsPlugin
+    watchOptions: {
+      poll: config.dev.poll,
+    }
+  },
+  plugins: [
+    new webpack.DefinePlugin({
+      'process.env': require('../config/dev.env')
+    }),
+    new webpack.HotModuleReplacementPlugin(),
+    new webpack.NamedModulesPlugin(), // HMR shows correct file names in console on update.
+    new webpack.NoEmitOnErrorsPlugin(),
+    // https://github.com/ampedandwired/html-webpack-plugin
+    new HtmlWebpackPlugin({
+      filename: 'index.html',
+      template: 'index.html',
+      inject: true
+    }),
+    // copy custom static assets
+    new CopyWebpackPlugin([
+      {
+        from: path.resolve(__dirname, '../static'),
+        to: config.dev.assetsSubDirectory,
+        ignore: ['.*']
+      }
+    ])
+  ]
+})
+
+module.exports = new Promise((resolve, reject) => {
+  portfinder.basePort = process.env.PORT || config.dev.port
+  portfinder.getPort((err, port) => {
+    if (err) {
+      reject(err)
+    } else {
+      // publish the new Port, necessary for e2e tests
+      process.env.PORT = port
+      // add port to devServer config
+      devWebpackConfig.devServer.port = port
+
+      // Add FriendlyErrorsPlugin
+      devWebpackConfig.plugins.push(new FriendlyErrorsPlugin({
+        compilationSuccessInfo: {
+          messages: [`Your application is running here: http://${devWebpackConfig.devServer.host}:${port}`],
+        },
+        onErrors: config.dev.notifyOnErrors
+        ? utils.createNotifierCallback()
+        : undefined
+      }))
+
+      resolve(devWebpackConfig)
+    }
+  })
+})

+ 149 - 0
build/webpack.prod.conf.js

@@ -0,0 +1,149 @@
+'use strict'
+const path = require('path')
+const utils = require('./utils')
+const webpack = require('webpack')
+const config = require('../config')
+const merge = require('webpack-merge')
+const baseWebpackConfig = require('./webpack.base.conf')
+const CopyWebpackPlugin = require('copy-webpack-plugin')
+const HtmlWebpackPlugin = require('html-webpack-plugin')
+const ExtractTextPlugin = require('extract-text-webpack-plugin')
+const OptimizeCSSPlugin = require('optimize-css-assets-webpack-plugin')
+const UglifyJsPlugin = require('uglifyjs-webpack-plugin')
+
+const env = process.env.NODE_ENV === 'testing'
+  ? require('../config/test.env')
+  : require('../config/prod.env')
+
+const webpackConfig = merge(baseWebpackConfig, {
+  module: {
+    rules: utils.styleLoaders({
+      sourceMap: config.build.productionSourceMap,
+      extract: true,
+      usePostCSS: true
+    })
+  },
+  devtool: config.build.productionSourceMap ? config.build.devtool : false,
+  output: {
+    path: config.build.assetsRoot,
+    filename: utils.assetsPath('js/[name].[chunkhash].js'),
+    chunkFilename: utils.assetsPath('js/[id].[chunkhash].js')
+  },
+  plugins: [
+    // http://vuejs.github.io/vue-loader/en/workflow/production.html
+    new webpack.DefinePlugin({
+      'process.env': env
+    }),
+    new UglifyJsPlugin({
+      uglifyOptions: {
+        compress: {
+          warnings: false
+        }
+      },
+      sourceMap: config.build.productionSourceMap,
+      parallel: true
+    }),
+    // extract css into its own file
+    new ExtractTextPlugin({
+      filename: utils.assetsPath('css/[name].[contenthash].css'),
+      // Setting the following option to `false` will not extract CSS from codesplit chunks.
+      // Their CSS will instead be inserted dynamically with style-loader when the codesplit chunk has been loaded by webpack.
+      // It's currently set to `true` because we are seeing that sourcemaps are included in the codesplit bundle as well when it's `false`, 
+      // increasing file size: https://github.com/vuejs-templates/webpack/issues/1110
+      allChunks: true,
+    }),
+    // Compress extracted CSS. We are using this plugin so that possible
+    // duplicated CSS from different components can be deduped.
+    new OptimizeCSSPlugin({
+      cssProcessorOptions: config.build.productionSourceMap
+        ? { safe: true, map: { inline: false } }
+        : { safe: true }
+    }),
+    // generate dist index.html with correct asset hash for caching.
+    // you can customize output by editing /index.html
+    // see https://github.com/ampedandwired/html-webpack-plugin
+    new HtmlWebpackPlugin({
+      filename: process.env.NODE_ENV === 'testing'
+        ? 'index.html'
+        : config.build.index,
+      template: 'index.html',
+      inject: true,
+      minify: {
+        removeComments: true,
+        collapseWhitespace: true,
+        removeAttributeQuotes: true
+        // more options:
+        // https://github.com/kangax/html-minifier#options-quick-reference
+      },
+      // necessary to consistently work with multiple chunks via CommonsChunkPlugin
+      chunksSortMode: 'dependency'
+    }),
+    // keep module.id stable when vendor modules does not change
+    new webpack.HashedModuleIdsPlugin(),
+    // enable scope hoisting
+    new webpack.optimize.ModuleConcatenationPlugin(),
+    // split vendor js into its own file
+    new webpack.optimize.CommonsChunkPlugin({
+      name: 'vendor',
+      minChunks (module) {
+        // any required modules inside node_modules are extracted to vendor
+        return (
+          module.resource &&
+          /\.js$/.test(module.resource) &&
+          module.resource.indexOf(
+            path.join(__dirname, '../node_modules')
+          ) === 0
+        )
+      }
+    }),
+    // extract webpack runtime and module manifest to its own file in order to
+    // prevent vendor hash from being updated whenever app bundle is updated
+    new webpack.optimize.CommonsChunkPlugin({
+      name: 'manifest',
+      minChunks: Infinity
+    }),
+    // This instance extracts shared chunks from code splitted chunks and bundles them
+    // in a separate chunk, similar to the vendor chunk
+    // see: https://webpack.js.org/plugins/commons-chunk-plugin/#extra-async-commons-chunk
+    new webpack.optimize.CommonsChunkPlugin({
+      name: 'app',
+      async: 'vendor-async',
+      children: true,
+      minChunks: 3
+    }),
+
+    // copy custom static assets
+    new CopyWebpackPlugin([
+      {
+        from: path.resolve(__dirname, '../static'),
+        to: config.build.assetsSubDirectory,
+        ignore: ['.*']
+      }
+    ])
+  ]
+})
+
+if (config.build.productionGzip) {
+  const CompressionWebpackPlugin = require('compression-webpack-plugin')
+
+  webpackConfig.plugins.push(
+    new CompressionWebpackPlugin({
+      asset: '[path].gz[query]',
+      algorithm: 'gzip',
+      test: new RegExp(
+        '\\.(' +
+        config.build.productionGzipExtensions.join('|') +
+        ')$'
+      ),
+      threshold: 10240,
+      minRatio: 0.8
+    })
+  )
+}
+
+if (config.build.bundleAnalyzerReport) {
+  const BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin
+  webpackConfig.plugins.push(new BundleAnalyzerPlugin())
+}
+
+module.exports = webpackConfig

+ 7 - 0
config/dev.env.js

@@ -0,0 +1,7 @@
+'use strict'
+const merge = require('webpack-merge')
+const prodEnv = require('./prod.env')
+
+module.exports = merge(prodEnv, {
+  NODE_ENV: '"development"'
+})

+ 76 - 0
config/index.js

@@ -0,0 +1,76 @@
+'use strict'
+// Template version: 1.3.1
+// see http://vuejs-templates.github.io/webpack for documentation.
+
+const path = require('path')
+
+module.exports = {
+  dev: {
+
+    // Paths
+    assetsSubDirectory: 'static',
+    assetsPublicPath: '/',
+    proxyTable: {},
+
+    // Various Dev Server settings
+    host: '0.0.0.0', // can be overwritten by process.env.HOST
+    port: 8080, // can be overwritten by process.env.PORT, if port is in use, a free one will be determined
+    autoOpenBrowser: false,
+    errorOverlay: true,
+    notifyOnErrors: true,
+    poll: false, // https://webpack.js.org/configuration/dev-server/#devserver-watchoptions-
+
+    // Use Eslint Loader?
+    // If true, your code will be linted during bundling and
+    // linting errors and warnings will be shown in the console.
+    useEslint: true,
+    // If true, eslint errors and warnings will also be shown in the error overlay
+    // in the browser.
+    showEslintErrorsInOverlay: false,
+
+    /**
+     * Source Maps
+     */
+
+    // https://webpack.js.org/configuration/devtool/#development
+    devtool: 'cheap-module-eval-source-map',
+
+    // If you have problems debugging vue-files in devtools,
+    // set this to false - it *may* help
+    // https://vue-loader.vuejs.org/en/options.html#cachebusting
+    cacheBusting: true,
+
+    cssSourceMap: true
+  },
+
+  build: {
+    // Template for index.html
+    index: path.resolve(__dirname, '../dist/index.html'),
+
+    // Paths
+    assetsRoot: path.resolve(__dirname, '../dist'),
+    assetsSubDirectory: 'static',
+    assetsPublicPath: '/',
+
+    /**
+     * Source Maps
+     */
+
+    productionSourceMap: true,
+    // https://webpack.js.org/configuration/devtool/#production
+    devtool: '#source-map',
+
+    // Gzip off by default as many popular static hosts such as
+    // Surge or Netlify already gzip all static assets for you.
+    // Before setting to `true`, make sure to:
+    // npm install --save-dev compression-webpack-plugin
+    productionGzip: false,
+    productionGzipExtensions: ['js', 'css'],
+
+    // Run the build command with an extra argument to
+    // View the bundle analyzer report after build finishes:
+    // `npm run build --report`
+    // Set to `true` or `false` to always turn it on or off
+    bundleAnalyzerReport: process.env.npm_config_report
+  }
+}

+ 4 - 0
config/prod.env.js

@@ -0,0 +1,4 @@
+'use strict'
+module.exports = {
+  NODE_ENV: '"production"'
+}

+ 7 - 0
config/test.env.js

@@ -0,0 +1,7 @@
+'use strict'
+const merge = require('webpack-merge')
+const devEnv = require('./dev.env')
+
+module.exports = merge(devEnv, {
+  NODE_ENV: '"testing"'
+})

BIN
dist.zip


+ 19 - 0
index.html

@@ -0,0 +1,19 @@
+<!DOCTYPE html>
+<html>
+  <head>
+    <meta charset="utf-8">
+    <meta name="viewport" content="width=device-width,initial-scale=1.0">
+    <title>贝安欣PK检测</title>
+    <link rel="stylesheet" type="text/css" href="./src/styles/layout.css">
+  </head>
+  <body>
+    <div id="app"></div>
+    <!-- built files will be auto injected -->
+  </body>
+  <style>
+    body{
+      margin:0px;
+      padding:0px;
+    }
+  </style>
+</html>

File diff suppressed because it is too large
+ 18232 - 0
package-lock.json


+ 98 - 0
package.json

@@ -0,0 +1,98 @@
+{
+  "name": "test",
+  "version": "1.0.0",
+  "description": "A Vue.js project",
+  "author": "Your Name <you@example.com>",
+  "private": true,
+  "scripts": {
+    "dev": "webpack-dev-server --inline --progress --config build/webpack.dev.conf.js",
+    "start": "npm run dev",
+    "unit": "jest --config test/unit/jest.conf.js --coverage",
+    "e2e": "node test/e2e/runner.js",
+    "test": "npm run unit && npm run e2e",
+    "lint": "eslint --ext .js,.vue src test/unit test/e2e/specs",
+    "build": "node build/build.js"
+  },
+  "dependencies": {
+    "echarts": "^5.4.2",
+    "mint-ui": "^2.2.13",
+    "vue": "^2.5.2",
+    "vue-echarts": "^6.5.5",
+    "vue-router": "^3.0.1"
+  },
+  "devDependencies": {
+    "@vue/composition-api": "^1.7.1",
+    "autoprefixer": "^7.1.2",
+    "babel-core": "^6.22.1",
+    "babel-eslint": "^8.2.1",
+    "babel-helper-vue-jsx-merge-props": "^2.0.3",
+    "babel-jest": "^21.0.2",
+    "babel-loader": "^7.1.1",
+    "babel-plugin-dynamic-import-node": "^1.2.0",
+    "babel-plugin-syntax-jsx": "^6.18.0",
+    "babel-plugin-transform-es2015-modules-commonjs": "^6.26.0",
+    "babel-plugin-transform-runtime": "^6.22.0",
+    "babel-plugin-transform-vue-jsx": "^3.5.0",
+    "babel-preset-env": "^1.3.2",
+    "babel-preset-stage-2": "^6.22.0",
+    "babel-register": "^6.22.0",
+    "chalk": "^2.0.1",
+    "chromedriver": "^2.27.2",
+    "copy-webpack-plugin": "^4.0.1",
+    "cross-spawn": "^5.0.1",
+    "css-loader": "^0.28.11",
+    "eslint": "^4.15.0",
+    "eslint-config-standard": "^10.2.1",
+    "eslint-friendly-formatter": "^3.0.0",
+    "eslint-loader": "^1.7.1",
+    "eslint-plugin-import": "^2.7.0",
+    "eslint-plugin-node": "^5.2.0",
+    "eslint-plugin-promise": "^3.4.0",
+    "eslint-plugin-standard": "^3.0.1",
+    "eslint-plugin-vue": "^4.0.0",
+    "extract-text-webpack-plugin": "^3.0.0",
+    "file-loader": "^1.1.4",
+    "friendly-errors-webpack-plugin": "^1.6.1",
+    "html-webpack-plugin": "^2.30.1",
+    "jest": "^22.0.4",
+    "jest-serializer-vue": "^0.3.0",
+    "less": "^4.1.3",
+    "less-loader": "^11.1.0",
+    "nightwatch": "^0.9.12",
+    "node-notifier": "^5.1.2",
+    "node-sass": "^4.12.0",
+    "optimize-css-assets-webpack-plugin": "^3.2.0",
+    "ora": "^1.2.0",
+    "portfinder": "^1.0.13",
+    "postcss-import": "^11.0.0",
+    "postcss-loader": "^2.0.8",
+    "postcss-url": "^7.2.1",
+    "rimraf": "^2.6.0",
+    "sass": "^1.62.1",
+    "sass-loader": "^7.3.1",
+    "selenium-server": "^3.0.1",
+    "semver": "^5.3.0",
+    "shelljs": "^0.7.6",
+    "style-loader": "^3.3.2",
+    "stylus-loader": "^7.1.0",
+    "uglifyjs-webpack-plugin": "^1.1.1",
+    "url-loader": "^0.5.8",
+    "vue-jest": "^1.0.2",
+    "vue-loader": "^13.3.0",
+    "vue-style-loader": "^3.1.2",
+    "vue-template-compiler": "^2.5.2",
+    "webpack": "^3.6.0",
+    "webpack-bundle-analyzer": "^2.9.0",
+    "webpack-dev-server": "^2.9.1",
+    "webpack-merge": "^4.1.0"
+  },
+  "engines": {
+    "node": ">= 6.0.0",
+    "npm": ">= 3.0.0"
+  },
+  "browserslist": [
+    "> 1%",
+    "last 2 versions",
+    "not ie <= 8"
+  ]
+}

+ 103 - 0
src/App.vue

@@ -0,0 +1,103 @@
+<template>
+  <div id="app">
+    <router-view />
+  </div>
+</template>
+
+<script>
+  export default {
+    name: 'App'
+  }
+
+</script>
+
+<style lang="scss">
+  #app {
+    font-family: 'Avenir', Helvetica, Arial, sans-serif;
+    -webkit-font-smoothing: antialiased;
+    -moz-osx-font-smoothing: grayscale;
+    text-align: center;
+    color: #2c3e50;
+  }
+
+  .container {
+    width: 100%;
+    border: 1px solid #ccc;
+    height: 100vh;
+    background: #EFEFEF;
+
+    /* position: relative; */
+    .content {
+      width: 94%;
+      border: 1px solid #ccc;
+      margin: auto;
+      /* height: 85%; */
+      margin-top: 3rem;
+      margin-bottom: 1rem;
+      padding-bottom: 2rem;
+
+      .title {
+        font-size: 1.2rem;
+        height: 1rem;
+        padding: 1rem;
+        font-weight: bold;
+        color: #fff;
+      }
+
+      position: relative;
+      z-index:10;
+      overflow: scroll-y;
+
+      .loginForm {
+        width: 84%;
+        margin: auto;
+        margin-top: 6rem;
+        .mint-field {
+          border: 1px solid #ccc;
+          border-radius: 50px;
+          margin-top: 1rem;
+          height: 3.2rem;
+        }
+
+        .mint-cell {
+          min-height: 2.12rem;
+        }
+      }
+    }
+  }
+
+  .csbtn {
+    width: 70%;
+    height: 3.5rem;
+    line-height: 3.5rem;
+    border-radius: 5px;
+    margin: auto;
+    margin-top: 20rem;
+    background: #0570F2;
+    font-weight: bold;
+    color: white;
+    font-size: 1.4rem;
+  }
+
+  .jbbtn {
+    width: 70%;
+    height: 3.2rem;
+    line-height: 3.2rem;
+    border-radius: 5px;
+    margin: auto;
+    margin-top: 2rem;
+    background-image: linear-gradient(to right, #23E0FD, #0173F0);
+    font-weight: bold;
+    color: white;
+    font-size: 1.4rem;
+  }
+
+  .bgimg {
+    width: 100%;
+    height: 10rem;
+    position: absolute;
+    background-image: url("./assets/images/commonbg.png");
+    background-size: 100% 100%;
+  }
+
+</style>

BIN
src/assets/images/clockinbg.png


BIN
src/assets/images/commonbg.png


BIN
src/assets/images/doch1.jpg


BIN
src/assets/images/entrybg.jpg


BIN
src/assets/images/personbg.png


BIN
src/assets/logo.png


+ 90 - 0
src/components/DiagCalc.vue

@@ -0,0 +1,90 @@
+<template>
+  <div class="container">
+    <div class="bgimg"></div>
+    <div class="content">
+      <div class="title">FVIII药代动力学检测</div>
+      <div class="diagForm">
+        <mt-field label="病例体重(kg)" v-model="email"></mt-field>
+        <mt-field label="注射计量" v-model="email"></mt-field>
+        <mt-field label="注射时间t0" v-model="email"></mt-field>
+        <mt-field label="基础活性%" v-model="email"></mt-field>
+        <mt-field label="注射后半小时内活性%" v-model="email"></mt-field>
+        <mt-field label="采血时间t1" v-model="email"></mt-field>
+        <mt-field label="t1点活性%" v-model="email"></mt-field>
+        <mt-field label="采血时间t2" v-model="email"></mt-field>
+        <mt-field label="t2点活性%" v-model="email"></mt-field>
+        <mt-field label="采血时间t3" v-model="email"></mt-field>
+        <mt-field label="t3点活性%" v-model="email"></mt-field>
+      </div>
+      <div class="diagForm">
+          <div class="formTitle">血友病治疗方案</div>
+        <mt-field label="预防谷活性" v-model="email"></mt-field>
+        <mt-field label="注射频次" v-model="email"></mt-field>
+      </div>
+      <div class="footer">
+        <div class="jbbtn" @click="goPage">提交</div>
+      </div>
+    </div>
+  </div>
+</template>
+
+<script>
+  import {
+    Field
+  } from 'mint-ui'
+
+  export default {
+    name: 'Index',
+    components: {
+      Field
+    },
+    data() {
+      return {
+        msg: 'Welcome to Your Vue.js App'
+      }
+    },
+    methods: {
+      goPage() {
+        this.$router.push('/diagcalcshow')
+      }
+    }
+  }
+
+</script>
+
+<style scoped lang="scss">
+  .diagForm {
+    width: 84%;
+    margin: auto;
+    margin-top: 1rem;
+    background: #fff;
+    padding: 1rem;
+    border-radius: 5px;
+    .formTitle{
+      height: 1rem;
+      line-height:1rem;
+      text-align:left;
+      color:#2882F4;
+      padding-bottom:0.5rem;
+      border-bottom:1px solid #2882F4;
+      font-weight:bold;
+    }
+    .mint-field {
+      border: 1px solid #ccc;
+      border-radius: 50px;
+      margin-top: 1rem;
+    }
+    .mint-cell {
+      min-height: 2rem;
+    }
+  }
+
+  .container {
+    height: 100%;
+
+    .content {
+      height: 90%;
+    }
+  }
+
+</style>

+ 107 - 0
src/components/DiagCalcShow.vue

@@ -0,0 +1,107 @@
+<template>
+  <div class="container">
+    <div class="bgimg"></div>
+    <div class="content">
+      <div class="diagShowForm">
+        <div class="formTitle">FVIII药代动力学检测</div>
+        <mt-cell title="姓名" value="说明文字"></mt-cell>
+        <mt-cell title="ID" value="说明文字"></mt-cell>
+        <mt-cell title="年龄" value="说明文字"></mt-cell>
+        <mt-cell title="体重(kg)" value="说明文字"></mt-cell>
+        <mt-cell title="性别" value="说明文字"></mt-cell>
+        <mt-cell title="注射产品" value="说明文字"></mt-cell>
+        <mt-cell title="注射剂量(IU/kg)" value="说明文字"></mt-cell>
+        <mt-cell title="注射时间t0" value="说明文字"></mt-cell>
+        <mt-cell title="基础活性%" value="说明文字"></mt-cell>
+        <mt-cell title="注射后半小时内活性%" value="说明文字"></mt-cell>
+        <mt-cell title="采血时间t1" value="说明文字"></mt-cell>
+        <mt-cell title="t1点活性%" value="说明文字"></mt-cell>
+        <mt-cell title="采血时间t2" value="说明文字"></mt-cell>
+        <mt-cell title="t2点活性%" value="说明文字"></mt-cell>
+        <mt-cell title="采血时间t3" value="说明文字"></mt-cell>
+        <mt-cell title="t3点活性%" value="说明文字"></mt-cell>
+        <mt-cell title="采血时间t4" value="说明文字"></mt-cell>
+        <mt-cell title="t4点活性%" value="说明文字"></mt-cell>
+        <mt-cell title="预期峰值活性%" value="说明文字"></mt-cell>
+      </div>
+      <div class="diagShowForm">
+        <div class="formTitle">FVI药代动力学参数</div>
+        <mt-cell title="半衰期:" value="说明文字"></mt-cell>
+        <mt-cell title="利用率%:" value="说明文字"></mt-cell>
+      </div>
+      <div class="diagShowForm">
+        <div class="formTitle">血友病治疗方案</div>
+        <mt-cell title="预防谷活性%:" value="说明文字"></mt-cell>
+        <mt-cell title="注射频次:" value="说明文字"></mt-cell>
+        <mt-cell title="每次注射剂量(IU/kg):" value="说明文字"></mt-cell>
+      </div>
+      <div class="footer">
+        <div class="jbbtn" @click="goPage">下一页</div>
+      </div>
+    </div>
+  </div>
+</template>
+
+<script>
+  import {
+    Field,
+    Cell
+  } from 'mint-ui'
+  export default {
+    name: 'Index',
+    components: {
+      Field,
+      Cell
+    },
+    data() {
+      return {
+        msg: 'Welcome to Your Vue.js App'
+      }
+    },
+    methods: {
+      goPage() {
+        this.$router.push('/solutionpkline')
+      }
+    }
+  }
+
+</script>
+
+<style scoped lang="scss">
+  .diagShowForm {
+    width: 84%;
+    margin: auto;
+    margin-top: 1rem;
+    background: #fff;
+    padding: 1rem;
+    border-radius: 5px;
+
+    .formTitle {
+      height: 1rem;
+      line-height: 1rem;
+      text-align: left;
+      color: #2882F4;
+      padding-bottom: 0.5rem;
+      border-bottom: 1px solid #2882F4;
+      font-weight: bold;
+    }
+
+    .mint-cell {
+      min-height: 2rem;
+    }
+
+    /deep/ .mint-cell .mint-cell-title {
+      width: 70%;
+      text-align: left;
+    }
+
+    /deep/ .mint-cell .mint-cell-value {
+      width: 30%;
+      text-align: right;
+    }
+  }
+  .container{
+    height: 100%;
+  }
+
+</style>

+ 78 - 0
src/components/DocIndex.vue

@@ -0,0 +1,78 @@
+<template>
+  <div class="container">
+    <div class="bgcolor">
+      <div class="docinfo">
+        <img class="docavatar" src="../assets/images/doch1.jpg" width="60rem" height="60rem" />
+        <p class="docname">肖小肖 医生,您好!</p>
+      </div>
+    </div>
+    <div class="bgimg"></div>
+    <div class="content">
+      <div class="footer">
+        <div class="csbtn" @click="goPage('/regpatinfo')">病例信息录入</div>
+        <div class="jbbtn" @click="goPage('patcaselist')">病例管理</div>
+      </div>
+    </div>
+  </div>
+</template>
+
+<script>
+  export default {
+    name: 'Index',
+    data() {
+      return {
+        msg: 'Welcome to Your Vue.js App'
+      }
+    },
+    methods: {
+      goPage(path) {
+        this.$router.push(path)
+      }
+    }
+  }
+
+</script>
+
+<style scoped lang="scss">
+  .container {
+    .bgcolor {
+      width: 100%;
+      height: 10rem;
+      // border:1px solid red;
+      position: absolute;
+      /* z-index:-1; */
+      background: #016AFA;
+    }
+
+    .bgimg {
+      width: 100%;
+      height: 10rem;
+      // border:1px solid red;
+      top: 10rem;
+      position: absolute;
+      /* z-index:-1; */
+      background-image: url("../assets/images/entrybg.jpg");
+      background-size: 100% 100%;
+    }
+
+    .docinfo {
+      margin-top: 5rem;
+
+      .docavatar {
+        border-radius: 60rem;
+      }
+
+      .docname {
+        color: #fff;
+        margin: 0.1rem;
+      }
+
+      position: relative;
+      z-index:3;
+    }
+    .footer{
+      margin-bottom:2rem;
+    }
+  }
+
+</style>

+ 64 - 0
src/components/DocLogin.vue

@@ -0,0 +1,64 @@
+<template>
+  <div class="container">
+    <div class="bgimg"></div>
+    <div class="content">
+      <div class="title">登录信息</div>
+      <div class="loginForm">
+        <mt-field placeholder="姓 名" v-model="email"></mt-field>
+        <mt-field placeholder="手机号" v-model="email"></mt-field>
+        <mt-field placeholder="短信验证码" v-model="email"></mt-field>
+      </div>
+      <div class="footer">
+        <div class="jbbtn" @click="goPage('docindex')">提交</div>
+        <div class="agreeInfo">
+          <input type="checkbox" />
+          <span>我已知晓<a href="/#/agreedoc">《PK程序用户隐私条款》</a></span>
+        </div>
+      </div>
+    </div>
+  </div>
+</template>
+
+<script>
+  import {
+    Field
+  } from 'mint-ui'
+
+  export default {
+    name: 'Index',
+    components: {
+      Field
+    },
+    data() {
+      return {
+        email: ''
+      }
+    },
+    methods: {
+      goPage(path) {
+        this.$router.push(path)
+      }
+    }
+  }
+
+</script>
+
+<style scoped lang="scss">
+  .content {
+    position: relative;
+    z-index: 1;
+
+    .footer {
+      /* position: absolute; */
+      bottom: 1rem;
+      margin: 0 auto;
+      left: 0;
+      right: 0;
+      bottom: 1rem;
+      .agreeInfo{
+        margin:2rem 0;
+      }
+    }
+  }
+
+</style>

+ 42 - 0
src/components/Index.vue

@@ -0,0 +1,42 @@
+<template>
+  <div class="container">
+    <div class="bgimg"></div>
+    <div class="content">
+      <div class="csbtn" @click="goPage('/doclogin')">医生端</div>
+      <div class="jbbtn" @click="goPage('/patregister')">个人端</div>
+    </div>
+  </div>
+</template>
+
+<script>
+  export default {
+    name: 'Index',
+    data() {
+      return {
+        msg: 'Welcome to Your Vue.js App'
+      }
+    },
+    methods: {
+      goPage(path) {
+        this.$router.push(path)
+      }
+    }
+  }
+
+</script>
+
+<style scoped lang="scss">
+  .container {
+    background:#fff;
+    .bgimg {
+      width: 100%;
+      height: 14rem;
+      margin-top: 6rem;
+      position: absolute;
+      background-image: url("../assets/images/entrybg.jpg");
+      background-image: url("../assets/images/entrybg.jpg");
+      background-size: 100% 100%;
+    }
+  }
+
+</style>

+ 20 - 0
src/components/Login.vue

@@ -0,0 +1,20 @@
+<template>
+  <div class="hello">
+    
+  </div>
+</template>
+
+<script>
+export default {
+  name: 'Index',
+  data () {
+    return {
+      msg: 'Welcome to Your Vue.js App'
+    }
+  }
+}
+</script>
+
+<style scoped>
+
+</style>

+ 129 - 0
src/components/PatCaseList.vue

@@ -0,0 +1,129 @@
+<template>
+  <div class="container">
+    <div class="bgimg"></div>
+    <div class="content">
+      <div class="title">病例管理</div>
+      <div class="searchinput">
+          <mt-search
+            v-model="value"
+            placeholder="搜索">
+          </mt-search>
+      </div>
+      <div class="patCaseForm baseInfo">
+          <mt-cell title="姓名:张三" value="病例ID:XXX"></mt-cell>
+          <mt-cell title="年龄:51" value="性别:男"></mt-cell>
+          <mt-cell title="使用产品:XXX" value="注射剂量:XXX"></mt-cell>
+          <mt-cell title="注射频次:XXX"></mt-cell>
+          <div style="font-size:1rem;text-align:left;padding-left:10px;">
+              方案时间:2023-05-13 18:53:00
+              <mt-button type="primary" size="small" @click="goPage('/diagcalcshow')">详情</mt-button>
+          </div>
+      </div>
+      <div class="patCaseForm baseInfo">
+          <mt-cell title="姓名:张三" value="病例ID:XXX"></mt-cell>
+          <mt-cell title="年龄:51" value="性别:男"></mt-cell>
+          <mt-cell title="使用产品:XXX" value="注射剂量:XXX"></mt-cell>
+          <mt-cell title="注射频次:XXX"></mt-cell>
+          <div style="font-size:1rem;text-align:left;padding-left:10px;">
+              方案时间:2023-05-13 18:53:00
+              <mt-button type="primary" size="small">详情</mt-button>
+          </div>
+      </div>
+      <div class="patCaseForm baseInfo">
+          <mt-cell title="姓名:张三" value="病例ID:XXX"></mt-cell>
+          <mt-cell title="年龄:51" value="性别:男"></mt-cell>
+          <mt-cell title="使用产品:XXX" value="注射剂量:XXX"></mt-cell>
+          <mt-cell title="注射频次:XXX"></mt-cell>
+          <div style="font-size:1rem;text-align:left;padding-left:10px;">
+              方案时间:2023-05-13 18:53:00
+              <mt-button type="primary" size="small">详情</mt-button>
+          </div>
+      </div>
+      <div class="footer">
+        <div class="jbbtn">确定</div>
+        <div class="jbbtn" @click="goPage('/patinjectionlist')">查看注射记录</div>
+      </div>
+    </div>
+  </div>
+</template>
+
+<script>
+  import {
+    Field,
+    Picker,
+    Search,
+    Button
+  } from 'mint-ui'
+
+  export default {
+    name: 'Index',
+    components: {
+      Field,
+      Picker,
+      Search,
+      Button
+    },
+    data() {
+      return {
+        form: {}
+      }
+    },
+    methods: {
+      goPage(path) {
+        this.$router.push(path)
+      }
+    }
+  }
+
+</script>
+
+<style scoped lang="scss">
+  .searchinput{
+    width: 80%;
+    margin: auto;
+    .mint-search{
+      height: 100%;
+      margin-top:1rem;
+    }
+  }
+  .patCaseForm {
+    width: 84%;
+    margin: auto;
+    margin-top: 1rem;
+    background: #fff;
+    padding: 1rem;
+    border-radius: 5px;
+    position: relative;
+    .mint-button--small{
+      height: 1.6rem;
+      position: absolute;
+      left: 78%;
+    }
+    .mint-cell {
+      min-height: 1.8rem;
+    }
+
+    /deep/ .mint-cell .mint-cell-title {
+      width: 60%;
+      text-align: left;
+    }
+
+    /deep/ .mint-cell .mint-cell-value {
+      width: 40%;
+      text-align: right;
+    }
+
+    /deep/ .mint-cell .mint-cell-wrapper {
+      font-size: 1.1rem;
+      background-image: none;
+    }
+  }
+
+  .footer {
+    display: flex;
+    .jbbtn{
+      width: 42%;
+    }
+  }
+
+</style>

+ 64 - 0
src/components/PatClockIn.vue

@@ -0,0 +1,64 @@
+<template>
+  <div class="container">
+    <div class="bgimg"></div>
+    <div class="content">
+      <div class="title">注射打卡</div>
+      <div class="loginForm">
+        <mt-field label="产品选择" v-model="form.email" placeholder="请选择您本次使用的产品"></mt-field>
+        <mt-field label="注射剂量" v-model="form.email" placeholder="请选择您本次使用的剂量"></mt-field>
+      </div>
+      <div class="footer">
+        <div class="jbbtn" @click="goPage('patclockinsuc')">确定并提交</div>
+      </div>
+    </div>
+  </div>
+</template>
+
+<script>
+  import {
+    Field,
+    Picker
+  } from 'mint-ui'
+
+  export default {
+    name: 'Index',
+    components: {
+      Field,
+      Picker
+    },
+    data() {
+      return {
+        form: {}
+      }
+    },
+    methods: {
+      goPage(path) {
+        this.$router.push(path)
+      }
+    }
+  }
+
+</script>
+
+<style scoped lang="scss">
+  .loginForm {
+    width: 84%;
+    margin: auto;
+    margin-top: 4rem;
+    background: #fff;
+    padding: 1rem;
+    border-radius: 5px;
+    height: 12rem;
+
+    .mint-field {
+      border: 1px solid #ccc;
+      border-radius: 50px;
+      margin-top: 1rem;
+    }
+
+    .mint-cell {
+      min-height: 2.12rem;
+    }
+  }
+
+</style>

+ 96 - 0
src/components/PatClockInSuc.vue

@@ -0,0 +1,96 @@
+<template>
+  <div class="container">
+    <div class="bgimg"></div>
+    <div class="content">
+      <!-- <div class="title">注射打卡</div> -->
+      <div class="loginForm">
+        <div class="clocksucbg">
+          <img src="../assets/images/clockinbg.png" width="100%" alt="">
+          <div class="clocksucmsg" >您已打卡成功</div>
+        </div>
+        <div class="clockintime">打卡时间:2023-05-17 15:55:00</div>
+      </div>
+      <div class="footer">
+        <div class="jbbtn" @click="goPage('/patindex')">确定</div>
+        <div class="jbbtn" @click="goPage('/patinjectionlist')">查看注射记录</div>
+      </div>
+    </div>
+  </div>
+</template>
+
+<script>
+  import {
+    Field,
+    Picker
+  } from 'mint-ui'
+
+  export default {
+    name: 'Index',
+    components: {
+      Field,
+      Picker
+    },
+    data() {
+      return {
+        form: {}
+      }
+    },
+    methods: {
+      goPage(path) {
+        this.$router.push(path)
+      }
+    }
+  }
+
+</script>
+
+<style scoped lang="scss">
+  .loginForm {
+    width: 84%;
+    margin: auto;
+    /* margin-top: 4rem; */
+    background: #fff;
+    padding: 1rem;
+    border-radius: 5px;
+
+    .mint-field {
+      border: 1px solid #ccc;
+      border-radius: 50px;
+      margin-top: 1rem;
+    }
+
+    .mint-cell {
+      min-height: 2.12rem;
+    }
+    .clocksucbg{
+      width:60%;
+      margin:auto;
+      position: relative;
+      padding-top:4rem;
+      height: 14rem;
+    }
+    .clocksucmsg{
+      width:100%;
+      position:absolute;
+      text-align: center;
+      top:9rem;
+      font-size:1.2rem;
+      color:#fff;
+      font-weight: bold;
+    }
+    .clockintime {
+      width: 60%;
+      font-size: 12px;
+      color: #ccc;
+      margin: auto;
+      margin-top: 2rem;
+      margin-bottom: 4rem;
+    }
+  }
+  .footer{
+    display: flex;
+    .jbbtn{
+      width: 42%;
+    }
+  }
+</style>

+ 161 - 0
src/components/PatIndex.vue

@@ -0,0 +1,161 @@
+<template>
+  <div class="container">
+    <div class="bgcolor">
+      <div class="docinfo">
+        <img class="docavatar" src="../assets/images/doch1.jpg" width="60rem" height="60rem" />
+        <p class="docname">肖小肖 您好!</p>
+      </div>
+    </div>
+    <div class="bgimg" v-if="inflag"></div>
+    <div class="content">
+      <div class="injectRecord">
+        <div class="formTitle">体内FVIII活性水平实时预报</div>
+        <div class="lrcontainer">
+          <div class="lritem left">
+            <div class="personRatio">
+
+            </div>
+          </div>
+          <div class="lritem right">
+            <p style="margin:5px 0px;color:red;font-weight:bold;font-size:1.5rem">FVIII浓度:50%</p>
+            <mt-cell title="参考方案"></mt-cell>
+            <mt-cell title="1.XXX产品"></mt-cell>
+            <mt-cell title="2.XXX剂量"></mt-cell>
+            <mt-cell title="3.XXX频次"></mt-cell>
+            <mt-cell title="本结果仅供参考,"></mt-cell>
+            <mt-cell title="具体治疗方案请遵医嘱执行"></mt-cell>
+          </div>
+        </div>
+        <div class="footer">
+          <div class="jbbtn" @click="goPage('/patclockin')">注射打卡</div>
+          <div class="jbbtn" @click="goPage('patinjectionlist')">注射记录</div>
+          <div class="jbbtn" @click="goPage('solutionpkline')">查看PK曲线</div>
+        </div>
+      </div>
+    </div>
+  </div>
+</template>
+
+<script>
+  import {
+    Cell
+  } from 'mint-ui'
+  export default {
+    name: 'Index',
+    components: {
+      Cell
+    },
+    data() {
+      return {
+        msg: 'Welcome to Your Vue.js App',
+        inflag: 0
+      }
+    },
+    methods: {
+      goPage(path) {
+        this.$router.push(path)
+      }
+    }
+  }
+
+</script>
+
+<style scoped lang="scss">
+  .container {
+    .content {
+      height: 100%;
+    }
+
+    height: 100%;
+    background: #fff;
+
+    .bgcolor {
+      width: 100%;
+      height: 11rem;
+      position: absolute;
+      background: #016AFA;
+    }
+
+    .bgimg {
+      width: 100%;
+      height: 10rem;
+      top: 10rem;
+      position: absolute;
+      background-image: url("../assets/images/entrybg.jpg");
+      background-size: 100% 100%;
+    }
+
+    .docinfo {
+      margin-top: 4rem;
+
+      .docavatar {
+        border-radius: 60rem;
+      }
+
+      .docname {
+        color: #fff;
+        margin: 0.2rem;
+        font-size:1.2rem;
+      }
+
+      position: relative;
+      z-index:3;
+    }
+
+    .injectRecord {
+      margin-top: 7.5rem;
+    }
+
+    .formTitle {
+      height: 1rem;
+      line-height: 1rem;
+      color: #2882F4;
+      padding-bottom: 0.5rem;
+      font-weight: bold;
+      font-size:1.2rem;
+      margin-top:9rem;
+    }
+
+    .lrcontainer {
+      display: flex;
+      width: 80%;
+      margin: auto;
+      margin-top: 10px;
+
+      .lritem {
+        justify-content: space-between;
+        height: 15rem;
+        .left {
+          width: 40%;
+        }
+        .personRatio {
+          height: 15rem;
+          width: 4.2rem;
+          margin: auto;
+          background-image: url("../assets/images/personbg.png");
+          background-size: 100% 100%;
+        }
+
+        .mint-cell {
+          min-height: 2.0rem;
+        }
+      }
+    }
+
+    /deep/ .right .mint-cell .mint-cell-title {
+      width: 70%;
+      text-align: left;
+    }
+
+    /deep/ .right .mint-cell-wrapper {
+      padding: 0px 20px;
+      font-size: 1rem;
+      background-size: 0px 0px;
+    }
+
+    .footer {
+      margin-bottom: 20px;
+    }
+  }
+
+</style>

+ 94 - 0
src/components/PatInjectionList.vue

@@ -0,0 +1,94 @@
+<template>
+  <div class="container">
+    <div class="bgimg"></div>
+    <div class="content">
+      <div class="title">注射记录</div>
+      <div class="injectionListForm baseInfo">
+      <div style="width:50%;font-size:1.2rem;text-align: center;margin:1rem auto;font-weight: bold;">姓名:肖小肖</div>
+        <div class="listItemContainer">
+          <div class="listItem" style="width:70%;background:#6DA2FE;color:#fff;">打卡时间</div>
+          <div class="listItem" style="background:#6DA2FE;color:#fff;">使用产品</div>
+          <div class="listItem" style="background:#6DA2FE;color:#fff;">使用剂量</div>
+        </div>
+        <div class="listItemContainer">
+          <div class="listItem" style="width:70%;">2023年03月30日16:00</div>
+          <div class="listItem">使用产品</div>
+          <div class="listItem">使用剂量</div>
+        </div>
+        <div class="listItemContainer">
+          <div class="listItem" style="width:70%;">2023年03月30日16:00</div>
+          <div class="listItem">使用产品</div>
+          <div class="listItem">使用剂量</div>
+        </div>
+        
+      </div>
+      <div class="footer">
+        <div class="jbbtn">确定</div>
+        <div class="jbbtn" @click="goPage('/patclockin')">开始注射打卡</div>
+      </div>
+    </div>
+  </div>
+</template>
+
+<script>
+  import {
+    Field,
+    Picker,
+    Search,
+    Button
+  } from 'mint-ui'
+
+  export default {
+    name: 'Index',
+    components: {
+      Field,
+      Picker,
+      Search,
+      Button
+    },
+    data() {
+      return {
+        form: {}
+      }
+    },
+    methods: {
+      goPage(path) {
+        this.$router.push(path)
+      }
+    }
+  }
+
+</script>
+
+<style scoped lang="scss">
+  .injectionListForm {
+    width: 84%;
+    margin: auto;
+    margin-top: 1rem;
+    background: #fff;
+    padding: 1rem;
+    border-radius: 5px;
+    position: relative;
+  }
+
+  .footer {
+    display: flex;
+    .jbbtn{
+      width: 42%;
+    }
+  }
+
+  .listItemContainer {
+    display: flex;
+
+    .listItem {
+      width: 30%;
+      height: 2.8rem;
+      line-height: 2.8rem;
+      flex-direction: row;
+      justify-content: space-between;
+      border-bottom:1px solid #ccc;
+    }
+  }
+
+</style>

+ 64 - 0
src/components/PatRegister.vue

@@ -0,0 +1,64 @@
+<template>
+  <div class="container">
+    <div class="bgimg"></div>
+    <div class="content">
+      <div class="title">注册信息</div>
+      <div class="loginForm">
+        <mt-field placeholder="姓 名" v-model="email"></mt-field>
+        <mt-field placeholder="手机号" v-model="email"></mt-field>
+        <mt-field placeholder="短信验证码" v-model="email"></mt-field>
+      </div>
+      <div class="footer">
+          <div class="jbbtn" @click="goPage('patindex')">提交</div>
+          <div class="agreeInfo">
+            <input type="checkbox" />
+            <span>我已知晓<a href="/#/agreedoc">《PK程序用户隐私条款》</a></span>
+          </div>
+        </div>
+    </div>
+  </div>
+</template>
+
+<script>
+  import {
+    Field
+  } from 'mint-ui'
+
+  export default {
+    name: 'Index',
+    components: {
+      Field
+    },
+    data() {
+      return {
+        email: ''
+      }
+    },
+    methods: {
+      goPage(path) {
+        this.$router.push(path)
+      }
+    }
+  }
+
+</script>
+
+<style scoped lang="scss">
+
+.content {
+    position: relative;
+    z-index: 1;
+
+    .footer {
+      /* position: absolute; */
+      bottom: 1rem;
+      margin: 0 auto;
+      left: 0;
+      right: 0;
+      bottom: 1rem;
+      .agreeInfo{
+        margin:2rem 0;
+      }
+    }
+  }
+</style>

+ 185 - 0
src/components/ProCaseList.vue

@@ -0,0 +1,185 @@
+<template>
+  <div class="container">
+    <div class="bgimg"></div>
+    <div class="content">
+      <div class="title">方案列表</div>
+      <div class="loginForm baseInfo">
+          <mt-cell title="使用产品:XXX" value="注射剂量:XXX"></mt-cell>
+          <div style="font-size:12px;text-align:left;padding-left:10px;">
+              方案时间:2023-05-13 18:53:00
+              <mt-button type="primary" size="small" @click="goPage">详情</mt-button>
+          </div>
+          <hr>
+          <mt-cell title="使用产品:XXX" value="注射剂量:XXX"></mt-cell>
+          <div style="font-size:12px;text-align:left;padding-left:10px;">
+              方案时间:2023-05-13 18:53:00
+              <mt-button type="primary" size="small">详情</mt-button>
+          </div>
+          <hr>
+          <mt-cell title="使用产品:XXX" value="注射剂量:XXX"></mt-cell>
+          <div style="font-size:12px;text-align:left;padding-left:10px;">
+              方案时间:2023-05-13 18:53:00
+              <mt-button type="primary" size="small">详情</mt-button>
+          </div>
+          <hr>
+      </div>
+      <div class="footer">
+        <div class="preBtn">确定</div>
+        <div class="returnBtn">查看注射记录</div>
+      </div>
+    </div>
+  </div>
+</template>
+
+<script>
+  import {
+    Field,
+    Picker,
+    Search,
+    Button
+  } from 'mint-ui'
+
+  export default {
+    name: 'Index',
+    components: {
+      Field,
+      Picker,
+      Search,
+      Button
+    },
+    data() {
+      return {
+        form: {}
+      }
+    },
+    methods: {
+      goPage() {
+        this.$router.push('/diagcalcshow')
+      }
+    }
+  }
+
+</script>
+
+<style scoped lang="scss">
+  hr{
+    margin:1rem 0;
+  }
+  .bgimg {
+    width: 100%;
+    height: 10rem;
+    top: -5vh;
+    position: absolute;
+    background-image: url("../assets/images/commonbg.png");
+    background-size: 100% 100%;
+    z-index: 2;
+  }
+
+  .docSubmitBtn {
+    width: 50%;
+    height: 2.5rem;
+    line-height: 2.5rem;
+    border-radius: 5px;
+    margin: auto;
+    margin-top: 4rem;
+    background-image: linear-gradient(to right, #23E0FD, #0173F0);
+    font-weight: bold;
+    color: white;
+  }
+  .searchinput{
+    width: 80%;
+    margin: auto;
+    .mint-search{
+      height: 100%;
+      margin-top:1rem;
+    }
+  }
+  .returnBtn {
+    width: 40%;
+    height: 2.5rem;
+    line-height: 2.5rem;
+    border-radius: 5px;
+    margin: auto;
+    margin-top: 2rem;
+    margin-bottom: 2rem;
+    background-image: linear-gradient(to right, #23E0FD, #0173F0);
+    font-weight: bold;
+    color: white;
+  }
+
+  .loginForm {
+    width: 84%;
+    margin: auto;
+    margin-top: 1rem;
+    background: #fff;
+    padding: 1rem;
+    border-radius: 5px;
+    position: relative;
+    .mint-button--small{
+      height: 1.2rem;
+      position: absolute;
+      left: 78%;
+    }
+
+    .formTitle {
+      height: 1rem;
+      line-height: 1rem;
+      text-align: left;
+      color: #2882F4;
+      padding-bottom: 0.5rem;
+      border-bottom: 1px solid #2882F4;
+      font-weight: bold;
+    }
+
+    .mint-cell {
+      min-height: 1.8rem;
+    }
+
+    /deep/ .mint-cell .mint-cell-title {
+      width: 60%;
+      text-align: left;
+    }
+
+    /deep/ .mint-cell .mint-cell-value {
+      width: 40%;
+      text-align: right;
+    }
+
+    /deep/ .mint-cell .mint-cell-wrapper {
+      font-size: 12px;
+      background-image: none;
+    }
+  }
+
+  .footer {
+    display: flex;
+    .preBtn {
+      width: 42%;
+      height: 3rem;
+      line-height: 3rem;
+      border-radius: 5px;
+      margin: auto;
+      margin-top: 2rem;
+      margin-bottom: 2rem;
+      background-image: linear-gradient(to right, #23E0FD, #0173F0);
+      font-weight: bold;
+      color: white;
+      font-size:1.4rem;
+    }
+
+    .returnBtn {
+      width: 42%;
+      height: 3rem;
+      line-height: 3rem;
+      border-radius: 5px;
+      margin: auto;
+      margin-top: 2rem;
+      margin-bottom: 2rem;
+      background-image: linear-gradient(to right, #23E0FD, #0173F0);
+      font-weight: bold;
+      color: white;
+      font-size:1.4rem;
+    }
+  }
+
+</style>

+ 45 - 0
src/components/RegPatinfo.vue

@@ -0,0 +1,45 @@
+<template>
+  <div class="container">
+    <div class="bgimg"></div>
+    <div class="content">
+      <div class="title">请录入病例信息</div>
+      <div class="loginForm">
+        <mt-field label="病例姓名" v-model="email"></mt-field>
+        <mt-field label="病例年龄" v-model="email"></mt-field>
+        <mt-field label="病例性别" v-model="email"></mt-field>
+        <mt-field label="病例手机" v-model="email"></mt-field>
+      </div>
+      <div class="footer">
+        <div class="jbbtn" @click="goPage">下一页</div>
+      </div>
+    </div>
+  </div>
+</template>
+
+<script>
+  import {
+    Field
+  } from 'mint-ui'
+
+  export default {
+    name: 'Index',
+    components: {
+      Field
+    },
+    data() {
+      return {
+        msg: 'Welcome to Your Vue.js App'
+      }
+    },
+    methods: {
+      goPage() {
+        this.$router.push('/regpatpro')
+      }
+    }
+  }
+
+</script>
+
+<style scoped lang="scss">
+
+</style>

+ 45 - 0
src/components/RegPatpro.vue

@@ -0,0 +1,45 @@
+<template>
+  <div class="container">
+    <div class="bgimg"></div>
+    <div class="content">
+      <div class="title">请选择患者使用产品</div>
+      <div class="loginForm">
+        <mt-field label="产品选择" v-model="form.email"></mt-field>
+        <mt-field label="注射频次" v-model="form.email"></mt-field>
+      </div>
+      <div class="footer">
+        <div class="jbbtn" @click="goPage">下一页</div>
+      </div>
+    </div>
+  </div>
+</template>
+
+<script>
+  import {
+    Field,
+    Picker
+  } from 'mint-ui'
+
+  export default {
+    name: 'Index',
+    components: {
+      Field,
+      Picker
+    },
+    data() {
+      return {
+        form: {}
+      }
+    },
+    methods: {
+      goPage() {
+        this.$router.push('/diagcalc')
+      }
+    }
+  }
+
+</script>
+
+<style scoped lang="scss">
+
+</style>

+ 139 - 0
src/components/SolutionPkLine.vue

@@ -0,0 +1,139 @@
+<template>
+  <div class="container">
+    <div class="bgimg"></div>
+    <div class="content">
+      <div class="title">预防治疗方案的PK曲线</div>
+      <div class="PKLineForm">
+        <v-chart :option="pklineOption" style="height: 250px"></v-chart>
+      </div>
+      <div class="PKLineForm baseInfo">
+        <mt-cell title="活性大于5%的时间:9.3" value="峰活性:12.05%"></mt-cell>
+        <mt-cell title="活性大于3%的时间:14.4" value="谷活性(IU/kg):1.16"></mt-cell>
+        <mt-cell title="活性大于1%的时间:14.4"></mt-cell>
+        <hr>
+        <mt-cell title="姓名:张三" value="病例ID:XXX"></mt-cell>
+        <mt-cell title="年龄:51" value="性别:男"></mt-cell>
+        <mt-cell title="使用产品:XXX" value="注射剂量:XXX"></mt-cell>
+        <mt-cell title="注射频次:XXX"></mt-cell>
+        <div style="font-size:12px;text-align:left;padding-left:10px;">方案时间时间:2023-05-13 18:53:00</div>
+      </div>
+      <div class="footer">
+        <div class="jbbtn" @click="goPage(-1)">上一页</div>
+        <div class="jbbtn" @click="goPage('/')">返回</div>
+      </div>
+    </div>
+  </div>
+</template>
+
+<script>
+  import {
+    Field,
+    Cell
+  } from 'mint-ui'
+  // import ECharts from 'vue-echarts'
+  export default {
+    name: 'Index',
+    components: {
+      Field,
+      Cell
+    },
+    data() {
+      return {
+        msg: 'Welcome to Your Vue.js App',
+        pklineOption: {
+          title: {},
+          calculable: true,
+          xAxis: [{
+            type: 'category',
+            boundaryGap: false,
+            data: ['0', '6', '12', '18', '24', '24.01', '30', '36', '42', '48', '48.01', '54', '60', '66', '72',
+              '72.01', '78', '84', '90', '96', '96.01', '102', '108', '114', '120', '120.01', '126', '132', '138',
+              '144', '144.01', '150', '156', '162', '168', '168.01', '174', '180', '186', '192', '192.01'
+            ]
+          }],
+          yAxis: [{
+            type: 'value',
+            axisLabel: {
+              formatter: '{value}.00'
+            }
+          }],
+          series: [{
+            name: '最低气温',
+            type: 'line',
+            data: [11, 11, 15, 13, 12, 13, 10, 3, 11, 11, 15, 13, 12, 13, 10, 3, 11, 11, 15, 13, 12, 13, 10, 3, 11,
+              11, 15, 13, 12, 13, 10, 3, 11, 11, 15, 13, 12, 13, 10, 3, 11, 11, 15, 13, 12, 13, 10, 3, 4
+            ],
+            markLine: {
+              data: [{
+                type: 'average',
+                name: '平均值'
+              }]
+            }
+          }]
+        }
+      }
+    },
+    methods: {
+      goPage(path) {
+        if (path === -1) {
+          this.$router.go(-1)
+        }
+        this.$router.push(path)
+      }
+    }
+  }
+
+</script>
+
+<style scoped lang="scss">
+  .footer {
+    display: flex;
+  }
+
+  .PKLineForm {
+    width: 84%;
+    margin: auto;
+    margin-top: 1rem;
+    background: #fff;
+    padding: 1rem;
+    border-radius: 5px;
+
+    .formTitle {
+      height: 1rem;
+      line-height: 1rem;
+      text-align: left;
+      color: #2882F4;
+      padding-bottom: 0.5rem;
+      border-bottom: 1px solid #2882F4;
+      font-weight: bold;
+    }
+
+    .mint-cell {
+      min-height: 1.8rem;
+    }
+
+    /deep/ .mint-cell .mint-cell-title {
+      width: 60%;
+      text-align: left;
+    }
+
+    /deep/ .mint-cell .mint-cell-value {
+      width: 40%;
+      text-align: right;
+    }
+
+    /deep/ .mint-cell .mint-cell-wrapper {
+      font-size: 14px;
+      background-image: none;
+    }
+  }
+
+  .container {
+    height: 100%;
+  }
+
+  .jbbtn {
+    width: 42%;
+  }
+
+</style>

+ 62 - 0
src/components/UserAgree.vue

@@ -0,0 +1,62 @@
+<template>
+  <div class="container">
+    <div class="bgimg"></div>
+    <div class="content">
+      <div class="title">PK程序用户隐私条款</div>
+      <div class="loginForm">
+        <div class="agreedoc">
+          <p>PK程序用户隐私条款PK程序用户隐私条款PK程序用户隐私条款PK程序用户隐私条款PK程序用户隐私条款</p>
+        </div>
+      </div>
+      <div class="footer">
+        <div class="jbbtn" @click="goPage">提交</div>
+      </div>
+    </div>
+  </div>
+</template>
+
+<script>
+  import {
+    Field
+  } from 'mint-ui'
+
+  export default {
+    name: 'Index',
+    components: {
+      Field
+    },
+    data() {
+      return {
+        msg: 'Welcome to Your Vue.js App'
+      }
+    },
+    methods: {
+      goPage() {
+        this.$router.push('/docindex')
+      }
+    }
+  }
+
+</script>
+
+<style scoped lang="scss">
+  .loginForm {
+    width: 90%;
+    margin: auto;
+    margin-top: 1rem;
+    /* border:1px solid red; */
+    height: 40vh;
+    border-radius: 1rem;
+    background: #fff;
+    padding:10px;
+  }
+
+  .footer {
+      bottom: 1rem;
+      margin:0 auto;
+      left: 0;
+      right: 0;
+      bottom: 1rem;
+    }
+
+</style>

+ 21 - 0
src/main.js

@@ -0,0 +1,21 @@
+// The Vue build version to load with the `import` command
+// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
+import Vue from 'vue'
+import router from './router'
+import MintUI from 'mint-ui'
+import 'mint-ui/lib/style.css'
+import App from './App'
+import 'echarts'
+import ECharts from 'vue-echarts'
+
+Vue.use(MintUI)
+Vue.component('v-chart', ECharts)
+Vue.config.productionTip = false
+
+/* eslint-disable no-new */
+new Vue({
+  el: '#app',
+  router,
+  components: { App },
+  template: '<App/>'
+})

+ 105 - 0
src/router/index.js

@@ -0,0 +1,105 @@
+import Vue from 'vue'
+import Router from 'vue-router'
+import Index from '@/components/Index'
+import DocLogin from '@/components/DocLogin'
+import UserAgree from '@/components/UserAgree'
+import DocIndex from '@/components/DocIndex'
+import RegPatinfo from '@/components/RegPatinfo'
+import RegPatpro from '@/components/RegPatpro'
+import DiagCalc from '@/components/DiagCalc'
+import DiagCalcShow from '@/components/DiagCalcShow'
+import SolutionPkLine from '@/components/SolutionPkLine'
+import PatIndex from '@/components/PatIndex'
+import PatClockIn from '@/components/PatClockIn'
+import PatClockInSuc from '@/components/PatClockInSuc'
+import PatCaseList from '@/components/PatCaseList'
+import ProCaseList from '@/components/ProCaseList'
+import PatInjectionList from '@/components/PatInjectionList'
+import PatRegister from '@/components/PatRegister'
+
+Vue.use(Router)
+
+export default new Router({
+  routes: [
+    {
+      path: '/',
+      name: '首页',
+      component: Index
+    },
+    {
+      path: '/docLogin',
+      name: '医生登录',
+      component: DocLogin
+    },
+    {
+      path: '/agreedoc',
+      name: '用户隐私条款',
+      component: UserAgree
+    },
+    {
+      path: '/docindex',
+      name: '医生首页',
+      component: DocIndex
+    },
+    {
+      path: '/regpatinfo',
+      name: '录入患者信息',
+      component: RegPatinfo
+    },
+    {
+      path: '/regpatpro',
+      name: '录入患者使用产品',
+      component: RegPatpro
+    },
+    {
+      path: '/diagcalc',
+      name: '动力学检测',
+      component: DiagCalc
+    },
+    {
+      path: '/diagcalcshow',
+      name: '动力学检测展示',
+      component: DiagCalcShow
+    },
+    {
+      path: '/solutionpkline',
+      name: '预防治疗方案pk曲线',
+      component: SolutionPkLine
+    },
+    {
+      path: '/patindex',
+      name: '患者首页',
+      component: PatIndex
+    },
+    {
+      path: '/patclockin',
+      name: '患者注射打卡',
+      component: PatClockIn
+    },
+    {
+      path: '/patclockinsuc',
+      name: '患者注射打卡成功',
+      component: PatClockInSuc
+    },
+    {
+      path: '/patcaselist',
+      name: '病例管理',
+      component: PatCaseList
+    },
+    {
+      path: '/procaselist',
+      name: '方案列表',
+      component: ProCaseList
+    },
+    {
+      path: '/patinjectionlist',
+      name: '注射记录',
+      component: PatInjectionList
+    },
+    {
+      path: '/patregister',
+      name: '用户注册',
+      component: PatRegister
+    }
+  ]
+})

+ 43 - 0
src/styles/layout.css

@@ -0,0 +1,43 @@
+<style lang="scss">
+    .container {
+    width: 100%;
+    .bgimg{
+      width:100%;
+      height:10rem;
+      border:1px solid red;
+      margin-top:6rem;
+      position:absolute;
+    }
+    .content{
+      width: 94%;
+      border:1px solid #ccc;
+      margin:auto;
+      height: 100vh;
+      .doctorEntry{
+        width:50%;
+        height:2.5rem;
+        line-height:2.5rem;
+        // border:1px solid red;
+        border-radius:5px;
+        margin:auto;
+        margin-top:20rem;
+        background:#0570F2;
+        font-weight:bold;
+        color:white;
+      }
+      .patientEntry{
+        width:50%;
+        height:2.5rem;
+        line-height:2.5rem;
+        // border:1px solid red;
+        border-radius:5px;
+        margin:auto;
+        margin-top:2rem;
+        // background:#0173F0;
+        background-image: linear-gradient(to right,#23E0FD, #0173F0);
+        font-weight:bold;
+        color:white;
+      }
+    }
+  }
+</style>

+ 0 - 0
static/.gitkeep


+ 27 - 0
test/e2e/custom-assertions/elementCount.js

@@ -0,0 +1,27 @@
+// A custom Nightwatch assertion.
+// The assertion name is the filename.
+// Example usage:
+//
+//   browser.assert.elementCount(selector, count)
+//
+// For more information on custom assertions see:
+// http://nightwatchjs.org/guide#writing-custom-assertions
+
+exports.assertion = function (selector, count) {
+  this.message = 'Testing if element <' + selector + '> has count: ' + count
+  this.expected = count
+  this.pass = function (val) {
+    return val === this.expected
+  }
+  this.value = function (res) {
+    return res.value
+  }
+  this.command = function (cb) {
+    var self = this
+    return this.api.execute(function (selector) {
+      return document.querySelectorAll(selector).length
+    }, [selector], function (res) {
+      cb.call(self, res)
+    })
+  }
+}

+ 46 - 0
test/e2e/nightwatch.conf.js

@@ -0,0 +1,46 @@
+require('babel-register')
+var config = require('../../config')
+
+// http://nightwatchjs.org/gettingstarted#settings-file
+module.exports = {
+  src_folders: ['test/e2e/specs'],
+  output_folder: 'test/e2e/reports',
+  custom_assertions_path: ['test/e2e/custom-assertions'],
+
+  selenium: {
+    start_process: true,
+    server_path: require('selenium-server').path,
+    host: '127.0.0.1',
+    port: 4444,
+    cli_args: {
+      'webdriver.chrome.driver': require('chromedriver').path
+    }
+  },
+
+  test_settings: {
+    default: {
+      selenium_port: 4444,
+      selenium_host: 'localhost',
+      silent: true,
+      globals: {
+        devServerURL: 'http://localhost:' + (process.env.PORT || config.dev.port)
+      }
+    },
+
+    chrome: {
+      desiredCapabilities: {
+        browserName: 'chrome',
+        javascriptEnabled: true,
+        acceptSslCerts: true
+      }
+    },
+
+    firefox: {
+      desiredCapabilities: {
+        browserName: 'firefox',
+        javascriptEnabled: true,
+        acceptSslCerts: true
+      }
+    }
+  }
+}

+ 48 - 0
test/e2e/runner.js

@@ -0,0 +1,48 @@
+// 1. start the dev server using production config
+process.env.NODE_ENV = 'testing'
+
+const webpack = require('webpack')
+const DevServer = require('webpack-dev-server')
+
+const webpackConfig = require('../../build/webpack.prod.conf')
+const devConfigPromise = require('../../build/webpack.dev.conf')
+
+let server
+
+devConfigPromise.then(devConfig => {
+  const devServerOptions = devConfig.devServer
+  const compiler = webpack(webpackConfig)
+  server = new DevServer(compiler, devServerOptions)
+  const port = devServerOptions.port
+  const host = devServerOptions.host
+  return server.listen(port, host)
+})
+.then(() => {
+  // 2. run the nightwatch test suite against it
+  // to run in additional browsers:
+  //    1. add an entry in test/e2e/nightwatch.conf.js under "test_settings"
+  //    2. add it to the --env flag below
+  // or override the environment flag, for example: `npm run e2e -- --env chrome,firefox`
+  // For more information on Nightwatch's config file, see
+  // http://nightwatchjs.org/guide#settings-file
+  let opts = process.argv.slice(2)
+  if (opts.indexOf('--config') === -1) {
+    opts = opts.concat(['--config', 'test/e2e/nightwatch.conf.js'])
+  }
+  if (opts.indexOf('--env') === -1) {
+    opts = opts.concat(['--env', 'chrome'])
+  }
+
+  const spawn = require('cross-spawn')
+  const runner = spawn('./node_modules/.bin/nightwatch', opts, { stdio: 'inherit' })
+
+  runner.on('exit', function (code) {
+    server.close()
+    process.exit(code)
+  })
+
+  runner.on('error', function (err) {
+    server.close()
+    throw err
+  })
+})

+ 19 - 0
test/e2e/specs/test.js

@@ -0,0 +1,19 @@
+// For authoring Nightwatch tests, see
+// http://nightwatchjs.org/guide#usage
+
+module.exports = {
+  'default e2e tests': function (browser) {
+    // automatically uses dev Server port from /config.index.js
+    // default: http://localhost:8080
+    // see nightwatch.conf.js
+    const devServer = browser.globals.devServerURL
+
+    browser
+      .url(devServer)
+      .waitForElementVisible('#app', 5000)
+      .assert.elementPresent('.hello')
+      .assert.containsText('h1', 'Welcome to Your Vue.js App')
+      .assert.elementCount('img', 1)
+      .end()
+  }
+}

+ 7 - 0
test/unit/.eslintrc

@@ -0,0 +1,7 @@
+{
+  "env": { 
+    "jest": true
+  },
+  "globals": { 
+  }
+}

+ 30 - 0
test/unit/jest.conf.js

@@ -0,0 +1,30 @@
+const path = require('path')
+
+module.exports = {
+  rootDir: path.resolve(__dirname, '../../'),
+  moduleFileExtensions: [
+    'js',
+    'json',
+    'vue'
+  ],
+  moduleNameMapper: {
+    '^@/(.*)$': '<rootDir>/src/$1'
+  },
+  transform: {
+    '^.+\\.js$': '<rootDir>/node_modules/babel-jest',
+    '.*\\.(vue)$': '<rootDir>/node_modules/vue-jest'
+  },
+  testPathIgnorePatterns: [
+    '<rootDir>/test/e2e'
+  ],
+  snapshotSerializers: ['<rootDir>/node_modules/jest-serializer-vue'],
+  setupFiles: ['<rootDir>/test/unit/setup'],
+  mapCoverage: true,
+  coverageDirectory: '<rootDir>/test/unit/coverage',
+  collectCoverageFrom: [
+    'src/**/*.{js,vue}',
+    '!src/main.js',
+    '!src/router/index.js',
+    '!**/node_modules/**'
+  ]
+}

+ 3 - 0
test/unit/setup.js

@@ -0,0 +1,3 @@
+import Vue from 'vue'
+
+Vue.config.productionTip = false

+ 11 - 0
test/unit/specs/HelloWorld.spec.js

@@ -0,0 +1,11 @@
+import Vue from 'vue'
+import HelloWorld from '@/components/HelloWorld'
+
+describe('HelloWorld.vue', () => {
+  it('should render correct contents', () => {
+    const Constructor = Vue.extend(HelloWorld)
+    const vm = new Constructor().$mount()
+    expect(vm.$el.querySelector('.hello h1').textContent)
+      .toEqual('Welcome to Your Vue.js App')
+  })
+})