dt_recommend_wrap.vue 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. <template>
  2. <view class="comp-goods-wrap">
  3. <view class="goods-text-title">
  4. <!-- <view class="line"></view>
  5. <image src="http://139.9.103.171:1888/img/image/recommend_icon.png" class="recommend_icon paddingSize"></image> -->
  6. <view class="titleBox"><text>{{ title }}</text></view>
  7. <!-- <image src="http://139.9.103.171:1888/img/image/recommend_icon.png" class="recommend_icon paddingSize"></image>
  8. <view class="line"></view> -->
  9. </view>
  10. </view>
  11. </template>
  12. <script>
  13. export default {
  14. props: {
  15. title: {
  16. type: String,
  17. default: ""
  18. }
  19. },
  20. methods: {
  21. moreGoods() {
  22. this.$emit("jumpMore");
  23. }
  24. }
  25. };
  26. </script>
  27. <style lang="scss">
  28. .goods-text-title {
  29. display: flex;
  30. flex-direction: row;
  31. justify-content: center;
  32. align-items: center;
  33. font-size: 26upx;
  34. color: #666666;
  35. height: 90upx;
  36. line-height: 80upx;
  37. background: #f2f2f2;
  38. .titleBox {
  39. display: flex;
  40. flex-direction: row;
  41. align-items: center;
  42. }
  43. text{
  44. font-size:28upx;
  45. font-weight:bold;
  46. color:rgba(51,51,51,1);
  47. }
  48. }
  49. .recommend_icon{
  50. width: 20upx;
  51. height:19upx;
  52. }
  53. .line {
  54. background: #cccccc;
  55. height: 2upx;
  56. width: 200upx;
  57. }
  58. .paddingSize {
  59. padding: 0 15upx;
  60. }
  61. </style>