@tplc/business 0.3.6 → 0.3.8

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,17 @@
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.8](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.3.6...v0.3.8) (2025-01-19)
6
+
7
+
8
+ ### ✨ Features | 新功能
9
+
10
+ * picker 支持button ([2ce0e83](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/2ce0e8382e22114cbed52d95d6dabd10946ce2fb))
11
+ * preview ([a25cfd5](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/a25cfd57cd7da7608755c0f31b66dbca690bbcce))
12
+ * update search ([83ea1bd](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/83ea1bd6d4318628cb0a9d771c663554b5547976))
13
+ * 定位2天过期时间 ([3c9b7cf](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/3c9b7cf506d55d60ff748ab11b20d5781c73b10f))
14
+ * 新增action ([a81d53a](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/a81d53a501f088dad9e906bc62b89cb8f3685706))
15
+
5
16
  ### [0.3.6](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.3.5...v0.3.6) (2025-01-15)
6
17
 
7
18
  ### [0.3.5](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.3.4...v0.3.5) (2025-01-15)
@@ -63,7 +63,6 @@ import LcbCityLetter from './components/lcb-city-letter/index.vue'
63
63
  import LcbCityList from './components/lcb-city-list/index.vue'
64
64
  import { LcbCitySelectProps } from './types'
65
65
  import { debounce } from '@tplc/wot/components/common/util'
66
- import qs from 'qs'
67
66
  defineOptions({
68
67
  name: 'LcbCitySelect',
69
68
  options: {
@@ -84,7 +84,7 @@
84
84
  </lcb-calendar>
85
85
  <lcb-action-view v-bind="link" :urlParams="stringify(form)">
86
86
  <wd-button type="primary" customClass="!w-full my-42rpx" size="large">
87
- {{ btnText }}
87
+ {{ btnText || `${translate('搜索')}${tabs?.[current]?.label || ''}` }}
88
88
  </wd-button>
89
89
  </lcb-action-view>
90
90
  <view
@@ -134,7 +134,6 @@ const props = withDefaults(defineProps<LcbHomeSearch>(), {
134
134
  backgroundColor: '#ffffff',
135
135
  radius: 16,
136
136
  placeholder: '位置|酒店|关键词',
137
- btnText: '搜索酒店',
138
137
  opacity: 1,
139
138
  })
140
139
 
@@ -21,6 +21,12 @@ const useLocation = () => {
21
21
 
22
22
  // 引导用户前往设置页面重新授权
23
23
  function navigateToSettings() {
24
+ /** 48小时提醒一次 */
25
+ const lastTime = uni.getStorageSync('location_last_time')
26
+ if (lastTime && new Date().getTime() - lastTime < 48 * 60 * 60 * 1000) {
27
+ return
28
+ }
29
+ uni.setStorageSync('location_last_time', new Date().getTime())
24
30
  uni.showModal({
25
31
  title: translate('定位权限申请'),
26
32
  content: translate('您尚未开启定位权限,无法正常使用该功能,请前往设置页面开启。'),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tplc/business",
3
- "version": "0.3.6",
3
+ "version": "0.3.8",
4
4
  "keywords": [
5
5
  "业务组件"
6
6
  ],
@@ -11,7 +11,7 @@
11
11
  },
12
12
  "peerDependencies": {
13
13
  "vue": ">=3.2.47",
14
- "@tplc/wot": "0.1.53"
14
+ "@tplc/wot": "0.1.54"
15
15
  },
16
16
  "engines": {
17
17
  "node": ">=18",
@@ -7,7 +7,6 @@ declare const _default: import('vue').DefineComponent<
7
7
  backgroundColor: string
8
8
  radius: number
9
9
  placeholder: string
10
- btnText: string
11
10
  opacity: number
12
11
  }
13
12
  >,
@@ -29,7 +28,6 @@ declare const _default: import('vue').DefineComponent<
29
28
  backgroundColor: string
30
29
  radius: number
31
30
  placeholder: string
32
- btnText: string
33
31
  opacity: number
34
32
  }
35
33
  >
@@ -41,7 +39,6 @@ declare const _default: import('vue').DefineComponent<
41
39
  placeholder: string
42
40
  marginHorizontal: number
43
41
  opacity: number
44
- btnText: string
45
42
  },
46
43
  {}
47
44
  >