@tplc/business 0.1.6 → 0.1.11
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
CHANGED
|
@@ -2,6 +2,78 @@
|
|
|
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.1.11](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.1.6...v0.1.11) (2024-10-27)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### 🚀 Chore | 构建/工程依赖/工具
|
|
9
|
+
|
|
10
|
+
* **release:** 0.1.10 ([732f746](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/732f746ecc268186d3357b882c40e4ee0a227250))
|
|
11
|
+
* **release:** 0.1.7 ([69fbf39](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/69fbf39f9e9f1c7b2daf25aa81d7e508a530fa2b))
|
|
12
|
+
* **release:** 0.1.8 ([0cd2b98](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/0cd2b98488ea39de407df1badedf2554f94190f1))
|
|
13
|
+
* **release:** 0.1.9 ([b1dd896](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/b1dd896c4acc76bfc370b39c7d0a24eb729182eb))
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
### ✨ Features | 新功能
|
|
17
|
+
|
|
18
|
+
* nav 颜色调整 ([1f7bba0](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/1f7bba00c2386a85a5bfe3b3973ad160c87efd78))
|
|
19
|
+
* 上传图片 ([5ae5dcb](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/5ae5dcbb018ce5c9bbc53290eb0e3e082985d887))
|
|
20
|
+
* 新增dynamic-data ([d43b20f](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/d43b20f5f334ae6ac5b46294b5caf7903bc4a820))
|
|
21
|
+
* 调整usertop ui ([13daab3](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/13daab39ecd02d313cf9c9c61fa8ab79ba10198f))
|
|
22
|
+
|
|
23
|
+
### [0.1.10](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.1.6...v0.1.10) (2024-10-27)
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
### ✨ Features | 新功能
|
|
27
|
+
|
|
28
|
+
* nav 颜色调整 ([1f7bba0](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/1f7bba00c2386a85a5bfe3b3973ad160c87efd78))
|
|
29
|
+
* 上传图片 ([5ae5dcb](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/5ae5dcbb018ce5c9bbc53290eb0e3e082985d887))
|
|
30
|
+
* 调整usertop ui ([13daab3](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/13daab39ecd02d313cf9c9c61fa8ab79ba10198f))
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
### 🚀 Chore | 构建/工程依赖/工具
|
|
34
|
+
|
|
35
|
+
* **release:** 0.1.7 ([69fbf39](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/69fbf39f9e9f1c7b2daf25aa81d7e508a530fa2b))
|
|
36
|
+
* **release:** 0.1.8 ([0cd2b98](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/0cd2b98488ea39de407df1badedf2554f94190f1))
|
|
37
|
+
* **release:** 0.1.9 ([b1dd896](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/b1dd896c4acc76bfc370b39c7d0a24eb729182eb))
|
|
38
|
+
|
|
39
|
+
### [0.1.9](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.1.6...v0.1.9) (2024-10-26)
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
### ✨ Features | 新功能
|
|
43
|
+
|
|
44
|
+
* nav 颜色调整 ([1f7bba0](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/1f7bba00c2386a85a5bfe3b3973ad160c87efd78))
|
|
45
|
+
* 上传图片 ([5ae5dcb](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/5ae5dcbb018ce5c9bbc53290eb0e3e082985d887))
|
|
46
|
+
* 调整usertop ui ([13daab3](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/13daab39ecd02d313cf9c9c61fa8ab79ba10198f))
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
### 🚀 Chore | 构建/工程依赖/工具
|
|
50
|
+
|
|
51
|
+
* **release:** 0.1.7 ([69fbf39](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/69fbf39f9e9f1c7b2daf25aa81d7e508a530fa2b))
|
|
52
|
+
* **release:** 0.1.8 ([0cd2b98](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/0cd2b98488ea39de407df1badedf2554f94190f1))
|
|
53
|
+
|
|
54
|
+
### [0.1.8](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.1.6...v0.1.8) (2024-10-26)
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
### ✨ Features | 新功能
|
|
58
|
+
|
|
59
|
+
* nav 颜色调整 ([1f7bba0](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/1f7bba00c2386a85a5bfe3b3973ad160c87efd78))
|
|
60
|
+
* 上传图片 ([5ae5dcb](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/5ae5dcbb018ce5c9bbc53290eb0e3e082985d887))
|
|
61
|
+
* 调整usertop ui ([13daab3](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/13daab39ecd02d313cf9c9c61fa8ab79ba10198f))
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
### 🚀 Chore | 构建/工程依赖/工具
|
|
65
|
+
|
|
66
|
+
* **release:** 0.1.7 ([69fbf39](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/69fbf39f9e9f1c7b2daf25aa81d7e508a530fa2b))
|
|
67
|
+
|
|
68
|
+
### [0.1.7](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.1.6...v0.1.7) (2024-10-26)
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
### ✨ Features | 新功能
|
|
72
|
+
|
|
73
|
+
* nav 颜色调整 ([1f7bba0](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/1f7bba00c2386a85a5bfe3b3973ad160c87efd78))
|
|
74
|
+
* 上传图片 ([5ae5dcb](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/5ae5dcbb018ce5c9bbc53290eb0e3e082985d887))
|
|
75
|
+
* 调整usertop ui ([13daab3](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/13daab39ecd02d313cf9c9c61fa8ab79ba10198f))
|
|
76
|
+
|
|
5
77
|
### [0.1.6](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.0.48...v0.1.6) (2024-10-26)
|
|
6
78
|
|
|
7
79
|
|
|
@@ -1,8 +1,15 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<lcb-block v-bind="$props">
|
|
3
|
-
<view class="flex justify-between items-center">
|
|
4
|
-
<view
|
|
5
|
-
|
|
3
|
+
<view class="flex justify-between items-center text-28rpx">
|
|
4
|
+
<view
|
|
5
|
+
v-for="item in items"
|
|
6
|
+
:key="item.title"
|
|
7
|
+
class="flex flex-col items-center justify-center"
|
|
8
|
+
>
|
|
9
|
+
<view class="flex mb-12rpx">
|
|
10
|
+
<view class="text-24rpx mr-4rpx mt-12rpx">{{ item.unit }}</view>
|
|
11
|
+
<view class="font-500 text-36rpx">{{ pageInfo[item.key] || '0.00' }}</view>
|
|
12
|
+
</view>
|
|
6
13
|
<view>{{ item.title }}</view>
|
|
7
14
|
</view>
|
|
8
15
|
</view>
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
<view class="flex-1">
|
|
30
30
|
<lcb-action-view :jumpType="88" @phone="getPhone" v-if="!userStore?.userInfo?.phone">
|
|
31
31
|
<view
|
|
32
|
-
class="font-
|
|
32
|
+
class="font-500"
|
|
33
33
|
:style="{
|
|
34
34
|
fontSize: transformValueUnit(textSize),
|
|
35
35
|
color: textColor,
|
|
@@ -38,9 +38,9 @@
|
|
|
38
38
|
授权登录
|
|
39
39
|
</view>
|
|
40
40
|
</lcb-action-view>
|
|
41
|
-
<
|
|
42
|
-
<view class="text-32rpx font-#333 font-
|
|
43
|
-
{{ userStore?.userInfo?.
|
|
41
|
+
<view v-else class="leading-none">
|
|
42
|
+
<view class="text-32rpx font-#333 font-500 mb-20rpx">
|
|
43
|
+
{{ userStore?.userInfo?.userName || '微信用户' }}
|
|
44
44
|
</view>
|
|
45
45
|
<view class="flex" @click="toEdit">
|
|
46
46
|
<view
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
<view>{{ editText }}</view>
|
|
58
58
|
</view>
|
|
59
59
|
</view>
|
|
60
|
-
</
|
|
60
|
+
</view>
|
|
61
61
|
</view>
|
|
62
62
|
<!-- 右边按钮 -->
|
|
63
63
|
<lcb-action-view v-if="moreIcon" v-bind="rightIconLink">
|
package/hooks/useUpload.ts
CHANGED
|
@@ -28,8 +28,7 @@ export default function useUpload(onSuccess?: (url: string) => void) {
|
|
|
28
28
|
count: 1,
|
|
29
29
|
success: (res) => {
|
|
30
30
|
const name = res.tempFiles[0].name
|
|
31
|
-
|
|
32
|
-
uploadFile({ data, name, file, onSuccess })
|
|
31
|
+
uploadFile({ data, name, filePath: res.tempFilePaths[0], onSuccess })
|
|
33
32
|
},
|
|
34
33
|
fail: (err) => {
|
|
35
34
|
console.error('uni.chooseImage err->', err)
|
|
@@ -43,13 +42,11 @@ export default function useUpload(onSuccess?: (url: string) => void) {
|
|
|
43
42
|
|
|
44
43
|
export async function uploadFile({
|
|
45
44
|
filePath,
|
|
46
|
-
file,
|
|
47
45
|
data,
|
|
48
46
|
name,
|
|
49
47
|
onSuccess,
|
|
50
48
|
}: {
|
|
51
|
-
filePath
|
|
52
|
-
file?: File
|
|
49
|
+
filePath: string
|
|
53
50
|
data?: Ref<string>
|
|
54
51
|
name: string
|
|
55
52
|
onSuccess?: (url: string) => void
|
|
@@ -86,7 +83,7 @@ export async function uploadFile({
|
|
|
86
83
|
})
|
|
87
84
|
}
|
|
88
85
|
// #ifdef H5
|
|
89
|
-
fun(
|
|
86
|
+
fun(await (await fetch(filePath)).arrayBuffer())
|
|
90
87
|
// #endif
|
|
91
88
|
|
|
92
89
|
// #ifndef H5
|
package/package.json
CHANGED
|
@@ -10,13 +10,11 @@ export default function useUpload(onSuccess?: (url: string) => void): {
|
|
|
10
10
|
}
|
|
11
11
|
export declare function uploadFile({
|
|
12
12
|
filePath,
|
|
13
|
-
file,
|
|
14
13
|
data,
|
|
15
14
|
name,
|
|
16
15
|
onSuccess,
|
|
17
16
|
}: {
|
|
18
|
-
filePath
|
|
19
|
-
file?: File
|
|
17
|
+
filePath: string
|
|
20
18
|
data?: Ref<string>
|
|
21
19
|
name: string
|
|
22
20
|
onSuccess?: (url: string) => void
|