PDA样式修改,功能完善

This commit is contained in:
赵正易
2024-03-28 13:33:13 +08:00
parent 96abe04127
commit c296a32768
9 changed files with 192 additions and 135 deletions

View File

@@ -1,6 +1,6 @@
{
"name" : "干巷仓库APP",
"appid" : "__UNI__A82C0EC",
"appid" : "__UNI__A67E78B",
"description" : "",
"versionName" : "1.0.0",
"versionCode" : "100",
@@ -100,7 +100,7 @@
"disableHostCheck" : true,
"proxy" : {
"/api" : {
"target" : "http://192.168.0.31:8888",
"target" : "http://192.168.2.101:8888",
"pathRewrite" : {
"^/api" : ""
}

View File

@@ -333,6 +333,7 @@ export default {
display: flex;
align-items: center;
justify-content: center;
color: #151515;
}
.scroll-view-box {
width: 94%;
@@ -340,7 +341,7 @@ export default {
margin-top: 30px;
height: 400px;
padding: 10px;
background-color: rgba(20, 9, 69, 0.2);
background-color: rgba(179, 179, 179, 0.7);
border-radius: 5px;
}
.scroll-view-last {

View File

@@ -9,7 +9,7 @@
<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="55" color="#0081ff" />
<uni-icons :type="item.icon" :size="40" color="#00aaff" />
<text class="text">{{ item.name }}</text>
</view>
</uni-grid-item>
@@ -23,131 +23,182 @@
</template>
<script>
export default {
data() {
return {
gridItemList: [
{ name: '入库', icon: 'download-filled' },
{ name: '出库', icon: 'upload-filled' },
{ name: '盘点', icon: 'wallet-filled' },
{ name: '移库', icon: 'cart-filled' },
{ name: '退库', icon: 'undo-filled' },
{ name: '拼箱', icon: 'folder-add-filled' },
{ name: '拆箱', icon: 'folder-add-filled' },
{ name: '货物查看', icon: 'eye-filled' },
{ name: '入库记录', icon: 'list' },
{ name: '出库记录', icon: 'list' },
{ name: '注销', icon: 'redo-filled' }
]
};
},
onLoad: function () {},
mounted() {
// setInterval(function () {
// uni.hideKeyboard(); //隐藏软键盘
// // plus.key.hideSoftKeybord();
// }, 60);
},
methods: {
gridCheck(item) {
const index = item.detail?.index;
switch (index) {
case 1:
uni.navigateTo({
url: '/pages/inWarehouse/inWarehouse'
});
break;
case 2:
uni.navigateTo({
url: '/pages/outWarehouse/outWarehouse'
});
break;
case 3:
uni.navigateTo({
url: '/pages/stocktake/stocktake'
});
break;
case 4:
uni.navigateTo({
url: '/pages/relocation/relocation'
});
break;
case 5:
uni.navigateTo({
url: '/pages/returnWarehose/returnWarehose'
});
break;
case 6:
//TODO 拼箱
// uni.navigateTo({
// url: '/pages/returnWarehose/returnWarehose'
// });
break;
case 7:
// 货物查看
// uni.navigateTo({
// url: '/pages/returnWarehose/returnWarehose'
// });
break;
case 8:
// 货物查看
// uni.navigateTo({
// url: '/pages/returnWarehose/returnWarehose'
// });
break;
case 9:
// 货物查看
// uni.navigateTo({
// url: '/pages/returnWarehose/returnWarehose'
// });
break;
case 11:
// 注销
uni.navigateTo({
url: '/pages/login/login'
});
break;
default:
break;
}
export default {
data() {
return {
gridItemList: [{
name: '入库',
icon: 'download-filled'
},
{
name: '库',
icon: 'upload-filled'
},
{
name: '盘点',
icon: 'wallet-filled'
},
{
name: '移库',
icon: 'cart-filled'
},
{
name: '退库',
icon: 'undo-filled'
},
{
name: '拼箱',
icon: 'folder-add-filled'
},
{
name: '拆箱',
icon: 'folder-add-filled'
},
{
name: '货物查看',
icon: 'eye-filled'
},
{
name: '入库记录',
icon: 'list'
},
{
name: '出库记录',
icon: 'list'
},
{
name: '注销',
icon: 'redo-filled'
}
]
};
},
handleWareHouseChange(data) {
uni.showToast({
title: '扫描成功',
icon: 'success'
});
// console.log('handleWareHouseChange', data);
onLoad: function() {},
mounted() {
// setInterval(function () {
// uni.hideKeyboard(); //隐藏软键盘
// // plus.key.hideSoftKeybord();
// }, 60);
},
methods: {
gridCheck(item) {
const index = item.detail?.index;
switch (index) {
case 1:
uni.navigateTo({
url: '/pages/inWarehouse/inWarehouse'
});
break;
case 2:
uni.navigateTo({
url: '/pages/outWarehouse/outWarehouse'
});
break;
case 3:
uni.navigateTo({
url: '/pages/stocktake/stocktake'
});
break;
case 4:
uni.navigateTo({
url: '/pages/relocation/relocation'
});
break;
case 5:
uni.navigateTo({
url: '/pages/returnWarehose/returnWarehose'
});
break;
case 6:
//TODO 拼箱
// uni.navigateTo({
// url: '/pages/returnWarehose/returnWarehose'
// });
break;
case 7:
// 货物查看
// uni.navigateTo({
// url: '/pages/returnWarehose/returnWarehose'
// });
break;
case 8:
// 货物查看
// uni.navigateTo({
// url: '/pages/returnWarehose/returnWarehose'
// });
break;
case 9:
// 货物查看
// uni.navigateTo({
// url: '/pages/returnWarehose/returnWarehose'
// });
break;
case 11:
// 注销
uni.showModal({
title: '注销',
content: '是否注销当前账户?',
showCancel: true,
cancelText: '取消',
confirmText: '注销',
success: (res) => {
if (res.confirm) {
uni.reLaunch({
url: '/pages/login/login'
})
}
}
});
break;
default:
break;
}
},
handleWareHouseChange(data) {
uni.showToast({
title: '扫描成功',
icon: 'success'
});
// console.log('handleWareHouseChange', data);
}
}
}
};
};
</script>
<style scoped>
.background {
/* background-color: #4671d5; */
}
.title-box {
width: 100%;
height: 150px;
}
.grid-box {
width: 100%;
height: 100%;
}
.grid-box .item {
width: 100%;
height: 100%;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}
.background {
margin-top: 20px;
height: 692px;
/* background-color: #4671d5; */
}
.item {
background-color: rgba(128, 128, 128, 0.5);
}
.text {
font-size: 24px;
}
</style>
.title-box {
width: 100%;
height: 150px;
}
.grid-box {
width: 100%;
height: 100%;
}
.grid-box .item {
width: 100%;
height: 100%;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}
.item {
background-color: rgba(128, 128, 128, 0.5);
}
.text {
font-size: 24px;
color: white;
}
</style>

View File

@@ -31,7 +31,7 @@
<text @click="handleUserRegister" class="text-blue">立即注册</text>
</view>
<view class="xieyi text-center">
<text class="text-grey1">登录即代表同意</text>
<text class="text-white">登录即代表同意</text>
<text @click="handleUserAgrement" class="text-blue">用户协议</text>
<text @click="handlePrivacy" class="text-blue">隐私协议</text>
</view>
@@ -168,7 +168,12 @@ export default {
page {
background-color: #ffffff;
}
.text-white{
color: white;
}
.text-blue{
color:#5500ff;
}
.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%;
@@ -178,7 +183,7 @@ page {
background-position: center;
height: 662px;
height: 712px;
.logo-content {
width: 100%;
font-size: 21px;

View File

@@ -326,7 +326,7 @@ export default {
margin-top: 50px;
height: 360px;
padding: 10px;
background-color: rgba(20, 9, 69, 0.2);
background-color: rgba(179, 179, 179, 0.7);
border-radius: 5px;
}
.scroll-view-last {

View File

@@ -286,7 +286,7 @@ export default {
margin-top: 30px;
height: 400px;
padding: 10px;
background-color: rgba(20, 9, 69, 0.2);
background-color: rgba(179, 179, 179, 0.7);
border-radius: 5px;
}
.scroll-view-last {

View File

@@ -245,7 +245,7 @@ export default {
margin-top: 20px;
height: 360px;
padding: 10px;
background-color: rgba(20, 9, 69, 0.2);
background-color: rgba(179, 179, 179, 0.7);
border-radius: 5px;
}
.scroll-view-last {

View File

@@ -256,7 +256,7 @@ export default {
margin-top: 50px;
height: 360px;
padding: 10px;
background-color: rgba(20, 9, 69, 0.2);
background-color: rgba(179, 179, 179, 0.7);
border-radius: 5px;
}
.scroll-view-last {

View File

@@ -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 || {}