D4THYL3\long 3 tahun lalu
induk
melakukan
b357e9fd2c
3 mengubah file dengan 3 tambahan dan 54 penghapusan
  1. 1 0
      package.json
  2. 0 52
      src/views/Gis.vue
  3. 2 2
      src/views/HomeView.vue

+ 1 - 0
package.json

@@ -8,6 +8,7 @@
   },
   "dependencies": {
     "core-js": "^3.8.3",
+    "node-sass": "^4.14.1",
     "vue": "^2.6.14",
     "vue-amap": "^0.5.10",
     "vue-router": "^3.5.1",

+ 0 - 52
src/views/Gis.vue

@@ -1,52 +0,0 @@
-<!-- <template>
-  <div>
-    <div
-      style="width: 100%; height: 100%;"
-      id="gis"
-    ></div>
-  </div>
-</template>
-
-
-
-<script>
-export default {
-  data () {
-    return {
-      Map: '',
-    }
-  },
-  created () {
-    this.gisWx();
-  },
-  methods: {
-    async gisWx () {
-      // const { data: res } = await this.$axios.get('/?start=116.403124,39.940693&dest=116.481488,39.990464&destName=一条驾车路线&key=1a32b8f45773a7f1d06842249b1b11c1appointment/getPublicCommunity',);
-    }
-  },
-  mounted () {
-    //   页面加载完,开始异步引入高德地图
-    //创建了一个回调函数,高德地图加载完毕会调用
-    window.onLoad = function () {
-      // 所有关于地图的逻辑全部都要写在这个回调里面
-      // 保证高德地图加载完毕
-      var map = new AMap.Map("container");
-    };
-    // key是申请的值
-    var url =
-      "https://m.amap.com/navi/?start=116.403124,39.940693&dest=116.481488,39.990464&destName=一条驾车路线&key=1a32b8f45773a7f1d06842249b1b11c1"
-    //创建一个 script dom元素
-    // doc需要补全document
-    // var jsapi = document.createElement("gis");
-    var jsapi = document.getElementById('gis');
-    jsapi.src = url;
-    console.log(jsapi.src)
-    console.log(jsapi)
-    //设定script标签属性
-    jsapi.charset = "utf-8";
-    jsapi.src = url;
-    //将API文件引入页面中,加载完毕以后会调用函数
-    document.head.appendChild(jsapi);
-  },
-};
-</script> -->

+ 2 - 2
src/views/HomeView.vue

@@ -364,10 +364,10 @@ export default {
       this.communityId = communityId;
       this.houseId = id;
       this.merchantsId = merchantsId;
-      this.report();
+      this.reports();
     },
     // 招商新增
-    async report () {
+    async reports () {
       const { data: res } = await this.$http.post('/report/click/add', {
 
         communityId: Number(this.communityId),