1a47dc1b54
2、其他调整
288 lines
15 KiB
Vue
288 lines
15 KiB
Vue
<template>
|
|
<view>
|
|
<top-bar></top-bar>
|
|
<common-header></common-header>
|
|
<category-bar></category-bar>
|
|
|
|
<view class="w-1200 m-a">
|
|
<view class="page-nav">
|
|
<el-breadcrumb separator=">">
|
|
<el-breadcrumb-item :to="{ path: '/' }">首页</el-breadcrumb-item>
|
|
<el-breadcrumb-item>
|
|
<navigator style="display: inline-block;" url="/pages/yellowPage/list">金久信黄页</navigator>
|
|
</el-breadcrumb-item>
|
|
<el-breadcrumb-item class="text-main">{{ info.company.companyName }}</el-breadcrumb-item>
|
|
</el-breadcrumb>
|
|
</view>
|
|
<view class="mt-40 bg-white company">
|
|
<view class="p-50 flex justify-between items-center pb-30 border-bottom">
|
|
<view class="flex justify-start items-center">
|
|
<image class="logo" :src="info.businessCard.logo" v-if="info.businessCard"/>
|
|
<view class="ml-35 flex flex-col justify-start items-start">
|
|
<text class="text-40 font-bold">{{ info.company.companyName }}</text>
|
|
<text class="text-gray text-28 mt-40" v-if="info.businessCard">主营业务:
|
|
{{ info.businessCard.mainBusiness }}
|
|
</text>
|
|
</view>
|
|
</view>
|
|
<view class="flex justify-end items-center">
|
|
<view class="flex flex-col justify-center items-center">
|
|
<view class="flex justify-center items-center">
|
|
<protect theme="filled" size="24" fill="#d0021b" strokeLinecap="square"/>
|
|
<view class="text-gray">平台累计交易</view>
|
|
</view>
|
|
<text class="text-main font-bold text-50">{{ info.transactionAmount }}</text>
|
|
</view>
|
|
<view class="flex flex-col justify-center items-center ml-35">
|
|
<view class="flex justify-center items-center">
|
|
<exchange-three theme="filled" size="24" fill="#d0021b" strokeLinecap="square"/>
|
|
<view class="text-gray">已缴纳交易保证金</view>
|
|
</view>
|
|
<text class="text-main font-bold text-50">{{ info.paidEnsure }}</text>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view class="mt-30 p-40">
|
|
<view class="flex justify-between items-center mb-20">
|
|
<view class="title">企业简介</view>
|
|
<view class="mt-20" v-html="info.companyIntroduction"></view>
|
|
</view>
|
|
<view class="flex flex-col justify-start items-start mb-20">
|
|
<view class="title">联系我们</view>
|
|
<view class="mt-20 flex justify-start items-start flex-wrap w-100p text-30">
|
|
<view class="flex justify-start items-center w-33p mb-20">
|
|
<i class="el-icon-map-location mr-15"/>
|
|
<text v-if="info.manager">地址:{{ info.manager.address }}</text>
|
|
</view>
|
|
<view class="flex justify-start items-center w-33p mb-20">
|
|
<i class="el-icon-phone mr-15"/>
|
|
<text v-if="info.businessCard">电话:{{ info.businessCard.phone }}</text>
|
|
</view>
|
|
<view class="flex justify-start items-center w-33p mb-20">
|
|
<i class="el-icon-mobile mr-15"/>
|
|
<text v-if="info.businessCard">手机:{{ info.businessCard.mobile }}</text>
|
|
</view>
|
|
<view class="flex justify-start items-center w-33p">
|
|
<i class="el-icon-message mr-15"/>
|
|
<text v-if="info.businessCard">邮箱:{{ info.businessCard.email }}</text>
|
|
</view>
|
|
<view class="flex justify-start items-center w-33p">
|
|
<i class="el-icon-data-board mr-15"/>
|
|
<text v-if="info.businessCard">网址:{{ info.businessCard.website }}</text>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view class="flex flex-col justify-start items-start mb-20">
|
|
<view class="title">发布的现货</view>
|
|
<view class="mt-20 bg-gray w-100p p-40" v-for="(item, index) in info.spotList" :key="index">
|
|
<view class="w-100p flex justify-between items-center">
|
|
<text class="font-bold text-40">{{ item.name }}</text>
|
|
<el-button type="primary" plain class="empty-bg-plain-btn"
|
|
@click.native="vk.navigateTo('/pages/spot/goods/detail?id=' + item._id)">查看详情
|
|
</el-button>
|
|
</view>
|
|
<view class="w-60p flex justify-between items-center text-main my-20">
|
|
<text>库存:{{ item.stock }}吨</text>
|
|
<text>供货地:{{ item.address.province.name }}-{{
|
|
item.address.city.name
|
|
}}-{{ item.address.area.name }}
|
|
</text>
|
|
</view>
|
|
<view class="w-60p flex justify-between items-center text-gray">
|
|
<view class="flex justify-start items-center">
|
|
<i class="el-icon-user"/>
|
|
<text>{{ info.company.companyName }}</text>
|
|
</view>
|
|
<text class="">{{ item._add_time_str }}发布</text>
|
|
</view>
|
|
|
|
</view>
|
|
</view>
|
|
<view class="flex justify-between items-start mb-20">
|
|
<view class="title">发布的询价单</view>
|
|
<view class="text-main pointer" @click="vk.navigateTo('/pages/spot/goods/goods')">查看更多>
|
|
</view>
|
|
</view>
|
|
<view class="bg-gray-light flex justify-center items-center table-header p-20">
|
|
<view class="text-gray flex-1">品名/材质</view>
|
|
<view class="text-gray flex-1">采购量</view>
|
|
<view class="text-gray flex-1">收购地</view>
|
|
<view class="text-gray flex-1">采购企业</view>
|
|
<view class="text-gray flex-1">报价情况</view>
|
|
<view class="text-gray flex-1">发布时间</view>
|
|
<view class="text-gray flex-1">操作</view>
|
|
</view>
|
|
<view class="flex justify-center items-center mt-20 w-100p p-20"
|
|
v-for="(item, index) in info.enquiryList" :key="index">
|
|
<template v-if="item.productList && item.productList.length > 0 && JSON.stringify(item.productList[0]) !== '{}'">
|
|
<view class="text-main flex-1">{{ item.productList[0].goodsName }}</view>
|
|
<view class="flex-1">{{ item.productList[0].procureNumber }}{{
|
|
item.productList[0].procureUnit
|
|
}}
|
|
</view>
|
|
<view class="flex-1">{{ item.address }}</view>
|
|
<view class="flex-1">{{ info.company.companyName }}</view>
|
|
<view class="flex-1">{{ item.answerNumber }}家已报价</view>
|
|
<view class="flex-1">{{ item._add_time_str }}</view>
|
|
<view class="flex-1">
|
|
<el-button type="primary" plain class="empty-bg-plain-btn"
|
|
@click.native="vk.navigateTo('/pages/enquiry/detail?id=' + item._id);">查看
|
|
</el-button>
|
|
</view>
|
|
</template>
|
|
</view>
|
|
<view class="flex justify-between items-start mb-20">
|
|
<view class="title">发布的加工单</view>
|
|
<view class="text-main" @click="vk.navigateTo('/pages/process/list')">查看更多></view>
|
|
</view>
|
|
<view class="bg-gray-light flex justify-center items-center table-header p-20">
|
|
<view class="text-gray flex-1">品名/材质</view>
|
|
<view class="text-gray flex-1">加工量</view>
|
|
<!-- <view class="text-gray flex-1">收购地</view>-->
|
|
<view class="text-gray flex-1">采购企业</view>
|
|
<view class="text-gray flex-1">报价情况</view>
|
|
<view class="text-gray flex-1">发布时间</view>
|
|
<view class="text-gray flex-1">操作</view>
|
|
</view>
|
|
<view class="flex justify-center items-center mt-20 w-100p p-20"
|
|
v-for="(item, index) in info.processList" :key="index">
|
|
<view class="text-main flex-1">{{ item.title }}</view>
|
|
<!-- <view class="flex-1">{{ item.address }}</view>-->
|
|
<view class="flex-1">{{ item.num }}</view>
|
|
<view class="flex-1">{{ info.company.companyName }}</view>
|
|
<view class="flex-1">{{ item.answerNumber }}家已报价</view>
|
|
<view class="flex-1">{{ item._add_time_str }}</view>
|
|
<view class="flex-1">
|
|
<el-button type="primary" plain class="empty-bg-plain-btn"
|
|
@click.native="toProcessDetail(row._id)">查看
|
|
</el-button>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<gap/>
|
|
<common-footer></common-footer>
|
|
</view>
|
|
</template>
|
|
|
|
<script>
|
|
import {Protect, ExchangeThree} from '@icon-park/vue'
|
|
import provinces from "@/uni_modules/vk-uview-ui/libs/address/provinces.json";
|
|
import citys from "@/uni_modules/vk-uview-ui/libs/address/citys.json";
|
|
import areas from "@/uni_modules/vk-uview-ui/libs/address/areas.json";
|
|
import Gap from "../../components/gap/gap.vue";
|
|
|
|
export default {
|
|
name: "info",
|
|
components: {Gap, Protect, ExchangeThree},
|
|
data() {
|
|
return {
|
|
id: null,
|
|
provinceData: provinces,
|
|
cityData: citys,
|
|
areaData: areas,
|
|
info: {
|
|
transactionAmount: 0,
|
|
paidEnsure: 0,
|
|
spotList: [],
|
|
enquiryList: [],
|
|
processList: [],
|
|
},
|
|
}
|
|
},
|
|
methods: {
|
|
getInfo() {
|
|
vk.callFunction({
|
|
url: "client/user/pub/getDetail",
|
|
data: {
|
|
_id: this.id
|
|
},
|
|
success: (res) => {
|
|
this.info = res.data
|
|
this.info.enquiryList.map(val => {
|
|
let str = ''
|
|
if (val.productList.length > 0 && val.productList[0].addressRegion.length > 0) {
|
|
let provinceIndex = 0, cityIndex = 0, areaIndex = 0
|
|
this.provinceData.forEach((item, index) => {
|
|
if (parseInt(val.productList[0].addressRegion[0]) === parseInt(item.code)) {
|
|
provinceIndex = index
|
|
str = item.name
|
|
}
|
|
})
|
|
this.cityData[provinceIndex].forEach((item, index) => {
|
|
if (parseInt(val.productList[0].addressRegion[1]) === parseInt(item.code)) {
|
|
cityIndex = index
|
|
str += item.name
|
|
}
|
|
})
|
|
this.areaData[provinceIndex][cityIndex].forEach((item, index) => {
|
|
if (parseInt(val.productList[0].addressRegion[2]) === parseInt(item.code)) {
|
|
areaIndex = index
|
|
str += item.name
|
|
}
|
|
})
|
|
str += val.productList[0].addressDetail
|
|
}
|
|
val.address = str
|
|
return val
|
|
})
|
|
}
|
|
});
|
|
},
|
|
async toProcessDetail(id) {
|
|
const {userInfo} = await vk.callFunction({
|
|
url: 'user/kh/getMyUserInfo'
|
|
})
|
|
if (!userInfo.fadadaConfirm && userInfo.authStatus === 1) {
|
|
this.$confirm('您尚未认证, 是否前往认证?', '提示', {
|
|
confirmButtonText: '确定',
|
|
cancelButtonText: '取消',
|
|
type: 'warning'
|
|
}).then(() => {
|
|
vk.navigateTo({url: '/pages/user/user?menu=fadada'});
|
|
})
|
|
} else if (vk.pubfn.isNull(userInfo.businessCard)) {
|
|
this.$confirm('请完善名片信息', '提示', {
|
|
confirmButtonText: '确定',
|
|
cancelButtonText: '取消',
|
|
type: 'warning'
|
|
}).then(() => {
|
|
vk.navigateTo('/pages/user/user?menu=business-card');
|
|
})
|
|
} else {
|
|
vk.navigateTo({
|
|
url: `/pages/process/detail?id=${id}`
|
|
})
|
|
}
|
|
},
|
|
},
|
|
onLoad(option) {
|
|
if (option.id) {
|
|
this.id = option.id
|
|
this.getInfo()
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style lang="scss" scoped>
|
|
.company {
|
|
|
|
.logo {
|
|
width: 100px;
|
|
height: 100px;
|
|
}
|
|
|
|
.title {
|
|
font-size: 16px;
|
|
padding-left: 5px;
|
|
border-left: 3px solid #d0021b;
|
|
color: #d0021b;
|
|
}
|
|
|
|
.table-header {
|
|
border-top: 8px solid #F4F4F4;
|
|
}
|
|
}
|
|
</style> |