@tplc/business 0.1.4 → 0.1.6
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,15 @@
|
|
|
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.6](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.0.48...v0.1.6) (2024-10-26)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### ✨ Features | 新功能
|
|
9
|
+
|
|
10
|
+
* 修改userTop ([8b7f526](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/8b7f526234f0cdaa509d2252118e25a234ba9db3))
|
|
11
|
+
* 修改用户信息页 ([5983018](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/5983018adc1eb2bd9c56e29365cb2547351e256f))
|
|
12
|
+
* 更新api地址 ([bb2854c](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/bb2854c5ec06d8a2ea449c87d0aaab14daf74769))
|
|
13
|
+
|
|
5
14
|
### [0.0.48](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.0.47...v0.0.48) (2024-10-26)
|
|
6
15
|
|
|
7
16
|
|
|
@@ -11,22 +11,21 @@
|
|
|
11
11
|
}"
|
|
12
12
|
>
|
|
13
13
|
<view class="relative overflow-hidden">
|
|
14
|
-
<
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
14
|
+
<lcb-action-view v-bind="item.link" custom-class="w-full" v-if="item.url">
|
|
15
|
+
<wd-img
|
|
16
|
+
:width="`${styleGroup == 3 ? transformValueUnit(imageSize) : '100%'}`"
|
|
17
|
+
:src="item.url"
|
|
18
|
+
:enable-preview="enablePreview"
|
|
19
|
+
mode="widthFix"
|
|
20
|
+
:class="`${styleGroup == 3 ? 'overflow-hidden' : 'overflow-hidden block'}`"
|
|
21
|
+
:style="{
|
|
22
|
+
borderRadius: transformValueUnit(imageRadius),
|
|
23
|
+
display: 'block',
|
|
24
|
+
}"
|
|
25
|
+
/>
|
|
26
|
+
</lcb-action-view>
|
|
28
27
|
<view
|
|
29
|
-
v-
|
|
28
|
+
v-else
|
|
30
29
|
class="flex justify-center items-center bg-light color-gray overflow-hidden"
|
|
31
30
|
:style="{
|
|
32
31
|
height: transformValueUnit(styleGroup == 3 ? 300 : 400),
|
|
@@ -57,16 +56,6 @@
|
|
|
57
56
|
import { LcbImageProps } from '../types'
|
|
58
57
|
import { transformValueUnit } from '../../../utils/transform'
|
|
59
58
|
|
|
60
|
-
// defineProps<LcbImageProps>() @click="onClickItem(each.urlObj)"
|
|
61
|
-
|
|
62
|
-
function onClickItem(item: any) {
|
|
63
|
-
if (item?.link) {
|
|
64
|
-
uni.navigateTo({
|
|
65
|
-
url: item.link,
|
|
66
|
-
})
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
|
|
70
59
|
const props = withDefaults(defineProps<LcbImageProps>(), {
|
|
71
60
|
imageMargin: 0,
|
|
72
61
|
})
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
height: transformValueUnit(photoSize),
|
|
21
21
|
round: photoRound,
|
|
22
22
|
src:
|
|
23
|
-
userStore?.userInfo?.
|
|
23
|
+
userStore?.userInfo?.headImgUrl ||
|
|
24
24
|
'https://lycs.eluying.com/material/icon/1/20240925185540/userPhoto.jpg',
|
|
25
25
|
}"
|
|
26
26
|
custom-class="mr-40rpx bg-#eee"
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
<view class="text-32rpx font-#333 font-bold mb-20rpx">
|
|
43
43
|
{{ userStore?.userInfo?.nickName || '微信用户' }}
|
|
44
44
|
</view>
|
|
45
|
-
<view class="flex">
|
|
45
|
+
<view class="flex" @click="toEdit">
|
|
46
46
|
<view
|
|
47
47
|
class="flex flex-content-center flex-items-center mt-5px border-style-solid"
|
|
48
48
|
:style="{
|
|
@@ -115,6 +115,7 @@ defineOptions({
|
|
|
115
115
|
},
|
|
116
116
|
})
|
|
117
117
|
const userStore = uni.$lcb.userStore?.()
|
|
118
|
+
userStore?.getUser()
|
|
118
119
|
withDefaults(defineProps<LcbUserTopProps>(), {
|
|
119
120
|
photoSize: 100,
|
|
120
121
|
paddingLeft: 35,
|
|
@@ -147,9 +148,14 @@ const getPhone = async (e) => {
|
|
|
147
148
|
},
|
|
148
149
|
})
|
|
149
150
|
}
|
|
150
|
-
const onAvatar = (
|
|
151
|
+
const onAvatar = (headImgUrl) => {
|
|
151
152
|
userStore?.updateUser({
|
|
152
|
-
|
|
153
|
+
headImgUrl,
|
|
154
|
+
})
|
|
155
|
+
}
|
|
156
|
+
const toEdit = () => {
|
|
157
|
+
uni.navigateTo({
|
|
158
|
+
url: '/pages/user/edit',
|
|
153
159
|
})
|
|
154
160
|
}
|
|
155
161
|
</script>
|
package/package.json
CHANGED
package/tsconfig.json
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"target": "ESNext",
|
|
4
|
+
"useDefineForClassFields": true,
|
|
5
|
+
"noImplicitAny": false,
|
|
6
|
+
"module": "ESNext",
|
|
7
|
+
"moduleResolution": "Node",
|
|
8
|
+
"strict": true,
|
|
9
|
+
"jsx": "preserve",
|
|
10
|
+
"allowSyntheticDefaultImports": true,
|
|
11
|
+
"sourceMap": true,
|
|
12
|
+
"resolveJsonModule": true,
|
|
13
|
+
"isolatedModules": true,
|
|
14
|
+
"esModuleInterop": true,
|
|
15
|
+
"lib": ["ESNext", "DOM"],
|
|
16
|
+
"baseUrl": "./",
|
|
17
|
+
"paths": {
|
|
18
|
+
"@/*": ["./src/*"]
|
|
19
|
+
},
|
|
20
|
+
"types": ["@dcloudio/types", "node", "@tplc/wot/global.d.ts"],
|
|
21
|
+
"skipLibCheck": true
|
|
22
|
+
},
|
|
23
|
+
"exclude": ["node_modules", "scripts"]
|
|
24
|
+
}
|