@tplc/business 0.4.81 → 0.4.83
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 +23 -0
- package/components/lcb-list/lcb-list.vue +1 -0
- package/components/lcb-list/types.ts +1 -0
- package/components/lcb-nav/SharePopup/index.vue +3 -2
- package/components/lcb-product/lcb-product.vue +8 -5
- package/components/lcb-product/types.ts +1 -0
- package/components/lcb-product-item/components/ItemValue.vue +1 -1
- package/package.json +1 -1
- package/types/components/lcb-list/lcb-list.vue.d.ts +1 -0
- package/types/components/lcb-list/types.d.ts +1 -0
- package/types/components/lcb-product/lcb-product.vue.d.ts +3 -0
- package/types/components/lcb-product/types.d.ts +1 -0
- package/types/utils/utils.d.ts +1 -0
- package/utils/utils.ts +13 -0
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,29 @@
|
|
|
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.83](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.4.79...v0.4.83) (2025-04-29)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### 🚀 Chore | 构建/工程依赖/工具
|
|
9
|
+
|
|
10
|
+
* **release:** 0.4.80 ([46fb687](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/46fb6871903902d843b95d888dd4d7dde93f6016))
|
|
11
|
+
* **release:** 0.4.81 ([dc2337a](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/dc2337ad8a773bf957fdcbe9537522763935f6ed))
|
|
12
|
+
* **release:** 0.4.82 ([2314a18](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/2314a183177b2a18967549e59749b4c606ccdb85))
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
### ✨ Features | 新功能
|
|
16
|
+
|
|
17
|
+
* PAGE_DYNAMIC_DATA ([815d9de](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/815d9ded9a4b6b55893104198a2e569d39036ea8))
|
|
18
|
+
* 支持scope ([22fc204](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/22fc2049e6c5af088ff333ce4152959404b914bb))
|
|
19
|
+
* 支持分享 ([841c723](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/841c72301546c1e5ad4fe4010e53b7fbef79ffa3))
|
|
20
|
+
|
|
21
|
+
### [0.4.82](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.4.81...v0.4.82) (2025-04-29)
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
### ✨ Features | 新功能
|
|
25
|
+
|
|
26
|
+
* 支持scope ([22fc204](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/22fc2049e6c5af088ff333ce4152959404b914bb))
|
|
27
|
+
|
|
5
28
|
### [0.4.81](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.4.80...v0.4.81) (2025-04-29)
|
|
6
29
|
|
|
7
30
|
### [0.4.80](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.4.78...v0.4.80) (2025-04-29)
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
</template>
|
|
41
41
|
|
|
42
42
|
<script setup lang="ts">
|
|
43
|
-
import { getCurrentPage } from '../../../utils/utils'
|
|
43
|
+
import { getCurrentPage, getSharePath } from '../../../utils/utils'
|
|
44
44
|
import { getShareConfigList } from './api'
|
|
45
45
|
import { ref, inject, watch } from 'vue'
|
|
46
46
|
import lcbPoster from '../../lcb-poster/lcb-poster.vue'
|
|
@@ -147,13 +147,14 @@ const onShare = () => {
|
|
|
147
147
|
if (!data.value) return
|
|
148
148
|
uni.showShareImageMenu({
|
|
149
149
|
path: data.value[current.value].path,
|
|
150
|
+
entrancePath: getSharePath(),
|
|
150
151
|
success: () => {
|
|
151
152
|
uni.showToast({
|
|
152
153
|
title: '分享成功',
|
|
153
154
|
icon: 'success',
|
|
154
155
|
})
|
|
155
156
|
},
|
|
156
|
-
})
|
|
157
|
+
} as any)
|
|
157
158
|
}
|
|
158
159
|
</script>
|
|
159
160
|
<style scoped lang="scss"></style>
|
|
@@ -28,6 +28,7 @@ const props = withDefaults(defineProps<LcbProductProps>(), {
|
|
|
28
28
|
paddingHorizontal: 24,
|
|
29
29
|
paddingVertical: 24,
|
|
30
30
|
sourceMode: 1,
|
|
31
|
+
gap: 16,
|
|
31
32
|
})
|
|
32
33
|
const { form } = useSyncForm(props.dynamicScope)
|
|
33
34
|
const renderList = ref<Record<string, any>[]>([])
|
|
@@ -76,14 +77,14 @@ const getData = async () => {
|
|
|
76
77
|
}
|
|
77
78
|
}
|
|
78
79
|
watch(
|
|
79
|
-
() => form
|
|
80
|
-
() => {
|
|
80
|
+
() => form!.value,
|
|
81
|
+
(oldValue = {}, newValue = {}) => {
|
|
81
82
|
if (props.listType === 'waterfall') {
|
|
82
83
|
renderList.value = []
|
|
83
84
|
uWaterfallRef.value?.clear?.()
|
|
84
85
|
}
|
|
85
86
|
/** 如果是请求模式 */
|
|
86
|
-
if (props.sourceMode === 2) {
|
|
87
|
+
if (props.sourceMode === 2 && JSON.stringify(oldValue) !== JSON.stringify(newValue)) {
|
|
87
88
|
getData()
|
|
88
89
|
}
|
|
89
90
|
},
|
|
@@ -150,10 +151,11 @@ defineExpose({
|
|
|
150
151
|
>
|
|
151
152
|
<!-- 单列 -->
|
|
152
153
|
<view
|
|
153
|
-
class="flex flex-col
|
|
154
|
+
class="flex flex-col"
|
|
154
155
|
v-if="listType === 'list'"
|
|
155
156
|
:style="{
|
|
156
157
|
width: itemWidth ? `${itemWidth}rpx` : '100%',
|
|
158
|
+
gap: gap ? `${gap}rpx` : undefined,
|
|
157
159
|
}"
|
|
158
160
|
>
|
|
159
161
|
<block v-for="(item, index) in renderList" :key="`${item?.productId}:${index}`">
|
|
@@ -190,10 +192,11 @@ defineExpose({
|
|
|
190
192
|
</view>
|
|
191
193
|
<!-- 双列 -->
|
|
192
194
|
<view
|
|
193
|
-
class="grid grid-cols-2 box-border
|
|
195
|
+
class="grid grid-cols-2 box-border"
|
|
194
196
|
v-else-if="listType === 'grid'"
|
|
195
197
|
:style="{
|
|
196
198
|
width: itemWidth ? `${itemWidth}rpx` : '100%',
|
|
199
|
+
gap: gap ? `${gap}rpx` : undefined,
|
|
197
200
|
}"
|
|
198
201
|
>
|
|
199
202
|
<lcb-action-view
|
|
@@ -154,7 +154,7 @@ const coverImgWidth = computed(() => {
|
|
|
154
154
|
itemProps.areaOnImg &&
|
|
155
155
|
!itemProps.imgBottomIcon
|
|
156
156
|
"
|
|
157
|
-
class="flex absolute bottom-0 left-0 z-1 gap-1 p-
|
|
157
|
+
class="flex absolute bottom-0 left-0 z-1 gap-1 p-1 w-full box-border text-white text-3.5 items-center text-shadow-xl"
|
|
158
158
|
:style="{
|
|
159
159
|
color: itemProps.areaColor,
|
|
160
160
|
fontSize: `${itemProps.areaFontSize}rpx`,
|
package/package.json
CHANGED
|
@@ -16,6 +16,7 @@ declare const __VLS_component: import('vue').DefineComponent<
|
|
|
16
16
|
paddingHorizontal: number
|
|
17
17
|
paddingVertical: number
|
|
18
18
|
sourceMode: number
|
|
19
|
+
gap: number
|
|
19
20
|
}
|
|
20
21
|
>,
|
|
21
22
|
{
|
|
@@ -42,6 +43,7 @@ declare const __VLS_component: import('vue').DefineComponent<
|
|
|
42
43
|
paddingHorizontal: number
|
|
43
44
|
paddingVertical: number
|
|
44
45
|
sourceMode: number
|
|
46
|
+
gap: number
|
|
45
47
|
}
|
|
46
48
|
>
|
|
47
49
|
>
|
|
@@ -49,6 +51,7 @@ declare const __VLS_component: import('vue').DefineComponent<
|
|
|
49
51
|
{
|
|
50
52
|
paddingHorizontal: number
|
|
51
53
|
paddingVertical: number
|
|
54
|
+
gap: number
|
|
52
55
|
column: number
|
|
53
56
|
imageWidth: number
|
|
54
57
|
imageHeight: number
|
package/types/utils/utils.d.ts
CHANGED
package/utils/utils.ts
CHANGED
|
@@ -97,3 +97,16 @@ export const customUpload: UploadMethod = (file, formData, options) => {
|
|
|
97
97
|
},
|
|
98
98
|
})
|
|
99
99
|
}
|
|
100
|
+
|
|
101
|
+
export const getSharePath = () => {
|
|
102
|
+
const inviteUserId = uni.$lcb.userStore?.()?.userInfo?.userId
|
|
103
|
+
const inviteTime = new Date().getTime()
|
|
104
|
+
return `/pages/start/index?${stringify({
|
|
105
|
+
path: getCurrentPage().fullPath,
|
|
106
|
+
...getCurrentPage().options,
|
|
107
|
+
inviteTime,
|
|
108
|
+
inviteUserId,
|
|
109
|
+
shareDistributorId: uni.$lcb.userStore?.()?.userInfo?.shareDistributorId,
|
|
110
|
+
distributorId: uni.$lcb.userStore?.()?.userInfo?.distributorId,
|
|
111
|
+
})}`
|
|
112
|
+
}
|