DR/4DAGE 3 anni fa
commit
a7eb2654cc
100 ha cambiato i file con 17281 aggiunte e 0 eliminazioni
  1. 18 0
      shuzhixiangzheng/.babelrc
  2. 9 0
      shuzhixiangzheng/.editorconfig
  3. 17 0
      shuzhixiangzheng/.gitignore
  4. 10 0
      shuzhixiangzheng/.postcssrc.js
  5. 30 0
      shuzhixiangzheng/README.md
  6. 41 0
      shuzhixiangzheng/build/build.js
  7. 54 0
      shuzhixiangzheng/build/check-versions.js
  8. BIN
      shuzhixiangzheng/build/logo.png
  9. 101 0
      shuzhixiangzheng/build/utils.js
  10. 22 0
      shuzhixiangzheng/build/vue-loader.conf.js
  11. 82 0
      shuzhixiangzheng/build/webpack.base.conf.js
  12. 95 0
      shuzhixiangzheng/build/webpack.dev.conf.js
  13. 149 0
      shuzhixiangzheng/build/webpack.prod.conf.js
  14. 7 0
      shuzhixiangzheng/config/dev.env.js
  15. 69 0
      shuzhixiangzheng/config/index.js
  16. 4 0
      shuzhixiangzheng/config/prod.env.js
  17. 7 0
      shuzhixiangzheng/config/test.env.js
  18. 17 0
      shuzhixiangzheng/index.html
  19. 15890 0
      shuzhixiangzheng/package-lock.json
  20. 78 0
      shuzhixiangzheng/package.json
  21. 27 0
      shuzhixiangzheng/src/App.vue
  22. 366 0
      shuzhixiangzheng/src/assets/api/Map.js
  23. 100 0
      shuzhixiangzheng/src/assets/api/data.js
  24. 22 0
      shuzhixiangzheng/src/assets/api/loadData.js
  25. 64 0
      shuzhixiangzheng/src/assets/api/time.js
  26. 2 0
      shuzhixiangzheng/src/assets/api/urls.js
  27. BIN
      shuzhixiangzheng/src/assets/png/background.png
  28. BIN
      shuzhixiangzheng/src/assets/png/first.png
  29. BIN
      shuzhixiangzheng/src/assets/png/footer.png
  30. BIN
      shuzhixiangzheng/src/assets/png/house.png
  31. BIN
      shuzhixiangzheng/src/assets/png/house1.png
  32. BIN
      shuzhixiangzheng/src/assets/png/house2.png
  33. BIN
      shuzhixiangzheng/src/assets/png/jinghuguoji/1001.png
  34. BIN
      shuzhixiangzheng/src/assets/png/jinghuguoji/1002.png
  35. BIN
      shuzhixiangzheng/src/assets/png/jinghuguoji/101.png
  36. BIN
      shuzhixiangzheng/src/assets/png/jinghuguoji/102.png
  37. BIN
      shuzhixiangzheng/src/assets/png/jinghuguoji/1101.png
  38. BIN
      shuzhixiangzheng/src/assets/png/jinghuguoji/1102.png
  39. BIN
      shuzhixiangzheng/src/assets/png/jinghuguoji/1201.png
  40. BIN
      shuzhixiangzheng/src/assets/png/jinghuguoji/1202.png
  41. BIN
      shuzhixiangzheng/src/assets/png/jinghuguoji/1301.png
  42. BIN
      shuzhixiangzheng/src/assets/png/jinghuguoji/1302.png
  43. BIN
      shuzhixiangzheng/src/assets/png/jinghuguoji/1401.png
  44. BIN
      shuzhixiangzheng/src/assets/png/jinghuguoji/1402.png
  45. BIN
      shuzhixiangzheng/src/assets/png/jinghuguoji/1501.png
  46. BIN
      shuzhixiangzheng/src/assets/png/jinghuguoji/1502.png
  47. BIN
      shuzhixiangzheng/src/assets/png/jinghuguoji/1601.png
  48. BIN
      shuzhixiangzheng/src/assets/png/jinghuguoji/1602.png
  49. BIN
      shuzhixiangzheng/src/assets/png/jinghuguoji/1701.png
  50. BIN
      shuzhixiangzheng/src/assets/png/jinghuguoji/1702.png
  51. BIN
      shuzhixiangzheng/src/assets/png/jinghuguoji/1801.png
  52. BIN
      shuzhixiangzheng/src/assets/png/jinghuguoji/1802.png
  53. BIN
      shuzhixiangzheng/src/assets/png/jinghuguoji/201.png
  54. BIN
      shuzhixiangzheng/src/assets/png/jinghuguoji/202.png
  55. BIN
      shuzhixiangzheng/src/assets/png/jinghuguoji/301.png
  56. BIN
      shuzhixiangzheng/src/assets/png/jinghuguoji/302.png
  57. BIN
      shuzhixiangzheng/src/assets/png/jinghuguoji/401.png
  58. BIN
      shuzhixiangzheng/src/assets/png/jinghuguoji/402.png
  59. BIN
      shuzhixiangzheng/src/assets/png/jinghuguoji/501.png
  60. BIN
      shuzhixiangzheng/src/assets/png/jinghuguoji/502.png
  61. BIN
      shuzhixiangzheng/src/assets/png/jinghuguoji/601.png
  62. BIN
      shuzhixiangzheng/src/assets/png/jinghuguoji/602.png
  63. BIN
      shuzhixiangzheng/src/assets/png/jinghuguoji/701.png
  64. BIN
      shuzhixiangzheng/src/assets/png/jinghuguoji/702.png
  65. BIN
      shuzhixiangzheng/src/assets/png/jinghuguoji/801.png
  66. BIN
      shuzhixiangzheng/src/assets/png/jinghuguoji/802.png
  67. BIN
      shuzhixiangzheng/src/assets/png/jinghuguoji/901.png
  68. BIN
      shuzhixiangzheng/src/assets/png/jinghuguoji/902.png
  69. BIN
      shuzhixiangzheng/src/assets/png/laoxianweisushe/101.png
  70. BIN
      shuzhixiangzheng/src/assets/png/laoxianweisushe/102.png
  71. BIN
      shuzhixiangzheng/src/assets/png/laoxianweisushe/103.png
  72. BIN
      shuzhixiangzheng/src/assets/png/laoxianweisushe/104.png
  73. BIN
      shuzhixiangzheng/src/assets/png/laoxianweisushe/201.png
  74. BIN
      shuzhixiangzheng/src/assets/png/laoxianweisushe/202.png
  75. BIN
      shuzhixiangzheng/src/assets/png/laoxianweisushe/203.png
  76. BIN
      shuzhixiangzheng/src/assets/png/laoxianweisushe/301.png
  77. BIN
      shuzhixiangzheng/src/assets/png/laoxianweisushe/302.png
  78. BIN
      shuzhixiangzheng/src/assets/png/laoxianweisushe/303.png
  79. BIN
      shuzhixiangzheng/src/assets/png/laoxianweisushe/304.png
  80. BIN
      shuzhixiangzheng/src/assets/png/laoxianweisushe/401.png
  81. BIN
      shuzhixiangzheng/src/assets/png/laoxianweisushe/402.png
  82. BIN
      shuzhixiangzheng/src/assets/png/laoxianweisushe/403.png
  83. BIN
      shuzhixiangzheng/src/assets/png/laoxianweisushe/404.png
  84. BIN
      shuzhixiangzheng/src/assets/png/laoxianweisushe/501.png
  85. BIN
      shuzhixiangzheng/src/assets/png/laoxianweisushe/502.png
  86. BIN
      shuzhixiangzheng/src/assets/png/laoxianweisushe/503.png
  87. BIN
      shuzhixiangzheng/src/assets/png/laoxianweisushe/504.png
  88. BIN
      shuzhixiangzheng/src/assets/png/laoxianweisushe/601.png
  89. BIN
      shuzhixiangzheng/src/assets/png/laoxianweisushe/602.png
  90. BIN
      shuzhixiangzheng/src/assets/png/laoxianweisushe/603.png
  91. BIN
      shuzhixiangzheng/src/assets/png/laoxianweisushe/604.png
  92. BIN
      shuzhixiangzheng/src/assets/png/left.png
  93. BIN
      shuzhixiangzheng/src/assets/png/left1.png
  94. BIN
      shuzhixiangzheng/src/assets/png/left2.png
  95. BIN
      shuzhixiangzheng/src/assets/png/next_page.png
  96. BIN
      shuzhixiangzheng/src/assets/png/pop.png
  97. BIN
      shuzhixiangzheng/src/assets/png/previous_page.png
  98. BIN
      shuzhixiangzheng/src/assets/png/return.png
  99. BIN
      shuzhixiangzheng/src/assets/png/right.png
  100. 0 0
      shuzhixiangzheng/src/assets/png/right1.png

+ 18 - 0
shuzhixiangzheng/.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
shuzhixiangzheng/.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

+ 17 - 0
shuzhixiangzheng/.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
shuzhixiangzheng/.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
shuzhixiangzheng/README.md

@@ -0,0 +1,30 @@
+# shuzhixiangzheng
+
+> 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
shuzhixiangzheng/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
shuzhixiangzheng/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
shuzhixiangzheng/build/logo.png


+ 101 - 0
shuzhixiangzheng/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
shuzhixiangzheng/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'
+  }
+}

+ 82 - 0
shuzhixiangzheng/build/webpack.base.conf.js

@@ -0,0 +1,82 @@
+'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
+  },
+  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
shuzhixiangzheng/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
shuzhixiangzheng/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
shuzhixiangzheng/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
shuzhixiangzheng/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
+    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
shuzhixiangzheng/config/prod.env.js

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

+ 7 - 0
shuzhixiangzheng/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"'
+})

+ 17 - 0
shuzhixiangzheng/index.html

@@ -0,0 +1,17 @@
+<!DOCTYPE html>
+<html>
+  <head>
+    <meta charset="utf-8">
+    <meta name="viewport" content="width=device-width,initial-scale=1.0">
+    <title>双钟镇</title>
+    <style>
+      @import url(./static/Cesium/Widgets/widgets.css);
+ 
+    </style>
+    <script src="./static/Cesium/Cesium.js"></script>
+  </head>
+  <body>
+    <div id="app"></div>
+    <!-- built files will be auto injected -->
+  </body>
+</html>

File diff suppressed because it is too large
+ 15890 - 0
shuzhixiangzheng/package-lock.json


+ 78 - 0
shuzhixiangzheng/package.json

@@ -0,0 +1,78 @@
+{
+  "name": "shuzhixiangzheng",
+  "version": "1.0.0",
+  "description": "A Vue.js project",
+  "author": "DR/4DAGE <tianhongguo@aliyun.com>",
+  "private": true,
+  "scripts": {
+    "dev": "webpack-dev-server --inline --progress --config build/webpack.dev.conf.js",
+    "start": "npm run dev",
+    "unit": "jest --config test/unit/jest.conf.js --coverage",
+    "e2e": "node test/e2e/runner.js",
+    "test": "npm run unit && npm run e2e",
+    "build": "node build/build.js"
+  },
+  "dependencies": {
+    "axios": "^0.25.0",
+    "element-ui": "^2.15.6",
+    "vue": "^2.5.2",
+    "vue-router": "^3.0.1"
+  },
+  "devDependencies": {
+    "autoprefixer": "^7.1.2",
+    "babel-core": "^6.22.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",
+    "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"
+  ]
+}

+ 27 - 0
shuzhixiangzheng/src/App.vue

@@ -0,0 +1,27 @@
+<template>
+  <div id="container">
+    <router-view/>
+  </div>
+</template>
+
+<script>
+   import Map from "./assets/api/Map.js"
+export default {
+  name: 'container',
+  mounted(){
+    window.cesiumMap=new Map();
+    },
+}
+</script>
+
+<style>
+  html,body,#container {
+            width: 100%;
+            height: 100%;
+            margin: 0;
+            padding: 0;
+            overflow: hidden;
+            z-index: 1;
+            position: absolute;
+}
+</style>

+ 366 - 0
shuzhixiangzheng/src/assets/api/Map.js

@@ -0,0 +1,366 @@
+import weizi from "./data.js"
+class Map{
+    constructor(){
+        Cesium.Ion.defaultAccessToken = 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJqdGkiOiI1OTY1NTk0My04OTliLTRlYzAtYWNlNC0yOGNkZWZlMjgxNmIiLCJpZCI6NTE3ODIsImlhdCI6MTYxODMwMzE5OX0.iY_pexbzlJVWZBi9hglcPZnOejagrHmwB2Zbk4uHBec'
+        //加载在线地形图数据
+         this._worldTerrain = Cesium.createWorldTerrain({
+            // required for water effects
+            requestWaterMask : true, 
+            // required for terrain lighting
+            requestVertexNormals : true 
+            });
+        
+            // 服务负载子域
+            let subdomains = ['0', '1', '2', '3', '4', '5', '6', '7',"8","9"];
+            let tiandituTk = "ac8f435fa9098eda8c1f40ba97b0b0f2";
+            let provider = new Cesium.WebMapTileServiceImageryProvider({
+              //影像底图
+              url: "http://t0.tianditu.gov.cn/img_w/wmts?service=wmts&request=GetTile&version=1.0.0&LAYER=img&tileMatrixSet=w&TileMatrix={TileMatrix}&TileRow={TileRow}&TileCol={TileCol}&style=default&format=tiles&tk=" + tiandituTk,
+              subdomains: subdomains,
+              layer: "img",
+              style: "default",
+              format: "image/jpeg",
+              tileMatrixSetID: "GoogleMapsCompatible", //使用谷歌的瓦片切片方式
+              show: true
+            });
+        
+         this._viewer = new Cesium.Viewer('container', {
+            shouldAnimate: true,
+            infoBox: false, //是否显示点击要素之后显示的信息
+            selectionIndicator:false,
+            fullscreenButton: false,
+            orderIndependentTranslucency: false,
+            homeButton:false,
+            sceneModePicker:false,
+            baseLayerPicker:false,
+            navigationHelpButton:false ,
+            vrButton:false,
+            geocoder: false, //是否显示地名查找控件
+            timeline: false, //是否显示时间线控件
+            animation:false,
+            imageryProvider:provider,
+           terrainProvider: this._worldTerrain,
+            
+        });
+        
+        this._viewer.scene.backgroundColor =new Cesium.Color(0,7/255,25/255); 
+        this._viewer._cesiumWidget._creditContainer.style.display = "none";
+        this._viewer.scene.skyAtmosphere.show = false;
+        this._viewer.scene.globe.showGroundAtmosphere=false; 
+        this._viewer.scene.globe.showWaterEffect=false; 
+        this._viewer.scene.fog.enabled = false;
+        this._viewer.scene.skyBox.show=false;
+        this._viewer.shadowMap.darkness=0.2;
+        this._viewer.isPointLight=true;
+        //是否开启抗锯齿
+        this._viewer.scene.fxaa = true;
+        this._viewer.scene.postProcessStages.fxaa.enabled = true;
+        
+
+        this._tileset1 = new Cesium.Cesium3DTileset({
+            url: 'https://testgis.4dage.com/jiujiang-xiugai1-qp/tileset.json',
+          });
+          let tileset=this._tileset1;
+          this._tileset1.readyPromise.then(function () {
+              let boundingSphere = tileset.boundingSphere;
+              let cartographic = Cesium.Cartographic.fromCartesian(boundingSphere.center);
+              let surface = Cesium.Cartesian3.fromRadians(cartographic.longitude, cartographic.latitude, cartographic.height);
+              let offset = Cesium.Cartesian3.fromRadians(cartographic.longitude, cartographic.latitude, cartographic.height + 20);
+              let translation = Cesium.Cartesian3.subtract(offset, surface, new Cesium.Cartesian3());
+              tileset.modelMatrix = Cesium.Matrix4.fromTranslation(translation);
+          })
+          this._viewer.scene.primitives.add(this._tileset1);
+
+          this._viewer.camera.flyTo({
+            destination:Cesium.Cartesian3.fromDegrees(116.21584100853136,29.738977165300618,243.68175872316817),
+            orientation:{
+                heading:0.05766205214782261,
+                pitch:-0.46911279010391693,
+                roll:0.000005273011606909961
+            },
+            duration:1
+        });
+        // 亮度设置
+          var stages = this._viewer.scene.postProcessStages;
+          this._viewer.scene.brightness = this._viewer.scene.brightness || stages.add(Cesium.PostProcessStageLibrary.createBrightnessStage());
+         this._viewer.scene.brightness.enabled = true;
+          this._viewer.scene.brightness.uniforms.brightness = Number(1.0);
+
+
+        
+        this._handler = new Cesium.ScreenSpaceEventHandler(this._viewer.scene.canvas);
+        let viewer=this._viewer;
+      
+
+        this._handler.setInputAction(function (movement) {
+        var obj = viewer.scene.pick(movement.endPosition);
+        
+        viewer.container.style.cursor = "default";
+        if(obj&&obj.id&&obj.id.label._text=="金湖国际小区"){
+            viewer.container.style.cursor = "pointer";
+        }
+        if(obj&&obj.id&&obj.id.label._text=="老县委宿舍"){
+            viewer.container.style.cursor = "pointer";
+        }
+        if(obj&&obj.id&&obj.id.label._text=="1#"){
+            viewer.container.style.cursor = "pointer";
+            }
+            if(obj&&obj.id&&obj.id.label._text=="叶家舍小区"){
+                viewer.container.style.cursor = "pointer";
+            }
+        }, Cesium.ScreenSpaceEventType.MOUSE_MOVE);
+
+        this._heilayer=new Cesium.ImageryLayer(new Cesium.UrlTemplateImageryProvider({
+            url: "https://map.geoq.cn/arcgis/rest/services/ChinaOnlineStreetPurplishBlue/MapServer/tile/{z}/{y}/{x}"
+        }));
+        this._viewer.imageryLayers.add(this._heilayer)
+        this._heilayer.show=false;
+        this.name=null;
+    }
+
+    left_clickFun(clickjinghuguojiShowFun,jinghuguojiShowFun,laoxianweisusheShowFun,yejiaxiaosheShowFun){
+        let viewer=this._viewer;
+        this._handler.removeInputAction(Cesium.ScreenSpaceEventType.LEFT_CLICK)
+        this._handler.setInputAction(function (movement) {
+            var obj = viewer.scene.pick(movement.position);
+    
+            if(obj&&obj.id&&obj.id.label._text=="金湖国际小区"){
+                viewer.camera.flyTo({
+                    destination:Cesium.Cartesian3.fromDegrees(116.21593231048116,29.740258229946367,162.62117710327865),
+                    orientation:{
+                        heading: 0.05766205214782261,
+                        pitch:-0.46911279010391693,
+                        roll:0.000005273011606909961
+                    },
+                    duration:1
+                });
+                clickjinghuguojiShowFun()
+                
+            }
+    
+            if(obj&&obj.id&&obj.id.label._text=="老县委宿舍"){
+                viewer.camera.flyTo({
+                    destination:Cesium.Cartesian3.fromDegrees(116.21644159026744,29.741029388219182,121.07007997440711),
+                    orientation:{
+                        heading: 0.05766205214782261,
+                        pitch:-0.46911279010391693,
+                        roll:0.000005273011606909961
+                    },
+                    duration:1
+                });
+            }
+            if(obj&&obj.id&&obj.id.type=="jinghuguoji"&&obj.id.label._text=="1#"){
+                jinghuguojiShowFun()
+                    // document.getElementById("child_form").style.display="block"
+                    // document.getElementById("houses").style.display="block"
+                    // document.getElementById("houses1").style.display="none"
+    
+                    // document.getElementById("form_img").src="../png/jinghuguoji/101.png";
+                }
+                if(obj&&obj.id&&obj.id.type=="laoxianweisushe"&&obj.id.label._text=="1#"){
+                    laoxianweisusheShowFun()
+                    // document.getElementById("child_form").style.display="block"
+                    // document.getElementById("houses").style.display="none"
+                    // document.getElementById("houses1").style.display="block"
+    
+                  //  document.getElementById("form_img").src="../png/laoxianweisushe/101.png";
+                }
+    
+    
+                if(obj&&obj.id&&obj.id.label._text=="叶家舍小区"){
+                    yejiaxiaosheShowFun()
+                    // document.getElementById("child1_form").style.display="block"
+                    // document.getElementById("img3").src="../png/left1.png";
+                    // document.getElementById("img5").src="../png/right1.png";
+                }
+            
+            }, Cesium.ScreenSpaceEventType.LEFT_CLICK);
+    }
+
+    adddEntity1(position,str,background){
+        this._viewer.entities.add({
+              position:position,
+              label:{
+                  text:str,
+                  showBackground:true,
+                  backgroundColor:background,
+                  pixelOffset:new Cesium.Cartesian2(0,-140),
+                  scale:0.5
+              },
+              billboard:{
+                  image:"../png/triangle.png",
+                  pixelOffset:new Cesium.Cartesian2(0,-125),
+                  scale:0.5
+              }
+          });
+      }
+       adddEntity2(position,str,borderColor){
+          this._viewer.entities.add({
+               type:str.split("_")[0],
+                position:position,
+                label:{
+                    text:str.split("_")[1],
+                    outlineColor:borderColor,
+                    fillColor:Cesium.Color.WHITE,
+                    style:Cesium.LabelStyle.FILL_AND_OUTLINE,
+                    showBackground:true,
+                    backgroundColor:new Cesium.Color(13/255,146/255,246/255,0.1),
+                    outlineWidth:20,
+                    pixelOffset:new Cesium.Cartesian2(0,-120),
+                    scale:0.5
+                }
+            });
+      }
+
+      addEntity(){
+        this.adddEntity1(new Cesium.Cartesian3 (-2448457.0543241943, 4972430.5303345295, 3145603.3914947766) ,"金湖国际小区",new Cesium.Color(13/255,146/255,246/255));
+        this.adddEntity2(new Cesium.Cartesian3 ( -2448463.0940114185, 4972437.1644585775,  3145587.8985699383),"jinghuguoji_1#",new Cesium.Color(13/255,146/255,246/255));
+        this.adddEntity2(new Cesium.Cartesian3 ( -2448474.523461309, 4972421.640874091, 3145603.5562153812),"jinghuguoji_2#",new Cesium.Color(13/255,146/255,246/255));
+        this.adddEntity1(new Cesium.Cartesian3 ( -2448508.4188250797,  4972329.740959639, 3145648.777494665),"老县委宿舍",new Cesium.Color(13/255,146/255,246/255));
+        this.adddEntity2(new Cesium.Cartesian3 ( -2448497.7840337977,  4972353.026540443,  3145637.2073454955),"laoxianweisushe_1#",new Cesium.Color(13/255,146/255,246/255));
+        this.adddEntity2(new Cesium.Cartesian3 ( -2448487.6369428034,  4972366.6064854115,3145602.2819039533),"laoxianweisushe_2#",new Cesium.Color(13/255,146/255,246/255));
+        this.adddEntity2(new Cesium.Cartesian3 ( -2448520.3171395767,  4972369.752162702,  3145592.3613111465),"laoxianweisushe_3#",new Cesium.Color(13/255,146/255,246/255));
+      }
+
+      
+      addLocationName(event){
+          let name=""
+        weizi.map(w=>{
+            if(event.target.id===w.id){
+                let height=10;
+                name=w.name
+                if(w.name=="西门社区")
+                {
+                    height=50;
+                    console.log(this._viewer)
+                    this._viewer.camera.flyTo({
+                        destination:Cesium.Cartesian3.fromDegrees(116.21536139714668,29.735710683444914,210.11715193973072),
+                        orientation:{
+                            heading: 5.387296195840215,
+                            pitch: -0.4462147819503275,
+                            roll: 6.283184526554923
+                        },
+                        duration:0.5
+                    });
+                }else{
+                    this._viewer.camera.flyTo({
+                        destination:Cesium.Cartesian3.fromDegrees(w.lon,w.lat-0.02,1000),
+                        orientation:{
+                            heading: 0.05766205214782261,
+                            pitch:-0.46911279010391693,
+                            roll:0.000005273011606909961
+                        },
+                        duration:0.5
+                    });
+                }
+                
+                this._viewer.entities.add({
+                position:Cesium.Cartesian3.fromDegrees(w.lon,w.lat,height),
+                label:{
+                    text:w.name,
+                    fillColor:Cesium.Color.WHITE,
+                    showBackground:true,
+                    backgroundColor:new Cesium.Color(13/255,146/255,246/255,0.8),
+                    outlineWidth:20,
+                    scale:1
+                }
+            });
+            console.log(this._viewer)
+            }
+        });
+        debugger
+        return name;
+    }
+    
+      addGaode(){
+        this._tileset1.show=false;
+        this._viewer.entities.removeAll();
+        this._viewer.scene.terrainProvider=new Cesium.EllipsoidTerrainProvider({});
+        this._heilayer.show=true;
+       
+    }
+    
+     removeGaode(){
+        this._tileset1.show=true;
+        this._viewer.camera.flyTo({
+            destination:Cesium.Cartesian3.fromDegrees(116.21584100853136,29.738977165300618,243.68175872316817),
+            orientation:{
+                heading:0.05766205214782261,
+                pitch:-0.46911279010391693,
+                roll:0.000005273011606909961
+            },
+            duration:1
+        });
+        this._viewer.entities.removeAll();
+       this.addEntity();
+        this._viewer.scene.terrainProvider=this._worldTerrain;
+        this._heilayer.show=false;
+    }
+    
+    loadximen(){
+        this._tileset1.show=true;
+        this._viewer.camera.flyTo({
+            destination:Cesium.Cartesian3.fromDegrees(116.219468,29.737767,243.68175872316817),
+            orientation:{
+                heading:0.05766205214782261,
+                pitch:-0.46911279010391693,
+                roll:0.000005273011606909961
+            },
+            duration:1
+        });
+        this._viewer.entities.removeAll();
+        this._viewer.scene.terrainProvider=this._worldTerrain;
+        this._heilayer.show=false;
+    }
+}
+
+
+
+// var handler = new Cesium.ScreenSpaceEventHandler(this._viewer.scene.canvas);
+//     handler.setInputAction(function (event) {
+//         //1.椭球面坐标:获取当前点击视线与椭球面相交处的坐标,在加载地形的场景上获取的坐标有误差
+//       //  var earthPosition = map.this._viewer.camera.pickEllipsoid(event.position,map.this._viewer.scene.globe.ellipsoid); 
+
+//         //2.场景坐标:获取场景中任意点击处的对应的世界坐标,需要开启“地形深度检测”(在未开启“地形深度检测”的情况下只能在3DTile上准确获取空间坐标,开启“地形深度检测”后,this._viewer.scene.pickPosition 也能在非3DTile上准确获取坐标)
+//        this._viewer.scene.globe.depthTestAgainstTerrain = true;
+//         var  position1 = this._viewer.scene.pickPosition(event.position);
+//         var ellipsoid = this._viewer.scene.globe.ellipsoid;
+//         var cartographic = ellipsoid.cartesianToCartographic(position1);
+//         var lat1 = Cesium.Math.toDegrees(cartographic.latitude);
+//         var lng1 = Cesium.Math.toDegrees(cartographic.longitude);
+//         var alt1 = cartographic.height;
+//         console.log({
+//             lat1:lat1,
+//             lng1:lng1,
+//             alt1:alt1
+//         })
+//         var cartographic = ellipsoid.cartesianToCartographic(this._viewer.camera.position);
+//         var lat = Cesium.Math.toDegrees(cartographic.latitude);
+//         var lng = Cesium.Math.toDegrees(cartographic.longitude);
+//         var alt = cartographic.height;
+//        console.log({
+//         lat:lat,
+//         lng:lng,
+//         alt:alt,
+//         heading:this._viewer.camera.heading,
+//         pitch:this._viewer.camera.pitch,
+//         roll:this._viewer.camera.roll
+//        })
+        
+//     }, Cesium.ScreenSpaceEventType.LEFT_CLICK);
+
+
+
+// function GetWGS84FromDKR(coor)
+// {
+//   let cartographic = Cesium.Cartographic.fromCartesian(coor);
+//   let x=Cesium.Math.toDegrees(cartographic.longitude);l
+//   let y=Cesium.Math.toDegrees(cartographic.latitude);
+//   let wgs84={
+//     lon:x,
+//     lat:y,
+//   };
+//   return wgs84;
+
+// }
+export default  Map;

+ 100 - 0
shuzhixiangzheng/src/assets/api/data.js

@@ -0,0 +1,100 @@
+//地图位置
+var weizi=[
+    {
+       lon: 116.229858,
+       lat: 29.739512,
+       name:"云亭社区",
+       id:"click_4"
+    },
+    {
+        lon: 116.2122644358688,
+        lat: 29.737873598446797,
+        name:"西门社区",
+        id:"click_5"
+     },
+     {
+        lon: 116.220532,
+        lat: 29.733245,
+        name:"江阀社区",
+        id:"click_6"
+     },
+     {
+        lon: 116.239215,
+        lat: 29.726956,
+        name:"莲湾社区",
+        id:"click_7"
+     },
+     {
+        lon: 116.240156,
+        lat: 29.713177,
+        name:"月亮村",
+        id:"click_13"
+     },
+     {
+        lon: 116.229112,
+        lat: 29.702504,
+        name:"洪湖村",
+        id:"click_14"
+     },
+     {
+        lon: 116.233169,
+        lat: 29.7379,
+        name:"大岭社区",
+        id:"click_2"
+     },
+     {
+        lon: 116.015276,
+        lat: 29.727621,
+        name:"三里社区",
+        id:"click_8"
+     },
+     {
+        lon: 116.252874,
+        lat: 29.725805,
+        name:"钟山社区",
+        id:"click_10"
+     },
+     {
+        lon: 116.010934,
+        lat: 29.708555,
+        name:"翻湖社区",
+        id:"click_11"
+     },
+     {
+        lon: 116.003029,
+        lat: 29.359864,
+        name:"胜利村",
+        id:"click_12"
+     },
+     {
+        lon: 116.244195,
+        lat: 29.73672,
+        name:"江新社区",
+        id:"click_9"
+     },
+     {
+        lon: 116.261208,
+        lat: 29.737687,
+        name:"台山社区",
+        id:"click_3"
+     },
+     {
+        lon: 116.251044,
+        lat: 29.765461,
+        name:"叶家舍小区",
+        id:"click_1"
+     },
+     {
+      lon: 116.267073,
+      lat: 29.728398,
+      name:"柏树社区",
+      id:"click_15"
+   },
+   {
+      lon: 116.237034,
+      lat: 29.754463,
+      name:"洋港社区",
+      id:"click_16"
+   },
+];
+export default  weizi

+ 22 - 0
shuzhixiangzheng/src/assets/api/loadData.js

@@ -0,0 +1,22 @@
+import axios  from "axios";
+import { SZZ_URL } from "./urls";
+const base_url="http://101.132.109.234:8099/"
+export function httpGet(url,param,sucessFun,errorFun){
+    axios.get(base_url+url,{       // 还可以直接把参数拼接在url后边
+        params:param
+    }).then(function(res){
+        sucessFun(res)
+    }).catch(function (error) {
+        errorFun(error)
+    });
+}
+
+export function jinghuguoji_httpGet(param,sucessFun,errorFun){
+    axios.get(base_url+SZZ_URL,{       // 还可以直接把参数拼接在url后边
+        params:param
+    }).then(function(res){
+        sucessFun(res)
+    }).catch(function (error) {
+        errorFun(error)
+    });
+}

+ 64 - 0
shuzhixiangzheng/src/assets/api/time.js

@@ -0,0 +1,64 @@
+
+//输出当前时间
+ export function getDate(){
+    let str="";
+    var myDate =new Date();
+    str= myDate.getFullYear()+"."+ getZero(myDate.getMonth()+1)+"."+getZero(myDate.getDate()) +" ";
+    str +=getZero(getDay(myDate.getDay())) +" ";
+    str+=getZero(myDate.getHours())+":"+getZero(myDate.getMinutes())+":"+getZero(myDate.getSeconds());
+    return str;
+ }
+ export function getWeek(){
+    var myDate =new Date();
+    return getDay(myDate.getDay());
+}
+
+//日期
+export function getDayNumStr(){
+    var myDate =new Date(); 
+    let str="";
+    str= myDate.getFullYear()+"."+ getZero(myDate.getMonth()+1)+"."+getZero(myDate.getDate()) +" ";
+    return  str;
+}
+
+//输出当前时间
+export function getDayTime(){
+    var myDate =new Date(); 
+    let str="";
+    str+=getZero(myDate.getHours())+":"+getZero(myDate.getMinutes())+":"+getZero(myDate.getSeconds());
+    return  str;
+}
+
+function getDay(num){
+    let str="";
+    num=num%7;
+    if(num==0){
+        str="星期天";
+    }else if(num==1){
+        str="星期一"
+    
+    }else if(num==2){
+        str="星期二";
+      
+    }else if(num==3){
+        str="星期三";
+      
+    }else if(num==4){
+        str="星期四";
+       
+    }else if(num==5){
+        str="星期五";
+       
+    }else if(num==6){
+        str="星期六";
+     }
+     return str;
+}
+
+ function getZero(num){
+    if(0<=num&&num<=9){
+        return ""+0+num;
+    }
+    return num;
+}
+ 

+ 2 - 0
shuzhixiangzheng/src/assets/api/urls.js

@@ -0,0 +1,2 @@
+//双钟镇楼幢用户信息
+export const SZZ_URL="api/screen/findByRoomNumber";

BIN
shuzhixiangzheng/src/assets/png/background.png


BIN
shuzhixiangzheng/src/assets/png/first.png


BIN
shuzhixiangzheng/src/assets/png/footer.png


BIN
shuzhixiangzheng/src/assets/png/house.png


BIN
shuzhixiangzheng/src/assets/png/house1.png


BIN
shuzhixiangzheng/src/assets/png/house2.png


BIN
shuzhixiangzheng/src/assets/png/jinghuguoji/1001.png


BIN
shuzhixiangzheng/src/assets/png/jinghuguoji/1002.png


BIN
shuzhixiangzheng/src/assets/png/jinghuguoji/101.png


BIN
shuzhixiangzheng/src/assets/png/jinghuguoji/102.png


BIN
shuzhixiangzheng/src/assets/png/jinghuguoji/1101.png


BIN
shuzhixiangzheng/src/assets/png/jinghuguoji/1102.png


BIN
shuzhixiangzheng/src/assets/png/jinghuguoji/1201.png


BIN
shuzhixiangzheng/src/assets/png/jinghuguoji/1202.png


BIN
shuzhixiangzheng/src/assets/png/jinghuguoji/1301.png


BIN
shuzhixiangzheng/src/assets/png/jinghuguoji/1302.png


BIN
shuzhixiangzheng/src/assets/png/jinghuguoji/1401.png


BIN
shuzhixiangzheng/src/assets/png/jinghuguoji/1402.png


BIN
shuzhixiangzheng/src/assets/png/jinghuguoji/1501.png


BIN
shuzhixiangzheng/src/assets/png/jinghuguoji/1502.png


BIN
shuzhixiangzheng/src/assets/png/jinghuguoji/1601.png


BIN
shuzhixiangzheng/src/assets/png/jinghuguoji/1602.png


BIN
shuzhixiangzheng/src/assets/png/jinghuguoji/1701.png


BIN
shuzhixiangzheng/src/assets/png/jinghuguoji/1702.png


BIN
shuzhixiangzheng/src/assets/png/jinghuguoji/1801.png


BIN
shuzhixiangzheng/src/assets/png/jinghuguoji/1802.png


BIN
shuzhixiangzheng/src/assets/png/jinghuguoji/201.png


BIN
shuzhixiangzheng/src/assets/png/jinghuguoji/202.png


BIN
shuzhixiangzheng/src/assets/png/jinghuguoji/301.png


BIN
shuzhixiangzheng/src/assets/png/jinghuguoji/302.png


BIN
shuzhixiangzheng/src/assets/png/jinghuguoji/401.png


BIN
shuzhixiangzheng/src/assets/png/jinghuguoji/402.png


BIN
shuzhixiangzheng/src/assets/png/jinghuguoji/501.png


BIN
shuzhixiangzheng/src/assets/png/jinghuguoji/502.png


BIN
shuzhixiangzheng/src/assets/png/jinghuguoji/601.png


BIN
shuzhixiangzheng/src/assets/png/jinghuguoji/602.png


BIN
shuzhixiangzheng/src/assets/png/jinghuguoji/701.png


BIN
shuzhixiangzheng/src/assets/png/jinghuguoji/702.png


BIN
shuzhixiangzheng/src/assets/png/jinghuguoji/801.png


BIN
shuzhixiangzheng/src/assets/png/jinghuguoji/802.png


BIN
shuzhixiangzheng/src/assets/png/jinghuguoji/901.png


BIN
shuzhixiangzheng/src/assets/png/jinghuguoji/902.png


BIN
shuzhixiangzheng/src/assets/png/laoxianweisushe/101.png


BIN
shuzhixiangzheng/src/assets/png/laoxianweisushe/102.png


BIN
shuzhixiangzheng/src/assets/png/laoxianweisushe/103.png


BIN
shuzhixiangzheng/src/assets/png/laoxianweisushe/104.png


BIN
shuzhixiangzheng/src/assets/png/laoxianweisushe/201.png


BIN
shuzhixiangzheng/src/assets/png/laoxianweisushe/202.png


BIN
shuzhixiangzheng/src/assets/png/laoxianweisushe/203.png


BIN
shuzhixiangzheng/src/assets/png/laoxianweisushe/301.png


BIN
shuzhixiangzheng/src/assets/png/laoxianweisushe/302.png


BIN
shuzhixiangzheng/src/assets/png/laoxianweisushe/303.png


BIN
shuzhixiangzheng/src/assets/png/laoxianweisushe/304.png


BIN
shuzhixiangzheng/src/assets/png/laoxianweisushe/401.png


BIN
shuzhixiangzheng/src/assets/png/laoxianweisushe/402.png


BIN
shuzhixiangzheng/src/assets/png/laoxianweisushe/403.png


BIN
shuzhixiangzheng/src/assets/png/laoxianweisushe/404.png


BIN
shuzhixiangzheng/src/assets/png/laoxianweisushe/501.png


BIN
shuzhixiangzheng/src/assets/png/laoxianweisushe/502.png


BIN
shuzhixiangzheng/src/assets/png/laoxianweisushe/503.png


BIN
shuzhixiangzheng/src/assets/png/laoxianweisushe/504.png


BIN
shuzhixiangzheng/src/assets/png/laoxianweisushe/601.png


BIN
shuzhixiangzheng/src/assets/png/laoxianweisushe/602.png


BIN
shuzhixiangzheng/src/assets/png/laoxianweisushe/603.png


BIN
shuzhixiangzheng/src/assets/png/laoxianweisushe/604.png


BIN
shuzhixiangzheng/src/assets/png/left.png


BIN
shuzhixiangzheng/src/assets/png/left1.png


BIN
shuzhixiangzheng/src/assets/png/left2.png


BIN
shuzhixiangzheng/src/assets/png/next_page.png


BIN
shuzhixiangzheng/src/assets/png/pop.png


BIN
shuzhixiangzheng/src/assets/png/previous_page.png


BIN
shuzhixiangzheng/src/assets/png/return.png


BIN
shuzhixiangzheng/src/assets/png/right.png


+ 0 - 0
shuzhixiangzheng/src/assets/png/right1.png


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