@tplc/business 0.4.81 → 0.4.82
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-nav/SharePopup/index.vue +3 -2
- package/package.json +1 -1
- package/types/utils/utils.d.ts +1 -0
- package/utils/utils.ts +13 -0
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.4.82](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.4.81...v0.4.82) (2025-04-29)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### ✨ Features | 新功能
|
|
9
|
+
|
|
10
|
+
* 支持scope ([22fc204](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/22fc2049e6c5af088ff333ce4152959404b914bb))
|
|
11
|
+
|
|
5
12
|
### [0.4.81](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.4.80...v0.4.81) (2025-04-29)
|
|
6
13
|
|
|
7
14
|
### [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>
|
package/package.json
CHANGED
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
|
+
}
|