123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214 |
- <template>
- <div>
- <div style="margin: 0 30px;" v-for="(item,index) in initData">
- <div class="enterprise_style">
- <span class="enterprise_style_span" style="padding: 10px;text-align: center;height: 100%;color: #2C558A;border-bottom: 2px solid #6699ff;">
- <span style="display: inline-block;width: 10px;height: 10px;background: #0B82FF;border-radius: 50%;"></span>
- {{item.title}}
- </span>
- </div>
- <p style="margin-top: 15px;color: #666;margin-left: 35px;min-height: 300px;margin-right: 35px;">
- <span style="color: #666666;" v-html='item.contentHtml'></span>
- <span style="color: #02558a;margin-left: 25px;margin-right: 25px;" class="cursor"
- @click="toView('countryInformationDetails','')">
- </span>
- </p>
- </div>
-
- </div>
- </template>
-
- <script>
- import {getCountry,getInformationList} from '@/api/country/countryList'
- export default {
- name: 'CountryIndividualProfiles',
- props:['id'],
- data () {
- return {
- enterpriseDetails:'',
- informationsClass:'1',
- img:[{
- src:'u6668.png',
- },{
- src:'u6676.png',
- },{
- src:'u6720.png',
- },{
- src:'u6763.png',
- },{
- src:'u6668.png',
- },{
- src:'u6720.png',
- }],
- initData:[],
-
- }
- },
- created(){
- this.enterpriseDetails=this.$route.params.key
- },
- mounted(){
- this.getCountryData(); // 获取国家分类信息
- },
- watch:{
- '$i18n.locale'(){
- this.getCountryData();
- }
- },
- methods:{
- getCountryData(){
- let list={
- pageSize:5,
- pageNo:1,
- businessType:'countryShow',
- businessId:this.id,
- typeDict:1,
- language:this.$i18n.locale.toUpperCase(),
- }
- getInformationList(list).then(res=>{
- this.initData=res.data.allDataList;
- })
- },
- getIconUrl(url){
- return require("@/assets/img/realTimeInfo/"+url);
- },
- toView(router,json){
- this.$router.push({name:router,params:json})
- },
- screenBack(data){
- console.log(data,'screenBackscreenBackscreenBackscreenBack')
- },
- screen(i){
- this.index=i
- },
- getInformation(num){
- this.informationsClass=num
- },
- }
- }
- </script>
-
- <!-- Add "scoped" attribute to limit CSS to this component only -->
- <style scoped>
- .box {
- margin-top: 10px;
- background: #fff;
- /* height: 500px; */
- padding: 20px 0;
- }
- .crumbs {
- margin-left: 20px;
- }
- body {
- margin: 0;
- }
- .swipers {
- position: absolute;
- top: 30px;
- left: 100px;
- width: 460px;
- height: 390px;
- }
- .details {
- position: absolute;
- top: 30px;
- left: 600px;
- width: 460px;
- height: 390px;
- }
- .swiper-container {
- width: 100%;
- height: 300px;
- margin-left: auto;
- margin-right: auto;
- }
- .swiper-slide {
- background-size: cover;
- background-position: center;
- }
- .gallery-top {
- height: 80%;
- width: 100%;
- }
- .gallery-thumbs {
- height: 20%;
- box-sizing: border-box;
- padding: 10px 0;
- }
- .gallery-thumbs .swiper-slide {
- width: 25%;
- height: 100%;
- opacity: 0.4;
- }
- .gallery-thumbs .swiper-slide-thumb-active {
- opacity: 1;
- }
- .initData_label {
- color: #6c8c9d;
- font-weight: 700;
- font-size: 18px;
- line-height: 42px;
- }
- .enterprise_style{
- line-height: 40px;
- color: #6C819D;
- /* padding-left: 100px; */
- font-size: 18px;
- /* font-weight: 700; */
- margin-top: 5px;
- margin-left: 20px;
- /* border-bottom: 1px solid #95d13e; */
- }
- .enterprise_style_span {
- /* padding: 10px; */
- text-align: center;
- height: 100%;
- /* background: #95d13e; */
- color: #2C558A;
- /* border-bottom: 2px solid #6699ff; */
- }
- .enterprise_style_product tr {
- line-height: 30px;
- width: 100%;
- display: inline-block;
- border-bottom: 1px dashed #ccc;
- font-size: 14px;
- color: #6C819D;
- margin-bottom: 5px;
- }
- .recommend {
- margin-top:15px;
- margin-left: 100px;
- }
- .recommend li{
- display: inline-block;
- width: 170px;
- /* height: 130px; */
- text-align: center;
- margin-right: 15px;
- }
- .information1 {
- display: inline-block;
- width: 123px;
- height: 100%;
- border:1px solid rgba(228, 228, 228, 1);
- text-align: center;
- background: #f9f9f9;
- color: #999;
- }
- .information2 {
- display: inline-block;
- width: 123px;
- height: 100%;
- border-top:3px solid #2c5589;
- text-align: center;
- color: #2c5589;
- }
- .information1:hover {
- color: #FF0036;
- }
- img.right {
- float: right;
- }
- </style>
-
|