Browse Source

去除页面上无用console.log

yangc 7 years ago
parent
commit
50c5db9e3a

+ 1 - 2
components/mobile/applyPurchase/SayPrice.vue

@@ -164,7 +164,6 @@
         }
       },
       commitSayPrice: function () {
-        console.log(this.sayPriceObj)
         if (this.checkValid()) {
           let purchaseMan = JSON.parse(JSON.stringify(this.purchaseDetail))
 //          this.showLoading = true
@@ -283,7 +282,7 @@
             break
           }
         }
-        console.log(this.validSayPrice.leadtime + '-' + this.validSayPrice.repliesLapQty + '-' + this.validSayPrice.repliesPrice)
+//        console.log(this.validSayPrice.leadtime + '-' + this.validSayPrice.repliesLapQty + '-' + this.validSayPrice.repliesPrice)
         return this.validSayPrice.leadtime && this.validSayPrice.repliesLapQty && this.validSayPrice.repliesPrice
       },
       onRemind: function (str) {

+ 0 - 1
components/product/CategoryProperty.vue

@@ -130,7 +130,6 @@
     methods: {
       selectBrand (item) {
         this.selectedBrand = item
-        console.log(this.JSONObj)
         this.$emit('loadCmpGoodsByBrandEvent', item.id, JSON.stringify(this.JSONObj))
       },
       delBrand () {

+ 0 - 1
components/product/ComponentGoods.vue

@@ -183,7 +183,6 @@
         return null
       },
       handlerCurrentNode (data, node) {
-        console.log(this.pageParams)
         this.pageParams.page = 1
         this.pageCmpGoods(this.pageParams)
       },

+ 0 - 3
components/store/CommodityList.vue

@@ -355,9 +355,7 @@ export default {
             obj.type = 'CHAT'
             if (!(/^1\d{10}$/).test(response.data.enTel)) {
               this.$http.get('/basic/enterprise/' + response.data.uu + '/admin').then(response => {
-                console.log(response)
                 obj.toPhone = response.data.userTel
-                console.log(obj)
                 this.openWebChat(newTab, obj)
               }, err => {
                 console.log(err)
@@ -365,7 +363,6 @@ export default {
               })
             } else {
               obj.toPhone = response.data.enTel
-              console.log(obj)
               this.openWebChat(newTab, obj)
             }
           }, err => {

+ 1 - 5
components/store/common/StoreHeader.vue

@@ -159,11 +159,7 @@ export default {
     loadQRcode: function () {
       let canvas = document.getElementById('qrccode-canvas')
       QRCode.toCanvas(canvas, this.url, (error) => {
-        if (error) {
-          console.log(error)
-        } else {
-          console.log('QRcode success')
-        }
+        console.log(error || 'QRcode success')
       })
     },
     closeDropDown () {

+ 0 - 1
pages/mobile/share/purChase/_uuid.vue

@@ -242,7 +242,6 @@ export default {
       // }
     },
     sendApplyPurchase() {
-      console.log(this.user)
       if (this.user.logged) {
         this.showsendApplyBox = true
       } else {

+ 1 - 1
pages/product/brand/_code.vue

@@ -34,7 +34,7 @@
         if (list.application && list.application !== '') {
           this.applications = list.application.split(',')
         }
-        console.log(list)
+//        console.log(list)
         return list
       }
     },

+ 0 - 2
pages/product/kind/_id.vue

@@ -37,7 +37,6 @@
     },
     computed: {
       actives () {
-        console.log(this.$store.state.product.kind.kindsParentWithBother.data)
         return this.$store.state.product.kind.kindsParentWithBother.data
       }
     },
@@ -48,7 +47,6 @@
       listemBrandFilter (brandid, propertyJSON) {
         this.brandid = brandid
         this.propertyJSON = propertyJSON
-        console.log(this.brandid)
         if (brandid) {
           if (propertyJSON !== null && Object.getOwnPropertyNames(propertyJSON).length > 3) {
             this.$store.dispatch('product/pageComGoods', {kindid: this.$route.params.id, brandid: brandid, properties: propertyJSON})

+ 1 - 1
plugins/axios.js

@@ -19,7 +19,7 @@ service.interceptors.request.use(config => {
     } else {
       config.url = process.env.baseUrl + config.url
     }
-    console.log(config.url)
+    // console.log(config.url)
     // config.headers.cookie = store.state.option.cookies + '; ' + store.state.option.sessionId
     // config.headers['User-Agent']
   } else {

+ 0 - 1
store/chat.js

@@ -1,6 +1,5 @@
 export const actions = {
   setChatTab ({ commit }, params = {}) {
-    console.log(params)
     commit('tab/GET_TABLE_SUCCESS', params.tab)
   }
 }