@tplc/business 0.3.41 → 0.3.43
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,36 @@
|
|
|
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.43](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.3.41...v0.3.43) (2025-02-13)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### 🚀 Chore | 构建/工程依赖/工具
|
|
9
|
+
|
|
10
|
+
* **release:** 0.3.42 ([a32c4e1](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/a32c4e110768f859224e3b82e4dc66e51e9610e0))
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### ✨ Features | 新功能
|
|
14
|
+
|
|
15
|
+
* 刷新当前页面 ([461f20c](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/461f20c7e47e994730713fedeb6d5fde984759aa))
|
|
16
|
+
* 支持协议 ([4c88106](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/4c88106dd53b609461862356c7e18fdef63d8b11))
|
|
17
|
+
|
|
18
|
+
### [0.3.42](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.3.37...v0.3.42) (2025-02-12)
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
### 🚀 Chore | 构建/工程依赖/工具
|
|
22
|
+
|
|
23
|
+
* **release:** 0.3.38 ([c5217bb](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/c5217bbe78935df6fc86d557fa13a876ffe39ab5))
|
|
24
|
+
* **release:** 0.3.39 ([8f11cfa](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/8f11cfa82531fe08b28aa60406d29e55abe646bb))
|
|
25
|
+
* **release:** 0.3.40 ([5b0a9c7](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/5b0a9c72639b69413f9926116e51a52407992e73))
|
|
26
|
+
* **release:** 0.3.41 ([a2a4271](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/a2a4271e0e859f0177a2220b0d2c319f5e8ffcbe))
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
### ✨ Features | 新功能
|
|
30
|
+
|
|
31
|
+
* vip完善样式 ([1aa72cb](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/1aa72cba21e651469afcf841733a6e9ff5b40a48))
|
|
32
|
+
* 刷新当前页面 ([461f20c](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/461f20c7e47e994730713fedeb6d5fde984759aa))
|
|
33
|
+
* 新增btn cancel ([ce2e4f2](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/ce2e4f27ed09c8432ea1cd6ae9ae589a1103d946))
|
|
34
|
+
|
|
5
35
|
### [0.3.41](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.3.40...v0.3.41) (2025-02-12)
|
|
6
36
|
|
|
7
37
|
### [0.3.40](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.3.39...v0.3.40) (2025-02-12)
|
|
@@ -70,15 +70,13 @@ const dayRange = ref([
|
|
|
70
70
|
form.value.endDate ? dayjs(form.value.endDate).valueOf() : dayjs().add(1, 'day').valueOf(),
|
|
71
71
|
])
|
|
72
72
|
const { translate } = useTranslate()
|
|
73
|
-
const { getLocation, userLocation
|
|
73
|
+
const { getLocation, userLocation } = useLocation()
|
|
74
74
|
|
|
75
75
|
watch(
|
|
76
76
|
() => addressCity.value,
|
|
77
77
|
(val) => {
|
|
78
78
|
if (val) {
|
|
79
79
|
form.value.cityId = val?.cityId
|
|
80
|
-
form.value.userLatitude = userLatLon.value?.latitude
|
|
81
|
-
form.value.userLongitude = userLatLon.value?.longitude
|
|
82
80
|
if (val.keywords) {
|
|
83
81
|
form.value.keywords = val.keywords
|
|
84
82
|
}
|
package/hooks/useLocation.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { useTranslate } from '@tplc/wot'
|
|
2
2
|
import { ref } from 'vue'
|
|
3
3
|
import { getUserLocation, UserLocation } from './useLocation.api'
|
|
4
|
-
const currentLocation = ref<UserLocation>()
|
|
5
|
-
const currentUserLatLon = ref<UniApp.GetLocationSuccess>()
|
|
4
|
+
export const currentLocation = ref<UserLocation>()
|
|
5
|
+
export const currentUserLatLon = ref<UniApp.GetLocationSuccess>()
|
|
6
6
|
const useLocation = () => {
|
|
7
7
|
const { translate } = useTranslate()
|
|
8
8
|
// 正在获取经纬度
|
package/package.json
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import { UserLocation } from './useLocation.api'
|
|
2
|
+
export declare const currentLocation: import('vue').Ref<UserLocation | undefined>
|
|
3
|
+
export declare const currentUserLatLon: import('vue').Ref<UniApp.GetLocationSuccess | undefined>
|
|
2
4
|
declare const useLocation: () => {
|
|
3
5
|
getLocation: (force?: boolean) => Promise<void>
|
|
4
6
|
locationIng: import('vue').Ref<boolean>
|