IntroductionCustomizationDetails.vue 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441
  1. <template>
  2. <div>
  3. <div class="autoBox box">
  4. <div class="crumbs" style="height: 30px;">
  5. <el-breadcrumb separator="/" style="float: left;margin: 0 15px ">
  6. <el-breadcrumb-item :to="{ path: 'home' }">{{$t('common.Home')}}</el-breadcrumb-item>
  7. <el-breadcrumb-item :to="{ path: 'IntroductionMemberProfile' }">{{$t('common.CooperationNetwork')}}</el-breadcrumb-item>
  8. <el-breadcrumb-item :to="{ path: 'IntroductionMemberProfile?key=custom' }">{{$t('common.CustomizedService')}}</el-breadcrumb-item>
  9. <el-breadcrumb-item>{{enterprise.unitName}}</el-breadcrumb-item>
  10. </el-breadcrumb>
  11. <el-breadcrumb separator="/" style="float: right;margin:0px 15px 0 0" >
  12. <span class="cursor screen2"
  13. @click="realTimeInfoScreen(item,item.value)" v-for="(item,index) in realTimeInfoScreens4">
  14. &nbsp;&nbsp;{{$t(item.lable)}} &nbsp;&nbsp; <span v-if="(index+1)!==realTimeInfoScreens4.length">/</span>
  15. </span>
  16. </el-breadcrumb>
  17. </div>
  18. <div style="width: 100%;position: relative;background: #fff;">
  19. <div style="width:100%;height:320px;padding:10px 0">
  20. <!-- <img :src="'/api/file/pub/' + serviceContent.pictureUrl" alt="" style="height: 20px;vertical-align: middle;"> -->
  21. <img v-if="serviceContent.pictureUrl" :src="'/api/file/pub/' + serviceContent.pictureUrl" alt="" style="height:100%;width:100%;">
  22. </div>
  23. <div>
  24. <div style="width: 100%; font-size: 15px;color: #95949c;">
  25. <div style="color:#666666;font-size: 28px;font-weight: 700;margin: 20px;">
  26. {{enterprise.unitName}}
  27. </div>
  28. <!-- 单位简介 -->
  29. <div style="height: 50px;line-height: 50px;">
  30. <img src="@/assets/img/cooperationExchange/20200608_03.gif" alt="" style="height: 20px;vertical-align: middle;">
  31. <span style="color: #666666;font-weight: 700;margin-left: 5px;font-size: 18px;">{{$t('common.UnitIntroduction')}}</span>
  32. </div>
  33. <div style="font-size: 16px;line-height: 28px; text-indent:2em;color: #666666;padding:0 10px">
  34. <p v-html="enterprise.unitIntrodution"></p>
  35. </div>
  36. </div>
  37. </div>
  38. <!-- 服务内容 -->
  39. <div>
  40. <div class="enterprise_style">
  41. <img src="@/assets/img/cooperationExchange/20200608_03.gif" alt="" style="height: 20px;vertical-align: middle;">
  42. <span style="color: #666666;font-weight: 700;margin-left: 5px;font-size: 18px;">{{$t('common.ServiceContent')}}</span>
  43. </div>
  44. <div style="line-height: 28px;text-align: center;" v-html="serviceContent.contentHtml"></div>
  45. <!-- <div style="width: 1200px;padding:20px">
  46. <div style="width: 100%;height: 300px;">
  47. <div class="DetImg">
  48. <div class="imgcontent">
  49. <img src="@/assets/img/introductionCooperation/AllianceActivities.png" alt="" style="width:30%;height:140px;float:left;">
  50. <img src="@/assets/img/introductionCooperation/AllianceActivities.png" alt="" style="width:30%;height:140px;float:left;">
  51. <img src="@/assets/img/introductionCooperation/AllianceActivities.png" alt="" style="width:30%;height:140px;float:left;">
  52. </div>
  53. <div class="imgcontent" style="margin-top: 20px;">
  54. <img src="@/assets/img/introductionCooperation/AllianceActivities.png" alt="" style="width:30%;height:140px;float:left;">
  55. <img src="@/assets/img/introductionCooperation/AllianceActivities.png" alt="" style="width:30%;height:140px;float:left;">
  56. <img src="@/assets/img/introductionCooperation/AllianceActivities.png" alt="" style="width:30%;height:140px;float:left;">
  57. </div>
  58. </div>
  59. <div class="Detcontent">
  60. 2019年11月,在2019全球能源互联网暨中-非能源电力大会期间,组织近200位重要非洲嘉宾参观调研三峡电站;在北京国家会议中心为三峡集团提供展位,
  61. 安排企业品牌宣传活动,促成与多位非洲国家部长、电力公司负责人对接洽谈,并达成初步合作意向.
  62. </div>
  63. </div>
  64. </div>
  65. <div style="width: 1200px;padding:20px">
  66. <div class="Detcontent">
  67. 2019年11月,在2019全球能源互联网暨中-非能源电力大会期间,组织近200位重要非洲嘉宾参观调研三峡电站;在北京国家会议中心为三峡集团提供展位,
  68. 安排企业品牌宣传活动,促成与多位非洲国家部长、电力公司负责人对接洽谈,并达成初步合作意向.
  69. </div>
  70. <div style="width: 100%;height: 300px;">
  71. <div class="DetImg">
  72. <div class="imgcontent">
  73. <img src="@/assets/img/introductionCooperation/AllianceActivities.png" alt="" style="width:49%;height:140px;float:left;">
  74. <img src="@/assets/img/introductionCooperation/AllianceActivities.png" alt="" style="width:49%;height:140px;float:left;">
  75. </div>
  76. <div class="imgcontent" style="margin-top: 20px;">
  77. <img src="@/assets/img/introductionCooperation/AllianceActivities.png" alt="" style="width:30%;height:140px;float:left;">
  78. <img src="@/assets/img/introductionCooperation/AllianceActivities.png" alt="" style="width:69%;height:140px;float:left;">
  79. </div>
  80. </div>
  81. </div>
  82. </div> -->
  83. </div>
  84. </div>
  85. </div>
  86. </div>
  87. </template>
  88. <script>
  89. import Base from "@/views/base/Base";
  90. import { Swiper, SwiperSlide, directive } from 'vue-awesome-swiper'
  91. import 'vue-awesome-swiper/node_modules/swiper/dist/css/swiper.css'
  92. import Clipboard from "clipboard";
  93. import {getInformationList} from "@/api/cooperation/baseCooperationUnit";
  94. import {getViewByEntityId} from "../../api/baseUnitView";
  95. import { formatDate } from '@/utils/formatUtils'
  96. import {getCoopCustomServices} from '@/api/cooperation/coopCustomService'
  97. export default {
  98. name: 'IntroductionCustomizationDetails',
  99. extends: Base,
  100. data () {
  101. return {
  102. baseEntityId:'',
  103. enterpriseDetails:'',
  104. enterprise:{},
  105. textarea: '',
  106. url:'',
  107. svrHeight:0,
  108. img:[{
  109. src:'u6668.png',
  110. },{
  111. src:'u6676.png',
  112. },{
  113. src:'u6720.png',
  114. },{
  115. src:'u6763.png',
  116. },{
  117. src:'u6668.png',
  118. }],
  119. realTimeInfoScreens4:[{
  120. lable:"common.MemberIntroduction",
  121. value:'member'
  122. },{
  123. lable:"common.AllianceIntroduction",
  124. value:'union'
  125. },{
  126. lable:"common.CooperativeUnitIntroduction",
  127. value:'cooperation'
  128. }],
  129. initData:[{
  130. label:'日本大型海上风电项目',
  131. place:'日本 神奈川市',
  132. money:'海上风电 | 跨国 | 咨询',
  133. time:'332人关注 /两个月前发布',
  134. information01:'35',
  135. information02:'102',
  136. information03:'56',
  137. share:'y',
  138. information:'产品信息 (35) 核心技术 (102) 项目业绩 (56)',
  139. sketch:'经营范围包括三峡工程建设和经营管理,住宿经营的管理;长江中上游水资源开发;水利水电技术服务;水利水电工程所需物资、设备的销售(国家有专营专项的除外);与上述业务有关的咨询服务;经营或代理公司所属企业自产产品(国家组织统一联合经营的16种出口商品除外)的出口业务;经营或代理公司及所属产业所需设备和材料(国家指定公司经营的12种进口商品除外)的进口业务;经营或代理技术进出口业务;承办中外合资经营、合作生产、来料加工、来样加工、来件装配、补偿贸易及易货贸易业务。(企业'
  140. }],
  141. recommend:[{
  142. img:'u6029.png',
  143. num:'2934'
  144. },{
  145. img:'u6029.png',
  146. num:'2934'
  147. },{
  148. img:'u6029.png',
  149. num:'2934'
  150. },{
  151. img:'u6029.png',
  152. num:'2934'
  153. }],
  154. serviceContent:{},
  155. customServiceId:this.$route.query.key,
  156. customService:{},
  157. // imgdata1:[
  158. // {
  159. // w:'100px',
  160. // h:'100px',
  161. // b:'red'
  162. // }
  163. // ],
  164. }
  165. },
  166. created(){
  167. this.url=window.location.href
  168. },
  169. mounted(){
  170. this.initDataList();
  171. this.Swiper();
  172. this.getsvrHeight();
  173. },
  174. computed:{
  175. content() {
  176. return function (str) {
  177. return str.replace(/<[^>]+>/g, "")
  178. }
  179. }
  180. },
  181. watch:{
  182. '$i18n.locale'(){
  183. this.initDataList();
  184. }
  185. },
  186. methods:{
  187. getsvrHeight(){
  188. let svrBox = document.getElementById('serviceContent');
  189. let svrContent = document.querySelectorAll('#serviceContent div');
  190. let ListHeight='';
  191. let AllListHeight = [];
  192. for(let i=0;i<svrContent.length;i++){
  193. let ListHeight = svrContent[i].clientHeight;
  194. if(i<4){
  195. this.svrHeight +=ListHeight;
  196. }
  197. AllListHeight.push(ListHeight)
  198. }
  199. },
  200. realTimeInfoScreen(i,index){
  201. this.toView('IntroductionMemberProfile',index);
  202. },
  203. initDataList:function(){
  204. getCoopCustomServices({id:this.customServiceId}).then(result=>{
  205. var data = result.data;
  206. if(data){
  207. this.customService = data.coopCustomServices[0]||{};
  208. this.baseEntityId = this.customService.unitId;
  209. let language = this.$i18n.locale.toUpperCase();
  210. getViewByEntityId(this.baseEntityId,language).then(res=>{
  211. const data = res.data ;
  212. if(data){
  213. this.enterprise = data[0] ;
  214. this.enterprise.setUpDate = formatDate(this.initData.setUpDate,'YYYY-MM-DD')
  215. }
  216. })
  217. var params={
  218. language: this.$i18n.locale.toUpperCase(),
  219. businessType:"custom_service",
  220. businessId: this.customService.id
  221. }
  222. getInformationList(params).then((res) => {
  223. if(res.data){
  224. this.serviceContent = res.data.allDataList[0]||{};
  225. }
  226. });
  227. }
  228. })
  229. },
  230. copy: function() {
  231. var _this = this;
  232. var clipboard = new Clipboard(".btn");
  233. clipboard.on("success", e => {
  234. // 释放内存
  235. this.$message({
  236. message: '复制项目已成功',
  237. type: 'success'
  238. });
  239. clipboard.destroy();
  240. });
  241. clipboard.on("error", e => {
  242. // 不支持复制
  243. this.$message({
  244. message: "该浏览器不支持自动复制",
  245. type: "warning"
  246. });
  247. // 释放内存
  248. clipboard.destroy();
  249. });
  250. },   
  251. Swiper(){
  252. var galleryThumbs = new Swiper('.gallery-thumbs', {
  253. spaceBetween: 10,
  254. slidesPerView: 4,
  255. freeMode: true,
  256. watchSlidesVisibility: true,
  257. watchSlidesProgress: true,
  258. });
  259. var galleryTop = new Swiper('.gallery-top', {
  260. spaceBetween: 10,
  261. navigation: {
  262. nextEl: '.swiper-button-next',
  263. prevEl: '.swiper-button-prev',
  264. },
  265. thumbs: {
  266. swiper: galleryThumbs
  267. }
  268. });
  269. },
  270. // 项目收藏改变
  271. shareChange(){
  272. if(this.initData[0].share=='y'){
  273. this.initData[0].share='n'
  274. }else {
  275. this.initData[0].share='y'
  276. }
  277. },
  278. getIconUrl(url){
  279. return require("@/assets/img/realTimeInfo/"+url);
  280. },
  281. toView(router,json){
  282. this.$router.push({name:router,query:{key:json}})
  283. },
  284. screenBack(data){
  285. console.log(data,'screenBackscreenBackscreenBackscreenBack')
  286. },
  287. screen(i){
  288. this.index=i
  289. }
  290. }
  291. }
  292. </script>
  293. <style scoped>
  294. .box {
  295. margin-top: 10px;
  296. padding: 0px 0;
  297. }
  298. .crumbs {
  299. margin-left: 20px;
  300. }
  301. .el-breadcrumb {
  302. height: 30px;
  303. line-height: 30px;
  304. }
  305. body {
  306. margin: 0;
  307. }
  308. .swipers {
  309. position: absolute;
  310. top: 30px;
  311. left: 30px;
  312. width: 550px;
  313. height: 439px;
  314. }
  315. .swiper-container {
  316. width: 100%;
  317. height: 300px;
  318. margin-left: auto;
  319. margin-right: auto;
  320. }
  321. .swiper-slide {
  322. background-size: cover;
  323. background-position: center;
  324. }
  325. .gallery-top {
  326. height: 80%;
  327. width: 100%;
  328. }
  329. .gallery-thumbs {
  330. height: 20%;
  331. box-sizing: border-box;
  332. padding: 10px 0;
  333. }
  334. .gallery-thumbs .swiper-slide {
  335. width: 25%;
  336. height: 100%;
  337. opacity: 0.4;
  338. }
  339. .gallery-thumbs .swiper-slide-thumb-active {
  340. opacity: 1;
  341. }
  342. .initData_label {
  343. color: #6c8c9d;
  344. font-weight: 700;
  345. font-size: 18px;
  346. line-height: 42px;
  347. }
  348. .enterprise_style{
  349. line-height: 50px;
  350. color: #6C819D;
  351. font-size: 15px;
  352. font-weight: 700;
  353. margin-top: 5px;
  354. }
  355. .enterprise_style_span {
  356. display: block;
  357. width: 82px;
  358. text-align: center;
  359. height: 100%;
  360. border-bottom: 2px solid #6699ff;
  361. }
  362. .enterprise_style_product tr {
  363. line-height: 30px;
  364. width: 100%;
  365. display: inline-block;
  366. border-bottom: 1px dashed #ccc;
  367. font-size: 14px;
  368. color: #6C819D;
  369. margin-bottom: 5px;
  370. }
  371. .recommend,.recommend2 {
  372. margin-top:15px;
  373. margin-left: 30px;
  374. }
  375. .recommend2 ul {
  376. display: flex;
  377. display: -webkit-flex;
  378. justify-content:space-between;
  379. flex-wrap:wrap;
  380. }
  381. .recommend li{
  382. display: inline-block;
  383. width: 170px;
  384. text-align: center;
  385. margin-right: 15px;
  386. }
  387. .recommend2 li {
  388. display: inline-block;
  389. text-align: center;
  390. margin-right: 15px;
  391. }
  392. .share:hover {
  393. color: #66b1ff;
  394. }
  395. .Detcontent{
  396. width: 35%;
  397. height: 270px;
  398. float: left;
  399. color: rgb(149, 148, 156);
  400. font-size: 15px;
  401. padding: 15px;
  402. text-indent: 2em;
  403. vertical-align: middle;
  404. }
  405. .DetImg{
  406. width: 60%;
  407. float: left;
  408. height: 300px;
  409. }
  410. .imgcontent{
  411. width: 100%;
  412. height: 140px;
  413. display: flex;
  414. justify-content: space-between;
  415. }
  416. .aaa{
  417. width: 100%;
  418. height: 140px;
  419. background-color: red;
  420. }
  421. </style>