@xuda.io/account_module 1.2.459 → 1.2.460
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/index.mjs +21 -22
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -1171,34 +1171,33 @@ const get_contact_background = function (doc) {
|
|
|
1171
1171
|
|
|
1172
1172
|
if (doc.pending) {
|
|
1173
1173
|
ret = `linear-gradient(145deg, #4f4f4f8c 0%, #0e0f0f44 100%);`;
|
|
1174
|
-
}
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1174
|
+
} else {
|
|
1175
|
+
switch (doc.contact_mood) {
|
|
1176
|
+
case -2: {
|
|
1177
|
+
ret = `linear-gradient(145deg, #f60404d8 0%, #7f98e344 100%)`;
|
|
1178
|
+
break;
|
|
1179
|
+
}
|
|
1180
|
+
case -1: {
|
|
1181
|
+
ret = `linear-gradient(145deg, #f6040452 0%, #7f98e344 100%)`;
|
|
1182
|
+
break;
|
|
1183
|
+
}
|
|
1184
|
+
case 1: {
|
|
1185
|
+
ret = `linear-gradient(145deg, #04f61452 0%, #7f98e344 100%)`;
|
|
1186
|
+
break;
|
|
1187
|
+
}
|
|
1188
|
+
case 2: {
|
|
1189
|
+
ret = `linear-gradient(145deg, #30f604c9 0%, #7f98e344 100%)`;
|
|
1190
|
+
break;
|
|
1191
|
+
}
|
|
1192
|
+
default:
|
|
1193
|
+
break;
|
|
1192
1194
|
}
|
|
1193
|
-
default:
|
|
1194
|
-
break;
|
|
1195
1195
|
}
|
|
1196
|
-
|
|
1197
1196
|
return ret;
|
|
1198
1197
|
};
|
|
1199
1198
|
|
|
1200
1199
|
const get_contact_pattern = function (doc) {
|
|
1201
|
-
const ret = `
|
|
1200
|
+
const ret = `default-pattern.png`;
|
|
1202
1201
|
|
|
1203
1202
|
if (doc.pending) {
|
|
1204
1203
|
ret = `linear-gradient(145deg, #4f4f4f8c 0%, #0e0f0f44 100%);`;
|