|
|
@@ -1,15 +1,15 @@
|
|
|
<template>
|
|
|
<div class="user-content">
|
|
|
<div class="provider">
|
|
|
- <div class="seek">
|
|
|
+ <!--<div class="seek">
|
|
|
<ul class="seek-type" >
|
|
|
<li :class="{active: providerType == 'enterprise'}" style="width: 33.3%" @click="switchprovide('enterprise')"><div>企业产品库</div></li>
|
|
|
<li :class="{active: providerType == 'person'}" style="width: 33.3%" @click="switchprovide('person')"><div>个人产品库</div></li>
|
|
|
<li :class="{active: providerType == 'onLine'}" style="width: 33.3%" @click="switchprovide('onLine')"><div>在售产品</div></li>
|
|
|
</ul>
|
|
|
- </div>
|
|
|
+ </div>-->
|
|
|
<div class="search-content" style="border-bottom: 1px solid #f5f5f5;padding-bottom: 0.25rem">
|
|
|
- <input type="text" placeholder="请输入您要查找的型号或品牌" v-model="seekKeyword" @keyup.13="searchSeek" ref="searchSeekInput" @focus="inputGetFocus()" @blur="blur()">
|
|
|
+ <input type="text" placeholder="请输入您要查找的型号或品牌" v-model="seekKeyword" @keyup.13="searchSeek">
|
|
|
<span @click="searchSeek" >
|
|
|
<i class="iconfont icon-sousuo"></i>
|
|
|
</span>
|
|
|
@@ -49,12 +49,19 @@
|
|
|
<div class="text">
|
|
|
{{item.code}}
|
|
|
</div>
|
|
|
- <div class="pms">
|
|
|
- <!--{{(storeInfo.uuid != 'undefind' && item.storeid == storeInfo.uuid && storeInfo.storeName.indexOf('优软测试二') < 0 && storeInfo.storeName.indexOf('优软商城') < 0) ? '自营' : '寄售'}}-->
|
|
|
- {{(shopuuid.uuid != 'undefind' && item.storeid == shopuuid.uuid && shopuuid.storeName.indexOf('优软测试二') < 0 && shopuuid.storeName.indexOf('优软商城') < 0) ? '自营' : '寄售'}}
|
|
|
- </div>
|
|
|
+ <!-- <div class="pms">
|
|
|
+ {{item.storeid === '33069557578d44e69bd91ad12d28a8d4' ? '寄售' : '自营'}}
|
|
|
+ </div>-->
|
|
|
+ <img class="store-type" v-if="item.storeid === '33069557578d44e69bd91ad12d28a8d4'" src="/images/mobile/product/consignment.png" alt="">
|
|
|
+ <img class="store-type" src="/images/mobile/product/self.png" alt="" v-else >
|
|
|
</div>
|
|
|
<div class="middle">
|
|
|
+ <div class="list list-long">
|
|
|
+ <div class="fl">
|
|
|
+ <div class="name">规格:</div>
|
|
|
+ <div class="text">{{item.spec || '-'}}</div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
<div class="list">
|
|
|
<div class="fl">
|
|
|
<div class="name">类目(产品名称):</div>
|
|
|
@@ -78,7 +85,7 @@
|
|
|
|
|
|
<div class="list">
|
|
|
<div class="fl">
|
|
|
- <div class="name">包装数量:</div>
|
|
|
+ <div class="name">最小包装数:</div>
|
|
|
<div class="text">{{item.minPackQty}}</div>
|
|
|
</div>
|
|
|
<div class="fr">
|
|
|
@@ -93,7 +100,7 @@
|
|
|
<div class="text">{{item.packaging || '无包装信息'}}</div>
|
|
|
</div>
|
|
|
<div class="fr">
|
|
|
- <div class="name">起订量:</div>
|
|
|
+ <div class="name">最小起订量:</div>
|
|
|
<div class="text" style="color: #f31919">{{item.minBuyQty}}</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
@@ -121,10 +128,11 @@
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
- <div class="labelinfo">
|
|
|
+ <!--<div class="labelinfo">
|
|
|
<div class="labelicon">标签</div>
|
|
|
<div class="labeltext">{{item.tag}}</div>
|
|
|
- </div>
|
|
|
+ </div>-->
|
|
|
+ <div class="label-text">{{item.tag || '暂无标签信息'}}</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
@@ -149,16 +157,23 @@
|
|
|
<div class="fl">
|
|
|
<div class="name">
|
|
|
<div class="pms">
|
|
|
- {{(shopuuid.uuid != 'undefind' && item.storeid == shopuuid.uuid && shopuuid.storeName.indexOf('优软测试二') < 0 && shopuuid.storeName.indexOf('优软商城') < 0) ? '自营' : '寄售'}}</div>
|
|
|
+ {{item.storeid === '33069557578d44e69bd91ad12d28a8d4' ? '寄售' : '自营'}}
|
|
|
+ </div>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="fr">
|
|
|
<div class="textinfo" v-if="item.breakUp">可拆卖</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
+ <div class="list list-long">
|
|
|
+ <div class="fl">
|
|
|
+ <div class="name">规格:</div>
|
|
|
+ <div class="text">{{item.spec || '-'}}</div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
<div class="list">
|
|
|
<div class="fl">
|
|
|
- <div class="name">包装数量:</div>
|
|
|
+ <div class="name">最小包装数:</div>
|
|
|
<div class="text">{{item.minPackQty}}</div>
|
|
|
</div>
|
|
|
<div class="fr">
|
|
|
@@ -185,7 +200,7 @@
|
|
|
<div class="text" :title="item.produceDate">{{item.produceDate || '-'}}</div>
|
|
|
</div>
|
|
|
<div class="fr">
|
|
|
- <div class="name">起订量:</div>
|
|
|
+ <div class="name">最小起订量:</div>
|
|
|
<div class="text" style="color: #f31919">{{item.minBuyQty}}</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
@@ -229,13 +244,12 @@
|
|
|
<p>暂无数据</p>
|
|
|
<nuxt-link to="/">返回首页</nuxt-link>
|
|
|
</div>
|
|
|
- <loading v-show="isSearchSearchingMore"></loading>
|
|
|
<remind-box :title="collectResult" :timeoutCount="timeoutCount"></remind-box>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
- import { RemindBox, Loading } from '~components/mobile/common'
|
|
|
+ import { RemindBox } from '~components/mobile/common'
|
|
|
export default {
|
|
|
layout: 'mobile',
|
|
|
middleware: 'authenticated',
|
|
|
@@ -244,7 +258,7 @@
|
|
|
return {
|
|
|
GetEnterpriseListData: [],
|
|
|
seekPage: 1,
|
|
|
- providerType: 'enterprise',
|
|
|
+ providerType: this.$route.query.providerType,
|
|
|
showMoreinfn: false,
|
|
|
showDelete: false,
|
|
|
isSearchSearchingMore: false,
|
|
|
@@ -260,9 +274,9 @@
|
|
|
scroll: function () {
|
|
|
let scrolled = document.documentElement.scrollTop || window.pageYOffset || document.body.scrollTop
|
|
|
|
|
|
- if (this.$refs.searchSeekInput && this.$store.state.mobile.InputGetFocus) {
|
|
|
- this.$refs.searchSeekInput.blur()
|
|
|
- }
|
|
|
+// if (this.$refs.searchSeekInput && this.$store.state.mobile.InputGetFocus) {
|
|
|
+// this.$refs.searchSeekInput.blur()
|
|
|
+// }
|
|
|
if (Math.ceil(scrolled + window.screen.availHeight) >= document.body.scrollHeight && !this.isSearchSearchingMore && this.seekPage < this.EnterprisePage) {
|
|
|
this.getMoreSearch()
|
|
|
}
|
|
|
@@ -279,16 +293,16 @@
|
|
|
reloadData: function () {
|
|
|
this.getResourceProvidor()
|
|
|
},
|
|
|
- blur: function() {
|
|
|
- setTimeout(() => {
|
|
|
- this.$store.dispatch('mobile/SetInputGetFocus', false)
|
|
|
- }, 300)
|
|
|
- },
|
|
|
- inputGetFocus: function() {
|
|
|
- setTimeout(() => {
|
|
|
- this.$store.dispatch('mobile/SetInputGetFocus', true)
|
|
|
- }, 300)
|
|
|
- },
|
|
|
+// blur: function() {
|
|
|
+// setTimeout(() => {
|
|
|
+// this.$store.dispatch('mobile/SetInputGetFocus', false)
|
|
|
+// }, 300)
|
|
|
+// },
|
|
|
+// inputGetFocus: function() {
|
|
|
+// setTimeout(() => {
|
|
|
+// this.$store.dispatch('mobile/SetInputGetFocus', true)
|
|
|
+// }, 300)
|
|
|
+// },
|
|
|
getMoreSearch: function () {
|
|
|
this.seekPage++
|
|
|
this.isSearchSearchingMore = true
|
|
|
@@ -458,8 +472,7 @@
|
|
|
this.getResourceProvidor()
|
|
|
},
|
|
|
components: {
|
|
|
- RemindBox,
|
|
|
- Loading
|
|
|
+ RemindBox
|
|
|
}
|
|
|
}
|
|
|
</script>
|
|
|
@@ -827,10 +840,9 @@
|
|
|
}
|
|
|
}
|
|
|
.providerList {
|
|
|
- border-top: 1px solid #e0e0e4;
|
|
|
- border-bottom: 1px solid #e0e0e4;
|
|
|
- margin-bottom: 0.24rem;
|
|
|
+ border-top: .31rem solid #f1f3f7;
|
|
|
.top {
|
|
|
+ position: relative;
|
|
|
&.top2 {
|
|
|
.text {
|
|
|
width: 5.4rem;
|
|
|
@@ -848,6 +860,13 @@
|
|
|
float: right;
|
|
|
margin-top: 0.25rem;
|
|
|
}
|
|
|
+ .store-type {
|
|
|
+ width: .77rem;
|
|
|
+ height: .77rem;
|
|
|
+ position: absolute;
|
|
|
+ right: 0;
|
|
|
+ top: 0;
|
|
|
+ }
|
|
|
}
|
|
|
.icon {
|
|
|
width: 0.6rem;
|
|
|
@@ -879,7 +898,8 @@
|
|
|
white-space: nowrap;
|
|
|
}
|
|
|
padding: 0 0.24rem;
|
|
|
- background: #f5f9fd;
|
|
|
+ /*background: #f5f9fd;*/
|
|
|
+ border-bottom: 1px solid #d3d3d3;
|
|
|
height: 0.9rem;
|
|
|
line-height: 0.9rem;
|
|
|
color: #0067e7;
|
|
|
@@ -1012,6 +1032,11 @@
|
|
|
text-overflow: ellipsis;
|
|
|
white-space: nowrap;
|
|
|
}
|
|
|
+ &.list-long {
|
|
|
+ .fl {
|
|
|
+ width: 100% !important;
|
|
|
+ }
|
|
|
+ }
|
|
|
.name {
|
|
|
color: #666;
|
|
|
font-size: 0.3rem;
|
|
|
@@ -1024,11 +1049,13 @@
|
|
|
}
|
|
|
.table {
|
|
|
width: 5.5rem;
|
|
|
- margin-bottom: 0px;
|
|
|
- margin-top: -.1rem;
|
|
|
+ margin-bottom: 0;
|
|
|
+ margin-top: 0;
|
|
|
li {
|
|
|
- height: 0.6rem;
|
|
|
- line-height: 0.6rem;
|
|
|
+ height: 0.43rem;
|
|
|
+ line-height: 0.43rem;
|
|
|
+ border-left: .01rem solid #c5c5c5;
|
|
|
+ font-size: .28rem;
|
|
|
&::after {
|
|
|
clear: both;
|
|
|
display: block;
|
|
|
@@ -1039,10 +1066,12 @@
|
|
|
div {
|
|
|
text-align: center;
|
|
|
width: 50%;
|
|
|
- float: left
|
|
|
+ float: left;
|
|
|
+ border-right: .01rem solid #c5c5c5;
|
|
|
+ border-bottom: .01rem solid #c5c5c5;
|
|
|
}
|
|
|
&:nth-child(odd) {
|
|
|
- background: #f7f7f7;
|
|
|
+ background: #ddd;
|
|
|
color: #666;
|
|
|
font-size: 0.28rem;
|
|
|
}
|
|
|
@@ -1055,8 +1084,8 @@
|
|
|
color: #f31919;
|
|
|
}
|
|
|
&.title {
|
|
|
- font-size: 0.3rem;
|
|
|
- color: #666;
|
|
|
+ font-size: 0.28rem;
|
|
|
+ color: #333;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
@@ -1092,6 +1121,16 @@
|
|
|
/*vertical-align: middle;*/
|
|
|
}
|
|
|
}
|
|
|
+ .label-text {
|
|
|
+ padding: .09rem .21rem;
|
|
|
+ border-radius: .22rem;
|
|
|
+ background: #ddd;
|
|
|
+ font-size: .26rem;
|
|
|
+ color: #666;
|
|
|
+ display: inline-block;
|
|
|
+ margin-left: .22rem;
|
|
|
+ margin-bottom: .25rem;
|
|
|
+ }
|
|
|
.deleteKuang {
|
|
|
position: fixed;
|
|
|
background: rgba(0,0,0,0.5);
|
|
|
@@ -1214,7 +1253,7 @@
|
|
|
width: 6.4rem;
|
|
|
margin: 0.1rem auto;
|
|
|
background: #fff;
|
|
|
- padding: 0.2rem 0rem;
|
|
|
+ padding: 0.2rem 0;
|
|
|
.list {
|
|
|
margin-bottom: 0.18rem;
|
|
|
}
|