123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135 |
- <template>
- <div id="prodDetails">
- <el-row>
- <el-col :span="24" class="info">
- <el-col :span="24" class="top">
- <el-carousel trigger="click" class="carousel">
- <template v-if="productInfo.image && productInfo.image.length > 0">
- <el-carousel-item v-for="(item, index) in productInfo.image" :key="index">
- <el-image :src="item.url" style="width:100%"> </el-image>
- </el-carousel-item>
- </template>
- </el-carousel>
- <p class="textOver">{{ productInfo.name }}</p>
- </el-col>
- <el-col :span="24" class="message">
- <p>
- <span>产品类型</span>
- <span>{{ productInfo.totaltype === '0' ? '技术' : productInfo.totaltype === '1' ? '产品' : productInfo.totaltype === '2' ? '服务' : '暂无' }}</span>
- </p>
- <p>
- <span>类型</span>
- <span>{{ productInfo.product_type_name || '暂无' }}</span>
- </p>
- <p>
- <span>研发阶段</span>
- <span>{{ productInfo.phase == 1 ? '阶段成果' : productInfo.phase == 2 ? '最终成果' : '暂无' }}</span>
- </p>
- <p>
- <span>交易方式</span>
- <span>{{ productInfo.business === '0' ? '公用' : productInfo.business === '1' ? '转让' : productInfo.business === '2' ? '竞价' : '暂无' }}</span>
- </p>
- <p>
- <span>应用领域</span>
- <span>{{ productInfo.field || '暂无' }}</span>
- </p>
- <p>
- <span>服务范围</span>
- <span>{{ productInfo.scope || '暂无' }}</span>
- </p>
- <p>
- <span>产品单价</span>
- <span>{{ productInfo.price }}/{{ productInfo.priceunit }}</span>
- </p>
- <p>
- <span>联系人</span>
- <span>{{ productInfo.contact_user }}</span>
- </p>
- <p>
- <span>联系电话</span>
- <span>{{ productInfo.contact_tel }}</span>
- </p>
- <div class="introduction">
- <p>产品简介</p>
- <p>{{ productInfo.introduction }}</p>
- </div>
- </el-col>
- </el-col>
- </el-row>
- </div>
- </template>
- <script>
- import { mapState, createNamespacedHelpers } from 'vuex';
- export default {
- name: 'prodDetails',
- props: {
- productInfo: null,
- },
- components: {},
- data: function() {
- return {};
- },
- created() {},
- methods: {},
- computed: {
- ...mapState(['user']),
- pageTitle() {
- return `${this.$route.meta.title}`;
- },
- },
- metaInfo() {
- return { title: this.$route.meta.title };
- },
- };
- </script>
- <style lang="less" scoped>
- .info {
- .top {
- background: #fff;
- min-height: 250px;
- padding: 0 15px;
- margin: 0 0 10px 0;
- .carousel {
- height: 200px !important;
- padding: 10px 0;
- }
- .el-image {
- width: 100%;
- height: 200px;
- }
- p {
- font-size: 18px;
- color: #000;
- padding: 0 0 10px 0;
- }
- }
- .message {
- background: #fff;
- padding: 0 15px;
- min-height: 50px;
- p {
- min-height: 50px;
- line-height: 50px;
- border-bottom: 1px solid #ccc;
- }
- span:first-child {
- display: inline-block;
- width: 80px;
- color: #ccc;
- }
- span:last-child {
- color: #000;
- }
- div {
- p {
- border-bottom: none;
- }
- }
- }
- }
- /deep/.el-carousel__container {
- height: 200px !important;
- }
- </style>
|