@tplc/business 0.3.70 → 0.3.72

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,15 @@
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.3.72](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.3.71...v0.3.72) (2025-03-07)
6
+
7
+
8
+ ### ✨ Features | 新功能
9
+
10
+ * 城市数据cache ([5ca0c2a](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/5ca0c2a88de63694f64c6c60c96621e705b01b72))
11
+
12
+ ### [0.3.71](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.3.70...v0.3.71) (2025-03-06)
13
+
5
14
  ### [0.3.70](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.3.66...v0.3.70) (2025-03-06)
6
15
 
7
16
 
@@ -104,7 +104,6 @@ const onAddressClick = (item: LcbAddress) => {
104
104
  // url: `/pages/residentialHotel/index?${qs.stringify(item)}`,
105
105
  // })
106
106
  // }
107
- setHistoryCity(item as ChildHotAddress)
108
107
  onCancel()
109
108
  show.value = false
110
109
  }
@@ -128,6 +127,7 @@ watch(
128
127
  watch(
129
128
  () => modelValue.value,
130
129
  () => {
130
+ setHistoryCity(modelValue.value)
131
131
  show.value = false
132
132
  },
133
133
  )
@@ -57,7 +57,7 @@
57
57
  />
58
58
  <img
59
59
  v-else
60
- class="block"
60
+ class="block object-contain"
61
61
  :style="{
62
62
  borderRadius: iconRadius + 'rpx',
63
63
  height: iconSize + 'rpx',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tplc/business",
3
- "version": "0.3.70",
3
+ "version": "0.3.72",
4
4
  "keywords": [
5
5
  "业务组件"
6
6
  ],
@@ -1,5 +1,5 @@
1
1
  import { ChildHotAddress } from '../components/lcb-city-select/api'
2
2
  /** 设置城市历史记录 */
3
- export declare const setHistoryCity: (address: ChildHotAddress) => void
3
+ export declare const setHistoryCity: (address?: ChildHotAddress) => void
4
4
  /** 获取城市历史记录如果超过3天就不使用历史 */
5
5
  export declare const getHistoryCity: () => ChildHotAddress | undefined
package/utils/history.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import { ChildHotAddress } from '../components/lcb-city-select/api'
2
2
 
3
3
  /** 设置城市历史记录 */
4
- export const setHistoryCity = (address: ChildHotAddress) => {
4
+ export const setHistoryCity = (address?: ChildHotAddress) => {
5
5
  uni.setStorageSync('cityHistory', {
6
6
  address,
7
7
  time: new Date().getTime(),