123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268 |
- <template>
- <div style="margin-bottom: 30px;">
- <div id="introduction-fragment">
- <div class="container">
- <div class="menu-com row">
- <div class="menu-title col-md-12">
- <nuxt-link to="/">商城首页</nuxt-link> >
- <nuxt-link to="/eCommerce/home/origin" v-if="storeInfo.type == 'AGENCY' || storeInfo.type == 'DISTRIBUTION'" title="代理经销">代理经销</nuxt-link>
- <nuxt-link to="/eCommerce/home/factory" v-if="storeInfo.type == 'ORIGINAL_FACTORY'" title="原厂专区">原厂专区</nuxt-link>
- <nuxt-link :to="'/store/' + storeInfo.uuid" v-if="storeInfo.type == 'CONSIGNMENT'" title="库存寄售">库存寄售</nuxt-link>
- >
- <span v-if="storeInfo.type != 'CONSIGNMENT'"><nuxt-link :to="'/store/' + storeInfo.uuid" :title="storeInfo.storeName" v-text="storeInfo.storeName">店铺名称</nuxt-link>> </span>
- <span>了解更多</span>
- </div>
- </div>
- <div class="intro-title row">
- <h3 class="col-xs-2">
- 主营产品
- </h3>
- <nuxt-link class="col-xs-10" :to="'/store/' + storeInfo.uuid">返回店铺</nuxt-link>
- </div>
- <div class="intro-text" v-text="storeInfo.description || '暂无主营产品信息'"></div>
- <div class="intro-title row">
- <h3 class="col-xs-2">
- 应用领域
- </h3>
- </div>
- <div class="intro-text" v-text="storeInfo.storeApplication || '暂无应用领域信息'"></div>
- <div class="intro-title row">
- <h3 class="col-xs-2">
- 企业介绍
- </h3>
- </div>
- <div class="intro-text" v-text="storeInfo.enterprise.description || '暂无企业介绍信息'"></div>
- </div>
- </div>
- <div id="contact-fragment">
- <div class="container" style="margin-top: 10px;">
- <div class="contact-title">
- <h3>
- 联系我们
- </h3>
- </div>
- <div v-if="storeInfo.enterprise">
- <div class="contact-text">
- <div v-text="storeInfo.enterprise.enName || '-'"></div>
-
- <div><span class="public">电话:</span><span v-text="storeInfo.enterprise.enTel || '-'"></span></div>
- <div><span class="public">传真:</span><span v-text="storeInfo.enterprise.enFax || '-'"></span></div>
- <div><span class="public">官网地址:</span><a @click="goTarget(storeInfo.enterprise.enUrl)">{{storeInfo.enterprise.enUrl || '-'}}</a></div>
- <div v-if="storeInfo.enterprise.enPhone && storeInfo.enterprise.enPhone.length > 0"><span class="public">手机:</span><span v-text="storeInfo.enterprise.enPhone">136********</span></div>
- <div v-if="storeInfo.enterprise.enWeixin && storeInfo.enterprise.enWeixin.length > 0"><span class="public">微信:</span><span v-text="storeInfo.enterprise.enWeixin">好名字更容易让人记住你</span></div>
- <div v-if="storeInfo.enterprise.enQQ && storeInfo.enterprise.enQQ.length > 0"><span class="public">Q Q:</span><span v-text="storeInfo.enterprise.enQQ">123456789</span></div>
- </div>
- </div>
- </div>
- </div>
- <div id="proof-fragment" v-show="qualifications.length > 0">
- <div class="container" style="margin-top: 30px; margin-bottom: 60px;">
- <div class="proof-title">
- <h3>
- 资质证明
- </h3>
- </div>
- <div>
- <div class="div-proof" style="position:relative;" v-for="(qualification, index) in qualifications" :key="index">
- <div v-if="qualification.isPdf">
- <img src="/images/store/common/timg.png" alt="" style="max-width: 124px; max-height: 147px;">
- <div class="hover-show hover-shows">
- <a :href="qualification.resourceUrl" target="_blank"><i class="fa fa-search" style="margin-right: 5px;"></i>查看</a>
- </div>
- </div>
- <div v-if="!qualification.isPdf">
- <a class="img-show">
- <img :src="qualification.resourceUrl"/>
- </a>
- <div class="hover-show" @click="showImg(qualification.resourceUrl)"><i class="fa fa-search" style="margin-right: 5px;"></i>查看</div>
- </div>
- </div>
- </div>
- </div>
- </div>
-
- <div id="image-box" v-if="isShow">
- <div class="x-floating-wrap"></div>
- <div class="x-floating">
- <div id="item-content">
- <div class="x-close-wrap" @click="isShow = false"><a href="javascript:void(0);">×</a></div>
- <div class="img"><img :src="imgUrl"/></div>
- </div>
- </div>
- </div>
-
- </div>
- </template>
- <script>
- export default {
- name: 'base-info',
- data () {
- return {
- imgUrl: '',
- isShow: false
- }
- },
- computed: {
- storeInfo () {
- return this.$store.state.shop.storeInfo.store.data
- },
- qualifications () {
- let storeInfo = this.$store.state.shop.storeInfo.store.data
- let qualifications = JSON.parse(JSON.stringify(storeInfo.qualifications))
- qualifications = qualifications.filter(qualification => {
- return qualification && qualification.type === 'APTITUDE'
- })
- for (let i = 0; i < qualifications.length; i++) {
- qualifications[i].isPdf = this.baseUtils.judgeIsPdf(qualifications[i].resourceUrl)
- }
- return qualifications || []
- }
- },
- methods: {
- showImg (imgUrl) {
- this.imgUrl = imgUrl
- this.isShow = true
- },
- goTarget: function (url) {
- if (url) {
- if (this.baseUtils.startWith(url, 'http://') || this.baseUtils.startWith(url, 'https://')) {
- window.open(url)
- } else {
- window.open(`http://${url}`)
- }
- } else {
- this.$message.error('地址错误')
- }
- }
- }
- }
- </script>
- <style scoped>
- #introduction-fragment .intro-title h3 {
- font-size: 24px;
- color: rgb(50,50,50);
- }
- #introduction-fragment .intro-title a {
- font-size: 14px;
- color: rgb(33,71,151);
- margin-top: 25px;
- margin-left: -50px;
- }
- .intro-text {
- font-size: 14px;
- color: rgb(50,50,50);
- margin-top: 10px;
- line-height: 30px;
- word-break: break-all;
- text-indent:2em;
- }
- #contact-fragment .contact-title h3 {
- font-size: 24px;
- color: rgb(50,50,50);
- }
- #contact-fragment .contact-text {
- font-size: 14px;
- color: rgb(50,50,50);
- margin-top: 10px;
- line-height: 28px;
- }
- #contact-fragment .contact-text div {
- height: 25px;
- }
- #contact-fragment .contact-text .intro-text {
- height: auto;
- }
- #contact-fragment .contact-text span{
- display:inline-block;
- height: 100%
- }
- #contact-fragment .contact-text .public {
- width:80px;
- display:inline-block;
- text-align: justify;
- vertical-align:top;
- }
- #contact-fragment .contact-text .public::after{
- content:"";
- display: inline-block;
- width:100%;
- overflow:hidden;
- height:0;
- }
- #proof-fragment .proof-title {
- margin-bottom: 10px;
- }
- #proof-fragment .proof-title h3 {
- font-size: 24px;
- color: rgb(50,50,50);
- }
- #proof-fragment .div-proof {
- float: left;
- border: 1px solid #eee;
- margin-right: 47px;
- }
- #proof-fragment .div-proof:last-child{
- margin-right: 0;
- }
- #proof-fragment .div-proof a :HOVER {
- border: 1px solid #5078cb;
- }
- #proof-fragment .div-proof a.img-show :HOVER{
- border: none;
- }
- #proof-fragment .div-proof img {
- max-width: 200px;
- max-height: 200px;
- }
- .div-proof{
- width: 200px;
- height: 200px;
- overflow: hidden;
- line-height: 200px;
- text-align: center;
- }
- .div-proof a{
- display: inline-block;
- width: 100%;
- height: 100%;
- }
- .hover-show{
- position: absolute;
- width: 100%;
- height: 100%;
- top: 100%;
- left: 0;
- background: rgba(0,0,0,.5);
- z-index: 10;
- line-height: 200px;
- text-align: center;
- color: #fff;
- font-size: 14px;
- }
- .div-proof:hover .hover-show{
- top: 0;
- transition: top .3s ease-in;
- }
- .hover-show:hover{
- cursor: pointer;
- }
- .hover-shows a{
- text-decoration: none;
- color: #fff;
- }
- .hover-shows a:hover, .hover-shows a:focus, .hover-shows a:active{
- text-decoration: none;
- color: #fff;
- }
- </style>
|