@tplc/business 0.0.47 → 0.1.0
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 +7 -0
- package/components/lcb-list/{api.ts → api/index.ts} +2 -2
- package/components/lcb-list/lcb-list.vue +5 -5
- package/components/lcb-user-top/api/index.ts +1 -1
- package/components/lcb-user-top/lcb-user-top.vue +12 -21
- package/package.json +1 -1
- package/types/components/lcb-list/{api.d.ts → api/index.d.ts} +3 -3
- package/types/components/lcb-list/lcb-list.vue.d.ts +1 -19
- package/types/components/lcb-user-top/api/index.d.ts +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,13 @@
|
|
|
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.0.48](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.0.47...v0.0.48) (2024-10-26)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### ✨ Features | 新功能
|
|
9
|
+
|
|
10
|
+
* version 0.0.47 ([48ae648](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/48ae648a5276652a44851cb0aaa6f9cfd3ae3c9e))
|
|
11
|
+
|
|
5
12
|
### [0.0.47](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.0.46...v0.0.47) (2024-10-26)
|
|
6
13
|
|
|
7
14
|
### [0.0.46](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.0.45...v0.0.46) (2024-10-26)
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { FilterTabsProps } from '
|
|
2
|
-
import { Option } from '
|
|
1
|
+
import { FilterTabsProps } from '../components/FilterTabs/type'
|
|
2
|
+
import { Option } from '../types'
|
|
3
3
|
export interface LcbListInfo {
|
|
4
4
|
url: string
|
|
5
5
|
baseParam: Record<string, unknown>
|
|
@@ -71,8 +71,8 @@
|
|
|
71
71
|
<FilterList v-bind="{ ...info.listInfo, listType, filter, ...attrs }">
|
|
72
72
|
<template #default="{ items }">
|
|
73
73
|
<slot name="list" :items="items">
|
|
74
|
-
<lcb-product v-bind="{ ...attrs }" :listType="listType" :items="items">
|
|
75
|
-
|
|
74
|
+
<!-- <lcb-product v-bind="{ ...attrs }" :listType="listType" :items="items"> -->
|
|
75
|
+
<!-- <template #item="slotContext">
|
|
76
76
|
<slot name="item" v-bind="slotContext" />
|
|
77
77
|
</template>
|
|
78
78
|
<template
|
|
@@ -80,9 +80,9 @@
|
|
|
80
80
|
:key="slotName"
|
|
81
81
|
#[slotName]="slotContext"
|
|
82
82
|
>
|
|
83
|
-
<slot :name="slotName" v-bind="slotContext" />
|
|
84
|
-
</template>
|
|
85
|
-
</lcb-product>
|
|
83
|
+
<slot :name="slotName" v-bind="slotContext || {}" />
|
|
84
|
+
</template> -->
|
|
85
|
+
<!-- </lcb-product> -->
|
|
86
86
|
</slot>
|
|
87
87
|
</template>
|
|
88
88
|
</FilterList>
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const env = import.meta as unknown as { env: Record<string, string> }
|
|
2
|
-
export const
|
|
2
|
+
export const getUserPhone = (data: { encryptedData: string; iv: string; code?: string }) =>
|
|
3
3
|
uni.$lcb.http.post('/wechatProgram/api/getPhone', {
|
|
4
4
|
...data,
|
|
5
5
|
appId: env.env.VITE_WX_APPID,
|
|
@@ -33,16 +33,16 @@
|
|
|
33
33
|
class="bg-#eee userPlace mr-40rpx"
|
|
34
34
|
/>
|
|
35
35
|
<view class="flex-1">
|
|
36
|
-
<lcb-action-view
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
36
|
+
<lcb-action-view :jumpType="88" @phone="getPhone">
|
|
37
|
+
<view
|
|
38
|
+
class="font-bold"
|
|
39
|
+
:style="{
|
|
40
|
+
fontSize: transformValueUnit(textSize),
|
|
41
|
+
color: textColor,
|
|
42
|
+
}"
|
|
43
|
+
>
|
|
44
|
+
授权登录
|
|
45
|
+
</view>
|
|
46
46
|
</lcb-action-view>
|
|
47
47
|
<view class="flex" v-if="editBtn">
|
|
48
48
|
<view
|
|
@@ -106,7 +106,7 @@ import Nums from './Nums/index.vue'
|
|
|
106
106
|
import { computed, inject } from 'vue'
|
|
107
107
|
import { addUnit } from '@tplc/wot/components/common/util'
|
|
108
108
|
import { PAGE_PROVIDE_KEY } from '../../constants'
|
|
109
|
-
import { getUserInfo } from './api'
|
|
109
|
+
import { getUserInfo, getUserPhone } from './api'
|
|
110
110
|
const { statusBarHeight } = uni.getSystemInfoSync()
|
|
111
111
|
defineOptions({
|
|
112
112
|
name: 'LcbUserTop',
|
|
@@ -140,16 +140,7 @@ const padTop = computed(() => {
|
|
|
140
140
|
return addUnit(statusBarHeight || 0)
|
|
141
141
|
})
|
|
142
142
|
const getPhone = async (e) => {
|
|
143
|
-
|
|
144
|
-
provider: 'weixin',
|
|
145
|
-
success: async (res) => {
|
|
146
|
-
await getPhone({
|
|
147
|
-
code: res.code,
|
|
148
|
-
encryptedData: e.detail.encryptedData,
|
|
149
|
-
iv: e.detail.iv,
|
|
150
|
-
})
|
|
151
|
-
},
|
|
152
|
-
})
|
|
143
|
+
await getUserPhone(e.detail)
|
|
153
144
|
}
|
|
154
145
|
getUserInfo()
|
|
155
146
|
</script>
|
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { FilterTabsProps } from '
|
|
2
|
-
import { Option } from '
|
|
1
|
+
import { FilterTabsProps } from '../components/FilterTabs/type'
|
|
2
|
+
import { Option } from '../types'
|
|
3
3
|
export interface LcbListInfo {
|
|
4
4
|
url: string
|
|
5
5
|
baseParam: Record<string, unknown>
|
|
@@ -56,5 +56,5 @@ interface BtnComponent {
|
|
|
56
56
|
}
|
|
57
57
|
export declare const getFilterDetail: (
|
|
58
58
|
val: string,
|
|
59
|
-
) => Promise<import('
|
|
59
|
+
) => Promise<import('../../../action').IResData<LcbFilterResult>>
|
|
60
60
|
export {}
|
|
@@ -1,25 +1,7 @@
|
|
|
1
1
|
import { LcbListProps } from './types'
|
|
2
2
|
import './index.scss'
|
|
3
|
-
declare function __VLS_template():
|
|
4
|
-
Record<
|
|
5
|
-
NonNullable<
|
|
6
|
-
| 'image'
|
|
7
|
-
| 'title'
|
|
8
|
-
| 'location'
|
|
9
|
-
| 'subTitle'
|
|
10
|
-
| 'price'
|
|
11
|
-
| 'priceUnit'
|
|
12
|
-
| 'priceSuffix'
|
|
13
|
-
| 'originPrice'
|
|
14
|
-
| 'originPriceUnit'
|
|
15
|
-
| 'tags'
|
|
16
|
-
| 'distance'
|
|
17
|
-
>,
|
|
18
|
-
(_: any) => any
|
|
19
|
-
>
|
|
20
|
-
> & {
|
|
3
|
+
declare function __VLS_template(): {
|
|
21
4
|
list?(_: { items: any[] }): any
|
|
22
|
-
item?(_: any): any
|
|
23
5
|
}
|
|
24
6
|
declare const __VLS_component: import('vue').DefineComponent<
|
|
25
7
|
__VLS_WithDefaults<__VLS_TypePropsToOption<LcbListProps>, any>,
|