xyvcard-wechat-auth 0.0.11 → 0.0.12
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.
|
@@ -8,18 +8,21 @@ Component({
|
|
|
8
8
|
*/
|
|
9
9
|
properties: {
|
|
10
10
|
// 定义一个对象类型的属性
|
|
11
|
-
|
|
12
|
-
type:
|
|
13
|
-
value:
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
11
|
+
isUserAvatar: {
|
|
12
|
+
type: Boolean,
|
|
13
|
+
value: true
|
|
14
|
+
},
|
|
15
|
+
isUserNickName: {
|
|
16
|
+
type: Boolean,
|
|
17
|
+
value: true
|
|
18
|
+
},
|
|
19
|
+
isUserRealName: {
|
|
20
|
+
type: Boolean,
|
|
21
|
+
value: true
|
|
22
|
+
},
|
|
23
|
+
isUserMobilePhone: {
|
|
24
|
+
type: Boolean,
|
|
25
|
+
value: true
|
|
23
26
|
}
|
|
24
27
|
},
|
|
25
28
|
/**
|
|
@@ -3,15 +3,22 @@ Component({
|
|
|
3
3
|
/**
|
|
4
4
|
* 组件的属性列表
|
|
5
5
|
*/
|
|
6
|
-
properties: {
|
|
6
|
+
properties: {
|
|
7
|
+
userInfo: {
|
|
8
|
+
type: Object,
|
|
9
|
+
value: {}
|
|
10
|
+
},
|
|
11
|
+
token: {
|
|
12
|
+
type: String,
|
|
13
|
+
value: ""
|
|
14
|
+
}
|
|
15
|
+
},
|
|
7
16
|
/**
|
|
8
17
|
* 组件的初始数据
|
|
9
18
|
*/
|
|
10
19
|
data: {
|
|
11
20
|
BASE_URL: config.baseUrl + "/v1/file/image/clip/200/200/",
|
|
12
|
-
resourceUrl: config.resourceUrl + "/images/mall"
|
|
13
|
-
token: wx.getStorageSync("token"),
|
|
14
|
-
userInfo: wx.getStorageSync("userInfo")
|
|
21
|
+
resourceUrl: config.resourceUrl + "/images/mall"
|
|
15
22
|
},
|
|
16
23
|
/**
|
|
17
24
|
* 组件的方法列表
|