移动端UI 修改
2
App.vue
@@ -45,7 +45,7 @@ export default {
|
||||
.content {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
background-image: linear-gradient(rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.5)), url('static/images/background/background.jpg');
|
||||
background-image: linear-gradient(rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.1)), url('static/images/background/background.png');
|
||||
background-size: cover;
|
||||
//filter: opacity(50%);
|
||||
font-size: 36px;
|
||||
|
||||
@@ -68,7 +68,7 @@
|
||||
"disableHostCheck" : true,
|
||||
"proxy" : {
|
||||
"/api" : {
|
||||
"target" : "http://192.168.90.92:8888",
|
||||
"target" : "http://192.168.0.31:8888",
|
||||
"pathRewrite" : {
|
||||
"^/api" : ""
|
||||
}
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
<template>
|
||||
<view class="content background">
|
||||
<view class="title-box">道安WMS-PDA扫码</view>
|
||||
<view ><image src="@/static/images/banner/banber.jpg" class="title-box"></image></view>
|
||||
<view class="grid-box">
|
||||
<uni-grid :column="3" @change="gridCheck" :showBorder="false" :highlight="false">
|
||||
<uni-grid-item v-for="(item, index) in gridItemList" :index="index + 1">
|
||||
<view class="item">
|
||||
<uni-icons :type="item.icon" :size="48" color="#777" />
|
||||
<uni-icons :type="item.icon" :size="55" color="#0081ff" />
|
||||
<text class="text">{{ item.name }}</text>
|
||||
</view>
|
||||
</uni-grid-item>
|
||||
@@ -32,7 +32,8 @@ export default {
|
||||
{ name: '拆箱', icon: 'folder-add-filled' },
|
||||
{ name: '货物查看', icon: 'eye-filled' },
|
||||
{ name: '入库记录', icon: 'list' },
|
||||
{ name: '出库记录', icon: 'list' }
|
||||
{ name: '出库记录', icon: 'list' },
|
||||
{ name: '注销', icon: 'redo-filled' }
|
||||
]
|
||||
};
|
||||
},
|
||||
@@ -97,6 +98,12 @@ export default {
|
||||
// url: '/pages/returnWarehose/returnWarehose'
|
||||
// });
|
||||
break;
|
||||
case 10:
|
||||
// 注销
|
||||
uni.navigateTo({
|
||||
url: '/pages/login/login'
|
||||
});
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
@@ -118,12 +125,8 @@ export default {
|
||||
}
|
||||
.title-box {
|
||||
width: 100%;
|
||||
height: 80px;
|
||||
margin-bottom: 10px;
|
||||
font-size: 20px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
height: 150px;
|
||||
|
||||
}
|
||||
.grid-box {
|
||||
width: 100%;
|
||||
@@ -137,6 +140,10 @@ export default {
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.item {
|
||||
background-color: rgba(128, 128, 128, 0.5);
|
||||
}
|
||||
.text {
|
||||
font-size: 24px;
|
||||
}
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
<view class="normal-login-container">
|
||||
<view class="logo-content align-center justify-center flex">
|
||||
<image style="width: 100rpx; height: 100rpx" :src="globalConfig.appInfo.logo" mode="widthFix"></image>
|
||||
<text class="title">DOAN PDA 登录</text>
|
||||
<text class="title" style="color: #0081ff;">涂装车间MOM-移动端</text>
|
||||
</view>
|
||||
<view class="login-form-content">
|
||||
<view class="input-item flex align-center">
|
||||
@@ -170,14 +170,20 @@ page {
|
||||
}
|
||||
|
||||
.normal-login-container {
|
||||
background-image:linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.1)), url('@/static/images/background/login2.png');
|
||||
width: 100%;
|
||||
|
||||
background-size: cover;
|
||||
background-repeat: no-repeat;
|
||||
|
||||
background-position: center;
|
||||
|
||||
height: 662px;
|
||||
.logo-content {
|
||||
width: 100%;
|
||||
font-size: 21px;
|
||||
text-align: center;
|
||||
padding-top: 15%;
|
||||
|
||||
image {
|
||||
border-radius: 4px;
|
||||
}
|
||||
|
||||
|
Before Width: | Height: | Size: 11 KiB |
BIN
static/images/background/background.png
Normal file
|
After Width: | Height: | Size: 2.0 MiB |
BIN
static/images/background/login2.png
Normal file
|
After Width: | Height: | Size: 1.9 MiB |
BIN
static/images/banner/banber.jpg
Normal file
|
After Width: | Height: | Size: 567 KiB |
|
Before Width: | Height: | Size: 39 KiB |
|
Before Width: | Height: | Size: 36 KiB |
|
Before Width: | Height: | Size: 37 KiB |
@@ -18,9 +18,9 @@ import {
|
||||
let timeout = 10000
|
||||
const request = config => {
|
||||
// 浏览器测试用
|
||||
// const storageBaseUrl = 'http://' + getBaseUrl() + '/api';
|
||||
const storageBaseUrl = 'http://' + getBaseUrl() + '/api';
|
||||
// 真机测试以及部署用
|
||||
const storageBaseUrl = 'http://' + getBaseUrl();
|
||||
//const storageBaseUrl = 'http://' + getBaseUrl();
|
||||
// 是否需要设置 token
|
||||
const isToken = (config.headers || {}).isToken === false
|
||||
config.header = config.header || {}
|
||||
|
||||