Browse Source

修改卖家中心已报价与待报价问题

shenjj 7 years ago
parent
commit
19a97644c7

+ 36 - 2
components/mobile/center/Seek.vue

@@ -10,6 +10,10 @@
         <span class="mobile-switch-btn" :class="{'active': activeType=='all'}" @click="switchActiveType('all')">公司商机</span>
         <span class="mobile-switch-btn" :class="{'active': activeType=='self'}" @click="switchActiveType('self')">我的商机</span>
       </div>
+      <div class="product-switch-item" v-if="userType == 'buyer'">
+        <span :class="overdue==='attention'?'mobile-switch-btn active':'mobile-switch-btn'" @click="ChangeTab('attention')">未截止</span>
+        <span :class="overdue==='isattention'?'mobile-switch-btn active':'mobile-switch-btn'" @click="ChangeTab('isattention')">已截止</span>
+      </div>
       <div class="search-content">
         <input type="text" v-model="seekKeyword" :placeholder="userType == 'buyer' ? '品牌/型号' : '品牌/类目/型号/规格/公司'" @keyup.13="onSearch">
         <span @click="onSearch"><i class="iconfont icon-sousuo"></i></span>
@@ -34,7 +38,8 @@
         isChange: false,
         isSearch: false,
         remindKeyword: '',
-        activeType: 'all'
+        activeType: 'all',
+        overdue: 'attention'
       }
     },
     props: ['userType'],
@@ -100,6 +105,13 @@
       })
     },
     methods: {
+      ChangeTab(a) {
+        this.overdue = a
+        this.page = 1
+        this.remindKeyword = this.seekKeyword = ''
+        this.isChange = true
+        this.reloadData()
+      },
       onSearch: function () {
         this.isSearch = true
         this.remindKeyword = this.seekKeyword
@@ -108,7 +120,8 @@
         this.reloadData()
       },
       reloadData: function () {
-        this.$emit('reloadAction', this.page, this.count, this.seekKeyword, this.seekType, this.activeType)
+        let overdue = this.overdue === 'attention' ? '0' : '1'
+        this.$emit('reloadAction', this.page, this.count, this.seekKeyword, this.seekType, this.activeType, overdue)
       },
       onPullUpAction: function () {
         this.page++
@@ -147,6 +160,27 @@
     }
   }
   $seekTitleLine: .72rem;
+  .product-switch-item {
+    text-align: center;
+    background: #fff;
+    border-bottom: 1px solid #d8d8d8;
+    box-shadow: 0 1px 3px #ddd;
+    .mobile-switch-btn {
+      color: #333;
+      display: inline-block;
+      height: .72rem;
+      line-height: .72rem;
+      font-size: .28rem;
+      width: 1.4rem;
+      &:first-child {
+        margin-right: 1.78rem;
+      }
+      &.active {
+        color: #3f84f6;
+        border-bottom: .04rem solid #3f84f6;
+      }
+    }
+  }
   .seek-title {
     height: $seekTitleLine;
     line-height: $seekTitleLine;

+ 6 - 2
pages/mobile/center/user/collect/store.vue

@@ -14,9 +14,13 @@
             <img :src="item.storeInfo.logoUrl || '/images/component/default.png'">
           </div>
           <div class="list-item-phone">
-            <p>电话:<span>{{item.storeInfo.enterprise.enTel || '-'}}</span></p>
+            <!--电话:<a :href="'tel:' + item.enterprise.enTel" >{{item.enterprise.enTel}}</a>-->
+            <p @click.stop="" v-if="item.storeInfo.enterprise.enTel">电话:<a :href="'tel:' + item.storeInfo.enterprise.enTel" >{{item.storeInfo.enterprise.enTel}}</a></p>
+            <p v-else>电话:<span>{{item.storeInfo.enterprise.enTel || '-'}}</span></p>
+            <p @click.stop="" v-if="item.storeInfo.enterprise.enPhone">手机:<a :href="'tel:' + item.storeInfo.enterprise.enPhone" >{{item.storeInfo.enterprise.enPhone}}</a></p>
+            <p v-else>手机:<span>{{item.storeInfo.enterprise.enPhone || '-'}}</span></p>
             <p>传真:<span>{{item.storeInfo.enterprise.enFax || '-'}}</span></p>
-            <p>联系商家:<a @click="selectStoreInfo(item, $event)">点击查看</a></p>
+            <!--<p>联系商家:<a @click="selectStoreInfo(item, $event)">点击查看</a></p>-->
             <i class="iconfont icon-shoucang" @click="cancelFocus(item, $event)"></i>
           </div>
         </div>

+ 5 - 3
pages/mobile/center/user/seek.vue

@@ -10,7 +10,8 @@
       let user = store.state.option.user.data
       let params = {
         pageNumber: 1,
-        pageSize: 10
+        pageSize: 10,
+        overdue: '0'
       }
       if (user.enterprise.uu) {
         params.enUU = user.enterprise.uu
@@ -38,11 +39,12 @@
       }
     },
     methods: {
-      reloadData: function (page = 1, count = 10, keyword) {
+      reloadData: function (page = 1, count = 10, keyword, ...otherParamas) {
         let params = {
           pageNumber: page,
           pageSize: count,
-          keyword: keyword
+          keyword: keyword,
+          overdue: otherParamas[2]
         }
         if (this.user.data.enterprise.uu) {
           params.enUU = this.user.data.enterprise.uu

+ 5 - 4
pages/mobile/center/vendor/productdetails.vue

@@ -30,10 +30,11 @@
       <div class="list clearfix">
         <div class="pull-left">
           <span class="name">规格:</span>
-          <div class="specInput input">
-            <input type="text" placeholder="请输入规格" v-model="chooseItem.spec" maxlength="50" />
-            <img src="/images/mobile/product/close_icon.png" @click="deleteText('spec')"/>
-          </div>
+          <span>{{chooseItem.spec}}</span>
+          <!--<div class="specInput input">-->
+            <!--<input type="text" placeholder="请输入规格" v-model="chooseItem.spec" maxlength="50" />-->
+            <!--<img src="/images/mobile/product/close_icon.png" @click="deleteText('spec')"/>-->
+          <!--</div>-->
         </div>
         <div class="pull-right">
           <span class="name">库存:</span>

+ 3 - 2
pages/mobile/product/_batchCode.vue

@@ -91,8 +91,8 @@
             <p>联系卖家</p>
           </li>
           <li class="text-ellipse inline-block price-level" @click="goAttach(component.attach)">
-            <i class="iconfont icon-pdf" :class="{'active': component.attach !== '' && component.attach !== '1'}" ></i>
-            <p class="lastOne" :class="{'active': component.attach !== '' && component.attach !== '1'}">数据手册</p>
+            <i class="iconfont icon-pdf" :class="{'active': component.attach && component.attach !== '' && component.attach !== '1'}" ></i>
+            <p class="lastOne" :class="{'active': component.attach && component.attach !== '' && component.attach !== '1'}">数据手册</p>
           </li>
         </ul>
       </div>
@@ -192,6 +192,7 @@
       },
       goAttach: function (url) {
         if (this.user.logged) {
+          console.log(this.component)
           if (url && url !== '1') {
              // console.log(url)
             window.open(url)

+ 4 - 2
pages/mobile/search/_keycode.vue

@@ -199,11 +199,13 @@
 //            this.collectResult = '卖家上传的产品暂无参数,请联系卖家了解具体详情。'
 //            this.timeoutCount++
 //          }
+          console.log(item)
           if (item.batchCode) {
             this.$router.push('/mobile/product/' + item.batchCode)
           } else {
-            this.collectResult = '产品参数错误'
-            this.timeoutCount ++
+            this.$router.push('/mobile/brand/componentDetail/' + item.uuid)
+            // this.collectResult = '暂无参数信息'
+            // this.timeoutCount ++
           }
         } else {
           this.isClickCollect = false