countryLawsAndRegulations.vue 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266
  1. <template>
  2. <div>
  3. <div v-show="isLogin==false">
  4. <div style="text-align: center;margin: 137px 0 94px 0">
  5. <img class="loginTip" src="@/assets/img/country/defaltback2.png" alt="">
  6. </div>
  7. <div style="margin-bottom: 54px">
  8. <div class="moreContent">{{$t('common.ForMore')}}</div>
  9. <div style="width: 190px;height: 37px;background-color: rgba(24, 144, 255, 1);margin: 15px auto;cursor: pointer;text-align: center" @click="toViewLogin=true">
  10. <span style="font-size: 18px;font-weight: 400;color: #FFFFFF;line-height: 38px;" >{{$t('common.resourceLogIn')}}</span>
  11. </div>
  12. <LoginMusk :toViewLogin="toViewLogin" @LoginBack="LoginBack"></LoginMusk>
  13. </div>
  14. </div>
  15. <div v-show="isLogin==true">
  16. <div style="margin: 0 30px;" v-for="(item,index) in enterprise">
  17. <div class="enterprise_style">
  18. <span class="enterprise_style_span"
  19. style="padding: 10px;text-align: center;height: 100%;color: #2C558A;border-bottom: 2px solid #6699ff;">
  20. <span
  21. style="display: inline-block;width: 10px;height: 10px;background: #0B82FF;border-radius: 50%;"></span>
  22. {{ item.title }}
  23. </span>
  24. </div>
  25. <p style="margin-top: 15px;color: #666;margin-left: 35px;min-height: 300px;margin-right: 35px;">
  26. <!-- <img :src="'api/file/pub/' + item.pictureUrl" alt="" class="right" width="400px">-->
  27. <span style="color: #666666;" v-html="item.contentHtml"></span>
  28. <!-- <span style="color: #02558a;margin-left: 25px;" class="cursor" @click="toView('countryInformationDetails','')">详情</span> -->
  29. </p>
  30. </div>
  31. </div>
  32. <div>
  33. <pdf-preview :url="url"></pdf-preview>
  34. </div>
  35. </div>
  36. </template>
  37. <script>
  38. import { getInformationList } from '@/api/country/countryList'
  39. import pdfPreview from "@/views/countryInformation/pdfPreview";
  40. import LoginMusk from '@/components/LoginMusk'
  41. export default {
  42. name: 'countryLawsAndRegulations',
  43. props: ['id'],
  44. components: {
  45. pdfPreview,
  46. LoginMusk
  47. },
  48. data () {
  49. return {
  50. url: '',
  51. enterpriseDetails: '',
  52. informationsClass: '1',
  53. enterprise: [],
  54. isLogin:false,
  55. toViewLogin:false
  56. }
  57. },
  58. created () {
  59. },
  60. mounted () {
  61. this.getCountryData();// 获取开发指引
  62. if(this.$Cookies.get('token')){
  63. this.isLogin = true;
  64. }else{
  65. this.isLogin = false;
  66. }
  67. },
  68. watch: {
  69. '$i18n.locale' () {
  70. this.getCountryData();
  71. }
  72. },
  73. methods: {
  74. getCountryData () {
  75. let list = {
  76. pageSize: 5,
  77. pageNo: 1,
  78. businessType: 'countryShow',
  79. businessId: this.id,
  80. typeDict: 8,
  81. language: this.$i18n.locale.toUpperCase(),
  82. }
  83. getInformationList(list).then(res => {
  84. this.enterprise = res.data ? res.data.allDataList : [];
  85. this.url = this.enterprise[0]?.pdfPath ? 'api/file/pub/' + this.enterprise[0]?.pdfPath : ''
  86. })
  87. },
  88. getIconUrl (url) {
  89. return require("@/assets/img/realTimeInfo/" + url);
  90. },
  91. toView (router, json) {
  92. this.$router.push({name: router, params: json})
  93. },
  94. screenBack (data) {
  95. console.log(data, 'screenBackscreenBackscreenBackscreenBack')
  96. },
  97. screen (i) {
  98. this.index = i
  99. },
  100. getInformation (num) {
  101. this.informationsClass = num
  102. },
  103. LoginBack (data) {
  104. this.toViewLogin = false;
  105. },
  106. }
  107. }
  108. </script>
  109. <!-- Add "scoped" attribute to limit CSS to this component only -->
  110. <style scoped>
  111. .box {
  112. margin-top: 10px;
  113. background: #fff;
  114. /* height: 500px; */
  115. padding: 20px 0;
  116. }
  117. .crumbs {
  118. margin-left: 20px;
  119. }
  120. body {
  121. margin: 0;
  122. }
  123. .swipers {
  124. position: absolute;
  125. top: 30px;
  126. left: 100px;
  127. width: 460px;
  128. height: 390px;
  129. }
  130. .details {
  131. position: absolute;
  132. top: 30px;
  133. left: 600px;
  134. width: 460px;
  135. height: 390px;
  136. }
  137. .swiper-container {
  138. width: 100%;
  139. height: 300px;
  140. margin-left: auto;
  141. margin-right: auto;
  142. }
  143. .swiper-slide {
  144. background-size: cover;
  145. background-position: center;
  146. }
  147. .gallery-top {
  148. height: 80%;
  149. width: 100%;
  150. }
  151. .gallery-thumbs {
  152. height: 20%;
  153. box-sizing: border-box;
  154. padding: 10px 0;
  155. }
  156. .gallery-thumbs .swiper-slide {
  157. width: 25%;
  158. height: 100%;
  159. opacity: 0.4;
  160. }
  161. .gallery-thumbs .swiper-slide-thumb-active {
  162. opacity: 1;
  163. }
  164. .initData_label {
  165. color: #6c8c9d;
  166. font-weight: 700;
  167. font-size: 18px;
  168. line-height: 42px;
  169. }
  170. .enterprise_style {
  171. line-height: 40px;
  172. color: #2C558A;
  173. /* padding-left: 100px; */
  174. font-size: 18px;
  175. /* font-weight: 700; */
  176. margin-top: 5px;
  177. margin-left: 20px;
  178. /* border-bottom: 1px solid #95d13e; */
  179. }
  180. .enterprise_style_span {
  181. /* padding: 10px; */
  182. text-align: center;
  183. height: 100%;
  184. /* background: #95d13e; */
  185. color: #2C558A;
  186. /* border-bottom: 2px solid #6699ff; */
  187. }
  188. .enterprise_style_product tr {
  189. line-height: 30px;
  190. width: 100%;
  191. display: inline-block;
  192. border-bottom: 1px dashed #ccc;
  193. font-size: 14px;
  194. color: #6C819D;
  195. margin-bottom: 5px;
  196. }
  197. .recommend {
  198. margin-top: 15px;
  199. margin-left: 20px;
  200. }
  201. .recommend li {
  202. display: inline-block;
  203. width: 170px;
  204. /* height: 130px; */
  205. text-align: center;
  206. margin-right: 15px;
  207. }
  208. .information1 {
  209. display: inline-block;
  210. width: 123px;
  211. height: 100%;
  212. border: 1px solid rgba(228, 228, 228, 1);
  213. text-align: center;
  214. background: #f9f9f9;
  215. color: #999;
  216. }
  217. .information2 {
  218. display: inline-block;
  219. width: 123px;
  220. height: 100%;
  221. border-top: 3px solid #2c5589;
  222. text-align: center;
  223. color: #2c5589;
  224. }
  225. .information1:hover {
  226. color: #FF0036;
  227. }
  228. img.right {
  229. float: right;
  230. }
  231. .moreContent{
  232. text-align: center;
  233. font-size:18px;
  234. font-weight: 600;
  235. }
  236. .loginTip{
  237. width: 1046px;
  238. height: 364px;
  239. }
  240. </style>