|
|
@ -3,11 +3,11 @@ |
|
|
|
<view class="page"> |
|
|
|
<view class="page"> |
|
|
|
<view class="search-wrap"> |
|
|
|
<view class="search-wrap"> |
|
|
|
<uni-search-bar class="search" radius="30" placeholder="请输入" v-model="keyword" clearButton="auto" cancelButton="none" @confirm="initList" @clear="clearKeyword" /> |
|
|
|
<uni-search-bar class="search" radius="30" placeholder="请输入" v-model="keyword" clearButton="auto" cancelButton="none" @confirm="initList" @clear="clearKeyword" /> |
|
|
|
<uni-icons class="icon" custom-prefix="iconfont" type="icon-filter" size="22" color="#007eff" @click="typeVisible = true"></uni-icons> |
|
|
|
<!-- <uni-icons class="icon" custom-prefix="iconfont" type="icon-filter" size="22" color="#007eff" @click="typeVisible = true"></uni-icons> --> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
|
|
|
|
|
|
|
|
<view class="wrap"> |
|
|
|
<view class="wrap"> |
|
|
|
<!-- <sideSelect :menus="menus" @menuClick="menuClick" /> --> |
|
|
|
<sideSelect :menus.sync="classifications" @menuClick="menuClick" /> |
|
|
|
<view class="list"> |
|
|
|
<view class="list"> |
|
|
|
<view class="item" v-for="(item, i) in list" :key="i" @click="toDetail(item)"> |
|
|
|
<view class="item" v-for="(item, i) in list" :key="i" @click="toDetail(item)"> |
|
|
|
<view class="pro-name"> |
|
|
|
<view class="pro-name"> |
|
|
@ -15,16 +15,20 @@ |
|
|
|
{{ item.companyName }} |
|
|
|
{{ item.companyName }} |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class="info"> |
|
|
|
<view class="info"> |
|
|
|
<view v-if="item.briefIntroduction" class="intro ell">{{ item.briefIntroduction }}</view> |
|
|
|
<view v-if="item.briefIntroduction" class="intro"> |
|
|
|
<view class="meta">{{ item.province }}-{{ item.city }}</view> |
|
|
|
<image class="icon" src="http://124.71.79.122/images/miniProgram/intro.png" mode="widthFix" /> |
|
|
|
|
|
|
|
<view class="text ell">{{ item.briefIntroduction }}</view> |
|
|
|
|
|
|
|
</view> |
|
|
|
|
|
|
|
<view v-if="item.province || item.city" class="meta"> |
|
|
|
|
|
|
|
<image class="icon" src="http://124.71.79.122/images/miniProgram/address1.png" mode="widthFix" /> |
|
|
|
|
|
|
|
{{ item.province }}-{{ item.city }} |
|
|
|
|
|
|
|
</view> |
|
|
|
<view class="order" @click.stop="toOrder(item)">我想采购</view> |
|
|
|
<view class="order" @click.stop="toOrder(item)">我想采购</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view v-if="!per" class="per-mask">功能升级中,敬请期待...</view> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<view :class="['type-popup', {active: typeVisible}]"> |
|
|
|
<view :class="['type-popup', {active: typeVisible}]"> |
|
|
|
<uni-icons class="close" type="closeempty" size="20" color="#757575" @click="closeType"></uni-icons> |
|
|
|
<uni-icons class="close" type="closeempty" size="20" color="#757575" @click="closeType"></uni-icons> |
|
|
@ -43,6 +47,8 @@ |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
|
|
|
|
|
|
|
|
<order ref="order" /> |
|
|
|
<order ref="order" /> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<view v-if="!per" class="per-mask">功能升级中,敬请期待...</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
|
|
|
|
|
|
|
@ -55,6 +61,7 @@ |
|
|
|
Common, |
|
|
|
Common, |
|
|
|
per: true, // 是否有权限 |
|
|
|
per: true, // 是否有权限 |
|
|
|
teamId: uni.getStorageSync('teamId') || '', |
|
|
|
teamId: uni.getStorageSync('teamId') || '', |
|
|
|
|
|
|
|
platformId: uni.getStorageSync('platformId'), |
|
|
|
menus: [ |
|
|
|
menus: [ |
|
|
|
{ |
|
|
|
{ |
|
|
|
id: '', |
|
|
|
id: '', |
|
|
@ -121,9 +128,10 @@ |
|
|
|
onShow() { |
|
|
|
onShow() { |
|
|
|
this.active = '' |
|
|
|
this.active = '' |
|
|
|
this.keyword = '' |
|
|
|
this.keyword = '' |
|
|
|
this.per = true |
|
|
|
|
|
|
|
this.typeVisible = false |
|
|
|
this.typeVisible = false |
|
|
|
this.initList() |
|
|
|
this.per = this.platformId !== 6 // 供应商不能查看该页面 |
|
|
|
|
|
|
|
// this.per = true // 供应商不能查看该页面 |
|
|
|
|
|
|
|
this.per && this.initList() |
|
|
|
}, |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
methods: { |
|
|
|
initList() { |
|
|
|
initList() { |
|
|
@ -159,7 +167,13 @@ |
|
|
|
// 获取分类 |
|
|
|
// 获取分类 |
|
|
|
async getCategory() { |
|
|
|
async getCategory() { |
|
|
|
const { list } = await treeStructureList() |
|
|
|
const { list } = await treeStructureList() |
|
|
|
this.classifications = list[0].children |
|
|
|
this.classifications = [ |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
id: '', |
|
|
|
|
|
|
|
classificationName: '全部' |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
...list[0].children |
|
|
|
|
|
|
|
] |
|
|
|
}, |
|
|
|
}, |
|
|
|
// 分类点击回调 |
|
|
|
// 分类点击回调 |
|
|
|
classificationClick(item) { |
|
|
|
classificationClick(item) { |
|
|
@ -183,7 +197,7 @@ |
|
|
|
}, |
|
|
|
}, |
|
|
|
// 切换 |
|
|
|
// 切换 |
|
|
|
menuClick(tab) { |
|
|
|
menuClick(tab) { |
|
|
|
this.curTab = tab.id |
|
|
|
this.active = tab.id |
|
|
|
this.initList() |
|
|
|
this.initList() |
|
|
|
}, |
|
|
|
}, |
|
|
|
// 我想采购 |
|
|
|
// 我想采购 |
|
|
@ -247,14 +261,24 @@ |
|
|
|
color: #999; |
|
|
|
color: #999; |
|
|
|
} |
|
|
|
} |
|
|
|
.intro { |
|
|
|
.intro { |
|
|
|
max-width: 70%; |
|
|
|
display: flex; |
|
|
|
margin: 10rpx 0; |
|
|
|
align-items: center; |
|
|
|
font-size: 24rpx; |
|
|
|
margin: 10rpx 0 20rpx; |
|
|
|
color: #777; |
|
|
|
font-size: 26rpx; |
|
|
|
|
|
|
|
color: #3c3c3c; |
|
|
|
|
|
|
|
.text { |
|
|
|
|
|
|
|
max-width: 49%; |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
.meta { |
|
|
|
.meta { |
|
|
|
|
|
|
|
display: flex; |
|
|
|
|
|
|
|
align-items: center; |
|
|
|
font-size: 26rpx; |
|
|
|
font-size: 26rpx; |
|
|
|
color: #333; |
|
|
|
color: #3c3c3c; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
.icon { |
|
|
|
|
|
|
|
width: 30rpx; |
|
|
|
|
|
|
|
margin-right: 10rpx; |
|
|
|
} |
|
|
|
} |
|
|
|
.ell-wrap { |
|
|
|
.ell-wrap { |
|
|
|
display: inline-flex; |
|
|
|
display: inline-flex; |
|
|
|