IntroductionMemberIntroduction.vue 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386
  1. <template>
  2. <div>
  3. <div style="width: 100%;height: 342px;margin-top: 15px;position: relative;" class="Introductionheader">
  4. <div style="position:absolute;left:90px;top:54px;color:#fcfdfe;font-size: 30px;">
  5. {{$t('common.GEIDCOMembers')}}
  6. </div>
  7. <!-- 服务区域 -->
  8. <div style="position:absolute;left:92px;top:119px;height: 200px;">
  9. <div style="color: #eceff4;font-size: 22px;">{{$t('common.Weprovide')}}
  10. <span style="font-size: 31px;"> 8 </span>
  11. {{$t('common.membershipservicesforyou')}}
  12. </div>
  13. <div class="service">
  14. <span v-for="(item,index) in service" style="color: #eceff4;">
  15. {{$t(item.label)}}{{index==service.length-1?'':'、'}}
  16. </span>
  17. </div>
  18. <div>
  19. <el-button type="primary" @click="toView('IntroductionFundingApplication','')">{{$t('common.MembershipApplication')}}</el-button>
  20. </div>
  21. </div>
  22. </div>
  23. <div style="margin-top: 20px; padding: 0 40px;" class="continents">
  24. <div style="width: 100%;text-align: center;font-weight: 700;height: 80px;">
  25. <div style="width: 850px;height: 80px;margin: auto;border: 1px solid #ccc;">
  26. <div style="height:100px;width:80%;z-index: 2;background: #fff;margin: auto;transform: translateY(-10px);">
  27. <div style="padding-top: 24px;color: #2d568a;font-size: 20px;">{{$t('common.GEIDCOmembersarewidelydistributedon6continents')}}</div>
  28. <!-- <div style="padding-top: 10px;color: #87a0bd;font-size: 15px;">合作组织会员总数达 {{initDataList.sumCount}} 家,
  29. 遍及五大洲 {{initDataList.typeCountry?initDataList.typeCountry.length:"0"}} 个国家</div>-->
  30. <div style="padding-top: 10px;color: #87a0bd;font-size: 15px;">{{$t('common.906membersfrom')}} {{initDataList.sumCount}} {{$t('common.119countries')}}{{initDataList.typeCountry.length}}{{$t('common.Countries')}}</div>
  31. </div>
  32. </div>
  33. </div>
  34. </div>
  35. <!-- 地图区域 -->
  36. <div style="height: 410px;width:100%;margin-top: 40px;" class="map">
  37. <img src="@/assets/img/country/MAP.png" alt="" style="margin-left: 100px;">
  38. <span v-for="(item,index) in continentsWorld" @click="toView('IntroductionMemberInformation',item,item.value)"
  39. >
  40. <!-- @mouseover="mouseOver(index)" @mouseleave="mouseLeave(index)" -->
  41. <div style="position: absolute;left: 3px;top:-50px;width: 56px;height: 56px;" class="outer-tag">
  42. <img src="@/assets/img/introductionCooperation/industry/dispersed.png"
  43. alt=""
  44. style="width:100%;height: 100%;"
  45. :ref="`img${index}`"
  46. >
  47. <div class="inner-tag"></div>
  48. <div style="position: absolute;left: 50%;top: 50%;transform: translate(-50%,-50%);" :ref="`mouse${index}`">{{item.num?item.num:0}}</div>
  49. </div>
  50. <el-button> {{item.label}}</el-button>
  51. </span>
  52. </div>
  53. <div style="margin-top: 20px; padding: 0 40px;" class="continents">
  54. <div style="width: 100%;text-align: center;font-weight: 700;height: 80px;">
  55. <div style="width: 850px;height: 80px;margin: auto;border: 1px solid #ccc;">
  56. <div style="height:100px;width:80%;z-index: 2;background: #fff;margin: auto;transform: translateY(-10px);">
  57. <div style="padding-top: 12px;color: #2d568a;font-size: 20px;">{{$t('common.GEIDCOmemberscover11categories')}}</div>
  58. <div style="padding-top: 10px;color: #87a0bd;font-size: 15px;">{{$i18n.locale=='zh'?'会员结构不断丰富,从能源电力企业、装备制造企业拓展到团体组织、金融机构等,共计11个类别':'The membership structure is constantly enriched, from energy and power companies, equipment manufacturing companies to group orginations, financial institutions, etc., totaling 11 categories'}}</div>
  59. </div>
  60. </div>
  61. </div>
  62. </div>
  63. <div style="height:400px;margin-top: 20px; padding: 0px 20px 0 60px;position: relative;" class=" continents continents2">
  64. <ul style="margin-top: 50px;">
  65. <li v-for="(item,index) in continents" style="position: relative;cursor: pointer;" @click="toView('IntroductionMemberInformation',item,item.value)">
  66. <div class="texts" :style="$i18n.locale=='en'?'padding-left:30px':''" style="margin-top: 10px;">
  67. {{item.label}}
  68. </div>
  69. <div class="texts2" :style="$i18n.locale=='en'?'padding-left:20px':''">{{item.num}}</div>
  70. <div>
  71. <img :src="getIconUrl2(item.img)" alt="" style="position:absolute;left:28px;top:16px;">
  72. </div>
  73. </li>
  74. </ul>
  75. </div>
  76. </div>
  77. </template>
  78. <script>
  79. import {getDicts} from '@/api/dict'
  80. import {getnetworkData} from '@/api/baseContactsInfo'
  81. export default {
  82. name: 'IntroductionMemberIntroduction',
  83. data () {
  84. return {
  85. enterpriseDetails:'',
  86. initDataList:{},
  87. continentsWorld:[],
  88. continens:[{
  89. value:'01',
  90. img:'electricity.png',
  91. },{
  92. value:'02',
  93. img:'manufacturing.png'
  94. },{
  95. value:'03',
  96. img:'engineering.png'
  97. },{
  98. value:'04',
  99. img:'communication.png'
  100. },{
  101. value:'05',
  102. img:'consulting.png'
  103. },{
  104. value:'06',
  105. img:'scientific.png'
  106. },{
  107. value:'07',
  108. img:'financial.png'
  109. },{
  110. value:'08',
  111. img:'group.png'
  112. },{
  113. value:'09',
  114. img:'University.png'
  115. },{
  116. value:'10',
  117. img:'Media.png'
  118. },{
  119. value:'11',
  120. img:'Personal.png'
  121. }],
  122. continents:[],
  123. service:[{
  124. label:'common.InformationService',
  125. value:''
  126. },{
  127. label:'common.PublicityService',
  128. value:''
  129. },{
  130. label:'common.ExchangeatConferences',
  131. value:''
  132. },{
  133. label:'common.TrainingandSeminars',
  134. value:''
  135. },{
  136. label:'common.ResourceSharing',
  137. value:''
  138. },{
  139. label:'common.BusinessDevelopment',
  140. value:''
  141. },{
  142. label:'common.ProfessionalAlliancesactivities',
  143. value:''
  144. },{
  145. label:'common.CustomizedService',
  146. value:''
  147. }]
  148. }
  149. },
  150. created(){
  151. this.enterpriseDetails=this.$route.params.key;
  152. },
  153. mounted(){
  154. this.getInitData();
  155. },
  156. watch:{
  157. '$i18n.locale'(){
  158. this.getInitData();
  159. }
  160. },
  161. methods:{
  162. getInitData(){
  163. getDicts(this.$i18n.locale=='zh'?'INDUSTRY_DICTS':'INDUSTRY_DICTS_EN').then(res=>{
  164. this.continens.forEach(element => {
  165. res.data[0].forEach(i=>{
  166. if(element.value==i.value){
  167. element.label=i.label;
  168. element.dictTypeId=i.dictTypeId
  169. element.id=i.id
  170. }
  171. })
  172. });
  173. this.continents=this.continens
  174. this.continents.forEach(item=>{
  175. item.num=0;
  176. })
  177. });
  178. getDicts(this.$i18n.locale=='zh'?'CONTINENT_CODE_DICT':'CONTINENT_CODE_DICT_EN').then(res=>{
  179. this.continentsWorld=res.data[0];
  180. this.continentsWorld.forEach((i,j)=>{
  181. if(this.$i18n.locale!='zh'){
  182. if(i.label == 'NorthAmerica')
  183. {
  184. this.continentsWorld[j].label='North America';
  185. }else if(i.label == 'SouthAmerica'){
  186. this.continentsWorld[j].label='South America';
  187. }
  188. }
  189. })
  190. });
  191. this.getNteList()
  192. },
  193. // 获取会员数据
  194. getNteList(){
  195. getnetworkData().then(res=>{
  196. this.initDataList=res.data;
  197. // 大洲数据
  198. res.data.typeContinent.forEach((element,index)=>{
  199. this.continentsWorld.forEach((i,j)=>{
  200. if(element.continent_dict==i.value){
  201. i.num=element.count
  202. }
  203. })
  204. });
  205. // 企业数据
  206. res.data.typeIndustry.forEach((element,index)=>{
  207. this.continents.forEach((i,j)=>{
  208. if(element.industry_dict==i.value){
  209. // debugger;
  210. i.num=element.count;
  211. }
  212. })
  213. });
  214. this.$forceUpdate();
  215. });
  216. },
  217. getIconUrl(url){
  218. return require("@/assets/img/introductionCooperation/"+url);
  219. },
  220. getIconUrl2(url){
  221. return require("@/assets/img/introductionCooperation/industry/"+url);
  222. },
  223. toView(router,json,type){
  224. console.log(router,'------------------------------跳转会员展示的')
  225. console.log(json,'------------------------------跳转会员展示的')
  226. console.log(type,'------------------------------跳转会员展示的')
  227. this.$router.push({name:router,params:{id:json,type:type}})
  228. },
  229. screenBack(data){
  230. console.log(data,'screenBackscreenBackscreenBackscreenBack')
  231. },
  232. screen(i){
  233. this.index=i
  234. },
  235. mouseOver(index){
  236. this.$refs[`img${index}`][0].style.display='block';
  237. this.$refs[`mouse${index}`][0].style.display='block';
  238. },
  239. mouseLeave(index){
  240. this.$refs[`img${index}`][0].style.display='none';
  241. this.$refs[`mouse${index}`][0].style.display='none';
  242. }
  243. }
  244. }
  245. </script>
  246. <!-- Add "scoped" attribute to limit CSS to this component only -->
  247. <style scoped>
  248. .box {
  249. margin-top: 10px;
  250. background: #fff;
  251. /* height: 500px; */
  252. padding: 20px 0;
  253. }
  254. .crumbs {
  255. margin-left: 20px;
  256. }
  257. body {
  258. margin: 0;
  259. }
  260. .continents ul {
  261. text-align: top;
  262. height: 100px;
  263. justify-content:space-between;
  264. flex-wrap:wrap;
  265. }
  266. .service {
  267. margin-top: 20px;
  268. text-align: left;
  269. height: 90px;
  270. }
  271. .service span {
  272. /* width: 20%; */
  273. float: left;
  274. font-size: 15px;
  275. line-height: 30px;
  276. }
  277. /* .continents ul li {
  278. width: 190px;
  279. border-right: 1px solid #bcbcbc;
  280. } */
  281. .continents ul li .texts {
  282. width: 100%;
  283. text-align: center;
  284. font-size: 15px;
  285. color: rgb(45, 86, 138);
  286. font-weight: 700;
  287. }
  288. .texts2 {
  289. font-size: 25px;
  290. color: #368ee5;
  291. font-weight: 700;
  292. width: 100%;
  293. text-align: center;
  294. margin-top: 20px;
  295. }
  296. .continents ul li:nth-child(6){
  297. border: 0;
  298. }
  299. .continents2 ul li {
  300. float: left;
  301. height: 100px;
  302. width: 24%;
  303. border: 0;
  304. border: 1px solid transparent;
  305. }
  306. .continents2 ul li:hover {
  307. border:1px solid #e36844;
  308. transition: all 0.2s;
  309. }
  310. .Introductionheader {
  311. background: url('../../assets/img/introductionCooperation/earth.png') no-repeat;
  312. background-size: 100% 100%;
  313. }
  314. .map {
  315. position: relative;
  316. color: #406c85;
  317. font-weight: 600;
  318. }
  319. .map span{
  320. cursor: pointer;
  321. }
  322. .map span:nth-of-type(1){
  323. position: absolute;right: 280px;top: 71px;
  324. }
  325. .map span:nth-of-type(2){
  326. position: absolute;right: 545px;top:198px;
  327. }
  328. .map span:nth-of-type(3){
  329. position: absolute;right: 485px;;top: 71px;
  330. }
  331. .map span:nth-of-type(4){
  332. position: absolute;left: 246px;top:87px;
  333. }
  334. .map span:nth-of-type(5){
  335. position: absolute;left: 329px;top:240px;
  336. }
  337. .map span:nth-of-type(6){
  338. position: absolute;right: 181px;top:268px;
  339. }
  340. .map span:hover {
  341. color: #368ee5;
  342. }
  343. .map span >>>.el-button {
  344. background: transparent ;
  345. border: none;
  346. }
  347. .my-tooltip {
  348. border-radius: 50px;
  349. background-color: rgba(106, 237, 247, .7);
  350. border: none;
  351. padding: 15px;
  352. color: #fff;
  353. font-size: 16px;
  354. }
  355. .outer-tag{
  356. }
  357. .inner-tag{
  358. width: 20px;
  359. height: 20px;
  360. background: #fff;
  361. border-radius: 50%;
  362. position: absolute;
  363. left: 50%;
  364. top: 50%;
  365. transform: translate(-50%,-50%);
  366. transition: all .5s;
  367. }
  368. .outer-tag:hover .inner-tag{
  369. width: 80px;
  370. height: 80px;
  371. opacity: 0;
  372. }
  373. </style>