Quellcode durchsuchen

首页更改

pull/8/head
juzi vor 1 Jahr
Ursprung
Commit
00071dddee
9 geänderte Dateien mit 37 neuen und 20 gelöschten Zeilen
  1. BIN
      src/assets/img/choicepart/basicData.png
  2. BIN
      src/assets/img/choicepart/choicepart-back-u.png
  3. BIN
      src/assets/img/choicepart/choicepart-back.png
  4. BIN
      src/assets/img/choicepart/inStore.png
  5. BIN
      src/assets/img/choicepart/inventoryManagement.png
  6. BIN
      src/assets/img/choicepart/outStore.png
  7. BIN
      src/assets/img/choicepart/statisticalReports.png
  8. BIN
      src/assets/img/choicepart/systemSettings.png
  9. +37
    -20
      src/views/wmsHome/index.vue

BIN
src/assets/img/choicepart/basicData.png Datei anzeigen

Vorher Nachher
Breite: 158  |  Höhe: 222  |  Größe: 22 KiB Breite: 176  |  Höhe: 176  |  Größe: 23 KiB

BIN
src/assets/img/choicepart/choicepart-back-u.png Datei anzeigen

Vorher Nachher
Breite: 3844  |  Höhe: 536  |  Größe: 183 KiB

BIN
src/assets/img/choicepart/choicepart-back.png Datei anzeigen

Vorher Nachher
Breite: 5757  |  Höhe: 3240  |  Größe: 3.5 MiB Breite: 3840  |  Höhe: 2160  |  Größe: 1.2 MiB

BIN
src/assets/img/choicepart/inStore.png Datei anzeigen

Vorher Nachher
Breite: 208  |  Höhe: 198  |  Größe: 34 KiB Breite: 176  |  Höhe: 176  |  Größe: 27 KiB

BIN
src/assets/img/choicepart/inventoryManagement.png Datei anzeigen

Vorher Nachher
Breite: 204  |  Höhe: 198  |  Größe: 29 KiB Breite: 176  |  Höhe: 176  |  Größe: 26 KiB

BIN
src/assets/img/choicepart/outStore.png Datei anzeigen

Vorher Nachher
Breite: 204  |  Höhe: 204  |  Größe: 29 KiB Breite: 176  |  Höhe: 176  |  Größe: 28 KiB

BIN
src/assets/img/choicepart/statisticalReports.png Datei anzeigen

Vorher Nachher
Breite: 168  |  Höhe: 208  |  Größe: 24 KiB Breite: 176  |  Höhe: 176  |  Größe: 24 KiB

BIN
src/assets/img/choicepart/systemSettings.png Datei anzeigen

Vorher Nachher
Breite: 222  |  Höhe: 190  |  Größe: 32 KiB Breite: 176  |  Höhe: 176  |  Größe: 29 KiB

+ 37
- 20
src/views/wmsHome/index.vue Datei anzeigen

@@ -1,21 +1,25 @@
<template> <template>
<div class="choicepart-container">
<div id="container" class="choicepart-container">
<div class="choicepat-navbar"> <div class="choicepat-navbar">
<navbar :showhome="false" :show-title="true" /> <navbar :showhome="false" :show-title="true" />
</div> </div>
<div class="choicepart-box">
<div class="choicepart-box" :style="{ width: 1585 * beilv + 'px' }">
<div <div
v-for="(item, index) in moduleList" v-for="(item, index) in moduleList"
:key="item.path" :key="item.path"
class="choicepart-item" class="choicepart-item"
:style="{ width: 180 * beilv + 'px', height: 223 * beilv + 'px', margin: 40 * beilv + 'px' }"
@click="handelClick(item, index)" @click="handelClick(item, index)"
> >
<div class="choicepart-item-border"> <div class="choicepart-item-border">
<img :src="require(`../../assets/img/choicepart/${item.name}.png`)" alt="">
<img :src="require(`../../assets/img/choicepart/${item.name}.png`)" alt="" :style="{ width: 90 * beilv + 'px', height: 90 * beilv + 'px', top: 35 * beilv + 'px', left: 50 * beilv + 'px' }">
</div> </div>
<div class="choicepart-item-title" :title="item.meta.title">{{ item.meta.title }}</div>
<div class="choicepart-item-title" :title="item.meta.title" :style="{ height: 40 * beilv + 'px', lineHeight: 40 * beilv + 'px', fontSize: 16 * beilv + 'px' }">{{ item.meta.title }}</div>
</div> </div>
</div> </div>
<div class="bottom-img">
<img :src="require('../../assets/img/choicepart/choicepart-back-u.png')" alt="">
</div>
</div> </div>
</template> </template>


@@ -28,10 +32,19 @@ export default {
components: { Navbar }, components: { Navbar },
data() { data() {
return { return {
beilv: 1,
moduleList: [] moduleList: []
} }
}, },
mounted() { mounted() {
this.beilv = document.getElementById('container').offsetWidth / 1920
window.addEventListener('resize', () => {
if (this.isFullScreen) {
this.beilv = document.body.offsetWidth / 1920
} else {
this.beilv = document.getElementById('container').offsetWidth / 1920
}
})
this.getModuleList() this.getModuleList()
const path = location.href const path = location.href
if (path.indexOf('?') !== -1) { if (path.indexOf('?') !== -1) {
@@ -75,41 +88,38 @@ export default {
.choicepart-container { .choicepart-container {
min-width: 100%; min-width: 100%;
min-height: 100vh; min-height: 100vh;
// background: linear-gradient(-45deg, rgb(25, 25, 200), rgb(0, 100, 200));
background: url('../../assets/img/choicepart/choicepart-back.png') repeat; background: url('../../assets/img/choicepart/choicepart-back.png') repeat;
background-size: cover; background-size: cover;
overflow-x: auto; overflow-x: auto;
.choicepart-box { .choicepart-box {
width: 1585px;
// width: 1585px;
margin: 0 auto; margin: 0 auto;
padding-top: 25vh; padding-top: 25vh;
.choicepart-item { .choicepart-item {
display: inline-block; display: inline-block;
width: 180px;
height: 223px;
margin: 40px;
// width: 180px;
// height: 223px;
// margin: 40px;
background: url('../../assets/img/choicepart/choice-item-back.png') no-repeat; background: url('../../assets/img/choicepart/choice-item-back.png') no-repeat;
background-size: 100% 100%; background-size: 100% 100%;
// border: 1px dashed #fff;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
top: 0; top: 0;
border-radius: 5px; border-radius: 5px;
overflow: hidden; overflow: hidden;
cursor: pointer; cursor: pointer;
position: relative; position: relative;
img { img {
width: 90px;
height: 99px;
// width: 90px;
// height: 90px;
position: absolute; position: absolute;
top: 32px;
left: 43px;
// top: 32px;
// left: 43px;
} }
.choicepart-item-border { .choicepart-item-border {
height: 100%; height: 100%;
border-radius: 5px; border-radius: 5px;
padding: 0 5px; padding: 0 5px;
line-height: 32px;
font-size: 28px;
// line-height: 32px;
// font-size: 28px;
font-weight: lighter; font-weight: lighter;
color: #2c6bd8; color: #2c6bd8;
overflow: hidden; overflow: hidden;
@@ -125,9 +135,9 @@ export default {
right: 2px; right: 2px;
text-align: center; text-align: center;
color: #fff; color: #fff;
font-size: 16px;
line-height: 40px;
height: 40px;
// font-size: 16px;
// line-height: 40px;
// height: 40px;
letter-spacing: 2px; letter-spacing: 2px;
background-color: rgba($color: #0b58ff, $alpha: 0.45); background-color: rgba($color: #0b58ff, $alpha: 0.45);
} }
@@ -145,6 +155,13 @@ export default {
right: 0; right: 0;
z-index: 10; z-index: 10;
} }
.bottom-img {
img {
width: 100%;
position: fixed;
bottom: 0;
}
}
} }
::-webkit-scrollbar-track-piece { ::-webkit-scrollbar-track-piece {
//滚动条凹槽的颜色,还可以设置边框属性 //滚动条凹槽的颜色,还可以设置边框属性


Laden…
Abbrechen
Speichern