zhengyiming
昨天 25708e3f81956c1517f495e3303a6c8d08bb730c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
<template>
  <div class="mine-service-detail-view-address">
    <div class="mine-service-detail-view-title-wrapper">
      <div class="mine-service-detail-view-title">服务地址</div>
    </div>
    <div class="mine-service-detail-view-item">{{ addressDetail }}</div>
    <div class="mine-service-detail-view-item">{{ name }} {{ contactPhoneNumber }}</div>
  </div>
</template>
 
<script setup lang="ts">
defineOptions({
  name: 'ServiceDetailAddressCard',
});
 
type Props = {
  name?: string;
  /** 联系电话 */
  contactPhoneNumber?: string;
  /** 省市区+详细地址+门牌号 */
  addressDetail?: string;
};
 
const props = withDefaults(defineProps<Props>(), {});
</script>
 
<style lang="scss">
@import '@/styles/common.scss';
 
.mine-service-detail-view-address {
  padding: 24px 32px;
  margin-bottom: 24px;
  background-color: #fff;
  border-radius: 12px;
 
  .mine-service-detail-view-title-wrapper {
    display: flex;
    align-items: center;
    margin-bottom: 14px;
 
    .mine-service-detail-view-title {
      flex: 1;
      min-width: 0;
      @include ellipsis;
      font-size: 30px;
      color: boleGetCssVar('text-color', 'primary');
      line-height: 42px;
    }
  }
 
  .mine-service-detail-view-item {
    font-weight: 400;
    @include ellipsis;
    font-size: 24px;
    color: boleGetCssVar('text-color', 'primary');
    line-height: 36px;
 
    & + .mine-service-detail-view-item {
      margin-top: 14px;
    }
  }
}
</style>