You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

204 lines
4.4 KiB

  1. <template>
  2. <view class="service-remarks-card">
  3. <view class="card-title">
  4. <text>服务细则</text>
  5. </view>
  6. <view class="remarks-content">
  7. <!-- 钥匙交接方式 -->
  8. <view class="remarks-item">
  9. <text class="item-label">钥匙交接方式</text>
  10. <text class="item-value">{{remarks.keyHandoverMethod || '存于快递柜'}}</text>
  11. </view>
  12. <!-- 是否提前熟悉 -->
  13. <view class="remarks-item advance-familiar">
  14. <text class="item-label">是否提前熟悉</text>
  15. <!-- <view class="checkbox-container" v-if="remarks.isAdvanceFamiliar">
  16. <uv-icon name="checkmark" color="#FFAA48" size="36"></uv-icon>
  17. </view> -->
  18. </view>
  19. <!-- 价格说明 -->
  20. <view class="price-info" v-if="remarks.priceInfo">
  21. <text class="price-text">* {{remarks.priceInfo}}</text>
  22. </view>
  23. <!-- 服务内容说明 -->
  24. <view class="service-description">
  25. <view class="description-item" v-if="remarks.serviceContent">
  26. <text class="description-text">* {{remarks.serviceContent}}</text>
  27. </view>
  28. <view class="description-item" v-if="remarks.serviceCondition">
  29. <text class="description-text">* {{remarks.serviceCondition}}</text>
  30. </view>
  31. </view>
  32. <!-- 付款方式 -->
  33. <!-- <view class="payment-method" v-if="remarks.paymentMethod">
  34. <text class="label">付款方式:</text>
  35. <text class="value">{{remarks.paymentMethod}}</text>
  36. </view> -->
  37. <!-- 紧急预约 -->
  38. <!-- <view class="urgent-flag" v-if="remarks.isUrgent">
  39. <view class="urgent-icon">
  40. <image src="/static/images/details/girl.svg" style="width: 32rpx; height: 32rpx;"></image>
  41. </view>
  42. <text class="urgent-text">是否紧急预约</text>
  43. </view> -->
  44. <!-- 备注 -->
  45. <view class="notes-section" v-if="remarks.notes">
  46. <text class="notes-text">{{remarks.notes}}</text>
  47. </view>
  48. </view>
  49. </view>
  50. </template>
  51. <script>
  52. export default {
  53. components: {
  54. uvIcon: () => import('@/uni_modules/uv-icon/components/uv-icon/uv-icon.vue')
  55. },
  56. props: {
  57. remarks: {
  58. type: Object,
  59. default: () => ({
  60. keyHandoverMethod: '存于快递柜',
  61. isAdvanceFamiliar: false,
  62. priceInfo: '价格40元/次',
  63. serviceContent: '服务内容: 购买此服务后,伴宠师将在您需要前,按照约定时间提前上门为您照顾宠物',
  64. serviceCondition: '服务保障: 购买此服务后,平台支付在提前熟悉店,上门服务第一天前,充电由客服联系您预约一次',
  65. paymentMethod: '',
  66. isUrgent: false,
  67. notes: ''
  68. })
  69. }
  70. }
  71. }
  72. </script>
  73. <style lang="scss" scoped>
  74. .service-remarks-card {
  75. background-color: #FFFFFF;
  76. border-radius: 20rpx;
  77. padding: 30rpx;
  78. margin-bottom: 20rpx;
  79. box-shadow: 0 2rpx 10rpx rgba(0, 0, 0, 0.05);
  80. }
  81. .card-title {
  82. font-size: 32rpx;
  83. font-weight: bold;
  84. color: #333;
  85. margin-bottom: 20rpx;
  86. display: flex;
  87. align-items: center;
  88. &::before {
  89. content: '';
  90. display: inline-block;
  91. width: 8rpx;
  92. height: 32rpx;
  93. background-color: #FFAA48;
  94. margin-right: 16rpx;
  95. border-radius: 4rpx;
  96. }
  97. }
  98. .remarks-content {
  99. .remarks-item {
  100. display: flex;
  101. justify-content: space-between;
  102. align-items: center;
  103. margin-bottom: 20rpx;
  104. .item-label {
  105. font-size: 28rpx;
  106. color: #333;
  107. }
  108. .item-value {
  109. font-size: 26rpx;
  110. color: #666;
  111. }
  112. }
  113. .advance-familiar {
  114. .checkbox-container {
  115. display: flex;
  116. align-items: center;
  117. justify-content: center;
  118. }
  119. }
  120. .price-info {
  121. margin: 20rpx 0;
  122. .price-text {
  123. font-size: 26rpx;
  124. color: #FF9500;
  125. line-height: 1.5;
  126. }
  127. }
  128. .service-description {
  129. margin-bottom: 20rpx;
  130. .description-item {
  131. margin-bottom: 10rpx;
  132. .description-text {
  133. font-size: 26rpx;
  134. color: #666;
  135. line-height: 1.5;
  136. }
  137. }
  138. }
  139. .payment-method {
  140. display: flex;
  141. align-items: center;
  142. margin-bottom: 20rpx;
  143. .label {
  144. font-size: 26rpx;
  145. color: #666;
  146. margin-right: 10rpx;
  147. }
  148. .value {
  149. font-size: 26rpx;
  150. color: #333;
  151. }
  152. }
  153. .urgent-flag {
  154. display: flex;
  155. align-items: center;
  156. margin-bottom: 20rpx;
  157. .urgent-icon {
  158. margin-right: 10rpx;
  159. }
  160. .urgent-text {
  161. font-size: 26rpx;
  162. color: #FF5252;
  163. }
  164. }
  165. .notes-section {
  166. padding: 20rpx;
  167. background-color: #FFF5E6;
  168. border-radius: 10rpx;
  169. .notes-text {
  170. font-size: 26rpx;
  171. color: #A94F20;
  172. line-height: 1.5;
  173. white-space: pre-wrap;
  174. }
  175. }
  176. }
  177. </style>