dt_unit_head.vue 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. <template>
  2. <view class="comp-goods-wrap">
  3. <view class="goods-text-title">
  4. <view class="line"></view>
  5. <view class="title-box pd-size"><text>{{ title }}</text>
  6. </view>
  7. <view class="line"></view>
  8. <view class="more" @tap="tapMore">
  9. <text>查看更多</text>
  10. <image src="http://139.9.103.171:1888/img/image/-arrow-img"></image>
  11. </view>
  12. </view>
  13. </view>
  14. </template>
  15. <script>
  16. export default {
  17. props: {
  18. title: {
  19. type: String,
  20. default: ""
  21. }
  22. },
  23. methods: {
  24. tapMore() {
  25. this.$emit("more");
  26. }
  27. }
  28. };
  29. </script>
  30. <style lang="scss">
  31. .goods-text-title {
  32. display: flex;
  33. flex-direction: row;
  34. justify-content: center;
  35. align-items: center;
  36. font-size: 30upx;
  37. color: rgb(51, 51, 51);
  38. background: white;
  39. // margin-top: 20upx;
  40. // padding: 26upx 0;
  41. height: 80upx;
  42. line-height: 80upx;
  43. .title-box {
  44. display: flex;
  45. flex-direction: row;
  46. align-items: center;
  47. .icon {
  48. width: 80upx;
  49. height: 80upx;
  50. }
  51. }
  52. }
  53. .line {
  54. background: rgb(238, 238, 238);
  55. height: 2upx;
  56. width: 50upx;
  57. }
  58. .pd-size {
  59. padding: 0 30upx;
  60. }
  61. .more {
  62. position: absolute;
  63. right: 23upx;
  64. display: flex;
  65. justify-content: center;
  66. align-items: center;
  67. .more-arrow-img {
  68. width: 10upx;
  69. height: 18upx;
  70. }
  71. }
  72. .more text {
  73. color: #888;
  74. font-size: 20upx;
  75. padding-right: 10upx;
  76. }
  77. </style>