Explorar o código

立项初始化

LongjoeDyy %!s(int64=6) %!d(string=hai) anos
achega
55e20b7b68
Modificáronse 49 ficheiros con 17966 adicións e 0 borrados
  1. 18 0
      .babelrc
  2. 9 0
      .editorconfig
  3. 5 0
      .eslintignore
  4. 29 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=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. 12 0
      index.html
  21. 15006 0
      package-lock.json
  22. 88 0
      package.json
  23. 26 0
      src/App.vue
  24. 370 0
      src/assets/iconfont/demo.css
  25. 148 0
      src/assets/iconfont/demo_fontclass.html
  26. 207 0
      src/assets/iconfont/demo_symbol.html
  27. 186 0
      src/assets/iconfont/demo_unicode.html
  28. 53 0
      src/assets/iconfont/iconfont.css
  29. BIN=BIN
      src/assets/iconfont/iconfont.eot
  30. 1 0
      src/assets/iconfont/iconfont.js
  31. 80 0
      src/assets/iconfont/iconfont.svg
  32. BIN=BIN
      src/assets/iconfont/iconfont.ttf
  33. BIN=BIN
      src/assets/iconfont/iconfont.woff
  34. BIN=BIN
      src/assets/logo.png
  35. 113 0
      src/components/HelloWorld.vue
  36. 18 0
      src/main.js
  37. 238 0
      src/pages/components/saletasklist.vue
  38. 31 0
      src/pages/saletask.vue
  39. 408 0
      src/pages/saletaskdetail.vue
  40. 24 0
      src/router/index.js
  41. 0 0
      static/.gitkeep
  42. 27 0
      test/e2e/custom-assertions/elementCount.js
  43. 46 0
      test/e2e/nightwatch.conf.js
  44. 48 0
      test/e2e/runner.js
  45. 19 0
      test/e2e/specs/test.js
  46. 7 0
      test/unit/.eslintrc
  47. 30 0
      test/unit/jest.conf.js
  48. 3 0
      test/unit/setup.js
  49. 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/

+ 29 - 0
.eslintrc.js

@@ -0,0 +1,29 @@
+// 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'
+  }
+}

+ 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 @@
+# l1ui
+
+> 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=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: 'localhost', // 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"'
+})

+ 12 - 0
index.html

@@ -0,0 +1,12 @@
+<!DOCTYPE html>
+<html>
+  <head>
+    <meta charset="utf-8">
+    <meta name="viewport" content="width=device-width,initial-scale=1.0">
+    <title>l1ui</title>
+  </head>
+  <body>
+    <div id="app"></div>
+    <!-- built files will be auto injected -->
+  </body>
+</html>

A diferenza do arquivo foi suprimida porque é demasiado grande
+ 15006 - 0
package-lock.json


+ 88 - 0
package.json

@@ -0,0 +1,88 @@
+{
+  "name": "l1ui",
+  "version": "1.0.0",
+  "description": "A Vue.js project",
+  "author": "LongjoeDyy <easfish@qq.com>",
+  "private": true,
+  "scripts": {
+    "dev": "webpack-dev-server --inline --progress --config build/webpack.dev.conf.js  --host 0.0.0.0",
+    "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": {
+    "muse-ui": "^3.0.1",
+    "vue": "^2.5.2",
+    "vue-router": "^3.0.1"
+  },
+  "devDependencies": {
+    "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.0",
+    "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",
+    "nightwatch": "^0.9.12",
+    "node-notifier": "^5.1.2",
+    "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",
+    "selenium-server": "^3.0.1",
+    "semver": "^5.3.0",
+    "shelljs": "^0.7.6",
+    "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.0.1",
+    "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"
+  ]
+}

+ 26 - 0
src/App.vue

@@ -0,0 +1,26 @@
+<template>
+  <div id="app">
+    <router-view/>
+  </div>
+</template>
+
+<script>
+export default {
+  name: 'App'
+}
+</script>
+
+<style>
+
+  #app{
+   margin:0 ;
+   padding:0
+  }
+  .icon {
+    width: 1em;
+    height: 1em;
+    vertical-align: -0.15em;
+    fill: currentColor;
+    overflow: hidden;
+  }
+</style>

+ 370 - 0
src/assets/iconfont/demo.css

@@ -0,0 +1,370 @@
+*{margin: 0;padding: 0;list-style: none;}
+/*
+KISSY CSS Reset
+理念:1. reset 的目的不是清除浏览器的默认样式,这仅是部分工作。清除和重置是紧密不可分的。
+2. reset 的目的不是让默认样式在所有浏览器下一致,而是减少默认样式有可能带来的问题。
+3. reset 期望提供一套普适通用的基础样式。但没有银弹,推荐根据具体需求,裁剪和修改后再使用。
+特色:1. 适应中文;2. 基于最新主流浏览器。
+维护:玉伯<lifesinger@gmail.com>, 正淳<ragecarrier@gmail.com>
+ */
+
+/** 清除内外边距 **/
+body, h1, h2, h3, h4, h5, h6, hr, p, blockquote, /* structural elements 结构元素 */
+dl, dt, dd, ul, ol, li, /* list elements 列表元素 */
+pre, /* text formatting elements 文本格式元素 */
+form, fieldset, legend, button, input, textarea, /* form elements 表单元素 */
+th, td /* table elements 表格元素 */ {
+  margin: 0;
+  padding: 0;
+}
+
+/** 设置默认字体 **/
+body,
+button, input, select, textarea /* for ie */ {
+  font: 12px/1.5 tahoma, arial, \5b8b\4f53, sans-serif;
+}
+h1, h2, h3, h4, h5, h6 { font-size: 100%; }
+address, cite, dfn, em, var { font-style: normal; } /* 将斜体扶正 */
+code, kbd, pre, samp { font-family: courier new, courier, monospace; } /* 统一等宽字体 */
+small { font-size: 12px; } /* 小于 12px 的中文很难阅读,让 small 正常化 */
+
+/** 重置列表元素 **/
+ul, ol { list-style: none; }
+
+/** 重置文本格式元素 **/
+a { text-decoration: none; }
+a:hover { text-decoration: underline; }
+
+
+/** 重置表单元素 **/
+legend { color: #000; } /* for ie6 */
+fieldset, img { border: 0; } /* img 搭车:让链接里的 img 无边框 */
+button, input, select, textarea { font-size: 100%; } /* 使得表单元素在 ie 下能继承字体大小 */
+/* 注:optgroup 无法扶正 */
+
+/** 重置表格元素 **/
+table { border-collapse: collapse; border-spacing: 0; }
+
+/* 清除浮动 */
+.ks-clear:after, .clear:after {
+  content: '\20';
+  display: block;
+  height: 0;
+  clear: both;
+}
+.ks-clear, .clear {
+  *zoom: 1;
+}
+
+.main {
+  padding: 30px 100px;
+width: 960px;
+margin: 0 auto;
+}
+.main h1{font-size:36px; color:#333; text-align:left;margin-bottom:30px; border-bottom: 1px solid #eee;}
+
+.helps{margin-top:40px;}
+.helps pre{
+  padding:20px;
+  margin:10px 0;
+  border:solid 1px #e7e1cd;
+  background-color: #fffdef;
+  overflow: auto;
+}
+
+.icon_lists{
+  width: 100% !important;
+
+}
+
+.icon_lists li{
+  float:left;
+  width: 100px;
+  height:180px;
+  text-align: center;
+  list-style: none !important;
+}
+.icon_lists .icon{
+  font-size: 42px;
+  line-height: 100px;
+  margin: 10px 0;
+  color:#333;
+  -webkit-transition: font-size 0.25s ease-out 0s;
+  -moz-transition: font-size 0.25s ease-out 0s;
+  transition: font-size 0.25s ease-out 0s;
+
+}
+.icon_lists .icon:hover{
+  font-size: 100px;
+}
+
+
+
+.markdown {
+  color: #666;
+  font-size: 14px;
+  line-height: 1.8;
+}
+
+.highlight {
+  line-height: 1.5;
+}
+
+.markdown img {
+  vertical-align: middle;
+  max-width: 100%;
+}
+
+.markdown h1 {
+  color: #404040;
+  font-weight: 500;
+  line-height: 40px;
+  margin-bottom: 24px;
+}
+
+.markdown h2,
+.markdown h3,
+.markdown h4,
+.markdown h5,
+.markdown h6 {
+  color: #404040;
+  margin: 1.6em 0 0.6em 0;
+  font-weight: 500;
+  clear: both;
+}
+
+.markdown h1 {
+  font-size: 28px;
+}
+
+.markdown h2 {
+  font-size: 22px;
+}
+
+.markdown h3 {
+  font-size: 16px;
+}
+
+.markdown h4 {
+  font-size: 14px;
+}
+
+.markdown h5 {
+  font-size: 12px;
+}
+
+.markdown h6 {
+  font-size: 12px;
+}
+
+.markdown hr {
+  height: 1px;
+  border: 0;
+  background: #e9e9e9;
+  margin: 16px 0;
+  clear: both;
+}
+
+.markdown p,
+.markdown pre {
+  margin: 1em 0;
+}
+
+.markdown > p,
+.markdown > blockquote,
+.markdown > .highlight,
+.markdown > ol,
+.markdown > ul {
+  width: 80%;
+}
+
+.markdown ul > li {
+  list-style: circle;
+}
+
+.markdown > ul li,
+.markdown blockquote ul > li {
+  margin-left: 20px;
+  padding-left: 4px;
+}
+
+.markdown > ul li p,
+.markdown > ol li p {
+  margin: 0.6em 0;
+}
+
+.markdown ol > li {
+  list-style: decimal;
+}
+
+.markdown > ol li,
+.markdown blockquote ol > li {
+  margin-left: 20px;
+  padding-left: 4px;
+}
+
+.markdown code {
+  margin: 0 3px;
+  padding: 0 5px;
+  background: #eee;
+  border-radius: 3px;
+}
+
+.markdown pre {
+  border-radius: 6px;
+  background: #f7f7f7;
+  padding: 20px;
+}
+
+.markdown pre code {
+  border: none;
+  background: #f7f7f7;
+  margin: 0;
+}
+
+.markdown strong,
+.markdown b {
+  font-weight: 600;
+}
+
+.markdown > table {
+  border-collapse: collapse;
+  border-spacing: 0px;
+  empty-cells: show;
+  border: 1px solid #e9e9e9;
+  width: 95%;
+  margin-bottom: 24px;
+}
+
+.markdown > table th {
+  white-space: nowrap;
+  color: #333;
+  font-weight: 600;
+
+}
+
+.markdown > table th,
+.markdown > table td {
+  border: 1px solid #e9e9e9;
+  padding: 8px 16px;
+  text-align: left;
+}
+
+.markdown > table th {
+  background: #F7F7F7;
+}
+
+.markdown blockquote {
+  font-size: 90%;
+  color: #999;
+  border-left: 4px solid #e9e9e9;
+  padding-left: 0.8em;
+  margin: 1em 0;
+  font-style: italic;
+}
+
+.markdown blockquote p {
+  margin: 0;
+}
+
+.markdown .anchor {
+  opacity: 0;
+  transition: opacity 0.3s ease;
+  margin-left: 8px;
+}
+
+.markdown .waiting {
+  color: #ccc;
+}
+
+.markdown h1:hover .anchor,
+.markdown h2:hover .anchor,
+.markdown h3:hover .anchor,
+.markdown h4:hover .anchor,
+.markdown h5:hover .anchor,
+.markdown h6:hover .anchor {
+  opacity: 1;
+  display: inline-block;
+}
+
+.markdown > br,
+.markdown > p > br {
+  clear: both;
+}
+
+
+.hljs {
+  display: block;
+  background: white;
+  padding: 0.5em;
+  color: #333333;
+  overflow-x: auto;
+}
+
+.hljs-comment,
+.hljs-meta {
+  color: #969896;
+}
+
+.hljs-string,
+.hljs-variable,
+.hljs-template-variable,
+.hljs-strong,
+.hljs-emphasis,
+.hljs-quote {
+  color: #df5000;
+}
+
+.hljs-keyword,
+.hljs-selector-tag,
+.hljs-type {
+  color: #a71d5d;
+}
+
+.hljs-literal,
+.hljs-symbol,
+.hljs-bullet,
+.hljs-attribute {
+  color: #0086b3;
+}
+
+.hljs-section,
+.hljs-name {
+  color: #63a35c;
+}
+
+.hljs-tag {
+  color: #333333;
+}
+
+.hljs-title,
+.hljs-attr,
+.hljs-selector-id,
+.hljs-selector-class,
+.hljs-selector-attr,
+.hljs-selector-pseudo {
+  color: #795da3;
+}
+
+.hljs-addition {
+  color: #55a532;
+  background-color: #eaffea;
+}
+
+.hljs-deletion {
+  color: #bd2c00;
+  background-color: #ffecec;
+}
+
+.hljs-link {
+  text-decoration: underline;
+}
+
+pre{
+  background: #fff;
+}
+
+
+
+
+

+ 148 - 0
src/assets/iconfont/demo_fontclass.html

@@ -0,0 +1,148 @@
+
+<!DOCTYPE html>
+<html>
+<head>
+    <meta charset="utf-8"/>
+    <title>IconFont</title>
+    <link rel="stylesheet" href="demo.css">
+    <link rel="stylesheet" href="iconfont.css">
+</head>
+<body>
+    <div class="main markdown">
+        <h1>IconFont 图标</h1>
+        <ul class="icon_lists clear">
+            
+                <li>
+                <i class="icon iconfont icon-buzouweijinxing"></i>
+                    <div class="name">步骤-未进行</div>
+                    <div class="fontclass">.icon-buzouweijinxing</div>
+                </li>
+            
+                <li>
+                <i class="icon iconfont icon-zanting"></i>
+                    <div class="name">暂停</div>
+                    <div class="fontclass">.icon-zanting</div>
+                </li>
+            
+                <li>
+                <i class="icon iconfont icon-fenlei"></i>
+                    <div class="name">分类</div>
+                    <div class="fontclass">.icon-fenlei</div>
+                </li>
+            
+                <li>
+                <i class="icon iconfont icon-address"></i>
+                    <div class="name">地址</div>
+                    <div class="fontclass">.icon-address</div>
+                </li>
+            
+                <li>
+                <i class="icon iconfont icon-wentibuchong"></i>
+                    <div class="name">问题补充</div>
+                    <div class="fontclass">.icon-wentibuchong</div>
+                </li>
+            
+                <li>
+                <i class="icon iconfont icon-CombinedShape"></i>
+                    <div class="name">完成</div>
+                    <div class="fontclass">.icon-CombinedShape</div>
+                </li>
+            
+                <li>
+                <i class="icon iconfont icon-kehu"></i>
+                    <div class="name">客户</div>
+                    <div class="fontclass">.icon-kehu</div>
+                </li>
+            
+                <li>
+                <i class="icon iconfont icon-shangpin"></i>
+                    <div class="name">商品</div>
+                    <div class="fontclass">.icon-shangpin</div>
+                </li>
+            
+                <li>
+                <i class="icon iconfont icon-zuixin"></i>
+                    <div class="name">最新</div>
+                    <div class="fontclass">.icon-zuixin</div>
+                </li>
+            
+                <li>
+                <i class="icon iconfont icon-weikaishi"></i>
+                    <div class="name">未开始</div>
+                    <div class="fontclass">.icon-weikaishi</div>
+                </li>
+            
+                <li>
+                <i class="icon iconfont icon-baifenbi"></i>
+                    <div class="name">百分比</div>
+                    <div class="fontclass">.icon-baifenbi</div>
+                </li>
+            
+                <li>
+                <i class="icon iconfont icon-chakan"></i>
+                    <div class="name">查看</div>
+                    <div class="fontclass">.icon-chakan</div>
+                </li>
+            
+                <li>
+                <i class="icon iconfont icon-icon-"></i>
+                    <div class="name">结算</div>
+                    <div class="fontclass">.icon-icon-</div>
+                </li>
+            
+                <li>
+                <i class="icon iconfont icon-dian"></i>
+                    <div class="name">点</div>
+                    <div class="fontclass">.icon-dian</div>
+                </li>
+            
+                <li>
+                <i class="icon iconfont icon-ziyuan"></i>
+                    <div class="name">最新</div>
+                    <div class="fontclass">.icon-ziyuan</div>
+                </li>
+            
+                <li>
+                <i class="icon iconfont icon-zuixinxiaoxi"></i>
+                    <div class="name">最新消息</div>
+                    <div class="fontclass">.icon-zuixinxiaoxi</div>
+                </li>
+            
+                <li>
+                <i class="icon iconfont icon-buzhoutiaowancheng"></i>
+                    <div class="name">步骤条完成</div>
+                    <div class="fontclass">.icon-buzhoutiaowancheng</div>
+                </li>
+            
+                <li>
+                <i class="icon iconfont icon-jindu"></i>
+                    <div class="name">进度</div>
+                    <div class="fontclass">.icon-jindu</div>
+                </li>
+            
+        </ul>
+
+        <h2 id="font-class-">font-class引用</h2>
+        <hr>
+
+        <p>font-class是unicode使用方式的一种变种,主要是解决unicode书写不直观,语意不明确的问题。</p>
+        <p>与unicode使用方式相比,具有如下特点:</p>
+        <ul>
+        <li>兼容性良好,支持ie8+,及所有现代浏览器。</li>
+        <li>相比于unicode语意明确,书写更直观。可以很容易分辨这个icon是什么。</li>
+        <li>因为使用class来定义图标,所以当要替换图标时,只需要修改class里面的unicode引用。</li>
+        <li>不过因为本质上还是使用的字体,所以多色图标还是不支持的。</li>
+        </ul>
+        <p>使用步骤如下:</p>
+        <h3 id="-fontclass-">第一步:引入项目下面生成的fontclass代码:</h3>
+
+
+        <pre><code class="lang-js hljs javascript"><span class="hljs-comment">&lt;link rel="stylesheet" type="text/css" href="./iconfont.css"&gt;</span></code></pre>
+        <h3 id="-">第二步:挑选相应图标并获取类名,应用于页面:</h3>
+        <pre><code class="lang-css hljs">&lt;<span class="hljs-selector-tag">i</span> <span class="hljs-selector-tag">class</span>="<span class="hljs-selector-tag">iconfont</span> <span class="hljs-selector-tag">icon-xxx</span>"&gt;&lt;/<span class="hljs-selector-tag">i</span>&gt;</code></pre>
+        <blockquote>
+        <p>"iconfont"是你项目下的font-family。可以通过编辑项目查看,默认是"iconfont"。</p>
+        </blockquote>
+    </div>
+</body>
+</html>

+ 207 - 0
src/assets/iconfont/demo_symbol.html

@@ -0,0 +1,207 @@
+
+<!DOCTYPE html>
+<html>
+<head>
+    <meta charset="utf-8"/>
+    <title>IconFont</title>
+    <link rel="stylesheet" href="demo.css">
+    <script src="iconfont.js"></script>
+
+    <style type="text/css">
+        .icon {
+          /* 通过设置 font-size 来改变图标大小 */
+          width: 1em; height: 1em;
+          /* 图标和文字相邻时,垂直对齐 */
+          vertical-align: -0.15em;
+          /* 通过设置 color 来改变 SVG 的颜色/fill */
+          fill: currentColor;
+          /* path 和 stroke 溢出 viewBox 部分在 IE 下会显示
+             normalize.css 中也包含这行 */
+          overflow: hidden;
+        }
+
+    </style>
+</head>
+<body>
+    <div class="main markdown">
+        <h1>IconFont 图标</h1>
+        <ul class="icon_lists clear">
+            
+                <li>
+                    <svg class="icon" aria-hidden="true">
+                        <use xlink:href="#icon-buzouweijinxing"></use>
+                    </svg>
+                    <div class="name">步骤-未进行</div>
+                    <div class="fontclass">#icon-buzouweijinxing</div>
+                </li>
+            
+                <li>
+                    <svg class="icon" aria-hidden="true">
+                        <use xlink:href="#icon-zanting"></use>
+                    </svg>
+                    <div class="name">暂停</div>
+                    <div class="fontclass">#icon-zanting</div>
+                </li>
+            
+                <li>
+                    <svg class="icon" aria-hidden="true">
+                        <use xlink:href="#icon-fenlei"></use>
+                    </svg>
+                    <div class="name">分类</div>
+                    <div class="fontclass">#icon-fenlei</div>
+                </li>
+            
+                <li>
+                    <svg class="icon" aria-hidden="true">
+                        <use xlink:href="#icon-address"></use>
+                    </svg>
+                    <div class="name">地址</div>
+                    <div class="fontclass">#icon-address</div>
+                </li>
+            
+                <li>
+                    <svg class="icon" aria-hidden="true">
+                        <use xlink:href="#icon-wentibuchong"></use>
+                    </svg>
+                    <div class="name">问题补充</div>
+                    <div class="fontclass">#icon-wentibuchong</div>
+                </li>
+            
+                <li>
+                    <svg class="icon" aria-hidden="true">
+                        <use xlink:href="#icon-CombinedShape"></use>
+                    </svg>
+                    <div class="name">完成</div>
+                    <div class="fontclass">#icon-CombinedShape</div>
+                </li>
+            
+                <li>
+                    <svg class="icon" aria-hidden="true">
+                        <use xlink:href="#icon-kehu"></use>
+                    </svg>
+                    <div class="name">客户</div>
+                    <div class="fontclass">#icon-kehu</div>
+                </li>
+            
+                <li>
+                    <svg class="icon" aria-hidden="true">
+                        <use xlink:href="#icon-shangpin"></use>
+                    </svg>
+                    <div class="name">商品</div>
+                    <div class="fontclass">#icon-shangpin</div>
+                </li>
+            
+                <li>
+                    <svg class="icon" aria-hidden="true">
+                        <use xlink:href="#icon-zuixin"></use>
+                    </svg>
+                    <div class="name">最新</div>
+                    <div class="fontclass">#icon-zuixin</div>
+                </li>
+            
+                <li>
+                    <svg class="icon" aria-hidden="true">
+                        <use xlink:href="#icon-weikaishi"></use>
+                    </svg>
+                    <div class="name">未开始</div>
+                    <div class="fontclass">#icon-weikaishi</div>
+                </li>
+            
+                <li>
+                    <svg class="icon" aria-hidden="true">
+                        <use xlink:href="#icon-baifenbi"></use>
+                    </svg>
+                    <div class="name">百分比</div>
+                    <div class="fontclass">#icon-baifenbi</div>
+                </li>
+            
+                <li>
+                    <svg class="icon" aria-hidden="true">
+                        <use xlink:href="#icon-chakan"></use>
+                    </svg>
+                    <div class="name">查看</div>
+                    <div class="fontclass">#icon-chakan</div>
+                </li>
+            
+                <li>
+                    <svg class="icon" aria-hidden="true">
+                        <use xlink:href="#icon-icon-"></use>
+                    </svg>
+                    <div class="name">结算</div>
+                    <div class="fontclass">#icon-icon-</div>
+                </li>
+            
+                <li>
+                    <svg class="icon" aria-hidden="true">
+                        <use xlink:href="#icon-dian"></use>
+                    </svg>
+                    <div class="name">点</div>
+                    <div class="fontclass">#icon-dian</div>
+                </li>
+            
+                <li>
+                    <svg class="icon" aria-hidden="true">
+                        <use xlink:href="#icon-ziyuan"></use>
+                    </svg>
+                    <div class="name">最新</div>
+                    <div class="fontclass">#icon-ziyuan</div>
+                </li>
+            
+                <li>
+                    <svg class="icon" aria-hidden="true">
+                        <use xlink:href="#icon-zuixinxiaoxi"></use>
+                    </svg>
+                    <div class="name">最新消息</div>
+                    <div class="fontclass">#icon-zuixinxiaoxi</div>
+                </li>
+            
+                <li>
+                    <svg class="icon" aria-hidden="true">
+                        <use xlink:href="#icon-buzhoutiaowancheng"></use>
+                    </svg>
+                    <div class="name">步骤条完成</div>
+                    <div class="fontclass">#icon-buzhoutiaowancheng</div>
+                </li>
+            
+                <li>
+                    <svg class="icon" aria-hidden="true">
+                        <use xlink:href="#icon-jindu"></use>
+                    </svg>
+                    <div class="name">进度</div>
+                    <div class="fontclass">#icon-jindu</div>
+                </li>
+            
+        </ul>
+
+
+        <h2 id="symbol-">symbol引用</h2>
+        <hr>
+
+        <p>这是一种全新的使用方式,应该说这才是未来的主流,也是平台目前推荐的用法。相关介绍可以参考这篇<a href="">文章</a>
+        这种用法其实是做了一个svg的集合,与另外两种相比具有如下特点:</p>
+        <ul>
+          <li>支持多色图标了,不再受单色限制。</li>
+          <li>通过一些技巧,支持像字体那样,通过<code>font-size</code>,<code>color</code>来调整样式。</li>
+          <li>兼容性较差,支持 ie9+,及现代浏览器。</li>
+          <li>浏览器渲染svg的性能一般,还不如png。</li>
+        </ul>
+        <p>使用步骤如下:</p>
+        <h3 id="-symbol-">第一步:引入项目下面生成的symbol代码:</h3>
+        <pre><code class="lang-js hljs javascript"><span class="hljs-comment">&lt;script src="./iconfont.js"&gt;&lt;/script&gt;</span></code></pre>
+        <h3 id="-css-">第二步:加入通用css代码(引入一次就行):</h3>
+        <pre><code class="lang-js hljs javascript">&lt;style type=<span class="hljs-string">"text/css"</span>&gt;
+.icon {
+   width: <span class="hljs-number">1</span>em; height: <span class="hljs-number">1</span>em;
+   vertical-align: <span class="hljs-number">-0.15</span>em;
+   fill: currentColor;
+   overflow: hidden;
+}
+&lt;<span class="hljs-regexp">/style&gt;</span></code></pre>
+        <h3 id="-">第三步:挑选相应图标并获取类名,应用于页面:</h3>
+        <pre><code class="lang-js hljs javascript">&lt;svg <span class="hljs-class"><span class="hljs-keyword">class</span></span>=<span class="hljs-string">"icon"</span> aria-hidden=<span class="hljs-string">"true"</span>&gt;<span class="xml"><span class="hljs-tag">
+  &lt;<span class="hljs-name">use</span> <span class="hljs-attr">xlink:href</span>=<span class="hljs-string">"#icon-xxx"</span>&gt;</span><span class="hljs-tag">&lt;/<span class="hljs-name">use</span>&gt;</span>
+</span>&lt;<span class="hljs-regexp">/svg&gt;
+        </span></code></pre>
+    </div>
+</body>
+</html>

+ 186 - 0
src/assets/iconfont/demo_unicode.html

@@ -0,0 +1,186 @@
+
+<!DOCTYPE html>
+<html>
+<head>
+    <meta charset="utf-8"/>
+    <title>IconFont</title>
+    <link rel="stylesheet" href="demo.css">
+
+    <style type="text/css">
+
+        @font-face {font-family: "iconfont";
+          src: url('iconfont.eot'); /* IE9*/
+          src: url('iconfont.eot#iefix') format('embedded-opentype'), /* IE6-IE8 */
+          url('iconfont.woff') format('woff'), /* chrome, firefox */
+          url('iconfont.ttf') format('truetype'), /* chrome, firefox, opera, Safari, Android, iOS 4.2+*/
+          url('iconfont.svg#iconfont') format('svg'); /* iOS 4.1- */
+        }
+
+        .iconfont {
+          font-family:"iconfont" !important;
+          font-size:16px;
+          font-style:normal;
+          -webkit-font-smoothing: antialiased;
+          -webkit-text-stroke-width: 0.2px;
+          -moz-osx-font-smoothing: grayscale;
+        }
+
+    </style>
+</head>
+<body>
+    <div class="main markdown">
+        <h1>IconFont 图标</h1>
+        <ul class="icon_lists clear">
+            
+                <li>
+                <i class="icon iconfont">&#xe62a;</i>
+                    <div class="name">步骤-未进行</div>
+                    <div class="code">&amp;#xe62a;</div>
+                </li>
+            
+                <li>
+                <i class="icon iconfont">&#xe6ca;</i>
+                    <div class="name">暂停</div>
+                    <div class="code">&amp;#xe6ca;</div>
+                </li>
+            
+                <li>
+                <i class="icon iconfont">&#xe628;</i>
+                    <div class="name">分类</div>
+                    <div class="code">&amp;#xe628;</div>
+                </li>
+            
+                <li>
+                <i class="icon iconfont">&#xe611;</i>
+                    <div class="name">地址</div>
+                    <div class="code">&amp;#xe611;</div>
+                </li>
+            
+                <li>
+                <i class="icon iconfont">&#xe6c0;</i>
+                    <div class="name">问题补充</div>
+                    <div class="code">&amp;#xe6c0;</div>
+                </li>
+            
+                <li>
+                <i class="icon iconfont">&#xe602;</i>
+                    <div class="name">完成</div>
+                    <div class="code">&amp;#xe602;</div>
+                </li>
+            
+                <li>
+                <i class="icon iconfont">&#xe603;</i>
+                    <div class="name">客户</div>
+                    <div class="code">&amp;#xe603;</div>
+                </li>
+            
+                <li>
+                <i class="icon iconfont">&#xe694;</i>
+                    <div class="name">商品</div>
+                    <div class="code">&amp;#xe694;</div>
+                </li>
+            
+                <li>
+                <i class="icon iconfont">&#xe606;</i>
+                    <div class="name">最新</div>
+                    <div class="code">&amp;#xe606;</div>
+                </li>
+            
+                <li>
+                <i class="icon iconfont">&#xe610;</i>
+                    <div class="name">未开始</div>
+                    <div class="code">&amp;#xe610;</div>
+                </li>
+            
+                <li>
+                <i class="icon iconfont">&#xe63b;</i>
+                    <div class="name">百分比</div>
+                    <div class="code">&amp;#xe63b;</div>
+                </li>
+            
+                <li>
+                <i class="icon iconfont">&#xe600;</i>
+                    <div class="name">查看</div>
+                    <div class="code">&amp;#xe600;</div>
+                </li>
+            
+                <li>
+                <i class="icon iconfont">&#xe6db;</i>
+                    <div class="name">结算</div>
+                    <div class="code">&amp;#xe6db;</div>
+                </li>
+            
+                <li>
+                <i class="icon iconfont">&#xec1e;</i>
+                    <div class="name">点</div>
+                    <div class="code">&amp;#xec1e;</div>
+                </li>
+            
+                <li>
+                <i class="icon iconfont">&#xe682;</i>
+                    <div class="name">最新</div>
+                    <div class="code">&amp;#xe682;</div>
+                </li>
+            
+                <li>
+                <i class="icon iconfont">&#xe642;</i>
+                    <div class="name">最新消息</div>
+                    <div class="code">&amp;#xe642;</div>
+                </li>
+            
+                <li>
+                <i class="icon iconfont">&#xe634;</i>
+                    <div class="name">步骤条完成</div>
+                    <div class="code">&amp;#xe634;</div>
+                </li>
+            
+                <li>
+                <i class="icon iconfont">&#xe621;</i>
+                    <div class="name">进度</div>
+                    <div class="code">&amp;#xe621;</div>
+                </li>
+            
+        </ul>
+        <h2 id="unicode-">unicode引用</h2>
+        <hr>
+
+        <p>unicode是字体在网页端最原始的应用方式,特点是:</p>
+        <ul>
+        <li>兼容性最好,支持ie6+,及所有现代浏览器。</li>
+        <li>支持按字体的方式去动态调整图标大小,颜色等等。</li>
+        <li>但是因为是字体,所以不支持多色。只能使用平台里单色的图标,就算项目里有多色图标也会自动去色。</li>
+        </ul>
+        <blockquote>
+        <p>注意:新版iconfont支持多色图标,这些多色图标在unicode模式下将不能使用,如果有需求建议使用symbol的引用方式</p>
+        </blockquote>
+        <p>unicode使用步骤如下:</p>
+        <h3 id="-font-face">第一步:拷贝项目下面生成的font-face</h3>
+        <pre><code class="lang-js hljs javascript">@font-face {
+  font-family: <span class="hljs-string">'iconfont'</span>;
+  src: url(<span class="hljs-string">'iconfont.eot'</span>);
+  src: url(<span class="hljs-string">'iconfont.eot?#iefix'</span>) format(<span class="hljs-string">'embedded-opentype'</span>),
+  url(<span class="hljs-string">'iconfont.woff'</span>) format(<span class="hljs-string">'woff'</span>),
+  url(<span class="hljs-string">'iconfont.ttf'</span>) format(<span class="hljs-string">'truetype'</span>),
+  url(<span class="hljs-string">'iconfont.svg#iconfont'</span>) format(<span class="hljs-string">'svg'</span>);
+}
+</code></pre>
+        <h3 id="-iconfont-">第二步:定义使用iconfont的样式</h3>
+        <pre><code class="lang-js hljs javascript">.iconfont{
+  font-family:<span class="hljs-string">"iconfont"</span> !important;
+  font-size:<span class="hljs-number">16</span>px;font-style:normal;
+  -webkit-font-smoothing: antialiased;
+  -webkit-text-stroke-width: <span class="hljs-number">0.2</span>px;
+  -moz-osx-font-smoothing: grayscale;
+}
+</code></pre>
+        <h3 id="-">第三步:挑选相应图标并获取字体编码,应用于页面</h3>
+        <pre><code class="lang-js hljs javascript">&lt;i <span class="hljs-class"><span class="hljs-keyword">class</span></span>=<span class="hljs-string">"iconfont"</span>&gt;&amp;#x33;<span class="xml"><span class="hljs-tag">&lt;/<span class="hljs-name">i</span>&gt;</span></span></code></pre>
+
+        <blockquote>
+        <p>"iconfont"是你项目下的font-family。可以通过编辑项目查看,默认是"iconfont"。</p>
+        </blockquote>
+    </div>
+
+
+</body>
+</html>

A diferenza do arquivo foi suprimida porque é demasiado grande
+ 53 - 0
src/assets/iconfont/iconfont.css


BIN=BIN
src/assets/iconfont/iconfont.eot


A diferenza do arquivo foi suprimida porque é demasiado grande
+ 1 - 0
src/assets/iconfont/iconfont.js


A diferenza do arquivo foi suprimida porque é demasiado grande
+ 80 - 0
src/assets/iconfont/iconfont.svg


BIN=BIN
src/assets/iconfont/iconfont.ttf


BIN=BIN
src/assets/iconfont/iconfont.woff


BIN=BIN
src/assets/logo.png


+ 113 - 0
src/components/HelloWorld.vue

@@ -0,0 +1,113 @@
+<template>
+  <div class="hello">
+    <h1>{{ msg }}</h1>
+    <h2>Essential Links</h2>
+    <ul>
+      <li>
+        <a
+          href="https://vuejs.org"
+          target="_blank"
+        >
+          Core Docs
+        </a>
+      </li>
+      <li>
+        <a
+          href="https://forum.vuejs.org"
+          target="_blank"
+        >
+          Forum
+        </a>
+      </li>
+      <li>
+        <a
+          href="https://chat.vuejs.org"
+          target="_blank"
+        >
+          Community Chat
+        </a>
+      </li>
+      <li>
+        <a
+          href="https://twitter.com/vuejs"
+          target="_blank"
+        >
+          Twitter
+        </a>
+      </li>
+      <br>
+      <li>
+        <a
+          href="http://vuejs-templates.github.io/webpack/"
+          target="_blank"
+        >
+          Docs for This Template
+        </a>
+      </li>
+    </ul>
+    <h2>Ecosystem</h2>
+    <ul>
+      <li>
+        <a
+          href="http://router.vuejs.org/"
+          target="_blank"
+        >
+          vue-router
+        </a>
+      </li>
+      <li>
+        <a
+          href="http://vuex.vuejs.org/"
+          target="_blank"
+        >
+          vuex
+        </a>
+      </li>
+      <li>
+        <a
+          href="http://vue-loader.vuejs.org/"
+          target="_blank"
+        >
+          vue-loader
+        </a>
+      </li>
+      <li>
+        <a
+          href="https://github.com/vuejs/awesome-vue"
+          target="_blank"
+        >
+          awesome-vue
+        </a>
+      </li>
+    </ul>
+  </div>
+</template>
+
+<script>
+export default {
+  name: 'HelloWorld',
+  data () {
+    return {
+      msg: 'Welcome to Your Vue.js App'
+    }
+  }
+}
+</script>
+
+<!-- Add "scoped" attribute to limit CSS to this component only -->
+<style scoped>
+h1, h2 {
+  font-weight: normal;
+}
+ul {
+  list-style-type: none;
+  padding: 0;
+}
+li {
+  display: inline-block;
+  margin: 0 10px;
+}
+a {
+  color: #42b983;
+}
+</style>

+ 18 - 0
src/main.js

@@ -0,0 +1,18 @@
+// 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 App from './App'
+import router from './router'
+import './assets/iconfont/iconfont.js'
+// import MuseUI from 'muse-ui'
+// import 'muse-ui/dist/muse-ui.css'
+
+Vue.config.productionTip = false
+// Vue.use(MuseUI)
+/* eslint-disable no-new */
+new Vue({
+  el: '#app',
+  router,
+  components: { App },
+  template: '<App/>'
+})

+ 238 - 0
src/pages/components/saletasklist.vue

@@ -0,0 +1,238 @@
+<template>
+  <div class="maininfo">
+    <div class="taskinfo">
+      <div class="taskinfoflex">
+        <div class="taskinfotitle">
+          <div class="title">订单号码:</div>
+          <div class="taskinfoitem">SC181211001</div>
+        </div>
+        <div class="taskflag">待审核</div>
+      </div>
+      <div class="taskinfotitle">
+        <div class="title">客户名称:</div>
+        <div class="taskinfoitem cusname">广东省佛山市顺德区某某经销商</div>
+      </div>
+
+      <div class="taskinfotitle">
+        <div class="title">业务员:</div>
+        <div class="taskinfoitem">张大三</div>
+      </div>
+      <div class='taskinfoflex'>
+        <div class="taskinfotitle">
+          <div class="title ">订货日期:</div>
+          <div class="taskinfoitem leftsize">2018-12-10</div>
+        </div>
+        <div class="taskinfotitle">
+          <div class="title rightside">交货日期:</div>
+          <div class="taskinfoitem requiredate">2018-12-30</div>
+        </div>
+      </div>
+      <div class="taskinfoamt">
+        <div class="taskinfotitle">
+          <div class="title">金额:</div>
+          <div class="taskinfoitem taskamt leftsize">¥100000</div>
+        </div>
+        <div class="taskinfotitle dingjin">
+          <div class="title rightside">订金:</div>
+          <div class="taskinfoitem taskamt">¥30000</div>
+        </div>
+      </div>
+    </div>
+
+
+    <div class="mxinfo">
+      <div class="subtitle">
+        <svg class="icon" aria-hidden="true">
+          <use xlink:href="#icon-shangpin"></use>
+        </svg>
+        共300件商品,其中包括
+      </div>
+      <div clsss="rowmx">
+        <div class="mxmtrl">
+          <svg class="icon" aria-hidden="true">
+            <use xlink:href="#icon-dian"></use>
+          </svg>
+          218B两人位沙发,拉扣:布扣|座包:型号标配|配置:皮加布|
+        </div>
+        <div class="mxqty">数量:100,¥50000</div>
+      </div>
+      <div clsss="rowmx">
+        <div class="mxmtrl">
+          <svg class="icon" aria-hidden="true">
+            <use xlink:href="#icon-dian"></use>
+          </svg>
+          6528茶几,型号:P069(72913)
+        </div>
+        <div class="mxqty">数量:100,¥30000</div>
+      </div>
+    </div>
+
+    <div class="bottomarea">
+      <div class="tip">
+        <svg class="icon" aria-hidden="true">
+          <use xlink:href="#icon-fenlei"></use>
+        </svg>
+        国内
+      </div>
+      <div class="tip">
+        <svg class="icon" aria-hidden="true">
+          <use xlink:href="#icon-icon-"></use>
+        </svg>
+        款到发货
+      </div>
+      <div class="btndetail" @click="gotodetail">
+        <svg class="icon" aria-hidden="true">
+          <use xlink:href="#icon-chakan"></use>
+        </svg>
+        查看详情
+      </div>
+
+
+    </div>
+  </div>
+</template>
+
+<script>
+  export default {
+    name: "saletasklist",
+    props: {},
+    methods: {
+      gotodetail(){
+        this.$router.push({
+          path: "/detail"
+        });
+      }
+    }
+  };
+
+</script>
+
+<style>
+  .maininfo {
+    background: #fff;
+    margin-bottom: 10px;
+    padding: 10px 10px 2px 10px;
+    font-size: 16px;
+    font-family: "微软雅黑";
+    /* width:100% */
+  }
+
+  .taskinfoflex {
+    display: flex;
+    /* height: 60px; */
+    align-items: center;
+  }
+
+  .taskflag {
+    position: absolute;
+    right: 20px;
+    width: 55px;
+    font-size: 13px;
+    font-weight: bold;
+    color: #fff;
+    border-radius: 15px;
+    padding: 3px;
+    text-align: center;
+    margin-right: 5px;
+    background-color: red;
+  }
+
+  .taskinfotitle {
+    font-weight: bold;
+    margin: 0;
+    display: flex;
+    flex-wrap:wrap;
+  }
+
+  .cusname{
+    width:70%;
+  }
+
+  .title {
+    width: 80px;
+    text-align: right
+  }
+
+  .taskinfoitem {
+    font-weight: normal;
+    color: #333;
+
+  }
+
+  .taskinfoamt {
+    display: flex;
+  }
+
+  .taskamt {
+    font-weight: bold;
+    color: red;
+  }
+
+  .leftsize {
+    width: 100px;
+  }
+
+  /* .requiredate {
+    position: absolute;
+    right: 39px;
+    width:90px;
+  } */
+
+
+
+  .mxinfo {
+    /* border-top: 1px solid #eee; */
+    padding: 2px 5px 5px 5px;
+    margin: 5px;
+    background-color: rgb(245, 244, 244);
+    border-radius: 10px;
+    /* width:100% */
+  }
+
+  .subtitle {
+    font-size: 14px;
+    color: #666;
+    margin: 5px 0;
+    padding-bottom: 3px;
+    border-bottom: 1px solid #ddd;
+  }
+
+  .mxmtrl {
+    font-size: 14px;
+    margin-top: 5px;
+  }
+
+  .mxqty {
+    font-size: 12px;
+    color: #888;
+    margin-bottom: 3px;
+    margin-left: 20px;
+  }
+
+  .bottomarea {
+    display: flex;
+    /* border-top: 1px solid #eee; */
+    margin: 0 5px;
+    padding: 5px 0;
+    font-size: 13px;
+    line-height: 25px;
+    color: #888
+  }
+
+  .tip {
+    border-radius: 5px;
+    background-color: rgb(245, 243, 243);
+    padding: 0 10px;
+    margin-right: 10px;
+  }
+
+  .btndetail {
+    position: absolute;
+    right: 20px;
+    color: #888;
+    font-size: 13px;
+    margin-right: 0px;
+    border-radius: 5px;
+  }
+
+</style>

+ 31 - 0
src/pages/saletask.vue

@@ -0,0 +1,31 @@
+<template>
+  <div class="bill">
+    <saletask-list v-for="(item,index) in dmlist" :key="index"></saletask-list>
+  </div>
+</template>
+
+<script>
+  import SaletaskList from "./components/saletasklist";
+  export default {
+    name: 'saletask',
+    components: {
+      SaletaskList
+    },
+    data() {
+      return {
+        dmlist: [1, 2, 3, 4, 5, 6, 7, 8, 9]
+      }
+    }
+  }
+
+</script>
+
+
+<style>
+  body {
+    margin: 0;
+    padding: 0;
+    background-color:#eee;
+  }
+
+</style>

+ 408 - 0
src/pages/saletaskdetail.vue

@@ -0,0 +1,408 @@
+<template>
+  <div id="taskdetail">
+    <div class="toparea_dt" :class="colortop">
+      <div class="taskcode_dt">
+        SC181211001
+        <svg class="icon" aria-hidden="true" v-if="ifnew==1">
+          <use xlink:href="#icon-ziyuan"></use>
+        </svg>
+      </div>
+      <div class="taskflag_dt">
+        <svg class="icon" aria-hidden="true">
+          <use xlink:href="#icon-weikaishi" v-if="taskflag_dt=='待审核'"></use>
+          <use xlink:href="#icon-jindu" v-if="taskflag_dt=='在进行'"></use>
+          <use xlink:href="#icon-CombinedShape" v-if="taskflag_dt=='已完成'"></use>
+        </svg>
+        {{taskflag_dt}}
+      </div>
+    </div>
+    <div class="taskinfo_dt">
+      <div class="cust_dt">
+        <svg class="icon" aria-hidden="true">
+          <use xlink:href="#icon-kehu"></use>
+        </svg>
+        广东省佛山市顺德区某某经销商
+      </div>
+    </div>
+    <div class="reptel_dt">
+      <svg class="icon" aria-hidden="true">
+        <use xlink:href="#icon-address_dt"></use>
+      </svg>
+      <span>王利云</span>
+      <span style="margin-left:10px;">13800138000</span>
+    </div>
+    <div class="address_dt">地址:广东省顺德市芙蓉中路二段115号湖南千思湖南千思湖南千思湖南千思湖南千思</div>
+
+    <div class="liubai_dt"></div>
+
+    <div class="middlearea">
+      <div class="taskinfo_dttitle_dt">
+        <div class="title_dt">业务员:</div>
+        <div class="taskinfo_dtitem">张大三</div>
+      </div>
+      <div class='taskinfo_dtflex'>
+        <div class="taskinfo_dttitle_dt">
+          <div class="title_dt ">订货日期:</div>
+          <div class="taskinfo_dtitem leftsize">2018-12-10</div>
+        </div>
+        <div class="taskinfo_dttitle_dt">
+          <div class="title_dt rightside">交货日期:</div>
+          <div class="taskinfo_dtitem requiredate">2018-12-30</div>
+        </div>
+      </div>
+      <div class="taskinfo_dtamt">
+        <div class="taskinfo_dttitle_dt">
+          <div class="title_dt">金额:</div>
+          <div class="taskinfo_dtitem taskamt leftsize">¥100000</div>
+        </div>
+        <div class="taskinfo_dttitle_dt dingjin">
+          <div class="title_dt rightside">订金:</div>
+          <div class="taskinfo_dtitem taskamt">¥30000</div>
+        </div>
+      </div>
+      <div class="taskinfo_dtamt">
+        <div class="taskinfo_dttitle_dt">
+          <div class="title_dt">已收金额:</div>
+          <div class="taskinfo_dtitem taskamt leftsize">¥60000</div>
+        </div>
+        <div class="taskinfo_dttitle_dt dingjin">
+          <div class="title_dt rightside">未收金额:</div>
+          <div class="taskinfo_dtitem taskamt">¥40000</div>
+        </div>
+      </div>
+      <div class="taskinfo_dttitle_dt">
+        <div class="title_dt">结算方式:</div>
+        <div class="taskinfo_dtitem">款到发货</div>
+      </div>
+      <div class="taskinfo_dttitle_dt" style="margin-top:10px; ">
+        <div class="title_dt">货运部:</div>
+        <div class="taskinfo_dtitem">佳杰物流</div>
+      </div>
+      <div class="taskinfo_dttitle_dt">
+        <div class="title_dt">货运电话:</div>
+        <div class="taskinfo_dtitem">13928952902</div>
+      </div>
+      <div class="hyaddress_dt">货运部地址:乐从水藤加油站后面陆通物流园A6座12-16仓湖南大本营</div>
+    </div>
+
+    <div class="dscrp">
+      <svg class="icon" aria-hidden="true">
+        <use xlink:href="#icon-wentibuchong"></use>
+      </svg>
+      我是备注信息,如果没有,就不显示这一个div了。哔哩吧啦哔哩吧啦,哔哩吧啦哔哩吧啦,哔哩吧啦哔哩吧啦,哔哩吧啦哔哩吧啦!
+    </div>
+
+    <div class="liubai_dt"></div>
+
+    <div class="subtitle_dt">订单进度跟踪</div>
+    <div class="jindu">
+      <div>
+        <svg class="icon" aria-hidden="true">
+          <use xlink:href="#icon-buzhoutiaowancheng"></use>
+        </svg>
+        审核时间:2018-12-11 09:30
+      </div>
+      <div>
+        <svg class="icon" aria-hidden="true">
+          <use xlink:href="#icon-buzhoutiaowancheng"></use>
+        </svg>
+        物料清单审核:2018-12-11 15:32
+      </div>
+      <div>
+        <svg class="icon" aria-hidden="true">
+          <use xlink:href="#icon-buzhoutiaowancheng"></use>
+        </svg>
+        主计划建立:2018-12-12 14:29
+      </div>
+      <div>
+        <svg class="icon" aria-hidden="true">
+          <use xlink:href="#icon-buzouweijinxing"></use>
+        </svg>
+        物料订购:
+      </div>
+      <div>
+        <svg class="icon" aria-hidden="true">
+          <use xlink:href="#icon-buzouweijinxing"></use>
+        </svg>
+        唛头确认:
+      </div>
+      <div>
+        <svg class="icon" aria-hidden="true">
+          <use xlink:href="#icon-baifenbi"></use>
+        </svg>
+        材料入库比例:33%
+        <span class="jindubtn">欠料情况</span>
+      </div>
+      <div>
+        <svg class="icon" aria-hidden="true">
+          <use xlink:href="#icon-buzouweijinxing"></use>
+        </svg>
+        排程审核:
+      </div>
+      <div>
+        <svg class="icon" aria-hidden="true">
+          <use xlink:href="#icon-baifenbi"></use>
+        </svg>
+        发料通知:90%
+      </div>
+      <div>
+        <svg class="icon" aria-hidden="true">
+          <use xlink:href="#icon-baifenbi"></use>
+        </svg>
+        发料比例:10%
+      </div>
+      <div>
+        <svg class="icon" aria-hidden="true">
+          <use xlink:href="#icon-baifenbi"></use>
+        </svg>
+        木工:90%
+      </div>
+      <div>
+        <svg class="icon" aria-hidden="true">
+          <use xlink:href="#icon-baifenbi"></use>
+        </svg>
+        裁剪:10%
+      </div>
+      <div>
+        <svg class="icon" aria-hidden="true">
+          <use xlink:href="#icon-baifenbi"></use>
+        </svg>
+        入库:2%&nbsp&nbsp(20/1000)
+      </div>
+      <div> <svg class="icon" aria-hidden="true">
+          <use xlink:href="#icon-buzouweijinxing"></use>
+        </svg>
+        订船日期:
+      </div>
+      <div>
+        <svg class="icon" aria-hidden="true">
+          <use xlink:href="#icon-buzouweijinxing"></use>
+        </svg>
+        装柜日期:
+      </div>
+      <div>
+        <svg class="icon" aria-hidden="true">
+          <use xlink:href="#icon-buzouweijinxing"></use>
+        </svg>
+        发货开单日期:
+      </div>
+      <div>
+        <svg class="icon" aria-hidden="true">
+          <use xlink:href="#icon-buzouweijinxing"></use>
+        </svg>
+        仓审日期:
+      </div>
+      <div>
+        <svg class="icon" aria-hidden="true">
+          <use xlink:href="#icon-buzouweijinxing"></use>
+        </svg>
+        财务审核日期:
+      </div>
+
+
+    </div>
+
+    <div class="liubai_dt"></div>
+    <div class="subtitle_dt">订单明细</div>
+    <div class="taskmx">
+
+
+    </div>
+
+  </div>
+</template>
+
+<script>
+  export default {
+
+    name: 'saletaskDetail',
+    data() {
+      return {
+        taskflag_dt: '待审核',
+        ifnew: 1
+      };
+    },
+    computed: {
+      colortop: function () {
+        return {
+          bgcolorred: this.taskflag_dt == "待审核",
+          bgcolorgreen: this.taskflag_dt == "在进行",
+          bgcolorblue: this.taskflag_dt == "已完成"
+        };
+      },
+    }
+  }
+
+</script>
+
+<style>
+  body {
+    margin: 0;
+    padding: 0;
+    /* background-color: #fff; */
+    font-family: "微软雅黑";
+  }
+
+  #taskdetail{
+      background-color: #fff;
+  }
+
+  .toparea_dt {
+    color: white;
+    background-color: rgb(252, 78, 44);
+    height: 80px;
+    display: flex;
+  }
+
+  .bgcolorred {
+    background-color: rgb(252, 78, 44)
+  }
+
+  .bgcolorgreen {
+    background-color: rgb(141, 192, 38);
+  }
+
+  .bgcolorblue {
+    background-color: dodgerblue;
+  }
+
+  .taskcode_dt {
+    font-size: 22px;
+    font-weight: bold;
+    padding: 10px;
+    line-height: 30px;
+  }
+
+  .taskflag_dt {
+    font-size: 18px;
+    font-weight: bold;
+    padding: 10px;
+    line-height: 30px;
+    position: absolute;
+    right: 20px;
+  }
+
+  .taskinfo_dt {
+    background-color: #fff;
+    width: 100%;
+    height: 35px;
+    border-top-left-radius: 20px;
+    border-top-right-radius: 20px;
+    border-bottom-right-radius: 0px;
+    border-bottom-left-radius: 0px;
+    position: absolute;
+    top: 50px;
+  }
+
+  .cust_dt {
+    font-size: 16px;
+    font-weight: bold;
+    padding: 10px
+  }
+
+  .reptel_dt {
+    font-size: 14px;
+    font-weight: bold;
+    margin: 10px 0 2px 10px;
+  }
+
+  .address_dt {
+    font-size: 13px;
+    margin-left: 30px;
+    margin-right: 20px;
+    margin-bottom: 10px;
+    color: #666;
+  }
+
+  .hyaddress_dt {
+    font-size: 13px;
+    margin-left: 10px;
+    margin-right: 10px;
+    margin-bottom: 10px;
+    color: #666;
+  }
+
+  .liubai_dt {
+    width: 100%;
+    height: 10px;
+    background-color: rgb(246, 246, 246);
+  }
+
+  .middlearea {
+    margin: 10px;
+    font-size: 14px;
+  }
+
+  .taskinfo_dtflex {
+    display: flex;
+    /* height: 60px; */
+    align-items: center;
+  }
+
+  .taskinfo_dttitle_dt {
+    font-weight: bold;
+    margin-bottom: 5px;
+    display: flex;
+    flex-wrap: wrap;
+  }
+
+  .title_dt {
+    width: 80px;
+    text-align: right
+  }
+
+  .taskinfo_dtitem {
+    font-weight: normal;
+    color: #333;
+
+  }
+
+  .taskinfo_dtamt {
+    display: flex;
+  }
+
+  .taskamt {
+    font-weight: bold;
+    color: red;
+  }
+
+  .leftsize {
+    width: 100px;
+  }
+
+  .dscrp {
+    border-radius: 10px;
+    background: rgb(240, 237, 237);
+    padding: 10px 20px;
+    margin: 0 20px 10px 20px;
+    font-size: 15px;
+    color: #555;
+    line-height: 18px;
+  }
+
+  .subtitle_dt {
+    font-size: 17px;
+    font-weight: 700;
+    text-align: center;
+    margin: 0 20px;
+    height: 42px;
+    line-height: 43px;
+  }
+
+  .jindu {
+    border-top: 1px solid #f0f0f0;
+    margin: 0 20px;
+    font-size: 15px;
+    line-height: 30px;
+    padding: 10px 0;
+  }
+
+  .jindubtn {
+    margin-left: 20px;
+    border: 1px solid #bbb;
+    padding: 0 10px;
+    border-radius: 15px;
+    font-size: 13px;
+  }
+
+</style>

+ 24 - 0
src/router/index.js

@@ -0,0 +1,24 @@
+import Vue from 'vue'
+import Router from 'vue-router'
+import SaleTask from '@/pages/saletask'
+import SaleTaskDetail from '@/pages/saletaskdetail'
+
+Vue.use(Router)
+
+export default new Router({
+  routes: [
+    {
+      path: '/',
+      name: 'SaleTask',
+      component: SaleTask
+    },
+    {
+      path: '/detail',
+      name: 'SaleTaskDetail',
+      component: SaleTaskDetail,
+      meta: {
+        title: '订单详情'
+      }
+    }
+  ]
+})

+ 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')
+  })
+})