countryDevelopmentGuidelines.vue 6.1 KB

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