7
7
修改個人資料:
8
8
</div >
9
9
<div class =" p-6 bg-white border-b border-gray-200" >
10
+ <div class =" px-3 mb-3" >
11
+ <img
12
+ :src =" identicon"
13
+ :alt =" fields.nickname"
14
+ class =" rounded-full w-18 h-18 mx-auto"
15
+ title =" 來自 Gravatar 的大頭貼"
16
+ >
17
+ </div >
10
18
<div class =" rounded bg-white md:flex" >
11
19
<label
12
20
class =" w-full py-1 text-gray-600 md:w-16"
27
35
<div class =" p-6 bg-white border-b border-gray-200" >
28
36
若要修改電子郵件地址,請點
29
37
<span
30
- class =" cursor-pointer text-sky-500 hover:text-sky-700 "
38
+ class =" cursor-pointer text-sky-600 hover:text-sky-500 "
31
39
@click =" onClickUpdateEmail"
32
40
>
33
41
此處
34
42
</span >
35
43
。
44
+ <div class =" text-sm text-gray-600 mt-1" >
45
+ 本系統儲存你的電子郵件地址僅供識別使用,不會用於任何廣告或行銷用途。該資訊為存取本帳號的唯一識別方法,請務必使用最常用的電子郵件地址,以免遺失帳號存取權限。
46
+ </div >
47
+ </div >
48
+ <div class =" p-6 bg-white border-b border-gray-200" >
49
+ 若要修改大頭貼,須前往
50
+ <span
51
+ class =" cursor-pointer text-sky-600 hover:text-sky-500"
52
+ @click =" onClickUpdateAvatar"
53
+ >
54
+ Gravatar.com
55
+ </span >
56
+ 。
57
+ <div class =" text-sm text-gray-600 mt-1" >
58
+ 我們使用 Gravatar 服務來提供大頭貼,您可以在 Gravatar 網站上使用您的電子郵件地址註冊帳號,並上傳您的大頭貼。
59
+ </div >
60
+ <div class =" text-sm text-gray-600 mt-1" >
61
+ 本系統不會儲存您的大頭貼,而是透過去識別化技術提供對應大頭貼的圖片網址。
62
+ </div >
36
63
</div >
37
64
<div class =" p-6 bg-white border-gray-200 text-right" >
38
65
<button
@@ -68,6 +95,10 @@ const props = defineProps({
68
95
type: String ,
69
96
required: true ,
70
97
},
98
+ avatarHash: {
99
+ type: String ,
100
+ required: true ,
101
+ },
71
102
});
72
103
73
104
const emits = defineEmits ([" state" , " status" ]);
@@ -83,12 +114,21 @@ const isDisabled = computed(() => {
83
114
return isLoad .value || isDone .value ;
84
115
});
85
116
117
+ const identicon = computed (() => {
118
+ const {avatarHash } = props;
119
+ return ` https://api.gravatar.com/avatar/${ avatarHash} ?d=identicon` ;
120
+ });
121
+
86
122
const onClickUpdateEmail = () => {
87
123
emits (" state" , {
88
124
name: " ManageUpdateEmailRequest" ,
89
125
});
90
126
};
91
127
128
+ const onClickUpdateAvatar = () => {
129
+ window .open (" https://gravatar.com" );
130
+ };
131
+
92
132
const onClickCancel = () => {
93
133
location .reload ();
94
134
};
0 commit comments