@tplc/business 0.4.111 → 0.4.112

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,41 @@
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.112](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.4.102...v0.4.112) (2025-05-14)
6
+
7
+
8
+ ### 🐛 Bug Fixes | Bug 修复
9
+
10
+ * nav 判断 ([6fd5aa6](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/6fd5aa6e27722e1a17ebd637cf4b1c29d0599eab))
11
+
12
+
13
+ ### 🚀 Chore | 构建/工程依赖/工具
14
+
15
+ * **release:** 0.1.84 ([978a423](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/978a423888285828ef7a67be92d7a768939177bf))
16
+ * **release:** 0.4.103 ([a4a3273](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/a4a3273778bac7bdec891583d5e49023a971fb47))
17
+ * **release:** 0.4.104 ([b8893d9](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/b8893d9bfc936b60ef446fc870a62969f42494a3))
18
+ * **release:** 0.4.105 ([a72733f](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/a72733ffa323ae64de31ddf523adddbc1ec0fe12))
19
+ * **release:** 0.4.106 ([d01fdf2](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/d01fdf265ede3dae9a06411f818e21276e40954d))
20
+ * **release:** 0.4.107 ([f35a30e](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/f35a30ecfe25f99fe5aabd6eba304bb162d2df52))
21
+ * **release:** 0.4.108 ([db82232](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/db82232c95953ac1e803a3e299a8c918902cd1ec))
22
+ * **release:** 0.4.109 ([4dacd17](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/4dacd172af9e5141ee2fe8b888e717e1164fc18f))
23
+ * **release:** 0.4.110 ([6fa19ee](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/6fa19ee9cae724ef63dce386351b2efc59d69e0b))
24
+ * **release:** 0.4.111 ([3608ea5](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/3608ea5b67a2e959bc8e5586b4f64a0ece9ab6c9))
25
+
26
+
27
+ ### ✨ Features | 新功能
28
+
29
+ * swiper 兼容小程序pc ([677655c](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/677655c96596404322b76258db277d530c66f8e5))
30
+ * 兼容布局 ([7b50990](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/7b50990b737c4a1d7a1ebf05f1b5c49194709dec))
31
+ * 同步button text ([54e3778](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/54e3778dd724cfa489ef911c6cb37383001f9075))
32
+ * 定位调整为gcj02 ([9bf188c](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/9bf188c1216959c75ea7583254bfc87684d5245a))
33
+ * 对比修改 ([2decf5d](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/2decf5d485bd6d9c197d1d9fd2566bbcb29d9ffb))
34
+ * 对比值对比 ([9673e9a](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/9673e9ae729a0d539bf30d2c9fe48dd151bd119d))
35
+ * 新增下载地址 ([0885ce4](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/0885ce48b5fc836461c0df3191cb2abb1605262e))
36
+ * 新增骨架屏 ([6f837dd](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/6f837ddb1c1db52b25ec2155461a4cade58bfc09))
37
+ * 暂时提交骨架屏 ([4314836](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/43148361462a43b75f4f80806b6021d979b398d5))
38
+ * 系统参数变更 ([056e443](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/056e443c95c7cddadf15277ac2114255776a9142))
39
+
5
40
  ### [0.4.111](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.4.110...v0.4.111) (2025-05-12)
6
41
 
7
42
 
@@ -263,6 +263,24 @@ const onActionClick = async () => {
263
263
  case 142:
264
264
  onTemplateMessage()
265
265
  break
266
+ case 143:
267
+ if (jumpUrl) {
268
+ uni.downloadFile({
269
+ url: jumpUrl,
270
+ success: (res) => {
271
+ uni.saveImageToPhotosAlbum({
272
+ filePath: res.tempFilePath,
273
+ success: () => {
274
+ uni.showToast({
275
+ title: '下载成功',
276
+ icon: 'none',
277
+ })
278
+ },
279
+ })
280
+ },
281
+ })
282
+ }
283
+ break
266
284
  default:
267
285
  emits('click')
268
286
  break
@@ -16,6 +16,7 @@ export type LcbActionViewProps = {
16
16
  * 88: 授权手机号 101 用户头像 102 分享 103 意见反馈 104 打开授权设置页
17
17
  * 105 查看地图 106 查看地图 141 二维码 241 返回并刷新上个页面 142 模板消息
18
18
  * 107 图片预览
19
+ * 143 下载图片
19
20
  */
20
21
  jumpType?:
21
22
  | 1
@@ -38,6 +39,7 @@ export type LcbActionViewProps = {
38
39
  | 103
39
40
  | 104
40
41
  | 241
42
+ | 143
41
43
 
42
44
  /** 小程序appid */
43
45
  jumpAppid?: string
@@ -69,7 +69,7 @@ const saveHistory = (keyword: ProductInfo) => {
69
69
  try {
70
70
  const list = historyList.value
71
71
  // 删除已存在的相同记录
72
- const index = list.findIndex((item) => item.productInfoId === keyword.productInfoId)
72
+ const index = list.findIndex((item) => item.productName === keyword.productName)
73
73
  if (index !== -1) {
74
74
  list.splice(index, 1)
75
75
  }
@@ -54,7 +54,7 @@ const useLocation = (onLocation?: (location: UserLocation) => void) => {
54
54
  locationIng.value = true
55
55
  await new Promise<void>((resolve) => {
56
56
  uni.getLocation({
57
- // type: 'gcj02',
57
+ type: 'gcj02',
58
58
  // type: 'wgs84',
59
59
  success: function (res) {
60
60
  currentUserLatLon.value = res
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tplc/business",
3
- "version": "0.4.111",
3
+ "version": "0.4.112",
4
4
  "keywords": [
5
5
  "业务组件"
6
6
  ],
@@ -15,6 +15,7 @@ export type LcbActionViewProps = {
15
15
  * 88: 授权手机号 101 用户头像 102 分享 103 意见反馈 104 打开授权设置页
16
16
  * 105 查看地图 106 查看地图 141 二维码 241 返回并刷新上个页面 142 模板消息
17
17
  * 107 图片预览
18
+ * 143 下载图片
18
19
  */
19
20
  jumpType?:
20
21
  | 1
@@ -37,6 +38,7 @@ export type LcbActionViewProps = {
37
38
  | 103
38
39
  | 104
39
40
  | 241
41
+ | 143
40
42
  /** 小程序appid */
41
43
  jumpAppid?: string
42
44
  /** 弹窗文案 */
@@ -95,6 +95,7 @@ declare const _default: import('vue').DefineComponent<
95
95
  | 103
96
96
  | 104
97
97
  | 241
98
+ | 143
98
99
  jumpAppid?: string
99
100
  content?: string
100
101
  title?: string