bl-common-vue3 3.8.91 → 3.8.93

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bl-common-vue3",
3
- "version": "3.8.91",
3
+ "version": "3.8.93",
4
4
  "main": "index.js",
5
5
  "module": "index.js",
6
6
  "description": "bailing vue3 common components lib",
@@ -15,7 +15,10 @@
15
15
  >
16
16
  <Spin :spinning="spinning">
17
17
  <Row>
18
- <Col class="title-image"></Col>
18
+ <Col
19
+ class="title-image"
20
+ :style="{ backgroundImage: `url(${userTopBg})` }"
21
+ ></Col>
19
22
  </Row>
20
23
  <Row>
21
24
  <Col class="avatar">
@@ -137,6 +140,8 @@ import utils from "../../common/utils/util";
137
140
  import ExtraFieldsItem from "../ExtraFieldsItem/index.vue";
138
141
  import BlModal from "../BlModal/index.vue";
139
142
 
143
+ const USER_TOP_BG = "/public_h5/static/images/contact/userTopBg.png";
144
+
140
145
  export default defineComponent({
141
146
  name: "UserDetail",
142
147
  components: {
@@ -475,7 +480,8 @@ export default defineComponent({
475
480
  handleOk,
476
481
  callExternal,
477
482
  chatBtnShow,
478
- handleCreateChat
483
+ handleCreateChat,
484
+ userTopBg: USER_TOP_BG,
479
485
  };
480
486
  },
481
487
  });
@@ -486,8 +492,7 @@ export default defineComponent({
486
492
  .title-image {
487
493
  width: 100%;
488
494
  height: 150px;
489
- background: url("/public_h5/static/images/contact/userTopBg.png")
490
- no-repeat;
495
+ background-repeat: no-repeat;
491
496
  background-size: 100% 150%;
492
497
  background-position-y: -50px;
493
498
  }
@@ -43,9 +43,7 @@
43
43
  <span>{{ dataRef.title }}</span>
44
44
  <template
45
45
  v-if="
46
- showRentIcon &&
47
- dataRef.contract_info &&
48
- dataRef.contract_info.length
46
+ showRentIcon && (dataRef?.contract_info?.length || dataRef?.landlord_id)
49
47
  "
50
48
  >
51
49
  <bl-icon