Browse Source

购物车搜索+去掉无关打印

yangc 6 years ago
parent
commit
c58e2124e7

+ 0 - 3
components/applyPurchase/BatchPublish.vue

@@ -1037,9 +1037,7 @@
             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)
@@ -1047,7 +1045,6 @@
               })
             } else {
               obj.toPhone = response.data.enTel
-              console.log(obj)
               this.openWebChat(newTab, obj)
             }
           }, err => {

+ 0 - 3
components/applyPurchase/SeekProduct.vue

@@ -84,9 +84,6 @@
         default: {}
       }
     },
-    mounted() {
-      console.log(this.productItem)
-    },
     watch: {
       'showObj.show': {
         handler: function (val) {

+ 0 - 1
components/applyPurchase/articleOne.vue

@@ -320,7 +320,6 @@
         if (!this.validObj.prodTitle) {
           this.$message.error('物料名称不能为空')
         }
-        console.log(prodTitle)
         return this.validObj.prodTitle
       },
       checkBrand: function () {

+ 0 - 1
components/common/upload/upload.vue

@@ -37,7 +37,6 @@
     watch: {
       url: function (val, oldVal) {
         if (val && val !== '') {
-          console.log(val)
           this.qualifications.url = val
         }
       }

+ 0 - 2
components/default/RightBar.vue

@@ -216,13 +216,11 @@
           inner.style.transform = 'translate3d(0, 0, 0)'
           let transitionEvent = whichTransitionEvent()
             transitionEvent && el.addEventListener(transitionEvent, function() {
-              console.log('动画结束1')
               done()
             })
         })
       },
       afterEnter(el) {
-        console.log(this.dropBalls)
         // console.log('钩子函数收尾')
         let ball = this.dropBalls.shift()
         if (ball) {

+ 0 - 1
components/main/Search.vue

@@ -232,7 +232,6 @@
         this.associate.show = this.associate.focus
       },
       onSelectChange (count) {
-        console.log(1)
         let keywords = this.similarKeywords
         if (keywords && keywords.result.length) {
           let index = this.associate.activeIndex

+ 0 - 1
components/mobile/applyPurchase/PublishSeek.vue

@@ -132,7 +132,6 @@
         return this.$http.get('/productuser/match/getKind', {params: {cmpCode: code, brand: brand}})
       },
       goPublish: function () {
-        console.log('12', this.applyObj)
         if (this.checkAll()) {
           this.getMaterialKind(this.applyObj.code, this.applyObj.brand).then(response => {
             let inquiry = {}

+ 4 - 4
components/mobile/base/SearchHeader.vue

@@ -20,15 +20,15 @@
     <ul v-if="emptyStatus && type == 'default' && keyword && keyword !== '' && showSimilarWord">
       <template v-if="similarList.brand && similarList.brand.length && (similarType == 'all' || similarType == 'brand')">
         <li class="title text-ellipse" v-if="similarType == 'all'">品牌</li>
-        <li class="text-ellipse" v-for="brand in similarList.brand.slice(0, 4)" @click="onSearch(brand.nameEn, 'brand', $event)">{{brand.nameEn}}</li>
+        <li class="text-ellipse" v-for="brand in similarList.brand.slice(0, 8)" @click="onSearch(brand.nameEn, 'brand', $event)">{{brand.nameEn}}</li>
       </template>
       <template v-if="similarList.kind && similarList.kind.length && (similarType == 'all' || similarType == 'kind')">
         <li class="title text-ellipse" v-if="similarType == 'all'">物料名称</li>
-        <li class="text-ellipse" v-for="kind in similarList.kind.slice(0, 4)" @click="onSearch(kind.nameCn, 'kind', $event)">{{kind.nameCn}}</li>
+        <li class="text-ellipse" v-for="kind in similarList.kind.slice(0, 8)" @click="onSearch(kind.nameCn, 'kind', $event)">{{kind.nameCn}}</li>
       </template>
       <template v-if="similarList.component && similarList.component.length && (similarType == 'all' || similarType == 'code')">
         <li class="title text-ellipse" v-if="similarType == 'all'">型号</li>
-        <li class="text-ellipse" v-for="code in similarList.component.slice(0, 4)" @click="onSearch(code.code, 'code', $event)">{{code.code}}</li>
+        <li class="text-ellipse" v-for="code in similarList.component.slice(0, 8)" @click="onSearch(code.code, 'code', $event)">{{code.code}}</li>
       </template>
     </ul>
   </div>
@@ -215,7 +215,7 @@
         top: .72rem;
         border: 1px solid #ccc;
         border-radius: .05rem;
-        max-height: 4.5rem;
+        max-height: 4.9rem;
         overflow-y: auto;
         li {
           height: .6rem;

+ 1 - 1
components/mobile/search/componet-item.vue

@@ -2,7 +2,7 @@
   <div class="middle">
     <div class="list">
       <div class="name">品牌:</div>
-      <div class="text overHidden">{{item.brand && item.brand.nameEn || '-'}}</div>
+      <div class="text overHidden">{{item.brandNameEn || item.brandNameCn || '-'}}</div>
     </div>
     <div class="list">
       <div class="name">物料名称:</div>

+ 0 - 1
components/product/ComponentGoods.vue

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

+ 10 - 4
pages/mobile/center/user/cart/_key.vue

@@ -7,11 +7,16 @@
       :expandClass="'normal'"
       :similarType="'code'"
       @searchAction="onSearch"></search-header>
-    <ul>
+    <ul v-if="goodsList.length">
       <li v-for="goods in goodsList">
         <component-item :item="goods" @cancatSeller="concatSeller"></component-item>
       </li>
     </ul>
+    <empty-status
+      :type="'search'"
+      :text="'暂无搜索结果'"
+      :showLink="false"
+      v-else></empty-status>
     <link-user :infoObj="currentStoreInfo"
                :showLink="showLink"
                @closeAction="showLink = false"></link-user>
@@ -25,14 +30,15 @@
 <script>
   import {LinkUser, SearchHeader} from '~components/mobile/base'
   import componentItem from '~components/mobile/search/componet-item'
-  import { PullUp } from '~components/mobile/common'
+  import { PullUp, EmptyStatus } from '~components/mobile/common'
   export default {
     layout: 'mobile',
     components: {
       LinkUser,
       SearchHeader,
       componentItem,
-      PullUp
+      PullUp,
+      EmptyStatus
     },
     data () {
       return {
@@ -78,7 +84,7 @@
         return this.searchList ? this.searchList.stock : {}
       },
       allPage () {
-        return this.goods.total ? Math.ceil(this.goods.total / this.goods.size) : 0
+        return this.goods && this.goods.total ? Math.ceil(this.goods.total / this.goods.size) : 0
       }
     },
     methods: {

+ 0 - 1
pages/mobile/center/vendor/product.vue

@@ -587,7 +587,6 @@
       },
       // 编辑物料
       updateMateriel(item) {
-        console.log(item)
         this.MaterielItem = item
         this.$item = this.baseUtils.deepCopy(item)
         this.cmpImg = item.cmpImg || ''

+ 0 - 2
pages/mobile/center/vendor/productList/index.vue

@@ -135,7 +135,6 @@
     methods: {
       closeMoreinfo() {},
       update(item) {
-        console.log(item)
         this.$store.commit('product/brand/GET_ONSALE_DETAILS_SUCCESS', item)
         localStorage.setItem('ProductListItem', JSON.stringify(item))
         this.$router.push('/mobile/center/vendor/productdetails')
@@ -150,7 +149,6 @@
         })
       },
       toAddpro() {
-        console.log(this.vendorlist)
         let item = {
           brandNameEn: this.cnmpBand,
           kindNameCn: this.cnmpType,

+ 0 - 3
pages/mobile/center/vendor/productdetails.vue

@@ -161,7 +161,6 @@
     },
     mounted() {
       this.chooseItem = this.baseUtils.deepCopy(this.$store.state.product.brand.onSaleDetails.data)
-      console.log(this.chooseItem)
       this.chooseItem.storeInfoOms = this.chooseItem.storeid === '33069557578d44e69bd91ad12d28a8d4' ? '寄售' : '自营'
       if (localStorage.getItem('ProductListItem')) {
         let a = JSON.parse(localStorage.getItem('ProductListItem'))
@@ -344,7 +343,6 @@
             return false
           }
           this.chooseItem.prices[index - 1].end = item.start - 1
-          console.log(this.chooseItem.prices)
         }
       },
       // 结束价格阶段失去焦点
@@ -505,7 +503,6 @@
               isHas = true
               break
             } else if (!/^[0-9]+([.]{1}[0-9]{1,6})?$/.test(this.chooseItem.prices[i].rMBPrice)) {
-              console.log(this.chooseItem.prices[i].rMBPrice)
               this.timeoutCount++
               this.collectResult = '单价只能输入数字'
               isHas = true

+ 0 - 1
pages/mobile/order/details.vue

@@ -499,7 +499,6 @@
           }
         }
         let { data } = await axios.get(`/trade/purchase/purchaseId/${route.query.uuid}`)
-        console.log(data)
         data.data.area = JSON.parse(data.data.jsonAddress)
         data.data.rule = data.data.jsonRule ? JSON.parse(data.data.jsonRule) : ''
         data.data.paytype = route.query.paytype

+ 0 - 2
pages/mobile/order/index.vue

@@ -400,7 +400,6 @@
             this.cancatInfo = {
               entel: item.buyPhone
             }
-            console.log(this.cancatInfo)
             return
           }
           this.$http.get(`/basic/enterprise/${item.buyerenuu}/tels`).then(res => {
@@ -848,7 +847,6 @@
         let newTime = new Date()
         let msec = newTime.getTime() - time
         let hours = parseInt(parseInt(msec) / (1000 * 60 * 60))
-        console.log(hours)
         return hours
       },
       onMind(str) {

+ 0 - 1
pages/mobile/search/_keycode.vue

@@ -199,7 +199,6 @@
 //            this.collectResult = '卖家上传的产品暂无参数,请联系卖家了解具体详情。'
 //            this.timeoutCount++
 //          }
-          console.log(item)
           if (item.batchCode) {
             this.$router.push('/mobile/product/' + item.batchCode)
           } else {

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

@@ -32,7 +32,6 @@
     },
     methods: {
       showList: function (status) {
-        console.log(status)
         this.isShow = status
       },
       listenChild: function (brand) {

+ 0 - 1
store/index.js

@@ -465,7 +465,6 @@ export const actions = {
   // 保存微信信息
   GerWechatInfo({ commit }, params = {}) {
     let id = params.openId
-    console.log('openid:' + id)
     commit('option/REQUEST_WECHATINFO_STATUS')
     return axios.get('/wx/getWxUserInfo', { params: params })
       .then(response => {