zhujindu 9 ヶ月 前
コミット
c1071a72a8
3 ファイル変更2 行追加25 行削除
  1. 1 17
      src/views/home/index.vue
  2. 1 7
      src/views/home/visitAbnormal.vue
  3. 0 1
      src/views/home/visitPage.vue

+ 1 - 17
src/views/home/index.vue

@@ -3,9 +3,7 @@
     <div class="header">
       <van-nav-bar class="navBar" :title="$route.meta.title">
         <template #left>
-          <span @click="login" style="display: block; width: 50px; height: 100%"
-            >拍照<input id="cameraFile" type="file" accept="image/*" capture="camera"
-          /></span>
+          <span @click="login" style="display: block; width: 50px; height: 100%"></span>
         </template>
         <template #right>
           <span @click="searchFn">筛选<van-icon name="arrow-down" /></span>
@@ -355,20 +353,6 @@ export default {
         passive: false,
       }
     );
-    var input = document.getElementsById('cameraFile');
-    input.addEventListener('change', function (e) {
-      var file = e.target.files[0];
-
-      var reader = new FileReader();
-
-      reader.onload = function (e) {
-        var dataURL = e.target.result;
-        console.log(dataURL);
-        // 在此处对 dataURL 进行操作,例如显示图片
-      };
-
-      reader.readAsDataURL(file);
-    });
   },
   methods: {
     onRefresh() {

+ 1 - 7
src/views/home/visitAbnormal.vue

@@ -271,13 +271,7 @@ export default {
                 message: '保存成功',
               })
               .then(() => {
-                if (this.$route.query.linkType == 6) {
-                  window.location.replace(window.location.origin + '/mobile/topStore?info=y');
-                } else {
-                  window.location.replace(
-                    window.location.origin + '/mobile/outsidelist/index?info=y'
-                  );
-                }
+                this.$router.go(-1);
               });
             localStorage.removeItem('visitId');
             localStorage.removeItem('startTime');

+ 0 - 1
src/views/home/visitPage.vue

@@ -341,7 +341,6 @@ export default {
         zoom: 14,
         center: new TMap.LatLng(39.986785, 116.301012),
       });
-      s;
       var geocoder = new TMap.service.Geocoder();
       var markers = new TMap.MultiMarker({
         map: map,