@tplc/business 0.4.70 → 0.4.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.4.71](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.4.70...v0.4.71) (2025-04-12)
6
+
5
7
  ### [0.4.70](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.1.81...v0.4.70) (2025-04-12)
6
8
 
7
9
  ### [0.4.69](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.1.80...v0.4.69) (2025-04-10)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tplc/business",
3
- "version": "0.4.70",
3
+ "version": "0.4.71",
4
4
  "keywords": [
5
5
  "业务组件"
6
6
  ],
@@ -2,4 +2,4 @@ import { ChildHotAddress } from '../components/lcb-city-select/api'
2
2
  /** 设置城市历史记录 */
3
3
  export declare const setHistoryCity: (address?: ChildHotAddress) => void
4
4
  /** 获取城市历史记录如果超过3天就不使用历史 */
5
- export declare const getHistoryCity: () => ChildHotAddress | undefined
5
+ export declare const getHistoryCity: () => any
package/utils/history.ts CHANGED
@@ -2,6 +2,7 @@ import { ChildHotAddress } from '../components/lcb-city-select/api'
2
2
 
3
3
  /** 设置城市历史记录 */
4
4
  export const setHistoryCity = (address?: ChildHotAddress) => {
5
+ getApp().globalData!.currentCity = address
5
6
  uni.setStorageSync('cityHistory', {
6
7
  address,
7
8
  time: new Date().getTime(),
@@ -17,5 +18,7 @@ export const getHistoryCity = () => {
17
18
  (uni.$lcb.constantsStore?.().mainConfig?.cityExpirationTime || 0)
18
19
  ) {
19
20
  return history.address as ChildHotAddress
21
+ } else {
22
+ return getApp().globalData!.currentCity
20
23
  }
21
24
  }