ike-weblca-html 2.2.17 → 2.2.18
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/dist/index.js +1 -1
- package/package.json +1 -1
- package/src/IkeWebHeader.js +328 -317
package/src/IkeWebHeader.js
CHANGED
|
@@ -455,7 +455,7 @@ export class IkeWebHeader extends LitElement {
|
|
|
455
455
|
首届CBPC供应商产品碳足迹管理能力大赛:
|
|
456
456
|
'首届CBPC供应商产品碳足迹管理能力大赛',
|
|
457
457
|
登录: '登录',
|
|
458
|
-
|
|
458
|
+
个人主页: '个人主页',
|
|
459
459
|
}
|
|
460
460
|
|
|
461
461
|
/** 繁体中文语言包 */
|
|
@@ -474,7 +474,7 @@ export class IkeWebHeader extends LitElement {
|
|
|
474
474
|
首届CBPC供应商产品碳足迹管理能力大赛:
|
|
475
475
|
'首屆CBPC供應商產品碳足迹管理能力大賽',
|
|
476
476
|
登录: '登录',
|
|
477
|
-
|
|
477
|
+
个人主页: '个人主页',
|
|
478
478
|
}
|
|
479
479
|
|
|
480
480
|
/** 英文语言包 */
|
|
@@ -494,7 +494,7 @@ export class IkeWebHeader extends LitElement {
|
|
|
494
494
|
首届CBPC供应商产品碳足迹管理能力大赛:
|
|
495
495
|
'First CBPC Supplier Product Carbon Footprint Management Capability Competition',
|
|
496
496
|
登录: 'Login',
|
|
497
|
-
|
|
497
|
+
个人主页: 'Personal Center',
|
|
498
498
|
}
|
|
499
499
|
|
|
500
500
|
/** 当前使用的国际化对象 */
|
|
@@ -857,14 +857,19 @@ export class IkeWebHeader extends LitElement {
|
|
|
857
857
|
try {
|
|
858
858
|
if (window.caches) {
|
|
859
859
|
const cacheNames = await window.caches.keys()
|
|
860
|
-
await Promise.all(
|
|
860
|
+
await Promise.all(
|
|
861
|
+
cacheNames.map((cacheName) => window.caches.delete(cacheName))
|
|
862
|
+
)
|
|
861
863
|
}
|
|
862
864
|
} catch (error) {
|
|
863
865
|
console.error('Error clearing Cache Storage:', error)
|
|
864
866
|
}
|
|
865
867
|
|
|
866
868
|
try {
|
|
867
|
-
if (
|
|
869
|
+
if (
|
|
870
|
+
window.indexedDB &&
|
|
871
|
+
typeof window.indexedDB.databases === 'function'
|
|
872
|
+
) {
|
|
868
873
|
const databases = await window.indexedDB.databases()
|
|
869
874
|
await Promise.all(
|
|
870
875
|
databases
|
|
@@ -873,7 +878,10 @@ export class IkeWebHeader extends LitElement {
|
|
|
873
878
|
(database) =>
|
|
874
879
|
new Promise((resolve) => {
|
|
875
880
|
const request = window.indexedDB.deleteDatabase(database.name)
|
|
876
|
-
request.onsuccess =
|
|
881
|
+
request.onsuccess =
|
|
882
|
+
request.onerror =
|
|
883
|
+
request.onblocked =
|
|
884
|
+
resolve
|
|
877
885
|
})
|
|
878
886
|
)
|
|
879
887
|
)
|
|
@@ -995,318 +1003,321 @@ export class IkeWebHeader extends LitElement {
|
|
|
995
1003
|
|
|
996
1004
|
render() {
|
|
997
1005
|
return html` <div
|
|
998
|
-
|
|
999
|
-
|
|
1006
|
+
class="ike-web-header"
|
|
1007
|
+
style="
|
|
1000
1008
|
background: ${this.isPlat
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
style="margin-left: 12px;color: #373737;font-weight: 600;color: ${this
|
|
1015
|
-
.isPlat
|
|
1016
|
-
? '#fff'
|
|
1017
|
-
: '#063223'}"
|
|
1018
|
-
>${this.name}</span
|
|
1009
|
+
? '#063223'
|
|
1010
|
+
: '#FFFFFF'}; color: ${this.isPlat ? '#fff' : '#063223'}"
|
|
1011
|
+
>
|
|
1012
|
+
<div style="display: flex;align-items: center">
|
|
1013
|
+
<img
|
|
1014
|
+
src="https://ike-web.oss-cn-hangzhou.aliyuncs.com/WebLCA_logo.png"
|
|
1015
|
+
class="iwh-url"
|
|
1016
|
+
alt=""
|
|
1017
|
+
/>
|
|
1018
|
+
${this.status !== 'www' || this.isLocalSecondaryPreview
|
|
1019
|
+
? html` <div
|
|
1020
|
+
class="box-a"
|
|
1021
|
+
style="display: flex;align-items: center"
|
|
1019
1022
|
>
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
>
|
|
1037
|
-
eFootprint
|
|
1038
|
-
</div>`}
|
|
1039
|
-
${html` <div
|
|
1040
|
-
class="left-menu-item"
|
|
1041
|
-
style="color: ${this.hostName.includes('webcarbon.net')
|
|
1042
|
-
? '#06AA3E'
|
|
1043
|
-
: this.isPlat
|
|
1044
|
-
? '#fff'
|
|
1045
|
-
: '#373737'}"
|
|
1046
|
-
@click="${this._handleServiceClick}"
|
|
1047
|
-
data-login-url="${this._getServiceTargetUrl('carbonZero')}"
|
|
1048
|
-
data-url="${this._getServiceLoginUrl()}"
|
|
1049
|
-
data-service="cz"
|
|
1050
|
-
>
|
|
1051
|
-
CarbonZero
|
|
1052
|
-
</div>`}
|
|
1053
|
-
${html` <div
|
|
1054
|
-
class="left-menu-item"
|
|
1055
|
-
style="color: ${this.hostName.includes('webgpm.net')
|
|
1056
|
-
? '#06AA3E'
|
|
1057
|
-
: this.isPlat
|
|
1058
|
-
? '#fff'
|
|
1059
|
-
: '#373737'}"
|
|
1060
|
-
@click="${this._handleServiceClick}"
|
|
1061
|
-
data-login-url="${this._getServiceTargetUrl('gpm')}"
|
|
1062
|
-
data-url="${this._getServiceLoginUrl()}"
|
|
1063
|
-
data-service="gpm"
|
|
1064
|
-
>
|
|
1065
|
-
GPM
|
|
1066
|
-
</div>`}
|
|
1067
|
-
</div>`}
|
|
1068
|
-
</div>
|
|
1069
|
-
|
|
1070
|
-
<div class="iwh-right">
|
|
1071
|
-
<div class="header-list flex align-center">
|
|
1072
|
-
<div class="el-menu-demo">
|
|
1073
|
-
<div
|
|
1074
|
-
class="menu-item"
|
|
1075
|
-
style="color: ${this.hostName.includes('weblca.net/home')
|
|
1023
|
+
<img src="${this.logo}" alt="" />
|
|
1024
|
+
<span
|
|
1025
|
+
style="margin-left: 12px;color: #373737;font-weight: 600;color: ${this
|
|
1026
|
+
.isPlat
|
|
1027
|
+
? '#fff'
|
|
1028
|
+
: '#063223'}"
|
|
1029
|
+
>${this.name}</span
|
|
1030
|
+
>
|
|
1031
|
+
</div>`
|
|
1032
|
+
: ''}
|
|
1033
|
+
|
|
1034
|
+
<!-- 左侧菜单项:eFootprint、CarbonZero、GPM ---- 111111 -->
|
|
1035
|
+
${html` <div class="left-menu-items">
|
|
1036
|
+
${html` <div
|
|
1037
|
+
class="left-menu-item"
|
|
1038
|
+
style="color: ${this.hostName.includes('efootprint.net/login')
|
|
1076
1039
|
? '#06AA3E'
|
|
1077
1040
|
: this.isPlat
|
|
1078
1041
|
? '#fff'
|
|
1079
1042
|
: '#373737'}"
|
|
1080
|
-
@click="${this.
|
|
1081
|
-
data-
|
|
1082
|
-
data-url="${this.
|
|
1043
|
+
@click="${this._handleServiceClick}"
|
|
1044
|
+
data-url="${this._getServiceLoginUrl()}"
|
|
1045
|
+
data-login-url="${this._getServiceTargetUrl('eFootprint')}"
|
|
1046
|
+
data-service="ef"
|
|
1083
1047
|
>
|
|
1084
|
-
|
|
1085
|
-
</div
|
|
1048
|
+
eFootprint
|
|
1049
|
+
</div>`}
|
|
1050
|
+
${html` <div
|
|
1051
|
+
class="left-menu-item"
|
|
1052
|
+
style="color: ${this.hostName.includes('webcarbon.net')
|
|
1053
|
+
? '#06AA3E'
|
|
1054
|
+
: this.isPlat
|
|
1055
|
+
? '#fff'
|
|
1056
|
+
: '#373737'}"
|
|
1057
|
+
@click="${this._handleServiceClick}"
|
|
1058
|
+
data-login-url="${this._getServiceTargetUrl('carbonZero')}"
|
|
1059
|
+
data-url="${this._getServiceLoginUrl()}"
|
|
1060
|
+
data-service="cz"
|
|
1061
|
+
>
|
|
1062
|
+
CarbonZero
|
|
1063
|
+
</div>`}
|
|
1064
|
+
${html` <div
|
|
1065
|
+
class="left-menu-item"
|
|
1066
|
+
style="color: ${this.hostName.includes('webgpm.net')
|
|
1067
|
+
? '#06AA3E'
|
|
1068
|
+
: this.isPlat
|
|
1069
|
+
? '#fff'
|
|
1070
|
+
: '#373737'}"
|
|
1071
|
+
@click="${this._handleServiceClick}"
|
|
1072
|
+
data-login-url="${this._getServiceTargetUrl('gpm')}"
|
|
1073
|
+
data-url="${this._getServiceLoginUrl()}"
|
|
1074
|
+
data-service="gpm"
|
|
1075
|
+
>
|
|
1076
|
+
GPM
|
|
1077
|
+
</div>`}
|
|
1078
|
+
</div>`}
|
|
1079
|
+
</div>
|
|
1086
1080
|
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
? html` <div
|
|
1110
|
-
class="menu-item menu-item-database"
|
|
1111
|
-
style=" position: relative;color: ${this.hostName.includes(
|
|
1112
|
-
'weblca.net/database'
|
|
1113
|
-
)
|
|
1114
|
-
? '#06AA3E'
|
|
1115
|
-
: this.isPlat
|
|
1116
|
-
? '#fff'
|
|
1117
|
-
: '#373737'}"
|
|
1118
|
-
@click="${this._routerPush}"
|
|
1119
|
-
data-login-urlurl="https://www.weblca.net/database"
|
|
1120
|
-
data-url="https://www.weblca.net/database"
|
|
1121
|
-
>
|
|
1122
|
-
${this.isPlat
|
|
1123
|
-
? html`<img
|
|
1124
|
-
class="posi"
|
|
1125
|
-
src="https://ike-web.oss-cn-hangzhou.aliyuncs.com/HOT.png"
|
|
1126
|
-
alt=""
|
|
1127
|
-
/>`
|
|
1128
|
-
: ''}
|
|
1129
|
-
${this.i18n['数据库']}
|
|
1130
|
-
<div class="menu-sub-group">
|
|
1131
|
-
<div
|
|
1132
|
-
@click="${this._routerPush}"
|
|
1133
|
-
data-login-url="https://www.weblca.net/database"
|
|
1134
|
-
data-url="https://www.weblca.net/database"
|
|
1135
|
-
class="menu-sub-item"
|
|
1136
|
-
>
|
|
1137
|
-
${this.i18n['数据库']}
|
|
1138
|
-
</div>
|
|
1139
|
-
<div
|
|
1140
|
-
@click="${this._routerPush}"
|
|
1141
|
-
data-login-url="https://www.weblca.net/database/leather"
|
|
1142
|
-
data-url="https://www.weblca.net/database/leather"
|
|
1143
|
-
class="menu-sub-item"
|
|
1144
|
-
>
|
|
1145
|
-
${this.i18n['皮革LCA数据库']}
|
|
1146
|
-
</div>
|
|
1147
|
-
</div>
|
|
1148
|
-
</div>`
|
|
1149
|
-
: ''}
|
|
1150
|
-
${this.isPlat || this.alreadyServices.includes('databankpage')
|
|
1151
|
-
? html` <div
|
|
1152
|
-
class="menu-item"
|
|
1153
|
-
style="color: ${this.hostName.includes('/databankpage')
|
|
1154
|
-
? '#06AA3E'
|
|
1155
|
-
: this.isPlat
|
|
1156
|
-
? '#fff'
|
|
1157
|
-
: '#373737'}"
|
|
1158
|
-
@click="${this._routerPush}"
|
|
1159
|
-
data-login-url="https://www.weblca.net/databankpage"
|
|
1160
|
-
data-url="https://www.weblca.net/databankpage"
|
|
1161
|
-
>
|
|
1162
|
-
${this.i18n['资料库']}
|
|
1163
|
-
</div>`
|
|
1164
|
-
: ''}
|
|
1165
|
-
${this.isPlat
|
|
1166
|
-
? html` <div
|
|
1167
|
-
class="menu-item menu-item-database"
|
|
1168
|
-
style=" position: relative;color: ${this.hostName.includes(
|
|
1169
|
-
'efootprint.net/contest'
|
|
1170
|
-
)
|
|
1171
|
-
? '#06AA3E'
|
|
1172
|
-
: this.isPlat
|
|
1173
|
-
? '#fff'
|
|
1174
|
-
: '#373737'}"
|
|
1175
|
-
>
|
|
1176
|
-
${this.i18n['LCA大赛']}
|
|
1177
|
-
<div class="menu-sub-group menu-sub-group-1">
|
|
1178
|
-
<div
|
|
1081
|
+
<div class="iwh-right">
|
|
1082
|
+
<div class="header-list flex align-center">
|
|
1083
|
+
<div class="el-menu-demo">
|
|
1084
|
+
<div
|
|
1085
|
+
class="menu-item"
|
|
1086
|
+
style="color: ${this.hostName.includes('weblca.net/home')
|
|
1087
|
+
? '#06AA3E'
|
|
1088
|
+
: this.isPlat
|
|
1089
|
+
? '#fff'
|
|
1090
|
+
: '#373737'}"
|
|
1091
|
+
@click="${this._routerPush}"
|
|
1092
|
+
data-login-url="${this._getHomeUrl()}"
|
|
1093
|
+
data-url="${this._getHomeUrl()}"
|
|
1094
|
+
>
|
|
1095
|
+
${this.i18n['首页']}
|
|
1096
|
+
</div>
|
|
1097
|
+
|
|
1098
|
+
<!-- 平台专属菜单项:标准库和核算模板 -->
|
|
1099
|
+
${this.isPlat && false
|
|
1100
|
+
? html` <div
|
|
1101
|
+
class="menu-item"
|
|
1102
|
+
style="color: ${this.isPlat ? '#fff' : '#373737'}"
|
|
1179
1103
|
@click="${this._routerPush}"
|
|
1180
|
-
data-login-url="https://www.weblca.net/
|
|
1181
|
-
data-url="https://www.weblca.net/
|
|
1182
|
-
class="menu-sub-item"
|
|
1104
|
+
data-login-url="https://www.weblca.net/standard"
|
|
1105
|
+
data-url="https://www.weblca.net/standard"
|
|
1183
1106
|
>
|
|
1184
|
-
${this.i18n['
|
|
1107
|
+
${this.i18n['标准库']}
|
|
1185
1108
|
</div>
|
|
1186
1109
|
<div
|
|
1110
|
+
class="menu-item"
|
|
1111
|
+
style="color: ${this.isPlat ? '#fff' : '#373737'}"
|
|
1187
1112
|
@click="${this._routerPush}"
|
|
1188
|
-
data-login-url="https://www.weblca.net/
|
|
1189
|
-
data-url="https://www.weblca.net/
|
|
1190
|
-
class="menu-sub-item"
|
|
1113
|
+
data-login-url="https://www.weblca.net/template"
|
|
1114
|
+
data-url="https://www.weblca.net/template"
|
|
1191
1115
|
>
|
|
1192
|
-
${this.i18n['
|
|
1116
|
+
${this.i18n['核算模版']}
|
|
1117
|
+
</div>`
|
|
1118
|
+
: ''}
|
|
1119
|
+
${this.isPlat || this.alreadyServices.includes('database')
|
|
1120
|
+
? html` <div
|
|
1121
|
+
class="menu-item menu-item-database"
|
|
1122
|
+
style=" position: relative;color: ${this.hostName.includes(
|
|
1123
|
+
'weblca.net/database'
|
|
1124
|
+
)
|
|
1125
|
+
? '#06AA3E'
|
|
1126
|
+
: this.isPlat
|
|
1127
|
+
? '#fff'
|
|
1128
|
+
: '#373737'}"
|
|
1129
|
+
@click="${this._routerPush}"
|
|
1130
|
+
data-login-urlurl="https://www.weblca.net/database"
|
|
1131
|
+
data-url="https://www.weblca.net/database"
|
|
1132
|
+
>
|
|
1133
|
+
${this.isPlat
|
|
1134
|
+
? html`<img
|
|
1135
|
+
class="posi"
|
|
1136
|
+
src="https://ike-web.oss-cn-hangzhou.aliyuncs.com/HOT.png"
|
|
1137
|
+
alt=""
|
|
1138
|
+
/>`
|
|
1139
|
+
: ''}
|
|
1140
|
+
${this.i18n['数据库']}
|
|
1141
|
+
<div class="menu-sub-group">
|
|
1142
|
+
<div
|
|
1143
|
+
@click="${this._routerPush}"
|
|
1144
|
+
data-login-url="https://www.weblca.net/database"
|
|
1145
|
+
data-url="https://www.weblca.net/database"
|
|
1146
|
+
class="menu-sub-item"
|
|
1147
|
+
>
|
|
1148
|
+
${this.i18n['数据库']}
|
|
1149
|
+
</div>
|
|
1150
|
+
<div
|
|
1151
|
+
@click="${this._routerPush}"
|
|
1152
|
+
data-login-url="https://www.weblca.net/database/leather"
|
|
1153
|
+
data-url="https://www.weblca.net/database/leather"
|
|
1154
|
+
class="menu-sub-item"
|
|
1155
|
+
>
|
|
1156
|
+
${this.i18n['皮革LCA数据库']}
|
|
1157
|
+
</div>
|
|
1193
1158
|
</div>
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1159
|
+
</div>`
|
|
1160
|
+
: ''}
|
|
1161
|
+
${this.isPlat || this.alreadyServices.includes('databankpage')
|
|
1162
|
+
? html` <div
|
|
1163
|
+
class="menu-item"
|
|
1164
|
+
style="color: ${this.hostName.includes('/databankpage')
|
|
1165
|
+
? '#06AA3E'
|
|
1166
|
+
: this.isPlat
|
|
1167
|
+
? '#fff'
|
|
1168
|
+
: '#373737'}"
|
|
1169
|
+
@click="${this._routerPush}"
|
|
1170
|
+
data-login-url="https://www.weblca.net/databankpage"
|
|
1171
|
+
data-url="https://www.weblca.net/databankpage"
|
|
1172
|
+
>
|
|
1173
|
+
${this.i18n['资料库']}
|
|
1174
|
+
</div>`
|
|
1175
|
+
: ''}
|
|
1176
|
+
${this.isPlat
|
|
1177
|
+
? html` <div
|
|
1178
|
+
class="menu-item menu-item-database"
|
|
1179
|
+
style=" position: relative;color: ${this.hostName.includes(
|
|
1180
|
+
'efootprint.net/contest'
|
|
1181
|
+
)
|
|
1182
|
+
? '#06AA3E'
|
|
1183
|
+
: this.isPlat
|
|
1184
|
+
? '#fff'
|
|
1185
|
+
: '#373737'}"
|
|
1186
|
+
>
|
|
1187
|
+
${this.i18n['LCA大赛']}
|
|
1188
|
+
<div class="menu-sub-group menu-sub-group-1">
|
|
1189
|
+
<div
|
|
1190
|
+
@click="${this._routerPush}"
|
|
1191
|
+
data-login-url="https://www.weblca.net/contest"
|
|
1192
|
+
data-url="https://www.weblca.net/contest"
|
|
1193
|
+
class="menu-sub-item"
|
|
1194
|
+
>
|
|
1195
|
+
${this.i18n['2025全生命周期创新大赛']}
|
|
1196
|
+
</div>
|
|
1197
|
+
<div
|
|
1198
|
+
@click="${this._routerPush}"
|
|
1199
|
+
data-login-url="https://www.weblca.net/contest/cccd"
|
|
1200
|
+
data-url="https://www.weblca.net/contest/cccd"
|
|
1201
|
+
class="menu-sub-item"
|
|
1202
|
+
>
|
|
1203
|
+
${this.i18n['化工专题比赛']}
|
|
1204
|
+
</div>
|
|
1205
|
+
<div
|
|
1206
|
+
@click="${this._routerPush}"
|
|
1207
|
+
data-login-url="https://www.weblca.net/contest/cbpc"
|
|
1208
|
+
data-url="https://www.weblca.net/contest/cbpc"
|
|
1209
|
+
class="menu-sub-item"
|
|
1210
|
+
>
|
|
1211
|
+
${this.i18n['首届CBPC供应商产品碳足迹管理能力大赛']}
|
|
1212
|
+
</div>
|
|
1201
1213
|
</div>
|
|
1202
|
-
</div
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
</div>
|
|
1214
|
+
</div>`
|
|
1215
|
+
: ''}
|
|
1216
|
+
${this.isPlat
|
|
1217
|
+
? html` <div
|
|
1218
|
+
class="menu-item"
|
|
1219
|
+
style="color: ${this.hostName.includes(
|
|
1220
|
+
'efootprint.net/training'
|
|
1221
|
+
)
|
|
1222
|
+
? '#06AA3E'
|
|
1223
|
+
: this.isPlat
|
|
1224
|
+
? '#fff'
|
|
1225
|
+
: '#373737'}"
|
|
1226
|
+
@click="${this._routerPush}"
|
|
1227
|
+
data-login-url="https://www.weblca.net/training"
|
|
1228
|
+
data-url="https://www.weblca.net/training"
|
|
1229
|
+
>
|
|
1230
|
+
${this.i18n['专业培训']}
|
|
1231
|
+
</div>`
|
|
1232
|
+
: ''}
|
|
1233
|
+
<div
|
|
1234
|
+
class="menu-item"
|
|
1235
|
+
style="color: ${this.isPlat ? '#fff' : '#373737'}"
|
|
1236
|
+
@click="${this._scroll}"
|
|
1237
|
+
data-login-url="#"
|
|
1238
|
+
data-url="#"
|
|
1239
|
+
>
|
|
1240
|
+
${this.i18n['联系我们']}
|
|
1241
|
+
</div>
|
|
1231
1242
|
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1243
|
+
${this.isShowLang
|
|
1244
|
+
? html` <div
|
|
1245
|
+
class="menu-item menu-item-database"
|
|
1246
|
+
style=" position: relative;
|
|
1236
1247
|
text-align: center;
|
|
1237
1248
|
display: flex;
|
|
1238
1249
|
align-items: center;
|
|
1239
1250
|
color: ${this.hostName.includes(
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1251
|
+
'weblca.net/database'
|
|
1252
|
+
)
|
|
1253
|
+
? '#06AA3E'
|
|
1254
|
+
: this.isPlat
|
|
1255
|
+
? '#fff'
|
|
1256
|
+
: '#373737'}"
|
|
1257
|
+
>
|
|
1258
|
+
${this.isPlat
|
|
1259
|
+
? html`<img
|
|
1260
|
+
src="http://ike-web.oss-cn-hangzhou.aliyuncs.com/language.png"
|
|
1261
|
+
alt=""
|
|
1262
|
+
/>`
|
|
1263
|
+
: html`<img
|
|
1264
|
+
src="http://ike-web.oss-cn-hangzhou.aliyuncs.com/language_block.png"
|
|
1265
|
+
alt=""
|
|
1266
|
+
/>`}
|
|
1267
|
+
<div class="menu-sub-group">
|
|
1268
|
+
<div
|
|
1269
|
+
@click="${this._clickLang}"
|
|
1270
|
+
data-lang="zh_CN"
|
|
1271
|
+
class="menu-sub-item"
|
|
1272
|
+
>
|
|
1273
|
+
中文简体
|
|
1274
|
+
</div>
|
|
1275
|
+
<div
|
|
1276
|
+
@click="${this._clickLang}"
|
|
1277
|
+
data-lang="zh_TW"
|
|
1278
|
+
class="menu-sub-item"
|
|
1279
|
+
>
|
|
1280
|
+
中文繁体
|
|
1281
|
+
</div>
|
|
1282
|
+
<div
|
|
1283
|
+
@click="${this._clickLang}"
|
|
1284
|
+
data-lang="en_US"
|
|
1285
|
+
class="menu-sub-item"
|
|
1286
|
+
>
|
|
1287
|
+
English
|
|
1288
|
+
</div>
|
|
1270
1289
|
</div>
|
|
1290
|
+
</div>`
|
|
1291
|
+
: ''}
|
|
1292
|
+
|
|
1293
|
+
<!-- 消息图标 - 仅在登录状态下显示 -->
|
|
1294
|
+
${this.isLoggedIn
|
|
1295
|
+
? html`
|
|
1271
1296
|
<div
|
|
1272
|
-
@click="${this.
|
|
1273
|
-
data-
|
|
1274
|
-
|
|
1297
|
+
@click="${this._routerPush}"
|
|
1298
|
+
data-login-url="${this._getNotificationUrl()}"
|
|
1299
|
+
data-url="${this._getNotificationUrl()}"
|
|
1300
|
+
class="message-icon-container"
|
|
1275
1301
|
>
|
|
1276
|
-
|
|
1302
|
+
<img
|
|
1303
|
+
src="https://ike-web.oss-cn-hangzhou.aliyuncs.com/message.png"
|
|
1304
|
+
alt="消息"
|
|
1305
|
+
class="message-icon ${this.isPlat
|
|
1306
|
+
? ''
|
|
1307
|
+
: 'message-icon-dark'}"
|
|
1308
|
+
/>
|
|
1309
|
+
${this.messageCount > 0
|
|
1310
|
+
? html`<div class="message-badge">
|
|
1311
|
+
${this.messageCount}
|
|
1312
|
+
</div>`
|
|
1313
|
+
: ''}
|
|
1277
1314
|
</div>
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
: ''}
|
|
1281
|
-
|
|
1282
|
-
<!-- 消息图标 - 仅在登录状态下显示 -->
|
|
1283
|
-
${this.isLoggedIn
|
|
1284
|
-
? html`
|
|
1285
|
-
<div
|
|
1286
|
-
@click="${this._routerPush}"
|
|
1287
|
-
data-login-url="${this._getNotificationUrl()}"
|
|
1288
|
-
data-url="${this._getNotificationUrl()}"
|
|
1289
|
-
class="message-icon-container"
|
|
1290
|
-
>
|
|
1291
|
-
<img
|
|
1292
|
-
src="https://ike-web.oss-cn-hangzhou.aliyuncs.com/message.png"
|
|
1293
|
-
alt="消息"
|
|
1294
|
-
class="message-icon ${this.isPlat
|
|
1295
|
-
? ''
|
|
1296
|
-
: 'message-icon-dark'}"
|
|
1297
|
-
/>
|
|
1298
|
-
${this.messageCount > 0
|
|
1299
|
-
? html`<div class="message-badge">
|
|
1300
|
-
${this.messageCount}
|
|
1301
|
-
</div>`
|
|
1302
|
-
: ''}
|
|
1303
|
-
</div>
|
|
1304
|
-
`
|
|
1305
|
-
: ''}
|
|
1315
|
+
`
|
|
1316
|
+
: ''}
|
|
1306
1317
|
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1318
|
+
<!-- 登录/用户信息 -->
|
|
1319
|
+
${this.isLoggedIn
|
|
1320
|
+
? html` <div
|
|
1310
1321
|
class="user-menu ${this.isUserMenuOpen ? 'open' : ''}"
|
|
1311
1322
|
@click="${this._toggleUserMenu}"
|
|
1312
1323
|
>
|
|
@@ -1369,7 +1380,7 @@ export class IkeWebHeader extends LitElement {
|
|
|
1369
1380
|
class="user-action"
|
|
1370
1381
|
@click="${this._goPersonalCenter}"
|
|
1371
1382
|
>
|
|
1372
|
-
|
|
1383
|
+
个人主页
|
|
1373
1384
|
</div>
|
|
1374
1385
|
<div class="user-action" @click="${this._logout}">
|
|
1375
1386
|
退出登录
|
|
@@ -1377,7 +1388,7 @@ export class IkeWebHeader extends LitElement {
|
|
|
1377
1388
|
</div>
|
|
1378
1389
|
</div>
|
|
1379
1390
|
</div>`
|
|
1380
|
-
|
|
1391
|
+
: html` <div
|
|
1381
1392
|
class="login-button"
|
|
1382
1393
|
style="border-color: ${this.isPlat
|
|
1383
1394
|
? '#fff'
|
|
@@ -1387,33 +1398,33 @@ export class IkeWebHeader extends LitElement {
|
|
|
1387
1398
|
${this.i18n['登录']}
|
|
1388
1399
|
</div>`}
|
|
1389
1400
|
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
|
|
1401
|
+
<!-- <div class="menu-item">-->
|
|
1402
|
+
<!-- <el-icon style="cursor: pointer" size="28" color="#fff">-->
|
|
1403
|
+
<!-- <UserFilled/>-->
|
|
1404
|
+
<!-- </el-icon>-->
|
|
1405
|
+
<!-- </div>-->
|
|
1406
|
+
</div>
|
|
1395
1407
|
</div>
|
|
1396
1408
|
</div>
|
|
1397
1409
|
</div>
|
|
1398
|
-
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
|
|
1402
|
-
|
|
1403
|
-
|
|
1404
|
-
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
|
|
1412
|
-
</
|
|
1410
|
+
${this.permissionModalMessage
|
|
1411
|
+
? html`<div class="permission-modal-mask">
|
|
1412
|
+
<div class="permission-modal" role="alertdialog" aria-modal="true">
|
|
1413
|
+
<div class="permission-modal-title">提示</div>
|
|
1414
|
+
<div class="permission-modal-content">
|
|
1415
|
+
${this.permissionModalMessage}
|
|
1416
|
+
</div>
|
|
1417
|
+
<div class="permission-modal-footer">
|
|
1418
|
+
<button
|
|
1419
|
+
class="permission-modal-button"
|
|
1420
|
+
@click="${this._hidePermissionModal}"
|
|
1421
|
+
>
|
|
1422
|
+
确定
|
|
1423
|
+
</button>
|
|
1424
|
+
</div>
|
|
1413
1425
|
</div>
|
|
1414
|
-
</div
|
|
1415
|
-
|
|
1416
|
-
: ''}`
|
|
1426
|
+
</div>`
|
|
1427
|
+
: ''}`
|
|
1417
1428
|
}
|
|
1418
1429
|
|
|
1419
1430
|
_routerPush(e) {
|