@tplc/business 0.3.54 → 0.3.56
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 +37 -0
- package/components/lcb-action-view/lcb-action-view.vue +5 -1
- package/components/lcb-action-view/types.ts +2 -1
- package/components/lcb-calendar-search/lcb-calendar-search.vue +13 -8
- package/components/lcb-city-select/components/lcb-city-letter/index.vue +5 -4
- package/components/lcb-city-select/components/lcb-city-list/index.vue +4 -3
- package/package.json +1 -1
- package/types/components/lcb-action-view/types.d.ts +2 -1
- package/utils/utils.ts +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,43 @@
|
|
|
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.56](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.3.54...v0.3.56) (2025-02-21)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### 🚀 Chore | 构建/工程依赖/工具
|
|
9
|
+
|
|
10
|
+
* **release:** 0.3.55 ([887edd6](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/887edd642400c561dcbf7a56746d9ef8564e5c17))
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### ✨ Features | 新功能
|
|
14
|
+
|
|
15
|
+
* cancel ([f63cd15](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/f63cd1541dac3a592233eb6479012d7869fde91d))
|
|
16
|
+
* 新增241 ([3550874](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/355087493cc8275a2602bb51bafed07f1d3c9658))
|
|
17
|
+
|
|
18
|
+
### [0.3.55](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.3.49...v0.3.55) (2025-02-20)
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
### 🚀 Chore | 构建/工程依赖/工具
|
|
22
|
+
|
|
23
|
+
* **release:** 0.1.61 ([db6aaa3](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/db6aaa33beaa34a27285added8d94aa10f3a26da))
|
|
24
|
+
* **release:** 0.3.50 ([990e043](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/990e043fa2556ceeac9789823f12231d3f63fe22))
|
|
25
|
+
* **release:** 0.3.51 ([d32817b](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/d32817b1dc05971f680d1203cdec927ae3714ca9))
|
|
26
|
+
* **release:** 0.3.52 ([11a1487](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/11a1487b0fe414c742f589323c790ed6daf0b36d))
|
|
27
|
+
* **release:** 0.3.53 ([462f2d0](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/462f2d0703bf3d2f67e550c470e7a2c148efbdbb))
|
|
28
|
+
* **release:** 0.3.54 ([6b16cff](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/6b16cff1d635eec4aee009e029d9cba813fbf486))
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
### ✨ Features | 新功能
|
|
32
|
+
|
|
33
|
+
* cancel ([f63cd15](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/f63cd1541dac3a592233eb6479012d7869fde91d))
|
|
34
|
+
* map 初始化 ([4793f89](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/4793f89a6565eea9d089038627ca9fb49453c856))
|
|
35
|
+
* 二维码权限 ([93bc3ff](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/93bc3ff12f3b8db6b6a2e50355ce90501b362d86))
|
|
36
|
+
* 修改collapse viewmore hidden 样式 ([d366f1c](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/d366f1c423edb89a59546d2f5803df8d4f77f785))
|
|
37
|
+
* 同步字段 ([b34ceb2](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/b34ceb2c7d7bea820c31ebdfd0a98d8971647e09))
|
|
38
|
+
* 新增mapcatch ([cfa54e0](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/cfa54e0fc77933171a5dd2ae49a083f6cb990516))
|
|
39
|
+
* 新增popup safe判断 ([539a081](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/539a08168621193a6435431f5b4277875a50efe0))
|
|
40
|
+
* 比例尺调整 ([835e7c2](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/835e7c23faa7dea09697d9446c8a2ea1afa8bd42))
|
|
41
|
+
|
|
5
42
|
### [0.3.54](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.1.61...v0.3.54) (2025-02-19)
|
|
6
43
|
|
|
7
44
|
|
|
@@ -48,7 +48,7 @@ import { computed, ref } from 'vue'
|
|
|
48
48
|
import { LcbActionViewProps } from './types'
|
|
49
49
|
import { uploadFile } from '../../hooks/useUpload'
|
|
50
50
|
import mpHtml from 'mp-html/src/uni-app/components/mp-html/mp-html.vue'
|
|
51
|
-
import { getFinalUrl, onPageScrollSelector } from '../../utils/utils'
|
|
51
|
+
import { getFinalUrl, onPageScrollSelector, getExposed } from '../../utils/utils'
|
|
52
52
|
import SharePopup from '../lcb-nav/SharePopup/index.vue'
|
|
53
53
|
import { useTranslate } from '@tplc/wot'
|
|
54
54
|
const { translate } = useTranslate()
|
|
@@ -209,6 +209,10 @@ const onActionClick = async () => {
|
|
|
209
209
|
case 141:
|
|
210
210
|
show.value = true
|
|
211
211
|
break
|
|
212
|
+
case 241:
|
|
213
|
+
getExposed?.()?.reload?.()
|
|
214
|
+
uni.navigateBack()
|
|
215
|
+
break
|
|
212
216
|
default:
|
|
213
217
|
emits('click')
|
|
214
218
|
break
|
|
@@ -13,7 +13,7 @@ export type LcbActionViewProps = {
|
|
|
13
13
|
* 13: 退出登录 14: 小程序弹框 16: 小程序锚点 17 网络请求 21: 新窗口跳到页面 22: 切换TAB页 23: 重启进入某页面
|
|
14
14
|
* 24: 回到上一层 25: 关闭当前页面 26: 关闭当前窗口 30: 拨打电话
|
|
15
15
|
* 88: 授权手机号 101 用户头像 102 分享 103 意见反馈 104 打开授权设置页
|
|
16
|
-
* 105 查看地图 106 查看地图 141 二维码
|
|
16
|
+
* 105 查看地图 106 查看地图 141 二维码 241 返回并刷新上个页面
|
|
17
17
|
*/
|
|
18
18
|
jumpType?:
|
|
19
19
|
| 1
|
|
@@ -36,6 +36,7 @@ export type LcbActionViewProps = {
|
|
|
36
36
|
| 102
|
|
37
37
|
| 103
|
|
38
38
|
| 104
|
|
39
|
+
| 241
|
|
39
40
|
|
|
40
41
|
/** 小程序appid */
|
|
41
42
|
jumpAppid?: string
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
import { useTranslate } from '@tplc/wot'
|
|
43
43
|
import dayjs from 'dayjs/esm'
|
|
44
44
|
import useLocation from '../../hooks/useLocation'
|
|
45
|
-
import { inject, Ref, ref, watch } from 'vue'
|
|
45
|
+
import { inject, onMounted, Ref, ref, watch } from 'vue'
|
|
46
46
|
import { LcbCalendarSearchProps } from './types'
|
|
47
47
|
import { LcbAddress } from '../lcb-city-select/api'
|
|
48
48
|
import { FORM_KEY } from '../../constants'
|
|
@@ -84,17 +84,22 @@ watch(
|
|
|
84
84
|
},
|
|
85
85
|
)
|
|
86
86
|
|
|
87
|
-
watch(
|
|
88
|
-
() => dayRange.value,
|
|
89
|
-
(val) => {
|
|
90
|
-
form.value.startDate = dayjs(val[0]).format('YYYY-MM-DD')
|
|
91
|
-
form.value.endDate = dayjs(val[1]).format('YYYY-MM-DD')
|
|
92
|
-
},
|
|
93
|
-
)
|
|
94
87
|
getLocation()
|
|
95
88
|
const onSearch = (e) => {
|
|
96
89
|
form.value.keywords = e.target.value
|
|
97
90
|
}
|
|
91
|
+
onMounted(() => {
|
|
92
|
+
if (form.value.startDate) {
|
|
93
|
+
dayRange.value = [dayjs(form.value.startDate).valueOf(), dayjs(form.value.endDate).valueOf()]
|
|
94
|
+
}
|
|
95
|
+
watch(
|
|
96
|
+
() => dayRange.value,
|
|
97
|
+
(val) => {
|
|
98
|
+
form.value.startDate = dayjs(val[0]).format('YYYY-MM-DD')
|
|
99
|
+
form.value.endDate = dayjs(val[1]).format('YYYY-MM-DD')
|
|
100
|
+
},
|
|
101
|
+
)
|
|
102
|
+
})
|
|
98
103
|
</script>
|
|
99
104
|
|
|
100
105
|
<style lang="scss" scoped>
|
|
@@ -127,10 +127,11 @@ const onAddrClick = (city: ChildHotAddress, letter = false) => {
|
|
|
127
127
|
className: '',
|
|
128
128
|
}
|
|
129
129
|
modelValue.value = currentCity
|
|
130
|
-
historyList.value =
|
|
131
|
-
(
|
|
132
|
-
|
|
133
|
-
|
|
130
|
+
historyList.value =
|
|
131
|
+
historyList.value?.filter(
|
|
132
|
+
(historyItem) =>
|
|
133
|
+
`${historyItem.keywords},${historyItem.addr}` !== `${city.keywords},${city.addr}`,
|
|
134
|
+
) || []
|
|
134
135
|
if (historyList.value.length === 8) {
|
|
135
136
|
historyList.value = [currentCity as unknown as LcbAddress, ...historyList.value.slice(0, 7)]
|
|
136
137
|
} else {
|
|
@@ -59,9 +59,10 @@ const getText = (text: string) => {
|
|
|
59
59
|
}
|
|
60
60
|
const onItemClick = (item: LcbAddress) => {
|
|
61
61
|
const addr = `${item.keywords},${item.addr}`
|
|
62
|
-
historyList.value =
|
|
63
|
-
(
|
|
64
|
-
|
|
62
|
+
historyList.value =
|
|
63
|
+
historyList.value?.filter(
|
|
64
|
+
(historyItem) => `${historyItem.keywords},${historyItem.addr}` !== addr,
|
|
65
|
+
) || []
|
|
65
66
|
historyList.value.unshift(item)
|
|
66
67
|
emits('click', item)
|
|
67
68
|
}
|
package/package.json
CHANGED
|
@@ -12,7 +12,7 @@ export type LcbActionViewProps = {
|
|
|
12
12
|
* 13: 退出登录 14: 小程序弹框 16: 小程序锚点 17 网络请求 21: 新窗口跳到页面 22: 切换TAB页 23: 重启进入某页面
|
|
13
13
|
* 24: 回到上一层 25: 关闭当前页面 26: 关闭当前窗口 30: 拨打电话
|
|
14
14
|
* 88: 授权手机号 101 用户头像 102 分享 103 意见反馈 104 打开授权设置页
|
|
15
|
-
* 105 查看地图 106 查看地图 141 二维码
|
|
15
|
+
* 105 查看地图 106 查看地图 141 二维码 241 返回并刷新上个页面
|
|
16
16
|
*/
|
|
17
17
|
jumpType?:
|
|
18
18
|
| 1
|
|
@@ -35,6 +35,7 @@ export type LcbActionViewProps = {
|
|
|
35
35
|
| 102
|
|
36
36
|
| 103
|
|
37
37
|
| 104
|
|
38
|
+
| 241
|
|
38
39
|
/** 小程序appid */
|
|
39
40
|
jumpAppid?: string
|
|
40
41
|
/** 手机号 */
|
package/utils/utils.ts
CHANGED
|
@@ -35,11 +35,11 @@ export const getCurrentPage = () => {
|
|
|
35
35
|
}
|
|
36
36
|
/** 合并url参数 url = /pages/data/index?id=1&name=2 urlParams = id=1&name=2&type=1 */
|
|
37
37
|
export const getFinalUrl = (url: string, urlParams?: string) => {
|
|
38
|
-
|
|
39
|
-
const
|
|
40
|
-
const query = parse(url.split('?')[1])
|
|
38
|
+
const params = parse(urlParams || '')
|
|
39
|
+
const query = parse(url.split('?')[1] || '')
|
|
41
40
|
const path = url.split('?')[0]
|
|
42
41
|
return `${path}?${stringify({
|
|
42
|
+
...getCurrentPage().options,
|
|
43
43
|
...query,
|
|
44
44
|
...params,
|
|
45
45
|
})}`
|