details.vue 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165
  1. <template>
  2. <div class="details-p">
  3. <div class="tops">
  4. <h3>
  5. <van-icon class="word01" name="diy-word" />
  6. 优化招投标市场营商环境与国企采购人主体责任、采购与招标
  7. </h3>
  8. </div>
  9. <div class="middles">
  10. <h3>摘要</h3>
  11. <p>优化招投标市场营商环境与国企采购人主体责任、采购与招标培训资料摘要摘要。</p>
  12. <div class="continue">全文共18页,<span>继续阅读<van-icon name="arrow-down" size="18" /></span></div>
  13. </div>
  14. <div class="botts">
  15. <div class="cont-page">
  16. </div>
  17. </div>
  18. <van-goods-action>
  19. <van-goods-action-icon class="no-icon">
  20. <template #default>
  21. <p class="p1">剑鱼币</p>
  22. <p class="p2">500</p>
  23. </template>
  24. </van-goods-action-icon>
  25. <van-goods-action-icon icon="diy-jubao" text="投诉举报" />
  26. <van-goods-action-icon icon="diy-weiguanzhu" text="收藏" />
  27. <van-goods-action-button text="下载文档" />
  28. </van-goods-action>
  29. </div>
  30. </template>
  31. <script lang="ts">
  32. import { Component, Vue } from 'vue-property-decorator'
  33. import { Icon, GoodsAction, GoodsActionIcon, GoodsActionButton } from 'vant'
  34. @Component({
  35. name: 'details-p',
  36. components: {
  37. [Icon.name]: Icon,
  38. [GoodsAction.name]: GoodsAction,
  39. [GoodsActionIcon.name]: GoodsActionIcon,
  40. [GoodsActionButton.name]: GoodsActionButton
  41. }
  42. })
  43. export default class extends Vue {
  44. }
  45. </script>
  46. <style lang="scss" scoped>
  47. @include diy-icon('word', 24, 24);
  48. @include diy-icon('jubao', 20, 20);
  49. @include diy-icon('weiguanzhu', 20, 20);
  50. @include diy-icon('guanzhu', 20, 20);
  51. .details-p {
  52. display: flex;
  53. flex-direction: column;
  54. .tops {
  55. display: flex;
  56. background: #fff;
  57. padding: 24px 16px;
  58. h3 {
  59. display: flex;
  60. flex-direction: initial;
  61. color: #171826;
  62. font-weight: 500;
  63. font-size: 20px;
  64. line-height: 30px;
  65. .word01 {
  66. display: table;
  67. width: 24px;
  68. height: 24px;
  69. margin-right: 6px;
  70. }
  71. }
  72. }
  73. .middles {
  74. padding: 16px;
  75. background: #fff;
  76. margin: 8px 0;
  77. h3 {
  78. font-size: 16px;
  79. line-height: 24px;
  80. font-weight: 500;
  81. color: #171826;
  82. }
  83. p {
  84. color: #5F5E64;
  85. font-size: 14px;
  86. line-height: 20px;
  87. margin-top: 8px;
  88. }
  89. .continue {
  90. color: #5F5E64;
  91. font-size: 14px;
  92. line-height: 20px;
  93. text-align: center;
  94. margin-top: 32px;
  95. span {
  96. color: #2ABED1;
  97. cursor: pointer;
  98. i {
  99. margin-left: 4px;
  100. }
  101. }
  102. }
  103. }
  104. .botts {
  105. padding: 16px 24px;
  106. background: #fff;
  107. .cont-page {
  108. height: 900px;
  109. }
  110. }
  111. .van-goods-action {
  112. // height: 56px;
  113. padding: 8px 16px;
  114. box-shadow: 0px -2px 8px 0px #eee;
  115. display: flex;
  116. justify-content: space-between;
  117. .no-icon {
  118. p {
  119. color:#2ABED1;
  120. }
  121. .p1 {
  122. font-size: 12px;
  123. line-height: 18px;
  124. }
  125. .p2 {
  126. font-size: 18px;
  127. line-height: 26px;
  128. }
  129. .van-icon {
  130. display: none!important;
  131. }
  132. }
  133. .van-goods-action-icon:not(.no-icon) {
  134. font-size: 10px;
  135. color: #5F5E64;
  136. }
  137. .van-goods-action-button--first {
  138. margin-left: 0;
  139. }
  140. .van-goods-action-button--last {
  141. margin-right: 0;
  142. }
  143. .van-goods-action-button {
  144. flex: none;
  145. }
  146. .van-button--large {
  147. width: 165px;
  148. height: 40px;
  149. }
  150. ::v-deep .van-button--default {
  151. background-color: #2ABED1;
  152. .van-button__content {
  153. .van-button__text {
  154. color: #fff;
  155. font-size: 16px;
  156. }
  157. }
  158. }
  159. }
  160. }
  161. </style>