@tplc/business 0.4.199 → 0.4.201
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 +19 -0
- package/components/lcb-action-view/components/PayPopup/index.vue +8 -7
- package/components/lcb-action-view/lcb-action-view.vue +11 -0
- package/components/lcb-action-view/types.ts +14 -0
- 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 +14 -0
- package/types/components/lcb-search/lcb-search.vue.d.ts +104 -0
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,25 @@
|
|
|
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.201](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/compare/v0.4.195...v0.4.201) (2025-09-28)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### 🚀 Chore | 构建/工程依赖/工具
|
|
9
|
+
|
|
10
|
+
* **release:** 0.4.196 ([c7c1a13](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/c7c1a130bc26b271280bcf19f8b4949fd773bc5b))
|
|
11
|
+
* **release:** 0.4.197 ([429c906](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/429c90628fa1c64696d8586f906f938cb2ff3363))
|
|
12
|
+
* **release:** 0.4.198 ([1966d27](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/1966d27bdfda3840bfb573cb5073c1148e85dd2d))
|
|
13
|
+
* **release:** 0.4.199 ([214449b](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/214449b823499bd37a5ba542ef79b4268e0cf7d7))
|
|
14
|
+
* **release:** 0.4.200 ([e003377](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/e0033779a16d9bf0da645d8c8be603064efbe58d))
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### ✨ Features | 新功能
|
|
18
|
+
|
|
19
|
+
* tabs 支持修改字体粗细 大小 ([e82aae2](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/e82aae25719dcd3e00d57a1116f7a18f1d3de915))
|
|
20
|
+
* 支持 ([de0836a](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/de0836a947e8afdffd087dabe3f1aea24a04e83c))
|
|
21
|
+
|
|
22
|
+
### [0.4.200](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/compare/v0.4.199...v0.4.200) (2025-09-27)
|
|
23
|
+
|
|
5
24
|
### [0.4.199](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/compare/v0.4.198...v0.4.199) (2025-09-27)
|
|
6
25
|
|
|
7
26
|
### [0.4.198](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/compare/v0.4.197...v0.4.198) (2025-09-27)
|
|
@@ -7,17 +7,17 @@
|
|
|
7
7
|
}"
|
|
8
8
|
>
|
|
9
9
|
<view class="title">支付</view>
|
|
10
|
-
<view class="p-3">
|
|
10
|
+
<view class="p-3 gap-3 flex flex-col">
|
|
11
11
|
<lcb-custom-content v-bind="dataInfo?.customContent" v-if="dataInfo?.customContent" />
|
|
12
12
|
<OrderPayment
|
|
13
13
|
v-model="form.payType"
|
|
14
14
|
:data="dataInfo?.commitPagePaymentMethod"
|
|
15
15
|
@onWalletPriceChange="onWalletPriceChange"
|
|
16
16
|
/>
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
17
|
+
<view class="flex gap-5 mt-4">
|
|
18
|
+
<wd-button plain @click="onCancel">取消</wd-button>
|
|
19
|
+
<wd-button @click="pay" type="primary">支付</wd-button>
|
|
20
|
+
</view>
|
|
21
21
|
</view>
|
|
22
22
|
</view>
|
|
23
23
|
</wd-popup>
|
|
@@ -28,7 +28,7 @@ import usePay from '../../../../hooks/usePay'
|
|
|
28
28
|
import { ref, watch } from 'vue'
|
|
29
29
|
const form = ref({
|
|
30
30
|
payType: '',
|
|
31
|
-
useWalletPrice:
|
|
31
|
+
useWalletPrice: 84,
|
|
32
32
|
})
|
|
33
33
|
|
|
34
34
|
const [pay] = usePay(() =>
|
|
@@ -57,10 +57,11 @@ watch(
|
|
|
57
57
|
() => show.value,
|
|
58
58
|
async (newVal) => {
|
|
59
59
|
if (newVal) {
|
|
60
|
-
const data = (await uni.$lcb.http.post(
|
|
60
|
+
const { data } = (await uni.$lcb.http.post(
|
|
61
61
|
props.requestInfo.requestUrl,
|
|
62
62
|
props.requestInfo.requestParams,
|
|
63
63
|
)) as any
|
|
64
|
+
form.value.payType = data.commitPagePaymentMethod.find((v) => v.defaultChecked)?.type
|
|
64
65
|
dataInfo.value = data
|
|
65
66
|
}
|
|
66
67
|
},
|
|
@@ -52,6 +52,12 @@
|
|
|
52
52
|
</view>
|
|
53
53
|
</view>
|
|
54
54
|
</wd-popup>
|
|
55
|
+
<PayPopup
|
|
56
|
+
v-model="showPay"
|
|
57
|
+
:requestInfo="requestInfo"
|
|
58
|
+
:submitRequestInfo="submitRequestInfo"
|
|
59
|
+
v-if="[144].includes(getJumpType(jumpType)) && showPay"
|
|
60
|
+
/>
|
|
55
61
|
<SharePopup v-model="showPoster" :params="requestParam" />
|
|
56
62
|
</template>
|
|
57
63
|
|
|
@@ -64,6 +70,7 @@ import SharePopup from '../lcb-nav/SharePopup/index.vue'
|
|
|
64
70
|
import { useTranslate } from '@tplc/wot'
|
|
65
71
|
import { PAGE_PROVIDE_KEY, USER_BASIC_INFO } from '../../constants'
|
|
66
72
|
import { getTemplateMessageList, TemplateMessage } from '../../api/user'
|
|
73
|
+
import PayPopup from './components/PayPopup/index.vue'
|
|
67
74
|
const { translate } = useTranslate()
|
|
68
75
|
defineOptions({
|
|
69
76
|
name: 'LcbActionView',
|
|
@@ -78,6 +85,7 @@ const props = defineProps<LcbActionViewProps>()
|
|
|
78
85
|
const basicInfo = inject(USER_BASIC_INFO, {}) as unknown as Ref<Record<string, any>>
|
|
79
86
|
const pageInfo = inject(PAGE_PROVIDE_KEY) as unknown as Ref<Record<string, any>>
|
|
80
87
|
const showPoster = ref(false)
|
|
88
|
+
const showPay = ref(false)
|
|
81
89
|
const emits = defineEmits<{
|
|
82
90
|
(e: 'phone', value: { detail: { errMsg: string; encryptedData: string; iv: string } }): void
|
|
83
91
|
(e: 'avatar', value: string): void
|
|
@@ -295,6 +303,9 @@ const onActionClick = async () => {
|
|
|
295
303
|
})
|
|
296
304
|
}
|
|
297
305
|
break
|
|
306
|
+
case 144:
|
|
307
|
+
showPay.value = true
|
|
308
|
+
break
|
|
298
309
|
default:
|
|
299
310
|
emits('click', props)
|
|
300
311
|
break
|
|
@@ -65,6 +65,19 @@ export type LcbActionViewProps = {
|
|
|
65
65
|
refreshSchemaPage?: boolean
|
|
66
66
|
}
|
|
67
67
|
}
|
|
68
|
+
| {
|
|
69
|
+
jumpType: 144
|
|
70
|
+
requestInfo?: {
|
|
71
|
+
requestUrl: string
|
|
72
|
+
requestParams: Record<string, any>
|
|
73
|
+
/** 请求之后刷新schemapage */
|
|
74
|
+
refreshSchemaPage?: boolean
|
|
75
|
+
}
|
|
76
|
+
submitRequestInfo?: {
|
|
77
|
+
requestUrl: string
|
|
78
|
+
requestParams: Record<string, any>
|
|
79
|
+
}
|
|
80
|
+
}
|
|
68
81
|
| {
|
|
69
82
|
jumpType: 105
|
|
70
83
|
addressInfo?: {
|
|
@@ -122,4 +135,5 @@ export const jumpTypeMap = {
|
|
|
122
135
|
imagePreview: 107,
|
|
123
136
|
qrCode: 141,
|
|
124
137
|
templateMessage: 142,
|
|
138
|
+
'mixture-pay': 144,
|
|
125
139
|
}
|
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<
|
|
@@ -62,6 +62,19 @@ export type LcbActionViewProps = {
|
|
|
62
62
|
refreshSchemaPage?: boolean
|
|
63
63
|
}
|
|
64
64
|
}
|
|
65
|
+
| {
|
|
66
|
+
jumpType: 144
|
|
67
|
+
requestInfo?: {
|
|
68
|
+
requestUrl: string
|
|
69
|
+
requestParams: Record<string, any>
|
|
70
|
+
/** 请求之后刷新schemapage */
|
|
71
|
+
refreshSchemaPage?: boolean
|
|
72
|
+
}
|
|
73
|
+
submitRequestInfo?: {
|
|
74
|
+
requestUrl: string
|
|
75
|
+
requestParams: Record<string, any>
|
|
76
|
+
}
|
|
77
|
+
}
|
|
65
78
|
| {
|
|
66
79
|
jumpType: 105
|
|
67
80
|
addressInfo?: {
|
|
@@ -117,4 +130,5 @@ export declare const jumpTypeMap: {
|
|
|
117
130
|
imagePreview: number
|
|
118
131
|
qrCode: number
|
|
119
132
|
templateMessage: number
|
|
133
|
+
'mixture-pay': number
|
|
120
134
|
}
|
|
@@ -276,6 +276,84 @@ declare const _default: import('vue').DefineComponent<
|
|
|
276
276
|
>
|
|
277
277
|
>
|
|
278
278
|
>
|
|
279
|
+
| Readonly<
|
|
280
|
+
import('vue').ExtractPropTypes<
|
|
281
|
+
__VLS_WithDefaults<
|
|
282
|
+
__VLS_TypePropsToOption<
|
|
283
|
+
{
|
|
284
|
+
placeholder?: string
|
|
285
|
+
icon?: string
|
|
286
|
+
url?: string
|
|
287
|
+
iconSize?: string
|
|
288
|
+
borderWidth?: number
|
|
289
|
+
iconColor?: string
|
|
290
|
+
gap?: number
|
|
291
|
+
link?: import('../lcb-action-view/types').LcbActionViewProps
|
|
292
|
+
iconType?: 'icon' | 'img'
|
|
293
|
+
mode?: 'search' | 'link'
|
|
294
|
+
productTypeList?: string[]
|
|
295
|
+
city?: boolean
|
|
296
|
+
cityColor?: string
|
|
297
|
+
citySize?: number
|
|
298
|
+
cityIconSize?: number
|
|
299
|
+
cityIconColor?: string
|
|
300
|
+
lineColor?: string
|
|
301
|
+
lineWidth?: number
|
|
302
|
+
linePadding?: number
|
|
303
|
+
lineHeight?: number
|
|
304
|
+
historyKey?: string
|
|
305
|
+
showCancel?: boolean
|
|
306
|
+
initFocus?: boolean
|
|
307
|
+
blockBackground?: string
|
|
308
|
+
} & {
|
|
309
|
+
jumpUrl?: string
|
|
310
|
+
urlParams?: string
|
|
311
|
+
customClass?: string
|
|
312
|
+
customStyle?: import('vue').StyleValue
|
|
313
|
+
renderMode?: 'view' | 'button'
|
|
314
|
+
autoJumpSecond?: number
|
|
315
|
+
} & {
|
|
316
|
+
jumpType: 144
|
|
317
|
+
requestInfo?: {
|
|
318
|
+
requestUrl: string
|
|
319
|
+
requestParams: Record<string, any>
|
|
320
|
+
refreshSchemaPage?: boolean
|
|
321
|
+
}
|
|
322
|
+
submitRequestInfo?: {
|
|
323
|
+
requestUrl: string
|
|
324
|
+
requestParams: Record<string, any>
|
|
325
|
+
}
|
|
326
|
+
} & import('../lcb-block/types').LcbBlockProps
|
|
327
|
+
>,
|
|
328
|
+
{
|
|
329
|
+
placeholder: string
|
|
330
|
+
iconSize: string
|
|
331
|
+
borderWidth: number
|
|
332
|
+
color: string
|
|
333
|
+
iconColor: string
|
|
334
|
+
gap: number
|
|
335
|
+
paddingVertical: number
|
|
336
|
+
marginHorizontal: number
|
|
337
|
+
cityColor: string
|
|
338
|
+
citySize: number
|
|
339
|
+
cityIconSize: number
|
|
340
|
+
radius: number
|
|
341
|
+
paddingHorizontal: number
|
|
342
|
+
borderColor: string
|
|
343
|
+
cityIconColor: string
|
|
344
|
+
lineColor: string
|
|
345
|
+
lineWidth: number
|
|
346
|
+
linePadding: number
|
|
347
|
+
lineHeight: number
|
|
348
|
+
iconType: string
|
|
349
|
+
mode: string
|
|
350
|
+
fontSize: number
|
|
351
|
+
initFocus: boolean
|
|
352
|
+
showCancel: boolean
|
|
353
|
+
}
|
|
354
|
+
>
|
|
355
|
+
>
|
|
356
|
+
>
|
|
279
357
|
| Readonly<
|
|
280
358
|
import('vue').ExtractPropTypes<
|
|
281
359
|
__VLS_WithDefaults<
|
|
@@ -815,6 +893,32 @@ declare const _default: import('vue').DefineComponent<
|
|
|
815
893
|
showCancel: boolean
|
|
816
894
|
initFocus: boolean
|
|
817
895
|
}
|
|
896
|
+
| {
|
|
897
|
+
mode: 'search' | 'link'
|
|
898
|
+
color: string
|
|
899
|
+
lineHeight: number
|
|
900
|
+
radius: number
|
|
901
|
+
iconSize: string
|
|
902
|
+
iconColor: string
|
|
903
|
+
marginHorizontal: number
|
|
904
|
+
paddingHorizontal: number
|
|
905
|
+
paddingVertical: number
|
|
906
|
+
fontSize: number
|
|
907
|
+
borderColor: string
|
|
908
|
+
borderWidth: number
|
|
909
|
+
gap: number
|
|
910
|
+
placeholder: string
|
|
911
|
+
lineWidth: number
|
|
912
|
+
iconType: 'icon' | 'img'
|
|
913
|
+
cityColor: string
|
|
914
|
+
citySize: number
|
|
915
|
+
cityIconSize: number
|
|
916
|
+
cityIconColor: string
|
|
917
|
+
lineColor: string
|
|
918
|
+
linePadding: number
|
|
919
|
+
showCancel: boolean
|
|
920
|
+
initFocus: boolean
|
|
921
|
+
}
|
|
818
922
|
| {
|
|
819
923
|
mode: 'search' | 'link'
|
|
820
924
|
color: string
|