ike-weblca-html 1.0.10 → 1.0.11

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ike-weblca-html",
3
- "version": "1.0.10",
3
+ "version": "1.0.11",
4
4
  "description": "weblca-html-header&footer",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
@@ -283,7 +283,7 @@ export class IkeWebFooter extends LitElement {
283
283
  // @property() ent =
284
284
 
285
285
  render() {
286
- return html`${(this.identification === 'www' || this.identification === '192')? this.plat : html`
286
+ return html`${(this.identification === 'www' || this.identification === '192') ? this.plat : html`
287
287
  <div class="plate-footer-ent" id="box-id">
288
288
  <div class="footer1-box-ent flex">
289
289
  <div class="box-a" style="display: flex;align-items: center">
@@ -93,7 +93,7 @@ export class IkeWebHeader extends LitElement {
93
93
  return html`
94
94
  <div class="ike-web-header"
95
95
  style="
96
- background: ${(this.status === 'www' || this.status === '192') ? 'var(--ike-web-header-bg,#063223)' : 'var(--ike-web-header-bg,#FFFFFF)'}; color: ${(this.status === 'www' || this.status === '192') ? 'var(--ike-web-header-bg,#fff)' : 'var(--ike-web-header-bg,#063223)'}">
96
+ background: ${(this.status === 'www' || this.status === '192') ? '#063223' : '#FFFFFF'}; color: ${(this.status === 'www' || this.status === '192') ? '#fff' : '#063223'}">
97
97
  <img src="https://ike-web.oss-cn-hangzhou.aliyuncs.com/WebLCA_logo.png" class="iwh-url" alt="">
98
98
 
99
99
  <div class="iwh-right">
@@ -111,15 +111,15 @@ export class IkeWebHeader extends LitElement {
111
111
  alt="">` : ''}
112
112
  数据库
113
113
  </div>
114
- ${this.data.includes('ef') ? html`<div class="menu-item"
114
+ ${ (this.status === 'www' || this.status === '192' || this.data.includes('eF')) ? html`<div class="menu-item"
115
115
  style="color: ${(this.status === 'www' || this.status === '192' )? 'var(--ike-web-header-text-color,#fff)' : 'var(--ike-web-header-text-color,#373737)'}"
116
116
  @click="${this._routerPush}" data-url="https://www.efootprint.net">eFootprint
117
117
  </div>` : '' }
118
- ${this.data.includes('scope') ? html`<div class="menu-item"
118
+ ${(this.status === 'www' || this.status === '192' || this.data.includes('scope')) ? html`<div class="menu-item"
119
119
  style="color: ${(this.status === 'www' || this.status === '192' )? 'var(--ike-web-header-text-color,#fff)' : 'var(--ike-web-header-text-color,#373737)'}"
120
120
  @click="${this._routerPush}" data-url="https://www.webcarbon.net">CarbonZero
121
121
  </div>` : ''}
122
- ${this.data.includes('GPM') ? html`<div class="menu-item"
122
+ ${(this.status === 'www' || this.status === '192' || this.data.includes('GPM') ) ? html`<div class="menu-item"
123
123
  style="color: ${(this.status === 'www' || this.status === '192' )? 'var(--ike-web-header-text-color,#fff)' : 'var(--ike-web-header-text-color,#373737)'}"
124
124
  v-if="status!=='tibd'" @click="${this._routerPush}" data-url="https://www.webgpm.net">
125
125
  GPM