countryEnergyPowerPlanning.vue 6.7 KB

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