FinancialServiceMoreList.vue 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232
  1. <template>
  2. <div class="autoBox box">
  3. <div class="crumbs">
  4. <el-breadcrumb separator="/">
  5. <el-breadcrumb-item :to="{ path: 'home' }">{{$t('common.Home')}}</el-breadcrumb-item>
  6. <el-breadcrumb-item :to="{ path: 'financialServices' }">{{$t('common.FinancialServices')}}</el-breadcrumb-item>
  7. <el-breadcrumb-item :to="{ path: 'FinancialServicesAgency' }">{{$t('common.FinancialInstitutions')}}</el-breadcrumb-item>
  8. <el-breadcrumb-item :to="{ path: returnPath }">{{$i18n.locale=='zh'?'金融机构详情':'Details of financial institutions'}}</el-breadcrumb-item>
  9. <el-breadcrumb-item>{{$t(nav)}}</el-breadcrumb-item>
  10. </el-breadcrumb>
  11. </div>
  12. <div style="margin-top: 30px;width: 100%;">
  13. <div style="margin-left: 50px;">
  14. <div class="cursor" v-for="(item,index) in initData"
  15. @click="toViewDetail(page.typeDict,item.baseEntityId)"
  16. style="font-size: 15px;width: 100%;line-height: 40px;">
  17. <span style="font-weight: 700;">{{item.title}}</span>
  18. <span style="float: right;margin-right: 150px;">{{formatDate(item.publishDate)}}</span>
  19. </div>
  20. </div>
  21. </div>
  22. <!-- 分页-->
  23. <div>
  24. <div style="width: 100%;position: relative;height: 100px;">
  25. <el-pagination
  26. style="height: 80px;position: absolute;left: 50%;top: 100px;transform: translate(-50%,-50%);"
  27. background
  28. page-size=10
  29. layout="prev, pager, next"
  30. :total=totalCount
  31. @current-change="handleCurrentChange">
  32. </el-pagination>
  33. </div>
  34. </div>
  35. </div>
  36. </template>
  37. <script>
  38. import 'vue-awesome-swiper/node_modules/swiper/dist/css/swiper.css'
  39. import Base from "@/views/base/Base";
  40. import {getInformationList} from '@/api/financialService/cmsInformationViews';
  41. export default {
  42. name: 'FinancialServiceMoreList',
  43. extends: Base,
  44. data () {
  45. return {
  46. initData:[],
  47. page:{
  48. // pageSize:'10',
  49. // pageNo:'1',
  50. businessType:'financial_institutions',
  51. businessId:this.$route.query.key,
  52. language:'',
  53. },
  54. typeDict:this.$route.query.typeDict,
  55. baseId:this.$route.query.key,
  56. nav:'',
  57. totalCount:0,
  58. returnPath:'',
  59. }
  60. },
  61. created(){},
  62. mounted(){
  63. this.getInitdata();
  64. },
  65. watch: {
  66. '$i18n.locale'(){
  67. this.getInitdata();
  68. this.returnPath='FinancialServicesDetails?key='+this.baseId
  69. },
  70. },
  71. methods:{
  72. getInitdata(){
  73. this.page.language = this.$i18n.locale.toUpperCase();
  74. getInformationList(this.page).then(res => {
  75. console.log(res,'--------------------------')
  76. if(res.data){
  77. if(this.typeDict ==1){
  78. this.initData = res.data[1];
  79. this.nav = "common.ProductAndService"
  80. }else if(this.typeDict == 2){
  81. this.initData = res.data[2];
  82. this.nav = "common.InvestmentAndCases"
  83. }else if(this.typeDict == 3){
  84. this.initData = res.data[3];
  85. this.nav = "common.InstitutionDynamic"
  86. }
  87. }
  88. });
  89. },
  90. handleCurrentChange(val) {
  91. this.page.pageNo = val;
  92. this.getInitdata();
  93. },
  94. toViewDetail(type,json){
  95. const { href } = this.$router.resolve({
  96. name: 'FinancialserviceContentDetails',
  97. query: {
  98. key: json,
  99. baseEntityId:this.baseId,
  100. }
  101. });
  102. window.open(href, '_blank');
  103. },
  104. }
  105. }
  106. </script>
  107. <style scoped>
  108. .box {
  109. margin-top: 10px;
  110. background: #fff;
  111. /* height: 500px; */
  112. padding: 20px 0;
  113. min-height: 500px;
  114. }
  115. .crumbs {
  116. margin-left: 20px;
  117. }
  118. body {
  119. margin: 0;
  120. }
  121. .swipers {
  122. position: absolute;
  123. top: 30px;
  124. left: 100px;
  125. width: 460px;
  126. height: 390px;
  127. }
  128. .details {
  129. position: absolute;
  130. top: 30px;
  131. left: 600px;
  132. width: 460px;
  133. height: 390px;
  134. }
  135. .swiper-container {
  136. width: 100%;
  137. height: 300px;
  138. margin-left: auto;
  139. margin-right: auto;
  140. }
  141. .swiper-slide {
  142. background-size: cover;
  143. background-position: center;
  144. }
  145. .gallery-top {
  146. height: 80%;
  147. width: 100%;
  148. }
  149. .gallery-thumbs {
  150. height: 20%;
  151. box-sizing: border-box;
  152. padding: 10px 0;
  153. }
  154. .gallery-thumbs .swiper-slide {
  155. width: 25%;
  156. height: 100%;
  157. opacity: 0.4;
  158. }
  159. .gallery-thumbs .swiper-slide-thumb-active {
  160. opacity: 1;
  161. }
  162. .initData_label {
  163. color: #6c8c9d;
  164. font-weight: 700;
  165. font-size: 18px;
  166. line-height: 42px;
  167. }
  168. .enterprise_style{
  169. line-height: 50px;
  170. color: #6C819D;
  171. padding-left: 100px;
  172. font-size: 18px;
  173. font-weight: 700;
  174. margin-top: 5px;
  175. }
  176. .enterprise_style_span {
  177. padding: 10px;
  178. text-align: center;
  179. height: 100%;
  180. border-bottom: 2px solid #6699ff;
  181. }
  182. .enterprise_style_product tr {
  183. line-height: 30px;
  184. width: 100%;
  185. display: inline-block;
  186. border-bottom: 1px dashed #ccc;
  187. font-size: 14px;
  188. color: #6C819D;
  189. margin-bottom: 5px;
  190. }
  191. .recommend {
  192. margin-top:15px;
  193. margin-left: 100px;
  194. }
  195. .recommend li{
  196. display: inline-block;
  197. width: 170px;
  198. /* height: 130px; */
  199. text-align: center;
  200. margin-right: 15px;
  201. }
  202. .information1 {
  203. display: inline-block;
  204. width: 123px;
  205. height: 100%;
  206. border:1px solid rgba(228, 228, 228, 1);
  207. text-align: center;
  208. background: #f9f9f9;
  209. color: #999;
  210. }
  211. .information2 {
  212. display: inline-block;
  213. width: 123px;
  214. height: 100%;
  215. border-top:3px solid #2c5589;
  216. text-align: center;
  217. color: #2c5589;
  218. }
  219. .information1:hover {
  220. color: #FF0036;
  221. }
  222. </style>