Certificate.vue 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. <template>
  2. <div class="brand" style="padding-top: 25px;">
  3. <div class="brand-content">
  4. <div class="title"><span>资质证明</span></div>
  5. <!-- <div class="info">
  6. <div><span>注册地址&nbsp;:&nbsp;</span><span>深圳市南山区高新技术园英唐大厦一楼</span></div>
  7. <div><span>注册号&nbsp;:&nbsp;</span><span>834631</span></div>
  8. <div><span>企业类型&nbsp;:&nbsp;</span><span>民营企业</span></div>
  9. <div><span>官网地址&nbsp;:&nbsp;</span><span>http://www.worldshine.net/profile.html</span></div>
  10. </div>-->
  11. </div>
  12. <qualification-certificate></qualification-certificate>
  13. </div>
  14. </template>
  15. <script>
  16. import QualificationCertificate from './QualificationCertificate.vue'
  17. export default {
  18. name: 'certificate-self',
  19. data () {
  20. return {
  21. type: 0
  22. }
  23. },
  24. filters: {
  25. introduceFilter: function (title) {
  26. if (title === '') {
  27. return title
  28. }
  29. let len = 0
  30. let index = 0
  31. for (let i = 0; i < title.length; i++) {
  32. if (index === 0 && title.charAt(i).charCodeAt(0) > 255) {
  33. len = len + 2
  34. } else {
  35. len++
  36. }
  37. if (len > 240) {
  38. index = i
  39. break
  40. }
  41. }
  42. if (index > 0) {
  43. return title.substring(0, index) + '...'
  44. } else {
  45. return title
  46. }
  47. }
  48. },
  49. components: {
  50. QualificationCertificate
  51. }
  52. }
  53. </script>
  54. <style lang="scss" scoped>
  55. .brand{
  56. min-width: 1190px;
  57. background: #ece9ec;
  58. .brand-content{
  59. width: 1190px;
  60. padding: 0px;
  61. margin: 0 auto;
  62. background: #fff;
  63. .title {
  64. width: 100%;
  65. padding: 13px 0px;
  66. margin-top: 9px;
  67. margin-bottom: 25px;
  68. border-bottom: 1px solid #edf0f4;
  69. span{
  70. display: inline-block;
  71. height: 23px;
  72. line-height: 23px;
  73. color: #666;
  74. padding-left: 10px;
  75. border-left: 3px solid #366ad0;
  76. }
  77. }
  78. .info{
  79. margin: 0 auto;
  80. padding: 32px 0px;
  81. >div{
  82. display: table-cell;
  83. width: 200px;
  84. text-align: center;
  85. &:first-child,&:last-child{
  86. width: 395px;
  87. }
  88. span:first-child{
  89. font-size: 12px;
  90. color: #666;
  91. }
  92. span:last-child{
  93. font-size: 12px;
  94. color: #333;
  95. }
  96. }
  97. }
  98. }
  99. }
  100. </style>