提交代码

This commit is contained in:
TUZI0421 2024-01-16 16:42:05 +08:00
parent a7049570e3
commit 3d1a7f0e59
8 changed files with 168 additions and 14 deletions

View File

@ -3,6 +3,7 @@
onLaunch: function() { onLaunch: function() {
console.warn('当前组件仅支持 uni_modules 目录结构 ,请升级 HBuilderX 到 3.1.0 版本以上!') console.warn('当前组件仅支持 uni_modules 目录结构 ,请升级 HBuilderX 到 3.1.0 版本以上!')
console.log('App Launch') console.log('App Launch')
// plus.navigator.setFullscreen(true);//
}, },
onShow: function() { onShow: function() {
console.log('App Show') console.log('App Show')
@ -41,4 +42,8 @@
.font12{font-size: $uni-font-size-sm;} .font12{font-size: $uni-font-size-sm;}
.font13{font-size:13px;} .font13{font-size:13px;}
.font14{font-size: $uni-font-size-base;} .font14{font-size: $uni-font-size-base;}
.font_bold{font-weight: bold;}
//
.text_color_black{color: #000;}
</style> </style>

View File

@ -50,7 +50,7 @@
/* */ /* */
"mp-weixin" : { "mp-weixin" : {
/* */ /* */
"appid" : "", "appid" : "wx62bd7b72516b9017",
"setting" : { "setting" : {
"urlCheck" : false "urlCheck" : false
}, },

5
package-lock.json generated Normal file
View File

@ -0,0 +1,5 @@
{
"name": "mes_mobile",
"version": "1.0.0",
"lockfileVersion": 1
}

16
package.json Normal file
View File

@ -0,0 +1,16 @@
{
"name": "mes_mobile",
"version": "1.0.0",
"description": "",
"main": "main.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
"type": "git",
"url": "https://git.tool.dwoodauto.com/long/mes_mobile.git"
},
"keywords": [],
"author": "",
"license": "ISC"
}

View File

@ -35,7 +35,16 @@
"path" : "pages/login/login", "path" : "pages/login/login",
"style" : "style" :
{ {
"navigationBarTitleText" : "登录", // "navigationBarTitleText" : "登录",
"enablePullDownRefresh" : false,
"navigationStyle": "custom"
}
},
{
"path" : "pages/index/productionOrder",
"style" :
{
"navigationBarTitleText" : "生产工单管理",
"enablePullDownRefresh" : false "enablePullDownRefresh" : false
} }
}], }],
@ -51,8 +60,8 @@
"current": 0, //(list ) "current": 0, //(list )
"list": [ "list": [
{ {
"name": "登录", // "name": "首页", //
"path": "pages/login/login", // "path": "pages/index/index", //
"query": "" //onLoad "query": "" //onLoad
} }
] ]
@ -70,7 +79,7 @@
"pagePath":"pages/index/index", "pagePath":"pages/index/index",
"text":"首页" "text":"首页"
},{ },{
"pagePath":"pages/login/login", "pagePath":"pages/person/person",
"text":"我的" "text":"我的"
} }
] ]

View File

@ -10,7 +10,7 @@
<view class="content_box"> <view class="content_box">
<view class="content_title">工单管理</view> <view class="content_title">工单管理</view>
<view class="content_data"> <view class="content_data">
<view class="content_module"> <view class="content_module" @click="toProductionOrder()">
<view class="t-icon t-icon-shengchangongdan contenticon"></view> <view class="t-icon t-icon-shengchangongdan contenticon"></view>
<view class="contentname">生产工单</view> <view class="contentname">生产工单</view>
</view> </view>
@ -75,6 +75,12 @@
url: '/pages/index/message' url: '/pages/index/message'
}) })
}, },
//
toProductionOrder(){
uni.navigateTo({
url:'/pages/index/productionOrder'
})
},
} }
} }
</script> </script>

View File

@ -0,0 +1,41 @@
<template>
<!-- 生产工单 -->
<view class="pagepaddings">
<view v-for="(item,index) in list" :key="index" class="page_list">
<view class="list_top">
<view class="top_left">
工单号:{{item.name}}
</view>
<view class="top_right">
工单详情
</view>
</view>
<view class="list_centre">
</view>
<view class="list_below">
</view>
</view>
</view>
</template>
<script>
export default {
data() {
return {
list:[{
name:'SO202401111004',
}]
}
},
methods: {
}
}
</script>
<style>
</style>

View File

@ -1,17 +1,67 @@
<template> <template>
<view class="login_page ">
<view class="login_top">
<view class="login_logo">
<image src="https://dm-auto.oss-cn-shanghai.aliyuncs.com/mes_wechat/meslogo.png" class="logopng"></image>
<image src="https://dm-auto.oss-cn-shanghai.aliyuncs.com/mes_wechat/demu.png" class="demupng"></image>
</view>
<view class="">
自动化MES管理系统
</view>
</view>
<view class="login_centre">
<view class="login_switch text_color_black font14">
<view class="login_name font_bold" >
账号登录
</view>
<view class="login_name">
手机号登录
</view>
</view>
<view class="font12 text_color_black" v-if="type==1">
<view class="login_input">
<input placeholder="请输入账号" />
</view>
<view class="login_input">
<input password type="text" placeholder="请输入密码" />
</view>
</view>
<view class="font12" v-if="type==2">
<view class="login_input">
<input placeholder="请输入手机号"/>
</view>
<view class="">
<input placeholder="请输入手机号"/>
<view class="getCaptcha">{{codename}}</view>
</view>
</view>
<view class="" style="color: #C4C4C4;font-size: 11px; padding-top: 14px;">
记住密码
</view>
<view class="loginbut">
登录
</view>
<view class="" style="color: #009688;text-align: center;font-size: 13px;">
手机号一键登录
</view>
</view>
<view class="login_below">
<view class=""> <view class="">
测试
</view>
<view class="">
</view> </view>
</view>
</view>
</template> </template>
<script> <script>
export default { export default {
data() { data() {
return { return {
codename:'获取验证码',
type:1,
} }
}, },
methods: { methods: {
@ -21,5 +71,27 @@
</script> </script>
<style> <style>
.login_page{
padding: 0 32px;
background: url('https://dm-auto.oss-cn-shanghai.aliyuncs.com/mes_wechat/background.png') no-repeat;
background-position: center center;
background-size: cover;
height: 100vh;
}
.login_top{padding-top: 160px;padding-bottom: 32px;}
.login_logo{display: flex;align-items: center;margin-bottom: 17px;}
.logopng{width: 53px;height: 44px;}
.demupng{width: 60px;height: 36px;}
.login_centre{border-radius: 16px;background: #FFF;padding: 20px 24px 40px;}
.login_switch{display: flex;}
.login_name{flex: 1;text-align: center;}
.login_input{border-radius: 21.5px;background: #F3F5F9; margin-top: 12px; padding: 5px 15px;}
.loginbut{
background: #009688;
text-align: center;
margin-top: 60px;
margin-bottom: 18px;
padding: 9px;
border-radius: 66rpx;}
</style> </style>