@tplc/business 0.5.40 → 0.5.42
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 +22 -0
- package/components/lcb-action-view/components/CustomPopup/index.vue +2 -3
- package/components/lcb-action-view/lcb-action-view.vue +22 -0
- package/components/lcb-action-view/types.ts +4 -0
- package/components/lcb-nav/lcb-nav.vue +27 -1
- package/package.json +1 -1
- package/types/components/lcb-action-view/lcb-action-view.vue.d.ts +1 -1
- package/types/components/lcb-action-view/types.d.ts +4 -0
- package/types/components/lcb-search/lcb-search.vue.d.ts +111 -0
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,28 @@
|
|
|
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.5.42](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/compare/v0.5.39...v0.5.42) (2025-11-05)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### 🚀 Chore | 构建/工程依赖/工具
|
|
9
|
+
|
|
10
|
+
* **release:** 0.5.40 ([18ca5bd](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/18ca5bdb403d13d0a2ba6da7cfa7ec3e8f56fb87))
|
|
11
|
+
* **release:** 0.5.41 ([6226ff0](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/6226ff0ceeb7e75a47a6380d309c689389dac6c7))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
### ✨ Features | 新功能
|
|
15
|
+
|
|
16
|
+
* 修改用户 ([d77e420](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/d77e42066ab0241c7d79432ff4cbb05d4403784a))
|
|
17
|
+
* 支持二维码 ([18a1730](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/18a17306334e84fbf2fb1fa31c560864735c8060))
|
|
18
|
+
* 新增轮询 以及 qrcode ([b3c2b59](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/b3c2b590f1c9812b546b6db677f7b53c2a7183e9))
|
|
19
|
+
|
|
20
|
+
### [0.5.41](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/compare/v0.5.40...v0.5.41) (2025-11-05)
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
### ✨ Features | 新功能
|
|
24
|
+
|
|
25
|
+
* 新增轮询 以及 qrcode ([b3c2b59](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/b3c2b590f1c9812b546b6db677f7b53c2a7183e9))
|
|
26
|
+
|
|
5
27
|
### [0.5.40](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/compare/v0.5.33...v0.5.40) (2025-11-05)
|
|
6
28
|
|
|
7
29
|
|
|
@@ -67,18 +67,17 @@ watch(
|
|
|
67
67
|
)
|
|
68
68
|
|
|
69
69
|
const startTimer = () => {
|
|
70
|
+
getRequestData()
|
|
70
71
|
if (pageInfo.value?.page?.refreshTime) {
|
|
71
72
|
timer.value = setInterval(() => {
|
|
72
73
|
getRequestData()
|
|
73
74
|
}, pageInfo.value?.page?.refreshTime * 1000)
|
|
74
|
-
} else {
|
|
75
|
-
getRequestData()
|
|
76
75
|
}
|
|
77
76
|
}
|
|
78
77
|
|
|
79
78
|
const getRequestData = async () => {
|
|
80
79
|
if (pageInfo.value?.page?.requestApi) {
|
|
81
|
-
const { data } = (await uni.$lcb.http.post(
|
|
80
|
+
const { data } = (await uni.$lcb.http.post(pageInfo.value?.page?.requestApi, {
|
|
82
81
|
pageType: props.jumpUrl,
|
|
83
82
|
})) as any
|
|
84
83
|
popupInfo.value = {
|
|
@@ -317,6 +317,28 @@ const onActionClick = async () => {
|
|
|
317
317
|
case 145:
|
|
318
318
|
showCustomPopup.value = true
|
|
319
319
|
break
|
|
320
|
+
case 146:
|
|
321
|
+
uni.scanCode({
|
|
322
|
+
success: ({ result: url }) => {
|
|
323
|
+
if (url.includes('plugin://kivicube-slam/scene')) {
|
|
324
|
+
uni.redirectTo({
|
|
325
|
+
url,
|
|
326
|
+
})
|
|
327
|
+
} else {
|
|
328
|
+
uni.navigateBack({
|
|
329
|
+
success: () => {
|
|
330
|
+
uni.showToast({
|
|
331
|
+
title: '请扫描正确的二维码',
|
|
332
|
+
icon: 'none',
|
|
333
|
+
duration: 1500,
|
|
334
|
+
})
|
|
335
|
+
},
|
|
336
|
+
})
|
|
337
|
+
}
|
|
338
|
+
},
|
|
339
|
+
fail: () => uni.navigateBack({}),
|
|
340
|
+
})
|
|
341
|
+
break
|
|
320
342
|
default:
|
|
321
343
|
emits('click', props)
|
|
322
344
|
break
|
|
@@ -103,6 +103,9 @@ export type LcbActionViewProps = {
|
|
|
103
103
|
jumpType: 142
|
|
104
104
|
events: string
|
|
105
105
|
}
|
|
106
|
+
| {
|
|
107
|
+
jumpType: 146
|
|
108
|
+
}
|
|
106
109
|
)
|
|
107
110
|
|
|
108
111
|
// 根据LcbActionViewProps 的jumTyp帮我生成一份英文映射 key为英文 value 为number
|
|
@@ -135,4 +138,5 @@ export const jumpTypeMap = {
|
|
|
135
138
|
templateMessage: 142,
|
|
136
139
|
'mixture-pay': 144,
|
|
137
140
|
customPopup: 145,
|
|
141
|
+
arScan: 146,
|
|
138
142
|
}
|
|
@@ -296,9 +296,35 @@ const onCapsule = ({ action }: ICapsule) => {
|
|
|
296
296
|
})
|
|
297
297
|
break
|
|
298
298
|
case 'scanCode':
|
|
299
|
+
// Taro.scanCode({
|
|
300
|
+
// success: ({result:url}) => {
|
|
301
|
+
// if(url.includes('plugin://kivicube-slam/scene')){
|
|
302
|
+
// Taro.redirectTo({
|
|
303
|
+
// url,
|
|
304
|
+
// });
|
|
305
|
+
// }else{
|
|
306
|
+
// Taro.navigateBack({
|
|
307
|
+
// success:()=>{
|
|
308
|
+
// Taro.showToast({
|
|
309
|
+
// title:'请扫描正确的二维码',
|
|
310
|
+
// icon:'none',
|
|
311
|
+
// duration:1500
|
|
312
|
+
// })
|
|
313
|
+
// }
|
|
314
|
+
// })
|
|
315
|
+
// }
|
|
316
|
+
|
|
317
|
+
// },
|
|
318
|
+
// fail:()=>Taro.navigateBack({})
|
|
319
|
+
// });
|
|
299
320
|
uni.scanCode({
|
|
300
321
|
success: (res) => {
|
|
301
|
-
|
|
322
|
+
const { result } = res
|
|
323
|
+
if (result.includes('plugin://kivicube-slam/scene')) {
|
|
324
|
+
uni.redirectTo({
|
|
325
|
+
url: result,
|
|
326
|
+
})
|
|
327
|
+
}
|
|
302
328
|
},
|
|
303
329
|
})
|
|
304
330
|
break
|
package/package.json
CHANGED
|
@@ -15,7 +15,7 @@ declare const __VLS_component: import('vue').DefineComponent<
|
|
|
15
15
|
string,
|
|
16
16
|
import('vue').PublicProps,
|
|
17
17
|
any,
|
|
18
|
-
{} | {} | {} | {} | {} | {} | {} | {} | {},
|
|
18
|
+
{} | {} | {} | {} | {} | {} | {} | {} | {} | {},
|
|
19
19
|
{}
|
|
20
20
|
>
|
|
21
21
|
declare const _default: __VLS_WithTemplateSlots<
|
|
@@ -98,6 +98,9 @@ export type LcbActionViewProps = {
|
|
|
98
98
|
jumpType: 142
|
|
99
99
|
events: string
|
|
100
100
|
}
|
|
101
|
+
| {
|
|
102
|
+
jumpType: 146
|
|
103
|
+
}
|
|
101
104
|
)
|
|
102
105
|
export declare const jumpTypeMap: {
|
|
103
106
|
webview: number
|
|
@@ -128,4 +131,5 @@ export declare const jumpTypeMap: {
|
|
|
128
131
|
templateMessage: number
|
|
129
132
|
'mixture-pay': number
|
|
130
133
|
customPopup: number
|
|
134
|
+
arScan: number
|
|
131
135
|
}
|
|
@@ -836,6 +836,91 @@ declare const _default: import('vue').DefineComponent<
|
|
|
836
836
|
}
|
|
837
837
|
>
|
|
838
838
|
>
|
|
839
|
+
>
|
|
840
|
+
| Readonly<
|
|
841
|
+
import('vue').ExtractPropTypes<
|
|
842
|
+
__VLS_WithDefaults<
|
|
843
|
+
__VLS_TypePropsToOption<
|
|
844
|
+
{
|
|
845
|
+
placeholder?: string
|
|
846
|
+
icon?: string
|
|
847
|
+
url?: string
|
|
848
|
+
iconSize?: string
|
|
849
|
+
borderWidth?: number
|
|
850
|
+
iconColor?: string
|
|
851
|
+
gap?: number
|
|
852
|
+
link?: import('../lcb-action-view/types').LcbActionViewProps
|
|
853
|
+
iconType?: 'icon' | 'img'
|
|
854
|
+
mode?: 'search' | 'link'
|
|
855
|
+
productTypeList?: string[]
|
|
856
|
+
city?: boolean
|
|
857
|
+
cityColor?: string
|
|
858
|
+
citySize?: number
|
|
859
|
+
cityIconSize?: number
|
|
860
|
+
cityIconColor?: string
|
|
861
|
+
lineColor?: string
|
|
862
|
+
lineWidth?: number
|
|
863
|
+
linePadding?: number
|
|
864
|
+
lineHeight?: number
|
|
865
|
+
historyKey?: string
|
|
866
|
+
showCancel?: boolean
|
|
867
|
+
initFocus?: boolean
|
|
868
|
+
blockBackground?: string
|
|
869
|
+
} & {
|
|
870
|
+
jumpUrl?: string
|
|
871
|
+
urlParams?: string
|
|
872
|
+
customClass?: string
|
|
873
|
+
customStyle?: import('vue').StyleValue
|
|
874
|
+
renderMode?: 'view' | 'button'
|
|
875
|
+
autoJumpSecond?: number
|
|
876
|
+
position?: import('@tplc/wot/types/components/wd-popup/types').PopupType
|
|
877
|
+
jumpInterceptor?: (
|
|
878
|
+
action: import('../lcb-action-view/types').LcbActionViewProps,
|
|
879
|
+
) => boolean
|
|
880
|
+
content?: string
|
|
881
|
+
title?: string
|
|
882
|
+
requestParam?: Record<string, any>
|
|
883
|
+
requestInfo?: {
|
|
884
|
+
requestUrl: string
|
|
885
|
+
requestParams: Record<string, any>
|
|
886
|
+
refreshSchemaPage?: boolean
|
|
887
|
+
}
|
|
888
|
+
submitRequestInfo?: {
|
|
889
|
+
requestUrl: string
|
|
890
|
+
requestParams: Record<string, any>
|
|
891
|
+
}
|
|
892
|
+
} & {
|
|
893
|
+
jumpType: 146
|
|
894
|
+
} & import('../lcb-block/types').LcbBlockProps
|
|
895
|
+
>,
|
|
896
|
+
{
|
|
897
|
+
placeholder: string
|
|
898
|
+
iconSize: string
|
|
899
|
+
borderWidth: number
|
|
900
|
+
color: string
|
|
901
|
+
iconColor: string
|
|
902
|
+
gap: number
|
|
903
|
+
paddingVertical: number
|
|
904
|
+
marginHorizontal: number
|
|
905
|
+
cityColor: string
|
|
906
|
+
citySize: number
|
|
907
|
+
cityIconSize: number
|
|
908
|
+
radius: number
|
|
909
|
+
paddingHorizontal: number
|
|
910
|
+
borderColor: string
|
|
911
|
+
cityIconColor: string
|
|
912
|
+
lineColor: string
|
|
913
|
+
lineWidth: number
|
|
914
|
+
linePadding: number
|
|
915
|
+
lineHeight: number
|
|
916
|
+
iconType: string
|
|
917
|
+
mode: string
|
|
918
|
+
fontSize: number
|
|
919
|
+
initFocus: boolean
|
|
920
|
+
showCancel: boolean
|
|
921
|
+
}
|
|
922
|
+
>
|
|
923
|
+
>
|
|
839
924
|
>,
|
|
840
925
|
| {
|
|
841
926
|
mode: 'search' | 'link'
|
|
@@ -1045,6 +1130,32 @@ declare const _default: import('vue').DefineComponent<
|
|
|
1045
1130
|
showCancel: boolean
|
|
1046
1131
|
initFocus: boolean
|
|
1047
1132
|
}
|
|
1133
|
+
| {
|
|
1134
|
+
mode: 'search' | 'link'
|
|
1135
|
+
color: string
|
|
1136
|
+
lineHeight: number
|
|
1137
|
+
radius: number
|
|
1138
|
+
iconSize: string
|
|
1139
|
+
iconColor: string
|
|
1140
|
+
marginHorizontal: number
|
|
1141
|
+
paddingHorizontal: number
|
|
1142
|
+
paddingVertical: number
|
|
1143
|
+
fontSize: number
|
|
1144
|
+
borderColor: string
|
|
1145
|
+
borderWidth: number
|
|
1146
|
+
gap: number
|
|
1147
|
+
placeholder: string
|
|
1148
|
+
lineWidth: number
|
|
1149
|
+
iconType: 'icon' | 'img'
|
|
1150
|
+
cityColor: string
|
|
1151
|
+
citySize: number
|
|
1152
|
+
cityIconSize: number
|
|
1153
|
+
cityIconColor: string
|
|
1154
|
+
lineColor: string
|
|
1155
|
+
linePadding: number
|
|
1156
|
+
showCancel: boolean
|
|
1157
|
+
initFocus: boolean
|
|
1158
|
+
}
|
|
1048
1159
|
| {
|
|
1049
1160
|
mode: 'search' | 'link'
|
|
1050
1161
|
color: string
|