CountryIndividualProfiles.vue 5.0 KB

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