Browse Source

upd: del console.log

richard1015 5 years ago
parent
commit
441be1aa81

+ 1 - 1
src/packages/imagepicker/imagepicker.vue

@@ -159,7 +159,7 @@ export default {
       });
     },
     touchStart(id) {
-      console.log(this.longTapTime);
+      // console.log(this.longTapTime);
       this.timeOutEvent = setTimeout(() => {
         this.deleteImg(id);
       }, this.longTapTime);

+ 2 - 2
src/packages/noticebar/noticebar.vue

@@ -107,7 +107,7 @@ export default {
   watch: {
     text: {
       handler(val, newVal) {
-        console.log(val, newVal, this.showNoticeBar == false, 'text');
+        // console.log(val, newVal, this.showNoticeBar == false, 'text');
 
         if (this.showNoticeBar == false) {
           return;
@@ -121,7 +121,7 @@ export default {
           const wrapWidth = wrap.getBoundingClientRect().width;
 
           const offsetWidth = content.getBoundingClientRect().width;
-          console.log(wrapWidth, offsetWidth, 'text222');
+          // console.log(wrapWidth, offsetWidth, 'text222');
 
           if (this.scrollable && offsetWidth > wrapWidth) {
             this.wrapWidth = wrapWidth;

+ 5 - 6
src/packages/notify/_notify.js

@@ -2,7 +2,9 @@ import Vue from 'vue';
 import settings from './notify.vue';
 // 扩展为类
 let NotifyConstructor = Vue.extend(settings);
-let timer, instance, instanceArr = [];
+let timer,
+  instance,
+  instanceArr = [];
 let defaultOptionsMap = {};
 const id = '0';
 // 默认传入值
@@ -17,7 +19,7 @@ const defaultOptions = {
   onClosed: null,
   onClick: null,
   onOpened: null,
-  textTimer: null,
+  textTimer: null
 };
 // 当前传入值
 let currentOptions = {
@@ -37,7 +39,7 @@ function _getInstance(obj) {
     id
   };
   Object.assign(opt, currentOptions, defaultOptionsMap[obj.type], obj);
-  console.log(opt, obj, 'obj');
+  // console.log(opt, obj, 'obj');
   //有相同id者共用一个实例,否则新增实例
   if (opt['id'] && instanceArr[opt['id']]) {
     instance = instanceArr[opt['id']];
@@ -104,7 +106,4 @@ let Notify = {
   }
 };
 
-
-
-
 export default Notify;

+ 3 - 3
src/packages/video/backup.vue

@@ -205,7 +205,7 @@ export default {
       this.state.vol = this.videoElm.volume;
     },
     playEnded() {
-      console.log('ended', this.videoSet.displayTime);
+      // console.log('ended', this.videoSet.displayTime);
       this.state.playing = false;
       this.state.isEnd = true;
       this.state.controlBtnShow = true;
@@ -245,7 +245,7 @@ export default {
     },
     getTime() {
       this.videoElm.addEventListener('durationchange', e => {
-        console.log(e);
+        // console.log(e);
       });
       this.videoElm.addEventListener('progress', e => {
         this.videoSet.loaded = (-1 + this.videoElm.buffered.end(0) / this.videoElm.duration) * 100;
@@ -257,7 +257,7 @@ export default {
     touchend() {},
     // 点击重新加载
     retry() {
-      console.log('error');
+      // console.log('error');
       this.state.isError = false;
       this.init();
     }

+ 2 - 2
src/packages/video/video.vue

@@ -306,7 +306,7 @@ export default {
     },
     getTime() {
       this.videoElm.addEventListener('durationchange', e => {
-        console.log(e);
+        // console.log(e);
       });
       this.videoElm.addEventListener('progress', e => {
         this.videoSet.loaded = (-1 + this.videoElm.buffered.end(0) / this.videoElm.duration) * 100;
@@ -345,7 +345,7 @@ export default {
     },
     // 点击重新加载
     retry() {
-      console.log('error');
+      // console.log('error');
       this.state.isError = false;
       this.init();
     }