D4THYL3\long 2 gadi atpakaļ
vecāks
revīzija
59df50a50e
10 mainītis faili ar 507 papildinājumiem un 104 dzēšanām
  1. BIN
      dist.zip
  2. 489 90
      package-lock.json
  3. 1 1
      public/index.html
  4. 2 2
      src/components/02.vue
  5. 1 1
      src/main.js
  6. 5 0
      src/router/index.js
  7. 3 3
      src/views/AboutView.vue
  8. 2 3
      src/views/Gis.vue
  9. 3 3
      src/views/HomeView.vue
  10. 1 1
      vue.config.js

BIN
dist.zip


Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 489 - 90
package-lock.json


+ 1 - 1
public/index.html

@@ -5,7 +5,7 @@
     <meta http-equiv="X-UA-Compatible" content="IE=edge">
     <meta name="viewport" content="width=device-width,initial-scale=1.0">
     <link rel="icon" href="<%= BASE_URL %>favicon.ico">
-    <!-- <script type="text/javascript" src="https://webapi.amap.com/maps?v=1.4.3&key=d79ff396531b948ce14d5be1c733fc36"></script> -->
+    <!-- <script type="text/javascript" src="https://webapi.amap.com/maps?v=1.4.3&key=1a32b8f45773a7f1d06842249b1b11c1"></script> -->
     <title><%= htmlWebpackPlugin.options.title %></title>
   </head>
   <body>

+ 2 - 2
src/components/02.vue

@@ -154,7 +154,6 @@ export default {
         key: "1a32b8f45773a7f1d06842249b1b11c1", // 申请好的Web端开发者Key,首次调用 load 时必填
         version: "2.0", // 指定要加载的 JSAPI 的版本,缺省时默认为 1.4.15
         plugin: ['AMap.Autocomplete', 'AMap.PlaceSearch', 'AMap.Scale', 'AMap.OverView', 'AMap.ToolBar', 'AMap.MapType', 'AMap.PolyEditor', 'AMap.CircleEditor'],
-        // center: [113.753602, 34.765515],
       })
         .then(AMap => {
           // this.map = new AMap.Map("mymap");
@@ -176,7 +175,8 @@ export default {
           })
           let marker = new AMap.Marker({
             postion: [this.longitude, this.latitude],
-          })
+          });
+          map.add(marker);
         })
         .catch(e => {
           console.log(e);

+ 1 - 1
src/main.js

@@ -19,7 +19,7 @@ var http = axios.create({
 });
 
 
-http.interceptors.request.use((config) => { config.url = '/sc-oa'});
+http.interceptors.request.use((config) => { config.url = '/sc-official'});
 console.log(http.interceptors.request.use());
 
 Vue.prototype.$axios = axios       

+ 5 - 0
src/router/index.js

@@ -8,6 +8,11 @@ import Gis from '../views/Gis.vue'
 Vue.use(VueRouter)
 
 const routes = [
+  {
+    path: '/',
+    name: 'homeview',
+    component: HomeView,
+  },
   {
     path: '/home',
     name: 'homeview',

+ 3 - 3
src/views/AboutView.vue

@@ -325,7 +325,7 @@ export default {
     },
     // 分页查询
     async contentPage () {
-      const { data: res } = await this.$axios.get('/appointment/page', {
+      const { data: res } = await this.$axios.get('/sc-official/appointment/page', {
         params:
         {
           type: this.checkListCommunityHide.type,
@@ -489,7 +489,7 @@ export default {
     },
     // 社区名称
     async getUserList () {
-      const { data: res } = await this.$axios.get('/appointment/getPublicCommunity', { params: this.queryInfo });
+      const { data: res } = await this.$axios.get('/sc-official/appointment/getPublicCommunity', { params: this.queryInfo });
       if (res.status == 0) {
         this.UserList = res.data;
       }
@@ -497,7 +497,7 @@ export default {
     },
     // /appointment/page
     async getmentList () {
-      const { data: res } = await this.$axios.get('/appointment/page', { params: this.queryInfo2 });
+      const { data: res } = await this.$axios.get('/sc-official/appointment/page', { params: this.queryInfo2 });
       if (res.status == 0) {
         this.mentList = res.data.list;
       }

+ 2 - 3
src/views/Gis.vue

@@ -1,6 +1,5 @@
-<template id="temp">
-  <!-- vue实例外创建 -->
+<template>
   <div>
 
   </div>
-</template>
+</template>

+ 3 - 3
src/views/HomeView.vue

@@ -332,7 +332,7 @@ export default {
     },
     // 分页查询
     async contentPage () {
-      const { data: res } = await this.$axios.get('/appointment/page', {
+      const { data: res } = await this.$axios.get('/sc-official/appointment/page', {
         params:
         {
           type: this.checkListCommunityHide.type,
@@ -512,7 +512,7 @@ export default {
     },
     // 社区名称
     async getUserList () {
-      const { data: res } = await this.$axios.get('/appointment/getPublicCommunity', { params: this.queryInfo });
+      const { data: res } = await this.$axios.get('/sc-official/appointment/getPublicCommunity', { params: this.queryInfo });
       if (res.status == 0) {
         this.UserList = res.data;
       }
@@ -520,7 +520,7 @@ export default {
     },
     // /appointment/page
     async getmentList () {
-      const { data: res } = await this.$axios.get('/appointment/page', { params: this.queryInfo2 });
+      const { data: res } = await this.$axios.get('/sc-official/appointment/page', { params: this.queryInfo2 });
       if (res.status == 0) {
         this.mentList = res.data.list;
       }

+ 1 - 1
vue.config.js

@@ -7,7 +7,7 @@ module.exports = defineConfig({
     port: 8081, // 端口号
     open: true, // 配置项目在启动时自动在浏览器打开
     proxy: {
-        '/appointment' : { // '/api'是代理标识,一般是每个接口前的相同部分
+        '/sc-official' : { // '/api'是代理标识,一般是每个接口前的相同部分
             target: "http://114.135.61.186:8339", // 请求地址,一般是服务器地址
             changeOrigin: true, // 是否进行跨域
             pathRewrite: { // pathRewrite的作用是把请求接口中的 '/api'替换掉,一般是替换为空""

Daži faili netika attēloti, jo izmaiņu fails ir pārāk liels