- <template>
- <view class="service-remarks-card">
- <view class="card-title">
- <text>服务细则</text>
- </view>
-
- <view class="remarks-content">
- <!-- 钥匙交接方式 -->
- <view class="remarks-item">
- <text class="item-label">钥匙交接方式</text>
- <text class="item-value">{{remarks.keyHandoverMethod || '存于快递柜'}}</text>
- </view>
-
- <!-- 是否提前熟悉 -->
- <view class="remarks-item advance-familiar">
- <text class="item-label">是否提前熟悉</text>
- <view class="checkbox-container" v-if="remarks.isAdvanceFamiliar">
- <uv-icon name="checkmark" color="#FFAA48" size="36"></uv-icon>
- </view>
- </view>
-
- <!-- 价格说明 -->
- <view class="price-info" v-if="remarks.priceInfo">
- <text class="price-text">* {{remarks.priceInfo}}</text>
- </view>
-
- <!-- 服务内容说明 -->
- <view class="service-description">
- <view class="description-item" v-if="remarks.serviceContent">
- <text class="description-text">* {{remarks.serviceContent}}</text>
- </view>
- <view class="description-item" v-if="remarks.serviceCondition">
- <text class="description-text">* {{remarks.serviceCondition}}</text>
- </view>
- </view>
-
- <!-- 付款方式 -->
- <!-- <view class="payment-method" v-if="remarks.paymentMethod">
- <text class="label">付款方式:</text>
- <text class="value">{{remarks.paymentMethod}}</text>
- </view> -->
-
- <!-- 紧急预约 -->
- <!-- <view class="urgent-flag" v-if="remarks.isUrgent">
- <view class="urgent-icon">
- <image src="/static/images/details/girl.svg" style="width: 32rpx; height: 32rpx;"></image>
- </view>
- <text class="urgent-text">是否紧急预约</text>
- </view> -->
-
- <!-- 备注 -->
- <view class="notes-section" v-if="remarks.notes">
- <text class="notes-text">{{remarks.notes}}</text>
- </view>
- </view>
- </view>
- </template>
-
- <script>
- export default {
- components: {
- uvIcon: () => import('@/uni_modules/uv-icon/components/uv-icon/uv-icon.vue')
- },
- props: {
- remarks: {
- type: Object,
- default: () => ({
- keyHandoverMethod: '存于快递柜',
- isAdvanceFamiliar: true,
- priceInfo: '价格40元/次',
- serviceContent: '服务内容: 购买此服务后,伴宠师将在您需要前,按照约定时间提前上门为您照顾宠物',
- serviceCondition: '服务保障: 购买此服务后,平台支付在提前熟悉店,上门服务第一天前,充电由客服联系您预约一次',
- paymentMethod: '',
- isUrgent: false,
- notes: ''
- })
- }
- }
- }
- </script>
-
- <style lang="scss" scoped>
- .service-remarks-card {
- background-color: #FFFFFF;
- border-radius: 20rpx;
- padding: 30rpx;
- margin-bottom: 20rpx;
- box-shadow: 0 2rpx 10rpx rgba(0, 0, 0, 0.05);
- }
-
- .card-title {
- font-size: 32rpx;
- font-weight: bold;
- color: #333;
- margin-bottom: 20rpx;
- display: flex;
- align-items: center;
-
- &::before {
- content: '';
- display: inline-block;
- width: 8rpx;
- height: 32rpx;
- background-color: #FFAA48;
- margin-right: 16rpx;
- border-radius: 4rpx;
- }
- }
-
- .remarks-content {
- .remarks-item {
- display: flex;
- justify-content: space-between;
- align-items: center;
- margin-bottom: 20rpx;
-
- .item-label {
- font-size: 28rpx;
- color: #333;
- }
-
- .item-value {
- font-size: 26rpx;
- color: #666;
- }
- }
-
- .advance-familiar {
- .checkbox-container {
- display: flex;
- align-items: center;
- justify-content: center;
- }
- }
-
- .price-info {
- margin: 20rpx 0;
-
- .price-text {
- font-size: 26rpx;
- color: #FF9500;
- line-height: 1.5;
- }
- }
-
- .service-description {
- margin-bottom: 20rpx;
-
- .description-item {
- margin-bottom: 10rpx;
-
- .description-text {
- font-size: 26rpx;
- color: #666;
- line-height: 1.5;
- }
- }
- }
-
- .payment-method {
- display: flex;
- align-items: center;
- margin-bottom: 20rpx;
-
- .label {
- font-size: 26rpx;
- color: #666;
- margin-right: 10rpx;
- }
-
- .value {
- font-size: 26rpx;
- color: #333;
- }
- }
-
- .urgent-flag {
- display: flex;
- align-items: center;
- margin-bottom: 20rpx;
-
- .urgent-icon {
- margin-right: 10rpx;
- }
-
- .urgent-text {
- font-size: 26rpx;
- color: #FF5252;
- }
- }
-
- .notes-section {
- padding: 20rpx;
- background-color: #FFF5E6;
- border-radius: 10rpx;
-
- .notes-text {
- font-size: 26rpx;
- color: #A94F20;
- line-height: 1.5;
- white-space: pre-wrap;
- }
- }
- }
- </style>
|