memberIntroduction.vue 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576
  1. <template>
  2. <view class="memberIntroduction">
  3. <view class="header-intro">
  4. <view class="bgcImg">
  5. <view class="title">{{$t('common.Provide')}}8{{$t('common.membershipservicesforyou')}}</view>
  6. <view class="wrap">
  7. <u-row gutter="0" style="margin: 0 10upx;">
  8. <u-col span="3" v-for="(item,index) in service" :key="index" style="text-align: center;">
  9. <text class="text" style="font-size: 24upx;">
  10. {{ $t(item.label) }}
  11. </text>
  12. </u-col>
  13. </u-row>
  14. </view>
  15. </view>
  16. </view>
  17. <view class="number">
  18. <view class="num-tab">
  19. <view class="tab">
  20. <view class="tabItem" :class="tabFlag === true ? 'tabActive' : ''" @tap="tabFlag = true">
  21. <text>{{ $t('common.MemberTotal') }}</text>
  22. <text class="numColor">{{ initDataList.sumCount }}</text>
  23. </view>
  24. </view>
  25. <view class="tab">
  26. <view class="tabItem" :class="tabFlag === false ? 'tabActive' : ''" @tap="tabFlag = false">
  27. <text>{{ $t('common.Category') }}</text>
  28. <text class="numColor">11</text>
  29. </view>
  30. </view>
  31. </view>
  32. <view class="num-cont">
  33. <view class="mapBox" v-show="tabFlag">
  34. <view class="tips">
  35. {{ $t('common.GEIDCOmembersarewidelydistributedon6continents') }},
  36. {{ countryNum }}{{ $t('common.Countries') }}
  37. </view>
  38. <view class="mapImgBox">
  39. <view class="mapImg">
  40. <view class="mapItem" v-for="(item,index) in continentsWorld" @tap="toView(item)"
  41. :key="index">
  42. <view class="quan">{{ item.num ? item.num : 0 }}</view>
  43. <text class="name">{{ item.label }}</text>
  44. </view>
  45. </view>
  46. </view>
  47. </view>
  48. <view class="type" v-show="!tabFlag">
  49. <u-row gutter="16">
  50. <u-col span="4" v-for="(item,index) in continents" @tap="toType(item)" :key="index">
  51. <view class="numItem">
  52. <view class="typeName" :style="{height: $i18n.locale=='zh'?'60upx':'100upx'}">
  53. {{ item.label }}
  54. </view>
  55. <view class="typeNum">
  56. <image class="typeImg" :src="getIconUrl2(item.img)" mode=""></image>
  57. <text class="num">{{ item.num }}</text>
  58. </view>
  59. </view>
  60. </u-col>
  61. </u-row>
  62. </view>
  63. </view>
  64. </view>
  65. <view class="exhibition-box">
  66. <view class="exhibition">
  67. <text class="title">{{$t('common.MemberUnitDisplay')}}</text>
  68. <view class="more" @tap="toMore">
  69. <text class="vert">{{$t('common.More')}}</text>
  70. <uni-icons class="vert" type="arrowright" color="#1777FE" size="16" />
  71. </view>
  72. </view>
  73. <view class="logo-img">
  74. <u-row gutter="20">
  75. <u-col span="4" v-for="(k,i) in logoMap" :key="i">
  76. <view class="logoBox">
  77. <image class="logoImg" v-if="k" :src="websiteUrl + k" mode=""></image>
  78. <image class="logoImg" v-else :src="websiteUrl + '/def/def1.png'" mode=""></image>
  79. </view>
  80. </u-col>
  81. </u-row>
  82. </view>
  83. </view>
  84. <view class="memberBtn">
  85. <u-button type="primary" shape="circle" @click="toMemberApply" style="height:88upx;">
  86. {{$t('common.MembershipApplication')}}
  87. </u-button>
  88. </view>
  89. </view>
  90. </template>
  91. <script>
  92. export default {
  93. data() {
  94. return {
  95. tabFlag: true,
  96. initDataList: {},
  97. countryNum: '',
  98. continentsWorld: [],
  99. continents: [],
  100. logoMap: {},
  101. continens: [{
  102. value: '01',
  103. img: 'tt.png'
  104. }, {
  105. value: '02',
  106. img: 'ky.png'
  107. }, {
  108. value: '03',
  109. img: 'gd.png'
  110. }, {
  111. value: '04',
  112. img: 'ny.png'
  113. }, {
  114. value: '05',
  115. img: 'zb.png'
  116. }, {
  117. value: '06',
  118. img: 'gc.png'
  119. }, {
  120. value: '07',
  121. img: 'jr.png'
  122. }, {
  123. value: '08',
  124. img: 'zx.png'
  125. }, {
  126. value: '09',
  127. img: 'xt.png'
  128. }, {
  129. value: '10',
  130. img: 'cm.png'
  131. }, {
  132. value: '11',
  133. img: 'wl.png'
  134. }],
  135. service: [{
  136. label: 'common.InformationService',
  137. value: ''
  138. }, {
  139. label: 'common.PublicityService',
  140. value: ''
  141. }, {
  142. label: 'common.ExchangeatConferences',
  143. value: ''
  144. }, {
  145. label: 'common.TrainingandSeminars',
  146. value: ''
  147. }, {
  148. label: 'common.ResourceSharingService',
  149. value: ''
  150. }, {
  151. label: 'common.BusinessDevelopment',
  152. value: ''
  153. }, {
  154. label: 'common.CustomizedService',
  155. value: ''
  156. }, {
  157. label: 'common.ProfessionalAlliancesactivities',
  158. value: ''
  159. }]
  160. }
  161. },
  162. mounted() {
  163. this.getInitData();
  164. this.getMemberLogo();
  165. },
  166. methods: {
  167. async getInitData() {
  168. const result = await this.$myRequest({
  169. url: '/sys/sysDicts',
  170. data: {
  171. type: this.$i18n.locale == 'zh' ? 'INDUSTRY_DICTS' : 'INDUSTRY_DICTS_EN'
  172. }
  173. });
  174. // console.log(result);
  175. this.continens.forEach(element => {
  176. result.data[0].forEach(i => {
  177. if (element.value == i.value) {
  178. element.label = i.label;
  179. element.dictTypeId = i.dictTypeId;
  180. element.id = i.id;
  181. }
  182. })
  183. });
  184. this.continents = this.continens;
  185. this.continents.forEach(item => {
  186. item.num = 0;
  187. });
  188. // console.log(this.continents);
  189. const res = await this.$myRequest({
  190. url: '/sys/sysDicts',
  191. data: {
  192. type: this.$i18n.locale == 'zh' ? 'CONTINENT_CODE_DICT' : 'CONTINENT_CODE_DICT_EN'
  193. }
  194. });
  195. // console.log(res);
  196. this.continentsWorld = res.data[0];
  197. this.continentsWorld.forEach((i, j) => {
  198. if (this.$i18n.locale != 'zh') {
  199. if (i.label == 'NorthAmerica') {
  200. this.continentsWorld[j].label = 'North America';
  201. } else if (i.label == 'SouthAmerica') {
  202. this.continentsWorld[j].label = 'South America';
  203. }
  204. }
  205. });
  206. this.getNteList();
  207. },
  208. async getNteList() {
  209. const res = await this.$myRequest({
  210. url: '/personnel/baseMemberInfos/showMemeberNumber',
  211. });
  212. // console.log(res);
  213. this.initDataList = res.data;
  214. this.countryNum = res.data.typeCountry.length;
  215. // 大洲数据
  216. res.data.typeContinent.forEach((element, index) => {
  217. this.continentsWorld.forEach((i, j) => {
  218. if (element.continent_dict == i.value) {
  219. i.num = element.count;
  220. }
  221. })
  222. });
  223. // 企业数据
  224. res.data.typeIndustry.forEach((element, index) => {
  225. this.continents.forEach((i, j) => {
  226. if (element.industry_dict == i.value) {
  227. i.num = element.count;
  228. }
  229. })
  230. });
  231. this.$forceUpdate();
  232. },
  233. async getMemberLogo() { //会员单位展示
  234. const res = await this.$myRequest({
  235. url: '/personnel/baseMemberInfos/searchByTypeAppForLogo',
  236. data: {
  237. language: this.$i18n.locale.toUpperCase()
  238. }
  239. });
  240. this.logoMap = res.data.logoMap;
  241. },
  242. getIconUrl2(url) {
  243. return require("@/static/img/cooperationNetwork/type/" + url);
  244. },
  245. toView(obj) {
  246. uni.navigateTo({
  247. url: './memberInformation?obj=' + encodeURIComponent(JSON.stringify(obj))
  248. });
  249. },
  250. toType(item) {
  251. uni.navigateTo({
  252. url: './memberInformation?item=' + encodeURIComponent(JSON.stringify(item))
  253. });
  254. },
  255. toMore() {
  256. uni.navigateTo({
  257. url: './memberInformation'
  258. })
  259. },
  260. toMemberApply() {
  261. let user = uni.getStorageSync('user');
  262. let token = uni.getStorageSync('Auth-Token');
  263. if (user && token) {
  264. uni.navigateTo({
  265. url: '/pages/service/membership/index'
  266. })
  267. } else {
  268. uni.navigateTo({
  269. url: '/pages/public/login'
  270. })
  271. }
  272. }
  273. }
  274. }
  275. </script>
  276. <style lang="scss" scoped>
  277. @keyframes scaleDraw {
  278. from {
  279. transform: translateX(-50%) scale(0.8);
  280. }
  281. to {
  282. transform: translateX(-50%) scale(1.2);
  283. }
  284. }
  285. .memberIntroduction {
  286. padding-bottom: 140upx;
  287. .header-intro {
  288. padding: 20upx 30upx;
  289. background-color: #FFFFFF;
  290. .bgcImg {
  291. width: 100%;
  292. background: url(../../../static/img/cooperationNetwork/earth.png) no-repeat;
  293. background-size: 100% 100%;
  294. color: #FFFFFF;
  295. padding: 110upx 40rpx;
  296. box-sizing: border-box;
  297. .title {
  298. font-size: 34upx;
  299. margin-bottom: 36upx;
  300. text-align: center;
  301. }
  302. .wrap {
  303. .text {
  304. font-size: 26upx;
  305. color: rgba(251, 251, 251, .6);
  306. }
  307. }
  308. }
  309. }
  310. .number {
  311. margin-top: 20upx;
  312. background-color: #FFFFFF;
  313. .num-tab {
  314. display: flex;
  315. justify-content: space-between;
  316. border-bottom: 1px solid #E1E1E1;
  317. background-color: #FFFFFF;
  318. .tab {
  319. width: 50%;
  320. font-size: 28upx;
  321. color: #333333;
  322. text-align: center;
  323. .tabItem {
  324. padding: 16upx 0;
  325. font-size: 28upx;
  326. }
  327. .numColor {
  328. margin-left: 5upx;
  329. }
  330. }
  331. .tabActive {
  332. width: 100%;
  333. display: inline-block;
  334. border-bottom: 2px solid #2979ff;
  335. color: #2979ff;
  336. font-weight: 700;
  337. }
  338. }
  339. .num-cont {
  340. .mapBox {
  341. .tips {
  342. font-size: 26upx;
  343. padding: 20upx 30upx;
  344. }
  345. .mapImgBox {
  346. padding-bottom: 20upx;
  347. }
  348. .mapImg {
  349. width: 100%;
  350. height: 416upx;
  351. background: url(../../../static/img/cooperationNetwork/map.png) no-repeat;
  352. background-size: 100% 100%;
  353. position: relative;
  354. .mapItem {
  355. text-align: center;
  356. position: absolute;
  357. &:nth-child(4) {
  358. left: 15%;
  359. top: 100upx;
  360. }
  361. &:nth-child(5) {
  362. left: 22%;
  363. bottom: 52upx;
  364. }
  365. &:nth-child(3) {
  366. left: 50%;
  367. top: 60upx;
  368. }
  369. &:nth-child(2) {
  370. left: 48%;
  371. bottom: 90upx;
  372. }
  373. &:first-child {
  374. right: 23%;
  375. top: 120upx;
  376. }
  377. &:nth-child(6) {
  378. right: 13%;
  379. bottom: 56upx;
  380. }
  381. .quan {
  382. width: 60upx;
  383. height: 60upx;
  384. line-height: 60upx;
  385. text-align: center;
  386. color: #0092CD;
  387. font-size: 28upx;
  388. background: url(../../../static/img/cooperationNetwork/quan.png) no-repeat;
  389. background-size: 100% 100%;
  390. margin-left: 50%;
  391. animation: scaleDraw linear infinite 2s;
  392. }
  393. .name {
  394. color: #000000;
  395. font-weight: 700;
  396. font-size: 18upx;
  397. }
  398. }
  399. }
  400. }
  401. .type {
  402. padding: 20upx 30upx 0;
  403. margin: 0 -8upx;
  404. .u-col:first-child .typeName {
  405. background-color: rgba(102, 175, 255, 0.1);
  406. }
  407. .u-col:nth-child(2) .typeName {
  408. background-color: rgba(250, 100, 0, 0.1);
  409. }
  410. .u-col:nth-child(3) .typeName {
  411. background-color: rgba(98, 54, 255, 0.1);
  412. }
  413. .u-col:nth-child(4) .typeName {
  414. background-color: rgba(247, 181, 0, 0.1);
  415. }
  416. .u-col:nth-child(5) .typeName {
  417. background-color: rgba(109, 212, 0, 0.1);
  418. }
  419. .u-col:nth-child(6) .typeName {
  420. background-color: rgba(247, 181, 0, 0.1);
  421. }
  422. .u-col:nth-child(7) .typeName {
  423. background-color: rgba(68, 215, 182, 0.1);
  424. }
  425. .u-col:nth-child(8) .typeName {
  426. background-color: rgba(250, 100, 0, 0.1);
  427. }
  428. .u-col:nth-child(9) .typeName {
  429. background-color: rgba(98, 54, 255, 0.1);
  430. }
  431. .u-col:nth-child(10) .typeName {
  432. background-color: rgba(109, 212, 0, 0.1);
  433. }
  434. .u-col:nth-child(11) .typeName {
  435. background-color: rgba(250, 113, 22, 0.1);
  436. }
  437. .numItem {
  438. font-size: 32upx;
  439. margin-bottom: 33upx;
  440. .typeName {
  441. padding: 10upx 0;
  442. color: #333333;
  443. display: flex;
  444. align-items: center;
  445. justify-content: center;
  446. margin-bottom: 6upx;
  447. text-align: center;
  448. }
  449. .typeNum {
  450. display: flex;
  451. align-items: center;
  452. }
  453. .typeImg {
  454. width: 72upx;
  455. height: 72upx;
  456. }
  457. .num {
  458. margin-left: 30upx;
  459. color: #333333;
  460. font-size: 40upx;
  461. }
  462. }
  463. }
  464. }
  465. }
  466. .exhibition-box {
  467. margin-top: 20upx;
  468. padding: 20upx 30upx;
  469. background-color: #FFFFFF;
  470. .exhibition {
  471. display: flex;
  472. justify-content: space-between;
  473. .title {
  474. font-size: 30upx;
  475. font-weight: 700;
  476. color: #333333;
  477. position: relative;
  478. padding-left: 20rpx;
  479. }
  480. .title:before {
  481. width: 10rpx;
  482. height: 32rpx;
  483. content: '';
  484. position: absolute;
  485. left: 0;
  486. top: 6rpx;
  487. background-color: #6DD400;
  488. }
  489. .more {
  490. font-size: 24upx;
  491. flex-direction: row;
  492. }
  493. .vert {
  494. font-size: 28upx;
  495. flex-direction: row;
  496. color: #1777FE;
  497. }
  498. }
  499. .logo-img {
  500. .logoBox {
  501. margin-top: 20rpx;
  502. border: 1px solid #E1E1E1;
  503. }
  504. .logoImg {
  505. width: 100%;
  506. height: 200upx;
  507. }
  508. }
  509. }
  510. .memberBtn {
  511. position: fixed;
  512. bottom: 0;
  513. left: 0;
  514. width: 100%;
  515. background-color: #FFFFFF;
  516. padding: 30upx;
  517. }
  518. }
  519. </style>