liutielin 1 year ago
parent
commit
d6c70a27d4
100 changed files with 19735 additions and 0 deletions
  1. 5 0
      .idea/.gitignore
  2. 12 0
      .idea/CBMLS-WEB.iml
  3. 8 0
      .idea/modules.xml
  4. 6 0
      .idea/vcs.xml
  5. 43 0
      .project
  6. 1 0
      bin/.gitignore
  7. 43 0
      bin/.project
  8. 21 0
      bin/README.md
  9. 41 0
      bin/build/build.js
  10. 54 0
      bin/build/check-versions.js
  11. BIN
      bin/build/logo.png
  12. 103 0
      bin/build/utils.js
  13. 22 0
      bin/build/vue-loader.conf.js
  14. 85 0
      bin/build/webpack.base.conf.js
  15. 95 0
      bin/build/webpack.dev.conf.js
  16. 173 0
      bin/build/webpack.prod.conf.js
  17. 7 0
      bin/config/dev.env.js
  18. 69 0
      bin/config/index.js
  19. 4 0
      bin/config/prod.env.js
  20. 7 0
      bin/dist-1/index.html
  21. 18935 0
      bin/dist-1/static/css/app.72f5012ca196cfa7782bdf5d0f7b31fe.css
  22. 1 0
      bin/dist-1/static/css/app.72f5012ca196cfa7782bdf5d0f7b31fe.css.map
  23. 0 0
      bin/dist-1/static/css/base.css
  24. 0 0
      bin/dist-1/static/css/commonNav.css
  25. 0 0
      bin/dist-1/static/css/nav.css
  26. 0 0
      bin/dist-1/static/css/shopDetail.scss
  27. 0 0
      bin/dist-1/static/css/shopList.scss
  28. 0 0
      bin/dist-1/static/css/swiper.css
  29. 0 0
      bin/dist-1/static/images/aboutUP/newAboutUP/01.png
  30. 0 0
      bin/dist-1/static/images/aboutUP/newAboutUP/01@2x.png
  31. 0 0
      bin/dist-1/static/images/aboutUP/newAboutUP/02.png
  32. BIN
      bin/dist-1/static/images/aboutUP/newAboutUP/02@2x-new.png
  33. 0 0
      bin/dist-1/static/images/aboutUP/newAboutUP/02@2x.png
  34. 0 0
      bin/dist-1/static/images/aboutUP/newAboutUP/03.png
  35. 0 0
      bin/dist-1/static/images/aboutUP/newAboutUP/03@2x.png
  36. 0 0
      bin/dist-1/static/images/aboutUP/newAboutUP/04.png
  37. 0 0
      bin/dist-1/static/images/aboutUP/newAboutUP/04@2x.png
  38. 0 0
      bin/dist-1/static/images/aboutUP/newAboutUP/04@3x.png
  39. 0 0
      bin/dist-1/static/images/aboutUP/newAboutUP/05@2x(1).png
  40. 0 0
      bin/dist-1/static/images/aboutUP/newAboutUP/05@2x.png
  41. 0 0
      bin/dist-1/static/images/aboutUP/newAboutUP/05@3x.png
  42. 0 0
      bin/dist-1/static/images/aboutUP/newAboutUP/UP.png
  43. 0 0
      bin/dist-1/static/images/aboutUP/newAboutUP/buy.png
  44. 0 0
      bin/dist-1/static/images/aboutUP/newAboutUP/cap.png
  45. BIN
      bin/dist-1/static/images/aboutUP/newAboutUP/cbmlsImg-new.png
  46. 0 0
      bin/dist-1/static/images/aboutUP/newAboutUP/cbmlsImg.png
  47. 0 0
      bin/dist-1/static/images/aboutUP/newAboutUP/chen.png
  48. 0 0
      bin/dist-1/static/images/aboutUP/newAboutUP/culture.png
  49. BIN
      bin/dist-1/static/images/aboutUP/newAboutUP/img1-new.png
  50. 0 0
      bin/dist-1/static/images/aboutUP/newAboutUP/img1.png
  51. 0 0
      bin/dist-1/static/images/aboutUP/newAboutUP/img2.png
  52. BIN
      bin/dist-1/static/images/aboutUP/newAboutUP/img3-new.png
  53. 0 0
      bin/dist-1/static/images/aboutUP/newAboutUP/img3.png
  54. 0 0
      bin/dist-1/static/images/aboutUP/newAboutUP/img4.png
  55. 0 0
      bin/dist-1/static/images/aboutUP/newAboutUP/joinUp.png
  56. 0 0
      bin/dist-1/static/images/aboutUP/newAboutUP/real.png
  57. 0 0
      bin/dist-1/static/images/aboutUP/newAboutUP/tel.png
  58. 0 0
      bin/dist-1/static/images/aboutUP/newAboutUP/tel400.png
  59. 0 0
      bin/dist-1/static/images/aboutUP/newAboutUP/titleImg.png
  60. 0 0
      bin/dist-1/static/images/aboutUP/newAboutUP/upCode.png
  61. 0 0
      bin/dist-1/static/images/aboutUP/newAboutUP/upCode2.png
  62. 0 0
      bin/dist-1/static/images/aboutUP/newAboutUP/upCode3.png
  63. 0 0
      bin/dist-1/static/images/aboutUP/newAboutUP/upLogo.png
  64. 0 0
      bin/dist-1/static/images/aboutUP/newAboutUP/youpu.png
  65. 0 0
      bin/dist-1/static/images/aboutUP/newAboutUP/zu.png
  66. 0 0
      bin/dist-1/static/images/aboutUP/newAboutUP/zupubao.png
  67. 0 0
      bin/dist-1/static/images/aboutUP/upLogo.png
  68. 0 0
      bin/dist-1/static/images/brand/brandBg.png
  69. 0 0
      bin/dist-1/static/images/brand/estimateBg.png
  70. 0 0
      bin/dist-1/static/images/brand/jm.png
  71. 0 0
      bin/dist-1/static/images/brand/offices.png
  72. 0 0
      bin/dist-1/static/images/brand/shop.png
  73. 0 0
      bin/dist-1/static/images/brand/zy.png
  74. 0 0
      bin/dist-1/static/images/code/teamTop.png
  75. 0 0
      bin/dist-1/static/images/common/back.png
  76. 0 0
      bin/dist-1/static/images/common/chakan.png
  77. 0 0
      bin/dist-1/static/images/common/close.png
  78. 0 0
      bin/dist-1/static/images/common/icon1.png
  79. 0 0
      bin/dist-1/static/images/common/icon2.png
  80. 0 0
      bin/dist-1/static/images/common/icon3.png
  81. 0 0
      bin/dist-1/static/images/common/icon4.png
  82. 0 0
      bin/dist-1/static/images/common/icon5.png
  83. 0 0
      bin/dist-1/static/images/common/icon6.png
  84. 0 0
      bin/dist-1/static/images/common/icon7.png
  85. 0 0
      bin/dist-1/static/images/common/icon8.png
  86. 0 0
      bin/dist-1/static/images/common/newBack.png
  87. 0 0
      bin/dist-1/static/images/common/noData.png
  88. 0 0
      bin/dist-1/static/images/common/uploadPhoto.png
  89. 0 0
      bin/dist-1/static/images/common/whiteBack.png
  90. 0 0
      bin/dist-1/static/images/economic/broker.png
  91. 0 0
      bin/dist-1/static/images/economic/company.png
  92. 0 0
      bin/dist-1/static/images/economic/economicBg.png
  93. 0 0
      bin/dist-1/static/images/entrust/entrustBg.png
  94. 0 0
      bin/dist-1/static/images/errImg/err.png
  95. 0 0
      bin/dist-1/static/images/errImg/err1.png
  96. 0 0
      bin/dist-1/static/images/errImg/err2.png
  97. 0 0
      bin/dist-1/static/images/errImg/err3.png
  98. BIN
      bin/dist-1/static/images/home/fztd.png
  99. 0 0
      bin/dist-1/static/images/home/icon1.png
  100. 0 0
      dist/static/images/home/icon10.png

+ 5 - 0
.idea/.gitignore

@@ -0,0 +1,5 @@
+# Default ignored files
+/shelf/
+/workspace.xml
+# Editor-based HTTP Client requests
+/httpRequests/

+ 12 - 0
.idea/CBMLS-WEB.iml

@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<module type="WEB_MODULE" version="4">
+  <component name="NewModuleRootManager">
+    <content url="file://$MODULE_DIR$">
+      <excludeFolder url="file://$MODULE_DIR$/temp" />
+      <excludeFolder url="file://$MODULE_DIR$/.tmp" />
+      <excludeFolder url="file://$MODULE_DIR$/tmp" />
+    </content>
+    <orderEntry type="inheritedJdk" />
+    <orderEntry type="sourceFolder" forTests="false" />
+  </component>
+</module>

+ 8 - 0
.idea/modules.xml

@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project version="4">
+  <component name="ProjectModuleManager">
+    <modules>
+      <module fileurl="file://$PROJECT_DIR$/.idea/CBMLS-WEB.iml" filepath="$PROJECT_DIR$/.idea/CBMLS-WEB.iml" />
+    </modules>
+  </component>
+</project>

+ 6 - 0
.idea/vcs.xml

@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project version="4">
+  <component name="VcsDirectoryMappings">
+    <mapping directory="$PROJECT_DIR$" vcs="Git" />
+  </component>
+</project>

+ 43 - 0
.project

@@ -0,0 +1,43 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+	<name>cbmls-web</name>
+	<comment></comment>
+	<projects>
+	</projects>
+	<buildSpec>
+		<buildCommand>
+			<name>org.eclipse.jdt.core.javabuilder</name>
+			<arguments>
+			</arguments>
+		</buildCommand>
+		<buildCommand>
+			<name>org.eclipse.wst.common.project.facet.core.builder</name>
+			<arguments>
+			</arguments>
+		</buildCommand>
+		<buildCommand>
+			<name>org.eclipse.wst.validation.validationbuilder</name>
+			<arguments>
+			</arguments>
+		</buildCommand>
+		<buildCommand>
+			<name>org.eclipse.m2e.core.maven2Builder</name>
+			<arguments>
+			</arguments>
+		</buildCommand>
+		<buildCommand>
+			<name>org.springframework.ide.eclipse.core.springbuilder</name>
+			<arguments>
+			</arguments>
+		</buildCommand>
+	</buildSpec>
+	<natures>
+		<nature>org.springframework.ide.eclipse.core.springnature</nature>
+		<nature>org.eclipse.jem.workbench.JavaEMFNature</nature>
+		<nature>org.eclipse.wst.common.modulecore.ModuleCoreNature</nature>
+		<nature>org.eclipse.jdt.core.javanature</nature>
+		<nature>org.eclipse.m2e.core.maven2Nature</nature>
+		<nature>org.eclipse.wst.common.project.facet.core.nature</nature>
+		<nature>org.eclipse.wst.jsdt.core.jsNature</nature>
+	</natures>
+</projectDescription>

+ 1 - 0
bin/.gitignore

@@ -0,0 +1 @@
+node_modules

+ 43 - 0
bin/.project

@@ -0,0 +1,43 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+	<name>cbmls-web</name>
+	<comment></comment>
+	<projects>
+	</projects>
+	<buildSpec>
+		<buildCommand>
+			<name>org.eclipse.jdt.core.javabuilder</name>
+			<arguments>
+			</arguments>
+		</buildCommand>
+		<buildCommand>
+			<name>org.eclipse.wst.common.project.facet.core.builder</name>
+			<arguments>
+			</arguments>
+		</buildCommand>
+		<buildCommand>
+			<name>org.eclipse.wst.validation.validationbuilder</name>
+			<arguments>
+			</arguments>
+		</buildCommand>
+		<buildCommand>
+			<name>org.eclipse.m2e.core.maven2Builder</name>
+			<arguments>
+			</arguments>
+		</buildCommand>
+		<buildCommand>
+			<name>org.springframework.ide.eclipse.core.springbuilder</name>
+			<arguments>
+			</arguments>
+		</buildCommand>
+	</buildSpec>
+	<natures>
+		<nature>org.springframework.ide.eclipse.core.springnature</nature>
+		<nature>org.eclipse.jem.workbench.JavaEMFNature</nature>
+		<nature>org.eclipse.wst.common.modulecore.ModuleCoreNature</nature>
+		<nature>org.eclipse.jdt.core.javanature</nature>
+		<nature>org.eclipse.m2e.core.maven2Nature</nature>
+		<nature>org.eclipse.wst.common.project.facet.core.nature</nature>
+		<nature>org.eclipse.wst.jsdt.core.jsNature</nature>
+	</natures>
+</projectDescription>

+ 21 - 0
bin/README.md

@@ -0,0 +1,21 @@
+# 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
+```
+
+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
bin/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
bin/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


+ 103 - 0
bin/build/utils.js

@@ -0,0 +1,103 @@
+'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,
+      modules:true  //添加
+    }
+  }
+
+  // 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,
+        publicPath: "../../",
+        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
bin/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'
+  }
+}

+ 85 - 0
bin/build/webpack.base.conf.js

@@ -0,0 +1,85 @@
+'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)
+}
+
+
+
+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
+  },
+  devServer: {
+    disableHostCheck: true,
+  },
+  resolve: {
+    extensions: ['.js', '.vue', '.json'],
+    alias: {
+      'vue$': 'vue/dist/vue.esm.js',
+      '@': resolve('src'),
+    }
+  },
+  module: {
+    rules: [
+      {
+        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
bin/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)
+    }
+  })
+})

+ 173 - 0
bin/build/webpack.prod.conf.js

@@ -0,0 +1,173 @@
+'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 PrerenderSpaPlugin = require('prerender-spa-plugin')
+const Renderer = PrerenderSpaPlugin.PuppeteerRenderer
+
+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: ['.*']
+      }
+    ]),
+    //在vue-cli生成的文件的基础上,只有下面这个才是我们要配置的
+    // new PrerenderSpaPlugin({
+    //   // 生成文件的路径,也可以与webpakc打包的一致。
+    //   // 下面这句话非常重要!!!
+    //   // 这个目录只能有一级,如果目录层次大于一级,在生成的时候不会有任何错误提示,在预渲染的时候只会卡着不动。
+    //   staticDir: path.join(__dirname, '../dist'),
+    //
+    //   // 对应自己的路由文件,比如index有参数,就需要写成 /index/param1。
+    //   routes: ['/home','/sellList','/merchantsList','/login','/source','/mine'],
+    //
+    //   // 这个很重要,如果没有配置这段,也不会进行预编译
+    //   renderer: new Renderer({
+    //     inject: {
+    //       foo: 'bar'
+    //     },
+    //     headless: false,
+    //     // 在 main.js 中 document.dispatchEvent(new Event('render-event')),两者的事件名称要对应上。
+    //     renderAfterDocumentEvent: 'render-event'
+    //   })
+    // })
+  ]
+})
+
+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
bin/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"'
+})

+ 69 - 0
bin/config/index.js

@@ -0,0 +1,69 @@
+'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
+    host: '192.168.1.216', // can be overwritten by process.env.HOSTd
+    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-
+
+    /**
+     * 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
bin/config/prod.env.js

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

File diff suppressed because it is too large
+ 7 - 0
bin/dist-1/index.html


File diff suppressed because it is too large
+ 18935 - 0
bin/dist-1/static/css/app.72f5012ca196cfa7782bdf5d0f7b31fe.css


File diff suppressed because it is too large
+ 1 - 0
bin/dist-1/static/css/app.72f5012ca196cfa7782bdf5d0f7b31fe.css.map


dist/static/css/base.css → bin/dist-1/static/css/base.css


dist/static/css/commonNav.css → bin/dist-1/static/css/commonNav.css


dist/static/css/nav.css → bin/dist-1/static/css/nav.css


dist/static/css/shopDetail.scss → bin/dist-1/static/css/shopDetail.scss


dist/static/css/shopList.scss → bin/dist-1/static/css/shopList.scss


dist/static/css/swiper.css → bin/dist-1/static/css/swiper.css


dist/static/images/aboutUP/newAboutUP/01.png → bin/dist-1/static/images/aboutUP/newAboutUP/01.png


dist/static/images/aboutUP/newAboutUP/01@2x.png → bin/dist-1/static/images/aboutUP/newAboutUP/01@2x.png


dist/static/images/aboutUP/newAboutUP/02.png → bin/dist-1/static/images/aboutUP/newAboutUP/02.png


BIN
bin/dist-1/static/images/aboutUP/newAboutUP/02@2x-new.png


dist/static/images/aboutUP/newAboutUP/02@2x.png → bin/dist-1/static/images/aboutUP/newAboutUP/02@2x.png


dist/static/images/aboutUP/newAboutUP/03.png → bin/dist-1/static/images/aboutUP/newAboutUP/03.png


dist/static/images/aboutUP/newAboutUP/03@2x.png → bin/dist-1/static/images/aboutUP/newAboutUP/03@2x.png


dist/static/images/aboutUP/newAboutUP/04.png → bin/dist-1/static/images/aboutUP/newAboutUP/04.png


dist/static/images/aboutUP/newAboutUP/04@2x.png → bin/dist-1/static/images/aboutUP/newAboutUP/04@2x.png


dist/static/images/aboutUP/newAboutUP/04@3x.png → bin/dist-1/static/images/aboutUP/newAboutUP/04@3x.png


dist/static/images/aboutUP/newAboutUP/05@2x(1).png → bin/dist-1/static/images/aboutUP/newAboutUP/05@2x(1).png


dist/static/images/aboutUP/newAboutUP/05@2x.png → bin/dist-1/static/images/aboutUP/newAboutUP/05@2x.png


dist/static/images/aboutUP/newAboutUP/05@3x.png → bin/dist-1/static/images/aboutUP/newAboutUP/05@3x.png


dist/static/images/aboutUP/newAboutUP/UP.png → bin/dist-1/static/images/aboutUP/newAboutUP/UP.png


dist/static/images/aboutUP/newAboutUP/buy.png → bin/dist-1/static/images/aboutUP/newAboutUP/buy.png


dist/static/images/aboutUP/newAboutUP/cap.png → bin/dist-1/static/images/aboutUP/newAboutUP/cap.png


BIN
bin/dist-1/static/images/aboutUP/newAboutUP/cbmlsImg-new.png


dist/static/images/aboutUP/newAboutUP/cbmlsImg.png → bin/dist-1/static/images/aboutUP/newAboutUP/cbmlsImg.png


dist/static/images/aboutUP/newAboutUP/chen.png → bin/dist-1/static/images/aboutUP/newAboutUP/chen.png


dist/static/images/aboutUP/newAboutUP/culture.png → bin/dist-1/static/images/aboutUP/newAboutUP/culture.png


BIN
bin/dist-1/static/images/aboutUP/newAboutUP/img1-new.png


dist/static/images/aboutUP/newAboutUP/img1.png → bin/dist-1/static/images/aboutUP/newAboutUP/img1.png


dist/static/images/aboutUP/newAboutUP/img2.png → bin/dist-1/static/images/aboutUP/newAboutUP/img2.png


BIN
bin/dist-1/static/images/aboutUP/newAboutUP/img3-new.png


dist/static/images/aboutUP/newAboutUP/img3.png → bin/dist-1/static/images/aboutUP/newAboutUP/img3.png


dist/static/images/aboutUP/newAboutUP/img4.png → bin/dist-1/static/images/aboutUP/newAboutUP/img4.png


dist/static/images/aboutUP/newAboutUP/joinUp.png → bin/dist-1/static/images/aboutUP/newAboutUP/joinUp.png


dist/static/images/aboutUP/newAboutUP/real.png → bin/dist-1/static/images/aboutUP/newAboutUP/real.png


dist/static/images/aboutUP/newAboutUP/tel.png → bin/dist-1/static/images/aboutUP/newAboutUP/tel.png


dist/static/images/aboutUP/newAboutUP/tel400.png → bin/dist-1/static/images/aboutUP/newAboutUP/tel400.png


dist/static/images/aboutUP/newAboutUP/titleImg.png → bin/dist-1/static/images/aboutUP/newAboutUP/titleImg.png


dist/static/images/aboutUP/newAboutUP/upCode.png → bin/dist-1/static/images/aboutUP/newAboutUP/upCode.png


dist/static/images/aboutUP/newAboutUP/upCode2.png → bin/dist-1/static/images/aboutUP/newAboutUP/upCode2.png


dist/static/images/aboutUP/newAboutUP/upCode3.png → bin/dist-1/static/images/aboutUP/newAboutUP/upCode3.png


dist/static/images/aboutUP/newAboutUP/upLogo.png → bin/dist-1/static/images/aboutUP/newAboutUP/upLogo.png


dist/static/images/aboutUP/newAboutUP/youpu.png → bin/dist-1/static/images/aboutUP/newAboutUP/youpu.png


dist/static/images/aboutUP/newAboutUP/zu.png → bin/dist-1/static/images/aboutUP/newAboutUP/zu.png


dist/static/images/aboutUP/newAboutUP/zupubao.png → bin/dist-1/static/images/aboutUP/newAboutUP/zupubao.png


dist/static/images/aboutUP/upLogo.png → bin/dist-1/static/images/aboutUP/upLogo.png


dist/static/images/brand/brandBg.png → bin/dist-1/static/images/brand/brandBg.png


dist/static/images/brand/estimateBg.png → bin/dist-1/static/images/brand/estimateBg.png


dist/static/images/brand/jm.png → bin/dist-1/static/images/brand/jm.png


dist/static/images/brand/offices.png → bin/dist-1/static/images/brand/offices.png


dist/static/images/brand/shop.png → bin/dist-1/static/images/brand/shop.png


dist/static/images/brand/zy.png → bin/dist-1/static/images/brand/zy.png


dist/static/images/code/teamTop.png → bin/dist-1/static/images/code/teamTop.png


dist/static/images/common/back.png → bin/dist-1/static/images/common/back.png


dist/static/images/common/chakan.png → bin/dist-1/static/images/common/chakan.png


dist/static/images/common/close.png → bin/dist-1/static/images/common/close.png


dist/static/images/common/icon1.png → bin/dist-1/static/images/common/icon1.png


dist/static/images/common/icon2.png → bin/dist-1/static/images/common/icon2.png


dist/static/images/common/icon3.png → bin/dist-1/static/images/common/icon3.png


dist/static/images/common/icon4.png → bin/dist-1/static/images/common/icon4.png


dist/static/images/common/icon5.png → bin/dist-1/static/images/common/icon5.png


dist/static/images/common/icon6.png → bin/dist-1/static/images/common/icon6.png


dist/static/images/common/icon7.png → bin/dist-1/static/images/common/icon7.png


dist/static/images/common/icon8.png → bin/dist-1/static/images/common/icon8.png


dist/static/images/common/newBack.png → bin/dist-1/static/images/common/newBack.png


dist/static/images/common/noData.png → bin/dist-1/static/images/common/noData.png


dist/static/images/common/uploadPhoto.png → bin/dist-1/static/images/common/uploadPhoto.png


dist/static/images/common/whiteBack.png → bin/dist-1/static/images/common/whiteBack.png


dist/static/images/economic/broker.png → bin/dist-1/static/images/economic/broker.png


dist/static/images/economic/company.png → bin/dist-1/static/images/economic/company.png


dist/static/images/economic/economicBg.png → bin/dist-1/static/images/economic/economicBg.png


dist/static/images/entrust/entrustBg.png → bin/dist-1/static/images/entrust/entrustBg.png


dist/static/images/errImg/err.png → bin/dist-1/static/images/errImg/err.png


dist/static/images/errImg/err1.png → bin/dist-1/static/images/errImg/err1.png


dist/static/images/errImg/err2.png → bin/dist-1/static/images/errImg/err2.png


dist/static/images/errImg/err3.png → bin/dist-1/static/images/errImg/err3.png


BIN
bin/dist-1/static/images/home/fztd.png


dist/static/images/home/icon1.png → bin/dist-1/static/images/home/icon1.png


+ 0 - 0
dist/static/images/home/icon10.png


Some files were not shown because too many files changed in this diff