@tplc/business 0.2.57 → 0.2.58

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/CHANGELOG.md CHANGED
@@ -2,6 +2,13 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
+ ### [0.2.58](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.2.57...v0.2.58) (2025-01-03)
6
+
7
+
8
+ ### ✨ Features | 新功能
9
+
10
+ * 调整地图搜索 ([d8fe5fd](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/d8fe5fd3bd08e68cf39f76ca19e2419c6d747608))
11
+
5
12
  ### [0.2.57](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.2.55...v0.2.57) (2025-01-03)
6
13
 
7
14
 
@@ -57,7 +57,7 @@
57
57
  </template>
58
58
 
59
59
  <script setup lang="ts">
60
- import { ref, watch } from 'vue'
60
+ import { ref, watch, provide } from 'vue'
61
61
  import { ChildHotAddress, getAddressList, LcbAddress } from './api'
62
62
  import LcbCityLetter from './components/lcb-city-letter/index.vue'
63
63
  import LcbCityList from './components/lcb-city-list/index.vue'
@@ -75,6 +75,8 @@ defineOptions({
75
75
  const props = withDefaults(defineProps<LcbCitySelectProps>(), {
76
76
  placeholder: '搜索城市/区域/景点',
77
77
  })
78
+ const historyList = ref<LcbAddress[]>(uni.getStorageSync('historyAddress') || [])
79
+ provide('lcb-city-history', historyList)
78
80
  const modelValue = defineModel<ChildHotAddress>()
79
81
  const isOver = ref(false)
80
82
  const searchValue = ref('')
@@ -93,13 +95,13 @@ const onCancel = () => {
93
95
  }
94
96
 
95
97
  const onAddressClick = (item: LcbAddress) => {
96
- if (item.addrFlag) {
97
- modelValue.value = item as ChildHotAddress
98
- } else {
99
- uni.navigateTo({
100
- url: `/pages/residentialHotel/index?${qs.stringify(item)}`,
101
- })
102
- }
98
+ // if (item.addrFlag) {
99
+ modelValue.value = item as ChildHotAddress
100
+ // } else {
101
+ // uni.navigateTo({
102
+ // url: `/pages/residentialHotel/index?${qs.stringify(item)}`,
103
+ // })
104
+ // }
103
105
  onCancel()
104
106
  show.value = false
105
107
  }
@@ -150,6 +152,16 @@ const search = debounce(async () => {
150
152
  const { data } = await getAddressList(searchValue.value)
151
153
  lcbAddress.value = data
152
154
  }, 200)
155
+
156
+ watch(
157
+ () => historyList.value,
158
+ (val) => {
159
+ uni.setStorageSync('historyAddress', val)
160
+ },
161
+ {
162
+ deep: true,
163
+ },
164
+ )
153
165
  </script>
154
166
 
155
167
  <style lang="scss" scoped>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tplc/business",
3
- "version": "0.2.57",
3
+ "version": "0.2.58",
4
4
  "keywords": [
5
5
  "业务组件"
6
6
  ],