nationalregionalCountryDetails.vue 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171
  1. <template>
  2. <view>
  3. <u-navbar :back-text="i18n('Back')" :back-text-style="backStyle" back-icon-color="#fff" title-color="#fff"
  4. :title="i18n(PersonnelProfile)" :background="background">
  5. </u-navbar>
  6. <view class="">
  7. <!-- 机构轮播 -->
  8. <view class="uni-padding-wrap" v-if="PersonnelProfile !== 'PersonnelProfile'">
  9. <view class="page-section swiper">
  10. <view class="page-section-spacing">
  11. <swiper class="swiper" :indicator-dots="indicatorDots" :autoplay="autoplay" :interval="interval"
  12. :duration="duration" circular="true">
  13. <swiper-item v-if="ifFlog.length>0" v-for="(i,index) in ifFlog">
  14. <view class="swiper-item uni-bg-red" v-if="ifFlog.length>0">
  15. <image :src="websiteUrl + i.pictureUrl" alt="" class="introduceItemImg"
  16. style="width: 750upx;height: 300upx;"></image>
  17. </view>
  18. </swiper-item>
  19. <swiper-item v-if="ifFlog.length == 0">
  20. <view class="swiper-item uni-bg-red">
  21. <image :src="websiteUrl + '/def/def1.png'" alt=""
  22. style="width: 750upx;height: 300upx;"></image>
  23. </view>
  24. </swiper-item>
  25. </swiper>
  26. </view>
  27. </view>
  28. </view>
  29. <!-- 人员简介 -->
  30. <view class="" v-if="PersonnelProfile == 'PersonnelProfile'">
  31. <image v-if="committeeShowMessageInfo.spareTwo" :src="websiteUrl + committeeShowMessageInfo.spareTwo"
  32. alt="" style="width: 750upx;height: 300upx;"></image>
  33. <image v-if="!committeeShowMessageInfo.spareTwo" src="@/static/img/nationaIntroductionList/user.png"
  34. alt="" style="width: 750upx;height: 300upx;"></image>
  35. </view>
  36. <!-- 机构详情 -->
  37. <view class="" style="margin: 0 30upx;line-height: 50upx;">
  38. <view class="title">
  39. {{committeeShowMessageInfo.name}}
  40. </view>
  41. <view class="" v-if="committeeShowMessageInfo.correlationType == 'c'">
  42. <view class="details">
  43. {{i18n('place')}}:{{committeeShowMessageInfo.country}}
  44. </view>
  45. <view class="details">
  46. {{i18n('DateOfEstablishment')}}:{{committeeShowMessageInfo.registeredTime?committeeShowMessageInfo.registeredTime:''}}
  47. </view>
  48. <view class="details">
  49. {{i18n('LegalRepresentative')}}:{{committeeShowMessageInfo.corporateName?committeeShowMessageInfo.corporateName:''}}
  50. </view>
  51. <view class="details">
  52. {{i18n('OfficialEmail')}}:{{committeeShowMessageInfo.officialEmail?committeeShowMessageInfo.officialEmail:''}}
  53. </view>
  54. <view class="details">
  55. {{i18n('OfficialWebsite')}}:
  56. <a :href="committeeShowMessageInfo.officialWebsitePath && committeeShowMessageInfo.officialWebsitePath.indexOf('http') == -1?'http://' + committeeShowMessageInfo.officialWebsitePath :committeeShowMessageInfo.officialWebsitePath"
  57. class="a-style">
  58. {{committeeShowMessageInfo.officialWebsitePath?committeeShowMessageInfo.officialWebsitePath:''}}
  59. </a>
  60. </view>
  61. <view>
  62. <text style="color: #666;">{{i18n('intro')}}:</text>
  63. <text style="color: #333;display: inline-block;">{{committeeShowMessageInfo.unitProfile}}</text>
  64. </view>
  65. </view>
  66. <view class="details" v-if="committeeShowMessageInfo.correlationType == 'p'">
  67. {{committeeShowMessageInfo.spareOne}}
  68. </view>
  69. <view v-for="(item,index) in initList" v-if="initList">
  70. <view class="enterprise_style">
  71. <view class="jianjie">
  72. <text style="display: inline-block;width: 10upx;height: 30upx;
  73. background-color: #6DD400;vertical-align: middle;margin-right: 10upx;"></text>
  74. {{item.title}}
  75. </view>
  76. </view>
  77. <view class="" v-if="item.pictureUrl">
  78. <image :src="websiteUrl + item.pictureUrl" alt="" style="width: 750upx;height: 300upx;"></image>
  79. </view>
  80. <view :style="item.picturePosition == 'left'?'text-indent: 2em;float:right':'float:left'"
  81. class="nomale" v-html="item.contentHtml">
  82. </view>
  83. <view style="clear:both"></view>
  84. </view>
  85. </view>
  86. </view>
  87. </view>
  88. </template>
  89. <script>
  90. export default {
  91. data() {
  92. return {
  93. background: {
  94. backgroundImage: 'linear-gradient(270deg, #4BC0E2 0%, #538BE7 100%)',
  95. },
  96. backStyle: {
  97. color: '#fff'
  98. },
  99. committeeShowMessageInfo: {},
  100. id: null,
  101. PersonnelProfile: null,
  102. ifFlog: [],
  103. initList: [],
  104. };
  105. },
  106. onShow() {
  107. this.getList();
  108. },
  109. onLoad(options) {
  110. this.id = options.id;
  111. },
  112. methods: {
  113. async getList() {
  114. let list = {
  115. entityId: this.id,
  116. language: this.$i18n.locale.toUpperCase(),
  117. };
  118. const res = await this.$myRequest({
  119. url: '/project/committeeShowMessageInfos/getShowMessageInfoDetail',
  120. data: list,
  121. });
  122. let page = {
  123. businessType: "organizational_structure",
  124. businessId: this.id,
  125. language: this.$i18n.locale.toUpperCase()
  126. };
  127. const info = await this.$myRequest({
  128. url: '/cms/cmsInformationViews/getInformationList/',
  129. data: page,
  130. });
  131. this.initList = info.data.allDataList;
  132. this.ifFlog = this.initList.filter(item => {
  133. return item.pictureUrl
  134. });
  135. this.committeeShowMessageInfo = res.data.committeeShowMessageInfo;
  136. this.committeeShowMessageInfo.correlationType == 'P' ? this.PersonnelProfile = 'PersonnelProfile' :
  137. this.PersonnelProfile = 'OrganizationProfile'
  138. },
  139. i18n(data) {
  140. return this.$t('common.' + data);
  141. },
  142. }
  143. }
  144. </script>
  145. <style lang="scss">
  146. page {
  147. background-color: #fff;
  148. }
  149. .title {
  150. margin-top: 15upx;
  151. line-height: 50upx;
  152. font-weight: 700;
  153. font-size: 30upx;
  154. }
  155. .details {
  156. line-height: 50upx;
  157. }
  158. </style>