ServiceInfo.vue 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. <template>
  2. <view class="service-info">
  3. <view class="service-icons" @tap="showServiceGuarantee">
  4. <view class="icon-item" v-if="firstOrder == 1">
  5. <image src="/static/img/1.png" mode="widthFix" style="width: 30rpx; height: 30rpx"></image>
  6. <text style="margin-left: 6rpx">免费退回</text>
  7. <text style="margin-left: 4rpx"> > </text>
  8. </view>
  9. <view class="icon-item">
  10. <image src="/static/img/2.png" mode="widthFix" style="width: 30rpx; height: 30rpx"></image>
  11. <text style="margin-left: 6rpx">24小时验</text>
  12. <text style="margin-left: 4rpx"> > </text>
  13. </view>
  14. <view class="icon-item">
  15. <image src="/static/img/3.png" mode="widthFix" style="width: 30rpx; height: 30rpx"></image>
  16. <text style="margin-left: 6rpx">极速打款</text>
  17. <text style="margin-left: 4rpx"> > </text>
  18. </view>
  19. <view class="icon-item">
  20. <image src="/static/img/4.png" mode="widthFix" style="width: 30rpx; height: 30rpx"></image>
  21. <text style="margin-left: 6rpx">卖亏必赔</text>
  22. <text style="margin-left: 4rpx"> > </text>
  23. </view>
  24. </view>
  25. <!-- 服务保障弹窗 -->
  26. <ServiceGuarantee ref="serviceGuarantee" />
  27. </view>
  28. </template>
  29. <script>
  30. import ServiceGuarantee from "./ServiceGuarantee.vue";
  31. export default {
  32. components: {
  33. ServiceGuarantee,
  34. },
  35. props: {
  36. serviceList: {
  37. type: Array,
  38. default: () => [],
  39. },
  40. firstOrder: {
  41. type: [Number, String],
  42. default: 0,
  43. },
  44. },
  45. data() {
  46. return {
  47. serviceItems: [
  48. {
  49. icon: "/static/img/1.png",
  50. text: "免费退回",
  51. },
  52. {
  53. icon: "/static/img/2.png",
  54. text: "24小时验",
  55. },
  56. {
  57. icon: "/static/img/3.png",
  58. text: "极速打款",
  59. },
  60. {
  61. icon: "/static/img/4.png",
  62. text: "卖亏必赔",
  63. },
  64. ],
  65. };
  66. },
  67. methods: {
  68. showServiceGuarantee() {
  69. this.$refs.serviceGuarantee.openPopup();
  70. },
  71. },
  72. };
  73. </script>
  74. <style lang="scss" scoped>
  75. .service-icons {
  76. display: flex;
  77. justify-content: center;
  78. padding: 14rpx;
  79. background: #1f1303;
  80. box-sizing: border-box;
  81. gap: 14px;
  82. .icon-item {
  83. display: flex;
  84. align-items: center;
  85. font-family: Source Han Sans CN;
  86. font-weight: 400;
  87. font-size: 24rpx;
  88. color: #fff6ed;
  89. }
  90. }
  91. </style>