@tplc/business 0.3.70 → 0.3.71
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,8 @@
|
|
|
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.71](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.3.70...v0.3.71) (2025-03-06)
|
|
6
|
+
|
|
5
7
|
### [0.3.70](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.3.66...v0.3.70) (2025-03-06)
|
|
6
8
|
|
|
7
9
|
|
|
@@ -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
|
)
|
package/package.json
CHANGED
package/types/utils/history.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ChildHotAddress } from '../components/lcb-city-select/api'
|
|
2
2
|
/** 设置城市历史记录 */
|
|
3
|
-
export declare const setHistoryCity: (address
|
|
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
|
|
4
|
+
export const setHistoryCity = (address?: ChildHotAddress) => {
|
|
5
5
|
uni.setStorageSync('cityHistory', {
|
|
6
6
|
address,
|
|
7
7
|
time: new Date().getTime(),
|