w-ui-v1 1.1.14 → 1.1.16
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/package.json
CHANGED
package/w-login/w-login.vue
CHANGED
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
defineOptions({
|
|
8
8
|
name: 'WLogin',
|
|
9
9
|
})
|
|
10
|
+
|
|
10
11
|
// 定义props
|
|
11
12
|
const props = defineProps({
|
|
12
13
|
// 图片
|
|
@@ -18,6 +19,10 @@
|
|
|
18
19
|
type: Boolean,
|
|
19
20
|
default: false,
|
|
20
21
|
},
|
|
22
|
+
loginload:{
|
|
23
|
+
type: Function,
|
|
24
|
+
default:null
|
|
25
|
+
}
|
|
21
26
|
})
|
|
22
27
|
onMounted(() => {
|
|
23
28
|
getPublicKey()
|
|
@@ -71,6 +76,7 @@
|
|
|
71
76
|
uni.setStorageSync('userInfo', {
|
|
72
77
|
...data.user
|
|
73
78
|
})
|
|
79
|
+
props.loginload&&props.loginload({...data.user})
|
|
74
80
|
})
|
|
75
81
|
|
|
76
82
|
uni.reLaunch({
|
|
@@ -50,6 +50,14 @@ const prop = defineProps({
|
|
|
50
50
|
baseUrl:{
|
|
51
51
|
type: String,
|
|
52
52
|
default: '',
|
|
53
|
+
},
|
|
54
|
+
sourceId:{
|
|
55
|
+
type: String,
|
|
56
|
+
default: '',
|
|
57
|
+
},
|
|
58
|
+
appId:{
|
|
59
|
+
type: String,
|
|
60
|
+
default: '',
|
|
53
61
|
}
|
|
54
62
|
})
|
|
55
63
|
// 计算属性,弹窗开关
|
|
@@ -89,7 +97,7 @@ const beforeEnter = async () => {
|
|
|
89
97
|
uni.request({
|
|
90
98
|
url:
|
|
91
99
|
prop.baseUrl +
|
|
92
|
-
|
|
100
|
+
`/v3/mstruc/data?sourceId=${prop.sourceId}&depth=1&sortColIds=创建时间_DESC&pageNo=1&pageSize=1&c_app编码_equals=${prop.appId}&c_标记删除_equals=否`,
|
|
93
101
|
method: 'GET',
|
|
94
102
|
header: {
|
|
95
103
|
'hydrocarbon-program-token': prop.hydrocarbonProgramToken,
|