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.
@@ -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
- 个人中心: 'Personal Center',
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(cacheNames.map((cacheName) => window.caches.delete(cacheName)))
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 (window.indexedDB && typeof window.indexedDB.databases === 'function') {
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 = request.onerror = request.onblocked = resolve
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
- class="ike-web-header"
999
- style="
1006
+ class="ike-web-header"
1007
+ style="
1000
1008
  background: ${this.isPlat
1001
- ? '#063223'
1002
- : '#FFFFFF'}; color: ${this.isPlat ? '#fff' : '#063223'}"
1003
- >
1004
- <div style="display: flex;align-items: center">
1005
- <img
1006
- src="https://ike-web.oss-cn-hangzhou.aliyuncs.com/WebLCA_logo.png"
1007
- class="iwh-url"
1008
- alt=""
1009
- />
1010
- ${this.status !== 'www' || this.isLocalSecondaryPreview
1011
- ? html` <div class="box-a" style="display: flex;align-items: center">
1012
- <img src="${this.logo}" alt="" />
1013
- <span
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
- </div>`
1021
- : ''}
1022
-
1023
- <!-- 左侧菜单项:eFootprint、CarbonZero、GPM ---- 111111 -->
1024
- ${html` <div class="left-menu-items">
1025
- ${html` <div
1026
- class="left-menu-item"
1027
- style="color: ${this.hostName.includes('efootprint.net/login')
1028
- ? '#06AA3E'
1029
- : this.isPlat
1030
- ? '#fff'
1031
- : '#373737'}"
1032
- @click="${this._handleServiceClick}"
1033
- data-url="${this._getServiceLoginUrl()}"
1034
- data-login-url="${this._getServiceTargetUrl('eFootprint')}"
1035
- data-service="ef"
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._routerPush}"
1081
- data-login-url="${this._getHomeUrl()}"
1082
- data-url="${this._getHomeUrl()}"
1043
+ @click="${this._handleServiceClick}"
1044
+ data-url="${this._getServiceLoginUrl()}"
1045
+ data-login-url="${this._getServiceTargetUrl('eFootprint')}"
1046
+ data-service="ef"
1083
1047
  >
1084
- ${this.i18n['首页']}
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
- ${this.isPlat && false
1089
- ? html` <div
1090
- class="menu-item"
1091
- style="color: ${this.isPlat ? '#fff' : '#373737'}"
1092
- @click="${this._routerPush}"
1093
- data-login-url="https://www.weblca.net/standard"
1094
- data-url="https://www.weblca.net/standard"
1095
- >
1096
- ${this.i18n['标准库']}
1097
- </div>
1098
- <div
1099
- class="menu-item"
1100
- style="color: ${this.isPlat ? '#fff' : '#373737'}"
1101
- @click="${this._routerPush}"
1102
- data-login-url="https://www.weblca.net/template"
1103
- data-url="https://www.weblca.net/template"
1104
- >
1105
- ${this.i18n['核算模版']}
1106
- </div>`
1107
- : ''}
1108
- ${this.isPlat || this.alreadyServices.includes('database')
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/contest"
1181
- data-url="https://www.weblca.net/contest"
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['2025全生命周期创新大赛']}
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/contest/cccd"
1189
- data-url="https://www.weblca.net/contest/cccd"
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
- <div
1195
- @click="${this._routerPush}"
1196
- data-login-url="https://www.weblca.net/contest/cbpc"
1197
- data-url="https://www.weblca.net/contest/cbpc"
1198
- class="menu-sub-item"
1199
- >
1200
- ${this.i18n['首届CBPC供应商产品碳足迹管理能力大赛']}
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
- </div>`
1204
- : ''}
1205
- ${this.isPlat
1206
- ? html` <div
1207
- class="menu-item"
1208
- style="color: ${this.hostName.includes(
1209
- 'efootprint.net/training'
1210
- )
1211
- ? '#06AA3E'
1212
- : this.isPlat
1213
- ? '#fff'
1214
- : '#373737'}"
1215
- @click="${this._routerPush}"
1216
- data-login-url="https://www.weblca.net/training"
1217
- data-url="https://www.weblca.net/training"
1218
- >
1219
- ${this.i18n['专业培训']}
1220
- </div>`
1221
- : ''}
1222
- <div
1223
- class="menu-item"
1224
- style="color: ${this.isPlat ? '#fff' : '#373737'}"
1225
- @click="${this._scroll}"
1226
- data-login-url="#"
1227
- data-url="#"
1228
- >
1229
- ${this.i18n['联系我们']}
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
- ${this.isShowLang
1233
- ? html` <div
1234
- class="menu-item menu-item-database"
1235
- style=" position: relative;
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
- 'weblca.net/database'
1241
- )
1242
- ? '#06AA3E'
1243
- : this.isPlat
1244
- ? '#fff'
1245
- : '#373737'}"
1246
- >
1247
- ${this.isPlat
1248
- ? html`<img
1249
- src="http://ike-web.oss-cn-hangzhou.aliyuncs.com/language.png"
1250
- alt=""
1251
- />`
1252
- : html`<img
1253
- src="http://ike-web.oss-cn-hangzhou.aliyuncs.com/language_block.png"
1254
- alt=""
1255
- />`}
1256
- <div class="menu-sub-group">
1257
- <div
1258
- @click="${this._clickLang}"
1259
- data-lang="zh_CN"
1260
- class="menu-sub-item"
1261
- >
1262
- 中文简体
1263
- </div>
1264
- <div
1265
- @click="${this._clickLang}"
1266
- data-lang="zh_TW"
1267
- class="menu-sub-item"
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._clickLang}"
1273
- data-lang="en_US"
1274
- class="menu-sub-item"
1297
+ @click="${this._routerPush}"
1298
+ data-login-url="${this._getNotificationUrl()}"
1299
+ data-url="${this._getNotificationUrl()}"
1300
+ class="message-icon-container"
1275
1301
  >
1276
- English
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
- </div>
1279
- </div>`
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
- ${this.isLoggedIn
1309
- ? html` <div
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
- : html` <div
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
- <!-- <div class="menu-item">-->
1391
- <!-- <el-icon style="cursor: pointer" size="28" color="#fff">-->
1392
- <!-- <UserFilled/>-->
1393
- <!-- </el-icon>-->
1394
- <!-- </div>-->
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
- </div>
1399
- ${this.permissionModalMessage
1400
- ? html`<div class="permission-modal-mask">
1401
- <div class="permission-modal" role="alertdialog" aria-modal="true">
1402
- <div class="permission-modal-title">提示</div>
1403
- <div class="permission-modal-content">
1404
- ${this.permissionModalMessage}
1405
- </div>
1406
- <div class="permission-modal-footer">
1407
- <button
1408
- class="permission-modal-button"
1409
- @click="${this._hidePermissionModal}"
1410
- >
1411
- 确定
1412
- </button>
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
- </div>`
1416
- : ''}`
1426
+ </div>`
1427
+ : ''}`
1417
1428
  }
1418
1429
 
1419
1430
  _routerPush(e) {